Module: BaseCRM
- Defined in:
- lib/basecrm/models/tag.rb,
lib/basecrm.rb,
lib/basecrm/sync.rb,
lib/basecrm/model.rb,
lib/basecrm/errors.rb,
lib/basecrm/version.rb,
lib/basecrm/envelope.rb,
lib/basecrm/http_client.rb,
lib/basecrm/models/call.rb,
lib/basecrm/models/deal.rb,
lib/basecrm/models/lead.rb,
lib/basecrm/models/meta.rb,
lib/basecrm/models/note.rb,
lib/basecrm/models/task.rb,
lib/basecrm/models/user.rb,
lib/basecrm/models/order.rb,
lib/basecrm/models/price.rb,
lib/basecrm/models/stage.rb,
lib/basecrm/models/visit.rb,
lib/basecrm/configuration.rb,
lib/basecrm/models/source.rb,
lib/basecrm/models/account.rb,
lib/basecrm/models/address.rb,
lib/basecrm/models/contact.rb,
lib/basecrm/models/product.rb,
lib/basecrm/utils/coercion.rb,
lib/basecrm/models/pipeline.rb,
lib/basecrm/models/line_item.rb,
lib/basecrm/models/sync_meta.rb,
lib/basecrm/models/sync_queue.rb,
lib/basecrm/models/deal_source.rb,
lib/basecrm/models/lead_source.rb,
lib/basecrm/models/loss_reason.rb,
lib/basecrm/paginated_resource.rb,
lib/basecrm/models/call_outcome.rb,
lib/basecrm/models/sync_session.rb,
lib/basecrm/models/text_message.rb,
lib/basecrm/models/visit_outcome.rb,
lib/basecrm/services/sync_service.rb,
lib/basecrm/services/tags_service.rb,
lib/basecrm/services/calls_service.rb,
lib/basecrm/services/deals_service.rb,
lib/basecrm/services/leads_service.rb,
lib/basecrm/services/notes_service.rb,
lib/basecrm/services/tasks_service.rb,
lib/basecrm/services/users_service.rb,
lib/basecrm/middlewares/raise_error.rb,
lib/basecrm/services/orders_service.rb,
lib/basecrm/services/stages_service.rb,
lib/basecrm/services/visits_service.rb,
lib/basecrm/services/sources_service.rb,
lib/basecrm/models/associated_contact.rb,
lib/basecrm/services/accounts_service.rb,
lib/basecrm/services/contacts_service.rb,
lib/basecrm/services/products_service.rb,
lib/basecrm/services/pipelines_service.rb,
lib/basecrm/services/line_items_service.rb,
lib/basecrm/services/deal_sources_service.rb,
lib/basecrm/services/lead_sources_service.rb,
lib/basecrm/services/loss_reasons_service.rb,
lib/basecrm/middlewares/oauth_bearer_token.rb,
lib/basecrm/models/deal_unqualified_reason.rb,
lib/basecrm/models/lead_unqualified_reason.rb,
lib/basecrm/services/call_outcomes_service.rb,
lib/basecrm/services/text_messages_service.rb,
lib/basecrm/services/visit_outcomes_service.rb,
lib/basecrm/services/associated_contacts_service.rb,
lib/basecrm/services/deal_unqualified_reasons_service.rb,
lib/basecrm/services/lead_unqualified_reasons_service.rb
Overview
WARNING: This code is auto-generated from the BaseCRM API Discovery JSON Schema
Defined Under Namespace
Modules: Envelope, Middlewares Classes: Account, AccountsService, Address, AssociatedContact, AssociatedContactsService, BaseError, Call, CallOutcome, CallOutcomesService, CallsService, Client, Coercion, Configuration, ConfigurationError, ConnectionError, Contact, ContactsService, Deal, DealSource, DealSourcesService, DealUnqualifiedReason, DealUnqualifiedReasonsService, DealsService, ErrorsCollection, HttpClient, Lead, LeadSource, LeadSourcesService, LeadUnqualifiedReason, LeadUnqualifiedReasonsService, LeadsService, LineItem, LineItemsService, LossReason, LossReasonsService, Meta, Model, Note, NotesService, Order, OrdersService, PaginatedResource, Pipeline, PipelinesService, Price, Product, ProductsService, RequestError, ResourceError, ServerError, Source, SourcesService, Stage, StagesService, Sync, SyncMeta, SyncQueue, SyncService, SyncSession, Tag, TagsService, Task, TasksService, TextMessage, TextMessagesService, User, UsersService, Visit, VisitOutcome, VisitOutcomesService, VisitsService
Constant Summary collapse
- VERSION =
"2.0.0"
Instance Attribute Summary collapse
-
#active ⇒ Boolean
Indicator of whether the product is active.
- #address ⇒ Address
-
#amount ⇒ Integer
Price amount.
-
#associated_deal_ids ⇒ Array<Integer>
An array of ids of deals associated to the text message.
-
#category ⇒ String
The unique category name of the stage.
-
#city ⇒ String
City name.
-
#completed ⇒ Boolean
Indicator of whether the task is completed or not.
-
#completed_at ⇒ DateTime
readonly
Date and time of the task’s completion in UTC (ISO8601 format).
-
#confirmed ⇒ Boolean
readonly
Indicates whether the user’s account has been confirmed or not.
-
#contact_id ⇒ Integer
Unique identifier of the contact to be associated with the deal.
-
#content ⇒ String
Content of the text message.
-
#cost ⇒ Integer
Cost of the product.
-
#cost_currency ⇒ String
Currency of the product cost, specified in 3-character currency code (ISO4217) format.
-
#country ⇒ String
Country name.
-
#created_at ⇒ DateTime
readonly
Date and time of creation in UTC ISO8601 format.
-
#creator_id ⇒ Integer
readonly
Unique identifier of the user the lead unqualified reason was created by.
-
#currency ⇒ String
Currency of value and price, specified in 3-character currency code (ISO4217) format.
-
#custom_fields ⇒ Hash
Custom fields are a key-value pair attached to a contact.
-
#customer_status ⇒ String
The customer status of the contact.
-
#deal_id ⇒ Integer
ID of the deal the order is associated to.
-
#description ⇒ String
Description of the product.
-
#discount ⇒ Integer
Discount on the whole order in percents.
-
#due_date ⇒ DateTime
Date and time of creation in UTC (ISO8601 format).
-
#duration ⇒ Integer
Duration of the call in seconds.
-
#email ⇒ String
The contact’s email address.
-
#external_id ⇒ String
Unique identifier of a call from an external system.
-
#facebook ⇒ String
The contact’s Facebook nickname.
-
#fax ⇒ String
The contact’s fax number.
-
#first_name ⇒ String
First name of the contact.
-
#id ⇒ Integer
readonly
Unique identifier of the lead unqualified reason.
-
#incoming ⇒ Boolean
Indicator of whether the text message was incoming or not.
-
#industry ⇒ String
The contact’s industry.
-
#is_organization ⇒ Boolean
Indicator of whether or not this contact refers to an organization or an individual.
-
#last_name ⇒ String
Last name of the contact.
-
#likelihood ⇒ Integer
The likelihood that a deal will be won, set for the stage as percentage.
-
#line1 ⇒ String
Line 1 of the address e.g.
-
#linkedin ⇒ String
The contact’s Linkedin nickname.
-
#made_at ⇒ DateTime
Date and time of when the call was made (started) in UTC (ISO8601 format).
-
#max_discount ⇒ Integer
Maximum discount that can be applied to the product in percents.
-
#max_markup ⇒ Integer
Maximum markup that can be applied to the product in percents.
-
#missed ⇒ Boolean
Indicator of whether the call was missed (not answered) by the user or not.
-
#mobile ⇒ String
The contact’s mobile phone number.
-
#name ⇒ String
Human-friendly unqualified reason explanation.
-
#organization_name ⇒ String
Organization name of the lead.
-
#outcome_id ⇒ Integer
Unique identifier of a visit outcome.
-
#overdue ⇒ Boolean
readonly
Indicator for whether the task has passed the ‘due_date` or not.
-
#owner_id ⇒ Integer
The unique identifier of the user the contact is currently assigned to.
-
#pages ⇒ Integer
readonly
Number of pages to request.
-
#phone ⇒ String
The contact’s phone number.
-
#phone_number ⇒ String
Indicator of whether the call was incoming or not.
-
#pipeline_id ⇒ Integer
Unique identifier of the pipeline that contains this stage.
-
#position ⇒ Integer
The stage’s position in the pipeline.
-
#postal_code ⇒ String
Zip code or equivalent.
-
#price ⇒ Integer
Price of one unit of the product.
-
#prices ⇒ Array<Price>
Array specifying products prices in different currencies.
-
#product_id ⇒ Integer
Unique identifier of the product based on which line item is created.
-
#prospect_status ⇒ String
The prospect status of the contact.
-
#quantity ⇒ Integer
Quantity of the product included in this line item.
-
#queues ⇒ Array<SyncQueue>
readonly
A list of sync queues.
-
#recording_url ⇒ String
URL pointing to call recording.
-
#remind_at ⇒ DateTime
Date and time that we should send you a reminder in UTC (ISO8601 format).
-
#rep_location_verification_status ⇒ String
readonly
The status of the location verification of the device that created the visit (sales representative).
-
#resource_address ⇒ String
readonly
Address of the visit.
-
#resource_id ⇒ Integer
Unique identifier of the resource the text message is attached to.
-
#resource_phone_number ⇒ String
readonly
Phone number of a resource the text message was sent to/received by.
-
#resource_type ⇒ String
Name of a resource type the text message is attached to.
-
#role ⇒ String
Role name.
-
#sent_at ⇒ DateTime
readonly
Date and time of the message send time in UTC (ISO8601 format).
-
#sku ⇒ String
Stock Keeping Unit identification code.
-
#skype ⇒ String
The contact’s Skype nickname.
-
#source_id ⇒ Integer
Unique identifier of the Source.
-
#state ⇒ String
State name.
-
#status ⇒ String
Status of the user’s account.
-
#summary ⇒ String
Summary of the visit.
-
#sync ⇒ SyncMeta
readonly
An entity which represents sync metadata.
-
#tags ⇒ Array<String>
An array of tags for the contact.
-
#time_format ⇒ String
Time format used for the account.
-
#timezone ⇒ String
Timezone of the account as the offset from Coordinated Universal Time (UTC) in the format ‘UTC(+|-):[mm]`.
-
#title ⇒ String
The contact’s job title.
-
#total_count ⇒ Integer
readonly
Total number of items in the queue to synchronize.
-
#twitter ⇒ String
The contact’s Twitter handle.
-
#type ⇒ String
readonly
An entity type.
-
#upated_at ⇒ DateTime
readonly
Date and time of the last update in UTC (ISO8601 format).
-
#updated_at ⇒ DateTime
readonly
Date and time of the last update in UTC ISO8601 format.
-
#user_id ⇒ Integer
Unique identifier of a user who sent/received a text message.
-
#user_phone_number ⇒ String
readonly
Phone number of a user who sent/received a text message.
-
#value ⇒ Integer
Value of one unit of the product.
-
#variation ⇒ Integer
Variation of the product’s price for this line item.
-
#website ⇒ String
The contact’s website address.
Instance Attribute Details
#active ⇒ Boolean
Returns Indicator of whether the product is active. Line items cannot be created from inactive products.
|
# File 'lib/basecrm/models/stage.rb', line 15
|
#amount ⇒ Integer
Returns Price amount.
|
# File 'lib/basecrm/models/price.rb', line 6
|
#associated_deal_ids ⇒ Array<Integer>
Returns An array of ids of deals associated to the text message.
|
# File 'lib/basecrm/models/call.rb', line 12
|
#category ⇒ String
Returns The unique category name of the stage.
|
# File 'lib/basecrm/models/stage.rb', line 15
|
#city ⇒ String
Returns City name.
|
# File 'lib/basecrm/models/address.rb', line 6
|
#completed ⇒ Boolean
Returns Indicator of whether the task is completed or not.
|
# File 'lib/basecrm/models/task.rb', line 24
|
#completed_at ⇒ DateTime (readonly)
Returns Date and time of the task’s completion in UTC (ISO8601 format).
|
# File 'lib/basecrm/models/task.rb', line 5
|
#confirmed ⇒ Boolean (readonly)
Returns Indicates whether the user’s account has been confirmed or not.
|
# File 'lib/basecrm/models/user.rb', line 5
|
#contact_id ⇒ Integer
Returns Unique identifier of the contact to be associated with the deal.
|
# File 'lib/basecrm/models/contact.rb', line 18
|
#content ⇒ String
Returns Content of the text message.
|
# File 'lib/basecrm/models/note.rb', line 18
|
#cost ⇒ Integer
Returns Cost of the product. Visible only to account administrators.
|
# File 'lib/basecrm/models/product.rb', line 15
|
#cost_currency ⇒ String
Returns Currency of the product cost, specified in 3-character currency code (ISO4217) format. Visible only to account administrators.
|
# File 'lib/basecrm/models/product.rb', line 15
|
#country ⇒ String
Returns Country name.
|
# File 'lib/basecrm/models/address.rb', line 6
|
#created_at ⇒ DateTime (readonly)
Returns Date and time of creation in UTC ISO8601 format.
|
# File 'lib/basecrm/models/tag.rb', line 5
|
#creator_id ⇒ Integer (readonly)
Returns Unique identifier of the user the lead unqualified reason was created by.
|
# File 'lib/basecrm/models/tag.rb', line 5
|
#currency ⇒ String
Returns Currency of value and price, specified in 3-character currency code (ISO4217) format.
|
# File 'lib/basecrm/models/price.rb', line 6
|
#custom_fields ⇒ Hash
Returns Custom fields are a key-value pair attached to a contact. See more at [Custom Fields](/docs/rest/articles/requests#custom_fields). Note! You need to set Filterable on from Settings -> Contacts to be able to search by custom fields.
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#customer_status ⇒ String
Returns The customer status of the contact.
|
# File 'lib/basecrm/models/contact.rb', line 18
|
#deal_id ⇒ Integer
Returns ID of the deal the order is associated to.
|
# File 'lib/basecrm/models/order.rb', line 15
|
#description ⇒ String
Returns Description of the product. Value is copied from the product.
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#discount ⇒ Integer
Returns Discount on the whole order in percents.
|
# File 'lib/basecrm/models/order.rb', line 15
|
#due_date ⇒ DateTime
Returns Date and time of creation in UTC (ISO8601 format).
|
# File 'lib/basecrm/models/task.rb', line 24
|
#duration ⇒ Integer
Returns Duration of the call in seconds.
|
# File 'lib/basecrm/models/call.rb', line 12
|
#email ⇒ String
Returns The contact’s email address.
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#external_id ⇒ String
Returns Unique identifier of a call from an external system.
|
# File 'lib/basecrm/models/call.rb', line 12
|
#facebook ⇒ String
Returns The contact’s Facebook nickname.
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#fax ⇒ String
Returns The contact’s fax number.
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#first_name ⇒ String
Returns First name of the contact.
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#id ⇒ Integer (readonly)
Returns Unique identifier of the lead unqualified reason.
|
# File 'lib/basecrm/models/tag.rb', line 5
|
#incoming ⇒ Boolean
Returns Indicator of whether the text message was incoming or not.
|
# File 'lib/basecrm/models/call.rb', line 12
|
#industry ⇒ String
Returns The contact’s industry.
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#is_organization ⇒ Boolean
Returns Indicator of whether or not this contact refers to an organization or an individual. This value can be set only during creation and cannot be changed later. The default value is ‘false`.
|
# File 'lib/basecrm/models/contact.rb', line 18
|
#last_name ⇒ String
Returns Last name of the contact. Required only if the contact is an individual.
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#likelihood ⇒ Integer
Returns The likelihood that a deal will be won, set for the stage as percentage.
|
# File 'lib/basecrm/models/stage.rb', line 15
|
#line1 ⇒ String
Returns Line 1 of the address e.g. number, street, suite, apt #, etc.
|
# File 'lib/basecrm/models/address.rb', line 6
|
#linkedin ⇒ String
Returns The contact’s Linkedin nickname.
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#made_at ⇒ DateTime
Returns Date and time of when the call was made (started) in UTC (ISO8601 format).
|
# File 'lib/basecrm/models/call.rb', line 12
|
#max_discount ⇒ Integer
Returns Maximum discount that can be applied to the product in percents.
|
# File 'lib/basecrm/models/product.rb', line 15
|
#max_markup ⇒ Integer
Returns Maximum markup that can be applied to the product in percents.
|
# File 'lib/basecrm/models/product.rb', line 15
|
#missed ⇒ Boolean
Returns Indicator of whether the call was missed (not answered) by the user or not.
|
# File 'lib/basecrm/models/call.rb', line 12
|
#mobile ⇒ String
Returns The contact’s mobile phone number.
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#name ⇒ String
Returns Human-friendly unqualified reason explanation.
|
# File 'lib/basecrm/models/tag.rb', line 18
|
#organization_name ⇒ String
Returns Organization name of the lead. Required unless ‘last_name` field is provided.
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#outcome_id ⇒ Integer
Returns Unique identifier of a visit outcome.
|
# File 'lib/basecrm/models/call.rb', line 12
|
#overdue ⇒ Boolean (readonly)
Returns Indicator for whether the task has passed the ‘due_date` or not.
|
# File 'lib/basecrm/models/task.rb', line 5
|
#owner_id ⇒ Integer
Returns The unique identifier of the user the contact is currently assigned to.
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#pages ⇒ Integer (readonly)
Returns Number of pages to request.
|
# File 'lib/basecrm/models/sync_queue.rb', line 7
|
#phone ⇒ String
Returns The contact’s phone number.
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#phone_number ⇒ String
Returns Indicator of whether the call was incoming or not.
|
# File 'lib/basecrm/models/call.rb', line 12
|
#pipeline_id ⇒ Integer
Returns Unique identifier of the pipeline that contains this stage.
|
# File 'lib/basecrm/models/stage.rb', line 15
|
#position ⇒ Integer
Returns The stage’s position in the pipeline.
|
# File 'lib/basecrm/models/stage.rb', line 15
|
#postal_code ⇒ String
Returns Zip code or equivalent.
|
# File 'lib/basecrm/models/address.rb', line 6
|
#price ⇒ Integer
Returns Price of one unit of the product. Value is copied from the product.
|
# File 'lib/basecrm/models/line_item.rb', line 24
|
#prices ⇒ Array<Price>
Returns Array specifying products prices in different currencies.
|
# File 'lib/basecrm/models/product.rb', line 15
|
#product_id ⇒ Integer
Returns Unique identifier of the product based on which line item is created. It is not available after creation.
|
# File 'lib/basecrm/models/line_item.rb', line 24
|
#prospect_status ⇒ String
Returns The prospect status of the contact.
|
# File 'lib/basecrm/models/contact.rb', line 18
|
#quantity ⇒ Integer
Returns Quantity of the product included in this line item. Default value is 1.
|
# File 'lib/basecrm/models/line_item.rb', line 24
|
#queues ⇒ Array<SyncQueue> (readonly)
Returns A list of sync queues.
|
# File 'lib/basecrm/models/sync_session.rb', line 7
|
#recording_url ⇒ String
Returns URL pointing to call recording.
|
# File 'lib/basecrm/models/call.rb', line 12
|
#remind_at ⇒ DateTime
Returns Date and time that we should send you a reminder in UTC (ISO8601 format).
|
# File 'lib/basecrm/models/task.rb', line 24
|
#rep_location_verification_status ⇒ String (readonly)
Returns The status of the location verification of the device that created the visit (sales representative).
|
# File 'lib/basecrm/models/visit.rb', line 5
|
#resource_address ⇒ String (readonly)
Returns Address of the visit.
|
# File 'lib/basecrm/models/visit.rb', line 5
|
#resource_id ⇒ Integer
Returns Unique identifier of the resource the text message is attached to.
|
# File 'lib/basecrm/models/call.rb', line 12
|
#resource_phone_number ⇒ String (readonly)
Returns Phone number of a resource the text message was sent to/received by.
|
# File 'lib/basecrm/models/text_message.rb', line 5
|
#resource_type ⇒ String
Returns Name of a resource type the text message is attached to.
|
# File 'lib/basecrm/models/tag.rb', line 18
|
#role ⇒ String
Returns Role name.
|
# File 'lib/basecrm/models/user.rb', line 5
|
#sent_at ⇒ DateTime (readonly)
Returns Date and time of the message send time in UTC (ISO8601 format).
|
# File 'lib/basecrm/models/text_message.rb', line 5
|
#sku ⇒ String
Returns Stock Keeping Unit identification code. Value is copied from the product.
|
# File 'lib/basecrm/models/product.rb', line 15
|
#skype ⇒ String
Returns The contact’s Skype nickname.
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#source_id ⇒ Integer
Returns Unique identifier of the Source.
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#state ⇒ String
Returns State name.
|
# File 'lib/basecrm/models/address.rb', line 6
|
#status ⇒ String
Returns Status of the user’s account. Usually ‘active`.
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#summary ⇒ String
Returns Summary of the visit.
|
# File 'lib/basecrm/models/call.rb', line 12
|
#sync ⇒ SyncMeta (readonly)
Returns An entity which represents sync metadata. See below for it’s attributes.
|
# File 'lib/basecrm/models/meta.rb', line 7
|
#tags ⇒ Array<String>
Returns An array of tags for the contact. See more at [Tags](/docs/rest/articles/requests#tags).
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#time_format ⇒ String
Returns Time format used for the account. Either 12-hour clock ‘12H` or 24-hour clock `24H`.
|
# File 'lib/basecrm/models/account.rb', line 15
|
#timezone ⇒ String
Returns Timezone of the account as the offset from Coordinated Universal Time (UTC) in the format ‘UTC(+|-):[mm]`.
|
# File 'lib/basecrm/models/account.rb', line 15
|
#title ⇒ String
Returns The contact’s job title.
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#total_count ⇒ Integer (readonly)
Returns Total number of items in the queue to synchronize.
|
# File 'lib/basecrm/models/sync_queue.rb', line 11
|
#twitter ⇒ String
Returns The contact’s Twitter handle.
|
# File 'lib/basecrm/models/lead.rb', line 18
|
#type ⇒ String (readonly)
Returns An entity type.
|
# File 'lib/basecrm/models/meta.rb', line 3
|
#upated_at ⇒ DateTime (readonly)
Returns Date and time of the last update in UTC (ISO8601 format).
|
# File 'lib/basecrm/models/call.rb', line 5
|
#updated_at ⇒ DateTime (readonly)
Returns Date and time of the last update in UTC ISO8601 format.
|
# File 'lib/basecrm/models/tag.rb', line 5
|
#user_id ⇒ Integer
Returns Unique identifier of a user who sent/received a text message.
|
# File 'lib/basecrm/models/call.rb', line 12
|
#user_phone_number ⇒ String (readonly)
Returns Phone number of a user who sent/received a text message.
|
# File 'lib/basecrm/models/text_message.rb', line 5
|
#value ⇒ Integer
Returns Value of one unit of the product. It is product’s price after applying markup.
|
# File 'lib/basecrm/models/line_item.rb', line 24
|
#variation ⇒ Integer
Returns Variation of the product’s price for this line item. Value of 5 means that 5% markup is added, -10 means there is a 10% discount.
|
# File 'lib/basecrm/models/line_item.rb', line 24
|
#website ⇒ String
Returns The contact’s website address.
|
# File 'lib/basecrm/models/lead.rb', line 18
|