buildium-ruby 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/ci.yml +27 -0
- data/.github/workflows/publish.yml +48 -0
- data/.gitignore +39 -0
- data/.openapi-generator/FILES +1215 -0
- data/.openapi-generator/VERSION +1 -0
- data/.openapi-generator/templates/ruby-client/gemspec.mustache +37 -0
- data/.openapi-generator/templates/ruby-client/partial_model_generic.mustache +371 -0
- data/.openapi-generator/templates/ruby-client/rubocop.mustache +124 -0
- data/.openapi-generator-ignore +26 -0
- data/.rspec +2 -0
- data/.rubocop.yml +124 -0
- data/CUSTOMIZATIONS.md +11 -0
- data/DOCS.md +811 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +75 -0
- data/README.md +118 -0
- data/Rakefile +10 -0
- data/bin/CUSTOMIZATIONS.md +11 -0
- data/bin/README.md +118 -0
- data/bin/config.yml +9 -0
- data/bin/rebuild.sh +49 -0
- data/bin/swagger.json +52218 -0
- data/buildium-ruby.gemspec +39 -0
- data/docs/AccountInfoMessage.md +26 -0
- data/docs/AccountingApi.md +2041 -0
- data/docs/AccountingEntityMessage.md +22 -0
- data/docs/AccountingEntitySaveMessage.md +20 -0
- data/docs/AccountingLockPeriodMessage.md +22 -0
- data/docs/AccountingSettingsMessage.md +28 -0
- data/docs/AddressMessage.md +30 -0
- data/docs/AdministrationApi.md +485 -0
- data/docs/AllTasksMessage.md +46 -0
- data/docs/AnnouncementMessage.md +30 -0
- data/docs/AnnouncementPostMessage.md +28 -0
- data/docs/AnnouncementSearchMessage.md +26 -0
- data/docs/AnnouncementSenderMessage.md +22 -0
- data/docs/ApiError.md +20 -0
- data/docs/ApiErrorResponse.md +22 -0
- data/docs/ApplianceMessage.md +26 -0
- data/docs/ApplicantApplicationMessage.md +24 -0
- data/docs/ApplicantGroupMessage.md +26 -0
- data/docs/ApplicantGroupPostMessage.md +20 -0
- data/docs/ApplicantGroupPutMessage.md +22 -0
- data/docs/ApplicantGroupSearchMessage.md +26 -0
- data/docs/ApplicantMessage.md +36 -0
- data/docs/ApplicantPostMessage.md +28 -0
- data/docs/ApplicantPutMessage.md +26 -0
- data/docs/ApplicantSearchMessage.md +32 -0
- data/docs/ApplicantsApi.md +1489 -0
- data/docs/ApplicationMessage.md +26 -0
- data/docs/ApplicationPutMessage.md +18 -0
- data/docs/ApplicationResponseFieldMessage.md +24 -0
- data/docs/ApplicationResponseMessage.md +22 -0
- data/docs/ApplicationSectionResponseMessage.md +18 -0
- data/docs/AssociationApplianceMessage.md +32 -0
- data/docs/AssociationAppliancePostMessage.md +32 -0
- data/docs/AssociationAppliancePutMessage.md +28 -0
- data/docs/AssociationApplianceSearchMessage.md +20 -0
- data/docs/AssociationApplianceServiceHistoryMessage.md +24 -0
- data/docs/AssociationApplianceServiceHistoryPostMessage.md +22 -0
- data/docs/AssociationAppliancesApi.md +646 -0
- data/docs/AssociationBoardMemberMessage.md +36 -0
- data/docs/AssociationBoardMemberPostMessage.md +24 -0
- data/docs/AssociationBoardMemberPutMessage.md +22 -0
- data/docs/AssociationBoardMemberSearchMessage.md +24 -0
- data/docs/AssociationMessage.md +40 -0
- data/docs/AssociationOwnerBoardTermMessage.md +28 -0
- data/docs/AssociationOwnerBoardTermPostMessage.md +22 -0
- data/docs/AssociationOwnerMessage.md +52 -0
- data/docs/AssociationOwnerPostMessage.md +44 -0
- data/docs/AssociationOwnerPutMessage.md +38 -0
- data/docs/AssociationOwnerToExistingOwnershipAccountPostMessage.md +48 -0
- data/docs/AssociationOwnerUnitOccupancyPutMessage.md +18 -0
- data/docs/AssociationOwnerUnitOccupancyStatusMessage.md +20 -0
- data/docs/AssociationOwnersApi.md +916 -0
- data/docs/AssociationOwnershipAccountMessage.md +34 -0
- data/docs/AssociationOwnershipAccountPostMessage.md +32 -0
- data/docs/AssociationOwnershipAccountPutMessage.md +18 -0
- data/docs/AssociationOwnershipAccountSearchMessage.md +28 -0
- data/docs/AssociationOwnershipAccountsApi.md +2042 -0
- data/docs/AssociationPostMessage.md +32 -0
- data/docs/AssociationPreferredVendorMessage.md +34 -0
- data/docs/AssociationPreferredVendorPutMessage.md +18 -0
- data/docs/AssociationPutMessage.md +34 -0
- data/docs/AssociationSearchMessage.md +24 -0
- data/docs/AssociationTenantMessage.md +44 -0
- data/docs/AssociationTenantPostMessage.md +42 -0
- data/docs/AssociationTenantPutMessage.md +38 -0
- data/docs/AssociationTenantsApi.md +671 -0
- data/docs/AssociationUnitMessage.md +32 -0
- data/docs/AssociationUnitPutMessage.md +26 -0
- data/docs/AssociationUnitSearchMessage.md +22 -0
- data/docs/AssociationUnitsApi.md +659 -0
- data/docs/AssociationUnitsPostMessage.md +28 -0
- data/docs/AssociationUserSearchMessage.md +34 -0
- data/docs/AssociationsApi.md +1235 -0
- data/docs/BankAccountCheckAccountingEntitySaveMessage.md +20 -0
- data/docs/BankAccountCheckLineMessage.md +28 -0
- data/docs/BankAccountCheckLineSaveMessage.md +26 -0
- data/docs/BankAccountCheckMessage.md +30 -0
- data/docs/BankAccountCheckPayeeMessage.md +22 -0
- data/docs/BankAccountCheckPayeeSaveMessage.md +20 -0
- data/docs/BankAccountCheckPostMessage.md +26 -0
- data/docs/BankAccountCheckPutMessage.md +26 -0
- data/docs/BankAccountCheckSearchMessage.md +20 -0
- data/docs/BankAccountDepositLineMessage.md +28 -0
- data/docs/BankAccountDepositLineSaveMessage.md +26 -0
- data/docs/BankAccountDepositMessage.md +28 -0
- data/docs/BankAccountDepositPostMessage.md +24 -0
- data/docs/BankAccountDepositPutMessage.md +22 -0
- data/docs/BankAccountDepositSearchMessage.md +20 -0
- data/docs/BankAccountMessage.md +40 -0
- data/docs/BankAccountPostMessage.md +30 -0
- data/docs/BankAccountPutMessage.md +30 -0
- data/docs/BankAccountQuickDepositMessage.md +28 -0
- data/docs/BankAccountQuickDepositSaveMessage.md +26 -0
- data/docs/BankAccountQuickDepositSearchMessage.md +20 -0
- data/docs/BankAccountSearchMessage.md +20 -0
- data/docs/BankAccountTransactionMessage.md +36 -0
- data/docs/BankAccountTransactionSearchMessage.md +24 -0
- data/docs/BankAccountTransferAccountingEntitySaveMessage.md +20 -0
- data/docs/BankAccountTransferMessage.md +28 -0
- data/docs/BankAccountTransferSaveMessage.md +26 -0
- data/docs/BankAccountTransferSearchMessage.md +20 -0
- data/docs/BankAccountWithdrawalMessage.md +28 -0
- data/docs/BankAccountWithdrawalSaveMessage.md +26 -0
- data/docs/BankAccountWithdrawalSearchMessage.md +20 -0
- data/docs/BankAccountsApi.md +2224 -0
- data/docs/BillFileMessage.md +28 -0
- data/docs/BillLineMessage.md +28 -0
- data/docs/BillLinePostMessage.md +26 -0
- data/docs/BillLinePutMessage.md +28 -0
- data/docs/BillMarkupMessage.md +20 -0
- data/docs/BillMarkupSaveMessage.md +20 -0
- data/docs/BillMessage.md +36 -0
- data/docs/BillPaymentAccountingEntityMessage.md +20 -0
- data/docs/BillPaymentLineMessage.md +22 -0
- data/docs/BillPaymentLinePostMessage.md +20 -0
- data/docs/BillPaymentMessage.md +28 -0
- data/docs/BillPaymentPostMessage.md +26 -0
- data/docs/BillPostMessage.md +30 -0
- data/docs/BillPutMessage.md +28 -0
- data/docs/BillSearchMessage.md +32 -0
- data/docs/BudgetDetailsMessage.md +24 -0
- data/docs/BudgetDetailsSaveMessage.md +20 -0
- data/docs/BudgetMessage.md +28 -0
- data/docs/BudgetMonthlyAmountsMessage.md +40 -0
- data/docs/BudgetMonthlyAmountsSaveMessage.md +40 -0
- data/docs/BudgetPostMessage.md +26 -0
- data/docs/BudgetPutMessage.md +20 -0
- data/docs/BudgetSearchMessage.md +22 -0
- data/docs/ChargeRecurringTransactionPostMessage.md +32 -0
- data/docs/ChargeRecurringTransactionPutMessage.md +34 -0
- data/docs/CheckPrintingInfoMessage.md +46 -0
- data/docs/CheckPrintingInfoPostMessage.md +46 -0
- data/docs/CheckPrintingInfoPutMessage.md +46 -0
- data/docs/ClientLeadCreditRequestMessage.md +24 -0
- data/docs/ClientLeadMessage.md +38 -0
- data/docs/ClientLeadSearchMessage.md +26 -0
- data/docs/ClientLeadsApi.md +177 -0
- data/docs/CommunicationsApi.md +1238 -0
- data/docs/ContactDetailMessage.md +24 -0
- data/docs/ContactDetailPhoneMessage.md +22 -0
- data/docs/ContactDetailSaveMessage.md +24 -0
- data/docs/ContactDetailSavePhoneMessage.md +22 -0
- data/docs/ContactInfoMessage.md +24 -0
- data/docs/ContactRequestTaskMessage.md +42 -0
- data/docs/ContactRequestTaskPostMessage.md +38 -0
- data/docs/ContactRequestTaskPutMessage.md +38 -0
- data/docs/ContactRequestTaskSearchMessage.md +40 -0
- data/docs/CosignerMessage.md +36 -0
- data/docs/CreatedByUserMessage.md +24 -0
- data/docs/CreditRecurringTransactionPostMessage.md +36 -0
- data/docs/DepositDetailMessage.md +20 -0
- data/docs/ElectronicPaymentsMessage.md +32 -0
- data/docs/EmailMessage.md +24 -0
- data/docs/EmailPostMessage.md +30 -0
- data/docs/EmailRecipientMessage.md +26 -0
- data/docs/EmailSearchMessage.md +26 -0
- data/docs/EmailSenderMessage.md +24 -0
- data/docs/EmergencyContactMessage.md +24 -0
- data/docs/FileCategoryMessage.md +22 -0
- data/docs/FileCategoryPostMessage.md +18 -0
- data/docs/FileCategoryPutMessage.md +18 -0
- data/docs/FileDownloadMessage.md +18 -0
- data/docs/FileEntityMessage.md +22 -0
- data/docs/FileMessage.md +34 -0
- data/docs/FileNamePostMessage.md +18 -0
- data/docs/FilePutMessage.md +22 -0
- data/docs/FileSearchMessage.md +30 -0
- data/docs/FileUploadPostMessage.md +28 -0
- data/docs/FileUploadTicketMessage.md +22 -0
- data/docs/FilesApi.md +730 -0
- data/docs/GLAccountBalanceItemMessage.md +20 -0
- data/docs/GLAccountBalanceMessage.md +22 -0
- data/docs/GLAccountBalanceSearchMessage.md +26 -0
- data/docs/GLAccountMessage.md +46 -0
- data/docs/GLAccountPostMessage.md +32 -0
- data/docs/GLAccountPutMessage.md +32 -0
- data/docs/GLAccountsSearchMessage.md +18 -0
- data/docs/GLTransactionMessageV1.md +26 -0
- data/docs/GeneralJournalEntryLineSaveMessage.md +24 -0
- data/docs/GeneralJournalEntryPostMessage.md +24 -0
- data/docs/GeneralJournalEntryPutMessage.md +24 -0
- data/docs/GeneralLedgerJournalLineMessage.md +28 -0
- data/docs/GeneralLedgerJournalMessage.md +20 -0
- data/docs/GeneralLedgerTransactionMessage.md +38 -0
- data/docs/GeneralLedgerTransactionSearchMessage.md +26 -0
- data/docs/InternalTransactionStatusMessage.md +22 -0
- data/docs/JournalLineMessage.md +28 -0
- data/docs/JournalMessage.md +20 -0
- data/docs/LastUpdatedByUserMessage.md +26 -0
- data/docs/LeaseAccountDetailMessage.md +20 -0
- data/docs/LeaseChargeLineSaveMessage.md +22 -0
- data/docs/LeaseChargePostMessage.md +22 -0
- data/docs/LeaseChargePutMessage.md +22 -0
- data/docs/LeaseChargeRecurringTransactionMessage.md +40 -0
- data/docs/LeaseCosignerPostMessage.md +32 -0
- data/docs/LeaseLedgerCreditLinePostMessage.md +20 -0
- data/docs/LeaseLedgerCreditPostMessage.md +26 -0
- data/docs/LeaseLedgerDepositWithholdingLinePostMessage.md +20 -0
- data/docs/LeaseLedgerDepositWithholdingPostMessage.md +24 -0
- data/docs/LeaseLedgerPaymentLineSaveMessage.md +20 -0
- data/docs/LeaseLedgerPaymentPostMessage.md +30 -0
- data/docs/LeaseLedgerRefundLineMessage.md +20 -0
- data/docs/LeaseLedgerRefundLinePostMessage.md +20 -0
- data/docs/LeaseLedgerRefundMessage.md +34 -0
- data/docs/LeaseLedgerRefundPostMessage.md +30 -0
- data/docs/LeaseLedgerReversePaymentNSFChargePostMessage.md +20 -0
- data/docs/LeaseLedgerReversePaymentOtherBankChargePostMessage.md +20 -0
- data/docs/LeaseLedgerReversePaymentPostMessage.md +24 -0
- data/docs/LeaseMessage.md +58 -0
- data/docs/LeaseMoveOutDataMessage.md +22 -0
- data/docs/LeaseMoveOutDataPostMessage.md +22 -0
- data/docs/LeaseOutstandingBalanceMessage.md +40 -0
- data/docs/LeaseOutstandingBalanceSearchMessage.md +30 -0
- data/docs/LeasePostMessage.md +38 -0
- data/docs/LeasePutMessage.md +28 -0
- data/docs/LeaseRecurringCreditMessage.md +44 -0
- data/docs/LeaseRecurringPaymentMessage.md +42 -0
- data/docs/LeaseRenewalMessage.md +32 -0
- data/docs/LeaseRenewalPostMessage.md +38 -0
- data/docs/LeaseRentChargeMessage.md +30 -0
- data/docs/LeaseRentChargePostMessage.md +24 -0
- data/docs/LeaseRentMessage.md +34 -0
- data/docs/LeaseRentPostMessage.md +20 -0
- data/docs/LeaseSearchMessage.md +40 -0
- data/docs/LeaseSecurityDepositPostMessage.md +20 -0
- data/docs/LeaseTenantMessage.md +20 -0
- data/docs/LeaseTransactionMessage.md +34 -0
- data/docs/LeaseTransactionSearchMessage.md +22 -0
- data/docs/LeasesApi.md +2865 -0
- data/docs/ListingContactMessage.md +26 -0
- data/docs/ListingContactSaveMessage.md +24 -0
- data/docs/ListingFileMessage.md +22 -0
- data/docs/ListingMessage.md +36 -0
- data/docs/ListingPropertyMessage.md +34 -0
- data/docs/ListingPutMessage.md +28 -0
- data/docs/ListingSearchMessage.md +20 -0
- data/docs/ListingUnitMessage.md +36 -0
- data/docs/ListingsApi.md +642 -0
- data/docs/LockPeriodSettingsGlobalMessage.md +18 -0
- data/docs/LockPeriodSettingsOverridesMessage.md +20 -0
- data/docs/LoggedByStaffUserMessage.md +24 -0
- data/docs/LookupMessage.md +20 -0
- data/docs/MailingTemplateMessage.md +24 -0
- data/docs/NoteMessage.md +22 -0
- data/docs/NotePostMessage.md +18 -0
- data/docs/NotePutMessage.md +18 -0
- data/docs/NoteSearchMessage.md +22 -0
- data/docs/OutstandingBalancesLineMessage.md +20 -0
- data/docs/OwnershipAccountChargeRecurringTransactionMessage.md +40 -0
- data/docs/OwnershipAccountCreditLinePostMessage.md +20 -0
- data/docs/OwnershipAccountCreditPostMessage.md +26 -0
- data/docs/OwnershipAccountDepositWithholdingLinePostMessage.md +20 -0
- data/docs/OwnershipAccountDepositWithholdingPostMessage.md +24 -0
- data/docs/OwnershipAccountLedgerChargeLinesPutMessage.md +22 -0
- data/docs/OwnershipAccountLedgerChargeLinesSaveMessage.md +20 -0
- data/docs/OwnershipAccountLedgerChargePostMessage.md +22 -0
- data/docs/OwnershipAccountLedgerChargePutMessage.md +22 -0
- data/docs/OwnershipAccountLedgerPaymentLineSaveMessage.md +20 -0
- data/docs/OwnershipAccountLedgerPaymentPostMessage.md +30 -0
- data/docs/OwnershipAccountOutstandingBalanceMessage.md +36 -0
- data/docs/OwnershipAccountOutstandingBalanceSearchMessage.md +26 -0
- data/docs/OwnershipAccountRecurringCreditMessage.md +44 -0
- data/docs/OwnershipAccountRecurringPaymentMessage.md +42 -0
- data/docs/OwnershipAccountRefundLineMessage.md +20 -0
- data/docs/OwnershipAccountRefundLinesPostMessage.md +20 -0
- data/docs/OwnershipAccountRefundMessage.md +34 -0
- data/docs/OwnershipAccountRefundPostMessage.md +30 -0
- data/docs/OwnershipAccountTransactionMessage.md +34 -0
- data/docs/PaidByMessage.md +20 -0
- data/docs/ParticipantMessage.md +22 -0
- data/docs/ParticipantResourceMessage.md +20 -0
- data/docs/PayeeMessage.md +24 -0
- data/docs/PaymentDetailMessage.md +24 -0
- data/docs/PaymentRecurringTransactionPostMessage.md +34 -0
- data/docs/PaymentTransactionsMessage.md +22 -0
- data/docs/PhoneLogMessage.md +28 -0
- data/docs/PhoneLogParticipantPostMessage.md +22 -0
- data/docs/PhoneLogParticipantUnitAgreementPostMessage.md +20 -0
- data/docs/PhoneLogPostMessage.md +24 -0
- data/docs/PhoneLogPutMessage.md +22 -0
- data/docs/PhoneLogSearchMessage.md +32 -0
- data/docs/PhoneNumberMessage.md +20 -0
- data/docs/PhoneNumbersMessage.md +24 -0
- data/docs/PropertyGroupMessage.md +26 -0
- data/docs/PropertyGroupPostMessage.md +22 -0
- data/docs/PropertyGroupPutMessage.md +22 -0
- data/docs/PropertyGroupSearchMessage.md +20 -0
- data/docs/PropertyGroupsApi.md +327 -0
- data/docs/PropertyManagerMessage.md +32 -0
- data/docs/PropertyMessage.md +22 -0
- data/docs/RecurringTransactionLineMessage.md +20 -0
- data/docs/RecurringTransactionLinePostMessage.md +20 -0
- data/docs/RecurringTransactionMessage.md +40 -0
- data/docs/RentalApplianceMessage.md +32 -0
- data/docs/RentalAppliancePostMessage.md +32 -0
- data/docs/RentalAppliancePutMessage.md +28 -0
- data/docs/RentalApplianceSearchMessage.md +20 -0
- data/docs/RentalApplianceServiceHistoryMessage.md +24 -0
- data/docs/RentalApplianceServiceHistoryPostMessage.md +22 -0
- data/docs/RentalAppliancesApi.md +646 -0
- data/docs/RentalFeaturesMessage.md +20 -0
- data/docs/RentalFeaturesPutMessage.md +20 -0
- data/docs/RentalMessage.md +40 -0
- data/docs/RentalOwnerMessage.md +46 -0
- data/docs/RentalOwnerPostMessage.md +44 -0
- data/docs/RentalOwnerPutMessage.md +42 -0
- data/docs/RentalOwnerRequestTaskMessage.md +42 -0
- data/docs/RentalOwnerRequestTaskPostMessage.md +38 -0
- data/docs/RentalOwnerRequestTaskPutMessage.md +36 -0
- data/docs/RentalOwnerRequestTaskSearchMessage.md +40 -0
- data/docs/RentalOwnerTaxInformationMessage.md +28 -0
- data/docs/RentalOwnersApi.md +667 -0
- data/docs/RentalOwnersSearchMessage.md +30 -0
- data/docs/RentalPreferredVendorMessage.md +34 -0
- data/docs/RentalPreferredVendorPutMessage.md +18 -0
- data/docs/RentalPropertiesApi.md +989 -0
- data/docs/RentalPropertyPostMessage.md +36 -0
- data/docs/RentalPropertyPutMessage.md +32 -0
- data/docs/RentalPropertyUnitPostMessage.md +30 -0
- data/docs/RentalSearchMessage.md +32 -0
- data/docs/RentalTenantPostMessage.md +42 -0
- data/docs/RentalTenantPutMessage.md +40 -0
- data/docs/RentalTenantRenewalPostMessage.md +40 -0
- data/docs/RentalTenantsApi.md +673 -0
- data/docs/RentalUnitFeaturesMessage.md +18 -0
- data/docs/RentalUnitFeaturesPutMessage.md +18 -0
- data/docs/RentalUnitMessage.md +40 -0
- data/docs/RentalUnitPutMessage.md +30 -0
- data/docs/RentalUnitSearchMessage.md +22 -0
- data/docs/RentalUnitsApi.md +815 -0
- data/docs/RentalUnitsPostMessage.md +32 -0
- data/docs/RequestedByUserEntityMessage.md +28 -0
- data/docs/ResidentCenterApi.md +100 -0
- data/docs/ResidentCenterUserMessage.md +24 -0
- data/docs/ResidentCenterUserReferenceMessage.md +26 -0
- data/docs/ResidentCenterUserSearchMessage.md +26 -0
- data/docs/ResidentRequestTaskMessage.md +52 -0
- data/docs/ResidentRequestTaskPostMessage.md +42 -0
- data/docs/ResidentRequestTaskPutMessage.md +32 -0
- data/docs/ResidentRequestTaskSearchMessage.md +42 -0
- data/docs/SaveAddressMessage.md +30 -0
- data/docs/SaveEmergencyContactMessage.md +24 -0
- data/docs/TaskCategoryMessage.md +24 -0
- data/docs/TaskCategoryPutMessage.md +18 -0
- data/docs/TaskCategoryResponseMessage.md +24 -0
- data/docs/TaskCategorySaveMessage.md +18 -0
- data/docs/TaskHistoryFileMessage.md +28 -0
- data/docs/TaskHistoryFileUploadPostMessage.md +18 -0
- data/docs/TaskHistoryMessage.md +40 -0
- data/docs/TaskHistoryPutMessage.md +18 -0
- data/docs/TaskHistoryUserMessage.md +24 -0
- data/docs/TaskSearchMessage.md +44 -0
- data/docs/TaskSubCategoryMessage.md +20 -0
- data/docs/TasksApi.md +2528 -0
- data/docs/TaxInformationPostMessage.md +26 -0
- data/docs/TaxInformationSaveMessage.md +28 -0
- data/docs/TenantMessage.md +48 -0
- data/docs/TenantSearchMessage.md +36 -0
- data/docs/ToDoTaskMessage.md +40 -0
- data/docs/ToDoTaskPostMessage.md +36 -0
- data/docs/ToDoTaskPutMessage.md +36 -0
- data/docs/ToDoTaskSearchMessage.md +40 -0
- data/docs/UndepositedFundsMessage.md +18 -0
- data/docs/UnitAgreementMessage.md +22 -0
- data/docs/UserMessage.md +40 -0
- data/docs/UserRoleMessage.md +24 -0
- data/docs/UserSearchMessage.md +26 -0
- data/docs/VehicleMessage.md +24 -0
- data/docs/VendorCategoryMessage.md +22 -0
- data/docs/VendorCategorySaveMessage.md +18 -0
- data/docs/VendorCreditLineItemMessage.md +26 -0
- data/docs/VendorCreditLineItemPostMessage.md +24 -0
- data/docs/VendorCreditMessage.md +26 -0
- data/docs/VendorCreditPostMessage.md +24 -0
- data/docs/VendorInsuranceMessage.md +22 -0
- data/docs/VendorInsuranceSaveMessage.md +22 -0
- data/docs/VendorMessage.md +50 -0
- data/docs/VendorPostMessage.md +46 -0
- data/docs/VendorPutMessage.md +46 -0
- data/docs/VendorRefundLineMessage.md +26 -0
- data/docs/VendorRefundLinePostMessage.md +24 -0
- data/docs/VendorRefundMessage.md +30 -0
- data/docs/VendorRefundPostMessage.md +28 -0
- data/docs/VendorSearchMessage.md +32 -0
- data/docs/VendorTaxInformationMessage.md +28 -0
- data/docs/VendorTransactionMessage.md +28 -0
- data/docs/VendorTransactionSearchMessage.md +26 -0
- data/docs/VendorsApi.md +1396 -0
- data/docs/WorkOrderEntryContactMessage.md +20 -0
- data/docs/WorkOrderEntryContactResourceMessage.md +20 -0
- data/docs/WorkOrderLineItemMessage.md +24 -0
- data/docs/WorkOrderLineItemSaveMessage.md +24 -0
- data/docs/WorkOrderMessage.md +42 -0
- data/docs/WorkOrderPostMessage.md +38 -0
- data/docs/WorkOrderPutMessage.md +34 -0
- data/docs/WorkOrderSearchMessage.md +54 -0
- data/docs/WorkOrderTaskMessage.md +32 -0
- data/docs/WorkOrderTaskPostMessage.md +30 -0
- data/docs/WorkOrdersApi.md +361 -0
- data/lib/buildium-ruby/api/accounting_api.rb +1855 -0
- data/lib/buildium-ruby/api/administration_api.rb +417 -0
- data/lib/buildium-ruby/api/applicants_api.rb +1368 -0
- data/lib/buildium-ruby/api/association_appliances_api.rb +577 -0
- data/lib/buildium-ruby/api/association_owners_api.rb +849 -0
- data/lib/buildium-ruby/api/association_ownership_accounts_api.rb +1890 -0
- data/lib/buildium-ruby/api/association_tenants_api.rb +628 -0
- data/lib/buildium-ruby/api/association_units_api.rb +606 -0
- data/lib/buildium-ruby/api/associations_api.rb +1143 -0
- data/lib/buildium-ruby/api/bank_accounts_api.rb +2085 -0
- data/lib/buildium-ruby/api/client_leads_api.rb +174 -0
- data/lib/buildium-ruby/api/communications_api.rb +1097 -0
- data/lib/buildium-ruby/api/files_api.rb +652 -0
- data/lib/buildium-ruby/api/leases_api.rb +2636 -0
- data/lib/buildium-ruby/api/listings_api.rb +569 -0
- data/lib/buildium-ruby/api/property_groups_api.rb +299 -0
- data/lib/buildium-ruby/api/rental_appliances_api.rb +577 -0
- data/lib/buildium-ruby/api/rental_owners_api.rb +622 -0
- data/lib/buildium-ruby/api/rental_properties_api.rb +916 -0
- data/lib/buildium-ruby/api/rental_tenants_api.rb +635 -0
- data/lib/buildium-ruby/api/rental_units_api.rb +743 -0
- data/lib/buildium-ruby/api/resident_center_api.rb +111 -0
- data/lib/buildium-ruby/api/tasks_api.rb +2363 -0
- data/lib/buildium-ruby/api/vendors_api.rb +1285 -0
- data/lib/buildium-ruby/api/work_orders_api.rb +366 -0
- data/lib/buildium-ruby/api_client.rb +426 -0
- data/lib/buildium-ruby/api_error.rb +57 -0
- data/lib/buildium-ruby/configuration.rb +319 -0
- data/lib/buildium-ruby/models/account_info_message.rb +257 -0
- data/lib/buildium-ruby/models/accounting_entity_message.rb +273 -0
- data/lib/buildium-ruby/models/accounting_entity_save_message.rb +273 -0
- data/lib/buildium-ruby/models/accounting_lock_period_message.rb +242 -0
- data/lib/buildium-ruby/models/accounting_settings_message.rb +314 -0
- data/lib/buildium-ruby/models/address_message.rb +313 -0
- data/lib/buildium-ruby/models/all_tasks_message.rb +413 -0
- data/lib/buildium-ruby/models/announcement_message.rb +301 -0
- data/lib/buildium-ruby/models/announcement_post_message.rb +295 -0
- data/lib/buildium-ruby/models/announcement_search_message.rb +292 -0
- data/lib/buildium-ruby/models/announcement_sender_message.rb +239 -0
- data/lib/buildium-ruby/models/api_error_response.rb +237 -0
- data/lib/buildium-ruby/models/appliance_message.rb +259 -0
- data/lib/buildium-ruby/models/applicant_application_message.rb +282 -0
- data/lib/buildium-ruby/models/applicant_group_message.rb +294 -0
- data/lib/buildium-ruby/models/applicant_group_post_message.rb +235 -0
- data/lib/buildium-ruby/models/applicant_group_put_message.rb +284 -0
- data/lib/buildium-ruby/models/applicant_group_search_message.rb +296 -0
- data/lib/buildium-ruby/models/applicant_message.rb +312 -0
- data/lib/buildium-ruby/models/applicant_post_message.rb +283 -0
- data/lib/buildium-ruby/models/applicant_put_message.rb +267 -0
- data/lib/buildium-ruby/models/applicant_search_message.rb +326 -0
- data/lib/buildium-ruby/models/application_message.rb +294 -0
- data/lib/buildium-ruby/models/application_put_message.rb +257 -0
- data/lib/buildium-ruby/models/application_response_field_message.rb +294 -0
- data/lib/buildium-ruby/models/application_response_message.rb +274 -0
- data/lib/buildium-ruby/models/application_section_response_message.rb +219 -0
- data/lib/buildium-ruby/models/association_appliance_message.rb +288 -0
- data/lib/buildium-ruby/models/association_appliance_post_message.rb +298 -0
- data/lib/buildium-ruby/models/association_appliance_put_message.rb +273 -0
- data/lib/buildium-ruby/models/association_appliance_search_message.rb +232 -0
- data/lib/buildium-ruby/models/association_appliance_service_history_message.rb +282 -0
- data/lib/buildium-ruby/models/association_appliance_service_history_post_message.rb +282 -0
- data/lib/buildium-ruby/models/association_board_member_message.rb +344 -0
- data/lib/buildium-ruby/models/association_board_member_post_message.rb +293 -0
- data/lib/buildium-ruby/models/association_board_member_put_message.rb +278 -0
- data/lib/buildium-ruby/models/association_board_member_search_message.rb +274 -0
- data/lib/buildium-ruby/models/association_message.rb +327 -0
- data/lib/buildium-ruby/models/association_owner_board_term_message.rb +303 -0
- data/lib/buildium-ruby/models/association_owner_board_term_post_message.rb +278 -0
- data/lib/buildium-ruby/models/association_owner_message.rb +440 -0
- data/lib/buildium-ruby/models/association_owner_post_message.rb +398 -0
- data/lib/buildium-ruby/models/association_owner_put_message.rb +363 -0
- data/lib/buildium-ruby/models/association_owner_to_existing_ownership_account_post_message.rb +428 -0
- data/lib/buildium-ruby/models/association_owner_unit_occupancy_put_message.rb +223 -0
- data/lib/buildium-ruby/models/association_owner_unit_occupancy_status_message.rb +228 -0
- data/lib/buildium-ruby/models/association_ownership_account_message.rb +347 -0
- data/lib/buildium-ruby/models/association_ownership_account_post_message.rb +346 -0
- data/lib/buildium-ruby/models/association_ownership_account_put_message.rb +223 -0
- data/lib/buildium-ruby/models/association_ownership_account_search_message.rb +296 -0
- data/lib/buildium-ruby/models/association_post_message.rb +302 -0
- data/lib/buildium-ruby/models/association_preferred_vendor_message.rb +300 -0
- data/lib/buildium-ruby/models/association_preferred_vendor_put_message.rb +225 -0
- data/lib/buildium-ruby/models/association_put_message.rb +322 -0
- data/lib/buildium-ruby/models/association_search_message.rb +283 -0
- data/lib/buildium-ruby/models/association_tenant_message.rb +350 -0
- data/lib/buildium-ruby/models/association_tenant_post_message.rb +354 -0
- data/lib/buildium-ruby/models/association_tenant_put_message.rb +329 -0
- data/lib/buildium-ruby/models/association_unit_message.rb +334 -0
- data/lib/buildium-ruby/models/association_unit_put_message.rb +313 -0
- data/lib/buildium-ruby/models/association_unit_search_message.rb +241 -0
- data/lib/buildium-ruby/models/association_units_post_message.rb +328 -0
- data/lib/buildium-ruby/models/association_user_search_message.rb +324 -0
- data/lib/buildium-ruby/models/bank_account_check_accounting_entity_save_message.rb +272 -0
- data/lib/buildium-ruby/models/bank_account_check_line_message.rb +267 -0
- data/lib/buildium-ruby/models/bank_account_check_line_save_message.rb +272 -0
- data/lib/buildium-ruby/models/bank_account_check_message.rb +279 -0
- data/lib/buildium-ruby/models/bank_account_check_payee_message.rb +272 -0
- data/lib/buildium-ruby/models/bank_account_check_payee_save_message.rb +272 -0
- data/lib/buildium-ruby/models/bank_account_check_post_message.rb +274 -0
- data/lib/buildium-ruby/models/bank_account_check_put_message.rb +274 -0
- data/lib/buildium-ruby/models/bank_account_check_search_message.rb +238 -0
- data/lib/buildium-ruby/models/bank_account_deposit_line_message.rb +267 -0
- data/lib/buildium-ruby/models/bank_account_deposit_line_save_message.rb +257 -0
- data/lib/buildium-ruby/models/bank_account_deposit_message.rb +272 -0
- data/lib/buildium-ruby/models/bank_account_deposit_post_message.rb +257 -0
- data/lib/buildium-ruby/models/bank_account_deposit_put_message.rb +250 -0
- data/lib/buildium-ruby/models/bank_account_deposit_search_message.rb +238 -0
- data/lib/buildium-ruby/models/bank_account_message.rb +360 -0
- data/lib/buildium-ruby/models/bank_account_post_message.rb +338 -0
- data/lib/buildium-ruby/models/bank_account_put_message.rb +343 -0
- data/lib/buildium-ruby/models/bank_account_quick_deposit_message.rb +267 -0
- data/lib/buildium-ruby/models/bank_account_quick_deposit_save_message.rb +277 -0
- data/lib/buildium-ruby/models/bank_account_quick_deposit_search_message.rb +238 -0
- data/lib/buildium-ruby/models/bank_account_search_message.rb +263 -0
- data/lib/buildium-ruby/models/bank_account_transaction_message.rb +359 -0
- data/lib/buildium-ruby/models/bank_account_transaction_search_message.rb +292 -0
- data/lib/buildium-ruby/models/bank_account_transfer_accounting_entity_save_message.rb +272 -0
- data/lib/buildium-ruby/models/bank_account_transfer_message.rb +267 -0
- data/lib/buildium-ruby/models/bank_account_transfer_save_message.rb +277 -0
- data/lib/buildium-ruby/models/bank_account_transfer_search_message.rb +238 -0
- data/lib/buildium-ruby/models/bank_account_withdrawal_message.rb +267 -0
- data/lib/buildium-ruby/models/bank_account_withdrawal_save_message.rb +277 -0
- data/lib/buildium-ruby/models/bank_account_withdrawal_search_message.rb +238 -0
- data/lib/buildium-ruby/models/bill_file_message.rb +268 -0
- data/lib/buildium-ruby/models/bill_line_message.rb +266 -0
- data/lib/buildium-ruby/models/bill_line_post_message.rb +272 -0
- data/lib/buildium-ruby/models/bill_line_put_message.rb +282 -0
- data/lib/buildium-ruby/models/bill_markup_message.rb +263 -0
- data/lib/buildium-ruby/models/bill_markup_save_message.rb +273 -0
- data/lib/buildium-ruby/models/bill_message.rb +344 -0
- data/lib/buildium-ruby/models/bill_payment_accounting_entity_message.rb +263 -0
- data/lib/buildium-ruby/models/bill_payment_line_message.rb +238 -0
- data/lib/buildium-ruby/models/bill_payment_line_post_message.rb +238 -0
- data/lib/buildium-ruby/models/bill_payment_message.rb +270 -0
- data/lib/buildium-ruby/models/bill_payment_post_message.rb +275 -0
- data/lib/buildium-ruby/models/bill_post_message.rb +301 -0
- data/lib/buildium-ruby/models/bill_put_message.rb +286 -0
- data/lib/buildium-ruby/models/bill_search_message.rb +336 -0
- data/lib/buildium-ruby/models/budget_details_message.rb +281 -0
- data/lib/buildium-ruby/models/budget_details_save_message.rb +237 -0
- data/lib/buildium-ruby/models/budget_message.rb +269 -0
- data/lib/buildium-ruby/models/budget_monthly_amounts_message.rb +328 -0
- data/lib/buildium-ruby/models/budget_monthly_amounts_save_message.rb +388 -0
- data/lib/buildium-ruby/models/budget_post_message.rb +319 -0
- data/lib/buildium-ruby/models/budget_put_message.rb +240 -0
- data/lib/buildium-ruby/models/budget_search_message.rb +240 -0
- data/lib/buildium-ruby/models/charge_recurring_transaction_post_message.rb +359 -0
- data/lib/buildium-ruby/models/charge_recurring_transaction_put_message.rb +374 -0
- data/lib/buildium-ruby/models/check_printing_info_message.rb +392 -0
- data/lib/buildium-ruby/models/check_printing_info_post_message.rb +392 -0
- data/lib/buildium-ruby/models/check_printing_info_put_message.rb +407 -0
- data/lib/buildium-ruby/models/client_lead_credit_request_message.rb +295 -0
- data/lib/buildium-ruby/models/client_lead_message.rb +363 -0
- data/lib/buildium-ruby/models/client_lead_search_message.rb +285 -0
- data/lib/buildium-ruby/models/contact_detail_message.rb +248 -0
- data/lib/buildium-ruby/models/contact_detail_phone_message.rb +239 -0
- data/lib/buildium-ruby/models/contact_detail_save_message.rb +253 -0
- data/lib/buildium-ruby/models/contact_detail_save_phone_message.rb +239 -0
- data/lib/buildium-ruby/models/contact_info_message.rb +248 -0
- data/lib/buildium-ruby/models/contact_request_task_message.rb +381 -0
- data/lib/buildium-ruby/models/contact_request_task_post_message.rb +388 -0
- data/lib/buildium-ruby/models/contact_request_task_put_message.rb +388 -0
- data/lib/buildium-ruby/models/contact_request_task_search_message.rb +366 -0
- data/lib/buildium-ruby/models/cosigner_message.rb +343 -0
- data/lib/buildium-ruby/models/created_by_user_message.rb +248 -0
- data/lib/buildium-ruby/models/credit_recurring_transaction_post_message.rb +388 -0
- data/lib/buildium-ruby/models/deposit_detail_message.rb +231 -0
- data/lib/buildium-ruby/models/electronic_payments_message.rb +288 -0
- data/lib/buildium-ruby/models/email_message.rb +247 -0
- data/lib/buildium-ruby/models/email_post_message.rb +307 -0
- data/lib/buildium-ruby/models/email_recipient_message.rb +292 -0
- data/lib/buildium-ruby/models/email_search_message.rb +268 -0
- data/lib/buildium-ruby/models/email_sender_message.rb +248 -0
- data/lib/buildium-ruby/models/emergency_contact_message.rb +249 -0
- data/lib/buildium-ruby/models/file_category_message.rb +239 -0
- data/lib/buildium-ruby/models/file_category_post_message.rb +224 -0
- data/lib/buildium-ruby/models/file_category_put_message.rb +224 -0
- data/lib/buildium-ruby/models/file_download_message.rb +218 -0
- data/lib/buildium-ruby/models/file_entity_message.rb +273 -0
- data/lib/buildium-ruby/models/file_message.rb +297 -0
- data/lib/buildium-ruby/models/file_name_post_message.rb +223 -0
- data/lib/buildium-ruby/models/file_put_message.rb +248 -0
- data/lib/buildium-ruby/models/file_search_message.rb +315 -0
- data/lib/buildium-ruby/models/file_upload_post_message.rb +322 -0
- data/lib/buildium-ruby/models/file_upload_ticket_message.rb +240 -0
- data/lib/buildium-ruby/models/general_journal_entry_line_save_message.rb +297 -0
- data/lib/buildium-ruby/models/general_journal_entry_post_message.rb +264 -0
- data/lib/buildium-ruby/models/general_journal_entry_put_message.rb +264 -0
- data/lib/buildium-ruby/models/general_ledger_journal_line_message.rb +267 -0
- data/lib/buildium-ruby/models/general_ledger_journal_message.rb +230 -0
- data/lib/buildium-ruby/models/general_ledger_transaction_message.rb +349 -0
- data/lib/buildium-ruby/models/general_ledger_transaction_search_message.rb +310 -0
- data/lib/buildium-ruby/models/gl_account_balance_item_message.rb +228 -0
- data/lib/buildium-ruby/models/gl_account_balance_message.rb +240 -0
- data/lib/buildium-ruby/models/gl_account_balance_search_message.rb +317 -0
- data/lib/buildium-ruby/models/gl_account_message.rb +419 -0
- data/lib/buildium-ruby/models/gl_account_post_message.rb +349 -0
- data/lib/buildium-ruby/models/gl_account_put_message.rb +344 -0
- data/lib/buildium-ruby/models/gl_accounts_search_message.rb +243 -0
- data/lib/buildium-ruby/models/gl_transaction_message_v1.rb +258 -0
- data/lib/buildium-ruby/models/internal_transaction_status_message.rb +239 -0
- data/lib/buildium-ruby/models/journal_line_message.rb +268 -0
- data/lib/buildium-ruby/models/journal_message.rb +230 -0
- data/lib/buildium-ruby/models/last_updated_by_user_message.rb +259 -0
- data/lib/buildium-ruby/models/lease_account_detail_message.rb +229 -0
- data/lib/buildium-ruby/models/lease_charge_line_save_message.rb +249 -0
- data/lib/buildium-ruby/models/lease_charge_post_message.rb +241 -0
- data/lib/buildium-ruby/models/lease_charge_put_message.rb +250 -0
- data/lib/buildium-ruby/models/lease_charge_recurring_transaction_message.rb +374 -0
- data/lib/buildium-ruby/models/lease_cosigner_post_message.rb +330 -0
- data/lib/buildium-ruby/models/lease_ledger_credit_line_post_message.rb +239 -0
- data/lib/buildium-ruby/models/lease_ledger_credit_post_message.rb +309 -0
- data/lib/buildium-ruby/models/lease_ledger_deposit_withholding_line_post_message.rb +238 -0
- data/lib/buildium-ruby/models/lease_ledger_deposit_withholding_post_message.rb +260 -0
- data/lib/buildium-ruby/models/lease_ledger_payment_line_save_message.rb +239 -0
- data/lib/buildium-ruby/models/lease_ledger_payment_post_message.rb +335 -0
- data/lib/buildium-ruby/models/lease_ledger_refund_line_message.rb +228 -0
- data/lib/buildium-ruby/models/lease_ledger_refund_line_post_message.rb +238 -0
- data/lib/buildium-ruby/models/lease_ledger_refund_message.rb +301 -0
- data/lib/buildium-ruby/models/lease_ledger_refund_post_message.rb +306 -0
- data/lib/buildium-ruby/models/lease_ledger_reverse_payment_nsf_charge_post_message.rb +239 -0
- data/lib/buildium-ruby/models/lease_ledger_reverse_payment_other_bank_charge_post_message.rb +239 -0
- data/lib/buildium-ruby/models/lease_ledger_reverse_payment_post_message.rb +256 -0
- data/lib/buildium-ruby/models/lease_message.rb +496 -0
- data/lib/buildium-ruby/models/lease_move_out_data_message.rb +238 -0
- data/lib/buildium-ruby/models/lease_move_out_data_post_message.rb +248 -0
- data/lib/buildium-ruby/models/lease_outstanding_balance_message.rb +330 -0
- data/lib/buildium-ruby/models/lease_outstanding_balance_search_message.rb +345 -0
- data/lib/buildium-ruby/models/lease_post_message.rb +379 -0
- data/lib/buildium-ruby/models/lease_put_message.rb +322 -0
- data/lib/buildium-ruby/models/lease_recurring_credit_message.rb +408 -0
- data/lib/buildium-ruby/models/lease_recurring_payment_message.rb +397 -0
- data/lib/buildium-ruby/models/lease_renewal_message.rb +336 -0
- data/lib/buildium-ruby/models/lease_renewal_post_message.rb +378 -0
- data/lib/buildium-ruby/models/lease_rent_charge_message.rb +278 -0
- data/lib/buildium-ruby/models/lease_rent_charge_post_message.rb +263 -0
- data/lib/buildium-ruby/models/lease_rent_message.rb +334 -0
- data/lib/buildium-ruby/models/lease_rent_post_message.rb +275 -0
- data/lib/buildium-ruby/models/lease_search_message.rb +359 -0
- data/lib/buildium-ruby/models/lease_security_deposit_post_message.rb +239 -0
- data/lib/buildium-ruby/models/lease_tenant_message.rb +262 -0
- data/lib/buildium-ruby/models/lease_transaction_message.rb +298 -0
- data/lib/buildium-ruby/models/lease_transaction_search_message.rb +263 -0
- data/lib/buildium-ruby/models/listing_contact_message.rb +259 -0
- data/lib/buildium-ruby/models/listing_contact_save_message.rb +253 -0
- data/lib/buildium-ruby/models/listing_file_message.rb +272 -0
- data/lib/buildium-ruby/models/listing_message.rb +305 -0
- data/lib/buildium-ruby/models/listing_property_message.rb +326 -0
- data/lib/buildium-ruby/models/listing_put_message.rb +283 -0
- data/lib/buildium-ruby/models/listing_search_message.rb +262 -0
- data/lib/buildium-ruby/models/listing_unit_message.rb +358 -0
- data/lib/buildium-ruby/models/lock_period_settings_global_message.rb +218 -0
- data/lib/buildium-ruby/models/lock_period_settings_overrides_message.rb +227 -0
- data/lib/buildium-ruby/models/logged_by_staff_user_message.rb +249 -0
- data/lib/buildium-ruby/models/lookup_message.rb +226 -0
- data/lib/buildium-ruby/models/mailing_template_message.rb +282 -0
- data/lib/buildium-ruby/models/note_message.rb +237 -0
- data/lib/buildium-ruby/models/note_post_message.rb +223 -0
- data/lib/buildium-ruby/models/note_put_message.rb +223 -0
- data/lib/buildium-ruby/models/note_search_message.rb +238 -0
- data/lib/buildium-ruby/models/outstanding_balances_line_message.rb +228 -0
- data/lib/buildium-ruby/models/ownership_account_charge_recurring_transaction_message.rb +374 -0
- data/lib/buildium-ruby/models/ownership_account_credit_line_post_message.rb +238 -0
- data/lib/buildium-ruby/models/ownership_account_credit_post_message.rb +309 -0
- data/lib/buildium-ruby/models/ownership_account_deposit_withholding_line_post_message.rb +238 -0
- data/lib/buildium-ruby/models/ownership_account_deposit_withholding_post_message.rb +260 -0
- data/lib/buildium-ruby/models/ownership_account_ledger_charge_lines_put_message.rb +248 -0
- data/lib/buildium-ruby/models/ownership_account_ledger_charge_lines_save_message.rb +238 -0
- data/lib/buildium-ruby/models/ownership_account_ledger_charge_post_message.rb +250 -0
- data/lib/buildium-ruby/models/ownership_account_ledger_charge_put_message.rb +250 -0
- data/lib/buildium-ruby/models/ownership_account_ledger_payment_line_save_message.rb +239 -0
- data/lib/buildium-ruby/models/ownership_account_ledger_payment_post_message.rb +335 -0
- data/lib/buildium-ruby/models/ownership_account_outstanding_balance_message.rb +310 -0
- data/lib/buildium-ruby/models/ownership_account_outstanding_balance_search_message.rb +308 -0
- data/lib/buildium-ruby/models/ownership_account_recurring_credit_message.rb +408 -0
- data/lib/buildium-ruby/models/ownership_account_recurring_payment_message.rb +397 -0
- data/lib/buildium-ruby/models/ownership_account_refund_line_message.rb +228 -0
- data/lib/buildium-ruby/models/ownership_account_refund_lines_post_message.rb +238 -0
- data/lib/buildium-ruby/models/ownership_account_refund_message.rb +301 -0
- data/lib/buildium-ruby/models/ownership_account_refund_post_message.rb +306 -0
- data/lib/buildium-ruby/models/ownership_account_transaction_message.rb +298 -0
- data/lib/buildium-ruby/models/paid_by_message.rb +228 -0
- data/lib/buildium-ruby/models/participant_message.rb +240 -0
- data/lib/buildium-ruby/models/participant_resource_message.rb +263 -0
- data/lib/buildium-ruby/models/payee_message.rb +283 -0
- data/lib/buildium-ruby/models/payment_detail_message.rb +281 -0
- data/lib/buildium-ruby/models/payment_recurring_transaction_post_message.rb +378 -0
- data/lib/buildium-ruby/models/payment_transactions_message.rb +237 -0
- data/lib/buildium-ruby/models/phone_log_message.rb +266 -0
- data/lib/buildium-ruby/models/phone_log_participant_post_message.rb +282 -0
- data/lib/buildium-ruby/models/phone_log_participant_unit_agreement_post_message.rb +263 -0
- data/lib/buildium-ruby/models/phone_log_post_message.rb +267 -0
- data/lib/buildium-ruby/models/phone_log_put_message.rb +253 -0
- data/lib/buildium-ruby/models/phone_log_search_message.rb +336 -0
- data/lib/buildium-ruby/models/phone_number_message.rb +263 -0
- data/lib/buildium-ruby/models/phone_numbers_message.rb +249 -0
- data/lib/buildium-ruby/models/property_group_message.rb +259 -0
- data/lib/buildium-ruby/models/property_group_post_message.rb +250 -0
- data/lib/buildium-ruby/models/property_group_put_message.rb +250 -0
- data/lib/buildium-ruby/models/property_group_search_message.rb +230 -0
- data/lib/buildium-ruby/models/property_manager_message.rb +291 -0
- data/lib/buildium-ruby/models/property_message.rb +273 -0
- data/lib/buildium-ruby/models/recurring_transaction_line_message.rb +228 -0
- data/lib/buildium-ruby/models/recurring_transaction_line_post_message.rb +238 -0
- data/lib/buildium-ruby/models/recurring_transaction_message.rb +388 -0
- data/lib/buildium-ruby/models/rental_appliance_message.rb +288 -0
- data/lib/buildium-ruby/models/rental_appliance_post_message.rb +298 -0
- data/lib/buildium-ruby/models/rental_appliance_put_message.rb +273 -0
- data/lib/buildium-ruby/models/rental_appliance_search_message.rb +232 -0
- data/lib/buildium-ruby/models/rental_appliance_service_history_message.rb +282 -0
- data/lib/buildium-ruby/models/rental_appliance_service_history_post_message.rb +282 -0
- data/lib/buildium-ruby/models/rental_features_message.rb +255 -0
- data/lib/buildium-ruby/models/rental_features_put_message.rb +254 -0
- data/lib/buildium-ruby/models/rental_message.rb +373 -0
- data/lib/buildium-ruby/models/rental_owner_message.rb +361 -0
- data/lib/buildium-ruby/models/rental_owner_post_message.rb +363 -0
- data/lib/buildium-ruby/models/rental_owner_put_message.rb +354 -0
- data/lib/buildium-ruby/models/rental_owner_request_task_message.rb +381 -0
- data/lib/buildium-ruby/models/rental_owner_request_task_post_message.rb +384 -0
- data/lib/buildium-ruby/models/rental_owner_request_task_put_message.rb +369 -0
- data/lib/buildium-ruby/models/rental_owner_request_task_search_message.rb +366 -0
- data/lib/buildium-ruby/models/rental_owner_tax_information_message.rb +302 -0
- data/lib/buildium-ruby/models/rental_owners_search_message.rb +314 -0
- data/lib/buildium-ruby/models/rental_preferred_vendor_message.rb +300 -0
- data/lib/buildium-ruby/models/rental_preferred_vendor_put_message.rb +225 -0
- data/lib/buildium-ruby/models/rental_property_post_message.rb +365 -0
- data/lib/buildium-ruby/models/rental_property_put_message.rb +341 -0
- data/lib/buildium-ruby/models/rental_property_unit_post_message.rb +333 -0
- data/lib/buildium-ruby/models/rental_search_message.rb +330 -0
- data/lib/buildium-ruby/models/rental_tenant_post_message.rb +388 -0
- data/lib/buildium-ruby/models/rental_tenant_put_message.rb +373 -0
- data/lib/buildium-ruby/models/rental_tenant_renewal_post_message.rb +373 -0
- data/lib/buildium-ruby/models/rental_unit_features_message.rb +243 -0
- data/lib/buildium-ruby/models/rental_unit_features_put_message.rb +242 -0
- data/lib/buildium-ruby/models/rental_unit_message.rb +374 -0
- data/lib/buildium-ruby/models/rental_unit_put_message.rb +333 -0
- data/lib/buildium-ruby/models/rental_unit_search_message.rb +240 -0
- data/lib/buildium-ruby/models/rental_units_post_message.rb +348 -0
- data/lib/buildium-ruby/models/requested_by_user_entity_message.rb +303 -0
- data/lib/buildium-ruby/models/resident_center_user_message.rb +280 -0
- data/lib/buildium-ruby/models/resident_center_user_reference_message.rb +292 -0
- data/lib/buildium-ruby/models/resident_center_user_search_message.rb +288 -0
- data/lib/buildium-ruby/models/resident_request_task_message.rb +429 -0
- data/lib/buildium-ruby/models/resident_request_task_post_message.rb +409 -0
- data/lib/buildium-ruby/models/resident_request_task_put_message.rb +349 -0
- data/lib/buildium-ruby/models/resident_request_task_search_message.rb +376 -0
- data/lib/buildium-ruby/models/save_address_message.rb +323 -0
- data/lib/buildium-ruby/models/save_emergency_contact_message.rb +248 -0
- data/lib/buildium-ruby/models/task_category_message.rb +251 -0
- data/lib/buildium-ruby/models/task_category_put_message.rb +224 -0
- data/lib/buildium-ruby/models/task_category_response_message.rb +248 -0
- data/lib/buildium-ruby/models/task_category_save_message.rb +224 -0
- data/lib/buildium-ruby/models/task_history_file_message.rb +268 -0
- data/lib/buildium-ruby/models/task_history_file_upload_post_message.rb +223 -0
- data/lib/buildium-ruby/models/task_history_message.rb +376 -0
- data/lib/buildium-ruby/models/task_history_put_message.rb +223 -0
- data/lib/buildium-ruby/models/task_history_user_message.rb +249 -0
- data/lib/buildium-ruby/models/task_search_message.rb +398 -0
- data/lib/buildium-ruby/models/task_sub_category_message.rb +229 -0
- data/lib/buildium-ruby/models/tax_information_post_message.rb +292 -0
- data/lib/buildium-ruby/models/tax_information_save_message.rb +307 -0
- data/lib/buildium-ruby/models/tenant_message.rb +404 -0
- data/lib/buildium-ruby/models/tenant_search_message.rb +339 -0
- data/lib/buildium-ruby/models/to_do_task_message.rb +372 -0
- data/lib/buildium-ruby/models/to_do_task_post_message.rb +374 -0
- data/lib/buildium-ruby/models/to_do_task_put_message.rb +374 -0
- data/lib/buildium-ruby/models/to_do_task_search_message.rb +366 -0
- data/lib/buildium-ruby/models/undeposited_funds_message.rb +217 -0
- data/lib/buildium-ruby/models/unit_agreement_message.rb +273 -0
- data/lib/buildium-ruby/models/user_message.rb +354 -0
- data/lib/buildium-ruby/models/user_role_message.rb +249 -0
- data/lib/buildium-ruby/models/user_search_message.rb +297 -0
- data/lib/buildium-ruby/models/vehicle_message.rb +249 -0
- data/lib/buildium-ruby/models/vendor_category_message.rb +239 -0
- data/lib/buildium-ruby/models/vendor_category_save_message.rb +223 -0
- data/lib/buildium-ruby/models/vendor_credit_line_item_message.rb +257 -0
- data/lib/buildium-ruby/models/vendor_credit_line_item_post_message.rb +262 -0
- data/lib/buildium-ruby/models/vendor_credit_message.rb +260 -0
- data/lib/buildium-ruby/models/vendor_credit_post_message.rb +260 -0
- data/lib/buildium-ruby/models/vendor_insurance_message.rb +239 -0
- data/lib/buildium-ruby/models/vendor_insurance_save_message.rb +239 -0
- data/lib/buildium-ruby/models/vendor_message.rb +377 -0
- data/lib/buildium-ruby/models/vendor_post_message.rb +364 -0
- data/lib/buildium-ruby/models/vendor_put_message.rb +364 -0
- data/lib/buildium-ruby/models/vendor_refund_line_message.rb +257 -0
- data/lib/buildium-ruby/models/vendor_refund_line_post_message.rb +262 -0
- data/lib/buildium-ruby/models/vendor_refund_message.rb +314 -0
- data/lib/buildium-ruby/models/vendor_refund_post_message.rb +324 -0
- data/lib/buildium-ruby/models/vendor_search_message.rb +334 -0
- data/lib/buildium-ruby/models/vendor_tax_information_message.rb +302 -0
- data/lib/buildium-ruby/models/vendor_transaction_message.rb +302 -0
- data/lib/buildium-ruby/models/vendor_transaction_search_message.rb +292 -0
- data/lib/buildium-ruby/models/work_order_entry_contact_message.rb +231 -0
- data/lib/buildium-ruby/models/work_order_entry_contact_resource_message.rb +263 -0
- data/lib/buildium-ruby/models/work_order_line_item_message.rb +249 -0
- data/lib/buildium-ruby/models/work_order_line_item_save_message.rb +258 -0
- data/lib/buildium-ruby/models/work_order_message.rb +372 -0
- data/lib/buildium-ruby/models/work_order_post_message.rb +363 -0
- data/lib/buildium-ruby/models/work_order_put_message.rb +344 -0
- data/lib/buildium-ruby/models/work_order_search_message.rb +452 -0
- data/lib/buildium-ruby/models/work_order_task_message.rb +346 -0
- data/lib/buildium-ruby/models/work_order_task_post_message.rb +345 -0
- data/lib/buildium-ruby/version.rb +15 -0
- data/lib/buildium-ruby.rb +438 -0
- data/openapitools.json +7 -0
- data/spec/api/accounting_api_spec.rb +383 -0
- data/spec/api/administration_api_spec.rb +114 -0
- data/spec/api/applicants_api_spec.rb +294 -0
- data/spec/api/association_appliances_api_spec.rb +141 -0
- data/spec/api/association_owners_api_spec.rb +195 -0
- data/spec/api/association_ownership_accounts_api_spec.rb +385 -0
- data/spec/api/association_tenants_api_spec.rb +153 -0
- data/spec/api/association_units_api_spec.rb +147 -0
- data/spec/api/associations_api_spec.rb +248 -0
- data/spec/api/bank_accounts_api_spec.rb +420 -0
- data/spec/api/client_leads_api_spec.rb +66 -0
- data/spec/api/communications_api_spec.rb +248 -0
- data/spec/api/files_api_spec.rb +156 -0
- data/spec/api/leases_api_spec.rb +529 -0
- data/spec/api/listings_api_spec.rb +139 -0
- data/spec/api/property_groups_api_spec.rb +88 -0
- data/spec/api/rental_appliances_api_spec.rb +141 -0
- data/spec/api/rental_owners_api_spec.rb +151 -0
- data/spec/api/rental_properties_api_spec.rb +205 -0
- data/spec/api/rental_tenants_api_spec.rb +154 -0
- data/spec/api/rental_units_api_spec.rb +172 -0
- data/spec/api/resident_center_api_spec.rb +54 -0
- data/spec/api/tasks_api_spec.rb +493 -0
- data/spec/api/vendors_api_spec.rb +275 -0
- data/spec/api/work_orders_api_spec.rb +105 -0
- data/spec/api_client_spec.rb +188 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_info_message_spec.rb +58 -0
- data/spec/models/accounting_entity_message_spec.rb +50 -0
- data/spec/models/accounting_entity_save_message_spec.rb +44 -0
- data/spec/models/accounting_lock_period_message_spec.rb +46 -0
- data/spec/models/accounting_settings_message_spec.rb +72 -0
- data/spec/models/address_message_spec.rb +74 -0
- data/spec/models/all_tasks_message_spec.rb +130 -0
- data/spec/models/announcement_message_spec.rb +74 -0
- data/spec/models/announcement_post_message_spec.rb +64 -0
- data/spec/models/announcement_search_message_spec.rb +62 -0
- data/spec/models/announcement_sender_message_spec.rb +46 -0
- data/spec/models/api_error_response_spec.rb +46 -0
- data/spec/models/appliance_message_spec.rb +58 -0
- data/spec/models/applicant_application_message_spec.rb +56 -0
- data/spec/models/applicant_group_message_spec.rb +62 -0
- data/spec/models/applicant_group_post_message_spec.rb +40 -0
- data/spec/models/applicant_group_put_message_spec.rb +50 -0
- data/spec/models/applicant_group_search_message_spec.rb +66 -0
- data/spec/models/applicant_message_spec.rb +88 -0
- data/spec/models/applicant_post_message_spec.rb +64 -0
- data/spec/models/applicant_put_message_spec.rb +58 -0
- data/spec/models/applicant_search_message_spec.rb +84 -0
- data/spec/models/application_message_spec.rb +62 -0
- data/spec/models/application_put_message_spec.rb +38 -0
- data/spec/models/application_response_field_message_spec.rb +60 -0
- data/spec/models/application_response_message_spec.rb +50 -0
- data/spec/models/application_section_response_message_spec.rb +34 -0
- data/spec/models/association_appliance_message_spec.rb +76 -0
- data/spec/models/association_appliance_post_message_spec.rb +76 -0
- data/spec/models/association_appliance_put_message_spec.rb +64 -0
- data/spec/models/association_appliance_search_message_spec.rb +40 -0
- data/spec/models/association_appliance_service_history_message_spec.rb +56 -0
- data/spec/models/association_appliance_service_history_post_message_spec.rb +50 -0
- data/spec/models/association_board_member_message_spec.rb +92 -0
- data/spec/models/association_board_member_post_message_spec.rb +56 -0
- data/spec/models/association_board_member_put_message_spec.rb +50 -0
- data/spec/models/association_board_member_search_message_spec.rb +60 -0
- data/spec/models/association_message_spec.rb +100 -0
- data/spec/models/association_owner_board_term_message_spec.rb +68 -0
- data/spec/models/association_owner_board_term_post_message_spec.rb +50 -0
- data/spec/models/association_owner_message_spec.rb +144 -0
- data/spec/models/association_owner_post_message_spec.rb +116 -0
- data/spec/models/association_owner_put_message_spec.rb +98 -0
- data/spec/models/association_owner_to_existing_ownership_account_post_message_spec.rb +128 -0
- data/spec/models/association_owner_unit_occupancy_put_message_spec.rb +34 -0
- data/spec/models/association_owner_unit_occupancy_status_message_spec.rb +40 -0
- data/spec/models/association_ownership_account_message_spec.rb +90 -0
- data/spec/models/association_ownership_account_post_message_spec.rb +80 -0
- data/spec/models/association_ownership_account_put_message_spec.rb +34 -0
- data/spec/models/association_ownership_account_search_message_spec.rb +72 -0
- data/spec/models/association_post_message_spec.rb +76 -0
- data/spec/models/association_preferred_vendor_message_spec.rb +82 -0
- data/spec/models/association_preferred_vendor_put_message_spec.rb +34 -0
- data/spec/models/association_put_message_spec.rb +82 -0
- data/spec/models/association_search_message_spec.rb +56 -0
- data/spec/models/association_tenant_message_spec.rb +112 -0
- data/spec/models/association_tenant_post_message_spec.rb +106 -0
- data/spec/models/association_tenant_put_message_spec.rb +94 -0
- data/spec/models/association_unit_message_spec.rb +84 -0
- data/spec/models/association_unit_put_message_spec.rb +66 -0
- data/spec/models/association_unit_search_message_spec.rb +46 -0
- data/spec/models/association_units_post_message_spec.rb +72 -0
- data/spec/models/association_user_search_message_spec.rb +86 -0
- data/spec/models/bank_account_check_accounting_entity_save_message_spec.rb +44 -0
- data/spec/models/bank_account_check_line_message_spec.rb +64 -0
- data/spec/models/bank_account_check_line_save_message_spec.rb +58 -0
- data/spec/models/bank_account_check_message_spec.rb +70 -0
- data/spec/models/bank_account_check_payee_message_spec.rb +50 -0
- data/spec/models/bank_account_check_payee_save_message_spec.rb +44 -0
- data/spec/models/bank_account_check_post_message_spec.rb +58 -0
- data/spec/models/bank_account_check_put_message_spec.rb +58 -0
- data/spec/models/bank_account_check_search_message_spec.rb +40 -0
- data/spec/models/bank_account_deposit_line_message_spec.rb +64 -0
- data/spec/models/bank_account_deposit_line_save_message_spec.rb +58 -0
- data/spec/models/bank_account_deposit_message_spec.rb +64 -0
- data/spec/models/bank_account_deposit_post_message_spec.rb +52 -0
- data/spec/models/bank_account_deposit_put_message_spec.rb +46 -0
- data/spec/models/bank_account_deposit_search_message_spec.rb +40 -0
- data/spec/models/bank_account_message_spec.rb +104 -0
- data/spec/models/bank_account_post_message_spec.rb +78 -0
- data/spec/models/bank_account_put_message_spec.rb +78 -0
- data/spec/models/bank_account_quick_deposit_message_spec.rb +64 -0
- data/spec/models/bank_account_quick_deposit_save_message_spec.rb +58 -0
- data/spec/models/bank_account_quick_deposit_search_message_spec.rb +40 -0
- data/spec/models/bank_account_search_message_spec.rb +44 -0
- data/spec/models/bank_account_transaction_message_spec.rb +96 -0
- data/spec/models/bank_account_transaction_search_message_spec.rb +56 -0
- data/spec/models/bank_account_transfer_accounting_entity_save_message_spec.rb +44 -0
- data/spec/models/bank_account_transfer_message_spec.rb +64 -0
- data/spec/models/bank_account_transfer_save_message_spec.rb +58 -0
- data/spec/models/bank_account_transfer_search_message_spec.rb +40 -0
- data/spec/models/bank_account_withdrawal_message_spec.rb +64 -0
- data/spec/models/bank_account_withdrawal_save_message_spec.rb +58 -0
- data/spec/models/bank_account_withdrawal_search_message_spec.rb +40 -0
- data/spec/models/bill_file_message_spec.rb +64 -0
- data/spec/models/bill_line_message_spec.rb +64 -0
- data/spec/models/bill_line_post_message_spec.rb +58 -0
- data/spec/models/bill_line_put_message_spec.rb +64 -0
- data/spec/models/bill_markup_message_spec.rb +44 -0
- data/spec/models/bill_markup_save_message_spec.rb +44 -0
- data/spec/models/bill_message_spec.rb +92 -0
- data/spec/models/bill_payment_accounting_entity_message_spec.rb +44 -0
- data/spec/models/bill_payment_line_message_spec.rb +46 -0
- data/spec/models/bill_payment_line_post_message_spec.rb +40 -0
- data/spec/models/bill_payment_message_spec.rb +64 -0
- data/spec/models/bill_payment_post_message_spec.rb +58 -0
- data/spec/models/bill_post_message_spec.rb +70 -0
- data/spec/models/bill_put_message_spec.rb +64 -0
- data/spec/models/bill_search_message_spec.rb +88 -0
- data/spec/models/budget_details_message_spec.rb +56 -0
- data/spec/models/budget_details_save_message_spec.rb +40 -0
- data/spec/models/budget_message_spec.rb +64 -0
- data/spec/models/budget_monthly_amounts_message_spec.rb +100 -0
- data/spec/models/budget_monthly_amounts_save_message_spec.rb +100 -0
- data/spec/models/budget_post_message_spec.rb +62 -0
- data/spec/models/budget_put_message_spec.rb +40 -0
- data/spec/models/budget_search_message_spec.rb +46 -0
- data/spec/models/charge_recurring_transaction_post_message_spec.rb +84 -0
- data/spec/models/charge_recurring_transaction_put_message_spec.rb +90 -0
- data/spec/models/check_printing_info_message_spec.rb +122 -0
- data/spec/models/check_printing_info_post_message_spec.rb +122 -0
- data/spec/models/check_printing_info_put_message_spec.rb +122 -0
- data/spec/models/client_lead_credit_request_message_spec.rb +60 -0
- data/spec/models/client_lead_message_spec.rb +102 -0
- data/spec/models/client_lead_search_message_spec.rb +66 -0
- data/spec/models/contact_detail_message_spec.rb +52 -0
- data/spec/models/contact_detail_phone_message_spec.rb +46 -0
- data/spec/models/contact_detail_save_message_spec.rb +52 -0
- data/spec/models/contact_detail_save_phone_message_spec.rb +46 -0
- data/spec/models/contact_info_message_spec.rb +52 -0
- data/spec/models/contact_request_task_message_spec.rb +114 -0
- data/spec/models/contact_request_task_post_message_spec.rb +102 -0
- data/spec/models/contact_request_task_put_message_spec.rb +102 -0
- data/spec/models/contact_request_task_search_message_spec.rb +112 -0
- data/spec/models/cosigner_message_spec.rb +92 -0
- data/spec/models/created_by_user_message_spec.rb +52 -0
- data/spec/models/credit_recurring_transaction_post_message_spec.rb +100 -0
- data/spec/models/deposit_detail_message_spec.rb +40 -0
- data/spec/models/electronic_payments_message_spec.rb +76 -0
- data/spec/models/email_message_spec.rb +52 -0
- data/spec/models/email_post_message_spec.rb +70 -0
- data/spec/models/email_recipient_message_spec.rb +62 -0
- data/spec/models/email_search_message_spec.rb +58 -0
- data/spec/models/email_sender_message_spec.rb +52 -0
- data/spec/models/emergency_contact_message_spec.rb +52 -0
- data/spec/models/file_category_message_spec.rb +46 -0
- data/spec/models/file_category_post_message_spec.rb +34 -0
- data/spec/models/file_category_put_message_spec.rb +34 -0
- data/spec/models/file_download_message_spec.rb +34 -0
- data/spec/models/file_entity_message_spec.rb +50 -0
- data/spec/models/file_message_spec.rb +82 -0
- data/spec/models/file_name_post_message_spec.rb +34 -0
- data/spec/models/file_put_message_spec.rb +46 -0
- data/spec/models/file_search_message_spec.rb +74 -0
- data/spec/models/file_upload_post_message_spec.rb +68 -0
- data/spec/models/file_upload_ticket_message_spec.rb +46 -0
- data/spec/models/general_journal_entry_line_save_message_spec.rb +56 -0
- data/spec/models/general_journal_entry_post_message_spec.rb +52 -0
- data/spec/models/general_journal_entry_put_message_spec.rb +52 -0
- data/spec/models/general_ledger_journal_line_message_spec.rb +64 -0
- data/spec/models/general_ledger_journal_message_spec.rb +40 -0
- data/spec/models/general_ledger_transaction_message_spec.rb +98 -0
- data/spec/models/general_ledger_transaction_search_message_spec.rb +62 -0
- data/spec/models/gl_account_balance_item_message_spec.rb +40 -0
- data/spec/models/gl_account_balance_message_spec.rb +46 -0
- data/spec/models/gl_account_balance_search_message_spec.rb +66 -0
- data/spec/models/gl_account_message_spec.rb +130 -0
- data/spec/models/gl_account_post_message_spec.rb +84 -0
- data/spec/models/gl_account_put_message_spec.rb +84 -0
- data/spec/models/gl_accounts_search_message_spec.rb +38 -0
- data/spec/models/gl_transaction_message_v1_spec.rb +58 -0
- data/spec/models/internal_transaction_status_message_spec.rb +46 -0
- data/spec/models/journal_line_message_spec.rb +64 -0
- data/spec/models/journal_message_spec.rb +40 -0
- data/spec/models/last_updated_by_user_message_spec.rb +58 -0
- data/spec/models/lease_account_detail_message_spec.rb +40 -0
- data/spec/models/lease_charge_line_save_message_spec.rb +46 -0
- data/spec/models/lease_charge_post_message_spec.rb +46 -0
- data/spec/models/lease_charge_put_message_spec.rb +46 -0
- data/spec/models/lease_charge_recurring_transaction_message_spec.rb +108 -0
- data/spec/models/lease_cosigner_post_message_spec.rb +80 -0
- data/spec/models/lease_ledger_credit_line_post_message_spec.rb +40 -0
- data/spec/models/lease_ledger_credit_post_message_spec.rb +62 -0
- data/spec/models/lease_ledger_deposit_withholding_line_post_message_spec.rb +40 -0
- data/spec/models/lease_ledger_deposit_withholding_post_message_spec.rb +52 -0
- data/spec/models/lease_ledger_payment_line_save_message_spec.rb +40 -0
- data/spec/models/lease_ledger_payment_post_message_spec.rb +74 -0
- data/spec/models/lease_ledger_refund_line_message_spec.rb +40 -0
- data/spec/models/lease_ledger_refund_line_post_message_spec.rb +40 -0
- data/spec/models/lease_ledger_refund_message_spec.rb +82 -0
- data/spec/models/lease_ledger_refund_post_message_spec.rb +70 -0
- data/spec/models/lease_ledger_reverse_payment_nsf_charge_post_message_spec.rb +40 -0
- data/spec/models/lease_ledger_reverse_payment_other_bank_charge_post_message_spec.rb +40 -0
- data/spec/models/lease_ledger_reverse_payment_post_message_spec.rb +52 -0
- data/spec/models/lease_message_spec.rb +170 -0
- data/spec/models/lease_move_out_data_message_spec.rb +46 -0
- data/spec/models/lease_move_out_data_post_message_spec.rb +46 -0
- data/spec/models/lease_outstanding_balance_message_spec.rb +100 -0
- data/spec/models/lease_outstanding_balance_search_message_spec.rb +90 -0
- data/spec/models/lease_post_message_spec.rb +98 -0
- data/spec/models/lease_put_message_spec.rb +68 -0
- data/spec/models/lease_recurring_credit_message_spec.rb +124 -0
- data/spec/models/lease_recurring_payment_message_spec.rb +118 -0
- data/spec/models/lease_renewal_message_spec.rb +84 -0
- data/spec/models/lease_renewal_post_message_spec.rb +98 -0
- data/spec/models/lease_rent_charge_message_spec.rb +70 -0
- data/spec/models/lease_rent_charge_post_message_spec.rb +52 -0
- data/spec/models/lease_rent_message_spec.rb +86 -0
- data/spec/models/lease_rent_post_message_spec.rb +44 -0
- data/spec/models/lease_search_message_spec.rb +108 -0
- data/spec/models/lease_security_deposit_post_message_spec.rb +40 -0
- data/spec/models/lease_tenant_message_spec.rb +44 -0
- data/spec/models/lease_transaction_message_spec.rb +82 -0
- data/spec/models/lease_transaction_search_message_spec.rb +50 -0
- data/spec/models/listing_contact_message_spec.rb +58 -0
- data/spec/models/listing_contact_save_message_spec.rb +52 -0
- data/spec/models/listing_file_message_spec.rb +50 -0
- data/spec/models/listing_message_spec.rb +88 -0
- data/spec/models/listing_property_message_spec.rb +90 -0
- data/spec/models/listing_put_message_spec.rb +64 -0
- data/spec/models/listing_search_message_spec.rb +44 -0
- data/spec/models/listing_unit_message_spec.rb +100 -0
- data/spec/models/lock_period_settings_global_message_spec.rb +34 -0
- data/spec/models/lock_period_settings_overrides_message_spec.rb +40 -0
- data/spec/models/logged_by_staff_user_message_spec.rb +52 -0
- data/spec/models/lookup_message_spec.rb +40 -0
- data/spec/models/mailing_template_message_spec.rb +56 -0
- data/spec/models/note_message_spec.rb +46 -0
- data/spec/models/note_post_message_spec.rb +34 -0
- data/spec/models/note_put_message_spec.rb +34 -0
- data/spec/models/note_search_message_spec.rb +46 -0
- data/spec/models/outstanding_balances_line_message_spec.rb +40 -0
- data/spec/models/ownership_account_charge_recurring_transaction_message_spec.rb +108 -0
- data/spec/models/ownership_account_credit_line_post_message_spec.rb +40 -0
- data/spec/models/ownership_account_credit_post_message_spec.rb +62 -0
- data/spec/models/ownership_account_deposit_withholding_line_post_message_spec.rb +40 -0
- data/spec/models/ownership_account_deposit_withholding_post_message_spec.rb +52 -0
- data/spec/models/ownership_account_ledger_charge_lines_put_message_spec.rb +46 -0
- data/spec/models/ownership_account_ledger_charge_lines_save_message_spec.rb +40 -0
- data/spec/models/ownership_account_ledger_charge_post_message_spec.rb +46 -0
- data/spec/models/ownership_account_ledger_charge_put_message_spec.rb +46 -0
- data/spec/models/ownership_account_ledger_payment_line_save_message_spec.rb +40 -0
- data/spec/models/ownership_account_ledger_payment_post_message_spec.rb +74 -0
- data/spec/models/ownership_account_outstanding_balance_message_spec.rb +88 -0
- data/spec/models/ownership_account_outstanding_balance_search_message_spec.rb +70 -0
- data/spec/models/ownership_account_recurring_credit_message_spec.rb +124 -0
- data/spec/models/ownership_account_recurring_payment_message_spec.rb +118 -0
- data/spec/models/ownership_account_refund_line_message_spec.rb +40 -0
- data/spec/models/ownership_account_refund_lines_post_message_spec.rb +40 -0
- data/spec/models/ownership_account_refund_message_spec.rb +82 -0
- data/spec/models/ownership_account_refund_post_message_spec.rb +70 -0
- data/spec/models/ownership_account_transaction_message_spec.rb +82 -0
- data/spec/models/paid_by_message_spec.rb +40 -0
- data/spec/models/participant_message_spec.rb +46 -0
- data/spec/models/participant_resource_message_spec.rb +44 -0
- data/spec/models/payee_message_spec.rb +56 -0
- data/spec/models/payment_detail_message_spec.rb +56 -0
- data/spec/models/payment_recurring_transaction_post_message_spec.rb +94 -0
- data/spec/models/payment_transactions_message_spec.rb +46 -0
- data/spec/models/phone_log_message_spec.rb +64 -0
- data/spec/models/phone_log_participant_post_message_spec.rb +50 -0
- data/spec/models/phone_log_participant_unit_agreement_post_message_spec.rb +44 -0
- data/spec/models/phone_log_post_message_spec.rb +52 -0
- data/spec/models/phone_log_put_message_spec.rb +46 -0
- data/spec/models/phone_log_search_message_spec.rb +84 -0
- data/spec/models/phone_number_message_spec.rb +44 -0
- data/spec/models/phone_numbers_message_spec.rb +52 -0
- data/spec/models/property_group_message_spec.rb +58 -0
- data/spec/models/property_group_post_message_spec.rb +46 -0
- data/spec/models/property_group_put_message_spec.rb +46 -0
- data/spec/models/property_group_search_message_spec.rb +40 -0
- data/spec/models/property_manager_message_spec.rb +76 -0
- data/spec/models/property_message_spec.rb +50 -0
- data/spec/models/recurring_transaction_line_message_spec.rb +40 -0
- data/spec/models/recurring_transaction_line_post_message_spec.rb +40 -0
- data/spec/models/recurring_transaction_message_spec.rb +112 -0
- data/spec/models/rental_appliance_message_spec.rb +76 -0
- data/spec/models/rental_appliance_post_message_spec.rb +76 -0
- data/spec/models/rental_appliance_put_message_spec.rb +64 -0
- data/spec/models/rental_appliance_search_message_spec.rb +40 -0
- data/spec/models/rental_appliance_service_history_message_spec.rb +56 -0
- data/spec/models/rental_appliance_service_history_post_message_spec.rb +50 -0
- data/spec/models/rental_features_message_spec.rb +48 -0
- data/spec/models/rental_features_put_message_spec.rb +48 -0
- data/spec/models/rental_message_spec.rb +108 -0
- data/spec/models/rental_owner_message_spec.rb +118 -0
- data/spec/models/rental_owner_post_message_spec.rb +112 -0
- data/spec/models/rental_owner_put_message_spec.rb +106 -0
- data/spec/models/rental_owner_request_task_message_spec.rb +114 -0
- data/spec/models/rental_owner_request_task_post_message_spec.rb +102 -0
- data/spec/models/rental_owner_request_task_put_message_spec.rb +96 -0
- data/spec/models/rental_owner_request_task_search_message_spec.rb +112 -0
- data/spec/models/rental_owner_tax_information_message_spec.rb +68 -0
- data/spec/models/rental_owners_search_message_spec.rb +74 -0
- data/spec/models/rental_preferred_vendor_message_spec.rb +82 -0
- data/spec/models/rental_preferred_vendor_put_message_spec.rb +34 -0
- data/spec/models/rental_property_post_message_spec.rb +92 -0
- data/spec/models/rental_property_put_message_spec.rb +80 -0
- data/spec/models/rental_property_unit_post_message_spec.rb +78 -0
- data/spec/models/rental_search_message_spec.rb +88 -0
- data/spec/models/rental_tenant_post_message_spec.rb +110 -0
- data/spec/models/rental_tenant_put_message_spec.rb +104 -0
- data/spec/models/rental_tenant_renewal_post_message_spec.rb +104 -0
- data/spec/models/rental_unit_features_message_spec.rb +38 -0
- data/spec/models/rental_unit_features_put_message_spec.rb +38 -0
- data/spec/models/rental_unit_message_spec.rb +108 -0
- data/spec/models/rental_unit_put_message_spec.rb +78 -0
- data/spec/models/rental_unit_search_message_spec.rb +46 -0
- data/spec/models/rental_units_post_message_spec.rb +84 -0
- data/spec/models/requested_by_user_entity_message_spec.rb +68 -0
- data/spec/models/resident_center_user_message_spec.rb +56 -0
- data/spec/models/resident_center_user_reference_message_spec.rb +62 -0
- data/spec/models/resident_center_user_search_message_spec.rb +66 -0
- data/spec/models/resident_request_task_message_spec.rb +144 -0
- data/spec/models/resident_request_task_post_message_spec.rb +114 -0
- data/spec/models/resident_request_task_put_message_spec.rb +84 -0
- data/spec/models/resident_request_task_search_message_spec.rb +118 -0
- data/spec/models/save_address_message_spec.rb +74 -0
- data/spec/models/save_emergency_contact_message_spec.rb +52 -0
- data/spec/models/task_category_message_spec.rb +52 -0
- data/spec/models/task_category_put_message_spec.rb +34 -0
- data/spec/models/task_category_response_message_spec.rb +52 -0
- data/spec/models/task_category_save_message_spec.rb +34 -0
- data/spec/models/task_history_file_message_spec.rb +64 -0
- data/spec/models/task_history_file_upload_post_message_spec.rb +34 -0
- data/spec/models/task_history_message_spec.rb +112 -0
- data/spec/models/task_history_put_message_spec.rb +34 -0
- data/spec/models/task_history_user_message_spec.rb +52 -0
- data/spec/models/task_search_message_spec.rb +128 -0
- data/spec/models/task_sub_category_message_spec.rb +40 -0
- data/spec/models/tax_information_post_message_spec.rb +62 -0
- data/spec/models/tax_information_save_message_spec.rb +68 -0
- data/spec/models/tenant_message_spec.rb +128 -0
- data/spec/models/tenant_search_message_spec.rb +96 -0
- data/spec/models/to_do_task_message_spec.rb +108 -0
- data/spec/models/to_do_task_post_message_spec.rb +96 -0
- data/spec/models/to_do_task_put_message_spec.rb +96 -0
- data/spec/models/to_do_task_search_message_spec.rb +112 -0
- data/spec/models/undeposited_funds_message_spec.rb +34 -0
- data/spec/models/unit_agreement_message_spec.rb +50 -0
- data/spec/models/user_message_spec.rb +104 -0
- data/spec/models/user_role_message_spec.rb +52 -0
- data/spec/models/user_search_message_spec.rb +66 -0
- data/spec/models/vehicle_message_spec.rb +52 -0
- data/spec/models/vendor_category_message_spec.rb +46 -0
- data/spec/models/vendor_category_save_message_spec.rb +34 -0
- data/spec/models/vendor_credit_line_item_message_spec.rb +58 -0
- data/spec/models/vendor_credit_line_item_post_message_spec.rb +52 -0
- data/spec/models/vendor_credit_message_spec.rb +58 -0
- data/spec/models/vendor_credit_post_message_spec.rb +52 -0
- data/spec/models/vendor_insurance_message_spec.rb +46 -0
- data/spec/models/vendor_insurance_save_message_spec.rb +46 -0
- data/spec/models/vendor_message_spec.rb +130 -0
- data/spec/models/vendor_post_message_spec.rb +118 -0
- data/spec/models/vendor_put_message_spec.rb +118 -0
- data/spec/models/vendor_refund_line_message_spec.rb +58 -0
- data/spec/models/vendor_refund_line_post_message_spec.rb +52 -0
- data/spec/models/vendor_refund_message_spec.rb +74 -0
- data/spec/models/vendor_refund_post_message_spec.rb +68 -0
- data/spec/models/vendor_search_message_spec.rb +84 -0
- data/spec/models/vendor_tax_information_message_spec.rb +68 -0
- data/spec/models/vendor_transaction_message_spec.rb +68 -0
- data/spec/models/vendor_transaction_search_message_spec.rb +62 -0
- data/spec/models/work_order_entry_contact_message_spec.rb +40 -0
- data/spec/models/work_order_entry_contact_resource_message_spec.rb +44 -0
- data/spec/models/work_order_line_item_message_spec.rb +52 -0
- data/spec/models/work_order_line_item_save_message_spec.rb +52 -0
- data/spec/models/work_order_message_spec.rb +110 -0
- data/spec/models/work_order_post_message_spec.rb +98 -0
- data/spec/models/work_order_put_message_spec.rb +86 -0
- data/spec/models/work_order_search_message_spec.rb +158 -0
- data/spec/models/work_order_task_message_spec.rb +88 -0
- data/spec/models/work_order_task_post_message_spec.rb +78 -0
- data/spec/spec_helper.rb +111 -0
- metadata +1725 -0
@@ -0,0 +1,1855 @@
|
|
1
|
+
=begin
|
2
|
+
#Open API, powered by Buildium
|
3
|
+
|
4
|
+
#GetAllGLAccounts) response message now includes the property `IsBankAccount`. This is a boolean property that indicates whether the general ledger account is also a bank account. * A `Country` property has been added to all Address messages. This property contains an enumeration indicating the country of the address.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module Buildium
|
16
|
+
class AccountingApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create a bill
|
23
|
+
# Creates a bill. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > Bills</span> - `View` `Edit`
|
24
|
+
# @param bill_post_message [BillPostMessage]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [BillMessage]
|
27
|
+
def create_bill(bill_post_message, opts = {})
|
28
|
+
data, _status_code, _headers = create_bill_with_http_info(bill_post_message, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create a bill
|
33
|
+
# Creates a bill. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; Bills</span> - `View` `Edit`
|
34
|
+
# @param bill_post_message [BillPostMessage]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(BillMessage, Integer, Hash)>] BillMessage data, response status code and response headers
|
37
|
+
def create_bill_with_http_info(bill_post_message, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.create_bill ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'bill_post_message' is set
|
42
|
+
if @api_client.config.client_side_validation && bill_post_message.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'bill_post_message' when calling AccountingApi.create_bill"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/v1/bills'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
57
|
+
if !content_type.nil?
|
58
|
+
header_params['Content-Type'] = content_type
|
59
|
+
end
|
60
|
+
|
61
|
+
# form parameters
|
62
|
+
form_params = opts[:form_params] || {}
|
63
|
+
|
64
|
+
# http body (model)
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(bill_post_message)
|
66
|
+
|
67
|
+
# return_type
|
68
|
+
return_type = opts[:debug_return_type] || 'BillMessage'
|
69
|
+
|
70
|
+
# auth_names
|
71
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
72
|
+
|
73
|
+
new_options = opts.merge(
|
74
|
+
:operation => :"AccountingApi.create_bill",
|
75
|
+
:header_params => header_params,
|
76
|
+
:query_params => query_params,
|
77
|
+
:form_params => form_params,
|
78
|
+
:body => post_body,
|
79
|
+
:auth_names => auth_names,
|
80
|
+
:return_type => return_type
|
81
|
+
)
|
82
|
+
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
84
|
+
if @api_client.config.debugging
|
85
|
+
@api_client.config.logger.debug "API called: AccountingApi#create_bill\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
+
end
|
87
|
+
return data, status_code, headers
|
88
|
+
end
|
89
|
+
|
90
|
+
# Create a bill payment
|
91
|
+
# Creates a bill payment. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > Bills</span> - `View` `Edit` <span class=\"permissionBlock\">Accounting > Bank Accounts</span> - `View` `Edit`
|
92
|
+
# @param bill_id [Integer]
|
93
|
+
# @param bill_payment_post_message [BillPaymentPostMessage]
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @return [BillPaymentMessage]
|
96
|
+
def create_bill_payment(bill_id, bill_payment_post_message, opts = {})
|
97
|
+
data, _status_code, _headers = create_bill_payment_with_http_info(bill_id, bill_payment_post_message, opts)
|
98
|
+
data
|
99
|
+
end
|
100
|
+
|
101
|
+
# Create a bill payment
|
102
|
+
# Creates a bill payment. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; Bills</span> - `View` `Edit` <span class=\"permissionBlock\">Accounting &gt; Bank Accounts</span> - `View` `Edit`
|
103
|
+
# @param bill_id [Integer]
|
104
|
+
# @param bill_payment_post_message [BillPaymentPostMessage]
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @return [Array<(BillPaymentMessage, Integer, Hash)>] BillPaymentMessage data, response status code and response headers
|
107
|
+
def create_bill_payment_with_http_info(bill_id, bill_payment_post_message, opts = {})
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.create_bill_payment ...'
|
110
|
+
end
|
111
|
+
# verify the required parameter 'bill_id' is set
|
112
|
+
if @api_client.config.client_side_validation && bill_id.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'bill_id' when calling AccountingApi.create_bill_payment"
|
114
|
+
end
|
115
|
+
# verify the required parameter 'bill_payment_post_message' is set
|
116
|
+
if @api_client.config.client_side_validation && bill_payment_post_message.nil?
|
117
|
+
fail ArgumentError, "Missing the required parameter 'bill_payment_post_message' when calling AccountingApi.create_bill_payment"
|
118
|
+
end
|
119
|
+
# resource path
|
120
|
+
local_var_path = '/v1/bills/{billId}/payments'.sub('{' + 'billId' + '}', CGI.escape(bill_id.to_s))
|
121
|
+
|
122
|
+
# query parameters
|
123
|
+
query_params = opts[:query_params] || {}
|
124
|
+
|
125
|
+
# header parameters
|
126
|
+
header_params = opts[:header_params] || {}
|
127
|
+
# HTTP header 'Accept' (if needed)
|
128
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
129
|
+
# HTTP header 'Content-Type'
|
130
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
131
|
+
if !content_type.nil?
|
132
|
+
header_params['Content-Type'] = content_type
|
133
|
+
end
|
134
|
+
|
135
|
+
# form parameters
|
136
|
+
form_params = opts[:form_params] || {}
|
137
|
+
|
138
|
+
# http body (model)
|
139
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(bill_payment_post_message)
|
140
|
+
|
141
|
+
# return_type
|
142
|
+
return_type = opts[:debug_return_type] || 'BillPaymentMessage'
|
143
|
+
|
144
|
+
# auth_names
|
145
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
146
|
+
|
147
|
+
new_options = opts.merge(
|
148
|
+
:operation => :"AccountingApi.create_bill_payment",
|
149
|
+
:header_params => header_params,
|
150
|
+
:query_params => query_params,
|
151
|
+
:form_params => form_params,
|
152
|
+
:body => post_body,
|
153
|
+
:auth_names => auth_names,
|
154
|
+
:return_type => return_type
|
155
|
+
)
|
156
|
+
|
157
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
158
|
+
if @api_client.config.debugging
|
159
|
+
@api_client.config.logger.debug "API called: AccountingApi#create_bill_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
160
|
+
end
|
161
|
+
return data, status_code, headers
|
162
|
+
end
|
163
|
+
|
164
|
+
# Create a budget
|
165
|
+
# Creates a budget. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > Budgets</span> - `View` `Edit`
|
166
|
+
# @param budget_post_message [BudgetPostMessage]
|
167
|
+
# @param [Hash] opts the optional parameters
|
168
|
+
# @return [BudgetMessage]
|
169
|
+
def create_budget(budget_post_message, opts = {})
|
170
|
+
data, _status_code, _headers = create_budget_with_http_info(budget_post_message, opts)
|
171
|
+
data
|
172
|
+
end
|
173
|
+
|
174
|
+
# Create a budget
|
175
|
+
# Creates a budget. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; Budgets</span> - `View` `Edit`
|
176
|
+
# @param budget_post_message [BudgetPostMessage]
|
177
|
+
# @param [Hash] opts the optional parameters
|
178
|
+
# @return [Array<(BudgetMessage, Integer, Hash)>] BudgetMessage data, response status code and response headers
|
179
|
+
def create_budget_with_http_info(budget_post_message, opts = {})
|
180
|
+
if @api_client.config.debugging
|
181
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.create_budget ...'
|
182
|
+
end
|
183
|
+
# verify the required parameter 'budget_post_message' is set
|
184
|
+
if @api_client.config.client_side_validation && budget_post_message.nil?
|
185
|
+
fail ArgumentError, "Missing the required parameter 'budget_post_message' when calling AccountingApi.create_budget"
|
186
|
+
end
|
187
|
+
# resource path
|
188
|
+
local_var_path = '/v1/budgets'
|
189
|
+
|
190
|
+
# query parameters
|
191
|
+
query_params = opts[:query_params] || {}
|
192
|
+
|
193
|
+
# header parameters
|
194
|
+
header_params = opts[:header_params] || {}
|
195
|
+
# HTTP header 'Accept' (if needed)
|
196
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
197
|
+
# HTTP header 'Content-Type'
|
198
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
199
|
+
if !content_type.nil?
|
200
|
+
header_params['Content-Type'] = content_type
|
201
|
+
end
|
202
|
+
|
203
|
+
# form parameters
|
204
|
+
form_params = opts[:form_params] || {}
|
205
|
+
|
206
|
+
# http body (model)
|
207
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(budget_post_message)
|
208
|
+
|
209
|
+
# return_type
|
210
|
+
return_type = opts[:debug_return_type] || 'BudgetMessage'
|
211
|
+
|
212
|
+
# auth_names
|
213
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
214
|
+
|
215
|
+
new_options = opts.merge(
|
216
|
+
:operation => :"AccountingApi.create_budget",
|
217
|
+
:header_params => header_params,
|
218
|
+
:query_params => query_params,
|
219
|
+
:form_params => form_params,
|
220
|
+
:body => post_body,
|
221
|
+
:auth_names => auth_names,
|
222
|
+
:return_type => return_type
|
223
|
+
)
|
224
|
+
|
225
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
226
|
+
if @api_client.config.debugging
|
227
|
+
@api_client.config.logger.debug "API called: AccountingApi#create_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
228
|
+
end
|
229
|
+
return data, status_code, headers
|
230
|
+
end
|
231
|
+
|
232
|
+
# Create a general journal entry
|
233
|
+
# Creates a general journal entry. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > General Ledger Transactions</span> - `View` `Edit`
|
234
|
+
# @param general_journal_entry_post_message [GeneralJournalEntryPostMessage]
|
235
|
+
# @param [Hash] opts the optional parameters
|
236
|
+
# @return [GeneralLedgerTransactionMessage]
|
237
|
+
def create_general_journal_entry(general_journal_entry_post_message, opts = {})
|
238
|
+
data, _status_code, _headers = create_general_journal_entry_with_http_info(general_journal_entry_post_message, opts)
|
239
|
+
data
|
240
|
+
end
|
241
|
+
|
242
|
+
# Create a general journal entry
|
243
|
+
# Creates a general journal entry. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; General Ledger Transactions</span> - `View` `Edit`
|
244
|
+
# @param general_journal_entry_post_message [GeneralJournalEntryPostMessage]
|
245
|
+
# @param [Hash] opts the optional parameters
|
246
|
+
# @return [Array<(GeneralLedgerTransactionMessage, Integer, Hash)>] GeneralLedgerTransactionMessage data, response status code and response headers
|
247
|
+
def create_general_journal_entry_with_http_info(general_journal_entry_post_message, opts = {})
|
248
|
+
if @api_client.config.debugging
|
249
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.create_general_journal_entry ...'
|
250
|
+
end
|
251
|
+
# verify the required parameter 'general_journal_entry_post_message' is set
|
252
|
+
if @api_client.config.client_side_validation && general_journal_entry_post_message.nil?
|
253
|
+
fail ArgumentError, "Missing the required parameter 'general_journal_entry_post_message' when calling AccountingApi.create_general_journal_entry"
|
254
|
+
end
|
255
|
+
# resource path
|
256
|
+
local_var_path = '/v1/generalledger/journalentries'
|
257
|
+
|
258
|
+
# query parameters
|
259
|
+
query_params = opts[:query_params] || {}
|
260
|
+
|
261
|
+
# header parameters
|
262
|
+
header_params = opts[:header_params] || {}
|
263
|
+
# HTTP header 'Accept' (if needed)
|
264
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
265
|
+
# HTTP header 'Content-Type'
|
266
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
267
|
+
if !content_type.nil?
|
268
|
+
header_params['Content-Type'] = content_type
|
269
|
+
end
|
270
|
+
|
271
|
+
# form parameters
|
272
|
+
form_params = opts[:form_params] || {}
|
273
|
+
|
274
|
+
# http body (model)
|
275
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(general_journal_entry_post_message)
|
276
|
+
|
277
|
+
# return_type
|
278
|
+
return_type = opts[:debug_return_type] || 'GeneralLedgerTransactionMessage'
|
279
|
+
|
280
|
+
# auth_names
|
281
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
282
|
+
|
283
|
+
new_options = opts.merge(
|
284
|
+
:operation => :"AccountingApi.create_general_journal_entry",
|
285
|
+
:header_params => header_params,
|
286
|
+
:query_params => query_params,
|
287
|
+
:form_params => form_params,
|
288
|
+
:body => post_body,
|
289
|
+
:auth_names => auth_names,
|
290
|
+
:return_type => return_type
|
291
|
+
)
|
292
|
+
|
293
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
294
|
+
if @api_client.config.debugging
|
295
|
+
@api_client.config.logger.debug "API called: AccountingApi#create_general_journal_entry\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
296
|
+
end
|
297
|
+
return data, status_code, headers
|
298
|
+
end
|
299
|
+
|
300
|
+
# Create a general ledger account
|
301
|
+
# Creates a general ledger account. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > General Ledger Accounts</span> - `View` `Edit`
|
302
|
+
# @param gl_account_post_message [GLAccountPostMessage]
|
303
|
+
# @param [Hash] opts the optional parameters
|
304
|
+
# @return [GLAccountMessage]
|
305
|
+
def create_general_ledger_account(gl_account_post_message, opts = {})
|
306
|
+
data, _status_code, _headers = create_general_ledger_account_with_http_info(gl_account_post_message, opts)
|
307
|
+
data
|
308
|
+
end
|
309
|
+
|
310
|
+
# Create a general ledger account
|
311
|
+
# Creates a general ledger account. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; General Ledger Accounts</span> - `View` `Edit`
|
312
|
+
# @param gl_account_post_message [GLAccountPostMessage]
|
313
|
+
# @param [Hash] opts the optional parameters
|
314
|
+
# @return [Array<(GLAccountMessage, Integer, Hash)>] GLAccountMessage data, response status code and response headers
|
315
|
+
def create_general_ledger_account_with_http_info(gl_account_post_message, opts = {})
|
316
|
+
if @api_client.config.debugging
|
317
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.create_general_ledger_account ...'
|
318
|
+
end
|
319
|
+
# verify the required parameter 'gl_account_post_message' is set
|
320
|
+
if @api_client.config.client_side_validation && gl_account_post_message.nil?
|
321
|
+
fail ArgumentError, "Missing the required parameter 'gl_account_post_message' when calling AccountingApi.create_general_ledger_account"
|
322
|
+
end
|
323
|
+
# resource path
|
324
|
+
local_var_path = '/v1/glaccounts'
|
325
|
+
|
326
|
+
# query parameters
|
327
|
+
query_params = opts[:query_params] || {}
|
328
|
+
|
329
|
+
# header parameters
|
330
|
+
header_params = opts[:header_params] || {}
|
331
|
+
# HTTP header 'Accept' (if needed)
|
332
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
333
|
+
# HTTP header 'Content-Type'
|
334
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
335
|
+
if !content_type.nil?
|
336
|
+
header_params['Content-Type'] = content_type
|
337
|
+
end
|
338
|
+
|
339
|
+
# form parameters
|
340
|
+
form_params = opts[:form_params] || {}
|
341
|
+
|
342
|
+
# http body (model)
|
343
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(gl_account_post_message)
|
344
|
+
|
345
|
+
# return_type
|
346
|
+
return_type = opts[:debug_return_type] || 'GLAccountMessage'
|
347
|
+
|
348
|
+
# auth_names
|
349
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
350
|
+
|
351
|
+
new_options = opts.merge(
|
352
|
+
:operation => :"AccountingApi.create_general_ledger_account",
|
353
|
+
:header_params => header_params,
|
354
|
+
:query_params => query_params,
|
355
|
+
:form_params => form_params,
|
356
|
+
:body => post_body,
|
357
|
+
:auth_names => auth_names,
|
358
|
+
:return_type => return_type
|
359
|
+
)
|
360
|
+
|
361
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
362
|
+
if @api_client.config.debugging
|
363
|
+
@api_client.config.logger.debug "API called: AccountingApi#create_general_ledger_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
364
|
+
end
|
365
|
+
return data, status_code, headers
|
366
|
+
end
|
367
|
+
|
368
|
+
# Upload a bill file
|
369
|
+
# Uploads a file and associates it to the specified bill record. <br /><br />Uploading a file requires making two API requests. Each step is outlined below. <br /><br /><strong>Step 1 - Save file metadata</strong><br /> The first step in the file upload process is to submit the file metadata to `/v1/bills/{billId:int}/files/uploadrequests`. The response of this call will contain a URL and a collection of form data that will be used in step 2 to generate the request for the file binary upload. <br /><br /><strong>NOTE:</strong> The response data will expire after 5 minutes. The file metadata will not be saved in the Buildium system if step 2 of this process is not completed successfully. <br /><br /><strong>Step 2 - Upload the file binary</strong><br /> Uploading the file binary will require using the response from step 1 to form a POST request to the Buildium file provider. Follow these steps to create the request: <br /> 1. Form a POST request using the value of the `BucketUrl` property as the URL. <br /><br /> 2. Set the `Content-Type` header to `multipart/form-data`. <br /><br /> 3. Copy the fields from the `FormData` property to this request as form-data key/value pairs. <br /><strong>NOTE:</strong> These values must added to the request form-data in the order they were received in the response. <br /><br /> 4. Lastly create a form-data key named `file` and set the value to the file binary. <br /><strong>NOTE:</strong> This must be the last field in the form-data list. <br /><br />This image shows what the POST request should look like if you're using Postman: <img src=\"file-upload-example.png\" /><br /><br /> 5. Send the POST request! A successful request will return with a `204 - NO CONTENT` HTTP response code. For any failure responses, please refer to <a target=\"_blank\" href=\"https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#RESTErrorResponses\">AWS documentation</a> on REST error responses. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > Bills</span> - `View` `Edit`
|
370
|
+
# @param bill_id [Integer]
|
371
|
+
# @param file_name_post_message [FileNamePostMessage]
|
372
|
+
# @param [Hash] opts the optional parameters
|
373
|
+
# @return [FileUploadTicketMessage]
|
374
|
+
def create_upload_file_request(bill_id, file_name_post_message, opts = {})
|
375
|
+
data, _status_code, _headers = create_upload_file_request_with_http_info(bill_id, file_name_post_message, opts)
|
376
|
+
data
|
377
|
+
end
|
378
|
+
|
379
|
+
# Upload a bill file
|
380
|
+
# Uploads a file and associates it to the specified bill record. <br /><br />Uploading a file requires making two API requests. Each step is outlined below. <br /><br /><strong>Step 1 - Save file metadata</strong><br /> The first step in the file upload process is to submit the file metadata to `/v1/bills/{billId:int}/files/uploadrequests`. The response of this call will contain a URL and a collection of form data that will be used in step 2 to generate the request for the file binary upload. <br /><br /><strong>NOTE:</strong> The response data will expire after 5 minutes. The file metadata will not be saved in the Buildium system if step 2 of this process is not completed successfully. <br /><br /><strong>Step 2 - Upload the file binary</strong><br /> Uploading the file binary will require using the response from step 1 to form a POST request to the Buildium file provider. Follow these steps to create the request: <br /> 1. Form a POST request using the value of the `BucketUrl` property as the URL. <br /><br /> 2. Set the `Content-Type` header to `multipart/form-data`. <br /><br /> 3. Copy the fields from the `FormData` property to this request as form-data key/value pairs. <br /><strong>NOTE:</strong> These values must added to the request form-data in the order they were received in the response. <br /><br /> 4. Lastly create a form-data key named `file` and set the value to the file binary. <br /><strong>NOTE:</strong> This must be the last field in the form-data list. <br /><br />This image shows what the POST request should look like if you're using Postman: <img src=\"file-upload-example.png\" /><br /><br /> 5. Send the POST request! A successful request will return with a `204 - NO CONTENT` HTTP response code. For any failure responses, please refer to <a target=\"_blank\" href=\"https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#RESTErrorResponses\">AWS documentation</a> on REST error responses. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; Bills</span> - `View` `Edit`
|
381
|
+
# @param bill_id [Integer]
|
382
|
+
# @param file_name_post_message [FileNamePostMessage]
|
383
|
+
# @param [Hash] opts the optional parameters
|
384
|
+
# @return [Array<(FileUploadTicketMessage, Integer, Hash)>] FileUploadTicketMessage data, response status code and response headers
|
385
|
+
def create_upload_file_request_with_http_info(bill_id, file_name_post_message, opts = {})
|
386
|
+
if @api_client.config.debugging
|
387
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.create_upload_file_request ...'
|
388
|
+
end
|
389
|
+
# verify the required parameter 'bill_id' is set
|
390
|
+
if @api_client.config.client_side_validation && bill_id.nil?
|
391
|
+
fail ArgumentError, "Missing the required parameter 'bill_id' when calling AccountingApi.create_upload_file_request"
|
392
|
+
end
|
393
|
+
# verify the required parameter 'file_name_post_message' is set
|
394
|
+
if @api_client.config.client_side_validation && file_name_post_message.nil?
|
395
|
+
fail ArgumentError, "Missing the required parameter 'file_name_post_message' when calling AccountingApi.create_upload_file_request"
|
396
|
+
end
|
397
|
+
# resource path
|
398
|
+
local_var_path = '/v1/bills/{billId}/files/uploadrequests'.sub('{' + 'billId' + '}', CGI.escape(bill_id.to_s))
|
399
|
+
|
400
|
+
# query parameters
|
401
|
+
query_params = opts[:query_params] || {}
|
402
|
+
|
403
|
+
# header parameters
|
404
|
+
header_params = opts[:header_params] || {}
|
405
|
+
# HTTP header 'Accept' (if needed)
|
406
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
407
|
+
# HTTP header 'Content-Type'
|
408
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
409
|
+
if !content_type.nil?
|
410
|
+
header_params['Content-Type'] = content_type
|
411
|
+
end
|
412
|
+
|
413
|
+
# form parameters
|
414
|
+
form_params = opts[:form_params] || {}
|
415
|
+
|
416
|
+
# http body (model)
|
417
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(file_name_post_message)
|
418
|
+
|
419
|
+
# return_type
|
420
|
+
return_type = opts[:debug_return_type] || 'FileUploadTicketMessage'
|
421
|
+
|
422
|
+
# auth_names
|
423
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
424
|
+
|
425
|
+
new_options = opts.merge(
|
426
|
+
:operation => :"AccountingApi.create_upload_file_request",
|
427
|
+
:header_params => header_params,
|
428
|
+
:query_params => query_params,
|
429
|
+
:form_params => form_params,
|
430
|
+
:body => post_body,
|
431
|
+
:auth_names => auth_names,
|
432
|
+
:return_type => return_type
|
433
|
+
)
|
434
|
+
|
435
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
436
|
+
if @api_client.config.debugging
|
437
|
+
@api_client.config.logger.debug "API called: AccountingApi#create_upload_file_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
438
|
+
end
|
439
|
+
return data, status_code, headers
|
440
|
+
end
|
441
|
+
|
442
|
+
# Delete a bill file
|
443
|
+
# Deletes the specified file from a bill. The file will be permanently deleted from the Buildium platform and can not be recovered. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > Bills</span> - `View` `Edit` `Delete`
|
444
|
+
# @param bill_id [Integer]
|
445
|
+
# @param file_id [Integer]
|
446
|
+
# @param [Hash] opts the optional parameters
|
447
|
+
# @return [nil]
|
448
|
+
def delete_bill_file(bill_id, file_id, opts = {})
|
449
|
+
delete_bill_file_with_http_info(bill_id, file_id, opts)
|
450
|
+
nil
|
451
|
+
end
|
452
|
+
|
453
|
+
# Delete a bill file
|
454
|
+
# Deletes the specified file from a bill. The file will be permanently deleted from the Buildium platform and can not be recovered. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; Bills</span> - `View` `Edit` `Delete`
|
455
|
+
# @param bill_id [Integer]
|
456
|
+
# @param file_id [Integer]
|
457
|
+
# @param [Hash] opts the optional parameters
|
458
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
459
|
+
def delete_bill_file_with_http_info(bill_id, file_id, opts = {})
|
460
|
+
if @api_client.config.debugging
|
461
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.delete_bill_file ...'
|
462
|
+
end
|
463
|
+
# verify the required parameter 'bill_id' is set
|
464
|
+
if @api_client.config.client_side_validation && bill_id.nil?
|
465
|
+
fail ArgumentError, "Missing the required parameter 'bill_id' when calling AccountingApi.delete_bill_file"
|
466
|
+
end
|
467
|
+
# verify the required parameter 'file_id' is set
|
468
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
469
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling AccountingApi.delete_bill_file"
|
470
|
+
end
|
471
|
+
# resource path
|
472
|
+
local_var_path = '/v1/bills/{billId}/files/{fileId}'.sub('{' + 'billId' + '}', CGI.escape(bill_id.to_s)).sub('{' + 'fileId' + '}', CGI.escape(file_id.to_s))
|
473
|
+
|
474
|
+
# query parameters
|
475
|
+
query_params = opts[:query_params] || {}
|
476
|
+
|
477
|
+
# header parameters
|
478
|
+
header_params = opts[:header_params] || {}
|
479
|
+
# HTTP header 'Accept' (if needed)
|
480
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
481
|
+
|
482
|
+
# form parameters
|
483
|
+
form_params = opts[:form_params] || {}
|
484
|
+
|
485
|
+
# http body (model)
|
486
|
+
post_body = opts[:debug_body]
|
487
|
+
|
488
|
+
# return_type
|
489
|
+
return_type = opts[:debug_return_type]
|
490
|
+
|
491
|
+
# auth_names
|
492
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
493
|
+
|
494
|
+
new_options = opts.merge(
|
495
|
+
:operation => :"AccountingApi.delete_bill_file",
|
496
|
+
:header_params => header_params,
|
497
|
+
:query_params => query_params,
|
498
|
+
:form_params => form_params,
|
499
|
+
:body => post_body,
|
500
|
+
:auth_names => auth_names,
|
501
|
+
:return_type => return_type
|
502
|
+
)
|
503
|
+
|
504
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
505
|
+
if @api_client.config.debugging
|
506
|
+
@api_client.config.logger.debug "API called: AccountingApi#delete_bill_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
507
|
+
end
|
508
|
+
return data, status_code, headers
|
509
|
+
end
|
510
|
+
|
511
|
+
# Download a bill file
|
512
|
+
# Downloads a specific file associated to the bill. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > Bills</span> - `View`
|
513
|
+
# @param bill_id [Integer]
|
514
|
+
# @param file_id [Integer]
|
515
|
+
# @param [Hash] opts the optional parameters
|
516
|
+
# @return [FileDownloadMessage]
|
517
|
+
def download_bill_file(bill_id, file_id, opts = {})
|
518
|
+
data, _status_code, _headers = download_bill_file_with_http_info(bill_id, file_id, opts)
|
519
|
+
data
|
520
|
+
end
|
521
|
+
|
522
|
+
# Download a bill file
|
523
|
+
# Downloads a specific file associated to the bill. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; Bills</span> - `View`
|
524
|
+
# @param bill_id [Integer]
|
525
|
+
# @param file_id [Integer]
|
526
|
+
# @param [Hash] opts the optional parameters
|
527
|
+
# @return [Array<(FileDownloadMessage, Integer, Hash)>] FileDownloadMessage data, response status code and response headers
|
528
|
+
def download_bill_file_with_http_info(bill_id, file_id, opts = {})
|
529
|
+
if @api_client.config.debugging
|
530
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.download_bill_file ...'
|
531
|
+
end
|
532
|
+
# verify the required parameter 'bill_id' is set
|
533
|
+
if @api_client.config.client_side_validation && bill_id.nil?
|
534
|
+
fail ArgumentError, "Missing the required parameter 'bill_id' when calling AccountingApi.download_bill_file"
|
535
|
+
end
|
536
|
+
# verify the required parameter 'file_id' is set
|
537
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
538
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling AccountingApi.download_bill_file"
|
539
|
+
end
|
540
|
+
# resource path
|
541
|
+
local_var_path = '/v1/bills/{billId}/files/{fileId}/downloadrequest'.sub('{' + 'billId' + '}', CGI.escape(bill_id.to_s)).sub('{' + 'fileId' + '}', CGI.escape(file_id.to_s))
|
542
|
+
|
543
|
+
# query parameters
|
544
|
+
query_params = opts[:query_params] || {}
|
545
|
+
|
546
|
+
# header parameters
|
547
|
+
header_params = opts[:header_params] || {}
|
548
|
+
# HTTP header 'Accept' (if needed)
|
549
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
550
|
+
|
551
|
+
# form parameters
|
552
|
+
form_params = opts[:form_params] || {}
|
553
|
+
|
554
|
+
# http body (model)
|
555
|
+
post_body = opts[:debug_body]
|
556
|
+
|
557
|
+
# return_type
|
558
|
+
return_type = opts[:debug_return_type] || 'FileDownloadMessage'
|
559
|
+
|
560
|
+
# auth_names
|
561
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
562
|
+
|
563
|
+
new_options = opts.merge(
|
564
|
+
:operation => :"AccountingApi.download_bill_file",
|
565
|
+
:header_params => header_params,
|
566
|
+
:query_params => query_params,
|
567
|
+
:form_params => form_params,
|
568
|
+
:body => post_body,
|
569
|
+
:auth_names => auth_names,
|
570
|
+
:return_type => return_type
|
571
|
+
)
|
572
|
+
|
573
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
574
|
+
if @api_client.config.debugging
|
575
|
+
@api_client.config.logger.debug "API called: AccountingApi#download_bill_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
576
|
+
end
|
577
|
+
return data, status_code, headers
|
578
|
+
end
|
579
|
+
|
580
|
+
# Retrieve all files for a bill
|
581
|
+
# Retrieves the metadata for all files associated to the specified bill. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > Bills</span> - `View`
|
582
|
+
# @param bill_id [Integer]
|
583
|
+
# @param [Hash] opts the optional parameters
|
584
|
+
# @option opts [String] :orderby `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information.
|
585
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
586
|
+
# @option opts [Integer] :limit `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50.
|
587
|
+
# @return [Array<BillFileMessage>]
|
588
|
+
def get_all_files_for_bill(bill_id, opts = {})
|
589
|
+
data, _status_code, _headers = get_all_files_for_bill_with_http_info(bill_id, opts)
|
590
|
+
data
|
591
|
+
end
|
592
|
+
|
593
|
+
# Retrieve all files for a bill
|
594
|
+
# Retrieves the metadata for all files associated to the specified bill. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; Bills</span> - `View`
|
595
|
+
# @param bill_id [Integer]
|
596
|
+
# @param [Hash] opts the optional parameters
|
597
|
+
# @option opts [String] :orderby `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information.
|
598
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
599
|
+
# @option opts [Integer] :limit `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50.
|
600
|
+
# @return [Array<(Array<BillFileMessage>, Integer, Hash)>] Array<BillFileMessage> data, response status code and response headers
|
601
|
+
def get_all_files_for_bill_with_http_info(bill_id, opts = {})
|
602
|
+
if @api_client.config.debugging
|
603
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_all_files_for_bill ...'
|
604
|
+
end
|
605
|
+
# verify the required parameter 'bill_id' is set
|
606
|
+
if @api_client.config.client_side_validation && bill_id.nil?
|
607
|
+
fail ArgumentError, "Missing the required parameter 'bill_id' when calling AccountingApi.get_all_files_for_bill"
|
608
|
+
end
|
609
|
+
# resource path
|
610
|
+
local_var_path = '/v1/bills/{billId}/files'.sub('{' + 'billId' + '}', CGI.escape(bill_id.to_s))
|
611
|
+
|
612
|
+
# query parameters
|
613
|
+
query_params = opts[:query_params] || {}
|
614
|
+
query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
615
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
616
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
617
|
+
|
618
|
+
# header parameters
|
619
|
+
header_params = opts[:header_params] || {}
|
620
|
+
# HTTP header 'Accept' (if needed)
|
621
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
622
|
+
|
623
|
+
# form parameters
|
624
|
+
form_params = opts[:form_params] || {}
|
625
|
+
|
626
|
+
# http body (model)
|
627
|
+
post_body = opts[:debug_body]
|
628
|
+
|
629
|
+
# return_type
|
630
|
+
return_type = opts[:debug_return_type] || 'Array<BillFileMessage>'
|
631
|
+
|
632
|
+
# auth_names
|
633
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
634
|
+
|
635
|
+
new_options = opts.merge(
|
636
|
+
:operation => :"AccountingApi.get_all_files_for_bill",
|
637
|
+
:header_params => header_params,
|
638
|
+
:query_params => query_params,
|
639
|
+
:form_params => form_params,
|
640
|
+
:body => post_body,
|
641
|
+
:auth_names => auth_names,
|
642
|
+
:return_type => return_type
|
643
|
+
)
|
644
|
+
|
645
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
646
|
+
if @api_client.config.debugging
|
647
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_all_files_for_bill\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
648
|
+
end
|
649
|
+
return data, status_code, headers
|
650
|
+
end
|
651
|
+
|
652
|
+
# Retrieve all general ledger accounts
|
653
|
+
# Retrieves a list of general ledger accounts.<br /><br />General ledger accounts are used to categorize transactions for accounting purposes. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > General Ledger Accounts</span> - `View`
|
654
|
+
# @param [Hash] opts the optional parameters
|
655
|
+
# @option opts [Array<String>] :accounttypes Filters results by the specified general ledger account types.
|
656
|
+
# @option opts [String] :orderby `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information.
|
657
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
658
|
+
# @option opts [Integer] :limit `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50.
|
659
|
+
# @return [Array<GLAccountMessage>]
|
660
|
+
def get_all_gl_accounts(opts = {})
|
661
|
+
data, _status_code, _headers = get_all_gl_accounts_with_http_info(opts)
|
662
|
+
data
|
663
|
+
end
|
664
|
+
|
665
|
+
# Retrieve all general ledger accounts
|
666
|
+
# Retrieves a list of general ledger accounts.<br /><br />General ledger accounts are used to categorize transactions for accounting purposes. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; General Ledger Accounts</span> - `View`
|
667
|
+
# @param [Hash] opts the optional parameters
|
668
|
+
# @option opts [Array<String>] :accounttypes Filters results by the specified general ledger account types.
|
669
|
+
# @option opts [String] :orderby `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information.
|
670
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
671
|
+
# @option opts [Integer] :limit `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50.
|
672
|
+
# @return [Array<(Array<GLAccountMessage>, Integer, Hash)>] Array<GLAccountMessage> data, response status code and response headers
|
673
|
+
def get_all_gl_accounts_with_http_info(opts = {})
|
674
|
+
if @api_client.config.debugging
|
675
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_all_gl_accounts ...'
|
676
|
+
end
|
677
|
+
allowable_values = ["Asset", "Liability", "Equity", "Income", "Expense"]
|
678
|
+
if @api_client.config.client_side_validation && opts[:'accounttypes'] && !opts[:'accounttypes'].all? { |item| allowable_values.include?(item) }
|
679
|
+
fail ArgumentError, "invalid value for \"accounttypes\", must include one of #{allowable_values}"
|
680
|
+
end
|
681
|
+
# resource path
|
682
|
+
local_var_path = '/v1/glaccounts'
|
683
|
+
|
684
|
+
# query parameters
|
685
|
+
query_params = opts[:query_params] || {}
|
686
|
+
query_params[:'accounttypes'] = @api_client.build_collection_param(opts[:'accounttypes'], :multi) if !opts[:'accounttypes'].nil?
|
687
|
+
query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
688
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
689
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
690
|
+
|
691
|
+
# header parameters
|
692
|
+
header_params = opts[:header_params] || {}
|
693
|
+
# HTTP header 'Accept' (if needed)
|
694
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
695
|
+
|
696
|
+
# form parameters
|
697
|
+
form_params = opts[:form_params] || {}
|
698
|
+
|
699
|
+
# http body (model)
|
700
|
+
post_body = opts[:debug_body]
|
701
|
+
|
702
|
+
# return_type
|
703
|
+
return_type = opts[:debug_return_type] || 'Array<GLAccountMessage>'
|
704
|
+
|
705
|
+
# auth_names
|
706
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
707
|
+
|
708
|
+
new_options = opts.merge(
|
709
|
+
:operation => :"AccountingApi.get_all_gl_accounts",
|
710
|
+
:header_params => header_params,
|
711
|
+
:query_params => query_params,
|
712
|
+
:form_params => form_params,
|
713
|
+
:body => post_body,
|
714
|
+
:auth_names => auth_names,
|
715
|
+
:return_type => return_type
|
716
|
+
)
|
717
|
+
|
718
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
719
|
+
if @api_client.config.debugging
|
720
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_all_gl_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
721
|
+
end
|
722
|
+
return data, status_code, headers
|
723
|
+
end
|
724
|
+
|
725
|
+
# Retrieve all general ledger transactions
|
726
|
+
# Retrieves a list of general ledger transactions. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > General Ledger Transactions</span> - `View`
|
727
|
+
# @param startdate [Date] Filters results to any transaction whose date is greater than or equal to the specified value.
|
728
|
+
# @param enddate [Date] Filters results to any transaction whose date is less than or equal to the specified value.
|
729
|
+
# @param glaccountids [Array<Integer>] Filters results to transactions whose general ledger account belongs to the specified set of general ledger account ids.
|
730
|
+
# @param [Hash] opts the optional parameters
|
731
|
+
# @option opts [Integer] :selectionentityid Filters results to any transaction containing journal lines for an entity associated with the specified entity id value. The id must be of the type specified in SelectionEntityType.
|
732
|
+
# @option opts [String] :selectionentitytype Specifies the type of entity that SelectionEntityId refers to.
|
733
|
+
# @option opts [String] :orderby `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information.
|
734
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
735
|
+
# @option opts [Integer] :limit `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50.
|
736
|
+
# @return [Array<GeneralLedgerTransactionMessage>]
|
737
|
+
def get_all_transactions(startdate, enddate, glaccountids, opts = {})
|
738
|
+
data, _status_code, _headers = get_all_transactions_with_http_info(startdate, enddate, glaccountids, opts)
|
739
|
+
data
|
740
|
+
end
|
741
|
+
|
742
|
+
# Retrieve all general ledger transactions
|
743
|
+
# Retrieves a list of general ledger transactions. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; General Ledger Transactions</span> - `View`
|
744
|
+
# @param startdate [Date] Filters results to any transaction whose date is greater than or equal to the specified value.
|
745
|
+
# @param enddate [Date] Filters results to any transaction whose date is less than or equal to the specified value.
|
746
|
+
# @param glaccountids [Array<Integer>] Filters results to transactions whose general ledger account belongs to the specified set of general ledger account ids.
|
747
|
+
# @param [Hash] opts the optional parameters
|
748
|
+
# @option opts [Integer] :selectionentityid Filters results to any transaction containing journal lines for an entity associated with the specified entity id value. The id must be of the type specified in SelectionEntityType.
|
749
|
+
# @option opts [String] :selectionentitytype Specifies the type of entity that SelectionEntityId refers to.
|
750
|
+
# @option opts [String] :orderby `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information.
|
751
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
752
|
+
# @option opts [Integer] :limit `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50.
|
753
|
+
# @return [Array<(Array<GeneralLedgerTransactionMessage>, Integer, Hash)>] Array<GeneralLedgerTransactionMessage> data, response status code and response headers
|
754
|
+
def get_all_transactions_with_http_info(startdate, enddate, glaccountids, opts = {})
|
755
|
+
if @api_client.config.debugging
|
756
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_all_transactions ...'
|
757
|
+
end
|
758
|
+
# verify the required parameter 'startdate' is set
|
759
|
+
if @api_client.config.client_side_validation && startdate.nil?
|
760
|
+
fail ArgumentError, "Missing the required parameter 'startdate' when calling AccountingApi.get_all_transactions"
|
761
|
+
end
|
762
|
+
# verify the required parameter 'enddate' is set
|
763
|
+
if @api_client.config.client_side_validation && enddate.nil?
|
764
|
+
fail ArgumentError, "Missing the required parameter 'enddate' when calling AccountingApi.get_all_transactions"
|
765
|
+
end
|
766
|
+
# verify the required parameter 'glaccountids' is set
|
767
|
+
if @api_client.config.client_side_validation && glaccountids.nil?
|
768
|
+
fail ArgumentError, "Missing the required parameter 'glaccountids' when calling AccountingApi.get_all_transactions"
|
769
|
+
end
|
770
|
+
allowable_values = ["Rental", "RentalOwner", "Association"]
|
771
|
+
if @api_client.config.client_side_validation && opts[:'selectionentitytype'] && !allowable_values.include?(opts[:'selectionentitytype'])
|
772
|
+
fail ArgumentError, "invalid value for \"selectionentitytype\", must be one of #{allowable_values}"
|
773
|
+
end
|
774
|
+
# resource path
|
775
|
+
local_var_path = '/v1/generalledger/transactions'
|
776
|
+
|
777
|
+
# query parameters
|
778
|
+
query_params = opts[:query_params] || {}
|
779
|
+
query_params[:'startdate'] = startdate
|
780
|
+
query_params[:'enddate'] = enddate
|
781
|
+
query_params[:'glaccountids'] = @api_client.build_collection_param(glaccountids, :multi)
|
782
|
+
query_params[:'selectionentityid'] = opts[:'selectionentityid'] if !opts[:'selectionentityid'].nil?
|
783
|
+
query_params[:'selectionentitytype'] = opts[:'selectionentitytype'] if !opts[:'selectionentitytype'].nil?
|
784
|
+
query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
785
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
786
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
787
|
+
|
788
|
+
# header parameters
|
789
|
+
header_params = opts[:header_params] || {}
|
790
|
+
# HTTP header 'Accept' (if needed)
|
791
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
792
|
+
|
793
|
+
# form parameters
|
794
|
+
form_params = opts[:form_params] || {}
|
795
|
+
|
796
|
+
# http body (model)
|
797
|
+
post_body = opts[:debug_body]
|
798
|
+
|
799
|
+
# return_type
|
800
|
+
return_type = opts[:debug_return_type] || 'Array<GeneralLedgerTransactionMessage>'
|
801
|
+
|
802
|
+
# auth_names
|
803
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
804
|
+
|
805
|
+
new_options = opts.merge(
|
806
|
+
:operation => :"AccountingApi.get_all_transactions",
|
807
|
+
:header_params => header_params,
|
808
|
+
:query_params => query_params,
|
809
|
+
:form_params => form_params,
|
810
|
+
:body => post_body,
|
811
|
+
:auth_names => auth_names,
|
812
|
+
:return_type => return_type
|
813
|
+
)
|
814
|
+
|
815
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
816
|
+
if @api_client.config.debugging
|
817
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_all_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
818
|
+
end
|
819
|
+
return data, status_code, headers
|
820
|
+
end
|
821
|
+
|
822
|
+
# Retrieve a bill
|
823
|
+
# Retrieves a single bill. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > Bills</span> - `View`
|
824
|
+
# @param bill_id [Integer]
|
825
|
+
# @param [Hash] opts the optional parameters
|
826
|
+
# @return [BillMessage]
|
827
|
+
def get_bill_by_id(bill_id, opts = {})
|
828
|
+
data, _status_code, _headers = get_bill_by_id_with_http_info(bill_id, opts)
|
829
|
+
data
|
830
|
+
end
|
831
|
+
|
832
|
+
# Retrieve a bill
|
833
|
+
# Retrieves a single bill. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; Bills</span> - `View`
|
834
|
+
# @param bill_id [Integer]
|
835
|
+
# @param [Hash] opts the optional parameters
|
836
|
+
# @return [Array<(BillMessage, Integer, Hash)>] BillMessage data, response status code and response headers
|
837
|
+
def get_bill_by_id_with_http_info(bill_id, opts = {})
|
838
|
+
if @api_client.config.debugging
|
839
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_bill_by_id ...'
|
840
|
+
end
|
841
|
+
# verify the required parameter 'bill_id' is set
|
842
|
+
if @api_client.config.client_side_validation && bill_id.nil?
|
843
|
+
fail ArgumentError, "Missing the required parameter 'bill_id' when calling AccountingApi.get_bill_by_id"
|
844
|
+
end
|
845
|
+
# resource path
|
846
|
+
local_var_path = '/v1/bills/{billId}'.sub('{' + 'billId' + '}', CGI.escape(bill_id.to_s))
|
847
|
+
|
848
|
+
# query parameters
|
849
|
+
query_params = opts[:query_params] || {}
|
850
|
+
|
851
|
+
# header parameters
|
852
|
+
header_params = opts[:header_params] || {}
|
853
|
+
# HTTP header 'Accept' (if needed)
|
854
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
855
|
+
|
856
|
+
# form parameters
|
857
|
+
form_params = opts[:form_params] || {}
|
858
|
+
|
859
|
+
# http body (model)
|
860
|
+
post_body = opts[:debug_body]
|
861
|
+
|
862
|
+
# return_type
|
863
|
+
return_type = opts[:debug_return_type] || 'BillMessage'
|
864
|
+
|
865
|
+
# auth_names
|
866
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
867
|
+
|
868
|
+
new_options = opts.merge(
|
869
|
+
:operation => :"AccountingApi.get_bill_by_id",
|
870
|
+
:header_params => header_params,
|
871
|
+
:query_params => query_params,
|
872
|
+
:form_params => form_params,
|
873
|
+
:body => post_body,
|
874
|
+
:auth_names => auth_names,
|
875
|
+
:return_type => return_type
|
876
|
+
)
|
877
|
+
|
878
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
879
|
+
if @api_client.config.debugging
|
880
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_bill_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
881
|
+
end
|
882
|
+
return data, status_code, headers
|
883
|
+
end
|
884
|
+
|
885
|
+
# Retrieve a file for a bill
|
886
|
+
# Retrieves the metadata for a specific file associated with the specified bill. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > Bills</span> - `View`
|
887
|
+
# @param bill_id [Integer]
|
888
|
+
# @param file_id [Integer]
|
889
|
+
# @param [Hash] opts the optional parameters
|
890
|
+
# @return [BillFileMessage]
|
891
|
+
def get_bill_file_by_id(bill_id, file_id, opts = {})
|
892
|
+
data, _status_code, _headers = get_bill_file_by_id_with_http_info(bill_id, file_id, opts)
|
893
|
+
data
|
894
|
+
end
|
895
|
+
|
896
|
+
# Retrieve a file for a bill
|
897
|
+
# Retrieves the metadata for a specific file associated with the specified bill. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; Bills</span> - `View`
|
898
|
+
# @param bill_id [Integer]
|
899
|
+
# @param file_id [Integer]
|
900
|
+
# @param [Hash] opts the optional parameters
|
901
|
+
# @return [Array<(BillFileMessage, Integer, Hash)>] BillFileMessage data, response status code and response headers
|
902
|
+
def get_bill_file_by_id_with_http_info(bill_id, file_id, opts = {})
|
903
|
+
if @api_client.config.debugging
|
904
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_bill_file_by_id ...'
|
905
|
+
end
|
906
|
+
# verify the required parameter 'bill_id' is set
|
907
|
+
if @api_client.config.client_side_validation && bill_id.nil?
|
908
|
+
fail ArgumentError, "Missing the required parameter 'bill_id' when calling AccountingApi.get_bill_file_by_id"
|
909
|
+
end
|
910
|
+
# verify the required parameter 'file_id' is set
|
911
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
912
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling AccountingApi.get_bill_file_by_id"
|
913
|
+
end
|
914
|
+
# resource path
|
915
|
+
local_var_path = '/v1/bills/{billId}/files/{fileId}'.sub('{' + 'billId' + '}', CGI.escape(bill_id.to_s)).sub('{' + 'fileId' + '}', CGI.escape(file_id.to_s))
|
916
|
+
|
917
|
+
# query parameters
|
918
|
+
query_params = opts[:query_params] || {}
|
919
|
+
|
920
|
+
# header parameters
|
921
|
+
header_params = opts[:header_params] || {}
|
922
|
+
# HTTP header 'Accept' (if needed)
|
923
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
924
|
+
|
925
|
+
# form parameters
|
926
|
+
form_params = opts[:form_params] || {}
|
927
|
+
|
928
|
+
# http body (model)
|
929
|
+
post_body = opts[:debug_body]
|
930
|
+
|
931
|
+
# return_type
|
932
|
+
return_type = opts[:debug_return_type] || 'BillFileMessage'
|
933
|
+
|
934
|
+
# auth_names
|
935
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
936
|
+
|
937
|
+
new_options = opts.merge(
|
938
|
+
:operation => :"AccountingApi.get_bill_file_by_id",
|
939
|
+
:header_params => header_params,
|
940
|
+
:query_params => query_params,
|
941
|
+
:form_params => form_params,
|
942
|
+
:body => post_body,
|
943
|
+
:auth_names => auth_names,
|
944
|
+
:return_type => return_type
|
945
|
+
)
|
946
|
+
|
947
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
948
|
+
if @api_client.config.debugging
|
949
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_bill_file_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
950
|
+
end
|
951
|
+
return data, status_code, headers
|
952
|
+
end
|
953
|
+
|
954
|
+
# Retrieve a bill payment
|
955
|
+
# Retrieves specific bill payment. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > Bills</span> - `View`
|
956
|
+
# @param bill_id [Integer]
|
957
|
+
# @param payment_id [Integer]
|
958
|
+
# @param [Hash] opts the optional parameters
|
959
|
+
# @return [BillPaymentMessage]
|
960
|
+
def get_bill_payment_by_id(bill_id, payment_id, opts = {})
|
961
|
+
data, _status_code, _headers = get_bill_payment_by_id_with_http_info(bill_id, payment_id, opts)
|
962
|
+
data
|
963
|
+
end
|
964
|
+
|
965
|
+
# Retrieve a bill payment
|
966
|
+
# Retrieves specific bill payment. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; Bills</span> - `View`
|
967
|
+
# @param bill_id [Integer]
|
968
|
+
# @param payment_id [Integer]
|
969
|
+
# @param [Hash] opts the optional parameters
|
970
|
+
# @return [Array<(BillPaymentMessage, Integer, Hash)>] BillPaymentMessage data, response status code and response headers
|
971
|
+
def get_bill_payment_by_id_with_http_info(bill_id, payment_id, opts = {})
|
972
|
+
if @api_client.config.debugging
|
973
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_bill_payment_by_id ...'
|
974
|
+
end
|
975
|
+
# verify the required parameter 'bill_id' is set
|
976
|
+
if @api_client.config.client_side_validation && bill_id.nil?
|
977
|
+
fail ArgumentError, "Missing the required parameter 'bill_id' when calling AccountingApi.get_bill_payment_by_id"
|
978
|
+
end
|
979
|
+
# verify the required parameter 'payment_id' is set
|
980
|
+
if @api_client.config.client_side_validation && payment_id.nil?
|
981
|
+
fail ArgumentError, "Missing the required parameter 'payment_id' when calling AccountingApi.get_bill_payment_by_id"
|
982
|
+
end
|
983
|
+
# resource path
|
984
|
+
local_var_path = '/v1/bills/{billId}/payments/{paymentId}'.sub('{' + 'billId' + '}', CGI.escape(bill_id.to_s)).sub('{' + 'paymentId' + '}', CGI.escape(payment_id.to_s))
|
985
|
+
|
986
|
+
# query parameters
|
987
|
+
query_params = opts[:query_params] || {}
|
988
|
+
|
989
|
+
# header parameters
|
990
|
+
header_params = opts[:header_params] || {}
|
991
|
+
# HTTP header 'Accept' (if needed)
|
992
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
993
|
+
|
994
|
+
# form parameters
|
995
|
+
form_params = opts[:form_params] || {}
|
996
|
+
|
997
|
+
# http body (model)
|
998
|
+
post_body = opts[:debug_body]
|
999
|
+
|
1000
|
+
# return_type
|
1001
|
+
return_type = opts[:debug_return_type] || 'BillPaymentMessage'
|
1002
|
+
|
1003
|
+
# auth_names
|
1004
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
1005
|
+
|
1006
|
+
new_options = opts.merge(
|
1007
|
+
:operation => :"AccountingApi.get_bill_payment_by_id",
|
1008
|
+
:header_params => header_params,
|
1009
|
+
:query_params => query_params,
|
1010
|
+
:form_params => form_params,
|
1011
|
+
:body => post_body,
|
1012
|
+
:auth_names => auth_names,
|
1013
|
+
:return_type => return_type
|
1014
|
+
)
|
1015
|
+
|
1016
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1017
|
+
if @api_client.config.debugging
|
1018
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_bill_payment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1019
|
+
end
|
1020
|
+
return data, status_code, headers
|
1021
|
+
end
|
1022
|
+
|
1023
|
+
# Retrieve all bill payments
|
1024
|
+
# Retrieves a list of bill payments for a specific bill. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > Bills</span> - `View`
|
1025
|
+
# @param bill_id [Integer]
|
1026
|
+
# @param [Hash] opts the optional parameters
|
1027
|
+
# @option opts [String] :orderby `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information.
|
1028
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
1029
|
+
# @option opts [Integer] :limit `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50.
|
1030
|
+
# @return [Array<BillPaymentMessage>]
|
1031
|
+
def get_bill_payments(bill_id, opts = {})
|
1032
|
+
data, _status_code, _headers = get_bill_payments_with_http_info(bill_id, opts)
|
1033
|
+
data
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
# Retrieve all bill payments
|
1037
|
+
# Retrieves a list of bill payments for a specific bill. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; Bills</span> - `View`
|
1038
|
+
# @param bill_id [Integer]
|
1039
|
+
# @param [Hash] opts the optional parameters
|
1040
|
+
# @option opts [String] :orderby `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information.
|
1041
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
1042
|
+
# @option opts [Integer] :limit `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50.
|
1043
|
+
# @return [Array<(Array<BillPaymentMessage>, Integer, Hash)>] Array<BillPaymentMessage> data, response status code and response headers
|
1044
|
+
def get_bill_payments_with_http_info(bill_id, opts = {})
|
1045
|
+
if @api_client.config.debugging
|
1046
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_bill_payments ...'
|
1047
|
+
end
|
1048
|
+
# verify the required parameter 'bill_id' is set
|
1049
|
+
if @api_client.config.client_side_validation && bill_id.nil?
|
1050
|
+
fail ArgumentError, "Missing the required parameter 'bill_id' when calling AccountingApi.get_bill_payments"
|
1051
|
+
end
|
1052
|
+
# resource path
|
1053
|
+
local_var_path = '/v1/bills/{billId}/payments'.sub('{' + 'billId' + '}', CGI.escape(bill_id.to_s))
|
1054
|
+
|
1055
|
+
# query parameters
|
1056
|
+
query_params = opts[:query_params] || {}
|
1057
|
+
query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
1058
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1059
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1060
|
+
|
1061
|
+
# header parameters
|
1062
|
+
header_params = opts[:header_params] || {}
|
1063
|
+
# HTTP header 'Accept' (if needed)
|
1064
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1065
|
+
|
1066
|
+
# form parameters
|
1067
|
+
form_params = opts[:form_params] || {}
|
1068
|
+
|
1069
|
+
# http body (model)
|
1070
|
+
post_body = opts[:debug_body]
|
1071
|
+
|
1072
|
+
# return_type
|
1073
|
+
return_type = opts[:debug_return_type] || 'Array<BillPaymentMessage>'
|
1074
|
+
|
1075
|
+
# auth_names
|
1076
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
1077
|
+
|
1078
|
+
new_options = opts.merge(
|
1079
|
+
:operation => :"AccountingApi.get_bill_payments",
|
1080
|
+
:header_params => header_params,
|
1081
|
+
:query_params => query_params,
|
1082
|
+
:form_params => form_params,
|
1083
|
+
:body => post_body,
|
1084
|
+
:auth_names => auth_names,
|
1085
|
+
:return_type => return_type
|
1086
|
+
)
|
1087
|
+
|
1088
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1089
|
+
if @api_client.config.debugging
|
1090
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_bill_payments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1091
|
+
end
|
1092
|
+
return data, status_code, headers
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
# Retrieve all bills
|
1096
|
+
# Retrieves a list of bills. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > Bills</span> - `View`
|
1097
|
+
# @param [Hash] opts the optional parameters
|
1098
|
+
# @option opts [Integer] :entityid Filters results to any bill containing line items associated with the specified entity identifier. This filter is used in conjunction with the `EntityType` field which must be set to the type of entity this identifier references.
|
1099
|
+
# @option opts [String] :entitytype Specifies the type of entity that `EntityId` refers to. This field is required if `EntityId` is specified.
|
1100
|
+
# @option opts [Integer] :vendorid Filters results to bills associated with a specific vendor.
|
1101
|
+
# @option opts [String] :referencenumber Filters results to bills whose reference number contains the specified value.
|
1102
|
+
# @option opts [String] :paidstatus Filters results by the bill's paid status. If no status is specified, bills with any status will be returned.
|
1103
|
+
# @option opts [Date] :frompaiddate Filters results to any bill whose paid date is greater than or equal to the specified value.
|
1104
|
+
# @option opts [Date] :topaiddate Filters results to any bill whose paid date is less than or equal to the specified value.
|
1105
|
+
# @option opts [Array<String>] :approvalstatuses Filters the results to bills matching the specified approval statuses. If no approval status is specified, bills with any status will be returned.
|
1106
|
+
# @option opts [String] :orderby `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information.
|
1107
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
1108
|
+
# @option opts [Integer] :limit `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50.
|
1109
|
+
# @return [Array<BillMessage>]
|
1110
|
+
def get_bills_async(opts = {})
|
1111
|
+
data, _status_code, _headers = get_bills_async_with_http_info(opts)
|
1112
|
+
data
|
1113
|
+
end
|
1114
|
+
|
1115
|
+
# Retrieve all bills
|
1116
|
+
# Retrieves a list of bills. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; Bills</span> - `View`
|
1117
|
+
# @param [Hash] opts the optional parameters
|
1118
|
+
# @option opts [Integer] :entityid Filters results to any bill containing line items associated with the specified entity identifier. This filter is used in conjunction with the `EntityType` field which must be set to the type of entity this identifier references.
|
1119
|
+
# @option opts [String] :entitytype Specifies the type of entity that `EntityId` refers to. This field is required if `EntityId` is specified.
|
1120
|
+
# @option opts [Integer] :vendorid Filters results to bills associated with a specific vendor.
|
1121
|
+
# @option opts [String] :referencenumber Filters results to bills whose reference number contains the specified value.
|
1122
|
+
# @option opts [String] :paidstatus Filters results by the bill's paid status. If no status is specified, bills with any status will be returned.
|
1123
|
+
# @option opts [Date] :frompaiddate Filters results to any bill whose paid date is greater than or equal to the specified value.
|
1124
|
+
# @option opts [Date] :topaiddate Filters results to any bill whose paid date is less than or equal to the specified value.
|
1125
|
+
# @option opts [Array<String>] :approvalstatuses Filters the results to bills matching the specified approval statuses. If no approval status is specified, bills with any status will be returned.
|
1126
|
+
# @option opts [String] :orderby `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information.
|
1127
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
1128
|
+
# @option opts [Integer] :limit `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50.
|
1129
|
+
# @return [Array<(Array<BillMessage>, Integer, Hash)>] Array<BillMessage> data, response status code and response headers
|
1130
|
+
def get_bills_async_with_http_info(opts = {})
|
1131
|
+
if @api_client.config.debugging
|
1132
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_bills_async ...'
|
1133
|
+
end
|
1134
|
+
allowable_values = ["Rental", "RentalOwner", "Association"]
|
1135
|
+
if @api_client.config.client_side_validation && opts[:'entitytype'] && !allowable_values.include?(opts[:'entitytype'])
|
1136
|
+
fail ArgumentError, "invalid value for \"entitytype\", must be one of #{allowable_values}"
|
1137
|
+
end
|
1138
|
+
allowable_values = ["Paid", "Unpaid", "UncollectedMarkups"]
|
1139
|
+
if @api_client.config.client_side_validation && opts[:'paidstatus'] && !allowable_values.include?(opts[:'paidstatus'])
|
1140
|
+
fail ArgumentError, "invalid value for \"paidstatus\", must be one of #{allowable_values}"
|
1141
|
+
end
|
1142
|
+
allowable_values = ["NotNeeded", "ApprovalRequired", "Approved", "Pending", "Rejected"]
|
1143
|
+
if @api_client.config.client_side_validation && opts[:'approvalstatuses'] && !opts[:'approvalstatuses'].all? { |item| allowable_values.include?(item) }
|
1144
|
+
fail ArgumentError, "invalid value for \"approvalstatuses\", must include one of #{allowable_values}"
|
1145
|
+
end
|
1146
|
+
# resource path
|
1147
|
+
local_var_path = '/v1/bills'
|
1148
|
+
|
1149
|
+
# query parameters
|
1150
|
+
query_params = opts[:query_params] || {}
|
1151
|
+
query_params[:'entityid'] = opts[:'entityid'] if !opts[:'entityid'].nil?
|
1152
|
+
query_params[:'entitytype'] = opts[:'entitytype'] if !opts[:'entitytype'].nil?
|
1153
|
+
query_params[:'vendorid'] = opts[:'vendorid'] if !opts[:'vendorid'].nil?
|
1154
|
+
query_params[:'referencenumber'] = opts[:'referencenumber'] if !opts[:'referencenumber'].nil?
|
1155
|
+
query_params[:'paidstatus'] = opts[:'paidstatus'] if !opts[:'paidstatus'].nil?
|
1156
|
+
query_params[:'frompaiddate'] = opts[:'frompaiddate'] if !opts[:'frompaiddate'].nil?
|
1157
|
+
query_params[:'topaiddate'] = opts[:'topaiddate'] if !opts[:'topaiddate'].nil?
|
1158
|
+
query_params[:'approvalstatuses'] = @api_client.build_collection_param(opts[:'approvalstatuses'], :multi) if !opts[:'approvalstatuses'].nil?
|
1159
|
+
query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
1160
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1161
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1162
|
+
|
1163
|
+
# header parameters
|
1164
|
+
header_params = opts[:header_params] || {}
|
1165
|
+
# HTTP header 'Accept' (if needed)
|
1166
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1167
|
+
|
1168
|
+
# form parameters
|
1169
|
+
form_params = opts[:form_params] || {}
|
1170
|
+
|
1171
|
+
# http body (model)
|
1172
|
+
post_body = opts[:debug_body]
|
1173
|
+
|
1174
|
+
# return_type
|
1175
|
+
return_type = opts[:debug_return_type] || 'Array<BillMessage>'
|
1176
|
+
|
1177
|
+
# auth_names
|
1178
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
1179
|
+
|
1180
|
+
new_options = opts.merge(
|
1181
|
+
:operation => :"AccountingApi.get_bills_async",
|
1182
|
+
:header_params => header_params,
|
1183
|
+
:query_params => query_params,
|
1184
|
+
:form_params => form_params,
|
1185
|
+
:body => post_body,
|
1186
|
+
:auth_names => auth_names,
|
1187
|
+
:return_type => return_type
|
1188
|
+
)
|
1189
|
+
|
1190
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1191
|
+
if @api_client.config.debugging
|
1192
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_bills_async\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1193
|
+
end
|
1194
|
+
return data, status_code, headers
|
1195
|
+
end
|
1196
|
+
|
1197
|
+
# Retrieve a budget
|
1198
|
+
# Retrieves a budget. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > Budgets</span> - `View`
|
1199
|
+
# @param budget_id [Integer]
|
1200
|
+
# @param [Hash] opts the optional parameters
|
1201
|
+
# @return [BudgetMessage]
|
1202
|
+
def get_budget_by_id(budget_id, opts = {})
|
1203
|
+
data, _status_code, _headers = get_budget_by_id_with_http_info(budget_id, opts)
|
1204
|
+
data
|
1205
|
+
end
|
1206
|
+
|
1207
|
+
# Retrieve a budget
|
1208
|
+
# Retrieves a budget. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; Budgets</span> - `View`
|
1209
|
+
# @param budget_id [Integer]
|
1210
|
+
# @param [Hash] opts the optional parameters
|
1211
|
+
# @return [Array<(BudgetMessage, Integer, Hash)>] BudgetMessage data, response status code and response headers
|
1212
|
+
def get_budget_by_id_with_http_info(budget_id, opts = {})
|
1213
|
+
if @api_client.config.debugging
|
1214
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_budget_by_id ...'
|
1215
|
+
end
|
1216
|
+
# verify the required parameter 'budget_id' is set
|
1217
|
+
if @api_client.config.client_side_validation && budget_id.nil?
|
1218
|
+
fail ArgumentError, "Missing the required parameter 'budget_id' when calling AccountingApi.get_budget_by_id"
|
1219
|
+
end
|
1220
|
+
# resource path
|
1221
|
+
local_var_path = '/v1/budgets/{budgetId}'.sub('{' + 'budgetId' + '}', CGI.escape(budget_id.to_s))
|
1222
|
+
|
1223
|
+
# query parameters
|
1224
|
+
query_params = opts[:query_params] || {}
|
1225
|
+
|
1226
|
+
# header parameters
|
1227
|
+
header_params = opts[:header_params] || {}
|
1228
|
+
# HTTP header 'Accept' (if needed)
|
1229
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1230
|
+
|
1231
|
+
# form parameters
|
1232
|
+
form_params = opts[:form_params] || {}
|
1233
|
+
|
1234
|
+
# http body (model)
|
1235
|
+
post_body = opts[:debug_body]
|
1236
|
+
|
1237
|
+
# return_type
|
1238
|
+
return_type = opts[:debug_return_type] || 'BudgetMessage'
|
1239
|
+
|
1240
|
+
# auth_names
|
1241
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
1242
|
+
|
1243
|
+
new_options = opts.merge(
|
1244
|
+
:operation => :"AccountingApi.get_budget_by_id",
|
1245
|
+
:header_params => header_params,
|
1246
|
+
:query_params => query_params,
|
1247
|
+
:form_params => form_params,
|
1248
|
+
:body => post_body,
|
1249
|
+
:auth_names => auth_names,
|
1250
|
+
:return_type => return_type
|
1251
|
+
)
|
1252
|
+
|
1253
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1254
|
+
if @api_client.config.debugging
|
1255
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_budget_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1256
|
+
end
|
1257
|
+
return data, status_code, headers
|
1258
|
+
end
|
1259
|
+
|
1260
|
+
# Retrieve all budgets
|
1261
|
+
# Retrieves all budgets. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > Budgets</span> - `View`
|
1262
|
+
# @param [Hash] opts the optional parameters
|
1263
|
+
# @option opts [Array<Integer>] :propertyids Filters results to any budget associated to any of the specified set of property ids.
|
1264
|
+
# @option opts [Integer] :fiscalyear Filters results to any budgets that end in the given fiscal year. FiscalYear must be a positive number.
|
1265
|
+
# @option opts [String] :name Filters results to any budgets whose name *contains* the specified value.
|
1266
|
+
# @option opts [String] :orderby `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information.
|
1267
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
1268
|
+
# @option opts [Integer] :limit `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50.
|
1269
|
+
# @return [Array<BudgetMessage>]
|
1270
|
+
def get_budgets(opts = {})
|
1271
|
+
data, _status_code, _headers = get_budgets_with_http_info(opts)
|
1272
|
+
data
|
1273
|
+
end
|
1274
|
+
|
1275
|
+
# Retrieve all budgets
|
1276
|
+
# Retrieves all budgets. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; Budgets</span> - `View`
|
1277
|
+
# @param [Hash] opts the optional parameters
|
1278
|
+
# @option opts [Array<Integer>] :propertyids Filters results to any budget associated to any of the specified set of property ids.
|
1279
|
+
# @option opts [Integer] :fiscalyear Filters results to any budgets that end in the given fiscal year. FiscalYear must be a positive number.
|
1280
|
+
# @option opts [String] :name Filters results to any budgets whose name *contains* the specified value.
|
1281
|
+
# @option opts [String] :orderby `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information.
|
1282
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
1283
|
+
# @option opts [Integer] :limit `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50.
|
1284
|
+
# @return [Array<(Array<BudgetMessage>, Integer, Hash)>] Array<BudgetMessage> data, response status code and response headers
|
1285
|
+
def get_budgets_with_http_info(opts = {})
|
1286
|
+
if @api_client.config.debugging
|
1287
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_budgets ...'
|
1288
|
+
end
|
1289
|
+
# resource path
|
1290
|
+
local_var_path = '/v1/budgets'
|
1291
|
+
|
1292
|
+
# query parameters
|
1293
|
+
query_params = opts[:query_params] || {}
|
1294
|
+
query_params[:'propertyids'] = @api_client.build_collection_param(opts[:'propertyids'], :multi) if !opts[:'propertyids'].nil?
|
1295
|
+
query_params[:'fiscalyear'] = opts[:'fiscalyear'] if !opts[:'fiscalyear'].nil?
|
1296
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
1297
|
+
query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
1298
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1299
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1300
|
+
|
1301
|
+
# header parameters
|
1302
|
+
header_params = opts[:header_params] || {}
|
1303
|
+
# HTTP header 'Accept' (if needed)
|
1304
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1305
|
+
|
1306
|
+
# form parameters
|
1307
|
+
form_params = opts[:form_params] || {}
|
1308
|
+
|
1309
|
+
# http body (model)
|
1310
|
+
post_body = opts[:debug_body]
|
1311
|
+
|
1312
|
+
# return_type
|
1313
|
+
return_type = opts[:debug_return_type] || 'Array<BudgetMessage>'
|
1314
|
+
|
1315
|
+
# auth_names
|
1316
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
1317
|
+
|
1318
|
+
new_options = opts.merge(
|
1319
|
+
:operation => :"AccountingApi.get_budgets",
|
1320
|
+
:header_params => header_params,
|
1321
|
+
:query_params => query_params,
|
1322
|
+
:form_params => form_params,
|
1323
|
+
:body => post_body,
|
1324
|
+
:auth_names => auth_names,
|
1325
|
+
:return_type => return_type
|
1326
|
+
)
|
1327
|
+
|
1328
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1329
|
+
if @api_client.config.debugging
|
1330
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_budgets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1331
|
+
end
|
1332
|
+
return data, status_code, headers
|
1333
|
+
end
|
1334
|
+
|
1335
|
+
# Retrieve all general ledger account balances
|
1336
|
+
# Retrieves all general ledger account balances as of a given date. The response includes the total balance of each account along with the subtotals for any accounting entities (company, associations or rental properties) that have transactions assigned to the account. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > General Ledger Accounts</span> - `View`
|
1337
|
+
# @param accountingbasis [String] The methodology in which revenues and expenses are recognized when calculating the balances. Specifying `Cash` calculates balances based on when money changes hands. Specifying `Accrual` calculates balances based on the period in which the transaction originally happened.
|
1338
|
+
# @param asofdate [Date] Indicates the end date through which the balances will be calculated. This will include all transactions in your account until this specified date.
|
1339
|
+
# @param [Hash] opts the optional parameters
|
1340
|
+
# @option opts [String] :entitytype Specifies the type of entity that `EntityId` field refers to.
|
1341
|
+
# @option opts [Integer] :entityid Filters transactions used in calculating the general ledger account balances to only those containing journal lines for with the specified entity id value. The entity id specified must be of the type specified in `EntityType`.
|
1342
|
+
# @option opts [Array<Integer>] :glaccountids Filters results to the specified set of general ledger account identifiers.
|
1343
|
+
# @option opts [String] :orderby `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information.
|
1344
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
1345
|
+
# @option opts [Integer] :limit `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50.
|
1346
|
+
# @return [Array<GLAccountBalanceMessage>]
|
1347
|
+
def get_gl_account_balances(accountingbasis, asofdate, opts = {})
|
1348
|
+
data, _status_code, _headers = get_gl_account_balances_with_http_info(accountingbasis, asofdate, opts)
|
1349
|
+
data
|
1350
|
+
end
|
1351
|
+
|
1352
|
+
# Retrieve all general ledger account balances
|
1353
|
+
# Retrieves all general ledger account balances as of a given date. The response includes the total balance of each account along with the subtotals for any accounting entities (company, associations or rental properties) that have transactions assigned to the account. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; General Ledger Accounts</span> - `View`
|
1354
|
+
# @param accountingbasis [String] The methodology in which revenues and expenses are recognized when calculating the balances. Specifying `Cash` calculates balances based on when money changes hands. Specifying `Accrual` calculates balances based on the period in which the transaction originally happened.
|
1355
|
+
# @param asofdate [Date] Indicates the end date through which the balances will be calculated. This will include all transactions in your account until this specified date.
|
1356
|
+
# @param [Hash] opts the optional parameters
|
1357
|
+
# @option opts [String] :entitytype Specifies the type of entity that `EntityId` field refers to.
|
1358
|
+
# @option opts [Integer] :entityid Filters transactions used in calculating the general ledger account balances to only those containing journal lines for with the specified entity id value. The entity id specified must be of the type specified in `EntityType`.
|
1359
|
+
# @option opts [Array<Integer>] :glaccountids Filters results to the specified set of general ledger account identifiers.
|
1360
|
+
# @option opts [String] :orderby `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information.
|
1361
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
1362
|
+
# @option opts [Integer] :limit `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50.
|
1363
|
+
# @return [Array<(Array<GLAccountBalanceMessage>, Integer, Hash)>] Array<GLAccountBalanceMessage> data, response status code and response headers
|
1364
|
+
def get_gl_account_balances_with_http_info(accountingbasis, asofdate, opts = {})
|
1365
|
+
if @api_client.config.debugging
|
1366
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_gl_account_balances ...'
|
1367
|
+
end
|
1368
|
+
# verify the required parameter 'accountingbasis' is set
|
1369
|
+
if @api_client.config.client_side_validation && accountingbasis.nil?
|
1370
|
+
fail ArgumentError, "Missing the required parameter 'accountingbasis' when calling AccountingApi.get_gl_account_balances"
|
1371
|
+
end
|
1372
|
+
# verify enum value
|
1373
|
+
allowable_values = ["Accrual", "Cash"]
|
1374
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(accountingbasis)
|
1375
|
+
fail ArgumentError, "invalid value for \"accountingbasis\", must be one of #{allowable_values}"
|
1376
|
+
end
|
1377
|
+
# verify the required parameter 'asofdate' is set
|
1378
|
+
if @api_client.config.client_side_validation && asofdate.nil?
|
1379
|
+
fail ArgumentError, "Missing the required parameter 'asofdate' when calling AccountingApi.get_gl_account_balances"
|
1380
|
+
end
|
1381
|
+
allowable_values = ["Association", "Rental", "RentalOwner"]
|
1382
|
+
if @api_client.config.client_side_validation && opts[:'entitytype'] && !allowable_values.include?(opts[:'entitytype'])
|
1383
|
+
fail ArgumentError, "invalid value for \"entitytype\", must be one of #{allowable_values}"
|
1384
|
+
end
|
1385
|
+
# resource path
|
1386
|
+
local_var_path = '/v1/glaccounts/balances'
|
1387
|
+
|
1388
|
+
# query parameters
|
1389
|
+
query_params = opts[:query_params] || {}
|
1390
|
+
query_params[:'accountingbasis'] = accountingbasis
|
1391
|
+
query_params[:'asofdate'] = asofdate
|
1392
|
+
query_params[:'entitytype'] = opts[:'entitytype'] if !opts[:'entitytype'].nil?
|
1393
|
+
query_params[:'entityid'] = opts[:'entityid'] if !opts[:'entityid'].nil?
|
1394
|
+
query_params[:'glaccountids'] = @api_client.build_collection_param(opts[:'glaccountids'], :multi) if !opts[:'glaccountids'].nil?
|
1395
|
+
query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
1396
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1397
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1398
|
+
|
1399
|
+
# header parameters
|
1400
|
+
header_params = opts[:header_params] || {}
|
1401
|
+
# HTTP header 'Accept' (if needed)
|
1402
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1403
|
+
|
1404
|
+
# form parameters
|
1405
|
+
form_params = opts[:form_params] || {}
|
1406
|
+
|
1407
|
+
# http body (model)
|
1408
|
+
post_body = opts[:debug_body]
|
1409
|
+
|
1410
|
+
# return_type
|
1411
|
+
return_type = opts[:debug_return_type] || 'Array<GLAccountBalanceMessage>'
|
1412
|
+
|
1413
|
+
# auth_names
|
1414
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
1415
|
+
|
1416
|
+
new_options = opts.merge(
|
1417
|
+
:operation => :"AccountingApi.get_gl_account_balances",
|
1418
|
+
:header_params => header_params,
|
1419
|
+
:query_params => query_params,
|
1420
|
+
:form_params => form_params,
|
1421
|
+
:body => post_body,
|
1422
|
+
:auth_names => auth_names,
|
1423
|
+
:return_type => return_type
|
1424
|
+
)
|
1425
|
+
|
1426
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1427
|
+
if @api_client.config.debugging
|
1428
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_gl_account_balances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1429
|
+
end
|
1430
|
+
return data, status_code, headers
|
1431
|
+
end
|
1432
|
+
|
1433
|
+
# Retrieve a general ledger account
|
1434
|
+
# Retrieves a specific general ledger account. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > General Ledger Accounts</span> - `View`
|
1435
|
+
# @param gl_account_id [Integer] The general ledger account identifier.
|
1436
|
+
# @param [Hash] opts the optional parameters
|
1437
|
+
# @return [GLAccountMessage]
|
1438
|
+
def get_gl_account_by_id(gl_account_id, opts = {})
|
1439
|
+
data, _status_code, _headers = get_gl_account_by_id_with_http_info(gl_account_id, opts)
|
1440
|
+
data
|
1441
|
+
end
|
1442
|
+
|
1443
|
+
# Retrieve a general ledger account
|
1444
|
+
# Retrieves a specific general ledger account. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; General Ledger Accounts</span> - `View`
|
1445
|
+
# @param gl_account_id [Integer] The general ledger account identifier.
|
1446
|
+
# @param [Hash] opts the optional parameters
|
1447
|
+
# @return [Array<(GLAccountMessage, Integer, Hash)>] GLAccountMessage data, response status code and response headers
|
1448
|
+
def get_gl_account_by_id_with_http_info(gl_account_id, opts = {})
|
1449
|
+
if @api_client.config.debugging
|
1450
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_gl_account_by_id ...'
|
1451
|
+
end
|
1452
|
+
# verify the required parameter 'gl_account_id' is set
|
1453
|
+
if @api_client.config.client_side_validation && gl_account_id.nil?
|
1454
|
+
fail ArgumentError, "Missing the required parameter 'gl_account_id' when calling AccountingApi.get_gl_account_by_id"
|
1455
|
+
end
|
1456
|
+
# resource path
|
1457
|
+
local_var_path = '/v1/glaccounts/{glAccountId}'.sub('{' + 'glAccountId' + '}', CGI.escape(gl_account_id.to_s))
|
1458
|
+
|
1459
|
+
# query parameters
|
1460
|
+
query_params = opts[:query_params] || {}
|
1461
|
+
|
1462
|
+
# header parameters
|
1463
|
+
header_params = opts[:header_params] || {}
|
1464
|
+
# HTTP header 'Accept' (if needed)
|
1465
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1466
|
+
|
1467
|
+
# form parameters
|
1468
|
+
form_params = opts[:form_params] || {}
|
1469
|
+
|
1470
|
+
# http body (model)
|
1471
|
+
post_body = opts[:debug_body]
|
1472
|
+
|
1473
|
+
# return_type
|
1474
|
+
return_type = opts[:debug_return_type] || 'GLAccountMessage'
|
1475
|
+
|
1476
|
+
# auth_names
|
1477
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
1478
|
+
|
1479
|
+
new_options = opts.merge(
|
1480
|
+
:operation => :"AccountingApi.get_gl_account_by_id",
|
1481
|
+
:header_params => header_params,
|
1482
|
+
:query_params => query_params,
|
1483
|
+
:form_params => form_params,
|
1484
|
+
:body => post_body,
|
1485
|
+
:auth_names => auth_names,
|
1486
|
+
:return_type => return_type
|
1487
|
+
)
|
1488
|
+
|
1489
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1490
|
+
if @api_client.config.debugging
|
1491
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_gl_account_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1492
|
+
end
|
1493
|
+
return data, status_code, headers
|
1494
|
+
end
|
1495
|
+
|
1496
|
+
# Retrieve a general ledger transaction
|
1497
|
+
# Retrieves a specific general ledger transaction. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > General Ledger Transactions</span> - `View`
|
1498
|
+
# @param transaction_id [Integer] The general ledger transaction identifier.
|
1499
|
+
# @param [Hash] opts the optional parameters
|
1500
|
+
# @return [GeneralLedgerTransactionMessage]
|
1501
|
+
def get_transaction_by_id(transaction_id, opts = {})
|
1502
|
+
data, _status_code, _headers = get_transaction_by_id_with_http_info(transaction_id, opts)
|
1503
|
+
data
|
1504
|
+
end
|
1505
|
+
|
1506
|
+
# Retrieve a general ledger transaction
|
1507
|
+
# Retrieves a specific general ledger transaction. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; General Ledger Transactions</span> - `View`
|
1508
|
+
# @param transaction_id [Integer] The general ledger transaction identifier.
|
1509
|
+
# @param [Hash] opts the optional parameters
|
1510
|
+
# @return [Array<(GeneralLedgerTransactionMessage, Integer, Hash)>] GeneralLedgerTransactionMessage data, response status code and response headers
|
1511
|
+
def get_transaction_by_id_with_http_info(transaction_id, opts = {})
|
1512
|
+
if @api_client.config.debugging
|
1513
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.get_transaction_by_id ...'
|
1514
|
+
end
|
1515
|
+
# verify the required parameter 'transaction_id' is set
|
1516
|
+
if @api_client.config.client_side_validation && transaction_id.nil?
|
1517
|
+
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling AccountingApi.get_transaction_by_id"
|
1518
|
+
end
|
1519
|
+
# resource path
|
1520
|
+
local_var_path = '/v1/generalledger/transactions/{transactionId}'.sub('{' + 'transactionId' + '}', CGI.escape(transaction_id.to_s))
|
1521
|
+
|
1522
|
+
# query parameters
|
1523
|
+
query_params = opts[:query_params] || {}
|
1524
|
+
|
1525
|
+
# header parameters
|
1526
|
+
header_params = opts[:header_params] || {}
|
1527
|
+
# HTTP header 'Accept' (if needed)
|
1528
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1529
|
+
|
1530
|
+
# form parameters
|
1531
|
+
form_params = opts[:form_params] || {}
|
1532
|
+
|
1533
|
+
# http body (model)
|
1534
|
+
post_body = opts[:debug_body]
|
1535
|
+
|
1536
|
+
# return_type
|
1537
|
+
return_type = opts[:debug_return_type] || 'GeneralLedgerTransactionMessage'
|
1538
|
+
|
1539
|
+
# auth_names
|
1540
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
1541
|
+
|
1542
|
+
new_options = opts.merge(
|
1543
|
+
:operation => :"AccountingApi.get_transaction_by_id",
|
1544
|
+
:header_params => header_params,
|
1545
|
+
:query_params => query_params,
|
1546
|
+
:form_params => form_params,
|
1547
|
+
:body => post_body,
|
1548
|
+
:auth_names => auth_names,
|
1549
|
+
:return_type => return_type
|
1550
|
+
)
|
1551
|
+
|
1552
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1553
|
+
if @api_client.config.debugging
|
1554
|
+
@api_client.config.logger.debug "API called: AccountingApi#get_transaction_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1555
|
+
end
|
1556
|
+
return data, status_code, headers
|
1557
|
+
end
|
1558
|
+
|
1559
|
+
# Update a bill
|
1560
|
+
# Use this operation to update any of the writable fields of an existing bill resource. When updating this resource keep the following in mind: <br /><ul><li>Writable fields omitted from the request or that do not have a value in the request message are set to `NULL`. If you do not want to update the field, submit the original field value.</li><li>When a bill has an existing payment any edits to the line items that change the total bill amount must result in the new total bill amount being equal to or greater than the amount paid.</li><li>When adding a new line item leave the `LineItem.Id` field empty.</li></ul><br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > Bills</span> - `View` `Edit`
|
1561
|
+
# @param bill_id [Integer]
|
1562
|
+
# @param bill_put_message [BillPutMessage]
|
1563
|
+
# @param [Hash] opts the optional parameters
|
1564
|
+
# @return [BillMessage]
|
1565
|
+
def update_bill(bill_id, bill_put_message, opts = {})
|
1566
|
+
data, _status_code, _headers = update_bill_with_http_info(bill_id, bill_put_message, opts)
|
1567
|
+
data
|
1568
|
+
end
|
1569
|
+
|
1570
|
+
# Update a bill
|
1571
|
+
# Use this operation to update any of the writable fields of an existing bill resource. When updating this resource keep the following in mind: <br /><ul><li>Writable fields omitted from the request or that do not have a value in the request message are set to `NULL`. If you do not want to update the field, submit the original field value.</li><li>When a bill has an existing payment any edits to the line items that change the total bill amount must result in the new total bill amount being equal to or greater than the amount paid.</li><li>When adding a new line item leave the `LineItem.Id` field empty.</li></ul><br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; Bills</span> - `View` `Edit`
|
1572
|
+
# @param bill_id [Integer]
|
1573
|
+
# @param bill_put_message [BillPutMessage]
|
1574
|
+
# @param [Hash] opts the optional parameters
|
1575
|
+
# @return [Array<(BillMessage, Integer, Hash)>] BillMessage data, response status code and response headers
|
1576
|
+
def update_bill_with_http_info(bill_id, bill_put_message, opts = {})
|
1577
|
+
if @api_client.config.debugging
|
1578
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.update_bill ...'
|
1579
|
+
end
|
1580
|
+
# verify the required parameter 'bill_id' is set
|
1581
|
+
if @api_client.config.client_side_validation && bill_id.nil?
|
1582
|
+
fail ArgumentError, "Missing the required parameter 'bill_id' when calling AccountingApi.update_bill"
|
1583
|
+
end
|
1584
|
+
# verify the required parameter 'bill_put_message' is set
|
1585
|
+
if @api_client.config.client_side_validation && bill_put_message.nil?
|
1586
|
+
fail ArgumentError, "Missing the required parameter 'bill_put_message' when calling AccountingApi.update_bill"
|
1587
|
+
end
|
1588
|
+
# resource path
|
1589
|
+
local_var_path = '/v1/bills/{billId}'.sub('{' + 'billId' + '}', CGI.escape(bill_id.to_s))
|
1590
|
+
|
1591
|
+
# query parameters
|
1592
|
+
query_params = opts[:query_params] || {}
|
1593
|
+
|
1594
|
+
# header parameters
|
1595
|
+
header_params = opts[:header_params] || {}
|
1596
|
+
# HTTP header 'Accept' (if needed)
|
1597
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1598
|
+
# HTTP header 'Content-Type'
|
1599
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1600
|
+
if !content_type.nil?
|
1601
|
+
header_params['Content-Type'] = content_type
|
1602
|
+
end
|
1603
|
+
|
1604
|
+
# form parameters
|
1605
|
+
form_params = opts[:form_params] || {}
|
1606
|
+
|
1607
|
+
# http body (model)
|
1608
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(bill_put_message)
|
1609
|
+
|
1610
|
+
# return_type
|
1611
|
+
return_type = opts[:debug_return_type] || 'BillMessage'
|
1612
|
+
|
1613
|
+
# auth_names
|
1614
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
1615
|
+
|
1616
|
+
new_options = opts.merge(
|
1617
|
+
:operation => :"AccountingApi.update_bill",
|
1618
|
+
:header_params => header_params,
|
1619
|
+
:query_params => query_params,
|
1620
|
+
:form_params => form_params,
|
1621
|
+
:body => post_body,
|
1622
|
+
:auth_names => auth_names,
|
1623
|
+
:return_type => return_type
|
1624
|
+
)
|
1625
|
+
|
1626
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1627
|
+
if @api_client.config.debugging
|
1628
|
+
@api_client.config.logger.debug "API called: AccountingApi#update_bill\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1629
|
+
end
|
1630
|
+
return data, status_code, headers
|
1631
|
+
end
|
1632
|
+
|
1633
|
+
# Update a budget
|
1634
|
+
# Updates a budget. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > Budgets</span> - `View` `Edit`
|
1635
|
+
# @param budget_id [Integer]
|
1636
|
+
# @param budget_put_message [BudgetPutMessage]
|
1637
|
+
# @param [Hash] opts the optional parameters
|
1638
|
+
# @return [BudgetMessage]
|
1639
|
+
def update_budget(budget_id, budget_put_message, opts = {})
|
1640
|
+
data, _status_code, _headers = update_budget_with_http_info(budget_id, budget_put_message, opts)
|
1641
|
+
data
|
1642
|
+
end
|
1643
|
+
|
1644
|
+
# Update a budget
|
1645
|
+
# Updates a budget. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; Budgets</span> - `View` `Edit`
|
1646
|
+
# @param budget_id [Integer]
|
1647
|
+
# @param budget_put_message [BudgetPutMessage]
|
1648
|
+
# @param [Hash] opts the optional parameters
|
1649
|
+
# @return [Array<(BudgetMessage, Integer, Hash)>] BudgetMessage data, response status code and response headers
|
1650
|
+
def update_budget_with_http_info(budget_id, budget_put_message, opts = {})
|
1651
|
+
if @api_client.config.debugging
|
1652
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.update_budget ...'
|
1653
|
+
end
|
1654
|
+
# verify the required parameter 'budget_id' is set
|
1655
|
+
if @api_client.config.client_side_validation && budget_id.nil?
|
1656
|
+
fail ArgumentError, "Missing the required parameter 'budget_id' when calling AccountingApi.update_budget"
|
1657
|
+
end
|
1658
|
+
# verify the required parameter 'budget_put_message' is set
|
1659
|
+
if @api_client.config.client_side_validation && budget_put_message.nil?
|
1660
|
+
fail ArgumentError, "Missing the required parameter 'budget_put_message' when calling AccountingApi.update_budget"
|
1661
|
+
end
|
1662
|
+
# resource path
|
1663
|
+
local_var_path = '/v1/budgets/{budgetId}'.sub('{' + 'budgetId' + '}', CGI.escape(budget_id.to_s))
|
1664
|
+
|
1665
|
+
# query parameters
|
1666
|
+
query_params = opts[:query_params] || {}
|
1667
|
+
|
1668
|
+
# header parameters
|
1669
|
+
header_params = opts[:header_params] || {}
|
1670
|
+
# HTTP header 'Accept' (if needed)
|
1671
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1672
|
+
# HTTP header 'Content-Type'
|
1673
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1674
|
+
if !content_type.nil?
|
1675
|
+
header_params['Content-Type'] = content_type
|
1676
|
+
end
|
1677
|
+
|
1678
|
+
# form parameters
|
1679
|
+
form_params = opts[:form_params] || {}
|
1680
|
+
|
1681
|
+
# http body (model)
|
1682
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(budget_put_message)
|
1683
|
+
|
1684
|
+
# return_type
|
1685
|
+
return_type = opts[:debug_return_type] || 'BudgetMessage'
|
1686
|
+
|
1687
|
+
# auth_names
|
1688
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
1689
|
+
|
1690
|
+
new_options = opts.merge(
|
1691
|
+
:operation => :"AccountingApi.update_budget",
|
1692
|
+
:header_params => header_params,
|
1693
|
+
:query_params => query_params,
|
1694
|
+
:form_params => form_params,
|
1695
|
+
:body => post_body,
|
1696
|
+
:auth_names => auth_names,
|
1697
|
+
:return_type => return_type
|
1698
|
+
)
|
1699
|
+
|
1700
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1701
|
+
if @api_client.config.debugging
|
1702
|
+
@api_client.config.logger.debug "API called: AccountingApi#update_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1703
|
+
end
|
1704
|
+
return data, status_code, headers
|
1705
|
+
end
|
1706
|
+
|
1707
|
+
# Update a general journal entry
|
1708
|
+
# Updates a general journal entry. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > General Ledger Transactions</span> - `View` `Edit`
|
1709
|
+
# @param journal_entry_id [Integer]
|
1710
|
+
# @param general_journal_entry_put_message [GeneralJournalEntryPutMessage]
|
1711
|
+
# @param [Hash] opts the optional parameters
|
1712
|
+
# @return [GeneralLedgerTransactionMessage]
|
1713
|
+
def update_general_journal_entry(journal_entry_id, general_journal_entry_put_message, opts = {})
|
1714
|
+
data, _status_code, _headers = update_general_journal_entry_with_http_info(journal_entry_id, general_journal_entry_put_message, opts)
|
1715
|
+
data
|
1716
|
+
end
|
1717
|
+
|
1718
|
+
# Update a general journal entry
|
1719
|
+
# Updates a general journal entry. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; General Ledger Transactions</span> - `View` `Edit`
|
1720
|
+
# @param journal_entry_id [Integer]
|
1721
|
+
# @param general_journal_entry_put_message [GeneralJournalEntryPutMessage]
|
1722
|
+
# @param [Hash] opts the optional parameters
|
1723
|
+
# @return [Array<(GeneralLedgerTransactionMessage, Integer, Hash)>] GeneralLedgerTransactionMessage data, response status code and response headers
|
1724
|
+
def update_general_journal_entry_with_http_info(journal_entry_id, general_journal_entry_put_message, opts = {})
|
1725
|
+
if @api_client.config.debugging
|
1726
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.update_general_journal_entry ...'
|
1727
|
+
end
|
1728
|
+
# verify the required parameter 'journal_entry_id' is set
|
1729
|
+
if @api_client.config.client_side_validation && journal_entry_id.nil?
|
1730
|
+
fail ArgumentError, "Missing the required parameter 'journal_entry_id' when calling AccountingApi.update_general_journal_entry"
|
1731
|
+
end
|
1732
|
+
# verify the required parameter 'general_journal_entry_put_message' is set
|
1733
|
+
if @api_client.config.client_side_validation && general_journal_entry_put_message.nil?
|
1734
|
+
fail ArgumentError, "Missing the required parameter 'general_journal_entry_put_message' when calling AccountingApi.update_general_journal_entry"
|
1735
|
+
end
|
1736
|
+
# resource path
|
1737
|
+
local_var_path = '/v1/generalledger/journalentries/{journalEntryId}'.sub('{' + 'journalEntryId' + '}', CGI.escape(journal_entry_id.to_s))
|
1738
|
+
|
1739
|
+
# query parameters
|
1740
|
+
query_params = opts[:query_params] || {}
|
1741
|
+
|
1742
|
+
# header parameters
|
1743
|
+
header_params = opts[:header_params] || {}
|
1744
|
+
# HTTP header 'Accept' (if needed)
|
1745
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1746
|
+
# HTTP header 'Content-Type'
|
1747
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1748
|
+
if !content_type.nil?
|
1749
|
+
header_params['Content-Type'] = content_type
|
1750
|
+
end
|
1751
|
+
|
1752
|
+
# form parameters
|
1753
|
+
form_params = opts[:form_params] || {}
|
1754
|
+
|
1755
|
+
# http body (model)
|
1756
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(general_journal_entry_put_message)
|
1757
|
+
|
1758
|
+
# return_type
|
1759
|
+
return_type = opts[:debug_return_type] || 'GeneralLedgerTransactionMessage'
|
1760
|
+
|
1761
|
+
# auth_names
|
1762
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
1763
|
+
|
1764
|
+
new_options = opts.merge(
|
1765
|
+
:operation => :"AccountingApi.update_general_journal_entry",
|
1766
|
+
:header_params => header_params,
|
1767
|
+
:query_params => query_params,
|
1768
|
+
:form_params => form_params,
|
1769
|
+
:body => post_body,
|
1770
|
+
:auth_names => auth_names,
|
1771
|
+
:return_type => return_type
|
1772
|
+
)
|
1773
|
+
|
1774
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1775
|
+
if @api_client.config.debugging
|
1776
|
+
@api_client.config.logger.debug "API called: AccountingApi#update_general_journal_entry\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1777
|
+
end
|
1778
|
+
return data, status_code, headers
|
1779
|
+
end
|
1780
|
+
|
1781
|
+
# Update a general ledger account
|
1782
|
+
# Updates a general ledger account. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > General Ledger Accounts</span> - `View` `Edit`
|
1783
|
+
# @param gl_account_id [Integer]
|
1784
|
+
# @param gl_account_put_message [GLAccountPutMessage]
|
1785
|
+
# @param [Hash] opts the optional parameters
|
1786
|
+
# @return [GLAccountMessage]
|
1787
|
+
def update_gl_account(gl_account_id, gl_account_put_message, opts = {})
|
1788
|
+
data, _status_code, _headers = update_gl_account_with_http_info(gl_account_id, gl_account_put_message, opts)
|
1789
|
+
data
|
1790
|
+
end
|
1791
|
+
|
1792
|
+
# Update a general ledger account
|
1793
|
+
# Updates a general ledger account. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; General Ledger Accounts</span> - `View` `Edit`
|
1794
|
+
# @param gl_account_id [Integer]
|
1795
|
+
# @param gl_account_put_message [GLAccountPutMessage]
|
1796
|
+
# @param [Hash] opts the optional parameters
|
1797
|
+
# @return [Array<(GLAccountMessage, Integer, Hash)>] GLAccountMessage data, response status code and response headers
|
1798
|
+
def update_gl_account_with_http_info(gl_account_id, gl_account_put_message, opts = {})
|
1799
|
+
if @api_client.config.debugging
|
1800
|
+
@api_client.config.logger.debug 'Calling API: AccountingApi.update_gl_account ...'
|
1801
|
+
end
|
1802
|
+
# verify the required parameter 'gl_account_id' is set
|
1803
|
+
if @api_client.config.client_side_validation && gl_account_id.nil?
|
1804
|
+
fail ArgumentError, "Missing the required parameter 'gl_account_id' when calling AccountingApi.update_gl_account"
|
1805
|
+
end
|
1806
|
+
# verify the required parameter 'gl_account_put_message' is set
|
1807
|
+
if @api_client.config.client_side_validation && gl_account_put_message.nil?
|
1808
|
+
fail ArgumentError, "Missing the required parameter 'gl_account_put_message' when calling AccountingApi.update_gl_account"
|
1809
|
+
end
|
1810
|
+
# resource path
|
1811
|
+
local_var_path = '/v1/glaccounts/{glAccountId}'.sub('{' + 'glAccountId' + '}', CGI.escape(gl_account_id.to_s))
|
1812
|
+
|
1813
|
+
# query parameters
|
1814
|
+
query_params = opts[:query_params] || {}
|
1815
|
+
|
1816
|
+
# header parameters
|
1817
|
+
header_params = opts[:header_params] || {}
|
1818
|
+
# HTTP header 'Accept' (if needed)
|
1819
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1820
|
+
# HTTP header 'Content-Type'
|
1821
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1822
|
+
if !content_type.nil?
|
1823
|
+
header_params['Content-Type'] = content_type
|
1824
|
+
end
|
1825
|
+
|
1826
|
+
# form parameters
|
1827
|
+
form_params = opts[:form_params] || {}
|
1828
|
+
|
1829
|
+
# http body (model)
|
1830
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(gl_account_put_message)
|
1831
|
+
|
1832
|
+
# return_type
|
1833
|
+
return_type = opts[:debug_return_type] || 'GLAccountMessage'
|
1834
|
+
|
1835
|
+
# auth_names
|
1836
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
1837
|
+
|
1838
|
+
new_options = opts.merge(
|
1839
|
+
:operation => :"AccountingApi.update_gl_account",
|
1840
|
+
:header_params => header_params,
|
1841
|
+
:query_params => query_params,
|
1842
|
+
:form_params => form_params,
|
1843
|
+
:body => post_body,
|
1844
|
+
:auth_names => auth_names,
|
1845
|
+
:return_type => return_type
|
1846
|
+
)
|
1847
|
+
|
1848
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1849
|
+
if @api_client.config.debugging
|
1850
|
+
@api_client.config.logger.debug "API called: AccountingApi#update_gl_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1851
|
+
end
|
1852
|
+
return data, status_code, headers
|
1853
|
+
end
|
1854
|
+
end
|
1855
|
+
end
|