landslider 0.4.0 → 0.4.1
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.
- data/VERSION.yml +1 -1
- data/landslider.gemspec +1 -1
- data/lib/landslider.rb +12 -12
- data/test/landslider_test.rb +1 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
data/landslider.gemspec
CHANGED
data/lib/landslider.rb
CHANGED
@@ -53,7 +53,7 @@ class Landslider < Handsoap::Service
|
|
53
53
|
response = invoke("getAccounts", :soap_action => :none) do |message|
|
54
54
|
message.add('accountsRequest') { |ar|
|
55
55
|
ar.add 'firstResultPosition', 1
|
56
|
-
ar.add 'totalResultsRequested',
|
56
|
+
ar.add 'totalResultsRequested', 25
|
57
57
|
ar.add('searchCriteria') { |sc|
|
58
58
|
# just find accounts with an empty main city
|
59
59
|
|
@@ -95,14 +95,14 @@ class Landslider < Handsoap::Service
|
|
95
95
|
|
96
96
|
ans.add 'accountId', account_id
|
97
97
|
ans.add 'firstResultPosition', 1
|
98
|
-
ans.add 'totalResultsRequested',
|
98
|
+
ans.add 'totalResultsRequested', 25
|
99
99
|
|
100
|
-
ans.add('searchCriteria') { |sc|
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
}
|
100
|
+
# ans.add('searchCriteria') { |sc|
|
101
|
+
# # just find accounts with an empty main city
|
102
|
+
#
|
103
|
+
# sc.add 'fieldId', 'MainAddressCity'
|
104
|
+
# sc.add 'operator', 'Empty'
|
105
|
+
# }
|
106
106
|
}
|
107
107
|
end
|
108
108
|
node = response.document.xpath('//ns:getAccountNotesResponse', ns)
|
@@ -126,7 +126,7 @@ class Landslider < Handsoap::Service
|
|
126
126
|
message.add('contactNote') { |ans|
|
127
127
|
ans.add 'contactId', contact_id
|
128
128
|
ans.add 'firstResultPosition', 1
|
129
|
-
ans.add 'totalResultsRequested',
|
129
|
+
ans.add 'totalResultsRequested', 25
|
130
130
|
}
|
131
131
|
end
|
132
132
|
node = response.document.xpath('//ns:getContactNotesResponse', ns)
|
@@ -151,7 +151,7 @@ class Landslider < Handsoap::Service
|
|
151
151
|
message.add('leadRequest') { |lr|
|
152
152
|
|
153
153
|
lr.add 'firstResultPosition', 1
|
154
|
-
lr.add 'totalResultsRequested',
|
154
|
+
lr.add 'totalResultsRequested', 25
|
155
155
|
}
|
156
156
|
end
|
157
157
|
node = response.document.xpath('//ns:getLeadsResponse', ns)
|
@@ -166,7 +166,7 @@ class Landslider < Handsoap::Service
|
|
166
166
|
|
167
167
|
ans.add 'leadId', lead_id
|
168
168
|
ans.add 'firstResultPosition', 1
|
169
|
-
ans.add 'totalResultsRequested',
|
169
|
+
ans.add 'totalResultsRequested', 25
|
170
170
|
}
|
171
171
|
end
|
172
172
|
node = response.document.xpath('//ns:getLeadNotesResponse', ns)
|
@@ -182,7 +182,7 @@ class Landslider < Handsoap::Service
|
|
182
182
|
|
183
183
|
ans.add 'opportunityId', opportunity_id
|
184
184
|
ans.add 'firstResultPosition', 1
|
185
|
-
ans.add 'totalResultsRequested',
|
185
|
+
ans.add 'totalResultsRequested', 25
|
186
186
|
}
|
187
187
|
end
|
188
188
|
node = response.document.xpath('//ns:getOpportunityNotesResponse', ns)
|
data/test/landslider_test.rb
CHANGED
@@ -34,7 +34,7 @@ class LandsliderTest < Test::Unit::TestCase
|
|
34
34
|
|
35
35
|
def test_landslider_get_accounts
|
36
36
|
result = Landslider.get_accounts($sid)
|
37
|
-
|
37
|
+
|
38
38
|
assert_equal false, result[:error]
|
39
39
|
assert_not_nil result[:accounts]
|
40
40
|
assert result[:accounts].all? { |a| !a[:account_name].nil? }, "account name required"
|