landslider 0.4.2 → 0.4.3
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 +9 -9
- metadata +1 -1
data/VERSION.yml
CHANGED
data/landslider.gemspec
CHANGED
data/lib/landslider.rb
CHANGED
@@ -54,12 +54,12 @@ class Landslider < Handsoap::Service
|
|
54
54
|
message.add('accountsRequest') { |ar|
|
55
55
|
ar.add 'firstResultPosition', 1
|
56
56
|
ar.add 'totalResultsRequested', 25
|
57
|
-
ar.add('searchCriteria') { |sc|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
}
|
57
|
+
# ar.add('searchCriteria') { |sc|
|
58
|
+
# # just find accounts with an empty main city
|
59
|
+
#
|
60
|
+
# sc.add 'fieldId', 'MainAddressCity'
|
61
|
+
# sc.add 'operator', 'Empty'
|
62
|
+
# }
|
63
63
|
}
|
64
64
|
end
|
65
65
|
|
@@ -87,15 +87,15 @@ class Landslider < Handsoap::Service
|
|
87
87
|
parse_get_account_contacts_result(node)
|
88
88
|
end
|
89
89
|
|
90
|
-
def get_account_notes(session_id, account_id)
|
90
|
+
def get_account_notes(session_id, account_id, first_result_position=1, total_results_requested=25)
|
91
91
|
self.session_id = session_id
|
92
92
|
|
93
93
|
response = invoke("getAccountNotes", :soap_action => :none) do |message|
|
94
94
|
message.add('accountNoteSearch') { |ans|
|
95
95
|
|
96
96
|
ans.add 'accountId', account_id
|
97
|
-
ans.add 'firstResultPosition',
|
98
|
-
ans.add 'totalResultsRequested',
|
97
|
+
ans.add 'firstResultPosition', first_result_position
|
98
|
+
ans.add 'totalResultsRequested', total_results_requested
|
99
99
|
|
100
100
|
# ans.add('searchCriteria') { |sc|
|
101
101
|
# # just find accounts with an empty main city
|