buildium-ruby 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1229) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/ci.yml +27 -0
  3. data/.github/workflows/publish.yml +48 -0
  4. data/.gitignore +39 -0
  5. data/.openapi-generator/FILES +1215 -0
  6. data/.openapi-generator/VERSION +1 -0
  7. data/.openapi-generator/templates/ruby-client/gemspec.mustache +37 -0
  8. data/.openapi-generator/templates/ruby-client/partial_model_generic.mustache +371 -0
  9. data/.openapi-generator/templates/ruby-client/rubocop.mustache +124 -0
  10. data/.openapi-generator-ignore +26 -0
  11. data/.rspec +2 -0
  12. data/.rubocop.yml +124 -0
  13. data/CUSTOMIZATIONS.md +11 -0
  14. data/DOCS.md +811 -0
  15. data/Gemfile +9 -0
  16. data/Gemfile.lock +75 -0
  17. data/README.md +118 -0
  18. data/Rakefile +10 -0
  19. data/bin/CUSTOMIZATIONS.md +11 -0
  20. data/bin/README.md +118 -0
  21. data/bin/config.yml +9 -0
  22. data/bin/rebuild.sh +49 -0
  23. data/bin/swagger.json +52218 -0
  24. data/buildium-ruby.gemspec +39 -0
  25. data/docs/AccountInfoMessage.md +26 -0
  26. data/docs/AccountingApi.md +2041 -0
  27. data/docs/AccountingEntityMessage.md +22 -0
  28. data/docs/AccountingEntitySaveMessage.md +20 -0
  29. data/docs/AccountingLockPeriodMessage.md +22 -0
  30. data/docs/AccountingSettingsMessage.md +28 -0
  31. data/docs/AddressMessage.md +30 -0
  32. data/docs/AdministrationApi.md +485 -0
  33. data/docs/AllTasksMessage.md +46 -0
  34. data/docs/AnnouncementMessage.md +30 -0
  35. data/docs/AnnouncementPostMessage.md +28 -0
  36. data/docs/AnnouncementSearchMessage.md +26 -0
  37. data/docs/AnnouncementSenderMessage.md +22 -0
  38. data/docs/ApiError.md +20 -0
  39. data/docs/ApiErrorResponse.md +22 -0
  40. data/docs/ApplianceMessage.md +26 -0
  41. data/docs/ApplicantApplicationMessage.md +24 -0
  42. data/docs/ApplicantGroupMessage.md +26 -0
  43. data/docs/ApplicantGroupPostMessage.md +20 -0
  44. data/docs/ApplicantGroupPutMessage.md +22 -0
  45. data/docs/ApplicantGroupSearchMessage.md +26 -0
  46. data/docs/ApplicantMessage.md +36 -0
  47. data/docs/ApplicantPostMessage.md +28 -0
  48. data/docs/ApplicantPutMessage.md +26 -0
  49. data/docs/ApplicantSearchMessage.md +32 -0
  50. data/docs/ApplicantsApi.md +1489 -0
  51. data/docs/ApplicationMessage.md +26 -0
  52. data/docs/ApplicationPutMessage.md +18 -0
  53. data/docs/ApplicationResponseFieldMessage.md +24 -0
  54. data/docs/ApplicationResponseMessage.md +22 -0
  55. data/docs/ApplicationSectionResponseMessage.md +18 -0
  56. data/docs/AssociationApplianceMessage.md +32 -0
  57. data/docs/AssociationAppliancePostMessage.md +32 -0
  58. data/docs/AssociationAppliancePutMessage.md +28 -0
  59. data/docs/AssociationApplianceSearchMessage.md +20 -0
  60. data/docs/AssociationApplianceServiceHistoryMessage.md +24 -0
  61. data/docs/AssociationApplianceServiceHistoryPostMessage.md +22 -0
  62. data/docs/AssociationAppliancesApi.md +646 -0
  63. data/docs/AssociationBoardMemberMessage.md +36 -0
  64. data/docs/AssociationBoardMemberPostMessage.md +24 -0
  65. data/docs/AssociationBoardMemberPutMessage.md +22 -0
  66. data/docs/AssociationBoardMemberSearchMessage.md +24 -0
  67. data/docs/AssociationMessage.md +40 -0
  68. data/docs/AssociationOwnerBoardTermMessage.md +28 -0
  69. data/docs/AssociationOwnerBoardTermPostMessage.md +22 -0
  70. data/docs/AssociationOwnerMessage.md +52 -0
  71. data/docs/AssociationOwnerPostMessage.md +44 -0
  72. data/docs/AssociationOwnerPutMessage.md +38 -0
  73. data/docs/AssociationOwnerToExistingOwnershipAccountPostMessage.md +48 -0
  74. data/docs/AssociationOwnerUnitOccupancyPutMessage.md +18 -0
  75. data/docs/AssociationOwnerUnitOccupancyStatusMessage.md +20 -0
  76. data/docs/AssociationOwnersApi.md +916 -0
  77. data/docs/AssociationOwnershipAccountMessage.md +34 -0
  78. data/docs/AssociationOwnershipAccountPostMessage.md +32 -0
  79. data/docs/AssociationOwnershipAccountPutMessage.md +18 -0
  80. data/docs/AssociationOwnershipAccountSearchMessage.md +28 -0
  81. data/docs/AssociationOwnershipAccountsApi.md +2042 -0
  82. data/docs/AssociationPostMessage.md +32 -0
  83. data/docs/AssociationPreferredVendorMessage.md +34 -0
  84. data/docs/AssociationPreferredVendorPutMessage.md +18 -0
  85. data/docs/AssociationPutMessage.md +34 -0
  86. data/docs/AssociationSearchMessage.md +24 -0
  87. data/docs/AssociationTenantMessage.md +44 -0
  88. data/docs/AssociationTenantPostMessage.md +42 -0
  89. data/docs/AssociationTenantPutMessage.md +38 -0
  90. data/docs/AssociationTenantsApi.md +671 -0
  91. data/docs/AssociationUnitMessage.md +32 -0
  92. data/docs/AssociationUnitPutMessage.md +26 -0
  93. data/docs/AssociationUnitSearchMessage.md +22 -0
  94. data/docs/AssociationUnitsApi.md +659 -0
  95. data/docs/AssociationUnitsPostMessage.md +28 -0
  96. data/docs/AssociationUserSearchMessage.md +34 -0
  97. data/docs/AssociationsApi.md +1235 -0
  98. data/docs/BankAccountCheckAccountingEntitySaveMessage.md +20 -0
  99. data/docs/BankAccountCheckLineMessage.md +28 -0
  100. data/docs/BankAccountCheckLineSaveMessage.md +26 -0
  101. data/docs/BankAccountCheckMessage.md +30 -0
  102. data/docs/BankAccountCheckPayeeMessage.md +22 -0
  103. data/docs/BankAccountCheckPayeeSaveMessage.md +20 -0
  104. data/docs/BankAccountCheckPostMessage.md +26 -0
  105. data/docs/BankAccountCheckPutMessage.md +26 -0
  106. data/docs/BankAccountCheckSearchMessage.md +20 -0
  107. data/docs/BankAccountDepositLineMessage.md +28 -0
  108. data/docs/BankAccountDepositLineSaveMessage.md +26 -0
  109. data/docs/BankAccountDepositMessage.md +28 -0
  110. data/docs/BankAccountDepositPostMessage.md +24 -0
  111. data/docs/BankAccountDepositPutMessage.md +22 -0
  112. data/docs/BankAccountDepositSearchMessage.md +20 -0
  113. data/docs/BankAccountMessage.md +40 -0
  114. data/docs/BankAccountPostMessage.md +30 -0
  115. data/docs/BankAccountPutMessage.md +30 -0
  116. data/docs/BankAccountQuickDepositMessage.md +28 -0
  117. data/docs/BankAccountQuickDepositSaveMessage.md +26 -0
  118. data/docs/BankAccountQuickDepositSearchMessage.md +20 -0
  119. data/docs/BankAccountSearchMessage.md +20 -0
  120. data/docs/BankAccountTransactionMessage.md +36 -0
  121. data/docs/BankAccountTransactionSearchMessage.md +24 -0
  122. data/docs/BankAccountTransferAccountingEntitySaveMessage.md +20 -0
  123. data/docs/BankAccountTransferMessage.md +28 -0
  124. data/docs/BankAccountTransferSaveMessage.md +26 -0
  125. data/docs/BankAccountTransferSearchMessage.md +20 -0
  126. data/docs/BankAccountWithdrawalMessage.md +28 -0
  127. data/docs/BankAccountWithdrawalSaveMessage.md +26 -0
  128. data/docs/BankAccountWithdrawalSearchMessage.md +20 -0
  129. data/docs/BankAccountsApi.md +2224 -0
  130. data/docs/BillFileMessage.md +28 -0
  131. data/docs/BillLineMessage.md +28 -0
  132. data/docs/BillLinePostMessage.md +26 -0
  133. data/docs/BillLinePutMessage.md +28 -0
  134. data/docs/BillMarkupMessage.md +20 -0
  135. data/docs/BillMarkupSaveMessage.md +20 -0
  136. data/docs/BillMessage.md +36 -0
  137. data/docs/BillPaymentAccountingEntityMessage.md +20 -0
  138. data/docs/BillPaymentLineMessage.md +22 -0
  139. data/docs/BillPaymentLinePostMessage.md +20 -0
  140. data/docs/BillPaymentMessage.md +28 -0
  141. data/docs/BillPaymentPostMessage.md +26 -0
  142. data/docs/BillPostMessage.md +30 -0
  143. data/docs/BillPutMessage.md +28 -0
  144. data/docs/BillSearchMessage.md +32 -0
  145. data/docs/BudgetDetailsMessage.md +24 -0
  146. data/docs/BudgetDetailsSaveMessage.md +20 -0
  147. data/docs/BudgetMessage.md +28 -0
  148. data/docs/BudgetMonthlyAmountsMessage.md +40 -0
  149. data/docs/BudgetMonthlyAmountsSaveMessage.md +40 -0
  150. data/docs/BudgetPostMessage.md +26 -0
  151. data/docs/BudgetPutMessage.md +20 -0
  152. data/docs/BudgetSearchMessage.md +22 -0
  153. data/docs/ChargeRecurringTransactionPostMessage.md +32 -0
  154. data/docs/ChargeRecurringTransactionPutMessage.md +34 -0
  155. data/docs/CheckPrintingInfoMessage.md +46 -0
  156. data/docs/CheckPrintingInfoPostMessage.md +46 -0
  157. data/docs/CheckPrintingInfoPutMessage.md +46 -0
  158. data/docs/ClientLeadCreditRequestMessage.md +24 -0
  159. data/docs/ClientLeadMessage.md +38 -0
  160. data/docs/ClientLeadSearchMessage.md +26 -0
  161. data/docs/ClientLeadsApi.md +177 -0
  162. data/docs/CommunicationsApi.md +1238 -0
  163. data/docs/ContactDetailMessage.md +24 -0
  164. data/docs/ContactDetailPhoneMessage.md +22 -0
  165. data/docs/ContactDetailSaveMessage.md +24 -0
  166. data/docs/ContactDetailSavePhoneMessage.md +22 -0
  167. data/docs/ContactInfoMessage.md +24 -0
  168. data/docs/ContactRequestTaskMessage.md +42 -0
  169. data/docs/ContactRequestTaskPostMessage.md +38 -0
  170. data/docs/ContactRequestTaskPutMessage.md +38 -0
  171. data/docs/ContactRequestTaskSearchMessage.md +40 -0
  172. data/docs/CosignerMessage.md +36 -0
  173. data/docs/CreatedByUserMessage.md +24 -0
  174. data/docs/CreditRecurringTransactionPostMessage.md +36 -0
  175. data/docs/DepositDetailMessage.md +20 -0
  176. data/docs/ElectronicPaymentsMessage.md +32 -0
  177. data/docs/EmailMessage.md +24 -0
  178. data/docs/EmailPostMessage.md +30 -0
  179. data/docs/EmailRecipientMessage.md +26 -0
  180. data/docs/EmailSearchMessage.md +26 -0
  181. data/docs/EmailSenderMessage.md +24 -0
  182. data/docs/EmergencyContactMessage.md +24 -0
  183. data/docs/FileCategoryMessage.md +22 -0
  184. data/docs/FileCategoryPostMessage.md +18 -0
  185. data/docs/FileCategoryPutMessage.md +18 -0
  186. data/docs/FileDownloadMessage.md +18 -0
  187. data/docs/FileEntityMessage.md +22 -0
  188. data/docs/FileMessage.md +34 -0
  189. data/docs/FileNamePostMessage.md +18 -0
  190. data/docs/FilePutMessage.md +22 -0
  191. data/docs/FileSearchMessage.md +30 -0
  192. data/docs/FileUploadPostMessage.md +28 -0
  193. data/docs/FileUploadTicketMessage.md +22 -0
  194. data/docs/FilesApi.md +730 -0
  195. data/docs/GLAccountBalanceItemMessage.md +20 -0
  196. data/docs/GLAccountBalanceMessage.md +22 -0
  197. data/docs/GLAccountBalanceSearchMessage.md +26 -0
  198. data/docs/GLAccountMessage.md +46 -0
  199. data/docs/GLAccountPostMessage.md +32 -0
  200. data/docs/GLAccountPutMessage.md +32 -0
  201. data/docs/GLAccountsSearchMessage.md +18 -0
  202. data/docs/GLTransactionMessageV1.md +26 -0
  203. data/docs/GeneralJournalEntryLineSaveMessage.md +24 -0
  204. data/docs/GeneralJournalEntryPostMessage.md +24 -0
  205. data/docs/GeneralJournalEntryPutMessage.md +24 -0
  206. data/docs/GeneralLedgerJournalLineMessage.md +28 -0
  207. data/docs/GeneralLedgerJournalMessage.md +20 -0
  208. data/docs/GeneralLedgerTransactionMessage.md +38 -0
  209. data/docs/GeneralLedgerTransactionSearchMessage.md +26 -0
  210. data/docs/InternalTransactionStatusMessage.md +22 -0
  211. data/docs/JournalLineMessage.md +28 -0
  212. data/docs/JournalMessage.md +20 -0
  213. data/docs/LastUpdatedByUserMessage.md +26 -0
  214. data/docs/LeaseAccountDetailMessage.md +20 -0
  215. data/docs/LeaseChargeLineSaveMessage.md +22 -0
  216. data/docs/LeaseChargePostMessage.md +22 -0
  217. data/docs/LeaseChargePutMessage.md +22 -0
  218. data/docs/LeaseChargeRecurringTransactionMessage.md +40 -0
  219. data/docs/LeaseCosignerPostMessage.md +32 -0
  220. data/docs/LeaseLedgerCreditLinePostMessage.md +20 -0
  221. data/docs/LeaseLedgerCreditPostMessage.md +26 -0
  222. data/docs/LeaseLedgerDepositWithholdingLinePostMessage.md +20 -0
  223. data/docs/LeaseLedgerDepositWithholdingPostMessage.md +24 -0
  224. data/docs/LeaseLedgerPaymentLineSaveMessage.md +20 -0
  225. data/docs/LeaseLedgerPaymentPostMessage.md +30 -0
  226. data/docs/LeaseLedgerRefundLineMessage.md +20 -0
  227. data/docs/LeaseLedgerRefundLinePostMessage.md +20 -0
  228. data/docs/LeaseLedgerRefundMessage.md +34 -0
  229. data/docs/LeaseLedgerRefundPostMessage.md +30 -0
  230. data/docs/LeaseLedgerReversePaymentNSFChargePostMessage.md +20 -0
  231. data/docs/LeaseLedgerReversePaymentOtherBankChargePostMessage.md +20 -0
  232. data/docs/LeaseLedgerReversePaymentPostMessage.md +24 -0
  233. data/docs/LeaseMessage.md +58 -0
  234. data/docs/LeaseMoveOutDataMessage.md +22 -0
  235. data/docs/LeaseMoveOutDataPostMessage.md +22 -0
  236. data/docs/LeaseOutstandingBalanceMessage.md +40 -0
  237. data/docs/LeaseOutstandingBalanceSearchMessage.md +30 -0
  238. data/docs/LeasePostMessage.md +38 -0
  239. data/docs/LeasePutMessage.md +28 -0
  240. data/docs/LeaseRecurringCreditMessage.md +44 -0
  241. data/docs/LeaseRecurringPaymentMessage.md +42 -0
  242. data/docs/LeaseRenewalMessage.md +32 -0
  243. data/docs/LeaseRenewalPostMessage.md +38 -0
  244. data/docs/LeaseRentChargeMessage.md +30 -0
  245. data/docs/LeaseRentChargePostMessage.md +24 -0
  246. data/docs/LeaseRentMessage.md +34 -0
  247. data/docs/LeaseRentPostMessage.md +20 -0
  248. data/docs/LeaseSearchMessage.md +40 -0
  249. data/docs/LeaseSecurityDepositPostMessage.md +20 -0
  250. data/docs/LeaseTenantMessage.md +20 -0
  251. data/docs/LeaseTransactionMessage.md +34 -0
  252. data/docs/LeaseTransactionSearchMessage.md +22 -0
  253. data/docs/LeasesApi.md +2865 -0
  254. data/docs/ListingContactMessage.md +26 -0
  255. data/docs/ListingContactSaveMessage.md +24 -0
  256. data/docs/ListingFileMessage.md +22 -0
  257. data/docs/ListingMessage.md +36 -0
  258. data/docs/ListingPropertyMessage.md +34 -0
  259. data/docs/ListingPutMessage.md +28 -0
  260. data/docs/ListingSearchMessage.md +20 -0
  261. data/docs/ListingUnitMessage.md +36 -0
  262. data/docs/ListingsApi.md +642 -0
  263. data/docs/LockPeriodSettingsGlobalMessage.md +18 -0
  264. data/docs/LockPeriodSettingsOverridesMessage.md +20 -0
  265. data/docs/LoggedByStaffUserMessage.md +24 -0
  266. data/docs/LookupMessage.md +20 -0
  267. data/docs/MailingTemplateMessage.md +24 -0
  268. data/docs/NoteMessage.md +22 -0
  269. data/docs/NotePostMessage.md +18 -0
  270. data/docs/NotePutMessage.md +18 -0
  271. data/docs/NoteSearchMessage.md +22 -0
  272. data/docs/OutstandingBalancesLineMessage.md +20 -0
  273. data/docs/OwnershipAccountChargeRecurringTransactionMessage.md +40 -0
  274. data/docs/OwnershipAccountCreditLinePostMessage.md +20 -0
  275. data/docs/OwnershipAccountCreditPostMessage.md +26 -0
  276. data/docs/OwnershipAccountDepositWithholdingLinePostMessage.md +20 -0
  277. data/docs/OwnershipAccountDepositWithholdingPostMessage.md +24 -0
  278. data/docs/OwnershipAccountLedgerChargeLinesPutMessage.md +22 -0
  279. data/docs/OwnershipAccountLedgerChargeLinesSaveMessage.md +20 -0
  280. data/docs/OwnershipAccountLedgerChargePostMessage.md +22 -0
  281. data/docs/OwnershipAccountLedgerChargePutMessage.md +22 -0
  282. data/docs/OwnershipAccountLedgerPaymentLineSaveMessage.md +20 -0
  283. data/docs/OwnershipAccountLedgerPaymentPostMessage.md +30 -0
  284. data/docs/OwnershipAccountOutstandingBalanceMessage.md +36 -0
  285. data/docs/OwnershipAccountOutstandingBalanceSearchMessage.md +26 -0
  286. data/docs/OwnershipAccountRecurringCreditMessage.md +44 -0
  287. data/docs/OwnershipAccountRecurringPaymentMessage.md +42 -0
  288. data/docs/OwnershipAccountRefundLineMessage.md +20 -0
  289. data/docs/OwnershipAccountRefundLinesPostMessage.md +20 -0
  290. data/docs/OwnershipAccountRefundMessage.md +34 -0
  291. data/docs/OwnershipAccountRefundPostMessage.md +30 -0
  292. data/docs/OwnershipAccountTransactionMessage.md +34 -0
  293. data/docs/PaidByMessage.md +20 -0
  294. data/docs/ParticipantMessage.md +22 -0
  295. data/docs/ParticipantResourceMessage.md +20 -0
  296. data/docs/PayeeMessage.md +24 -0
  297. data/docs/PaymentDetailMessage.md +24 -0
  298. data/docs/PaymentRecurringTransactionPostMessage.md +34 -0
  299. data/docs/PaymentTransactionsMessage.md +22 -0
  300. data/docs/PhoneLogMessage.md +28 -0
  301. data/docs/PhoneLogParticipantPostMessage.md +22 -0
  302. data/docs/PhoneLogParticipantUnitAgreementPostMessage.md +20 -0
  303. data/docs/PhoneLogPostMessage.md +24 -0
  304. data/docs/PhoneLogPutMessage.md +22 -0
  305. data/docs/PhoneLogSearchMessage.md +32 -0
  306. data/docs/PhoneNumberMessage.md +20 -0
  307. data/docs/PhoneNumbersMessage.md +24 -0
  308. data/docs/PropertyGroupMessage.md +26 -0
  309. data/docs/PropertyGroupPostMessage.md +22 -0
  310. data/docs/PropertyGroupPutMessage.md +22 -0
  311. data/docs/PropertyGroupSearchMessage.md +20 -0
  312. data/docs/PropertyGroupsApi.md +327 -0
  313. data/docs/PropertyManagerMessage.md +32 -0
  314. data/docs/PropertyMessage.md +22 -0
  315. data/docs/RecurringTransactionLineMessage.md +20 -0
  316. data/docs/RecurringTransactionLinePostMessage.md +20 -0
  317. data/docs/RecurringTransactionMessage.md +40 -0
  318. data/docs/RentalApplianceMessage.md +32 -0
  319. data/docs/RentalAppliancePostMessage.md +32 -0
  320. data/docs/RentalAppliancePutMessage.md +28 -0
  321. data/docs/RentalApplianceSearchMessage.md +20 -0
  322. data/docs/RentalApplianceServiceHistoryMessage.md +24 -0
  323. data/docs/RentalApplianceServiceHistoryPostMessage.md +22 -0
  324. data/docs/RentalAppliancesApi.md +646 -0
  325. data/docs/RentalFeaturesMessage.md +20 -0
  326. data/docs/RentalFeaturesPutMessage.md +20 -0
  327. data/docs/RentalMessage.md +40 -0
  328. data/docs/RentalOwnerMessage.md +46 -0
  329. data/docs/RentalOwnerPostMessage.md +44 -0
  330. data/docs/RentalOwnerPutMessage.md +42 -0
  331. data/docs/RentalOwnerRequestTaskMessage.md +42 -0
  332. data/docs/RentalOwnerRequestTaskPostMessage.md +38 -0
  333. data/docs/RentalOwnerRequestTaskPutMessage.md +36 -0
  334. data/docs/RentalOwnerRequestTaskSearchMessage.md +40 -0
  335. data/docs/RentalOwnerTaxInformationMessage.md +28 -0
  336. data/docs/RentalOwnersApi.md +667 -0
  337. data/docs/RentalOwnersSearchMessage.md +30 -0
  338. data/docs/RentalPreferredVendorMessage.md +34 -0
  339. data/docs/RentalPreferredVendorPutMessage.md +18 -0
  340. data/docs/RentalPropertiesApi.md +989 -0
  341. data/docs/RentalPropertyPostMessage.md +36 -0
  342. data/docs/RentalPropertyPutMessage.md +32 -0
  343. data/docs/RentalPropertyUnitPostMessage.md +30 -0
  344. data/docs/RentalSearchMessage.md +32 -0
  345. data/docs/RentalTenantPostMessage.md +42 -0
  346. data/docs/RentalTenantPutMessage.md +40 -0
  347. data/docs/RentalTenantRenewalPostMessage.md +40 -0
  348. data/docs/RentalTenantsApi.md +673 -0
  349. data/docs/RentalUnitFeaturesMessage.md +18 -0
  350. data/docs/RentalUnitFeaturesPutMessage.md +18 -0
  351. data/docs/RentalUnitMessage.md +40 -0
  352. data/docs/RentalUnitPutMessage.md +30 -0
  353. data/docs/RentalUnitSearchMessage.md +22 -0
  354. data/docs/RentalUnitsApi.md +815 -0
  355. data/docs/RentalUnitsPostMessage.md +32 -0
  356. data/docs/RequestedByUserEntityMessage.md +28 -0
  357. data/docs/ResidentCenterApi.md +100 -0
  358. data/docs/ResidentCenterUserMessage.md +24 -0
  359. data/docs/ResidentCenterUserReferenceMessage.md +26 -0
  360. data/docs/ResidentCenterUserSearchMessage.md +26 -0
  361. data/docs/ResidentRequestTaskMessage.md +52 -0
  362. data/docs/ResidentRequestTaskPostMessage.md +42 -0
  363. data/docs/ResidentRequestTaskPutMessage.md +32 -0
  364. data/docs/ResidentRequestTaskSearchMessage.md +42 -0
  365. data/docs/SaveAddressMessage.md +30 -0
  366. data/docs/SaveEmergencyContactMessage.md +24 -0
  367. data/docs/TaskCategoryMessage.md +24 -0
  368. data/docs/TaskCategoryPutMessage.md +18 -0
  369. data/docs/TaskCategoryResponseMessage.md +24 -0
  370. data/docs/TaskCategorySaveMessage.md +18 -0
  371. data/docs/TaskHistoryFileMessage.md +28 -0
  372. data/docs/TaskHistoryFileUploadPostMessage.md +18 -0
  373. data/docs/TaskHistoryMessage.md +40 -0
  374. data/docs/TaskHistoryPutMessage.md +18 -0
  375. data/docs/TaskHistoryUserMessage.md +24 -0
  376. data/docs/TaskSearchMessage.md +44 -0
  377. data/docs/TaskSubCategoryMessage.md +20 -0
  378. data/docs/TasksApi.md +2528 -0
  379. data/docs/TaxInformationPostMessage.md +26 -0
  380. data/docs/TaxInformationSaveMessage.md +28 -0
  381. data/docs/TenantMessage.md +48 -0
  382. data/docs/TenantSearchMessage.md +36 -0
  383. data/docs/ToDoTaskMessage.md +40 -0
  384. data/docs/ToDoTaskPostMessage.md +36 -0
  385. data/docs/ToDoTaskPutMessage.md +36 -0
  386. data/docs/ToDoTaskSearchMessage.md +40 -0
  387. data/docs/UndepositedFundsMessage.md +18 -0
  388. data/docs/UnitAgreementMessage.md +22 -0
  389. data/docs/UserMessage.md +40 -0
  390. data/docs/UserRoleMessage.md +24 -0
  391. data/docs/UserSearchMessage.md +26 -0
  392. data/docs/VehicleMessage.md +24 -0
  393. data/docs/VendorCategoryMessage.md +22 -0
  394. data/docs/VendorCategorySaveMessage.md +18 -0
  395. data/docs/VendorCreditLineItemMessage.md +26 -0
  396. data/docs/VendorCreditLineItemPostMessage.md +24 -0
  397. data/docs/VendorCreditMessage.md +26 -0
  398. data/docs/VendorCreditPostMessage.md +24 -0
  399. data/docs/VendorInsuranceMessage.md +22 -0
  400. data/docs/VendorInsuranceSaveMessage.md +22 -0
  401. data/docs/VendorMessage.md +50 -0
  402. data/docs/VendorPostMessage.md +46 -0
  403. data/docs/VendorPutMessage.md +46 -0
  404. data/docs/VendorRefundLineMessage.md +26 -0
  405. data/docs/VendorRefundLinePostMessage.md +24 -0
  406. data/docs/VendorRefundMessage.md +30 -0
  407. data/docs/VendorRefundPostMessage.md +28 -0
  408. data/docs/VendorSearchMessage.md +32 -0
  409. data/docs/VendorTaxInformationMessage.md +28 -0
  410. data/docs/VendorTransactionMessage.md +28 -0
  411. data/docs/VendorTransactionSearchMessage.md +26 -0
  412. data/docs/VendorsApi.md +1396 -0
  413. data/docs/WorkOrderEntryContactMessage.md +20 -0
  414. data/docs/WorkOrderEntryContactResourceMessage.md +20 -0
  415. data/docs/WorkOrderLineItemMessage.md +24 -0
  416. data/docs/WorkOrderLineItemSaveMessage.md +24 -0
  417. data/docs/WorkOrderMessage.md +42 -0
  418. data/docs/WorkOrderPostMessage.md +38 -0
  419. data/docs/WorkOrderPutMessage.md +34 -0
  420. data/docs/WorkOrderSearchMessage.md +54 -0
  421. data/docs/WorkOrderTaskMessage.md +32 -0
  422. data/docs/WorkOrderTaskPostMessage.md +30 -0
  423. data/docs/WorkOrdersApi.md +361 -0
  424. data/lib/buildium-ruby/api/accounting_api.rb +1855 -0
  425. data/lib/buildium-ruby/api/administration_api.rb +417 -0
  426. data/lib/buildium-ruby/api/applicants_api.rb +1368 -0
  427. data/lib/buildium-ruby/api/association_appliances_api.rb +577 -0
  428. data/lib/buildium-ruby/api/association_owners_api.rb +849 -0
  429. data/lib/buildium-ruby/api/association_ownership_accounts_api.rb +1890 -0
  430. data/lib/buildium-ruby/api/association_tenants_api.rb +628 -0
  431. data/lib/buildium-ruby/api/association_units_api.rb +606 -0
  432. data/lib/buildium-ruby/api/associations_api.rb +1143 -0
  433. data/lib/buildium-ruby/api/bank_accounts_api.rb +2085 -0
  434. data/lib/buildium-ruby/api/client_leads_api.rb +174 -0
  435. data/lib/buildium-ruby/api/communications_api.rb +1097 -0
  436. data/lib/buildium-ruby/api/files_api.rb +652 -0
  437. data/lib/buildium-ruby/api/leases_api.rb +2636 -0
  438. data/lib/buildium-ruby/api/listings_api.rb +569 -0
  439. data/lib/buildium-ruby/api/property_groups_api.rb +299 -0
  440. data/lib/buildium-ruby/api/rental_appliances_api.rb +577 -0
  441. data/lib/buildium-ruby/api/rental_owners_api.rb +622 -0
  442. data/lib/buildium-ruby/api/rental_properties_api.rb +916 -0
  443. data/lib/buildium-ruby/api/rental_tenants_api.rb +635 -0
  444. data/lib/buildium-ruby/api/rental_units_api.rb +743 -0
  445. data/lib/buildium-ruby/api/resident_center_api.rb +111 -0
  446. data/lib/buildium-ruby/api/tasks_api.rb +2363 -0
  447. data/lib/buildium-ruby/api/vendors_api.rb +1285 -0
  448. data/lib/buildium-ruby/api/work_orders_api.rb +366 -0
  449. data/lib/buildium-ruby/api_client.rb +426 -0
  450. data/lib/buildium-ruby/api_error.rb +57 -0
  451. data/lib/buildium-ruby/configuration.rb +319 -0
  452. data/lib/buildium-ruby/models/account_info_message.rb +257 -0
  453. data/lib/buildium-ruby/models/accounting_entity_message.rb +273 -0
  454. data/lib/buildium-ruby/models/accounting_entity_save_message.rb +273 -0
  455. data/lib/buildium-ruby/models/accounting_lock_period_message.rb +242 -0
  456. data/lib/buildium-ruby/models/accounting_settings_message.rb +314 -0
  457. data/lib/buildium-ruby/models/address_message.rb +313 -0
  458. data/lib/buildium-ruby/models/all_tasks_message.rb +413 -0
  459. data/lib/buildium-ruby/models/announcement_message.rb +301 -0
  460. data/lib/buildium-ruby/models/announcement_post_message.rb +295 -0
  461. data/lib/buildium-ruby/models/announcement_search_message.rb +292 -0
  462. data/lib/buildium-ruby/models/announcement_sender_message.rb +239 -0
  463. data/lib/buildium-ruby/models/api_error_response.rb +237 -0
  464. data/lib/buildium-ruby/models/appliance_message.rb +259 -0
  465. data/lib/buildium-ruby/models/applicant_application_message.rb +282 -0
  466. data/lib/buildium-ruby/models/applicant_group_message.rb +294 -0
  467. data/lib/buildium-ruby/models/applicant_group_post_message.rb +235 -0
  468. data/lib/buildium-ruby/models/applicant_group_put_message.rb +284 -0
  469. data/lib/buildium-ruby/models/applicant_group_search_message.rb +296 -0
  470. data/lib/buildium-ruby/models/applicant_message.rb +312 -0
  471. data/lib/buildium-ruby/models/applicant_post_message.rb +283 -0
  472. data/lib/buildium-ruby/models/applicant_put_message.rb +267 -0
  473. data/lib/buildium-ruby/models/applicant_search_message.rb +326 -0
  474. data/lib/buildium-ruby/models/application_message.rb +294 -0
  475. data/lib/buildium-ruby/models/application_put_message.rb +257 -0
  476. data/lib/buildium-ruby/models/application_response_field_message.rb +294 -0
  477. data/lib/buildium-ruby/models/application_response_message.rb +274 -0
  478. data/lib/buildium-ruby/models/application_section_response_message.rb +219 -0
  479. data/lib/buildium-ruby/models/association_appliance_message.rb +288 -0
  480. data/lib/buildium-ruby/models/association_appliance_post_message.rb +298 -0
  481. data/lib/buildium-ruby/models/association_appliance_put_message.rb +273 -0
  482. data/lib/buildium-ruby/models/association_appliance_search_message.rb +232 -0
  483. data/lib/buildium-ruby/models/association_appliance_service_history_message.rb +282 -0
  484. data/lib/buildium-ruby/models/association_appliance_service_history_post_message.rb +282 -0
  485. data/lib/buildium-ruby/models/association_board_member_message.rb +344 -0
  486. data/lib/buildium-ruby/models/association_board_member_post_message.rb +293 -0
  487. data/lib/buildium-ruby/models/association_board_member_put_message.rb +278 -0
  488. data/lib/buildium-ruby/models/association_board_member_search_message.rb +274 -0
  489. data/lib/buildium-ruby/models/association_message.rb +327 -0
  490. data/lib/buildium-ruby/models/association_owner_board_term_message.rb +303 -0
  491. data/lib/buildium-ruby/models/association_owner_board_term_post_message.rb +278 -0
  492. data/lib/buildium-ruby/models/association_owner_message.rb +440 -0
  493. data/lib/buildium-ruby/models/association_owner_post_message.rb +398 -0
  494. data/lib/buildium-ruby/models/association_owner_put_message.rb +363 -0
  495. data/lib/buildium-ruby/models/association_owner_to_existing_ownership_account_post_message.rb +428 -0
  496. data/lib/buildium-ruby/models/association_owner_unit_occupancy_put_message.rb +223 -0
  497. data/lib/buildium-ruby/models/association_owner_unit_occupancy_status_message.rb +228 -0
  498. data/lib/buildium-ruby/models/association_ownership_account_message.rb +347 -0
  499. data/lib/buildium-ruby/models/association_ownership_account_post_message.rb +346 -0
  500. data/lib/buildium-ruby/models/association_ownership_account_put_message.rb +223 -0
  501. data/lib/buildium-ruby/models/association_ownership_account_search_message.rb +296 -0
  502. data/lib/buildium-ruby/models/association_post_message.rb +302 -0
  503. data/lib/buildium-ruby/models/association_preferred_vendor_message.rb +300 -0
  504. data/lib/buildium-ruby/models/association_preferred_vendor_put_message.rb +225 -0
  505. data/lib/buildium-ruby/models/association_put_message.rb +322 -0
  506. data/lib/buildium-ruby/models/association_search_message.rb +283 -0
  507. data/lib/buildium-ruby/models/association_tenant_message.rb +350 -0
  508. data/lib/buildium-ruby/models/association_tenant_post_message.rb +354 -0
  509. data/lib/buildium-ruby/models/association_tenant_put_message.rb +329 -0
  510. data/lib/buildium-ruby/models/association_unit_message.rb +334 -0
  511. data/lib/buildium-ruby/models/association_unit_put_message.rb +313 -0
  512. data/lib/buildium-ruby/models/association_unit_search_message.rb +241 -0
  513. data/lib/buildium-ruby/models/association_units_post_message.rb +328 -0
  514. data/lib/buildium-ruby/models/association_user_search_message.rb +324 -0
  515. data/lib/buildium-ruby/models/bank_account_check_accounting_entity_save_message.rb +272 -0
  516. data/lib/buildium-ruby/models/bank_account_check_line_message.rb +267 -0
  517. data/lib/buildium-ruby/models/bank_account_check_line_save_message.rb +272 -0
  518. data/lib/buildium-ruby/models/bank_account_check_message.rb +279 -0
  519. data/lib/buildium-ruby/models/bank_account_check_payee_message.rb +272 -0
  520. data/lib/buildium-ruby/models/bank_account_check_payee_save_message.rb +272 -0
  521. data/lib/buildium-ruby/models/bank_account_check_post_message.rb +274 -0
  522. data/lib/buildium-ruby/models/bank_account_check_put_message.rb +274 -0
  523. data/lib/buildium-ruby/models/bank_account_check_search_message.rb +238 -0
  524. data/lib/buildium-ruby/models/bank_account_deposit_line_message.rb +267 -0
  525. data/lib/buildium-ruby/models/bank_account_deposit_line_save_message.rb +257 -0
  526. data/lib/buildium-ruby/models/bank_account_deposit_message.rb +272 -0
  527. data/lib/buildium-ruby/models/bank_account_deposit_post_message.rb +257 -0
  528. data/lib/buildium-ruby/models/bank_account_deposit_put_message.rb +250 -0
  529. data/lib/buildium-ruby/models/bank_account_deposit_search_message.rb +238 -0
  530. data/lib/buildium-ruby/models/bank_account_message.rb +360 -0
  531. data/lib/buildium-ruby/models/bank_account_post_message.rb +338 -0
  532. data/lib/buildium-ruby/models/bank_account_put_message.rb +343 -0
  533. data/lib/buildium-ruby/models/bank_account_quick_deposit_message.rb +267 -0
  534. data/lib/buildium-ruby/models/bank_account_quick_deposit_save_message.rb +277 -0
  535. data/lib/buildium-ruby/models/bank_account_quick_deposit_search_message.rb +238 -0
  536. data/lib/buildium-ruby/models/bank_account_search_message.rb +263 -0
  537. data/lib/buildium-ruby/models/bank_account_transaction_message.rb +359 -0
  538. data/lib/buildium-ruby/models/bank_account_transaction_search_message.rb +292 -0
  539. data/lib/buildium-ruby/models/bank_account_transfer_accounting_entity_save_message.rb +272 -0
  540. data/lib/buildium-ruby/models/bank_account_transfer_message.rb +267 -0
  541. data/lib/buildium-ruby/models/bank_account_transfer_save_message.rb +277 -0
  542. data/lib/buildium-ruby/models/bank_account_transfer_search_message.rb +238 -0
  543. data/lib/buildium-ruby/models/bank_account_withdrawal_message.rb +267 -0
  544. data/lib/buildium-ruby/models/bank_account_withdrawal_save_message.rb +277 -0
  545. data/lib/buildium-ruby/models/bank_account_withdrawal_search_message.rb +238 -0
  546. data/lib/buildium-ruby/models/bill_file_message.rb +268 -0
  547. data/lib/buildium-ruby/models/bill_line_message.rb +266 -0
  548. data/lib/buildium-ruby/models/bill_line_post_message.rb +272 -0
  549. data/lib/buildium-ruby/models/bill_line_put_message.rb +282 -0
  550. data/lib/buildium-ruby/models/bill_markup_message.rb +263 -0
  551. data/lib/buildium-ruby/models/bill_markup_save_message.rb +273 -0
  552. data/lib/buildium-ruby/models/bill_message.rb +344 -0
  553. data/lib/buildium-ruby/models/bill_payment_accounting_entity_message.rb +263 -0
  554. data/lib/buildium-ruby/models/bill_payment_line_message.rb +238 -0
  555. data/lib/buildium-ruby/models/bill_payment_line_post_message.rb +238 -0
  556. data/lib/buildium-ruby/models/bill_payment_message.rb +270 -0
  557. data/lib/buildium-ruby/models/bill_payment_post_message.rb +275 -0
  558. data/lib/buildium-ruby/models/bill_post_message.rb +301 -0
  559. data/lib/buildium-ruby/models/bill_put_message.rb +286 -0
  560. data/lib/buildium-ruby/models/bill_search_message.rb +336 -0
  561. data/lib/buildium-ruby/models/budget_details_message.rb +281 -0
  562. data/lib/buildium-ruby/models/budget_details_save_message.rb +237 -0
  563. data/lib/buildium-ruby/models/budget_message.rb +269 -0
  564. data/lib/buildium-ruby/models/budget_monthly_amounts_message.rb +328 -0
  565. data/lib/buildium-ruby/models/budget_monthly_amounts_save_message.rb +388 -0
  566. data/lib/buildium-ruby/models/budget_post_message.rb +319 -0
  567. data/lib/buildium-ruby/models/budget_put_message.rb +240 -0
  568. data/lib/buildium-ruby/models/budget_search_message.rb +240 -0
  569. data/lib/buildium-ruby/models/charge_recurring_transaction_post_message.rb +359 -0
  570. data/lib/buildium-ruby/models/charge_recurring_transaction_put_message.rb +374 -0
  571. data/lib/buildium-ruby/models/check_printing_info_message.rb +392 -0
  572. data/lib/buildium-ruby/models/check_printing_info_post_message.rb +392 -0
  573. data/lib/buildium-ruby/models/check_printing_info_put_message.rb +407 -0
  574. data/lib/buildium-ruby/models/client_lead_credit_request_message.rb +295 -0
  575. data/lib/buildium-ruby/models/client_lead_message.rb +363 -0
  576. data/lib/buildium-ruby/models/client_lead_search_message.rb +285 -0
  577. data/lib/buildium-ruby/models/contact_detail_message.rb +248 -0
  578. data/lib/buildium-ruby/models/contact_detail_phone_message.rb +239 -0
  579. data/lib/buildium-ruby/models/contact_detail_save_message.rb +253 -0
  580. data/lib/buildium-ruby/models/contact_detail_save_phone_message.rb +239 -0
  581. data/lib/buildium-ruby/models/contact_info_message.rb +248 -0
  582. data/lib/buildium-ruby/models/contact_request_task_message.rb +381 -0
  583. data/lib/buildium-ruby/models/contact_request_task_post_message.rb +388 -0
  584. data/lib/buildium-ruby/models/contact_request_task_put_message.rb +388 -0
  585. data/lib/buildium-ruby/models/contact_request_task_search_message.rb +366 -0
  586. data/lib/buildium-ruby/models/cosigner_message.rb +343 -0
  587. data/lib/buildium-ruby/models/created_by_user_message.rb +248 -0
  588. data/lib/buildium-ruby/models/credit_recurring_transaction_post_message.rb +388 -0
  589. data/lib/buildium-ruby/models/deposit_detail_message.rb +231 -0
  590. data/lib/buildium-ruby/models/electronic_payments_message.rb +288 -0
  591. data/lib/buildium-ruby/models/email_message.rb +247 -0
  592. data/lib/buildium-ruby/models/email_post_message.rb +307 -0
  593. data/lib/buildium-ruby/models/email_recipient_message.rb +292 -0
  594. data/lib/buildium-ruby/models/email_search_message.rb +268 -0
  595. data/lib/buildium-ruby/models/email_sender_message.rb +248 -0
  596. data/lib/buildium-ruby/models/emergency_contact_message.rb +249 -0
  597. data/lib/buildium-ruby/models/file_category_message.rb +239 -0
  598. data/lib/buildium-ruby/models/file_category_post_message.rb +224 -0
  599. data/lib/buildium-ruby/models/file_category_put_message.rb +224 -0
  600. data/lib/buildium-ruby/models/file_download_message.rb +218 -0
  601. data/lib/buildium-ruby/models/file_entity_message.rb +273 -0
  602. data/lib/buildium-ruby/models/file_message.rb +297 -0
  603. data/lib/buildium-ruby/models/file_name_post_message.rb +223 -0
  604. data/lib/buildium-ruby/models/file_put_message.rb +248 -0
  605. data/lib/buildium-ruby/models/file_search_message.rb +315 -0
  606. data/lib/buildium-ruby/models/file_upload_post_message.rb +322 -0
  607. data/lib/buildium-ruby/models/file_upload_ticket_message.rb +240 -0
  608. data/lib/buildium-ruby/models/general_journal_entry_line_save_message.rb +297 -0
  609. data/lib/buildium-ruby/models/general_journal_entry_post_message.rb +264 -0
  610. data/lib/buildium-ruby/models/general_journal_entry_put_message.rb +264 -0
  611. data/lib/buildium-ruby/models/general_ledger_journal_line_message.rb +267 -0
  612. data/lib/buildium-ruby/models/general_ledger_journal_message.rb +230 -0
  613. data/lib/buildium-ruby/models/general_ledger_transaction_message.rb +349 -0
  614. data/lib/buildium-ruby/models/general_ledger_transaction_search_message.rb +310 -0
  615. data/lib/buildium-ruby/models/gl_account_balance_item_message.rb +228 -0
  616. data/lib/buildium-ruby/models/gl_account_balance_message.rb +240 -0
  617. data/lib/buildium-ruby/models/gl_account_balance_search_message.rb +317 -0
  618. data/lib/buildium-ruby/models/gl_account_message.rb +419 -0
  619. data/lib/buildium-ruby/models/gl_account_post_message.rb +349 -0
  620. data/lib/buildium-ruby/models/gl_account_put_message.rb +344 -0
  621. data/lib/buildium-ruby/models/gl_accounts_search_message.rb +243 -0
  622. data/lib/buildium-ruby/models/gl_transaction_message_v1.rb +258 -0
  623. data/lib/buildium-ruby/models/internal_transaction_status_message.rb +239 -0
  624. data/lib/buildium-ruby/models/journal_line_message.rb +268 -0
  625. data/lib/buildium-ruby/models/journal_message.rb +230 -0
  626. data/lib/buildium-ruby/models/last_updated_by_user_message.rb +259 -0
  627. data/lib/buildium-ruby/models/lease_account_detail_message.rb +229 -0
  628. data/lib/buildium-ruby/models/lease_charge_line_save_message.rb +249 -0
  629. data/lib/buildium-ruby/models/lease_charge_post_message.rb +241 -0
  630. data/lib/buildium-ruby/models/lease_charge_put_message.rb +250 -0
  631. data/lib/buildium-ruby/models/lease_charge_recurring_transaction_message.rb +374 -0
  632. data/lib/buildium-ruby/models/lease_cosigner_post_message.rb +330 -0
  633. data/lib/buildium-ruby/models/lease_ledger_credit_line_post_message.rb +239 -0
  634. data/lib/buildium-ruby/models/lease_ledger_credit_post_message.rb +309 -0
  635. data/lib/buildium-ruby/models/lease_ledger_deposit_withholding_line_post_message.rb +238 -0
  636. data/lib/buildium-ruby/models/lease_ledger_deposit_withholding_post_message.rb +260 -0
  637. data/lib/buildium-ruby/models/lease_ledger_payment_line_save_message.rb +239 -0
  638. data/lib/buildium-ruby/models/lease_ledger_payment_post_message.rb +335 -0
  639. data/lib/buildium-ruby/models/lease_ledger_refund_line_message.rb +228 -0
  640. data/lib/buildium-ruby/models/lease_ledger_refund_line_post_message.rb +238 -0
  641. data/lib/buildium-ruby/models/lease_ledger_refund_message.rb +301 -0
  642. data/lib/buildium-ruby/models/lease_ledger_refund_post_message.rb +306 -0
  643. data/lib/buildium-ruby/models/lease_ledger_reverse_payment_nsf_charge_post_message.rb +239 -0
  644. data/lib/buildium-ruby/models/lease_ledger_reverse_payment_other_bank_charge_post_message.rb +239 -0
  645. data/lib/buildium-ruby/models/lease_ledger_reverse_payment_post_message.rb +256 -0
  646. data/lib/buildium-ruby/models/lease_message.rb +496 -0
  647. data/lib/buildium-ruby/models/lease_move_out_data_message.rb +238 -0
  648. data/lib/buildium-ruby/models/lease_move_out_data_post_message.rb +248 -0
  649. data/lib/buildium-ruby/models/lease_outstanding_balance_message.rb +330 -0
  650. data/lib/buildium-ruby/models/lease_outstanding_balance_search_message.rb +345 -0
  651. data/lib/buildium-ruby/models/lease_post_message.rb +379 -0
  652. data/lib/buildium-ruby/models/lease_put_message.rb +322 -0
  653. data/lib/buildium-ruby/models/lease_recurring_credit_message.rb +408 -0
  654. data/lib/buildium-ruby/models/lease_recurring_payment_message.rb +397 -0
  655. data/lib/buildium-ruby/models/lease_renewal_message.rb +336 -0
  656. data/lib/buildium-ruby/models/lease_renewal_post_message.rb +378 -0
  657. data/lib/buildium-ruby/models/lease_rent_charge_message.rb +278 -0
  658. data/lib/buildium-ruby/models/lease_rent_charge_post_message.rb +263 -0
  659. data/lib/buildium-ruby/models/lease_rent_message.rb +334 -0
  660. data/lib/buildium-ruby/models/lease_rent_post_message.rb +275 -0
  661. data/lib/buildium-ruby/models/lease_search_message.rb +359 -0
  662. data/lib/buildium-ruby/models/lease_security_deposit_post_message.rb +239 -0
  663. data/lib/buildium-ruby/models/lease_tenant_message.rb +262 -0
  664. data/lib/buildium-ruby/models/lease_transaction_message.rb +298 -0
  665. data/lib/buildium-ruby/models/lease_transaction_search_message.rb +263 -0
  666. data/lib/buildium-ruby/models/listing_contact_message.rb +259 -0
  667. data/lib/buildium-ruby/models/listing_contact_save_message.rb +253 -0
  668. data/lib/buildium-ruby/models/listing_file_message.rb +272 -0
  669. data/lib/buildium-ruby/models/listing_message.rb +305 -0
  670. data/lib/buildium-ruby/models/listing_property_message.rb +326 -0
  671. data/lib/buildium-ruby/models/listing_put_message.rb +283 -0
  672. data/lib/buildium-ruby/models/listing_search_message.rb +262 -0
  673. data/lib/buildium-ruby/models/listing_unit_message.rb +358 -0
  674. data/lib/buildium-ruby/models/lock_period_settings_global_message.rb +218 -0
  675. data/lib/buildium-ruby/models/lock_period_settings_overrides_message.rb +227 -0
  676. data/lib/buildium-ruby/models/logged_by_staff_user_message.rb +249 -0
  677. data/lib/buildium-ruby/models/lookup_message.rb +226 -0
  678. data/lib/buildium-ruby/models/mailing_template_message.rb +282 -0
  679. data/lib/buildium-ruby/models/note_message.rb +237 -0
  680. data/lib/buildium-ruby/models/note_post_message.rb +223 -0
  681. data/lib/buildium-ruby/models/note_put_message.rb +223 -0
  682. data/lib/buildium-ruby/models/note_search_message.rb +238 -0
  683. data/lib/buildium-ruby/models/outstanding_balances_line_message.rb +228 -0
  684. data/lib/buildium-ruby/models/ownership_account_charge_recurring_transaction_message.rb +374 -0
  685. data/lib/buildium-ruby/models/ownership_account_credit_line_post_message.rb +238 -0
  686. data/lib/buildium-ruby/models/ownership_account_credit_post_message.rb +309 -0
  687. data/lib/buildium-ruby/models/ownership_account_deposit_withholding_line_post_message.rb +238 -0
  688. data/lib/buildium-ruby/models/ownership_account_deposit_withholding_post_message.rb +260 -0
  689. data/lib/buildium-ruby/models/ownership_account_ledger_charge_lines_put_message.rb +248 -0
  690. data/lib/buildium-ruby/models/ownership_account_ledger_charge_lines_save_message.rb +238 -0
  691. data/lib/buildium-ruby/models/ownership_account_ledger_charge_post_message.rb +250 -0
  692. data/lib/buildium-ruby/models/ownership_account_ledger_charge_put_message.rb +250 -0
  693. data/lib/buildium-ruby/models/ownership_account_ledger_payment_line_save_message.rb +239 -0
  694. data/lib/buildium-ruby/models/ownership_account_ledger_payment_post_message.rb +335 -0
  695. data/lib/buildium-ruby/models/ownership_account_outstanding_balance_message.rb +310 -0
  696. data/lib/buildium-ruby/models/ownership_account_outstanding_balance_search_message.rb +308 -0
  697. data/lib/buildium-ruby/models/ownership_account_recurring_credit_message.rb +408 -0
  698. data/lib/buildium-ruby/models/ownership_account_recurring_payment_message.rb +397 -0
  699. data/lib/buildium-ruby/models/ownership_account_refund_line_message.rb +228 -0
  700. data/lib/buildium-ruby/models/ownership_account_refund_lines_post_message.rb +238 -0
  701. data/lib/buildium-ruby/models/ownership_account_refund_message.rb +301 -0
  702. data/lib/buildium-ruby/models/ownership_account_refund_post_message.rb +306 -0
  703. data/lib/buildium-ruby/models/ownership_account_transaction_message.rb +298 -0
  704. data/lib/buildium-ruby/models/paid_by_message.rb +228 -0
  705. data/lib/buildium-ruby/models/participant_message.rb +240 -0
  706. data/lib/buildium-ruby/models/participant_resource_message.rb +263 -0
  707. data/lib/buildium-ruby/models/payee_message.rb +283 -0
  708. data/lib/buildium-ruby/models/payment_detail_message.rb +281 -0
  709. data/lib/buildium-ruby/models/payment_recurring_transaction_post_message.rb +378 -0
  710. data/lib/buildium-ruby/models/payment_transactions_message.rb +237 -0
  711. data/lib/buildium-ruby/models/phone_log_message.rb +266 -0
  712. data/lib/buildium-ruby/models/phone_log_participant_post_message.rb +282 -0
  713. data/lib/buildium-ruby/models/phone_log_participant_unit_agreement_post_message.rb +263 -0
  714. data/lib/buildium-ruby/models/phone_log_post_message.rb +267 -0
  715. data/lib/buildium-ruby/models/phone_log_put_message.rb +253 -0
  716. data/lib/buildium-ruby/models/phone_log_search_message.rb +336 -0
  717. data/lib/buildium-ruby/models/phone_number_message.rb +263 -0
  718. data/lib/buildium-ruby/models/phone_numbers_message.rb +249 -0
  719. data/lib/buildium-ruby/models/property_group_message.rb +259 -0
  720. data/lib/buildium-ruby/models/property_group_post_message.rb +250 -0
  721. data/lib/buildium-ruby/models/property_group_put_message.rb +250 -0
  722. data/lib/buildium-ruby/models/property_group_search_message.rb +230 -0
  723. data/lib/buildium-ruby/models/property_manager_message.rb +291 -0
  724. data/lib/buildium-ruby/models/property_message.rb +273 -0
  725. data/lib/buildium-ruby/models/recurring_transaction_line_message.rb +228 -0
  726. data/lib/buildium-ruby/models/recurring_transaction_line_post_message.rb +238 -0
  727. data/lib/buildium-ruby/models/recurring_transaction_message.rb +388 -0
  728. data/lib/buildium-ruby/models/rental_appliance_message.rb +288 -0
  729. data/lib/buildium-ruby/models/rental_appliance_post_message.rb +298 -0
  730. data/lib/buildium-ruby/models/rental_appliance_put_message.rb +273 -0
  731. data/lib/buildium-ruby/models/rental_appliance_search_message.rb +232 -0
  732. data/lib/buildium-ruby/models/rental_appliance_service_history_message.rb +282 -0
  733. data/lib/buildium-ruby/models/rental_appliance_service_history_post_message.rb +282 -0
  734. data/lib/buildium-ruby/models/rental_features_message.rb +255 -0
  735. data/lib/buildium-ruby/models/rental_features_put_message.rb +254 -0
  736. data/lib/buildium-ruby/models/rental_message.rb +373 -0
  737. data/lib/buildium-ruby/models/rental_owner_message.rb +361 -0
  738. data/lib/buildium-ruby/models/rental_owner_post_message.rb +363 -0
  739. data/lib/buildium-ruby/models/rental_owner_put_message.rb +354 -0
  740. data/lib/buildium-ruby/models/rental_owner_request_task_message.rb +381 -0
  741. data/lib/buildium-ruby/models/rental_owner_request_task_post_message.rb +384 -0
  742. data/lib/buildium-ruby/models/rental_owner_request_task_put_message.rb +369 -0
  743. data/lib/buildium-ruby/models/rental_owner_request_task_search_message.rb +366 -0
  744. data/lib/buildium-ruby/models/rental_owner_tax_information_message.rb +302 -0
  745. data/lib/buildium-ruby/models/rental_owners_search_message.rb +314 -0
  746. data/lib/buildium-ruby/models/rental_preferred_vendor_message.rb +300 -0
  747. data/lib/buildium-ruby/models/rental_preferred_vendor_put_message.rb +225 -0
  748. data/lib/buildium-ruby/models/rental_property_post_message.rb +365 -0
  749. data/lib/buildium-ruby/models/rental_property_put_message.rb +341 -0
  750. data/lib/buildium-ruby/models/rental_property_unit_post_message.rb +333 -0
  751. data/lib/buildium-ruby/models/rental_search_message.rb +330 -0
  752. data/lib/buildium-ruby/models/rental_tenant_post_message.rb +388 -0
  753. data/lib/buildium-ruby/models/rental_tenant_put_message.rb +373 -0
  754. data/lib/buildium-ruby/models/rental_tenant_renewal_post_message.rb +373 -0
  755. data/lib/buildium-ruby/models/rental_unit_features_message.rb +243 -0
  756. data/lib/buildium-ruby/models/rental_unit_features_put_message.rb +242 -0
  757. data/lib/buildium-ruby/models/rental_unit_message.rb +374 -0
  758. data/lib/buildium-ruby/models/rental_unit_put_message.rb +333 -0
  759. data/lib/buildium-ruby/models/rental_unit_search_message.rb +240 -0
  760. data/lib/buildium-ruby/models/rental_units_post_message.rb +348 -0
  761. data/lib/buildium-ruby/models/requested_by_user_entity_message.rb +303 -0
  762. data/lib/buildium-ruby/models/resident_center_user_message.rb +280 -0
  763. data/lib/buildium-ruby/models/resident_center_user_reference_message.rb +292 -0
  764. data/lib/buildium-ruby/models/resident_center_user_search_message.rb +288 -0
  765. data/lib/buildium-ruby/models/resident_request_task_message.rb +429 -0
  766. data/lib/buildium-ruby/models/resident_request_task_post_message.rb +409 -0
  767. data/lib/buildium-ruby/models/resident_request_task_put_message.rb +349 -0
  768. data/lib/buildium-ruby/models/resident_request_task_search_message.rb +376 -0
  769. data/lib/buildium-ruby/models/save_address_message.rb +323 -0
  770. data/lib/buildium-ruby/models/save_emergency_contact_message.rb +248 -0
  771. data/lib/buildium-ruby/models/task_category_message.rb +251 -0
  772. data/lib/buildium-ruby/models/task_category_put_message.rb +224 -0
  773. data/lib/buildium-ruby/models/task_category_response_message.rb +248 -0
  774. data/lib/buildium-ruby/models/task_category_save_message.rb +224 -0
  775. data/lib/buildium-ruby/models/task_history_file_message.rb +268 -0
  776. data/lib/buildium-ruby/models/task_history_file_upload_post_message.rb +223 -0
  777. data/lib/buildium-ruby/models/task_history_message.rb +376 -0
  778. data/lib/buildium-ruby/models/task_history_put_message.rb +223 -0
  779. data/lib/buildium-ruby/models/task_history_user_message.rb +249 -0
  780. data/lib/buildium-ruby/models/task_search_message.rb +398 -0
  781. data/lib/buildium-ruby/models/task_sub_category_message.rb +229 -0
  782. data/lib/buildium-ruby/models/tax_information_post_message.rb +292 -0
  783. data/lib/buildium-ruby/models/tax_information_save_message.rb +307 -0
  784. data/lib/buildium-ruby/models/tenant_message.rb +404 -0
  785. data/lib/buildium-ruby/models/tenant_search_message.rb +339 -0
  786. data/lib/buildium-ruby/models/to_do_task_message.rb +372 -0
  787. data/lib/buildium-ruby/models/to_do_task_post_message.rb +374 -0
  788. data/lib/buildium-ruby/models/to_do_task_put_message.rb +374 -0
  789. data/lib/buildium-ruby/models/to_do_task_search_message.rb +366 -0
  790. data/lib/buildium-ruby/models/undeposited_funds_message.rb +217 -0
  791. data/lib/buildium-ruby/models/unit_agreement_message.rb +273 -0
  792. data/lib/buildium-ruby/models/user_message.rb +354 -0
  793. data/lib/buildium-ruby/models/user_role_message.rb +249 -0
  794. data/lib/buildium-ruby/models/user_search_message.rb +297 -0
  795. data/lib/buildium-ruby/models/vehicle_message.rb +249 -0
  796. data/lib/buildium-ruby/models/vendor_category_message.rb +239 -0
  797. data/lib/buildium-ruby/models/vendor_category_save_message.rb +223 -0
  798. data/lib/buildium-ruby/models/vendor_credit_line_item_message.rb +257 -0
  799. data/lib/buildium-ruby/models/vendor_credit_line_item_post_message.rb +262 -0
  800. data/lib/buildium-ruby/models/vendor_credit_message.rb +260 -0
  801. data/lib/buildium-ruby/models/vendor_credit_post_message.rb +260 -0
  802. data/lib/buildium-ruby/models/vendor_insurance_message.rb +239 -0
  803. data/lib/buildium-ruby/models/vendor_insurance_save_message.rb +239 -0
  804. data/lib/buildium-ruby/models/vendor_message.rb +377 -0
  805. data/lib/buildium-ruby/models/vendor_post_message.rb +364 -0
  806. data/lib/buildium-ruby/models/vendor_put_message.rb +364 -0
  807. data/lib/buildium-ruby/models/vendor_refund_line_message.rb +257 -0
  808. data/lib/buildium-ruby/models/vendor_refund_line_post_message.rb +262 -0
  809. data/lib/buildium-ruby/models/vendor_refund_message.rb +314 -0
  810. data/lib/buildium-ruby/models/vendor_refund_post_message.rb +324 -0
  811. data/lib/buildium-ruby/models/vendor_search_message.rb +334 -0
  812. data/lib/buildium-ruby/models/vendor_tax_information_message.rb +302 -0
  813. data/lib/buildium-ruby/models/vendor_transaction_message.rb +302 -0
  814. data/lib/buildium-ruby/models/vendor_transaction_search_message.rb +292 -0
  815. data/lib/buildium-ruby/models/work_order_entry_contact_message.rb +231 -0
  816. data/lib/buildium-ruby/models/work_order_entry_contact_resource_message.rb +263 -0
  817. data/lib/buildium-ruby/models/work_order_line_item_message.rb +249 -0
  818. data/lib/buildium-ruby/models/work_order_line_item_save_message.rb +258 -0
  819. data/lib/buildium-ruby/models/work_order_message.rb +372 -0
  820. data/lib/buildium-ruby/models/work_order_post_message.rb +363 -0
  821. data/lib/buildium-ruby/models/work_order_put_message.rb +344 -0
  822. data/lib/buildium-ruby/models/work_order_search_message.rb +452 -0
  823. data/lib/buildium-ruby/models/work_order_task_message.rb +346 -0
  824. data/lib/buildium-ruby/models/work_order_task_post_message.rb +345 -0
  825. data/lib/buildium-ruby/version.rb +15 -0
  826. data/lib/buildium-ruby.rb +438 -0
  827. data/openapitools.json +7 -0
  828. data/spec/api/accounting_api_spec.rb +383 -0
  829. data/spec/api/administration_api_spec.rb +114 -0
  830. data/spec/api/applicants_api_spec.rb +294 -0
  831. data/spec/api/association_appliances_api_spec.rb +141 -0
  832. data/spec/api/association_owners_api_spec.rb +195 -0
  833. data/spec/api/association_ownership_accounts_api_spec.rb +385 -0
  834. data/spec/api/association_tenants_api_spec.rb +153 -0
  835. data/spec/api/association_units_api_spec.rb +147 -0
  836. data/spec/api/associations_api_spec.rb +248 -0
  837. data/spec/api/bank_accounts_api_spec.rb +420 -0
  838. data/spec/api/client_leads_api_spec.rb +66 -0
  839. data/spec/api/communications_api_spec.rb +248 -0
  840. data/spec/api/files_api_spec.rb +156 -0
  841. data/spec/api/leases_api_spec.rb +529 -0
  842. data/spec/api/listings_api_spec.rb +139 -0
  843. data/spec/api/property_groups_api_spec.rb +88 -0
  844. data/spec/api/rental_appliances_api_spec.rb +141 -0
  845. data/spec/api/rental_owners_api_spec.rb +151 -0
  846. data/spec/api/rental_properties_api_spec.rb +205 -0
  847. data/spec/api/rental_tenants_api_spec.rb +154 -0
  848. data/spec/api/rental_units_api_spec.rb +172 -0
  849. data/spec/api/resident_center_api_spec.rb +54 -0
  850. data/spec/api/tasks_api_spec.rb +493 -0
  851. data/spec/api/vendors_api_spec.rb +275 -0
  852. data/spec/api/work_orders_api_spec.rb +105 -0
  853. data/spec/api_client_spec.rb +188 -0
  854. data/spec/configuration_spec.rb +42 -0
  855. data/spec/models/account_info_message_spec.rb +58 -0
  856. data/spec/models/accounting_entity_message_spec.rb +50 -0
  857. data/spec/models/accounting_entity_save_message_spec.rb +44 -0
  858. data/spec/models/accounting_lock_period_message_spec.rb +46 -0
  859. data/spec/models/accounting_settings_message_spec.rb +72 -0
  860. data/spec/models/address_message_spec.rb +74 -0
  861. data/spec/models/all_tasks_message_spec.rb +130 -0
  862. data/spec/models/announcement_message_spec.rb +74 -0
  863. data/spec/models/announcement_post_message_spec.rb +64 -0
  864. data/spec/models/announcement_search_message_spec.rb +62 -0
  865. data/spec/models/announcement_sender_message_spec.rb +46 -0
  866. data/spec/models/api_error_response_spec.rb +46 -0
  867. data/spec/models/appliance_message_spec.rb +58 -0
  868. data/spec/models/applicant_application_message_spec.rb +56 -0
  869. data/spec/models/applicant_group_message_spec.rb +62 -0
  870. data/spec/models/applicant_group_post_message_spec.rb +40 -0
  871. data/spec/models/applicant_group_put_message_spec.rb +50 -0
  872. data/spec/models/applicant_group_search_message_spec.rb +66 -0
  873. data/spec/models/applicant_message_spec.rb +88 -0
  874. data/spec/models/applicant_post_message_spec.rb +64 -0
  875. data/spec/models/applicant_put_message_spec.rb +58 -0
  876. data/spec/models/applicant_search_message_spec.rb +84 -0
  877. data/spec/models/application_message_spec.rb +62 -0
  878. data/spec/models/application_put_message_spec.rb +38 -0
  879. data/spec/models/application_response_field_message_spec.rb +60 -0
  880. data/spec/models/application_response_message_spec.rb +50 -0
  881. data/spec/models/application_section_response_message_spec.rb +34 -0
  882. data/spec/models/association_appliance_message_spec.rb +76 -0
  883. data/spec/models/association_appliance_post_message_spec.rb +76 -0
  884. data/spec/models/association_appliance_put_message_spec.rb +64 -0
  885. data/spec/models/association_appliance_search_message_spec.rb +40 -0
  886. data/spec/models/association_appliance_service_history_message_spec.rb +56 -0
  887. data/spec/models/association_appliance_service_history_post_message_spec.rb +50 -0
  888. data/spec/models/association_board_member_message_spec.rb +92 -0
  889. data/spec/models/association_board_member_post_message_spec.rb +56 -0
  890. data/spec/models/association_board_member_put_message_spec.rb +50 -0
  891. data/spec/models/association_board_member_search_message_spec.rb +60 -0
  892. data/spec/models/association_message_spec.rb +100 -0
  893. data/spec/models/association_owner_board_term_message_spec.rb +68 -0
  894. data/spec/models/association_owner_board_term_post_message_spec.rb +50 -0
  895. data/spec/models/association_owner_message_spec.rb +144 -0
  896. data/spec/models/association_owner_post_message_spec.rb +116 -0
  897. data/spec/models/association_owner_put_message_spec.rb +98 -0
  898. data/spec/models/association_owner_to_existing_ownership_account_post_message_spec.rb +128 -0
  899. data/spec/models/association_owner_unit_occupancy_put_message_spec.rb +34 -0
  900. data/spec/models/association_owner_unit_occupancy_status_message_spec.rb +40 -0
  901. data/spec/models/association_ownership_account_message_spec.rb +90 -0
  902. data/spec/models/association_ownership_account_post_message_spec.rb +80 -0
  903. data/spec/models/association_ownership_account_put_message_spec.rb +34 -0
  904. data/spec/models/association_ownership_account_search_message_spec.rb +72 -0
  905. data/spec/models/association_post_message_spec.rb +76 -0
  906. data/spec/models/association_preferred_vendor_message_spec.rb +82 -0
  907. data/spec/models/association_preferred_vendor_put_message_spec.rb +34 -0
  908. data/spec/models/association_put_message_spec.rb +82 -0
  909. data/spec/models/association_search_message_spec.rb +56 -0
  910. data/spec/models/association_tenant_message_spec.rb +112 -0
  911. data/spec/models/association_tenant_post_message_spec.rb +106 -0
  912. data/spec/models/association_tenant_put_message_spec.rb +94 -0
  913. data/spec/models/association_unit_message_spec.rb +84 -0
  914. data/spec/models/association_unit_put_message_spec.rb +66 -0
  915. data/spec/models/association_unit_search_message_spec.rb +46 -0
  916. data/spec/models/association_units_post_message_spec.rb +72 -0
  917. data/spec/models/association_user_search_message_spec.rb +86 -0
  918. data/spec/models/bank_account_check_accounting_entity_save_message_spec.rb +44 -0
  919. data/spec/models/bank_account_check_line_message_spec.rb +64 -0
  920. data/spec/models/bank_account_check_line_save_message_spec.rb +58 -0
  921. data/spec/models/bank_account_check_message_spec.rb +70 -0
  922. data/spec/models/bank_account_check_payee_message_spec.rb +50 -0
  923. data/spec/models/bank_account_check_payee_save_message_spec.rb +44 -0
  924. data/spec/models/bank_account_check_post_message_spec.rb +58 -0
  925. data/spec/models/bank_account_check_put_message_spec.rb +58 -0
  926. data/spec/models/bank_account_check_search_message_spec.rb +40 -0
  927. data/spec/models/bank_account_deposit_line_message_spec.rb +64 -0
  928. data/spec/models/bank_account_deposit_line_save_message_spec.rb +58 -0
  929. data/spec/models/bank_account_deposit_message_spec.rb +64 -0
  930. data/spec/models/bank_account_deposit_post_message_spec.rb +52 -0
  931. data/spec/models/bank_account_deposit_put_message_spec.rb +46 -0
  932. data/spec/models/bank_account_deposit_search_message_spec.rb +40 -0
  933. data/spec/models/bank_account_message_spec.rb +104 -0
  934. data/spec/models/bank_account_post_message_spec.rb +78 -0
  935. data/spec/models/bank_account_put_message_spec.rb +78 -0
  936. data/spec/models/bank_account_quick_deposit_message_spec.rb +64 -0
  937. data/spec/models/bank_account_quick_deposit_save_message_spec.rb +58 -0
  938. data/spec/models/bank_account_quick_deposit_search_message_spec.rb +40 -0
  939. data/spec/models/bank_account_search_message_spec.rb +44 -0
  940. data/spec/models/bank_account_transaction_message_spec.rb +96 -0
  941. data/spec/models/bank_account_transaction_search_message_spec.rb +56 -0
  942. data/spec/models/bank_account_transfer_accounting_entity_save_message_spec.rb +44 -0
  943. data/spec/models/bank_account_transfer_message_spec.rb +64 -0
  944. data/spec/models/bank_account_transfer_save_message_spec.rb +58 -0
  945. data/spec/models/bank_account_transfer_search_message_spec.rb +40 -0
  946. data/spec/models/bank_account_withdrawal_message_spec.rb +64 -0
  947. data/spec/models/bank_account_withdrawal_save_message_spec.rb +58 -0
  948. data/spec/models/bank_account_withdrawal_search_message_spec.rb +40 -0
  949. data/spec/models/bill_file_message_spec.rb +64 -0
  950. data/spec/models/bill_line_message_spec.rb +64 -0
  951. data/spec/models/bill_line_post_message_spec.rb +58 -0
  952. data/spec/models/bill_line_put_message_spec.rb +64 -0
  953. data/spec/models/bill_markup_message_spec.rb +44 -0
  954. data/spec/models/bill_markup_save_message_spec.rb +44 -0
  955. data/spec/models/bill_message_spec.rb +92 -0
  956. data/spec/models/bill_payment_accounting_entity_message_spec.rb +44 -0
  957. data/spec/models/bill_payment_line_message_spec.rb +46 -0
  958. data/spec/models/bill_payment_line_post_message_spec.rb +40 -0
  959. data/spec/models/bill_payment_message_spec.rb +64 -0
  960. data/spec/models/bill_payment_post_message_spec.rb +58 -0
  961. data/spec/models/bill_post_message_spec.rb +70 -0
  962. data/spec/models/bill_put_message_spec.rb +64 -0
  963. data/spec/models/bill_search_message_spec.rb +88 -0
  964. data/spec/models/budget_details_message_spec.rb +56 -0
  965. data/spec/models/budget_details_save_message_spec.rb +40 -0
  966. data/spec/models/budget_message_spec.rb +64 -0
  967. data/spec/models/budget_monthly_amounts_message_spec.rb +100 -0
  968. data/spec/models/budget_monthly_amounts_save_message_spec.rb +100 -0
  969. data/spec/models/budget_post_message_spec.rb +62 -0
  970. data/spec/models/budget_put_message_spec.rb +40 -0
  971. data/spec/models/budget_search_message_spec.rb +46 -0
  972. data/spec/models/charge_recurring_transaction_post_message_spec.rb +84 -0
  973. data/spec/models/charge_recurring_transaction_put_message_spec.rb +90 -0
  974. data/spec/models/check_printing_info_message_spec.rb +122 -0
  975. data/spec/models/check_printing_info_post_message_spec.rb +122 -0
  976. data/spec/models/check_printing_info_put_message_spec.rb +122 -0
  977. data/spec/models/client_lead_credit_request_message_spec.rb +60 -0
  978. data/spec/models/client_lead_message_spec.rb +102 -0
  979. data/spec/models/client_lead_search_message_spec.rb +66 -0
  980. data/spec/models/contact_detail_message_spec.rb +52 -0
  981. data/spec/models/contact_detail_phone_message_spec.rb +46 -0
  982. data/spec/models/contact_detail_save_message_spec.rb +52 -0
  983. data/spec/models/contact_detail_save_phone_message_spec.rb +46 -0
  984. data/spec/models/contact_info_message_spec.rb +52 -0
  985. data/spec/models/contact_request_task_message_spec.rb +114 -0
  986. data/spec/models/contact_request_task_post_message_spec.rb +102 -0
  987. data/spec/models/contact_request_task_put_message_spec.rb +102 -0
  988. data/spec/models/contact_request_task_search_message_spec.rb +112 -0
  989. data/spec/models/cosigner_message_spec.rb +92 -0
  990. data/spec/models/created_by_user_message_spec.rb +52 -0
  991. data/spec/models/credit_recurring_transaction_post_message_spec.rb +100 -0
  992. data/spec/models/deposit_detail_message_spec.rb +40 -0
  993. data/spec/models/electronic_payments_message_spec.rb +76 -0
  994. data/spec/models/email_message_spec.rb +52 -0
  995. data/spec/models/email_post_message_spec.rb +70 -0
  996. data/spec/models/email_recipient_message_spec.rb +62 -0
  997. data/spec/models/email_search_message_spec.rb +58 -0
  998. data/spec/models/email_sender_message_spec.rb +52 -0
  999. data/spec/models/emergency_contact_message_spec.rb +52 -0
  1000. data/spec/models/file_category_message_spec.rb +46 -0
  1001. data/spec/models/file_category_post_message_spec.rb +34 -0
  1002. data/spec/models/file_category_put_message_spec.rb +34 -0
  1003. data/spec/models/file_download_message_spec.rb +34 -0
  1004. data/spec/models/file_entity_message_spec.rb +50 -0
  1005. data/spec/models/file_message_spec.rb +82 -0
  1006. data/spec/models/file_name_post_message_spec.rb +34 -0
  1007. data/spec/models/file_put_message_spec.rb +46 -0
  1008. data/spec/models/file_search_message_spec.rb +74 -0
  1009. data/spec/models/file_upload_post_message_spec.rb +68 -0
  1010. data/spec/models/file_upload_ticket_message_spec.rb +46 -0
  1011. data/spec/models/general_journal_entry_line_save_message_spec.rb +56 -0
  1012. data/spec/models/general_journal_entry_post_message_spec.rb +52 -0
  1013. data/spec/models/general_journal_entry_put_message_spec.rb +52 -0
  1014. data/spec/models/general_ledger_journal_line_message_spec.rb +64 -0
  1015. data/spec/models/general_ledger_journal_message_spec.rb +40 -0
  1016. data/spec/models/general_ledger_transaction_message_spec.rb +98 -0
  1017. data/spec/models/general_ledger_transaction_search_message_spec.rb +62 -0
  1018. data/spec/models/gl_account_balance_item_message_spec.rb +40 -0
  1019. data/spec/models/gl_account_balance_message_spec.rb +46 -0
  1020. data/spec/models/gl_account_balance_search_message_spec.rb +66 -0
  1021. data/spec/models/gl_account_message_spec.rb +130 -0
  1022. data/spec/models/gl_account_post_message_spec.rb +84 -0
  1023. data/spec/models/gl_account_put_message_spec.rb +84 -0
  1024. data/spec/models/gl_accounts_search_message_spec.rb +38 -0
  1025. data/spec/models/gl_transaction_message_v1_spec.rb +58 -0
  1026. data/spec/models/internal_transaction_status_message_spec.rb +46 -0
  1027. data/spec/models/journal_line_message_spec.rb +64 -0
  1028. data/spec/models/journal_message_spec.rb +40 -0
  1029. data/spec/models/last_updated_by_user_message_spec.rb +58 -0
  1030. data/spec/models/lease_account_detail_message_spec.rb +40 -0
  1031. data/spec/models/lease_charge_line_save_message_spec.rb +46 -0
  1032. data/spec/models/lease_charge_post_message_spec.rb +46 -0
  1033. data/spec/models/lease_charge_put_message_spec.rb +46 -0
  1034. data/spec/models/lease_charge_recurring_transaction_message_spec.rb +108 -0
  1035. data/spec/models/lease_cosigner_post_message_spec.rb +80 -0
  1036. data/spec/models/lease_ledger_credit_line_post_message_spec.rb +40 -0
  1037. data/spec/models/lease_ledger_credit_post_message_spec.rb +62 -0
  1038. data/spec/models/lease_ledger_deposit_withholding_line_post_message_spec.rb +40 -0
  1039. data/spec/models/lease_ledger_deposit_withholding_post_message_spec.rb +52 -0
  1040. data/spec/models/lease_ledger_payment_line_save_message_spec.rb +40 -0
  1041. data/spec/models/lease_ledger_payment_post_message_spec.rb +74 -0
  1042. data/spec/models/lease_ledger_refund_line_message_spec.rb +40 -0
  1043. data/spec/models/lease_ledger_refund_line_post_message_spec.rb +40 -0
  1044. data/spec/models/lease_ledger_refund_message_spec.rb +82 -0
  1045. data/spec/models/lease_ledger_refund_post_message_spec.rb +70 -0
  1046. data/spec/models/lease_ledger_reverse_payment_nsf_charge_post_message_spec.rb +40 -0
  1047. data/spec/models/lease_ledger_reverse_payment_other_bank_charge_post_message_spec.rb +40 -0
  1048. data/spec/models/lease_ledger_reverse_payment_post_message_spec.rb +52 -0
  1049. data/spec/models/lease_message_spec.rb +170 -0
  1050. data/spec/models/lease_move_out_data_message_spec.rb +46 -0
  1051. data/spec/models/lease_move_out_data_post_message_spec.rb +46 -0
  1052. data/spec/models/lease_outstanding_balance_message_spec.rb +100 -0
  1053. data/spec/models/lease_outstanding_balance_search_message_spec.rb +90 -0
  1054. data/spec/models/lease_post_message_spec.rb +98 -0
  1055. data/spec/models/lease_put_message_spec.rb +68 -0
  1056. data/spec/models/lease_recurring_credit_message_spec.rb +124 -0
  1057. data/spec/models/lease_recurring_payment_message_spec.rb +118 -0
  1058. data/spec/models/lease_renewal_message_spec.rb +84 -0
  1059. data/spec/models/lease_renewal_post_message_spec.rb +98 -0
  1060. data/spec/models/lease_rent_charge_message_spec.rb +70 -0
  1061. data/spec/models/lease_rent_charge_post_message_spec.rb +52 -0
  1062. data/spec/models/lease_rent_message_spec.rb +86 -0
  1063. data/spec/models/lease_rent_post_message_spec.rb +44 -0
  1064. data/spec/models/lease_search_message_spec.rb +108 -0
  1065. data/spec/models/lease_security_deposit_post_message_spec.rb +40 -0
  1066. data/spec/models/lease_tenant_message_spec.rb +44 -0
  1067. data/spec/models/lease_transaction_message_spec.rb +82 -0
  1068. data/spec/models/lease_transaction_search_message_spec.rb +50 -0
  1069. data/spec/models/listing_contact_message_spec.rb +58 -0
  1070. data/spec/models/listing_contact_save_message_spec.rb +52 -0
  1071. data/spec/models/listing_file_message_spec.rb +50 -0
  1072. data/spec/models/listing_message_spec.rb +88 -0
  1073. data/spec/models/listing_property_message_spec.rb +90 -0
  1074. data/spec/models/listing_put_message_spec.rb +64 -0
  1075. data/spec/models/listing_search_message_spec.rb +44 -0
  1076. data/spec/models/listing_unit_message_spec.rb +100 -0
  1077. data/spec/models/lock_period_settings_global_message_spec.rb +34 -0
  1078. data/spec/models/lock_period_settings_overrides_message_spec.rb +40 -0
  1079. data/spec/models/logged_by_staff_user_message_spec.rb +52 -0
  1080. data/spec/models/lookup_message_spec.rb +40 -0
  1081. data/spec/models/mailing_template_message_spec.rb +56 -0
  1082. data/spec/models/note_message_spec.rb +46 -0
  1083. data/spec/models/note_post_message_spec.rb +34 -0
  1084. data/spec/models/note_put_message_spec.rb +34 -0
  1085. data/spec/models/note_search_message_spec.rb +46 -0
  1086. data/spec/models/outstanding_balances_line_message_spec.rb +40 -0
  1087. data/spec/models/ownership_account_charge_recurring_transaction_message_spec.rb +108 -0
  1088. data/spec/models/ownership_account_credit_line_post_message_spec.rb +40 -0
  1089. data/spec/models/ownership_account_credit_post_message_spec.rb +62 -0
  1090. data/spec/models/ownership_account_deposit_withholding_line_post_message_spec.rb +40 -0
  1091. data/spec/models/ownership_account_deposit_withholding_post_message_spec.rb +52 -0
  1092. data/spec/models/ownership_account_ledger_charge_lines_put_message_spec.rb +46 -0
  1093. data/spec/models/ownership_account_ledger_charge_lines_save_message_spec.rb +40 -0
  1094. data/spec/models/ownership_account_ledger_charge_post_message_spec.rb +46 -0
  1095. data/spec/models/ownership_account_ledger_charge_put_message_spec.rb +46 -0
  1096. data/spec/models/ownership_account_ledger_payment_line_save_message_spec.rb +40 -0
  1097. data/spec/models/ownership_account_ledger_payment_post_message_spec.rb +74 -0
  1098. data/spec/models/ownership_account_outstanding_balance_message_spec.rb +88 -0
  1099. data/spec/models/ownership_account_outstanding_balance_search_message_spec.rb +70 -0
  1100. data/spec/models/ownership_account_recurring_credit_message_spec.rb +124 -0
  1101. data/spec/models/ownership_account_recurring_payment_message_spec.rb +118 -0
  1102. data/spec/models/ownership_account_refund_line_message_spec.rb +40 -0
  1103. data/spec/models/ownership_account_refund_lines_post_message_spec.rb +40 -0
  1104. data/spec/models/ownership_account_refund_message_spec.rb +82 -0
  1105. data/spec/models/ownership_account_refund_post_message_spec.rb +70 -0
  1106. data/spec/models/ownership_account_transaction_message_spec.rb +82 -0
  1107. data/spec/models/paid_by_message_spec.rb +40 -0
  1108. data/spec/models/participant_message_spec.rb +46 -0
  1109. data/spec/models/participant_resource_message_spec.rb +44 -0
  1110. data/spec/models/payee_message_spec.rb +56 -0
  1111. data/spec/models/payment_detail_message_spec.rb +56 -0
  1112. data/spec/models/payment_recurring_transaction_post_message_spec.rb +94 -0
  1113. data/spec/models/payment_transactions_message_spec.rb +46 -0
  1114. data/spec/models/phone_log_message_spec.rb +64 -0
  1115. data/spec/models/phone_log_participant_post_message_spec.rb +50 -0
  1116. data/spec/models/phone_log_participant_unit_agreement_post_message_spec.rb +44 -0
  1117. data/spec/models/phone_log_post_message_spec.rb +52 -0
  1118. data/spec/models/phone_log_put_message_spec.rb +46 -0
  1119. data/spec/models/phone_log_search_message_spec.rb +84 -0
  1120. data/spec/models/phone_number_message_spec.rb +44 -0
  1121. data/spec/models/phone_numbers_message_spec.rb +52 -0
  1122. data/spec/models/property_group_message_spec.rb +58 -0
  1123. data/spec/models/property_group_post_message_spec.rb +46 -0
  1124. data/spec/models/property_group_put_message_spec.rb +46 -0
  1125. data/spec/models/property_group_search_message_spec.rb +40 -0
  1126. data/spec/models/property_manager_message_spec.rb +76 -0
  1127. data/spec/models/property_message_spec.rb +50 -0
  1128. data/spec/models/recurring_transaction_line_message_spec.rb +40 -0
  1129. data/spec/models/recurring_transaction_line_post_message_spec.rb +40 -0
  1130. data/spec/models/recurring_transaction_message_spec.rb +112 -0
  1131. data/spec/models/rental_appliance_message_spec.rb +76 -0
  1132. data/spec/models/rental_appliance_post_message_spec.rb +76 -0
  1133. data/spec/models/rental_appliance_put_message_spec.rb +64 -0
  1134. data/spec/models/rental_appliance_search_message_spec.rb +40 -0
  1135. data/spec/models/rental_appliance_service_history_message_spec.rb +56 -0
  1136. data/spec/models/rental_appliance_service_history_post_message_spec.rb +50 -0
  1137. data/spec/models/rental_features_message_spec.rb +48 -0
  1138. data/spec/models/rental_features_put_message_spec.rb +48 -0
  1139. data/spec/models/rental_message_spec.rb +108 -0
  1140. data/spec/models/rental_owner_message_spec.rb +118 -0
  1141. data/spec/models/rental_owner_post_message_spec.rb +112 -0
  1142. data/spec/models/rental_owner_put_message_spec.rb +106 -0
  1143. data/spec/models/rental_owner_request_task_message_spec.rb +114 -0
  1144. data/spec/models/rental_owner_request_task_post_message_spec.rb +102 -0
  1145. data/spec/models/rental_owner_request_task_put_message_spec.rb +96 -0
  1146. data/spec/models/rental_owner_request_task_search_message_spec.rb +112 -0
  1147. data/spec/models/rental_owner_tax_information_message_spec.rb +68 -0
  1148. data/spec/models/rental_owners_search_message_spec.rb +74 -0
  1149. data/spec/models/rental_preferred_vendor_message_spec.rb +82 -0
  1150. data/spec/models/rental_preferred_vendor_put_message_spec.rb +34 -0
  1151. data/spec/models/rental_property_post_message_spec.rb +92 -0
  1152. data/spec/models/rental_property_put_message_spec.rb +80 -0
  1153. data/spec/models/rental_property_unit_post_message_spec.rb +78 -0
  1154. data/spec/models/rental_search_message_spec.rb +88 -0
  1155. data/spec/models/rental_tenant_post_message_spec.rb +110 -0
  1156. data/spec/models/rental_tenant_put_message_spec.rb +104 -0
  1157. data/spec/models/rental_tenant_renewal_post_message_spec.rb +104 -0
  1158. data/spec/models/rental_unit_features_message_spec.rb +38 -0
  1159. data/spec/models/rental_unit_features_put_message_spec.rb +38 -0
  1160. data/spec/models/rental_unit_message_spec.rb +108 -0
  1161. data/spec/models/rental_unit_put_message_spec.rb +78 -0
  1162. data/spec/models/rental_unit_search_message_spec.rb +46 -0
  1163. data/spec/models/rental_units_post_message_spec.rb +84 -0
  1164. data/spec/models/requested_by_user_entity_message_spec.rb +68 -0
  1165. data/spec/models/resident_center_user_message_spec.rb +56 -0
  1166. data/spec/models/resident_center_user_reference_message_spec.rb +62 -0
  1167. data/spec/models/resident_center_user_search_message_spec.rb +66 -0
  1168. data/spec/models/resident_request_task_message_spec.rb +144 -0
  1169. data/spec/models/resident_request_task_post_message_spec.rb +114 -0
  1170. data/spec/models/resident_request_task_put_message_spec.rb +84 -0
  1171. data/spec/models/resident_request_task_search_message_spec.rb +118 -0
  1172. data/spec/models/save_address_message_spec.rb +74 -0
  1173. data/spec/models/save_emergency_contact_message_spec.rb +52 -0
  1174. data/spec/models/task_category_message_spec.rb +52 -0
  1175. data/spec/models/task_category_put_message_spec.rb +34 -0
  1176. data/spec/models/task_category_response_message_spec.rb +52 -0
  1177. data/spec/models/task_category_save_message_spec.rb +34 -0
  1178. data/spec/models/task_history_file_message_spec.rb +64 -0
  1179. data/spec/models/task_history_file_upload_post_message_spec.rb +34 -0
  1180. data/spec/models/task_history_message_spec.rb +112 -0
  1181. data/spec/models/task_history_put_message_spec.rb +34 -0
  1182. data/spec/models/task_history_user_message_spec.rb +52 -0
  1183. data/spec/models/task_search_message_spec.rb +128 -0
  1184. data/spec/models/task_sub_category_message_spec.rb +40 -0
  1185. data/spec/models/tax_information_post_message_spec.rb +62 -0
  1186. data/spec/models/tax_information_save_message_spec.rb +68 -0
  1187. data/spec/models/tenant_message_spec.rb +128 -0
  1188. data/spec/models/tenant_search_message_spec.rb +96 -0
  1189. data/spec/models/to_do_task_message_spec.rb +108 -0
  1190. data/spec/models/to_do_task_post_message_spec.rb +96 -0
  1191. data/spec/models/to_do_task_put_message_spec.rb +96 -0
  1192. data/spec/models/to_do_task_search_message_spec.rb +112 -0
  1193. data/spec/models/undeposited_funds_message_spec.rb +34 -0
  1194. data/spec/models/unit_agreement_message_spec.rb +50 -0
  1195. data/spec/models/user_message_spec.rb +104 -0
  1196. data/spec/models/user_role_message_spec.rb +52 -0
  1197. data/spec/models/user_search_message_spec.rb +66 -0
  1198. data/spec/models/vehicle_message_spec.rb +52 -0
  1199. data/spec/models/vendor_category_message_spec.rb +46 -0
  1200. data/spec/models/vendor_category_save_message_spec.rb +34 -0
  1201. data/spec/models/vendor_credit_line_item_message_spec.rb +58 -0
  1202. data/spec/models/vendor_credit_line_item_post_message_spec.rb +52 -0
  1203. data/spec/models/vendor_credit_message_spec.rb +58 -0
  1204. data/spec/models/vendor_credit_post_message_spec.rb +52 -0
  1205. data/spec/models/vendor_insurance_message_spec.rb +46 -0
  1206. data/spec/models/vendor_insurance_save_message_spec.rb +46 -0
  1207. data/spec/models/vendor_message_spec.rb +130 -0
  1208. data/spec/models/vendor_post_message_spec.rb +118 -0
  1209. data/spec/models/vendor_put_message_spec.rb +118 -0
  1210. data/spec/models/vendor_refund_line_message_spec.rb +58 -0
  1211. data/spec/models/vendor_refund_line_post_message_spec.rb +52 -0
  1212. data/spec/models/vendor_refund_message_spec.rb +74 -0
  1213. data/spec/models/vendor_refund_post_message_spec.rb +68 -0
  1214. data/spec/models/vendor_search_message_spec.rb +84 -0
  1215. data/spec/models/vendor_tax_information_message_spec.rb +68 -0
  1216. data/spec/models/vendor_transaction_message_spec.rb +68 -0
  1217. data/spec/models/vendor_transaction_search_message_spec.rb +62 -0
  1218. data/spec/models/work_order_entry_contact_message_spec.rb +40 -0
  1219. data/spec/models/work_order_entry_contact_resource_message_spec.rb +44 -0
  1220. data/spec/models/work_order_line_item_message_spec.rb +52 -0
  1221. data/spec/models/work_order_line_item_save_message_spec.rb +52 -0
  1222. data/spec/models/work_order_message_spec.rb +110 -0
  1223. data/spec/models/work_order_post_message_spec.rb +98 -0
  1224. data/spec/models/work_order_put_message_spec.rb +86 -0
  1225. data/spec/models/work_order_search_message_spec.rb +158 -0
  1226. data/spec/models/work_order_task_message_spec.rb +88 -0
  1227. data/spec/models/work_order_task_post_message_spec.rb +78 -0
  1228. data/spec/spec_helper.rb +111 -0
  1229. 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 &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`
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. &lt;br /&gt;&lt;br /&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Leases&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60; &lt;br /&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Tenants&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60; &lt;br /&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Lease transactions&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60;
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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Lease transactions&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60;
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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Lease transactions&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60;
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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Lease transactions&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60;
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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Lease transactions&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60;
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 &gt; Lease Ledger</span> - `View` `Edit` <span class=\"permissionBlock\">Accounting &gt; 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). &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Lease Ledger&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60; &lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Accounting &amp;gt; General Ledger Accounts&lt;/span&gt; - &#x60;View&#x60;
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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Accounting &amp;gt; Bank Accounts&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60;
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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Leases&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60;
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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Lease Transactions&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60;
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 &gt; Lease transactions</span> - `View` `Edit` <br /><span class=\"permissionBlock\">Accounting &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Lease transactions&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60; &lt;br /&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Accounting &amp;gt; Bank Accounts&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60;
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 &gt; Leases</span> - `View` `Edit` <br /><span class=\"permissionBlock\">Rentals &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Leases&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60; &lt;br /&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Tenants&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60;
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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Lease transactions&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60;
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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Leases&lt;/span&gt; - &#x60;View&#x60;
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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Lease transactions&lt;/span&gt; - &#x60;View&#x60;
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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Accounting &amp;gt; Bank Accounts&lt;/span&gt; - &#x60;View&#x60;
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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Lease Transactions&lt;/span&gt; - &#x60;View&#x60;
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 &gt; 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 &#x60;orderby&#x60; indicates the field(s) and direction to sort the results in the response. See &lt;a href&#x3D;\&quot;#section/API-Overview/Bulk-Request-Options\&quot;&gt;Bulk Request Options&lt;/a&gt; for more information.
1182
+ # @option opts [Integer] :offset &#x60;offset&#x60; indicates the position of the first record to return. The &#x60;offset&#x60; is zero-based and the default is 0.
1183
+ # @option opts [Integer] :limit &#x60;limit&#x60; indicates the maximum number of results to be returned in the response. &#x60;limit&#x60; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Lease transactions&lt;/span&gt; - &#x60;View&#x60;
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 &#x60;orderby&#x60; indicates the field(s) and direction to sort the results in the response. See &lt;a href&#x3D;\&quot;#section/API-Overview/Bulk-Request-Options\&quot;&gt;Bulk Request Options&lt;/a&gt; for more information.
1198
+ # @option opts [Integer] :offset &#x60;offset&#x60; indicates the position of the first record to return. The &#x60;offset&#x60; is zero-based and the default is 0.
1199
+ # @option opts [Integer] :limit &#x60;limit&#x60; indicates the maximum number of results to be returned in the response. &#x60;limit&#x60; 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 &gt; Leases</span> - `View` <br /><span class=\"permissionBlock\">Rentals &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Leases&lt;/span&gt; - &#x60;View&#x60; &lt;br /&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Tenants&lt;/span&gt; - &#x60;View&#x60;
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 &gt; Leases</span> - `View` <br /><span class=\"permissionBlock\">Rentals &gt; Tenants</span> - `View`
1330
+ # @param lease_id [Integer]
1331
+ # @param [Hash] opts the optional parameters
1332
+ # @option opts [String] :orderby &#x60;orderby&#x60; indicates the field(s) and direction to sort the results in the response. See &lt;a href&#x3D;\&quot;#section/API-Overview/Bulk-Request-Options\&quot;&gt;Bulk Request Options&lt;/a&gt; for more information.
1333
+ # @option opts [Integer] :offset &#x60;offset&#x60; indicates the position of the first record to return. The &#x60;offset&#x60; is zero-based and the default is 0.
1334
+ # @option opts [Integer] :limit &#x60;limit&#x60; indicates the maximum number of results to be returned in the response. &#x60;limit&#x60; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Leases&lt;/span&gt; - &#x60;View&#x60; &lt;br /&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Tenants&lt;/span&gt; - &#x60;View&#x60;
1343
+ # @param lease_id [Integer]
1344
+ # @param [Hash] opts the optional parameters
1345
+ # @option opts [String] :orderby &#x60;orderby&#x60; indicates the field(s) and direction to sort the results in the response. See &lt;a href&#x3D;\&quot;#section/API-Overview/Bulk-Request-Options\&quot;&gt;Bulk Request Options&lt;/a&gt; for more information.
1346
+ # @option opts [Integer] :offset &#x60;offset&#x60; indicates the position of the first record to return. The &#x60;offset&#x60; is zero-based and the default is 0.
1347
+ # @option opts [Integer] :limit &#x60;limit&#x60; indicates the maximum number of results to be returned in the response. &#x60;limit&#x60; 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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Leases&lt;/span&gt; - &#x60;View&#x60;
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 &gt; 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 &#x60;orderby&#x60; indicates the field(s) and direction to sort the results in the response. See &lt;a href&#x3D;\&quot;#section/API-Overview/Bulk-Request-Options\&quot;&gt;Bulk Request Options&lt;/a&gt; for more information.
1477
+ # @option opts [Integer] :offset &#x60;offset&#x60; indicates the position of the first record to return. The &#x60;offset&#x60; is zero-based and the default is 0.
1478
+ # @option opts [Integer] :limit &#x60;limit&#x60; indicates the maximum number of results to be returned in the response. &#x60;limit&#x60; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Leases&lt;/span&gt; - &#x60;View&#x60;
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 &#x60;orderby&#x60; indicates the field(s) and direction to sort the results in the response. See &lt;a href&#x3D;\&quot;#section/API-Overview/Bulk-Request-Options\&quot;&gt;Bulk Request Options&lt;/a&gt; for more information.
1493
+ # @option opts [Integer] :offset &#x60;offset&#x60; indicates the position of the first record to return. The &#x60;offset&#x60; is zero-based and the default is 0.
1494
+ # @option opts [Integer] :limit &#x60;limit&#x60; indicates the maximum number of results to be returned in the response. &#x60;limit&#x60; 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 &gt; 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 &#x60;orderby&#x60; indicates the field(s) and direction to sort the results in the response. See &lt;a href&#x3D;\&quot;#section/API-Overview/Bulk-Request-Options\&quot;&gt;Bulk Request Options&lt;/a&gt; for more information.
1561
+ # @option opts [Integer] :offset &#x60;offset&#x60; indicates the position of the first record to return. The &#x60;offset&#x60; is zero-based and the default is 0.
1562
+ # @option opts [Integer] :limit &#x60;limit&#x60; indicates the maximum number of results to be returned in the response. &#x60;limit&#x60; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Outstanding Balances&lt;/span&gt; - &#x60;View&#x60;
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 &#x60;orderby&#x60; indicates the field(s) and direction to sort the results in the response. See &lt;a href&#x3D;\&quot;#section/API-Overview/Bulk-Request-Options\&quot;&gt;Bulk Request Options&lt;/a&gt; for more information.
1580
+ # @option opts [Integer] :offset &#x60;offset&#x60; indicates the position of the first record to return. The &#x60;offset&#x60; is zero-based and the default is 0.
1581
+ # @option opts [Integer] :limit &#x60;limit&#x60; indicates the maximum number of results to be returned in the response. &#x60;limit&#x60; 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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Lease transactions&lt;/span&gt; - &#x60;View&#x60;
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 &gt; Lease transactions</span> - `View`
1728
+ # @param lease_id [Integer]
1729
+ # @param [Hash] opts the optional parameters
1730
+ # @option opts [String] :orderby &#x60;orderby&#x60; indicates the field(s) and direction to sort the results in the response. See &lt;a href&#x3D;\&quot;#section/API-Overview/Bulk-Request-Options\&quot;&gt;Bulk Request Options&lt;/a&gt; for more information.
1731
+ # @option opts [Integer] :offset &#x60;offset&#x60; indicates the position of the first record to return. The &#x60;offset&#x60; is zero-based and the default is 0.
1732
+ # @option opts [Integer] :limit &#x60;limit&#x60; indicates the maximum number of results to be returned in the response. &#x60;limit&#x60; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Lease transactions&lt;/span&gt; - &#x60;View&#x60;
1741
+ # @param lease_id [Integer]
1742
+ # @param [Hash] opts the optional parameters
1743
+ # @option opts [String] :orderby &#x60;orderby&#x60; indicates the field(s) and direction to sort the results in the response. See &lt;a href&#x3D;\&quot;#section/API-Overview/Bulk-Request-Options\&quot;&gt;Bulk Request Options&lt;/a&gt; for more information.
1744
+ # @option opts [Integer] :offset &#x60;offset&#x60; indicates the position of the first record to return. The &#x60;offset&#x60; is zero-based and the default is 0.
1745
+ # @option opts [Integer] :limit &#x60;limit&#x60; indicates the maximum number of results to be returned in the response. &#x60;limit&#x60; 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 &gt; 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&#39; 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 &#x60;orderby&#x60; indicates the field(s) and direction to sort the results in the response. See &lt;a href&#x3D;\&quot;#section/API-Overview/Bulk-Request-Options\&quot;&gt;Bulk Request Options&lt;/a&gt; for more information.
1814
+ # @option opts [Integer] :offset &#x60;offset&#x60; indicates the position of the first record to return. The &#x60;offset&#x60; is zero-based and the default is 0.
1815
+ # @option opts [Integer] :limit &#x60;limit&#x60; indicates the maximum number of results to be returned in the response. &#x60;limit&#x60; 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. &lt;br /&gt;&lt;br /&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Leases&lt;/span&gt; - &#x60;View&#x60;
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&#39; 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 &#x60;orderby&#x60; indicates the field(s) and direction to sort the results in the response. See &lt;a href&#x3D;\&quot;#section/API-Overview/Bulk-Request-Options\&quot;&gt;Bulk Request Options&lt;/a&gt; for more information.
1838
+ # @option opts [Integer] :offset &#x60;offset&#x60; indicates the position of the first record to return. The &#x60;offset&#x60; is zero-based and the default is 0.
1839
+ # @option opts [Integer] :limit &#x60;limit&#x60; indicates the maximum number of results to be returned in the response. &#x60;limit&#x60; 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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Lease Transactions&lt;/span&gt; - &#x60;View&#x60;
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 &gt; Lease transactions</span> - `View`
1979
+ # @param lease_id [Integer]
1980
+ # @param [Hash] opts the optional parameters
1981
+ # @option opts [String] :orderby &#x60;orderby&#x60; indicates the field(s) and direction to sort the results in the response. See &lt;a href&#x3D;\&quot;#section/API-Overview/Bulk-Request-Options\&quot;&gt;Bulk Request Options&lt;/a&gt; for more information.
1982
+ # @option opts [Integer] :offset &#x60;offset&#x60; indicates the position of the first record to return. The &#x60;offset&#x60; is zero-based and the default is 0.
1983
+ # @option opts [Integer] :limit &#x60;limit&#x60; indicates the maximum number of results to be returned in the response. &#x60;limit&#x60; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Lease transactions&lt;/span&gt; - &#x60;View&#x60;
1992
+ # @param lease_id [Integer]
1993
+ # @param [Hash] opts the optional parameters
1994
+ # @option opts [String] :orderby &#x60;orderby&#x60; indicates the field(s) and direction to sort the results in the response. See &lt;a href&#x3D;\&quot;#section/API-Overview/Bulk-Request-Options\&quot;&gt;Bulk Request Options&lt;/a&gt; for more information.
1995
+ # @option opts [Integer] :offset &#x60;offset&#x60; indicates the position of the first record to return. The &#x60;offset&#x60; is zero-based and the default is 0.
1996
+ # @option opts [Integer] :limit &#x60;limit&#x60; indicates the maximum number of results to be returned in the response. &#x60;limit&#x60; 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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Lease transactions&lt;/span&gt; - &#x60;View&#x60;
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 &gt; Leases</span> - `View`
2120
+ # @param lease_id [Integer]
2121
+ # @param [Hash] opts the optional parameters
2122
+ # @option opts [String] :orderby &#x60;orderby&#x60; indicates the field(s) and direction to sort the results in the response. See &lt;a href&#x3D;\&quot;#section/API-Overview/Bulk-Request-Options\&quot;&gt;Bulk Request Options&lt;/a&gt; for more information.
2123
+ # @option opts [Integer] :offset &#x60;offset&#x60; indicates the position of the first record to return. The &#x60;offset&#x60; is zero-based and the default is 0.
2124
+ # @option opts [Integer] :limit &#x60;limit&#x60; indicates the maximum number of results to be returned in the response. &#x60;limit&#x60; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Leases&lt;/span&gt; - &#x60;View&#x60;
2133
+ # @param lease_id [Integer]
2134
+ # @param [Hash] opts the optional parameters
2135
+ # @option opts [String] :orderby &#x60;orderby&#x60; indicates the field(s) and direction to sort the results in the response. See &lt;a href&#x3D;\&quot;#section/API-Overview/Bulk-Request-Options\&quot;&gt;Bulk Request Options&lt;/a&gt; for more information.
2136
+ # @option opts [Integer] :offset &#x60;offset&#x60; indicates the position of the first record to return. The &#x60;offset&#x60; is zero-based and the default is 0.
2137
+ # @option opts [Integer] :limit &#x60;limit&#x60; indicates the maximum number of results to be returned in the response. &#x60;limit&#x60; 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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Leases&lt;/span&gt; - &#x60;View&#x60;
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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Leases&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60;
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 &gt; Leases</span> - `View` `Edit` <br /><span class=\"permissionBlock\">Rentals &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required Permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Leases&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60; &lt;br /&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Tenants&lt;/span&gt; - &#x60;View&#x60;
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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; Any field not included in the update request will be set to either an empty string or &#x60;null&#x60; in the database depending on the field definition. &lt;br /&gt;The recommended workflow to ensure no data is inadvertently overwritten is to execute a &#x60;GET&#x60; request for the resource you&#39;re about to update and then use this response to fill any of the fields that are not being updated. &lt;br /&gt;&lt;br /&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Leases&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60;
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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Lease transactions&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60;
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 &gt; 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. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; Any field not included in the update request will be set to either an empty string or &#x60;null&#x60; in the database depending on the field definition. &lt;br /&gt;The recommended workflow to ensure no data is inadvertently overwritten is to execute a &#x60;GET&#x60; request for the resource you&#39;re about to update and then use this response to fill any of the fields that are not being updated. &lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Required permission(s):&lt;/h4&gt;&lt;span class&#x3D;\&quot;permissionBlock\&quot;&gt;Rentals &amp;gt; Leases&lt;/span&gt; - &#x60;View&#x60; &#x60;Edit&#x60;
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