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