propertyware 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/ci.yml +27 -0
- data/.github/workflows/publish.yml +48 -0
- data/.gitignore +39 -0
- data/.openapi-generator/FILES +375 -0
- data/.openapi-generator/VERSION +1 -0
- data/.openapi-generator/templates/ruby-client/gemspec.mustache +37 -0
- data/.openapi-generator/templates/ruby-client/partial_model_generic.mustache +371 -0
- data/.openapi-generator/templates/ruby-client/rubocop.mustache +124 -0
- data/.openapi-generator-ignore +23 -0
- data/.rspec +2 -0
- data/.rubocop.yml +124 -0
- data/CUSTOMIZATIONS.md +11 -0
- data/DOCS.md +673 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +76 -0
- data/README.md +93 -0
- data/Rakefile +10 -0
- data/bin/CUSTOMIZATIONS.md +11 -0
- data/bin/README.md +93 -0
- data/bin/config.yml +7 -0
- data/bin/fix_json.rb +59 -0
- data/bin/propertyware.json +1 -0
- data/bin/rebuild.sh +31 -0
- data/docs/Account.md +84 -0
- data/docs/AccountingApi.md +1235 -0
- data/docs/Address.md +28 -0
- data/docs/Amenity.md +24 -0
- data/docs/AutoJournalEntry.md +46 -0
- data/docs/AutoPayment.md +42 -0
- data/docs/Bank.md +52 -0
- data/docs/BankDeposit.md +32 -0
- data/docs/BasicVendor.md +40 -0
- data/docs/Bill.md +54 -0
- data/docs/BillPaid.md +24 -0
- data/docs/BillPay.md +20 -0
- data/docs/BillPayment.md +46 -0
- data/docs/BillSplit.md +42 -0
- data/docs/BillsApi.md +1391 -0
- data/docs/Building.md +116 -0
- data/docs/BuildingsApi.md +1037 -0
- data/docs/Campaign.md +60 -0
- data/docs/CampaignSource.md +26 -0
- data/docs/Charge.md +36 -0
- data/docs/ChargeTx.md +52 -0
- data/docs/Check.md +48 -0
- data/docs/CheckSplit.md +30 -0
- data/docs/Comment.md +28 -0
- data/docs/Contact.md +74 -0
- data/docs/ContactsApi.md +783 -0
- data/docs/Conversation.md +36 -0
- data/docs/CreditCardAccount.md +18 -0
- data/docs/CurrentAsset.md +30 -0
- data/docs/CurrentLiability.md +30 -0
- data/docs/CustomField.md +24 -0
- data/docs/Discount.md +40 -0
- data/docs/Document.md +40 -0
- data/docs/DocumentsApi.md +267 -0
- data/docs/Entry.md +34 -0
- data/docs/Equity.md +32 -0
- data/docs/ErrorResponse.md +22 -0
- data/docs/Expense.md +32 -0
- data/docs/GLItem.md +40 -0
- data/docs/HealthCheckApi.md +86 -0
- data/docs/Income.md +34 -0
- data/docs/Inspection.md +46 -0
- data/docs/InspectionArea.md +22 -0
- data/docs/InspectionItem.md +24 -0
- data/docs/InspectionsApi.md +193 -0
- data/docs/JournalEntry.md +36 -0
- data/docs/JournalEntrySplit.md +24 -0
- data/docs/JournalEntrySplitResponse.md +24 -0
- data/docs/LateFeeRule.md +26 -0
- data/docs/Lease.md +76 -0
- data/docs/LeaseClause.md +22 -0
- data/docs/LeaseContact.md +36 -0
- data/docs/LeasesApi.md +3319 -0
- data/docs/ManagementFee.md +30 -0
- data/docs/ManagementSettings.md +26 -0
- data/docs/Marketing.md +62 -0
- data/docs/NonCurrentAsset.md +26 -0
- data/docs/NonCurrentLiability.md +30 -0
- data/docs/NonOperatingExpense.md +32 -0
- data/docs/NonOperatingInome.md +32 -0
- data/docs/Note.md +28 -0
- data/docs/Owner.md +38 -0
- data/docs/OwnerContribution.md +44 -0
- data/docs/OwnerDraw.md +44 -0
- data/docs/Payment.md +50 -0
- data/docs/PaymentCharge.md +36 -0
- data/docs/Portfolio.md +60 -0
- data/docs/PortfoliosApi.md +701 -0
- data/docs/PropertyManager.md +26 -0
- data/docs/Prospect.md +114 -0
- data/docs/ProspectsApi.md +789 -0
- data/docs/RESTAPIBulkErrorResponse.md +22 -0
- data/docs/RESTAPIBulkSuccessResponse.md +18 -0
- data/docs/RESTAPIError.md +20 -0
- data/docs/Refund.md +44 -0
- data/docs/ResponseEntity.md +20 -0
- data/docs/SaveAccount.md +52 -0
- data/docs/SaveAddress.md +28 -0
- data/docs/SaveAdjustment.md +26 -0
- data/docs/SaveAutoCharge.md +28 -0
- data/docs/SaveBankDeposit.md +20 -0
- data/docs/SaveBill.md +42 -0
- data/docs/SaveBillPayment.md +30 -0
- data/docs/SaveBillSplit.md +36 -0
- data/docs/SaveBuilding.md +84 -0
- data/docs/SaveCharge.md +28 -0
- data/docs/SaveCheck.md +30 -0
- data/docs/SaveCheckSplit.md +30 -0
- data/docs/SaveComment.md +18 -0
- data/docs/SaveContact.md +60 -0
- data/docs/SaveConversation.md +20 -0
- data/docs/SaveCredit.md +26 -0
- data/docs/SaveDiscount.md +28 -0
- data/docs/SaveJournalEntrySplit.md +22 -0
- data/docs/SaveLease.md +50 -0
- data/docs/SaveLeaseJournalEntry.md +26 -0
- data/docs/SaveOwner.md +36 -0
- data/docs/SaveOwnerContribution.md +34 -0
- data/docs/SaveOwnerDraw.md +34 -0
- data/docs/SavePayment.md +34 -0
- data/docs/SavePortfolio.md +38 -0
- data/docs/SaveProspect.md +76 -0
- data/docs/SaveProspectContact.md +36 -0
- data/docs/SaveRefund.md +34 -0
- data/docs/SaveUnit.md +60 -0
- data/docs/SaveVendor.md +46 -0
- data/docs/SaveWorkOrder.md +36 -0
- data/docs/SaveWorkOrderTask.md +30 -0
- data/docs/SplitPaid.md +34 -0
- data/docs/SplitPay.md +20 -0
- data/docs/Task.md +42 -0
- data/docs/Transaction.md +54 -0
- data/docs/Unit.md +96 -0
- data/docs/UnitsApi.md +875 -0
- data/docs/UpdateLeaseJournalEntry.md +26 -0
- data/docs/Vendor.md +76 -0
- data/docs/VendorsApi.md +617 -0
- data/docs/WorkOrder.md +78 -0
- data/docs/WorkOrdersApi.md +883 -0
- data/lib/propertyware/api/accounting_api.rb +1041 -0
- data/lib/propertyware/api/bills_api.rb +1182 -0
- data/lib/propertyware/api/buildings_api.rb +863 -0
- data/lib/propertyware/api/contacts_api.rb +666 -0
- data/lib/propertyware/api/documents_api.rb +235 -0
- data/lib/propertyware/api/health_check_api.rb +79 -0
- data/lib/propertyware/api/inspections_api.rb +172 -0
- data/lib/propertyware/api/leases_api.rb +2787 -0
- data/lib/propertyware/api/portfolios_api.rb +599 -0
- data/lib/propertyware/api/prospects_api.rb +671 -0
- data/lib/propertyware/api/units_api.rb +740 -0
- data/lib/propertyware/api/vendors_api.rb +522 -0
- data/lib/propertyware/api/work_orders_api.rb +763 -0
- data/lib/propertyware/api_client.rb +428 -0
- data/lib/propertyware/api_error.rb +58 -0
- data/lib/propertyware/configuration.rb +392 -0
- data/lib/propertyware/models/account.rb +549 -0
- data/lib/propertyware/models/address.rb +269 -0
- data/lib/propertyware/models/amenity.rb +249 -0
- data/lib/propertyware/models/auto_journal_entry.rb +358 -0
- data/lib/propertyware/models/auto_payment.rb +338 -0
- data/lib/propertyware/models/bank.rb +389 -0
- data/lib/propertyware/models/bank_deposit.rb +289 -0
- data/lib/propertyware/models/basic_vendor.rb +330 -0
- data/lib/propertyware/models/bill.rb +401 -0
- data/lib/propertyware/models/bill_paid.rb +250 -0
- data/lib/propertyware/models/bill_pay.rb +230 -0
- data/lib/propertyware/models/bill_payment.rb +361 -0
- data/lib/propertyware/models/bill_split.rb +339 -0
- data/lib/propertyware/models/building.rb +782 -0
- data/lib/propertyware/models/campaign.rb +430 -0
- data/lib/propertyware/models/campaign_source.rb +258 -0
- data/lib/propertyware/models/charge.rb +318 -0
- data/lib/propertyware/models/charge_tx.rb +401 -0
- data/lib/propertyware/models/check.rb +425 -0
- data/lib/propertyware/models/check_split.rb +284 -0
- data/lib/propertyware/models/comment.rb +269 -0
- data/lib/propertyware/models/contact.rb +546 -0
- data/lib/propertyware/models/conversation.rb +345 -0
- data/lib/propertyware/models/credit_card_account.rb +219 -0
- data/lib/propertyware/models/current_asset.rb +279 -0
- data/lib/propertyware/models/current_liability.rb +279 -0
- data/lib/propertyware/models/custom_field.rb +249 -0
- data/lib/propertyware/models/discount.rb +339 -0
- data/lib/propertyware/models/document.rb +362 -0
- data/lib/propertyware/models/entry.rb +297 -0
- data/lib/propertyware/models/equity.rb +289 -0
- data/lib/propertyware/models/error_response.rb +237 -0
- data/lib/propertyware/models/expense.rb +289 -0
- data/lib/propertyware/models/gl_item.rb +330 -0
- data/lib/propertyware/models/income.rb +299 -0
- data/lib/propertyware/models/inspection.rb +361 -0
- data/lib/propertyware/models/inspection_area.rb +241 -0
- data/lib/propertyware/models/inspection_item.rb +249 -0
- data/lib/propertyware/models/journal_entry.rb +311 -0
- data/lib/propertyware/models/journal_entry_split.rb +264 -0
- data/lib/propertyware/models/journal_entry_split_response.rb +263 -0
- data/lib/propertyware/models/late_fee_rule.rb +258 -0
- data/lib/propertyware/models/lease.rb +515 -0
- data/lib/propertyware/models/lease_clause.rb +238 -0
- data/lib/propertyware/models/lease_contact.rb +309 -0
- data/lib/propertyware/models/management_fee.rb +279 -0
- data/lib/propertyware/models/management_settings.rb +261 -0
- data/lib/propertyware/models/marketing.rb +439 -0
- data/lib/propertyware/models/non_current_asset.rb +259 -0
- data/lib/propertyware/models/non_current_liability.rb +279 -0
- data/lib/propertyware/models/non_operating_expense.rb +289 -0
- data/lib/propertyware/models/non_operating_inome.rb +289 -0
- data/lib/propertyware/models/note.rb +267 -0
- data/lib/propertyware/models/owner.rb +318 -0
- data/lib/propertyware/models/owner_contribution.rb +418 -0
- data/lib/propertyware/models/owner_draw.rb +398 -0
- data/lib/propertyware/models/payment.rb +423 -0
- data/lib/propertyware/models/payment_charge.rb +358 -0
- data/lib/propertyware/models/portfolio.rb +479 -0
- data/lib/propertyware/models/property_manager.rb +259 -0
- data/lib/propertyware/models/prospect.rb +701 -0
- data/lib/propertyware/models/refund.rb +384 -0
- data/lib/propertyware/models/response_entity.rb +260 -0
- data/lib/propertyware/models/restapi_bulk_error_response.rb +237 -0
- data/lib/propertyware/models/restapi_bulk_success_response.rb +217 -0
- data/lib/propertyware/models/restapi_error.rb +226 -0
- data/lib/propertyware/models/save_account.rb +398 -0
- data/lib/propertyware/models/save_address.rb +274 -0
- data/lib/propertyware/models/save_adjustment.rb +269 -0
- data/lib/propertyware/models/save_auto_charge.rb +328 -0
- data/lib/propertyware/models/save_bank_deposit.rb +239 -0
- data/lib/propertyware/models/save_bill.rb +356 -0
- data/lib/propertyware/models/save_bill_payment.rb +314 -0
- data/lib/propertyware/models/save_bill_split.rb +319 -0
- data/lib/propertyware/models/save_building.rb +653 -0
- data/lib/propertyware/models/save_charge.rb +289 -0
- data/lib/propertyware/models/save_check.rb +291 -0
- data/lib/propertyware/models/save_check_split.rb +289 -0
- data/lib/propertyware/models/save_comment.rb +224 -0
- data/lib/propertyware/models/save_contact.rb +472 -0
- data/lib/propertyware/models/save_conversation.rb +273 -0
- data/lib/propertyware/models/save_credit.rb +271 -0
- data/lib/propertyware/models/save_discount.rb +289 -0
- data/lib/propertyware/models/save_journal_entry_split.rb +254 -0
- data/lib/propertyware/models/save_lease.rb +444 -0
- data/lib/propertyware/models/save_lease_journal_entry.rb +276 -0
- data/lib/propertyware/models/save_owner.rb +318 -0
- data/lib/propertyware/models/save_owner_contribution.rb +373 -0
- data/lib/propertyware/models/save_owner_draw.rb +334 -0
- data/lib/propertyware/models/save_payment.rb +373 -0
- data/lib/propertyware/models/save_portfolio.rb +379 -0
- data/lib/propertyware/models/save_prospect.rb +511 -0
- data/lib/propertyware/models/save_prospect_contact.rb +318 -0
- data/lib/propertyware/models/save_refund.rb +334 -0
- data/lib/propertyware/models/save_unit.rb +492 -0
- data/lib/propertyware/models/save_vendor.rb +379 -0
- data/lib/propertyware/models/save_work_order.rb +345 -0
- data/lib/propertyware/models/save_work_order_task.rb +284 -0
- data/lib/propertyware/models/split_paid.rb +298 -0
- data/lib/propertyware/models/split_pay.rb +228 -0
- data/lib/propertyware/models/task.rb +339 -0
- data/lib/propertyware/models/transaction.rb +433 -0
- data/lib/propertyware/models/unit.rb +670 -0
- data/lib/propertyware/models/update_lease_journal_entry.rb +276 -0
- data/lib/propertyware/models/vendor.rb +511 -0
- data/lib/propertyware/models/work_order.rb +557 -0
- data/lib/propertyware/version.rb +15 -0
- data/lib/propertyware.rb +158 -0
- data/openapitools.json +7 -0
- data/propertyware.gemspec +39 -0
- data/spec/api/accounting_api_spec.rb +239 -0
- data/spec/api/bills_api_spec.rb +260 -0
- data/spec/api/buildings_api_spec.rb +199 -0
- data/spec/api/contacts_api_spec.rb +159 -0
- data/spec/api/documents_api_spec.rb +77 -0
- data/spec/api/health_check_api_spec.rb +46 -0
- data/spec/api/inspections_api_spec.rb +68 -0
- data/spec/api/leases_api_spec.rb +579 -0
- data/spec/api/portfolios_api_spec.rb +147 -0
- data/spec/api/prospects_api_spec.rb +162 -0
- data/spec/api/units_api_spec.rb +176 -0
- data/spec/api/vendors_api_spec.rb +134 -0
- data/spec/api/work_orders_api_spec.rb +180 -0
- data/spec/api_client_spec.rb +223 -0
- data/spec/configuration_spec.rb +82 -0
- data/spec/models/account_spec.rb +232 -0
- data/spec/models/address_spec.rb +64 -0
- data/spec/models/amenity_spec.rb +52 -0
- data/spec/models/auto_journal_entry_spec.rb +118 -0
- data/spec/models/auto_payment_spec.rb +106 -0
- data/spec/models/bank_deposit_spec.rb +76 -0
- data/spec/models/bank_spec.rb +136 -0
- data/spec/models/basic_vendor_spec.rb +100 -0
- data/spec/models/bill_paid_spec.rb +52 -0
- data/spec/models/bill_pay_spec.rb +40 -0
- data/spec/models/bill_payment_spec.rb +118 -0
- data/spec/models/bill_spec.rb +142 -0
- data/spec/models/bill_split_spec.rb +106 -0
- data/spec/models/building_spec.rb +344 -0
- data/spec/models/campaign_source_spec.rb +58 -0
- data/spec/models/campaign_spec.rb +160 -0
- data/spec/models/charge_spec.rb +88 -0
- data/spec/models/charge_tx_spec.rb +136 -0
- data/spec/models/check_spec.rb +128 -0
- data/spec/models/check_split_spec.rb +70 -0
- data/spec/models/comment_spec.rb +64 -0
- data/spec/models/contact_spec.rb +210 -0
- data/spec/models/conversation_spec.rb +92 -0
- data/spec/models/credit_card_account_spec.rb +34 -0
- data/spec/models/current_asset_spec.rb +70 -0
- data/spec/models/current_liability_spec.rb +70 -0
- data/spec/models/custom_field_spec.rb +52 -0
- data/spec/models/discount_spec.rb +100 -0
- data/spec/models/document_spec.rb +104 -0
- data/spec/models/entry_spec.rb +82 -0
- data/spec/models/equity_spec.rb +76 -0
- data/spec/models/error_response_spec.rb +46 -0
- data/spec/models/expense_spec.rb +76 -0
- data/spec/models/gl_item_spec.rb +100 -0
- data/spec/models/income_spec.rb +82 -0
- data/spec/models/inspection_area_spec.rb +46 -0
- data/spec/models/inspection_item_spec.rb +52 -0
- data/spec/models/inspection_spec.rb +118 -0
- data/spec/models/journal_entry_spec.rb +88 -0
- data/spec/models/journal_entry_split_response_spec.rb +52 -0
- data/spec/models/journal_entry_split_spec.rb +52 -0
- data/spec/models/late_fee_rule_spec.rb +58 -0
- data/spec/models/lease_clause_spec.rb +46 -0
- data/spec/models/lease_contact_spec.rb +88 -0
- data/spec/models/lease_spec.rb +208 -0
- data/spec/models/management_fee_spec.rb +70 -0
- data/spec/models/management_settings_spec.rb +58 -0
- data/spec/models/marketing_spec.rb +166 -0
- data/spec/models/non_current_asset_spec.rb +58 -0
- data/spec/models/non_current_liability_spec.rb +70 -0
- data/spec/models/non_operating_expense_spec.rb +76 -0
- data/spec/models/non_operating_inome_spec.rb +76 -0
- data/spec/models/note_spec.rb +64 -0
- data/spec/models/owner_contribution_spec.rb +116 -0
- data/spec/models/owner_draw_spec.rb +116 -0
- data/spec/models/owner_spec.rb +94 -0
- data/spec/models/payment_charge_spec.rb +92 -0
- data/spec/models/payment_spec.rb +134 -0
- data/spec/models/portfolio_spec.rb +168 -0
- data/spec/models/property_manager_spec.rb +58 -0
- data/spec/models/prospect_spec.rb +322 -0
- data/spec/models/refund_spec.rb +112 -0
- data/spec/models/response_entity_spec.rb +44 -0
- data/spec/models/restapi_bulk_error_response_spec.rb +46 -0
- data/spec/models/restapi_bulk_success_response_spec.rb +34 -0
- data/spec/models/restapi_error_spec.rb +40 -0
- data/spec/models/save_account_spec.rb +136 -0
- data/spec/models/save_address_spec.rb +64 -0
- data/spec/models/save_adjustment_spec.rb +58 -0
- data/spec/models/save_auto_charge_spec.rb +68 -0
- data/spec/models/save_bank_deposit_spec.rb +40 -0
- data/spec/models/save_bill_payment_spec.rb +74 -0
- data/spec/models/save_bill_spec.rb +106 -0
- data/spec/models/save_bill_split_spec.rb +88 -0
- data/spec/models/save_building_spec.rb +248 -0
- data/spec/models/save_charge_spec.rb +64 -0
- data/spec/models/save_check_spec.rb +70 -0
- data/spec/models/save_check_split_spec.rb +70 -0
- data/spec/models/save_comment_spec.rb +34 -0
- data/spec/models/save_contact_spec.rb +164 -0
- data/spec/models/save_conversation_spec.rb +44 -0
- data/spec/models/save_credit_spec.rb +58 -0
- data/spec/models/save_discount_spec.rb +64 -0
- data/spec/models/save_journal_entry_split_spec.rb +46 -0
- data/spec/models/save_lease_journal_entry_spec.rb +58 -0
- data/spec/models/save_lease_spec.rb +134 -0
- data/spec/models/save_owner_contribution_spec.rb +86 -0
- data/spec/models/save_owner_draw_spec.rb +82 -0
- data/spec/models/save_owner_spec.rb +88 -0
- data/spec/models/save_payment_spec.rb +86 -0
- data/spec/models/save_portfolio_spec.rb +102 -0
- data/spec/models/save_prospect_contact_spec.rb +88 -0
- data/spec/models/save_prospect_spec.rb +208 -0
- data/spec/models/save_refund_spec.rb +82 -0
- data/spec/models/save_unit_spec.rb +164 -0
- data/spec/models/save_vendor_spec.rb +118 -0
- data/spec/models/save_work_order_spec.rb +92 -0
- data/spec/models/save_work_order_task_spec.rb +70 -0
- data/spec/models/split_paid_spec.rb +82 -0
- data/spec/models/split_pay_spec.rb +40 -0
- data/spec/models/task_spec.rb +106 -0
- data/spec/models/transaction_spec.rb +146 -0
- data/spec/models/unit_spec.rb +280 -0
- data/spec/models/update_lease_journal_entry_spec.rb +58 -0
- data/spec/models/vendor_spec.rb +208 -0
- data/spec/models/work_order_spec.rb +218 -0
- data/spec/spec_helper.rb +111 -0
- metadata +609 -0
data/docs/VendorsApi.md
ADDED
@@ -0,0 +1,617 @@
|
|
1
|
+
# Propertyware::VendorsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.propertyware.com/pw/api/rest/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create_vendor**](VendorsApi.md#create_vendor) | **POST** /vendors | Create a vendor (BETA) |
|
8
|
+
| [**create_vendors**](VendorsApi.md#create_vendors) | **POST** /vendors/bulk | Create Vendors in bulk (BETA) |
|
9
|
+
| [**get_vendor**](VendorsApi.md#get_vendor) | **GET** /vendors/{vendorID} | Retrieve a vendor |
|
10
|
+
| [**get_vendor_account**](VendorsApi.md#get_vendor_account) | **GET** /vendors/{vendorID}/account | Retrieve vendor GL account (BETA) |
|
11
|
+
| [**get_vendor_conversation**](VendorsApi.md#get_vendor_conversation) | **GET** /vendors/{vendorID}/conversations/{conversationID} | Retrieve a vendor conversation |
|
12
|
+
| [**get_vendor_conversations**](VendorsApi.md#get_vendor_conversations) | **GET** /vendors/{vendorID}/conversations | Retrieve all vendor conversations |
|
13
|
+
| [**get_vendors**](VendorsApi.md#get_vendors) | **GET** /vendors | Retrieve all vendors |
|
14
|
+
|
15
|
+
|
16
|
+
## create_vendor
|
17
|
+
|
18
|
+
> <Vendor> create_vendor(save_vendor)
|
19
|
+
|
20
|
+
Create a vendor (BETA)
|
21
|
+
|
22
|
+
<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 vendor.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">VENDORS</span> - <code>Write</code>
|
23
|
+
|
24
|
+
### Examples
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
require 'time'
|
28
|
+
require 'propertyware'
|
29
|
+
# setup authorization
|
30
|
+
Propertyware.configure do |config|
|
31
|
+
# Configure API key authorization: organizationId
|
32
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
33
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
34
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
35
|
+
|
36
|
+
# Configure API key authorization: clientId
|
37
|
+
config.api_key['clientId'] = '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['clientId'] = 'Bearer'
|
40
|
+
|
41
|
+
# Configure API key authorization: clientSecret
|
42
|
+
config.api_key['clientSecret'] = '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['clientSecret'] = 'Bearer'
|
45
|
+
end
|
46
|
+
|
47
|
+
api_instance = Propertyware::VendorsApi.new
|
48
|
+
save_vendor = Propertyware::SaveVendor.new({company_name: 'company_name_example', name: 'name_example', name_on_check: 'name_on_check_example', vendor_type: 'vendor_type_example'}) # SaveVendor | saveVendor
|
49
|
+
|
50
|
+
begin
|
51
|
+
# Create a vendor (BETA)
|
52
|
+
result = api_instance.create_vendor(save_vendor)
|
53
|
+
p result
|
54
|
+
rescue Propertyware::ApiError => e
|
55
|
+
puts "Error when calling VendorsApi->create_vendor: #{e}"
|
56
|
+
end
|
57
|
+
```
|
58
|
+
|
59
|
+
#### Using the create_vendor_with_http_info variant
|
60
|
+
|
61
|
+
This returns an Array which contains the response data, status code and headers.
|
62
|
+
|
63
|
+
> <Array(<Vendor>, Integer, Hash)> create_vendor_with_http_info(save_vendor)
|
64
|
+
|
65
|
+
```ruby
|
66
|
+
begin
|
67
|
+
# Create a vendor (BETA)
|
68
|
+
data, status_code, headers = api_instance.create_vendor_with_http_info(save_vendor)
|
69
|
+
p status_code # => 2xx
|
70
|
+
p headers # => { ... }
|
71
|
+
p data # => <Vendor>
|
72
|
+
rescue Propertyware::ApiError => e
|
73
|
+
puts "Error when calling VendorsApi->create_vendor_with_http_info: #{e}"
|
74
|
+
end
|
75
|
+
```
|
76
|
+
|
77
|
+
### Parameters
|
78
|
+
|
79
|
+
| Name | Type | Description | Notes |
|
80
|
+
| ---- | ---- | ----------- | ----- |
|
81
|
+
| **save_vendor** | [**SaveVendor**](SaveVendor.md) | saveVendor | |
|
82
|
+
|
83
|
+
### Return type
|
84
|
+
|
85
|
+
[**Vendor**](Vendor.md)
|
86
|
+
|
87
|
+
### Authorization
|
88
|
+
|
89
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
90
|
+
|
91
|
+
### HTTP request headers
|
92
|
+
|
93
|
+
- **Content-Type**: application/json
|
94
|
+
- **Accept**: application/json
|
95
|
+
|
96
|
+
|
97
|
+
## create_vendors
|
98
|
+
|
99
|
+
> <Array<RESTAPIBulkSuccessResponse>> create_vendors(save_vendor)
|
100
|
+
|
101
|
+
Create Vendors in bulk (BETA)
|
102
|
+
|
103
|
+
<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 Vendors in bulk.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">VENDORS</span> - <code>Write</code>
|
104
|
+
|
105
|
+
### Examples
|
106
|
+
|
107
|
+
```ruby
|
108
|
+
require 'time'
|
109
|
+
require 'propertyware'
|
110
|
+
# setup authorization
|
111
|
+
Propertyware.configure do |config|
|
112
|
+
# Configure API key authorization: organizationId
|
113
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
114
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
115
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
116
|
+
|
117
|
+
# Configure API key authorization: clientId
|
118
|
+
config.api_key['clientId'] = '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['clientId'] = 'Bearer'
|
121
|
+
|
122
|
+
# Configure API key authorization: clientSecret
|
123
|
+
config.api_key['clientSecret'] = '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['clientSecret'] = 'Bearer'
|
126
|
+
end
|
127
|
+
|
128
|
+
api_instance = Propertyware::VendorsApi.new
|
129
|
+
save_vendor = [Propertyware::SaveVendor.new({company_name: 'company_name_example', name: 'name_example', name_on_check: 'name_on_check_example', vendor_type: 'vendor_type_example'})] # Array<SaveVendor> | saveVendor
|
130
|
+
|
131
|
+
begin
|
132
|
+
# Create Vendors in bulk (BETA)
|
133
|
+
result = api_instance.create_vendors(save_vendor)
|
134
|
+
p result
|
135
|
+
rescue Propertyware::ApiError => e
|
136
|
+
puts "Error when calling VendorsApi->create_vendors: #{e}"
|
137
|
+
end
|
138
|
+
```
|
139
|
+
|
140
|
+
#### Using the create_vendors_with_http_info variant
|
141
|
+
|
142
|
+
This returns an Array which contains the response data, status code and headers.
|
143
|
+
|
144
|
+
> <Array(<Array<RESTAPIBulkSuccessResponse>>, Integer, Hash)> create_vendors_with_http_info(save_vendor)
|
145
|
+
|
146
|
+
```ruby
|
147
|
+
begin
|
148
|
+
# Create Vendors in bulk (BETA)
|
149
|
+
data, status_code, headers = api_instance.create_vendors_with_http_info(save_vendor)
|
150
|
+
p status_code # => 2xx
|
151
|
+
p headers # => { ... }
|
152
|
+
p data # => <Array<RESTAPIBulkSuccessResponse>>
|
153
|
+
rescue Propertyware::ApiError => e
|
154
|
+
puts "Error when calling VendorsApi->create_vendors_with_http_info: #{e}"
|
155
|
+
end
|
156
|
+
```
|
157
|
+
|
158
|
+
### Parameters
|
159
|
+
|
160
|
+
| Name | Type | Description | Notes |
|
161
|
+
| ---- | ---- | ----------- | ----- |
|
162
|
+
| **save_vendor** | [**Array<SaveVendor>**](SaveVendor.md) | saveVendor | |
|
163
|
+
|
164
|
+
### Return type
|
165
|
+
|
166
|
+
[**Array<RESTAPIBulkSuccessResponse>**](RESTAPIBulkSuccessResponse.md)
|
167
|
+
|
168
|
+
### Authorization
|
169
|
+
|
170
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
171
|
+
|
172
|
+
### HTTP request headers
|
173
|
+
|
174
|
+
- **Content-Type**: application/json
|
175
|
+
- **Accept**: application/json
|
176
|
+
|
177
|
+
|
178
|
+
## get_vendor
|
179
|
+
|
180
|
+
> <Vendor> get_vendor(vendor_id, opts)
|
181
|
+
|
182
|
+
Retrieve a vendor
|
183
|
+
|
184
|
+
Retrieves a specific vendor.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">VENDORS</span> - <code>Read</code>
|
185
|
+
|
186
|
+
### Examples
|
187
|
+
|
188
|
+
```ruby
|
189
|
+
require 'time'
|
190
|
+
require 'propertyware'
|
191
|
+
# setup authorization
|
192
|
+
Propertyware.configure do |config|
|
193
|
+
# Configure API key authorization: organizationId
|
194
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
195
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
196
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
197
|
+
|
198
|
+
# Configure API key authorization: clientId
|
199
|
+
config.api_key['clientId'] = '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['clientId'] = 'Bearer'
|
202
|
+
|
203
|
+
# Configure API key authorization: clientSecret
|
204
|
+
config.api_key['clientSecret'] = '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['clientSecret'] = 'Bearer'
|
207
|
+
end
|
208
|
+
|
209
|
+
api_instance = Propertyware::VendorsApi.new
|
210
|
+
vendor_id = 789 # Integer | Vendor ID
|
211
|
+
opts = {
|
212
|
+
include_custom_fields: true # Boolean | includeCustomFields
|
213
|
+
}
|
214
|
+
|
215
|
+
begin
|
216
|
+
# Retrieve a vendor
|
217
|
+
result = api_instance.get_vendor(vendor_id, opts)
|
218
|
+
p result
|
219
|
+
rescue Propertyware::ApiError => e
|
220
|
+
puts "Error when calling VendorsApi->get_vendor: #{e}"
|
221
|
+
end
|
222
|
+
```
|
223
|
+
|
224
|
+
#### Using the get_vendor_with_http_info variant
|
225
|
+
|
226
|
+
This returns an Array which contains the response data, status code and headers.
|
227
|
+
|
228
|
+
> <Array(<Vendor>, Integer, Hash)> get_vendor_with_http_info(vendor_id, opts)
|
229
|
+
|
230
|
+
```ruby
|
231
|
+
begin
|
232
|
+
# Retrieve a vendor
|
233
|
+
data, status_code, headers = api_instance.get_vendor_with_http_info(vendor_id, opts)
|
234
|
+
p status_code # => 2xx
|
235
|
+
p headers # => { ... }
|
236
|
+
p data # => <Vendor>
|
237
|
+
rescue Propertyware::ApiError => e
|
238
|
+
puts "Error when calling VendorsApi->get_vendor_with_http_info: #{e}"
|
239
|
+
end
|
240
|
+
```
|
241
|
+
|
242
|
+
### Parameters
|
243
|
+
|
244
|
+
| Name | Type | Description | Notes |
|
245
|
+
| ---- | ---- | ----------- | ----- |
|
246
|
+
| **vendor_id** | **Integer** | Vendor ID | |
|
247
|
+
| **include_custom_fields** | **Boolean** | includeCustomFields | [optional][default to true] |
|
248
|
+
|
249
|
+
### Return type
|
250
|
+
|
251
|
+
[**Vendor**](Vendor.md)
|
252
|
+
|
253
|
+
### Authorization
|
254
|
+
|
255
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
256
|
+
|
257
|
+
### HTTP request headers
|
258
|
+
|
259
|
+
- **Content-Type**: Not defined
|
260
|
+
- **Accept**: application/json
|
261
|
+
|
262
|
+
|
263
|
+
## get_vendor_account
|
264
|
+
|
265
|
+
> <Account> get_vendor_account(vendor_id)
|
266
|
+
|
267
|
+
Retrieve vendor GL account (BETA)
|
268
|
+
|
269
|
+
<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 the default general ledger account of a vendor.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">VENDORS</span> - <code>Read</code>
|
270
|
+
|
271
|
+
### Examples
|
272
|
+
|
273
|
+
```ruby
|
274
|
+
require 'time'
|
275
|
+
require 'propertyware'
|
276
|
+
# setup authorization
|
277
|
+
Propertyware.configure do |config|
|
278
|
+
# Configure API key authorization: organizationId
|
279
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
280
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
281
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
282
|
+
|
283
|
+
# Configure API key authorization: clientId
|
284
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
285
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
286
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
287
|
+
|
288
|
+
# Configure API key authorization: clientSecret
|
289
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
290
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
291
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
292
|
+
end
|
293
|
+
|
294
|
+
api_instance = Propertyware::VendorsApi.new
|
295
|
+
vendor_id = 789 # Integer | Vendor ID
|
296
|
+
|
297
|
+
begin
|
298
|
+
# Retrieve vendor GL account (BETA)
|
299
|
+
result = api_instance.get_vendor_account(vendor_id)
|
300
|
+
p result
|
301
|
+
rescue Propertyware::ApiError => e
|
302
|
+
puts "Error when calling VendorsApi->get_vendor_account: #{e}"
|
303
|
+
end
|
304
|
+
```
|
305
|
+
|
306
|
+
#### Using the get_vendor_account_with_http_info variant
|
307
|
+
|
308
|
+
This returns an Array which contains the response data, status code and headers.
|
309
|
+
|
310
|
+
> <Array(<Account>, Integer, Hash)> get_vendor_account_with_http_info(vendor_id)
|
311
|
+
|
312
|
+
```ruby
|
313
|
+
begin
|
314
|
+
# Retrieve vendor GL account (BETA)
|
315
|
+
data, status_code, headers = api_instance.get_vendor_account_with_http_info(vendor_id)
|
316
|
+
p status_code # => 2xx
|
317
|
+
p headers # => { ... }
|
318
|
+
p data # => <Account>
|
319
|
+
rescue Propertyware::ApiError => e
|
320
|
+
puts "Error when calling VendorsApi->get_vendor_account_with_http_info: #{e}"
|
321
|
+
end
|
322
|
+
```
|
323
|
+
|
324
|
+
### Parameters
|
325
|
+
|
326
|
+
| Name | Type | Description | Notes |
|
327
|
+
| ---- | ---- | ----------- | ----- |
|
328
|
+
| **vendor_id** | **Integer** | Vendor ID | |
|
329
|
+
|
330
|
+
### Return type
|
331
|
+
|
332
|
+
[**Account**](Account.md)
|
333
|
+
|
334
|
+
### Authorization
|
335
|
+
|
336
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
337
|
+
|
338
|
+
### HTTP request headers
|
339
|
+
|
340
|
+
- **Content-Type**: Not defined
|
341
|
+
- **Accept**: application/json
|
342
|
+
|
343
|
+
|
344
|
+
## get_vendor_conversation
|
345
|
+
|
346
|
+
> <Conversation> get_vendor_conversation(vendor_id, conversation_id)
|
347
|
+
|
348
|
+
Retrieve a vendor conversation
|
349
|
+
|
350
|
+
Retrieves a specific vendor conversation.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">VENDORS</span> - <code>Read</code>
|
351
|
+
|
352
|
+
### Examples
|
353
|
+
|
354
|
+
```ruby
|
355
|
+
require 'time'
|
356
|
+
require 'propertyware'
|
357
|
+
# setup authorization
|
358
|
+
Propertyware.configure do |config|
|
359
|
+
# Configure API key authorization: organizationId
|
360
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
361
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
362
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
363
|
+
|
364
|
+
# Configure API key authorization: clientId
|
365
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
366
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
367
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
368
|
+
|
369
|
+
# Configure API key authorization: clientSecret
|
370
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
371
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
372
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
373
|
+
end
|
374
|
+
|
375
|
+
api_instance = Propertyware::VendorsApi.new
|
376
|
+
vendor_id = 789 # Integer | Vendor ID
|
377
|
+
conversation_id = 789 # Integer | Conversation ID
|
378
|
+
|
379
|
+
begin
|
380
|
+
# Retrieve a vendor conversation
|
381
|
+
result = api_instance.get_vendor_conversation(vendor_id, conversation_id)
|
382
|
+
p result
|
383
|
+
rescue Propertyware::ApiError => e
|
384
|
+
puts "Error when calling VendorsApi->get_vendor_conversation: #{e}"
|
385
|
+
end
|
386
|
+
```
|
387
|
+
|
388
|
+
#### Using the get_vendor_conversation_with_http_info variant
|
389
|
+
|
390
|
+
This returns an Array which contains the response data, status code and headers.
|
391
|
+
|
392
|
+
> <Array(<Conversation>, Integer, Hash)> get_vendor_conversation_with_http_info(vendor_id, conversation_id)
|
393
|
+
|
394
|
+
```ruby
|
395
|
+
begin
|
396
|
+
# Retrieve a vendor conversation
|
397
|
+
data, status_code, headers = api_instance.get_vendor_conversation_with_http_info(vendor_id, conversation_id)
|
398
|
+
p status_code # => 2xx
|
399
|
+
p headers # => { ... }
|
400
|
+
p data # => <Conversation>
|
401
|
+
rescue Propertyware::ApiError => e
|
402
|
+
puts "Error when calling VendorsApi->get_vendor_conversation_with_http_info: #{e}"
|
403
|
+
end
|
404
|
+
```
|
405
|
+
|
406
|
+
### Parameters
|
407
|
+
|
408
|
+
| Name | Type | Description | Notes |
|
409
|
+
| ---- | ---- | ----------- | ----- |
|
410
|
+
| **vendor_id** | **Integer** | Vendor ID | |
|
411
|
+
| **conversation_id** | **Integer** | Conversation ID | |
|
412
|
+
|
413
|
+
### Return type
|
414
|
+
|
415
|
+
[**Conversation**](Conversation.md)
|
416
|
+
|
417
|
+
### Authorization
|
418
|
+
|
419
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
420
|
+
|
421
|
+
### HTTP request headers
|
422
|
+
|
423
|
+
- **Content-Type**: Not defined
|
424
|
+
- **Accept**: application/json
|
425
|
+
|
426
|
+
|
427
|
+
## get_vendor_conversations
|
428
|
+
|
429
|
+
> <Array<Conversation>> get_vendor_conversations(vendor_id, opts)
|
430
|
+
|
431
|
+
Retrieve all vendor conversations
|
432
|
+
|
433
|
+
Retrieves all the conversations of a vendor.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">VENDORS</span> - <code>Read</code> <br/><br/><b>Sortable by:</b> <code>createddate</code>, <code>lastmodifieddatetime</code>, <code>id</code>
|
434
|
+
|
435
|
+
### Examples
|
436
|
+
|
437
|
+
```ruby
|
438
|
+
require 'time'
|
439
|
+
require 'propertyware'
|
440
|
+
# setup authorization
|
441
|
+
Propertyware.configure do |config|
|
442
|
+
# Configure API key authorization: organizationId
|
443
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
444
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
445
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
446
|
+
|
447
|
+
# Configure API key authorization: clientId
|
448
|
+
config.api_key['clientId'] = '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['clientId'] = 'Bearer'
|
451
|
+
|
452
|
+
# Configure API key authorization: clientSecret
|
453
|
+
config.api_key['clientSecret'] = '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['clientSecret'] = 'Bearer'
|
456
|
+
end
|
457
|
+
|
458
|
+
api_instance = Propertyware::VendorsApi.new
|
459
|
+
vendor_id = 789 # Integer | Vendor ID
|
460
|
+
opts = {
|
461
|
+
offset: 56, # Integer | `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0.
|
462
|
+
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.
|
463
|
+
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.
|
464
|
+
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.
|
465
|
+
orderby: 'orderby_example', # String | Indicates the field(s) and direction to sort the results in the response.
|
466
|
+
type: 'MANAGEMENT_TEAM' # String | Filters results by the conversation type.
|
467
|
+
}
|
468
|
+
|
469
|
+
begin
|
470
|
+
# Retrieve all vendor conversations
|
471
|
+
result = api_instance.get_vendor_conversations(vendor_id, opts)
|
472
|
+
p result
|
473
|
+
rescue Propertyware::ApiError => e
|
474
|
+
puts "Error when calling VendorsApi->get_vendor_conversations: #{e}"
|
475
|
+
end
|
476
|
+
```
|
477
|
+
|
478
|
+
#### Using the get_vendor_conversations_with_http_info variant
|
479
|
+
|
480
|
+
This returns an Array which contains the response data, status code and headers.
|
481
|
+
|
482
|
+
> <Array(<Array<Conversation>>, Integer, Hash)> get_vendor_conversations_with_http_info(vendor_id, opts)
|
483
|
+
|
484
|
+
```ruby
|
485
|
+
begin
|
486
|
+
# Retrieve all vendor conversations
|
487
|
+
data, status_code, headers = api_instance.get_vendor_conversations_with_http_info(vendor_id, opts)
|
488
|
+
p status_code # => 2xx
|
489
|
+
p headers # => { ... }
|
490
|
+
p data # => <Array<Conversation>>
|
491
|
+
rescue Propertyware::ApiError => e
|
492
|
+
puts "Error when calling VendorsApi->get_vendor_conversations_with_http_info: #{e}"
|
493
|
+
end
|
494
|
+
```
|
495
|
+
|
496
|
+
### Parameters
|
497
|
+
|
498
|
+
| Name | Type | Description | Notes |
|
499
|
+
| ---- | ---- | ----------- | ----- |
|
500
|
+
| **vendor_id** | **Integer** | Vendor ID | |
|
501
|
+
| **offset** | **Integer** | `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0. | [optional] |
|
502
|
+
| **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] |
|
503
|
+
| **last_modified_date_time_start** | **Time** | Filters results to any item modified on or after the date time specified. | [optional] |
|
504
|
+
| **last_modified_date_time_end** | **Time** | Filters results to any item modified on or prior to the date time specified. | [optional] |
|
505
|
+
| **orderby** | **String** | Indicates the field(s) and direction to sort the results in the response. | [optional] |
|
506
|
+
| **type** | **String** | Filters results by the conversation type. | [optional] |
|
507
|
+
|
508
|
+
### Return type
|
509
|
+
|
510
|
+
[**Array<Conversation>**](Conversation.md)
|
511
|
+
|
512
|
+
### Authorization
|
513
|
+
|
514
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
515
|
+
|
516
|
+
### HTTP request headers
|
517
|
+
|
518
|
+
- **Content-Type**: Not defined
|
519
|
+
- **Accept**: application/json
|
520
|
+
|
521
|
+
|
522
|
+
## get_vendors
|
523
|
+
|
524
|
+
> <Array<Vendor>> get_vendors(opts)
|
525
|
+
|
526
|
+
Retrieve all vendors
|
527
|
+
|
528
|
+
Retrieves a list of vendors.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">VENDORS</span> - <code>Read</code> <br/><br/><b>Sortable by:</b> <code>createddate</code>, <code>vendortype</code>, <code>lastmodifieddatetime</code>, <code>id</code>
|
529
|
+
|
530
|
+
### Examples
|
531
|
+
|
532
|
+
```ruby
|
533
|
+
require 'time'
|
534
|
+
require 'propertyware'
|
535
|
+
# setup authorization
|
536
|
+
Propertyware.configure do |config|
|
537
|
+
# Configure API key authorization: organizationId
|
538
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
539
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
540
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
541
|
+
|
542
|
+
# Configure API key authorization: clientId
|
543
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
544
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
545
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
546
|
+
|
547
|
+
# Configure API key authorization: clientSecret
|
548
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
549
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
550
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
551
|
+
end
|
552
|
+
|
553
|
+
api_instance = Propertyware::VendorsApi.new
|
554
|
+
opts = {
|
555
|
+
offset: 56, # Integer | `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0.
|
556
|
+
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.
|
557
|
+
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.
|
558
|
+
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.
|
559
|
+
orderby: 'orderby_example', # String | Indicates the field(s) and direction to sort the results in the response.
|
560
|
+
active: true, # Boolean | Filters results by the vendor's status. If no value is specified, vendors with any status will be returned.
|
561
|
+
type: 'type_example', # String | Filters results to units with a specific type.
|
562
|
+
include_custom_fields: true # Boolean | includeCustomFields
|
563
|
+
}
|
564
|
+
|
565
|
+
begin
|
566
|
+
# Retrieve all vendors
|
567
|
+
result = api_instance.get_vendors(opts)
|
568
|
+
p result
|
569
|
+
rescue Propertyware::ApiError => e
|
570
|
+
puts "Error when calling VendorsApi->get_vendors: #{e}"
|
571
|
+
end
|
572
|
+
```
|
573
|
+
|
574
|
+
#### Using the get_vendors_with_http_info variant
|
575
|
+
|
576
|
+
This returns an Array which contains the response data, status code and headers.
|
577
|
+
|
578
|
+
> <Array(<Array<Vendor>>, Integer, Hash)> get_vendors_with_http_info(opts)
|
579
|
+
|
580
|
+
```ruby
|
581
|
+
begin
|
582
|
+
# Retrieve all vendors
|
583
|
+
data, status_code, headers = api_instance.get_vendors_with_http_info(opts)
|
584
|
+
p status_code # => 2xx
|
585
|
+
p headers # => { ... }
|
586
|
+
p data # => <Array<Vendor>>
|
587
|
+
rescue Propertyware::ApiError => e
|
588
|
+
puts "Error when calling VendorsApi->get_vendors_with_http_info: #{e}"
|
589
|
+
end
|
590
|
+
```
|
591
|
+
|
592
|
+
### Parameters
|
593
|
+
|
594
|
+
| Name | Type | Description | Notes |
|
595
|
+
| ---- | ---- | ----------- | ----- |
|
596
|
+
| **offset** | **Integer** | `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0. | [optional] |
|
597
|
+
| **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] |
|
598
|
+
| **last_modified_date_time_start** | **Time** | Filters results to any item modified on or after the date time specified. | [optional] |
|
599
|
+
| **last_modified_date_time_end** | **Time** | Filters results to any item modified on or prior to the date time specified. | [optional] |
|
600
|
+
| **orderby** | **String** | Indicates the field(s) and direction to sort the results in the response. | [optional] |
|
601
|
+
| **active** | **Boolean** | Filters results by the vendor's status. If no value is specified, vendors with any status will be returned. | [optional] |
|
602
|
+
| **type** | **String** | Filters results to units with a specific type. | [optional] |
|
603
|
+
| **include_custom_fields** | **Boolean** | includeCustomFields | [optional][default to false] |
|
604
|
+
|
605
|
+
### Return type
|
606
|
+
|
607
|
+
[**Array<Vendor>**](Vendor.md)
|
608
|
+
|
609
|
+
### Authorization
|
610
|
+
|
611
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
612
|
+
|
613
|
+
### HTTP request headers
|
614
|
+
|
615
|
+
- **Content-Type**: Not defined
|
616
|
+
- **Accept**: application/json
|
617
|
+
|
data/docs/WorkOrder.md
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
# Propertyware::WorkOrder
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **age** | **Integer** | Number of days that have passed since the work order was created. | [optional] |
|
8
|
+
| **assigned_vendors** | [**Array<BasicVendor>**](BasicVendor.md) | List of vendors attached to the work order. | [optional] |
|
9
|
+
| **authorize_enter** | **String** | Indicates if the tenant has granted your management staff access to enter his or her buildings and/or units. | [optional] |
|
10
|
+
| **building_id** | **Integer** | Id of the building associated with this work order. | [optional] |
|
11
|
+
| **category** | **String** | This classifies the work order into a category. | [optional] |
|
12
|
+
| **completed_date** | **Date** | Date on which the work was completed. | [optional] |
|
13
|
+
| **contract_number** | **String** | Contract number. | [optional] |
|
14
|
+
| **cost_estimate** | **Float** | This indicates the estimated cost as entered by a person, the actual cost as determined by the work order bills, and the invoiced amount is the amount the owner will see on his or her statement based on the bill and markup/discount amount. | [optional] |
|
15
|
+
| **created_by** | **String** | User who created the record. | [optional] |
|
16
|
+
| **created_date_time** | **Time** | Date and time the record was created. (Timezone: UTC) | [optional] |
|
17
|
+
| **custom_fields** | [**Array<CustomField>**](CustomField.md) | Custom fields. | [optional] |
|
18
|
+
| **description** | **String** | This is a detailed description of the problem. | [optional] |
|
19
|
+
| **hour_estimate** | **Float** | Expected number of hours to complete the work order. | [optional] |
|
20
|
+
| **id** | **Integer** | Unique identifier. | [optional] |
|
21
|
+
| **last_modified_by** | **String** | User who last modified the record. | [optional] |
|
22
|
+
| **last_modified_date_time** | **Time** | Date and time the record was last modified. (Timezone: UTC) | [optional] |
|
23
|
+
| **lease** | **String** | If the work order is attached to an occupied building or unit, this is the lease name of that lease. | [optional] |
|
24
|
+
| **location** | **String** | Buildings and/or units associated with this work order. | [optional] |
|
25
|
+
| **maintenance_notice** | **String** | Maintenance notice defined for the building that the work order is attached to. | [optional] |
|
26
|
+
| **managed_by** | **String** | Name of the person who is responsible for managing the work order. | [optional] |
|
27
|
+
| **number** | **Integer** | Number assigned to this work order. | [optional] |
|
28
|
+
| **portfolio_id** | **Integer** | Id of the portfolio associated with this work order. | [optional] |
|
29
|
+
| **priority** | **String** | This identifies the priority of the work order as low, medium, or high. | [optional] |
|
30
|
+
| **requested_by** | **String** | This identifies the person that reported the problem, typically the tenant or owner associated with the buildings or units. | [optional] |
|
31
|
+
| **required_materials** | **String** | List of materials required to complete the work order. | [optional] |
|
32
|
+
| **scheduled_end_date** | **Date** | Date on which the work is scheduled to be completed. | [optional] |
|
33
|
+
| **source** | **String** | This identifies how the problem was reported, such as telephone, in person, email, etc. | [optional] |
|
34
|
+
| **specific_location** | **String** | This describes the location in the buildings or units where the work is needed. | [optional] |
|
35
|
+
| **start_date** | **Date** | Date on which the work was started. | [optional] |
|
36
|
+
| **status** | **String** | Current status of the work order. | [optional] |
|
37
|
+
| **type** | **String** | This classifies the work order into one of the following types: general, service request, turnover, inspection, estimate etc. | [optional] |
|
38
|
+
|
39
|
+
## Example
|
40
|
+
|
41
|
+
```ruby
|
42
|
+
require 'propertyware'
|
43
|
+
|
44
|
+
instance = Propertyware::WorkOrder.new(
|
45
|
+
age: null,
|
46
|
+
assigned_vendors: null,
|
47
|
+
authorize_enter: null,
|
48
|
+
building_id: null,
|
49
|
+
category: null,
|
50
|
+
completed_date: null,
|
51
|
+
contract_number: null,
|
52
|
+
cost_estimate: null,
|
53
|
+
created_by: null,
|
54
|
+
created_date_time: null,
|
55
|
+
custom_fields: null,
|
56
|
+
description: null,
|
57
|
+
hour_estimate: null,
|
58
|
+
id: null,
|
59
|
+
last_modified_by: null,
|
60
|
+
last_modified_date_time: null,
|
61
|
+
lease: null,
|
62
|
+
location: null,
|
63
|
+
maintenance_notice: null,
|
64
|
+
managed_by: null,
|
65
|
+
number: null,
|
66
|
+
portfolio_id: null,
|
67
|
+
priority: null,
|
68
|
+
requested_by: null,
|
69
|
+
required_materials: null,
|
70
|
+
scheduled_end_date: null,
|
71
|
+
source: null,
|
72
|
+
specific_location: null,
|
73
|
+
start_date: null,
|
74
|
+
status: null,
|
75
|
+
type: null
|
76
|
+
)
|
77
|
+
```
|
78
|
+
|