propertyware 1.0.5 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (270) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/FILES +9 -0
  3. data/DOCS.md +13 -4
  4. data/Gemfile.lock +2 -2
  5. data/bin/config.yml +1 -1
  6. data/bin/fix_json.rb +8 -7
  7. data/bin/propertyware.json +1 -1
  8. data/docs/Building.md +2 -2
  9. data/docs/CreditMemo.md +42 -0
  10. data/docs/CustomFieldDefinition.md +26 -0
  11. data/docs/CustomFieldDefinitionsApi.md +89 -0
  12. data/docs/DocumentsApi.md +176 -2
  13. data/docs/LeasesApi.md +102 -0
  14. data/docs/SaveBuilding.md +2 -2
  15. data/docs/SaveUnit.md +6 -6
  16. data/docs/Unit.md +2 -2
  17. data/lib/propertyware/api/accounting_api.rb +1 -1
  18. data/lib/propertyware/api/bills_api.rb +1 -1
  19. data/lib/propertyware/api/buildings_api.rb +1 -1
  20. data/lib/propertyware/api/contacts_api.rb +1 -1
  21. data/lib/propertyware/api/custom_field_definitions_api.rb +85 -0
  22. data/lib/propertyware/api/documents_api.rb +154 -3
  23. data/lib/propertyware/api/health_check_api.rb +1 -1
  24. data/lib/propertyware/api/inspections_api.rb +1 -1
  25. data/lib/propertyware/api/leases_api.rb +88 -1
  26. data/lib/propertyware/api/portfolios_api.rb +1 -1
  27. data/lib/propertyware/api/prospects_api.rb +1 -1
  28. data/lib/propertyware/api/units_api.rb +1 -1
  29. data/lib/propertyware/api/vendors_api.rb +1 -1
  30. data/lib/propertyware/api/work_orders_api.rb +1 -1
  31. data/lib/propertyware/api_client.rb +1 -1
  32. data/lib/propertyware/api_error.rb +1 -1
  33. data/lib/propertyware/configuration.rb +1 -1
  34. data/lib/propertyware/models/account.rb +1 -1
  35. data/lib/propertyware/models/address.rb +1 -1
  36. data/lib/propertyware/models/amenity.rb +1 -1
  37. data/lib/propertyware/models/auto_journal_entry.rb +1 -1
  38. data/lib/propertyware/models/auto_payment.rb +1 -1
  39. data/lib/propertyware/models/bank.rb +1 -1
  40. data/lib/propertyware/models/bank_deposit.rb +1 -1
  41. data/lib/propertyware/models/basic_vendor.rb +1 -1
  42. data/lib/propertyware/models/bill.rb +1 -1
  43. data/lib/propertyware/models/bill_paid.rb +1 -1
  44. data/lib/propertyware/models/bill_pay.rb +1 -1
  45. data/lib/propertyware/models/bill_payment.rb +1 -1
  46. data/lib/propertyware/models/bill_split.rb +1 -1
  47. data/lib/propertyware/models/building.rb +15 -3
  48. data/lib/propertyware/models/campaign.rb +1 -1
  49. data/lib/propertyware/models/campaign_source.rb +1 -1
  50. data/lib/propertyware/models/charge.rb +1 -1
  51. data/lib/propertyware/models/charge_tx.rb +1 -1
  52. data/lib/propertyware/models/check.rb +1 -1
  53. data/lib/propertyware/models/check_split.rb +1 -1
  54. data/lib/propertyware/models/comment.rb +1 -1
  55. data/lib/propertyware/models/contact.rb +1 -1
  56. data/lib/propertyware/models/conversation.rb +1 -1
  57. data/lib/propertyware/models/credit_card_account.rb +1 -1
  58. data/lib/propertyware/models/credit_memo.rb +349 -0
  59. data/lib/propertyware/models/current_asset.rb +1 -1
  60. data/lib/propertyware/models/current_liability.rb +1 -1
  61. data/lib/propertyware/models/custom_field.rb +1 -1
  62. data/lib/propertyware/models/custom_field_definition.rb +254 -0
  63. data/lib/propertyware/models/discount.rb +1 -1
  64. data/lib/propertyware/models/document.rb +1 -1
  65. data/lib/propertyware/models/entry.rb +1 -1
  66. data/lib/propertyware/models/equity.rb +1 -1
  67. data/lib/propertyware/models/error_response.rb +1 -1
  68. data/lib/propertyware/models/expense.rb +1 -1
  69. data/lib/propertyware/models/gl_item.rb +1 -1
  70. data/lib/propertyware/models/income.rb +1 -1
  71. data/lib/propertyware/models/inspection.rb +1 -1
  72. data/lib/propertyware/models/inspection_area.rb +1 -1
  73. data/lib/propertyware/models/inspection_item.rb +1 -1
  74. data/lib/propertyware/models/journal_entry.rb +1 -1
  75. data/lib/propertyware/models/journal_entry_split.rb +1 -1
  76. data/lib/propertyware/models/journal_entry_split_response.rb +1 -1
  77. data/lib/propertyware/models/late_fee_rule.rb +1 -1
  78. data/lib/propertyware/models/lease.rb +1 -1
  79. data/lib/propertyware/models/lease_clause.rb +1 -1
  80. data/lib/propertyware/models/lease_contact.rb +1 -1
  81. data/lib/propertyware/models/management_fee.rb +1 -1
  82. data/lib/propertyware/models/management_settings.rb +1 -1
  83. data/lib/propertyware/models/marketing.rb +1 -1
  84. data/lib/propertyware/models/non_current_asset.rb +1 -1
  85. data/lib/propertyware/models/non_current_liability.rb +1 -1
  86. data/lib/propertyware/models/non_operating_expense.rb +1 -1
  87. data/lib/propertyware/models/non_operating_inome.rb +1 -1
  88. data/lib/propertyware/models/note.rb +1 -1
  89. data/lib/propertyware/models/owner.rb +1 -1
  90. data/lib/propertyware/models/owner_contribution.rb +1 -1
  91. data/lib/propertyware/models/owner_draw.rb +1 -1
  92. data/lib/propertyware/models/payment.rb +1 -1
  93. data/lib/propertyware/models/payment_charge.rb +1 -1
  94. data/lib/propertyware/models/portfolio.rb +1 -1
  95. data/lib/propertyware/models/property_manager.rb +1 -1
  96. data/lib/propertyware/models/prospect.rb +1 -1
  97. data/lib/propertyware/models/refund.rb +1 -1
  98. data/lib/propertyware/models/response_entity.rb +1 -1
  99. data/lib/propertyware/models/restapi_bulk_error_response.rb +1 -1
  100. data/lib/propertyware/models/restapi_bulk_success_response.rb +1 -1
  101. data/lib/propertyware/models/restapi_error.rb +1 -1
  102. data/lib/propertyware/models/save_account.rb +1 -1
  103. data/lib/propertyware/models/save_address.rb +2 -2
  104. data/lib/propertyware/models/save_adjustment.rb +1 -1
  105. data/lib/propertyware/models/save_auto_charge.rb +1 -1
  106. data/lib/propertyware/models/save_bank_deposit.rb +1 -1
  107. data/lib/propertyware/models/save_bill.rb +1 -1
  108. data/lib/propertyware/models/save_bill_payment.rb +1 -1
  109. data/lib/propertyware/models/save_bill_split.rb +1 -1
  110. data/lib/propertyware/models/save_building.rb +4 -4
  111. data/lib/propertyware/models/save_charge.rb +1 -1
  112. data/lib/propertyware/models/save_check.rb +1 -1
  113. data/lib/propertyware/models/save_check_split.rb +1 -1
  114. data/lib/propertyware/models/save_comment.rb +1 -1
  115. data/lib/propertyware/models/save_contact.rb +1 -1
  116. data/lib/propertyware/models/save_conversation.rb +1 -1
  117. data/lib/propertyware/models/save_credit.rb +1 -1
  118. data/lib/propertyware/models/save_discount.rb +1 -1
  119. data/lib/propertyware/models/save_journal_entry_split.rb +1 -1
  120. data/lib/propertyware/models/save_lease.rb +1 -1
  121. data/lib/propertyware/models/save_lease_journal_entry.rb +1 -1
  122. data/lib/propertyware/models/save_owner.rb +1 -1
  123. data/lib/propertyware/models/save_owner_contribution.rb +1 -1
  124. data/lib/propertyware/models/save_owner_draw.rb +1 -1
  125. data/lib/propertyware/models/save_payment.rb +1 -1
  126. data/lib/propertyware/models/save_portfolio.rb +1 -1
  127. data/lib/propertyware/models/save_prospect.rb +1 -1
  128. data/lib/propertyware/models/save_prospect_contact.rb +1 -1
  129. data/lib/propertyware/models/save_refund.rb +1 -1
  130. data/lib/propertyware/models/save_unit.rb +189 -17
  131. data/lib/propertyware/models/save_vendor.rb +1 -1
  132. data/lib/propertyware/models/save_work_order.rb +1 -1
  133. data/lib/propertyware/models/save_work_order_task.rb +1 -1
  134. data/lib/propertyware/models/split_paid.rb +1 -1
  135. data/lib/propertyware/models/split_pay.rb +1 -1
  136. data/lib/propertyware/models/task.rb +1 -1
  137. data/lib/propertyware/models/transaction.rb +1 -1
  138. data/lib/propertyware/models/unit.rb +15 -3
  139. data/lib/propertyware/models/update_lease_journal_entry.rb +1 -1
  140. data/lib/propertyware/models/vendor.rb +1 -1
  141. data/lib/propertyware/models/work_order.rb +1 -1
  142. data/lib/propertyware/version.rb +2 -2
  143. data/lib/propertyware.rb +4 -1
  144. data/propertyware.gemspec +1 -1
  145. data/spec/api/accounting_api_spec.rb +1 -1
  146. data/spec/api/bills_api_spec.rb +1 -1
  147. data/spec/api/buildings_api_spec.rb +1 -1
  148. data/spec/api/contacts_api_spec.rb +1 -1
  149. data/spec/api/custom_field_definitions_api_spec.rb +47 -0
  150. data/spec/api/documents_api_spec.rb +30 -2
  151. data/spec/api/health_check_api_spec.rb +1 -1
  152. data/spec/api/inspections_api_spec.rb +1 -1
  153. data/spec/api/leases_api_spec.rb +22 -1
  154. data/spec/api/portfolios_api_spec.rb +1 -1
  155. data/spec/api/prospects_api_spec.rb +1 -1
  156. data/spec/api/units_api_spec.rb +1 -1
  157. data/spec/api/vendors_api_spec.rb +1 -1
  158. data/spec/api/work_orders_api_spec.rb +1 -1
  159. data/spec/api_client_spec.rb +1 -1
  160. data/spec/configuration_spec.rb +1 -1
  161. data/spec/models/account_spec.rb +1 -1
  162. data/spec/models/address_spec.rb +1 -1
  163. data/spec/models/amenity_spec.rb +1 -1
  164. data/spec/models/auto_journal_entry_spec.rb +1 -1
  165. data/spec/models/auto_payment_spec.rb +1 -1
  166. data/spec/models/bank_deposit_spec.rb +1 -1
  167. data/spec/models/bank_spec.rb +1 -1
  168. data/spec/models/basic_vendor_spec.rb +1 -1
  169. data/spec/models/bill_paid_spec.rb +1 -1
  170. data/spec/models/bill_pay_spec.rb +1 -1
  171. data/spec/models/bill_payment_spec.rb +1 -1
  172. data/spec/models/bill_spec.rb +1 -1
  173. data/spec/models/bill_split_spec.rb +1 -1
  174. data/spec/models/building_spec.rb +5 -1
  175. data/spec/models/campaign_source_spec.rb +1 -1
  176. data/spec/models/campaign_spec.rb +1 -1
  177. data/spec/models/charge_spec.rb +1 -1
  178. data/spec/models/charge_tx_spec.rb +1 -1
  179. data/spec/models/check_spec.rb +1 -1
  180. data/spec/models/check_split_spec.rb +1 -1
  181. data/spec/models/comment_spec.rb +1 -1
  182. data/spec/models/contact_spec.rb +1 -1
  183. data/spec/models/conversation_spec.rb +1 -1
  184. data/spec/models/credit_card_account_spec.rb +1 -1
  185. data/spec/models/credit_memo_spec.rb +106 -0
  186. data/spec/models/current_asset_spec.rb +1 -1
  187. data/spec/models/current_liability_spec.rb +1 -1
  188. data/spec/models/custom_field_definition_spec.rb +58 -0
  189. data/spec/models/custom_field_spec.rb +1 -1
  190. data/spec/models/discount_spec.rb +1 -1
  191. data/spec/models/document_spec.rb +1 -1
  192. data/spec/models/entry_spec.rb +1 -1
  193. data/spec/models/equity_spec.rb +1 -1
  194. data/spec/models/error_response_spec.rb +1 -1
  195. data/spec/models/expense_spec.rb +1 -1
  196. data/spec/models/gl_item_spec.rb +1 -1
  197. data/spec/models/income_spec.rb +1 -1
  198. data/spec/models/inspection_area_spec.rb +1 -1
  199. data/spec/models/inspection_item_spec.rb +1 -1
  200. data/spec/models/inspection_spec.rb +1 -1
  201. data/spec/models/journal_entry_spec.rb +1 -1
  202. data/spec/models/journal_entry_split_response_spec.rb +1 -1
  203. data/spec/models/journal_entry_split_spec.rb +1 -1
  204. data/spec/models/late_fee_rule_spec.rb +1 -1
  205. data/spec/models/lease_clause_spec.rb +1 -1
  206. data/spec/models/lease_contact_spec.rb +1 -1
  207. data/spec/models/lease_spec.rb +1 -1
  208. data/spec/models/management_fee_spec.rb +1 -1
  209. data/spec/models/management_settings_spec.rb +1 -1
  210. data/spec/models/marketing_spec.rb +1 -1
  211. data/spec/models/non_current_asset_spec.rb +1 -1
  212. data/spec/models/non_current_liability_spec.rb +1 -1
  213. data/spec/models/non_operating_expense_spec.rb +1 -1
  214. data/spec/models/non_operating_inome_spec.rb +1 -1
  215. data/spec/models/note_spec.rb +1 -1
  216. data/spec/models/owner_contribution_spec.rb +1 -1
  217. data/spec/models/owner_draw_spec.rb +1 -1
  218. data/spec/models/owner_spec.rb +1 -1
  219. data/spec/models/payment_charge_spec.rb +1 -1
  220. data/spec/models/payment_spec.rb +1 -1
  221. data/spec/models/portfolio_spec.rb +1 -1
  222. data/spec/models/property_manager_spec.rb +1 -1
  223. data/spec/models/prospect_spec.rb +1 -1
  224. data/spec/models/refund_spec.rb +1 -1
  225. data/spec/models/response_entity_spec.rb +1 -1
  226. data/spec/models/restapi_bulk_error_response_spec.rb +1 -1
  227. data/spec/models/restapi_bulk_success_response_spec.rb +1 -1
  228. data/spec/models/restapi_error_spec.rb +1 -1
  229. data/spec/models/save_account_spec.rb +1 -1
  230. data/spec/models/save_address_spec.rb +1 -1
  231. data/spec/models/save_adjustment_spec.rb +1 -1
  232. data/spec/models/save_auto_charge_spec.rb +1 -1
  233. data/spec/models/save_bank_deposit_spec.rb +1 -1
  234. data/spec/models/save_bill_payment_spec.rb +1 -1
  235. data/spec/models/save_bill_spec.rb +1 -1
  236. data/spec/models/save_bill_split_spec.rb +1 -1
  237. data/spec/models/save_building_spec.rb +1 -1
  238. data/spec/models/save_charge_spec.rb +1 -1
  239. data/spec/models/save_check_spec.rb +1 -1
  240. data/spec/models/save_check_split_spec.rb +1 -1
  241. data/spec/models/save_comment_spec.rb +1 -1
  242. data/spec/models/save_contact_spec.rb +1 -1
  243. data/spec/models/save_conversation_spec.rb +1 -1
  244. data/spec/models/save_credit_spec.rb +1 -1
  245. data/spec/models/save_discount_spec.rb +1 -1
  246. data/spec/models/save_journal_entry_split_spec.rb +1 -1
  247. data/spec/models/save_lease_journal_entry_spec.rb +1 -1
  248. data/spec/models/save_lease_spec.rb +1 -1
  249. data/spec/models/save_owner_contribution_spec.rb +1 -1
  250. data/spec/models/save_owner_draw_spec.rb +1 -1
  251. data/spec/models/save_owner_spec.rb +1 -1
  252. data/spec/models/save_payment_spec.rb +1 -1
  253. data/spec/models/save_portfolio_spec.rb +1 -1
  254. data/spec/models/save_prospect_contact_spec.rb +1 -1
  255. data/spec/models/save_prospect_spec.rb +1 -1
  256. data/spec/models/save_refund_spec.rb +1 -1
  257. data/spec/models/save_unit_spec.rb +23 -7
  258. data/spec/models/save_vendor_spec.rb +1 -1
  259. data/spec/models/save_work_order_spec.rb +1 -1
  260. data/spec/models/save_work_order_task_spec.rb +1 -1
  261. data/spec/models/split_paid_spec.rb +1 -1
  262. data/spec/models/split_pay_spec.rb +1 -1
  263. data/spec/models/task_spec.rb +1 -1
  264. data/spec/models/transaction_spec.rb +1 -1
  265. data/spec/models/unit_spec.rb +5 -1
  266. data/spec/models/update_lease_journal_entry_spec.rb +1 -1
  267. data/spec/models/vendor_spec.rb +1 -1
  268. data/spec/models/work_order_spec.rb +1 -1
  269. data/spec/spec_helper.rb +1 -1
  270. metadata +14 -2
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Open API, powered by Propertyware
3
3
 
4
- #<script type=\"text/javascript\" src=\"https://buildium.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-T/-raa8on/b/8/c95134bc67d3a521bb3f4331beb9b804/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-US&collectorId=e43cd15d\"></script> # Introduction Welcome to Propertyware’s API—a powerful, RESTful programming interface that lets you leverage valuable Propertyware data. ## Account Configuration Before you can use Propertyware’s API, you’ll need to make some tweaks to your account settings. <br /> ### Enabling the API In order to start creating your keys and making requests, you’ll need to enable the API. > **Tip:** You’ll need an administrator user role with access to ***Administration Setup > API Keys*** to set things up properly. **Let's Begin!** 1. Sign in to your [Propertyware](https://app.propertyware.com/pw/login.jsp) account from your browser. 2. Open the ***Setup*** page 3. On the left navigation bar, expand ***Administration Setup*** and then click ***API Keys***. If you are having issues accessing the API keys page within your account you can submit a [Support](#section/API-Overview/Support) request for assistance. ## API Keys Account-level API keys authenticate every request and keep things secure. API keys have two components: a “client ID” and a “secret”. * **Client IDs** are similar to usernames. They’re used to identify your Propertyware API key and are safe to share. * **Secrets** are similar to passwords. They must be kept confidential. Whenever you make a request, you’ll need the API key’s client ID and secret. If you forget it, make a mistake, or try to use information that’s linked to a deleted key, the API will return a `401` response code. > **Tip:** We compiled a list of best practices that detail how securely store API keys. [Give it a read](#section/Getting-Started/Keeping-API-Keys-Safe)! ## Creating API Keys Now that the Open API is enabled, you’ll be able to create API keys. You’re almost there! **How to create an API key** 1. On the API Keys page, click ***Create API Key***. A modal will appear. <p> <img src=\"APIKey_Page.JPG\"/> </p> <p> <img src=\"APIKey_New.JPG\"/> </p> 2. Enter a clear, memorable name and description for your API key. It’ll make it easier to locate the right key when you make a request. 3. Now, choose which pieces of Propertyware data you want this API key to have access to by selecting the corresponding radio buttons. Once finished, click **GENERATE KEY**. 4. You have successfully created an API key! The client id and secret associated to this key will be presented. <p> <img src=\"APIKey_Generate.JPG\"/> </p> > **Important:** This is your only chance to record the secret. Make sure it’s stored somewhere secure! If it’s forgotten, you’ll need to delete this key and start from scratch. You have now successfully created an API key and have everything you need to send requests to the Propertyware API! Before moving on to [making your first request](#section/Getting-Started/How-to-Make-a-Request) please review [Keeping API Keys Safe](#section/Getting-Started/Keeping-API-Keys-Safe) for an overview on securely storing your API keys. <br /> If you are having issues creating API keys you can submit a [Support](#section/API-Overview/Support) request for assistance. ## Keeping API Keys Safe Based on their permissions, API keys could have full access to your account’s Propertyware data. It’s important that you only grant access to trusted applications, securely record secrets, and consider a password manager to stay organized. ### Recommended Practices - Avoid hard-coding client IDs and secrets inside source files. - Avoid storing client IDs and secrets in any files that may be committed to source control, particularly cloud-based source control platforms. - Apply restrictions to client IDs and secrets shared with your staff. You can restrict a key to particular Propertyware entities or to read-only access (GET resources only). - Avoid sharing client IDs and secrets across public, insecure platforms. - Establish a process to regularly recreate your client IDs and secrets from your Propertyware account. <br /> <br /> ## How to Make a Request You’ve done a great job setting up your account, Now, we’ll walk you through how to access your data. It’s very straightforward and should only take a few minutes! > **Tip:** Looking for the right HTTP client? If you’re just getting started, we recommend Postman. ### Let's Get Started! #### Step 1: Get Your API Key If you haven't yet done so, obtain your API key client ID and secret from your Propertyware account. Your API key is how the Propertyware API authenticates requests and ensures only you can access your data. #### Step 2: Install a HTTP client The Propertyware API supports any standard HTTP client. If you're looking for a user-friendly HTTP client application, we recommend [Postman](https://www.postman.com/product/api-client) – it allows you to access the Propertyware API without writing code. We’ll use Postman for our example below to demonstrate sending an API request. #### Step 3: Make a Sample Request Let's dive in and make a simple request to get all the [Buildings](#operation/getBuildingsUsingGET) in your account. This will confirm your connectivity to our platform and validate the keys you created on our website. Simply follow the instructions below. 1. Open the Postman application. 2. Open the *verb* menu and select **GET**. 3. Enter the request endpoint in the field next to GET. - Here’s the endpoint to get all buildings: https://api.propertyware.com/pw/api/rest/v1/buildings. 4. To authenticate the request, enter your `client ID`, your `secret` and your `organization iD` respectively in these request headers: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` _(organization id)_ The organization id uniquely identifies your Propertyware account and is an additional measure to enforce proper access to the correct data. ___Your client id and secret pair will only work with the organization it belongs to___. Your full request should look similar to the image below. <kbd><img src=\"request_example.png\" /></kbd> 5. Review the parameters of your request on last time. Once finished, click **Send**. 6. If successful, you should see a JSON response and a `200` HTTP status code. Congratulations! You've connected to the Propertyware API. You now have the knowledge required to make requests for any of our resources. If you've received an error response please review the JSON response message for a description of how to resolve the issue. You can also see more information about HTTP status codes in the [Response Codes](#section/API-Overview/Response-Codes) section. If you are still having trouble making a request after reviewing these sections please submit a [Support](#section/API-Overview/Support) request. # API Overview The Propertyware API is built upon standard REST conventions. It's designed to use consistent resource-oriented URLs, accept and return JSON-encoded messages, and use standard HTTP status codes and verbs. ## Base URL The base URL for production environment API requests is: `https://api.propertyware.com/pw/api/v1/rest` In order to ensure all requests and responses are secure between the API consumer and Propertyware servers, requests must be made using the `https` protocol. Any requests not made with the `https` protocol will be refused by the Propertyware API platform. > **Note:** URL paths are case-sensitive to stay consistent with common REST standards. If your request doesn’t align with the documented URL path, you’ll receive a `404` response code reminding you of this constraint. ## API Versioning The Propertyware API is version controlled. Versioning ensures backwards-incompatible changes to the API don’t impact any existing integrations. Propertyware uses only a major version nomenclature to manage changes. The current version of the Propertyware API is version 1. By specifying a version in the resource request URL, you'll get expected responses regardless of future changes to the API. Here's an example of calling version 1 of the retrieve all leases resource: `https://api.propertyware.com/pw/api/rest/v1/leases` Any request submitted without the version in the URL path will result in a `404` error response code. ### Releasing Changes to the API The Propertyware API will continue to evolve to ensure it meets the needs of our customers. Changes will be defined as either backwards-compatible or backwards-incompatible. We’ll provide advance notice for all API releases–regardless of the type of modifications being made. #### Backward-compatible Changes Backward-compatible changes are modifications to the API that shouldn't impact existing integrations. They'll apply to the current version of the API. Simply put: you won’t need to change the version to consume new changes like these. It's important as you develop against the Propertyware API that you ensure these types of changes don't impact your integration. Here's are examples of backward-compatible modifications. * Adding new API resources and/or endpoints. * Adding new optional request parameters to existing API methods. * Adding new properties to existing API responses and non-required properties for request messages. * Changing property order in existing API responses. All backward-compatible changes to the API will be documented in the [Changelog](#section/Changelog). #### Backwards-incompatible Changes When backwards-incompatible changes to the API occur, a new version of the API will be released. You’ll need to update the URL path to consume resources under the new API version. Backwards-incompatible changes include: * Removing a property from a request and/or response message. * Changing the name of a property in a message. * Adding a required parameter to a request message. * Changing existing enumeration values. New versions of the API will have full reference documentation and an upgrade guide. ## Authentication The Propertyware API uses API key’s client IDs and secrets to authenticate requests. An organization ID, an API key client ID and secret must be passed in every request header using the following parameters: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` Failing to provide both of them in the request header will cause the API to return a `401` HTTP status code. <!-- ## Rate Limiting (FUTURE) Rate limits help us ensure consistent and reliable performance for all users, even during peak loads. That’s why we limit clients to **10 concurrent requests per second**. If your request rate violates that limit, a response code of `429` is returned. Simply retry the request after a short interval (~200ms). --> ## Bulk Request Options All top-level API resources support bulk fetches. For instance, you can retrieve all [Portfolios](#operation/getPortfoliosUsingGET). These resources also allow for filtering criteria. Each resource has descriptions of the filter criteria available. In addition to filtering, our API gives you the ability to control the returned data’s pagination and the sort order. ### Pagination Endpoints that return result sets allow for pagination using `limit` and `offset` request parameters to reduce the amount of data returned. The `limit` request parameter will cap the number of results that come back in the response. If you don't specify a `limit` value, a **default of 100 results** are returned. The maximum `limit` value is 500. If a `limit` value is specified greater than 500, it will be overridden to the default to 500. The `offset` request parameter indicates the record position within the resultset to start at when returning the results. The `offset` is zero-based and is inclusive. If no `offset` value is submitted it will default to 0. The total resultset count is returned in the HTTP Header `X-Total-Count` #### Pagination Example As an example, let's say we make a request to retrieve all rental properties with no paging parameters. Our response indicates in the `X-Total-Count` header that there are 150 total rental properties. We want to get only the last 50 results so we would submit a request with the `offset` set to 100 and the `limit` set to 50. > **Note:** The `limit` and `offset` parameter names are case-sensitive. If they aren't formatted correctly, the API will return a `404` HTTP status code. ### Sorting Results You can specify the sort order of returned data by assigning properties from the returned object to the `orderby` parameter in the querystring. For example: ``` orderby=name ``` By default, the sort is performed in ascending order. To specify sort order, use \"asc\" for ascending or \"desc\" for descending. For example: ``` orderby=name desc ``` Additionally, you can sort by multiple properties by comma separating the properties. For example: ``` orderby=abbreviation asc,name desc ``` > **Note:** While the `orderby` parameter is case-sensitive, the properties specified in the `orderby` value aren't. ## Response Codes The Propertyware API supports standard HTTP status codes. |Response Code |Description | |--|--| |200 OK | Everything worked as expected. | |400 Bad Request | The request was unacceptable, often due to missing a required parameter.| |401 Unauthorized|The API client ID and secret weren’t provided or they’re no longer valid. Be sure that the client ID and secret combination are correct and they are still active.| |403 Forbidden|The API key doesn't have permission to perform the request. This could be due to authorization for the given endpoint or an inability to access given entities within the platform (e.g. properties). |404 Not Found|The requested resource doesn't exist.| |415 Unsupported Media Type |Ensure you have the appropriate content-type header value set on your request. Each resource is documented with media type(s) that are accepted.| |429 Too Many Requests |Too many requests against the API too quickly. We recommend an exponential backoff of your requests.| |500 and above - Server Errors|Something went wrong on Propertyware's end. Review the JSON response message for more details about the error.| ## API Date Format * For all request and response date fields allowing ISO date format: YYYY-MM-DD (e.g.2019-08-24). * For all request and response dateAndTime fields format is allowing: YYYY-MM-dd'T'HH:mm:ssXXX (e.g.2022-06-28T08:47:13Z). ## Support If you are unable to resolve your issue after reviewing the API documentation our support team can assist you. # Changelog ### 2023-07-11 * Retrieve all documents * Retrieve a document * Download a document ### 2023-06-10 * Lease contacts are included in Retrieve all leases API response * Lease contacts are included in Retrieve a lease API response ### 2023-04-24 * Bulk Insertion: Prospects * Bulk Insertion: Bill Payments ### 2023-04-11 * Bulk Insertion: Portfolios * Bulk Insertion: Buildings * Bulk Insertion: Units ### 2023-03-19 * Bulk insertion: contacts ### 2023-03-08 * Bulk insertion: bills ### 2023-01-24 * Custom fields in \"Get all\" endpoints * Prospect creation * Bill removals ### 2022-10-25 * API Read operations for non-financial data ### 2022-09-21 * API Read operations available
4
+ #<script type=\"text/javascript\" src=\"https://buildium.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-T/-raa8on/b/8/c95134bc67d3a521bb3f4331beb9b804/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-US&collectorId=e43cd15d\"></script> # Introduction Welcome to Propertyware’s API—a powerful, RESTful programming interface that lets you leverage valuable Propertyware data. ## Account Configuration Before you can use Propertyware’s API, you’ll need to make some tweaks to your account settings. <br /> ### Enabling the API In order to start creating your keys and making requests, you’ll need to enable the API. > **Tip:** You’ll need an administrator user role with access to ***Administration Setup > API Keys*** to set things up properly. **Let's Begin!** 1. Sign in to your [Propertyware](https://app.propertyware.com/pw/login.jsp) account from your browser. 2. Open the ***Setup*** page 3. On the left navigation bar, expand ***Administration Setup*** and then click ***API Keys***. If you are having issues accessing the API keys page within your account you can submit a [Support](#section/API-Overview/Support) request for assistance. ## API Keys Account-level API keys authenticate every request and keep things secure. API keys have two components: a “client ID” and a “secret”. * **Client IDs** are similar to usernames. They’re used to identify your Propertyware API key and are safe to share. * **Secrets** are similar to passwords. They must be kept confidential. Whenever you make a request, you’ll need the API key’s client ID and secret. If you forget it, make a mistake, or try to use information that’s linked to a deleted key, the API will return a `401` response code. > **Tip:** We compiled a list of best practices that detail how securely store API keys. [Give it a read](#section/Getting-Started/Keeping-API-Keys-Safe)! ## Creating API Keys Now that the Open API is enabled, you’ll be able to create API keys. You’re almost there! **How to create an API key** 1. On the API Keys page, click ***Create API Key***. A modal will appear. <p> <img src=\"APIKey_Page.JPG\"/> </p> <p> <img src=\"APIKey_New.JPG\"/> </p> 2. Enter a clear, memorable name and description for your API key. It’ll make it easier to locate the right key when you make a request. 3. Now, choose which pieces of Propertyware data you want this API key to have access to by selecting the corresponding radio buttons. Once finished, click **GENERATE KEY**. 4. You have successfully created an API key! The client id and secret associated to this key will be presented. <p> <img src=\"APIKey_Generate.JPG\"/> </p> > **Important:** This is your only chance to record the secret. Make sure it’s stored somewhere secure! If it’s forgotten, you’ll need to delete this key and start from scratch. You have now successfully created an API key and have everything you need to send requests to the Propertyware API! Before moving on to [making your first request](#section/Getting-Started/How-to-Make-a-Request) please review [Keeping API Keys Safe](#section/Getting-Started/Keeping-API-Keys-Safe) for an overview on securely storing your API keys. <br /> If you are having issues creating API keys you can submit a [Support](#section/API-Overview/Support) request for assistance. ## Keeping API Keys Safe Based on their permissions, API keys could have full access to your account’s Propertyware data. It’s important that you only grant access to trusted applications, securely record secrets, and consider a password manager to stay organized. ### Recommended Practices - Avoid hard-coding client IDs and secrets inside source files. - Avoid storing client IDs and secrets in any files that may be committed to source control, particularly cloud-based source control platforms. - Apply restrictions to client IDs and secrets shared with your staff. You can restrict a key to particular Propertyware entities or to read-only access (GET resources only). - Avoid sharing client IDs and secrets across public, insecure platforms. - Establish a process to regularly recreate your client IDs and secrets from your Propertyware account. <br /> <br /> ## How to Make a Request You’ve done a great job setting up your account, Now, we’ll walk you through how to access your data. It’s very straightforward and should only take a few minutes! > **Tip:** Looking for the right HTTP client? If you’re just getting started, we recommend Postman. ### Let's Get Started! #### Step 1: Get Your API Key If you haven't yet done so, obtain your API key client ID and secret from your Propertyware account. Your API key is how the Propertyware API authenticates requests and ensures only you can access your data. #### Step 2: Install a HTTP client The Propertyware API supports any standard HTTP client. If you're looking for a user-friendly HTTP client application, we recommend [Postman](https://www.postman.com/product/api-client) – it allows you to access the Propertyware API without writing code. We’ll use Postman for our example below to demonstrate sending an API request. #### Step 3: Make a Sample Request Let's dive in and make a simple request to get all the [Buildings](#operation/getBuildingsUsingGET) in your account. This will confirm your connectivity to our platform and validate the keys you created on our website. Simply follow the instructions below. 1. Open the Postman application. 2. Open the *verb* menu and select **GET**. 3. Enter the request endpoint in the field next to GET. - Here’s the endpoint to get all buildings: https://api.propertyware.com/pw/api/rest/v1/buildings. 4. To authenticate the request, enter your `client ID`, your `secret` and your `organization iD` respectively in these request headers: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` _(organization id)_ The organization id uniquely identifies your Propertyware account and is an additional measure to enforce proper access to the correct data. ___Your client id and secret pair will only work with the organization it belongs to___. Your full request should look similar to the image below. <kbd><img src=\"request_example.png\" /></kbd> 5. Review the parameters of your request on last time. Once finished, click **Send**. 6. If successful, you should see a JSON response and a `200` HTTP status code. Congratulations! You've connected to the Propertyware API. You now have the knowledge required to make requests for any of our resources. If you've received an error response please review the JSON response message for a description of how to resolve the issue. You can also see more information about HTTP status codes in the [Response Codes](#section/API-Overview/Response-Codes) section. If you are still having trouble making a request after reviewing these sections please submit a [Support](#section/API-Overview/Support) request. # API Overview The Propertyware API is built upon standard REST conventions. It's designed to use consistent resource-oriented URLs, accept and return JSON-encoded messages, and use standard HTTP status codes and verbs. ## Base URL The base URL for production environment API requests is: `https://api.propertyware.com/pw/api/v1/rest` In order to ensure all requests and responses are secure between the API consumer and Propertyware servers, requests must be made using the `https` protocol. Any requests not made with the `https` protocol will be refused by the Propertyware API platform. > **Note:** URL paths are case-sensitive to stay consistent with common REST standards. If your request doesn’t align with the documented URL path, you’ll receive a `404` response code reminding you of this constraint. ## API Versioning The Propertyware API is version controlled. Versioning ensures backwards-incompatible changes to the API don’t impact any existing integrations. Propertyware uses only a major version nomenclature to manage changes. The current version of the Propertyware API is version 1. By specifying a version in the resource request URL, you'll get expected responses regardless of future changes to the API. Here's an example of calling version 1 of the retrieve all leases resource: `https://api.propertyware.com/pw/api/rest/v1/leases` Any request submitted without the version in the URL path will result in a `404` error response code. ### Releasing Changes to the API The Propertyware API will continue to evolve to ensure it meets the needs of our customers. Changes will be defined as either backwards-compatible or backwards-incompatible. We’ll provide advance notice for all API releases–regardless of the type of modifications being made. #### Backward-compatible Changes Backward-compatible changes are modifications to the API that shouldn't impact existing integrations. They'll apply to the current version of the API. Simply put: you won’t need to change the version to consume new changes like these. It's important as you develop against the Propertyware API that you ensure these types of changes don't impact your integration. Here's are examples of backward-compatible modifications. * Adding new API resources and/or endpoints. * Adding new optional request parameters to existing API methods. * Adding new properties to existing API responses and non-required properties for request messages. * Changing property order in existing API responses. All backward-compatible changes to the API will be documented in the [Changelog](#section/Changelog). #### Backwards-incompatible Changes When backwards-incompatible changes to the API occur, a new version of the API will be released. You’ll need to update the URL path to consume resources under the new API version. Backwards-incompatible changes include: * Removing a property from a request and/or response message. * Changing the name of a property in a message. * Adding a required parameter to a request message. * Changing existing enumeration values. New versions of the API will have full reference documentation and an upgrade guide. ## Authentication The Propertyware API uses API key’s client IDs and secrets to authenticate requests. An organization ID, an API key client ID and secret must be passed in every request header using the following parameters: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` Failing to provide both of them in the request header will cause the API to return a `401` HTTP status code. <!-- ## Rate Limiting (FUTURE) Rate limits help us ensure consistent and reliable performance for all users, even during peak loads. That’s why we limit clients to **10 concurrent requests per second**. If your request rate violates that limit, a response code of `429` is returned. Simply retry the request after a short interval (~200ms). --> ## Bulk Request Options All top-level API resources support bulk fetches. For instance, you can retrieve all [Portfolios](#operation/getPortfoliosUsingGET). These resources also allow for filtering criteria. Each resource has descriptions of the filter criteria available. In addition to filtering, our API gives you the ability to control the returned data’s pagination and the sort order. ### Pagination Endpoints that return result sets allow for pagination using `limit` and `offset` request parameters to reduce the amount of data returned. The `limit` request parameter will cap the number of results that come back in the response. If you don't specify a `limit` value, a **default of 100 results** are returned. The maximum `limit` value is 500. If a `limit` value is specified greater than 500, it will be overridden to the default to 500. The `offset` request parameter indicates the record position within the resultset to start at when returning the results. The `offset` is zero-based and is inclusive. If no `offset` value is submitted it will default to 0. The total resultset count is returned in the HTTP Header `X-Total-Count` #### Pagination Example As an example, let's say we make a request to retrieve all rental properties with no paging parameters. Our response indicates in the `X-Total-Count` header that there are 150 total rental properties. We want to get only the last 50 results so we would submit a request with the `offset` set to 100 and the `limit` set to 50. > **Note:** The `limit` and `offset` parameter names are case-sensitive. If they aren't formatted correctly, the API will return a `404` HTTP status code. ### Sorting Results You can specify the sort order of returned data by assigning properties from the returned object to the `orderby` parameter in the querystring. For example: ``` orderby=name ``` By default, the sort is performed in ascending order. To specify sort order, use \"asc\" for ascending or \"desc\" for descending. For example: ``` orderby=name desc ``` Additionally, you can sort by multiple properties by comma separating the properties. For example: ``` orderby=abbreviation asc,name desc ``` > **Note:** While the `orderby` parameter is case-sensitive, the properties specified in the `orderby` value aren't. ## Response Codes The Propertyware API supports standard HTTP status codes. |Response Code |Description | |--|--| |200 OK | Everything worked as expected. | |400 Bad Request | The request was unacceptable, often due to missing a required parameter.| |401 Unauthorized|The API client ID and secret weren’t provided or they’re no longer valid. Be sure that the client ID and secret combination are correct and they are still active.| |403 Forbidden|The API key doesn't have permission to perform the request. This could be due to authorization for the given endpoint or an inability to access given entities within the platform (e.g. properties). |404 Not Found|The requested resource doesn't exist.| |415 Unsupported Media Type |Ensure you have the appropriate content-type header value set on your request. Each resource is documented with media type(s) that are accepted.| |429 Too Many Requests |Too many requests against the API too quickly. We recommend an exponential backoff of your requests.| |500 and above - Server Errors|Something went wrong on Propertyware's end. Review the JSON response message for more details about the error.| ## API Date Format * For all request and response date fields allowing ISO date format: YYYY-MM-DD (e.g.2019-08-24). * For all request and response dateAndTime fields format is allowing: YYYY-MM-dd'T'HH:mm:ssXXX (e.g.2022-06-28T08:47:13Z). ## Support If you are unable to resolve your issue after reviewing the API documentation our support team can assist you. # Changelog ### 2023-07-11 * Delete a document ### 2023-07-11 * Retrieve all documents * Retrieve a document * Download a document ### 2023-06-10 * Lease contacts are included in Retrieve all leases API response * Lease contacts are included in Retrieve a lease API response ### 2023-04-24 * Bulk Insertion: Prospects * Bulk Insertion: Bill Payments ### 2023-04-11 * Bulk Insertion: Portfolios * Bulk Insertion: Buildings * Bulk Insertion: Units ### 2023-03-19 * Bulk insertion: contacts ### 2023-03-08 * Bulk insertion: bills ### 2023-01-24 * Custom fields in \"Get all\" endpoints * Prospect creation * Bill removals ### 2022-10-25 * API Read operations for non-financial data ### 2022-09-21 * API Read operations available
5
5
 
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@propertyware.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Open API, powered by Propertyware
3
3
 
4
- #<script type=\"text/javascript\" src=\"https://buildium.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-T/-raa8on/b/8/c95134bc67d3a521bb3f4331beb9b804/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-US&collectorId=e43cd15d\"></script> # Introduction Welcome to Propertyware’s API—a powerful, RESTful programming interface that lets you leverage valuable Propertyware data. ## Account Configuration Before you can use Propertyware’s API, you’ll need to make some tweaks to your account settings. <br /> ### Enabling the API In order to start creating your keys and making requests, you’ll need to enable the API. > **Tip:** You’ll need an administrator user role with access to ***Administration Setup > API Keys*** to set things up properly. **Let's Begin!** 1. Sign in to your [Propertyware](https://app.propertyware.com/pw/login.jsp) account from your browser. 2. Open the ***Setup*** page 3. On the left navigation bar, expand ***Administration Setup*** and then click ***API Keys***. If you are having issues accessing the API keys page within your account you can submit a [Support](#section/API-Overview/Support) request for assistance. ## API Keys Account-level API keys authenticate every request and keep things secure. API keys have two components: a “client ID” and a “secret”. * **Client IDs** are similar to usernames. They’re used to identify your Propertyware API key and are safe to share. * **Secrets** are similar to passwords. They must be kept confidential. Whenever you make a request, you’ll need the API key’s client ID and secret. If you forget it, make a mistake, or try to use information that’s linked to a deleted key, the API will return a `401` response code. > **Tip:** We compiled a list of best practices that detail how securely store API keys. [Give it a read](#section/Getting-Started/Keeping-API-Keys-Safe)! ## Creating API Keys Now that the Open API is enabled, you’ll be able to create API keys. You’re almost there! **How to create an API key** 1. On the API Keys page, click ***Create API Key***. A modal will appear. <p> <img src=\"APIKey_Page.JPG\"/> </p> <p> <img src=\"APIKey_New.JPG\"/> </p> 2. Enter a clear, memorable name and description for your API key. It’ll make it easier to locate the right key when you make a request. 3. Now, choose which pieces of Propertyware data you want this API key to have access to by selecting the corresponding radio buttons. Once finished, click **GENERATE KEY**. 4. You have successfully created an API key! The client id and secret associated to this key will be presented. <p> <img src=\"APIKey_Generate.JPG\"/> </p> > **Important:** This is your only chance to record the secret. Make sure it’s stored somewhere secure! If it’s forgotten, you’ll need to delete this key and start from scratch. You have now successfully created an API key and have everything you need to send requests to the Propertyware API! Before moving on to [making your first request](#section/Getting-Started/How-to-Make-a-Request) please review [Keeping API Keys Safe](#section/Getting-Started/Keeping-API-Keys-Safe) for an overview on securely storing your API keys. <br /> If you are having issues creating API keys you can submit a [Support](#section/API-Overview/Support) request for assistance. ## Keeping API Keys Safe Based on their permissions, API keys could have full access to your account’s Propertyware data. It’s important that you only grant access to trusted applications, securely record secrets, and consider a password manager to stay organized. ### Recommended Practices - Avoid hard-coding client IDs and secrets inside source files. - Avoid storing client IDs and secrets in any files that may be committed to source control, particularly cloud-based source control platforms. - Apply restrictions to client IDs and secrets shared with your staff. You can restrict a key to particular Propertyware entities or to read-only access (GET resources only). - Avoid sharing client IDs and secrets across public, insecure platforms. - Establish a process to regularly recreate your client IDs and secrets from your Propertyware account. <br /> <br /> ## How to Make a Request You’ve done a great job setting up your account, Now, we’ll walk you through how to access your data. It’s very straightforward and should only take a few minutes! > **Tip:** Looking for the right HTTP client? If you’re just getting started, we recommend Postman. ### Let's Get Started! #### Step 1: Get Your API Key If you haven't yet done so, obtain your API key client ID and secret from your Propertyware account. Your API key is how the Propertyware API authenticates requests and ensures only you can access your data. #### Step 2: Install a HTTP client The Propertyware API supports any standard HTTP client. If you're looking for a user-friendly HTTP client application, we recommend [Postman](https://www.postman.com/product/api-client) – it allows you to access the Propertyware API without writing code. We’ll use Postman for our example below to demonstrate sending an API request. #### Step 3: Make a Sample Request Let's dive in and make a simple request to get all the [Buildings](#operation/getBuildingsUsingGET) in your account. This will confirm your connectivity to our platform and validate the keys you created on our website. Simply follow the instructions below. 1. Open the Postman application. 2. Open the *verb* menu and select **GET**. 3. Enter the request endpoint in the field next to GET. - Here’s the endpoint to get all buildings: https://api.propertyware.com/pw/api/rest/v1/buildings. 4. To authenticate the request, enter your `client ID`, your `secret` and your `organization iD` respectively in these request headers: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` _(organization id)_ The organization id uniquely identifies your Propertyware account and is an additional measure to enforce proper access to the correct data. ___Your client id and secret pair will only work with the organization it belongs to___. Your full request should look similar to the image below. <kbd><img src=\"request_example.png\" /></kbd> 5. Review the parameters of your request on last time. Once finished, click **Send**. 6. If successful, you should see a JSON response and a `200` HTTP status code. Congratulations! You've connected to the Propertyware API. You now have the knowledge required to make requests for any of our resources. If you've received an error response please review the JSON response message for a description of how to resolve the issue. You can also see more information about HTTP status codes in the [Response Codes](#section/API-Overview/Response-Codes) section. If you are still having trouble making a request after reviewing these sections please submit a [Support](#section/API-Overview/Support) request. # API Overview The Propertyware API is built upon standard REST conventions. It's designed to use consistent resource-oriented URLs, accept and return JSON-encoded messages, and use standard HTTP status codes and verbs. ## Base URL The base URL for production environment API requests is: `https://api.propertyware.com/pw/api/v1/rest` In order to ensure all requests and responses are secure between the API consumer and Propertyware servers, requests must be made using the `https` protocol. Any requests not made with the `https` protocol will be refused by the Propertyware API platform. > **Note:** URL paths are case-sensitive to stay consistent with common REST standards. If your request doesn’t align with the documented URL path, you’ll receive a `404` response code reminding you of this constraint. ## API Versioning The Propertyware API is version controlled. Versioning ensures backwards-incompatible changes to the API don’t impact any existing integrations. Propertyware uses only a major version nomenclature to manage changes. The current version of the Propertyware API is version 1. By specifying a version in the resource request URL, you'll get expected responses regardless of future changes to the API. Here's an example of calling version 1 of the retrieve all leases resource: `https://api.propertyware.com/pw/api/rest/v1/leases` Any request submitted without the version in the URL path will result in a `404` error response code. ### Releasing Changes to the API The Propertyware API will continue to evolve to ensure it meets the needs of our customers. Changes will be defined as either backwards-compatible or backwards-incompatible. We’ll provide advance notice for all API releases–regardless of the type of modifications being made. #### Backward-compatible Changes Backward-compatible changes are modifications to the API that shouldn't impact existing integrations. They'll apply to the current version of the API. Simply put: you won’t need to change the version to consume new changes like these. It's important as you develop against the Propertyware API that you ensure these types of changes don't impact your integration. Here's are examples of backward-compatible modifications. * Adding new API resources and/or endpoints. * Adding new optional request parameters to existing API methods. * Adding new properties to existing API responses and non-required properties for request messages. * Changing property order in existing API responses. All backward-compatible changes to the API will be documented in the [Changelog](#section/Changelog). #### Backwards-incompatible Changes When backwards-incompatible changes to the API occur, a new version of the API will be released. You’ll need to update the URL path to consume resources under the new API version. Backwards-incompatible changes include: * Removing a property from a request and/or response message. * Changing the name of a property in a message. * Adding a required parameter to a request message. * Changing existing enumeration values. New versions of the API will have full reference documentation and an upgrade guide. ## Authentication The Propertyware API uses API key’s client IDs and secrets to authenticate requests. An organization ID, an API key client ID and secret must be passed in every request header using the following parameters: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` Failing to provide both of them in the request header will cause the API to return a `401` HTTP status code. <!-- ## Rate Limiting (FUTURE) Rate limits help us ensure consistent and reliable performance for all users, even during peak loads. That’s why we limit clients to **10 concurrent requests per second**. If your request rate violates that limit, a response code of `429` is returned. Simply retry the request after a short interval (~200ms). --> ## Bulk Request Options All top-level API resources support bulk fetches. For instance, you can retrieve all [Portfolios](#operation/getPortfoliosUsingGET). These resources also allow for filtering criteria. Each resource has descriptions of the filter criteria available. In addition to filtering, our API gives you the ability to control the returned data’s pagination and the sort order. ### Pagination Endpoints that return result sets allow for pagination using `limit` and `offset` request parameters to reduce the amount of data returned. The `limit` request parameter will cap the number of results that come back in the response. If you don't specify a `limit` value, a **default of 100 results** are returned. The maximum `limit` value is 500. If a `limit` value is specified greater than 500, it will be overridden to the default to 500. The `offset` request parameter indicates the record position within the resultset to start at when returning the results. The `offset` is zero-based and is inclusive. If no `offset` value is submitted it will default to 0. The total resultset count is returned in the HTTP Header `X-Total-Count` #### Pagination Example As an example, let's say we make a request to retrieve all rental properties with no paging parameters. Our response indicates in the `X-Total-Count` header that there are 150 total rental properties. We want to get only the last 50 results so we would submit a request with the `offset` set to 100 and the `limit` set to 50. > **Note:** The `limit` and `offset` parameter names are case-sensitive. If they aren't formatted correctly, the API will return a `404` HTTP status code. ### Sorting Results You can specify the sort order of returned data by assigning properties from the returned object to the `orderby` parameter in the querystring. For example: ``` orderby=name ``` By default, the sort is performed in ascending order. To specify sort order, use \"asc\" for ascending or \"desc\" for descending. For example: ``` orderby=name desc ``` Additionally, you can sort by multiple properties by comma separating the properties. For example: ``` orderby=abbreviation asc,name desc ``` > **Note:** While the `orderby` parameter is case-sensitive, the properties specified in the `orderby` value aren't. ## Response Codes The Propertyware API supports standard HTTP status codes. |Response Code |Description | |--|--| |200 OK | Everything worked as expected. | |400 Bad Request | The request was unacceptable, often due to missing a required parameter.| |401 Unauthorized|The API client ID and secret weren’t provided or they’re no longer valid. Be sure that the client ID and secret combination are correct and they are still active.| |403 Forbidden|The API key doesn't have permission to perform the request. This could be due to authorization for the given endpoint or an inability to access given entities within the platform (e.g. properties). |404 Not Found|The requested resource doesn't exist.| |415 Unsupported Media Type |Ensure you have the appropriate content-type header value set on your request. Each resource is documented with media type(s) that are accepted.| |429 Too Many Requests |Too many requests against the API too quickly. We recommend an exponential backoff of your requests.| |500 and above - Server Errors|Something went wrong on Propertyware's end. Review the JSON response message for more details about the error.| ## API Date Format * For all request and response date fields allowing ISO date format: YYYY-MM-DD (e.g.2019-08-24). * For all request and response dateAndTime fields format is allowing: YYYY-MM-dd'T'HH:mm:ssXXX (e.g.2022-06-28T08:47:13Z). ## Support If you are unable to resolve your issue after reviewing the API documentation our support team can assist you. # Changelog ### 2023-07-11 * Retrieve all documents * Retrieve a document * Download a document ### 2023-06-10 * Lease contacts are included in Retrieve all leases API response * Lease contacts are included in Retrieve a lease API response ### 2023-04-24 * Bulk Insertion: Prospects * Bulk Insertion: Bill Payments ### 2023-04-11 * Bulk Insertion: Portfolios * Bulk Insertion: Buildings * Bulk Insertion: Units ### 2023-03-19 * Bulk insertion: contacts ### 2023-03-08 * Bulk insertion: bills ### 2023-01-24 * Custom fields in \"Get all\" endpoints * Prospect creation * Bill removals ### 2022-10-25 * API Read operations for non-financial data ### 2022-09-21 * API Read operations available
4
+ #<script type=\"text/javascript\" src=\"https://buildium.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-T/-raa8on/b/8/c95134bc67d3a521bb3f4331beb9b804/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-US&collectorId=e43cd15d\"></script> # Introduction Welcome to Propertyware’s API—a powerful, RESTful programming interface that lets you leverage valuable Propertyware data. ## Account Configuration Before you can use Propertyware’s API, you’ll need to make some tweaks to your account settings. <br /> ### Enabling the API In order to start creating your keys and making requests, you’ll need to enable the API. > **Tip:** You’ll need an administrator user role with access to ***Administration Setup > API Keys*** to set things up properly. **Let's Begin!** 1. Sign in to your [Propertyware](https://app.propertyware.com/pw/login.jsp) account from your browser. 2. Open the ***Setup*** page 3. On the left navigation bar, expand ***Administration Setup*** and then click ***API Keys***. If you are having issues accessing the API keys page within your account you can submit a [Support](#section/API-Overview/Support) request for assistance. ## API Keys Account-level API keys authenticate every request and keep things secure. API keys have two components: a “client ID” and a “secret”. * **Client IDs** are similar to usernames. They’re used to identify your Propertyware API key and are safe to share. * **Secrets** are similar to passwords. They must be kept confidential. Whenever you make a request, you’ll need the API key’s client ID and secret. If you forget it, make a mistake, or try to use information that’s linked to a deleted key, the API will return a `401` response code. > **Tip:** We compiled a list of best practices that detail how securely store API keys. [Give it a read](#section/Getting-Started/Keeping-API-Keys-Safe)! ## Creating API Keys Now that the Open API is enabled, you’ll be able to create API keys. You’re almost there! **How to create an API key** 1. On the API Keys page, click ***Create API Key***. A modal will appear. <p> <img src=\"APIKey_Page.JPG\"/> </p> <p> <img src=\"APIKey_New.JPG\"/> </p> 2. Enter a clear, memorable name and description for your API key. It’ll make it easier to locate the right key when you make a request. 3. Now, choose which pieces of Propertyware data you want this API key to have access to by selecting the corresponding radio buttons. Once finished, click **GENERATE KEY**. 4. You have successfully created an API key! The client id and secret associated to this key will be presented. <p> <img src=\"APIKey_Generate.JPG\"/> </p> > **Important:** This is your only chance to record the secret. Make sure it’s stored somewhere secure! If it’s forgotten, you’ll need to delete this key and start from scratch. You have now successfully created an API key and have everything you need to send requests to the Propertyware API! Before moving on to [making your first request](#section/Getting-Started/How-to-Make-a-Request) please review [Keeping API Keys Safe](#section/Getting-Started/Keeping-API-Keys-Safe) for an overview on securely storing your API keys. <br /> If you are having issues creating API keys you can submit a [Support](#section/API-Overview/Support) request for assistance. ## Keeping API Keys Safe Based on their permissions, API keys could have full access to your account’s Propertyware data. It’s important that you only grant access to trusted applications, securely record secrets, and consider a password manager to stay organized. ### Recommended Practices - Avoid hard-coding client IDs and secrets inside source files. - Avoid storing client IDs and secrets in any files that may be committed to source control, particularly cloud-based source control platforms. - Apply restrictions to client IDs and secrets shared with your staff. You can restrict a key to particular Propertyware entities or to read-only access (GET resources only). - Avoid sharing client IDs and secrets across public, insecure platforms. - Establish a process to regularly recreate your client IDs and secrets from your Propertyware account. <br /> <br /> ## How to Make a Request You’ve done a great job setting up your account, Now, we’ll walk you through how to access your data. It’s very straightforward and should only take a few minutes! > **Tip:** Looking for the right HTTP client? If you’re just getting started, we recommend Postman. ### Let's Get Started! #### Step 1: Get Your API Key If you haven't yet done so, obtain your API key client ID and secret from your Propertyware account. Your API key is how the Propertyware API authenticates requests and ensures only you can access your data. #### Step 2: Install a HTTP client The Propertyware API supports any standard HTTP client. If you're looking for a user-friendly HTTP client application, we recommend [Postman](https://www.postman.com/product/api-client) – it allows you to access the Propertyware API without writing code. We’ll use Postman for our example below to demonstrate sending an API request. #### Step 3: Make a Sample Request Let's dive in and make a simple request to get all the [Buildings](#operation/getBuildingsUsingGET) in your account. This will confirm your connectivity to our platform and validate the keys you created on our website. Simply follow the instructions below. 1. Open the Postman application. 2. Open the *verb* menu and select **GET**. 3. Enter the request endpoint in the field next to GET. - Here’s the endpoint to get all buildings: https://api.propertyware.com/pw/api/rest/v1/buildings. 4. To authenticate the request, enter your `client ID`, your `secret` and your `organization iD` respectively in these request headers: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` _(organization id)_ The organization id uniquely identifies your Propertyware account and is an additional measure to enforce proper access to the correct data. ___Your client id and secret pair will only work with the organization it belongs to___. Your full request should look similar to the image below. <kbd><img src=\"request_example.png\" /></kbd> 5. Review the parameters of your request on last time. Once finished, click **Send**. 6. If successful, you should see a JSON response and a `200` HTTP status code. Congratulations! You've connected to the Propertyware API. You now have the knowledge required to make requests for any of our resources. If you've received an error response please review the JSON response message for a description of how to resolve the issue. You can also see more information about HTTP status codes in the [Response Codes](#section/API-Overview/Response-Codes) section. If you are still having trouble making a request after reviewing these sections please submit a [Support](#section/API-Overview/Support) request. # API Overview The Propertyware API is built upon standard REST conventions. It's designed to use consistent resource-oriented URLs, accept and return JSON-encoded messages, and use standard HTTP status codes and verbs. ## Base URL The base URL for production environment API requests is: `https://api.propertyware.com/pw/api/v1/rest` In order to ensure all requests and responses are secure between the API consumer and Propertyware servers, requests must be made using the `https` protocol. Any requests not made with the `https` protocol will be refused by the Propertyware API platform. > **Note:** URL paths are case-sensitive to stay consistent with common REST standards. If your request doesn’t align with the documented URL path, you’ll receive a `404` response code reminding you of this constraint. ## API Versioning The Propertyware API is version controlled. Versioning ensures backwards-incompatible changes to the API don’t impact any existing integrations. Propertyware uses only a major version nomenclature to manage changes. The current version of the Propertyware API is version 1. By specifying a version in the resource request URL, you'll get expected responses regardless of future changes to the API. Here's an example of calling version 1 of the retrieve all leases resource: `https://api.propertyware.com/pw/api/rest/v1/leases` Any request submitted without the version in the URL path will result in a `404` error response code. ### Releasing Changes to the API The Propertyware API will continue to evolve to ensure it meets the needs of our customers. Changes will be defined as either backwards-compatible or backwards-incompatible. We’ll provide advance notice for all API releases–regardless of the type of modifications being made. #### Backward-compatible Changes Backward-compatible changes are modifications to the API that shouldn't impact existing integrations. They'll apply to the current version of the API. Simply put: you won’t need to change the version to consume new changes like these. It's important as you develop against the Propertyware API that you ensure these types of changes don't impact your integration. Here's are examples of backward-compatible modifications. * Adding new API resources and/or endpoints. * Adding new optional request parameters to existing API methods. * Adding new properties to existing API responses and non-required properties for request messages. * Changing property order in existing API responses. All backward-compatible changes to the API will be documented in the [Changelog](#section/Changelog). #### Backwards-incompatible Changes When backwards-incompatible changes to the API occur, a new version of the API will be released. You’ll need to update the URL path to consume resources under the new API version. Backwards-incompatible changes include: * Removing a property from a request and/or response message. * Changing the name of a property in a message. * Adding a required parameter to a request message. * Changing existing enumeration values. New versions of the API will have full reference documentation and an upgrade guide. ## Authentication The Propertyware API uses API key’s client IDs and secrets to authenticate requests. An organization ID, an API key client ID and secret must be passed in every request header using the following parameters: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` Failing to provide both of them in the request header will cause the API to return a `401` HTTP status code. <!-- ## Rate Limiting (FUTURE) Rate limits help us ensure consistent and reliable performance for all users, even during peak loads. That’s why we limit clients to **10 concurrent requests per second**. If your request rate violates that limit, a response code of `429` is returned. Simply retry the request after a short interval (~200ms). --> ## Bulk Request Options All top-level API resources support bulk fetches. For instance, you can retrieve all [Portfolios](#operation/getPortfoliosUsingGET). These resources also allow for filtering criteria. Each resource has descriptions of the filter criteria available. In addition to filtering, our API gives you the ability to control the returned data’s pagination and the sort order. ### Pagination Endpoints that return result sets allow for pagination using `limit` and `offset` request parameters to reduce the amount of data returned. The `limit` request parameter will cap the number of results that come back in the response. If you don't specify a `limit` value, a **default of 100 results** are returned. The maximum `limit` value is 500. If a `limit` value is specified greater than 500, it will be overridden to the default to 500. The `offset` request parameter indicates the record position within the resultset to start at when returning the results. The `offset` is zero-based and is inclusive. If no `offset` value is submitted it will default to 0. The total resultset count is returned in the HTTP Header `X-Total-Count` #### Pagination Example As an example, let's say we make a request to retrieve all rental properties with no paging parameters. Our response indicates in the `X-Total-Count` header that there are 150 total rental properties. We want to get only the last 50 results so we would submit a request with the `offset` set to 100 and the `limit` set to 50. > **Note:** The `limit` and `offset` parameter names are case-sensitive. If they aren't formatted correctly, the API will return a `404` HTTP status code. ### Sorting Results You can specify the sort order of returned data by assigning properties from the returned object to the `orderby` parameter in the querystring. For example: ``` orderby=name ``` By default, the sort is performed in ascending order. To specify sort order, use \"asc\" for ascending or \"desc\" for descending. For example: ``` orderby=name desc ``` Additionally, you can sort by multiple properties by comma separating the properties. For example: ``` orderby=abbreviation asc,name desc ``` > **Note:** While the `orderby` parameter is case-sensitive, the properties specified in the `orderby` value aren't. ## Response Codes The Propertyware API supports standard HTTP status codes. |Response Code |Description | |--|--| |200 OK | Everything worked as expected. | |400 Bad Request | The request was unacceptable, often due to missing a required parameter.| |401 Unauthorized|The API client ID and secret weren’t provided or they’re no longer valid. Be sure that the client ID and secret combination are correct and they are still active.| |403 Forbidden|The API key doesn't have permission to perform the request. This could be due to authorization for the given endpoint or an inability to access given entities within the platform (e.g. properties). |404 Not Found|The requested resource doesn't exist.| |415 Unsupported Media Type |Ensure you have the appropriate content-type header value set on your request. Each resource is documented with media type(s) that are accepted.| |429 Too Many Requests |Too many requests against the API too quickly. We recommend an exponential backoff of your requests.| |500 and above - Server Errors|Something went wrong on Propertyware's end. Review the JSON response message for more details about the error.| ## API Date Format * For all request and response date fields allowing ISO date format: YYYY-MM-DD (e.g.2019-08-24). * For all request and response dateAndTime fields format is allowing: YYYY-MM-dd'T'HH:mm:ssXXX (e.g.2022-06-28T08:47:13Z). ## Support If you are unable to resolve your issue after reviewing the API documentation our support team can assist you. # Changelog ### 2023-07-11 * Delete a document ### 2023-07-11 * Retrieve all documents * Retrieve a document * Download a document ### 2023-06-10 * Lease contacts are included in Retrieve all leases API response * Lease contacts are included in Retrieve a lease API response ### 2023-04-24 * Bulk Insertion: Prospects * Bulk Insertion: Bill Payments ### 2023-04-11 * Bulk Insertion: Portfolios * Bulk Insertion: Buildings * Bulk Insertion: Units ### 2023-03-19 * Bulk insertion: contacts ### 2023-03-08 * Bulk insertion: bills ### 2023-01-24 * Custom fields in \"Get all\" endpoints * Prospect creation * Bill removals ### 2022-10-25 * API Read operations for non-financial data ### 2022-09-21 * API Read operations available
5
5
 
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@propertyware.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Open API, powered by Propertyware
3
3
 
4
- #<script type=\"text/javascript\" src=\"https://buildium.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-T/-raa8on/b/8/c95134bc67d3a521bb3f4331beb9b804/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-US&collectorId=e43cd15d\"></script> # Introduction Welcome to Propertyware’s API—a powerful, RESTful programming interface that lets you leverage valuable Propertyware data. ## Account Configuration Before you can use Propertyware’s API, you’ll need to make some tweaks to your account settings. <br /> ### Enabling the API In order to start creating your keys and making requests, you’ll need to enable the API. > **Tip:** You’ll need an administrator user role with access to ***Administration Setup > API Keys*** to set things up properly. **Let's Begin!** 1. Sign in to your [Propertyware](https://app.propertyware.com/pw/login.jsp) account from your browser. 2. Open the ***Setup*** page 3. On the left navigation bar, expand ***Administration Setup*** and then click ***API Keys***. If you are having issues accessing the API keys page within your account you can submit a [Support](#section/API-Overview/Support) request for assistance. ## API Keys Account-level API keys authenticate every request and keep things secure. API keys have two components: a “client ID” and a “secret”. * **Client IDs** are similar to usernames. They’re used to identify your Propertyware API key and are safe to share. * **Secrets** are similar to passwords. They must be kept confidential. Whenever you make a request, you’ll need the API key’s client ID and secret. If you forget it, make a mistake, or try to use information that’s linked to a deleted key, the API will return a `401` response code. > **Tip:** We compiled a list of best practices that detail how securely store API keys. [Give it a read](#section/Getting-Started/Keeping-API-Keys-Safe)! ## Creating API Keys Now that the Open API is enabled, you’ll be able to create API keys. You’re almost there! **How to create an API key** 1. On the API Keys page, click ***Create API Key***. A modal will appear. <p> <img src=\"APIKey_Page.JPG\"/> </p> <p> <img src=\"APIKey_New.JPG\"/> </p> 2. Enter a clear, memorable name and description for your API key. It’ll make it easier to locate the right key when you make a request. 3. Now, choose which pieces of Propertyware data you want this API key to have access to by selecting the corresponding radio buttons. Once finished, click **GENERATE KEY**. 4. You have successfully created an API key! The client id and secret associated to this key will be presented. <p> <img src=\"APIKey_Generate.JPG\"/> </p> > **Important:** This is your only chance to record the secret. Make sure it’s stored somewhere secure! If it’s forgotten, you’ll need to delete this key and start from scratch. You have now successfully created an API key and have everything you need to send requests to the Propertyware API! Before moving on to [making your first request](#section/Getting-Started/How-to-Make-a-Request) please review [Keeping API Keys Safe](#section/Getting-Started/Keeping-API-Keys-Safe) for an overview on securely storing your API keys. <br /> If you are having issues creating API keys you can submit a [Support](#section/API-Overview/Support) request for assistance. ## Keeping API Keys Safe Based on their permissions, API keys could have full access to your account’s Propertyware data. It’s important that you only grant access to trusted applications, securely record secrets, and consider a password manager to stay organized. ### Recommended Practices - Avoid hard-coding client IDs and secrets inside source files. - Avoid storing client IDs and secrets in any files that may be committed to source control, particularly cloud-based source control platforms. - Apply restrictions to client IDs and secrets shared with your staff. You can restrict a key to particular Propertyware entities or to read-only access (GET resources only). - Avoid sharing client IDs and secrets across public, insecure platforms. - Establish a process to regularly recreate your client IDs and secrets from your Propertyware account. <br /> <br /> ## How to Make a Request You’ve done a great job setting up your account, Now, we’ll walk you through how to access your data. It’s very straightforward and should only take a few minutes! > **Tip:** Looking for the right HTTP client? If you’re just getting started, we recommend Postman. ### Let's Get Started! #### Step 1: Get Your API Key If you haven't yet done so, obtain your API key client ID and secret from your Propertyware account. Your API key is how the Propertyware API authenticates requests and ensures only you can access your data. #### Step 2: Install a HTTP client The Propertyware API supports any standard HTTP client. If you're looking for a user-friendly HTTP client application, we recommend [Postman](https://www.postman.com/product/api-client) – it allows you to access the Propertyware API without writing code. We’ll use Postman for our example below to demonstrate sending an API request. #### Step 3: Make a Sample Request Let's dive in and make a simple request to get all the [Buildings](#operation/getBuildingsUsingGET) in your account. This will confirm your connectivity to our platform and validate the keys you created on our website. Simply follow the instructions below. 1. Open the Postman application. 2. Open the *verb* menu and select **GET**. 3. Enter the request endpoint in the field next to GET. - Here’s the endpoint to get all buildings: https://api.propertyware.com/pw/api/rest/v1/buildings. 4. To authenticate the request, enter your `client ID`, your `secret` and your `organization iD` respectively in these request headers: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` _(organization id)_ The organization id uniquely identifies your Propertyware account and is an additional measure to enforce proper access to the correct data. ___Your client id and secret pair will only work with the organization it belongs to___. Your full request should look similar to the image below. <kbd><img src=\"request_example.png\" /></kbd> 5. Review the parameters of your request on last time. Once finished, click **Send**. 6. If successful, you should see a JSON response and a `200` HTTP status code. Congratulations! You've connected to the Propertyware API. You now have the knowledge required to make requests for any of our resources. If you've received an error response please review the JSON response message for a description of how to resolve the issue. You can also see more information about HTTP status codes in the [Response Codes](#section/API-Overview/Response-Codes) section. If you are still having trouble making a request after reviewing these sections please submit a [Support](#section/API-Overview/Support) request. # API Overview The Propertyware API is built upon standard REST conventions. It's designed to use consistent resource-oriented URLs, accept and return JSON-encoded messages, and use standard HTTP status codes and verbs. ## Base URL The base URL for production environment API requests is: `https://api.propertyware.com/pw/api/v1/rest` In order to ensure all requests and responses are secure between the API consumer and Propertyware servers, requests must be made using the `https` protocol. Any requests not made with the `https` protocol will be refused by the Propertyware API platform. > **Note:** URL paths are case-sensitive to stay consistent with common REST standards. If your request doesn’t align with the documented URL path, you’ll receive a `404` response code reminding you of this constraint. ## API Versioning The Propertyware API is version controlled. Versioning ensures backwards-incompatible changes to the API don’t impact any existing integrations. Propertyware uses only a major version nomenclature to manage changes. The current version of the Propertyware API is version 1. By specifying a version in the resource request URL, you'll get expected responses regardless of future changes to the API. Here's an example of calling version 1 of the retrieve all leases resource: `https://api.propertyware.com/pw/api/rest/v1/leases` Any request submitted without the version in the URL path will result in a `404` error response code. ### Releasing Changes to the API The Propertyware API will continue to evolve to ensure it meets the needs of our customers. Changes will be defined as either backwards-compatible or backwards-incompatible. We’ll provide advance notice for all API releases–regardless of the type of modifications being made. #### Backward-compatible Changes Backward-compatible changes are modifications to the API that shouldn't impact existing integrations. They'll apply to the current version of the API. Simply put: you won’t need to change the version to consume new changes like these. It's important as you develop against the Propertyware API that you ensure these types of changes don't impact your integration. Here's are examples of backward-compatible modifications. * Adding new API resources and/or endpoints. * Adding new optional request parameters to existing API methods. * Adding new properties to existing API responses and non-required properties for request messages. * Changing property order in existing API responses. All backward-compatible changes to the API will be documented in the [Changelog](#section/Changelog). #### Backwards-incompatible Changes When backwards-incompatible changes to the API occur, a new version of the API will be released. You’ll need to update the URL path to consume resources under the new API version. Backwards-incompatible changes include: * Removing a property from a request and/or response message. * Changing the name of a property in a message. * Adding a required parameter to a request message. * Changing existing enumeration values. New versions of the API will have full reference documentation and an upgrade guide. ## Authentication The Propertyware API uses API key’s client IDs and secrets to authenticate requests. An organization ID, an API key client ID and secret must be passed in every request header using the following parameters: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` Failing to provide both of them in the request header will cause the API to return a `401` HTTP status code. <!-- ## Rate Limiting (FUTURE) Rate limits help us ensure consistent and reliable performance for all users, even during peak loads. That’s why we limit clients to **10 concurrent requests per second**. If your request rate violates that limit, a response code of `429` is returned. Simply retry the request after a short interval (~200ms). --> ## Bulk Request Options All top-level API resources support bulk fetches. For instance, you can retrieve all [Portfolios](#operation/getPortfoliosUsingGET). These resources also allow for filtering criteria. Each resource has descriptions of the filter criteria available. In addition to filtering, our API gives you the ability to control the returned data’s pagination and the sort order. ### Pagination Endpoints that return result sets allow for pagination using `limit` and `offset` request parameters to reduce the amount of data returned. The `limit` request parameter will cap the number of results that come back in the response. If you don't specify a `limit` value, a **default of 100 results** are returned. The maximum `limit` value is 500. If a `limit` value is specified greater than 500, it will be overridden to the default to 500. The `offset` request parameter indicates the record position within the resultset to start at when returning the results. The `offset` is zero-based and is inclusive. If no `offset` value is submitted it will default to 0. The total resultset count is returned in the HTTP Header `X-Total-Count` #### Pagination Example As an example, let's say we make a request to retrieve all rental properties with no paging parameters. Our response indicates in the `X-Total-Count` header that there are 150 total rental properties. We want to get only the last 50 results so we would submit a request with the `offset` set to 100 and the `limit` set to 50. > **Note:** The `limit` and `offset` parameter names are case-sensitive. If they aren't formatted correctly, the API will return a `404` HTTP status code. ### Sorting Results You can specify the sort order of returned data by assigning properties from the returned object to the `orderby` parameter in the querystring. For example: ``` orderby=name ``` By default, the sort is performed in ascending order. To specify sort order, use \"asc\" for ascending or \"desc\" for descending. For example: ``` orderby=name desc ``` Additionally, you can sort by multiple properties by comma separating the properties. For example: ``` orderby=abbreviation asc,name desc ``` > **Note:** While the `orderby` parameter is case-sensitive, the properties specified in the `orderby` value aren't. ## Response Codes The Propertyware API supports standard HTTP status codes. |Response Code |Description | |--|--| |200 OK | Everything worked as expected. | |400 Bad Request | The request was unacceptable, often due to missing a required parameter.| |401 Unauthorized|The API client ID and secret weren’t provided or they’re no longer valid. Be sure that the client ID and secret combination are correct and they are still active.| |403 Forbidden|The API key doesn't have permission to perform the request. This could be due to authorization for the given endpoint or an inability to access given entities within the platform (e.g. properties). |404 Not Found|The requested resource doesn't exist.| |415 Unsupported Media Type |Ensure you have the appropriate content-type header value set on your request. Each resource is documented with media type(s) that are accepted.| |429 Too Many Requests |Too many requests against the API too quickly. We recommend an exponential backoff of your requests.| |500 and above - Server Errors|Something went wrong on Propertyware's end. Review the JSON response message for more details about the error.| ## API Date Format * For all request and response date fields allowing ISO date format: YYYY-MM-DD (e.g.2019-08-24). * For all request and response dateAndTime fields format is allowing: YYYY-MM-dd'T'HH:mm:ssXXX (e.g.2022-06-28T08:47:13Z). ## Support If you are unable to resolve your issue after reviewing the API documentation our support team can assist you. # Changelog ### 2023-07-11 * Retrieve all documents * Retrieve a document * Download a document ### 2023-06-10 * Lease contacts are included in Retrieve all leases API response * Lease contacts are included in Retrieve a lease API response ### 2023-04-24 * Bulk Insertion: Prospects * Bulk Insertion: Bill Payments ### 2023-04-11 * Bulk Insertion: Portfolios * Bulk Insertion: Buildings * Bulk Insertion: Units ### 2023-03-19 * Bulk insertion: contacts ### 2023-03-08 * Bulk insertion: bills ### 2023-01-24 * Custom fields in \"Get all\" endpoints * Prospect creation * Bill removals ### 2022-10-25 * API Read operations for non-financial data ### 2022-09-21 * API Read operations available
4
+ #<script type=\"text/javascript\" src=\"https://buildium.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-T/-raa8on/b/8/c95134bc67d3a521bb3f4331beb9b804/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-US&collectorId=e43cd15d\"></script> # Introduction Welcome to Propertyware’s API—a powerful, RESTful programming interface that lets you leverage valuable Propertyware data. ## Account Configuration Before you can use Propertyware’s API, you’ll need to make some tweaks to your account settings. <br /> ### Enabling the API In order to start creating your keys and making requests, you’ll need to enable the API. > **Tip:** You’ll need an administrator user role with access to ***Administration Setup > API Keys*** to set things up properly. **Let's Begin!** 1. Sign in to your [Propertyware](https://app.propertyware.com/pw/login.jsp) account from your browser. 2. Open the ***Setup*** page 3. On the left navigation bar, expand ***Administration Setup*** and then click ***API Keys***. If you are having issues accessing the API keys page within your account you can submit a [Support](#section/API-Overview/Support) request for assistance. ## API Keys Account-level API keys authenticate every request and keep things secure. API keys have two components: a “client ID” and a “secret”. * **Client IDs** are similar to usernames. They’re used to identify your Propertyware API key and are safe to share. * **Secrets** are similar to passwords. They must be kept confidential. Whenever you make a request, you’ll need the API key’s client ID and secret. If you forget it, make a mistake, or try to use information that’s linked to a deleted key, the API will return a `401` response code. > **Tip:** We compiled a list of best practices that detail how securely store API keys. [Give it a read](#section/Getting-Started/Keeping-API-Keys-Safe)! ## Creating API Keys Now that the Open API is enabled, you’ll be able to create API keys. You’re almost there! **How to create an API key** 1. On the API Keys page, click ***Create API Key***. A modal will appear. <p> <img src=\"APIKey_Page.JPG\"/> </p> <p> <img src=\"APIKey_New.JPG\"/> </p> 2. Enter a clear, memorable name and description for your API key. It’ll make it easier to locate the right key when you make a request. 3. Now, choose which pieces of Propertyware data you want this API key to have access to by selecting the corresponding radio buttons. Once finished, click **GENERATE KEY**. 4. You have successfully created an API key! The client id and secret associated to this key will be presented. <p> <img src=\"APIKey_Generate.JPG\"/> </p> > **Important:** This is your only chance to record the secret. Make sure it’s stored somewhere secure! If it’s forgotten, you’ll need to delete this key and start from scratch. You have now successfully created an API key and have everything you need to send requests to the Propertyware API! Before moving on to [making your first request](#section/Getting-Started/How-to-Make-a-Request) please review [Keeping API Keys Safe](#section/Getting-Started/Keeping-API-Keys-Safe) for an overview on securely storing your API keys. <br /> If you are having issues creating API keys you can submit a [Support](#section/API-Overview/Support) request for assistance. ## Keeping API Keys Safe Based on their permissions, API keys could have full access to your account’s Propertyware data. It’s important that you only grant access to trusted applications, securely record secrets, and consider a password manager to stay organized. ### Recommended Practices - Avoid hard-coding client IDs and secrets inside source files. - Avoid storing client IDs and secrets in any files that may be committed to source control, particularly cloud-based source control platforms. - Apply restrictions to client IDs and secrets shared with your staff. You can restrict a key to particular Propertyware entities or to read-only access (GET resources only). - Avoid sharing client IDs and secrets across public, insecure platforms. - Establish a process to regularly recreate your client IDs and secrets from your Propertyware account. <br /> <br /> ## How to Make a Request You’ve done a great job setting up your account, Now, we’ll walk you through how to access your data. It’s very straightforward and should only take a few minutes! > **Tip:** Looking for the right HTTP client? If you’re just getting started, we recommend Postman. ### Let's Get Started! #### Step 1: Get Your API Key If you haven't yet done so, obtain your API key client ID and secret from your Propertyware account. Your API key is how the Propertyware API authenticates requests and ensures only you can access your data. #### Step 2: Install a HTTP client The Propertyware API supports any standard HTTP client. If you're looking for a user-friendly HTTP client application, we recommend [Postman](https://www.postman.com/product/api-client) – it allows you to access the Propertyware API without writing code. We’ll use Postman for our example below to demonstrate sending an API request. #### Step 3: Make a Sample Request Let's dive in and make a simple request to get all the [Buildings](#operation/getBuildingsUsingGET) in your account. This will confirm your connectivity to our platform and validate the keys you created on our website. Simply follow the instructions below. 1. Open the Postman application. 2. Open the *verb* menu and select **GET**. 3. Enter the request endpoint in the field next to GET. - Here’s the endpoint to get all buildings: https://api.propertyware.com/pw/api/rest/v1/buildings. 4. To authenticate the request, enter your `client ID`, your `secret` and your `organization iD` respectively in these request headers: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` _(organization id)_ The organization id uniquely identifies your Propertyware account and is an additional measure to enforce proper access to the correct data. ___Your client id and secret pair will only work with the organization it belongs to___. Your full request should look similar to the image below. <kbd><img src=\"request_example.png\" /></kbd> 5. Review the parameters of your request on last time. Once finished, click **Send**. 6. If successful, you should see a JSON response and a `200` HTTP status code. Congratulations! You've connected to the Propertyware API. You now have the knowledge required to make requests for any of our resources. If you've received an error response please review the JSON response message for a description of how to resolve the issue. You can also see more information about HTTP status codes in the [Response Codes](#section/API-Overview/Response-Codes) section. If you are still having trouble making a request after reviewing these sections please submit a [Support](#section/API-Overview/Support) request. # API Overview The Propertyware API is built upon standard REST conventions. It's designed to use consistent resource-oriented URLs, accept and return JSON-encoded messages, and use standard HTTP status codes and verbs. ## Base URL The base URL for production environment API requests is: `https://api.propertyware.com/pw/api/v1/rest` In order to ensure all requests and responses are secure between the API consumer and Propertyware servers, requests must be made using the `https` protocol. Any requests not made with the `https` protocol will be refused by the Propertyware API platform. > **Note:** URL paths are case-sensitive to stay consistent with common REST standards. If your request doesn’t align with the documented URL path, you’ll receive a `404` response code reminding you of this constraint. ## API Versioning The Propertyware API is version controlled. Versioning ensures backwards-incompatible changes to the API don’t impact any existing integrations. Propertyware uses only a major version nomenclature to manage changes. The current version of the Propertyware API is version 1. By specifying a version in the resource request URL, you'll get expected responses regardless of future changes to the API. Here's an example of calling version 1 of the retrieve all leases resource: `https://api.propertyware.com/pw/api/rest/v1/leases` Any request submitted without the version in the URL path will result in a `404` error response code. ### Releasing Changes to the API The Propertyware API will continue to evolve to ensure it meets the needs of our customers. Changes will be defined as either backwards-compatible or backwards-incompatible. We’ll provide advance notice for all API releases–regardless of the type of modifications being made. #### Backward-compatible Changes Backward-compatible changes are modifications to the API that shouldn't impact existing integrations. They'll apply to the current version of the API. Simply put: you won’t need to change the version to consume new changes like these. It's important as you develop against the Propertyware API that you ensure these types of changes don't impact your integration. Here's are examples of backward-compatible modifications. * Adding new API resources and/or endpoints. * Adding new optional request parameters to existing API methods. * Adding new properties to existing API responses and non-required properties for request messages. * Changing property order in existing API responses. All backward-compatible changes to the API will be documented in the [Changelog](#section/Changelog). #### Backwards-incompatible Changes When backwards-incompatible changes to the API occur, a new version of the API will be released. You’ll need to update the URL path to consume resources under the new API version. Backwards-incompatible changes include: * Removing a property from a request and/or response message. * Changing the name of a property in a message. * Adding a required parameter to a request message. * Changing existing enumeration values. New versions of the API will have full reference documentation and an upgrade guide. ## Authentication The Propertyware API uses API key’s client IDs and secrets to authenticate requests. An organization ID, an API key client ID and secret must be passed in every request header using the following parameters: - `x-propertyware-client-id` - `x-propertyware-client-secret` - `x-propertyware-system-id` Failing to provide both of them in the request header will cause the API to return a `401` HTTP status code. <!-- ## Rate Limiting (FUTURE) Rate limits help us ensure consistent and reliable performance for all users, even during peak loads. That’s why we limit clients to **10 concurrent requests per second**. If your request rate violates that limit, a response code of `429` is returned. Simply retry the request after a short interval (~200ms). --> ## Bulk Request Options All top-level API resources support bulk fetches. For instance, you can retrieve all [Portfolios](#operation/getPortfoliosUsingGET). These resources also allow for filtering criteria. Each resource has descriptions of the filter criteria available. In addition to filtering, our API gives you the ability to control the returned data’s pagination and the sort order. ### Pagination Endpoints that return result sets allow for pagination using `limit` and `offset` request parameters to reduce the amount of data returned. The `limit` request parameter will cap the number of results that come back in the response. If you don't specify a `limit` value, a **default of 100 results** are returned. The maximum `limit` value is 500. If a `limit` value is specified greater than 500, it will be overridden to the default to 500. The `offset` request parameter indicates the record position within the resultset to start at when returning the results. The `offset` is zero-based and is inclusive. If no `offset` value is submitted it will default to 0. The total resultset count is returned in the HTTP Header `X-Total-Count` #### Pagination Example As an example, let's say we make a request to retrieve all rental properties with no paging parameters. Our response indicates in the `X-Total-Count` header that there are 150 total rental properties. We want to get only the last 50 results so we would submit a request with the `offset` set to 100 and the `limit` set to 50. > **Note:** The `limit` and `offset` parameter names are case-sensitive. If they aren't formatted correctly, the API will return a `404` HTTP status code. ### Sorting Results You can specify the sort order of returned data by assigning properties from the returned object to the `orderby` parameter in the querystring. For example: ``` orderby=name ``` By default, the sort is performed in ascending order. To specify sort order, use \"asc\" for ascending or \"desc\" for descending. For example: ``` orderby=name desc ``` Additionally, you can sort by multiple properties by comma separating the properties. For example: ``` orderby=abbreviation asc,name desc ``` > **Note:** While the `orderby` parameter is case-sensitive, the properties specified in the `orderby` value aren't. ## Response Codes The Propertyware API supports standard HTTP status codes. |Response Code |Description | |--|--| |200 OK | Everything worked as expected. | |400 Bad Request | The request was unacceptable, often due to missing a required parameter.| |401 Unauthorized|The API client ID and secret weren’t provided or they’re no longer valid. Be sure that the client ID and secret combination are correct and they are still active.| |403 Forbidden|The API key doesn't have permission to perform the request. This could be due to authorization for the given endpoint or an inability to access given entities within the platform (e.g. properties). |404 Not Found|The requested resource doesn't exist.| |415 Unsupported Media Type |Ensure you have the appropriate content-type header value set on your request. Each resource is documented with media type(s) that are accepted.| |429 Too Many Requests |Too many requests against the API too quickly. We recommend an exponential backoff of your requests.| |500 and above - Server Errors|Something went wrong on Propertyware's end. Review the JSON response message for more details about the error.| ## API Date Format * For all request and response date fields allowing ISO date format: YYYY-MM-DD (e.g.2019-08-24). * For all request and response dateAndTime fields format is allowing: YYYY-MM-dd'T'HH:mm:ssXXX (e.g.2022-06-28T08:47:13Z). ## Support If you are unable to resolve your issue after reviewing the API documentation our support team can assist you. # Changelog ### 2023-07-11 * Delete a document ### 2023-07-11 * Retrieve all documents * Retrieve a document * Download a document ### 2023-06-10 * Lease contacts are included in Retrieve all leases API response * Lease contacts are included in Retrieve a lease API response ### 2023-04-24 * Bulk Insertion: Prospects * Bulk Insertion: Bill Payments ### 2023-04-11 * Bulk Insertion: Portfolios * Bulk Insertion: Buildings * Bulk Insertion: Units ### 2023-03-19 * Bulk insertion: contacts ### 2023-03-08 * Bulk insertion: bills ### 2023-01-24 * Custom fields in \"Get all\" endpoints * Prospect creation * Bill removals ### 2022-10-25 * API Read operations for non-financial data ### 2022-09-21 * API Read operations available
5
5
 
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@propertyware.com
@@ -16,7 +16,7 @@ require 'time'
16
16
  module Propertyware
17
17
  # SaveUnit
18
18
  class SaveUnit
19
- # Unit abbreviation.
19
+ # Abbreviation of Unit.
20
20
  attr_accessor :abbreviation
21
21
 
22
22
  attr_accessor :address
@@ -51,9 +51,6 @@ module Propertyware
51
51
  # Number of bedrooms in the unit.
52
52
  attr_accessor :number_bedrooms
53
53
 
54
- # Other Unit country is required only if unit outside of USA or Canada.
55
- attr_accessor :other_unit_country
56
-
57
54
  # Id of the portfolio associated with this unit.
58
55
  attr_accessor :portfolio_id
59
56
 
@@ -66,19 +63,22 @@ module Propertyware
66
63
  # Is Unit is Residential or Commercial.
67
64
  attr_accessor :residential
68
65
 
69
- # SearchTag.
66
+ # Search tag.
70
67
  attr_accessor :search_tag
71
68
 
72
- # Target Deposit.
69
+ # Target deposit amount.
73
70
  attr_accessor :target_deposit
74
71
 
75
72
  # Market rent for the unit.
76
73
  attr_accessor :target_rent
77
74
 
75
+ # Property target rent units.
76
+ attr_accessor :target_rent_units
77
+
78
78
  # Unit Area.
79
79
  attr_accessor :total_area
80
80
 
81
- # Unit Type.
81
+ # Indicates Unit type like Business Office,Medical Office,Showroom,R and D,Assigned Parking (Indoor),Assigned Parking (Outdoor),Warehouse,Restaurant,Shopping Mall Retail,Street Retail,Manufacturing,House,Town House,Apartment,Flat,Studio,Loft,Assigned Parking (Indoor),Assigned Parking (Outdoor) etc.
82
82
  attr_accessor :type
83
83
 
84
84
  class EnumAttributeValidator
@@ -118,7 +118,6 @@ module Propertyware
118
118
  :'neighborhood' => :'neighborhood',
119
119
  :'number_bathrooms' => :'numberBathrooms',
120
120
  :'number_bedrooms' => :'numberBedrooms',
121
- :'other_unit_country' => :'otherUnitCountry',
122
121
  :'portfolio_id' => :'portfolioID',
123
122
  :'ready' => :'ready',
124
123
  :'reason_for_property_lost' => :'reasonForPropertyLost',
@@ -126,6 +125,7 @@ module Propertyware
126
125
  :'search_tag' => :'searchTag',
127
126
  :'target_deposit' => :'targetDeposit',
128
127
  :'target_rent' => :'targetRent',
128
+ :'target_rent_units' => :'targetRentUnits',
129
129
  :'total_area' => :'totalArea',
130
130
  :'type' => :'type'
131
131
  }
@@ -151,14 +151,14 @@ module Propertyware
151
151
  :'neighborhood' => :'String',
152
152
  :'number_bathrooms' => :'Float',
153
153
  :'number_bedrooms' => :'Integer',
154
- :'other_unit_country' => :'String',
155
154
  :'portfolio_id' => :'Integer',
156
155
  :'ready' => :'Boolean',
157
156
  :'reason_for_property_lost' => :'String',
158
157
  :'residential' => :'Boolean',
159
158
  :'search_tag' => :'String',
160
- :'target_deposit' => :'String',
159
+ :'target_deposit' => :'Float',
161
160
  :'target_rent' => :'Float',
161
+ :'target_rent_units' => :'String',
162
162
  :'total_area' => :'Float',
163
163
  :'type' => :'String'
164
164
  }
@@ -233,10 +233,6 @@ module Propertyware
233
233
  self.number_bedrooms = attributes[:'number_bedrooms']
234
234
  end
235
235
 
236
- if attributes.key?(:'other_unit_country')
237
- self.other_unit_country = attributes[:'other_unit_country']
238
- end
239
-
240
236
  if attributes.key?(:'portfolio_id')
241
237
  self.portfolio_id = attributes[:'portfolio_id']
242
238
  end
@@ -265,6 +261,10 @@ module Propertyware
265
261
  self.target_rent = attributes[:'target_rent']
266
262
  end
267
263
 
264
+ if attributes.key?(:'target_rent_units')
265
+ self.target_rent_units = attributes[:'target_rent_units']
266
+ end
267
+
268
268
  if attributes.key?(:'total_area')
269
269
  self.total_area = attributes[:'total_area']
270
270
  end
@@ -282,6 +282,14 @@ module Propertyware
282
282
  invalid_properties.push('invalid value for "abbreviation", abbreviation cannot be nil.')
283
283
  end
284
284
 
285
+ if @abbreviation.to_s.length > 12
286
+ invalid_properties.push('invalid value for "abbreviation", the character length must be smaller than or equal to 12.')
287
+ end
288
+
289
+ if @abbreviation.to_s.length < 1
290
+ invalid_properties.push('invalid value for "abbreviation", the character length must be great than or equal to 1.')
291
+ end
292
+
285
293
  if @building_id.nil?
286
294
  invalid_properties.push('invalid value for "building_id", building_id cannot be nil.')
287
295
  end
@@ -290,14 +298,46 @@ module Propertyware
290
298
  invalid_properties.push('invalid value for "category", category cannot be nil.')
291
299
  end
292
300
 
301
+ if !@description.nil? && @description.to_s.length > 65535
302
+ invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 65535.')
303
+ end
304
+
305
+ if !@description.nil? && @description.to_s.length < 0
306
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 0.')
307
+ end
308
+
293
309
  if @name.nil?
294
310
  invalid_properties.push('invalid value for "name", name cannot be nil.')
295
311
  end
296
312
 
313
+ if !@neighborhood.nil? && @neighborhood.to_s.length > 30
314
+ invalid_properties.push('invalid value for "neighborhood", the character length must be smaller than or equal to 30.')
315
+ end
316
+
317
+ if !@neighborhood.nil? && @neighborhood.to_s.length < 0
318
+ invalid_properties.push('invalid value for "neighborhood", the character length must be great than or equal to 0.')
319
+ end
320
+
321
+ if !@number_bedrooms.nil? && @number_bedrooms > 20
322
+ invalid_properties.push('invalid value for "number_bedrooms", must be smaller than or equal to 20.')
323
+ end
324
+
325
+ if !@number_bedrooms.nil? && @number_bedrooms < 0
326
+ invalid_properties.push('invalid value for "number_bedrooms", must be greater than or equal to 0.')
327
+ end
328
+
297
329
  if @portfolio_id.nil?
298
330
  invalid_properties.push('invalid value for "portfolio_id", portfolio_id cannot be nil.')
299
331
  end
300
332
 
333
+ if !@search_tag.nil? && @search_tag.to_s.length > 25
334
+ invalid_properties.push('invalid value for "search_tag", the character length must be smaller than or equal to 25.')
335
+ end
336
+
337
+ if !@search_tag.nil? && @search_tag.to_s.length < 0
338
+ invalid_properties.push('invalid value for "search_tag", the character length must be great than or equal to 0.')
339
+ end
340
+
301
341
  if @type.nil?
302
342
  invalid_properties.push('invalid value for "type", type cannot be nil.')
303
343
  end
@@ -309,16 +349,52 @@ module Propertyware
309
349
  # @return true if the model is valid
310
350
  def valid?
311
351
  return false if @abbreviation.nil?
352
+ return false if @abbreviation.to_s.length > 12
353
+ return false if @abbreviation.to_s.length < 1
312
354
  return false if @building_id.nil?
313
355
  return false if @category.nil?
314
356
  category_validator = EnumAttributeValidator.new('String', ["RESIDENTIAL", "COMMERCIAL"])
315
357
  return false unless category_validator.valid?(@category)
358
+ return false if !@description.nil? && @description.to_s.length > 65535
359
+ return false if !@description.nil? && @description.to_s.length < 0
360
+ floor_number_validator = EnumAttributeValidator.new('Integer', [0, 1, 2])
361
+ return false unless floor_number_validator.valid?(@floor_number)
316
362
  return false if @name.nil?
363
+ return false if !@neighborhood.nil? && @neighborhood.to_s.length > 30
364
+ return false if !@neighborhood.nil? && @neighborhood.to_s.length < 0
365
+ number_bathrooms_validator = EnumAttributeValidator.new('Float', [0, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6, 6.5, 7, 7.5, 8, 8.5, 9, 9.5, 10])
366
+ return false unless number_bathrooms_validator.valid?(@number_bathrooms)
367
+ return false if !@number_bedrooms.nil? && @number_bedrooms > 20
368
+ return false if !@number_bedrooms.nil? && @number_bedrooms < 0
317
369
  return false if @portfolio_id.nil?
370
+ reason_for_property_lost_validator = EnumAttributeValidator.new('String', ["EMPTY", "ABANDONED", "FORECLOSURE", "MGR_RETURNED_TO_OWNER", "OTB_AS_FRBO", "OWNER_MOVED_BACK", "REFERRED_TO_SALES", "REFERRED_TO_SALES_OR_SOLD"])
371
+ return false unless reason_for_property_lost_validator.valid?(@reason_for_property_lost)
372
+ return false if !@search_tag.nil? && @search_tag.to_s.length > 25
373
+ return false if !@search_tag.nil? && @search_tag.to_s.length < 0
374
+ target_rent_units_validator = EnumAttributeValidator.new('String', ["DOLLAR_PER_SQ_FT_MONTH", "DOLLAR_PER_SQ_FT_YEAR", "DOLLAR_PER_SQ_M_MONTH", "DOLLAR_PER_SQ_M_YEAR", "DOLLAR_PER_MONTH", "DOLLAR_PER_WEEK", "DOLLAR_PER_NIGHT"])
375
+ return false unless target_rent_units_validator.valid?(@target_rent_units)
318
376
  return false if @type.nil?
319
377
  true
320
378
  end
321
379
 
380
+ # Custom attribute writer method with validation
381
+ # @param [Object] abbreviation Value to be assigned
382
+ def abbreviation=(abbreviation)
383
+ if abbreviation.nil?
384
+ fail ArgumentError, 'abbreviation cannot be nil'
385
+ end
386
+
387
+ if abbreviation.to_s.length > 12
388
+ fail ArgumentError, 'invalid value for "abbreviation", the character length must be smaller than or equal to 12.'
389
+ end
390
+
391
+ if abbreviation.to_s.length < 1
392
+ fail ArgumentError, 'invalid value for "abbreviation", the character length must be great than or equal to 1.'
393
+ end
394
+
395
+ @abbreviation = abbreviation
396
+ end
397
+
322
398
  # Custom attribute writer method checking allowed values (enum).
323
399
  # @param [Object] category Object to be assigned
324
400
  def category=(category)
@@ -329,6 +405,102 @@ module Propertyware
329
405
  @category = category
330
406
  end
331
407
 
408
+ # Custom attribute writer method with validation
409
+ # @param [Object] description Value to be assigned
410
+ def description=(description)
411
+ if !description.nil? && description.to_s.length > 65535
412
+ fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 65535.'
413
+ end
414
+
415
+ if !description.nil? && description.to_s.length < 0
416
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 0.'
417
+ end
418
+
419
+ @description = description
420
+ end
421
+
422
+ # Custom attribute writer method checking allowed values (enum).
423
+ # @param [Object] floor_number Object to be assigned
424
+ def floor_number=(floor_number)
425
+ validator = EnumAttributeValidator.new('Integer', [0, 1, 2])
426
+ unless validator.valid?(floor_number)
427
+ fail ArgumentError, "invalid value #{ floor_number.inspect } for \"floor_number\", must be one of #{validator.allowable_values}."
428
+ end
429
+ @floor_number = floor_number
430
+ end
431
+
432
+ # Custom attribute writer method with validation
433
+ # @param [Object] neighborhood Value to be assigned
434
+ def neighborhood=(neighborhood)
435
+ if !neighborhood.nil? && neighborhood.to_s.length > 30
436
+ fail ArgumentError, 'invalid value for "neighborhood", the character length must be smaller than or equal to 30.'
437
+ end
438
+
439
+ if !neighborhood.nil? && neighborhood.to_s.length < 0
440
+ fail ArgumentError, 'invalid value for "neighborhood", the character length must be great than or equal to 0.'
441
+ end
442
+
443
+ @neighborhood = neighborhood
444
+ end
445
+
446
+ # Custom attribute writer method checking allowed values (enum).
447
+ # @param [Object] number_bathrooms Object to be assigned
448
+ def number_bathrooms=(number_bathrooms)
449
+ validator = EnumAttributeValidator.new('Float', [0, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6, 6.5, 7, 7.5, 8, 8.5, 9, 9.5, 10])
450
+ unless validator.valid?(number_bathrooms)
451
+ fail ArgumentError, "invalid value #{ number_bathrooms.inspect } for \"number_bathrooms\", must be one of #{validator.allowable_values}."
452
+ end
453
+ @number_bathrooms = number_bathrooms
454
+ end
455
+
456
+ # Custom attribute writer method with validation
457
+ # @param [Object] number_bedrooms Value to be assigned
458
+ def number_bedrooms=(number_bedrooms)
459
+ if !number_bedrooms.nil? && number_bedrooms > 20
460
+ fail ArgumentError, 'invalid value for "number_bedrooms", must be smaller than or equal to 20.'
461
+ end
462
+
463
+ if !number_bedrooms.nil? && number_bedrooms < 0
464
+ fail ArgumentError, 'invalid value for "number_bedrooms", must be greater than or equal to 0.'
465
+ end
466
+
467
+ @number_bedrooms = number_bedrooms
468
+ end
469
+
470
+ # Custom attribute writer method checking allowed values (enum).
471
+ # @param [Object] reason_for_property_lost Object to be assigned
472
+ def reason_for_property_lost=(reason_for_property_lost)
473
+ validator = EnumAttributeValidator.new('String', ["EMPTY", "ABANDONED", "FORECLOSURE", "MGR_RETURNED_TO_OWNER", "OTB_AS_FRBO", "OWNER_MOVED_BACK", "REFERRED_TO_SALES", "REFERRED_TO_SALES_OR_SOLD"])
474
+ unless validator.valid?(reason_for_property_lost)
475
+ fail ArgumentError, "invalid value #{ reason_for_property_lost.inspect } for \"reason_for_property_lost\", must be one of #{validator.allowable_values}."
476
+ end
477
+ @reason_for_property_lost = reason_for_property_lost
478
+ end
479
+
480
+ # Custom attribute writer method with validation
481
+ # @param [Object] search_tag Value to be assigned
482
+ def search_tag=(search_tag)
483
+ if !search_tag.nil? && search_tag.to_s.length > 25
484
+ fail ArgumentError, 'invalid value for "search_tag", the character length must be smaller than or equal to 25.'
485
+ end
486
+
487
+ if !search_tag.nil? && search_tag.to_s.length < 0
488
+ fail ArgumentError, 'invalid value for "search_tag", the character length must be great than or equal to 0.'
489
+ end
490
+
491
+ @search_tag = search_tag
492
+ end
493
+
494
+ # Custom attribute writer method checking allowed values (enum).
495
+ # @param [Object] target_rent_units Object to be assigned
496
+ def target_rent_units=(target_rent_units)
497
+ validator = EnumAttributeValidator.new('String', ["DOLLAR_PER_SQ_FT_MONTH", "DOLLAR_PER_SQ_FT_YEAR", "DOLLAR_PER_SQ_M_MONTH", "DOLLAR_PER_SQ_M_YEAR", "DOLLAR_PER_MONTH", "DOLLAR_PER_WEEK", "DOLLAR_PER_NIGHT"])
498
+ unless validator.valid?(target_rent_units)
499
+ fail ArgumentError, "invalid value #{ target_rent_units.inspect } for \"target_rent_units\", must be one of #{validator.allowable_values}."
500
+ end
501
+ @target_rent_units = target_rent_units
502
+ end
503
+
332
504
  # Checks equality by comparing each attribute.
333
505
  # @param [Object] Object to be compared
334
506
  def ==(o)
@@ -346,7 +518,6 @@ module Propertyware
346
518
  neighborhood == o.neighborhood &&
347
519
  number_bathrooms == o.number_bathrooms &&
348
520
  number_bedrooms == o.number_bedrooms &&
349
- other_unit_country == o.other_unit_country &&
350
521
  portfolio_id == o.portfolio_id &&
351
522
  ready == o.ready &&
352
523
  reason_for_property_lost == o.reason_for_property_lost &&
@@ -354,6 +525,7 @@ module Propertyware
354
525
  search_tag == o.search_tag &&
355
526
  target_deposit == o.target_deposit &&
356
527
  target_rent == o.target_rent &&
528
+ target_rent_units == o.target_rent_units &&
357
529
  total_area == o.total_area &&
358
530
  type == o.type
359
531
  end
@@ -367,7 +539,7 @@ module Propertyware
367
539
  # Calculates hash code according to all attributes.
368
540
  # @return [Integer] Hash code
369
541
  def hash
370
- [abbreviation, address, available_date, building_id, category, county, description, floor_number, name, neighborhood, number_bathrooms, number_bedrooms, other_unit_country, portfolio_id, ready, reason_for_property_lost, residential, search_tag, target_deposit, target_rent, total_area, type].hash
542
+ [abbreviation, address, available_date, building_id, category, county, description, floor_number, name, neighborhood, number_bathrooms, number_bedrooms, portfolio_id, ready, reason_for_property_lost, residential, search_tag, target_deposit, target_rent, target_rent_units, total_area, type].hash
371
543
  end
372
544
 
373
545
  # Builds the object from hash