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 CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 4
4
- :patch: 2
4
+ :patch: 3
5
5
  :build:
data/landslider.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{landslider}
8
- s.version = "0.4.2"
8
+ s.version = "0.4.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jay Prall"]
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
- # just find accounts with an empty main city
59
-
60
- sc.add 'fieldId', 'MainAddressCity'
61
- sc.add 'operator', 'Empty'
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', 1
98
- ans.add 'totalResultsRequested', 25
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
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: landslider
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.2
5
+ version: 0.4.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jay Prall