propertyware 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) 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 +375 -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 +23 -0
  11. data/.rspec +2 -0
  12. data/.rubocop.yml +124 -0
  13. data/CUSTOMIZATIONS.md +11 -0
  14. data/DOCS.md +673 -0
  15. data/Gemfile +9 -0
  16. data/Gemfile.lock +76 -0
  17. data/README.md +93 -0
  18. data/Rakefile +10 -0
  19. data/bin/CUSTOMIZATIONS.md +11 -0
  20. data/bin/README.md +93 -0
  21. data/bin/config.yml +7 -0
  22. data/bin/fix_json.rb +59 -0
  23. data/bin/propertyware.json +1 -0
  24. data/bin/rebuild.sh +31 -0
  25. data/docs/Account.md +84 -0
  26. data/docs/AccountingApi.md +1235 -0
  27. data/docs/Address.md +28 -0
  28. data/docs/Amenity.md +24 -0
  29. data/docs/AutoJournalEntry.md +46 -0
  30. data/docs/AutoPayment.md +42 -0
  31. data/docs/Bank.md +52 -0
  32. data/docs/BankDeposit.md +32 -0
  33. data/docs/BasicVendor.md +40 -0
  34. data/docs/Bill.md +54 -0
  35. data/docs/BillPaid.md +24 -0
  36. data/docs/BillPay.md +20 -0
  37. data/docs/BillPayment.md +46 -0
  38. data/docs/BillSplit.md +42 -0
  39. data/docs/BillsApi.md +1391 -0
  40. data/docs/Building.md +116 -0
  41. data/docs/BuildingsApi.md +1037 -0
  42. data/docs/Campaign.md +60 -0
  43. data/docs/CampaignSource.md +26 -0
  44. data/docs/Charge.md +36 -0
  45. data/docs/ChargeTx.md +52 -0
  46. data/docs/Check.md +48 -0
  47. data/docs/CheckSplit.md +30 -0
  48. data/docs/Comment.md +28 -0
  49. data/docs/Contact.md +74 -0
  50. data/docs/ContactsApi.md +783 -0
  51. data/docs/Conversation.md +36 -0
  52. data/docs/CreditCardAccount.md +18 -0
  53. data/docs/CurrentAsset.md +30 -0
  54. data/docs/CurrentLiability.md +30 -0
  55. data/docs/CustomField.md +24 -0
  56. data/docs/Discount.md +40 -0
  57. data/docs/Document.md +40 -0
  58. data/docs/DocumentsApi.md +267 -0
  59. data/docs/Entry.md +34 -0
  60. data/docs/Equity.md +32 -0
  61. data/docs/ErrorResponse.md +22 -0
  62. data/docs/Expense.md +32 -0
  63. data/docs/GLItem.md +40 -0
  64. data/docs/HealthCheckApi.md +86 -0
  65. data/docs/Income.md +34 -0
  66. data/docs/Inspection.md +46 -0
  67. data/docs/InspectionArea.md +22 -0
  68. data/docs/InspectionItem.md +24 -0
  69. data/docs/InspectionsApi.md +193 -0
  70. data/docs/JournalEntry.md +36 -0
  71. data/docs/JournalEntrySplit.md +24 -0
  72. data/docs/JournalEntrySplitResponse.md +24 -0
  73. data/docs/LateFeeRule.md +26 -0
  74. data/docs/Lease.md +76 -0
  75. data/docs/LeaseClause.md +22 -0
  76. data/docs/LeaseContact.md +36 -0
  77. data/docs/LeasesApi.md +3319 -0
  78. data/docs/ManagementFee.md +30 -0
  79. data/docs/ManagementSettings.md +26 -0
  80. data/docs/Marketing.md +62 -0
  81. data/docs/NonCurrentAsset.md +26 -0
  82. data/docs/NonCurrentLiability.md +30 -0
  83. data/docs/NonOperatingExpense.md +32 -0
  84. data/docs/NonOperatingInome.md +32 -0
  85. data/docs/Note.md +28 -0
  86. data/docs/Owner.md +38 -0
  87. data/docs/OwnerContribution.md +44 -0
  88. data/docs/OwnerDraw.md +44 -0
  89. data/docs/Payment.md +50 -0
  90. data/docs/PaymentCharge.md +36 -0
  91. data/docs/Portfolio.md +60 -0
  92. data/docs/PortfoliosApi.md +701 -0
  93. data/docs/PropertyManager.md +26 -0
  94. data/docs/Prospect.md +114 -0
  95. data/docs/ProspectsApi.md +789 -0
  96. data/docs/RESTAPIBulkErrorResponse.md +22 -0
  97. data/docs/RESTAPIBulkSuccessResponse.md +18 -0
  98. data/docs/RESTAPIError.md +20 -0
  99. data/docs/Refund.md +44 -0
  100. data/docs/ResponseEntity.md +20 -0
  101. data/docs/SaveAccount.md +52 -0
  102. data/docs/SaveAddress.md +28 -0
  103. data/docs/SaveAdjustment.md +26 -0
  104. data/docs/SaveAutoCharge.md +28 -0
  105. data/docs/SaveBankDeposit.md +20 -0
  106. data/docs/SaveBill.md +42 -0
  107. data/docs/SaveBillPayment.md +30 -0
  108. data/docs/SaveBillSplit.md +36 -0
  109. data/docs/SaveBuilding.md +84 -0
  110. data/docs/SaveCharge.md +28 -0
  111. data/docs/SaveCheck.md +30 -0
  112. data/docs/SaveCheckSplit.md +30 -0
  113. data/docs/SaveComment.md +18 -0
  114. data/docs/SaveContact.md +60 -0
  115. data/docs/SaveConversation.md +20 -0
  116. data/docs/SaveCredit.md +26 -0
  117. data/docs/SaveDiscount.md +28 -0
  118. data/docs/SaveJournalEntrySplit.md +22 -0
  119. data/docs/SaveLease.md +50 -0
  120. data/docs/SaveLeaseJournalEntry.md +26 -0
  121. data/docs/SaveOwner.md +36 -0
  122. data/docs/SaveOwnerContribution.md +34 -0
  123. data/docs/SaveOwnerDraw.md +34 -0
  124. data/docs/SavePayment.md +34 -0
  125. data/docs/SavePortfolio.md +38 -0
  126. data/docs/SaveProspect.md +76 -0
  127. data/docs/SaveProspectContact.md +36 -0
  128. data/docs/SaveRefund.md +34 -0
  129. data/docs/SaveUnit.md +60 -0
  130. data/docs/SaveVendor.md +46 -0
  131. data/docs/SaveWorkOrder.md +36 -0
  132. data/docs/SaveWorkOrderTask.md +30 -0
  133. data/docs/SplitPaid.md +34 -0
  134. data/docs/SplitPay.md +20 -0
  135. data/docs/Task.md +42 -0
  136. data/docs/Transaction.md +54 -0
  137. data/docs/Unit.md +96 -0
  138. data/docs/UnitsApi.md +875 -0
  139. data/docs/UpdateLeaseJournalEntry.md +26 -0
  140. data/docs/Vendor.md +76 -0
  141. data/docs/VendorsApi.md +617 -0
  142. data/docs/WorkOrder.md +78 -0
  143. data/docs/WorkOrdersApi.md +883 -0
  144. data/lib/propertyware/api/accounting_api.rb +1041 -0
  145. data/lib/propertyware/api/bills_api.rb +1182 -0
  146. data/lib/propertyware/api/buildings_api.rb +863 -0
  147. data/lib/propertyware/api/contacts_api.rb +666 -0
  148. data/lib/propertyware/api/documents_api.rb +235 -0
  149. data/lib/propertyware/api/health_check_api.rb +79 -0
  150. data/lib/propertyware/api/inspections_api.rb +172 -0
  151. data/lib/propertyware/api/leases_api.rb +2787 -0
  152. data/lib/propertyware/api/portfolios_api.rb +599 -0
  153. data/lib/propertyware/api/prospects_api.rb +671 -0
  154. data/lib/propertyware/api/units_api.rb +740 -0
  155. data/lib/propertyware/api/vendors_api.rb +522 -0
  156. data/lib/propertyware/api/work_orders_api.rb +763 -0
  157. data/lib/propertyware/api_client.rb +428 -0
  158. data/lib/propertyware/api_error.rb +58 -0
  159. data/lib/propertyware/configuration.rb +392 -0
  160. data/lib/propertyware/models/account.rb +549 -0
  161. data/lib/propertyware/models/address.rb +269 -0
  162. data/lib/propertyware/models/amenity.rb +249 -0
  163. data/lib/propertyware/models/auto_journal_entry.rb +358 -0
  164. data/lib/propertyware/models/auto_payment.rb +338 -0
  165. data/lib/propertyware/models/bank.rb +389 -0
  166. data/lib/propertyware/models/bank_deposit.rb +289 -0
  167. data/lib/propertyware/models/basic_vendor.rb +330 -0
  168. data/lib/propertyware/models/bill.rb +401 -0
  169. data/lib/propertyware/models/bill_paid.rb +250 -0
  170. data/lib/propertyware/models/bill_pay.rb +230 -0
  171. data/lib/propertyware/models/bill_payment.rb +361 -0
  172. data/lib/propertyware/models/bill_split.rb +339 -0
  173. data/lib/propertyware/models/building.rb +782 -0
  174. data/lib/propertyware/models/campaign.rb +430 -0
  175. data/lib/propertyware/models/campaign_source.rb +258 -0
  176. data/lib/propertyware/models/charge.rb +318 -0
  177. data/lib/propertyware/models/charge_tx.rb +401 -0
  178. data/lib/propertyware/models/check.rb +425 -0
  179. data/lib/propertyware/models/check_split.rb +284 -0
  180. data/lib/propertyware/models/comment.rb +269 -0
  181. data/lib/propertyware/models/contact.rb +546 -0
  182. data/lib/propertyware/models/conversation.rb +345 -0
  183. data/lib/propertyware/models/credit_card_account.rb +219 -0
  184. data/lib/propertyware/models/current_asset.rb +279 -0
  185. data/lib/propertyware/models/current_liability.rb +279 -0
  186. data/lib/propertyware/models/custom_field.rb +249 -0
  187. data/lib/propertyware/models/discount.rb +339 -0
  188. data/lib/propertyware/models/document.rb +362 -0
  189. data/lib/propertyware/models/entry.rb +297 -0
  190. data/lib/propertyware/models/equity.rb +289 -0
  191. data/lib/propertyware/models/error_response.rb +237 -0
  192. data/lib/propertyware/models/expense.rb +289 -0
  193. data/lib/propertyware/models/gl_item.rb +330 -0
  194. data/lib/propertyware/models/income.rb +299 -0
  195. data/lib/propertyware/models/inspection.rb +361 -0
  196. data/lib/propertyware/models/inspection_area.rb +241 -0
  197. data/lib/propertyware/models/inspection_item.rb +249 -0
  198. data/lib/propertyware/models/journal_entry.rb +311 -0
  199. data/lib/propertyware/models/journal_entry_split.rb +264 -0
  200. data/lib/propertyware/models/journal_entry_split_response.rb +263 -0
  201. data/lib/propertyware/models/late_fee_rule.rb +258 -0
  202. data/lib/propertyware/models/lease.rb +515 -0
  203. data/lib/propertyware/models/lease_clause.rb +238 -0
  204. data/lib/propertyware/models/lease_contact.rb +309 -0
  205. data/lib/propertyware/models/management_fee.rb +279 -0
  206. data/lib/propertyware/models/management_settings.rb +261 -0
  207. data/lib/propertyware/models/marketing.rb +439 -0
  208. data/lib/propertyware/models/non_current_asset.rb +259 -0
  209. data/lib/propertyware/models/non_current_liability.rb +279 -0
  210. data/lib/propertyware/models/non_operating_expense.rb +289 -0
  211. data/lib/propertyware/models/non_operating_inome.rb +289 -0
  212. data/lib/propertyware/models/note.rb +267 -0
  213. data/lib/propertyware/models/owner.rb +318 -0
  214. data/lib/propertyware/models/owner_contribution.rb +418 -0
  215. data/lib/propertyware/models/owner_draw.rb +398 -0
  216. data/lib/propertyware/models/payment.rb +423 -0
  217. data/lib/propertyware/models/payment_charge.rb +358 -0
  218. data/lib/propertyware/models/portfolio.rb +479 -0
  219. data/lib/propertyware/models/property_manager.rb +259 -0
  220. data/lib/propertyware/models/prospect.rb +701 -0
  221. data/lib/propertyware/models/refund.rb +384 -0
  222. data/lib/propertyware/models/response_entity.rb +260 -0
  223. data/lib/propertyware/models/restapi_bulk_error_response.rb +237 -0
  224. data/lib/propertyware/models/restapi_bulk_success_response.rb +217 -0
  225. data/lib/propertyware/models/restapi_error.rb +226 -0
  226. data/lib/propertyware/models/save_account.rb +398 -0
  227. data/lib/propertyware/models/save_address.rb +274 -0
  228. data/lib/propertyware/models/save_adjustment.rb +269 -0
  229. data/lib/propertyware/models/save_auto_charge.rb +328 -0
  230. data/lib/propertyware/models/save_bank_deposit.rb +239 -0
  231. data/lib/propertyware/models/save_bill.rb +356 -0
  232. data/lib/propertyware/models/save_bill_payment.rb +314 -0
  233. data/lib/propertyware/models/save_bill_split.rb +319 -0
  234. data/lib/propertyware/models/save_building.rb +653 -0
  235. data/lib/propertyware/models/save_charge.rb +289 -0
  236. data/lib/propertyware/models/save_check.rb +291 -0
  237. data/lib/propertyware/models/save_check_split.rb +289 -0
  238. data/lib/propertyware/models/save_comment.rb +224 -0
  239. data/lib/propertyware/models/save_contact.rb +472 -0
  240. data/lib/propertyware/models/save_conversation.rb +273 -0
  241. data/lib/propertyware/models/save_credit.rb +271 -0
  242. data/lib/propertyware/models/save_discount.rb +289 -0
  243. data/lib/propertyware/models/save_journal_entry_split.rb +254 -0
  244. data/lib/propertyware/models/save_lease.rb +444 -0
  245. data/lib/propertyware/models/save_lease_journal_entry.rb +276 -0
  246. data/lib/propertyware/models/save_owner.rb +318 -0
  247. data/lib/propertyware/models/save_owner_contribution.rb +373 -0
  248. data/lib/propertyware/models/save_owner_draw.rb +334 -0
  249. data/lib/propertyware/models/save_payment.rb +373 -0
  250. data/lib/propertyware/models/save_portfolio.rb +379 -0
  251. data/lib/propertyware/models/save_prospect.rb +511 -0
  252. data/lib/propertyware/models/save_prospect_contact.rb +318 -0
  253. data/lib/propertyware/models/save_refund.rb +334 -0
  254. data/lib/propertyware/models/save_unit.rb +492 -0
  255. data/lib/propertyware/models/save_vendor.rb +379 -0
  256. data/lib/propertyware/models/save_work_order.rb +345 -0
  257. data/lib/propertyware/models/save_work_order_task.rb +284 -0
  258. data/lib/propertyware/models/split_paid.rb +298 -0
  259. data/lib/propertyware/models/split_pay.rb +228 -0
  260. data/lib/propertyware/models/task.rb +339 -0
  261. data/lib/propertyware/models/transaction.rb +433 -0
  262. data/lib/propertyware/models/unit.rb +670 -0
  263. data/lib/propertyware/models/update_lease_journal_entry.rb +276 -0
  264. data/lib/propertyware/models/vendor.rb +511 -0
  265. data/lib/propertyware/models/work_order.rb +557 -0
  266. data/lib/propertyware/version.rb +15 -0
  267. data/lib/propertyware.rb +158 -0
  268. data/openapitools.json +7 -0
  269. data/propertyware.gemspec +39 -0
  270. data/spec/api/accounting_api_spec.rb +239 -0
  271. data/spec/api/bills_api_spec.rb +260 -0
  272. data/spec/api/buildings_api_spec.rb +199 -0
  273. data/spec/api/contacts_api_spec.rb +159 -0
  274. data/spec/api/documents_api_spec.rb +77 -0
  275. data/spec/api/health_check_api_spec.rb +46 -0
  276. data/spec/api/inspections_api_spec.rb +68 -0
  277. data/spec/api/leases_api_spec.rb +579 -0
  278. data/spec/api/portfolios_api_spec.rb +147 -0
  279. data/spec/api/prospects_api_spec.rb +162 -0
  280. data/spec/api/units_api_spec.rb +176 -0
  281. data/spec/api/vendors_api_spec.rb +134 -0
  282. data/spec/api/work_orders_api_spec.rb +180 -0
  283. data/spec/api_client_spec.rb +223 -0
  284. data/spec/configuration_spec.rb +82 -0
  285. data/spec/models/account_spec.rb +232 -0
  286. data/spec/models/address_spec.rb +64 -0
  287. data/spec/models/amenity_spec.rb +52 -0
  288. data/spec/models/auto_journal_entry_spec.rb +118 -0
  289. data/spec/models/auto_payment_spec.rb +106 -0
  290. data/spec/models/bank_deposit_spec.rb +76 -0
  291. data/spec/models/bank_spec.rb +136 -0
  292. data/spec/models/basic_vendor_spec.rb +100 -0
  293. data/spec/models/bill_paid_spec.rb +52 -0
  294. data/spec/models/bill_pay_spec.rb +40 -0
  295. data/spec/models/bill_payment_spec.rb +118 -0
  296. data/spec/models/bill_spec.rb +142 -0
  297. data/spec/models/bill_split_spec.rb +106 -0
  298. data/spec/models/building_spec.rb +344 -0
  299. data/spec/models/campaign_source_spec.rb +58 -0
  300. data/spec/models/campaign_spec.rb +160 -0
  301. data/spec/models/charge_spec.rb +88 -0
  302. data/spec/models/charge_tx_spec.rb +136 -0
  303. data/spec/models/check_spec.rb +128 -0
  304. data/spec/models/check_split_spec.rb +70 -0
  305. data/spec/models/comment_spec.rb +64 -0
  306. data/spec/models/contact_spec.rb +210 -0
  307. data/spec/models/conversation_spec.rb +92 -0
  308. data/spec/models/credit_card_account_spec.rb +34 -0
  309. data/spec/models/current_asset_spec.rb +70 -0
  310. data/spec/models/current_liability_spec.rb +70 -0
  311. data/spec/models/custom_field_spec.rb +52 -0
  312. data/spec/models/discount_spec.rb +100 -0
  313. data/spec/models/document_spec.rb +104 -0
  314. data/spec/models/entry_spec.rb +82 -0
  315. data/spec/models/equity_spec.rb +76 -0
  316. data/spec/models/error_response_spec.rb +46 -0
  317. data/spec/models/expense_spec.rb +76 -0
  318. data/spec/models/gl_item_spec.rb +100 -0
  319. data/spec/models/income_spec.rb +82 -0
  320. data/spec/models/inspection_area_spec.rb +46 -0
  321. data/spec/models/inspection_item_spec.rb +52 -0
  322. data/spec/models/inspection_spec.rb +118 -0
  323. data/spec/models/journal_entry_spec.rb +88 -0
  324. data/spec/models/journal_entry_split_response_spec.rb +52 -0
  325. data/spec/models/journal_entry_split_spec.rb +52 -0
  326. data/spec/models/late_fee_rule_spec.rb +58 -0
  327. data/spec/models/lease_clause_spec.rb +46 -0
  328. data/spec/models/lease_contact_spec.rb +88 -0
  329. data/spec/models/lease_spec.rb +208 -0
  330. data/spec/models/management_fee_spec.rb +70 -0
  331. data/spec/models/management_settings_spec.rb +58 -0
  332. data/spec/models/marketing_spec.rb +166 -0
  333. data/spec/models/non_current_asset_spec.rb +58 -0
  334. data/spec/models/non_current_liability_spec.rb +70 -0
  335. data/spec/models/non_operating_expense_spec.rb +76 -0
  336. data/spec/models/non_operating_inome_spec.rb +76 -0
  337. data/spec/models/note_spec.rb +64 -0
  338. data/spec/models/owner_contribution_spec.rb +116 -0
  339. data/spec/models/owner_draw_spec.rb +116 -0
  340. data/spec/models/owner_spec.rb +94 -0
  341. data/spec/models/payment_charge_spec.rb +92 -0
  342. data/spec/models/payment_spec.rb +134 -0
  343. data/spec/models/portfolio_spec.rb +168 -0
  344. data/spec/models/property_manager_spec.rb +58 -0
  345. data/spec/models/prospect_spec.rb +322 -0
  346. data/spec/models/refund_spec.rb +112 -0
  347. data/spec/models/response_entity_spec.rb +44 -0
  348. data/spec/models/restapi_bulk_error_response_spec.rb +46 -0
  349. data/spec/models/restapi_bulk_success_response_spec.rb +34 -0
  350. data/spec/models/restapi_error_spec.rb +40 -0
  351. data/spec/models/save_account_spec.rb +136 -0
  352. data/spec/models/save_address_spec.rb +64 -0
  353. data/spec/models/save_adjustment_spec.rb +58 -0
  354. data/spec/models/save_auto_charge_spec.rb +68 -0
  355. data/spec/models/save_bank_deposit_spec.rb +40 -0
  356. data/spec/models/save_bill_payment_spec.rb +74 -0
  357. data/spec/models/save_bill_spec.rb +106 -0
  358. data/spec/models/save_bill_split_spec.rb +88 -0
  359. data/spec/models/save_building_spec.rb +248 -0
  360. data/spec/models/save_charge_spec.rb +64 -0
  361. data/spec/models/save_check_spec.rb +70 -0
  362. data/spec/models/save_check_split_spec.rb +70 -0
  363. data/spec/models/save_comment_spec.rb +34 -0
  364. data/spec/models/save_contact_spec.rb +164 -0
  365. data/spec/models/save_conversation_spec.rb +44 -0
  366. data/spec/models/save_credit_spec.rb +58 -0
  367. data/spec/models/save_discount_spec.rb +64 -0
  368. data/spec/models/save_journal_entry_split_spec.rb +46 -0
  369. data/spec/models/save_lease_journal_entry_spec.rb +58 -0
  370. data/spec/models/save_lease_spec.rb +134 -0
  371. data/spec/models/save_owner_contribution_spec.rb +86 -0
  372. data/spec/models/save_owner_draw_spec.rb +82 -0
  373. data/spec/models/save_owner_spec.rb +88 -0
  374. data/spec/models/save_payment_spec.rb +86 -0
  375. data/spec/models/save_portfolio_spec.rb +102 -0
  376. data/spec/models/save_prospect_contact_spec.rb +88 -0
  377. data/spec/models/save_prospect_spec.rb +208 -0
  378. data/spec/models/save_refund_spec.rb +82 -0
  379. data/spec/models/save_unit_spec.rb +164 -0
  380. data/spec/models/save_vendor_spec.rb +118 -0
  381. data/spec/models/save_work_order_spec.rb +92 -0
  382. data/spec/models/save_work_order_task_spec.rb +70 -0
  383. data/spec/models/split_paid_spec.rb +82 -0
  384. data/spec/models/split_pay_spec.rb +40 -0
  385. data/spec/models/task_spec.rb +106 -0
  386. data/spec/models/transaction_spec.rb +146 -0
  387. data/spec/models/unit_spec.rb +280 -0
  388. data/spec/models/update_lease_journal_entry_spec.rb +58 -0
  389. data/spec/models/vendor_spec.rb +208 -0
  390. data/spec/models/work_order_spec.rb +218 -0
  391. data/spec/spec_helper.rb +111 -0
  392. metadata +609 -0
@@ -0,0 +1,783 @@
1
+ # Propertyware::ContactsApi
2
+
3
+ All URIs are relative to *https://api.propertyware.com/pw/api/rest/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_contact**](ContactsApi.md#create_contact) | **POST** /contacts | Create a contact (BETA) |
8
+ | [**create_contacts_using_post1**](ContactsApi.md#create_contacts_using_post1) | **POST** /contacts/bulk | Create contacts in bulk (BETA) |
9
+ | [**delete_contact**](ContactsApi.md#delete_contact) | **DELETE** /contacts/{contactID} | Delete a contact (BETA) |
10
+ | [**delete_contact_conversation**](ContactsApi.md#delete_contact_conversation) | **DELETE** /contacts/{contactID}/conversations/{conversationID} | Delete a contact conversation (BETA) |
11
+ | [**get_contact**](ContactsApi.md#get_contact) | **GET** /contacts/{contactID} | Retrieve a contact |
12
+ | [**get_contact_conversation**](ContactsApi.md#get_contact_conversation) | **GET** /contacts/{contactID}/conversations/{conversationID} | Retrieve a contact conversation |
13
+ | [**get_contact_conversations**](ContactsApi.md#get_contact_conversations) | **GET** /contacts/{contactID}/conversations | Retrieve all contact conversations |
14
+ | [**get_contacts**](ContactsApi.md#get_contacts) | **GET** /contacts | Retrieve all contacts |
15
+ | [**update_contact**](ContactsApi.md#update_contact) | **PUT** /contacts/{contactID} | Update a contact (BETA) |
16
+
17
+
18
+ ## create_contact
19
+
20
+ > <Contact> create_contact(save_contact)
21
+
22
+ Create a contact (BETA)
23
+
24
+ <p class=\"betaError\"><b>Note: </b>Write access is only available to customers who have opted in to our beta program. Please reach out to support if you'd like to be included.</p> Creates a contact.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">CONTACTS</span> - <code>Write</code>
25
+
26
+ ### Examples
27
+
28
+ ```ruby
29
+ require 'time'
30
+ require 'propertyware'
31
+ # setup authorization
32
+ Propertyware.configure do |config|
33
+ # Configure API key authorization: organizationId
34
+ config.api_key['organizationId'] = 'YOUR API KEY'
35
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
36
+ # config.api_key_prefix['organizationId'] = 'Bearer'
37
+
38
+ # Configure API key authorization: clientId
39
+ config.api_key['clientId'] = 'YOUR API KEY'
40
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
41
+ # config.api_key_prefix['clientId'] = 'Bearer'
42
+
43
+ # Configure API key authorization: clientSecret
44
+ config.api_key['clientSecret'] = 'YOUR API KEY'
45
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
46
+ # config.api_key_prefix['clientSecret'] = 'Bearer'
47
+ end
48
+
49
+ api_instance = Propertyware::ContactsApi.new
50
+ save_contact = Propertyware::SaveContact.new({first_name: 'first_name_example', last_name: 'last_name_example'}) # SaveContact | saveContact
51
+
52
+ begin
53
+ # Create a contact (BETA)
54
+ result = api_instance.create_contact(save_contact)
55
+ p result
56
+ rescue Propertyware::ApiError => e
57
+ puts "Error when calling ContactsApi->create_contact: #{e}"
58
+ end
59
+ ```
60
+
61
+ #### Using the create_contact_with_http_info variant
62
+
63
+ This returns an Array which contains the response data, status code and headers.
64
+
65
+ > <Array(<Contact>, Integer, Hash)> create_contact_with_http_info(save_contact)
66
+
67
+ ```ruby
68
+ begin
69
+ # Create a contact (BETA)
70
+ data, status_code, headers = api_instance.create_contact_with_http_info(save_contact)
71
+ p status_code # => 2xx
72
+ p headers # => { ... }
73
+ p data # => <Contact>
74
+ rescue Propertyware::ApiError => e
75
+ puts "Error when calling ContactsApi->create_contact_with_http_info: #{e}"
76
+ end
77
+ ```
78
+
79
+ ### Parameters
80
+
81
+ | Name | Type | Description | Notes |
82
+ | ---- | ---- | ----------- | ----- |
83
+ | **save_contact** | [**SaveContact**](SaveContact.md) | saveContact | |
84
+
85
+ ### Return type
86
+
87
+ [**Contact**](Contact.md)
88
+
89
+ ### Authorization
90
+
91
+ [organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
92
+
93
+ ### HTTP request headers
94
+
95
+ - **Content-Type**: application/json
96
+ - **Accept**: application/json
97
+
98
+
99
+ ## create_contacts_using_post1
100
+
101
+ > <Array<RESTAPIBulkSuccessResponse>> create_contacts_using_post1(save_contact)
102
+
103
+ Create contacts in bulk (BETA)
104
+
105
+ <p class=\"betaError\"><b>Note: </b>Write access is only available to customers who have opted in to our beta program. Please reach out to support if you'd like to be included.</p> Creates contacts in bulk.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">CONTACTS</span> - <code>Write</code>
106
+
107
+ ### Examples
108
+
109
+ ```ruby
110
+ require 'time'
111
+ require 'propertyware'
112
+ # setup authorization
113
+ Propertyware.configure do |config|
114
+ # Configure API key authorization: organizationId
115
+ config.api_key['organizationId'] = 'YOUR API KEY'
116
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
117
+ # config.api_key_prefix['organizationId'] = 'Bearer'
118
+
119
+ # Configure API key authorization: clientId
120
+ config.api_key['clientId'] = 'YOUR API KEY'
121
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
122
+ # config.api_key_prefix['clientId'] = 'Bearer'
123
+
124
+ # Configure API key authorization: clientSecret
125
+ config.api_key['clientSecret'] = 'YOUR API KEY'
126
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
127
+ # config.api_key_prefix['clientSecret'] = 'Bearer'
128
+ end
129
+
130
+ api_instance = Propertyware::ContactsApi.new
131
+ save_contact = [Propertyware::SaveContact.new({first_name: 'first_name_example', last_name: 'last_name_example'})] # Array<SaveContact> | saveContact
132
+
133
+ begin
134
+ # Create contacts in bulk (BETA)
135
+ result = api_instance.create_contacts_using_post1(save_contact)
136
+ p result
137
+ rescue Propertyware::ApiError => e
138
+ puts "Error when calling ContactsApi->create_contacts_using_post1: #{e}"
139
+ end
140
+ ```
141
+
142
+ #### Using the create_contacts_using_post1_with_http_info variant
143
+
144
+ This returns an Array which contains the response data, status code and headers.
145
+
146
+ > <Array(<Array<RESTAPIBulkSuccessResponse>>, Integer, Hash)> create_contacts_using_post1_with_http_info(save_contact)
147
+
148
+ ```ruby
149
+ begin
150
+ # Create contacts in bulk (BETA)
151
+ data, status_code, headers = api_instance.create_contacts_using_post1_with_http_info(save_contact)
152
+ p status_code # => 2xx
153
+ p headers # => { ... }
154
+ p data # => <Array<RESTAPIBulkSuccessResponse>>
155
+ rescue Propertyware::ApiError => e
156
+ puts "Error when calling ContactsApi->create_contacts_using_post1_with_http_info: #{e}"
157
+ end
158
+ ```
159
+
160
+ ### Parameters
161
+
162
+ | Name | Type | Description | Notes |
163
+ | ---- | ---- | ----------- | ----- |
164
+ | **save_contact** | [**Array&lt;SaveContact&gt;**](SaveContact.md) | saveContact | |
165
+
166
+ ### Return type
167
+
168
+ [**Array&lt;RESTAPIBulkSuccessResponse&gt;**](RESTAPIBulkSuccessResponse.md)
169
+
170
+ ### Authorization
171
+
172
+ [organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
173
+
174
+ ### HTTP request headers
175
+
176
+ - **Content-Type**: application/json
177
+ - **Accept**: application/json
178
+
179
+
180
+ ## delete_contact
181
+
182
+ > <ResponseEntity> delete_contact(contact_id)
183
+
184
+ Delete a contact (BETA)
185
+
186
+ <p class=\"betaError\"><b>Note: </b>Write access is only available to customers who have opted in to our beta program. Please reach out to support if you'd like to be included.</p> Deletes a contact.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">CONTACTS</span> - <code>Delete</code>
187
+
188
+ ### Examples
189
+
190
+ ```ruby
191
+ require 'time'
192
+ require 'propertyware'
193
+ # setup authorization
194
+ Propertyware.configure do |config|
195
+ # Configure API key authorization: organizationId
196
+ config.api_key['organizationId'] = 'YOUR API KEY'
197
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
198
+ # config.api_key_prefix['organizationId'] = 'Bearer'
199
+
200
+ # Configure API key authorization: clientId
201
+ config.api_key['clientId'] = 'YOUR API KEY'
202
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
203
+ # config.api_key_prefix['clientId'] = 'Bearer'
204
+
205
+ # Configure API key authorization: clientSecret
206
+ config.api_key['clientSecret'] = 'YOUR API KEY'
207
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
208
+ # config.api_key_prefix['clientSecret'] = 'Bearer'
209
+ end
210
+
211
+ api_instance = Propertyware::ContactsApi.new
212
+ contact_id = 789 # Integer | Contact ID
213
+
214
+ begin
215
+ # Delete a contact (BETA)
216
+ result = api_instance.delete_contact(contact_id)
217
+ p result
218
+ rescue Propertyware::ApiError => e
219
+ puts "Error when calling ContactsApi->delete_contact: #{e}"
220
+ end
221
+ ```
222
+
223
+ #### Using the delete_contact_with_http_info variant
224
+
225
+ This returns an Array which contains the response data, status code and headers.
226
+
227
+ > <Array(<ResponseEntity>, Integer, Hash)> delete_contact_with_http_info(contact_id)
228
+
229
+ ```ruby
230
+ begin
231
+ # Delete a contact (BETA)
232
+ data, status_code, headers = api_instance.delete_contact_with_http_info(contact_id)
233
+ p status_code # => 2xx
234
+ p headers # => { ... }
235
+ p data # => <ResponseEntity>
236
+ rescue Propertyware::ApiError => e
237
+ puts "Error when calling ContactsApi->delete_contact_with_http_info: #{e}"
238
+ end
239
+ ```
240
+
241
+ ### Parameters
242
+
243
+ | Name | Type | Description | Notes |
244
+ | ---- | ---- | ----------- | ----- |
245
+ | **contact_id** | **Integer** | Contact ID | |
246
+
247
+ ### Return type
248
+
249
+ [**ResponseEntity**](ResponseEntity.md)
250
+
251
+ ### Authorization
252
+
253
+ [organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
254
+
255
+ ### HTTP request headers
256
+
257
+ - **Content-Type**: Not defined
258
+ - **Accept**: application/json
259
+
260
+
261
+ ## delete_contact_conversation
262
+
263
+ > <ResponseEntity> delete_contact_conversation(contact_id, conversation_id)
264
+
265
+ Delete a contact conversation (BETA)
266
+
267
+ <p class=\"betaError\"><b>Note: </b>Write access is only available to customers who have opted in to our beta program. Please reach out to support if you'd like to be included.</p> Deletes a specific contact conversation.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">CONTACTS</span> - <code>Delete</code>
268
+
269
+ ### Examples
270
+
271
+ ```ruby
272
+ require 'time'
273
+ require 'propertyware'
274
+ # setup authorization
275
+ Propertyware.configure do |config|
276
+ # Configure API key authorization: organizationId
277
+ config.api_key['organizationId'] = 'YOUR API KEY'
278
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
279
+ # config.api_key_prefix['organizationId'] = 'Bearer'
280
+
281
+ # Configure API key authorization: clientId
282
+ config.api_key['clientId'] = 'YOUR API KEY'
283
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
284
+ # config.api_key_prefix['clientId'] = 'Bearer'
285
+
286
+ # Configure API key authorization: clientSecret
287
+ config.api_key['clientSecret'] = 'YOUR API KEY'
288
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
289
+ # config.api_key_prefix['clientSecret'] = 'Bearer'
290
+ end
291
+
292
+ api_instance = Propertyware::ContactsApi.new
293
+ contact_id = 789 # Integer | Contact ID
294
+ conversation_id = 789 # Integer | Conversation ID
295
+
296
+ begin
297
+ # Delete a contact conversation (BETA)
298
+ result = api_instance.delete_contact_conversation(contact_id, conversation_id)
299
+ p result
300
+ rescue Propertyware::ApiError => e
301
+ puts "Error when calling ContactsApi->delete_contact_conversation: #{e}"
302
+ end
303
+ ```
304
+
305
+ #### Using the delete_contact_conversation_with_http_info variant
306
+
307
+ This returns an Array which contains the response data, status code and headers.
308
+
309
+ > <Array(<ResponseEntity>, Integer, Hash)> delete_contact_conversation_with_http_info(contact_id, conversation_id)
310
+
311
+ ```ruby
312
+ begin
313
+ # Delete a contact conversation (BETA)
314
+ data, status_code, headers = api_instance.delete_contact_conversation_with_http_info(contact_id, conversation_id)
315
+ p status_code # => 2xx
316
+ p headers # => { ... }
317
+ p data # => <ResponseEntity>
318
+ rescue Propertyware::ApiError => e
319
+ puts "Error when calling ContactsApi->delete_contact_conversation_with_http_info: #{e}"
320
+ end
321
+ ```
322
+
323
+ ### Parameters
324
+
325
+ | Name | Type | Description | Notes |
326
+ | ---- | ---- | ----------- | ----- |
327
+ | **contact_id** | **Integer** | Contact ID | |
328
+ | **conversation_id** | **Integer** | Conversation ID | |
329
+
330
+ ### Return type
331
+
332
+ [**ResponseEntity**](ResponseEntity.md)
333
+
334
+ ### Authorization
335
+
336
+ [organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
337
+
338
+ ### HTTP request headers
339
+
340
+ - **Content-Type**: Not defined
341
+ - **Accept**: application/json
342
+
343
+
344
+ ## get_contact
345
+
346
+ > <Contact> get_contact(contact_id, opts)
347
+
348
+ Retrieve a contact
349
+
350
+ Retrieves a specific contact.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">CONTACTS</span> - <code>Read</code>
351
+
352
+ ### Examples
353
+
354
+ ```ruby
355
+ require 'time'
356
+ require 'propertyware'
357
+ # setup authorization
358
+ Propertyware.configure do |config|
359
+ # Configure API key authorization: organizationId
360
+ config.api_key['organizationId'] = 'YOUR API KEY'
361
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
362
+ # config.api_key_prefix['organizationId'] = 'Bearer'
363
+
364
+ # Configure API key authorization: clientId
365
+ config.api_key['clientId'] = 'YOUR API KEY'
366
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
367
+ # config.api_key_prefix['clientId'] = 'Bearer'
368
+
369
+ # Configure API key authorization: clientSecret
370
+ config.api_key['clientSecret'] = 'YOUR API KEY'
371
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
372
+ # config.api_key_prefix['clientSecret'] = 'Bearer'
373
+ end
374
+
375
+ api_instance = Propertyware::ContactsApi.new
376
+ contact_id = 789 # Integer | Contact ID
377
+ opts = {
378
+ include_custom_fields: true # Boolean | includeCustomFields
379
+ }
380
+
381
+ begin
382
+ # Retrieve a contact
383
+ result = api_instance.get_contact(contact_id, opts)
384
+ p result
385
+ rescue Propertyware::ApiError => e
386
+ puts "Error when calling ContactsApi->get_contact: #{e}"
387
+ end
388
+ ```
389
+
390
+ #### Using the get_contact_with_http_info variant
391
+
392
+ This returns an Array which contains the response data, status code and headers.
393
+
394
+ > <Array(<Contact>, Integer, Hash)> get_contact_with_http_info(contact_id, opts)
395
+
396
+ ```ruby
397
+ begin
398
+ # Retrieve a contact
399
+ data, status_code, headers = api_instance.get_contact_with_http_info(contact_id, opts)
400
+ p status_code # => 2xx
401
+ p headers # => { ... }
402
+ p data # => <Contact>
403
+ rescue Propertyware::ApiError => e
404
+ puts "Error when calling ContactsApi->get_contact_with_http_info: #{e}"
405
+ end
406
+ ```
407
+
408
+ ### Parameters
409
+
410
+ | Name | Type | Description | Notes |
411
+ | ---- | ---- | ----------- | ----- |
412
+ | **contact_id** | **Integer** | Contact ID | |
413
+ | **include_custom_fields** | **Boolean** | includeCustomFields | [optional][default to true] |
414
+
415
+ ### Return type
416
+
417
+ [**Contact**](Contact.md)
418
+
419
+ ### Authorization
420
+
421
+ [organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
422
+
423
+ ### HTTP request headers
424
+
425
+ - **Content-Type**: Not defined
426
+ - **Accept**: application/json
427
+
428
+
429
+ ## get_contact_conversation
430
+
431
+ > <Conversation> get_contact_conversation(contact_id, conversation_id)
432
+
433
+ Retrieve a contact conversation
434
+
435
+ Retrieves a specific contact conversation.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">CONTACTS</span> - <code>Read</code>
436
+
437
+ ### Examples
438
+
439
+ ```ruby
440
+ require 'time'
441
+ require 'propertyware'
442
+ # setup authorization
443
+ Propertyware.configure do |config|
444
+ # Configure API key authorization: organizationId
445
+ config.api_key['organizationId'] = 'YOUR API KEY'
446
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
447
+ # config.api_key_prefix['organizationId'] = 'Bearer'
448
+
449
+ # Configure API key authorization: clientId
450
+ config.api_key['clientId'] = 'YOUR API KEY'
451
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
452
+ # config.api_key_prefix['clientId'] = 'Bearer'
453
+
454
+ # Configure API key authorization: clientSecret
455
+ config.api_key['clientSecret'] = 'YOUR API KEY'
456
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
457
+ # config.api_key_prefix['clientSecret'] = 'Bearer'
458
+ end
459
+
460
+ api_instance = Propertyware::ContactsApi.new
461
+ contact_id = 789 # Integer | Contact ID
462
+ conversation_id = 789 # Integer | Conversation ID
463
+
464
+ begin
465
+ # Retrieve a contact conversation
466
+ result = api_instance.get_contact_conversation(contact_id, conversation_id)
467
+ p result
468
+ rescue Propertyware::ApiError => e
469
+ puts "Error when calling ContactsApi->get_contact_conversation: #{e}"
470
+ end
471
+ ```
472
+
473
+ #### Using the get_contact_conversation_with_http_info variant
474
+
475
+ This returns an Array which contains the response data, status code and headers.
476
+
477
+ > <Array(<Conversation>, Integer, Hash)> get_contact_conversation_with_http_info(contact_id, conversation_id)
478
+
479
+ ```ruby
480
+ begin
481
+ # Retrieve a contact conversation
482
+ data, status_code, headers = api_instance.get_contact_conversation_with_http_info(contact_id, conversation_id)
483
+ p status_code # => 2xx
484
+ p headers # => { ... }
485
+ p data # => <Conversation>
486
+ rescue Propertyware::ApiError => e
487
+ puts "Error when calling ContactsApi->get_contact_conversation_with_http_info: #{e}"
488
+ end
489
+ ```
490
+
491
+ ### Parameters
492
+
493
+ | Name | Type | Description | Notes |
494
+ | ---- | ---- | ----------- | ----- |
495
+ | **contact_id** | **Integer** | Contact ID | |
496
+ | **conversation_id** | **Integer** | Conversation ID | |
497
+
498
+ ### Return type
499
+
500
+ [**Conversation**](Conversation.md)
501
+
502
+ ### Authorization
503
+
504
+ [organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
505
+
506
+ ### HTTP request headers
507
+
508
+ - **Content-Type**: Not defined
509
+ - **Accept**: application/json
510
+
511
+
512
+ ## get_contact_conversations
513
+
514
+ > <Array<Conversation>> get_contact_conversations(contact_id, opts)
515
+
516
+ Retrieve all contact conversations
517
+
518
+ Retrieves all the conversations of a contact.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">CONTACTS</span> - <code>Read</code> <br/><br/><b>Sortable by:</b> <code>createddate</code>, <code>lastmodifieddatetime</code>, <code>id</code>
519
+
520
+ ### Examples
521
+
522
+ ```ruby
523
+ require 'time'
524
+ require 'propertyware'
525
+ # setup authorization
526
+ Propertyware.configure do |config|
527
+ # Configure API key authorization: organizationId
528
+ config.api_key['organizationId'] = 'YOUR API KEY'
529
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
530
+ # config.api_key_prefix['organizationId'] = 'Bearer'
531
+
532
+ # Configure API key authorization: clientId
533
+ config.api_key['clientId'] = 'YOUR API KEY'
534
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
535
+ # config.api_key_prefix['clientId'] = 'Bearer'
536
+
537
+ # Configure API key authorization: clientSecret
538
+ config.api_key['clientSecret'] = 'YOUR API KEY'
539
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
540
+ # config.api_key_prefix['clientSecret'] = 'Bearer'
541
+ end
542
+
543
+ api_instance = Propertyware::ContactsApi.new
544
+ contact_id = 789 # Integer | Contact ID
545
+ opts = {
546
+ offset: 56, # Integer | `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0.
547
+ limit: 56, # Integer | `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 500 and the default is 100.
548
+ last_modified_date_time_start: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filters results to any item modified on or after the date time specified.
549
+ last_modified_date_time_end: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filters results to any item modified on or prior to the date time specified.
550
+ orderby: 'orderby_example', # String | Indicates the field(s) and direction to sort the results in the response.
551
+ type: 'MANAGEMENT_TEAM' # String | Filters results by the conversation type.
552
+ }
553
+
554
+ begin
555
+ # Retrieve all contact conversations
556
+ result = api_instance.get_contact_conversations(contact_id, opts)
557
+ p result
558
+ rescue Propertyware::ApiError => e
559
+ puts "Error when calling ContactsApi->get_contact_conversations: #{e}"
560
+ end
561
+ ```
562
+
563
+ #### Using the get_contact_conversations_with_http_info variant
564
+
565
+ This returns an Array which contains the response data, status code and headers.
566
+
567
+ > <Array(<Array<Conversation>>, Integer, Hash)> get_contact_conversations_with_http_info(contact_id, opts)
568
+
569
+ ```ruby
570
+ begin
571
+ # Retrieve all contact conversations
572
+ data, status_code, headers = api_instance.get_contact_conversations_with_http_info(contact_id, opts)
573
+ p status_code # => 2xx
574
+ p headers # => { ... }
575
+ p data # => <Array<Conversation>>
576
+ rescue Propertyware::ApiError => e
577
+ puts "Error when calling ContactsApi->get_contact_conversations_with_http_info: #{e}"
578
+ end
579
+ ```
580
+
581
+ ### Parameters
582
+
583
+ | Name | Type | Description | Notes |
584
+ | ---- | ---- | ----------- | ----- |
585
+ | **contact_id** | **Integer** | Contact ID | |
586
+ | **offset** | **Integer** | &#x60;offset&#x60; indicates the position of the first record to return. The offset is zero-based and the default is 0. | [optional] |
587
+ | **limit** | **Integer** | &#x60;limit&#x60; indicates the maximum number of results to be returned in the response. &#x60;limit&#x60; can range between 1 and 500 and the default is 100. | [optional][default to 100] |
588
+ | **last_modified_date_time_start** | **Time** | Filters results to any item modified on or after the date time specified. | [optional] |
589
+ | **last_modified_date_time_end** | **Time** | Filters results to any item modified on or prior to the date time specified. | [optional] |
590
+ | **orderby** | **String** | Indicates the field(s) and direction to sort the results in the response. | [optional] |
591
+ | **type** | **String** | Filters results by the conversation type. | [optional] |
592
+
593
+ ### Return type
594
+
595
+ [**Array&lt;Conversation&gt;**](Conversation.md)
596
+
597
+ ### Authorization
598
+
599
+ [organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
600
+
601
+ ### HTTP request headers
602
+
603
+ - **Content-Type**: Not defined
604
+ - **Accept**: application/json
605
+
606
+
607
+ ## get_contacts
608
+
609
+ > <Array<Contact>> get_contacts(opts)
610
+
611
+ Retrieve all contacts
612
+
613
+ Retrieves a list of contacts.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">CONTACTS</span> - <code>Read</code> <br/><br/><b>Sortable by:</b> <code>firstname</code>, <code>createddate</code>, <code>lastname</code>, <code>email</code>, <code>type</code>, <code>lastmodifieddatetime</code>, <code>id</code>
614
+
615
+ ### Examples
616
+
617
+ ```ruby
618
+ require 'time'
619
+ require 'propertyware'
620
+ # setup authorization
621
+ Propertyware.configure do |config|
622
+ # Configure API key authorization: organizationId
623
+ config.api_key['organizationId'] = 'YOUR API KEY'
624
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
625
+ # config.api_key_prefix['organizationId'] = 'Bearer'
626
+
627
+ # Configure API key authorization: clientId
628
+ config.api_key['clientId'] = 'YOUR API KEY'
629
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
630
+ # config.api_key_prefix['clientId'] = 'Bearer'
631
+
632
+ # Configure API key authorization: clientSecret
633
+ config.api_key['clientSecret'] = 'YOUR API KEY'
634
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
635
+ # config.api_key_prefix['clientSecret'] = 'Bearer'
636
+ end
637
+
638
+ api_instance = Propertyware::ContactsApi.new
639
+ opts = {
640
+ offset: 56, # Integer | `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0.
641
+ limit: 56, # Integer | `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 500 and the default is 100.
642
+ last_modified_date_time_start: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filters results to any item modified on or after the date time specified.
643
+ last_modified_date_time_end: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filters results to any item modified on or prior to the date time specified.
644
+ orderby: 'orderby_example', # String | Indicates the field(s) and direction to sort the results in the response.
645
+ type: 'TENANT', # String | Filters results by the contact type.
646
+ include_custom_fields: true # Boolean | includeCustomFields
647
+ }
648
+
649
+ begin
650
+ # Retrieve all contacts
651
+ result = api_instance.get_contacts(opts)
652
+ p result
653
+ rescue Propertyware::ApiError => e
654
+ puts "Error when calling ContactsApi->get_contacts: #{e}"
655
+ end
656
+ ```
657
+
658
+ #### Using the get_contacts_with_http_info variant
659
+
660
+ This returns an Array which contains the response data, status code and headers.
661
+
662
+ > <Array(<Array<Contact>>, Integer, Hash)> get_contacts_with_http_info(opts)
663
+
664
+ ```ruby
665
+ begin
666
+ # Retrieve all contacts
667
+ data, status_code, headers = api_instance.get_contacts_with_http_info(opts)
668
+ p status_code # => 2xx
669
+ p headers # => { ... }
670
+ p data # => <Array<Contact>>
671
+ rescue Propertyware::ApiError => e
672
+ puts "Error when calling ContactsApi->get_contacts_with_http_info: #{e}"
673
+ end
674
+ ```
675
+
676
+ ### Parameters
677
+
678
+ | Name | Type | Description | Notes |
679
+ | ---- | ---- | ----------- | ----- |
680
+ | **offset** | **Integer** | &#x60;offset&#x60; indicates the position of the first record to return. The offset is zero-based and the default is 0. | [optional] |
681
+ | **limit** | **Integer** | &#x60;limit&#x60; indicates the maximum number of results to be returned in the response. &#x60;limit&#x60; can range between 1 and 500 and the default is 100. | [optional][default to 100] |
682
+ | **last_modified_date_time_start** | **Time** | Filters results to any item modified on or after the date time specified. | [optional] |
683
+ | **last_modified_date_time_end** | **Time** | Filters results to any item modified on or prior to the date time specified. | [optional] |
684
+ | **orderby** | **String** | Indicates the field(s) and direction to sort the results in the response. | [optional] |
685
+ | **type** | **String** | Filters results by the contact type. | [optional] |
686
+ | **include_custom_fields** | **Boolean** | includeCustomFields | [optional][default to false] |
687
+
688
+ ### Return type
689
+
690
+ [**Array&lt;Contact&gt;**](Contact.md)
691
+
692
+ ### Authorization
693
+
694
+ [organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
695
+
696
+ ### HTTP request headers
697
+
698
+ - **Content-Type**: Not defined
699
+ - **Accept**: application/json
700
+
701
+
702
+ ## update_contact
703
+
704
+ > <Contact> update_contact(contact_id, save_contact)
705
+
706
+ Update a contact (BETA)
707
+
708
+ <p class=\"betaError\"><b>Note: </b>Write access is only available to customers who have opted in to our beta program. Please reach out to support if you'd like to be included.</p> Updates a contact.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">CONTACTS</span> - <code>Write</code>
709
+
710
+ ### Examples
711
+
712
+ ```ruby
713
+ require 'time'
714
+ require 'propertyware'
715
+ # setup authorization
716
+ Propertyware.configure do |config|
717
+ # Configure API key authorization: organizationId
718
+ config.api_key['organizationId'] = 'YOUR API KEY'
719
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
720
+ # config.api_key_prefix['organizationId'] = 'Bearer'
721
+
722
+ # Configure API key authorization: clientId
723
+ config.api_key['clientId'] = 'YOUR API KEY'
724
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
725
+ # config.api_key_prefix['clientId'] = 'Bearer'
726
+
727
+ # Configure API key authorization: clientSecret
728
+ config.api_key['clientSecret'] = 'YOUR API KEY'
729
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
730
+ # config.api_key_prefix['clientSecret'] = 'Bearer'
731
+ end
732
+
733
+ api_instance = Propertyware::ContactsApi.new
734
+ contact_id = 789 # Integer | Contact ID
735
+ save_contact = Propertyware::SaveContact.new({first_name: 'first_name_example', last_name: 'last_name_example'}) # SaveContact | saveContact
736
+
737
+ begin
738
+ # Update a contact (BETA)
739
+ result = api_instance.update_contact(contact_id, save_contact)
740
+ p result
741
+ rescue Propertyware::ApiError => e
742
+ puts "Error when calling ContactsApi->update_contact: #{e}"
743
+ end
744
+ ```
745
+
746
+ #### Using the update_contact_with_http_info variant
747
+
748
+ This returns an Array which contains the response data, status code and headers.
749
+
750
+ > <Array(<Contact>, Integer, Hash)> update_contact_with_http_info(contact_id, save_contact)
751
+
752
+ ```ruby
753
+ begin
754
+ # Update a contact (BETA)
755
+ data, status_code, headers = api_instance.update_contact_with_http_info(contact_id, save_contact)
756
+ p status_code # => 2xx
757
+ p headers # => { ... }
758
+ p data # => <Contact>
759
+ rescue Propertyware::ApiError => e
760
+ puts "Error when calling ContactsApi->update_contact_with_http_info: #{e}"
761
+ end
762
+ ```
763
+
764
+ ### Parameters
765
+
766
+ | Name | Type | Description | Notes |
767
+ | ---- | ---- | ----------- | ----- |
768
+ | **contact_id** | **Integer** | Contact ID | |
769
+ | **save_contact** | [**SaveContact**](SaveContact.md) | saveContact | |
770
+
771
+ ### Return type
772
+
773
+ [**Contact**](Contact.md)
774
+
775
+ ### Authorization
776
+
777
+ [organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
778
+
779
+ ### HTTP request headers
780
+
781
+ - **Content-Type**: application/json
782
+ - **Accept**: application/json
783
+