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,789 @@
|
|
1
|
+
# Propertyware::ProspectsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.propertyware.com/pw/api/rest/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create_contacts_using_post3**](ProspectsApi.md#create_contacts_using_post3) | **POST** /prospects/bulk | Create prospects in bulk (BETA) |
|
8
|
+
| [**create_prospect**](ProspectsApi.md#create_prospect) | **POST** /prospects | Create a prospect (BETA) |
|
9
|
+
| [**create_prospect_conversation**](ProspectsApi.md#create_prospect_conversation) | **POST** /prospects/{prospectID}/conversations | Create a prospect conversation (BETA) |
|
10
|
+
| [**delete_prospect_conversation**](ProspectsApi.md#delete_prospect_conversation) | **DELETE** /prospects/{prospectID}/conversations/{conversationID} | Delete a prospect conversation (BETA) |
|
11
|
+
| [**get_prospect**](ProspectsApi.md#get_prospect) | **GET** /prospects/{prospectID} | Retrieve a prospect |
|
12
|
+
| [**get_prospect_campaign**](ProspectsApi.md#get_prospect_campaign) | **GET** /prospects/{prospectID}/campaign | Retrieve prospect campaign |
|
13
|
+
| [**get_prospect_conversation**](ProspectsApi.md#get_prospect_conversation) | **GET** /prospects/{prospectID}/conversations/{conversationID} | Retrieve a prospect conversation |
|
14
|
+
| [**get_prospect_conversations**](ProspectsApi.md#get_prospect_conversations) | **GET** /prospects/{prospectID}/conversations | Retrieve all prospect conversations |
|
15
|
+
| [**get_prospects**](ProspectsApi.md#get_prospects) | **GET** /prospects | Retrieve all prospects |
|
16
|
+
|
17
|
+
|
18
|
+
## create_contacts_using_post3
|
19
|
+
|
20
|
+
> <Array<RESTAPIBulkSuccessResponse>> create_contacts_using_post3(save_prospect)
|
21
|
+
|
22
|
+
Create prospects in bulk (BETA)
|
23
|
+
|
24
|
+
<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 prospects in bulk.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">UNITS</span> - <code>Write</code>
|
25
|
+
|
26
|
+
### Examples
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
require 'time'
|
30
|
+
require 'propertyware'
|
31
|
+
# setup authorization
|
32
|
+
Propertyware.configure do |config|
|
33
|
+
# Configure API key authorization: organizationId
|
34
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
35
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
36
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
37
|
+
|
38
|
+
# Configure API key authorization: clientId
|
39
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
40
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
41
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
42
|
+
|
43
|
+
# Configure API key authorization: clientSecret
|
44
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
45
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
46
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
47
|
+
end
|
48
|
+
|
49
|
+
api_instance = Propertyware::ProspectsApi.new
|
50
|
+
save_prospect = [Propertyware::SaveProspect.new] # Array<SaveProspect> | saveProspect
|
51
|
+
|
52
|
+
begin
|
53
|
+
# Create prospects in bulk (BETA)
|
54
|
+
result = api_instance.create_contacts_using_post3(save_prospect)
|
55
|
+
p result
|
56
|
+
rescue Propertyware::ApiError => e
|
57
|
+
puts "Error when calling ProspectsApi->create_contacts_using_post3: #{e}"
|
58
|
+
end
|
59
|
+
```
|
60
|
+
|
61
|
+
#### Using the create_contacts_using_post3_with_http_info variant
|
62
|
+
|
63
|
+
This returns an Array which contains the response data, status code and headers.
|
64
|
+
|
65
|
+
> <Array(<Array<RESTAPIBulkSuccessResponse>>, Integer, Hash)> create_contacts_using_post3_with_http_info(save_prospect)
|
66
|
+
|
67
|
+
```ruby
|
68
|
+
begin
|
69
|
+
# Create prospects in bulk (BETA)
|
70
|
+
data, status_code, headers = api_instance.create_contacts_using_post3_with_http_info(save_prospect)
|
71
|
+
p status_code # => 2xx
|
72
|
+
p headers # => { ... }
|
73
|
+
p data # => <Array<RESTAPIBulkSuccessResponse>>
|
74
|
+
rescue Propertyware::ApiError => e
|
75
|
+
puts "Error when calling ProspectsApi->create_contacts_using_post3_with_http_info: #{e}"
|
76
|
+
end
|
77
|
+
```
|
78
|
+
|
79
|
+
### Parameters
|
80
|
+
|
81
|
+
| Name | Type | Description | Notes |
|
82
|
+
| ---- | ---- | ----------- | ----- |
|
83
|
+
| **save_prospect** | [**Array<SaveProspect>**](SaveProspect.md) | saveProspect | |
|
84
|
+
|
85
|
+
### Return type
|
86
|
+
|
87
|
+
[**Array<RESTAPIBulkSuccessResponse>**](RESTAPIBulkSuccessResponse.md)
|
88
|
+
|
89
|
+
### Authorization
|
90
|
+
|
91
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
92
|
+
|
93
|
+
### HTTP request headers
|
94
|
+
|
95
|
+
- **Content-Type**: application/json
|
96
|
+
- **Accept**: application/json
|
97
|
+
|
98
|
+
|
99
|
+
## create_prospect
|
100
|
+
|
101
|
+
> <Prospect> create_prospect(save_prospect)
|
102
|
+
|
103
|
+
Create a prospect (BETA)
|
104
|
+
|
105
|
+
<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 specific prospect.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">PROSPECTS</span> - <code>Write</code>
|
106
|
+
|
107
|
+
### Examples
|
108
|
+
|
109
|
+
```ruby
|
110
|
+
require 'time'
|
111
|
+
require 'propertyware'
|
112
|
+
# setup authorization
|
113
|
+
Propertyware.configure do |config|
|
114
|
+
# Configure API key authorization: organizationId
|
115
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
116
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
117
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
118
|
+
|
119
|
+
# Configure API key authorization: clientId
|
120
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
121
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
122
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
123
|
+
|
124
|
+
# Configure API key authorization: clientSecret
|
125
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
126
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
127
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
128
|
+
end
|
129
|
+
|
130
|
+
api_instance = Propertyware::ProspectsApi.new
|
131
|
+
save_prospect = Propertyware::SaveProspect.new # SaveProspect | saveProspect
|
132
|
+
|
133
|
+
begin
|
134
|
+
# Create a prospect (BETA)
|
135
|
+
result = api_instance.create_prospect(save_prospect)
|
136
|
+
p result
|
137
|
+
rescue Propertyware::ApiError => e
|
138
|
+
puts "Error when calling ProspectsApi->create_prospect: #{e}"
|
139
|
+
end
|
140
|
+
```
|
141
|
+
|
142
|
+
#### Using the create_prospect_with_http_info variant
|
143
|
+
|
144
|
+
This returns an Array which contains the response data, status code and headers.
|
145
|
+
|
146
|
+
> <Array(<Prospect>, Integer, Hash)> create_prospect_with_http_info(save_prospect)
|
147
|
+
|
148
|
+
```ruby
|
149
|
+
begin
|
150
|
+
# Create a prospect (BETA)
|
151
|
+
data, status_code, headers = api_instance.create_prospect_with_http_info(save_prospect)
|
152
|
+
p status_code # => 2xx
|
153
|
+
p headers # => { ... }
|
154
|
+
p data # => <Prospect>
|
155
|
+
rescue Propertyware::ApiError => e
|
156
|
+
puts "Error when calling ProspectsApi->create_prospect_with_http_info: #{e}"
|
157
|
+
end
|
158
|
+
```
|
159
|
+
|
160
|
+
### Parameters
|
161
|
+
|
162
|
+
| Name | Type | Description | Notes |
|
163
|
+
| ---- | ---- | ----------- | ----- |
|
164
|
+
| **save_prospect** | [**SaveProspect**](SaveProspect.md) | saveProspect | |
|
165
|
+
|
166
|
+
### Return type
|
167
|
+
|
168
|
+
[**Prospect**](Prospect.md)
|
169
|
+
|
170
|
+
### Authorization
|
171
|
+
|
172
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
173
|
+
|
174
|
+
### HTTP request headers
|
175
|
+
|
176
|
+
- **Content-Type**: application/json
|
177
|
+
- **Accept**: application/json
|
178
|
+
|
179
|
+
|
180
|
+
## create_prospect_conversation
|
181
|
+
|
182
|
+
> <Conversation> create_prospect_conversation(prospect_id, save_conversation)
|
183
|
+
|
184
|
+
Create a prospect conversation (BETA)
|
185
|
+
|
186
|
+
<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 specific prospect conversation.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">PROSPECTS</span> - <code>Write</code>
|
187
|
+
|
188
|
+
### Examples
|
189
|
+
|
190
|
+
```ruby
|
191
|
+
require 'time'
|
192
|
+
require 'propertyware'
|
193
|
+
# setup authorization
|
194
|
+
Propertyware.configure do |config|
|
195
|
+
# Configure API key authorization: organizationId
|
196
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
197
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
198
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
199
|
+
|
200
|
+
# Configure API key authorization: clientId
|
201
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
202
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
203
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
204
|
+
|
205
|
+
# Configure API key authorization: clientSecret
|
206
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
207
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
208
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
209
|
+
end
|
210
|
+
|
211
|
+
api_instance = Propertyware::ProspectsApi.new
|
212
|
+
prospect_id = 789 # Integer | Prospect ID
|
213
|
+
save_conversation = Propertyware::SaveConversation.new({text: 'text_example', type: 'MANAGEMENT_TEAM'}) # SaveConversation | saveConversation
|
214
|
+
|
215
|
+
begin
|
216
|
+
# Create a prospect conversation (BETA)
|
217
|
+
result = api_instance.create_prospect_conversation(prospect_id, save_conversation)
|
218
|
+
p result
|
219
|
+
rescue Propertyware::ApiError => e
|
220
|
+
puts "Error when calling ProspectsApi->create_prospect_conversation: #{e}"
|
221
|
+
end
|
222
|
+
```
|
223
|
+
|
224
|
+
#### Using the create_prospect_conversation_with_http_info variant
|
225
|
+
|
226
|
+
This returns an Array which contains the response data, status code and headers.
|
227
|
+
|
228
|
+
> <Array(<Conversation>, Integer, Hash)> create_prospect_conversation_with_http_info(prospect_id, save_conversation)
|
229
|
+
|
230
|
+
```ruby
|
231
|
+
begin
|
232
|
+
# Create a prospect conversation (BETA)
|
233
|
+
data, status_code, headers = api_instance.create_prospect_conversation_with_http_info(prospect_id, save_conversation)
|
234
|
+
p status_code # => 2xx
|
235
|
+
p headers # => { ... }
|
236
|
+
p data # => <Conversation>
|
237
|
+
rescue Propertyware::ApiError => e
|
238
|
+
puts "Error when calling ProspectsApi->create_prospect_conversation_with_http_info: #{e}"
|
239
|
+
end
|
240
|
+
```
|
241
|
+
|
242
|
+
### Parameters
|
243
|
+
|
244
|
+
| Name | Type | Description | Notes |
|
245
|
+
| ---- | ---- | ----------- | ----- |
|
246
|
+
| **prospect_id** | **Integer** | Prospect ID | |
|
247
|
+
| **save_conversation** | [**SaveConversation**](SaveConversation.md) | saveConversation | |
|
248
|
+
|
249
|
+
### Return type
|
250
|
+
|
251
|
+
[**Conversation**](Conversation.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**: application/json
|
260
|
+
- **Accept**: application/json
|
261
|
+
|
262
|
+
|
263
|
+
## delete_prospect_conversation
|
264
|
+
|
265
|
+
> <ResponseEntity> delete_prospect_conversation(prospect_id, conversation_id)
|
266
|
+
|
267
|
+
Delete a prospect conversation (BETA)
|
268
|
+
|
269
|
+
<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 prospect conversation.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">PROSPECTS</span> - <code>Delete</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::ProspectsApi.new
|
295
|
+
prospect_id = 789 # Integer | Prospect ID
|
296
|
+
conversation_id = 789 # Integer | Conversation ID
|
297
|
+
|
298
|
+
begin
|
299
|
+
# Delete a prospect conversation (BETA)
|
300
|
+
result = api_instance.delete_prospect_conversation(prospect_id, conversation_id)
|
301
|
+
p result
|
302
|
+
rescue Propertyware::ApiError => e
|
303
|
+
puts "Error when calling ProspectsApi->delete_prospect_conversation: #{e}"
|
304
|
+
end
|
305
|
+
```
|
306
|
+
|
307
|
+
#### Using the delete_prospect_conversation_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_prospect_conversation_with_http_info(prospect_id, conversation_id)
|
312
|
+
|
313
|
+
```ruby
|
314
|
+
begin
|
315
|
+
# Delete a prospect conversation (BETA)
|
316
|
+
data, status_code, headers = api_instance.delete_prospect_conversation_with_http_info(prospect_id, conversation_id)
|
317
|
+
p status_code # => 2xx
|
318
|
+
p headers # => { ... }
|
319
|
+
p data # => <ResponseEntity>
|
320
|
+
rescue Propertyware::ApiError => e
|
321
|
+
puts "Error when calling ProspectsApi->delete_prospect_conversation_with_http_info: #{e}"
|
322
|
+
end
|
323
|
+
```
|
324
|
+
|
325
|
+
### Parameters
|
326
|
+
|
327
|
+
| Name | Type | Description | Notes |
|
328
|
+
| ---- | ---- | ----------- | ----- |
|
329
|
+
| **prospect_id** | **Integer** | Prospect ID | |
|
330
|
+
| **conversation_id** | **Integer** | Conversation ID | |
|
331
|
+
|
332
|
+
### Return type
|
333
|
+
|
334
|
+
[**ResponseEntity**](ResponseEntity.md)
|
335
|
+
|
336
|
+
### Authorization
|
337
|
+
|
338
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
339
|
+
|
340
|
+
### HTTP request headers
|
341
|
+
|
342
|
+
- **Content-Type**: Not defined
|
343
|
+
- **Accept**: application/json
|
344
|
+
|
345
|
+
|
346
|
+
## get_prospect
|
347
|
+
|
348
|
+
> <Prospect> get_prospect(prospect_id, opts)
|
349
|
+
|
350
|
+
Retrieve a prospect
|
351
|
+
|
352
|
+
Retrieves a specific prospect.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">PROSPECTS</span> - <code>Read</code>
|
353
|
+
|
354
|
+
### Examples
|
355
|
+
|
356
|
+
```ruby
|
357
|
+
require 'time'
|
358
|
+
require 'propertyware'
|
359
|
+
# setup authorization
|
360
|
+
Propertyware.configure do |config|
|
361
|
+
# Configure API key authorization: organizationId
|
362
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
363
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
364
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
365
|
+
|
366
|
+
# Configure API key authorization: clientId
|
367
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
368
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
369
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
370
|
+
|
371
|
+
# Configure API key authorization: clientSecret
|
372
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
373
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
374
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
375
|
+
end
|
376
|
+
|
377
|
+
api_instance = Propertyware::ProspectsApi.new
|
378
|
+
prospect_id = 789 # Integer | Prospect ID
|
379
|
+
opts = {
|
380
|
+
include_custom_fields: true # Boolean | includeCustomFields
|
381
|
+
}
|
382
|
+
|
383
|
+
begin
|
384
|
+
# Retrieve a prospect
|
385
|
+
result = api_instance.get_prospect(prospect_id, opts)
|
386
|
+
p result
|
387
|
+
rescue Propertyware::ApiError => e
|
388
|
+
puts "Error when calling ProspectsApi->get_prospect: #{e}"
|
389
|
+
end
|
390
|
+
```
|
391
|
+
|
392
|
+
#### Using the get_prospect_with_http_info variant
|
393
|
+
|
394
|
+
This returns an Array which contains the response data, status code and headers.
|
395
|
+
|
396
|
+
> <Array(<Prospect>, Integer, Hash)> get_prospect_with_http_info(prospect_id, opts)
|
397
|
+
|
398
|
+
```ruby
|
399
|
+
begin
|
400
|
+
# Retrieve a prospect
|
401
|
+
data, status_code, headers = api_instance.get_prospect_with_http_info(prospect_id, opts)
|
402
|
+
p status_code # => 2xx
|
403
|
+
p headers # => { ... }
|
404
|
+
p data # => <Prospect>
|
405
|
+
rescue Propertyware::ApiError => e
|
406
|
+
puts "Error when calling ProspectsApi->get_prospect_with_http_info: #{e}"
|
407
|
+
end
|
408
|
+
```
|
409
|
+
|
410
|
+
### Parameters
|
411
|
+
|
412
|
+
| Name | Type | Description | Notes |
|
413
|
+
| ---- | ---- | ----------- | ----- |
|
414
|
+
| **prospect_id** | **Integer** | Prospect ID | |
|
415
|
+
| **include_custom_fields** | **Boolean** | includeCustomFields | [optional][default to true] |
|
416
|
+
|
417
|
+
### Return type
|
418
|
+
|
419
|
+
[**Prospect**](Prospect.md)
|
420
|
+
|
421
|
+
### Authorization
|
422
|
+
|
423
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
424
|
+
|
425
|
+
### HTTP request headers
|
426
|
+
|
427
|
+
- **Content-Type**: Not defined
|
428
|
+
- **Accept**: application/json
|
429
|
+
|
430
|
+
|
431
|
+
## get_prospect_campaign
|
432
|
+
|
433
|
+
> <Campaign> get_prospect_campaign(prospect_id)
|
434
|
+
|
435
|
+
Retrieve prospect campaign
|
436
|
+
|
437
|
+
Retrieves the campaign details of a prospect.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">PROSPECTS</span> - <code>Read</code>
|
438
|
+
|
439
|
+
### Examples
|
440
|
+
|
441
|
+
```ruby
|
442
|
+
require 'time'
|
443
|
+
require 'propertyware'
|
444
|
+
# setup authorization
|
445
|
+
Propertyware.configure do |config|
|
446
|
+
# Configure API key authorization: organizationId
|
447
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
448
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
449
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
450
|
+
|
451
|
+
# Configure API key authorization: clientId
|
452
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
453
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
454
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
455
|
+
|
456
|
+
# Configure API key authorization: clientSecret
|
457
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
458
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
459
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
460
|
+
end
|
461
|
+
|
462
|
+
api_instance = Propertyware::ProspectsApi.new
|
463
|
+
prospect_id = 789 # Integer | Prospect ID
|
464
|
+
|
465
|
+
begin
|
466
|
+
# Retrieve prospect campaign
|
467
|
+
result = api_instance.get_prospect_campaign(prospect_id)
|
468
|
+
p result
|
469
|
+
rescue Propertyware::ApiError => e
|
470
|
+
puts "Error when calling ProspectsApi->get_prospect_campaign: #{e}"
|
471
|
+
end
|
472
|
+
```
|
473
|
+
|
474
|
+
#### Using the get_prospect_campaign_with_http_info variant
|
475
|
+
|
476
|
+
This returns an Array which contains the response data, status code and headers.
|
477
|
+
|
478
|
+
> <Array(<Campaign>, Integer, Hash)> get_prospect_campaign_with_http_info(prospect_id)
|
479
|
+
|
480
|
+
```ruby
|
481
|
+
begin
|
482
|
+
# Retrieve prospect campaign
|
483
|
+
data, status_code, headers = api_instance.get_prospect_campaign_with_http_info(prospect_id)
|
484
|
+
p status_code # => 2xx
|
485
|
+
p headers # => { ... }
|
486
|
+
p data # => <Campaign>
|
487
|
+
rescue Propertyware::ApiError => e
|
488
|
+
puts "Error when calling ProspectsApi->get_prospect_campaign_with_http_info: #{e}"
|
489
|
+
end
|
490
|
+
```
|
491
|
+
|
492
|
+
### Parameters
|
493
|
+
|
494
|
+
| Name | Type | Description | Notes |
|
495
|
+
| ---- | ---- | ----------- | ----- |
|
496
|
+
| **prospect_id** | **Integer** | Prospect ID | |
|
497
|
+
|
498
|
+
### Return type
|
499
|
+
|
500
|
+
[**Campaign**](Campaign.md)
|
501
|
+
|
502
|
+
### Authorization
|
503
|
+
|
504
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
505
|
+
|
506
|
+
### HTTP request headers
|
507
|
+
|
508
|
+
- **Content-Type**: Not defined
|
509
|
+
- **Accept**: application/json
|
510
|
+
|
511
|
+
|
512
|
+
## get_prospect_conversation
|
513
|
+
|
514
|
+
> <Conversation> get_prospect_conversation(prospect_id, conversation_id)
|
515
|
+
|
516
|
+
Retrieve a prospect conversation
|
517
|
+
|
518
|
+
Retrieves a specific prospect conversation.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">PROSPECTS</span> - <code>Read</code>
|
519
|
+
|
520
|
+
### Examples
|
521
|
+
|
522
|
+
```ruby
|
523
|
+
require 'time'
|
524
|
+
require 'propertyware'
|
525
|
+
# setup authorization
|
526
|
+
Propertyware.configure do |config|
|
527
|
+
# Configure API key authorization: organizationId
|
528
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
529
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
530
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
531
|
+
|
532
|
+
# Configure API key authorization: clientId
|
533
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
534
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
535
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
536
|
+
|
537
|
+
# Configure API key authorization: clientSecret
|
538
|
+
config.api_key['clientSecret'] = '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['clientSecret'] = 'Bearer'
|
541
|
+
end
|
542
|
+
|
543
|
+
api_instance = Propertyware::ProspectsApi.new
|
544
|
+
prospect_id = 789 # Integer | Prospect ID
|
545
|
+
conversation_id = 789 # Integer | Conversation ID
|
546
|
+
|
547
|
+
begin
|
548
|
+
# Retrieve a prospect conversation
|
549
|
+
result = api_instance.get_prospect_conversation(prospect_id, conversation_id)
|
550
|
+
p result
|
551
|
+
rescue Propertyware::ApiError => e
|
552
|
+
puts "Error when calling ProspectsApi->get_prospect_conversation: #{e}"
|
553
|
+
end
|
554
|
+
```
|
555
|
+
|
556
|
+
#### Using the get_prospect_conversation_with_http_info variant
|
557
|
+
|
558
|
+
This returns an Array which contains the response data, status code and headers.
|
559
|
+
|
560
|
+
> <Array(<Conversation>, Integer, Hash)> get_prospect_conversation_with_http_info(prospect_id, conversation_id)
|
561
|
+
|
562
|
+
```ruby
|
563
|
+
begin
|
564
|
+
# Retrieve a prospect conversation
|
565
|
+
data, status_code, headers = api_instance.get_prospect_conversation_with_http_info(prospect_id, conversation_id)
|
566
|
+
p status_code # => 2xx
|
567
|
+
p headers # => { ... }
|
568
|
+
p data # => <Conversation>
|
569
|
+
rescue Propertyware::ApiError => e
|
570
|
+
puts "Error when calling ProspectsApi->get_prospect_conversation_with_http_info: #{e}"
|
571
|
+
end
|
572
|
+
```
|
573
|
+
|
574
|
+
### Parameters
|
575
|
+
|
576
|
+
| Name | Type | Description | Notes |
|
577
|
+
| ---- | ---- | ----------- | ----- |
|
578
|
+
| **prospect_id** | **Integer** | Prospect ID | |
|
579
|
+
| **conversation_id** | **Integer** | Conversation ID | |
|
580
|
+
|
581
|
+
### Return type
|
582
|
+
|
583
|
+
[**Conversation**](Conversation.md)
|
584
|
+
|
585
|
+
### Authorization
|
586
|
+
|
587
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
588
|
+
|
589
|
+
### HTTP request headers
|
590
|
+
|
591
|
+
- **Content-Type**: Not defined
|
592
|
+
- **Accept**: application/json
|
593
|
+
|
594
|
+
|
595
|
+
## get_prospect_conversations
|
596
|
+
|
597
|
+
> <Array<Conversation>> get_prospect_conversations(prospect_id, opts)
|
598
|
+
|
599
|
+
Retrieve all prospect conversations
|
600
|
+
|
601
|
+
Retrieves all the conversations of a prospect.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">PROSPECTS</span> - <code>Read</code> <br/><br/><b>Sortable by:</b> <code>createddate</code>, <code>lastmodifieddatetime</code>, <code>id</code>
|
602
|
+
|
603
|
+
### Examples
|
604
|
+
|
605
|
+
```ruby
|
606
|
+
require 'time'
|
607
|
+
require 'propertyware'
|
608
|
+
# setup authorization
|
609
|
+
Propertyware.configure do |config|
|
610
|
+
# Configure API key authorization: organizationId
|
611
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
612
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
613
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
614
|
+
|
615
|
+
# Configure API key authorization: clientId
|
616
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
617
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
618
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
619
|
+
|
620
|
+
# Configure API key authorization: clientSecret
|
621
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
622
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
623
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
624
|
+
end
|
625
|
+
|
626
|
+
api_instance = Propertyware::ProspectsApi.new
|
627
|
+
prospect_id = 789 # Integer | Prospect ID
|
628
|
+
opts = {
|
629
|
+
offset: 56, # Integer | `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0.
|
630
|
+
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.
|
631
|
+
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.
|
632
|
+
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.
|
633
|
+
orderby: 'orderby_example', # String | Indicates the field(s) and direction to sort the results in the response.
|
634
|
+
type: 'MANAGEMENT_TEAM' # String | Filters results by the conversation type.
|
635
|
+
}
|
636
|
+
|
637
|
+
begin
|
638
|
+
# Retrieve all prospect conversations
|
639
|
+
result = api_instance.get_prospect_conversations(prospect_id, opts)
|
640
|
+
p result
|
641
|
+
rescue Propertyware::ApiError => e
|
642
|
+
puts "Error when calling ProspectsApi->get_prospect_conversations: #{e}"
|
643
|
+
end
|
644
|
+
```
|
645
|
+
|
646
|
+
#### Using the get_prospect_conversations_with_http_info variant
|
647
|
+
|
648
|
+
This returns an Array which contains the response data, status code and headers.
|
649
|
+
|
650
|
+
> <Array(<Array<Conversation>>, Integer, Hash)> get_prospect_conversations_with_http_info(prospect_id, opts)
|
651
|
+
|
652
|
+
```ruby
|
653
|
+
begin
|
654
|
+
# Retrieve all prospect conversations
|
655
|
+
data, status_code, headers = api_instance.get_prospect_conversations_with_http_info(prospect_id, opts)
|
656
|
+
p status_code # => 2xx
|
657
|
+
p headers # => { ... }
|
658
|
+
p data # => <Array<Conversation>>
|
659
|
+
rescue Propertyware::ApiError => e
|
660
|
+
puts "Error when calling ProspectsApi->get_prospect_conversations_with_http_info: #{e}"
|
661
|
+
end
|
662
|
+
```
|
663
|
+
|
664
|
+
### Parameters
|
665
|
+
|
666
|
+
| Name | Type | Description | Notes |
|
667
|
+
| ---- | ---- | ----------- | ----- |
|
668
|
+
| **prospect_id** | **Integer** | Prospect ID | |
|
669
|
+
| **offset** | **Integer** | `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0. | [optional] |
|
670
|
+
| **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] |
|
671
|
+
| **last_modified_date_time_start** | **Time** | Filters results to any item modified on or after the date time specified. | [optional] |
|
672
|
+
| **last_modified_date_time_end** | **Time** | Filters results to any item modified on or prior to the date time specified. | [optional] |
|
673
|
+
| **orderby** | **String** | Indicates the field(s) and direction to sort the results in the response. | [optional] |
|
674
|
+
| **type** | **String** | Filters results by the conversation type. | [optional] |
|
675
|
+
|
676
|
+
### Return type
|
677
|
+
|
678
|
+
[**Array<Conversation>**](Conversation.md)
|
679
|
+
|
680
|
+
### Authorization
|
681
|
+
|
682
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
683
|
+
|
684
|
+
### HTTP request headers
|
685
|
+
|
686
|
+
- **Content-Type**: Not defined
|
687
|
+
- **Accept**: application/json
|
688
|
+
|
689
|
+
|
690
|
+
## get_prospects
|
691
|
+
|
692
|
+
> <Array<Prospect>> get_prospects(opts)
|
693
|
+
|
694
|
+
Retrieve all prospects
|
695
|
+
|
696
|
+
Retrieves a list of prospects.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">PROSPECTS</span> - <code>Read</code> <br/><br/><b>Sortable by:</b> <code>createddate</code>, <code>type</code>, <code>lastmodifieddatetime</code>, <code>status</code>, <code>id</code>
|
697
|
+
|
698
|
+
### Examples
|
699
|
+
|
700
|
+
```ruby
|
701
|
+
require 'time'
|
702
|
+
require 'propertyware'
|
703
|
+
# setup authorization
|
704
|
+
Propertyware.configure do |config|
|
705
|
+
# Configure API key authorization: organizationId
|
706
|
+
config.api_key['organizationId'] = 'YOUR API KEY'
|
707
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
708
|
+
# config.api_key_prefix['organizationId'] = 'Bearer'
|
709
|
+
|
710
|
+
# Configure API key authorization: clientId
|
711
|
+
config.api_key['clientId'] = 'YOUR API KEY'
|
712
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
713
|
+
# config.api_key_prefix['clientId'] = 'Bearer'
|
714
|
+
|
715
|
+
# Configure API key authorization: clientSecret
|
716
|
+
config.api_key['clientSecret'] = 'YOUR API KEY'
|
717
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
718
|
+
# config.api_key_prefix['clientSecret'] = 'Bearer'
|
719
|
+
end
|
720
|
+
|
721
|
+
api_instance = Propertyware::ProspectsApi.new
|
722
|
+
opts = {
|
723
|
+
offset: 56, # Integer | `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0.
|
724
|
+
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.
|
725
|
+
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.
|
726
|
+
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.
|
727
|
+
orderby: 'orderby_example', # String | Indicates the field(s) and direction to sort the results in the response.
|
728
|
+
status: 'status_example', # String | Filters results to prospects with a specific status.
|
729
|
+
portfolio_id: 789, # Integer | Filters results to prospects associated with a specific portfolio.
|
730
|
+
building_id: 789, # Integer | Filters results to prospects associated with a specific building.
|
731
|
+
type: 'type_example', # String | Filters results to prospects with a specific type.
|
732
|
+
include_custom_fields: true # Boolean | includeCustomFields
|
733
|
+
}
|
734
|
+
|
735
|
+
begin
|
736
|
+
# Retrieve all prospects
|
737
|
+
result = api_instance.get_prospects(opts)
|
738
|
+
p result
|
739
|
+
rescue Propertyware::ApiError => e
|
740
|
+
puts "Error when calling ProspectsApi->get_prospects: #{e}"
|
741
|
+
end
|
742
|
+
```
|
743
|
+
|
744
|
+
#### Using the get_prospects_with_http_info variant
|
745
|
+
|
746
|
+
This returns an Array which contains the response data, status code and headers.
|
747
|
+
|
748
|
+
> <Array(<Array<Prospect>>, Integer, Hash)> get_prospects_with_http_info(opts)
|
749
|
+
|
750
|
+
```ruby
|
751
|
+
begin
|
752
|
+
# Retrieve all prospects
|
753
|
+
data, status_code, headers = api_instance.get_prospects_with_http_info(opts)
|
754
|
+
p status_code # => 2xx
|
755
|
+
p headers # => { ... }
|
756
|
+
p data # => <Array<Prospect>>
|
757
|
+
rescue Propertyware::ApiError => e
|
758
|
+
puts "Error when calling ProspectsApi->get_prospects_with_http_info: #{e}"
|
759
|
+
end
|
760
|
+
```
|
761
|
+
|
762
|
+
### Parameters
|
763
|
+
|
764
|
+
| Name | Type | Description | Notes |
|
765
|
+
| ---- | ---- | ----------- | ----- |
|
766
|
+
| **offset** | **Integer** | `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0. | [optional] |
|
767
|
+
| **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] |
|
768
|
+
| **last_modified_date_time_start** | **Time** | Filters results to any item modified on or after the date time specified. | [optional] |
|
769
|
+
| **last_modified_date_time_end** | **Time** | Filters results to any item modified on or prior to the date time specified. | [optional] |
|
770
|
+
| **orderby** | **String** | Indicates the field(s) and direction to sort the results in the response. | [optional] |
|
771
|
+
| **status** | **String** | Filters results to prospects with a specific status. | [optional] |
|
772
|
+
| **portfolio_id** | **Integer** | Filters results to prospects associated with a specific portfolio. | [optional] |
|
773
|
+
| **building_id** | **Integer** | Filters results to prospects associated with a specific building. | [optional] |
|
774
|
+
| **type** | **String** | Filters results to prospects with a specific type. | [optional] |
|
775
|
+
| **include_custom_fields** | **Boolean** | includeCustomFields | [optional][default to false] |
|
776
|
+
|
777
|
+
### Return type
|
778
|
+
|
779
|
+
[**Array<Prospect>**](Prospect.md)
|
780
|
+
|
781
|
+
### Authorization
|
782
|
+
|
783
|
+
[organizationId](../README.md#organizationId), [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret)
|
784
|
+
|
785
|
+
### HTTP request headers
|
786
|
+
|
787
|
+
- **Content-Type**: Not defined
|
788
|
+
- **Accept**: application/json
|
789
|
+
|