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
@@ -0,0 +1,1037 @@
|
|
1
|
+
# Propertyware::BuildingsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.propertyware.com/pw/api/rest/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create_building**](BuildingsApi.md#create_building) | **POST** /buildings | Create a building (BETA) |
|
8
|
+
| [**create_contacts**](BuildingsApi.md#create_contacts) | **POST** /buildings/bulk | Create buildings in bulk (BETA) |
|
9
|
+
| [**delete_building**](BuildingsApi.md#delete_building) | **DELETE** /buildings/{buildingID} | Delete a building (BETA) |
|
10
|
+
| [**delete_building_conversation**](BuildingsApi.md#delete_building_conversation) | **DELETE** /buildings/{buildingID}/conversations/{conversationID} | Delete a building conversation (BETA) |
|
11
|
+
| [**get_building**](BuildingsApi.md#get_building) | **GET** /buildings/{buildingID} | Retrieve a building |
|
12
|
+
| [**get_building_conversation**](BuildingsApi.md#get_building_conversation) | **GET** /buildings/{buildingID}/conversations/{conversationID} | Retrieve a building conversation |
|
13
|
+
| [**get_building_conversations**](BuildingsApi.md#get_building_conversations) | **GET** /buildings/{buildingID}/conversations | Retrieve all building conversations |
|
14
|
+
| [**get_building_management_fee**](BuildingsApi.md#get_building_management_fee) | **GET** /buildings/{buildingID}/managementfees | Retrieve all building management fees (BETA) |
|
15
|
+
| [**get_building_managers**](BuildingsApi.md#get_building_managers) | **GET** /buildings/{buildingID}/managers | Retrieve all building property managers |
|
16
|
+
| [**get_building_notes**](BuildingsApi.md#get_building_notes) | **GET** /buildings/{buildingID}/notes | Retrieve all building notes |
|
17
|
+
| [**get_buildings**](BuildingsApi.md#get_buildings) | **GET** /buildings | Retrieve all buildings |
|
18
|
+
| [**update_building**](BuildingsApi.md#update_building) | **PUT** /buildings/{buildingID} | Update a building (BETA) |
|
19
|
+
|
20
|
+
|
21
|
+
## create_building
|
22
|
+
|
23
|
+
> <Building> create_building(save_building)
|
24
|
+
|
25
|
+
Create a building (BETA)
|
26
|
+
|
27
|
+
<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 building.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">BUILDINGS</span> - <code>Write</code>
|
28
|
+
|
29
|
+
### Examples
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
require 'time'
|
33
|
+
require 'propertyware'
|
34
|
+
# setup authorization
|
35
|
+
Propertyware.configure do |config|
|
36
|
+
# Configure API key authorization: organizationId
|
37
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
38
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
39
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
40
|
+
|
41
|
+
# Configure API key authorization: clientId
|
42
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
43
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
44
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
45
|
+
|
46
|
+
# Configure API key authorization: clientSecret
|
47
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
48
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
49
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
50
|
+
end
|
51
|
+
|
52
|
+
api_instance = Propertyware::BuildingsApi.new
|
53
|
+
save_building = Propertyware::SaveBuilding.new({abbreviation: 'abbreviation_example', category: 'RESIDENTIAL', count_unit: 37, name: 'name_example', portfolio_id: 3.56, property_type: 'NONE', type: 'type_example'}) # SaveBuilding | saveBuilding
|
54
|
+
|
55
|
+
begin
|
56
|
+
# Create a building (BETA)
|
57
|
+
result = api_instance.create_building(save_building)
|
58
|
+
p result
|
59
|
+
rescue Propertyware::ApiError => e
|
60
|
+
puts "Error when calling BuildingsApi->create_building: #{e}"
|
61
|
+
end
|
62
|
+
```
|
63
|
+
|
64
|
+
#### Using the create_building_with_http_info variant
|
65
|
+
|
66
|
+
This returns an Array which contains the response data, status code and headers.
|
67
|
+
|
68
|
+
> <Array(<Building>, Integer, Hash)> create_building_with_http_info(save_building)
|
69
|
+
|
70
|
+
```ruby
|
71
|
+
begin
|
72
|
+
# Create a building (BETA)
|
73
|
+
data, status_code, headers = api_instance.create_building_with_http_info(save_building)
|
74
|
+
p status_code # => 2xx
|
75
|
+
p headers # => { ... }
|
76
|
+
p data # => <Building>
|
77
|
+
rescue Propertyware::ApiError => e
|
78
|
+
puts "Error when calling BuildingsApi->create_building_with_http_info: #{e}"
|
79
|
+
end
|
80
|
+
```
|
81
|
+
|
82
|
+
### Parameters
|
83
|
+
|
84
|
+
| Name | Type | Description | Notes |
|
85
|
+
| ---- | ---- | ----------- | ----- |
|
86
|
+
| **save_building** | [**SaveBuilding**](SaveBuilding.md) | saveBuilding | |
|
87
|
+
|
88
|
+
### Return type
|
89
|
+
|
90
|
+
[**Building**](Building.md)
|
91
|
+
|
92
|
+
### Authorization
|
93
|
+
|
94
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
95
|
+
|
96
|
+
### HTTP request headers
|
97
|
+
|
98
|
+
- **Content-Type**: application/json
|
99
|
+
- **Accept**: application/json
|
100
|
+
|
101
|
+
|
102
|
+
## create_contacts
|
103
|
+
|
104
|
+
> <Array<RESTAPIBulkSuccessResponse>> create_contacts(save_building)
|
105
|
+
|
106
|
+
Create buildings in bulk (BETA)
|
107
|
+
|
108
|
+
<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 buildings in bulk.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">BUILDINGS</span> - <code>Write</code>
|
109
|
+
|
110
|
+
### Examples
|
111
|
+
|
112
|
+
```ruby
|
113
|
+
require 'time'
|
114
|
+
require 'propertyware'
|
115
|
+
# setup authorization
|
116
|
+
Propertyware.configure do |config|
|
117
|
+
# Configure API key authorization: organizationId
|
118
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
119
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
120
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
121
|
+
|
122
|
+
# Configure API key authorization: clientId
|
123
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
124
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
125
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
126
|
+
|
127
|
+
# Configure API key authorization: clientSecret
|
128
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
129
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
130
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
131
|
+
end
|
132
|
+
|
133
|
+
api_instance = Propertyware::BuildingsApi.new
|
134
|
+
save_building = [Propertyware::SaveBuilding.new({abbreviation: 'abbreviation_example', category: 'RESIDENTIAL', count_unit: 37, name: 'name_example', portfolio_id: 3.56, property_type: 'NONE', type: 'type_example'})] # Array<SaveBuilding> | saveBuilding
|
135
|
+
|
136
|
+
begin
|
137
|
+
# Create buildings in bulk (BETA)
|
138
|
+
result = api_instance.create_contacts(save_building)
|
139
|
+
p result
|
140
|
+
rescue Propertyware::ApiError => e
|
141
|
+
puts "Error when calling BuildingsApi->create_contacts: #{e}"
|
142
|
+
end
|
143
|
+
```
|
144
|
+
|
145
|
+
#### Using the create_contacts_with_http_info variant
|
146
|
+
|
147
|
+
This returns an Array which contains the response data, status code and headers.
|
148
|
+
|
149
|
+
> <Array(<Array<RESTAPIBulkSuccessResponse>>, Integer, Hash)> create_contacts_with_http_info(save_building)
|
150
|
+
|
151
|
+
```ruby
|
152
|
+
begin
|
153
|
+
# Create buildings in bulk (BETA)
|
154
|
+
data, status_code, headers = api_instance.create_contacts_with_http_info(save_building)
|
155
|
+
p status_code # => 2xx
|
156
|
+
p headers # => { ... }
|
157
|
+
p data # => <Array<RESTAPIBulkSuccessResponse>>
|
158
|
+
rescue Propertyware::ApiError => e
|
159
|
+
puts "Error when calling BuildingsApi->create_contacts_with_http_info: #{e}"
|
160
|
+
end
|
161
|
+
```
|
162
|
+
|
163
|
+
### Parameters
|
164
|
+
|
165
|
+
| Name | Type | Description | Notes |
|
166
|
+
| ---- | ---- | ----------- | ----- |
|
167
|
+
| **save_building** | [**Array<SaveBuilding>**](SaveBuilding.md) | saveBuilding | |
|
168
|
+
|
169
|
+
### Return type
|
170
|
+
|
171
|
+
[**Array<RESTAPIBulkSuccessResponse>**](RESTAPIBulkSuccessResponse.md)
|
172
|
+
|
173
|
+
### Authorization
|
174
|
+
|
175
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
176
|
+
|
177
|
+
### HTTP request headers
|
178
|
+
|
179
|
+
- **Content-Type**: application/json
|
180
|
+
- **Accept**: application/json
|
181
|
+
|
182
|
+
|
183
|
+
## delete_building
|
184
|
+
|
185
|
+
> <ResponseEntity> delete_building(building_id)
|
186
|
+
|
187
|
+
Delete a building (BETA)
|
188
|
+
|
189
|
+
<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> Delete a building.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">BUILDINGS</span> - <code>Delete</code>
|
190
|
+
|
191
|
+
### Examples
|
192
|
+
|
193
|
+
```ruby
|
194
|
+
require 'time'
|
195
|
+
require 'propertyware'
|
196
|
+
# setup authorization
|
197
|
+
Propertyware.configure do |config|
|
198
|
+
# Configure API key authorization: organizationId
|
199
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
200
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
201
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
202
|
+
|
203
|
+
# Configure API key authorization: clientId
|
204
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
205
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
206
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
207
|
+
|
208
|
+
# Configure API key authorization: clientSecret
|
209
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
210
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
211
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
212
|
+
end
|
213
|
+
|
214
|
+
api_instance = Propertyware::BuildingsApi.new
|
215
|
+
building_id = 789 # Integer | Building ID
|
216
|
+
|
217
|
+
begin
|
218
|
+
# Delete a building (BETA)
|
219
|
+
result = api_instance.delete_building(building_id)
|
220
|
+
p result
|
221
|
+
rescue Propertyware::ApiError => e
|
222
|
+
puts "Error when calling BuildingsApi->delete_building: #{e}"
|
223
|
+
end
|
224
|
+
```
|
225
|
+
|
226
|
+
#### Using the delete_building_with_http_info variant
|
227
|
+
|
228
|
+
This returns an Array which contains the response data, status code and headers.
|
229
|
+
|
230
|
+
> <Array(<ResponseEntity>, Integer, Hash)> delete_building_with_http_info(building_id)
|
231
|
+
|
232
|
+
```ruby
|
233
|
+
begin
|
234
|
+
# Delete a building (BETA)
|
235
|
+
data, status_code, headers = api_instance.delete_building_with_http_info(building_id)
|
236
|
+
p status_code # => 2xx
|
237
|
+
p headers # => { ... }
|
238
|
+
p data # => <ResponseEntity>
|
239
|
+
rescue Propertyware::ApiError => e
|
240
|
+
puts "Error when calling BuildingsApi->delete_building_with_http_info: #{e}"
|
241
|
+
end
|
242
|
+
```
|
243
|
+
|
244
|
+
### Parameters
|
245
|
+
|
246
|
+
| Name | Type | Description | Notes |
|
247
|
+
| ---- | ---- | ----------- | ----- |
|
248
|
+
| **building_id** | **Integer** | Building ID | |
|
249
|
+
|
250
|
+
### Return type
|
251
|
+
|
252
|
+
[**ResponseEntity**](ResponseEntity.md)
|
253
|
+
|
254
|
+
### Authorization
|
255
|
+
|
256
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
257
|
+
|
258
|
+
### HTTP request headers
|
259
|
+
|
260
|
+
- **Content-Type**: Not defined
|
261
|
+
- **Accept**: */*
|
262
|
+
|
263
|
+
|
264
|
+
## delete_building_conversation
|
265
|
+
|
266
|
+
> <ResponseEntity> delete_building_conversation(building_id, conversation_id)
|
267
|
+
|
268
|
+
Delete a building conversation (BETA)
|
269
|
+
|
270
|
+
<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 building conversation.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">BUILDINGS</span> - <code>Delete</code>
|
271
|
+
|
272
|
+
### Examples
|
273
|
+
|
274
|
+
```ruby
|
275
|
+
require 'time'
|
276
|
+
require 'propertyware'
|
277
|
+
# setup authorization
|
278
|
+
Propertyware.configure do |config|
|
279
|
+
# Configure API key authorization: organizationId
|
280
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
281
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
282
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
283
|
+
|
284
|
+
# Configure API key authorization: clientId
|
285
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
286
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
287
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
288
|
+
|
289
|
+
# Configure API key authorization: clientSecret
|
290
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
291
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
292
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
293
|
+
end
|
294
|
+
|
295
|
+
api_instance = Propertyware::BuildingsApi.new
|
296
|
+
building_id = 789 # Integer | Building ID
|
297
|
+
conversation_id = 789 # Integer | Conversation ID
|
298
|
+
|
299
|
+
begin
|
300
|
+
# Delete a building conversation (BETA)
|
301
|
+
result = api_instance.delete_building_conversation(building_id, conversation_id)
|
302
|
+
p result
|
303
|
+
rescue Propertyware::ApiError => e
|
304
|
+
puts "Error when calling BuildingsApi->delete_building_conversation: #{e}"
|
305
|
+
end
|
306
|
+
```
|
307
|
+
|
308
|
+
#### Using the delete_building_conversation_with_http_info variant
|
309
|
+
|
310
|
+
This returns an Array which contains the response data, status code and headers.
|
311
|
+
|
312
|
+
> <Array(<ResponseEntity>, Integer, Hash)> delete_building_conversation_with_http_info(building_id, conversation_id)
|
313
|
+
|
314
|
+
```ruby
|
315
|
+
begin
|
316
|
+
# Delete a building conversation (BETA)
|
317
|
+
data, status_code, headers = api_instance.delete_building_conversation_with_http_info(building_id, conversation_id)
|
318
|
+
p status_code # => 2xx
|
319
|
+
p headers # => { ... }
|
320
|
+
p data # => <ResponseEntity>
|
321
|
+
rescue Propertyware::ApiError => e
|
322
|
+
puts "Error when calling BuildingsApi->delete_building_conversation_with_http_info: #{e}"
|
323
|
+
end
|
324
|
+
```
|
325
|
+
|
326
|
+
### Parameters
|
327
|
+
|
328
|
+
| Name | Type | Description | Notes |
|
329
|
+
| ---- | ---- | ----------- | ----- |
|
330
|
+
| **building_id** | **Integer** | Building ID | |
|
331
|
+
| **conversation_id** | **Integer** | Conversation ID | |
|
332
|
+
|
333
|
+
### Return type
|
334
|
+
|
335
|
+
[**ResponseEntity**](ResponseEntity.md)
|
336
|
+
|
337
|
+
### Authorization
|
338
|
+
|
339
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
340
|
+
|
341
|
+
### HTTP request headers
|
342
|
+
|
343
|
+
- **Content-Type**: Not defined
|
344
|
+
- **Accept**: application/json
|
345
|
+
|
346
|
+
|
347
|
+
## get_building
|
348
|
+
|
349
|
+
> <Building> get_building(building_id, opts)
|
350
|
+
|
351
|
+
Retrieve a building
|
352
|
+
|
353
|
+
Retrieves a specific building.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">BUILDINGS</span> - <code>Read</code>
|
354
|
+
|
355
|
+
### Examples
|
356
|
+
|
357
|
+
```ruby
|
358
|
+
require 'time'
|
359
|
+
require 'propertyware'
|
360
|
+
# setup authorization
|
361
|
+
Propertyware.configure do |config|
|
362
|
+
# Configure API key authorization: organizationId
|
363
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
364
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
365
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
366
|
+
|
367
|
+
# Configure API key authorization: clientId
|
368
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
369
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
370
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
371
|
+
|
372
|
+
# Configure API key authorization: clientSecret
|
373
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
374
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
375
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
376
|
+
end
|
377
|
+
|
378
|
+
api_instance = Propertyware::BuildingsApi.new
|
379
|
+
building_id = 789 # Integer | Building ID
|
380
|
+
opts = {
|
381
|
+
include_custom_fields: true # Boolean | Include custom fields in the response.
|
382
|
+
}
|
383
|
+
|
384
|
+
begin
|
385
|
+
# Retrieve a building
|
386
|
+
result = api_instance.get_building(building_id, opts)
|
387
|
+
p result
|
388
|
+
rescue Propertyware::ApiError => e
|
389
|
+
puts "Error when calling BuildingsApi->get_building: #{e}"
|
390
|
+
end
|
391
|
+
```
|
392
|
+
|
393
|
+
#### Using the get_building_with_http_info variant
|
394
|
+
|
395
|
+
This returns an Array which contains the response data, status code and headers.
|
396
|
+
|
397
|
+
> <Array(<Building>, Integer, Hash)> get_building_with_http_info(building_id, opts)
|
398
|
+
|
399
|
+
```ruby
|
400
|
+
begin
|
401
|
+
# Retrieve a building
|
402
|
+
data, status_code, headers = api_instance.get_building_with_http_info(building_id, opts)
|
403
|
+
p status_code # => 2xx
|
404
|
+
p headers # => { ... }
|
405
|
+
p data # => <Building>
|
406
|
+
rescue Propertyware::ApiError => e
|
407
|
+
puts "Error when calling BuildingsApi->get_building_with_http_info: #{e}"
|
408
|
+
end
|
409
|
+
```
|
410
|
+
|
411
|
+
### Parameters
|
412
|
+
|
413
|
+
| Name | Type | Description | Notes |
|
414
|
+
| ---- | ---- | ----------- | ----- |
|
415
|
+
| **building_id** | **Integer** | Building ID | |
|
416
|
+
| **include_custom_fields** | **Boolean** | Include custom fields in the response. | [optional][default to true] |
|
417
|
+
|
418
|
+
### Return type
|
419
|
+
|
420
|
+
[**Building**](Building.md)
|
421
|
+
|
422
|
+
### Authorization
|
423
|
+
|
424
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
425
|
+
|
426
|
+
### HTTP request headers
|
427
|
+
|
428
|
+
- **Content-Type**: Not defined
|
429
|
+
- **Accept**: application/json
|
430
|
+
|
431
|
+
|
432
|
+
## get_building_conversation
|
433
|
+
|
434
|
+
> <Conversation> get_building_conversation(building_id, conversation_id)
|
435
|
+
|
436
|
+
Retrieve a building conversation
|
437
|
+
|
438
|
+
Retrieves a specific building conversation.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">BUILDINGS</span> - <code>Read</code>
|
439
|
+
|
440
|
+
### Examples
|
441
|
+
|
442
|
+
```ruby
|
443
|
+
require 'time'
|
444
|
+
require 'propertyware'
|
445
|
+
# setup authorization
|
446
|
+
Propertyware.configure do |config|
|
447
|
+
# Configure API key authorization: organizationId
|
448
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
449
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
450
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
451
|
+
|
452
|
+
# Configure API key authorization: clientId
|
453
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
454
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
455
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
456
|
+
|
457
|
+
# Configure API key authorization: clientSecret
|
458
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
459
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
460
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
461
|
+
end
|
462
|
+
|
463
|
+
api_instance = Propertyware::BuildingsApi.new
|
464
|
+
building_id = 789 # Integer | Building ID
|
465
|
+
conversation_id = 789 # Integer | Conversation ID
|
466
|
+
|
467
|
+
begin
|
468
|
+
# Retrieve a building conversation
|
469
|
+
result = api_instance.get_building_conversation(building_id, conversation_id)
|
470
|
+
p result
|
471
|
+
rescue Propertyware::ApiError => e
|
472
|
+
puts "Error when calling BuildingsApi->get_building_conversation: #{e}"
|
473
|
+
end
|
474
|
+
```
|
475
|
+
|
476
|
+
#### Using the get_building_conversation_with_http_info variant
|
477
|
+
|
478
|
+
This returns an Array which contains the response data, status code and headers.
|
479
|
+
|
480
|
+
> <Array(<Conversation>, Integer, Hash)> get_building_conversation_with_http_info(building_id, conversation_id)
|
481
|
+
|
482
|
+
```ruby
|
483
|
+
begin
|
484
|
+
# Retrieve a building conversation
|
485
|
+
data, status_code, headers = api_instance.get_building_conversation_with_http_info(building_id, conversation_id)
|
486
|
+
p status_code # => 2xx
|
487
|
+
p headers # => { ... }
|
488
|
+
p data # => <Conversation>
|
489
|
+
rescue Propertyware::ApiError => e
|
490
|
+
puts "Error when calling BuildingsApi->get_building_conversation_with_http_info: #{e}"
|
491
|
+
end
|
492
|
+
```
|
493
|
+
|
494
|
+
### Parameters
|
495
|
+
|
496
|
+
| Name | Type | Description | Notes |
|
497
|
+
| ---- | ---- | ----------- | ----- |
|
498
|
+
| **building_id** | **Integer** | Building ID | |
|
499
|
+
| **conversation_id** | **Integer** | Conversation ID | |
|
500
|
+
|
501
|
+
### Return type
|
502
|
+
|
503
|
+
[**Conversation**](Conversation.md)
|
504
|
+
|
505
|
+
### Authorization
|
506
|
+
|
507
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
508
|
+
|
509
|
+
### HTTP request headers
|
510
|
+
|
511
|
+
- **Content-Type**: Not defined
|
512
|
+
- **Accept**: application/json
|
513
|
+
|
514
|
+
|
515
|
+
## get_building_conversations
|
516
|
+
|
517
|
+
> <Array<Conversation>> get_building_conversations(building_id, opts)
|
518
|
+
|
519
|
+
Retrieve all building conversations
|
520
|
+
|
521
|
+
Retrieves all the conversations of a building.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">BUILDINGS</span> - <code>Read</code> <br/><br/><b>Sortable by:</b> <code>createddate</code>, <code>lastmodifieddatetime</code>, <code>id</code>
|
522
|
+
|
523
|
+
### Examples
|
524
|
+
|
525
|
+
```ruby
|
526
|
+
require 'time'
|
527
|
+
require 'propertyware'
|
528
|
+
# setup authorization
|
529
|
+
Propertyware.configure do |config|
|
530
|
+
# Configure API key authorization: organizationId
|
531
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
532
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
533
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
534
|
+
|
535
|
+
# Configure API key authorization: clientId
|
536
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
537
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
538
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
539
|
+
|
540
|
+
# Configure API key authorization: clientSecret
|
541
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
542
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
543
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
544
|
+
end
|
545
|
+
|
546
|
+
api_instance = Propertyware::BuildingsApi.new
|
547
|
+
building_id = 789 # Integer | Building ID
|
548
|
+
opts = {
|
549
|
+
offset: 56, # Integer | `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0.
|
550
|
+
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.
|
551
|
+
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.
|
552
|
+
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.
|
553
|
+
orderby: 'orderby_example', # String | Indicates the field(s) and direction to sort the results in the response.
|
554
|
+
type: 'MANAGEMENT_TEAM' # String | Filters results by the conversation type.
|
555
|
+
}
|
556
|
+
|
557
|
+
begin
|
558
|
+
# Retrieve all building conversations
|
559
|
+
result = api_instance.get_building_conversations(building_id, opts)
|
560
|
+
p result
|
561
|
+
rescue Propertyware::ApiError => e
|
562
|
+
puts "Error when calling BuildingsApi->get_building_conversations: #{e}"
|
563
|
+
end
|
564
|
+
```
|
565
|
+
|
566
|
+
#### Using the get_building_conversations_with_http_info variant
|
567
|
+
|
568
|
+
This returns an Array which contains the response data, status code and headers.
|
569
|
+
|
570
|
+
> <Array(<Array<Conversation>>, Integer, Hash)> get_building_conversations_with_http_info(building_id, opts)
|
571
|
+
|
572
|
+
```ruby
|
573
|
+
begin
|
574
|
+
# Retrieve all building conversations
|
575
|
+
data, status_code, headers = api_instance.get_building_conversations_with_http_info(building_id, opts)
|
576
|
+
p status_code # => 2xx
|
577
|
+
p headers # => { ... }
|
578
|
+
p data # => <Array<Conversation>>
|
579
|
+
rescue Propertyware::ApiError => e
|
580
|
+
puts "Error when calling BuildingsApi->get_building_conversations_with_http_info: #{e}"
|
581
|
+
end
|
582
|
+
```
|
583
|
+
|
584
|
+
### Parameters
|
585
|
+
|
586
|
+
| Name | Type | Description | Notes |
|
587
|
+
| ---- | ---- | ----------- | ----- |
|
588
|
+
| **building_id** | **Integer** | Building ID | |
|
589
|
+
| **offset** | **Integer** | `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0. | [optional] |
|
590
|
+
| **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] |
|
591
|
+
| **last_modified_date_time_start** | **Time** | Filters results to any item modified on or after the date time specified. | [optional] |
|
592
|
+
| **last_modified_date_time_end** | **Time** | Filters results to any item modified on or prior to the date time specified. | [optional] |
|
593
|
+
| **orderby** | **String** | Indicates the field(s) and direction to sort the results in the response. | [optional] |
|
594
|
+
| **type** | **String** | Filters results by the conversation type. | [optional] |
|
595
|
+
|
596
|
+
### Return type
|
597
|
+
|
598
|
+
[**Array<Conversation>**](Conversation.md)
|
599
|
+
|
600
|
+
### Authorization
|
601
|
+
|
602
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
603
|
+
|
604
|
+
### HTTP request headers
|
605
|
+
|
606
|
+
- **Content-Type**: Not defined
|
607
|
+
- **Accept**: application/json
|
608
|
+
|
609
|
+
|
610
|
+
## get_building_management_fee
|
611
|
+
|
612
|
+
> <Array<ManagementFee>> get_building_management_fee(building_id)
|
613
|
+
|
614
|
+
Retrieve all building management fees (BETA)
|
615
|
+
|
616
|
+
<p class=\"betaWarning\"><b>Note: </b>This operation is still in beta and might be subject to breaking changes. Production integrations should be avoided at this stage.</p> Retrieves all the management fee rules of a building.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">BUILDINGS</span> - <code>Read</code>
|
617
|
+
|
618
|
+
### Examples
|
619
|
+
|
620
|
+
```ruby
|
621
|
+
require 'time'
|
622
|
+
require 'propertyware'
|
623
|
+
# setup authorization
|
624
|
+
Propertyware.configure do |config|
|
625
|
+
# Configure API key authorization: organizationId
|
626
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
627
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
628
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
629
|
+
|
630
|
+
# Configure API key authorization: clientId
|
631
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
632
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
633
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
634
|
+
|
635
|
+
# Configure API key authorization: clientSecret
|
636
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
637
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
638
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
639
|
+
end
|
640
|
+
|
641
|
+
api_instance = Propertyware::BuildingsApi.new
|
642
|
+
building_id = 789 # Integer | Building ID
|
643
|
+
|
644
|
+
begin
|
645
|
+
# Retrieve all building management fees (BETA)
|
646
|
+
result = api_instance.get_building_management_fee(building_id)
|
647
|
+
p result
|
648
|
+
rescue Propertyware::ApiError => e
|
649
|
+
puts "Error when calling BuildingsApi->get_building_management_fee: #{e}"
|
650
|
+
end
|
651
|
+
```
|
652
|
+
|
653
|
+
#### Using the get_building_management_fee_with_http_info variant
|
654
|
+
|
655
|
+
This returns an Array which contains the response data, status code and headers.
|
656
|
+
|
657
|
+
> <Array(<Array<ManagementFee>>, Integer, Hash)> get_building_management_fee_with_http_info(building_id)
|
658
|
+
|
659
|
+
```ruby
|
660
|
+
begin
|
661
|
+
# Retrieve all building management fees (BETA)
|
662
|
+
data, status_code, headers = api_instance.get_building_management_fee_with_http_info(building_id)
|
663
|
+
p status_code # => 2xx
|
664
|
+
p headers # => { ... }
|
665
|
+
p data # => <Array<ManagementFee>>
|
666
|
+
rescue Propertyware::ApiError => e
|
667
|
+
puts "Error when calling BuildingsApi->get_building_management_fee_with_http_info: #{e}"
|
668
|
+
end
|
669
|
+
```
|
670
|
+
|
671
|
+
### Parameters
|
672
|
+
|
673
|
+
| Name | Type | Description | Notes |
|
674
|
+
| ---- | ---- | ----------- | ----- |
|
675
|
+
| **building_id** | **Integer** | Building ID | |
|
676
|
+
|
677
|
+
### Return type
|
678
|
+
|
679
|
+
[**Array<ManagementFee>**](ManagementFee.md)
|
680
|
+
|
681
|
+
### Authorization
|
682
|
+
|
683
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
684
|
+
|
685
|
+
### HTTP request headers
|
686
|
+
|
687
|
+
- **Content-Type**: Not defined
|
688
|
+
- **Accept**: application/json
|
689
|
+
|
690
|
+
|
691
|
+
## get_building_managers
|
692
|
+
|
693
|
+
> <Array<PropertyManager>> get_building_managers(building_id)
|
694
|
+
|
695
|
+
Retrieve all building property managers
|
696
|
+
|
697
|
+
Retrieves all the property managers of a building.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">BUILDINGS</span> - <code>Read</code>
|
698
|
+
|
699
|
+
### Examples
|
700
|
+
|
701
|
+
```ruby
|
702
|
+
require 'time'
|
703
|
+
require 'propertyware'
|
704
|
+
# setup authorization
|
705
|
+
Propertyware.configure do |config|
|
706
|
+
# Configure API key authorization: organizationId
|
707
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
708
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
709
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
710
|
+
|
711
|
+
# Configure API key authorization: clientId
|
712
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
713
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
714
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
715
|
+
|
716
|
+
# Configure API key authorization: clientSecret
|
717
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
718
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
719
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
720
|
+
end
|
721
|
+
|
722
|
+
api_instance = Propertyware::BuildingsApi.new
|
723
|
+
building_id = 789 # Integer | Building ID
|
724
|
+
|
725
|
+
begin
|
726
|
+
# Retrieve all building property managers
|
727
|
+
result = api_instance.get_building_managers(building_id)
|
728
|
+
p result
|
729
|
+
rescue Propertyware::ApiError => e
|
730
|
+
puts "Error when calling BuildingsApi->get_building_managers: #{e}"
|
731
|
+
end
|
732
|
+
```
|
733
|
+
|
734
|
+
#### Using the get_building_managers_with_http_info variant
|
735
|
+
|
736
|
+
This returns an Array which contains the response data, status code and headers.
|
737
|
+
|
738
|
+
> <Array(<Array<PropertyManager>>, Integer, Hash)> get_building_managers_with_http_info(building_id)
|
739
|
+
|
740
|
+
```ruby
|
741
|
+
begin
|
742
|
+
# Retrieve all building property managers
|
743
|
+
data, status_code, headers = api_instance.get_building_managers_with_http_info(building_id)
|
744
|
+
p status_code # => 2xx
|
745
|
+
p headers # => { ... }
|
746
|
+
p data # => <Array<PropertyManager>>
|
747
|
+
rescue Propertyware::ApiError => e
|
748
|
+
puts "Error when calling BuildingsApi->get_building_managers_with_http_info: #{e}"
|
749
|
+
end
|
750
|
+
```
|
751
|
+
|
752
|
+
### Parameters
|
753
|
+
|
754
|
+
| Name | Type | Description | Notes |
|
755
|
+
| ---- | ---- | ----------- | ----- |
|
756
|
+
| **building_id** | **Integer** | Building ID | |
|
757
|
+
|
758
|
+
### Return type
|
759
|
+
|
760
|
+
[**Array<PropertyManager>**](PropertyManager.md)
|
761
|
+
|
762
|
+
### Authorization
|
763
|
+
|
764
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
765
|
+
|
766
|
+
### HTTP request headers
|
767
|
+
|
768
|
+
- **Content-Type**: Not defined
|
769
|
+
- **Accept**: application/json
|
770
|
+
|
771
|
+
|
772
|
+
## get_building_notes
|
773
|
+
|
774
|
+
> <Array<Note>> get_building_notes(building_id)
|
775
|
+
|
776
|
+
Retrieve all building notes
|
777
|
+
|
778
|
+
Retrieves all the notes of a building.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">BUILDINGS</span> - <code>Read</code>
|
779
|
+
|
780
|
+
### Examples
|
781
|
+
|
782
|
+
```ruby
|
783
|
+
require 'time'
|
784
|
+
require 'propertyware'
|
785
|
+
# setup authorization
|
786
|
+
Propertyware.configure do |config|
|
787
|
+
# Configure API key authorization: organizationId
|
788
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
789
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
790
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
791
|
+
|
792
|
+
# Configure API key authorization: clientId
|
793
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
794
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
795
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
796
|
+
|
797
|
+
# Configure API key authorization: clientSecret
|
798
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
799
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
800
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
801
|
+
end
|
802
|
+
|
803
|
+
api_instance = Propertyware::BuildingsApi.new
|
804
|
+
building_id = 789 # Integer | Building ID
|
805
|
+
|
806
|
+
begin
|
807
|
+
# Retrieve all building notes
|
808
|
+
result = api_instance.get_building_notes(building_id)
|
809
|
+
p result
|
810
|
+
rescue Propertyware::ApiError => e
|
811
|
+
puts "Error when calling BuildingsApi->get_building_notes: #{e}"
|
812
|
+
end
|
813
|
+
```
|
814
|
+
|
815
|
+
#### Using the get_building_notes_with_http_info variant
|
816
|
+
|
817
|
+
This returns an Array which contains the response data, status code and headers.
|
818
|
+
|
819
|
+
> <Array(<Array<Note>>, Integer, Hash)> get_building_notes_with_http_info(building_id)
|
820
|
+
|
821
|
+
```ruby
|
822
|
+
begin
|
823
|
+
# Retrieve all building notes
|
824
|
+
data, status_code, headers = api_instance.get_building_notes_with_http_info(building_id)
|
825
|
+
p status_code # => 2xx
|
826
|
+
p headers # => { ... }
|
827
|
+
p data # => <Array<Note>>
|
828
|
+
rescue Propertyware::ApiError => e
|
829
|
+
puts "Error when calling BuildingsApi->get_building_notes_with_http_info: #{e}"
|
830
|
+
end
|
831
|
+
```
|
832
|
+
|
833
|
+
### Parameters
|
834
|
+
|
835
|
+
| Name | Type | Description | Notes |
|
836
|
+
| ---- | ---- | ----------- | ----- |
|
837
|
+
| **building_id** | **Integer** | Building ID | |
|
838
|
+
|
839
|
+
### Return type
|
840
|
+
|
841
|
+
[**Array<Note>**](Note.md)
|
842
|
+
|
843
|
+
### Authorization
|
844
|
+
|
845
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
846
|
+
|
847
|
+
### HTTP request headers
|
848
|
+
|
849
|
+
- **Content-Type**: Not defined
|
850
|
+
- **Accept**: application/json
|
851
|
+
|
852
|
+
|
853
|
+
## get_buildings
|
854
|
+
|
855
|
+
> <Array<Building>> get_buildings(opts)
|
856
|
+
|
857
|
+
Retrieve all buildings
|
858
|
+
|
859
|
+
Retrieves a list of buildings.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">BUILDINGS</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>
|
860
|
+
|
861
|
+
### Examples
|
862
|
+
|
863
|
+
```ruby
|
864
|
+
require 'time'
|
865
|
+
require 'propertyware'
|
866
|
+
# setup authorization
|
867
|
+
Propertyware.configure do |config|
|
868
|
+
# Configure API key authorization: organizationId
|
869
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
870
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
871
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
872
|
+
|
873
|
+
# Configure API key authorization: clientId
|
874
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
875
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
876
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
877
|
+
|
878
|
+
# Configure API key authorization: clientSecret
|
879
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
880
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
881
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
882
|
+
end
|
883
|
+
|
884
|
+
api_instance = Propertyware::BuildingsApi.new
|
885
|
+
opts = {
|
886
|
+
offset: 56, # Integer | `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0.
|
887
|
+
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.
|
888
|
+
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.
|
889
|
+
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.
|
890
|
+
orderby: 'orderby_example', # String | Indicates the field(s) and direction to sort the results in the response.
|
891
|
+
vacant: true, # Boolean | Filters results by the building's vacancy status. If no value is specified, buildings with any status will be returned.
|
892
|
+
published_for_rent: true, # Boolean | Filters results by the building's \"published for rent\" status. If no value is specified, buildings with any status will be returned.
|
893
|
+
lease_id: 789, # Integer | Filters results to buildings associated with a specific lease.
|
894
|
+
portfolio_id: 789, # Integer | Filters results to buildings associated with a specific portfolio.
|
895
|
+
include_deactivated: true, # Boolean | Filters results to buildings with a deactivated records.
|
896
|
+
include_custom_fields: true # Boolean | Include custom fields in the response.
|
897
|
+
}
|
898
|
+
|
899
|
+
begin
|
900
|
+
# Retrieve all buildings
|
901
|
+
result = api_instance.get_buildings(opts)
|
902
|
+
p result
|
903
|
+
rescue Propertyware::ApiError => e
|
904
|
+
puts "Error when calling BuildingsApi->get_buildings: #{e}"
|
905
|
+
end
|
906
|
+
```
|
907
|
+
|
908
|
+
#### Using the get_buildings_with_http_info variant
|
909
|
+
|
910
|
+
This returns an Array which contains the response data, status code and headers.
|
911
|
+
|
912
|
+
> <Array(<Array<Building>>, Integer, Hash)> get_buildings_with_http_info(opts)
|
913
|
+
|
914
|
+
```ruby
|
915
|
+
begin
|
916
|
+
# Retrieve all buildings
|
917
|
+
data, status_code, headers = api_instance.get_buildings_with_http_info(opts)
|
918
|
+
p status_code # => 2xx
|
919
|
+
p headers # => { ... }
|
920
|
+
p data # => <Array<Building>>
|
921
|
+
rescue Propertyware::ApiError => e
|
922
|
+
puts "Error when calling BuildingsApi->get_buildings_with_http_info: #{e}"
|
923
|
+
end
|
924
|
+
```
|
925
|
+
|
926
|
+
### Parameters
|
927
|
+
|
928
|
+
| Name | Type | Description | Notes |
|
929
|
+
| ---- | ---- | ----------- | ----- |
|
930
|
+
| **offset** | **Integer** | `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0. | [optional] |
|
931
|
+
| **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] |
|
932
|
+
| **last_modified_date_time_start** | **Time** | Filters results to any item modified on or after the date time specified. | [optional] |
|
933
|
+
| **last_modified_date_time_end** | **Time** | Filters results to any item modified on or prior to the date time specified. | [optional] |
|
934
|
+
| **orderby** | **String** | Indicates the field(s) and direction to sort the results in the response. | [optional] |
|
935
|
+
| **vacant** | **Boolean** | Filters results by the building's vacancy status. If no value is specified, buildings with any status will be returned. | [optional] |
|
936
|
+
| **published_for_rent** | **Boolean** | Filters results by the building's \"published for rent\" status. If no value is specified, buildings with any status will be returned. | [optional] |
|
937
|
+
| **lease_id** | **Integer** | Filters results to buildings associated with a specific lease. | [optional] |
|
938
|
+
| **portfolio_id** | **Integer** | Filters results to buildings associated with a specific portfolio. | [optional] |
|
939
|
+
| **include_deactivated** | **Boolean** | Filters results to buildings with a deactivated records. | [optional] |
|
940
|
+
| **include_custom_fields** | **Boolean** | Include custom fields in the response. | [optional][default to false] |
|
941
|
+
|
942
|
+
### Return type
|
943
|
+
|
944
|
+
[**Array<Building>**](Building.md)
|
945
|
+
|
946
|
+
### Authorization
|
947
|
+
|
948
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
949
|
+
|
950
|
+
### HTTP request headers
|
951
|
+
|
952
|
+
- **Content-Type**: Not defined
|
953
|
+
- **Accept**: application/json
|
954
|
+
|
955
|
+
|
956
|
+
## update_building
|
957
|
+
|
958
|
+
> <Building> update_building(building_id, save_building)
|
959
|
+
|
960
|
+
Update a building (BETA)
|
961
|
+
|
962
|
+
<p class=\"betaError\"><b>Note: </b>Write access is only available to customers who have opted in to our beta program. Please reach out to support if you'd like to be included.</p> Updates a building.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">BUILDINGS</span> - <code>Write</code>
|
963
|
+
|
964
|
+
### Examples
|
965
|
+
|
966
|
+
```ruby
|
967
|
+
require 'time'
|
968
|
+
require 'propertyware'
|
969
|
+
# setup authorization
|
970
|
+
Propertyware.configure do |config|
|
971
|
+
# Configure API key authorization: organizationId
|
972
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
973
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
974
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
975
|
+
|
976
|
+
# Configure API key authorization: clientId
|
977
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
978
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
979
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
980
|
+
|
981
|
+
# Configure API key authorization: clientSecret
|
982
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
983
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
984
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
985
|
+
end
|
986
|
+
|
987
|
+
api_instance = Propertyware::BuildingsApi.new
|
988
|
+
building_id = 789 # Integer | Building ID
|
989
|
+
save_building = Propertyware::SaveBuilding.new({abbreviation: 'abbreviation_example', category: 'RESIDENTIAL', count_unit: 37, name: 'name_example', portfolio_id: 3.56, property_type: 'NONE', type: 'type_example'}) # SaveBuilding | saveBuilding
|
990
|
+
|
991
|
+
begin
|
992
|
+
# Update a building (BETA)
|
993
|
+
result = api_instance.update_building(building_id, save_building)
|
994
|
+
p result
|
995
|
+
rescue Propertyware::ApiError => e
|
996
|
+
puts "Error when calling BuildingsApi->update_building: #{e}"
|
997
|
+
end
|
998
|
+
```
|
999
|
+
|
1000
|
+
#### Using the update_building_with_http_info variant
|
1001
|
+
|
1002
|
+
This returns an Array which contains the response data, status code and headers.
|
1003
|
+
|
1004
|
+
> <Array(<Building>, Integer, Hash)> update_building_with_http_info(building_id, save_building)
|
1005
|
+
|
1006
|
+
```ruby
|
1007
|
+
begin
|
1008
|
+
# Update a building (BETA)
|
1009
|
+
data, status_code, headers = api_instance.update_building_with_http_info(building_id, save_building)
|
1010
|
+
p status_code # => 2xx
|
1011
|
+
p headers # => { ... }
|
1012
|
+
p data # => <Building>
|
1013
|
+
rescue Propertyware::ApiError => e
|
1014
|
+
puts "Error when calling BuildingsApi->update_building_with_http_info: #{e}"
|
1015
|
+
end
|
1016
|
+
```
|
1017
|
+
|
1018
|
+
### Parameters
|
1019
|
+
|
1020
|
+
| Name | Type | Description | Notes |
|
1021
|
+
| ---- | ---- | ----------- | ----- |
|
1022
|
+
| **building_id** | **Integer** | Building ID | |
|
1023
|
+
| **save_building** | [**SaveBuilding**](SaveBuilding.md) | saveBuilding | |
|
1024
|
+
|
1025
|
+
### Return type
|
1026
|
+
|
1027
|
+
[**Building**](Building.md)
|
1028
|
+
|
1029
|
+
### Authorization
|
1030
|
+
|
1031
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
1032
|
+
|
1033
|
+
### HTTP request headers
|
1034
|
+
|
1035
|
+
- **Content-Type**: application/json
|
1036
|
+
- **Accept**: application/json
|
1037
|
+
|