├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ └── dotnet.yml ├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── Xero.NetStandard.OAuth2.Test ├── Api │ ├── AccountingApiTests.cs │ ├── BankFeedsApiTests.cs │ ├── PayrollAuApiTests.cs │ └── PayrollNzApiTests.cs ├── Client │ └── ApiClientTests.cs ├── Helpers │ ├── JsonDoc.cs │ └── TestHelper.cs ├── Model │ ├── Accounting │ │ ├── AccountTests.cs │ │ ├── AccountTypeTests.cs │ │ ├── AccountsPayableTests.cs │ │ ├── AccountsReceivableTests.cs │ │ ├── AccountsTests.cs │ │ ├── AddressTests.cs │ │ ├── AllocationTests.cs │ │ ├── AllocationsTests.cs │ │ ├── AttachmentTests.cs │ │ ├── AttachmentsTests.cs │ │ ├── BalancesTests.cs │ │ ├── BankTransactionTests.cs │ │ ├── BankTransactionsTests.cs │ │ ├── BankTransferTests.cs │ │ ├── BankTransfersTests.cs │ │ ├── BatchPaymentDetailsTests.cs │ │ ├── BatchPaymentTests.cs │ │ ├── BatchPaymentsTests.cs │ │ ├── BillTests.cs │ │ ├── BrandingThemeTests.cs │ │ ├── BrandingThemesTests.cs │ │ ├── CISOrgSettingTests.cs │ │ ├── CISSettingTests.cs │ │ ├── CISSettingsTests.cs │ │ ├── ContactGroupTests.cs │ │ ├── ContactGroupsTests.cs │ │ ├── ContactPersonTests.cs │ │ ├── ContactTests.cs │ │ ├── ContactsTests.cs │ │ ├── CountryCodeTests.cs │ │ ├── CreditNoteTests.cs │ │ ├── CreditNotesTests.cs │ │ ├── CurrenciesTests.cs │ │ ├── CurrencyCodeTests.cs │ │ ├── CurrencyTests.cs │ │ ├── ElementTests.cs │ │ ├── EmployeeTests.cs │ │ ├── EmployeesTests.cs │ │ ├── ErrorTests.cs │ │ ├── ExpenseClaimTests.cs │ │ ├── ExpenseClaimsTests.cs │ │ ├── ExternalLinkTests.cs │ │ ├── HistoryRecordTests.cs │ │ ├── HistoryRecordsTests.cs │ │ ├── InvoiceReminderTests.cs │ │ ├── InvoiceRemindersTests.cs │ │ ├── InvoiceTests.cs │ │ ├── InvoicesTests.cs │ │ ├── ItemTests.cs │ │ ├── ItemsTests.cs │ │ ├── JournalLineTests.cs │ │ ├── JournalTests.cs │ │ ├── JournalsTests.cs │ │ ├── LineAmountTypesTests.cs │ │ ├── LineItemTests.cs │ │ ├── LineItemTrackingTests.cs │ │ ├── LinkedTransactionTests.cs │ │ ├── LinkedTransactionsTests.cs │ │ ├── ManualJournalLineTests.cs │ │ ├── ManualJournalTests.cs │ │ ├── ManualJournalsTests.cs │ │ ├── OnlineInvoiceTests.cs │ │ ├── OnlineInvoicesTests.cs │ │ ├── OrganisationTests.cs │ │ ├── OrganisationsTests.cs │ │ ├── OverpaymentTests.cs │ │ ├── OverpaymentsTests.cs │ │ ├── PaymentServiceTests.cs │ │ ├── PaymentServicesTests.cs │ │ ├── PaymentTermTests.cs │ │ ├── PaymentTermTypeTests.cs │ │ ├── PaymentTests.cs │ │ ├── PaymentsTests.cs │ │ ├── PhoneTests.cs │ │ ├── PrepaymentTests.cs │ │ ├── PrepaymentsTests.cs │ │ ├── PurchaseOrderTests.cs │ │ ├── PurchaseOrdersTests.cs │ │ ├── PurchaseTests.cs │ │ ├── QuoteStatusCodesTests.cs │ │ ├── QuoteTests.cs │ │ ├── QuotesTests.cs │ │ ├── ReceiptTests.cs │ │ ├── ReceiptsTests.cs │ │ ├── RepeatingInvoiceTests.cs │ │ ├── RepeatingInvoicesTests.cs │ │ ├── ReportAttributeTests.cs │ │ ├── ReportCellTests.cs │ │ ├── ReportFieldsTests.cs │ │ ├── ReportRowTests.cs │ │ ├── ReportRowsTests.cs │ │ ├── ReportTests.cs │ │ ├── ReportWithRowTests.cs │ │ ├── ReportWithRowsTests.cs │ │ ├── ReportsTests.cs │ │ ├── RequestEmptyTests.cs │ │ ├── RowTypeTests.cs │ │ ├── SalesTrackingCategoryTests.cs │ │ ├── ScheduleTests.cs │ │ ├── TaxComponentTests.cs │ │ ├── TaxRateTests.cs │ │ ├── TaxRatesTests.cs │ │ ├── TaxTypeTests.cs │ │ ├── TenNinteyNineContactTests.cs │ │ ├── TimeZoneTests.cs │ │ ├── TrackingCategoriesTests.cs │ │ ├── TrackingCategoryTests.cs │ │ ├── TrackingOptionTests.cs │ │ ├── TrackingOptionsTests.cs │ │ ├── UserTests.cs │ │ ├── UsersTests.cs │ │ ├── ValidationErrorTests.cs │ │ └── XeroConfiguration.cs │ ├── Bankfeeds │ │ ├── CountryCodeTests.cs │ │ ├── CreditDebitIndicatorTests.cs │ │ ├── CurrencyCodeTests.cs │ │ ├── EndBalanceTests.cs │ │ ├── ErrorTests.cs │ │ ├── FeedConnectionTests.cs │ │ ├── PaginationTests.cs │ │ ├── StartBalanceTests.cs │ │ ├── StatementLineTests.cs │ │ └── StatementTests.cs │ ├── PayrollAu │ │ ├── AccountTests.cs │ │ ├── BankAccountTests.cs │ │ ├── DeductionLineTests.cs │ │ ├── DeductionTypeTests.cs │ │ ├── EarningsLineTests.cs │ │ ├── EarningsRateTests.cs │ │ ├── EmployeeTests.cs │ │ ├── HomeAddressTests.cs │ │ ├── LeaveAccrualLineTests.cs │ │ ├── LeaveBalanceTests.cs │ │ ├── LeaveEarningsLineTests.cs │ │ ├── LeaveLineTests.cs │ │ ├── LeaveLinesTests.cs │ │ ├── LeavePeriodTests.cs │ │ ├── LeaveTypeTests.cs │ │ ├── PayRunTests.cs │ │ ├── PayrollCalendarTests.cs │ │ ├── PayslipSummaryTests.cs │ │ ├── PayslipTests.cs │ │ ├── ReimbursementLineTests.cs │ │ ├── SettingsTests.cs │ │ ├── SettingsTrackingCategoriesTests.cs │ │ ├── SuperFundTests.cs │ │ ├── SuperLineTests.cs │ │ ├── SuperannuationLineTests.cs │ │ ├── TaxDeclarationTests.cs │ │ ├── TaxLineTests.cs │ │ ├── TimesheetLineTests.cs │ │ └── TimesheetTests.cs │ └── PayrollNz │ │ ├── AccountTests.cs │ │ ├── AccountsTests.cs │ │ ├── AddressTests.cs │ │ ├── BankAccountTests.cs │ │ ├── BenefitTests.cs │ │ ├── CalendarTypeTests.cs │ │ ├── DeductionLineTests.cs │ │ ├── DeductionObjectTests.cs │ │ ├── DeductionTests.cs │ │ ├── DeductionsTests.cs │ │ ├── EarningsLineTests.cs │ │ ├── EarningsOrderObjectTests.cs │ │ ├── EarningsOrderTests.cs │ │ ├── EarningsOrdersTests.cs │ │ ├── EarningsRateObjectTests.cs │ │ ├── EarningsRateTests.cs │ │ ├── EarningsRatesTests.cs │ │ ├── EarningsTemplateObjectTests.cs │ │ ├── EarningsTemplateTests.cs │ │ ├── EmployeeEarningsTemplatesTests.cs │ │ ├── EmployeeLeaveBalanceTests.cs │ │ ├── EmployeeLeaveBalancesTests.cs │ │ ├── EmployeeLeaveObjectTests.cs │ │ ├── EmployeeLeaveSetupObjectTests.cs │ │ ├── EmployeeLeaveSetupTests.cs │ │ ├── EmployeeLeaveTests.cs │ │ ├── EmployeeLeaveTypeObjectTests.cs │ │ ├── EmployeeLeaveTypeTests.cs │ │ ├── EmployeeLeaveTypesTests.cs │ │ ├── EmployeeLeavesTests.cs │ │ ├── EmployeeObjectTests.cs │ │ ├── EmployeeOpeningBalanceTests.cs │ │ ├── EmployeeOpeningBalancesObjectTests.cs │ │ ├── EmployeePayTemplateObjectTests.cs │ │ ├── EmployeePayTemplateTests.cs │ │ ├── EmployeePayTemplatesTests.cs │ │ ├── EmployeeStatutoryLeaveBalanceObjectTests.cs │ │ ├── EmployeeStatutoryLeaveBalanceTests.cs │ │ ├── EmployeeStatutoryLeaveSummaryTests.cs │ │ ├── EmployeeStatutoryLeavesSummariesTests.cs │ │ ├── EmployeeStatutorySickLeaveObjectTests.cs │ │ ├── EmployeeStatutorySickLeaveTests.cs │ │ ├── EmployeeStatutorySickLeavesTests.cs │ │ ├── EmployeeTaxObjectTests.cs │ │ ├── EmployeeTaxTests.cs │ │ ├── EmployeeTests.cs │ │ ├── EmployeesTests.cs │ │ ├── EmploymentObjectTests.cs │ │ ├── EmploymentTests.cs │ │ ├── GrossEarningsHistoryTests.cs │ │ ├── InvalidFieldTests.cs │ │ ├── LeaveAccrualLineTests.cs │ │ ├── LeaveEarningsLineTests.cs │ │ ├── LeavePeriodTests.cs │ │ ├── LeavePeriodsTests.cs │ │ ├── LeaveTypeObjectTests.cs │ │ ├── LeaveTypeTests.cs │ │ ├── LeaveTypesTests.cs │ │ ├── PaginationTests.cs │ │ ├── PayRunCalendarObjectTests.cs │ │ ├── PayRunCalendarTests.cs │ │ ├── PayRunCalendarsTests.cs │ │ ├── PayRunObjectTests.cs │ │ ├── PayRunTests.cs │ │ ├── PayRunsTests.cs │ │ ├── PaySlipObjectTests.cs │ │ ├── PaySlipTests.cs │ │ ├── PaySlipsTests.cs │ │ ├── PaymentLineTests.cs │ │ ├── PaymentMethodObjectTests.cs │ │ ├── PaymentMethodTests.cs │ │ ├── ProblemTests.cs │ │ ├── ReimbursementLineTests.cs │ │ ├── ReimbursementObjectTests.cs │ │ ├── ReimbursementTests.cs │ │ ├── ReimbursementsTests.cs │ │ ├── SalaryAndWageObjectTests.cs │ │ ├── SalaryAndWageTests.cs │ │ ├── SalaryAndWagesTests.cs │ │ ├── SettingsTests.cs │ │ ├── StatutoryDeductionCategoryTests.cs │ │ ├── StatutoryDeductionLineTests.cs │ │ ├── StatutoryDeductionObjectTests.cs │ │ ├── StatutoryDeductionTests.cs │ │ ├── StatutoryDeductionsTests.cs │ │ ├── SuperannuationLineTests.cs │ │ ├── SuperannuationObjectTests.cs │ │ ├── SuperannuationsTests.cs │ │ ├── TaxCodeTests.cs │ │ ├── TaxLineTests.cs │ │ ├── TaxSettingsTests.cs │ │ ├── TimesheetEarningsLineTests.cs │ │ ├── TimesheetLineObjectTests.cs │ │ ├── TimesheetLineTests.cs │ │ ├── TimesheetObjectTests.cs │ │ ├── TimesheetTests.cs │ │ ├── TimesheetsTests.cs │ │ ├── TrackingCategoriesTests.cs │ │ └── TrackingCategoryTests.cs ├── Xero.NetStandard.OAuth2.Test.csproj └── appsettings.json ├── Xero.NetStandard.OAuth2.sln ├── Xero.NetStandard.OAuth2 ├── Api │ ├── AccountingApi.cs │ ├── AppStoreApi.cs │ ├── AssetApi.cs │ ├── BankFeedsApi.cs │ ├── FilesApi.cs │ ├── FinanceApi.cs │ ├── IdentityApi.cs │ ├── PayrollAUApi.cs │ ├── PayrollNZApi.cs │ ├── PayrollUkApi.cs │ └── ProjectApi.cs ├── Client │ ├── ApiClient.cs │ ├── ApiException.cs │ ├── ApiResponse.cs │ ├── ClientUtils.cs │ ├── Configuration.cs │ ├── ExceptionFactory.cs │ ├── GlobalConfiguration.cs │ ├── HttpMethod.cs │ ├── IApiAccessor.cs │ ├── IAsynchronousClient.cs │ ├── IReadableConfiguration.cs │ ├── ISynchronousClient.cs │ ├── Multimap.cs │ ├── OpenAPIDateConverter.cs │ └── RequestOptions.cs ├── Model │ ├── Accounting │ │ ├── Account.cs │ │ ├── AccountType.cs │ │ ├── Accounts.cs │ │ ├── AccountsPayable.cs │ │ ├── AccountsReceivable.cs │ │ ├── Action.cs │ │ ├── Actions.cs │ │ ├── Address.cs │ │ ├── AddressForOrganisation.cs │ │ ├── Allocation.cs │ │ ├── Allocations.cs │ │ ├── Attachment.cs │ │ ├── Attachments.cs │ │ ├── BalanceDetails.cs │ │ ├── Balances.cs │ │ ├── BankTransaction.cs │ │ ├── BankTransactions.cs │ │ ├── BankTransfer.cs │ │ ├── BankTransfers.cs │ │ ├── BatchPayment.cs │ │ ├── BatchPaymentDelete.cs │ │ ├── BatchPaymentDeleteByUrlParam.cs │ │ ├── BatchPaymentDetails.cs │ │ ├── BatchPayments.cs │ │ ├── Bill.cs │ │ ├── BrandingTheme.cs │ │ ├── BrandingThemes.cs │ │ ├── Budget.cs │ │ ├── BudgetBalance.cs │ │ ├── BudgetLine.cs │ │ ├── BudgetLines.cs │ │ ├── Budgets.cs │ │ ├── CISOrgSetting.cs │ │ ├── CISOrgSettings.cs │ │ ├── CISSetting.cs │ │ ├── CISSettings.cs │ │ ├── Contact.cs │ │ ├── ContactGroup.cs │ │ ├── ContactGroups.cs │ │ ├── ContactPerson.cs │ │ ├── Contacts.cs │ │ ├── ConversionBalances.cs │ │ ├── ConversionDate.cs │ │ ├── CountryCode.cs │ │ ├── CreditNote.cs │ │ ├── CreditNotes.cs │ │ ├── Currencies.cs │ │ ├── Currency.cs │ │ ├── CurrencyCode.cs │ │ ├── Element.cs │ │ ├── Employee.cs │ │ ├── Employees.cs │ │ ├── Error.cs │ │ ├── ExpenseClaim.cs │ │ ├── ExpenseClaims.cs │ │ ├── ExternalLink.cs │ │ ├── HistoryRecord.cs │ │ ├── HistoryRecords.cs │ │ ├── ImportSummary.cs │ │ ├── ImportSummaryAccounts.cs │ │ ├── ImportSummaryObject.cs │ │ ├── ImportSummaryOrganisation.cs │ │ ├── Invoice.cs │ │ ├── InvoiceReminder.cs │ │ ├── InvoiceReminders.cs │ │ ├── Invoices.cs │ │ ├── Item.cs │ │ ├── Items.cs │ │ ├── Journal.cs │ │ ├── JournalLine.cs │ │ ├── Journals.cs │ │ ├── LineAmountTypes.cs │ │ ├── LineItem.cs │ │ ├── LineItemItem.cs │ │ ├── LineItemTracking.cs │ │ ├── LinkedTransaction.cs │ │ ├── LinkedTransactions.cs │ │ ├── ManualJournal.cs │ │ ├── ManualJournalLine.cs │ │ ├── ManualJournals.cs │ │ ├── OnlineInvoice.cs │ │ ├── OnlineInvoices.cs │ │ ├── Organisation.cs │ │ ├── Organisations.cs │ │ ├── Overpayment.cs │ │ ├── Overpayments.cs │ │ ├── Payment.cs │ │ ├── PaymentDelete.cs │ │ ├── PaymentService.cs │ │ ├── PaymentServices.cs │ │ ├── PaymentTerm.cs │ │ ├── PaymentTermType.cs │ │ ├── Payments.cs │ │ ├── Phone.cs │ │ ├── Prepayment.cs │ │ ├── Prepayments.cs │ │ ├── Purchase.cs │ │ ├── PurchaseOrder.cs │ │ ├── PurchaseOrders.cs │ │ ├── Quote.cs │ │ ├── QuoteLineAmountTypes.cs │ │ ├── QuoteStatusCodes.cs │ │ ├── Quotes.cs │ │ ├── Receipt.cs │ │ ├── Receipts.cs │ │ ├── RepeatingInvoice.cs │ │ ├── RepeatingInvoices.cs │ │ ├── Report.cs │ │ ├── ReportAttribute.cs │ │ ├── ReportCell.cs │ │ ├── ReportFields.cs │ │ ├── ReportRow.cs │ │ ├── ReportRows.cs │ │ ├── ReportWithRow.cs │ │ ├── ReportWithRows.cs │ │ ├── Reports.cs │ │ ├── RequestEmpty.cs │ │ ├── RowType.cs │ │ ├── SalesTrackingCategory.cs │ │ ├── Schedule.cs │ │ ├── Setup.cs │ │ ├── TaxComponent.cs │ │ ├── TaxRate.cs │ │ ├── TaxRates.cs │ │ ├── TaxType.cs │ │ ├── TenNinetyNineContact.cs │ │ ├── TenNinteyNineContact.cs │ │ ├── TimeZone.cs │ │ ├── TrackingCategories.cs │ │ ├── TrackingCategory.cs │ │ ├── TrackingOption.cs │ │ ├── TrackingOptions.cs │ │ ├── User.cs │ │ ├── Users.cs │ │ └── ValidationError.cs │ ├── Appstore │ │ ├── Plan.cs │ │ ├── Price.cs │ │ ├── ProblemDetails.cs │ │ ├── Product.cs │ │ ├── Subscription.cs │ │ └── SubscriptionItem.cs │ ├── Asset │ │ ├── Asset.cs │ │ ├── AssetStatus.cs │ │ ├── AssetStatusQueryParam.cs │ │ ├── AssetType.cs │ │ ├── Assets.cs │ │ ├── BookDepreciationDetail.cs │ │ ├── BookDepreciationSetting.cs │ │ ├── Error.cs │ │ ├── FieldValidationErrorsElement.cs │ │ ├── Pagination.cs │ │ ├── ResourceValidationErrorsElement.cs │ │ └── Setting.cs │ ├── Bankfeeds │ │ ├── CountryCode.cs │ │ ├── CreditDebitIndicator.cs │ │ ├── CurrencyCode.cs │ │ ├── EndBalance.cs │ │ ├── Error.cs │ │ ├── FeedConnection.cs │ │ ├── FeedConnections.cs │ │ ├── Pagination.cs │ │ ├── StartBalance.cs │ │ ├── Statement.cs │ │ ├── StatementLine.cs │ │ └── Statements.cs │ ├── Files │ │ ├── Association.cs │ │ ├── FileObject.cs │ │ ├── FileResponse204.cs │ │ ├── Files.cs │ │ ├── Folder.cs │ │ ├── Folders.cs │ │ ├── InlineObject.cs │ │ ├── ObjectGroup.cs │ │ ├── ObjectType.cs │ │ └── User.cs │ ├── Finance │ │ ├── AccountUsage.cs │ │ ├── AccountUsageResponse.cs │ │ ├── BalanceSheetAccountDetail.cs │ │ ├── BalanceSheetAccountGroup.cs │ │ ├── BalanceSheetAccountType.cs │ │ ├── BalanceSheetResponse.cs │ │ ├── BankStatementAccountingResponse.cs │ │ ├── BankStatementResponse.cs │ │ ├── BankTransactionResponse.cs │ │ ├── CashAccountResponse.cs │ │ ├── CashBalance.cs │ │ ├── CashValidationResponse.cs │ │ ├── CashflowAccount.cs │ │ ├── CashflowActivity.cs │ │ ├── CashflowResponse.cs │ │ ├── CashflowType.cs │ │ ├── ContactDetail.cs │ │ ├── ContactResponse.cs │ │ ├── ContactTotalDetail.cs │ │ ├── ContactTotalOther.cs │ │ ├── CreditNoteResponse.cs │ │ ├── CurrentStatementResponse.cs │ │ ├── DataSourceResponse.cs │ │ ├── HistoryRecordResponse.cs │ │ ├── IncomeByContactResponse.cs │ │ ├── InvoiceResponse.cs │ │ ├── LineItemResponse.cs │ │ ├── LockHistoryModel.cs │ │ ├── LockHistoryResponse.cs │ │ ├── ManualJournalTotal.cs │ │ ├── OverpaymentResponse.cs │ │ ├── PaymentResponse.cs │ │ ├── PnlAccount.cs │ │ ├── PnlAccountClass.cs │ │ ├── PnlAccountType.cs │ │ ├── PracticeResponse.cs │ │ ├── PrepaymentResponse.cs │ │ ├── Problem.cs │ │ ├── ProblemType.cs │ │ ├── ProfitAndLossResponse.cs │ │ ├── ReportHistoryModel.cs │ │ ├── ReportHistoryResponse.cs │ │ ├── StatementBalanceResponse.cs │ │ ├── StatementLineResponse.cs │ │ ├── StatementLinesResponse.cs │ │ ├── StatementResponse.cs │ │ ├── TotalDetail.cs │ │ ├── TotalOther.cs │ │ ├── TrialBalanceAccount.cs │ │ ├── TrialBalanceEntry.cs │ │ ├── TrialBalanceMovement.cs │ │ ├── TrialBalanceResponse.cs │ │ ├── UserActivitiesResponse.cs │ │ └── UserResponse.cs │ ├── Identity │ │ ├── AccessToken.cs │ │ ├── Connection.cs │ │ └── RefreshToken.cs │ ├── PayrollAu │ │ ├── APIException.cs │ │ ├── Account.cs │ │ ├── AccountType.cs │ │ ├── AllowanceCategory.cs │ │ ├── AllowanceType.cs │ │ ├── BankAccount.cs │ │ ├── CalendarType.cs │ │ ├── CountryOfResidence.cs │ │ ├── DeductionLine.cs │ │ ├── DeductionType.cs │ │ ├── DeductionTypeCalculationType.cs │ │ ├── EarningsLine.cs │ │ ├── EarningsRate.cs │ │ ├── EarningsRateCalculationType.cs │ │ ├── EarningsType.cs │ │ ├── Employee.cs │ │ ├── EmployeeStatus.cs │ │ ├── Employees.cs │ │ ├── EmploymentBasis.cs │ │ ├── EmploymentTerminationPaymentType.cs │ │ ├── EmploymentType.cs │ │ ├── EntitlementFinalPayPayoutType.cs │ │ ├── HomeAddress.cs │ │ ├── IncomeType.cs │ │ ├── LeaveAccrualLine.cs │ │ ├── LeaveApplication.cs │ │ ├── LeaveApplications.cs │ │ ├── LeaveBalance.cs │ │ ├── LeaveCategoryCode.cs │ │ ├── LeaveEarningsLine.cs │ │ ├── LeaveLine.cs │ │ ├── LeaveLineCalculationType.cs │ │ ├── LeaveLines.cs │ │ ├── LeavePeriod.cs │ │ ├── LeavePeriodStatus.cs │ │ ├── LeaveType.cs │ │ ├── LeaveTypeContributionType.cs │ │ ├── ManualTaxType.cs │ │ ├── OpeningBalances.cs │ │ ├── PayItem.cs │ │ ├── PayItems.cs │ │ ├── PayRun.cs │ │ ├── PayRunStatus.cs │ │ ├── PayRuns.cs │ │ ├── PayTemplate.cs │ │ ├── PaymentFrequencyType.cs │ │ ├── PayrollCalendar.cs │ │ ├── PayrollCalendars.cs │ │ ├── Payslip.cs │ │ ├── PayslipLines.cs │ │ ├── PayslipObject.cs │ │ ├── PayslipSummary.cs │ │ ├── Payslips.cs │ │ ├── RateType.cs │ │ ├── ReimbursementLine.cs │ │ ├── ReimbursementLines.cs │ │ ├── ReimbursementType.cs │ │ ├── ResidencyStatus.cs │ │ ├── SeniorMaritalStatus.cs │ │ ├── Settings.cs │ │ ├── SettingsObject.cs │ │ ├── SettingsTrackingCategories.cs │ │ ├── SettingsTrackingCategoriesEmployeeGroups.cs │ │ ├── SettingsTrackingCategoriesTimesheetCategories.cs │ │ ├── State.cs │ │ ├── SuperFund.cs │ │ ├── SuperFundProduct.cs │ │ ├── SuperFundProducts.cs │ │ ├── SuperFundType.cs │ │ ├── SuperFunds.cs │ │ ├── SuperLine.cs │ │ ├── SuperMembership.cs │ │ ├── SuperannuationCalculationType.cs │ │ ├── SuperannuationContributionType.cs │ │ ├── SuperannuationLine.cs │ │ ├── TFNExemptionType.cs │ │ ├── TaxDeclaration.cs │ │ ├── TaxLine.cs │ │ ├── TaxScaleType.cs │ │ ├── Timesheet.cs │ │ ├── TimesheetLine.cs │ │ ├── TimesheetObject.cs │ │ ├── TimesheetStatus.cs │ │ ├── Timesheets.cs │ │ ├── ValidationError.cs │ │ └── WorkCondition.cs │ ├── PayrollNz │ │ ├── Account.cs │ │ ├── Accounts.cs │ │ ├── Address.cs │ │ ├── BankAccount.cs │ │ ├── Benefit.cs │ │ ├── CalendarType.cs │ │ ├── Deduction.cs │ │ ├── DeductionLine.cs │ │ ├── DeductionObject.cs │ │ ├── Deductions.cs │ │ ├── EarningsLine.cs │ │ ├── EarningsOrder.cs │ │ ├── EarningsOrderObject.cs │ │ ├── EarningsOrders.cs │ │ ├── EarningsRate.cs │ │ ├── EarningsRateObject.cs │ │ ├── EarningsRates.cs │ │ ├── EarningsTemplate.cs │ │ ├── EarningsTemplateObject.cs │ │ ├── Employee.cs │ │ ├── EmployeeEarningsTemplates.cs │ │ ├── EmployeeLeave.cs │ │ ├── EmployeeLeaveBalance.cs │ │ ├── EmployeeLeaveBalances.cs │ │ ├── EmployeeLeaveObject.cs │ │ ├── EmployeeLeaveSetup.cs │ │ ├── EmployeeLeaveSetupObject.cs │ │ ├── EmployeeLeaveType.cs │ │ ├── EmployeeLeaveTypeObject.cs │ │ ├── EmployeeLeaveTypes.cs │ │ ├── EmployeeLeaves.cs │ │ ├── EmployeeObject.cs │ │ ├── EmployeeOpeningBalance.cs │ │ ├── EmployeeOpeningBalancesObject.cs │ │ ├── EmployeePayTemplate.cs │ │ ├── EmployeePayTemplateObject.cs │ │ ├── EmployeePayTemplates.cs │ │ ├── EmployeeStatutoryLeaveBalance.cs │ │ ├── EmployeeStatutoryLeaveBalanceObject.cs │ │ ├── EmployeeStatutoryLeaveSummary.cs │ │ ├── EmployeeStatutoryLeavesSummaries.cs │ │ ├── EmployeeStatutorySickLeave.cs │ │ ├── EmployeeStatutorySickLeaveObject.cs │ │ ├── EmployeeStatutorySickLeaves.cs │ │ ├── EmployeeTax.cs │ │ ├── EmployeeTaxObject.cs │ │ ├── Employees.cs │ │ ├── Employment.cs │ │ ├── EmploymentObject.cs │ │ ├── GrossEarningsHistory.cs │ │ ├── InvalidField.cs │ │ ├── LeaveAccrualLine.cs │ │ ├── LeaveEarningsLine.cs │ │ ├── LeavePeriod.cs │ │ ├── LeavePeriods.cs │ │ ├── LeaveType.cs │ │ ├── LeaveTypeObject.cs │ │ ├── LeaveTypes.cs │ │ ├── Pagination.cs │ │ ├── PayRun.cs │ │ ├── PayRunCalendar.cs │ │ ├── PayRunCalendarObject.cs │ │ ├── PayRunCalendars.cs │ │ ├── PayRunObject.cs │ │ ├── PayRuns.cs │ │ ├── PaySlip.cs │ │ ├── PaySlipObject.cs │ │ ├── PaySlips.cs │ │ ├── PaymentLine.cs │ │ ├── PaymentMethod.cs │ │ ├── PaymentMethodObject.cs │ │ ├── Problem.cs │ │ ├── Reimbursement.cs │ │ ├── ReimbursementLine.cs │ │ ├── ReimbursementObject.cs │ │ ├── Reimbursements.cs │ │ ├── SalaryAndWage.cs │ │ ├── SalaryAndWageObject.cs │ │ ├── SalaryAndWages.cs │ │ ├── Settings.cs │ │ ├── StatutoryDeduction.cs │ │ ├── StatutoryDeductionCategory.cs │ │ ├── StatutoryDeductionLine.cs │ │ ├── StatutoryDeductionObject.cs │ │ ├── StatutoryDeductions.cs │ │ ├── SuperannuationLine.cs │ │ ├── SuperannuationObject.cs │ │ ├── Superannuations.cs │ │ ├── TaxCode.cs │ │ ├── TaxLine.cs │ │ ├── TaxSettings.cs │ │ ├── Timesheet.cs │ │ ├── TimesheetEarningsLine.cs │ │ ├── TimesheetLine.cs │ │ ├── TimesheetLineObject.cs │ │ ├── TimesheetObject.cs │ │ ├── Timesheets.cs │ │ ├── TrackingCategories.cs │ │ └── TrackingCategory.cs │ ├── PayrollUk │ │ ├── Account.cs │ │ ├── Accounts.cs │ │ ├── Address.cs │ │ ├── BankAccount.cs │ │ ├── Benefit.cs │ │ ├── BenefitLine.cs │ │ ├── BenefitObject.cs │ │ ├── Benefits.cs │ │ ├── CourtOrderLine.cs │ │ ├── Deduction.cs │ │ ├── DeductionLine.cs │ │ ├── DeductionObject.cs │ │ ├── Deductions.cs │ │ ├── EarningsLine.cs │ │ ├── EarningsOrder.cs │ │ ├── EarningsOrderObject.cs │ │ ├── EarningsOrders.cs │ │ ├── EarningsRate.cs │ │ ├── EarningsRateObject.cs │ │ ├── EarningsRates.cs │ │ ├── EarningsTemplate.cs │ │ ├── EarningsTemplateObject.cs │ │ ├── Employee.cs │ │ ├── EmployeeLeave.cs │ │ ├── EmployeeLeaveBalance.cs │ │ ├── EmployeeLeaveBalances.cs │ │ ├── EmployeeLeaveObject.cs │ │ ├── EmployeeLeaveType.cs │ │ ├── EmployeeLeaveTypeObject.cs │ │ ├── EmployeeLeaveTypes.cs │ │ ├── EmployeeLeaves.cs │ │ ├── EmployeeObject.cs │ │ ├── EmployeeOpeningBalances.cs │ │ ├── EmployeeOpeningBalancesObject.cs │ │ ├── EmployeePayTemplate.cs │ │ ├── EmployeePayTemplateObject.cs │ │ ├── EmployeePayTemplates.cs │ │ ├── EmployeeStatutoryLeaveBalance.cs │ │ ├── EmployeeStatutoryLeaveBalanceObject.cs │ │ ├── EmployeeStatutoryLeaveSummary.cs │ │ ├── EmployeeStatutoryLeavesSummaries.cs │ │ ├── EmployeeStatutorySickLeave.cs │ │ ├── EmployeeStatutorySickLeaveObject.cs │ │ ├── EmployeeStatutorySickLeaves.cs │ │ ├── EmployeeTax.cs │ │ ├── EmployeeTaxObject.cs │ │ ├── Employees.cs │ │ ├── Employment.cs │ │ ├── EmploymentObject.cs │ │ ├── InvalidField.cs │ │ ├── LeaveAccrualLine.cs │ │ ├── LeaveEarningsLine.cs │ │ ├── LeavePeriod.cs │ │ ├── LeavePeriods.cs │ │ ├── LeaveType.cs │ │ ├── LeaveTypeObject.cs │ │ ├── LeaveTypes.cs │ │ ├── Pagination.cs │ │ ├── PayRun.cs │ │ ├── PayRunCalendar.cs │ │ ├── PayRunCalendarObject.cs │ │ ├── PayRunCalendars.cs │ │ ├── PayRunObject.cs │ │ ├── PayRuns.cs │ │ ├── PaymentLine.cs │ │ ├── PaymentMethod.cs │ │ ├── PaymentMethodObject.cs │ │ ├── Payslip.cs │ │ ├── PayslipObject.cs │ │ ├── Payslips.cs │ │ ├── Problem.cs │ │ ├── Reimbursement.cs │ │ ├── ReimbursementLine.cs │ │ ├── ReimbursementObject.cs │ │ ├── Reimbursements.cs │ │ ├── SalaryAndWage.cs │ │ ├── SalaryAndWageObject.cs │ │ ├── SalaryAndWages.cs │ │ ├── Settings.cs │ │ ├── StatutoryDeduction.cs │ │ ├── StatutoryDeductionCategory.cs │ │ ├── TaxLine.cs │ │ ├── Timesheet.cs │ │ ├── TimesheetEarningsLine.cs │ │ ├── TimesheetLine.cs │ │ ├── TimesheetLineObject.cs │ │ ├── TimesheetObject.cs │ │ ├── Timesheets.cs │ │ ├── TrackingCategories.cs │ │ └── TrackingCategory.cs │ └── Project │ │ ├── Amount.cs │ │ ├── ChargeType.cs │ │ ├── CurrencyCode.cs │ │ ├── Error.cs │ │ ├── Pagination.cs │ │ ├── Project.cs │ │ ├── ProjectCreateOrUpdate.cs │ │ ├── ProjectPatch.cs │ │ ├── ProjectStatus.cs │ │ ├── ProjectUser.cs │ │ ├── ProjectUsers.cs │ │ ├── Projects.cs │ │ ├── Task.cs │ │ ├── TaskCreateOrUpdate.cs │ │ ├── Tasks.cs │ │ ├── TimeEntries.cs │ │ ├── TimeEntry.cs │ │ └── TimeEntryCreateOrUpdate.cs └── Xero.NetStandard.OAuth2.csproj ├── Xero.NetStandard.OAuth2Client ├── README.md ├── Xero.NetStandard.OAuth2Client.csproj └── src │ ├── Client │ ├── IXeroClient.cs │ └── XeroClient.cs │ ├── Config │ └── XeroConfiguration.cs │ ├── Models │ └── Tenant.cs │ ├── Token │ ├── IXeroToken.cs │ └── XeroOAuth2Token.cs │ └── Utilities │ ├── HashUtils.cs │ └── JwtUtils.cs └── docs ├── accounting └── index.html ├── appstore └── index.html ├── assets └── index.html ├── bankfeeds └── index.html ├── files └── index.html ├── finance └── index.html ├── payroll-au └── index.html ├── payroll-nz └── index.html ├── payroll-uk └── index.html └── projects └── index.html /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **SDK you're using (please complete the following information):** 11 | - Version [e.g. 2.3.10] 12 | 13 | **Describe the bug** 14 | A clear and concise description of what the bug is. 15 | 16 | **To Reproduce** 17 | Steps to reproduce the behavior: 18 | 1. Go to '...' 19 | 2. Click on '....' 20 | 3. Scroll down to '....' 21 | 4. See error 22 | 23 | **Expected behavior** 24 | A clear and concise description of what you expected to happen. 25 | 26 | **Screenshots** 27 | If applicable, add screenshots to help explain your problem. 28 | 29 | **Additional context** 30 | Add any other context about the problem here. 31 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **SDK you're using (please complete the following information):** 11 | - Version [e.g. 0.1.0] 12 | 13 | **Is your feature request related to a problem? Please describe.** 14 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 15 | 16 | **Describe the solution you'd like** 17 | A clear and concise description of what you want to happen. 18 | 19 | **Describe alternatives you've considered** 20 | A clear and concise description of any alternative solutions or features you've considered. 21 | 22 | **Additional context** 23 | Add any other context or screenshots about the feature request here. 24 | -------------------------------------------------------------------------------- /.github/workflows/dotnet.yml: -------------------------------------------------------------------------------- 1 | name: .NET 2 | 3 | on: 4 | release: 5 | types: [published] 6 | 7 | jobs: 8 | build: 9 | 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | - uses: actions/checkout@v2 14 | - name: Setup .NET 15 | uses: actions/setup-dotnet@v1 16 | with: 17 | dotnet-version: 3.1.x 18 | - name: Restore dependencies 19 | run: dotnet restore 20 | - name: Build 21 | run: dotnet build --no-restore 22 | - name: Create Package for Nuget.org\ 23 | run: dotnet pack 24 | - name: Publish Package to Nuget.org 25 | run: dotnet nuget push ./Xero.NetStandard.OAuth2/bin/Debug/Xero.NetStandard.OAuth2.${{ github.event.release.name }}.nupkg --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # This .gitignore file was automatically created by Microsoft(R) Visual Studio. 3 | ################################################################################ 4 | 5 | /packages 6 | */bin/Debug 7 | */obj/Debug 8 | */bin 9 | _ReSharper* 10 | *.user 11 | *.suo 12 | *.pfx 13 | *.pem 14 | *.cer 15 | *.user 16 | *.aps 17 | *.pch 18 | *.vspscc 19 | *_i.c 20 | *_p.c 21 | *.ncb 22 | *.suo 23 | *.bak 24 | *.cache 25 | *.ilk 26 | *.log 27 | [Bb]in 28 | [Dd]ebug*/ 29 | *.sbr 30 | obj/ 31 | [Rr]elease*/ 32 | _ReSharper*/ 33 | [Pp]ackages/ 34 | out/ 35 | *.orig 36 | 37 | *.nupkg 38 | /.vs 39 | *.DotSettings 40 | *.lnk 41 | */.vs 42 | .vscode/ 43 | .ionide/ 44 | Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.sln 45 | .DS_Store 46 | .build_notes.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Xero Developer API 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Client/ApiClientTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | using System; 12 | using System.IO; 13 | using System.Collections.Generic; 14 | using System.Collections.ObjectModel; 15 | using System.Linq; 16 | using System.Reflection; 17 | using RestSharp; 18 | using Xunit; 19 | using System.Threading.Tasks; 20 | using AutoBogus; 21 | 22 | using Xero.NetStandard.OAuth2.Client; 23 | using Xero.NetStandard.OAuth2.Api; 24 | using Xero.NetStandard.OAuth2.Model.Accounting; 25 | using Xunit.Abstractions; 26 | using Newtonsoft.Json; 27 | using Newtonsoft.Json.Serialization; 28 | 29 | namespace Xero.NetStandard.OAuth2.Test.Api.Client 30 | { 31 | /// 32 | /// Class for testing AccountingApi 33 | /// 34 | /// 35 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 36 | /// Please update the test case below to test the API endpoint. 37 | /// 38 | public class ApiClientTests 39 | { 40 | 41 | /// 42 | /// Test issue (311) related to JsonConvert.Defaultsetting overriding JsonConver.Serializer setting 43 | /// 44 | [Fact] 45 | public void DefaultJasonConvertDefaultSettingIssue() 46 | { 47 | 48 | JsonConvert.DefaultSettings = () => new JsonSerializerSettings 49 | { 50 | ContractResolver = new CamelCasePropertyNamesContractResolver(), 51 | TypeNameHandling = TypeNameHandling.Objects 52 | }; 53 | 54 | var serializer = new CustomJsonCodec(new Configuration()); 55 | string requestBody = serializer.Serialize(new Account()); 56 | Assert.DoesNotContain("$type",requestBody); 57 | } 58 | 59 | } 60 | } -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Helpers/TestHelper.cs: -------------------------------------------------------------------------------- 1 | 2 | using Microsoft.Extensions.Configuration; 3 | using System; 4 | using Xero.NetStandard.OAuth2.Client; 5 | using Xero.NetStandard.OAuth2.Test.Model.Accounting; 6 | 7 | namespace Xero.NetStandard.OAuth2.Test 8 | { 9 | public static class TestHelper 10 | { 11 | public static IConfigurationRoot GetIConfigurationRoot(string outputPath) 12 | { 13 | return new ConfigurationBuilder().SetBasePath(outputPath).AddJsonFile("appsettings.json", optional: true).AddEnvironmentVariables().Build(); 14 | } 15 | 16 | public static XeroConfiguration GetApplicationConfiguration(string outputPath) 17 | { 18 | var configuration = new XeroConfiguration(); 19 | var iConfig = GetIConfigurationRoot(outputPath); 20 | iConfig.GetSection("XeroConfiguration").Bind(configuration); 21 | return configuration; 22 | } 23 | 24 | } 25 | } -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/AccountTypeTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing AccountType 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class AccountTypeTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for AccountType 36 | //private AccountType instance; 37 | 38 | public AccountTypeTests() 39 | { 40 | // TODO uncomment below to create an instance of AccountType 41 | //instance = new AccountType(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of AccountType 51 | /// 52 | [Fact] 53 | public void AccountTypeInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" AccountType 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a AccountType"); 57 | } 58 | 59 | 60 | 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/AccountsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing Accounts 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class AccountsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for Accounts 36 | //private Accounts instance; 37 | 38 | public AccountsTests() 39 | { 40 | // TODO uncomment below to create an instance of Accounts 41 | //instance = new Accounts(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of Accounts 51 | /// 52 | [Fact] 53 | public void AccountsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" Accounts 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a Accounts"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_Accounts' 62 | /// 63 | [Fact] 64 | public void _AccountsTest() 65 | { 66 | // TODO unit test for the property '_Accounts' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/AllocationsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing Allocations 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class AllocationsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for Allocations 36 | //private Allocations instance; 37 | 38 | public AllocationsTests() 39 | { 40 | // TODO uncomment below to create an instance of Allocations 41 | //instance = new Allocations(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of Allocations 51 | /// 52 | [Fact] 53 | public void AllocationsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" Allocations 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a Allocations"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_Allocations' 62 | /// 63 | [Fact] 64 | public void _AllocationsTest() 65 | { 66 | // TODO unit test for the property '_Allocations' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/AttachmentsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing Attachments 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class AttachmentsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for Attachments 36 | //private Attachments instance; 37 | 38 | public AttachmentsTests() 39 | { 40 | // TODO uncomment below to create an instance of Attachments 41 | //instance = new Attachments(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of Attachments 51 | /// 52 | [Fact] 53 | public void AttachmentsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" Attachments 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a Attachments"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_Attachments' 62 | /// 63 | [Fact] 64 | public void _AttachmentsTest() 65 | { 66 | // TODO unit test for the property '_Attachments' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/BankTransactionsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing BankTransactions 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class BankTransactionsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for BankTransactions 36 | //private BankTransactions instance; 37 | 38 | public BankTransactionsTests() 39 | { 40 | // TODO uncomment below to create an instance of BankTransactions 41 | //instance = new BankTransactions(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of BankTransactions 51 | /// 52 | [Fact] 53 | public void BankTransactionsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" BankTransactions 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a BankTransactions"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_BankTransactions' 62 | /// 63 | [Fact] 64 | public void _BankTransactionsTest() 65 | { 66 | // TODO unit test for the property '_BankTransactions' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/BankTransfersTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing BankTransfers 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class BankTransfersTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for BankTransfers 36 | //private BankTransfers instance; 37 | 38 | public BankTransfersTests() 39 | { 40 | // TODO uncomment below to create an instance of BankTransfers 41 | //instance = new BankTransfers(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of BankTransfers 51 | /// 52 | [Fact] 53 | public void BankTransfersInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" BankTransfers 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a BankTransfers"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_BankTransfers' 62 | /// 63 | [Fact] 64 | public void _BankTransfersTest() 65 | { 66 | // TODO unit test for the property '_BankTransfers' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/BatchPaymentsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing BatchPayments 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class BatchPaymentsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for BatchPayments 36 | //private BatchPayments instance; 37 | 38 | public BatchPaymentsTests() 39 | { 40 | // TODO uncomment below to create an instance of BatchPayments 41 | //instance = new BatchPayments(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of BatchPayments 51 | /// 52 | [Fact] 53 | public void BatchPaymentsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" BatchPayments 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a BatchPayments"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_BatchPayments' 62 | /// 63 | [Fact] 64 | public void _BatchPaymentsTest() 65 | { 66 | // TODO unit test for the property '_BatchPayments' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/BrandingThemesTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing BrandingThemes 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class BrandingThemesTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for BrandingThemes 36 | //private BrandingThemes instance; 37 | 38 | public BrandingThemesTests() 39 | { 40 | // TODO uncomment below to create an instance of BrandingThemes 41 | //instance = new BrandingThemes(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of BrandingThemes 51 | /// 52 | [Fact] 53 | public void BrandingThemesInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" BrandingThemes 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a BrandingThemes"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_BrandingThemes' 62 | /// 63 | [Fact] 64 | public void _BrandingThemesTest() 65 | { 66 | // TODO unit test for the property '_BrandingThemes' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/CISSettingsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing CISSettings 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class CISSettingsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for CISSettings 36 | //private CISSettings instance; 37 | 38 | public CISSettingsTests() 39 | { 40 | // TODO uncomment below to create an instance of CISSettings 41 | //instance = new CISSettings(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of CISSettings 51 | /// 52 | [Fact] 53 | public void CISSettingsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" CISSettings 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a CISSettings"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_CISSettings' 62 | /// 63 | [Fact] 64 | public void _CISSettingsTest() 65 | { 66 | // TODO unit test for the property '_CISSettings' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/ContactGroupsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing ContactGroups 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class ContactGroupsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for ContactGroups 36 | //private ContactGroups instance; 37 | 38 | public ContactGroupsTests() 39 | { 40 | // TODO uncomment below to create an instance of ContactGroups 41 | //instance = new ContactGroups(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of ContactGroups 51 | /// 52 | [Fact] 53 | public void ContactGroupsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" ContactGroups 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a ContactGroups"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_ContactGroups' 62 | /// 63 | [Fact] 64 | public void _ContactGroupsTest() 65 | { 66 | // TODO unit test for the property '_ContactGroups' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/ContactsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing Contacts 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class ContactsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for Contacts 36 | //private Contacts instance; 37 | 38 | public ContactsTests() 39 | { 40 | // TODO uncomment below to create an instance of Contacts 41 | //instance = new Contacts(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of Contacts 51 | /// 52 | [Fact] 53 | public void ContactsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" Contacts 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a Contacts"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_Contacts' 62 | /// 63 | [Fact] 64 | public void _ContactsTest() 65 | { 66 | // TODO unit test for the property '_Contacts' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/CountryCodeTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing CountryCode 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class CountryCodeTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for CountryCode 36 | //private CountryCode instance; 37 | 38 | public CountryCodeTests() 39 | { 40 | // TODO uncomment below to create an instance of CountryCode 41 | //instance = new CountryCode(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of CountryCode 51 | /// 52 | [Fact] 53 | public void CountryCodeInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" CountryCode 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a CountryCode"); 57 | } 58 | 59 | 60 | 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/CreditNotesTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing CreditNotes 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class CreditNotesTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for CreditNotes 36 | //private CreditNotes instance; 37 | 38 | public CreditNotesTests() 39 | { 40 | // TODO uncomment below to create an instance of CreditNotes 41 | //instance = new CreditNotes(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of CreditNotes 51 | /// 52 | [Fact] 53 | public void CreditNotesInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" CreditNotes 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a CreditNotes"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_CreditNotes' 62 | /// 63 | [Fact] 64 | public void _CreditNotesTest() 65 | { 66 | // TODO unit test for the property '_CreditNotes' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/CurrenciesTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing Currencies 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class CurrenciesTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for Currencies 36 | //private Currencies instance; 37 | 38 | public CurrenciesTests() 39 | { 40 | // TODO uncomment below to create an instance of Currencies 41 | //instance = new Currencies(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of Currencies 51 | /// 52 | [Fact] 53 | public void CurrenciesInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" Currencies 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a Currencies"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_Currencies' 62 | /// 63 | [Fact] 64 | public void _CurrenciesTest() 65 | { 66 | // TODO unit test for the property '_Currencies' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/CurrencyCodeTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing CurrencyCode 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class CurrencyCodeTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for CurrencyCode 36 | //private CurrencyCode instance; 37 | 38 | public CurrencyCodeTests() 39 | { 40 | // TODO uncomment below to create an instance of CurrencyCode 41 | //instance = new CurrencyCode(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of CurrencyCode 51 | /// 52 | [Fact] 53 | public void CurrencyCodeInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" CurrencyCode 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a CurrencyCode"); 57 | } 58 | 59 | 60 | 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/EmployeesTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing Employees 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class EmployeesTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for Employees 36 | //private Employees instance; 37 | 38 | public EmployeesTests() 39 | { 40 | // TODO uncomment below to create an instance of Employees 41 | //instance = new Employees(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of Employees 51 | /// 52 | [Fact] 53 | public void EmployeesInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" Employees 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a Employees"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_Employees' 62 | /// 63 | [Fact] 64 | public void _EmployeesTest() 65 | { 66 | // TODO unit test for the property '_Employees' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/ExpenseClaimsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing ExpenseClaims 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class ExpenseClaimsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for ExpenseClaims 36 | //private ExpenseClaims instance; 37 | 38 | public ExpenseClaimsTests() 39 | { 40 | // TODO uncomment below to create an instance of ExpenseClaims 41 | //instance = new ExpenseClaims(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of ExpenseClaims 51 | /// 52 | [Fact] 53 | public void ExpenseClaimsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" ExpenseClaims 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a ExpenseClaims"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_ExpenseClaims' 62 | /// 63 | [Fact] 64 | public void _ExpenseClaimsTest() 65 | { 66 | // TODO unit test for the property '_ExpenseClaims' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/HistoryRecordsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing HistoryRecords 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class HistoryRecordsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for HistoryRecords 36 | //private HistoryRecords instance; 37 | 38 | public HistoryRecordsTests() 39 | { 40 | // TODO uncomment below to create an instance of HistoryRecords 41 | //instance = new HistoryRecords(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of HistoryRecords 51 | /// 52 | [Fact] 53 | public void HistoryRecordsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" HistoryRecords 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a HistoryRecords"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_HistoryRecords' 62 | /// 63 | [Fact] 64 | public void _HistoryRecordsTest() 65 | { 66 | // TODO unit test for the property '_HistoryRecords' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/InvoiceReminderTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing InvoiceReminder 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class InvoiceReminderTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for InvoiceReminder 36 | //private InvoiceReminder instance; 37 | 38 | public InvoiceReminderTests() 39 | { 40 | // TODO uncomment below to create an instance of InvoiceReminder 41 | //instance = new InvoiceReminder(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of InvoiceReminder 51 | /// 52 | [Fact] 53 | public void InvoiceReminderInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" InvoiceReminder 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a InvoiceReminder"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property 'Enabled' 62 | /// 63 | [Fact] 64 | public void EnabledTest() 65 | { 66 | // TODO unit test for the property 'Enabled' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/InvoiceRemindersTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing InvoiceReminders 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class InvoiceRemindersTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for InvoiceReminders 36 | //private InvoiceReminders instance; 37 | 38 | public InvoiceRemindersTests() 39 | { 40 | // TODO uncomment below to create an instance of InvoiceReminders 41 | //instance = new InvoiceReminders(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of InvoiceReminders 51 | /// 52 | [Fact] 53 | public void InvoiceRemindersInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" InvoiceReminders 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a InvoiceReminders"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_InvoiceReminders' 62 | /// 63 | [Fact] 64 | public void _InvoiceRemindersTest() 65 | { 66 | // TODO unit test for the property '_InvoiceReminders' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/InvoicesTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing Invoices 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class InvoicesTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for Invoices 36 | //private Invoices instance; 37 | 38 | public InvoicesTests() 39 | { 40 | // TODO uncomment below to create an instance of Invoices 41 | //instance = new Invoices(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of Invoices 51 | /// 52 | [Fact] 53 | public void InvoicesInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" Invoices 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a Invoices"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_Invoices' 62 | /// 63 | [Fact] 64 | public void _InvoicesTest() 65 | { 66 | // TODO unit test for the property '_Invoices' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/ItemsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing Items 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class ItemsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for Items 36 | //private Items instance; 37 | 38 | public ItemsTests() 39 | { 40 | // TODO uncomment below to create an instance of Items 41 | //instance = new Items(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of Items 51 | /// 52 | [Fact] 53 | public void ItemsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" Items 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a Items"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_Items' 62 | /// 63 | [Fact] 64 | public void _ItemsTest() 65 | { 66 | // TODO unit test for the property '_Items' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/JournalsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing Journals 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class JournalsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for Journals 36 | //private Journals instance; 37 | 38 | public JournalsTests() 39 | { 40 | // TODO uncomment below to create an instance of Journals 41 | //instance = new Journals(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of Journals 51 | /// 52 | [Fact] 53 | public void JournalsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" Journals 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a Journals"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_Journals' 62 | /// 63 | [Fact] 64 | public void _JournalsTest() 65 | { 66 | // TODO unit test for the property '_Journals' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/LineAmountTypesTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing LineAmountTypes 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class LineAmountTypesTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for LineAmountTypes 36 | //private LineAmountTypes instance; 37 | 38 | public LineAmountTypesTests() 39 | { 40 | // TODO uncomment below to create an instance of LineAmountTypes 41 | //instance = new LineAmountTypes(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of LineAmountTypes 51 | /// 52 | [Fact] 53 | public void LineAmountTypesInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" LineAmountTypes 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a LineAmountTypes"); 57 | } 58 | 59 | 60 | 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/ManualJournalsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing ManualJournals 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class ManualJournalsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for ManualJournals 36 | //private ManualJournals instance; 37 | 38 | public ManualJournalsTests() 39 | { 40 | // TODO uncomment below to create an instance of ManualJournals 41 | //instance = new ManualJournals(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of ManualJournals 51 | /// 52 | [Fact] 53 | public void ManualJournalsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" ManualJournals 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a ManualJournals"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_ManualJournals' 62 | /// 63 | [Fact] 64 | public void _ManualJournalsTest() 65 | { 66 | // TODO unit test for the property '_ManualJournals' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/OnlineInvoiceTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing OnlineInvoice 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class OnlineInvoiceTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for OnlineInvoice 36 | //private OnlineInvoice instance; 37 | 38 | public OnlineInvoiceTests() 39 | { 40 | // TODO uncomment below to create an instance of OnlineInvoice 41 | //instance = new OnlineInvoice(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of OnlineInvoice 51 | /// 52 | [Fact] 53 | public void OnlineInvoiceInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" OnlineInvoice 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a OnlineInvoice"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property 'OnlineInvoiceUrl' 62 | /// 63 | [Fact] 64 | public void OnlineInvoiceUrlTest() 65 | { 66 | // TODO unit test for the property 'OnlineInvoiceUrl' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/OnlineInvoicesTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing OnlineInvoices 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class OnlineInvoicesTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for OnlineInvoices 36 | //private OnlineInvoices instance; 37 | 38 | public OnlineInvoicesTests() 39 | { 40 | // TODO uncomment below to create an instance of OnlineInvoices 41 | //instance = new OnlineInvoices(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of OnlineInvoices 51 | /// 52 | [Fact] 53 | public void OnlineInvoicesInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" OnlineInvoices 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a OnlineInvoices"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_OnlineInvoices' 62 | /// 63 | [Fact] 64 | public void _OnlineInvoicesTest() 65 | { 66 | // TODO unit test for the property '_OnlineInvoices' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/OrganisationsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing Organisations 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class OrganisationsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for Organisations 36 | //private Organisations instance; 37 | 38 | public OrganisationsTests() 39 | { 40 | // TODO uncomment below to create an instance of Organisations 41 | //instance = new Organisations(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of Organisations 51 | /// 52 | [Fact] 53 | public void OrganisationsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" Organisations 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a Organisations"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_Organisations' 62 | /// 63 | [Fact] 64 | public void _OrganisationsTest() 65 | { 66 | // TODO unit test for the property '_Organisations' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/OverpaymentsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing Overpayments 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class OverpaymentsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for Overpayments 36 | //private Overpayments instance; 37 | 38 | public OverpaymentsTests() 39 | { 40 | // TODO uncomment below to create an instance of Overpayments 41 | //instance = new Overpayments(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of Overpayments 51 | /// 52 | [Fact] 53 | public void OverpaymentsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" Overpayments 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a Overpayments"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_Overpayments' 62 | /// 63 | [Fact] 64 | public void _OverpaymentsTest() 65 | { 66 | // TODO unit test for the property '_Overpayments' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/PaymentServicesTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing PaymentServices 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class PaymentServicesTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for PaymentServices 36 | //private PaymentServices instance; 37 | 38 | public PaymentServicesTests() 39 | { 40 | // TODO uncomment below to create an instance of PaymentServices 41 | //instance = new PaymentServices(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of PaymentServices 51 | /// 52 | [Fact] 53 | public void PaymentServicesInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" PaymentServices 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a PaymentServices"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_PaymentServices' 62 | /// 63 | [Fact] 64 | public void _PaymentServicesTest() 65 | { 66 | // TODO unit test for the property '_PaymentServices' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/PaymentTermTypeTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing PaymentTermType 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class PaymentTermTypeTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for PaymentTermType 36 | //private PaymentTermType instance; 37 | 38 | public PaymentTermTypeTests() 39 | { 40 | // TODO uncomment below to create an instance of PaymentTermType 41 | //instance = new PaymentTermType(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of PaymentTermType 51 | /// 52 | [Fact] 53 | public void PaymentTermTypeInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" PaymentTermType 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a PaymentTermType"); 57 | } 58 | 59 | 60 | 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/PaymentsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing Payments 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class PaymentsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for Payments 36 | //private Payments instance; 37 | 38 | public PaymentsTests() 39 | { 40 | // TODO uncomment below to create an instance of Payments 41 | //instance = new Payments(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of Payments 51 | /// 52 | [Fact] 53 | public void PaymentsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" Payments 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a Payments"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_Payments' 62 | /// 63 | [Fact] 64 | public void _PaymentsTest() 65 | { 66 | // TODO unit test for the property '_Payments' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/PrepaymentsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing Prepayments 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class PrepaymentsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for Prepayments 36 | //private Prepayments instance; 37 | 38 | public PrepaymentsTests() 39 | { 40 | // TODO uncomment below to create an instance of Prepayments 41 | //instance = new Prepayments(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of Prepayments 51 | /// 52 | [Fact] 53 | public void PrepaymentsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" Prepayments 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a Prepayments"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_Prepayments' 62 | /// 63 | [Fact] 64 | public void _PrepaymentsTest() 65 | { 66 | // TODO unit test for the property '_Prepayments' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/PurchaseOrdersTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing PurchaseOrders 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class PurchaseOrdersTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for PurchaseOrders 36 | //private PurchaseOrders instance; 37 | 38 | public PurchaseOrdersTests() 39 | { 40 | // TODO uncomment below to create an instance of PurchaseOrders 41 | //instance = new PurchaseOrders(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of PurchaseOrders 51 | /// 52 | [Fact] 53 | public void PurchaseOrdersInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" PurchaseOrders 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a PurchaseOrders"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_PurchaseOrders' 62 | /// 63 | [Fact] 64 | public void _PurchaseOrdersTest() 65 | { 66 | // TODO unit test for the property '_PurchaseOrders' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/QuoteStatusCodesTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing QuoteStatusCodes 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class QuoteStatusCodesTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for QuoteStatusCodes 36 | //private QuoteStatusCodes instance; 37 | 38 | public QuoteStatusCodesTests() 39 | { 40 | // TODO uncomment below to create an instance of QuoteStatusCodes 41 | //instance = new QuoteStatusCodes(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of QuoteStatusCodes 51 | /// 52 | [Fact] 53 | public void QuoteStatusCodesInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" QuoteStatusCodes 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a QuoteStatusCodes"); 57 | } 58 | 59 | 60 | 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/QuotesTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing Quotes 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class QuotesTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for Quotes 36 | //private Quotes instance; 37 | 38 | public QuotesTests() 39 | { 40 | // TODO uncomment below to create an instance of Quotes 41 | //instance = new Quotes(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of Quotes 51 | /// 52 | [Fact] 53 | public void QuotesInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" Quotes 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a Quotes"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_Quotes' 62 | /// 63 | [Fact] 64 | public void _QuotesTest() 65 | { 66 | // TODO unit test for the property '_Quotes' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/ReceiptsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing Receipts 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class ReceiptsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for Receipts 36 | //private Receipts instance; 37 | 38 | public ReceiptsTests() 39 | { 40 | // TODO uncomment below to create an instance of Receipts 41 | //instance = new Receipts(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of Receipts 51 | /// 52 | [Fact] 53 | public void ReceiptsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" Receipts 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a Receipts"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_Receipts' 62 | /// 63 | [Fact] 64 | public void _ReceiptsTest() 65 | { 66 | // TODO unit test for the property '_Receipts' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/RepeatingInvoicesTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing RepeatingInvoices 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class RepeatingInvoicesTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for RepeatingInvoices 36 | //private RepeatingInvoices instance; 37 | 38 | public RepeatingInvoicesTests() 39 | { 40 | // TODO uncomment below to create an instance of RepeatingInvoices 41 | //instance = new RepeatingInvoices(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of RepeatingInvoices 51 | /// 52 | [Fact] 53 | public void RepeatingInvoicesInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" RepeatingInvoices 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a RepeatingInvoices"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_RepeatingInvoices' 62 | /// 63 | [Fact] 64 | public void _RepeatingInvoicesTest() 65 | { 66 | // TODO unit test for the property '_RepeatingInvoices' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/ReportWithRowsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing ReportWithRows 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class ReportWithRowsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for ReportWithRows 36 | //private ReportWithRows instance; 37 | 38 | public ReportWithRowsTests() 39 | { 40 | // TODO uncomment below to create an instance of ReportWithRows 41 | //instance = new ReportWithRows(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of ReportWithRows 51 | /// 52 | [Fact] 53 | public void ReportWithRowsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" ReportWithRows 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a ReportWithRows"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property 'Reports' 62 | /// 63 | [Fact] 64 | public void ReportsTest() 65 | { 66 | // TODO unit test for the property 'Reports' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/ReportsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing Reports 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class ReportsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for Reports 36 | //private Reports instance; 37 | 38 | public ReportsTests() 39 | { 40 | // TODO uncomment below to create an instance of Reports 41 | //instance = new Reports(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of Reports 51 | /// 52 | [Fact] 53 | public void ReportsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" Reports 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a Reports"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_Reports' 62 | /// 63 | [Fact] 64 | public void _ReportsTest() 65 | { 66 | // TODO unit test for the property '_Reports' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/RequestEmptyTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing RequestEmpty 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class RequestEmptyTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for RequestEmpty 36 | //private RequestEmpty instance; 37 | 38 | public RequestEmptyTests() 39 | { 40 | // TODO uncomment below to create an instance of RequestEmpty 41 | //instance = new RequestEmpty(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of RequestEmpty 51 | /// 52 | [Fact] 53 | public void RequestEmptyInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" RequestEmpty 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a RequestEmpty"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property 'Status' 62 | /// 63 | [Fact] 64 | public void StatusTest() 65 | { 66 | // TODO unit test for the property 'Status' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/RowTypeTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing RowType 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class RowTypeTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for RowType 36 | //private RowType instance; 37 | 38 | public RowTypeTests() 39 | { 40 | // TODO uncomment below to create an instance of RowType 41 | //instance = new RowType(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of RowType 51 | /// 52 | [Fact] 53 | public void RowTypeInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" RowType 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a RowType"); 57 | } 58 | 59 | 60 | 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/TaxRatesTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing TaxRates 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class TaxRatesTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for TaxRates 36 | //private TaxRates instance; 37 | 38 | public TaxRatesTests() 39 | { 40 | // TODO uncomment below to create an instance of TaxRates 41 | //instance = new TaxRates(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of TaxRates 51 | /// 52 | [Fact] 53 | public void TaxRatesInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" TaxRates 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a TaxRates"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_TaxRates' 62 | /// 63 | [Fact] 64 | public void _TaxRatesTest() 65 | { 66 | // TODO unit test for the property '_TaxRates' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/TaxTypeTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing TaxType 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class TaxTypeTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for TaxType 36 | //private TaxType instance; 37 | 38 | public TaxTypeTests() 39 | { 40 | // TODO uncomment below to create an instance of TaxType 41 | //instance = new TaxType(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of TaxType 51 | /// 52 | [Fact] 53 | public void TaxTypeInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" TaxType 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a TaxType"); 57 | } 58 | 59 | 60 | 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/TimeZoneTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing TimeZone 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class TimeZoneTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for TimeZone 36 | //private TimeZone instance; 37 | 38 | public TimeZoneTests() 39 | { 40 | // TODO uncomment below to create an instance of TimeZone 41 | //instance = new TimeZone(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of TimeZone 51 | /// 52 | [Fact] 53 | public void TimeZoneInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" TimeZone 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a TimeZone"); 57 | } 58 | 59 | 60 | 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/TrackingOptionsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing TrackingOptions 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class TrackingOptionsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for TrackingOptions 36 | //private TrackingOptions instance; 37 | 38 | public TrackingOptionsTests() 39 | { 40 | // TODO uncomment below to create an instance of TrackingOptions 41 | //instance = new TrackingOptions(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of TrackingOptions 51 | /// 52 | [Fact] 53 | public void TrackingOptionsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" TrackingOptions 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a TrackingOptions"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property 'Options' 62 | /// 63 | [Fact] 64 | public void OptionsTest() 65 | { 66 | // TODO unit test for the property 'Options' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/UsersTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing Users 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class UsersTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for Users 36 | //private Users instance; 37 | 38 | public UsersTests() 39 | { 40 | // TODO uncomment below to create an instance of Users 41 | //instance = new Users(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of Users 51 | /// 52 | [Fact] 53 | public void UsersInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" Users 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a Users"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_Users' 62 | /// 63 | [Fact] 64 | public void _UsersTest() 65 | { 66 | // TODO unit test for the property '_Users' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/ValidationErrorTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: 2.0.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 25 | { 26 | /// 27 | /// Class for testing ValidationError 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class ValidationErrorTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for ValidationError 36 | //private ValidationError instance; 37 | 38 | public ValidationErrorTests() 39 | { 40 | // TODO uncomment below to create an instance of ValidationError 41 | //instance = new ValidationError(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of ValidationError 51 | /// 52 | [Fact] 53 | public void ValidationErrorInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" ValidationError 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a ValidationError"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property 'Message' 62 | /// 63 | [Fact] 64 | public void MessageTest() 65 | { 66 | // TODO unit test for the property 'Message' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Accounting/XeroConfiguration.cs: -------------------------------------------------------------------------------- 1 | 2 | using System; 3 | 4 | namespace Xero.NetStandard.OAuth2.Test.Model.Accounting 5 | { 6 | public class XeroConfiguration 7 | { 8 | public string AccountingBaseUrl { get; set; } 9 | public string BankfeedsBaseUrl { get; set; } 10 | public string PayrollAuBaseUrl { get; set; } 11 | } 12 | } -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/Bankfeeds/StatementLineTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Bank Feeds API 3 | * 4 | * This specifing endpoints Xero Bank feeds API 5 | * 6 | * The version of the OpenAPI document: 2.6.1 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model.Bankfeeds; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.Bankfeeds 25 | { 26 | /// 27 | /// Class for testing StatementLine 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class StatementLineTests : IDisposable 34 | { 35 | public StatementLineTests() 36 | { 37 | // TODO uncomment below to create an instance of StatementLine 38 | //instance = new StatementLine(); 39 | } 40 | 41 | public void Dispose() 42 | { 43 | // Cleanup when everything is done. 44 | } 45 | 46 | /// 47 | /// Test the property 'Amount' 48 | /// 49 | [Theory] 50 | [InlineData("20.00")] 51 | [InlineData("20")] 52 | public void Amount_ValidInputs_Deserialises(string input) 53 | { 54 | JsonDoc.Assert( 55 | input: new JsonDoc.Number(nameof(StatementLine.Amount), input), 56 | toProperty: (x) => x.Amount, 57 | shouldBe: 20m 58 | ); 59 | } 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/PayrollAu/DeductionTypeTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * The version of the OpenAPI document: 2.8.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model.PayrollAu; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.PayrollAu 25 | { 26 | /// 27 | /// Class for testing DeductionType 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class DeductionTypeTests : IDisposable 34 | { 35 | public DeductionTypeTests() 36 | { 37 | // TODO uncomment below to create an instance of DeductionType 38 | //instance = new DeductionType(); 39 | } 40 | 41 | public void Dispose() 42 | { 43 | // Cleanup when everything is done. 44 | } 45 | 46 | /// 47 | /// Test the property 'DeductionCategory' 48 | /// 49 | [Theory] 50 | [InlineData("NONE", DeductionType.DeductionCategoryEnum.NONE)] 51 | [InlineData("UNIONFEES", DeductionType.DeductionCategoryEnum.UNIONFEES)] 52 | [InlineData("WORKPLACEGIVING", DeductionType.DeductionCategoryEnum.WORKPLACEGIVING)] 53 | public void DeductionCategory_ValidInputs_Deserialises(string input, DeductionType.DeductionCategoryEnum expected) 54 | { 55 | JsonDoc.Assert( 56 | input: new JsonDoc.String(nameof(DeductionType.DeductionCategory), input), 57 | toProperty: (x) => x.DeductionCategory, 58 | shouldBe: expected 59 | ); 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/PayrollAu/HomeAddressTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * The version of the OpenAPI document: 2.8.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model.PayrollAu; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.PayrollAu 25 | { 26 | /// 27 | /// Class for testing HomeAddress 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class HomeAddressTests : IDisposable 34 | { 35 | public HomeAddressTests() 36 | { 37 | // TODO uncomment below to create an instance of HomeAddress 38 | //instance = new HomeAddress(); 39 | } 40 | 41 | public void Dispose() 42 | { 43 | // Cleanup when everything is done. 44 | } 45 | 46 | /// 47 | /// Test the property 'Region' 48 | /// 49 | [Theory] 50 | [InlineData("ACT", State.ACT)] 51 | [InlineData("NSW", State.NSW)] 52 | [InlineData("NT", State.NT)] 53 | [InlineData("QLD", State.QLD)] 54 | [InlineData("SA", State.SA)] 55 | [InlineData("TAS", State.TAS)] 56 | [InlineData("VIC", State.VIC)] 57 | [InlineData("WA", State.WA)] 58 | public void RegionTest(string input, State expected) 59 | { 60 | JsonDoc.Assert( 61 | input: new JsonDoc.String(nameof(HomeAddress.Region), input), 62 | toProperty: x => x.Region, 63 | shouldBe: expected 64 | ); 65 | } 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/PayrollAu/LeaveAccrualLineTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * The version of the OpenAPI document: 2.8.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model.PayrollAu; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.PayrollAu 25 | { 26 | /// 27 | /// Class for testing LeaveAccrualLine 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class LeaveAccrualLineTests : IDisposable 34 | { 35 | public void Dispose() 36 | { 37 | // Cleanup when everything is done. 38 | } 39 | /// 40 | /// Test the property 'NumberOfUnits' 41 | /// 42 | [Theory] 43 | [InlineData("20.00")] 44 | [InlineData("20")] 45 | public void NumberOfUnitsTest(string input) 46 | { 47 | JsonDoc.Assert( 48 | input: new JsonDoc.Number(nameof(LeaveAccrualLine.NumberOfUnits), input), 49 | toProperty: x => x.NumberOfUnits, 50 | shouldBe: 20 51 | ); 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/PayrollAu/LeaveBalanceTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * The version of the OpenAPI document: 2.8.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model.PayrollAu; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.PayrollAu 25 | { 26 | /// 27 | /// Class for testing LeaveBalance 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class LeaveBalanceTests : IDisposable 34 | { 35 | public void Dispose() 36 | { 37 | // Cleanup when everything is done. 38 | } 39 | /// 40 | /// Test the property 'NumberOfUnits' 41 | /// 42 | [Theory] 43 | [InlineData("20.00")] 44 | [InlineData("20")] 45 | public void NumberOfUnitsTest(string input) 46 | { 47 | JsonDoc.Assert( 48 | input: new JsonDoc.Number(nameof(LeaveBalance.NumberOfUnits), input), 49 | toProperty: x => x.NumberOfUnits, 50 | shouldBe: 20 51 | ); 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/PayrollAu/LeaveEarningsLineTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * The version of the OpenAPI document: 2.8.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model.PayrollAu; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.PayrollAu 25 | { 26 | /// 27 | /// Class for testing LeaveEarningsLine 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class LeaveEarningsLineTests : IDisposable 34 | { 35 | public void Dispose() 36 | { 37 | // Cleanup when everything is done. 38 | } 39 | /// 40 | /// Test the property 'RatePerUnit' 41 | /// 42 | [Theory] 43 | [InlineData("20.00")] 44 | [InlineData("20")] 45 | public void RatePerUnitTest(string input) 46 | { 47 | JsonDoc.Assert( 48 | input: new JsonDoc.Number(nameof(LeaveEarningsLine.RatePerUnit), input), 49 | toProperty: x => x.RatePerUnit, 50 | shouldBe: 20 51 | ); 52 | } 53 | /// 54 | /// Test the property 'NumberOfUnits' 55 | /// 56 | [Theory] 57 | [InlineData("20.00")] 58 | [InlineData("20")] 59 | public void NumberOfUnitsTest(string input) 60 | { 61 | JsonDoc.Assert( 62 | input: new JsonDoc.Number(nameof(LeaveEarningsLine.NumberOfUnits), input), 63 | toProperty: x => x.NumberOfUnits, 64 | shouldBe: 20 65 | ); 66 | } 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/PayrollAu/LeaveLinesTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * The version of the OpenAPI document: 2.8.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model.PayrollAu; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.PayrollAu 25 | { 26 | /// 27 | /// Class for testing LeaveLines 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class LeaveLinesTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for LeaveLines 36 | //private LeaveLines instance; 37 | 38 | public LeaveLinesTests() 39 | { 40 | // TODO uncomment below to create an instance of LeaveLines 41 | //instance = new LeaveLines(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of LeaveLines 51 | /// 52 | [Fact] 53 | public void LeaveLinesInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" LeaveLines 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a LeaveLines"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property 'Employee' 62 | /// 63 | [Fact] 64 | public void EmployeeTest() 65 | { 66 | // TODO unit test for the property 'Employee' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/PayrollAu/LeaveTypeTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * The version of the OpenAPI document: 2.8.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model.PayrollAu; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.PayrollAu 25 | { 26 | /// 27 | /// Class for testing LeaveType 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class LeaveTypeTests : IDisposable 34 | { 35 | public void Dispose() 36 | { 37 | // Cleanup when everything is done. 38 | } 39 | 40 | /// 41 | /// Test the property 'NormalEntitlement' 42 | /// 43 | [Theory] 44 | [InlineData("20.00")] 45 | [InlineData("20")] 46 | public void NormalEntitlementTest(string input) 47 | { 48 | JsonDoc.Assert( 49 | input: new JsonDoc.Number(nameof(LeaveType.NormalEntitlement), input), 50 | toProperty: x => x.NormalEntitlement, 51 | shouldBe: 20 52 | ); 53 | } 54 | /// 55 | /// Test the property 'LeaveLoadingRate' 56 | /// 57 | [Theory] 58 | [InlineData("20.00")] 59 | [InlineData("20")] 60 | public void LeaveLoadingRateTest(string input) 61 | { 62 | JsonDoc.Assert( 63 | input: new JsonDoc.Number(nameof(LeaveType.LeaveLoadingRate), input), 64 | toProperty: x => x.LeaveLoadingRate, 65 | shouldBe: 20 66 | ); 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/PayrollAu/PayrollCalendarTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * The version of the OpenAPI document: 2.8.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model.PayrollAu; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.PayrollAu 25 | { 26 | /// 27 | /// Class for testing PayrollCalendar 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class PayrollCalendarTests : IDisposable 34 | { 35 | public void Dispose() 36 | { 37 | // Cleanup when everything is done. 38 | } 39 | 40 | /// 41 | /// Test the property 'CalendarType' 42 | /// 43 | [Theory] 44 | [InlineData("FORTNIGHTLY", CalendarType.FORTNIGHTLY)] 45 | [InlineData("TWICEMONTHLY", CalendarType.TWICEMONTHLY)] 46 | [InlineData("FOURWEEKLY", CalendarType.FOURWEEKLY)] 47 | [InlineData("MONTHLY", CalendarType.MONTHLY)] 48 | [InlineData("QUARTERLY", CalendarType.QUARTERLY)] 49 | [InlineData("WEEKLY", CalendarType.WEEKLY)] 50 | public void CalendarTypeTest(string input, CalendarType expected) 51 | { 52 | JsonDoc.Assert( 53 | input: new JsonDoc.String(nameof(PayrollCalendar.CalendarType), input), 54 | toProperty: x => x.CalendarType, 55 | shouldBe: expected 56 | ); 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/PayrollAu/ReimbursementLineTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * The version of the OpenAPI document: 2.8.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model.PayrollAu; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.PayrollAu 25 | { 26 | /// 27 | /// Class for testing ReimbursementLine 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class ReimbursementLineTests : IDisposable 34 | { 35 | public void Dispose() 36 | { 37 | // Cleanup when everything is done. 38 | } 39 | 40 | /// 41 | /// Test the property 'Amount' 42 | /// 43 | [Theory] 44 | [InlineData("20.00")] 45 | [InlineData("20")] 46 | public void AmountTest(string input) 47 | { 48 | JsonDoc.Assert( 49 | input: new JsonDoc.Number(nameof(ReimbursementLine.Amount), input), 50 | toProperty: x => x.Amount, 51 | shouldBe: 20 52 | ); 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/PayrollAu/SettingsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * The version of the OpenAPI document: 2.8.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model.PayrollAu; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.PayrollAu 25 | { 26 | /// 27 | /// Class for testing Settings 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class SettingsTests : IDisposable 34 | { 35 | public void Dispose() 36 | { 37 | // Cleanup when everything is done. 38 | } 39 | 40 | /// 41 | /// Test the property 'DaysInPayrollYear' 42 | /// 43 | [Fact] 44 | public void DaysInPayrollYearTest() 45 | { 46 | JsonDoc.Assert( 47 | input: new JsonDoc.Number(nameof(Settings.DaysInPayrollYear), "20"), 48 | toProperty: x => x.DaysInPayrollYear, 49 | shouldBe: 20 50 | ); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/PayrollAu/SuperFundTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * The version of the OpenAPI document: 2.8.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model.PayrollAu; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.PayrollAu 25 | { 26 | /// 27 | /// Class for testing SuperFund 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class SuperFundTests : IDisposable 34 | { 35 | public void Dispose() 36 | { 37 | // Cleanup when everything is done. 38 | } 39 | 40 | /// 41 | /// Test the property 'Type' 42 | /// 43 | [Theory] 44 | [InlineData("REGULATED", SuperFundType.REGULATED)] 45 | [InlineData("SMSF", SuperFundType.SMSF)] 46 | public void TypeTest(string input, SuperFundType expected) 47 | { 48 | JsonDoc.Assert( 49 | input: new JsonDoc.String(nameof(SuperFund.Type), input), 50 | toProperty: x => x.Type, 51 | shouldBe: expected 52 | ); 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/PayrollAu/TimesheetLineTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * The version of the OpenAPI document: 2.8.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model.PayrollAu; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.PayrollAu 25 | { 26 | /// 27 | /// Class for testing TimesheetLine 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class TimesheetLineTests : IDisposable 34 | { 35 | public void Dispose() 36 | { 37 | // Cleanup when everything is done. 38 | } 39 | 40 | /// 41 | /// Test the property 'NumberOfUnits' 42 | /// 43 | [Fact] 44 | public void NumberOfUnitsTest() 45 | { 46 | var response = new RestSharp.RestResponse(); 47 | response.Content = $@"{{ 48 | ""NumberOfUnits"": [ 49 | 20.00, 50 | 20, 51 | 123.123123 52 | ] 53 | }}"; 54 | 55 | var deserializer = new CustomJsonCodec(new Configuration()); 56 | var actual = deserializer.Deserialize(response); 57 | 58 | Assert.Equal(20f, actual.NumberOfUnits[0]); 59 | Assert.Equal(20f, actual.NumberOfUnits[1]); 60 | Assert.Equal(123.123123, actual.NumberOfUnits[2], precision: 6); 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Model/PayrollNz/AccountsTests.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll NZ 3 | * 4 | * This is the Xero Payroll API for orgs in the NZ region. 5 | * 6 | * The version of the OpenAPI document: 2.7.0 7 | * Contact: api@xero.com 8 | * Generated by: https://github.com/openapitools/openapi-generator.git 9 | */ 10 | 11 | 12 | using Xunit; 13 | 14 | using System; 15 | using System.Linq; 16 | using System.IO; 17 | using System.Collections.Generic; 18 | using Xero.NetStandard.OAuth2.Api; 19 | using Xero.NetStandard.OAuth2.Model.PayrollNz; 20 | using Xero.NetStandard.OAuth2.Client; 21 | using System.Reflection; 22 | using Newtonsoft.Json; 23 | 24 | namespace Xero.NetStandard.OAuth2.Test.Model.PayrollNz 25 | { 26 | /// 27 | /// Class for testing Accounts 28 | /// 29 | /// 30 | /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). 31 | /// Please update the test case below to test the model. 32 | /// 33 | public class AccountsTests : IDisposable 34 | { 35 | // TODO uncomment below to declare an instance variable for Accounts 36 | //private Accounts instance; 37 | 38 | public AccountsTests() 39 | { 40 | // TODO uncomment below to create an instance of Accounts 41 | //instance = new Accounts(); 42 | } 43 | 44 | public void Dispose() 45 | { 46 | // Cleanup when everything is done. 47 | } 48 | 49 | /// 50 | /// Test an instance of Accounts 51 | /// 52 | [Fact] 53 | public void AccountsInstanceTest() 54 | { 55 | // TODO uncomment below to test "IsInstanceOfType" Accounts 56 | //Assert.IsInstanceOfType (instance, "variable 'instance' is a Accounts"); 57 | } 58 | 59 | 60 | /// 61 | /// Test the property '_Accounts' 62 | /// 63 | [Fact] 64 | public void _AccountsTest() 65 | { 66 | // TODO unit test for the property '_Accounts' 67 | } 68 | 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/Xero.NetStandard.OAuth2.Test.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | false 5 | Properties 6 | Xero.NetStandard.OAuth2.Test 7 | Xero.NetStandard.OAuth2.Test 8 | netcoreapp3.1 9 | false 10 | 512 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | {18E34663-C33F-4443-9638-A2B55E1435B9} 31 | Xero.NetStandard.OAuth2 32 | 33 | 34 | Always 35 | 36 | 37 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2.Test/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "XeroConfiguration": { 3 | "AccountingBaseUrl": "https://xero-accounting.getsandbox.com:443/api.xro/2.0", 4 | "BankfeedsBaseUrl": "https://xero-bank-feeds.getsandbox.com:443/bankfeeds.xro/1.0", 5 | "PayrollAuBaseUrl": "https://xero-payroll-au.getsandbox.com:443/payroll.xro/1.0" 6 | } 7 | } -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Client/ExceptionFactory.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | 13 | namespace Xero.NetStandard.OAuth2.Client 14 | { 15 | /// 16 | /// A delegate to ExceptionFactory method 17 | /// 18 | /// Method name 19 | /// Response 20 | /// Exceptions 21 | public delegate Exception ExceptionFactory(string methodName, IApiResponse response); 22 | } 23 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Client/GlobalConfiguration.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System.Collections.Generic; 12 | 13 | namespace Xero.NetStandard.OAuth2.Client 14 | { 15 | /// 16 | /// provides a compile-time extension point for globally configuring 17 | /// API Clients. 18 | /// 19 | /// 20 | /// A customized implementation via partial class may reside in another file and may 21 | /// be excluded from automatic generation via a .openapi-generator-ignore file. 22 | /// 23 | public partial class GlobalConfiguration : Configuration 24 | { 25 | #region Private Members 26 | 27 | private static readonly object GlobalConfigSync = new { }; 28 | private static IReadableConfiguration _globalConfiguration; 29 | 30 | #endregion Private Members 31 | 32 | #region Constructors 33 | 34 | /// 35 | private GlobalConfiguration() 36 | { 37 | } 38 | 39 | /// 40 | public GlobalConfiguration(IDictionary defaultHeader, IDictionary apiKey, IDictionary apiKeyPrefix, string basePath = "http://localhost:3000/api") : base(defaultHeader, apiKey, apiKeyPrefix, basePath) 41 | { 42 | } 43 | 44 | static GlobalConfiguration() 45 | { 46 | Instance = new GlobalConfiguration(); 47 | } 48 | 49 | #endregion Constructors 50 | 51 | /// 52 | /// Gets or sets the default Configuration. 53 | /// 54 | /// Configuration. 55 | public static IReadableConfiguration Instance 56 | { 57 | get { return _globalConfiguration; } 58 | set 59 | { 60 | lock (GlobalConfigSync) 61 | { 62 | _globalConfiguration = value; 63 | } 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Client/HttpMethod.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | namespace Xero.NetStandard.OAuth2.Client 12 | { 13 | /// 14 | /// Http methods supported by swagger 15 | /// 16 | public enum HttpMethod 17 | { 18 | /// HTTP GET request. 19 | Get, 20 | /// HTTP POST request. 21 | Post, 22 | /// HTTP PUT request. 23 | Put, 24 | /// HTTP DELETE request. 25 | Delete, 26 | /// HTTP HEAD request. 27 | Head, 28 | /// HTTP OPTIONS request. 29 | Options, 30 | /// HTTP PATCH request. 31 | Patch 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Client/IApiAccessor.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | 13 | namespace Xero.NetStandard.OAuth2.Client 14 | { 15 | /// 16 | /// Represents configuration aspects required to interact with the API endpoints. 17 | /// 18 | public interface IApiAccessor 19 | { 20 | /// 21 | /// Gets or sets the configuration object 22 | /// 23 | /// An instance of the Configuration 24 | IReadableConfiguration Configuration {get; set;} 25 | 26 | /// 27 | /// Gets the base path of the API client. 28 | /// 29 | /// The base path 30 | String GetBasePath(); 31 | 32 | /// 33 | /// Provides a factory method hook for the creation of exceptions. 34 | /// 35 | ExceptionFactory ExceptionFactory { get; set; } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Client/OpenAPIDateConverter.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | using Newtonsoft.Json.Converters; 11 | 12 | namespace Xero.NetStandard.OAuth2.Client 13 | { 14 | /// 15 | /// Formatter for 'date' openapi formats ss defined by full-date - RFC3339 16 | /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types 17 | /// 18 | public class OpenAPIDateConverter : IsoDateTimeConverter 19 | { 20 | /// 21 | /// Initializes a new instance of the class. 22 | /// 23 | public OpenAPIDateConverter() 24 | { 25 | // full-date = date-fullyear "-" date-month "-" date-mday 26 | DateTimeFormat = "yyyy-MM-dd"; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/Accounting/LineAmountTypes.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.Accounting 26 | { 27 | /// 28 | /// Line amounts are exclusive of tax by default if you don’t specify this element. See Line Amount Types 29 | /// 30 | /// Line amounts are exclusive of tax by default if you don’t specify this element. See Line Amount Types 31 | 32 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 33 | 34 | public enum LineAmountTypes 35 | { 36 | /// 37 | /// Enum Exclusive for value: Exclusive 38 | /// 39 | [EnumMember(Value = "Exclusive")] 40 | Exclusive = 1, 41 | 42 | /// 43 | /// Enum Inclusive for value: Inclusive 44 | /// 45 | [EnumMember(Value = "Inclusive")] 46 | Inclusive = 2, 47 | 48 | /// 49 | /// Enum NoTax for value: NoTax 50 | /// 51 | [EnumMember(Value = "NoTax")] 52 | NoTax = 3 53 | 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/Accounting/PaymentTermType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.Accounting 26 | { 27 | /// 28 | /// Defines PaymentTermType 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum PaymentTermType 34 | { 35 | /// 36 | /// Enum DAYSAFTERBILLDATE for value: DAYSAFTERBILLDATE 37 | /// 38 | [EnumMember(Value = "DAYSAFTERBILLDATE")] 39 | DAYSAFTERBILLDATE = 1, 40 | 41 | /// 42 | /// Enum DAYSAFTERBILLMONTH for value: DAYSAFTERBILLMONTH 43 | /// 44 | [EnumMember(Value = "DAYSAFTERBILLMONTH")] 45 | DAYSAFTERBILLMONTH = 2, 46 | 47 | /// 48 | /// Enum OFCURRENTMONTH for value: OFCURRENTMONTH 49 | /// 50 | [EnumMember(Value = "OFCURRENTMONTH")] 51 | OFCURRENTMONTH = 3, 52 | 53 | /// 54 | /// Enum OFFOLLOWINGMONTH for value: OFFOLLOWINGMONTH 55 | /// 56 | [EnumMember(Value = "OFFOLLOWINGMONTH")] 57 | OFFOLLOWINGMONTH = 4 58 | 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/Accounting/QuoteLineAmountTypes.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.Accounting 26 | { 27 | /// 28 | /// Line amounts are exclusive of tax by default if you don’t specify this element. See Line Amount Types 29 | /// 30 | /// Line amounts are exclusive of tax by default if you don’t specify this element. See Line Amount Types 31 | 32 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 33 | 34 | public enum QuoteLineAmountTypes 35 | { 36 | /// 37 | /// Enum EXCLUSIVE for value: EXCLUSIVE 38 | /// 39 | [EnumMember(Value = "EXCLUSIVE")] 40 | EXCLUSIVE = 1, 41 | 42 | /// 43 | /// Enum INCLUSIVE for value: INCLUSIVE 44 | /// 45 | [EnumMember(Value = "INCLUSIVE")] 46 | INCLUSIVE = 2, 47 | 48 | /// 49 | /// Enum NOTAX for value: NOTAX 50 | /// 51 | [EnumMember(Value = "NOTAX")] 52 | NOTAX = 3 53 | 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/Accounting/QuoteStatusCodes.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.Accounting 26 | { 27 | /// 28 | /// The status of the quote. 29 | /// 30 | /// The status of the quote. 31 | 32 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 33 | 34 | public enum QuoteStatusCodes 35 | { 36 | /// 37 | /// Enum DRAFT for value: DRAFT 38 | /// 39 | [EnumMember(Value = "DRAFT")] 40 | DRAFT = 1, 41 | 42 | /// 43 | /// Enum SENT for value: SENT 44 | /// 45 | [EnumMember(Value = "SENT")] 46 | SENT = 2, 47 | 48 | /// 49 | /// Enum DECLINED for value: DECLINED 50 | /// 51 | [EnumMember(Value = "DECLINED")] 52 | DECLINED = 3, 53 | 54 | /// 55 | /// Enum ACCEPTED for value: ACCEPTED 56 | /// 57 | [EnumMember(Value = "ACCEPTED")] 58 | ACCEPTED = 4, 59 | 60 | /// 61 | /// Enum INVOICED for value: INVOICED 62 | /// 63 | [EnumMember(Value = "INVOICED")] 64 | INVOICED = 5, 65 | 66 | /// 67 | /// Enum DELETED for value: DELETED 68 | /// 69 | [EnumMember(Value = "DELETED")] 70 | DELETED = 6 71 | 72 | } 73 | 74 | } 75 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/Accounting/RowType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Accounting API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.Accounting 26 | { 27 | /// 28 | /// Defines RowType 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum RowType 34 | { 35 | /// 36 | /// Enum Header for value: Header 37 | /// 38 | [EnumMember(Value = "Header")] 39 | Header = 1, 40 | 41 | /// 42 | /// Enum Section for value: Section 43 | /// 44 | [EnumMember(Value = "Section")] 45 | Section = 2, 46 | 47 | /// 48 | /// Enum Row for value: Row 49 | /// 50 | [EnumMember(Value = "Row")] 51 | Row = 3, 52 | 53 | /// 54 | /// Enum SummaryRow for value: SummaryRow 55 | /// 56 | [EnumMember(Value = "SummaryRow")] 57 | SummaryRow = 4 58 | 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/Asset/AssetStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Assets API 3 | * 4 | * The Assets API exposes fixed asset related functions of the Xero Accounting application and can be used for a variety of purposes such as creating assets, retrieving asset valuations etc. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.Asset 26 | { 27 | /// 28 | /// See Asset Status Codes. 29 | /// 30 | /// See Asset Status Codes. 31 | 32 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 33 | 34 | public enum AssetStatus 35 | { 36 | /// 37 | /// Enum Draft for value: Draft 38 | /// 39 | [EnumMember(Value = "Draft")] 40 | Draft = 1, 41 | 42 | /// 43 | /// Enum Registered for value: Registered 44 | /// 45 | [EnumMember(Value = "Registered")] 46 | Registered = 2, 47 | 48 | /// 49 | /// Enum Disposed for value: Disposed 50 | /// 51 | [EnumMember(Value = "Disposed")] 52 | Disposed = 3 53 | 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/Asset/AssetStatusQueryParam.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Assets API 3 | * 4 | * The Assets API exposes fixed asset related functions of the Xero Accounting application and can be used for a variety of purposes such as creating assets, retrieving asset valuations etc. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.Asset 26 | { 27 | /// 28 | /// See Asset Status Codes. 29 | /// 30 | /// See Asset Status Codes. 31 | 32 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 33 | 34 | public enum AssetStatusQueryParam 35 | { 36 | /// 37 | /// Enum DRAFT for value: DRAFT 38 | /// 39 | [EnumMember(Value = "DRAFT")] 40 | DRAFT = 1, 41 | 42 | /// 43 | /// Enum REGISTERED for value: REGISTERED 44 | /// 45 | [EnumMember(Value = "REGISTERED")] 46 | REGISTERED = 2, 47 | 48 | /// 49 | /// Enum DISPOSED for value: DISPOSED 50 | /// 51 | [EnumMember(Value = "DISPOSED")] 52 | DISPOSED = 3 53 | 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/Bankfeeds/CreditDebitIndicator.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Bank Feeds API 3 | * 4 | * The Bank Feeds API is a closed API that is only available to financial institutions that have an established financial services partnership with Xero. If you're an existing financial services partner that wants access, contact your local Partner Manager. If you're a financial institution who wants to provide bank feeds to your business customers, contact us to become a financial services partner. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.Bankfeeds 26 | { 27 | /// 28 | /// If the statement balances are credit or debit, the CreditDebitIndicator should be specified from the perspective of the Customer. 29 | /// 30 | /// If the statement balances are credit or debit, the CreditDebitIndicator should be specified from the perspective of the Customer. 31 | 32 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 33 | 34 | public enum CreditDebitIndicator 35 | { 36 | /// 37 | /// Enum CREDIT for value: CREDIT 38 | /// 39 | [EnumMember(Value = "CREDIT")] 40 | CREDIT = 1, 41 | 42 | /// 43 | /// Enum DEBIT for value: DEBIT 44 | /// 45 | [EnumMember(Value = "DEBIT")] 46 | DEBIT = 2 47 | 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/CalendarType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines CalendarType 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum CalendarType 34 | { 35 | /// 36 | /// Enum WEEKLY for value: WEEKLY 37 | /// 38 | [EnumMember(Value = "WEEKLY")] 39 | WEEKLY = 1, 40 | 41 | /// 42 | /// Enum FORTNIGHTLY for value: FORTNIGHTLY 43 | /// 44 | [EnumMember(Value = "FORTNIGHTLY")] 45 | FORTNIGHTLY = 2, 46 | 47 | /// 48 | /// Enum FOURWEEKLY for value: FOURWEEKLY 49 | /// 50 | [EnumMember(Value = "FOURWEEKLY")] 51 | FOURWEEKLY = 3, 52 | 53 | /// 54 | /// Enum MONTHLY for value: MONTHLY 55 | /// 56 | [EnumMember(Value = "MONTHLY")] 57 | MONTHLY = 4, 58 | 59 | /// 60 | /// Enum TWICEMONTHLY for value: TWICEMONTHLY 61 | /// 62 | [EnumMember(Value = "TWICEMONTHLY")] 63 | TWICEMONTHLY = 5, 64 | 65 | /// 66 | /// Enum QUARTERLY for value: QUARTERLY 67 | /// 68 | [EnumMember(Value = "QUARTERLY")] 69 | QUARTERLY = 6 70 | 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/DeductionTypeCalculationType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines DeductionTypeCalculationType 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum DeductionTypeCalculationType 34 | { 35 | /// 36 | /// Enum FIXEDAMOUNT for value: FIXEDAMOUNT 37 | /// 38 | [EnumMember(Value = "FIXEDAMOUNT")] 39 | FIXEDAMOUNT = 1, 40 | 41 | /// 42 | /// Enum PRETAX for value: PRETAX 43 | /// 44 | [EnumMember(Value = "PRETAX")] 45 | PRETAX = 2, 46 | 47 | /// 48 | /// Enum POSTTAX for value: POSTTAX 49 | /// 50 | [EnumMember(Value = "POSTTAX")] 51 | POSTTAX = 3 52 | 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/EarningsRateCalculationType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines EarningsRateCalculationType 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum EarningsRateCalculationType 34 | { 35 | /// 36 | /// Enum USEEARNINGSRATE for value: USEEARNINGSRATE 37 | /// 38 | [EnumMember(Value = "USEEARNINGSRATE")] 39 | USEEARNINGSRATE = 1, 40 | 41 | /// 42 | /// Enum ENTEREARNINGSRATE for value: ENTEREARNINGSRATE 43 | /// 44 | [EnumMember(Value = "ENTEREARNINGSRATE")] 45 | ENTEREARNINGSRATE = 2, 46 | 47 | /// 48 | /// Enum ANNUALSALARY for value: ANNUALSALARY 49 | /// 50 | [EnumMember(Value = "ANNUALSALARY")] 51 | ANNUALSALARY = 3 52 | 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/EmployeeStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Employee Status Types 29 | /// 30 | /// Employee Status Types 31 | 32 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 33 | 34 | public enum EmployeeStatus 35 | { 36 | /// 37 | /// Enum ACTIVE for value: ACTIVE 38 | /// 39 | [EnumMember(Value = "ACTIVE")] 40 | ACTIVE = 1, 41 | 42 | /// 43 | /// Enum TERMINATED for value: TERMINATED 44 | /// 45 | [EnumMember(Value = "TERMINATED")] 46 | TERMINATED = 2 47 | 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/EmploymentBasis.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines EmploymentBasis 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum EmploymentBasis 34 | { 35 | /// 36 | /// Enum FULLTIME for value: FULLTIME 37 | /// 38 | [EnumMember(Value = "FULLTIME")] 39 | FULLTIME = 1, 40 | 41 | /// 42 | /// Enum PARTTIME for value: PARTTIME 43 | /// 44 | [EnumMember(Value = "PARTTIME")] 45 | PARTTIME = 2, 46 | 47 | /// 48 | /// Enum CASUAL for value: CASUAL 49 | /// 50 | [EnumMember(Value = "CASUAL")] 51 | CASUAL = 3, 52 | 53 | /// 54 | /// Enum LABOURHIRE for value: LABOURHIRE 55 | /// 56 | [EnumMember(Value = "LABOURHIRE")] 57 | LABOURHIRE = 4, 58 | 59 | /// 60 | /// Enum SUPERINCOMESTREAM for value: SUPERINCOMESTREAM 61 | /// 62 | [EnumMember(Value = "SUPERINCOMESTREAM")] 63 | SUPERINCOMESTREAM = 5, 64 | 65 | /// 66 | /// Enum NONEMPLOYEE for value: NONEMPLOYEE 67 | /// 68 | [EnumMember(Value = "NONEMPLOYEE")] 69 | NONEMPLOYEE = 6 70 | 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/EmploymentTerminationPaymentType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines EmploymentTerminationPaymentType 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum EmploymentTerminationPaymentType 34 | { 35 | /// 36 | /// Enum O for value: O 37 | /// 38 | [EnumMember(Value = "O")] 39 | O = 1, 40 | 41 | /// 42 | /// Enum R for value: R 43 | /// 44 | [EnumMember(Value = "R")] 45 | R = 2 46 | 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/EmploymentType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines EmploymentType 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum EmploymentType 34 | { 35 | /// 36 | /// Enum EMPLOYEE for value: EMPLOYEE 37 | /// 38 | [EnumMember(Value = "EMPLOYEE")] 39 | EMPLOYEE = 1, 40 | 41 | /// 42 | /// Enum CONTRACTOR for value: CONTRACTOR 43 | /// 44 | [EnumMember(Value = "CONTRACTOR")] 45 | CONTRACTOR = 2 46 | 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/EntitlementFinalPayPayoutType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines EntitlementFinalPayPayoutType 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum EntitlementFinalPayPayoutType 34 | { 35 | /// 36 | /// Enum NOTPAIDOUT for value: NOTPAIDOUT 37 | /// 38 | [EnumMember(Value = "NOTPAIDOUT")] 39 | NOTPAIDOUT = 1, 40 | 41 | /// 42 | /// Enum PAIDOUT for value: PAIDOUT 43 | /// 44 | [EnumMember(Value = "PAIDOUT")] 45 | PAIDOUT = 2 46 | 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/IncomeType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines IncomeType 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum IncomeType 34 | { 35 | /// 36 | /// Enum SALARYANDWAGES for value: SALARYANDWAGES 37 | /// 38 | [EnumMember(Value = "SALARYANDWAGES")] 39 | SALARYANDWAGES = 1, 40 | 41 | /// 42 | /// Enum WORKINGHOLIDAYMAKER for value: WORKINGHOLIDAYMAKER 43 | /// 44 | [EnumMember(Value = "WORKINGHOLIDAYMAKER")] 45 | WORKINGHOLIDAYMAKER = 2, 46 | 47 | /// 48 | /// Enum NONEMPLOYEE for value: NONEMPLOYEE 49 | /// 50 | [EnumMember(Value = "NONEMPLOYEE")] 51 | NONEMPLOYEE = 3, 52 | 53 | /// 54 | /// Enum CLOSELYHELDPAYEES for value: CLOSELYHELDPAYEES 55 | /// 56 | [EnumMember(Value = "CLOSELYHELDPAYEES")] 57 | CLOSELYHELDPAYEES = 4, 58 | 59 | /// 60 | /// Enum LABOURHIRE for value: LABOURHIRE 61 | /// 62 | [EnumMember(Value = "LABOURHIRE")] 63 | LABOURHIRE = 5 64 | 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/LeaveLineCalculationType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Calculation type for leave line for Opening Balance on Employee 29 | /// 30 | /// Calculation type for leave line for Opening Balance on Employee 31 | 32 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 33 | 34 | public enum LeaveLineCalculationType 35 | { 36 | /// 37 | /// Enum NOCALCULATIONREQUIRED for value: NOCALCULATIONREQUIRED 38 | /// 39 | [EnumMember(Value = "NOCALCULATIONREQUIRED")] 40 | NOCALCULATIONREQUIRED = 1, 41 | 42 | /// 43 | /// Enum FIXEDAMOUNTEACHPERIOD for value: FIXEDAMOUNTEACHPERIOD 44 | /// 45 | [EnumMember(Value = "FIXEDAMOUNTEACHPERIOD")] 46 | FIXEDAMOUNTEACHPERIOD = 2, 47 | 48 | /// 49 | /// Enum ENTERRATEINPAYTEMPLATE for value: ENTERRATEINPAYTEMPLATE 50 | /// 51 | [EnumMember(Value = "ENTERRATEINPAYTEMPLATE")] 52 | ENTERRATEINPAYTEMPLATE = 3, 53 | 54 | /// 55 | /// Enum BASEDONORDINARYEARNINGS for value: BASEDONORDINARYEARNINGS 56 | /// 57 | [EnumMember(Value = "BASEDONORDINARYEARNINGS")] 58 | BASEDONORDINARYEARNINGS = 4, 59 | 60 | /// 61 | /// Enum Empty for value: 62 | /// 63 | [EnumMember(Value = "")] 64 | Empty = 5 65 | 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/LeavePeriodStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines LeavePeriodStatus 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum LeavePeriodStatus 34 | { 35 | /// 36 | /// Enum SCHEDULED for value: SCHEDULED 37 | /// 38 | [EnumMember(Value = "SCHEDULED")] 39 | SCHEDULED = 1, 40 | 41 | /// 42 | /// Enum PROCESSED for value: PROCESSED 43 | /// 44 | [EnumMember(Value = "PROCESSED")] 45 | PROCESSED = 2 46 | 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/LeaveTypeContributionType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines LeaveTypeContributionType 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum LeaveTypeContributionType 34 | { 35 | /// 36 | /// Enum SGC for value: SGC 37 | /// 38 | [EnumMember(Value = "SGC")] 39 | SGC = 1, 40 | 41 | /// 42 | /// Enum SALARYSACRIFICE for value: SALARYSACRIFICE 43 | /// 44 | [EnumMember(Value = "SALARYSACRIFICE")] 45 | SALARYSACRIFICE = 2, 46 | 47 | /// 48 | /// Enum EMPLOYERADDITIONAL for value: EMPLOYERADDITIONAL 49 | /// 50 | [EnumMember(Value = "EMPLOYERADDITIONAL")] 51 | EMPLOYERADDITIONAL = 3, 52 | 53 | /// 54 | /// Enum EMPLOYEE for value: EMPLOYEE 55 | /// 56 | [EnumMember(Value = "EMPLOYEE")] 57 | EMPLOYEE = 4 58 | 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/ManualTaxType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines ManualTaxType 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum ManualTaxType 34 | { 35 | /// 36 | /// Enum PAYGMANUAL for value: PAYGMANUAL 37 | /// 38 | [EnumMember(Value = "PAYGMANUAL")] 39 | PAYGMANUAL = 1, 40 | 41 | /// 42 | /// Enum ETPOMANUAL for value: ETPOMANUAL 43 | /// 44 | [EnumMember(Value = "ETPOMANUAL")] 45 | ETPOMANUAL = 2, 46 | 47 | /// 48 | /// Enum ETPRMANUAL for value: ETPRMANUAL 49 | /// 50 | [EnumMember(Value = "ETPRMANUAL")] 51 | ETPRMANUAL = 3, 52 | 53 | /// 54 | /// Enum SCHEDULE5MANUAL for value: SCHEDULE5MANUAL 55 | /// 56 | [EnumMember(Value = "SCHEDULE5MANUAL")] 57 | SCHEDULE5MANUAL = 4, 58 | 59 | /// 60 | /// Enum SCHEDULE5STSLMANUAL for value: SCHEDULE5STSLMANUAL 61 | /// 62 | [EnumMember(Value = "SCHEDULE5STSLMANUAL")] 63 | SCHEDULE5STSLMANUAL = 5, 64 | 65 | /// 66 | /// Enum SCHEDULE4MANUAL for value: SCHEDULE4MANUAL 67 | /// 68 | [EnumMember(Value = "SCHEDULE4MANUAL")] 69 | SCHEDULE4MANUAL = 6 70 | 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/PayRunStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines PayRunStatus 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum PayRunStatus 34 | { 35 | /// 36 | /// Enum DRAFT for value: DRAFT 37 | /// 38 | [EnumMember(Value = "DRAFT")] 39 | DRAFT = 1, 40 | 41 | /// 42 | /// Enum POSTED for value: POSTED 43 | /// 44 | [EnumMember(Value = "POSTED")] 45 | POSTED = 2 46 | 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/RateType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines RateType 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum RateType 34 | { 35 | /// 36 | /// Enum FIXEDAMOUNT for value: FIXEDAMOUNT 37 | /// 38 | [EnumMember(Value = "FIXEDAMOUNT")] 39 | FIXEDAMOUNT = 1, 40 | 41 | /// 42 | /// Enum MULTIPLE for value: MULTIPLE 43 | /// 44 | [EnumMember(Value = "MULTIPLE")] 45 | MULTIPLE = 2, 46 | 47 | /// 48 | /// Enum RATEPERUNIT for value: RATEPERUNIT 49 | /// 50 | [EnumMember(Value = "RATEPERUNIT")] 51 | RATEPERUNIT = 3 52 | 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/ResidencyStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines ResidencyStatus 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum ResidencyStatus 34 | { 35 | /// 36 | /// Enum AUSTRALIANRESIDENT for value: AUSTRALIANRESIDENT 37 | /// 38 | [EnumMember(Value = "AUSTRALIANRESIDENT")] 39 | AUSTRALIANRESIDENT = 1, 40 | 41 | /// 42 | /// Enum FOREIGNRESIDENT for value: FOREIGNRESIDENT 43 | /// 44 | [EnumMember(Value = "FOREIGNRESIDENT")] 45 | FOREIGNRESIDENT = 2, 46 | 47 | /// 48 | /// Enum WORKINGHOLIDAYMAKER for value: WORKINGHOLIDAYMAKER 49 | /// 50 | [EnumMember(Value = "WORKINGHOLIDAYMAKER")] 51 | WORKINGHOLIDAYMAKER = 3 52 | 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/SeniorMaritalStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines SeniorMaritalStatus 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum SeniorMaritalStatus 34 | { 35 | /// 36 | /// Enum MEMBEROFCOUPLE for value: MEMBEROFCOUPLE 37 | /// 38 | [EnumMember(Value = "MEMBEROFCOUPLE")] 39 | MEMBEROFCOUPLE = 1, 40 | 41 | /// 42 | /// Enum MEMBEROFILLNESSSEPARATEDCOUPLE for value: MEMBEROFILLNESSSEPARATEDCOUPLE 43 | /// 44 | [EnumMember(Value = "MEMBEROFILLNESSSEPARATEDCOUPLE")] 45 | MEMBEROFILLNESSSEPARATEDCOUPLE = 2, 46 | 47 | /// 48 | /// Enum SINGLE for value: SINGLE 49 | /// 50 | [EnumMember(Value = "SINGLE")] 51 | SINGLE = 3 52 | 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/SuperFundType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines SuperFundType 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum SuperFundType 34 | { 35 | /// 36 | /// Enum REGULATED for value: REGULATED 37 | /// 38 | [EnumMember(Value = "REGULATED")] 39 | REGULATED = 1, 40 | 41 | /// 42 | /// Enum SMSF for value: SMSF 43 | /// 44 | [EnumMember(Value = "SMSF")] 45 | SMSF = 2 46 | 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/SuperannuationCalculationType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines SuperannuationCalculationType 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum SuperannuationCalculationType 34 | { 35 | /// 36 | /// Enum FIXEDAMOUNT for value: FIXEDAMOUNT 37 | /// 38 | [EnumMember(Value = "FIXEDAMOUNT")] 39 | FIXEDAMOUNT = 1, 40 | 41 | /// 42 | /// Enum PERCENTAGEOFEARNINGS for value: PERCENTAGEOFEARNINGS 43 | /// 44 | [EnumMember(Value = "PERCENTAGEOFEARNINGS")] 45 | PERCENTAGEOFEARNINGS = 2, 46 | 47 | /// 48 | /// Enum STATUTORY for value: STATUTORY 49 | /// 50 | [EnumMember(Value = "STATUTORY")] 51 | STATUTORY = 3 52 | 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/SuperannuationContributionType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines SuperannuationContributionType 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum SuperannuationContributionType 34 | { 35 | /// 36 | /// Enum SGC for value: SGC 37 | /// 38 | [EnumMember(Value = "SGC")] 39 | SGC = 1, 40 | 41 | /// 42 | /// Enum SALARYSACRIFICE for value: SALARYSACRIFICE 43 | /// 44 | [EnumMember(Value = "SALARYSACRIFICE")] 45 | SALARYSACRIFICE = 2, 46 | 47 | /// 48 | /// Enum EMPLOYERADDITIONAL for value: EMPLOYERADDITIONAL 49 | /// 50 | [EnumMember(Value = "EMPLOYERADDITIONAL")] 51 | EMPLOYERADDITIONAL = 3, 52 | 53 | /// 54 | /// Enum EMPLOYEE for value: EMPLOYEE 55 | /// 56 | [EnumMember(Value = "EMPLOYEE")] 57 | EMPLOYEE = 4 58 | 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/TFNExemptionType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines TFNExemptionType 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum TFNExemptionType 34 | { 35 | /// 36 | /// Enum NOTQUOTED for value: NOTQUOTED 37 | /// 38 | [EnumMember(Value = "NOTQUOTED")] 39 | NOTQUOTED = 1, 40 | 41 | /// 42 | /// Enum PENDING for value: PENDING 43 | /// 44 | [EnumMember(Value = "PENDING")] 45 | PENDING = 2, 46 | 47 | /// 48 | /// Enum PENSIONER for value: PENSIONER 49 | /// 50 | [EnumMember(Value = "PENSIONER")] 51 | PENSIONER = 3, 52 | 53 | /// 54 | /// Enum UNDER18 for value: UNDER18 55 | /// 56 | [EnumMember(Value = "UNDER18")] 57 | UNDER18 = 4 58 | 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/TaxScaleType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines TaxScaleType 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum TaxScaleType 34 | { 35 | /// 36 | /// Enum REGULAR for value: REGULAR 37 | /// 38 | [EnumMember(Value = "REGULAR")] 39 | REGULAR = 1, 40 | 41 | /// 42 | /// Enum ACTORSARTISTSENTERTAINERS for value: ACTORSARTISTSENTERTAINERS 43 | /// 44 | [EnumMember(Value = "ACTORSARTISTSENTERTAINERS")] 45 | ACTORSARTISTSENTERTAINERS = 2, 46 | 47 | /// 48 | /// Enum HORTICULTURISTORSHEARER for value: HORTICULTURISTORSHEARER 49 | /// 50 | [EnumMember(Value = "HORTICULTURISTORSHEARER")] 51 | HORTICULTURISTORSHEARER = 3, 52 | 53 | /// 54 | /// Enum SENIORORPENSIONER for value: SENIORORPENSIONER 55 | /// 56 | [EnumMember(Value = "SENIORORPENSIONER")] 57 | SENIORORPENSIONER = 4, 58 | 59 | /// 60 | /// Enum WORKINGHOLIDAYMAKER for value: WORKINGHOLIDAYMAKER 61 | /// 62 | [EnumMember(Value = "WORKINGHOLIDAYMAKER")] 63 | WORKINGHOLIDAYMAKER = 5, 64 | 65 | /// 66 | /// Enum FOREIGN for value: FOREIGN 67 | /// 68 | [EnumMember(Value = "FOREIGN")] 69 | FOREIGN = 6 70 | 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/TimesheetStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines TimesheetStatus 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum TimesheetStatus 34 | { 35 | /// 36 | /// Enum DRAFT for value: DRAFT 37 | /// 38 | [EnumMember(Value = "DRAFT")] 39 | DRAFT = 1, 40 | 41 | /// 42 | /// Enum PROCESSED for value: PROCESSED 43 | /// 44 | [EnumMember(Value = "PROCESSED")] 45 | PROCESSED = 2, 46 | 47 | /// 48 | /// Enum APPROVED for value: APPROVED 49 | /// 50 | [EnumMember(Value = "APPROVED")] 51 | APPROVED = 3, 52 | 53 | /// 54 | /// Enum REJECTED for value: REJECTED 55 | /// 56 | [EnumMember(Value = "REJECTED")] 57 | REJECTED = 4, 58 | 59 | /// 60 | /// Enum REQUESTED for value: REQUESTED 61 | /// 62 | [EnumMember(Value = "REQUESTED")] 63 | REQUESTED = 5 64 | 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/PayrollAu/WorkCondition.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Payroll AU API 3 | * 4 | * This is the Xero Payroll API for orgs in Australia region. 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.PayrollAu 26 | { 27 | /// 28 | /// Defines WorkCondition 29 | /// 30 | 31 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 32 | 33 | public enum WorkCondition 34 | { 35 | /// 36 | /// Enum PROMOTIONAL for value: PROMOTIONAL 37 | /// 38 | [EnumMember(Value = "PROMOTIONAL")] 39 | PROMOTIONAL = 1, 40 | 41 | /// 42 | /// Enum THREELESSPERFORMANCESPERWEEK for value: THREELESSPERFORMANCESPERWEEK 43 | /// 44 | [EnumMember(Value = "THREELESSPERFORMANCESPERWEEK")] 45 | THREELESSPERFORMANCESPERWEEK = 2, 46 | 47 | /// 48 | /// Enum NONE for value: NONE 49 | /// 50 | [EnumMember(Value = "NONE")] 51 | NONE = 3 52 | 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/Project/ChargeType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Projects API 3 | * 4 | * This is the Xero Projects API 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.Project 26 | { 27 | /// 28 | /// Can be `TIME`, `FIXED` or `NON_CHARGEABLE`, defines how the task will be charged. Use `TIME` when you want to charge per hour and `FIXED` to charge as a fixed amount. If the task will not be charged use `NON_CHARGEABLE`. 29 | /// 30 | /// Can be `TIME`, `FIXED` or `NON_CHARGEABLE`, defines how the task will be charged. Use `TIME` when you want to charge per hour and `FIXED` to charge as a fixed amount. If the task will not be charged use `NON_CHARGEABLE`. 31 | 32 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 33 | 34 | public enum ChargeType 35 | { 36 | /// 37 | /// Enum TIME for value: TIME 38 | /// 39 | [EnumMember(Value = "TIME")] 40 | TIME = 1, 41 | 42 | /// 43 | /// Enum FIXED for value: FIXED 44 | /// 45 | [EnumMember(Value = "FIXED")] 46 | FIXED = 2, 47 | 48 | /// 49 | /// Enum NONCHARGEABLE for value: NON_CHARGEABLE 50 | /// 51 | [EnumMember(Value = "NON_CHARGEABLE")] 52 | NONCHARGEABLE = 3 53 | 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Model/Project/ProjectStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Xero Projects API 3 | * 4 | * This is the Xero Projects API 5 | * 6 | * Contact: api@xero.com 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using OpenAPIDateConverter = Xero.NetStandard.OAuth2.Client.OpenAPIDateConverter; 24 | 25 | namespace Xero.NetStandard.OAuth2.Model.Project 26 | { 27 | /// 28 | /// Status for project 29 | /// 30 | /// Status for project 31 | 32 | [JsonConverter(typeof(Client.CustomStringEnumConverter))] 33 | 34 | public enum ProjectStatus 35 | { 36 | /// 37 | /// Enum INPROGRESS for value: INPROGRESS 38 | /// 39 | [EnumMember(Value = "INPROGRESS")] 40 | INPROGRESS = 1, 41 | 42 | /// 43 | /// Enum CLOSED for value: CLOSED 44 | /// 45 | [EnumMember(Value = "CLOSED")] 46 | CLOSED = 2 47 | 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | false 5 | netstandard2.0 6 | v2.0 7 | .NETStandard 8 | Xero.NetStandard.OAuth2 9 | Xero.NetStandard.OAuth2 10 | Library 11 | Xero API 12 | Xero 13 | OpenAPI Library 14 | This is a .NETStandard SDK library, used to communicate with the Xero API using OAuth2.0. See https://github.com/XeroAPI/Xero-NetStandard for more information 15 | true 16 | true 17 | true 18 | Xero.NetStandard.OAuth2 19 | 3.29.1 20 | bin\$(Configuration)\$(TargetFramework)\Xero.NetStandard.OAuth2.xml 21 | https://github.com/XeroAPI/Xero-NetStandard/ 22 | https://en.gravatar.com/userimage/180557955/74b3a957d886bc921b0d1455beed9dab.png 23 | Xero 24 | Copyright © Xero 2019 25 | xero;api;sdk;oauth2;oauth2.0 26 | This is a .NETStandard SDK library, used to communicate with the Xero API using OAuth2.0. See https://github.com/XeroAPI/Xero-NetStandard for more information 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2Client/Xero.NetStandard.OAuth2Client.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | netstandard2.0 4 | Xero.NetStandard.OAuth2Client 5 | 1.6.0 6 | Xero 7 | Xero 8 | https://github.com/XeroAPI/Xero-NetStandard/ 9 | https://en.gravatar.com/userimage/180557955/74b3a957d886bc921b0d1455beed9dab.png 10 | Xero 11 | Copyright © Xero 2019 12 | xero;api;sdk;oauth2;oauth2.0 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2Client/src/Client/IXeroClient.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Threading.Tasks; 3 | using Xero.NetStandard.OAuth2.Config; 4 | using Xero.NetStandard.OAuth2.Models; 5 | using Xero.NetStandard.OAuth2.Token; 6 | 7 | namespace Xero.NetStandard.OAuth2.Client 8 | { 9 | public interface IXeroClient 10 | { 11 | XeroConfiguration xeroConfiguration { get; set; } 12 | string BuildLoginUri(); 13 | string BuildLoginUri(string state); 14 | string BuildLoginUri(string state, string scope); 15 | string BuildLoginUriPkce(string codeVerifier); 16 | string BuildLoginUriPkce(string codeVerifier, string state); 17 | string BuildLoginUriPkce(string codeVerifier, string state, string scope); 18 | Task RequestAccessTokenAsync(string code); 19 | Task RequestAccessTokenPkceAsync(string code, string codeVerifier); 20 | Task RefreshAccessTokenAsync(IXeroToken xeroToken); 21 | Task RequestClientCredentialsTokenAsync(bool fetchTenants=true); 22 | Task GetCurrentValidTokenAsync(IXeroToken xeroToken); 23 | Task> GetConnectionsAsync(IXeroToken xeroToken); 24 | Task DeleteConnectionAsync(IXeroToken xeroToken, Tenant xeroTenant); 25 | Task RevokeAccessTokenAsync(IXeroToken xeroToken); 26 | } 27 | } -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2Client/src/Config/XeroConfiguration.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Xero.NetStandard.OAuth2.Config 4 | { 5 | public class XeroConfiguration 6 | { 7 | public string AppName { get; set; } 8 | public string ClientId { get; set; } 9 | public string ClientSecret { get; set; } 10 | public Uri CallbackUri { get; set; } 11 | public string Scope { get; set; } 12 | public string State { get; set; } 13 | public string XeroApiBaseUri { get; set; } = "https://api.xero.com"; 14 | public string XeroLoginBaseUri { get; set; } = "https://login.xero.com"; 15 | public string XeroIdentityBaseUri { get; set; } = "https://identity.xero.com"; 16 | } 17 | } -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2Client/src/Models/Tenant.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Xero.NetStandard.OAuth2.Models 4 | { 5 | public class Tenant 6 | { 7 | public Guid id { get; set; } 8 | public Guid? authEventId { get; set; } 9 | public Guid TenantId { get; set; } 10 | public string TenantType { get; set; } 11 | public string TenantName { get; set; } 12 | public DateTime CreatedDateUtc { get; set; } 13 | public DateTime UpdatedDateUtc { get; set; } 14 | } 15 | } -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2Client/src/Token/IXeroToken.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using Xero.NetStandard.OAuth2.Models; 4 | 5 | namespace Xero.NetStandard.OAuth2.Token 6 | { 7 | public interface IXeroToken 8 | { 9 | List Tenants { get; set; } 10 | string AccessToken { get; set; } 11 | string RefreshToken { get; set; } 12 | string IdToken { get; set; } 13 | DateTime ExpiresAtUtc { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2Client/src/Token/XeroOAuth2Token.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using Xero.NetStandard.OAuth2.Models; 4 | 5 | namespace Xero.NetStandard.OAuth2.Token 6 | { 7 | public class XeroOAuth2Token : IXeroToken 8 | { 9 | public List Tenants { get; set; } 10 | public string AccessToken { get; set; } 11 | public string RefreshToken { get; set; } 12 | public string IdToken { get; set; } 13 | public DateTime ExpiresAtUtc { get; set; } 14 | 15 | } 16 | } -------------------------------------------------------------------------------- /Xero.NetStandard.OAuth2Client/src/Utilities/HashUtils.cs: -------------------------------------------------------------------------------- 1 | using System.Security.Cryptography; 2 | using System.Text; 3 | 4 | public static class HashUtils 5 | { 6 | public static string Hash(string input) 7 | { 8 | using (SHA1Managed sha1 = new SHA1Managed()) 9 | { 10 | var hash = sha1.ComputeHash(Encoding.UTF8.GetBytes(input)); 11 | var sb = new StringBuilder(hash.Length * 2); 12 | foreach (byte b in hash) 13 | { 14 | sb.Append(b.ToString("X2")); 15 | } 16 | return sb.ToString(); 17 | } 18 | } 19 | } --------------------------------------------------------------------------------