buildium-ruby 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,2636 @@
|
|
|
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 LeasesApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create a lease
|
|
23
|
+
# Creates a signed lease. <br /><br /><span class=\"permissionBlock\">Rentals > Leases</span> - `View` `Edit` <br /><span class=\"permissionBlock\">Rentals > Tenants</span> - `View` `Edit` <br /><span class=\"permissionBlock\">Rentals > Lease transactions</span> - `View` `Edit`
|
|
24
|
+
# @param lease_post_message [LeasePostMessage]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [LeaseMessage]
|
|
27
|
+
def create_lease(lease_post_message, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_lease_with_http_info(lease_post_message, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Create a lease
|
|
33
|
+
# Creates a signed lease. <br /><br /><span class=\"permissionBlock\">Rentals &gt; Leases</span> - `View` `Edit` <br /><span class=\"permissionBlock\">Rentals &gt; Tenants</span> - `View` `Edit` <br /><span class=\"permissionBlock\">Rentals &gt; Lease transactions</span> - `View` `Edit`
|
|
34
|
+
# @param lease_post_message [LeasePostMessage]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(LeaseMessage, Integer, Hash)>] LeaseMessage data, response status code and response headers
|
|
37
|
+
def create_lease_with_http_info(lease_post_message, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.create_lease ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'lease_post_message' is set
|
|
42
|
+
if @api_client.config.client_side_validation && lease_post_message.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'lease_post_message' when calling LeasesApi.create_lease"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/v1/leases'
|
|
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(lease_post_message)
|
|
66
|
+
|
|
67
|
+
# return_type
|
|
68
|
+
return_type = opts[:debug_return_type] || 'LeaseMessage'
|
|
69
|
+
|
|
70
|
+
# auth_names
|
|
71
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
72
|
+
|
|
73
|
+
new_options = opts.merge(
|
|
74
|
+
:operation => :"LeasesApi.create_lease",
|
|
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: LeasesApi#create_lease\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Create a recurring charge
|
|
91
|
+
# Creates a recurring charge transaction that will post automatically on the specified lease ledger. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Lease transactions</span> - `View` `Edit`
|
|
92
|
+
# @param lease_id [Integer]
|
|
93
|
+
# @param charge_recurring_transaction_post_message [ChargeRecurringTransactionPostMessage]
|
|
94
|
+
# @param [Hash] opts the optional parameters
|
|
95
|
+
# @return [LeaseChargeRecurringTransactionMessage]
|
|
96
|
+
def create_lease_charge_recurring_transaction(lease_id, charge_recurring_transaction_post_message, opts = {})
|
|
97
|
+
data, _status_code, _headers = create_lease_charge_recurring_transaction_with_http_info(lease_id, charge_recurring_transaction_post_message, opts)
|
|
98
|
+
data
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Create a recurring charge
|
|
102
|
+
# Creates a recurring charge transaction that will post automatically on the specified lease ledger. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Lease transactions</span> - `View` `Edit`
|
|
103
|
+
# @param lease_id [Integer]
|
|
104
|
+
# @param charge_recurring_transaction_post_message [ChargeRecurringTransactionPostMessage]
|
|
105
|
+
# @param [Hash] opts the optional parameters
|
|
106
|
+
# @return [Array<(LeaseChargeRecurringTransactionMessage, Integer, Hash)>] LeaseChargeRecurringTransactionMessage data, response status code and response headers
|
|
107
|
+
def create_lease_charge_recurring_transaction_with_http_info(lease_id, charge_recurring_transaction_post_message, opts = {})
|
|
108
|
+
if @api_client.config.debugging
|
|
109
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.create_lease_charge_recurring_transaction ...'
|
|
110
|
+
end
|
|
111
|
+
# verify the required parameter 'lease_id' is set
|
|
112
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
113
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.create_lease_charge_recurring_transaction"
|
|
114
|
+
end
|
|
115
|
+
# verify the required parameter 'charge_recurring_transaction_post_message' is set
|
|
116
|
+
if @api_client.config.client_side_validation && charge_recurring_transaction_post_message.nil?
|
|
117
|
+
fail ArgumentError, "Missing the required parameter 'charge_recurring_transaction_post_message' when calling LeasesApi.create_lease_charge_recurring_transaction"
|
|
118
|
+
end
|
|
119
|
+
# resource path
|
|
120
|
+
local_var_path = '/v1/leases/{leaseId}/recurringcharges'.sub('{' + 'leaseId' + '}', CGI.escape(lease_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(charge_recurring_transaction_post_message)
|
|
140
|
+
|
|
141
|
+
# return_type
|
|
142
|
+
return_type = opts[:debug_return_type] || 'LeaseChargeRecurringTransactionMessage'
|
|
143
|
+
|
|
144
|
+
# auth_names
|
|
145
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
146
|
+
|
|
147
|
+
new_options = opts.merge(
|
|
148
|
+
:operation => :"LeasesApi.create_lease_charge_recurring_transaction",
|
|
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: LeasesApi#create_lease_charge_recurring_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
160
|
+
end
|
|
161
|
+
return data, status_code, headers
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Create a credit
|
|
165
|
+
# Creates a lease ledger credit. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Lease transactions</span> - `View` `Edit`
|
|
166
|
+
# @param lease_id [Integer] The lease unique identifier.
|
|
167
|
+
# @param lease_ledger_credit_post_message [LeaseLedgerCreditPostMessage]
|
|
168
|
+
# @param [Hash] opts the optional parameters
|
|
169
|
+
# @return [LeaseTransactionMessage]
|
|
170
|
+
def create_lease_credit(lease_id, lease_ledger_credit_post_message, opts = {})
|
|
171
|
+
data, _status_code, _headers = create_lease_credit_with_http_info(lease_id, lease_ledger_credit_post_message, opts)
|
|
172
|
+
data
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Create a credit
|
|
176
|
+
# Creates a lease ledger credit. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Lease transactions</span> - `View` `Edit`
|
|
177
|
+
# @param lease_id [Integer] The lease unique identifier.
|
|
178
|
+
# @param lease_ledger_credit_post_message [LeaseLedgerCreditPostMessage]
|
|
179
|
+
# @param [Hash] opts the optional parameters
|
|
180
|
+
# @return [Array<(LeaseTransactionMessage, Integer, Hash)>] LeaseTransactionMessage data, response status code and response headers
|
|
181
|
+
def create_lease_credit_with_http_info(lease_id, lease_ledger_credit_post_message, opts = {})
|
|
182
|
+
if @api_client.config.debugging
|
|
183
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.create_lease_credit ...'
|
|
184
|
+
end
|
|
185
|
+
# verify the required parameter 'lease_id' is set
|
|
186
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
187
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.create_lease_credit"
|
|
188
|
+
end
|
|
189
|
+
# verify the required parameter 'lease_ledger_credit_post_message' is set
|
|
190
|
+
if @api_client.config.client_side_validation && lease_ledger_credit_post_message.nil?
|
|
191
|
+
fail ArgumentError, "Missing the required parameter 'lease_ledger_credit_post_message' when calling LeasesApi.create_lease_credit"
|
|
192
|
+
end
|
|
193
|
+
# resource path
|
|
194
|
+
local_var_path = '/v1/leases/{leaseId}/credits'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
195
|
+
|
|
196
|
+
# query parameters
|
|
197
|
+
query_params = opts[:query_params] || {}
|
|
198
|
+
|
|
199
|
+
# header parameters
|
|
200
|
+
header_params = opts[:header_params] || {}
|
|
201
|
+
# HTTP header 'Accept' (if needed)
|
|
202
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
203
|
+
# HTTP header 'Content-Type'
|
|
204
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
205
|
+
if !content_type.nil?
|
|
206
|
+
header_params['Content-Type'] = content_type
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# form parameters
|
|
210
|
+
form_params = opts[:form_params] || {}
|
|
211
|
+
|
|
212
|
+
# http body (model)
|
|
213
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(lease_ledger_credit_post_message)
|
|
214
|
+
|
|
215
|
+
# return_type
|
|
216
|
+
return_type = opts[:debug_return_type] || 'LeaseTransactionMessage'
|
|
217
|
+
|
|
218
|
+
# auth_names
|
|
219
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
220
|
+
|
|
221
|
+
new_options = opts.merge(
|
|
222
|
+
:operation => :"LeasesApi.create_lease_credit",
|
|
223
|
+
:header_params => header_params,
|
|
224
|
+
:query_params => query_params,
|
|
225
|
+
:form_params => form_params,
|
|
226
|
+
:body => post_body,
|
|
227
|
+
:auth_names => auth_names,
|
|
228
|
+
:return_type => return_type
|
|
229
|
+
)
|
|
230
|
+
|
|
231
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
232
|
+
if @api_client.config.debugging
|
|
233
|
+
@api_client.config.logger.debug "API called: LeasesApi#create_lease_credit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
234
|
+
end
|
|
235
|
+
return data, status_code, headers
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# Create a recurring credit
|
|
239
|
+
# Creates a recurring credit transaction on the specified lease ledger. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Lease transactions</span> - `View` `Edit`
|
|
240
|
+
# @param lease_id [Integer]
|
|
241
|
+
# @param credit_recurring_transaction_post_message [CreditRecurringTransactionPostMessage]
|
|
242
|
+
# @param [Hash] opts the optional parameters
|
|
243
|
+
# @return [LeaseRecurringCreditMessage]
|
|
244
|
+
def create_lease_credit_recurring_transaction(lease_id, credit_recurring_transaction_post_message, opts = {})
|
|
245
|
+
data, _status_code, _headers = create_lease_credit_recurring_transaction_with_http_info(lease_id, credit_recurring_transaction_post_message, opts)
|
|
246
|
+
data
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# Create a recurring credit
|
|
250
|
+
# Creates a recurring credit transaction on the specified lease ledger. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Lease transactions</span> - `View` `Edit`
|
|
251
|
+
# @param lease_id [Integer]
|
|
252
|
+
# @param credit_recurring_transaction_post_message [CreditRecurringTransactionPostMessage]
|
|
253
|
+
# @param [Hash] opts the optional parameters
|
|
254
|
+
# @return [Array<(LeaseRecurringCreditMessage, Integer, Hash)>] LeaseRecurringCreditMessage data, response status code and response headers
|
|
255
|
+
def create_lease_credit_recurring_transaction_with_http_info(lease_id, credit_recurring_transaction_post_message, opts = {})
|
|
256
|
+
if @api_client.config.debugging
|
|
257
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.create_lease_credit_recurring_transaction ...'
|
|
258
|
+
end
|
|
259
|
+
# verify the required parameter 'lease_id' is set
|
|
260
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
261
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.create_lease_credit_recurring_transaction"
|
|
262
|
+
end
|
|
263
|
+
# verify the required parameter 'credit_recurring_transaction_post_message' is set
|
|
264
|
+
if @api_client.config.client_side_validation && credit_recurring_transaction_post_message.nil?
|
|
265
|
+
fail ArgumentError, "Missing the required parameter 'credit_recurring_transaction_post_message' when calling LeasesApi.create_lease_credit_recurring_transaction"
|
|
266
|
+
end
|
|
267
|
+
# resource path
|
|
268
|
+
local_var_path = '/v1/leases/{leaseId}/recurringcredits'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
269
|
+
|
|
270
|
+
# query parameters
|
|
271
|
+
query_params = opts[:query_params] || {}
|
|
272
|
+
|
|
273
|
+
# header parameters
|
|
274
|
+
header_params = opts[:header_params] || {}
|
|
275
|
+
# HTTP header 'Accept' (if needed)
|
|
276
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
277
|
+
# HTTP header 'Content-Type'
|
|
278
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
279
|
+
if !content_type.nil?
|
|
280
|
+
header_params['Content-Type'] = content_type
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
# form parameters
|
|
284
|
+
form_params = opts[:form_params] || {}
|
|
285
|
+
|
|
286
|
+
# http body (model)
|
|
287
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(credit_recurring_transaction_post_message)
|
|
288
|
+
|
|
289
|
+
# return_type
|
|
290
|
+
return_type = opts[:debug_return_type] || 'LeaseRecurringCreditMessage'
|
|
291
|
+
|
|
292
|
+
# auth_names
|
|
293
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
294
|
+
|
|
295
|
+
new_options = opts.merge(
|
|
296
|
+
:operation => :"LeasesApi.create_lease_credit_recurring_transaction",
|
|
297
|
+
:header_params => header_params,
|
|
298
|
+
:query_params => query_params,
|
|
299
|
+
:form_params => form_params,
|
|
300
|
+
:body => post_body,
|
|
301
|
+
:auth_names => auth_names,
|
|
302
|
+
:return_type => return_type
|
|
303
|
+
)
|
|
304
|
+
|
|
305
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
306
|
+
if @api_client.config.debugging
|
|
307
|
+
@api_client.config.logger.debug "API called: LeasesApi#create_lease_credit_recurring_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
308
|
+
end
|
|
309
|
+
return data, status_code, headers
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Create a charge
|
|
313
|
+
# Creates a charge transaction on a specific lease ledger. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Lease transactions</span> - `View` `Edit`
|
|
314
|
+
# @param lease_id [Integer]
|
|
315
|
+
# @param lease_charge_post_message [LeaseChargePostMessage]
|
|
316
|
+
# @param [Hash] opts the optional parameters
|
|
317
|
+
# @return [Array<LeaseTransactionMessage>]
|
|
318
|
+
def create_lease_ledger_charge(lease_id, lease_charge_post_message, opts = {})
|
|
319
|
+
data, _status_code, _headers = create_lease_ledger_charge_with_http_info(lease_id, lease_charge_post_message, opts)
|
|
320
|
+
data
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
# Create a charge
|
|
324
|
+
# Creates a charge transaction on a specific lease ledger. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Lease transactions</span> - `View` `Edit`
|
|
325
|
+
# @param lease_id [Integer]
|
|
326
|
+
# @param lease_charge_post_message [LeaseChargePostMessage]
|
|
327
|
+
# @param [Hash] opts the optional parameters
|
|
328
|
+
# @return [Array<(Array<LeaseTransactionMessage>, Integer, Hash)>] Array<LeaseTransactionMessage> data, response status code and response headers
|
|
329
|
+
def create_lease_ledger_charge_with_http_info(lease_id, lease_charge_post_message, opts = {})
|
|
330
|
+
if @api_client.config.debugging
|
|
331
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.create_lease_ledger_charge ...'
|
|
332
|
+
end
|
|
333
|
+
# verify the required parameter 'lease_id' is set
|
|
334
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
335
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.create_lease_ledger_charge"
|
|
336
|
+
end
|
|
337
|
+
# verify the required parameter 'lease_charge_post_message' is set
|
|
338
|
+
if @api_client.config.client_side_validation && lease_charge_post_message.nil?
|
|
339
|
+
fail ArgumentError, "Missing the required parameter 'lease_charge_post_message' when calling LeasesApi.create_lease_ledger_charge"
|
|
340
|
+
end
|
|
341
|
+
# resource path
|
|
342
|
+
local_var_path = '/v1/leases/{leaseId}/charges'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
343
|
+
|
|
344
|
+
# query parameters
|
|
345
|
+
query_params = opts[:query_params] || {}
|
|
346
|
+
|
|
347
|
+
# header parameters
|
|
348
|
+
header_params = opts[:header_params] || {}
|
|
349
|
+
# HTTP header 'Accept' (if needed)
|
|
350
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
351
|
+
# HTTP header 'Content-Type'
|
|
352
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
353
|
+
if !content_type.nil?
|
|
354
|
+
header_params['Content-Type'] = content_type
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
# form parameters
|
|
358
|
+
form_params = opts[:form_params] || {}
|
|
359
|
+
|
|
360
|
+
# http body (model)
|
|
361
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(lease_charge_post_message)
|
|
362
|
+
|
|
363
|
+
# return_type
|
|
364
|
+
return_type = opts[:debug_return_type] || 'Array<LeaseTransactionMessage>'
|
|
365
|
+
|
|
366
|
+
# auth_names
|
|
367
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
368
|
+
|
|
369
|
+
new_options = opts.merge(
|
|
370
|
+
:operation => :"LeasesApi.create_lease_ledger_charge",
|
|
371
|
+
:header_params => header_params,
|
|
372
|
+
:query_params => query_params,
|
|
373
|
+
:form_params => form_params,
|
|
374
|
+
:body => post_body,
|
|
375
|
+
:auth_names => auth_names,
|
|
376
|
+
:return_type => return_type
|
|
377
|
+
)
|
|
378
|
+
|
|
379
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
380
|
+
if @api_client.config.debugging
|
|
381
|
+
@api_client.config.logger.debug "API called: LeasesApi#create_lease_ledger_charge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
382
|
+
end
|
|
383
|
+
return data, status_code, headers
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
# Create a deposit withholding
|
|
387
|
+
# Withholds a resident deposit by reallocating the funds from a liability account to an income account to cover an expense(s). <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Lease Ledger</span> - `View` `Edit` <span class=\"permissionBlock\">Accounting > General Ledger Accounts</span> - `View`
|
|
388
|
+
# @param lease_id [Integer]
|
|
389
|
+
# @param lease_ledger_deposit_withholding_post_message [LeaseLedgerDepositWithholdingPostMessage]
|
|
390
|
+
# @param [Hash] opts the optional parameters
|
|
391
|
+
# @return [LeaseTransactionMessage]
|
|
392
|
+
def create_lease_ledger_deposit_withholding(lease_id, lease_ledger_deposit_withholding_post_message, opts = {})
|
|
393
|
+
data, _status_code, _headers = create_lease_ledger_deposit_withholding_with_http_info(lease_id, lease_ledger_deposit_withholding_post_message, opts)
|
|
394
|
+
data
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
# Create a deposit withholding
|
|
398
|
+
# Withholds a resident deposit by reallocating the funds from a liability account to an income account to cover an expense(s). <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Lease Ledger</span> - `View` `Edit` <span class=\"permissionBlock\">Accounting &gt; General Ledger Accounts</span> - `View`
|
|
399
|
+
# @param lease_id [Integer]
|
|
400
|
+
# @param lease_ledger_deposit_withholding_post_message [LeaseLedgerDepositWithholdingPostMessage]
|
|
401
|
+
# @param [Hash] opts the optional parameters
|
|
402
|
+
# @return [Array<(LeaseTransactionMessage, Integer, Hash)>] LeaseTransactionMessage data, response status code and response headers
|
|
403
|
+
def create_lease_ledger_deposit_withholding_with_http_info(lease_id, lease_ledger_deposit_withholding_post_message, opts = {})
|
|
404
|
+
if @api_client.config.debugging
|
|
405
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.create_lease_ledger_deposit_withholding ...'
|
|
406
|
+
end
|
|
407
|
+
# verify the required parameter 'lease_id' is set
|
|
408
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
409
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.create_lease_ledger_deposit_withholding"
|
|
410
|
+
end
|
|
411
|
+
# verify the required parameter 'lease_ledger_deposit_withholding_post_message' is set
|
|
412
|
+
if @api_client.config.client_side_validation && lease_ledger_deposit_withholding_post_message.nil?
|
|
413
|
+
fail ArgumentError, "Missing the required parameter 'lease_ledger_deposit_withholding_post_message' when calling LeasesApi.create_lease_ledger_deposit_withholding"
|
|
414
|
+
end
|
|
415
|
+
# resource path
|
|
416
|
+
local_var_path = '/v1/leases/{leaseId}/applieddeposits'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
417
|
+
|
|
418
|
+
# query parameters
|
|
419
|
+
query_params = opts[:query_params] || {}
|
|
420
|
+
|
|
421
|
+
# header parameters
|
|
422
|
+
header_params = opts[:header_params] || {}
|
|
423
|
+
# HTTP header 'Accept' (if needed)
|
|
424
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
425
|
+
# HTTP header 'Content-Type'
|
|
426
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
427
|
+
if !content_type.nil?
|
|
428
|
+
header_params['Content-Type'] = content_type
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
# form parameters
|
|
432
|
+
form_params = opts[:form_params] || {}
|
|
433
|
+
|
|
434
|
+
# http body (model)
|
|
435
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(lease_ledger_deposit_withholding_post_message)
|
|
436
|
+
|
|
437
|
+
# return_type
|
|
438
|
+
return_type = opts[:debug_return_type] || 'LeaseTransactionMessage'
|
|
439
|
+
|
|
440
|
+
# auth_names
|
|
441
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
442
|
+
|
|
443
|
+
new_options = opts.merge(
|
|
444
|
+
:operation => :"LeasesApi.create_lease_ledger_deposit_withholding",
|
|
445
|
+
:header_params => header_params,
|
|
446
|
+
:query_params => query_params,
|
|
447
|
+
:form_params => form_params,
|
|
448
|
+
:body => post_body,
|
|
449
|
+
:auth_names => auth_names,
|
|
450
|
+
:return_type => return_type
|
|
451
|
+
)
|
|
452
|
+
|
|
453
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
454
|
+
if @api_client.config.debugging
|
|
455
|
+
@api_client.config.logger.debug "API called: LeasesApi#create_lease_ledger_deposit_withholding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
456
|
+
end
|
|
457
|
+
return data, status_code, headers
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
# Create a refund
|
|
461
|
+
# Creates a refund. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > Bank Accounts</span> - `View` `Edit`
|
|
462
|
+
# @param lease_id [Integer]
|
|
463
|
+
# @param lease_ledger_refund_post_message [LeaseLedgerRefundPostMessage]
|
|
464
|
+
# @param [Hash] opts the optional parameters
|
|
465
|
+
# @return [LeaseLedgerRefundMessage]
|
|
466
|
+
def create_lease_ledger_refund(lease_id, lease_ledger_refund_post_message, opts = {})
|
|
467
|
+
data, _status_code, _headers = create_lease_ledger_refund_with_http_info(lease_id, lease_ledger_refund_post_message, opts)
|
|
468
|
+
data
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
# Create a refund
|
|
472
|
+
# Creates a refund. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; Bank Accounts</span> - `View` `Edit`
|
|
473
|
+
# @param lease_id [Integer]
|
|
474
|
+
# @param lease_ledger_refund_post_message [LeaseLedgerRefundPostMessage]
|
|
475
|
+
# @param [Hash] opts the optional parameters
|
|
476
|
+
# @return [Array<(LeaseLedgerRefundMessage, Integer, Hash)>] LeaseLedgerRefundMessage data, response status code and response headers
|
|
477
|
+
def create_lease_ledger_refund_with_http_info(lease_id, lease_ledger_refund_post_message, opts = {})
|
|
478
|
+
if @api_client.config.debugging
|
|
479
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.create_lease_ledger_refund ...'
|
|
480
|
+
end
|
|
481
|
+
# verify the required parameter 'lease_id' is set
|
|
482
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
483
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.create_lease_ledger_refund"
|
|
484
|
+
end
|
|
485
|
+
# verify the required parameter 'lease_ledger_refund_post_message' is set
|
|
486
|
+
if @api_client.config.client_side_validation && lease_ledger_refund_post_message.nil?
|
|
487
|
+
fail ArgumentError, "Missing the required parameter 'lease_ledger_refund_post_message' when calling LeasesApi.create_lease_ledger_refund"
|
|
488
|
+
end
|
|
489
|
+
# resource path
|
|
490
|
+
local_var_path = '/v1/leases/{leaseId}/refunds'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
491
|
+
|
|
492
|
+
# query parameters
|
|
493
|
+
query_params = opts[:query_params] || {}
|
|
494
|
+
|
|
495
|
+
# header parameters
|
|
496
|
+
header_params = opts[:header_params] || {}
|
|
497
|
+
# HTTP header 'Accept' (if needed)
|
|
498
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
499
|
+
# HTTP header 'Content-Type'
|
|
500
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
501
|
+
if !content_type.nil?
|
|
502
|
+
header_params['Content-Type'] = content_type
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
# form parameters
|
|
506
|
+
form_params = opts[:form_params] || {}
|
|
507
|
+
|
|
508
|
+
# http body (model)
|
|
509
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(lease_ledger_refund_post_message)
|
|
510
|
+
|
|
511
|
+
# return_type
|
|
512
|
+
return_type = opts[:debug_return_type] || 'LeaseLedgerRefundMessage'
|
|
513
|
+
|
|
514
|
+
# auth_names
|
|
515
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
516
|
+
|
|
517
|
+
new_options = opts.merge(
|
|
518
|
+
:operation => :"LeasesApi.create_lease_ledger_refund",
|
|
519
|
+
:header_params => header_params,
|
|
520
|
+
:query_params => query_params,
|
|
521
|
+
:form_params => form_params,
|
|
522
|
+
:body => post_body,
|
|
523
|
+
:auth_names => auth_names,
|
|
524
|
+
:return_type => return_type
|
|
525
|
+
)
|
|
526
|
+
|
|
527
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
528
|
+
if @api_client.config.debugging
|
|
529
|
+
@api_client.config.logger.debug "API called: LeasesApi#create_lease_ledger_refund\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
530
|
+
end
|
|
531
|
+
return data, status_code, headers
|
|
532
|
+
end
|
|
533
|
+
|
|
534
|
+
# Create a note
|
|
535
|
+
# Creates a lease note. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Leases</span> - `View` `Edit`
|
|
536
|
+
# @param lease_id [Integer]
|
|
537
|
+
# @param note_post_message [NotePostMessage]
|
|
538
|
+
# @param [Hash] opts the optional parameters
|
|
539
|
+
# @return [NoteMessage]
|
|
540
|
+
def create_lease_note(lease_id, note_post_message, opts = {})
|
|
541
|
+
data, _status_code, _headers = create_lease_note_with_http_info(lease_id, note_post_message, opts)
|
|
542
|
+
data
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
# Create a note
|
|
546
|
+
# Creates a lease note. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Leases</span> - `View` `Edit`
|
|
547
|
+
# @param lease_id [Integer]
|
|
548
|
+
# @param note_post_message [NotePostMessage]
|
|
549
|
+
# @param [Hash] opts the optional parameters
|
|
550
|
+
# @return [Array<(NoteMessage, Integer, Hash)>] NoteMessage data, response status code and response headers
|
|
551
|
+
def create_lease_note_with_http_info(lease_id, note_post_message, opts = {})
|
|
552
|
+
if @api_client.config.debugging
|
|
553
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.create_lease_note ...'
|
|
554
|
+
end
|
|
555
|
+
# verify the required parameter 'lease_id' is set
|
|
556
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
557
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.create_lease_note"
|
|
558
|
+
end
|
|
559
|
+
# verify the required parameter 'note_post_message' is set
|
|
560
|
+
if @api_client.config.client_side_validation && note_post_message.nil?
|
|
561
|
+
fail ArgumentError, "Missing the required parameter 'note_post_message' when calling LeasesApi.create_lease_note"
|
|
562
|
+
end
|
|
563
|
+
# resource path
|
|
564
|
+
local_var_path = '/v1/leases/{leaseId}/notes'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
565
|
+
|
|
566
|
+
# query parameters
|
|
567
|
+
query_params = opts[:query_params] || {}
|
|
568
|
+
|
|
569
|
+
# header parameters
|
|
570
|
+
header_params = opts[:header_params] || {}
|
|
571
|
+
# HTTP header 'Accept' (if needed)
|
|
572
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
573
|
+
# HTTP header 'Content-Type'
|
|
574
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
575
|
+
if !content_type.nil?
|
|
576
|
+
header_params['Content-Type'] = content_type
|
|
577
|
+
end
|
|
578
|
+
|
|
579
|
+
# form parameters
|
|
580
|
+
form_params = opts[:form_params] || {}
|
|
581
|
+
|
|
582
|
+
# http body (model)
|
|
583
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(note_post_message)
|
|
584
|
+
|
|
585
|
+
# return_type
|
|
586
|
+
return_type = opts[:debug_return_type] || 'NoteMessage'
|
|
587
|
+
|
|
588
|
+
# auth_names
|
|
589
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
590
|
+
|
|
591
|
+
new_options = opts.merge(
|
|
592
|
+
:operation => :"LeasesApi.create_lease_note",
|
|
593
|
+
:header_params => header_params,
|
|
594
|
+
:query_params => query_params,
|
|
595
|
+
:form_params => form_params,
|
|
596
|
+
:body => post_body,
|
|
597
|
+
:auth_names => auth_names,
|
|
598
|
+
:return_type => return_type
|
|
599
|
+
)
|
|
600
|
+
|
|
601
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
602
|
+
if @api_client.config.debugging
|
|
603
|
+
@api_client.config.logger.debug "API called: LeasesApi#create_lease_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
604
|
+
end
|
|
605
|
+
return data, status_code, headers
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
# Create a recurring payment
|
|
609
|
+
# Creates a recurring payment that will post automatically on the specified lease ledger. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Lease Transactions</span> - `View` `Edit`
|
|
610
|
+
# @param lease_id [Integer]
|
|
611
|
+
# @param payment_recurring_transaction_post_message [PaymentRecurringTransactionPostMessage]
|
|
612
|
+
# @param [Hash] opts the optional parameters
|
|
613
|
+
# @return [LeaseRecurringPaymentMessage]
|
|
614
|
+
def create_lease_recurring_payment(lease_id, payment_recurring_transaction_post_message, opts = {})
|
|
615
|
+
data, _status_code, _headers = create_lease_recurring_payment_with_http_info(lease_id, payment_recurring_transaction_post_message, opts)
|
|
616
|
+
data
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
# Create a recurring payment
|
|
620
|
+
# Creates a recurring payment that will post automatically on the specified lease ledger. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Lease Transactions</span> - `View` `Edit`
|
|
621
|
+
# @param lease_id [Integer]
|
|
622
|
+
# @param payment_recurring_transaction_post_message [PaymentRecurringTransactionPostMessage]
|
|
623
|
+
# @param [Hash] opts the optional parameters
|
|
624
|
+
# @return [Array<(LeaseRecurringPaymentMessage, Integer, Hash)>] LeaseRecurringPaymentMessage data, response status code and response headers
|
|
625
|
+
def create_lease_recurring_payment_with_http_info(lease_id, payment_recurring_transaction_post_message, opts = {})
|
|
626
|
+
if @api_client.config.debugging
|
|
627
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.create_lease_recurring_payment ...'
|
|
628
|
+
end
|
|
629
|
+
# verify the required parameter 'lease_id' is set
|
|
630
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
631
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.create_lease_recurring_payment"
|
|
632
|
+
end
|
|
633
|
+
# verify the required parameter 'payment_recurring_transaction_post_message' is set
|
|
634
|
+
if @api_client.config.client_side_validation && payment_recurring_transaction_post_message.nil?
|
|
635
|
+
fail ArgumentError, "Missing the required parameter 'payment_recurring_transaction_post_message' when calling LeasesApi.create_lease_recurring_payment"
|
|
636
|
+
end
|
|
637
|
+
# resource path
|
|
638
|
+
local_var_path = '/v1/leases/{leaseId}/recurringpayments'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
639
|
+
|
|
640
|
+
# query parameters
|
|
641
|
+
query_params = opts[:query_params] || {}
|
|
642
|
+
|
|
643
|
+
# header parameters
|
|
644
|
+
header_params = opts[:header_params] || {}
|
|
645
|
+
# HTTP header 'Accept' (if needed)
|
|
646
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
647
|
+
# HTTP header 'Content-Type'
|
|
648
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
649
|
+
if !content_type.nil?
|
|
650
|
+
header_params['Content-Type'] = content_type
|
|
651
|
+
end
|
|
652
|
+
|
|
653
|
+
# form parameters
|
|
654
|
+
form_params = opts[:form_params] || {}
|
|
655
|
+
|
|
656
|
+
# http body (model)
|
|
657
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(payment_recurring_transaction_post_message)
|
|
658
|
+
|
|
659
|
+
# return_type
|
|
660
|
+
return_type = opts[:debug_return_type] || 'LeaseRecurringPaymentMessage'
|
|
661
|
+
|
|
662
|
+
# auth_names
|
|
663
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
664
|
+
|
|
665
|
+
new_options = opts.merge(
|
|
666
|
+
:operation => :"LeasesApi.create_lease_recurring_payment",
|
|
667
|
+
:header_params => header_params,
|
|
668
|
+
:query_params => query_params,
|
|
669
|
+
:form_params => form_params,
|
|
670
|
+
:body => post_body,
|
|
671
|
+
:auth_names => auth_names,
|
|
672
|
+
:return_type => return_type
|
|
673
|
+
)
|
|
674
|
+
|
|
675
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
676
|
+
if @api_client.config.debugging
|
|
677
|
+
@api_client.config.logger.debug "API called: LeasesApi#create_lease_recurring_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
678
|
+
end
|
|
679
|
+
return data, status_code, headers
|
|
680
|
+
end
|
|
681
|
+
|
|
682
|
+
# Create a payment reversal
|
|
683
|
+
# Reverses a lease ledger payment. Note, this action can only be taken on a payment that has been deposited. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Lease transactions</span> - `View` `Edit` <br /><span class=\"permissionBlock\">Accounting > Bank Accounts</span> - `View` `Edit`
|
|
684
|
+
# @param lease_id [Integer] The lease unique identifier.
|
|
685
|
+
# @param lease_ledger_reverse_payment_post_message [LeaseLedgerReversePaymentPostMessage]
|
|
686
|
+
# @param [Hash] opts the optional parameters
|
|
687
|
+
# @return [LeaseTransactionMessage]
|
|
688
|
+
def create_lease_reverse_payment(lease_id, lease_ledger_reverse_payment_post_message, opts = {})
|
|
689
|
+
data, _status_code, _headers = create_lease_reverse_payment_with_http_info(lease_id, lease_ledger_reverse_payment_post_message, opts)
|
|
690
|
+
data
|
|
691
|
+
end
|
|
692
|
+
|
|
693
|
+
# Create a payment reversal
|
|
694
|
+
# Reverses a lease ledger payment. Note, this action can only be taken on a payment that has been deposited. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Lease transactions</span> - `View` `Edit` <br /><span class=\"permissionBlock\">Accounting &gt; Bank Accounts</span> - `View` `Edit`
|
|
695
|
+
# @param lease_id [Integer] The lease unique identifier.
|
|
696
|
+
# @param lease_ledger_reverse_payment_post_message [LeaseLedgerReversePaymentPostMessage]
|
|
697
|
+
# @param [Hash] opts the optional parameters
|
|
698
|
+
# @return [Array<(LeaseTransactionMessage, Integer, Hash)>] LeaseTransactionMessage data, response status code and response headers
|
|
699
|
+
def create_lease_reverse_payment_with_http_info(lease_id, lease_ledger_reverse_payment_post_message, opts = {})
|
|
700
|
+
if @api_client.config.debugging
|
|
701
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.create_lease_reverse_payment ...'
|
|
702
|
+
end
|
|
703
|
+
# verify the required parameter 'lease_id' is set
|
|
704
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
705
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.create_lease_reverse_payment"
|
|
706
|
+
end
|
|
707
|
+
# verify the required parameter 'lease_ledger_reverse_payment_post_message' is set
|
|
708
|
+
if @api_client.config.client_side_validation && lease_ledger_reverse_payment_post_message.nil?
|
|
709
|
+
fail ArgumentError, "Missing the required parameter 'lease_ledger_reverse_payment_post_message' when calling LeasesApi.create_lease_reverse_payment"
|
|
710
|
+
end
|
|
711
|
+
# resource path
|
|
712
|
+
local_var_path = '/v1/leases/{leaseId}/reversepayments'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
713
|
+
|
|
714
|
+
# query parameters
|
|
715
|
+
query_params = opts[:query_params] || {}
|
|
716
|
+
|
|
717
|
+
# header parameters
|
|
718
|
+
header_params = opts[:header_params] || {}
|
|
719
|
+
# HTTP header 'Accept' (if needed)
|
|
720
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
721
|
+
# HTTP header 'Content-Type'
|
|
722
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
723
|
+
if !content_type.nil?
|
|
724
|
+
header_params['Content-Type'] = content_type
|
|
725
|
+
end
|
|
726
|
+
|
|
727
|
+
# form parameters
|
|
728
|
+
form_params = opts[:form_params] || {}
|
|
729
|
+
|
|
730
|
+
# http body (model)
|
|
731
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(lease_ledger_reverse_payment_post_message)
|
|
732
|
+
|
|
733
|
+
# return_type
|
|
734
|
+
return_type = opts[:debug_return_type] || 'LeaseTransactionMessage'
|
|
735
|
+
|
|
736
|
+
# auth_names
|
|
737
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
738
|
+
|
|
739
|
+
new_options = opts.merge(
|
|
740
|
+
:operation => :"LeasesApi.create_lease_reverse_payment",
|
|
741
|
+
:header_params => header_params,
|
|
742
|
+
:query_params => query_params,
|
|
743
|
+
:form_params => form_params,
|
|
744
|
+
:body => post_body,
|
|
745
|
+
:auth_names => auth_names,
|
|
746
|
+
:return_type => return_type
|
|
747
|
+
)
|
|
748
|
+
|
|
749
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
750
|
+
if @api_client.config.debugging
|
|
751
|
+
@api_client.config.logger.debug "API called: LeasesApi#create_lease_reverse_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
752
|
+
end
|
|
753
|
+
return data, status_code, headers
|
|
754
|
+
end
|
|
755
|
+
|
|
756
|
+
# Create a move out
|
|
757
|
+
# Creates move out data for a single tenant on a given lease. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Leases</span> - `View` `Edit` <br /><span class=\"permissionBlock\">Rentals > Tenants</span> - `View` `Edit`
|
|
758
|
+
# @param lease_id [Integer]
|
|
759
|
+
# @param lease_move_out_data_post_message [LeaseMoveOutDataPostMessage]
|
|
760
|
+
# @param [Hash] opts the optional parameters
|
|
761
|
+
# @return [LeaseMoveOutDataMessage]
|
|
762
|
+
def create_move_out_data(lease_id, lease_move_out_data_post_message, opts = {})
|
|
763
|
+
data, _status_code, _headers = create_move_out_data_with_http_info(lease_id, lease_move_out_data_post_message, opts)
|
|
764
|
+
data
|
|
765
|
+
end
|
|
766
|
+
|
|
767
|
+
# Create a move out
|
|
768
|
+
# Creates move out data for a single tenant on a given lease. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Leases</span> - `View` `Edit` <br /><span class=\"permissionBlock\">Rentals &gt; Tenants</span> - `View` `Edit`
|
|
769
|
+
# @param lease_id [Integer]
|
|
770
|
+
# @param lease_move_out_data_post_message [LeaseMoveOutDataPostMessage]
|
|
771
|
+
# @param [Hash] opts the optional parameters
|
|
772
|
+
# @return [Array<(LeaseMoveOutDataMessage, Integer, Hash)>] LeaseMoveOutDataMessage data, response status code and response headers
|
|
773
|
+
def create_move_out_data_with_http_info(lease_id, lease_move_out_data_post_message, opts = {})
|
|
774
|
+
if @api_client.config.debugging
|
|
775
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.create_move_out_data ...'
|
|
776
|
+
end
|
|
777
|
+
# verify the required parameter 'lease_id' is set
|
|
778
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
779
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.create_move_out_data"
|
|
780
|
+
end
|
|
781
|
+
# verify the required parameter 'lease_move_out_data_post_message' is set
|
|
782
|
+
if @api_client.config.client_side_validation && lease_move_out_data_post_message.nil?
|
|
783
|
+
fail ArgumentError, "Missing the required parameter 'lease_move_out_data_post_message' when calling LeasesApi.create_move_out_data"
|
|
784
|
+
end
|
|
785
|
+
# resource path
|
|
786
|
+
local_var_path = '/v1/leases/{leaseId}/moveouts'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
787
|
+
|
|
788
|
+
# query parameters
|
|
789
|
+
query_params = opts[:query_params] || {}
|
|
790
|
+
|
|
791
|
+
# header parameters
|
|
792
|
+
header_params = opts[:header_params] || {}
|
|
793
|
+
# HTTP header 'Accept' (if needed)
|
|
794
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
795
|
+
# HTTP header 'Content-Type'
|
|
796
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
797
|
+
if !content_type.nil?
|
|
798
|
+
header_params['Content-Type'] = content_type
|
|
799
|
+
end
|
|
800
|
+
|
|
801
|
+
# form parameters
|
|
802
|
+
form_params = opts[:form_params] || {}
|
|
803
|
+
|
|
804
|
+
# http body (model)
|
|
805
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(lease_move_out_data_post_message)
|
|
806
|
+
|
|
807
|
+
# return_type
|
|
808
|
+
return_type = opts[:debug_return_type] || 'LeaseMoveOutDataMessage'
|
|
809
|
+
|
|
810
|
+
# auth_names
|
|
811
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
812
|
+
|
|
813
|
+
new_options = opts.merge(
|
|
814
|
+
:operation => :"LeasesApi.create_move_out_data",
|
|
815
|
+
:header_params => header_params,
|
|
816
|
+
:query_params => query_params,
|
|
817
|
+
:form_params => form_params,
|
|
818
|
+
:body => post_body,
|
|
819
|
+
:auth_names => auth_names,
|
|
820
|
+
:return_type => return_type
|
|
821
|
+
)
|
|
822
|
+
|
|
823
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
824
|
+
if @api_client.config.debugging
|
|
825
|
+
@api_client.config.logger.debug "API called: LeasesApi#create_move_out_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
826
|
+
end
|
|
827
|
+
return data, status_code, headers
|
|
828
|
+
end
|
|
829
|
+
|
|
830
|
+
# Create a payment
|
|
831
|
+
# Creates a lease ledger payment. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Lease transactions</span> - `View` `Edit`
|
|
832
|
+
# @param lease_id [Integer] The lease unique identifier.
|
|
833
|
+
# @param lease_ledger_payment_post_message [LeaseLedgerPaymentPostMessage]
|
|
834
|
+
# @param [Hash] opts the optional parameters
|
|
835
|
+
# @return [LeaseTransactionMessage]
|
|
836
|
+
def create_payment(lease_id, lease_ledger_payment_post_message, opts = {})
|
|
837
|
+
data, _status_code, _headers = create_payment_with_http_info(lease_id, lease_ledger_payment_post_message, opts)
|
|
838
|
+
data
|
|
839
|
+
end
|
|
840
|
+
|
|
841
|
+
# Create a payment
|
|
842
|
+
# Creates a lease ledger payment. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Lease transactions</span> - `View` `Edit`
|
|
843
|
+
# @param lease_id [Integer] The lease unique identifier.
|
|
844
|
+
# @param lease_ledger_payment_post_message [LeaseLedgerPaymentPostMessage]
|
|
845
|
+
# @param [Hash] opts the optional parameters
|
|
846
|
+
# @return [Array<(LeaseTransactionMessage, Integer, Hash)>] LeaseTransactionMessage data, response status code and response headers
|
|
847
|
+
def create_payment_with_http_info(lease_id, lease_ledger_payment_post_message, opts = {})
|
|
848
|
+
if @api_client.config.debugging
|
|
849
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.create_payment ...'
|
|
850
|
+
end
|
|
851
|
+
# verify the required parameter 'lease_id' is set
|
|
852
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
853
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.create_payment"
|
|
854
|
+
end
|
|
855
|
+
# verify the required parameter 'lease_ledger_payment_post_message' is set
|
|
856
|
+
if @api_client.config.client_side_validation && lease_ledger_payment_post_message.nil?
|
|
857
|
+
fail ArgumentError, "Missing the required parameter 'lease_ledger_payment_post_message' when calling LeasesApi.create_payment"
|
|
858
|
+
end
|
|
859
|
+
# resource path
|
|
860
|
+
local_var_path = '/v1/leases/{leaseId}/payments'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
861
|
+
|
|
862
|
+
# query parameters
|
|
863
|
+
query_params = opts[:query_params] || {}
|
|
864
|
+
|
|
865
|
+
# header parameters
|
|
866
|
+
header_params = opts[:header_params] || {}
|
|
867
|
+
# HTTP header 'Accept' (if needed)
|
|
868
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
869
|
+
# HTTP header 'Content-Type'
|
|
870
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
871
|
+
if !content_type.nil?
|
|
872
|
+
header_params['Content-Type'] = content_type
|
|
873
|
+
end
|
|
874
|
+
|
|
875
|
+
# form parameters
|
|
876
|
+
form_params = opts[:form_params] || {}
|
|
877
|
+
|
|
878
|
+
# http body (model)
|
|
879
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(lease_ledger_payment_post_message)
|
|
880
|
+
|
|
881
|
+
# return_type
|
|
882
|
+
return_type = opts[:debug_return_type] || 'LeaseTransactionMessage'
|
|
883
|
+
|
|
884
|
+
# auth_names
|
|
885
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
886
|
+
|
|
887
|
+
new_options = opts.merge(
|
|
888
|
+
:operation => :"LeasesApi.create_payment",
|
|
889
|
+
:header_params => header_params,
|
|
890
|
+
:query_params => query_params,
|
|
891
|
+
:form_params => form_params,
|
|
892
|
+
:body => post_body,
|
|
893
|
+
:auth_names => auth_names,
|
|
894
|
+
:return_type => return_type
|
|
895
|
+
)
|
|
896
|
+
|
|
897
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
898
|
+
if @api_client.config.debugging
|
|
899
|
+
@api_client.config.logger.debug "API called: LeasesApi#create_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
900
|
+
end
|
|
901
|
+
return data, status_code, headers
|
|
902
|
+
end
|
|
903
|
+
|
|
904
|
+
# Retrieve a lease
|
|
905
|
+
# Retrieves a specific lease. <br /><br /><span class=\"permissionBlock\">Rentals > Leases</span> - `View`
|
|
906
|
+
# @param lease_id [Integer] The lease identifier.
|
|
907
|
+
# @param [Hash] opts the optional parameters
|
|
908
|
+
# @return [LeaseMessage]
|
|
909
|
+
def get_lease_by_id(lease_id, opts = {})
|
|
910
|
+
data, _status_code, _headers = get_lease_by_id_with_http_info(lease_id, opts)
|
|
911
|
+
data
|
|
912
|
+
end
|
|
913
|
+
|
|
914
|
+
# Retrieve a lease
|
|
915
|
+
# Retrieves a specific lease. <br /><br /><span class=\"permissionBlock\">Rentals &gt; Leases</span> - `View`
|
|
916
|
+
# @param lease_id [Integer] The lease identifier.
|
|
917
|
+
# @param [Hash] opts the optional parameters
|
|
918
|
+
# @return [Array<(LeaseMessage, Integer, Hash)>] LeaseMessage data, response status code and response headers
|
|
919
|
+
def get_lease_by_id_with_http_info(lease_id, opts = {})
|
|
920
|
+
if @api_client.config.debugging
|
|
921
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_by_id ...'
|
|
922
|
+
end
|
|
923
|
+
# verify the required parameter 'lease_id' is set
|
|
924
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
925
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_lease_by_id"
|
|
926
|
+
end
|
|
927
|
+
# resource path
|
|
928
|
+
local_var_path = '/v1/leases/{leaseId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
929
|
+
|
|
930
|
+
# query parameters
|
|
931
|
+
query_params = opts[:query_params] || {}
|
|
932
|
+
|
|
933
|
+
# header parameters
|
|
934
|
+
header_params = opts[:header_params] || {}
|
|
935
|
+
# HTTP header 'Accept' (if needed)
|
|
936
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
937
|
+
|
|
938
|
+
# form parameters
|
|
939
|
+
form_params = opts[:form_params] || {}
|
|
940
|
+
|
|
941
|
+
# http body (model)
|
|
942
|
+
post_body = opts[:debug_body]
|
|
943
|
+
|
|
944
|
+
# return_type
|
|
945
|
+
return_type = opts[:debug_return_type] || 'LeaseMessage'
|
|
946
|
+
|
|
947
|
+
# auth_names
|
|
948
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
949
|
+
|
|
950
|
+
new_options = opts.merge(
|
|
951
|
+
:operation => :"LeasesApi.get_lease_by_id",
|
|
952
|
+
:header_params => header_params,
|
|
953
|
+
:query_params => query_params,
|
|
954
|
+
:form_params => form_params,
|
|
955
|
+
:body => post_body,
|
|
956
|
+
:auth_names => auth_names,
|
|
957
|
+
:return_type => return_type
|
|
958
|
+
)
|
|
959
|
+
|
|
960
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
961
|
+
if @api_client.config.debugging
|
|
962
|
+
@api_client.config.logger.debug "API called: LeasesApi#get_lease_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
963
|
+
end
|
|
964
|
+
return data, status_code, headers
|
|
965
|
+
end
|
|
966
|
+
|
|
967
|
+
# Retrieve a recurring charge
|
|
968
|
+
# Retrieves a recurring charge. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Lease transactions</span> - `View`
|
|
969
|
+
# @param lease_id [Integer]
|
|
970
|
+
# @param transaction_id [Integer]
|
|
971
|
+
# @param [Hash] opts the optional parameters
|
|
972
|
+
# @return [LeaseChargeRecurringTransactionMessage]
|
|
973
|
+
def get_lease_charge_recurring_transaction_by_id(lease_id, transaction_id, opts = {})
|
|
974
|
+
data, _status_code, _headers = get_lease_charge_recurring_transaction_by_id_with_http_info(lease_id, transaction_id, opts)
|
|
975
|
+
data
|
|
976
|
+
end
|
|
977
|
+
|
|
978
|
+
# Retrieve a recurring charge
|
|
979
|
+
# Retrieves a recurring charge. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Lease transactions</span> - `View`
|
|
980
|
+
# @param lease_id [Integer]
|
|
981
|
+
# @param transaction_id [Integer]
|
|
982
|
+
# @param [Hash] opts the optional parameters
|
|
983
|
+
# @return [Array<(LeaseChargeRecurringTransactionMessage, Integer, Hash)>] LeaseChargeRecurringTransactionMessage data, response status code and response headers
|
|
984
|
+
def get_lease_charge_recurring_transaction_by_id_with_http_info(lease_id, transaction_id, opts = {})
|
|
985
|
+
if @api_client.config.debugging
|
|
986
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_charge_recurring_transaction_by_id ...'
|
|
987
|
+
end
|
|
988
|
+
# verify the required parameter 'lease_id' is set
|
|
989
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
990
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_lease_charge_recurring_transaction_by_id"
|
|
991
|
+
end
|
|
992
|
+
# verify the required parameter 'transaction_id' is set
|
|
993
|
+
if @api_client.config.client_side_validation && transaction_id.nil?
|
|
994
|
+
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling LeasesApi.get_lease_charge_recurring_transaction_by_id"
|
|
995
|
+
end
|
|
996
|
+
# resource path
|
|
997
|
+
local_var_path = '/v1/leases/{leaseId}/recurringcharges/{transactionId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'transactionId' + '}', CGI.escape(transaction_id.to_s))
|
|
998
|
+
|
|
999
|
+
# query parameters
|
|
1000
|
+
query_params = opts[:query_params] || {}
|
|
1001
|
+
|
|
1002
|
+
# header parameters
|
|
1003
|
+
header_params = opts[:header_params] || {}
|
|
1004
|
+
# HTTP header 'Accept' (if needed)
|
|
1005
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1006
|
+
|
|
1007
|
+
# form parameters
|
|
1008
|
+
form_params = opts[:form_params] || {}
|
|
1009
|
+
|
|
1010
|
+
# http body (model)
|
|
1011
|
+
post_body = opts[:debug_body]
|
|
1012
|
+
|
|
1013
|
+
# return_type
|
|
1014
|
+
return_type = opts[:debug_return_type] || 'LeaseChargeRecurringTransactionMessage'
|
|
1015
|
+
|
|
1016
|
+
# auth_names
|
|
1017
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
1018
|
+
|
|
1019
|
+
new_options = opts.merge(
|
|
1020
|
+
:operation => :"LeasesApi.get_lease_charge_recurring_transaction_by_id",
|
|
1021
|
+
:header_params => header_params,
|
|
1022
|
+
:query_params => query_params,
|
|
1023
|
+
:form_params => form_params,
|
|
1024
|
+
:body => post_body,
|
|
1025
|
+
:auth_names => auth_names,
|
|
1026
|
+
:return_type => return_type
|
|
1027
|
+
)
|
|
1028
|
+
|
|
1029
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1030
|
+
if @api_client.config.debugging
|
|
1031
|
+
@api_client.config.logger.debug "API called: LeasesApi#get_lease_charge_recurring_transaction_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1032
|
+
end
|
|
1033
|
+
return data, status_code, headers
|
|
1034
|
+
end
|
|
1035
|
+
|
|
1036
|
+
# Retrieve a refund
|
|
1037
|
+
# Retrieves a refund. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting > Bank Accounts</span> - `View`
|
|
1038
|
+
# @param lease_id [Integer]
|
|
1039
|
+
# @param refund_id [Integer]
|
|
1040
|
+
# @param [Hash] opts the optional parameters
|
|
1041
|
+
# @return [LeaseLedgerRefundMessage]
|
|
1042
|
+
def get_lease_ledger_refund_by_id(lease_id, refund_id, opts = {})
|
|
1043
|
+
data, _status_code, _headers = get_lease_ledger_refund_by_id_with_http_info(lease_id, refund_id, opts)
|
|
1044
|
+
data
|
|
1045
|
+
end
|
|
1046
|
+
|
|
1047
|
+
# Retrieve a refund
|
|
1048
|
+
# Retrieves a refund. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Accounting &gt; Bank Accounts</span> - `View`
|
|
1049
|
+
# @param lease_id [Integer]
|
|
1050
|
+
# @param refund_id [Integer]
|
|
1051
|
+
# @param [Hash] opts the optional parameters
|
|
1052
|
+
# @return [Array<(LeaseLedgerRefundMessage, Integer, Hash)>] LeaseLedgerRefundMessage data, response status code and response headers
|
|
1053
|
+
def get_lease_ledger_refund_by_id_with_http_info(lease_id, refund_id, opts = {})
|
|
1054
|
+
if @api_client.config.debugging
|
|
1055
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_ledger_refund_by_id ...'
|
|
1056
|
+
end
|
|
1057
|
+
# verify the required parameter 'lease_id' is set
|
|
1058
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
1059
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_lease_ledger_refund_by_id"
|
|
1060
|
+
end
|
|
1061
|
+
# verify the required parameter 'refund_id' is set
|
|
1062
|
+
if @api_client.config.client_side_validation && refund_id.nil?
|
|
1063
|
+
fail ArgumentError, "Missing the required parameter 'refund_id' when calling LeasesApi.get_lease_ledger_refund_by_id"
|
|
1064
|
+
end
|
|
1065
|
+
# resource path
|
|
1066
|
+
local_var_path = '/v1/leases/{leaseId}/refunds/{refundId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'refundId' + '}', CGI.escape(refund_id.to_s))
|
|
1067
|
+
|
|
1068
|
+
# query parameters
|
|
1069
|
+
query_params = opts[:query_params] || {}
|
|
1070
|
+
|
|
1071
|
+
# header parameters
|
|
1072
|
+
header_params = opts[:header_params] || {}
|
|
1073
|
+
# HTTP header 'Accept' (if needed)
|
|
1074
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1075
|
+
|
|
1076
|
+
# form parameters
|
|
1077
|
+
form_params = opts[:form_params] || {}
|
|
1078
|
+
|
|
1079
|
+
# http body (model)
|
|
1080
|
+
post_body = opts[:debug_body]
|
|
1081
|
+
|
|
1082
|
+
# return_type
|
|
1083
|
+
return_type = opts[:debug_return_type] || 'LeaseLedgerRefundMessage'
|
|
1084
|
+
|
|
1085
|
+
# auth_names
|
|
1086
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
1087
|
+
|
|
1088
|
+
new_options = opts.merge(
|
|
1089
|
+
:operation => :"LeasesApi.get_lease_ledger_refund_by_id",
|
|
1090
|
+
:header_params => header_params,
|
|
1091
|
+
:query_params => query_params,
|
|
1092
|
+
:form_params => form_params,
|
|
1093
|
+
:body => post_body,
|
|
1094
|
+
:auth_names => auth_names,
|
|
1095
|
+
:return_type => return_type
|
|
1096
|
+
)
|
|
1097
|
+
|
|
1098
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1099
|
+
if @api_client.config.debugging
|
|
1100
|
+
@api_client.config.logger.debug "API called: LeasesApi#get_lease_ledger_refund_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1101
|
+
end
|
|
1102
|
+
return data, status_code, headers
|
|
1103
|
+
end
|
|
1104
|
+
|
|
1105
|
+
# Retrieve a lease transaction
|
|
1106
|
+
# Retrieves a specific lease transaction. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Lease Transactions</span> - `View`
|
|
1107
|
+
# @param lease_id [Integer]
|
|
1108
|
+
# @param transaction_id [Integer]
|
|
1109
|
+
# @param [Hash] opts the optional parameters
|
|
1110
|
+
# @return [LeaseTransactionMessage]
|
|
1111
|
+
def get_lease_ledger_transaction_by_id(lease_id, transaction_id, opts = {})
|
|
1112
|
+
data, _status_code, _headers = get_lease_ledger_transaction_by_id_with_http_info(lease_id, transaction_id, opts)
|
|
1113
|
+
data
|
|
1114
|
+
end
|
|
1115
|
+
|
|
1116
|
+
# Retrieve a lease transaction
|
|
1117
|
+
# Retrieves a specific lease transaction. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Lease Transactions</span> - `View`
|
|
1118
|
+
# @param lease_id [Integer]
|
|
1119
|
+
# @param transaction_id [Integer]
|
|
1120
|
+
# @param [Hash] opts the optional parameters
|
|
1121
|
+
# @return [Array<(LeaseTransactionMessage, Integer, Hash)>] LeaseTransactionMessage data, response status code and response headers
|
|
1122
|
+
def get_lease_ledger_transaction_by_id_with_http_info(lease_id, transaction_id, opts = {})
|
|
1123
|
+
if @api_client.config.debugging
|
|
1124
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_ledger_transaction_by_id ...'
|
|
1125
|
+
end
|
|
1126
|
+
# verify the required parameter 'lease_id' is set
|
|
1127
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
1128
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_lease_ledger_transaction_by_id"
|
|
1129
|
+
end
|
|
1130
|
+
# verify the required parameter 'transaction_id' is set
|
|
1131
|
+
if @api_client.config.client_side_validation && transaction_id.nil?
|
|
1132
|
+
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling LeasesApi.get_lease_ledger_transaction_by_id"
|
|
1133
|
+
end
|
|
1134
|
+
# resource path
|
|
1135
|
+
local_var_path = '/v1/leases/{leaseId}/transactions/{transactionId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'transactionId' + '}', CGI.escape(transaction_id.to_s))
|
|
1136
|
+
|
|
1137
|
+
# query parameters
|
|
1138
|
+
query_params = opts[:query_params] || {}
|
|
1139
|
+
|
|
1140
|
+
# header parameters
|
|
1141
|
+
header_params = opts[:header_params] || {}
|
|
1142
|
+
# HTTP header 'Accept' (if needed)
|
|
1143
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1144
|
+
|
|
1145
|
+
# form parameters
|
|
1146
|
+
form_params = opts[:form_params] || {}
|
|
1147
|
+
|
|
1148
|
+
# http body (model)
|
|
1149
|
+
post_body = opts[:debug_body]
|
|
1150
|
+
|
|
1151
|
+
# return_type
|
|
1152
|
+
return_type = opts[:debug_return_type] || 'LeaseTransactionMessage'
|
|
1153
|
+
|
|
1154
|
+
# auth_names
|
|
1155
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
1156
|
+
|
|
1157
|
+
new_options = opts.merge(
|
|
1158
|
+
:operation => :"LeasesApi.get_lease_ledger_transaction_by_id",
|
|
1159
|
+
:header_params => header_params,
|
|
1160
|
+
:query_params => query_params,
|
|
1161
|
+
:form_params => form_params,
|
|
1162
|
+
:body => post_body,
|
|
1163
|
+
:auth_names => auth_names,
|
|
1164
|
+
:return_type => return_type
|
|
1165
|
+
)
|
|
1166
|
+
|
|
1167
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1168
|
+
if @api_client.config.debugging
|
|
1169
|
+
@api_client.config.logger.debug "API called: LeasesApi#get_lease_ledger_transaction_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1170
|
+
end
|
|
1171
|
+
return data, status_code, headers
|
|
1172
|
+
end
|
|
1173
|
+
|
|
1174
|
+
# Retrieve all lease transactions
|
|
1175
|
+
# Retrieves all the transactions for a specific lease. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Lease transactions</span> - `View`
|
|
1176
|
+
# @param lease_id [Integer]
|
|
1177
|
+
# @param [Hash] opts the optional parameters
|
|
1178
|
+
# @option opts [Date] :transactiondatefrom Filters results to any lease transaction whose start date is greater than or equal to the specified value.
|
|
1179
|
+
# @option opts [Date] :transactiondateto Filters results to any lease transaction whose end date is less than or equal to the specified value.
|
|
1180
|
+
# @option opts [Array<String>] :transactiontypes Filters results to any lease transaction whose lease transaction type matches the specified status. If no type is specified, lease transactions with any type will be returned.
|
|
1181
|
+
# @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.
|
|
1182
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
|
1183
|
+
# @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.
|
|
1184
|
+
# @return [Array<LeaseTransactionMessage>]
|
|
1185
|
+
def get_lease_ledgers(lease_id, opts = {})
|
|
1186
|
+
data, _status_code, _headers = get_lease_ledgers_with_http_info(lease_id, opts)
|
|
1187
|
+
data
|
|
1188
|
+
end
|
|
1189
|
+
|
|
1190
|
+
# Retrieve all lease transactions
|
|
1191
|
+
# Retrieves all the transactions for a specific lease. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Lease transactions</span> - `View`
|
|
1192
|
+
# @param lease_id [Integer]
|
|
1193
|
+
# @param [Hash] opts the optional parameters
|
|
1194
|
+
# @option opts [Date] :transactiondatefrom Filters results to any lease transaction whose start date is greater than or equal to the specified value.
|
|
1195
|
+
# @option opts [Date] :transactiondateto Filters results to any lease transaction whose end date is less than or equal to the specified value.
|
|
1196
|
+
# @option opts [Array<String>] :transactiontypes Filters results to any lease transaction whose lease transaction type matches the specified status. If no type is specified, lease transactions with any type will be returned.
|
|
1197
|
+
# @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.
|
|
1198
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
|
1199
|
+
# @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.
|
|
1200
|
+
# @return [Array<(Array<LeaseTransactionMessage>, Integer, Hash)>] Array<LeaseTransactionMessage> data, response status code and response headers
|
|
1201
|
+
def get_lease_ledgers_with_http_info(lease_id, opts = {})
|
|
1202
|
+
if @api_client.config.debugging
|
|
1203
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_ledgers ...'
|
|
1204
|
+
end
|
|
1205
|
+
# verify the required parameter 'lease_id' is set
|
|
1206
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
1207
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_lease_ledgers"
|
|
1208
|
+
end
|
|
1209
|
+
allowable_values = ["Bill", "Check", "Charge", "Payment", "Credit", "Refund", "ApplyDeposit", "ElectronicFundsTransfer", "Other", "Deposit", "GeneralJournalEntry", "OwnerContribution", "ReversePayment", "ReverseElectronicFundsTransfer", "VendorCredit", "RentalApplicationFeePayment", "ReverseRentalApplicationFeePayment", "ReverseOwnerContribution", "VendorRefund", "UnreversedPayment", "UnreversedElectronicFundsTransfer", "UnreversedOwnerContribution", "UnreversedRentalApplicationFeePayment"]
|
|
1210
|
+
if @api_client.config.client_side_validation && opts[:'transactiontypes'] && !opts[:'transactiontypes'].all? { |item| allowable_values.include?(item) }
|
|
1211
|
+
fail ArgumentError, "invalid value for \"transactiontypes\", must include one of #{allowable_values}"
|
|
1212
|
+
end
|
|
1213
|
+
# resource path
|
|
1214
|
+
local_var_path = '/v1/leases/{leaseId}/transactions'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
1215
|
+
|
|
1216
|
+
# query parameters
|
|
1217
|
+
query_params = opts[:query_params] || {}
|
|
1218
|
+
query_params[:'transactiondatefrom'] = opts[:'transactiondatefrom'] if !opts[:'transactiondatefrom'].nil?
|
|
1219
|
+
query_params[:'transactiondateto'] = opts[:'transactiondateto'] if !opts[:'transactiondateto'].nil?
|
|
1220
|
+
query_params[:'transactiontypes'] = @api_client.build_collection_param(opts[:'transactiontypes'], :multi) if !opts[:'transactiontypes'].nil?
|
|
1221
|
+
query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
|
1222
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
1223
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1224
|
+
|
|
1225
|
+
# header parameters
|
|
1226
|
+
header_params = opts[:header_params] || {}
|
|
1227
|
+
# HTTP header 'Accept' (if needed)
|
|
1228
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1229
|
+
|
|
1230
|
+
# form parameters
|
|
1231
|
+
form_params = opts[:form_params] || {}
|
|
1232
|
+
|
|
1233
|
+
# http body (model)
|
|
1234
|
+
post_body = opts[:debug_body]
|
|
1235
|
+
|
|
1236
|
+
# return_type
|
|
1237
|
+
return_type = opts[:debug_return_type] || 'Array<LeaseTransactionMessage>'
|
|
1238
|
+
|
|
1239
|
+
# auth_names
|
|
1240
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
1241
|
+
|
|
1242
|
+
new_options = opts.merge(
|
|
1243
|
+
:operation => :"LeasesApi.get_lease_ledgers",
|
|
1244
|
+
:header_params => header_params,
|
|
1245
|
+
:query_params => query_params,
|
|
1246
|
+
:form_params => form_params,
|
|
1247
|
+
:body => post_body,
|
|
1248
|
+
:auth_names => auth_names,
|
|
1249
|
+
:return_type => return_type
|
|
1250
|
+
)
|
|
1251
|
+
|
|
1252
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1253
|
+
if @api_client.config.debugging
|
|
1254
|
+
@api_client.config.logger.debug "API called: LeasesApi#get_lease_ledgers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1255
|
+
end
|
|
1256
|
+
return data, status_code, headers
|
|
1257
|
+
end
|
|
1258
|
+
|
|
1259
|
+
# Retrieve a move out
|
|
1260
|
+
# Retrieves move out data for a single tenant on a given lease. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Leases</span> - `View` <br /><span class=\"permissionBlock\">Rentals > Tenants</span> - `View`
|
|
1261
|
+
# @param lease_id [Integer]
|
|
1262
|
+
# @param tenant_id [Integer]
|
|
1263
|
+
# @param [Hash] opts the optional parameters
|
|
1264
|
+
# @return [LeaseMoveOutDataMessage]
|
|
1265
|
+
def get_lease_move_out_data_by_tenant_id(lease_id, tenant_id, opts = {})
|
|
1266
|
+
data, _status_code, _headers = get_lease_move_out_data_by_tenant_id_with_http_info(lease_id, tenant_id, opts)
|
|
1267
|
+
data
|
|
1268
|
+
end
|
|
1269
|
+
|
|
1270
|
+
# Retrieve a move out
|
|
1271
|
+
# Retrieves move out data for a single tenant on a given lease. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Leases</span> - `View` <br /><span class=\"permissionBlock\">Rentals &gt; Tenants</span> - `View`
|
|
1272
|
+
# @param lease_id [Integer]
|
|
1273
|
+
# @param tenant_id [Integer]
|
|
1274
|
+
# @param [Hash] opts the optional parameters
|
|
1275
|
+
# @return [Array<(LeaseMoveOutDataMessage, Integer, Hash)>] LeaseMoveOutDataMessage data, response status code and response headers
|
|
1276
|
+
def get_lease_move_out_data_by_tenant_id_with_http_info(lease_id, tenant_id, opts = {})
|
|
1277
|
+
if @api_client.config.debugging
|
|
1278
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_move_out_data_by_tenant_id ...'
|
|
1279
|
+
end
|
|
1280
|
+
# verify the required parameter 'lease_id' is set
|
|
1281
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
1282
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_lease_move_out_data_by_tenant_id"
|
|
1283
|
+
end
|
|
1284
|
+
# verify the required parameter 'tenant_id' is set
|
|
1285
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
1286
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling LeasesApi.get_lease_move_out_data_by_tenant_id"
|
|
1287
|
+
end
|
|
1288
|
+
# resource path
|
|
1289
|
+
local_var_path = '/v1/leases/{leaseId}/moveouts/{tenantId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
|
|
1290
|
+
|
|
1291
|
+
# query parameters
|
|
1292
|
+
query_params = opts[:query_params] || {}
|
|
1293
|
+
|
|
1294
|
+
# header parameters
|
|
1295
|
+
header_params = opts[:header_params] || {}
|
|
1296
|
+
# HTTP header 'Accept' (if needed)
|
|
1297
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1298
|
+
|
|
1299
|
+
# form parameters
|
|
1300
|
+
form_params = opts[:form_params] || {}
|
|
1301
|
+
|
|
1302
|
+
# http body (model)
|
|
1303
|
+
post_body = opts[:debug_body]
|
|
1304
|
+
|
|
1305
|
+
# return_type
|
|
1306
|
+
return_type = opts[:debug_return_type] || 'LeaseMoveOutDataMessage'
|
|
1307
|
+
|
|
1308
|
+
# auth_names
|
|
1309
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
1310
|
+
|
|
1311
|
+
new_options = opts.merge(
|
|
1312
|
+
:operation => :"LeasesApi.get_lease_move_out_data_by_tenant_id",
|
|
1313
|
+
:header_params => header_params,
|
|
1314
|
+
:query_params => query_params,
|
|
1315
|
+
:form_params => form_params,
|
|
1316
|
+
:body => post_body,
|
|
1317
|
+
:auth_names => auth_names,
|
|
1318
|
+
:return_type => return_type
|
|
1319
|
+
)
|
|
1320
|
+
|
|
1321
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1322
|
+
if @api_client.config.debugging
|
|
1323
|
+
@api_client.config.logger.debug "API called: LeasesApi#get_lease_move_out_data_by_tenant_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1324
|
+
end
|
|
1325
|
+
return data, status_code, headers
|
|
1326
|
+
end
|
|
1327
|
+
|
|
1328
|
+
# Retrieve all move outs
|
|
1329
|
+
# Retrieves a list of move out dates for a given lease. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Leases</span> - `View` <br /><span class=\"permissionBlock\">Rentals > Tenants</span> - `View`
|
|
1330
|
+
# @param lease_id [Integer]
|
|
1331
|
+
# @param [Hash] opts the optional parameters
|
|
1332
|
+
# @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.
|
|
1333
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
|
1334
|
+
# @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.
|
|
1335
|
+
# @return [Array<LeaseMoveOutDataMessage>]
|
|
1336
|
+
def get_lease_move_out_information_by_id(lease_id, opts = {})
|
|
1337
|
+
data, _status_code, _headers = get_lease_move_out_information_by_id_with_http_info(lease_id, opts)
|
|
1338
|
+
data
|
|
1339
|
+
end
|
|
1340
|
+
|
|
1341
|
+
# Retrieve all move outs
|
|
1342
|
+
# Retrieves a list of move out dates for a given lease. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Leases</span> - `View` <br /><span class=\"permissionBlock\">Rentals &gt; Tenants</span> - `View`
|
|
1343
|
+
# @param lease_id [Integer]
|
|
1344
|
+
# @param [Hash] opts the optional parameters
|
|
1345
|
+
# @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.
|
|
1346
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
|
1347
|
+
# @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.
|
|
1348
|
+
# @return [Array<(Array<LeaseMoveOutDataMessage>, Integer, Hash)>] Array<LeaseMoveOutDataMessage> data, response status code and response headers
|
|
1349
|
+
def get_lease_move_out_information_by_id_with_http_info(lease_id, opts = {})
|
|
1350
|
+
if @api_client.config.debugging
|
|
1351
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_move_out_information_by_id ...'
|
|
1352
|
+
end
|
|
1353
|
+
# verify the required parameter 'lease_id' is set
|
|
1354
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
1355
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_lease_move_out_information_by_id"
|
|
1356
|
+
end
|
|
1357
|
+
# resource path
|
|
1358
|
+
local_var_path = '/v1/leases/{leaseId}/moveouts'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
1359
|
+
|
|
1360
|
+
# query parameters
|
|
1361
|
+
query_params = opts[:query_params] || {}
|
|
1362
|
+
query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
|
1363
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
1364
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1365
|
+
|
|
1366
|
+
# header parameters
|
|
1367
|
+
header_params = opts[:header_params] || {}
|
|
1368
|
+
# HTTP header 'Accept' (if needed)
|
|
1369
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1370
|
+
|
|
1371
|
+
# form parameters
|
|
1372
|
+
form_params = opts[:form_params] || {}
|
|
1373
|
+
|
|
1374
|
+
# http body (model)
|
|
1375
|
+
post_body = opts[:debug_body]
|
|
1376
|
+
|
|
1377
|
+
# return_type
|
|
1378
|
+
return_type = opts[:debug_return_type] || 'Array<LeaseMoveOutDataMessage>'
|
|
1379
|
+
|
|
1380
|
+
# auth_names
|
|
1381
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
1382
|
+
|
|
1383
|
+
new_options = opts.merge(
|
|
1384
|
+
:operation => :"LeasesApi.get_lease_move_out_information_by_id",
|
|
1385
|
+
:header_params => header_params,
|
|
1386
|
+
:query_params => query_params,
|
|
1387
|
+
:form_params => form_params,
|
|
1388
|
+
:body => post_body,
|
|
1389
|
+
:auth_names => auth_names,
|
|
1390
|
+
:return_type => return_type
|
|
1391
|
+
)
|
|
1392
|
+
|
|
1393
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1394
|
+
if @api_client.config.debugging
|
|
1395
|
+
@api_client.config.logger.debug "API called: LeasesApi#get_lease_move_out_information_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1396
|
+
end
|
|
1397
|
+
return data, status_code, headers
|
|
1398
|
+
end
|
|
1399
|
+
|
|
1400
|
+
# Retrieve a note
|
|
1401
|
+
# Retrieves a lease note. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Leases</span> - `View`
|
|
1402
|
+
# @param lease_id [Integer]
|
|
1403
|
+
# @param note_id [Integer]
|
|
1404
|
+
# @param [Hash] opts the optional parameters
|
|
1405
|
+
# @return [NoteMessage]
|
|
1406
|
+
def get_lease_note_by_note_id(lease_id, note_id, opts = {})
|
|
1407
|
+
data, _status_code, _headers = get_lease_note_by_note_id_with_http_info(lease_id, note_id, opts)
|
|
1408
|
+
data
|
|
1409
|
+
end
|
|
1410
|
+
|
|
1411
|
+
# Retrieve a note
|
|
1412
|
+
# Retrieves a lease note. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Leases</span> - `View`
|
|
1413
|
+
# @param lease_id [Integer]
|
|
1414
|
+
# @param note_id [Integer]
|
|
1415
|
+
# @param [Hash] opts the optional parameters
|
|
1416
|
+
# @return [Array<(NoteMessage, Integer, Hash)>] NoteMessage data, response status code and response headers
|
|
1417
|
+
def get_lease_note_by_note_id_with_http_info(lease_id, note_id, opts = {})
|
|
1418
|
+
if @api_client.config.debugging
|
|
1419
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_note_by_note_id ...'
|
|
1420
|
+
end
|
|
1421
|
+
# verify the required parameter 'lease_id' is set
|
|
1422
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
1423
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_lease_note_by_note_id"
|
|
1424
|
+
end
|
|
1425
|
+
# verify the required parameter 'note_id' is set
|
|
1426
|
+
if @api_client.config.client_side_validation && note_id.nil?
|
|
1427
|
+
fail ArgumentError, "Missing the required parameter 'note_id' when calling LeasesApi.get_lease_note_by_note_id"
|
|
1428
|
+
end
|
|
1429
|
+
# resource path
|
|
1430
|
+
local_var_path = '/v1/leases/{leaseId}/notes/{noteId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'noteId' + '}', CGI.escape(note_id.to_s))
|
|
1431
|
+
|
|
1432
|
+
# query parameters
|
|
1433
|
+
query_params = opts[:query_params] || {}
|
|
1434
|
+
|
|
1435
|
+
# header parameters
|
|
1436
|
+
header_params = opts[:header_params] || {}
|
|
1437
|
+
# HTTP header 'Accept' (if needed)
|
|
1438
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1439
|
+
|
|
1440
|
+
# form parameters
|
|
1441
|
+
form_params = opts[:form_params] || {}
|
|
1442
|
+
|
|
1443
|
+
# http body (model)
|
|
1444
|
+
post_body = opts[:debug_body]
|
|
1445
|
+
|
|
1446
|
+
# return_type
|
|
1447
|
+
return_type = opts[:debug_return_type] || 'NoteMessage'
|
|
1448
|
+
|
|
1449
|
+
# auth_names
|
|
1450
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
1451
|
+
|
|
1452
|
+
new_options = opts.merge(
|
|
1453
|
+
:operation => :"LeasesApi.get_lease_note_by_note_id",
|
|
1454
|
+
:header_params => header_params,
|
|
1455
|
+
:query_params => query_params,
|
|
1456
|
+
:form_params => form_params,
|
|
1457
|
+
:body => post_body,
|
|
1458
|
+
:auth_names => auth_names,
|
|
1459
|
+
:return_type => return_type
|
|
1460
|
+
)
|
|
1461
|
+
|
|
1462
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1463
|
+
if @api_client.config.debugging
|
|
1464
|
+
@api_client.config.logger.debug "API called: LeasesApi#get_lease_note_by_note_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1465
|
+
end
|
|
1466
|
+
return data, status_code, headers
|
|
1467
|
+
end
|
|
1468
|
+
|
|
1469
|
+
# Retrieve all notes
|
|
1470
|
+
# Retrieves all lease notes. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Leases</span> - `View`
|
|
1471
|
+
# @param lease_id [Integer]
|
|
1472
|
+
# @param [Hash] opts the optional parameters
|
|
1473
|
+
# @option opts [Time] :updateddatetimefrom Filters results to any note whose updated date and time are greater than or equal to the specified value. The value must be formatted as YYYY-MM-DD HH:MM:SS.
|
|
1474
|
+
# @option opts [Time] :updateddatetimeto Filters results to any note whose updated date and time are less than or equal to the specified value. The value must be formatted as YYYY-MM-DD HH:MM:SS.
|
|
1475
|
+
# @option opts [Integer] :lastupdatedbyuserid Filters results to only notes that were last updated by the specified user identifier.
|
|
1476
|
+
# @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.
|
|
1477
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
|
1478
|
+
# @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.
|
|
1479
|
+
# @return [Array<NoteMessage>]
|
|
1480
|
+
def get_lease_notes(lease_id, opts = {})
|
|
1481
|
+
data, _status_code, _headers = get_lease_notes_with_http_info(lease_id, opts)
|
|
1482
|
+
data
|
|
1483
|
+
end
|
|
1484
|
+
|
|
1485
|
+
# Retrieve all notes
|
|
1486
|
+
# Retrieves all lease notes. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Leases</span> - `View`
|
|
1487
|
+
# @param lease_id [Integer]
|
|
1488
|
+
# @param [Hash] opts the optional parameters
|
|
1489
|
+
# @option opts [Time] :updateddatetimefrom Filters results to any note whose updated date and time are greater than or equal to the specified value. The value must be formatted as YYYY-MM-DD HH:MM:SS.
|
|
1490
|
+
# @option opts [Time] :updateddatetimeto Filters results to any note whose updated date and time are less than or equal to the specified value. The value must be formatted as YYYY-MM-DD HH:MM:SS.
|
|
1491
|
+
# @option opts [Integer] :lastupdatedbyuserid Filters results to only notes that were last updated by the specified user identifier.
|
|
1492
|
+
# @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.
|
|
1493
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
|
1494
|
+
# @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.
|
|
1495
|
+
# @return [Array<(Array<NoteMessage>, Integer, Hash)>] Array<NoteMessage> data, response status code and response headers
|
|
1496
|
+
def get_lease_notes_with_http_info(lease_id, opts = {})
|
|
1497
|
+
if @api_client.config.debugging
|
|
1498
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_notes ...'
|
|
1499
|
+
end
|
|
1500
|
+
# verify the required parameter 'lease_id' is set
|
|
1501
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
1502
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_lease_notes"
|
|
1503
|
+
end
|
|
1504
|
+
# resource path
|
|
1505
|
+
local_var_path = '/v1/leases/{leaseId}/notes'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
1506
|
+
|
|
1507
|
+
# query parameters
|
|
1508
|
+
query_params = opts[:query_params] || {}
|
|
1509
|
+
query_params[:'updateddatetimefrom'] = opts[:'updateddatetimefrom'] if !opts[:'updateddatetimefrom'].nil?
|
|
1510
|
+
query_params[:'updateddatetimeto'] = opts[:'updateddatetimeto'] if !opts[:'updateddatetimeto'].nil?
|
|
1511
|
+
query_params[:'lastupdatedbyuserid'] = opts[:'lastupdatedbyuserid'] if !opts[:'lastupdatedbyuserid'].nil?
|
|
1512
|
+
query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
|
1513
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
1514
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1515
|
+
|
|
1516
|
+
# header parameters
|
|
1517
|
+
header_params = opts[:header_params] || {}
|
|
1518
|
+
# HTTP header 'Accept' (if needed)
|
|
1519
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1520
|
+
|
|
1521
|
+
# form parameters
|
|
1522
|
+
form_params = opts[:form_params] || {}
|
|
1523
|
+
|
|
1524
|
+
# http body (model)
|
|
1525
|
+
post_body = opts[:debug_body]
|
|
1526
|
+
|
|
1527
|
+
# return_type
|
|
1528
|
+
return_type = opts[:debug_return_type] || 'Array<NoteMessage>'
|
|
1529
|
+
|
|
1530
|
+
# auth_names
|
|
1531
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
1532
|
+
|
|
1533
|
+
new_options = opts.merge(
|
|
1534
|
+
:operation => :"LeasesApi.get_lease_notes",
|
|
1535
|
+
:header_params => header_params,
|
|
1536
|
+
:query_params => query_params,
|
|
1537
|
+
:form_params => form_params,
|
|
1538
|
+
:body => post_body,
|
|
1539
|
+
:auth_names => auth_names,
|
|
1540
|
+
:return_type => return_type
|
|
1541
|
+
)
|
|
1542
|
+
|
|
1543
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1544
|
+
if @api_client.config.debugging
|
|
1545
|
+
@api_client.config.logger.debug "API called: LeasesApi#get_lease_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1546
|
+
end
|
|
1547
|
+
return data, status_code, headers
|
|
1548
|
+
end
|
|
1549
|
+
|
|
1550
|
+
# Retrieve all outstanding balances
|
|
1551
|
+
# Retrieves a list of lease outstanding balances. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Outstanding Balances</span> - `View`
|
|
1552
|
+
# @param [Hash] opts the optional parameters
|
|
1553
|
+
# @option opts [String] :entitytype
|
|
1554
|
+
# @option opts [Integer] :entityid
|
|
1555
|
+
# @option opts [Array<String>] :leasestatuses
|
|
1556
|
+
# @option opts [Array<Integer>] :leaseids
|
|
1557
|
+
# @option opts [String] :pastdueemail
|
|
1558
|
+
# @option opts [String] :balanceduration
|
|
1559
|
+
# @option opts [String] :evictionstatus
|
|
1560
|
+
# @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.
|
|
1561
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
|
1562
|
+
# @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.
|
|
1563
|
+
# @return [Array<LeaseOutstandingBalanceMessage>]
|
|
1564
|
+
def get_lease_outstanding_balances(opts = {})
|
|
1565
|
+
data, _status_code, _headers = get_lease_outstanding_balances_with_http_info(opts)
|
|
1566
|
+
data
|
|
1567
|
+
end
|
|
1568
|
+
|
|
1569
|
+
# Retrieve all outstanding balances
|
|
1570
|
+
# Retrieves a list of lease outstanding balances. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Outstanding Balances</span> - `View`
|
|
1571
|
+
# @param [Hash] opts the optional parameters
|
|
1572
|
+
# @option opts [String] :entitytype
|
|
1573
|
+
# @option opts [Integer] :entityid
|
|
1574
|
+
# @option opts [Array<String>] :leasestatuses
|
|
1575
|
+
# @option opts [Array<Integer>] :leaseids
|
|
1576
|
+
# @option opts [String] :pastdueemail
|
|
1577
|
+
# @option opts [String] :balanceduration
|
|
1578
|
+
# @option opts [String] :evictionstatus
|
|
1579
|
+
# @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.
|
|
1580
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
|
1581
|
+
# @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.
|
|
1582
|
+
# @return [Array<(Array<LeaseOutstandingBalanceMessage>, Integer, Hash)>] Array<LeaseOutstandingBalanceMessage> data, response status code and response headers
|
|
1583
|
+
def get_lease_outstanding_balances_with_http_info(opts = {})
|
|
1584
|
+
if @api_client.config.debugging
|
|
1585
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_outstanding_balances ...'
|
|
1586
|
+
end
|
|
1587
|
+
allowable_values = ["Rental", "RentalOwner"]
|
|
1588
|
+
if @api_client.config.client_side_validation && opts[:'entitytype'] && !allowable_values.include?(opts[:'entitytype'])
|
|
1589
|
+
fail ArgumentError, "invalid value for \"entitytype\", must be one of #{allowable_values}"
|
|
1590
|
+
end
|
|
1591
|
+
allowable_values = ["Active", "Past", "Future"]
|
|
1592
|
+
if @api_client.config.client_side_validation && opts[:'leasestatuses'] && !opts[:'leasestatuses'].all? { |item| allowable_values.include?(item) }
|
|
1593
|
+
fail ArgumentError, "invalid value for \"leasestatuses\", must include one of #{allowable_values}"
|
|
1594
|
+
end
|
|
1595
|
+
allowable_values = ["NoEmailAddress", "Sent"]
|
|
1596
|
+
if @api_client.config.client_side_validation && opts[:'pastdueemail'] && !allowable_values.include?(opts[:'pastdueemail'])
|
|
1597
|
+
fail ArgumentError, "invalid value for \"pastdueemail\", must be one of #{allowable_values}"
|
|
1598
|
+
end
|
|
1599
|
+
allowable_values = ["TotalBalance", "Balance0to30Days", "Balance31to60Days", "Balance61to90Days", "BalanceOver90Days"]
|
|
1600
|
+
if @api_client.config.client_side_validation && opts[:'balanceduration'] && !allowable_values.include?(opts[:'balanceduration'])
|
|
1601
|
+
fail ArgumentError, "invalid value for \"balanceduration\", must be one of #{allowable_values}"
|
|
1602
|
+
end
|
|
1603
|
+
allowable_values = ["NotEvictionPending", "EvictionPending"]
|
|
1604
|
+
if @api_client.config.client_side_validation && opts[:'evictionstatus'] && !allowable_values.include?(opts[:'evictionstatus'])
|
|
1605
|
+
fail ArgumentError, "invalid value for \"evictionstatus\", must be one of #{allowable_values}"
|
|
1606
|
+
end
|
|
1607
|
+
# resource path
|
|
1608
|
+
local_var_path = '/v1/leases/outstandingbalances'
|
|
1609
|
+
|
|
1610
|
+
# query parameters
|
|
1611
|
+
query_params = opts[:query_params] || {}
|
|
1612
|
+
query_params[:'entitytype'] = opts[:'entitytype'] if !opts[:'entitytype'].nil?
|
|
1613
|
+
query_params[:'entityid'] = opts[:'entityid'] if !opts[:'entityid'].nil?
|
|
1614
|
+
query_params[:'leasestatuses'] = @api_client.build_collection_param(opts[:'leasestatuses'], :multi) if !opts[:'leasestatuses'].nil?
|
|
1615
|
+
query_params[:'leaseids'] = @api_client.build_collection_param(opts[:'leaseids'], :multi) if !opts[:'leaseids'].nil?
|
|
1616
|
+
query_params[:'pastdueemail'] = opts[:'pastdueemail'] if !opts[:'pastdueemail'].nil?
|
|
1617
|
+
query_params[:'balanceduration'] = opts[:'balanceduration'] if !opts[:'balanceduration'].nil?
|
|
1618
|
+
query_params[:'evictionstatus'] = opts[:'evictionstatus'] if !opts[:'evictionstatus'].nil?
|
|
1619
|
+
query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
|
1620
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
1621
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1622
|
+
|
|
1623
|
+
# header parameters
|
|
1624
|
+
header_params = opts[:header_params] || {}
|
|
1625
|
+
# HTTP header 'Accept' (if needed)
|
|
1626
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1627
|
+
|
|
1628
|
+
# form parameters
|
|
1629
|
+
form_params = opts[:form_params] || {}
|
|
1630
|
+
|
|
1631
|
+
# http body (model)
|
|
1632
|
+
post_body = opts[:debug_body]
|
|
1633
|
+
|
|
1634
|
+
# return_type
|
|
1635
|
+
return_type = opts[:debug_return_type] || 'Array<LeaseOutstandingBalanceMessage>'
|
|
1636
|
+
|
|
1637
|
+
# auth_names
|
|
1638
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
1639
|
+
|
|
1640
|
+
new_options = opts.merge(
|
|
1641
|
+
:operation => :"LeasesApi.get_lease_outstanding_balances",
|
|
1642
|
+
:header_params => header_params,
|
|
1643
|
+
:query_params => query_params,
|
|
1644
|
+
:form_params => form_params,
|
|
1645
|
+
:body => post_body,
|
|
1646
|
+
:auth_names => auth_names,
|
|
1647
|
+
:return_type => return_type
|
|
1648
|
+
)
|
|
1649
|
+
|
|
1650
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1651
|
+
if @api_client.config.debugging
|
|
1652
|
+
@api_client.config.logger.debug "API called: LeasesApi#get_lease_outstanding_balances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1653
|
+
end
|
|
1654
|
+
return data, status_code, headers
|
|
1655
|
+
end
|
|
1656
|
+
|
|
1657
|
+
# Retrieve a recurring credit
|
|
1658
|
+
# Retrieves a recurring credit. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Lease transactions</span> - `View`
|
|
1659
|
+
# @param lease_id [Integer]
|
|
1660
|
+
# @param transaction_id [Integer]
|
|
1661
|
+
# @param [Hash] opts the optional parameters
|
|
1662
|
+
# @return [LeaseRecurringCreditMessage]
|
|
1663
|
+
def get_lease_recurring_credit_by_id(lease_id, transaction_id, opts = {})
|
|
1664
|
+
data, _status_code, _headers = get_lease_recurring_credit_by_id_with_http_info(lease_id, transaction_id, opts)
|
|
1665
|
+
data
|
|
1666
|
+
end
|
|
1667
|
+
|
|
1668
|
+
# Retrieve a recurring credit
|
|
1669
|
+
# Retrieves a recurring credit. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Lease transactions</span> - `View`
|
|
1670
|
+
# @param lease_id [Integer]
|
|
1671
|
+
# @param transaction_id [Integer]
|
|
1672
|
+
# @param [Hash] opts the optional parameters
|
|
1673
|
+
# @return [Array<(LeaseRecurringCreditMessage, Integer, Hash)>] LeaseRecurringCreditMessage data, response status code and response headers
|
|
1674
|
+
def get_lease_recurring_credit_by_id_with_http_info(lease_id, transaction_id, opts = {})
|
|
1675
|
+
if @api_client.config.debugging
|
|
1676
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_recurring_credit_by_id ...'
|
|
1677
|
+
end
|
|
1678
|
+
# verify the required parameter 'lease_id' is set
|
|
1679
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
1680
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_lease_recurring_credit_by_id"
|
|
1681
|
+
end
|
|
1682
|
+
# verify the required parameter 'transaction_id' is set
|
|
1683
|
+
if @api_client.config.client_side_validation && transaction_id.nil?
|
|
1684
|
+
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling LeasesApi.get_lease_recurring_credit_by_id"
|
|
1685
|
+
end
|
|
1686
|
+
# resource path
|
|
1687
|
+
local_var_path = '/v1/leases/{leaseId}/recurringcredits/{transactionId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'transactionId' + '}', CGI.escape(transaction_id.to_s))
|
|
1688
|
+
|
|
1689
|
+
# query parameters
|
|
1690
|
+
query_params = opts[:query_params] || {}
|
|
1691
|
+
|
|
1692
|
+
# header parameters
|
|
1693
|
+
header_params = opts[:header_params] || {}
|
|
1694
|
+
# HTTP header 'Accept' (if needed)
|
|
1695
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1696
|
+
|
|
1697
|
+
# form parameters
|
|
1698
|
+
form_params = opts[:form_params] || {}
|
|
1699
|
+
|
|
1700
|
+
# http body (model)
|
|
1701
|
+
post_body = opts[:debug_body]
|
|
1702
|
+
|
|
1703
|
+
# return_type
|
|
1704
|
+
return_type = opts[:debug_return_type] || 'LeaseRecurringCreditMessage'
|
|
1705
|
+
|
|
1706
|
+
# auth_names
|
|
1707
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
1708
|
+
|
|
1709
|
+
new_options = opts.merge(
|
|
1710
|
+
:operation => :"LeasesApi.get_lease_recurring_credit_by_id",
|
|
1711
|
+
:header_params => header_params,
|
|
1712
|
+
:query_params => query_params,
|
|
1713
|
+
:form_params => form_params,
|
|
1714
|
+
:body => post_body,
|
|
1715
|
+
:auth_names => auth_names,
|
|
1716
|
+
:return_type => return_type
|
|
1717
|
+
)
|
|
1718
|
+
|
|
1719
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1720
|
+
if @api_client.config.debugging
|
|
1721
|
+
@api_client.config.logger.debug "API called: LeasesApi#get_lease_recurring_credit_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1722
|
+
end
|
|
1723
|
+
return data, status_code, headers
|
|
1724
|
+
end
|
|
1725
|
+
|
|
1726
|
+
# Retrieve all recurring transactions
|
|
1727
|
+
# Retrieves all recurring transactions. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Lease transactions</span> - `View`
|
|
1728
|
+
# @param lease_id [Integer]
|
|
1729
|
+
# @param [Hash] opts the optional parameters
|
|
1730
|
+
# @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.
|
|
1731
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
|
1732
|
+
# @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.
|
|
1733
|
+
# @return [Array<RecurringTransactionMessage>]
|
|
1734
|
+
def get_lease_recurring_transactions(lease_id, opts = {})
|
|
1735
|
+
data, _status_code, _headers = get_lease_recurring_transactions_with_http_info(lease_id, opts)
|
|
1736
|
+
data
|
|
1737
|
+
end
|
|
1738
|
+
|
|
1739
|
+
# Retrieve all recurring transactions
|
|
1740
|
+
# Retrieves all recurring transactions. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Lease transactions</span> - `View`
|
|
1741
|
+
# @param lease_id [Integer]
|
|
1742
|
+
# @param [Hash] opts the optional parameters
|
|
1743
|
+
# @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.
|
|
1744
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
|
1745
|
+
# @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.
|
|
1746
|
+
# @return [Array<(Array<RecurringTransactionMessage>, Integer, Hash)>] Array<RecurringTransactionMessage> data, response status code and response headers
|
|
1747
|
+
def get_lease_recurring_transactions_with_http_info(lease_id, opts = {})
|
|
1748
|
+
if @api_client.config.debugging
|
|
1749
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_recurring_transactions ...'
|
|
1750
|
+
end
|
|
1751
|
+
# verify the required parameter 'lease_id' is set
|
|
1752
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
1753
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_lease_recurring_transactions"
|
|
1754
|
+
end
|
|
1755
|
+
# resource path
|
|
1756
|
+
local_var_path = '/v1/leases/{leaseId}/recurringtransactions'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
1757
|
+
|
|
1758
|
+
# query parameters
|
|
1759
|
+
query_params = opts[:query_params] || {}
|
|
1760
|
+
query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
|
1761
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
1762
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1763
|
+
|
|
1764
|
+
# header parameters
|
|
1765
|
+
header_params = opts[:header_params] || {}
|
|
1766
|
+
# HTTP header 'Accept' (if needed)
|
|
1767
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1768
|
+
|
|
1769
|
+
# form parameters
|
|
1770
|
+
form_params = opts[:form_params] || {}
|
|
1771
|
+
|
|
1772
|
+
# http body (model)
|
|
1773
|
+
post_body = opts[:debug_body]
|
|
1774
|
+
|
|
1775
|
+
# return_type
|
|
1776
|
+
return_type = opts[:debug_return_type] || 'Array<RecurringTransactionMessage>'
|
|
1777
|
+
|
|
1778
|
+
# auth_names
|
|
1779
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
1780
|
+
|
|
1781
|
+
new_options = opts.merge(
|
|
1782
|
+
:operation => :"LeasesApi.get_lease_recurring_transactions",
|
|
1783
|
+
:header_params => header_params,
|
|
1784
|
+
:query_params => query_params,
|
|
1785
|
+
:form_params => form_params,
|
|
1786
|
+
:body => post_body,
|
|
1787
|
+
:auth_names => auth_names,
|
|
1788
|
+
:return_type => return_type
|
|
1789
|
+
)
|
|
1790
|
+
|
|
1791
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1792
|
+
if @api_client.config.debugging
|
|
1793
|
+
@api_client.config.logger.debug "API called: LeasesApi#get_lease_recurring_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1794
|
+
end
|
|
1795
|
+
return data, status_code, headers
|
|
1796
|
+
end
|
|
1797
|
+
|
|
1798
|
+
# Retrieve all leases
|
|
1799
|
+
# Retrieves a list of leases. <br /><br /><span class=\"permissionBlock\">Rentals > Leases</span> - `View`
|
|
1800
|
+
# @param [Hash] opts the optional parameters
|
|
1801
|
+
# @option opts [Array<Integer>] :propertyids Filters results to any lease whose unit belongs to the specified set of property ids.
|
|
1802
|
+
# @option opts [Array<Integer>] :rentalownerids Filters results to any lease whose unit belongs to a property with a rental owner in the specified set of rental owner ids.
|
|
1803
|
+
# @option opts [String] :unitnumber Filters results to any lease whose unit number *contains* the specified value.
|
|
1804
|
+
# @option opts [String] :tenantname Filters results to any lease whose current tenants' names *contain* the specified value.
|
|
1805
|
+
# @option opts [Date] :leasedatefrom Filters results to any lease whose start date is greater than or equal to the specified value.
|
|
1806
|
+
# @option opts [Date] :leasedateto Filters results to any lease whose end date is less than or equal to the specified value.
|
|
1807
|
+
# @option opts [Array<String>] :leasetypes Filters results to any lease whose lease type matches the specified status. If no type is specified, leases with any type will be returned.
|
|
1808
|
+
# @option opts [Array<String>] :leasestatuses Filters results to any lease whose lease term matches the specified status. If no status is specified, leases with any lease term status will be returned.
|
|
1809
|
+
# @option opts [Time] :createddatetimefrom Filters results to any lease whose created date and time are greater than or equal to the specified value. The value must be formatted as YYYY-MM-DD HH:MM:SS.
|
|
1810
|
+
# @option opts [Time] :createddatetimeto Filters results to any lease whose created date and time are less than or equal to the specified value. The value must be formatted as YYYY-MM-DD HH:MM:SS.
|
|
1811
|
+
# @option opts [Time] :lastupdatedfrom Filters results to any leases that were updated on or after the specified date. The value must be in UTC and formatted as YYYY-MM-DDTHH:MM:SSZ.
|
|
1812
|
+
# @option opts [Time] :lastupdatedto Filters results to any leases that were updated on or before the specified date. The value must be in UTC and formatted as YYYY-MM-DDTHH:MM:SSZ.
|
|
1813
|
+
# @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.
|
|
1814
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
|
1815
|
+
# @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.
|
|
1816
|
+
# @return [Array<LeaseMessage>]
|
|
1817
|
+
def get_leases(opts = {})
|
|
1818
|
+
data, _status_code, _headers = get_leases_with_http_info(opts)
|
|
1819
|
+
data
|
|
1820
|
+
end
|
|
1821
|
+
|
|
1822
|
+
# Retrieve all leases
|
|
1823
|
+
# Retrieves a list of leases. <br /><br /><span class=\"permissionBlock\">Rentals &gt; Leases</span> - `View`
|
|
1824
|
+
# @param [Hash] opts the optional parameters
|
|
1825
|
+
# @option opts [Array<Integer>] :propertyids Filters results to any lease whose unit belongs to the specified set of property ids.
|
|
1826
|
+
# @option opts [Array<Integer>] :rentalownerids Filters results to any lease whose unit belongs to a property with a rental owner in the specified set of rental owner ids.
|
|
1827
|
+
# @option opts [String] :unitnumber Filters results to any lease whose unit number *contains* the specified value.
|
|
1828
|
+
# @option opts [String] :tenantname Filters results to any lease whose current tenants' names *contain* the specified value.
|
|
1829
|
+
# @option opts [Date] :leasedatefrom Filters results to any lease whose start date is greater than or equal to the specified value.
|
|
1830
|
+
# @option opts [Date] :leasedateto Filters results to any lease whose end date is less than or equal to the specified value.
|
|
1831
|
+
# @option opts [Array<String>] :leasetypes Filters results to any lease whose lease type matches the specified status. If no type is specified, leases with any type will be returned.
|
|
1832
|
+
# @option opts [Array<String>] :leasestatuses Filters results to any lease whose lease term matches the specified status. If no status is specified, leases with any lease term status will be returned.
|
|
1833
|
+
# @option opts [Time] :createddatetimefrom Filters results to any lease whose created date and time are greater than or equal to the specified value. The value must be formatted as YYYY-MM-DD HH:MM:SS.
|
|
1834
|
+
# @option opts [Time] :createddatetimeto Filters results to any lease whose created date and time are less than or equal to the specified value. The value must be formatted as YYYY-MM-DD HH:MM:SS.
|
|
1835
|
+
# @option opts [Time] :lastupdatedfrom Filters results to any leases that were updated on or after the specified date. The value must be in UTC and formatted as YYYY-MM-DDTHH:MM:SSZ.
|
|
1836
|
+
# @option opts [Time] :lastupdatedto Filters results to any leases that were updated on or before the specified date. The value must be in UTC and formatted as YYYY-MM-DDTHH:MM:SSZ.
|
|
1837
|
+
# @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.
|
|
1838
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
|
1839
|
+
# @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.
|
|
1840
|
+
# @return [Array<(Array<LeaseMessage>, Integer, Hash)>] Array<LeaseMessage> data, response status code and response headers
|
|
1841
|
+
def get_leases_with_http_info(opts = {})
|
|
1842
|
+
if @api_client.config.debugging
|
|
1843
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.get_leases ...'
|
|
1844
|
+
end
|
|
1845
|
+
allowable_values = ["None", "Fixed", "FixedWithRollover", "AtWill"]
|
|
1846
|
+
if @api_client.config.client_side_validation && opts[:'leasetypes'] && !opts[:'leasetypes'].all? { |item| allowable_values.include?(item) }
|
|
1847
|
+
fail ArgumentError, "invalid value for \"leasetypes\", must include one of #{allowable_values}"
|
|
1848
|
+
end
|
|
1849
|
+
allowable_values = ["Active", "Past", "Future"]
|
|
1850
|
+
if @api_client.config.client_side_validation && opts[:'leasestatuses'] && !opts[:'leasestatuses'].all? { |item| allowable_values.include?(item) }
|
|
1851
|
+
fail ArgumentError, "invalid value for \"leasestatuses\", must include one of #{allowable_values}"
|
|
1852
|
+
end
|
|
1853
|
+
# resource path
|
|
1854
|
+
local_var_path = '/v1/leases'
|
|
1855
|
+
|
|
1856
|
+
# query parameters
|
|
1857
|
+
query_params = opts[:query_params] || {}
|
|
1858
|
+
query_params[:'propertyids'] = @api_client.build_collection_param(opts[:'propertyids'], :multi) if !opts[:'propertyids'].nil?
|
|
1859
|
+
query_params[:'rentalownerids'] = @api_client.build_collection_param(opts[:'rentalownerids'], :multi) if !opts[:'rentalownerids'].nil?
|
|
1860
|
+
query_params[:'unitnumber'] = opts[:'unitnumber'] if !opts[:'unitnumber'].nil?
|
|
1861
|
+
query_params[:'tenantname'] = opts[:'tenantname'] if !opts[:'tenantname'].nil?
|
|
1862
|
+
query_params[:'leasedatefrom'] = opts[:'leasedatefrom'] if !opts[:'leasedatefrom'].nil?
|
|
1863
|
+
query_params[:'leasedateto'] = opts[:'leasedateto'] if !opts[:'leasedateto'].nil?
|
|
1864
|
+
query_params[:'leasetypes'] = @api_client.build_collection_param(opts[:'leasetypes'], :multi) if !opts[:'leasetypes'].nil?
|
|
1865
|
+
query_params[:'leasestatuses'] = @api_client.build_collection_param(opts[:'leasestatuses'], :multi) if !opts[:'leasestatuses'].nil?
|
|
1866
|
+
query_params[:'createddatetimefrom'] = opts[:'createddatetimefrom'] if !opts[:'createddatetimefrom'].nil?
|
|
1867
|
+
query_params[:'createddatetimeto'] = opts[:'createddatetimeto'] if !opts[:'createddatetimeto'].nil?
|
|
1868
|
+
query_params[:'lastupdatedfrom'] = opts[:'lastupdatedfrom'] if !opts[:'lastupdatedfrom'].nil?
|
|
1869
|
+
query_params[:'lastupdatedto'] = opts[:'lastupdatedto'] if !opts[:'lastupdatedto'].nil?
|
|
1870
|
+
query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
|
1871
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
1872
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1873
|
+
|
|
1874
|
+
# header parameters
|
|
1875
|
+
header_params = opts[:header_params] || {}
|
|
1876
|
+
# HTTP header 'Accept' (if needed)
|
|
1877
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1878
|
+
|
|
1879
|
+
# form parameters
|
|
1880
|
+
form_params = opts[:form_params] || {}
|
|
1881
|
+
|
|
1882
|
+
# http body (model)
|
|
1883
|
+
post_body = opts[:debug_body]
|
|
1884
|
+
|
|
1885
|
+
# return_type
|
|
1886
|
+
return_type = opts[:debug_return_type] || 'Array<LeaseMessage>'
|
|
1887
|
+
|
|
1888
|
+
# auth_names
|
|
1889
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
1890
|
+
|
|
1891
|
+
new_options = opts.merge(
|
|
1892
|
+
:operation => :"LeasesApi.get_leases",
|
|
1893
|
+
:header_params => header_params,
|
|
1894
|
+
:query_params => query_params,
|
|
1895
|
+
:form_params => form_params,
|
|
1896
|
+
:body => post_body,
|
|
1897
|
+
:auth_names => auth_names,
|
|
1898
|
+
:return_type => return_type
|
|
1899
|
+
)
|
|
1900
|
+
|
|
1901
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1902
|
+
if @api_client.config.debugging
|
|
1903
|
+
@api_client.config.logger.debug "API called: LeasesApi#get_leases\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1904
|
+
end
|
|
1905
|
+
return data, status_code, headers
|
|
1906
|
+
end
|
|
1907
|
+
|
|
1908
|
+
# Retrieve a recurring payment
|
|
1909
|
+
# Retrieves a recurring payment. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Lease Transactions</span> - `View`
|
|
1910
|
+
# @param lease_id [Integer]
|
|
1911
|
+
# @param payment_id [Integer]
|
|
1912
|
+
# @param [Hash] opts the optional parameters
|
|
1913
|
+
# @return [LeaseRecurringPaymentMessage]
|
|
1914
|
+
def get_recurring_lease_payments_by_id(lease_id, payment_id, opts = {})
|
|
1915
|
+
data, _status_code, _headers = get_recurring_lease_payments_by_id_with_http_info(lease_id, payment_id, opts)
|
|
1916
|
+
data
|
|
1917
|
+
end
|
|
1918
|
+
|
|
1919
|
+
# Retrieve a recurring payment
|
|
1920
|
+
# Retrieves a recurring payment. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Lease Transactions</span> - `View`
|
|
1921
|
+
# @param lease_id [Integer]
|
|
1922
|
+
# @param payment_id [Integer]
|
|
1923
|
+
# @param [Hash] opts the optional parameters
|
|
1924
|
+
# @return [Array<(LeaseRecurringPaymentMessage, Integer, Hash)>] LeaseRecurringPaymentMessage data, response status code and response headers
|
|
1925
|
+
def get_recurring_lease_payments_by_id_with_http_info(lease_id, payment_id, opts = {})
|
|
1926
|
+
if @api_client.config.debugging
|
|
1927
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.get_recurring_lease_payments_by_id ...'
|
|
1928
|
+
end
|
|
1929
|
+
# verify the required parameter 'lease_id' is set
|
|
1930
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
1931
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_recurring_lease_payments_by_id"
|
|
1932
|
+
end
|
|
1933
|
+
# verify the required parameter 'payment_id' is set
|
|
1934
|
+
if @api_client.config.client_side_validation && payment_id.nil?
|
|
1935
|
+
fail ArgumentError, "Missing the required parameter 'payment_id' when calling LeasesApi.get_recurring_lease_payments_by_id"
|
|
1936
|
+
end
|
|
1937
|
+
# resource path
|
|
1938
|
+
local_var_path = '/v1/leases/{leaseId}/recurringpayments/{paymentId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'paymentId' + '}', CGI.escape(payment_id.to_s))
|
|
1939
|
+
|
|
1940
|
+
# query parameters
|
|
1941
|
+
query_params = opts[:query_params] || {}
|
|
1942
|
+
|
|
1943
|
+
# header parameters
|
|
1944
|
+
header_params = opts[:header_params] || {}
|
|
1945
|
+
# HTTP header 'Accept' (if needed)
|
|
1946
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1947
|
+
|
|
1948
|
+
# form parameters
|
|
1949
|
+
form_params = opts[:form_params] || {}
|
|
1950
|
+
|
|
1951
|
+
# http body (model)
|
|
1952
|
+
post_body = opts[:debug_body]
|
|
1953
|
+
|
|
1954
|
+
# return_type
|
|
1955
|
+
return_type = opts[:debug_return_type] || 'LeaseRecurringPaymentMessage'
|
|
1956
|
+
|
|
1957
|
+
# auth_names
|
|
1958
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
1959
|
+
|
|
1960
|
+
new_options = opts.merge(
|
|
1961
|
+
:operation => :"LeasesApi.get_recurring_lease_payments_by_id",
|
|
1962
|
+
:header_params => header_params,
|
|
1963
|
+
:query_params => query_params,
|
|
1964
|
+
:form_params => form_params,
|
|
1965
|
+
:body => post_body,
|
|
1966
|
+
:auth_names => auth_names,
|
|
1967
|
+
:return_type => return_type
|
|
1968
|
+
)
|
|
1969
|
+
|
|
1970
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1971
|
+
if @api_client.config.debugging
|
|
1972
|
+
@api_client.config.logger.debug "API called: LeasesApi#get_recurring_lease_payments_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1973
|
+
end
|
|
1974
|
+
return data, status_code, headers
|
|
1975
|
+
end
|
|
1976
|
+
|
|
1977
|
+
# Retrieve all rent schedules
|
|
1978
|
+
# The rent schedule provides details (dollar amount, day of the month, etc) of the recurring charges that are applied to the lease ledger each rent cycle. A lease may have more than one rent schedule associated with it if the rent terms change within the duration of the lease. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Lease transactions</span> - `View`
|
|
1979
|
+
# @param lease_id [Integer]
|
|
1980
|
+
# @param [Hash] opts the optional parameters
|
|
1981
|
+
# @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.
|
|
1982
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
|
1983
|
+
# @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.
|
|
1984
|
+
# @return [Array<LeaseRentMessage>]
|
|
1985
|
+
def get_rent(lease_id, opts = {})
|
|
1986
|
+
data, _status_code, _headers = get_rent_with_http_info(lease_id, opts)
|
|
1987
|
+
data
|
|
1988
|
+
end
|
|
1989
|
+
|
|
1990
|
+
# Retrieve all rent schedules
|
|
1991
|
+
# The rent schedule provides details (dollar amount, day of the month, etc) of the recurring charges that are applied to the lease ledger each rent cycle. A lease may have more than one rent schedule associated with it if the rent terms change within the duration of the lease. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Lease transactions</span> - `View`
|
|
1992
|
+
# @param lease_id [Integer]
|
|
1993
|
+
# @param [Hash] opts the optional parameters
|
|
1994
|
+
# @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.
|
|
1995
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
|
1996
|
+
# @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.
|
|
1997
|
+
# @return [Array<(Array<LeaseRentMessage>, Integer, Hash)>] Array<LeaseRentMessage> data, response status code and response headers
|
|
1998
|
+
def get_rent_with_http_info(lease_id, opts = {})
|
|
1999
|
+
if @api_client.config.debugging
|
|
2000
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.get_rent ...'
|
|
2001
|
+
end
|
|
2002
|
+
# verify the required parameter 'lease_id' is set
|
|
2003
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
2004
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_rent"
|
|
2005
|
+
end
|
|
2006
|
+
# resource path
|
|
2007
|
+
local_var_path = '/v1/leases/{leaseId}/rent'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
2008
|
+
|
|
2009
|
+
# query parameters
|
|
2010
|
+
query_params = opts[:query_params] || {}
|
|
2011
|
+
query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
|
2012
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
2013
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2014
|
+
|
|
2015
|
+
# header parameters
|
|
2016
|
+
header_params = opts[:header_params] || {}
|
|
2017
|
+
# HTTP header 'Accept' (if needed)
|
|
2018
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2019
|
+
|
|
2020
|
+
# form parameters
|
|
2021
|
+
form_params = opts[:form_params] || {}
|
|
2022
|
+
|
|
2023
|
+
# http body (model)
|
|
2024
|
+
post_body = opts[:debug_body]
|
|
2025
|
+
|
|
2026
|
+
# return_type
|
|
2027
|
+
return_type = opts[:debug_return_type] || 'Array<LeaseRentMessage>'
|
|
2028
|
+
|
|
2029
|
+
# auth_names
|
|
2030
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
2031
|
+
|
|
2032
|
+
new_options = opts.merge(
|
|
2033
|
+
:operation => :"LeasesApi.get_rent",
|
|
2034
|
+
:header_params => header_params,
|
|
2035
|
+
:query_params => query_params,
|
|
2036
|
+
:form_params => form_params,
|
|
2037
|
+
:body => post_body,
|
|
2038
|
+
:auth_names => auth_names,
|
|
2039
|
+
:return_type => return_type
|
|
2040
|
+
)
|
|
2041
|
+
|
|
2042
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2043
|
+
if @api_client.config.debugging
|
|
2044
|
+
@api_client.config.logger.debug "API called: LeasesApi#get_rent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2045
|
+
end
|
|
2046
|
+
return data, status_code, headers
|
|
2047
|
+
end
|
|
2048
|
+
|
|
2049
|
+
# Retrieve a rent schedule
|
|
2050
|
+
# Retrieves a specific rent schedule for a lease. The rent schedule provides details (dollar amount, day of the month, etc) of the recurring charges that are applied to the lease ledger each rent cycle. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Lease transactions</span> - `View`
|
|
2051
|
+
# @param lease_id [Integer]
|
|
2052
|
+
# @param rent_id [Integer]
|
|
2053
|
+
# @param [Hash] opts the optional parameters
|
|
2054
|
+
# @return [LeaseRentMessage]
|
|
2055
|
+
def get_rent_by_id(lease_id, rent_id, opts = {})
|
|
2056
|
+
data, _status_code, _headers = get_rent_by_id_with_http_info(lease_id, rent_id, opts)
|
|
2057
|
+
data
|
|
2058
|
+
end
|
|
2059
|
+
|
|
2060
|
+
# Retrieve a rent schedule
|
|
2061
|
+
# Retrieves a specific rent schedule for a lease. The rent schedule provides details (dollar amount, day of the month, etc) of the recurring charges that are applied to the lease ledger each rent cycle. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Lease transactions</span> - `View`
|
|
2062
|
+
# @param lease_id [Integer]
|
|
2063
|
+
# @param rent_id [Integer]
|
|
2064
|
+
# @param [Hash] opts the optional parameters
|
|
2065
|
+
# @return [Array<(LeaseRentMessage, Integer, Hash)>] LeaseRentMessage data, response status code and response headers
|
|
2066
|
+
def get_rent_by_id_with_http_info(lease_id, rent_id, opts = {})
|
|
2067
|
+
if @api_client.config.debugging
|
|
2068
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.get_rent_by_id ...'
|
|
2069
|
+
end
|
|
2070
|
+
# verify the required parameter 'lease_id' is set
|
|
2071
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
2072
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_rent_by_id"
|
|
2073
|
+
end
|
|
2074
|
+
# verify the required parameter 'rent_id' is set
|
|
2075
|
+
if @api_client.config.client_side_validation && rent_id.nil?
|
|
2076
|
+
fail ArgumentError, "Missing the required parameter 'rent_id' when calling LeasesApi.get_rent_by_id"
|
|
2077
|
+
end
|
|
2078
|
+
# resource path
|
|
2079
|
+
local_var_path = '/v1/leases/{leaseId}/rent/{rentId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'rentId' + '}', CGI.escape(rent_id.to_s))
|
|
2080
|
+
|
|
2081
|
+
# query parameters
|
|
2082
|
+
query_params = opts[:query_params] || {}
|
|
2083
|
+
|
|
2084
|
+
# header parameters
|
|
2085
|
+
header_params = opts[:header_params] || {}
|
|
2086
|
+
# HTTP header 'Accept' (if needed)
|
|
2087
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2088
|
+
|
|
2089
|
+
# form parameters
|
|
2090
|
+
form_params = opts[:form_params] || {}
|
|
2091
|
+
|
|
2092
|
+
# http body (model)
|
|
2093
|
+
post_body = opts[:debug_body]
|
|
2094
|
+
|
|
2095
|
+
# return_type
|
|
2096
|
+
return_type = opts[:debug_return_type] || 'LeaseRentMessage'
|
|
2097
|
+
|
|
2098
|
+
# auth_names
|
|
2099
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
2100
|
+
|
|
2101
|
+
new_options = opts.merge(
|
|
2102
|
+
:operation => :"LeasesApi.get_rent_by_id",
|
|
2103
|
+
:header_params => header_params,
|
|
2104
|
+
:query_params => query_params,
|
|
2105
|
+
:form_params => form_params,
|
|
2106
|
+
:body => post_body,
|
|
2107
|
+
:auth_names => auth_names,
|
|
2108
|
+
:return_type => return_type
|
|
2109
|
+
)
|
|
2110
|
+
|
|
2111
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2112
|
+
if @api_client.config.debugging
|
|
2113
|
+
@api_client.config.logger.debug "API called: LeasesApi#get_rent_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2114
|
+
end
|
|
2115
|
+
return data, status_code, headers
|
|
2116
|
+
end
|
|
2117
|
+
|
|
2118
|
+
# Retrieve all lease renewals
|
|
2119
|
+
# Retrieves all lease renewals. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Leases</span> - `View`
|
|
2120
|
+
# @param lease_id [Integer]
|
|
2121
|
+
# @param [Hash] opts the optional parameters
|
|
2122
|
+
# @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.
|
|
2123
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
|
2124
|
+
# @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.
|
|
2125
|
+
# @return [Array<LeaseRenewalMessage>]
|
|
2126
|
+
def lease_renewals_external_api_read_get_all_lease_renewals(lease_id, opts = {})
|
|
2127
|
+
data, _status_code, _headers = lease_renewals_external_api_read_get_all_lease_renewals_with_http_info(lease_id, opts)
|
|
2128
|
+
data
|
|
2129
|
+
end
|
|
2130
|
+
|
|
2131
|
+
# Retrieve all lease renewals
|
|
2132
|
+
# Retrieves all lease renewals. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Leases</span> - `View`
|
|
2133
|
+
# @param lease_id [Integer]
|
|
2134
|
+
# @param [Hash] opts the optional parameters
|
|
2135
|
+
# @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.
|
|
2136
|
+
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0.
|
|
2137
|
+
# @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.
|
|
2138
|
+
# @return [Array<(Array<LeaseRenewalMessage>, Integer, Hash)>] Array<LeaseRenewalMessage> data, response status code and response headers
|
|
2139
|
+
def lease_renewals_external_api_read_get_all_lease_renewals_with_http_info(lease_id, opts = {})
|
|
2140
|
+
if @api_client.config.debugging
|
|
2141
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.lease_renewals_external_api_read_get_all_lease_renewals ...'
|
|
2142
|
+
end
|
|
2143
|
+
# verify the required parameter 'lease_id' is set
|
|
2144
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
2145
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.lease_renewals_external_api_read_get_all_lease_renewals"
|
|
2146
|
+
end
|
|
2147
|
+
# resource path
|
|
2148
|
+
local_var_path = '/v1/leases/{leaseId}/renewals'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
2149
|
+
|
|
2150
|
+
# query parameters
|
|
2151
|
+
query_params = opts[:query_params] || {}
|
|
2152
|
+
query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
|
2153
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
2154
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2155
|
+
|
|
2156
|
+
# header parameters
|
|
2157
|
+
header_params = opts[:header_params] || {}
|
|
2158
|
+
# HTTP header 'Accept' (if needed)
|
|
2159
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2160
|
+
|
|
2161
|
+
# form parameters
|
|
2162
|
+
form_params = opts[:form_params] || {}
|
|
2163
|
+
|
|
2164
|
+
# http body (model)
|
|
2165
|
+
post_body = opts[:debug_body]
|
|
2166
|
+
|
|
2167
|
+
# return_type
|
|
2168
|
+
return_type = opts[:debug_return_type] || 'Array<LeaseRenewalMessage>'
|
|
2169
|
+
|
|
2170
|
+
# auth_names
|
|
2171
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
2172
|
+
|
|
2173
|
+
new_options = opts.merge(
|
|
2174
|
+
:operation => :"LeasesApi.lease_renewals_external_api_read_get_all_lease_renewals",
|
|
2175
|
+
:header_params => header_params,
|
|
2176
|
+
:query_params => query_params,
|
|
2177
|
+
:form_params => form_params,
|
|
2178
|
+
:body => post_body,
|
|
2179
|
+
:auth_names => auth_names,
|
|
2180
|
+
:return_type => return_type
|
|
2181
|
+
)
|
|
2182
|
+
|
|
2183
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2184
|
+
if @api_client.config.debugging
|
|
2185
|
+
@api_client.config.logger.debug "API called: LeasesApi#lease_renewals_external_api_read_get_all_lease_renewals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2186
|
+
end
|
|
2187
|
+
return data, status_code, headers
|
|
2188
|
+
end
|
|
2189
|
+
|
|
2190
|
+
# Retrieve a lease renewal
|
|
2191
|
+
# Retrieves a lease renewal. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Leases</span> - `View`
|
|
2192
|
+
# @param lease_id [Integer]
|
|
2193
|
+
# @param renewal_id [Integer]
|
|
2194
|
+
# @param [Hash] opts the optional parameters
|
|
2195
|
+
# @return [LeaseRenewalMessage]
|
|
2196
|
+
def lease_renewals_external_api_read_get_lease_renewal_by_id(lease_id, renewal_id, opts = {})
|
|
2197
|
+
data, _status_code, _headers = lease_renewals_external_api_read_get_lease_renewal_by_id_with_http_info(lease_id, renewal_id, opts)
|
|
2198
|
+
data
|
|
2199
|
+
end
|
|
2200
|
+
|
|
2201
|
+
# Retrieve a lease renewal
|
|
2202
|
+
# Retrieves a lease renewal. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Leases</span> - `View`
|
|
2203
|
+
# @param lease_id [Integer]
|
|
2204
|
+
# @param renewal_id [Integer]
|
|
2205
|
+
# @param [Hash] opts the optional parameters
|
|
2206
|
+
# @return [Array<(LeaseRenewalMessage, Integer, Hash)>] LeaseRenewalMessage data, response status code and response headers
|
|
2207
|
+
def lease_renewals_external_api_read_get_lease_renewal_by_id_with_http_info(lease_id, renewal_id, opts = {})
|
|
2208
|
+
if @api_client.config.debugging
|
|
2209
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.lease_renewals_external_api_read_get_lease_renewal_by_id ...'
|
|
2210
|
+
end
|
|
2211
|
+
# verify the required parameter 'lease_id' is set
|
|
2212
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
2213
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.lease_renewals_external_api_read_get_lease_renewal_by_id"
|
|
2214
|
+
end
|
|
2215
|
+
# verify the required parameter 'renewal_id' is set
|
|
2216
|
+
if @api_client.config.client_side_validation && renewal_id.nil?
|
|
2217
|
+
fail ArgumentError, "Missing the required parameter 'renewal_id' when calling LeasesApi.lease_renewals_external_api_read_get_lease_renewal_by_id"
|
|
2218
|
+
end
|
|
2219
|
+
# resource path
|
|
2220
|
+
local_var_path = '/v1/leases/{leaseId}/renewals/{renewalId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'renewalId' + '}', CGI.escape(renewal_id.to_s))
|
|
2221
|
+
|
|
2222
|
+
# query parameters
|
|
2223
|
+
query_params = opts[:query_params] || {}
|
|
2224
|
+
|
|
2225
|
+
# header parameters
|
|
2226
|
+
header_params = opts[:header_params] || {}
|
|
2227
|
+
# HTTP header 'Accept' (if needed)
|
|
2228
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2229
|
+
|
|
2230
|
+
# form parameters
|
|
2231
|
+
form_params = opts[:form_params] || {}
|
|
2232
|
+
|
|
2233
|
+
# http body (model)
|
|
2234
|
+
post_body = opts[:debug_body]
|
|
2235
|
+
|
|
2236
|
+
# return_type
|
|
2237
|
+
return_type = opts[:debug_return_type] || 'LeaseRenewalMessage'
|
|
2238
|
+
|
|
2239
|
+
# auth_names
|
|
2240
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
2241
|
+
|
|
2242
|
+
new_options = opts.merge(
|
|
2243
|
+
:operation => :"LeasesApi.lease_renewals_external_api_read_get_lease_renewal_by_id",
|
|
2244
|
+
:header_params => header_params,
|
|
2245
|
+
:query_params => query_params,
|
|
2246
|
+
:form_params => form_params,
|
|
2247
|
+
:body => post_body,
|
|
2248
|
+
:auth_names => auth_names,
|
|
2249
|
+
:return_type => return_type
|
|
2250
|
+
)
|
|
2251
|
+
|
|
2252
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2253
|
+
if @api_client.config.debugging
|
|
2254
|
+
@api_client.config.logger.debug "API called: LeasesApi#lease_renewals_external_api_read_get_lease_renewal_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2255
|
+
end
|
|
2256
|
+
return data, status_code, headers
|
|
2257
|
+
end
|
|
2258
|
+
|
|
2259
|
+
# Create a lease renewal
|
|
2260
|
+
# Creates a lease renewal. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Leases</span> - `View` `Edit`
|
|
2261
|
+
# @param lease_id [Integer]
|
|
2262
|
+
# @param lease_renewal_post_message [LeaseRenewalPostMessage]
|
|
2263
|
+
# @param [Hash] opts the optional parameters
|
|
2264
|
+
# @return [LeaseRenewalMessage]
|
|
2265
|
+
def lease_renewals_external_api_write_create_lease_renewal(lease_id, lease_renewal_post_message, opts = {})
|
|
2266
|
+
data, _status_code, _headers = lease_renewals_external_api_write_create_lease_renewal_with_http_info(lease_id, lease_renewal_post_message, opts)
|
|
2267
|
+
data
|
|
2268
|
+
end
|
|
2269
|
+
|
|
2270
|
+
# Create a lease renewal
|
|
2271
|
+
# Creates a lease renewal. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Leases</span> - `View` `Edit`
|
|
2272
|
+
# @param lease_id [Integer]
|
|
2273
|
+
# @param lease_renewal_post_message [LeaseRenewalPostMessage]
|
|
2274
|
+
# @param [Hash] opts the optional parameters
|
|
2275
|
+
# @return [Array<(LeaseRenewalMessage, Integer, Hash)>] LeaseRenewalMessage data, response status code and response headers
|
|
2276
|
+
def lease_renewals_external_api_write_create_lease_renewal_with_http_info(lease_id, lease_renewal_post_message, opts = {})
|
|
2277
|
+
if @api_client.config.debugging
|
|
2278
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.lease_renewals_external_api_write_create_lease_renewal ...'
|
|
2279
|
+
end
|
|
2280
|
+
# verify the required parameter 'lease_id' is set
|
|
2281
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
2282
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.lease_renewals_external_api_write_create_lease_renewal"
|
|
2283
|
+
end
|
|
2284
|
+
# verify the required parameter 'lease_renewal_post_message' is set
|
|
2285
|
+
if @api_client.config.client_side_validation && lease_renewal_post_message.nil?
|
|
2286
|
+
fail ArgumentError, "Missing the required parameter 'lease_renewal_post_message' when calling LeasesApi.lease_renewals_external_api_write_create_lease_renewal"
|
|
2287
|
+
end
|
|
2288
|
+
# resource path
|
|
2289
|
+
local_var_path = '/v1/leases/{leaseId}/renewals'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
2290
|
+
|
|
2291
|
+
# query parameters
|
|
2292
|
+
query_params = opts[:query_params] || {}
|
|
2293
|
+
|
|
2294
|
+
# header parameters
|
|
2295
|
+
header_params = opts[:header_params] || {}
|
|
2296
|
+
# HTTP header 'Accept' (if needed)
|
|
2297
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2298
|
+
# HTTP header 'Content-Type'
|
|
2299
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2300
|
+
if !content_type.nil?
|
|
2301
|
+
header_params['Content-Type'] = content_type
|
|
2302
|
+
end
|
|
2303
|
+
|
|
2304
|
+
# form parameters
|
|
2305
|
+
form_params = opts[:form_params] || {}
|
|
2306
|
+
|
|
2307
|
+
# http body (model)
|
|
2308
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(lease_renewal_post_message)
|
|
2309
|
+
|
|
2310
|
+
# return_type
|
|
2311
|
+
return_type = opts[:debug_return_type] || 'LeaseRenewalMessage'
|
|
2312
|
+
|
|
2313
|
+
# auth_names
|
|
2314
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
2315
|
+
|
|
2316
|
+
new_options = opts.merge(
|
|
2317
|
+
:operation => :"LeasesApi.lease_renewals_external_api_write_create_lease_renewal",
|
|
2318
|
+
:header_params => header_params,
|
|
2319
|
+
:query_params => query_params,
|
|
2320
|
+
:form_params => form_params,
|
|
2321
|
+
:body => post_body,
|
|
2322
|
+
:auth_names => auth_names,
|
|
2323
|
+
:return_type => return_type
|
|
2324
|
+
)
|
|
2325
|
+
|
|
2326
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2327
|
+
if @api_client.config.debugging
|
|
2328
|
+
@api_client.config.logger.debug "API called: LeasesApi#lease_renewals_external_api_write_create_lease_renewal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2329
|
+
end
|
|
2330
|
+
return data, status_code, headers
|
|
2331
|
+
end
|
|
2332
|
+
|
|
2333
|
+
# Delete a move out
|
|
2334
|
+
# Deletes move out data for a tenant on a given lease. <br /><br /><h4>Required Permission(s):</h4><span class=\"permissionBlock\">Rentals > Leases</span> - `View` `Edit` <br /><span class=\"permissionBlock\">Rentals > Tenants</span> - `View`
|
|
2335
|
+
# @param lease_id [Integer]
|
|
2336
|
+
# @param tenant_id [Integer]
|
|
2337
|
+
# @param [Hash] opts the optional parameters
|
|
2338
|
+
# @return [nil]
|
|
2339
|
+
def undo_tenant_moveout(lease_id, tenant_id, opts = {})
|
|
2340
|
+
undo_tenant_moveout_with_http_info(lease_id, tenant_id, opts)
|
|
2341
|
+
nil
|
|
2342
|
+
end
|
|
2343
|
+
|
|
2344
|
+
# Delete a move out
|
|
2345
|
+
# Deletes move out data for a tenant on a given lease. <br /><br /><h4>Required Permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Leases</span> - `View` `Edit` <br /><span class=\"permissionBlock\">Rentals &gt; Tenants</span> - `View`
|
|
2346
|
+
# @param lease_id [Integer]
|
|
2347
|
+
# @param tenant_id [Integer]
|
|
2348
|
+
# @param [Hash] opts the optional parameters
|
|
2349
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2350
|
+
def undo_tenant_moveout_with_http_info(lease_id, tenant_id, opts = {})
|
|
2351
|
+
if @api_client.config.debugging
|
|
2352
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.undo_tenant_moveout ...'
|
|
2353
|
+
end
|
|
2354
|
+
# verify the required parameter 'lease_id' is set
|
|
2355
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
2356
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.undo_tenant_moveout"
|
|
2357
|
+
end
|
|
2358
|
+
# verify the required parameter 'tenant_id' is set
|
|
2359
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
2360
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling LeasesApi.undo_tenant_moveout"
|
|
2361
|
+
end
|
|
2362
|
+
# resource path
|
|
2363
|
+
local_var_path = '/v1/leases/{leaseId}/moveouts/{tenantId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
|
|
2364
|
+
|
|
2365
|
+
# query parameters
|
|
2366
|
+
query_params = opts[:query_params] || {}
|
|
2367
|
+
|
|
2368
|
+
# header parameters
|
|
2369
|
+
header_params = opts[:header_params] || {}
|
|
2370
|
+
# HTTP header 'Accept' (if needed)
|
|
2371
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2372
|
+
|
|
2373
|
+
# form parameters
|
|
2374
|
+
form_params = opts[:form_params] || {}
|
|
2375
|
+
|
|
2376
|
+
# http body (model)
|
|
2377
|
+
post_body = opts[:debug_body]
|
|
2378
|
+
|
|
2379
|
+
# return_type
|
|
2380
|
+
return_type = opts[:debug_return_type]
|
|
2381
|
+
|
|
2382
|
+
# auth_names
|
|
2383
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
2384
|
+
|
|
2385
|
+
new_options = opts.merge(
|
|
2386
|
+
:operation => :"LeasesApi.undo_tenant_moveout",
|
|
2387
|
+
:header_params => header_params,
|
|
2388
|
+
:query_params => query_params,
|
|
2389
|
+
:form_params => form_params,
|
|
2390
|
+
:body => post_body,
|
|
2391
|
+
:auth_names => auth_names,
|
|
2392
|
+
:return_type => return_type
|
|
2393
|
+
)
|
|
2394
|
+
|
|
2395
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
2396
|
+
if @api_client.config.debugging
|
|
2397
|
+
@api_client.config.logger.debug "API called: LeasesApi#undo_tenant_moveout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2398
|
+
end
|
|
2399
|
+
return data, status_code, headers
|
|
2400
|
+
end
|
|
2401
|
+
|
|
2402
|
+
# Update a lease
|
|
2403
|
+
# Update a signed lease. <br /><br /><strong>NOTE:</strong> Any field not included in the update request will be set to either an empty string or `null` in the database depending on the field definition. <br />The recommended workflow to ensure no data is inadvertently overwritten is to execute a `GET` request for the resource you're about to update and then use this response to fill any of the fields that are not being updated. <br /><br /><span class=\"permissionBlock\">Rentals > Leases</span> - `View` `Edit`
|
|
2404
|
+
# @param lease_id [Integer]
|
|
2405
|
+
# @param lease_put_message [LeasePutMessage]
|
|
2406
|
+
# @param [Hash] opts the optional parameters
|
|
2407
|
+
# @return [LeaseMessage]
|
|
2408
|
+
def update_lease(lease_id, lease_put_message, opts = {})
|
|
2409
|
+
data, _status_code, _headers = update_lease_with_http_info(lease_id, lease_put_message, opts)
|
|
2410
|
+
data
|
|
2411
|
+
end
|
|
2412
|
+
|
|
2413
|
+
# Update a lease
|
|
2414
|
+
# Update a signed lease. <br /><br /><strong>NOTE:</strong> Any field not included in the update request will be set to either an empty string or `null` in the database depending on the field definition. <br />The recommended workflow to ensure no data is inadvertently overwritten is to execute a `GET` request for the resource you're about to update and then use this response to fill any of the fields that are not being updated. <br /><br /><span class=\"permissionBlock\">Rentals &gt; Leases</span> - `View` `Edit`
|
|
2415
|
+
# @param lease_id [Integer]
|
|
2416
|
+
# @param lease_put_message [LeasePutMessage]
|
|
2417
|
+
# @param [Hash] opts the optional parameters
|
|
2418
|
+
# @return [Array<(LeaseMessage, Integer, Hash)>] LeaseMessage data, response status code and response headers
|
|
2419
|
+
def update_lease_with_http_info(lease_id, lease_put_message, opts = {})
|
|
2420
|
+
if @api_client.config.debugging
|
|
2421
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.update_lease ...'
|
|
2422
|
+
end
|
|
2423
|
+
# verify the required parameter 'lease_id' is set
|
|
2424
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
2425
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.update_lease"
|
|
2426
|
+
end
|
|
2427
|
+
# verify the required parameter 'lease_put_message' is set
|
|
2428
|
+
if @api_client.config.client_side_validation && lease_put_message.nil?
|
|
2429
|
+
fail ArgumentError, "Missing the required parameter 'lease_put_message' when calling LeasesApi.update_lease"
|
|
2430
|
+
end
|
|
2431
|
+
# resource path
|
|
2432
|
+
local_var_path = '/v1/leases/{leaseId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s))
|
|
2433
|
+
|
|
2434
|
+
# query parameters
|
|
2435
|
+
query_params = opts[:query_params] || {}
|
|
2436
|
+
|
|
2437
|
+
# header parameters
|
|
2438
|
+
header_params = opts[:header_params] || {}
|
|
2439
|
+
# HTTP header 'Accept' (if needed)
|
|
2440
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2441
|
+
# HTTP header 'Content-Type'
|
|
2442
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2443
|
+
if !content_type.nil?
|
|
2444
|
+
header_params['Content-Type'] = content_type
|
|
2445
|
+
end
|
|
2446
|
+
|
|
2447
|
+
# form parameters
|
|
2448
|
+
form_params = opts[:form_params] || {}
|
|
2449
|
+
|
|
2450
|
+
# http body (model)
|
|
2451
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(lease_put_message)
|
|
2452
|
+
|
|
2453
|
+
# return_type
|
|
2454
|
+
return_type = opts[:debug_return_type] || 'LeaseMessage'
|
|
2455
|
+
|
|
2456
|
+
# auth_names
|
|
2457
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
2458
|
+
|
|
2459
|
+
new_options = opts.merge(
|
|
2460
|
+
:operation => :"LeasesApi.update_lease",
|
|
2461
|
+
:header_params => header_params,
|
|
2462
|
+
:query_params => query_params,
|
|
2463
|
+
:form_params => form_params,
|
|
2464
|
+
:body => post_body,
|
|
2465
|
+
:auth_names => auth_names,
|
|
2466
|
+
:return_type => return_type
|
|
2467
|
+
)
|
|
2468
|
+
|
|
2469
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2470
|
+
if @api_client.config.debugging
|
|
2471
|
+
@api_client.config.logger.debug "API called: LeasesApi#update_lease\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2472
|
+
end
|
|
2473
|
+
return data, status_code, headers
|
|
2474
|
+
end
|
|
2475
|
+
|
|
2476
|
+
# Update a charge
|
|
2477
|
+
# Updates a charge. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Lease transactions</span> - `View` `Edit`
|
|
2478
|
+
# @param lease_id [Integer]
|
|
2479
|
+
# @param charge_id [Integer]
|
|
2480
|
+
# @param lease_charge_put_message [LeaseChargePutMessage]
|
|
2481
|
+
# @param [Hash] opts the optional parameters
|
|
2482
|
+
# @return [LeaseTransactionMessage]
|
|
2483
|
+
def update_lease_charge(lease_id, charge_id, lease_charge_put_message, opts = {})
|
|
2484
|
+
data, _status_code, _headers = update_lease_charge_with_http_info(lease_id, charge_id, lease_charge_put_message, opts)
|
|
2485
|
+
data
|
|
2486
|
+
end
|
|
2487
|
+
|
|
2488
|
+
# Update a charge
|
|
2489
|
+
# Updates a charge. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Lease transactions</span> - `View` `Edit`
|
|
2490
|
+
# @param lease_id [Integer]
|
|
2491
|
+
# @param charge_id [Integer]
|
|
2492
|
+
# @param lease_charge_put_message [LeaseChargePutMessage]
|
|
2493
|
+
# @param [Hash] opts the optional parameters
|
|
2494
|
+
# @return [Array<(LeaseTransactionMessage, Integer, Hash)>] LeaseTransactionMessage data, response status code and response headers
|
|
2495
|
+
def update_lease_charge_with_http_info(lease_id, charge_id, lease_charge_put_message, opts = {})
|
|
2496
|
+
if @api_client.config.debugging
|
|
2497
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.update_lease_charge ...'
|
|
2498
|
+
end
|
|
2499
|
+
# verify the required parameter 'lease_id' is set
|
|
2500
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
2501
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.update_lease_charge"
|
|
2502
|
+
end
|
|
2503
|
+
# verify the required parameter 'charge_id' is set
|
|
2504
|
+
if @api_client.config.client_side_validation && charge_id.nil?
|
|
2505
|
+
fail ArgumentError, "Missing the required parameter 'charge_id' when calling LeasesApi.update_lease_charge"
|
|
2506
|
+
end
|
|
2507
|
+
# verify the required parameter 'lease_charge_put_message' is set
|
|
2508
|
+
if @api_client.config.client_side_validation && lease_charge_put_message.nil?
|
|
2509
|
+
fail ArgumentError, "Missing the required parameter 'lease_charge_put_message' when calling LeasesApi.update_lease_charge"
|
|
2510
|
+
end
|
|
2511
|
+
# resource path
|
|
2512
|
+
local_var_path = '/v1/leases/{leaseId}/charges/{chargeId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'chargeId' + '}', CGI.escape(charge_id.to_s))
|
|
2513
|
+
|
|
2514
|
+
# query parameters
|
|
2515
|
+
query_params = opts[:query_params] || {}
|
|
2516
|
+
|
|
2517
|
+
# header parameters
|
|
2518
|
+
header_params = opts[:header_params] || {}
|
|
2519
|
+
# HTTP header 'Accept' (if needed)
|
|
2520
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2521
|
+
# HTTP header 'Content-Type'
|
|
2522
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2523
|
+
if !content_type.nil?
|
|
2524
|
+
header_params['Content-Type'] = content_type
|
|
2525
|
+
end
|
|
2526
|
+
|
|
2527
|
+
# form parameters
|
|
2528
|
+
form_params = opts[:form_params] || {}
|
|
2529
|
+
|
|
2530
|
+
# http body (model)
|
|
2531
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(lease_charge_put_message)
|
|
2532
|
+
|
|
2533
|
+
# return_type
|
|
2534
|
+
return_type = opts[:debug_return_type] || 'LeaseTransactionMessage'
|
|
2535
|
+
|
|
2536
|
+
# auth_names
|
|
2537
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
2538
|
+
|
|
2539
|
+
new_options = opts.merge(
|
|
2540
|
+
:operation => :"LeasesApi.update_lease_charge",
|
|
2541
|
+
:header_params => header_params,
|
|
2542
|
+
:query_params => query_params,
|
|
2543
|
+
:form_params => form_params,
|
|
2544
|
+
:body => post_body,
|
|
2545
|
+
:auth_names => auth_names,
|
|
2546
|
+
:return_type => return_type
|
|
2547
|
+
)
|
|
2548
|
+
|
|
2549
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2550
|
+
if @api_client.config.debugging
|
|
2551
|
+
@api_client.config.logger.debug "API called: LeasesApi#update_lease_charge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2552
|
+
end
|
|
2553
|
+
return data, status_code, headers
|
|
2554
|
+
end
|
|
2555
|
+
|
|
2556
|
+
# Update a note
|
|
2557
|
+
# Updates a lease note. <br /><br /><strong>NOTE:</strong> Any field not included in the update request will be set to either an empty string or `null` in the database depending on the field definition. <br />The recommended workflow to ensure no data is inadvertently overwritten is to execute a `GET` request for the resource you're about to update and then use this response to fill any of the fields that are not being updated. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals > Leases</span> - `View` `Edit`
|
|
2558
|
+
# @param lease_id [Integer]
|
|
2559
|
+
# @param note_id [Integer]
|
|
2560
|
+
# @param note_put_message [NotePutMessage]
|
|
2561
|
+
# @param [Hash] opts the optional parameters
|
|
2562
|
+
# @return [NoteMessage]
|
|
2563
|
+
def update_lease_note(lease_id, note_id, note_put_message, opts = {})
|
|
2564
|
+
data, _status_code, _headers = update_lease_note_with_http_info(lease_id, note_id, note_put_message, opts)
|
|
2565
|
+
data
|
|
2566
|
+
end
|
|
2567
|
+
|
|
2568
|
+
# Update a note
|
|
2569
|
+
# Updates a lease note. <br /><br /><strong>NOTE:</strong> Any field not included in the update request will be set to either an empty string or `null` in the database depending on the field definition. <br />The recommended workflow to ensure no data is inadvertently overwritten is to execute a `GET` request for the resource you're about to update and then use this response to fill any of the fields that are not being updated. <br /><br /><h4>Required permission(s):</h4><span class=\"permissionBlock\">Rentals &gt; Leases</span> - `View` `Edit`
|
|
2570
|
+
# @param lease_id [Integer]
|
|
2571
|
+
# @param note_id [Integer]
|
|
2572
|
+
# @param note_put_message [NotePutMessage]
|
|
2573
|
+
# @param [Hash] opts the optional parameters
|
|
2574
|
+
# @return [Array<(NoteMessage, Integer, Hash)>] NoteMessage data, response status code and response headers
|
|
2575
|
+
def update_lease_note_with_http_info(lease_id, note_id, note_put_message, opts = {})
|
|
2576
|
+
if @api_client.config.debugging
|
|
2577
|
+
@api_client.config.logger.debug 'Calling API: LeasesApi.update_lease_note ...'
|
|
2578
|
+
end
|
|
2579
|
+
# verify the required parameter 'lease_id' is set
|
|
2580
|
+
if @api_client.config.client_side_validation && lease_id.nil?
|
|
2581
|
+
fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.update_lease_note"
|
|
2582
|
+
end
|
|
2583
|
+
# verify the required parameter 'note_id' is set
|
|
2584
|
+
if @api_client.config.client_side_validation && note_id.nil?
|
|
2585
|
+
fail ArgumentError, "Missing the required parameter 'note_id' when calling LeasesApi.update_lease_note"
|
|
2586
|
+
end
|
|
2587
|
+
# verify the required parameter 'note_put_message' is set
|
|
2588
|
+
if @api_client.config.client_side_validation && note_put_message.nil?
|
|
2589
|
+
fail ArgumentError, "Missing the required parameter 'note_put_message' when calling LeasesApi.update_lease_note"
|
|
2590
|
+
end
|
|
2591
|
+
# resource path
|
|
2592
|
+
local_var_path = '/v1/leases/{leaseId}/notes/{noteId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'noteId' + '}', CGI.escape(note_id.to_s))
|
|
2593
|
+
|
|
2594
|
+
# query parameters
|
|
2595
|
+
query_params = opts[:query_params] || {}
|
|
2596
|
+
|
|
2597
|
+
# header parameters
|
|
2598
|
+
header_params = opts[:header_params] || {}
|
|
2599
|
+
# HTTP header 'Accept' (if needed)
|
|
2600
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2601
|
+
# HTTP header 'Content-Type'
|
|
2602
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2603
|
+
if !content_type.nil?
|
|
2604
|
+
header_params['Content-Type'] = content_type
|
|
2605
|
+
end
|
|
2606
|
+
|
|
2607
|
+
# form parameters
|
|
2608
|
+
form_params = opts[:form_params] || {}
|
|
2609
|
+
|
|
2610
|
+
# http body (model)
|
|
2611
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(note_put_message)
|
|
2612
|
+
|
|
2613
|
+
# return_type
|
|
2614
|
+
return_type = opts[:debug_return_type] || 'NoteMessage'
|
|
2615
|
+
|
|
2616
|
+
# auth_names
|
|
2617
|
+
auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret']
|
|
2618
|
+
|
|
2619
|
+
new_options = opts.merge(
|
|
2620
|
+
:operation => :"LeasesApi.update_lease_note",
|
|
2621
|
+
:header_params => header_params,
|
|
2622
|
+
:query_params => query_params,
|
|
2623
|
+
:form_params => form_params,
|
|
2624
|
+
:body => post_body,
|
|
2625
|
+
:auth_names => auth_names,
|
|
2626
|
+
:return_type => return_type
|
|
2627
|
+
)
|
|
2628
|
+
|
|
2629
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2630
|
+
if @api_client.config.debugging
|
|
2631
|
+
@api_client.config.logger.debug "API called: LeasesApi#update_lease_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2632
|
+
end
|
|
2633
|
+
return data, status_code, headers
|
|
2634
|
+
end
|
|
2635
|
+
end
|
|
2636
|
+
end
|