postalmethods 1.1.1 → 1.1.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/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ == 1.1.2 2010-07-01
2
+ * Updated for new wsdl.
3
+
1
4
  == 1.0.0 2008-09-22
2
5
 
3
6
  * 1 major enhancement:
data/Manifest.txt CHANGED
@@ -12,16 +12,19 @@ lib/postalmethods/document_processor.rb
12
12
  lib/postalmethods/exceptions.rb
13
13
  lib/postalmethods/get_letter_status.rb
14
14
  lib/postalmethods/send_letter.rb
15
+ lib/postalmethods/send_postcard.rb
15
16
  lib/postalmethods/utility.rb
16
17
  spec/doc/WSDL-Output
17
18
  spec/doc/default.rb
18
19
  spec/doc/defaultMappingRegistry.rb
19
20
  spec/doc/sample.pdf
21
+ spec/doc/sample_image.jpg
20
22
  spec/document_processor_spec.rb
21
23
  spec/get_letter_status_spec.rb
22
24
  spec/postalmethods_spec.rb
23
25
  spec/rcov.opts
24
26
  spec/send_letter_spec.rb
27
+ spec/send_postcard_spec.rb
25
28
  spec/spec.opts
26
29
  spec/spec_helper.rb
27
30
  spec/utility_spec.rb
data/README.rdoc CHANGED
@@ -1,7 +1,7 @@
1
1
  = postalmethods
2
2
 
3
3
  * Info: http://www.postalmethods.com/resources/quickstart
4
- * Code: http://github.com/imajes/postalmethods/tree/master
4
+ * Code: http://github.com/JoeAtBodkinConsulting/postalmethods
5
5
 
6
6
  == DESCRIPTION:
7
7
 
@@ -17,7 +17,7 @@ API wrapper library for the postal methods api.
17
17
  require 'postalmethods'
18
18
 
19
19
  @doc = open(File.dirname(__FILE__) + '/../spec/doc/sample.pdf')
20
- @client = PostalMethods::Client.new(:user => "user", :password => "password")
20
+ @client = PostalMethods::Client.new(:api_key=>"your-key-here")
21
21
  rv = @client.send_letter(@doc, "description of doc")
22
22
  puts rv
23
23
 
@@ -29,7 +29,9 @@ puts rv
29
29
 
30
30
  * sudo gem install postalmethods
31
31
  * get a developer account at postalmethods.com
32
+ * generate an api key
33
+ * to run the tests, put your key in spec/spec_helper.rb on the line for PM_OPTS
32
34
 
33
35
  == LICENSE:
34
36
 
35
- * See License.txt
37
+ * See License.txt
data/README.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  = postalmethods
2
2
 
3
3
  * Info: http://www.postalmethods.com/resources/quickstart
4
- * Code: http://github.com/imajes/postalmethods/tree/master
4
+ * Code: http://github.com/JoeAtBodkinConsulting/postalmethods
5
5
 
6
6
  == DESCRIPTION:
7
7
 
@@ -17,7 +17,7 @@ API wrapper library for the postal methods api.
17
17
  require 'postalmethods'
18
18
 
19
19
  @doc = open(File.dirname(__FILE__) + '/../spec/doc/sample.pdf')
20
- @client = PostalMethods::Client.new(:user => "user", :password => "password")
20
+ @client = PostalMethods::Client.new(:api_key=>"your-key-here")
21
21
  rv = @client.send_letter(@doc, "description of doc")
22
22
  puts rv
23
23
 
@@ -29,7 +29,9 @@ puts rv
29
29
 
30
30
  * sudo gem install postalmethods
31
31
  * get a developer account at postalmethods.com
32
+ * generate an api key
33
+ * to run the tests, put your key in spec/spec_helper.rb on the line for PM_OPTS
32
34
 
33
35
  == LICENSE:
34
36
 
35
- * See License.txt
37
+ * See License.txt
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  %w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
2
2
  require File.dirname(__FILE__) + '/lib/postalmethods'
3
+ require 'hoe'
3
4
 
4
5
  # Generate all the Rake tasks
5
6
  # Run 'rake -T' to see list of generated tasks (from gem root directory)
data/config/hoe.rb CHANGED
@@ -1,12 +1,12 @@
1
1
  require 'postalmethods/version'
2
2
 
3
- AUTHOR = 'James Cox' # can also be an array of Authors
4
- EMAIL = "james-at-imaj.es"
3
+ AUTHOR = 'James Cox', 'Joe Fair' # can also be an array of Authors
4
+ EMAIL = "support@postalmethods.com"
5
5
  DESCRIPTION = "Wrapper for the Postal Methods API"
6
6
  GEM_NAME = 'postalmethods' # what ppl will type to install your gem
7
7
  RUBYFORGE_PROJECT = 'postalmethods' # The unix name for your project
8
- HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
9
- DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
8
+ HOMEPATH = 'http://www.postalmethods.com/'
9
+ DOWNLOAD_PATH = "http://rubygems.org/gems/postalmethods"
10
10
  EXTRA_DEPENDENCIES = [
11
11
  # ['activesupport', '>= 1.3.1']
12
12
  ] # An array of rubygem dependencies [name, version]
@@ -70,4 +70,4 @@ CHANGES = $hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
70
70
  PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
71
71
  $hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
72
72
  $hoe.rsync_args = '-av --delete --ignore-errors'
73
- $hoe.spec.post_install_message = File.open(File.dirname(__FILE__) + "/../PostInstall.txt").read rescue ""
73
+ $hoe.spec.post_install_message = File.open(File.dirname(__FILE__) + "/../PostInstall.txt").read rescue ""
data/lib/postalmethods.rb CHANGED
@@ -2,7 +2,7 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module PostalMethods
5
- VERSION = '1.1.1'
5
+ VERSION = '1.1.3'
6
6
 
7
7
  class Client
8
8
 
@@ -17,36 +17,44 @@ module PostalMethods
17
17
  require 'postalmethods/exceptions.rb'
18
18
  require 'postalmethods/document_processor.rb'
19
19
  require 'postalmethods/send_letter.rb'
20
+ require 'postalmethods/send_postcard.rb'
20
21
  require 'postalmethods/get_letter_status.rb'
21
22
  require 'postalmethods/utility.rb'
22
23
 
23
24
  # include modules
24
25
  include SendLetter
26
+ include SendPostcard
25
27
  include DocumentProcessor
26
28
  include GetLetterStatus
27
29
  include UtilityMethods
28
30
 
29
- attr_accessor :api_uri, :username, :password, :to_send, :rpc_driver, :prepared, :work_mode, :valid_work_modes
31
+ attr_accessor :api_uri, :api_key, :to_send, :rpc_driver, :prepared, :work_mode, :valid_work_modes, :imageSideScaling, :printColor, :postcardSize, :mailingPriority, :permissions, :username, :password
30
32
 
31
33
  def initialize(opts = {})
32
- if opts[:username].nil? || opts[:password].nil?
34
+ if opts[:api_key].nil?
33
35
  raise PostalMethods::NoCredentialsException
34
36
  end
35
37
 
36
38
  self.valid_work_modes = {:default => "Default", :production => "Production", :development => "Development"}
37
39
 
38
40
  ## declare here so we can override in tests, etc.
39
- self.api_uri = "https://api.postalmethods.com/PostalWS.asmx?WSDL"
41
+ self.api_uri = "https://api.postalmethods.com/2009-09-09/PostalWS.asmx?WSDL"
40
42
 
41
- self.username = opts[:username]
42
- self.password = opts[:password]
43
+ self.api_key = opts[:api_key] || nil
43
44
 
44
45
  self.work_mode = (opts[:work_mode].nil? ? "default" : opts[:work_mode])
46
+
47
+ self.imageSideScaling = opts[:imageSideScaling ] || "Default"
48
+ self.printColor = opts[:printColor ] || "Default"
49
+ self.postcardSize = opts[:postcardSize ] || "Default"
50
+ self.mailingPriority = opts[:mailingPriority ] || "Default"
51
+ self.permissions = opts[:permissions ] || "User"
52
+
45
53
  end
46
54
 
47
55
  def prepare!
48
56
  begin
49
- self.rpc_driver ||= SOAP::WSDLDriverFactory.new(self.api_uri).create_rpc_driver
57
+ self.rpc_driver = SOAP::WSDLDriverFactory.new(self.api_uri).create_rpc_driver
50
58
  rescue SocketError, RuntimeError
51
59
  raise PostalMethods::NoConnectionError
52
60
  end
@@ -69,4 +77,4 @@ module PostalMethods
69
77
  end
70
78
 
71
79
  end
72
- end
80
+ end
@@ -8,7 +8,7 @@ module PostalMethods
8
8
 
9
9
  class NoCredentialsException < Exception
10
10
  def initialize
11
- super("You have failed to provide any credentials")
11
+ super("You have failed to provide any credentials (api key)")
12
12
  end
13
13
  end
14
14
 
@@ -94,4 +94,4 @@ module PostalMethods
94
94
  end
95
95
 
96
96
 
97
- end
97
+ end
@@ -6,13 +6,13 @@ module PostalMethods
6
6
  raise PostalMethods::NoPreparationException unless self.prepared
7
7
 
8
8
  ## get status
9
- opts = {:Username => self.username, :Password => self.password, :ID => id}
9
+ opts = {:APIKey => self.api_key, :ID => id}
10
10
 
11
- rv = @rpc_driver.getLetterStatusV2(opts)
11
+ rv = @rpc_driver.getStatus(opts)
12
12
 
13
- ws_status = rv.getLetterStatusV2Result.resultCode.to_i
14
- delivery_status = rv.getLetterStatusV2Result.status.to_i
15
- last_update = rv.getLetterStatusV2Result.lastUpdateTime
13
+ ws_status = rv.getStatusResult.resultCode.to_i
14
+ delivery_status = rv.getStatusResult.statuses.letterStatusAndDesc.status.to_i
15
+ last_update = rv.getStatusResult.statuses.letterStatusAndDesc.lastUpdateTime
16
16
 
17
17
  if ws_status == -3000
18
18
  return [delivery_status, last_update]
@@ -33,10 +33,10 @@ module PostalMethods
33
33
  return PostalMethods::InvalidLetterIDsRange unless ids.class == String
34
34
 
35
35
  ## get status
36
- opts = {:Username => self.username, :Password => self.password, :ID => ids}
36
+ opts = {:APIKey => self.api_key, :ID => id}
37
37
 
38
- rv = @rpc_driver.getLetterStatusV2_Multiple(opts)
39
- ws_status = rv.getLetterStatusV2_MultipleResult.resultCode.to_i
38
+ rv = @rpc_driver.getBatchStatus(opts)
39
+ ws_status = rv.getBatchStatusResult.resultCode.to_i
40
40
 
41
41
  if ws_status == -3000
42
42
  return rv.getLetterStatusV2_MultipleResult.letterStatuses.letterStatusAndDesc
@@ -50,7 +50,7 @@ module PostalMethods
50
50
  raise PostalMethods::NoPreparationException unless self.prepared
51
51
 
52
52
  ## get status
53
- opts = {:Username => self.username, :Password => self.password, :MinID => minid.to_i, :MaxID => maxid.to_i}
53
+ opts = {:APIKey => self.api_key, :MinID => minid.to_i, :MaxID => maxid.to_i}
54
54
 
55
55
  rv = @rpc_driver.getLetterStatusV2_Range(opts)
56
56
 
@@ -65,4 +65,4 @@ module PostalMethods
65
65
  end
66
66
 
67
67
  end
68
- end
68
+ end
@@ -5,12 +5,14 @@ module PostalMethods
5
5
  def send_letter(doc, description, work_mode = "")
6
6
  raise PostalMethods::NoPreparationException unless self.prepared
7
7
  ## push a letter over the api
8
-
8
+
9
+
10
+
9
11
  self.document = doc
10
- rv = @rpc_driver.sendLetterV2(:Username => self.username, :Password => self.password, :FileExtension => self.document[:extension],
12
+ rv = @rpc_driver.sendLetter(:APIKey => self.api_key, :FileExtension => self.document[:extension],
11
13
  :FileBinaryData => self.document[:bytes], :MyDescription => description, :WorkMode => self.work_mode)
12
14
 
13
- status_code = rv.sendLetterV2Result.to_i
15
+ status_code = rv.sendLetterResult.to_i
14
16
 
15
17
  if status_code > 0
16
18
  return status_code
@@ -26,14 +28,14 @@ module PostalMethods
26
28
  ## setup the document
27
29
  self.document = doc
28
30
 
29
- opts = {:Username => self.username, :Password => self.password, :FileExtension => self.document[:extension],
31
+ opts = {:APIKey=>self.api_key, :FileExtension => self.document[:extension],
30
32
  :FileBinaryData => self.document[:bytes], :MyDescription => description, :WorkMode => self.work_mode}
31
33
 
32
34
  opts.merge!(address)
33
35
 
34
36
  ## push a letter over the api
35
- rv = @rpc_driver.sendLetterAndAddressV2(opts)
36
- status_code = rv.sendLetterAndAddressV2Result.to_i
37
+ rv = @rpc_driver.sendLetterAndAddress(opts)
38
+ status_code = rv.sendLetterAndAddressResult.to_i
37
39
 
38
40
  if status_code > 0
39
41
  return status_code
@@ -44,4 +46,4 @@ module PostalMethods
44
46
 
45
47
  end
46
48
 
47
- end
49
+ end
@@ -8,11 +8,16 @@ module PostalMethods
8
8
  raise PostalMethods::NoPreparationException unless self.prepared
9
9
 
10
10
  ## get a letter as pdf over the wire
11
- rv = @rpc_driver.getLetterDetailsV2(:Username => self.username, :Password => self.password, :ID => id)
11
+ #rv = @rpc_driver.getDetails(:APIKey => self.api_key, :ID => id)
12
+ rv = @rpc_driver.getDetailsExtended(:APIKey => self.api_key, :ID => id)
13
+
14
+ if rv.getDetailsExtendedResult.resultCode.to_i != -3000
15
+ instance_eval("raise APIStatusCode#{rv.getDetailsExtendedResult.resultCode.to_s.gsub(/( |\-)/,'')}Exception")
16
+ end
12
17
 
13
- status_code = rv.getLetterDetailsV2Result.resultCode.to_i
14
- letter_data = rv.getLetterDetailsV2Result
15
- work_mode = rv.getLetterDetailsV2Result.workMode.to_s
18
+ status_code = rv.getDetailsExtendedResult.resultCode.to_i
19
+ letter_data = rv.getDetailsExtendedResult
20
+ work_mode = rv.getDetailsExtendedResult.details.extendedDetails.workMode.to_s
16
21
 
17
22
  if status_code == -3000 # successfully received the req
18
23
  return [letter_data, status_code, work_mode]
@@ -27,7 +32,7 @@ module PostalMethods
27
32
 
28
33
  ## get a letter as pdf over the wire
29
34
  begin
30
- rv = @rpc_driver.getPDF(:Username => self.username, :Password => self.password, :ID => id)
35
+ rv = @rpc_driver.getPDF(:APIKey => self.api_key, :ID => id)
31
36
  rescue SOAP::FaultError
32
37
  raise APIStatusCode3150Exception
33
38
  end
@@ -46,7 +51,7 @@ module PostalMethods
46
51
  raise PostalMethods::NoPreparationException unless self.prepared
47
52
 
48
53
  ## get a letter as pdf over the wire
49
- rv = @rpc_driver.cancelDelivery(:Username => self.username, :Password => self.password, :ID => id)
54
+ rv = @rpc_driver.cancelDelivery(:APIKey => self.api_key, :ID => id)
50
55
 
51
56
  status_code = rv.cancelDeliveryResult.to_i
52
57
 
@@ -58,4 +63,4 @@ module PostalMethods
58
63
  raise PostalMethods::GenericCodeError
59
64
  end
60
65
  end
61
- end
66
+ end
@@ -1,16 +1,16 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{postalmethods}
3
- s.version = "1.1.1"
3
+ s.version = "1.1.3"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
- s.authors = ["James Cox"]
7
- s.date = %q{2008-12-28}
6
+ s.authors = ["James Cox", "Joe Fair"]
7
+ s.date = %q{2010-07-01}
8
8
  s.description = %q{API wrapper library for the postal methods api.}
9
- s.email = ["james@imaj.es"]
9
+ s.email = ["joe@bodkinconsulting.com"]
10
10
  s.extra_rdoc_files = ["History.txt", "License.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc", "README.txt"]
11
- s.files = ["History.txt", "License.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc", "README.txt", "Rakefile", "config/hoe.rb", "config/requirements.rb", "coverage/index.html", "coverage/lib-postalmethods-document_processor_rb.html", "coverage/lib-postalmethods-exceptions_rb.html", "coverage/lib-postalmethods-get_letter_status_rb.html", "coverage/lib-postalmethods-send_letter_rb.html", "coverage/lib-postalmethods-utility_rb.html", "coverage/lib-postalmethods_rb.html", "lib/postalmethods.rb", "lib/postalmethods/document_processor.rb", "lib/postalmethods/exceptions.rb", "lib/postalmethods/get_letter_status.rb", "lib/postalmethods/send_letter.rb", "lib/postalmethods/utility.rb", "postalmethods.gemspec", "script/console", "script/destroy", "script/generate", "setup.rb", "spec/doc/WSDL-Output", "spec/doc/default.rb", "spec/doc/defaultMappingRegistry.rb", "spec/doc/sample.pdf", "spec/document_processor_spec.rb", "spec/get_letter_status_spec.rb", "spec/postalmethods_spec.rb", "spec/rcov.opts", "spec/send_letter_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "spec/utility_spec.rb", "tasks/rspec.rake"]
11
+ s.files = ["History.txt", "License.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc", "README.txt", "Rakefile", "config/hoe.rb", "config/requirements.rb", "lib/postalmethods.rb", "lib/postalmethods/document_processor.rb", "lib/postalmethods/exceptions.rb", "lib/postalmethods/get_letter_status.rb", "lib/postalmethods/send_letter.rb", "lib/postalmethods/utility.rb", "postalmethods.gemspec", "script/console", "script/destroy", "script/generate", "setup.rb", "spec/doc/WSDL-Output", "spec/doc/default.rb", "spec/doc/defaultMappingRegistry.rb", "spec/doc/sample.pdf", "spec/document_processor_spec.rb", "spec/get_letter_status_spec.rb", "spec/postalmethods_spec.rb", "spec/rcov.opts", "spec/send_letter_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "spec/utility_spec.rb", "tasks/rspec.rake", "spec/doc/postcard_address_side_with_return_address.html", "spec/doc/postcard_image_side_with_return_address.html"]
12
12
  s.has_rdoc = true
13
- s.homepage = %q{http://www.postalmethods.com/resources/quickstart}
13
+ s.homepage = 'http://www.postalmethods.com/resources/quickstart'
14
14
  s.post_install_message = %q{PostInstall.txt}
15
15
  s.rdoc_options = ["--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
data/spec/doc/default.rb CHANGED
@@ -1,123 +1,476 @@
1
1
  require 'xsd/qname'
2
2
 
3
- # {PostalMethods}GetLetterStatusResult
3
+ # {PostalMethods}ArrayOfFile
4
+ class ArrayOfFile < ::Array
5
+ end
6
+
7
+ # {PostalMethods}File
8
+ # fileExtension - SOAP::SOAPString
9
+ # fileBinaryData - SOAP::SOAPBase64
10
+ class C_File
11
+ attr_accessor :fileExtension
12
+ attr_accessor :fileBinaryData
13
+
14
+ def initialize(fileExtension = nil, fileBinaryData = nil)
15
+ @fileExtension = fileExtension
16
+ @fileBinaryData = fileBinaryData
17
+ end
18
+ end
19
+
20
+ # {PostalMethods}Addresses
21
+ # recipientAddress - Contact
22
+ # replyAddress - ReplyAddress
23
+ class Addresses
24
+ attr_accessor :recipientAddress
25
+ attr_accessor :replyAddress
26
+
27
+ def initialize(recipientAddress = nil, replyAddress = nil)
28
+ @recipientAddress = recipientAddress
29
+ @replyAddress = replyAddress
30
+ end
31
+ end
32
+
33
+ # {PostalMethods}Contact
34
+ # attentionLine1 - SOAP::SOAPString
35
+ # attentionLine2 - SOAP::SOAPString
36
+ # company - SOAP::SOAPString
37
+ # address1 - SOAP::SOAPString
38
+ # address2 - SOAP::SOAPString
39
+ # city - SOAP::SOAPString
40
+ # state - SOAP::SOAPString
41
+ # zipcode - SOAP::SOAPString
42
+ # country - SOAP::SOAPString
43
+ class Contact
44
+ attr_accessor :attentionLine1
45
+ attr_accessor :attentionLine2
46
+ attr_accessor :company
47
+ attr_accessor :address1
48
+ attr_accessor :address2
49
+ attr_accessor :city
50
+ attr_accessor :state
51
+ attr_accessor :zipcode
52
+ attr_accessor :country
53
+
54
+ def initialize(attentionLine1 = nil, attentionLine2 = nil, company = nil, address1 = nil, address2 = nil, city = nil, state = nil, zipcode = nil, country = nil)
55
+ @attentionLine1 = attentionLine1
56
+ @attentionLine2 = attentionLine2
57
+ @company = company
58
+ @address1 = address1
59
+ @address2 = address2
60
+ @city = city
61
+ @state = state
62
+ @zipcode = zipcode
63
+ @country = country
64
+ end
65
+ end
66
+
67
+ # {PostalMethods}ReplyAddress
68
+ # contact - Contact
69
+ # stampingLocation - ReplyAddressLocation
70
+ class ReplyAddress
71
+ attr_accessor :contact
72
+ attr_accessor :stampingLocation
73
+
74
+ def initialize(contact = nil, stampingLocation = nil)
75
+ @contact = contact
76
+ @stampingLocation = stampingLocation
77
+ end
78
+ end
79
+
80
+ # {PostalMethods}LetterSettings
81
+ # perforation - Perforation
82
+ # replyEnvelope - ReplyEnvelope
83
+ # workMode - WorkMode
84
+ # printColor - PrintColor
85
+ class LetterSettings
86
+ attr_accessor :perforation
87
+ attr_accessor :replyEnvelope
88
+ attr_accessor :workMode
89
+ attr_accessor :printColor
90
+
91
+ def initialize(perforation = nil, replyEnvelope = nil, workMode = nil, printColor = nil)
92
+ @perforation = perforation
93
+ @replyEnvelope = replyEnvelope
94
+ @workMode = workMode
95
+ @printColor = printColor
96
+ end
97
+ end
98
+
99
+ # {PostalMethods}SendWordMailMergeResult
4
100
  # resultCode - SOAP::SOAPInt
5
- # status - SOAP::SOAPInt
6
- # lastUpdateTime - SOAP::SOAPDateTime
7
- class GetLetterStatusResult
101
+ # resultDescription - SOAP::SOAPString
102
+ class SendWordMailMergeResult
8
103
  attr_accessor :resultCode
9
- attr_accessor :status
10
- attr_accessor :lastUpdateTime
104
+ attr_accessor :resultDescription
105
+
106
+ def initialize(resultCode = nil, resultDescription = nil)
107
+ @resultCode = resultCode
108
+ @resultDescription = resultDescription
109
+ end
110
+ end
111
+
112
+ # {PostalMethods}GetPDFResult
113
+ # resultCode - SOAP::SOAPInt
114
+ # fileData - SOAP::SOAPBase64
115
+ class GetPDFResult
116
+ attr_accessor :resultCode
117
+ attr_accessor :fileData
11
118
 
12
- def initialize(resultCode = nil, status = nil, lastUpdateTime = nil)
119
+ def initialize(resultCode = nil, fileData = nil)
120
+ @resultCode = resultCode
121
+ @fileData = fileData
122
+ end
123
+ end
124
+
125
+ # {PostalMethods}GetUploadedFileDetailsResult
126
+ # resultCode - SOAP::SOAPInt
127
+ # uploadedFiles - ArrayOfFileDetails
128
+ class GetUploadedFileDetailsResult
129
+ attr_accessor :resultCode
130
+ attr_accessor :uploadedFiles
131
+
132
+ def initialize(resultCode = nil, uploadedFiles = nil)
13
133
  @resultCode = resultCode
134
+ @uploadedFiles = uploadedFiles
135
+ end
136
+ end
137
+
138
+ # {PostalMethods}ArrayOfFileDetails
139
+ class ArrayOfFileDetails < ::Array
140
+ end
141
+
142
+ # {PostalMethods}FileDetails
143
+ # fileName - SOAP::SOAPString
144
+ # submitTime - SOAP::SOAPDateTime
145
+ # lastUsage - SOAP::SOAPDateTime
146
+ # permissions - SOAP::SOAPString
147
+ # description - SOAP::SOAPString
148
+ class FileDetails
149
+ attr_accessor :fileName
150
+ attr_accessor :submitTime
151
+ attr_accessor :lastUsage
152
+ attr_accessor :permissions
153
+ attr_accessor :description
154
+
155
+ def initialize(fileName = nil, submitTime = nil, lastUsage = nil, permissions = nil, description = nil)
156
+ @fileName = fileName
157
+ @submitTime = submitTime
158
+ @lastUsage = lastUsage
159
+ @permissions = permissions
160
+ @description = description
161
+ end
162
+ end
163
+
164
+ # {PostalMethods}GetGeneralDetailsResult
165
+ class GetGeneralDetailsResult
166
+ def initialize
167
+ end
168
+ end
169
+
170
+ # {PostalMethods}GetDetailsResult
171
+ # resultCode - SOAP::SOAPInt
172
+ # details - ArrayOfDetails
173
+ class GetDetailsResult < GetGeneralDetailsResult
174
+ attr_accessor :resultCode
175
+ attr_accessor :details
176
+
177
+ def initialize(resultCode = nil, details = nil)
178
+ @resultCode = resultCode
179
+ @details = details
180
+ end
181
+ end
182
+
183
+ # {PostalMethods}GetDetailsExtendedResult
184
+ # resultCode - SOAP::SOAPInt
185
+ # details - ArrayOfExtendedDetails
186
+ class GetDetailsExtendedResult < GetGeneralDetailsResult
187
+ attr_accessor :resultCode
188
+ attr_accessor :details
189
+
190
+ def initialize(resultCode = nil, details = nil)
191
+ @resultCode = resultCode
192
+ @details = details
193
+ end
194
+ end
195
+
196
+ # {PostalMethods}ArrayOfDetails
197
+ class ArrayOfDetails < ::Array
198
+ end
199
+
200
+ # {PostalMethods}GeneralDetails
201
+ # abstract
202
+ class GeneralDetails
203
+ def initialize
204
+ end
205
+ end
206
+
207
+ # {PostalMethods}Details
208
+ # iD - SOAP::SOAPInt
209
+ # price - SOAP::SOAPDecimal
210
+ # numOfSheets - SOAP::SOAPInt
211
+ # submitTime - SOAP::SOAPDateTime
212
+ # completionTime - SOAP::SOAPDateTime
213
+ # status - SOAP::SOAPInt
214
+ # statusDescription - SOAP::SOAPString
215
+ # isBatch - SOAP::SOAPBoolean
216
+ # myDescription - SOAP::SOAPString
217
+ # mailerType - MailerType
218
+ # workMode - DetailsWorkMode
219
+ class Details < GeneralDetails
220
+ attr_accessor :iD
221
+ attr_accessor :price
222
+ attr_accessor :numOfSheets
223
+ attr_accessor :submitTime
224
+ attr_accessor :completionTime
225
+ attr_accessor :status
226
+ attr_accessor :statusDescription
227
+ attr_accessor :isBatch
228
+ attr_accessor :myDescription
229
+ attr_accessor :mailerType
230
+ attr_accessor :workMode
231
+
232
+ def initialize(iD = nil, price = nil, numOfSheets = nil, submitTime = nil, completionTime = nil, status = nil, statusDescription = nil, isBatch = nil, myDescription = nil, mailerType = nil, workMode = nil)
233
+ @iD = iD
234
+ @price = price
235
+ @numOfSheets = numOfSheets
236
+ @submitTime = submitTime
237
+ @completionTime = completionTime
14
238
  @status = status
15
- @lastUpdateTime = lastUpdateTime
239
+ @statusDescription = statusDescription
240
+ @isBatch = isBatch
241
+ @myDescription = myDescription
242
+ @mailerType = mailerType
243
+ @workMode = workMode
16
244
  end
17
245
  end
18
246
 
19
- # {PostalMethods}GetLetterStatus_MultipleResult
247
+ # {PostalMethods}ExtendedDetails
248
+ # iD - SOAP::SOAPInt
249
+ # price - SOAP::SOAPDecimal
250
+ # numOfSheets - SOAP::SOAPInt
251
+ # submitTime - SOAP::SOAPDateTime
252
+ # completionTime - SOAP::SOAPDateTime
253
+ # status - SOAP::SOAPInt
254
+ # statusDescription - SOAP::SOAPString
255
+ # isBatch - SOAP::SOAPBoolean
256
+ # myDescription - SOAP::SOAPString
257
+ # mailerType - MailerType
258
+ # workMode - DetailsWorkMode
259
+ # orientation - SOAP::SOAPString
260
+ # envelope - SOAP::SOAPString
261
+ # paper - SOAP::SOAPString
262
+ # printColor - SOAP::SOAPString
263
+ # printSides - SOAP::SOAPString
264
+ # postcard - SOAP::SOAPString
265
+ # nationalMailing - SOAP::SOAPString
266
+ # internationalMailing - SOAP::SOAPString
267
+ class ExtendedDetails < GeneralDetails
268
+ attr_accessor :iD
269
+ attr_accessor :price
270
+ attr_accessor :numOfSheets
271
+ attr_accessor :submitTime
272
+ attr_accessor :completionTime
273
+ attr_accessor :status
274
+ attr_accessor :statusDescription
275
+ attr_accessor :isBatch
276
+ attr_accessor :myDescription
277
+ attr_accessor :mailerType
278
+ attr_accessor :workMode
279
+ attr_accessor :orientation
280
+ attr_accessor :envelope
281
+ attr_accessor :paper
282
+ attr_accessor :printColor
283
+ attr_accessor :printSides
284
+ attr_accessor :postcard
285
+ attr_accessor :nationalMailing
286
+ attr_accessor :internationalMailing
287
+
288
+ def initialize(iD = nil, price = nil, numOfSheets = nil, submitTime = nil, completionTime = nil, status = nil, statusDescription = nil, isBatch = nil, myDescription = nil, mailerType = nil, workMode = nil, orientation = nil, envelope = nil, paper = nil, printColor = nil, printSides = nil, postcard = nil, nationalMailing = nil, internationalMailing = nil)
289
+ @iD = iD
290
+ @price = price
291
+ @numOfSheets = numOfSheets
292
+ @submitTime = submitTime
293
+ @completionTime = completionTime
294
+ @status = status
295
+ @statusDescription = statusDescription
296
+ @isBatch = isBatch
297
+ @myDescription = myDescription
298
+ @mailerType = mailerType
299
+ @workMode = workMode
300
+ @orientation = orientation
301
+ @envelope = envelope
302
+ @paper = paper
303
+ @printColor = printColor
304
+ @printSides = printSides
305
+ @postcard = postcard
306
+ @nationalMailing = nationalMailing
307
+ @internationalMailing = internationalMailing
308
+ end
309
+ end
310
+
311
+ # {PostalMethods}ArrayOfExtendedDetails
312
+ class ArrayOfExtendedDetails < ::Array
313
+ end
314
+
315
+ # {PostalMethods}GetStatusResult
20
316
  # resultCode - SOAP::SOAPInt
21
- # letterStatuses - ArrayOfLetterStatus
22
- class GetLetterStatus_MultipleResult
317
+ # statuses - ArrayOfLetterStatusAndDesc
318
+ class GetStatusResult
23
319
  attr_accessor :resultCode
24
- attr_accessor :letterStatuses
320
+ attr_accessor :statuses
25
321
 
26
- def initialize(resultCode = nil, letterStatuses = nil)
322
+ def initialize(resultCode = nil, statuses = nil)
27
323
  @resultCode = resultCode
28
- @letterStatuses = letterStatuses
324
+ @statuses = statuses
29
325
  end
30
326
  end
31
327
 
32
- # {PostalMethods}ArrayOfLetterStatus
33
- class ArrayOfLetterStatus < ::Array
328
+ # {PostalMethods}ArrayOfLetterStatusAndDesc
329
+ class ArrayOfLetterStatusAndDesc < ::Array
34
330
  end
35
331
 
36
- # {PostalMethods}LetterStatus
332
+ # {PostalMethods}LetterStatusAndDesc
37
333
  # iD - SOAP::SOAPInt
38
334
  # status - SOAP::SOAPInt
335
+ # description - SOAP::SOAPString
39
336
  # lastUpdateTime - SOAP::SOAPDateTime
40
- class LetterStatus
337
+ class LetterStatusAndDesc
41
338
  attr_accessor :iD
42
339
  attr_accessor :status
340
+ attr_accessor :description
43
341
  attr_accessor :lastUpdateTime
44
342
 
45
- def initialize(iD = nil, status = nil, lastUpdateTime = nil)
343
+ def initialize(iD = nil, status = nil, description = nil, lastUpdateTime = nil)
46
344
  @iD = iD
47
345
  @status = status
346
+ @description = description
48
347
  @lastUpdateTime = lastUpdateTime
49
348
  end
50
349
  end
51
350
 
52
- # {PostalMethods}GetLetterStatus_RangeResult
351
+ # {PostalMethods}GetBatchStatusResult
53
352
  # resultCode - SOAP::SOAPInt
54
- # letterStatuses - ArrayOfLetterStatus
55
- class GetLetterStatus_RangeResult
353
+ # iD - SOAP::SOAPInt
354
+ # statuses - ArrayOfLetterBatchStatusAndDesc
355
+ class GetBatchStatusResult
56
356
  attr_accessor :resultCode
57
- attr_accessor :letterStatuses
357
+ attr_accessor :iD
358
+ attr_accessor :statuses
58
359
 
59
- def initialize(resultCode = nil, letterStatuses = nil)
360
+ def initialize(resultCode = nil, iD = nil, statuses = nil)
60
361
  @resultCode = resultCode
61
- @letterStatuses = letterStatuses
362
+ @iD = iD
363
+ @statuses = statuses
364
+ end
365
+ end
366
+
367
+ # {PostalMethods}ArrayOfLetterBatchStatusAndDesc
368
+ class ArrayOfLetterBatchStatusAndDesc < ::Array
369
+ end
370
+
371
+ # {PostalMethods}LetterBatchStatusAndDesc
372
+ # itemID - SOAP::SOAPInt
373
+ # status - SOAP::SOAPInt
374
+ # description - SOAP::SOAPString
375
+ # lastUpdateTime - SOAP::SOAPDateTime
376
+ class LetterBatchStatusAndDesc
377
+ attr_accessor :itemID
378
+ attr_accessor :status
379
+ attr_accessor :description
380
+ attr_accessor :lastUpdateTime
381
+
382
+ def initialize(itemID = nil, status = nil, description = nil, lastUpdateTime = nil)
383
+ @itemID = itemID
384
+ @status = status
385
+ @description = description
386
+ @lastUpdateTime = lastUpdateTime
62
387
  end
63
388
  end
64
389
 
65
- # {PostalMethods}GetLetterDetailsResult
390
+ # {PostalMethods}GetBatchDetailsResult
66
391
  # resultCode - SOAP::SOAPInt
67
392
  # iD - SOAP::SOAPInt
68
393
  # price - SOAP::SOAPDecimal
69
- # numOfSheets - SOAP::SOAPInt
70
394
  # submitTime - SOAP::SOAPDateTime
71
395
  # completionTime - SOAP::SOAPDateTime
396
+ # myDescription - SOAP::SOAPString
397
+ # mailerType - MailerType
398
+ # workMode - DetailsWorkMode
72
399
  # orientation - SOAP::SOAPString
73
400
  # envelope - SOAP::SOAPString
74
401
  # paper - SOAP::SOAPString
75
402
  # printColor - SOAP::SOAPString
76
403
  # printSides - SOAP::SOAPString
404
+ # postcard - SOAP::SOAPString
77
405
  # nationalMailing - SOAP::SOAPString
78
406
  # internationalMailing - SOAP::SOAPString
79
- class GetLetterDetailsResult
407
+ # items - ArrayOfItemsStatusAndDescExtended
408
+ class GetBatchDetailsResult
80
409
  attr_accessor :resultCode
81
410
  attr_accessor :iD
82
411
  attr_accessor :price
83
- attr_accessor :numOfSheets
84
412
  attr_accessor :submitTime
85
413
  attr_accessor :completionTime
414
+ attr_accessor :myDescription
415
+ attr_accessor :mailerType
416
+ attr_accessor :workMode
86
417
  attr_accessor :orientation
87
418
  attr_accessor :envelope
88
419
  attr_accessor :paper
89
420
  attr_accessor :printColor
90
421
  attr_accessor :printSides
422
+ attr_accessor :postcard
91
423
  attr_accessor :nationalMailing
92
424
  attr_accessor :internationalMailing
425
+ attr_accessor :items
93
426
 
94
- def initialize(resultCode = nil, iD = nil, price = nil, numOfSheets = nil, submitTime = nil, completionTime = nil, orientation = nil, envelope = nil, paper = nil, printColor = nil, printSides = nil, nationalMailing = nil, internationalMailing = nil)
427
+ def initialize(resultCode = nil, iD = nil, price = nil, submitTime = nil, completionTime = nil, myDescription = nil, mailerType = nil, workMode = nil, orientation = nil, envelope = nil, paper = nil, printColor = nil, printSides = nil, postcard = nil, nationalMailing = nil, internationalMailing = nil, items = nil)
95
428
  @resultCode = resultCode
96
429
  @iD = iD
97
430
  @price = price
98
- @numOfSheets = numOfSheets
99
431
  @submitTime = submitTime
100
432
  @completionTime = completionTime
433
+ @myDescription = myDescription
434
+ @mailerType = mailerType
435
+ @workMode = workMode
101
436
  @orientation = orientation
102
437
  @envelope = envelope
103
438
  @paper = paper
104
439
  @printColor = printColor
105
440
  @printSides = printSides
441
+ @postcard = postcard
106
442
  @nationalMailing = nationalMailing
107
443
  @internationalMailing = internationalMailing
444
+ @items = items
108
445
  end
109
446
  end
110
447
 
111
- # {PostalMethods}GetPDFResult
112
- # resultCode - SOAP::SOAPInt
113
- # fileData - SOAP::SOAPBase64
114
- class GetPDFResult
115
- attr_accessor :resultCode
116
- attr_accessor :fileData
448
+ # {PostalMethods}ArrayOfItemsStatusAndDescExtended
449
+ class ArrayOfItemsStatusAndDescExtended < ::Array
450
+ end
117
451
 
118
- def initialize(resultCode = nil, fileData = nil)
119
- @resultCode = resultCode
120
- @fileData = fileData
452
+ # {PostalMethods}ItemsStatusAndDescExtended
453
+ # itemID - SOAP::SOAPInt
454
+ # status - SOAP::SOAPInt
455
+ # description - SOAP::SOAPString
456
+ # price - SOAP::SOAPDecimal
457
+ # numOfSheets - SOAP::SOAPInt
458
+ # lastUpdateTime - SOAP::SOAPDateTime
459
+ class ItemsStatusAndDescExtended
460
+ attr_accessor :itemID
461
+ attr_accessor :status
462
+ attr_accessor :description
463
+ attr_accessor :price
464
+ attr_accessor :numOfSheets
465
+ attr_accessor :lastUpdateTime
466
+
467
+ def initialize(itemID = nil, status = nil, description = nil, price = nil, numOfSheets = nil, lastUpdateTime = nil)
468
+ @itemID = itemID
469
+ @status = status
470
+ @description = description
471
+ @price = price
472
+ @numOfSheets = numOfSheets
473
+ @lastUpdateTime = lastUpdateTime
121
474
  end
122
475
  end
123
476
 
@@ -125,25 +478,124 @@ end
125
478
  class StringArray < ::Array
126
479
  end
127
480
 
481
+ # {PostalMethods}ReplyAddressLocation
482
+ class ReplyAddressLocation < ::String
483
+ Bottom = new("Bottom")
484
+ Top = new("Top")
485
+ end
486
+
487
+ # {PostalMethods}Perforation
488
+ class Perforation < ::String
489
+ BottomThird = new("BottomThird")
490
+ end
491
+
492
+ # {PostalMethods}ReplyEnvelope
493
+ class ReplyEnvelope < ::String
494
+ Env9ReplySingleWindow = new("Env9ReplySingleWindow")
495
+ end
496
+
497
+ # {PostalMethods}WorkMode
498
+ class WorkMode < ::String
499
+ Default = new("Default")
500
+ Development = new("Development")
501
+ Production = new("Production")
502
+ end
503
+
504
+ # {PostalMethods}PrintColor
505
+ class PrintColor < ::String
506
+ Black = new("Black")
507
+ Default = new("Default")
508
+ FullColor = new("FullColor")
509
+ end
510
+
511
+ # {PostalMethods}ImageSideScaling
512
+ class ImageSideScaling < ::String
513
+ Default = new("Default")
514
+ FitToPage = new("FitToPage")
515
+ None = new("None")
516
+ end
517
+
518
+ # {PostalMethods}PostcardSize
519
+ class PostcardSize < ::String
520
+ Default = new("Default")
521
+ Postcard_4_25X6 = new("Postcard_4_25X6")
522
+ end
523
+
524
+ # {PostalMethods}MailingPriority
525
+ class MailingPriority < ::String
526
+ Default = new("Default")
527
+ FirstClass = new("FirstClass")
528
+ end
529
+
530
+ # {PostalMethods}Permissions
531
+ class Permissions < ::String
532
+ Account = new("Account")
533
+ User = new("User")
534
+ end
535
+
536
+ # {PostalMethods}MailerType
537
+ class MailerType < ::String
538
+ Letter = new("Letter")
539
+ Postcard = new("Postcard")
540
+ end
541
+
542
+ # {PostalMethods}DetailsWorkMode
543
+ class DetailsWorkMode < ::String
544
+ Development = new("Development")
545
+ Production = new("Production")
546
+ end
547
+
548
+ # {PostalMethods}SendLetterAdvanced
549
+ # aPIKey - SOAP::SOAPString
550
+ # myDescription - SOAP::SOAPString
551
+ # files - ArrayOfFile
552
+ # addresses - Addresses
553
+ # settings - LetterSettings
554
+ class SendLetterAdvanced
555
+ attr_accessor :aPIKey
556
+ attr_accessor :myDescription
557
+ attr_accessor :files
558
+ attr_accessor :addresses
559
+ attr_accessor :settings
560
+
561
+ def initialize(aPIKey = nil, myDescription = nil, files = nil, addresses = nil, settings = nil)
562
+ @aPIKey = aPIKey
563
+ @myDescription = myDescription
564
+ @files = files
565
+ @addresses = addresses
566
+ @settings = settings
567
+ end
568
+ end
569
+
570
+ # {PostalMethods}SendLetterAdvancedResponse
571
+ # sendLetterAdvancedResult - SOAP::SOAPInt
572
+ class SendLetterAdvancedResponse
573
+ attr_accessor :sendLetterAdvancedResult
574
+
575
+ def initialize(sendLetterAdvancedResult = nil)
576
+ @sendLetterAdvancedResult = sendLetterAdvancedResult
577
+ end
578
+ end
579
+
128
580
  # {PostalMethods}SendLetter
129
- # username - SOAP::SOAPString
130
- # password - SOAP::SOAPString
581
+ # aPIKey - SOAP::SOAPString
131
582
  # myDescription - SOAP::SOAPString
132
583
  # fileExtension - SOAP::SOAPString
133
584
  # fileBinaryData - SOAP::SOAPBase64
585
+ # workMode - WorkMode
134
586
  class SendLetter
135
- attr_accessor :username
136
- attr_accessor :password
587
+ attr_accessor :aPIKey
137
588
  attr_accessor :myDescription
138
589
  attr_accessor :fileExtension
139
590
  attr_accessor :fileBinaryData
591
+ attr_accessor :workMode
140
592
 
141
- def initialize(username = nil, password = nil, myDescription = nil, fileExtension = nil, fileBinaryData = nil)
142
- @username = username
143
- @password = password
593
+ def initialize(aPIKey = nil, myDescription = nil, fileExtension = nil, fileBinaryData = nil, workMode = nil)
594
+ @aPIKey = aPIKey
144
595
  @myDescription = myDescription
145
596
  @fileExtension = fileExtension
146
597
  @fileBinaryData = fileBinaryData
598
+ @workMode = workMode
147
599
  end
148
600
  end
149
601
 
@@ -158,14 +610,13 @@ class SendLetterResponse
158
610
  end
159
611
 
160
612
  # {PostalMethods}SendLetterAndAddress
161
- # username - SOAP::SOAPString
162
- # password - SOAP::SOAPString
613
+ # aPIKey - SOAP::SOAPString
163
614
  # myDescription - SOAP::SOAPString
164
615
  # fileExtension - SOAP::SOAPString
165
616
  # fileBinaryData - SOAP::SOAPBase64
617
+ # workMode - WorkMode
166
618
  # attentionLine1 - SOAP::SOAPString
167
619
  # attentionLine2 - SOAP::SOAPString
168
- # attentionLine3 - SOAP::SOAPString
169
620
  # company - SOAP::SOAPString
170
621
  # address1 - SOAP::SOAPString
171
622
  # address2 - SOAP::SOAPString
@@ -174,14 +625,13 @@ end
174
625
  # postalCode - SOAP::SOAPString
175
626
  # country - SOAP::SOAPString
176
627
  class SendLetterAndAddress
177
- attr_accessor :username
178
- attr_accessor :password
628
+ attr_accessor :aPIKey
179
629
  attr_accessor :myDescription
180
630
  attr_accessor :fileExtension
181
631
  attr_accessor :fileBinaryData
632
+ attr_accessor :workMode
182
633
  attr_accessor :attentionLine1
183
634
  attr_accessor :attentionLine2
184
- attr_accessor :attentionLine3
185
635
  attr_accessor :company
186
636
  attr_accessor :address1
187
637
  attr_accessor :address2
@@ -190,15 +640,14 @@ class SendLetterAndAddress
190
640
  attr_accessor :postalCode
191
641
  attr_accessor :country
192
642
 
193
- def initialize(username = nil, password = nil, myDescription = nil, fileExtension = nil, fileBinaryData = nil, attentionLine1 = nil, attentionLine2 = nil, attentionLine3 = nil, company = nil, address1 = nil, address2 = nil, city = nil, state = nil, postalCode = nil, country = nil)
194
- @username = username
195
- @password = password
643
+ def initialize(aPIKey = nil, myDescription = nil, fileExtension = nil, fileBinaryData = nil, workMode = nil, attentionLine1 = nil, attentionLine2 = nil, company = nil, address1 = nil, address2 = nil, city = nil, state = nil, postalCode = nil, country = nil)
644
+ @aPIKey = aPIKey
196
645
  @myDescription = myDescription
197
646
  @fileExtension = fileExtension
198
647
  @fileBinaryData = fileBinaryData
648
+ @workMode = workMode
199
649
  @attentionLine1 = attentionLine1
200
650
  @attentionLine2 = attentionLine2
201
- @attentionLine3 = attentionLine3
202
651
  @company = company
203
652
  @address1 = address1
204
653
  @address2 = address2
@@ -219,161 +668,365 @@ class SendLetterAndAddressResponse
219
668
  end
220
669
  end
221
670
 
222
- # {PostalMethods}GetLetterStatus
671
+ # {PostalMethods}SendPostcardAndAddress
672
+ # aPIKey - SOAP::SOAPString
673
+ # myDescription - SOAP::SOAPString
674
+ # imageSideFileType - SOAP::SOAPString
675
+ # imageSideBinaryData - SOAP::SOAPBase64
676
+ # imageSideScaling - ImageSideScaling
677
+ # addressSideFileType - SOAP::SOAPString
678
+ # addressSideBinaryData - SOAP::SOAPBase64
679
+ # workMode - WorkMode
680
+ # printColor - PrintColor
681
+ # postcardSize - PostcardSize
682
+ # mailingPriority - MailingPriority
683
+ # attentionLine1 - SOAP::SOAPString
684
+ # attentionLine2 - SOAP::SOAPString
685
+ # company - SOAP::SOAPString
686
+ # address1 - SOAP::SOAPString
687
+ # address2 - SOAP::SOAPString
688
+ # city - SOAP::SOAPString
689
+ # state - SOAP::SOAPString
690
+ # postalCode - SOAP::SOAPString
691
+ # country - SOAP::SOAPString
692
+ class SendPostcardAndAddress
693
+ attr_accessor :aPIKey
694
+ attr_accessor :myDescription
695
+ attr_accessor :imageSideFileType
696
+ attr_accessor :imageSideBinaryData
697
+ attr_accessor :imageSideScaling
698
+ attr_accessor :addressSideFileType
699
+ attr_accessor :addressSideBinaryData
700
+ attr_accessor :workMode
701
+ attr_accessor :printColor
702
+ attr_accessor :postcardSize
703
+ attr_accessor :mailingPriority
704
+ attr_accessor :attentionLine1
705
+ attr_accessor :attentionLine2
706
+ attr_accessor :company
707
+ attr_accessor :address1
708
+ attr_accessor :address2
709
+ attr_accessor :city
710
+ attr_accessor :state
711
+ attr_accessor :postalCode
712
+ attr_accessor :country
713
+
714
+ def initialize(aPIKey = nil, myDescription = nil, imageSideFileType = nil, imageSideBinaryData = nil, imageSideScaling = nil, addressSideFileType = nil, addressSideBinaryData = nil, workMode = nil, printColor = nil, postcardSize = nil, mailingPriority = nil, attentionLine1 = nil, attentionLine2 = nil, company = nil, address1 = nil, address2 = nil, city = nil, state = nil, postalCode = nil, country = nil)
715
+ @aPIKey = aPIKey
716
+ @myDescription = myDescription
717
+ @imageSideFileType = imageSideFileType
718
+ @imageSideBinaryData = imageSideBinaryData
719
+ @imageSideScaling = imageSideScaling
720
+ @addressSideFileType = addressSideFileType
721
+ @addressSideBinaryData = addressSideBinaryData
722
+ @workMode = workMode
723
+ @printColor = printColor
724
+ @postcardSize = postcardSize
725
+ @mailingPriority = mailingPriority
726
+ @attentionLine1 = attentionLine1
727
+ @attentionLine2 = attentionLine2
728
+ @company = company
729
+ @address1 = address1
730
+ @address2 = address2
731
+ @city = city
732
+ @state = state
733
+ @postalCode = postalCode
734
+ @country = country
735
+ end
736
+ end
737
+
738
+ # {PostalMethods}SendPostcardAndAddressResponse
739
+ # sendPostcardAndAddressResult - SOAP::SOAPInt
740
+ class SendPostcardAndAddressResponse
741
+ attr_accessor :sendPostcardAndAddressResult
742
+
743
+ def initialize(sendPostcardAndAddressResult = nil)
744
+ @sendPostcardAndAddressResult = sendPostcardAndAddressResult
745
+ end
746
+ end
747
+
748
+ # {PostalMethods}SendWordMailMerge_Compressed
223
749
  # username - SOAP::SOAPString
224
750
  # password - SOAP::SOAPString
225
- # iD - SOAP::SOAPInt
226
- class GetLetterStatus
751
+ # myDescription - SOAP::SOAPString
752
+ # fileExtension - SOAP::SOAPString
753
+ # fileBinaryData - SOAP::SOAPBase64
754
+ # mergeData - SOAP::SOAPBase64
755
+ # clientVersion - SOAP::SOAPString
756
+ # workMode - WorkMode
757
+ class SendWordMailMerge_Compressed
227
758
  attr_accessor :username
228
759
  attr_accessor :password
229
- attr_accessor :iD
760
+ attr_accessor :myDescription
761
+ attr_accessor :fileExtension
762
+ attr_accessor :fileBinaryData
763
+ attr_accessor :mergeData
764
+ attr_accessor :clientVersion
765
+ attr_accessor :workMode
230
766
 
231
- def initialize(username = nil, password = nil, iD = nil)
767
+ def initialize(username = nil, password = nil, myDescription = nil, fileExtension = nil, fileBinaryData = nil, mergeData = nil, clientVersion = nil, workMode = nil)
232
768
  @username = username
233
769
  @password = password
770
+ @myDescription = myDescription
771
+ @fileExtension = fileExtension
772
+ @fileBinaryData = fileBinaryData
773
+ @mergeData = mergeData
774
+ @clientVersion = clientVersion
775
+ @workMode = workMode
776
+ end
777
+ end
778
+
779
+ # {PostalMethods}SendWordMailMerge_CompressedResponse
780
+ # sendWordMailMerge_CompressedResult - SendWordMailMergeResult
781
+ class SendWordMailMerge_CompressedResponse
782
+ attr_accessor :sendWordMailMerge_CompressedResult
783
+
784
+ def initialize(sendWordMailMerge_CompressedResult = nil)
785
+ @sendWordMailMerge_CompressedResult = sendWordMailMerge_CompressedResult
786
+ end
787
+ end
788
+
789
+ # {PostalMethods}GetPDF
790
+ # aPIKey - SOAP::SOAPString
791
+ # iD - SOAP::SOAPInt
792
+ class GetPDF
793
+ attr_accessor :aPIKey
794
+ attr_accessor :iD
795
+
796
+ def initialize(aPIKey = nil, iD = nil)
797
+ @aPIKey = aPIKey
234
798
  @iD = iD
235
799
  end
236
800
  end
237
801
 
238
- # {PostalMethods}GetLetterStatusResponse
239
- # getLetterStatusResult - GetLetterStatusResult
240
- class GetLetterStatusResponse
241
- attr_accessor :getLetterStatusResult
802
+ # {PostalMethods}GetPDFResponse
803
+ # getPDFResult - GetPDFResult
804
+ class GetPDFResponse
805
+ attr_accessor :getPDFResult
242
806
 
243
- def initialize(getLetterStatusResult = nil)
244
- @getLetterStatusResult = getLetterStatusResult
807
+ def initialize(getPDFResult = nil)
808
+ @getPDFResult = getPDFResult
245
809
  end
246
810
  end
247
811
 
248
- # {PostalMethods}GetLetterStatus_Multiple
249
- # username - SOAP::SOAPString
250
- # password - SOAP::SOAPString
812
+ # {PostalMethods}CancelDelivery
813
+ # aPIKey - SOAP::SOAPString
814
+ # iD - SOAP::SOAPInt
815
+ class CancelDelivery
816
+ attr_accessor :aPIKey
817
+ attr_accessor :iD
818
+
819
+ def initialize(aPIKey = nil, iD = nil)
820
+ @aPIKey = aPIKey
821
+ @iD = iD
822
+ end
823
+ end
824
+
825
+ # {PostalMethods}CancelDeliveryResponse
826
+ # cancelDeliveryResult - SOAP::SOAPInt
827
+ class CancelDeliveryResponse
828
+ attr_accessor :cancelDeliveryResult
829
+
830
+ def initialize(cancelDeliveryResult = nil)
831
+ @cancelDeliveryResult = cancelDeliveryResult
832
+ end
833
+ end
834
+
835
+ # {PostalMethods}UploadFile
836
+ # aPIKey - SOAP::SOAPString
837
+ # myFileName - SOAP::SOAPString
838
+ # fileBinaryData - SOAP::SOAPBase64
839
+ # permissions - Permissions
840
+ # description - SOAP::SOAPString
841
+ # overwrite - SOAP::SOAPBoolean
842
+ class UploadFile
843
+ attr_accessor :aPIKey
844
+ attr_accessor :myFileName
845
+ attr_accessor :fileBinaryData
846
+ attr_accessor :permissions
847
+ attr_accessor :description
848
+ attr_accessor :overwrite
849
+
850
+ def initialize(aPIKey = nil, myFileName = nil, fileBinaryData = nil, permissions = nil, description = nil, overwrite = nil)
851
+ @aPIKey = aPIKey
852
+ @myFileName = myFileName
853
+ @fileBinaryData = fileBinaryData
854
+ @permissions = permissions
855
+ @description = description
856
+ @overwrite = overwrite
857
+ end
858
+ end
859
+
860
+ # {PostalMethods}UploadFileResponse
861
+ # uploadFileResult - SOAP::SOAPInt
862
+ class UploadFileResponse
863
+ attr_accessor :uploadFileResult
864
+
865
+ def initialize(uploadFileResult = nil)
866
+ @uploadFileResult = uploadFileResult
867
+ end
868
+ end
869
+
870
+ # {PostalMethods}DeleteUploadedFile
871
+ # aPIKey - SOAP::SOAPString
872
+ # myFileName - SOAP::SOAPString
873
+ class DeleteUploadedFile
874
+ attr_accessor :aPIKey
875
+ attr_accessor :myFileName
876
+
877
+ def initialize(aPIKey = nil, myFileName = nil)
878
+ @aPIKey = aPIKey
879
+ @myFileName = myFileName
880
+ end
881
+ end
882
+
883
+ # {PostalMethods}DeleteUploadedFileResponse
884
+ # deleteUploadedFileResult - SOAP::SOAPInt
885
+ class DeleteUploadedFileResponse
886
+ attr_accessor :deleteUploadedFileResult
887
+
888
+ def initialize(deleteUploadedFileResult = nil)
889
+ @deleteUploadedFileResult = deleteUploadedFileResult
890
+ end
891
+ end
892
+
893
+ # {PostalMethods}GetUploadedFileDetails
894
+ # aPIKey - SOAP::SOAPString
895
+ class GetUploadedFileDetails
896
+ attr_accessor :aPIKey
897
+
898
+ def initialize(aPIKey = nil)
899
+ @aPIKey = aPIKey
900
+ end
901
+ end
902
+
903
+ # {PostalMethods}GetUploadedFileDetailsResponse
904
+ # getUploadedFileDetailsResult - GetUploadedFileDetailsResult
905
+ class GetUploadedFileDetailsResponse
906
+ attr_accessor :getUploadedFileDetailsResult
907
+
908
+ def initialize(getUploadedFileDetailsResult = nil)
909
+ @getUploadedFileDetailsResult = getUploadedFileDetailsResult
910
+ end
911
+ end
912
+
913
+ # {PostalMethods}GetDetails
914
+ # aPIKey - SOAP::SOAPString
251
915
  # iD - SOAP::SOAPString
252
- class GetLetterStatus_Multiple
253
- attr_accessor :username
254
- attr_accessor :password
916
+ class GetDetails
917
+ attr_accessor :aPIKey
255
918
  attr_accessor :iD
256
919
 
257
- def initialize(username = nil, password = nil, iD = nil)
258
- @username = username
259
- @password = password
920
+ def initialize(aPIKey = nil, iD = nil)
921
+ @aPIKey = aPIKey
260
922
  @iD = iD
261
923
  end
262
924
  end
263
925
 
264
- # {PostalMethods}GetLetterStatus_MultipleResponse
265
- # getLetterStatus_MultipleResult - GetLetterStatus_MultipleResult
266
- class GetLetterStatus_MultipleResponse
267
- attr_accessor :getLetterStatus_MultipleResult
926
+ # {PostalMethods}GetDetailsResponse
927
+ # getDetailsResult - GetDetailsResult
928
+ class GetDetailsResponse
929
+ attr_accessor :getDetailsResult
268
930
 
269
- def initialize(getLetterStatus_MultipleResult = nil)
270
- @getLetterStatus_MultipleResult = getLetterStatus_MultipleResult
931
+ def initialize(getDetailsResult = nil)
932
+ @getDetailsResult = getDetailsResult
271
933
  end
272
934
  end
273
935
 
274
- # {PostalMethods}GetLetterStatus_Range
275
- # username - SOAP::SOAPString
276
- # password - SOAP::SOAPString
277
- # minID - SOAP::SOAPInt
278
- # maxID - SOAP::SOAPInt
279
- class GetLetterStatus_Range
280
- attr_accessor :username
281
- attr_accessor :password
282
- attr_accessor :minID
283
- attr_accessor :maxID
936
+ # {PostalMethods}GetDetailsExtended
937
+ # aPIKey - SOAP::SOAPString
938
+ # iD - SOAP::SOAPString
939
+ class GetDetailsExtended
940
+ attr_accessor :aPIKey
941
+ attr_accessor :iD
284
942
 
285
- def initialize(username = nil, password = nil, minID = nil, maxID = nil)
286
- @username = username
287
- @password = password
288
- @minID = minID
289
- @maxID = maxID
943
+ def initialize(aPIKey = nil, iD = nil)
944
+ @aPIKey = aPIKey
945
+ @iD = iD
290
946
  end
291
947
  end
292
948
 
293
- # {PostalMethods}GetLetterStatus_RangeResponse
294
- # getLetterStatus_RangeResult - GetLetterStatus_RangeResult
295
- class GetLetterStatus_RangeResponse
296
- attr_accessor :getLetterStatus_RangeResult
949
+ # {PostalMethods}GetDetailsExtendedResponse
950
+ # getDetailsExtendedResult - GetDetailsExtendedResult
951
+ class GetDetailsExtendedResponse
952
+ attr_accessor :getDetailsExtendedResult
297
953
 
298
- def initialize(getLetterStatus_RangeResult = nil)
299
- @getLetterStatus_RangeResult = getLetterStatus_RangeResult
954
+ def initialize(getDetailsExtendedResult = nil)
955
+ @getDetailsExtendedResult = getDetailsExtendedResult
300
956
  end
301
957
  end
302
958
 
303
- # {PostalMethods}GetLetterDetails
304
- # username - SOAP::SOAPString
305
- # password - SOAP::SOAPString
306
- # iD - SOAP::SOAPInt
307
- class GetLetterDetails
308
- attr_accessor :username
309
- attr_accessor :password
959
+ # {PostalMethods}GetStatus
960
+ # aPIKey - SOAP::SOAPString
961
+ # iD - SOAP::SOAPString
962
+ class GetStatus
963
+ attr_accessor :aPIKey
310
964
  attr_accessor :iD
311
965
 
312
- def initialize(username = nil, password = nil, iD = nil)
313
- @username = username
314
- @password = password
966
+ def initialize(aPIKey = nil, iD = nil)
967
+ @aPIKey = aPIKey
315
968
  @iD = iD
316
969
  end
317
970
  end
318
971
 
319
- # {PostalMethods}GetLetterDetailsResponse
320
- # getLetterDetailsResult - GetLetterDetailsResult
321
- class GetLetterDetailsResponse
322
- attr_accessor :getLetterDetailsResult
972
+ # {PostalMethods}GetStatusResponse
973
+ # getStatusResult - GetStatusResult
974
+ class GetStatusResponse
975
+ attr_accessor :getStatusResult
323
976
 
324
- def initialize(getLetterDetailsResult = nil)
325
- @getLetterDetailsResult = getLetterDetailsResult
977
+ def initialize(getStatusResult = nil)
978
+ @getStatusResult = getStatusResult
326
979
  end
327
980
  end
328
981
 
329
- # {PostalMethods}GetPDF
330
- # username - SOAP::SOAPString
331
- # password - SOAP::SOAPString
982
+ # {PostalMethods}GetBatchStatus
983
+ # aPIKey - SOAP::SOAPString
332
984
  # iD - SOAP::SOAPInt
333
- class GetPDF
334
- attr_accessor :username
335
- attr_accessor :password
985
+ # itemID - SOAP::SOAPString
986
+ class GetBatchStatus
987
+ attr_accessor :aPIKey
336
988
  attr_accessor :iD
989
+ attr_accessor :itemID
337
990
 
338
- def initialize(username = nil, password = nil, iD = nil)
339
- @username = username
340
- @password = password
991
+ def initialize(aPIKey = nil, iD = nil, itemID = nil)
992
+ @aPIKey = aPIKey
341
993
  @iD = iD
994
+ @itemID = itemID
342
995
  end
343
996
  end
344
997
 
345
- # {PostalMethods}GetPDFResponse
346
- # getPDFResult - GetPDFResult
347
- class GetPDFResponse
348
- attr_accessor :getPDFResult
998
+ # {PostalMethods}GetBatchStatusResponse
999
+ # getBatchStatusResult - GetBatchStatusResult
1000
+ class GetBatchStatusResponse
1001
+ attr_accessor :getBatchStatusResult
349
1002
 
350
- def initialize(getPDFResult = nil)
351
- @getPDFResult = getPDFResult
1003
+ def initialize(getBatchStatusResult = nil)
1004
+ @getBatchStatusResult = getBatchStatusResult
352
1005
  end
353
1006
  end
354
1007
 
355
- # {PostalMethods}CancelDelivery
356
- # username - SOAP::SOAPString
357
- # password - SOAP::SOAPString
1008
+ # {PostalMethods}GetBatchDetails
1009
+ # aPIKey - SOAP::SOAPString
358
1010
  # iD - SOAP::SOAPInt
359
- class CancelDelivery
360
- attr_accessor :username
361
- attr_accessor :password
1011
+ # itemID - SOAP::SOAPString
1012
+ class GetBatchDetails
1013
+ attr_accessor :aPIKey
362
1014
  attr_accessor :iD
1015
+ attr_accessor :itemID
363
1016
 
364
- def initialize(username = nil, password = nil, iD = nil)
365
- @username = username
366
- @password = password
1017
+ def initialize(aPIKey = nil, iD = nil, itemID = nil)
1018
+ @aPIKey = aPIKey
367
1019
  @iD = iD
1020
+ @itemID = itemID
368
1021
  end
369
1022
  end
370
1023
 
371
- # {PostalMethods}CancelDeliveryResponse
372
- # cancelDeliveryResult - SOAP::SOAPInt
373
- class CancelDeliveryResponse
374
- attr_accessor :cancelDeliveryResult
1024
+ # {PostalMethods}GetBatchDetailsResponse
1025
+ # getBatchDetailsResult - GetBatchDetailsResult
1026
+ class GetBatchDetailsResponse
1027
+ attr_accessor :getBatchDetailsResult
375
1028
 
376
- def initialize(cancelDeliveryResult = nil)
377
- @cancelDeliveryResult = cancelDeliveryResult
1029
+ def initialize(getBatchDetailsResult = nil)
1030
+ @getBatchDetailsResult = getBatchDetailsResult
378
1031
  end
379
1032
  end