Class: Landslider::WsSearchCriterion
- Inherits:
-
Object
- Object
- Landslider::WsSearchCriterion
- Defined in:
- lib/landslider/entities/ws_search_criterion.rb
Instance Attribute Summary collapse
- #field_id ⇒ String readonly
- #operator ⇒ String readonly
- #query_value ⇒ String readonly
Instance Method Summary collapse
-
#initialize(field_id, operator, query_value) ⇒ WsSearchCriterion
constructor
Currently Searchable Account Fields: * AccountId * AccountName * AccountNumber * AccountShortName * AccountType * AccountTypeId * ArchivedOn * BillingAddressCity * BillingAddressCountry * BillingAddressState * BillingAddressStreet * BillingAddressZip * CreatedById * CreatedDate * Division * Fax * LastUpdatedById * LastUpdatedDate * MainAddressCity * MainAddressCountry * MainAddressState * MainAddressStreet * MainAddressZip * NewsKeywords * OwnerId * ParentAccount * ParentAccountId * Phone * PrimaryContactId, * QuickbooksLastSynced * ShippingAddressCity * ShippingAddressCountry * ShippingAddressState * ShippingAddressStreet * ShippingAddressZip * SourceSystemId * SyncWithQuickBooks * Ticker * Url * acc_<custom_field_id>.
-
#soapify_for(msg) ⇒ Handsoap::XmlMason::Node
Adds the search criteria xml.
Constructor Details
#initialize(field_id, operator, query_value) ⇒ WsSearchCriterion
Currently Searchable Account Fields:
-
AccountId
-
AccountName
-
AccountNumber
-
AccountShortName
-
AccountType
-
AccountTypeId
-
ArchivedOn
-
BillingAddressCity
-
BillingAddressCountry
-
BillingAddressState
-
BillingAddressStreet
-
BillingAddressZip
-
CreatedById
-
CreatedDate
-
Division
-
Fax
-
LastUpdatedById
-
LastUpdatedDate
-
MainAddressCity
-
MainAddressCountry
-
MainAddressState
-
MainAddressStreet
-
MainAddressZip
-
NewsKeywords
-
OwnerId
-
ParentAccount
-
ParentAccountId
-
Phone
-
PrimaryContactId,
-
QuickbooksLastSynced
-
ShippingAddressCity
-
ShippingAddressCountry
-
ShippingAddressState
-
ShippingAddressStreet
-
ShippingAddressZip
-
SourceSystemId
-
SyncWithQuickBooks
-
Ticker
-
Url
-
acc_<custom_field_id>
Currently Searchable Opportunity Fields:
-
AccountId
-
AccountName
-
ArchivedOn, ClosedDate
-
ComputedConfidence
-
ComputedForecastDate
-
CreatedById
-
CreatedDate
-
CurrentPhaseId
-
CurrentPhaseName
-
DealValue
-
Description
-
IsHot
-
LastUpdatedById,
-
LastUpdatedDate
-
LeadSource
-
LeadSourceId
-
Name, OpportunityId
-
OverriddenConfidence
-
OverriddenForecastDate
-
OverrideComments
-
OwnerId
-
PaymentTerms
-
PaymentTermsId
-
QuickbooksLastSyncedQuickbooksTransactionType
-
SellingProcess
-
SellingProcessId
-
SourceSystemId
-
StartDate
-
Status
-
StatusId
-
StatusReason
-
StatusReasonId
-
SuspendedDate
-
opp_<custom_field_id>
Currently Searchable Duration Type Fields:
-
DurationType
-
DurationTypeId
Currently Searchable Product Family Fields:
-
Description
-
ParentProductFamily
-
ParentProductFamilyId
-
ProductFamily
-
ProductFamilyId
105 106 107 108 109 |
# File 'lib/landslider/entities/ws_search_criterion.rb', line 105 def initialize(field_id, operator, query_value) @field_id = field_id @operator = operator @query_value = query_value end |
Instance Attribute Details
#field_id ⇒ String (readonly)
6 7 8 |
# File 'lib/landslider/entities/ws_search_criterion.rb', line 6 def field_id @field_id end |
#operator ⇒ String (readonly)
6 7 8 |
# File 'lib/landslider/entities/ws_search_criterion.rb', line 6 def operator @operator end |
#query_value ⇒ String (readonly)
9 10 11 |
# File 'lib/landslider/entities/ws_search_criterion.rb', line 9 def query_value @query_value end |
Instance Method Details
#soapify_for(msg) ⇒ Handsoap::XmlMason::Node
Adds the search criteria xml
114 115 116 117 118 119 120 |
# File 'lib/landslider/entities/ws_search_criterion.rb', line 114 def soapify_for(msg) msg.add('searchCriteria') { |crit| crit.add 'fieldId', @field_id crit.add 'operator', @operator crit.add 'queryValue', @query_value unless @query_value.nil? } end |