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,883 @@
|
|
1
|
+
# Propertyware::WorkOrdersApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.propertyware.com/pw/api/rest/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create_work_order**](WorkOrdersApi.md#create_work_order) | **POST** /workorders | Create a work order (BETA) |
|
8
|
+
| [**create_work_order_task**](WorkOrdersApi.md#create_work_order_task) | **POST** /workorders/{workOrderId}/tasks | Create a task to workOrder (BETA) |
|
9
|
+
| [**create_work_orders**](WorkOrdersApi.md#create_work_orders) | **POST** /workorders/bulk | Create work orders in bulk (BETA) |
|
10
|
+
| [**delete_work_order**](WorkOrdersApi.md#delete_work_order) | **DELETE** /workorders/{workOrderID} | Delete a Work Order (BETA) |
|
11
|
+
| [**delete_work_order_task**](WorkOrdersApi.md#delete_work_order_task) | **DELETE** /workorders/{workOrderID}/tasks/{taskID} | Delete a work order task (BETA) |
|
12
|
+
| [**get_work_order**](WorkOrdersApi.md#get_work_order) | **GET** /workorders/{workOrderId} | Retrieve a work order |
|
13
|
+
| [**get_work_order_task**](WorkOrdersApi.md#get_work_order_task) | **GET** /workorders/{workOrderID}/tasks/{taskID} | Retrieve a work order task |
|
14
|
+
| [**get_work_order_tasks**](WorkOrdersApi.md#get_work_order_tasks) | **GET** /workorders/{workOrderId}/tasks | Retrieve all work order tasks |
|
15
|
+
| [**get_work_orders**](WorkOrdersApi.md#get_work_orders) | **GET** /workorders | Retrieve all work orders |
|
16
|
+
| [**update_work_order_task**](WorkOrdersApi.md#update_work_order_task) | **PUT** /workorders/{workOrderId}/tasks/{taskId} | Update a task in workOrder (BETA) |
|
17
|
+
|
18
|
+
|
19
|
+
## create_work_order
|
20
|
+
|
21
|
+
> <WorkOrder> create_work_order(save_work_order)
|
22
|
+
|
23
|
+
Create a work order (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 a work order.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">WORK ORDERS</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::WorkOrdersApi.new
|
51
|
+
save_work_order = Propertyware::SaveWorkOrder.new # SaveWorkOrder | saveWorkOrder
|
52
|
+
|
53
|
+
begin
|
54
|
+
# Create a work order (BETA)
|
55
|
+
result = api_instance.create_work_order(save_work_order)
|
56
|
+
p result
|
57
|
+
rescue Propertyware::ApiError => e
|
58
|
+
puts "Error when calling WorkOrdersApi->create_work_order: #{e}"
|
59
|
+
end
|
60
|
+
```
|
61
|
+
|
62
|
+
#### Using the create_work_order_with_http_info variant
|
63
|
+
|
64
|
+
This returns an Array which contains the response data, status code and headers.
|
65
|
+
|
66
|
+
> <Array(<WorkOrder>, Integer, Hash)> create_work_order_with_http_info(save_work_order)
|
67
|
+
|
68
|
+
```ruby
|
69
|
+
begin
|
70
|
+
# Create a work order (BETA)
|
71
|
+
data, status_code, headers = api_instance.create_work_order_with_http_info(save_work_order)
|
72
|
+
p status_code # => 2xx
|
73
|
+
p headers # => { ... }
|
74
|
+
p data # => <WorkOrder>
|
75
|
+
rescue Propertyware::ApiError => e
|
76
|
+
puts "Error when calling WorkOrdersApi->create_work_order_with_http_info: #{e}"
|
77
|
+
end
|
78
|
+
```
|
79
|
+
|
80
|
+
### Parameters
|
81
|
+
|
82
|
+
| Name | Type | Description | Notes |
|
83
|
+
| ---- | ---- | ----------- | ----- |
|
84
|
+
| **save_work_order** | [**SaveWorkOrder**](SaveWorkOrder.md) | saveWorkOrder | |
|
85
|
+
|
86
|
+
### Return type
|
87
|
+
|
88
|
+
[**WorkOrder**](WorkOrder.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_work_order_task
|
101
|
+
|
102
|
+
> <Task> create_work_order_task(work_order_id, save_work_order_task)
|
103
|
+
|
104
|
+
Create a task to workOrder (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> Create a task to an workOrder.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">WORK ORDERS</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::WorkOrdersApi.new
|
132
|
+
work_order_id = 789 # Integer | Work Order ID
|
133
|
+
save_work_order_task = Propertyware::SaveWorkOrderTask.new({description: 'description_example'}) # SaveWorkOrderTask | saveWorkOrderTask
|
134
|
+
|
135
|
+
begin
|
136
|
+
# Create a task to workOrder (BETA)
|
137
|
+
result = api_instance.create_work_order_task(work_order_id, save_work_order_task)
|
138
|
+
p result
|
139
|
+
rescue Propertyware::ApiError => e
|
140
|
+
puts "Error when calling WorkOrdersApi->create_work_order_task: #{e}"
|
141
|
+
end
|
142
|
+
```
|
143
|
+
|
144
|
+
#### Using the create_work_order_task_with_http_info variant
|
145
|
+
|
146
|
+
This returns an Array which contains the response data, status code and headers.
|
147
|
+
|
148
|
+
> <Array(<Task>, Integer, Hash)> create_work_order_task_with_http_info(work_order_id, save_work_order_task)
|
149
|
+
|
150
|
+
```ruby
|
151
|
+
begin
|
152
|
+
# Create a task to workOrder (BETA)
|
153
|
+
data, status_code, headers = api_instance.create_work_order_task_with_http_info(work_order_id, save_work_order_task)
|
154
|
+
p status_code # => 2xx
|
155
|
+
p headers # => { ... }
|
156
|
+
p data # => <Task>
|
157
|
+
rescue Propertyware::ApiError => e
|
158
|
+
puts "Error when calling WorkOrdersApi->create_work_order_task_with_http_info: #{e}"
|
159
|
+
end
|
160
|
+
```
|
161
|
+
|
162
|
+
### Parameters
|
163
|
+
|
164
|
+
| Name | Type | Description | Notes |
|
165
|
+
| ---- | ---- | ----------- | ----- |
|
166
|
+
| **work_order_id** | **Integer** | Work Order ID | |
|
167
|
+
| **save_work_order_task** | [**SaveWorkOrderTask**](SaveWorkOrderTask.md) | saveWorkOrderTask | |
|
168
|
+
|
169
|
+
### Return type
|
170
|
+
|
171
|
+
[**Task**](Task.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
|
+
## create_work_orders
|
184
|
+
|
185
|
+
> <Array<RESTAPIBulkSuccessResponse>> create_work_orders(save_work_order)
|
186
|
+
|
187
|
+
Create work orders in bulk (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> Creates word orders in bulk.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">WORK ORDERS</span> - <code>Write</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::WorkOrdersApi.new
|
215
|
+
save_work_order = [Propertyware::SaveWorkOrder.new] # Array<SaveWorkOrder> | saveWorkOrder
|
216
|
+
|
217
|
+
begin
|
218
|
+
# Create work orders in bulk (BETA)
|
219
|
+
result = api_instance.create_work_orders(save_work_order)
|
220
|
+
p result
|
221
|
+
rescue Propertyware::ApiError => e
|
222
|
+
puts "Error when calling WorkOrdersApi->create_work_orders: #{e}"
|
223
|
+
end
|
224
|
+
```
|
225
|
+
|
226
|
+
#### Using the create_work_orders_with_http_info variant
|
227
|
+
|
228
|
+
This returns an Array which contains the response data, status code and headers.
|
229
|
+
|
230
|
+
> <Array(<Array<RESTAPIBulkSuccessResponse>>, Integer, Hash)> create_work_orders_with_http_info(save_work_order)
|
231
|
+
|
232
|
+
```ruby
|
233
|
+
begin
|
234
|
+
# Create work orders in bulk (BETA)
|
235
|
+
data, status_code, headers = api_instance.create_work_orders_with_http_info(save_work_order)
|
236
|
+
p status_code # => 2xx
|
237
|
+
p headers # => { ... }
|
238
|
+
p data # => <Array<RESTAPIBulkSuccessResponse>>
|
239
|
+
rescue Propertyware::ApiError => e
|
240
|
+
puts "Error when calling WorkOrdersApi->create_work_orders_with_http_info: #{e}"
|
241
|
+
end
|
242
|
+
```
|
243
|
+
|
244
|
+
### Parameters
|
245
|
+
|
246
|
+
| Name | Type | Description | Notes |
|
247
|
+
| ---- | ---- | ----------- | ----- |
|
248
|
+
| **save_work_order** | [**Array<SaveWorkOrder>**](SaveWorkOrder.md) | saveWorkOrder | |
|
249
|
+
|
250
|
+
### Return type
|
251
|
+
|
252
|
+
[**Array<RESTAPIBulkSuccessResponse>**](RESTAPIBulkSuccessResponse.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**: application/json
|
261
|
+
- **Accept**: application/json
|
262
|
+
|
263
|
+
|
264
|
+
## delete_work_order
|
265
|
+
|
266
|
+
> <ResponseEntity> delete_work_order(work_order_id)
|
267
|
+
|
268
|
+
Delete a Work Order (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> Delete a Work Order.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">WORK ORDERS</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::WorkOrdersApi.new
|
296
|
+
work_order_id = 789 # Integer | Work Order ID
|
297
|
+
|
298
|
+
begin
|
299
|
+
# Delete a Work Order (BETA)
|
300
|
+
result = api_instance.delete_work_order(work_order_id)
|
301
|
+
p result
|
302
|
+
rescue Propertyware::ApiError => e
|
303
|
+
puts "Error when calling WorkOrdersApi->delete_work_order: #{e}"
|
304
|
+
end
|
305
|
+
```
|
306
|
+
|
307
|
+
#### Using the delete_work_order_with_http_info variant
|
308
|
+
|
309
|
+
This returns an Array which contains the response data, status code and headers.
|
310
|
+
|
311
|
+
> <Array(<ResponseEntity>, Integer, Hash)> delete_work_order_with_http_info(work_order_id)
|
312
|
+
|
313
|
+
```ruby
|
314
|
+
begin
|
315
|
+
# Delete a Work Order (BETA)
|
316
|
+
data, status_code, headers = api_instance.delete_work_order_with_http_info(work_order_id)
|
317
|
+
p status_code # => 2xx
|
318
|
+
p headers # => { ... }
|
319
|
+
p data # => <ResponseEntity>
|
320
|
+
rescue Propertyware::ApiError => e
|
321
|
+
puts "Error when calling WorkOrdersApi->delete_work_order_with_http_info: #{e}"
|
322
|
+
end
|
323
|
+
```
|
324
|
+
|
325
|
+
### Parameters
|
326
|
+
|
327
|
+
| Name | Type | Description | Notes |
|
328
|
+
| ---- | ---- | ----------- | ----- |
|
329
|
+
| **work_order_id** | **Integer** | Work Order 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
|
+
## delete_work_order_task
|
346
|
+
|
347
|
+
> <ResponseEntity> delete_work_order_task(work_order_id, task_id)
|
348
|
+
|
349
|
+
Delete a work order task (BETA)
|
350
|
+
|
351
|
+
<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 work order task.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">WORK ORDERS</span> - <code>Delete</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::WorkOrdersApi.new
|
377
|
+
work_order_id = 789 # Integer | Work Order ID
|
378
|
+
task_id = 789 # Integer | Task ID
|
379
|
+
|
380
|
+
begin
|
381
|
+
# Delete a work order task (BETA)
|
382
|
+
result = api_instance.delete_work_order_task(work_order_id, task_id)
|
383
|
+
p result
|
384
|
+
rescue Propertyware::ApiError => e
|
385
|
+
puts "Error when calling WorkOrdersApi->delete_work_order_task: #{e}"
|
386
|
+
end
|
387
|
+
```
|
388
|
+
|
389
|
+
#### Using the delete_work_order_task_with_http_info variant
|
390
|
+
|
391
|
+
This returns an Array which contains the response data, status code and headers.
|
392
|
+
|
393
|
+
> <Array(<ResponseEntity>, Integer, Hash)> delete_work_order_task_with_http_info(work_order_id, task_id)
|
394
|
+
|
395
|
+
```ruby
|
396
|
+
begin
|
397
|
+
# Delete a work order task (BETA)
|
398
|
+
data, status_code, headers = api_instance.delete_work_order_task_with_http_info(work_order_id, task_id)
|
399
|
+
p status_code # => 2xx
|
400
|
+
p headers # => { ... }
|
401
|
+
p data # => <ResponseEntity>
|
402
|
+
rescue Propertyware::ApiError => e
|
403
|
+
puts "Error when calling WorkOrdersApi->delete_work_order_task_with_http_info: #{e}"
|
404
|
+
end
|
405
|
+
```
|
406
|
+
|
407
|
+
### Parameters
|
408
|
+
|
409
|
+
| Name | Type | Description | Notes |
|
410
|
+
| ---- | ---- | ----------- | ----- |
|
411
|
+
| **work_order_id** | **Integer** | Work Order ID | |
|
412
|
+
| **task_id** | **Integer** | Task ID | |
|
413
|
+
|
414
|
+
### Return type
|
415
|
+
|
416
|
+
[**ResponseEntity**](ResponseEntity.md)
|
417
|
+
|
418
|
+
### Authorization
|
419
|
+
|
420
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
421
|
+
|
422
|
+
### HTTP request headers
|
423
|
+
|
424
|
+
- **Content-Type**: Not defined
|
425
|
+
- **Accept**: application/json
|
426
|
+
|
427
|
+
|
428
|
+
## get_work_order
|
429
|
+
|
430
|
+
> <WorkOrder> get_work_order(work_order_id, opts)
|
431
|
+
|
432
|
+
Retrieve a work order
|
433
|
+
|
434
|
+
Retrieves a specific work order.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">WORK ORDERS</span> - <code>Read</code>
|
435
|
+
|
436
|
+
### Examples
|
437
|
+
|
438
|
+
```ruby
|
439
|
+
require 'time'
|
440
|
+
require 'propertyware'
|
441
|
+
# setup authorization
|
442
|
+
Propertyware.configure do |config|
|
443
|
+
# Configure API key authorization: organizationId
|
444
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
445
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
446
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
447
|
+
|
448
|
+
# Configure API key authorization: clientId
|
449
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
450
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
451
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
452
|
+
|
453
|
+
# Configure API key authorization: clientSecret
|
454
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
455
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
456
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
457
|
+
end
|
458
|
+
|
459
|
+
api_instance = Propertyware::WorkOrdersApi.new
|
460
|
+
work_order_id = 789 # Integer | Work Order ID
|
461
|
+
opts = {
|
462
|
+
include_custom_fields: true # Boolean | includeCustomFields
|
463
|
+
}
|
464
|
+
|
465
|
+
begin
|
466
|
+
# Retrieve a work order
|
467
|
+
result = api_instance.get_work_order(work_order_id, opts)
|
468
|
+
p result
|
469
|
+
rescue Propertyware::ApiError => e
|
470
|
+
puts "Error when calling WorkOrdersApi->get_work_order: #{e}"
|
471
|
+
end
|
472
|
+
```
|
473
|
+
|
474
|
+
#### Using the get_work_order_with_http_info variant
|
475
|
+
|
476
|
+
This returns an Array which contains the response data, status code and headers.
|
477
|
+
|
478
|
+
> <Array(<WorkOrder>, Integer, Hash)> get_work_order_with_http_info(work_order_id, opts)
|
479
|
+
|
480
|
+
```ruby
|
481
|
+
begin
|
482
|
+
# Retrieve a work order
|
483
|
+
data, status_code, headers = api_instance.get_work_order_with_http_info(work_order_id, opts)
|
484
|
+
p status_code # => 2xx
|
485
|
+
p headers # => { ... }
|
486
|
+
p data # => <WorkOrder>
|
487
|
+
rescue Propertyware::ApiError => e
|
488
|
+
puts "Error when calling WorkOrdersApi->get_work_order_with_http_info: #{e}"
|
489
|
+
end
|
490
|
+
```
|
491
|
+
|
492
|
+
### Parameters
|
493
|
+
|
494
|
+
| Name | Type | Description | Notes |
|
495
|
+
| ---- | ---- | ----------- | ----- |
|
496
|
+
| **work_order_id** | **Integer** | Work Order ID | |
|
497
|
+
| **include_custom_fields** | **Boolean** | includeCustomFields | [optional][default to true] |
|
498
|
+
|
499
|
+
### Return type
|
500
|
+
|
501
|
+
[**WorkOrder**](WorkOrder.md)
|
502
|
+
|
503
|
+
### Authorization
|
504
|
+
|
505
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
506
|
+
|
507
|
+
### HTTP request headers
|
508
|
+
|
509
|
+
- **Content-Type**: Not defined
|
510
|
+
- **Accept**: application/json
|
511
|
+
|
512
|
+
|
513
|
+
## get_work_order_task
|
514
|
+
|
515
|
+
> <Array<Task>> get_work_order_task(work_order_id, task_id)
|
516
|
+
|
517
|
+
Retrieve a work order task
|
518
|
+
|
519
|
+
Retrieves a specific work order task.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">WORK ORDERS</span> - <code>Read</code>
|
520
|
+
|
521
|
+
### Examples
|
522
|
+
|
523
|
+
```ruby
|
524
|
+
require 'time'
|
525
|
+
require 'propertyware'
|
526
|
+
# setup authorization
|
527
|
+
Propertyware.configure do |config|
|
528
|
+
# Configure API key authorization: organizationId
|
529
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
530
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
531
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
532
|
+
|
533
|
+
# Configure API key authorization: clientId
|
534
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
535
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
536
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
537
|
+
|
538
|
+
# Configure API key authorization: clientSecret
|
539
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
540
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
541
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
542
|
+
end
|
543
|
+
|
544
|
+
api_instance = Propertyware::WorkOrdersApi.new
|
545
|
+
work_order_id = 789 # Integer | Work Order ID
|
546
|
+
task_id = 789 # Integer | Task ID
|
547
|
+
|
548
|
+
begin
|
549
|
+
# Retrieve a work order task
|
550
|
+
result = api_instance.get_work_order_task(work_order_id, task_id)
|
551
|
+
p result
|
552
|
+
rescue Propertyware::ApiError => e
|
553
|
+
puts "Error when calling WorkOrdersApi->get_work_order_task: #{e}"
|
554
|
+
end
|
555
|
+
```
|
556
|
+
|
557
|
+
#### Using the get_work_order_task_with_http_info variant
|
558
|
+
|
559
|
+
This returns an Array which contains the response data, status code and headers.
|
560
|
+
|
561
|
+
> <Array(<Array<Task>>, Integer, Hash)> get_work_order_task_with_http_info(work_order_id, task_id)
|
562
|
+
|
563
|
+
```ruby
|
564
|
+
begin
|
565
|
+
# Retrieve a work order task
|
566
|
+
data, status_code, headers = api_instance.get_work_order_task_with_http_info(work_order_id, task_id)
|
567
|
+
p status_code # => 2xx
|
568
|
+
p headers # => { ... }
|
569
|
+
p data # => <Array<Task>>
|
570
|
+
rescue Propertyware::ApiError => e
|
571
|
+
puts "Error when calling WorkOrdersApi->get_work_order_task_with_http_info: #{e}"
|
572
|
+
end
|
573
|
+
```
|
574
|
+
|
575
|
+
### Parameters
|
576
|
+
|
577
|
+
| Name | Type | Description | Notes |
|
578
|
+
| ---- | ---- | ----------- | ----- |
|
579
|
+
| **work_order_id** | **Integer** | Work Order ID | |
|
580
|
+
| **task_id** | **Integer** | Task ID | |
|
581
|
+
|
582
|
+
### Return type
|
583
|
+
|
584
|
+
[**Array<Task>**](Task.md)
|
585
|
+
|
586
|
+
### Authorization
|
587
|
+
|
588
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
589
|
+
|
590
|
+
### HTTP request headers
|
591
|
+
|
592
|
+
- **Content-Type**: Not defined
|
593
|
+
- **Accept**: application/json
|
594
|
+
|
595
|
+
|
596
|
+
## get_work_order_tasks
|
597
|
+
|
598
|
+
> <Array<Task>> get_work_order_tasks(work_order_id, opts)
|
599
|
+
|
600
|
+
Retrieve all work order tasks
|
601
|
+
|
602
|
+
Retrieves a list of work order tasks.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">WORK ORDERS</span> - <code>Read</code> <br/><br/><b>Sortable by:</b> <code>createddate</code>, <code>lastmodifieddatetime</code>, <code>id</code>
|
603
|
+
|
604
|
+
### Examples
|
605
|
+
|
606
|
+
```ruby
|
607
|
+
require 'time'
|
608
|
+
require 'propertyware'
|
609
|
+
# setup authorization
|
610
|
+
Propertyware.configure do |config|
|
611
|
+
# Configure API key authorization: organizationId
|
612
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
613
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
614
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
615
|
+
|
616
|
+
# Configure API key authorization: clientId
|
617
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
618
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
619
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
620
|
+
|
621
|
+
# Configure API key authorization: clientSecret
|
622
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
623
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
624
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
625
|
+
end
|
626
|
+
|
627
|
+
api_instance = Propertyware::WorkOrdersApi.new
|
628
|
+
work_order_id = 789 # Integer | Work Order ID
|
629
|
+
opts = {
|
630
|
+
offset: 56, # Integer | `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0.
|
631
|
+
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.
|
632
|
+
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.
|
633
|
+
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.
|
634
|
+
orderby: 'orderby_example', # String | Indicates the field(s) and direction to sort the results in the response.
|
635
|
+
due_date: Date.parse('2013-10-20'), # Date | Filters results by due day.
|
636
|
+
completed: true # Boolean | Filters results by task status.
|
637
|
+
}
|
638
|
+
|
639
|
+
begin
|
640
|
+
# Retrieve all work order tasks
|
641
|
+
result = api_instance.get_work_order_tasks(work_order_id, opts)
|
642
|
+
p result
|
643
|
+
rescue Propertyware::ApiError => e
|
644
|
+
puts "Error when calling WorkOrdersApi->get_work_order_tasks: #{e}"
|
645
|
+
end
|
646
|
+
```
|
647
|
+
|
648
|
+
#### Using the get_work_order_tasks_with_http_info variant
|
649
|
+
|
650
|
+
This returns an Array which contains the response data, status code and headers.
|
651
|
+
|
652
|
+
> <Array(<Array<Task>>, Integer, Hash)> get_work_order_tasks_with_http_info(work_order_id, opts)
|
653
|
+
|
654
|
+
```ruby
|
655
|
+
begin
|
656
|
+
# Retrieve all work order tasks
|
657
|
+
data, status_code, headers = api_instance.get_work_order_tasks_with_http_info(work_order_id, opts)
|
658
|
+
p status_code # => 2xx
|
659
|
+
p headers # => { ... }
|
660
|
+
p data # => <Array<Task>>
|
661
|
+
rescue Propertyware::ApiError => e
|
662
|
+
puts "Error when calling WorkOrdersApi->get_work_order_tasks_with_http_info: #{e}"
|
663
|
+
end
|
664
|
+
```
|
665
|
+
|
666
|
+
### Parameters
|
667
|
+
|
668
|
+
| Name | Type | Description | Notes |
|
669
|
+
| ---- | ---- | ----------- | ----- |
|
670
|
+
| **work_order_id** | **Integer** | Work Order ID | |
|
671
|
+
| **offset** | **Integer** | `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0. | [optional] |
|
672
|
+
| **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] |
|
673
|
+
| **last_modified_date_time_start** | **Time** | Filters results to any item modified on or after the date time specified. | [optional] |
|
674
|
+
| **last_modified_date_time_end** | **Time** | Filters results to any item modified on or prior to the date time specified. | [optional] |
|
675
|
+
| **orderby** | **String** | Indicates the field(s) and direction to sort the results in the response. | [optional] |
|
676
|
+
| **due_date** | **Date** | Filters results by due day. | [optional] |
|
677
|
+
| **completed** | **Boolean** | Filters results by task status. | [optional] |
|
678
|
+
|
679
|
+
### Return type
|
680
|
+
|
681
|
+
[**Array<Task>**](Task.md)
|
682
|
+
|
683
|
+
### Authorization
|
684
|
+
|
685
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
686
|
+
|
687
|
+
### HTTP request headers
|
688
|
+
|
689
|
+
- **Content-Type**: Not defined
|
690
|
+
- **Accept**: application/json
|
691
|
+
|
692
|
+
|
693
|
+
## get_work_orders
|
694
|
+
|
695
|
+
> <Array<WorkOrder>> get_work_orders(opts)
|
696
|
+
|
697
|
+
Retrieve all work orders
|
698
|
+
|
699
|
+
Retrieves a list of work orders.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">WORK ORDERS</span> - <code>Read</code> <br/><br/><b>Sortable by:</b> <code>createddate</code>, <code>number</code>, <code>type</code>, <code>lastmodifieddatetime</code>, <code>status</code>, <code>id</code>
|
700
|
+
|
701
|
+
### Examples
|
702
|
+
|
703
|
+
```ruby
|
704
|
+
require 'time'
|
705
|
+
require 'propertyware'
|
706
|
+
# setup authorization
|
707
|
+
Propertyware.configure do |config|
|
708
|
+
# Configure API key authorization: organizationId
|
709
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
710
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
711
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
712
|
+
|
713
|
+
# Configure API key authorization: clientId
|
714
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
715
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
716
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
717
|
+
|
718
|
+
# Configure API key authorization: clientSecret
|
719
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
720
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
721
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
722
|
+
end
|
723
|
+
|
724
|
+
api_instance = Propertyware::WorkOrdersApi.new
|
725
|
+
opts = {
|
726
|
+
offset: 56, # Integer | `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0.
|
727
|
+
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.
|
728
|
+
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.
|
729
|
+
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.
|
730
|
+
orderby: 'orderby_example', # String | Indicates the field(s) and direction to sort the results in the response.
|
731
|
+
portfolio_id: 789, # Integer | Filters results to prospects associated with a specific portfolio.
|
732
|
+
building_id: 789, # Integer | Filters results to prospects associated with a specific building.
|
733
|
+
status: 'status_example', # String | Filters results to work orders with a specific status.
|
734
|
+
type: 'type_example', # String | Filters results to work orders with a specific type.
|
735
|
+
priority: 'HIGH', # String | Filters results to work orders with a specific priority.
|
736
|
+
completed_date_start: Date.parse('2013-10-20'), # Date | Filters results to any payment with a date on or after to the date specified.
|
737
|
+
completed_date_end: Date.parse('2013-10-20'), # Date | Filters results to any payment with a date on or prior to the date specified.
|
738
|
+
include_custom_fields: true # Boolean | includeCustomFields
|
739
|
+
}
|
740
|
+
|
741
|
+
begin
|
742
|
+
# Retrieve all work orders
|
743
|
+
result = api_instance.get_work_orders(opts)
|
744
|
+
p result
|
745
|
+
rescue Propertyware::ApiError => e
|
746
|
+
puts "Error when calling WorkOrdersApi->get_work_orders: #{e}"
|
747
|
+
end
|
748
|
+
```
|
749
|
+
|
750
|
+
#### Using the get_work_orders_with_http_info variant
|
751
|
+
|
752
|
+
This returns an Array which contains the response data, status code and headers.
|
753
|
+
|
754
|
+
> <Array(<Array<WorkOrder>>, Integer, Hash)> get_work_orders_with_http_info(opts)
|
755
|
+
|
756
|
+
```ruby
|
757
|
+
begin
|
758
|
+
# Retrieve all work orders
|
759
|
+
data, status_code, headers = api_instance.get_work_orders_with_http_info(opts)
|
760
|
+
p status_code # => 2xx
|
761
|
+
p headers # => { ... }
|
762
|
+
p data # => <Array<WorkOrder>>
|
763
|
+
rescue Propertyware::ApiError => e
|
764
|
+
puts "Error when calling WorkOrdersApi->get_work_orders_with_http_info: #{e}"
|
765
|
+
end
|
766
|
+
```
|
767
|
+
|
768
|
+
### Parameters
|
769
|
+
|
770
|
+
| Name | Type | Description | Notes |
|
771
|
+
| ---- | ---- | ----------- | ----- |
|
772
|
+
| **offset** | **Integer** | `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0. | [optional] |
|
773
|
+
| **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] |
|
774
|
+
| **last_modified_date_time_start** | **Time** | Filters results to any item modified on or after the date time specified. | [optional] |
|
775
|
+
| **last_modified_date_time_end** | **Time** | Filters results to any item modified on or prior to the date time specified. | [optional] |
|
776
|
+
| **orderby** | **String** | Indicates the field(s) and direction to sort the results in the response. | [optional] |
|
777
|
+
| **portfolio_id** | **Integer** | Filters results to prospects associated with a specific portfolio. | [optional] |
|
778
|
+
| **building_id** | **Integer** | Filters results to prospects associated with a specific building. | [optional] |
|
779
|
+
| **status** | **String** | Filters results to work orders with a specific status. | [optional] |
|
780
|
+
| **type** | **String** | Filters results to work orders with a specific type. | [optional] |
|
781
|
+
| **priority** | **String** | Filters results to work orders with a specific priority. | [optional] |
|
782
|
+
| **completed_date_start** | **Date** | Filters results to any payment with a date on or after to the date specified. | [optional] |
|
783
|
+
| **completed_date_end** | **Date** | Filters results to any payment with a date on or prior to the date specified. | [optional] |
|
784
|
+
| **include_custom_fields** | **Boolean** | includeCustomFields | [optional][default to false] |
|
785
|
+
|
786
|
+
### Return type
|
787
|
+
|
788
|
+
[**Array<WorkOrder>**](WorkOrder.md)
|
789
|
+
|
790
|
+
### Authorization
|
791
|
+
|
792
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
793
|
+
|
794
|
+
### HTTP request headers
|
795
|
+
|
796
|
+
- **Content-Type**: Not defined
|
797
|
+
- **Accept**: application/json
|
798
|
+
|
799
|
+
|
800
|
+
## update_work_order_task
|
801
|
+
|
802
|
+
> <Task> update_work_order_task(work_order_id, task_id, save_work_order_task)
|
803
|
+
|
804
|
+
Update a task in workOrder (BETA)
|
805
|
+
|
806
|
+
<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 an existing workOrder task.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">WORK ORDERS</span> - <code>Write</code>
|
807
|
+
|
808
|
+
### Examples
|
809
|
+
|
810
|
+
```ruby
|
811
|
+
require 'time'
|
812
|
+
require 'propertyware'
|
813
|
+
# setup authorization
|
814
|
+
Propertyware.configure do |config|
|
815
|
+
# Configure API key authorization: organizationId
|
816
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
817
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
818
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
819
|
+
|
820
|
+
# Configure API key authorization: clientId
|
821
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
822
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
823
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
824
|
+
|
825
|
+
# Configure API key authorization: clientSecret
|
826
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
827
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
828
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
829
|
+
end
|
830
|
+
|
831
|
+
api_instance = Propertyware::WorkOrdersApi.new
|
832
|
+
work_order_id = 789 # Integer | Work Order ID
|
833
|
+
task_id = 789 # Integer | Task ID
|
834
|
+
save_work_order_task = Propertyware::SaveWorkOrderTask.new({description: 'description_example'}) # SaveWorkOrderTask | saveWorkOrderTask
|
835
|
+
|
836
|
+
begin
|
837
|
+
# Update a task in workOrder (BETA)
|
838
|
+
result = api_instance.update_work_order_task(work_order_id, task_id, save_work_order_task)
|
839
|
+
p result
|
840
|
+
rescue Propertyware::ApiError => e
|
841
|
+
puts "Error when calling WorkOrdersApi->update_work_order_task: #{e}"
|
842
|
+
end
|
843
|
+
```
|
844
|
+
|
845
|
+
#### Using the update_work_order_task_with_http_info variant
|
846
|
+
|
847
|
+
This returns an Array which contains the response data, status code and headers.
|
848
|
+
|
849
|
+
> <Array(<Task>, Integer, Hash)> update_work_order_task_with_http_info(work_order_id, task_id, save_work_order_task)
|
850
|
+
|
851
|
+
```ruby
|
852
|
+
begin
|
853
|
+
# Update a task in workOrder (BETA)
|
854
|
+
data, status_code, headers = api_instance.update_work_order_task_with_http_info(work_order_id, task_id, save_work_order_task)
|
855
|
+
p status_code # => 2xx
|
856
|
+
p headers # => { ... }
|
857
|
+
p data # => <Task>
|
858
|
+
rescue Propertyware::ApiError => e
|
859
|
+
puts "Error when calling WorkOrdersApi->update_work_order_task_with_http_info: #{e}"
|
860
|
+
end
|
861
|
+
```
|
862
|
+
|
863
|
+
### Parameters
|
864
|
+
|
865
|
+
| Name | Type | Description | Notes |
|
866
|
+
| ---- | ---- | ----------- | ----- |
|
867
|
+
| **work_order_id** | **Integer** | Work Order ID | |
|
868
|
+
| **task_id** | **Integer** | Task ID | |
|
869
|
+
| **save_work_order_task** | [**SaveWorkOrderTask**](SaveWorkOrderTask.md) | saveWorkOrderTask | |
|
870
|
+
|
871
|
+
### Return type
|
872
|
+
|
873
|
+
[**Task**](Task.md)
|
874
|
+
|
875
|
+
### Authorization
|
876
|
+
|
877
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
878
|
+
|
879
|
+
### HTTP request headers
|
880
|
+
|
881
|
+
- **Content-Type**: application/json
|
882
|
+
- **Accept**: application/json
|
883
|
+
|