Class: Landslider::WsSearchCriterion

Inherits:
Object
  • Object
show all
Defined in:
lib/landslider/entities/ws_search_criterion.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Parameters:

  • field_id (String)
  • operator (String, WsSearchOperator)

    Contains,SoundsLike,Equals,NotEquals LessThan,LessThanOrEqual,GreaterThan,GreaterThanOrEqual Empty,NotEmpty,True,False,In,NotIn

  • query_value (String, WsSearchOperator)

    string to search for



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_idString (readonly)

Returns:

  • (String)


6
7
8
# File 'lib/landslider/entities/ws_search_criterion.rb', line 6

def field_id
  @field_id
end

#operatorString (readonly)

Returns:

  • (String)


6
7
8
# File 'lib/landslider/entities/ws_search_criterion.rb', line 6

def operator
  @operator
end

#query_valueString (readonly)

Returns:

  • (String)


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

Parameters:

  • msg (Handsoap::XmlMason::Node)

    xml node

Returns:

  • (Handsoap::XmlMason::Node)


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