OnePica_AvaTax - Version 2.6.2

Version Notes

Remove closing tag ("?>") in Avatax library

Download this release

Release Info

Developer Astound Commerce
Extension OnePica_AvaTax
Version 2.6.2
Comparing to
See all releases


Code changes from version 2.6.1 to 2.6.2

Files changed (114) hide show
  1. lib/AvaTax/AvaTax.php +20 -25
  2. lib/AvaTax/classes/ATConfig.class.php +8 -12
  3. lib/AvaTax/classes/ATObject.class.php +14 -16
  4. lib/AvaTax/classes/Address.class.php +40 -42
  5. lib/AvaTax/classes/AddressServiceSoap.class.php +17 -21
  6. lib/AvaTax/classes/AddressType.class.php +3 -5
  7. lib/AvaTax/classes/AdjustTaxRequest.class.php +31 -32
  8. lib/AvaTax/classes/AdjustTaxResult.class.php +63 -65
  9. lib/AvaTax/classes/ApplyPaymentRequest.class.php +16 -18
  10. lib/AvaTax/classes/ApplyPaymentResult.class.php +6 -8
  11. lib/AvaTax/classes/AvaCert2Svc/AvaCert2Soap.class.php +30 -32
  12. lib/AvaTax/classes/AvaCert2Svc/Certificate.class.php +46 -48
  13. lib/AvaTax/classes/AvaCert2Svc/CertificateGetRequest.class.php +9 -11
  14. lib/AvaTax/classes/AvaCert2Svc/CertificateGetResult.class.php +5 -7
  15. lib/AvaTax/classes/AvaCert2Svc/CertificateImageGetRequest.class.php +7 -9
  16. lib/AvaTax/classes/AvaCert2Svc/CertificateImageGetResult.class.php +5 -7
  17. lib/AvaTax/classes/AvaCert2Svc/CertificateJurisdiction.class.php +8 -10
  18. lib/AvaTax/classes/AvaCert2Svc/CertificateRequest.class.php +13 -15
  19. lib/AvaTax/classes/AvaCert2Svc/CertificateRequestGetRequest.class.php +9 -11
  20. lib/AvaTax/classes/AvaCert2Svc/CertificateRequestGetResult.class.php +6 -8
  21. lib/AvaTax/classes/AvaCert2Svc/CertificateRequestInitiateRequest.class.php +15 -17
  22. lib/AvaTax/classes/AvaCert2Svc/CertificateRequestInitiateResult.class.php +6 -8
  23. lib/AvaTax/classes/AvaCert2Svc/CertificateRequestStage.class.php +7 -9
  24. lib/AvaTax/classes/AvaCert2Svc/CertificateRequestStatus.class.php +9 -11
  25. lib/AvaTax/classes/AvaCert2Svc/CertificateStatus.class.php +7 -9
  26. lib/AvaTax/classes/AvaCert2Svc/CertificateUsage.class.php +7 -9
  27. lib/AvaTax/classes/AvaCert2Svc/CommunicationMode.class.php +7 -9
  28. lib/AvaTax/classes/AvaCert2Svc/Customer.class.php +18 -20
  29. lib/AvaTax/classes/AvaCert2Svc/CustomerSaveRequest.class.php +4 -6
  30. lib/AvaTax/classes/AvaCert2Svc/CustomerSaveResult.class.php +2 -4
  31. lib/AvaTax/classes/AvaCert2Svc/FormatType.class.php +7 -9
  32. lib/AvaTax/classes/AvaCert2Svc/RequestType.class.php +7 -9
  33. lib/AvaTax/classes/AvaCert2Svc/ReviewStatus.class.php +8 -10
  34. lib/AvaTax/classes/AvalaraSoapClient.class.php +3 -7
  35. lib/AvaTax/classes/BaseResult.class.php +6 -8
  36. lib/AvaTax/classes/BatchSvc/AuditMessage.class.php +2 -4
  37. lib/AvaTax/classes/BatchSvc/AvaTaxBatchSvc.php +13 -16
  38. lib/AvaTax/classes/BatchSvc/BaseResult.class.php +2 -4
  39. lib/AvaTax/classes/BatchSvc/Batch.class.php +7 -9
  40. lib/AvaTax/classes/BatchSvc/BatchDelete.class.php +2 -4
  41. lib/AvaTax/classes/BatchSvc/BatchDeleteResponse.class.php +2 -4
  42. lib/AvaTax/classes/BatchSvc/BatchFetch.class.php +2 -4
  43. lib/AvaTax/classes/BatchSvc/BatchFetchResponse.class.php +2 -4
  44. lib/AvaTax/classes/BatchSvc/BatchFetchResult.class.php +2 -4
  45. lib/AvaTax/classes/BatchSvc/BatchFile.class.php +3 -5
  46. lib/AvaTax/classes/BatchSvc/BatchFileDelete.class.php +2 -4
  47. lib/AvaTax/classes/BatchSvc/BatchFileDeleteResponse.class.php +2 -4
  48. lib/AvaTax/classes/BatchSvc/BatchFileFetch.class.php +2 -4
  49. lib/AvaTax/classes/BatchSvc/BatchFileFetchResponse.class.php +2 -4
  50. lib/AvaTax/classes/BatchSvc/BatchFileFetchResult.class.php +2 -4
  51. lib/AvaTax/classes/BatchSvc/BatchFileSave.class.php +2 -4
  52. lib/AvaTax/classes/BatchSvc/BatchFileSaveResponse.class.php +2 -4
  53. lib/AvaTax/classes/BatchSvc/BatchFileSaveResult.class.php +2 -4
  54. lib/AvaTax/classes/BatchSvc/BatchProcess.class.php +2 -4
  55. lib/AvaTax/classes/BatchSvc/BatchProcessRequest.class.php +4 -6
  56. lib/AvaTax/classes/BatchSvc/BatchProcessResponse.class.php +2 -4
  57. lib/AvaTax/classes/BatchSvc/BatchProcessResult.class.php +2 -4
  58. lib/AvaTax/classes/BatchSvc/BatchSave.class.php +2 -4
  59. lib/AvaTax/classes/BatchSvc/BatchSaveResponse.class.php +2 -4
  60. lib/AvaTax/classes/BatchSvc/BatchSaveResult.class.php +2 -4
  61. lib/AvaTax/classes/BatchSvc/BatchSvc.class.php +32 -34
  62. lib/AvaTax/classes/BatchSvc/DeleteRequest.class.php +6 -8
  63. lib/AvaTax/classes/BatchSvc/DeleteResult.class.php +2 -4
  64. lib/AvaTax/classes/BatchSvc/FetchRequest.class.php +3 -5
  65. lib/AvaTax/classes/BatchSvc/FilterRequest.class.php +4 -6
  66. lib/AvaTax/classes/BatchSvc/FilterResult.class.php +2 -4
  67. lib/AvaTax/classes/BatchSvc/IsAuthorized.class.php +2 -4
  68. lib/AvaTax/classes/BatchSvc/IsAuthorizedResponse.class.php +2 -4
  69. lib/AvaTax/classes/BatchSvc/IsAuthorizedResult.class.php +2 -4
  70. lib/AvaTax/classes/BatchSvc/Message.class.php +2 -4
  71. lib/AvaTax/classes/BatchSvc/Ping.class.php +2 -4
  72. lib/AvaTax/classes/BatchSvc/PingResponse.class.php +2 -4
  73. lib/AvaTax/classes/BatchSvc/PingResult.class.php +3 -5
  74. lib/AvaTax/classes/BatchSvc/Profile.class.php +2 -4
  75. lib/AvaTax/classes/BatchSvc/SeverityLevel.class.php +2 -4
  76. lib/AvaTax/classes/BoundaryLevel.class.php +8 -11
  77. lib/AvaTax/classes/CancelCode.class.php +7 -9
  78. lib/AvaTax/classes/CancelTaxRequest.class.php +4 -10
  79. lib/AvaTax/classes/CancelTaxResult.class.php +7 -9
  80. lib/AvaTax/classes/CommitTaxRequest.class.php +9 -12
  81. lib/AvaTax/classes/CommitTaxResult.class.php +7 -9
  82. lib/AvaTax/classes/DetailLevel.class.php +8 -10
  83. lib/AvaTax/classes/DocStatus.class.php +9 -11
  84. lib/AvaTax/classes/DocumentType.class.php +12 -14
  85. lib/AvaTax/classes/DynamicSoapClient.class.php +11 -13
  86. lib/AvaTax/classes/Enum.class.php +5 -7
  87. lib/AvaTax/classes/GetTaxHistoryRequest.class.php +9 -11
  88. lib/AvaTax/classes/GetTaxHistoryResult.class.php +7 -9
  89. lib/AvaTax/classes/GetTaxRequest.class.php +0 -2
  90. lib/AvaTax/classes/GetTaxResult.class.php +69 -71
  91. lib/AvaTax/classes/IsAuthorizedResult.class.php +6 -8
  92. lib/AvaTax/classes/JurisdictionType.class.php +14 -16
  93. lib/AvaTax/classes/Line.class.php +79 -82
  94. lib/AvaTax/classes/Message.class.php +17 -19
  95. lib/AvaTax/classes/PingResult.class.php +3 -5
  96. lib/AvaTax/classes/PostTaxRequest.class.php +31 -36
  97. lib/AvaTax/classes/PostTaxResult.class.php +6 -7
  98. lib/AvaTax/classes/ReconcileTaxHistoryRequest.class.php +27 -29
  99. lib/AvaTax/classes/ReconcileTaxHistoryResult.class.php +10 -12
  100. lib/AvaTax/classes/SearchTaxHistoryResult.class.php +4 -6
  101. lib/AvaTax/classes/ServiceMode.class.php +8 -9
  102. lib/AvaTax/classes/SeverityLevel.class.php +5 -7
  103. lib/AvaTax/classes/TaxDetail.class.php +33 -39
  104. lib/AvaTax/classes/TaxLine.class.php +37 -38
  105. lib/AvaTax/classes/TaxOverride.class.php +12 -14
  106. lib/AvaTax/classes/TaxOverrideType.class.php +2 -4
  107. lib/AvaTax/classes/TaxRequest.class.php +11 -13
  108. lib/AvaTax/classes/TaxServiceSoap.class.php +22 -24
  109. lib/AvaTax/classes/TaxType.class.php +4 -8
  110. lib/AvaTax/classes/TextCase.class.php +2 -4
  111. lib/AvaTax/classes/ValidAddress.class.php +32 -34
  112. lib/AvaTax/classes/ValidateRequest.class.php +26 -28
  113. lib/AvaTax/classes/ValidateResult.class.php +13 -15
  114. package.xml +5 -12
lib/AvaTax/AvaTax.php CHANGED
@@ -4,38 +4,38 @@
4
  *
5
  * @package Base
6
  */
7
-
8
  /**
9
  * Defines class loading search path.
10
  */
11
-
12
- function __autoload($class_name)
13
- {
14
-
15
  $path=dirname(__FILE__).'/classes/'.$class_name . '.class.php';
16
-
17
  if(!file_exists($path))
18
  {
19
  $path=dirname(__FILE__).'/classes/BatchSvc/'.$class_name . '.class.php';
20
  }
21
-
22
  if(!file_exists($path))
23
  {
24
- $path=dirname(__FILE__).'/classes/AvaCert2Svc/'.$class_name . '.class.php';
25
  }
26
-
27
  require_once $path;
28
-
29
-
30
  }
31
 
32
- function EnsureIsArray( $obj )
33
  {
34
- if( is_object($obj))
35
  {
36
  $item[0] = $obj;
37
- }
38
- else
39
  {
40
  $item = (array)$obj;
41
  }
@@ -57,7 +57,7 @@ function xml_pretty_printer($xml, $html_output=FALSE)
57
  $xml_obj = new SimpleXMLElement($xml);
58
  $xml_lines = explode("n", $xml_obj->asXML());
59
  $indent_level = 0;
60
-
61
  $new_xml_lines = array();
62
  foreach ($xml_lines as $xml_line) {
63
  if (preg_match('#(<[a-z0-9:-]+((s+[a-z0-9:-]+="[^"]+")*)?>.*<s*/s*[^>]+>)|(<[a-z0-9:-]+((s+[a-z0-9:-]+="[^"]+")*)?s*/s*>)#i', $xml_line)) {
@@ -80,7 +80,7 @@ function xml_pretty_printer($xml, $html_output=FALSE)
80
  $new_xml_lines[] = $new_line;
81
  }
82
  }
83
-
84
  $xml = join("n", $new_xml_lines);
85
  return ($html_output) ? '<pre>' . htmlentities($xml) . '</pre>' : $xml;
86
  }
@@ -89,17 +89,12 @@ function getDefaultDate()
89
  {
90
  $dateTime=new DateTime();
91
  $dateTime->setDate(1900,01,01);
92
-
93
  return $dateTime->format("Y-m-d");
94
- }
95
 
96
  function getCurrentDate()
97
  {
98
  $dateTime=new DateTime();
99
  return $dateTime->format("Y-m-d");
100
- }
101
-
102
-
103
-
104
-
105
- ?>
4
  *
5
  * @package Base
6
  */
7
+
8
  /**
9
  * Defines class loading search path.
10
  */
11
+
12
+ function __autoload($class_name)
13
+ {
14
+
15
  $path=dirname(__FILE__).'/classes/'.$class_name . '.class.php';
16
+
17
  if(!file_exists($path))
18
  {
19
  $path=dirname(__FILE__).'/classes/BatchSvc/'.$class_name . '.class.php';
20
  }
21
+
22
  if(!file_exists($path))
23
  {
24
+ $path=dirname(__FILE__).'/classes/AvaCert2Svc/'.$class_name . '.class.php';
25
  }
26
+
27
  require_once $path;
28
+
29
+
30
  }
31
 
32
+ function EnsureIsArray( $obj )
33
  {
34
+ if( is_object($obj))
35
  {
36
  $item[0] = $obj;
37
+ }
38
+ else
39
  {
40
  $item = (array)$obj;
41
  }
57
  $xml_obj = new SimpleXMLElement($xml);
58
  $xml_lines = explode("n", $xml_obj->asXML());
59
  $indent_level = 0;
60
+
61
  $new_xml_lines = array();
62
  foreach ($xml_lines as $xml_line) {
63
  if (preg_match('#(<[a-z0-9:-]+((s+[a-z0-9:-]+="[^"]+")*)?>.*<s*/s*[^>]+>)|(<[a-z0-9:-]+((s+[a-z0-9:-]+="[^"]+")*)?s*/s*>)#i', $xml_line)) {
80
  $new_xml_lines[] = $new_line;
81
  }
82
  }
83
+
84
  $xml = join("n", $new_xml_lines);
85
  return ($html_output) ? '<pre>' . htmlentities($xml) . '</pre>' : $xml;
86
  }
89
  {
90
  $dateTime=new DateTime();
91
  $dateTime->setDate(1900,01,01);
92
+
93
  return $dateTime->format("Y-m-d");
94
+ }
95
 
96
  function getCurrentDate()
97
  {
98
  $dateTime=new DateTime();
99
  return $dateTime->format("Y-m-d");
100
+ }
 
 
 
 
 
lib/AvaTax/classes/ATConfig.class.php CHANGED
@@ -2,14 +2,14 @@
2
  /**
3
  * ATConfig.class.php
4
  */
5
-
6
  /**
7
  * Contains various service configuration parameters as class static variables.
8
  *
9
  * {@link AddressServiceSoap} and {@link TaxServiceSoap} read this file during initialization.
10
  *
11
  * @author Avalara
12
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  * @package Base
14
  */
15
 
@@ -17,7 +17,7 @@ class ATConfig
17
  {
18
  private static $Configurations = array();
19
  private $_ivars;
20
-
21
  public function __construct($name, $values = null)
22
  {
23
  if($values)
@@ -26,17 +26,17 @@ class ATConfig
26
  }
27
  $this->_ivars = ATConfig::$Configurations[$name];
28
  }
29
-
30
- public function __get($n)
31
  {
32
  if($n == '_ivars') { return parent::__get($n); }
33
- if(isset($this->_ivars[$n]))
34
  {
35
- return $this->_ivars[$n];
36
  }
37
  else if(isset(ATConfig::$Configurations['Default'][$n])) // read missing values from default
38
  {
39
- return ATConfig::$Configurations['Default'][$n];
40
  }
41
  else
42
  {
@@ -67,7 +67,3 @@ new ATConfig('Default', array(
67
  'name' => '13.7.0.0',
68
  'trace' => true) // change to false for production
69
  );
70
-
71
-
72
-
73
- ?>
2
  /**
3
  * ATConfig.class.php
4
  */
5
+
6
  /**
7
  * Contains various service configuration parameters as class static variables.
8
  *
9
  * {@link AddressServiceSoap} and {@link TaxServiceSoap} read this file during initialization.
10
  *
11
  * @author Avalara
12
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  * @package Base
14
  */
15
 
17
  {
18
  private static $Configurations = array();
19
  private $_ivars;
20
+
21
  public function __construct($name, $values = null)
22
  {
23
  if($values)
26
  }
27
  $this->_ivars = ATConfig::$Configurations[$name];
28
  }
29
+
30
+ public function __get($n)
31
  {
32
  if($n == '_ivars') { return parent::__get($n); }
33
+ if(isset($this->_ivars[$n]))
34
  {
35
+ return $this->_ivars[$n];
36
  }
37
  else if(isset(ATConfig::$Configurations['Default'][$n])) // read missing values from default
38
  {
39
+ return ATConfig::$Configurations['Default'][$n];
40
  }
41
  else
42
  {
67
  'name' => '13.7.0.0',
68
  'trace' => true) // change to false for production
69
  );
 
 
 
 
lib/AvaTax/classes/ATObject.class.php CHANGED
@@ -2,41 +2,41 @@
2
  /**
3
  * ATObject.class.php
4
  */
5
-
6
  /**
7
  * Generic Dynamic Object
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Base
12
  */
13
  class ATObject
14
  {
15
  private $_ivars = array();
16
- public function __get($n)
17
- {
18
- if(isset($this->_ivars[$n]))
19
  {
20
- return $this->_ivars[$n];
21
  }
22
- else
23
  {
24
- return null;
25
  }
26
  }
27
- public function __set($n,$v)
28
- {
29
  if($v == null)
30
  {
31
- unset($this->_ivars[$n]);
32
  }
33
- else
34
  {
35
- $this->_ivars[$n] = $v;
36
  }
37
  }
38
  public function __isset($n) { return isset($ivars[$n]); }
39
- public function __unset($n) { unset($this->_ivars[$n]); }
40
  public function __call($n,$args)
41
  {
42
  if(sizeof($args) == 1)
@@ -51,5 +51,3 @@ class ATObject
51
  }
52
  public function ivars() { return $this->_ivars; }
53
  }
54
-
55
- ?>
2
  /**
3
  * ATObject.class.php
4
  */
5
+
6
  /**
7
  * Generic Dynamic Object
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Base
12
  */
13
  class ATObject
14
  {
15
  private $_ivars = array();
16
+ public function __get($n)
17
+ {
18
+ if(isset($this->_ivars[$n]))
19
  {
20
+ return $this->_ivars[$n];
21
  }
22
+ else
23
  {
24
+ return null;
25
  }
26
  }
27
+ public function __set($n,$v)
28
+ {
29
  if($v == null)
30
  {
31
+ unset($this->_ivars[$n]);
32
  }
33
+ else
34
  {
35
+ $this->_ivars[$n] = $v;
36
  }
37
  }
38
  public function __isset($n) { return isset($ivars[$n]); }
39
+ public function __unset($n) { unset($this->_ivars[$n]); }
40
  public function __call($n,$args)
41
  {
42
  if(sizeof($args) == 1)
51
  }
52
  public function ivars() { return $this->_ivars; }
53
  }
 
 
lib/AvaTax/classes/Address.class.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Address.class.php
4
  */
5
-
6
  /**
7
  * Contains address data; Can be passed to {@link AddressServiceSoap#validate};
8
  * Also part of the {@link GetTaxRequest}
@@ -27,10 +27,10 @@
27
  *
28
  * </pre>
29
  * @author Avalara
30
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
31
  * @package Address
32
  */
33
-
34
  class Address
35
  {
36
 
@@ -45,11 +45,11 @@ class Address
45
  private $TaxRegionId = 0;
46
  private $Latitude;
47
  private $Longitude;
48
-
49
  /**
50
  * Construct a new Address.
51
  *
52
- * Constructs a new instance of Address.
53
  * <pre>
54
  * $address = new Address();
55
  * </pre>
@@ -77,59 +77,59 @@ class Address
77
  $this->Country = $country;
78
  $this->TaxRegionId = $taxRegionId;
79
  $this->Latitude = $latitude;
80
- $this->Longitude = $longitude;
81
  }
82
 
83
  /**
84
  * Programmatically determined value used internally by the adapter.
85
  *
86
  * @param string $value
87
- *
88
  */
89
  public function setAddressCode($value) { $this->AddressCode = $value; }
90
-
91
  /**
92
- * Address line 1
93
  *
94
  * @param string $value
95
  */
96
  public function setLine1($value) { $this->Line1 = $value; }
97
-
98
  /**
99
  * Address line 2
100
  *
101
  * @param string $value
102
  */
103
  public function setLine2($value) { $this->Line2 = $value; }
104
-
105
  /**
106
- * Address line 3
107
  *
108
  * @param string $value
109
  */
110
  public function setLine3($value) { $this->Line3 = $value; }
111
-
112
  /**
113
  * City name
114
  *
115
  * @param string $value
116
  */
117
  public function setCity($value) { $this->City = $value; }
118
-
119
  /**
120
  * State or province name or abbreviation
121
  *
122
  * @param string $value
123
  */
124
  public function setRegion($value) { $this->Region = $value; }
125
-
126
  /**
127
  * Postal or ZIP code
128
  *
129
  * @param string $value
130
  */
131
  public function setPostalCode($value) { $this->PostalCode = $value; }
132
-
133
  /**
134
  * Country name
135
  *
@@ -139,101 +139,101 @@ class Address
139
 
140
 
141
  /**
142
- * TaxRegionId provides the ability to override the tax region assignment for an address.
143
  *
144
  * @param string $value
145
  */
146
  public function setTaxRegionId($value) { $this->TaxRegionId = $value; }
147
 
148
-
149
  /**
150
  * Set Latitude Value
151
  *
152
  * @param string $value
153
  */
154
  public function setLatitude($value) { $this->Latitude = $value; }
155
-
156
-
157
  /**
158
  * Set Longitude Value
159
  *
160
  * @param string $value
161
  */
162
  public function setLongitude($value) { $this->Longitude = $value; }
163
-
164
-
165
  /**
166
  * Programmatically determined value used internally by the adapter.
167
  *
168
  * @return string $value
169
  */
170
  public function getAddressCode() { return $this->AddressCode; }
171
-
172
  /**
173
- * Address line 1
174
  *
175
  * @return string $value
176
  */
177
  public function getLine1() { return $this->Line1; }
178
-
179
  /**
180
- * Address line 2
181
  *
182
  * @return string $value
183
  */
184
  public function getLine2() { return $this->Line2; }
185
-
186
  /**
187
- * Address line 3
188
  *
189
  * @return string $value
190
  */
191
  public function getLine3() { return $this->Line3; }
192
-
193
  /**
194
- * City name
195
  *
196
  * @return string $value
197
  */
198
  public function getCity() { return $this->City; }
199
-
200
  /**
201
  * State or province name or abbreviation
202
  *
203
  * @return string $value
204
  */
205
  public function getRegion() { return $this->Region; }
206
-
207
  /**
208
- * Postal or ZIP code
209
  *
210
  * @return string $value
211
  */
212
  public function getPostalCode() { return $this->PostalCode; }
213
-
214
  /**
215
  * Country name
216
  *
217
  * @return string $value
218
  */
219
  public function getCountry() { return $this->AddressCode; }
220
-
221
  /**
222
- * TaxRegionId provides the ability to override the tax region assignment for an address.
223
  *
224
  * @return string $value
225
  */
226
  public function getTaxRegionId() { return $this->TaxRegionId; }
227
-
228
-
229
  /**
230
  * Latitude Value
231
  *
232
  * @return string $value
233
  */
234
  public function getLatitude() { return $this->Latitude; }
235
-
236
-
237
  /**
238
  * Longitude Value
239
  *
@@ -265,5 +265,3 @@ class Address
265
  );
266
  }
267
  }
268
-
269
- ?>
2
  /**
3
  * Address.class.php
4
  */
5
+
6
  /**
7
  * Contains address data; Can be passed to {@link AddressServiceSoap#validate};
8
  * Also part of the {@link GetTaxRequest}
27
  *
28
  * </pre>
29
  * @author Avalara
30
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
31
  * @package Address
32
  */
33
+
34
  class Address
35
  {
36
 
45
  private $TaxRegionId = 0;
46
  private $Latitude;
47
  private $Longitude;
48
+
49
  /**
50
  * Construct a new Address.
51
  *
52
+ * Constructs a new instance of Address.
53
  * <pre>
54
  * $address = new Address();
55
  * </pre>
77
  $this->Country = $country;
78
  $this->TaxRegionId = $taxRegionId;
79
  $this->Latitude = $latitude;
80
+ $this->Longitude = $longitude;
81
  }
82
 
83
  /**
84
  * Programmatically determined value used internally by the adapter.
85
  *
86
  * @param string $value
87
+ *
88
  */
89
  public function setAddressCode($value) { $this->AddressCode = $value; }
90
+
91
  /**
92
+ * Address line 1
93
  *
94
  * @param string $value
95
  */
96
  public function setLine1($value) { $this->Line1 = $value; }
97
+
98
  /**
99
  * Address line 2
100
  *
101
  * @param string $value
102
  */
103
  public function setLine2($value) { $this->Line2 = $value; }
104
+
105
  /**
106
+ * Address line 3
107
  *
108
  * @param string $value
109
  */
110
  public function setLine3($value) { $this->Line3 = $value; }
111
+
112
  /**
113
  * City name
114
  *
115
  * @param string $value
116
  */
117
  public function setCity($value) { $this->City = $value; }
118
+
119
  /**
120
  * State or province name or abbreviation
121
  *
122
  * @param string $value
123
  */
124
  public function setRegion($value) { $this->Region = $value; }
125
+
126
  /**
127
  * Postal or ZIP code
128
  *
129
  * @param string $value
130
  */
131
  public function setPostalCode($value) { $this->PostalCode = $value; }
132
+
133
  /**
134
  * Country name
135
  *
139
 
140
 
141
  /**
142
+ * TaxRegionId provides the ability to override the tax region assignment for an address.
143
  *
144
  * @param string $value
145
  */
146
  public function setTaxRegionId($value) { $this->TaxRegionId = $value; }
147
 
148
+
149
  /**
150
  * Set Latitude Value
151
  *
152
  * @param string $value
153
  */
154
  public function setLatitude($value) { $this->Latitude = $value; }
155
+
156
+
157
  /**
158
  * Set Longitude Value
159
  *
160
  * @param string $value
161
  */
162
  public function setLongitude($value) { $this->Longitude = $value; }
163
+
164
+
165
  /**
166
  * Programmatically determined value used internally by the adapter.
167
  *
168
  * @return string $value
169
  */
170
  public function getAddressCode() { return $this->AddressCode; }
171
+
172
  /**
173
+ * Address line 1
174
  *
175
  * @return string $value
176
  */
177
  public function getLine1() { return $this->Line1; }
178
+
179
  /**
180
+ * Address line 2
181
  *
182
  * @return string $value
183
  */
184
  public function getLine2() { return $this->Line2; }
185
+
186
  /**
187
+ * Address line 3
188
  *
189
  * @return string $value
190
  */
191
  public function getLine3() { return $this->Line3; }
192
+
193
  /**
194
+ * City name
195
  *
196
  * @return string $value
197
  */
198
  public function getCity() { return $this->City; }
199
+
200
  /**
201
  * State or province name or abbreviation
202
  *
203
  * @return string $value
204
  */
205
  public function getRegion() { return $this->Region; }
206
+
207
  /**
208
+ * Postal or ZIP code
209
  *
210
  * @return string $value
211
  */
212
  public function getPostalCode() { return $this->PostalCode; }
213
+
214
  /**
215
  * Country name
216
  *
217
  * @return string $value
218
  */
219
  public function getCountry() { return $this->AddressCode; }
220
+
221
  /**
222
+ * TaxRegionId provides the ability to override the tax region assignment for an address.
223
  *
224
  * @return string $value
225
  */
226
  public function getTaxRegionId() { return $this->TaxRegionId; }
227
+
228
+
229
  /**
230
  * Latitude Value
231
  *
232
  * @return string $value
233
  */
234
  public function getLatitude() { return $this->Latitude; }
235
+
236
+
237
  /**
238
  * Longitude Value
239
  *
265
  );
266
  }
267
  }
 
 
lib/AvaTax/classes/AddressServiceSoap.class.php CHANGED
@@ -2,9 +2,9 @@
2
  /**
3
  * AddressServiceSoap.class.php
4
  */
5
-
6
  /**
7
- * Proxy interface for the Avalara Address Web Service.
8
  *
9
  * AddressServiceSoap reads its configuration values from static variables defined
10
  * in ATConfig.class.php. This file must be properly configured with your security credentials.
@@ -16,9 +16,9 @@
16
  * </pre>
17
  *
18
  * @author Avalara
19
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
20
  * @package Address
21
- *
22
  */
23
 
24
  class AddressServiceSoap extends AvalaraSoapClient
@@ -30,20 +30,20 @@ class AddressServiceSoap extends AvalaraSoapClient
30
  'ValidateRequest' => 'ValidateRequest',
31
  'BaseAddress' => 'BaseAddress',
32
  'ValidAddress' => 'ValidAddress',
33
- 'TextCase' => 'TextCase',
34
- 'ValidateResult' => 'ValidateResult',
35
  'BaseResult' => 'BaseResult',
36
  'SeverityLevel' => 'SeverityLevel',
37
  'Message' => 'Message',
38
  'Profile' => 'Profile',
39
- 'Ping' => 'Ping',
40
  'PingResult' => 'PingResult',
41
- 'IsAuthorized' => 'IsAuthorized',
42
  'IsAuthorizedResult' => 'IsAuthorizedResult');
43
-
44
  /**
45
  * Construct a proxy for Avalara's Address Web Service using the default URL as coded in the class or programatically set.
46
- *
47
  * <b>Example:</b>
48
  * <pre>
49
  * $port = new AddressServiceSoap();
@@ -61,10 +61,10 @@ class AddressServiceSoap extends AvalaraSoapClient
61
  $config->addressWSDL,
62
  array
63
  (
64
- 'location' => $config->url.$config->addressService,
65
  'trace' => $config->trace,
66
  'classmap' => AddressServiceSoap::$classmap
67
- ),
68
  $config
69
  );
70
  }
@@ -72,13 +72,13 @@ class AddressServiceSoap extends AvalaraSoapClient
72
  /**
73
  * Checks authentication of and authorization to one or more
74
  * operations on the service.
75
- *
76
  * This operation allows pre-authorization checking of any
77
  * or all operations. It will return a comma delimited set of
78
  * operation names which will be all or a subset of the requested
79
  * operation names. For security, it will never return operation
80
  * names other than those requested (no phishing allowed).
81
- *
82
  * <b>Example:</b><br>
83
  * <code> isAuthorized("GetTax,PostTax")</code>
84
  *
@@ -92,7 +92,7 @@ class AddressServiceSoap extends AvalaraSoapClient
92
  {
93
  return $this->client->IsAuthorized(array('Operations' => $operations))->IsAuthorizedResult;
94
  }
95
-
96
  /**
97
  * Verifies connectivity to the web service and returns version
98
  * information about the service.
@@ -109,7 +109,7 @@ class AddressServiceSoap extends AvalaraSoapClient
109
  {
110
  return $this->client->Ping(array('Message' => $message))->PingResult;
111
  }
112
-
113
  /**
114
  * Validates an address and returns a normalized address or error.
115
  * {@link ValidAddress} objects in a {@link ValidateResult} object.
@@ -139,11 +139,7 @@ class AddressServiceSoap extends AvalaraSoapClient
139
  public function validate($validateRequest)
140
  {
141
  return $this->client->Validate(array('ValidateRequest' => $validateRequest))->ValidateResult;
142
- }
143
 
144
 
145
  }
146
-
147
-
148
-
149
- ?>
2
  /**
3
  * AddressServiceSoap.class.php
4
  */
5
+
6
  /**
7
+ * Proxy interface for the Avalara Address Web Service.
8
  *
9
  * AddressServiceSoap reads its configuration values from static variables defined
10
  * in ATConfig.class.php. This file must be properly configured with your security credentials.
16
  * </pre>
17
  *
18
  * @author Avalara
19
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
20
  * @package Address
21
+ *
22
  */
23
 
24
  class AddressServiceSoap extends AvalaraSoapClient
30
  'ValidateRequest' => 'ValidateRequest',
31
  'BaseAddress' => 'BaseAddress',
32
  'ValidAddress' => 'ValidAddress',
33
+ 'TextCase' => 'TextCase',
34
+ 'ValidateResult' => 'ValidateResult',
35
  'BaseResult' => 'BaseResult',
36
  'SeverityLevel' => 'SeverityLevel',
37
  'Message' => 'Message',
38
  'Profile' => 'Profile',
39
+ 'Ping' => 'Ping',
40
  'PingResult' => 'PingResult',
41
+ 'IsAuthorized' => 'IsAuthorized',
42
  'IsAuthorizedResult' => 'IsAuthorizedResult');
43
+
44
  /**
45
  * Construct a proxy for Avalara's Address Web Service using the default URL as coded in the class or programatically set.
46
+ *
47
  * <b>Example:</b>
48
  * <pre>
49
  * $port = new AddressServiceSoap();
61
  $config->addressWSDL,
62
  array
63
  (
64
+ 'location' => $config->url.$config->addressService,
65
  'trace' => $config->trace,
66
  'classmap' => AddressServiceSoap::$classmap
67
+ ),
68
  $config
69
  );
70
  }
72
  /**
73
  * Checks authentication of and authorization to one or more
74
  * operations on the service.
75
+ *
76
  * This operation allows pre-authorization checking of any
77
  * or all operations. It will return a comma delimited set of
78
  * operation names which will be all or a subset of the requested
79
  * operation names. For security, it will never return operation
80
  * names other than those requested (no phishing allowed).
81
+ *
82
  * <b>Example:</b><br>
83
  * <code> isAuthorized("GetTax,PostTax")</code>
84
  *
92
  {
93
  return $this->client->IsAuthorized(array('Operations' => $operations))->IsAuthorizedResult;
94
  }
95
+
96
  /**
97
  * Verifies connectivity to the web service and returns version
98
  * information about the service.
109
  {
110
  return $this->client->Ping(array('Message' => $message))->PingResult;
111
  }
112
+
113
  /**
114
  * Validates an address and returns a normalized address or error.
115
  * {@link ValidAddress} objects in a {@link ValidateResult} object.
139
  public function validate($validateRequest)
140
  {
141
  return $this->client->Validate(array('ValidateRequest' => $validateRequest))->ValidateResult;
142
+ }
143
 
144
 
145
  }
 
 
 
 
lib/AvaTax/classes/AddressType.class.php CHANGED
@@ -7,9 +7,9 @@
7
  * The type of the address(es) returned in the validation result.
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Address
12
- *
13
  */
14
 
15
  class AddressType extends Enum
@@ -20,7 +20,7 @@ class AddressType extends Enum
20
  public static $POBox = 'P';
21
  public static $RuralRoute = 'R';
22
  public static $StreetOrResidential = 'S';
23
-
24
  public static function Values()
25
  {
26
  return array(
@@ -36,5 +36,3 @@ class AddressType extends Enum
36
  // Unfortunate boiler plate due to polymorphism issues on static functions
37
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
38
  }
39
-
40
- ?>
7
  * The type of the address(es) returned in the validation result.
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Address
12
+ *
13
  */
14
 
15
  class AddressType extends Enum
20
  public static $POBox = 'P';
21
  public static $RuralRoute = 'R';
22
  public static $StreetOrResidential = 'S';
23
+
24
  public static function Values()
25
  {
26
  return array(
36
  // Unfortunate boiler plate due to polymorphism issues on static functions
37
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
38
  }
 
 
lib/AvaTax/classes/AdjustTaxRequest.class.php CHANGED
@@ -9,69 +9,68 @@
9
  * @see AdjustTaxRequest
10
  *
11
  * @author Avalara
12
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  * @package Tax
14
  */
15
-
16
-
17
-
18
- class AdjustTaxRequest
19
  {
20
  private $AdjustmentReason; //int
21
  private $AdjustmentDescription; //string
22
  private $GetTaxRequest; //string
23
 
24
-
25
- /**
26
- * Adjustment Description is required when AdjustmentReason is "Other" for enhanced tracability.
27
  *
28
  * @param string $value
29
  */
30
  public function setAdjustmentDescription($value) { $this->AdjustmentDescription = $value; }
31
-
32
 
33
 
34
  /**
35
  * Reason for Adjusting document.
36
  * <pre>
37
  * Sets a valid reason for the given AdjustTax call. Adjustment Reason is a high level classification of why an Original Document is being modified.
38
- * 0 Not Adjusted
39
- * 1 Sourcing Issue
40
- * 2 Reconciled with General Ledger
41
- * 3 Exemption Certificate Applied
42
- * 4 Price or Quantity Adjusted
43
- * 5 Item Returned
44
- * 6 Item Exchanged
45
- * 7 Bad Debt
46
- * 8 Other (Explain)
47
  Must provide AdjustmentDescription
48
  <pre>
49
- *
50
- * Please visit Avalara's Administrative Console's transaction adjustment section for latest AdjustmentReasonList.
51
  *
52
- * @param int $value
53
- */
54
  public function setAdjustmentReason($value) { $this->AdjustmentReason = $value;}
55
-
56
-
57
  /**
58
- * Holds the data for Adjust Tax call. It takes the information needed for GetTax call.
59
  *
60
  * @param GetTaxRequest $value
61
  */
62
  public function setGetTaxRequest($value) { $this->GetTaxRequest = $value;}
63
-
64
  public function getAdjustmentReason() { return $this->AdjustmentReason;} //int
65
 
66
- public function getAdjustmentDescription() { return $this->AdjustmentDescription;}
67
-
68
 
69
  public function getGetTaxRequest() { return $this->GetTaxRequest;} //string invoice number
70
-
71
 
72
-
73
 
74
-
 
 
75
  }
76
 
77
- ?>
9
  * @see AdjustTaxRequest
10
  *
11
  * @author Avalara
12
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  * @package Tax
14
  */
15
+
16
+
17
+
18
+ class AdjustTaxRequest
19
  {
20
  private $AdjustmentReason; //int
21
  private $AdjustmentDescription; //string
22
  private $GetTaxRequest; //string
23
 
24
+
25
+ /**
26
+ * Adjustment Description is required when AdjustmentReason is "Other" for enhanced tracability.
27
  *
28
  * @param string $value
29
  */
30
  public function setAdjustmentDescription($value) { $this->AdjustmentDescription = $value; }
31
+
32
 
33
 
34
  /**
35
  * Reason for Adjusting document.
36
  * <pre>
37
  * Sets a valid reason for the given AdjustTax call. Adjustment Reason is a high level classification of why an Original Document is being modified.
38
+ * 0 Not Adjusted
39
+ * 1 Sourcing Issue
40
+ * 2 Reconciled with General Ledger
41
+ * 3 Exemption Certificate Applied
42
+ * 4 Price or Quantity Adjusted
43
+ * 5 Item Returned
44
+ * 6 Item Exchanged
45
+ * 7 Bad Debt
46
+ * 8 Other (Explain)
47
  Must provide AdjustmentDescription
48
  <pre>
49
+ *
50
+ * Please visit Avalara's Administrative Console's transaction adjustment section for latest AdjustmentReasonList.
51
  *
52
+ * @param int $value
53
+ */
54
  public function setAdjustmentReason($value) { $this->AdjustmentReason = $value;}
55
+
56
+
57
  /**
58
+ * Holds the data for Adjust Tax call. It takes the information needed for GetTax call.
59
  *
60
  * @param GetTaxRequest $value
61
  */
62
  public function setGetTaxRequest($value) { $this->GetTaxRequest = $value;}
63
+
64
  public function getAdjustmentReason() { return $this->AdjustmentReason;} //int
65
 
66
+ public function getAdjustmentDescription() { return $this->AdjustmentDescription;}
67
+
68
 
69
  public function getGetTaxRequest() { return $this->GetTaxRequest;} //string invoice number
 
70
 
 
71
 
72
+
73
+
74
+
75
  }
76
 
 
lib/AvaTax/classes/AdjustTaxResult.class.php CHANGED
@@ -9,43 +9,43 @@
9
  * @see AdjustTaxRequest
10
  *
11
  * @author Avalara
12
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  * @package Tax
14
  */
15
 
16
  class AdjustTaxResult //extends GetTaxResult
17
  {
18
 
19
-
20
  ///From GetTaxResult- Bug in soapclient requires this copy
21
- private $DocCode; //string
22
- private $AdjustmentDescription; //string
23
- private $DocDate; //date
24
- private $TaxDate; //date
25
- private $DocType; //DocumentType
26
- private $DocStatus; //DocStatus
27
- private $Reconciled; //boolean
28
- private $Locked; //boolean
29
- private $Timestamp; //dateTime
30
- private $TotalAmount; //decimal
31
- private $TotalDiscount; //decimal
32
- private $TotalExemption; //decimal
33
- private $TotalTaxable; //decimal
34
- private $TotalTax; //decimal
35
- private $HashCode; //int
36
- private $AdjustmentReason; //int
37
- private $Version; //int
38
  private $TaxLines; //ArrayOfTaxLine
39
-
40
  //@author:swetal
41
  //Added new properties to upgrade to 5.3 interface
42
  private $TotalTaxCalculated; //decimal
43
  private $TaxSummary; //ArrayOfTaxDetail
44
-
45
-
46
-
47
  /**
48
- * Gets the internal reference code used by the client application. This is used for operations such as Post and GetTaxHistory.
49
  * <p>
50
  * See {@link GetTaxRequest#getDocCode} on <b>GetTaxRequest</b> for more information about this member.
51
  * </p>
@@ -53,21 +53,21 @@ class AdjustTaxResult //extends GetTaxResult
53
  * @return string
54
  */
55
  public function getDocCode() {return $this->DocCode; }
56
-
57
  /**
58
- * AdjustmentDescription set while making AdjustTax call.
59
  *
60
  * @return string
61
  */
62
  public function getAdjustmentDescription() { return $this->AdjustmentDescription; }
63
-
64
  /**
65
- * AdjustmentReason set while making AdjustTax call. It is a high level classification of why an Original Document is being modified.
66
  *
67
  * @return int
68
  */
69
  public function getAdjustmentReason(){ return $this->AdjustmentReason; }
70
-
71
  /**
72
  * Gets the date on the invoice, purchase order, etc.
73
  * <p>
@@ -77,9 +77,9 @@ class AdjustTaxResult //extends GetTaxResult
77
  * @return date
78
  */
79
  public function getDocDate() {return $this->DocDate; }
80
-
81
  /**
82
- * Tax Date is the date used to calculate tax on the Document.
83
  * <p>
84
  * See {@link GetTaxRequest#taxDate} on <b>GetTaxRequest</b> for more information about this member.
85
  * </p>
@@ -87,7 +87,7 @@ class AdjustTaxResult //extends GetTaxResult
87
  * @return date
88
  */
89
  public function getTaxDate() {return $this->TaxDate; }
90
-
91
  /**
92
  * Gets the Document Type.
93
  * <p>
@@ -97,14 +97,14 @@ class AdjustTaxResult //extends GetTaxResult
97
  * @return DocumentType
98
  */
99
  public function getDocType() {return $this->DocType; }
100
-
101
  /**
102
  * Gets the document's status after the tax calculation.
103
  *
104
  * @return DocStatus
105
- */
106
  public function getDocStatus() {return $this->DocStatus; }
107
-
108
  /**
109
  * True if the document has been reconciled; Only committed documents can be reconciled.
110
  * <p>
@@ -114,46 +114,46 @@ class AdjustTaxResult //extends GetTaxResult
114
  * </p>
115
  *
116
  * @return boolean
117
- */
118
  public function getIsReconciled() {return $this->Reconciled; }
119
-
120
  /**
121
- * Flag indicating if a Document has been locked by Avalara's MRS process. Locked documents can not be modified and can not be cancelled because they have been reported on Tax Return.
122
  *
123
  * @return boolean
124
  */
125
  public function getLocked() {return $this->Locked; }
126
-
127
  /**
128
  * Date of the last status change on the document (i.e. Save date, Post date, Commit date, Cancel date).
129
  *
130
  * @return dateTime
131
  */
132
  public function getTimestamp() {return $this->Timestamp; }
133
-
134
  /**
135
  * The sum of all line {@link Line#getAmount} values.
136
  *
137
  * @param decimal
138
- */
139
  public function getTotalAmount() {return $this->TotalAmount; }
140
-
141
  /**
142
  * Gets the sum of all <b>TaxLine</b> {@link TaxLine#getDiscount} amounts; Typically it
143
  * will equal the requested Discount, but, but it is possible that no lines were marked as discounted.
144
  *
145
  * @return decimal
146
- */
147
  public function getTotalDiscount() {return $this->TotalDiscount; }
148
-
149
  /**
150
  * Gets the sum of all <b>TaxLine</b> {@link TaxLine#getExemption} amounts.
151
  *
152
  * @return decimal
153
  * @deprecated See {@link TaxDetail#getExemption}.
154
- */
155
  public function getTotalExemption() {return $this->TotalExemption; }
156
-
157
  /**
158
  * Gets the amount the tax is based on; This is the total of all {@link Line} <b>Base</b> amounts;
159
  * Typically it will be equal to the document
@@ -161,37 +161,37 @@ class AdjustTaxResult //extends GetTaxResult
161
  *
162
  * @return decimal
163
  * @deprecated See {@link TaxDetail#getTaxable}.
164
- */
165
  public function getTotalTaxable() {return $this->TotalTaxable; }
166
-
167
  /**
168
  * Gets the total tax for the document.
169
  *
170
  * @return decimal
171
- */
172
  public function getTotalTax() {return $this->TotalTax; }
173
-
174
  /**
175
- * HashCode to support Reconciliation.
176
- *
177
  * @return hashCode
178
- */
179
  public function getHashCode() {return $this->HashCode; }
180
-
181
  /**
182
- * Current version of the document.
183
  *
184
  * @return int
185
  */
186
  public function getVersion() {return $this->Version; }
187
-
188
  /**
189
  * Gets the Tax broken down by individual {@link TaxLine}.
190
  *
191
  * @return taxLines
192
  */
193
  public function getTaxLines() {return EnsureIsArray($this->TaxLines->TaxLine); }
194
-
195
  /**
196
  * TotalTaxCalculated indicates the total tax calculated by AvaTax. This is usually the same as the TotalTax, except when a tax override amount is specified.
197
  * This is for informational purposes.The TotalTax will still be used for reporting
@@ -199,15 +199,15 @@ class AdjustTaxResult //extends GetTaxResult
199
  * @return unknown
200
  */
201
  public function getTotalTaxCalculated(){ return $this->TotalTaxCalculated;}
202
-
203
  /**
204
  * TaxSummary is now returned when GetTaxRequest.DetailLevel == DetailLevel.Line in addition to DetailLevel.Summary.
205
- * It is not returned for DetailLevel.Document or DetailLevel.TaxDetail.
206
  *
207
  * @return ArrayOfTaxDetail
208
  */
209
  public function getTaxSummary() {return EnsureIsArray($this->TaxSummary->TaxDetail);}
210
-
211
  public function getTaxLine($lineNo)
212
  {
213
  if($this->getTaxLines() != null)
@@ -218,12 +218,12 @@ class AdjustTaxResult //extends GetTaxResult
218
  {
219
  return $taxLine;
220
  }
221
-
222
  }
223
  }
224
  }
225
-
226
-
227
  /////////////////////////////////////////////PHP bug requires this copy from BaseResult ///////////
228
  /**
229
  * @var string
@@ -258,5 +258,3 @@ class AdjustTaxResult //extends GetTaxResult
258
 
259
 
260
  }
261
-
262
- ?>
9
  * @see AdjustTaxRequest
10
  *
11
  * @author Avalara
12
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  * @package Tax
14
  */
15
 
16
  class AdjustTaxResult //extends GetTaxResult
17
  {
18
 
19
+
20
  ///From GetTaxResult- Bug in soapclient requires this copy
21
+ private $DocCode; //string
22
+ private $AdjustmentDescription; //string
23
+ private $DocDate; //date
24
+ private $TaxDate; //date
25
+ private $DocType; //DocumentType
26
+ private $DocStatus; //DocStatus
27
+ private $Reconciled; //boolean
28
+ private $Locked; //boolean
29
+ private $Timestamp; //dateTime
30
+ private $TotalAmount; //decimal
31
+ private $TotalDiscount; //decimal
32
+ private $TotalExemption; //decimal
33
+ private $TotalTaxable; //decimal
34
+ private $TotalTax; //decimal
35
+ private $HashCode; //int
36
+ private $AdjustmentReason; //int
37
+ private $Version; //int
38
  private $TaxLines; //ArrayOfTaxLine
39
+
40
  //@author:swetal
41
  //Added new properties to upgrade to 5.3 interface
42
  private $TotalTaxCalculated; //decimal
43
  private $TaxSummary; //ArrayOfTaxDetail
44
+
45
+
46
+
47
  /**
48
+ * Gets the internal reference code used by the client application. This is used for operations such as Post and GetTaxHistory.
49
  * <p>
50
  * See {@link GetTaxRequest#getDocCode} on <b>GetTaxRequest</b> for more information about this member.
51
  * </p>
53
  * @return string
54
  */
55
  public function getDocCode() {return $this->DocCode; }
56
+
57
  /**
58
+ * AdjustmentDescription set while making AdjustTax call.
59
  *
60
  * @return string
61
  */
62
  public function getAdjustmentDescription() { return $this->AdjustmentDescription; }
63
+
64
  /**
65
+ * AdjustmentReason set while making AdjustTax call. It is a high level classification of why an Original Document is being modified.
66
  *
67
  * @return int
68
  */
69
  public function getAdjustmentReason(){ return $this->AdjustmentReason; }
70
+
71
  /**
72
  * Gets the date on the invoice, purchase order, etc.
73
  * <p>
77
  * @return date
78
  */
79
  public function getDocDate() {return $this->DocDate; }
80
+
81
  /**
82
+ * Tax Date is the date used to calculate tax on the Document.
83
  * <p>
84
  * See {@link GetTaxRequest#taxDate} on <b>GetTaxRequest</b> for more information about this member.
85
  * </p>
87
  * @return date
88
  */
89
  public function getTaxDate() {return $this->TaxDate; }
90
+
91
  /**
92
  * Gets the Document Type.
93
  * <p>
97
  * @return DocumentType
98
  */
99
  public function getDocType() {return $this->DocType; }
100
+
101
  /**
102
  * Gets the document's status after the tax calculation.
103
  *
104
  * @return DocStatus
105
+ */
106
  public function getDocStatus() {return $this->DocStatus; }
107
+
108
  /**
109
  * True if the document has been reconciled; Only committed documents can be reconciled.
110
  * <p>
114
  * </p>
115
  *
116
  * @return boolean
117
+ */
118
  public function getIsReconciled() {return $this->Reconciled; }
119
+
120
  /**
121
+ * Flag indicating if a Document has been locked by Avalara's MRS process. Locked documents can not be modified and can not be cancelled because they have been reported on Tax Return.
122
  *
123
  * @return boolean
124
  */
125
  public function getLocked() {return $this->Locked; }
126
+
127
  /**
128
  * Date of the last status change on the document (i.e. Save date, Post date, Commit date, Cancel date).
129
  *
130
  * @return dateTime
131
  */
132
  public function getTimestamp() {return $this->Timestamp; }
133
+
134
  /**
135
  * The sum of all line {@link Line#getAmount} values.
136
  *
137
  * @param decimal
138
+ */
139
  public function getTotalAmount() {return $this->TotalAmount; }
140
+
141
  /**
142
  * Gets the sum of all <b>TaxLine</b> {@link TaxLine#getDiscount} amounts; Typically it
143
  * will equal the requested Discount, but, but it is possible that no lines were marked as discounted.
144
  *
145
  * @return decimal
146
+ */
147
  public function getTotalDiscount() {return $this->TotalDiscount; }
148
+
149
  /**
150
  * Gets the sum of all <b>TaxLine</b> {@link TaxLine#getExemption} amounts.
151
  *
152
  * @return decimal
153
  * @deprecated See {@link TaxDetail#getExemption}.
154
+ */
155
  public function getTotalExemption() {return $this->TotalExemption; }
156
+
157
  /**
158
  * Gets the amount the tax is based on; This is the total of all {@link Line} <b>Base</b> amounts;
159
  * Typically it will be equal to the document
161
  *
162
  * @return decimal
163
  * @deprecated See {@link TaxDetail#getTaxable}.
164
+ */
165
  public function getTotalTaxable() {return $this->TotalTaxable; }
166
+
167
  /**
168
  * Gets the total tax for the document.
169
  *
170
  * @return decimal
171
+ */
172
  public function getTotalTax() {return $this->TotalTax; }
173
+
174
  /**
175
+ * HashCode to support Reconciliation.
176
+ *
177
  * @return hashCode
178
+ */
179
  public function getHashCode() {return $this->HashCode; }
180
+
181
  /**
182
+ * Current version of the document.
183
  *
184
  * @return int
185
  */
186
  public function getVersion() {return $this->Version; }
187
+
188
  /**
189
  * Gets the Tax broken down by individual {@link TaxLine}.
190
  *
191
  * @return taxLines
192
  */
193
  public function getTaxLines() {return EnsureIsArray($this->TaxLines->TaxLine); }
194
+
195
  /**
196
  * TotalTaxCalculated indicates the total tax calculated by AvaTax. This is usually the same as the TotalTax, except when a tax override amount is specified.
197
  * This is for informational purposes.The TotalTax will still be used for reporting
199
  * @return unknown
200
  */
201
  public function getTotalTaxCalculated(){ return $this->TotalTaxCalculated;}
202
+
203
  /**
204
  * TaxSummary is now returned when GetTaxRequest.DetailLevel == DetailLevel.Line in addition to DetailLevel.Summary.
205
+ * It is not returned for DetailLevel.Document or DetailLevel.TaxDetail.
206
  *
207
  * @return ArrayOfTaxDetail
208
  */
209
  public function getTaxSummary() {return EnsureIsArray($this->TaxSummary->TaxDetail);}
210
+
211
  public function getTaxLine($lineNo)
212
  {
213
  if($this->getTaxLines() != null)
218
  {
219
  return $taxLine;
220
  }
221
+
222
  }
223
  }
224
  }
225
+
226
+
227
  /////////////////////////////////////////////PHP bug requires this copy from BaseResult ///////////
228
  /**
229
  * @var string
258
 
259
 
260
  }
 
 
lib/AvaTax/classes/ApplyPaymentRequest.class.php CHANGED
@@ -7,81 +7,81 @@
7
  * ApplyPaymentRequest.class.php
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Tax
12
  */
13
 
14
  class ApplyPaymentRequest
15
- {
16
  private $CompanyCode; //string
17
  private $DocType; //DocumentType
18
  private $DocId; //string
19
  private $DocCode; //string
20
  private $PaymentDate; //date
21
-
22
 
23
  public function __construct()
24
  {
25
  $this->DocType=DocumentType::$SalesOrder;
26
  }
27
-
28
  /**
29
  * Sets the companyCode value for this ApplyPaymentRequest.
30
  *
31
  * @param string $value
32
  */
33
  public function setCompanyCode($value){ $this->CompanyCode=$value;} //string
34
-
35
  /**
36
  * Sets the docCode value for this ApplyPaymentRequest.
37
  *
38
  * @param DocumentType $value
39
  */
40
  public function setDocType($value){ $this->DocType=$value;} //DocumentType
41
-
42
  /**
43
  * Sets the docType value for this ApplyPaymentRequest.
44
  *
45
  * @param string $value
46
  */
47
  public function setDocId($value){ $this->DocId=$value;} //string
48
-
49
  /**
50
  * Sets the docType value for this ApplyPaymentRequest.
51
  *
52
  * @param string $value
53
  */
54
  public function setDocCode($value){ $this->DocCode=$value;} //string
55
-
56
  /**
57
  * PaymentDate should be in the format yyyy-mm-dd
58
  *
59
  * @param date $value
60
  */
61
  public function setPaymentDate($value){ $this->PaymentDate=$value;} //date
62
-
63
-
64
  /**
65
  * Gets the companyCode value for this ApplyPaymentRequest.
66
  *
67
  * @return string
68
  */
69
  public function getCompanyCode(){ return $this->CompanyCode;} //string
70
-
71
  /**
72
  * Gets the docType value for this ApplyPaymentRequest.
73
  *
74
  * @return DocumentType
75
  */
76
  public function getDocType(){ return $this->DocType;} //DocumentType
77
-
78
  /**
79
  * Gets the docId value for this ApplyPaymentRequest.
80
  *
81
  * @return unknown
82
  */
83
  public function getDocId(){ return $this->DocId;} //string
84
-
85
  /**
86
  * Gets the docCode value for this ApplyPaymentRequest.
87
  *
@@ -89,12 +89,10 @@ class ApplyPaymentRequest
89
  */
90
  public function getDocCode(){ return $this->DocCode;} //string
91
  /**
92
- * PaymentDate should be in the format yyyy-mm-dd
93
  *
94
- * @param date $value
95
  */
96
  public function getPaymentDate(){ return $this->PaymentDate;} //date
97
-
98
- }
99
 
100
- ?>
7
  * ApplyPaymentRequest.class.php
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Tax
12
  */
13
 
14
  class ApplyPaymentRequest
15
+ {
16
  private $CompanyCode; //string
17
  private $DocType; //DocumentType
18
  private $DocId; //string
19
  private $DocCode; //string
20
  private $PaymentDate; //date
21
+
22
 
23
  public function __construct()
24
  {
25
  $this->DocType=DocumentType::$SalesOrder;
26
  }
27
+
28
  /**
29
  * Sets the companyCode value for this ApplyPaymentRequest.
30
  *
31
  * @param string $value
32
  */
33
  public function setCompanyCode($value){ $this->CompanyCode=$value;} //string
34
+
35
  /**
36
  * Sets the docCode value for this ApplyPaymentRequest.
37
  *
38
  * @param DocumentType $value
39
  */
40
  public function setDocType($value){ $this->DocType=$value;} //DocumentType
41
+
42
  /**
43
  * Sets the docType value for this ApplyPaymentRequest.
44
  *
45
  * @param string $value
46
  */
47
  public function setDocId($value){ $this->DocId=$value;} //string
48
+
49
  /**
50
  * Sets the docType value for this ApplyPaymentRequest.
51
  *
52
  * @param string $value
53
  */
54
  public function setDocCode($value){ $this->DocCode=$value;} //string
55
+
56
  /**
57
  * PaymentDate should be in the format yyyy-mm-dd
58
  *
59
  * @param date $value
60
  */
61
  public function setPaymentDate($value){ $this->PaymentDate=$value;} //date
62
+
63
+
64
  /**
65
  * Gets the companyCode value for this ApplyPaymentRequest.
66
  *
67
  * @return string
68
  */
69
  public function getCompanyCode(){ return $this->CompanyCode;} //string
70
+
71
  /**
72
  * Gets the docType value for this ApplyPaymentRequest.
73
  *
74
  * @return DocumentType
75
  */
76
  public function getDocType(){ return $this->DocType;} //DocumentType
77
+
78
  /**
79
  * Gets the docId value for this ApplyPaymentRequest.
80
  *
81
  * @return unknown
82
  */
83
  public function getDocId(){ return $this->DocId;} //string
84
+
85
  /**
86
  * Gets the docCode value for this ApplyPaymentRequest.
87
  *
89
  */
90
  public function getDocCode(){ return $this->DocCode;} //string
91
  /**
92
+ * PaymentDate should be in the format yyyy-mm-dd
93
  *
94
+ * @param date $value
95
  */
96
  public function getPaymentDate(){ return $this->PaymentDate;} //date
 
 
97
 
98
+ }
lib/AvaTax/classes/ApplyPaymentResult.class.php CHANGED
@@ -4,18 +4,16 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Tax
12
  */
13
 
14
  class ApplyPaymentResult extends BaseResult
15
- {
16
-
17
-
18
-
19
- }
20
 
21
- ?>
 
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Tax
12
  */
13
 
14
  class ApplyPaymentResult extends BaseResult
15
+ {
16
+
 
 
 
17
 
18
+
19
+ }
lib/AvaTax/classes/AvaCert2Svc/AvaCert2Soap.class.php CHANGED
@@ -2,16 +2,16 @@
2
 
3
  /**
4
  * AvaCert2Soap class
5
- *
6
- *
7
- *
8
  * @author Avalara
9
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
10
  * @package AvaCert2
11
  */
12
  class AvaCert2Soap extends AvalaraSoapClient {
13
 
14
- static $servicePath = '/AvaCert2/AvaCert2Svc.asmx';
15
  private static $classmap = array(
16
  'CustomerSave' => 'CustomerSave',
17
  'CustomerSaveRequest' => 'CustomerSaveRequest',
@@ -40,7 +40,7 @@ class AvaCert2Soap extends AvalaraSoapClient {
40
  'CertificateImageGetRequest' => 'CertificateImageGetRequest',
41
  'FormatType' => 'FormatType',
42
  'CertificateImageGetResult' => 'CertificateImageGetResult',
43
- 'BaseRequest' => 'BaseRequest',
44
  'RequestType' => 'RequestType',
45
  'BaseResult' => 'BaseResult',
46
  'SeverityLevel' => 'SeverityLevel',
@@ -54,15 +54,15 @@ class AvaCert2Soap extends AvalaraSoapClient {
54
  public function __construct($configurationName = 'Default')
55
  {
56
  $config = new ATConfig($configurationName);
57
-
58
  $this->client = new DynamicSoapClient (
59
  $config->avacert2WSDL,
60
  array
61
  (
62
- 'location' => $config->url.$config->avacert2Service,
63
  'trace' => $config->trace,
64
  'classmap' => AvaCert2Soap::$classmap
65
- ),
66
  $config
67
  );
68
  }
@@ -87,14 +87,14 @@ public function __construct($configurationName = 'Default')
87
  *
88
  * $customerSaveRequest = new CustomerSaveRequest();
89
  * $customerSaveRequest->setCustomer($customer);
90
- *
91
  * $customerSaveResult= $avacert2Service->customerSave($customerSaveRequest);
92
- * </pre>
93
  *
94
  * @param CustomerSave $parameters
95
  * @return CustomerSaveResult
96
  */
97
- public function CustomerSave(CustomerSaveRequest $customerSaveRequest) {
98
  return $this->client->CustomerSave(array('CustomerSaveRequest' => $customerSaveRequest))->CustomerSaveResult;
99
  }
100
 
@@ -109,27 +109,27 @@ public function __construct($configurationName = 'Default')
109
  * $certificateRequestInitiateRequest->setCommunicationMode(CommunicationMode::$EMAIL);
110
  * $certificateRequestInitiateRequest->setCustomMessage("Thank you!");
111
  *
112
- * $certificateRequestInitiateResult= $avacert2Service->certificateRequestInitiate($certificateRequestInitiateRequest);
113
  * </pre>
114
- *
115
  * @param CertificateRequestInitiate $parameters
116
  * @return CertificateRequestInitiateResult
117
  */
118
- public function CertificateRequestInitiate(CertificateRequestInitiateRequest $certificateRequestInitiateRequest) {
119
  return $this->client->CertificateRequestInitiate(array('CertificateRequestInitiateRequest' => $certificateRequestInitiateRequest))->CertificateRequestInitiateResult;
120
  }
121
-
122
  /**
123
- * This method retrieves all certificates from vCert for a particular customer.
124
- *
125
  * <pre>
126
  * $certificateGetRequest=new CertificateGetRequest();
127
  * $certificateGetRequest->setCompanyCode("DEFAULT");
128
  * $certificateGetRequest->setCustomerCode("AVALARA");
129
  *
130
- * $certificateGetResult= $avacert2Service->certificateGet($certificateGetRequest);
131
  * </pre>
132
- *
133
  * @param CertificateGet $parameters
134
  * @return CertificateGetResult
135
  */
@@ -139,16 +139,16 @@ public function __construct($configurationName = 'Default')
139
 
140
 
141
  /**
142
- * This method retrieves all certificate requests from vCert for a particular customer.
143
- *
144
  * <pre>
145
  * $certificateRequestGetRequest=new CertificateRequestGetRequest();
146
  * $certificateRequestGetRequest->setCompanyCode("DEFAULT");
147
  * $certificateRequestGetRequest->setCustomerCode("AVALARA");
148
  * $certificateRequestGetRequest->setRequestStatus(CertificateRequestStatus::$OPEN);
149
  *
150
- * $certificateRequestGetResult= $avacert2Service->certificateRequestGet($certificateRequestGetRequest);
151
- * </pre>
152
  *
153
  * @param CertificateRequestGet $parameters
154
  * @return CertificateRequestGetResult
@@ -158,8 +158,8 @@ public function __construct($configurationName = 'Default')
158
  }
159
 
160
  /**
161
- * This method retrieves all certificate requests from vCert for a particular customer.
162
- *
163
  * <pre>
164
  * $certificateImageGetRequest=new CertificateImageGetRequest();
165
  * $certificateImageGetRequest->setCompanyCode("DEFAULT");
@@ -167,8 +167,8 @@ public function __construct($configurationName = 'Default')
167
  * $certificateImageGetRequest->setFormat(FormatType::$PNG);
168
  * $certificateImageGetRequest->setPageNumber(1);
169
  *
170
- * $certificateImageGetResult= $avacert2Service->certificateImageGet($certificateImageGetRequest);
171
- * </pre>
172
  *
173
  * @param CertificateImageGet $parameters
174
  * @return CertificateImageGetResult
@@ -176,9 +176,9 @@ public function __construct($configurationName = 'Default')
176
  public function CertificateImageGet(CertificateImageGetRequest $certificateImageGetRequest) {
177
  return $this->client->CertificateImageGet(array('CertificateImageGetRequest' => $certificateImageGetRequest))->CertificateImageGetResult;
178
  }
179
-
180
  /**
181
- * Verifies connectivity to the web service and returns version information about the service.
182
  *
183
  * @param Ping $parameters
184
  * @return PingResult
@@ -205,5 +205,3 @@ public function __construct($configurationName = 'Default')
205
  }
206
 
207
  }
208
-
209
- ?>
2
 
3
  /**
4
  * AvaCert2Soap class
5
+ *
6
+ *
7
+ *
8
  * @author Avalara
9
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
10
  * @package AvaCert2
11
  */
12
  class AvaCert2Soap extends AvalaraSoapClient {
13
 
14
+ static $servicePath = '/AvaCert2/AvaCert2Svc.asmx';
15
  private static $classmap = array(
16
  'CustomerSave' => 'CustomerSave',
17
  'CustomerSaveRequest' => 'CustomerSaveRequest',
40
  'CertificateImageGetRequest' => 'CertificateImageGetRequest',
41
  'FormatType' => 'FormatType',
42
  'CertificateImageGetResult' => 'CertificateImageGetResult',
43
+ 'BaseRequest' => 'BaseRequest',
44
  'RequestType' => 'RequestType',
45
  'BaseResult' => 'BaseResult',
46
  'SeverityLevel' => 'SeverityLevel',
54
  public function __construct($configurationName = 'Default')
55
  {
56
  $config = new ATConfig($configurationName);
57
+
58
  $this->client = new DynamicSoapClient (
59
  $config->avacert2WSDL,
60
  array
61
  (
62
+ 'location' => $config->url.$config->avacert2Service,
63
  'trace' => $config->trace,
64
  'classmap' => AvaCert2Soap::$classmap
65
+ ),
66
  $config
67
  );
68
  }
87
  *
88
  * $customerSaveRequest = new CustomerSaveRequest();
89
  * $customerSaveRequest->setCustomer($customer);
90
+ *
91
  * $customerSaveResult= $avacert2Service->customerSave($customerSaveRequest);
92
+ * </pre>
93
  *
94
  * @param CustomerSave $parameters
95
  * @return CustomerSaveResult
96
  */
97
+ public function CustomerSave(CustomerSaveRequest $customerSaveRequest) {
98
  return $this->client->CustomerSave(array('CustomerSaveRequest' => $customerSaveRequest))->CustomerSaveResult;
99
  }
100
 
109
  * $certificateRequestInitiateRequest->setCommunicationMode(CommunicationMode::$EMAIL);
110
  * $certificateRequestInitiateRequest->setCustomMessage("Thank you!");
111
  *
112
+ * $certificateRequestInitiateResult= $avacert2Service->certificateRequestInitiate($certificateRequestInitiateRequest);
113
  * </pre>
114
+ *
115
  * @param CertificateRequestInitiate $parameters
116
  * @return CertificateRequestInitiateResult
117
  */
118
+ public function CertificateRequestInitiate(CertificateRequestInitiateRequest $certificateRequestInitiateRequest) {
119
  return $this->client->CertificateRequestInitiate(array('CertificateRequestInitiateRequest' => $certificateRequestInitiateRequest))->CertificateRequestInitiateResult;
120
  }
121
+
122
  /**
123
+ * This method retrieves all certificates from vCert for a particular customer.
124
+ *
125
  * <pre>
126
  * $certificateGetRequest=new CertificateGetRequest();
127
  * $certificateGetRequest->setCompanyCode("DEFAULT");
128
  * $certificateGetRequest->setCustomerCode("AVALARA");
129
  *
130
+ * $certificateGetResult= $avacert2Service->certificateGet($certificateGetRequest);
131
  * </pre>
132
+ *
133
  * @param CertificateGet $parameters
134
  * @return CertificateGetResult
135
  */
139
 
140
 
141
  /**
142
+ * This method retrieves all certificate requests from vCert for a particular customer.
143
+ *
144
  * <pre>
145
  * $certificateRequestGetRequest=new CertificateRequestGetRequest();
146
  * $certificateRequestGetRequest->setCompanyCode("DEFAULT");
147
  * $certificateRequestGetRequest->setCustomerCode("AVALARA");
148
  * $certificateRequestGetRequest->setRequestStatus(CertificateRequestStatus::$OPEN);
149
  *
150
+ * $certificateRequestGetResult= $avacert2Service->certificateRequestGet($certificateRequestGetRequest);
151
+ * </pre>
152
  *
153
  * @param CertificateRequestGet $parameters
154
  * @return CertificateRequestGetResult
158
  }
159
 
160
  /**
161
+ * This method retrieves all certificate requests from vCert for a particular customer.
162
+ *
163
  * <pre>
164
  * $certificateImageGetRequest=new CertificateImageGetRequest();
165
  * $certificateImageGetRequest->setCompanyCode("DEFAULT");
167
  * $certificateImageGetRequest->setFormat(FormatType::$PNG);
168
  * $certificateImageGetRequest->setPageNumber(1);
169
  *
170
+ * $certificateImageGetResult= $avacert2Service->certificateImageGet($certificateImageGetRequest);
171
+ * </pre>
172
  *
173
  * @param CertificateImageGet $parameters
174
  * @return CertificateImageGetResult
176
  public function CertificateImageGet(CertificateImageGetRequest $certificateImageGetRequest) {
177
  return $this->client->CertificateImageGet(array('CertificateImageGetRequest' => $certificateImageGetRequest))->CertificateImageGetResult;
178
  }
179
+
180
  /**
181
+ * Verifies connectivity to the web service and returns version information about the service.
182
  *
183
  * @param Ping $parameters
184
  * @return PingResult
205
  }
206
 
207
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/Certificate.class.php CHANGED
@@ -5,9 +5,9 @@
5
 
6
  /**
7
  * Contains exemption certificate data. Is part of the {@link CertificateGetResult} result came from the {@link CertificateGet}.
8
- *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class Certificate {
@@ -48,180 +48,178 @@ class Certificate {
48
  private $PageCount; // int
49
 
50
  /**
51
- * Unique identifier for the Certificate record.
52
  */
53
  public function getAvaCertId(){return $this->AvaCertId;} // string
54
 
55
  /**
56
- * CertificateJurisdictions contains the details of Jurisdiction.
57
  */
58
  public function getCertificateJurisdictions(){return $this->CertificateJurisdictions;} // ArrayOfCertificateJurisdiction
59
 
60
  /**
61
- * Customer identification codes for the customer associated with the Certificate record.
62
- */
63
  public function getCustomerCodes(){return $this->CustomerCodes;} // ArrayOfString
64
 
65
  /**
66
- * Source location display name for the Certificate record (the client location responsible for tracking the certificate).
67
  */
68
  public function getSourceLocationName(){return $this->SourceLocationName;} // string
69
 
70
  /**
71
- * Source location code for the Certificate record (the client location responsible for tracking the certificate).
72
  */
73
  public function getSourceLocationCode(){return $this->SourceLocationCode;} // string
74
-
75
  /**
76
- * Status for the Certificate record.
77
  */
78
  public function getCertificateStatus(){return $this->CertificateStatus;} // CertificateStatus
79
-
80
  /**
81
- * Review status for the Certificate record.
82
  */
83
  public function getReviewStatus(){return $this->ReviewStatus;} // ReviewStatus
84
-
85
  /**
86
- * Reason for rejection of a certificate when ReviewStatus of the Certificate record is REJECTED.
87
  */
88
  public function getRejectionReasonCode(){return $this->RejectionReasonCode;} // string
89
 
90
  /**
91
- * Details about the reason for rejection of a certificate when ReviewStatus of the Certificate record is REJECTED.
92
  */
93
  public function getRejectionReasonDetailCode(){return $this->RejectionReasonDetailCode;} // string
94
 
95
  /**
96
- * Custom Reason or details about a reason for rejection of a certificate provided by the user when ReviewStatus of the Certificate record is REJECTED.
97
  */
98
  public function getRejectionReasonCustomText(){return $this->RejectionReasonCustomText;} // string
99
 
100
  /**
101
- * Creation date of the Certificate record.
102
  */
103
  public function getCreatedDate(){return $this->CreatedDate;} // dateTime
104
 
105
  /**
106
- * Last modification date of the Certificate record.
107
  */
108
  public function getLastModifyDate(){return $this->LastModifyDate;} // dateTime
109
 
110
  /**
111
- * Date of the most recently received image content for the Certificate record (usually via fax).
112
  */
113
  public function getDocReceivedDate(){return $this->DocReceivedDate;} // dateTime
114
 
115
  /**
116
- * Exempt customer business name for the Certificate record.
117
  */
118
  public function getBusinessName(){return $this->BusinessName;} // string
119
 
120
  /**
121
- * Exempt customer address1 field for the Certificate record.
122
  */
123
  public function getAddress1(){return $this->Address1;} // string
124
 
125
  /**
126
- * Exempt customer address2 field for the Certificate record.
127
  */
128
  public function getAddress2(){return $this->Address2;} // string
129
 
130
  /**
131
- * Exempt customer city address field for the Certificate record.
132
  */
133
  public function getCity(){return $this->City;} // string
134
 
135
  /**
136
- * Exempt customer state address field for the Certificate record.
137
  */
138
  public function getState(){return $this->State;} // string
139
 
140
  /**
141
- * Exempt customer country address field for the Certificate record.
142
  */
143
  public function getCountry(){return $this->Country;} // string
144
 
145
  /**
146
- * Exempt customer US zip or zip+4 code (or CA postal code) address field for the Certificate record.
147
  */
148
  public function getZip(){return $this->Zip;} // string
149
 
150
  /**
151
- * Exempt customer phone number field for the Certificate record.
152
  */
153
  public function getPhone(){return $this->Phone;} // string
154
 
155
  /**
156
- * Exempt customer email address field for the Certificate record.
157
  */
158
  public function getEmail(){return $this->Email;} // string
159
 
160
  /**
161
- * Exempt customer signer name field for the Certificate record.
162
  */
163
  public function getSignerName(){return $this->SignerName;} // string
164
 
165
  /**
166
- * Exempt customer signer title field for the Certificate record.
167
  */
168
  public function getSignerTitle(){return $this->SignerTitle;} // string
169
 
170
  /**
171
- * Effective date (or the actual signature date) of the Certificate record.
172
  */
173
  public function getSignedDate(){return $this->SignedDate;} // dateTime
174
 
175
  /**
176
- * Exempt customer business description field for the Certificate record.
177
  */
178
  public function getBusinessDescription(){return $this->BusinessDescription;} // string
179
 
180
  /**
181
- * Seller property description the exempt customer selected for the Certificate record.
182
  */
183
  public function getSellerPropertyDescription(){return $this->SellerPropertyDescription;} // string
184
 
185
  /**
186
- * Usage type for the Certificate record.
187
  */
188
  public function getCertificateUsage(){return $this->CertificateUsage;} // CertificateUsage
189
 
190
  /**
191
- * Whether the Certificate record is considered "partially exempt".
192
  */
193
  public function getIsPartialExemption(){return $this->IsPartialExemption;} // boolean
194
 
195
  /**
196
- * Client-specified exemption reason code for the Certificate record.
197
  */
198
  public function getExemptReasonCode(){return $this->ExemptReasonCode;} // string
199
-
200
  /**
201
- * Name of the state-issued form for the Certificate record; either a system-defined code name or a client-specified custom name.
202
  */
203
  public function getExemptFormName(){return $this->ExemptFormName;} // string
204
-
205
  /**
206
- * (Optional) Client-specified value for custom Certificate field 1, if enabled.
207
  */
208
  public function getCustom1(){return $this->Custom1;} // string
209
-
210
  /**
211
- * (Optional) Client-specified value for custom Certificate field 2, if enabled.
212
  */
213
  public function getCustom2(){return $this->Custom2;} // string
214
-
215
  /**
216
- * (Optional) Client-specified value for custom Certificate field 3, if enabled.
217
  */
218
  public function getCustom3(){return $this->Custom3;} // string
219
-
220
  /**
221
- * Number of pages in the Certificate record.
222
  */
223
  public function getPageCount(){return $this->PageCount;} // int
224
 
225
  }
226
-
227
- ?>
5
 
6
  /**
7
  * Contains exemption certificate data. Is part of the {@link CertificateGetResult} result came from the {@link CertificateGet}.
8
+ *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class Certificate {
48
  private $PageCount; // int
49
 
50
  /**
51
+ * Unique identifier for the Certificate record.
52
  */
53
  public function getAvaCertId(){return $this->AvaCertId;} // string
54
 
55
  /**
56
+ * CertificateJurisdictions contains the details of Jurisdiction.
57
  */
58
  public function getCertificateJurisdictions(){return $this->CertificateJurisdictions;} // ArrayOfCertificateJurisdiction
59
 
60
  /**
61
+ * Customer identification codes for the customer associated with the Certificate record.
62
+ */
63
  public function getCustomerCodes(){return $this->CustomerCodes;} // ArrayOfString
64
 
65
  /**
66
+ * Source location display name for the Certificate record (the client location responsible for tracking the certificate).
67
  */
68
  public function getSourceLocationName(){return $this->SourceLocationName;} // string
69
 
70
  /**
71
+ * Source location code for the Certificate record (the client location responsible for tracking the certificate).
72
  */
73
  public function getSourceLocationCode(){return $this->SourceLocationCode;} // string
74
+
75
  /**
76
+ * Status for the Certificate record.
77
  */
78
  public function getCertificateStatus(){return $this->CertificateStatus;} // CertificateStatus
79
+
80
  /**
81
+ * Review status for the Certificate record.
82
  */
83
  public function getReviewStatus(){return $this->ReviewStatus;} // ReviewStatus
84
+
85
  /**
86
+ * Reason for rejection of a certificate when ReviewStatus of the Certificate record is REJECTED.
87
  */
88
  public function getRejectionReasonCode(){return $this->RejectionReasonCode;} // string
89
 
90
  /**
91
+ * Details about the reason for rejection of a certificate when ReviewStatus of the Certificate record is REJECTED.
92
  */
93
  public function getRejectionReasonDetailCode(){return $this->RejectionReasonDetailCode;} // string
94
 
95
  /**
96
+ * Custom Reason or details about a reason for rejection of a certificate provided by the user when ReviewStatus of the Certificate record is REJECTED.
97
  */
98
  public function getRejectionReasonCustomText(){return $this->RejectionReasonCustomText;} // string
99
 
100
  /**
101
+ * Creation date of the Certificate record.
102
  */
103
  public function getCreatedDate(){return $this->CreatedDate;} // dateTime
104
 
105
  /**
106
+ * Last modification date of the Certificate record.
107
  */
108
  public function getLastModifyDate(){return $this->LastModifyDate;} // dateTime
109
 
110
  /**
111
+ * Date of the most recently received image content for the Certificate record (usually via fax).
112
  */
113
  public function getDocReceivedDate(){return $this->DocReceivedDate;} // dateTime
114
 
115
  /**
116
+ * Exempt customer business name for the Certificate record.
117
  */
118
  public function getBusinessName(){return $this->BusinessName;} // string
119
 
120
  /**
121
+ * Exempt customer address1 field for the Certificate record.
122
  */
123
  public function getAddress1(){return $this->Address1;} // string
124
 
125
  /**
126
+ * Exempt customer address2 field for the Certificate record.
127
  */
128
  public function getAddress2(){return $this->Address2;} // string
129
 
130
  /**
131
+ * Exempt customer city address field for the Certificate record.
132
  */
133
  public function getCity(){return $this->City;} // string
134
 
135
  /**
136
+ * Exempt customer state address field for the Certificate record.
137
  */
138
  public function getState(){return $this->State;} // string
139
 
140
  /**
141
+ * Exempt customer country address field for the Certificate record.
142
  */
143
  public function getCountry(){return $this->Country;} // string
144
 
145
  /**
146
+ * Exempt customer US zip or zip+4 code (or CA postal code) address field for the Certificate record.
147
  */
148
  public function getZip(){return $this->Zip;} // string
149
 
150
  /**
151
+ * Exempt customer phone number field for the Certificate record.
152
  */
153
  public function getPhone(){return $this->Phone;} // string
154
 
155
  /**
156
+ * Exempt customer email address field for the Certificate record.
157
  */
158
  public function getEmail(){return $this->Email;} // string
159
 
160
  /**
161
+ * Exempt customer signer name field for the Certificate record.
162
  */
163
  public function getSignerName(){return $this->SignerName;} // string
164
 
165
  /**
166
+ * Exempt customer signer title field for the Certificate record.
167
  */
168
  public function getSignerTitle(){return $this->SignerTitle;} // string
169
 
170
  /**
171
+ * Effective date (or the actual signature date) of the Certificate record.
172
  */
173
  public function getSignedDate(){return $this->SignedDate;} // dateTime
174
 
175
  /**
176
+ * Exempt customer business description field for the Certificate record.
177
  */
178
  public function getBusinessDescription(){return $this->BusinessDescription;} // string
179
 
180
  /**
181
+ * Seller property description the exempt customer selected for the Certificate record.
182
  */
183
  public function getSellerPropertyDescription(){return $this->SellerPropertyDescription;} // string
184
 
185
  /**
186
+ * Usage type for the Certificate record.
187
  */
188
  public function getCertificateUsage(){return $this->CertificateUsage;} // CertificateUsage
189
 
190
  /**
191
+ * Whether the Certificate record is considered "partially exempt".
192
  */
193
  public function getIsPartialExemption(){return $this->IsPartialExemption;} // boolean
194
 
195
  /**
196
+ * Client-specified exemption reason code for the Certificate record.
197
  */
198
  public function getExemptReasonCode(){return $this->ExemptReasonCode;} // string
199
+
200
  /**
201
+ * Name of the state-issued form for the Certificate record; either a system-defined code name or a client-specified custom name.
202
  */
203
  public function getExemptFormName(){return $this->ExemptFormName;} // string
204
+
205
  /**
206
+ * (Optional) Client-specified value for custom Certificate field 1, if enabled.
207
  */
208
  public function getCustom1(){return $this->Custom1;} // string
209
+
210
  /**
211
+ * (Optional) Client-specified value for custom Certificate field 2, if enabled.
212
  */
213
  public function getCustom2(){return $this->Custom2;} // string
214
+
215
  /**
216
+ * (Optional) Client-specified value for custom Certificate field 3, if enabled.
217
  */
218
  public function getCustom3(){return $this->Custom3;} // string
219
+
220
  /**
221
+ * Number of pages in the Certificate record.
222
  */
223
  public function getPageCount(){return $this->PageCount;} // int
224
 
225
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/CertificateGetRequest.class.php CHANGED
@@ -5,9 +5,9 @@
5
 
6
  /**
7
  * Input for {@link CertificateGet}.
8
- *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateGetRequest {
@@ -21,39 +21,37 @@ class CertificateGetRequest {
21
  $dateTime=new DateTime();
22
  $dateTime->setDate(0001,01,01);
23
  $this->ModFromDate=$dateTime->format("Y-m-d");
24
-
25
  $dateTime->setDate(0001,01,01);
26
  $this->ModToDate=$dateTime->format("Y-m-d");
27
  }
28
-
29
  public function setCompanyCode($value){$this->CompanyCode=$value;} // string
30
-
31
  /**
32
- * The company code associated with a certificate record.
33
  */
34
  public function getCompanyCode(){return $this->CompanyCode;} // string
35
 
36
  public function setCustomerCode($value){$this->CustomerCode=$value;} // string
37
 
38
  /**
39
- * The customer code associated with a certificate record.
40
  */
41
  public function getCustomerCode(){return $this->CustomerCode;} // string
42
 
43
  public function setModFromDate($value){$this->ModFromDate=$value;} // dateTime
44
 
45
  /**
46
- * The date from which the certificates needs to be fetched.
47
  */
48
  public function getModFromDate(){return $this->ModFromDate;} // dateTime
49
 
50
  public function setModToDate($value){$this->ModToDate=$value;} // dateTime
51
 
52
  /**
53
- * The date to which the certificates needs to be fetched.
54
  */
55
  public function getModToDate(){return $this->ModToDate;} // dateTime
56
 
57
  }
58
-
59
- ?>
5
 
6
  /**
7
  * Input for {@link CertificateGet}.
8
+ *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateGetRequest {
21
  $dateTime=new DateTime();
22
  $dateTime->setDate(0001,01,01);
23
  $this->ModFromDate=$dateTime->format("Y-m-d");
24
+
25
  $dateTime->setDate(0001,01,01);
26
  $this->ModToDate=$dateTime->format("Y-m-d");
27
  }
28
+
29
  public function setCompanyCode($value){$this->CompanyCode=$value;} // string
30
+
31
  /**
32
+ * The company code associated with a certificate record.
33
  */
34
  public function getCompanyCode(){return $this->CompanyCode;} // string
35
 
36
  public function setCustomerCode($value){$this->CustomerCode=$value;} // string
37
 
38
  /**
39
+ * The customer code associated with a certificate record.
40
  */
41
  public function getCustomerCode(){return $this->CustomerCode;} // string
42
 
43
  public function setModFromDate($value){$this->ModFromDate=$value;} // dateTime
44
 
45
  /**
46
+ * The date from which the certificates needs to be fetched.
47
  */
48
  public function getModFromDate(){return $this->ModFromDate;} // dateTime
49
 
50
  public function setModToDate($value){$this->ModToDate=$value;} // dateTime
51
 
52
  /**
53
+ * The date to which the certificates needs to be fetched.
54
  */
55
  public function getModToDate(){return $this->ModToDate;} // dateTime
56
 
57
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/CertificateGetResult.class.php CHANGED
@@ -5,16 +5,16 @@
5
 
6
  /**
7
  * Contains the get exemption certificates operation result returned by {@link CertificateGet}.
8
- *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateGetResult extends BaseResult {
14
  private $Certificates; // ArrayOfCertificate
15
 
16
  /**
17
- * Certificates contains collection of exemption certificate records.
18
  */
19
  public function getCertificates()
20
  {
@@ -24,10 +24,8 @@ class CertificateGetResult extends BaseResult {
24
  }
25
  else
26
  {
27
- return null;
28
- }
29
  } // ArrayOfCertificate
30
 
31
  }
32
-
33
- ?>
5
 
6
  /**
7
  * Contains the get exemption certificates operation result returned by {@link CertificateGet}.
8
+ *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateGetResult extends BaseResult {
14
  private $Certificates; // ArrayOfCertificate
15
 
16
  /**
17
+ * Certificates contains collection of exemption certificate records.
18
  */
19
  public function getCertificates()
20
  {
24
  }
25
  else
26
  {
27
+ return null;
28
+ }
29
  } // ArrayOfCertificate
30
 
31
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/CertificateImageGetRequest.class.php CHANGED
@@ -5,9 +5,9 @@
5
 
6
  /**
7
  * Input for {@link CertificateImageGet}.
8
- *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateImageGetRequest {
@@ -21,35 +21,33 @@ class CertificateImageGetRequest {
21
  $this->Format=FormatType::$NULL;
22
  $this->PageNumber=1;
23
  }
24
-
25
  public function setCompanyCode($value){$this->CompanyCode=$value;} // string
26
 
27
  /**
28
- * The company code associated with a certificate record.
29
  */
30
  public function getCompanyCode(){return $this->CompanyCode;} // string
31
 
32
  public function setAvaCertId($value){$this->AvaCertId=$value;} // string
33
 
34
  /**
35
- * Unique identifier for the Certificate record.
36
  */
37
  public function getAvaCertId(){return $this->AvaCertId;} // string
38
 
39
  public function setFormat($value){$this->Format=$value;} // FormatType
40
 
41
  /**
42
- * Format in which the image needs to be exported.
43
  */
44
  public function getFormat(){return $this->Format;} // FormatType
45
 
46
  public function setPageNumber($value){$this->PageNumber=$value;} // int
47
 
48
  /**
49
- * Page number of of the certificate image.
50
  */
51
  public function getPageNumber(){return $this->PageNumber;} // int
52
 
53
  }
54
-
55
- ?>
5
 
6
  /**
7
  * Input for {@link CertificateImageGet}.
8
+ *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateImageGetRequest {
21
  $this->Format=FormatType::$NULL;
22
  $this->PageNumber=1;
23
  }
24
+
25
  public function setCompanyCode($value){$this->CompanyCode=$value;} // string
26
 
27
  /**
28
+ * The company code associated with a certificate record.
29
  */
30
  public function getCompanyCode(){return $this->CompanyCode;} // string
31
 
32
  public function setAvaCertId($value){$this->AvaCertId=$value;} // string
33
 
34
  /**
35
+ * Unique identifier for the Certificate record.
36
  */
37
  public function getAvaCertId(){return $this->AvaCertId;} // string
38
 
39
  public function setFormat($value){$this->Format=$value;} // FormatType
40
 
41
  /**
42
+ * Format in which the image needs to be exported.
43
  */
44
  public function getFormat(){return $this->Format;} // FormatType
45
 
46
  public function setPageNumber($value){$this->PageNumber=$value;} // int
47
 
48
  /**
49
+ * Page number of of the certificate image.
50
  */
51
  public function getPageNumber(){return $this->PageNumber;} // int
52
 
53
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/CertificateImageGetResult.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- * Contains the get certificate image operation result returned by {@link CertificateImageGet}.
8
- *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateImageGetResult extends BaseResult {
@@ -15,15 +15,13 @@ class CertificateImageGetResult extends BaseResult {
15
  private $Image; // base64Binary
16
 
17
  /**
18
- * Unique identifier for the Certificate record.
19
  */
20
  public function getAvaCertId(){return $this->AvaCertId;} // string
21
 
22
  /**
23
- * Certificate image.
24
  */
25
  public function getImage(){return $this->Image;} // base64Binary
26
 
27
  }
28
-
29
- ?>
4
  */
5
 
6
  /**
7
+ * Contains the get certificate image operation result returned by {@link CertificateImageGet}.
8
+ *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateImageGetResult extends BaseResult {
15
  private $Image; // base64Binary
16
 
17
  /**
18
+ * Unique identifier for the Certificate record.
19
  */
20
  public function getAvaCertId(){return $this->AvaCertId;} // string
21
 
22
  /**
23
+ * Certificate image.
24
  */
25
  public function getImage(){return $this->Image;} // base64Binary
26
 
27
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/CertificateJurisdiction.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- * Contains jurisdiction data.
8
- *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateJurisdiction {
@@ -18,30 +18,28 @@ class CertificateJurisdiction {
18
  private $PermitNumbers; // ArrayOfString
19
 
20
  /**
21
- * Jurisdiction code for the Jurisdiction record.
22
  */
23
  public function getJurisdiction(){return $this->Jurisdiction;} // string
24
 
25
  /**
26
- * Country code for the Jurisdiction record (ISO-3166-1-alpha-2 Country Code).
27
  */
28
  public function getCountry(){return $this->Country;} // string
29
 
30
  /**
31
- * Expiration date for the Jurisdiction record.
32
  */
33
  public function getExpiryDate(){return $this->ExpiryDate;} // dateTime
34
 
35
  /**
36
- * Whether the Jurisdiction can expire; a Boolean flag with the following semantics: true: the Jurisdiction record never expires (regardless of ExpiryDate) false: the Jurisdiction record expires based on ExpiryDate
37
  */
38
  public function getDoesNotExpire(){return $this->DoesNotExpire;} // boolean
39
 
40
  /**
41
- * The exempt customer permit number(s) for the Jurisdiction record (a comma separated list if more than a single permit number exists for the Jurisdiction record).
42
  */
43
  public function getPermitNumbers(){return $this->PermitNumbers;} // ArrayOfString
44
 
45
  }
46
-
47
- ?>
4
  */
5
 
6
  /**
7
+ * Contains jurisdiction data.
8
+ *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateJurisdiction {
18
  private $PermitNumbers; // ArrayOfString
19
 
20
  /**
21
+ * Jurisdiction code for the Jurisdiction record.
22
  */
23
  public function getJurisdiction(){return $this->Jurisdiction;} // string
24
 
25
  /**
26
+ * Country code for the Jurisdiction record (ISO-3166-1-alpha-2 Country Code).
27
  */
28
  public function getCountry(){return $this->Country;} // string
29
 
30
  /**
31
+ * Expiration date for the Jurisdiction record.
32
  */
33
  public function getExpiryDate(){return $this->ExpiryDate;} // dateTime
34
 
35
  /**
36
+ * Whether the Jurisdiction can expire; a Boolean flag with the following semantics: true: the Jurisdiction record never expires (regardless of ExpiryDate) false: the Jurisdiction record expires based on ExpiryDate
37
  */
38
  public function getDoesNotExpire(){return $this->DoesNotExpire;} // boolean
39
 
40
  /**
41
+ * The exempt customer permit number(s) for the Jurisdiction record (a comma separated list if more than a single permit number exists for the Jurisdiction record).
42
  */
43
  public function getPermitNumbers(){return $this->PermitNumbers;} // ArrayOfString
44
 
45
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/CertificateRequest.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- * Contains certificate request data. Is part of the {@link CertificateRequestGetResult} result came from the {@link CertificateRequestGet}.
8
- *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateRequest {
@@ -23,55 +23,53 @@ class CertificateRequest {
23
  private $CommunicationMode; // CommunicationMode
24
 
25
  /**
26
- * Unique identifier for the certificate request record.
27
  */
28
  public function getRequestId(){return $this->RequestId;} // string
29
 
30
  /**
31
- * Unique Tracking Code for the certificate request record.
32
  */
33
  public function getTrackingCode(){return $this->TrackingCode;} // string
34
 
35
  /**
36
- * Source location code for the certificate record (the client location responsible for tracking the certificate).
37
  */
38
  public function getSourceLocationCode(){return $this->SourceLocationCode;} // string
39
 
40
  /**
41
- * Request date of the certificate request record.
42
  */
43
  public function getRequestDate(){return $this->RequestDate;} // dateTime
44
 
45
  /**
46
- * Customer identification code for the customer associated with the certificate request record.
47
  */
48
  public function getCustomerCode(){return $this->CustomerCode;} // string
49
 
50
  /**
51
- * CreatorName the certificate request record.
52
  */
53
  public function getCreatorName(){return $this->CreatorName;} // string
54
 
55
  /**
56
- * Last modification date of the certificate request record.
57
  */
58
  public function getLastModifyDate(){return $this->LastModifyDate;} // dateTime
59
 
60
  /**
61
- * Request status for the certificate request record.
62
  */
63
  public function getRequestStatus(){return $this->RequestStatus;} // CertificateRequestStatus
64
 
65
  /**
66
- * Request stage for the certificate request record.
67
  */
68
  public function getRequestStage(){return $this->RequestStage;} // CertificateRequestStage
69
 
70
  /**
71
- * CommunicationMode for the certificate request record.
72
  */
73
  public function getCommunicationMode(){return $this->CommunicationMode;} // CommunicationMode
74
 
75
  }
76
-
77
- ?>
4
  */
5
 
6
  /**
7
+ * Contains certificate request data. Is part of the {@link CertificateRequestGetResult} result came from the {@link CertificateRequestGet}.
8
+ *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateRequest {
23
  private $CommunicationMode; // CommunicationMode
24
 
25
  /**
26
+ * Unique identifier for the certificate request record.
27
  */
28
  public function getRequestId(){return $this->RequestId;} // string
29
 
30
  /**
31
+ * Unique Tracking Code for the certificate request record.
32
  */
33
  public function getTrackingCode(){return $this->TrackingCode;} // string
34
 
35
  /**
36
+ * Source location code for the certificate record (the client location responsible for tracking the certificate).
37
  */
38
  public function getSourceLocationCode(){return $this->SourceLocationCode;} // string
39
 
40
  /**
41
+ * Request date of the certificate request record.
42
  */
43
  public function getRequestDate(){return $this->RequestDate;} // dateTime
44
 
45
  /**
46
+ * Customer identification code for the customer associated with the certificate request record.
47
  */
48
  public function getCustomerCode(){return $this->CustomerCode;} // string
49
 
50
  /**
51
+ * CreatorName the certificate request record.
52
  */
53
  public function getCreatorName(){return $this->CreatorName;} // string
54
 
55
  /**
56
+ * Last modification date of the certificate request record.
57
  */
58
  public function getLastModifyDate(){return $this->LastModifyDate;} // dateTime
59
 
60
  /**
61
+ * Request status for the certificate request record.
62
  */
63
  public function getRequestStatus(){return $this->RequestStatus;} // CertificateRequestStatus
64
 
65
  /**
66
+ * Request stage for the certificate request record.
67
  */
68
  public function getRequestStage(){return $this->RequestStage;} // CertificateRequestStage
69
 
70
  /**
71
+ * CommunicationMode for the certificate request record.
72
  */
73
  public function getCommunicationMode(){return $this->CommunicationMode;} // CommunicationMode
74
 
75
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/CertificateRequestGetRequest.class.php CHANGED
@@ -5,9 +5,9 @@
5
 
6
  /**
7
  * Input for {@link CertificateRequestGet}.
8
- *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateRequestGetRequest {
@@ -20,19 +20,19 @@ class CertificateRequestGetRequest {
20
  public function __construct()
21
  {
22
  $this->RequestStatus=CertificateRequestStatus::$ALL;
23
-
24
  $dateTime=new DateTime();
25
  $dateTime->setDate(0001,01,01);
26
  $this->ModFromDate=$dateTime->format("Y-m-d");
27
-
28
  $dateTime->setDate(0001,01,01);
29
  $this->ModToDate=$dateTime->format("Y-m-d");
30
  }
31
-
32
  public function setCompanyCode($value){$this->CompanyCode=$value;} // string
33
 
34
  /**
35
- * The company code associated with a certificate record.
36
  */
37
  public function getCompanyCode(){return $this->CompanyCode;} // string
38
 
@@ -46,24 +46,22 @@ class CertificateRequestGetRequest {
46
  public function setRequestStatus($value){$this->RequestStatus=$value;} // CertificateRequestStatus
47
 
48
  /**
49
- * Current status of the Request.
50
  */
51
  public function getRequestStatus(){return $this->RequestStatus;} // CertificateRequestStatus
52
 
53
  public function setModFromDate($value){$this->ModFromDate=$value;} // dateTime
54
 
55
  /**
56
- * The date from which the certificates needs to be fetched.
57
  */
58
  public function getModFromDate(){return $this->ModFromDate;} // dateTime
59
 
60
  public function setModToDate($value){$this->ModToDate=$value;} // dateTime
61
 
62
  /**
63
- * The date to which the certificates needs to be fetched.
64
  */
65
  public function getModToDate(){return $this->ModToDate;} // dateTime
66
 
67
  }
68
-
69
- ?>
5
 
6
  /**
7
  * Input for {@link CertificateRequestGet}.
8
+ *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateRequestGetRequest {
20
  public function __construct()
21
  {
22
  $this->RequestStatus=CertificateRequestStatus::$ALL;
23
+
24
  $dateTime=new DateTime();
25
  $dateTime->setDate(0001,01,01);
26
  $this->ModFromDate=$dateTime->format("Y-m-d");
27
+
28
  $dateTime->setDate(0001,01,01);
29
  $this->ModToDate=$dateTime->format("Y-m-d");
30
  }
31
+
32
  public function setCompanyCode($value){$this->CompanyCode=$value;} // string
33
 
34
  /**
35
+ * The company code associated with a certificate record.
36
  */
37
  public function getCompanyCode(){return $this->CompanyCode;} // string
38
 
46
  public function setRequestStatus($value){$this->RequestStatus=$value;} // CertificateRequestStatus
47
 
48
  /**
49
+ * Current status of the Request.
50
  */
51
  public function getRequestStatus(){return $this->RequestStatus;} // CertificateRequestStatus
52
 
53
  public function setModFromDate($value){$this->ModFromDate=$value;} // dateTime
54
 
55
  /**
56
+ * The date from which the certificates needs to be fetched.
57
  */
58
  public function getModFromDate(){return $this->ModFromDate;} // dateTime
59
 
60
  public function setModToDate($value){$this->ModToDate=$value;} // dateTime
61
 
62
  /**
63
+ * The date to which the certificates needs to be fetched.
64
  */
65
  public function getModToDate(){return $this->ModToDate;} // dateTime
66
 
67
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/CertificateRequestGetResult.class.php CHANGED
@@ -4,17 +4,17 @@
4
  */
5
 
6
  /**
7
- * Contains the get certificate request operation result returned by {@link CertificateRequestGet}.
8
- *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateRequestGetResult extends BaseResult {
14
  private $CertificateRequests; // ArrayOfCertificateRequest
15
 
16
  /**
17
- * CertificateRequests contains collection of certificate requests.
18
  */
19
  public function getCertificateRequests()
20
  {
@@ -24,10 +24,8 @@ class CertificateRequestGetResult extends BaseResult {
24
  }
25
  else
26
  {
27
- return null;
28
- }
29
  } // ArrayOfCertificateRequest
30
 
31
  }
32
-
33
- ?>
4
  */
5
 
6
  /**
7
+ * Contains the get certificate request operation result returned by {@link CertificateRequestGet}.
8
+ *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateRequestGetResult extends BaseResult {
14
  private $CertificateRequests; // ArrayOfCertificateRequest
15
 
16
  /**
17
+ * CertificateRequests contains collection of certificate requests.
18
  */
19
  public function getCertificateRequests()
20
  {
24
  }
25
  else
26
  {
27
+ return null;
28
+ }
29
  } // ArrayOfCertificateRequest
30
 
31
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/CertificateRequestInitiateRequest.class.php CHANGED
@@ -5,9 +5,9 @@
5
 
6
  /**
7
  * Input for {@link CertificateRequestInitiate}.
8
- *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateRequestInitiateRequest {
@@ -21,83 +21,81 @@ class CertificateRequestInitiateRequest {
21
  private $IncludeCoverPage; // boolean
22
  private $CloseReason; // string
23
  private $RequestId; // string
24
-
25
  public function __construct()
26
- {
27
  $this->CommunicationMode = CommunicationMode::$EMAIL;
28
  $this->Type=RequestType::$STANDARD;
29
  }
30
-
31
  public function setCompanyCode($value){$this->CompanyCode=$value;} // string
32
 
33
  /**
34
- * Company Code of the company to which the customer belongs.
35
  */
36
  public function getCompanyCode(){return $this->CompanyCode;} // string
37
 
38
  public function setCustomerCode($value){$this->CustomerCode=$value;} // string
39
 
40
  /**
41
- * Customer identification code from client system.
42
  */
43
  public function getCustomerCode(){return $this->CustomerCode;} // string
44
 
45
  public function setCommunicationMode($value){$this->CommunicationMode=$value;} // CommunicationMode
46
 
47
  /**
48
- * CommunicationMode indicates the mode to use for communicating with the customer like Email, Mail, or Fax.
49
  */
50
  public function getCommunicationMode(){return $this->CommunicationMode;} // CommunicationMode
51
 
52
  public function setSourceLocationCode($value){$this->SourceLocationCode=$value;} // string
53
 
54
  /**
55
- * SourceLocationCode is the Source LocationCode for the request. If provided; the code must be one that exists for the Company.
56
  */
57
  public function getSourceLocationCode(){return $this->SourceLocationCode;} // string
58
 
59
  public function setType($value){$this->Type=$value;} // RequestType
60
 
61
  /**
62
- * Type indicates the type of the request to be initiated.
63
  */
64
  public function getType(){return $this->Type;} // RequestType
65
 
66
  public function setCustomMessage($value){$this->CustomMessage=$value;} // string
67
 
68
  /**
69
- * Custom message to be used for the request.
70
  */
71
  public function getCustomMessage(){return $this->CustomMessage;} // string
72
 
73
  public function setLetterTemplate($value){$this->LetterTemplate=$value;} // string
74
 
75
  /**
76
- * The name of the Letter Template to use for the correspondence.
77
  */
78
  public function getLetterTemplate(){return $this->LetterTemplate;} // string
79
 
80
  public function setIncludeCoverPage($value){$this->IncludeCoverPage=$value;} // boolean
81
 
82
  /**
83
- * Whether or not a fax cover sheet with a barcode will be attached to the correspondence. If null, the default is used (false).
84
  */
85
  public function getIncludeCoverPage(){return $this->IncludeCoverPage;} // boolean
86
 
87
  public function setCloseReason($value){$this->CloseReason=$value;} // string
88
 
89
  /**
90
- * Reason for closing the Request.
91
  */
92
  public function getCloseReason(){return $this->CloseReason;} // string
93
 
94
  public function setRequestId($value){$this->RequestId=$value;} // string
95
 
96
  /**
97
- * Unique identifier for the Request record.
98
  */
99
  public function getRequestId(){return $this->RequestId;} // string
100
 
101
  }
102
-
103
- ?>
5
 
6
  /**
7
  * Input for {@link CertificateRequestInitiate}.
8
+ *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateRequestInitiateRequest {
21
  private $IncludeCoverPage; // boolean
22
  private $CloseReason; // string
23
  private $RequestId; // string
24
+
25
  public function __construct()
26
+ {
27
  $this->CommunicationMode = CommunicationMode::$EMAIL;
28
  $this->Type=RequestType::$STANDARD;
29
  }
30
+
31
  public function setCompanyCode($value){$this->CompanyCode=$value;} // string
32
 
33
  /**
34
+ * Company Code of the company to which the customer belongs.
35
  */
36
  public function getCompanyCode(){return $this->CompanyCode;} // string
37
 
38
  public function setCustomerCode($value){$this->CustomerCode=$value;} // string
39
 
40
  /**
41
+ * Customer identification code from client system.
42
  */
43
  public function getCustomerCode(){return $this->CustomerCode;} // string
44
 
45
  public function setCommunicationMode($value){$this->CommunicationMode=$value;} // CommunicationMode
46
 
47
  /**
48
+ * CommunicationMode indicates the mode to use for communicating with the customer like Email, Mail, or Fax.
49
  */
50
  public function getCommunicationMode(){return $this->CommunicationMode;} // CommunicationMode
51
 
52
  public function setSourceLocationCode($value){$this->SourceLocationCode=$value;} // string
53
 
54
  /**
55
+ * SourceLocationCode is the Source LocationCode for the request. If provided; the code must be one that exists for the Company.
56
  */
57
  public function getSourceLocationCode(){return $this->SourceLocationCode;} // string
58
 
59
  public function setType($value){$this->Type=$value;} // RequestType
60
 
61
  /**
62
+ * Type indicates the type of the request to be initiated.
63
  */
64
  public function getType(){return $this->Type;} // RequestType
65
 
66
  public function setCustomMessage($value){$this->CustomMessage=$value;} // string
67
 
68
  /**
69
+ * Custom message to be used for the request.
70
  */
71
  public function getCustomMessage(){return $this->CustomMessage;} // string
72
 
73
  public function setLetterTemplate($value){$this->LetterTemplate=$value;} // string
74
 
75
  /**
76
+ * The name of the Letter Template to use for the correspondence.
77
  */
78
  public function getLetterTemplate(){return $this->LetterTemplate;} // string
79
 
80
  public function setIncludeCoverPage($value){$this->IncludeCoverPage=$value;} // boolean
81
 
82
  /**
83
+ * Whether or not a fax cover sheet with a barcode will be attached to the correspondence. If null, the default is used (false).
84
  */
85
  public function getIncludeCoverPage(){return $this->IncludeCoverPage;} // boolean
86
 
87
  public function setCloseReason($value){$this->CloseReason=$value;} // string
88
 
89
  /**
90
+ * Reason for closing the Request.
91
  */
92
  public function getCloseReason(){return $this->CloseReason;} // string
93
 
94
  public function setRequestId($value){$this->RequestId=$value;} // string
95
 
96
  /**
97
+ * Unique identifier for the Request record.
98
  */
99
  public function getRequestId(){return $this->RequestId;} // string
100
 
101
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/CertificateRequestInitiateResult.class.php CHANGED
@@ -5,9 +5,9 @@
5
 
6
  /**
7
  * Contains the certificate request initiate operation result returned by {@link CertificateRequestInitiate}.
8
- *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateRequestInitiateResult extends BaseResult {
@@ -17,25 +17,23 @@ class CertificateRequestInitiateResult extends BaseResult {
17
  private $CustomerCode; // string
18
 
19
  /**
20
- * TrackingCode indicates the unique Tracking Code of the Request.
21
  */
22
  public function getTrackingCode(){return $this->TrackingCode;} // string
23
 
24
  /**
25
- * WizardLaunchUrl indicates the unique tracking Url for the Request, that is used to launch the wizard.
26
  */
27
  public function getWizardLaunchUrl(){return $this->WizardLaunchUrl;} // string
28
 
29
  /**
30
- * Unique identifier for the Request record.
31
  */
32
  public function getRequestId(){return $this->RequestId;} // string
33
 
34
  /**
35
- * Customer identification code from client system.
36
  */
37
  public function getCustomerCode(){return $this->CustomerCode;} // string
38
 
39
  }
40
-
41
- ?>
5
 
6
  /**
7
  * Contains the certificate request initiate operation result returned by {@link CertificateRequestInitiate}.
8
+ *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateRequestInitiateResult extends BaseResult {
17
  private $CustomerCode; // string
18
 
19
  /**
20
+ * TrackingCode indicates the unique Tracking Code of the Request.
21
  */
22
  public function getTrackingCode(){return $this->TrackingCode;} // string
23
 
24
  /**
25
+ * WizardLaunchUrl indicates the unique tracking Url for the Request, that is used to launch the wizard.
26
  */
27
  public function getWizardLaunchUrl(){return $this->WizardLaunchUrl;} // string
28
 
29
  /**
30
+ * Unique identifier for the Request record.
31
  */
32
  public function getRequestId(){return $this->RequestId;} // string
33
 
34
  /**
35
+ * Customer identification code from client system.
36
  */
37
  public function getCustomerCode(){return $this->CustomerCode;} // string
38
 
39
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/CertificateRequestStage.class.php CHANGED
@@ -5,25 +5,25 @@
5
 
6
  /**
7
  * CertificateStatus indicates the current stage of the Request.
8
- *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateRequestStage extends Enum {
14
 
15
  /**
16
- * Request has been initiated; correspondence has been sent to the associated Customer.
17
  */
18
  public static $REQUESTINITIATED = 'REQUESTINITIATED';
19
 
20
  /**
21
- * Customer has responded to the correspondence.
22
  */
23
  public static $CUSTOMERRESPONDED = 'CUSTOMERRESPONDED';
24
 
25
  /**
26
- * Customer has provided a Certificate.
27
  */
28
  public static $CERTIFICATERECEIVED = 'CERTIFICATERECEIVED';
29
 
@@ -32,12 +32,10 @@ class CertificateRequestStage extends Enum {
32
  return array(
33
  CertificateRequestStage::$REQUESTINITIATED,
34
  CertificateRequestStage::$CUSTOMERRESPONDED,
35
- CertificateRequestStage::$CERTIFICATERECEIVED
36
  );
37
  }
38
-
39
  // Unfortunate boiler plate due to polymorphism issues on static functions
40
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
41
  }
42
-
43
- ?>
5
 
6
  /**
7
  * CertificateStatus indicates the current stage of the Request.
8
+ *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateRequestStage extends Enum {
14
 
15
  /**
16
+ * Request has been initiated; correspondence has been sent to the associated Customer.
17
  */
18
  public static $REQUESTINITIATED = 'REQUESTINITIATED';
19
 
20
  /**
21
+ * Customer has responded to the correspondence.
22
  */
23
  public static $CUSTOMERRESPONDED = 'CUSTOMERRESPONDED';
24
 
25
  /**
26
+ * Customer has provided a Certificate.
27
  */
28
  public static $CERTIFICATERECEIVED = 'CERTIFICATERECEIVED';
29
 
32
  return array(
33
  CertificateRequestStage::$REQUESTINITIATED,
34
  CertificateRequestStage::$CUSTOMERRESPONDED,
35
+ CertificateRequestStage::$CERTIFICATERECEIVED
36
  );
37
  }
38
+
39
  // Unfortunate boiler plate due to polymorphism issues on static functions
40
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
41
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/CertificateRequestStatus.class.php CHANGED
@@ -4,40 +4,38 @@
4
  */
5
 
6
  /**
7
- * CertificateStatus indicates the current status of the Request associated with a Request record to include in the response.
8
- *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateRequestStatus extends Enum {
14
 
15
  /**
16
- * Request of any status.
17
  */
18
  public static $ALL = 'ALL';
19
 
20
  /**
21
- * Request has been initiated and is currently open.
22
  */
23
  public static $OPEN = 'OPEN';
24
 
25
  /**
26
- * Request has been closed, either manually or automatically.
27
  */
28
  public static $CLOSED = 'CLOSED';
29
-
30
  public static function Values()
31
  {
32
  return array(
33
  CertificateRequestStatus::$ALL,
34
- CertificateRequestStatus::$OPEN,
35
  CertificateRequestStatus::$CLOSED
36
  );
37
  }
38
-
39
  // Unfortunate boiler plate due to polymorphism issues on static functions
40
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
41
  }
42
-
43
- ?>
4
  */
5
 
6
  /**
7
+ * CertificateStatus indicates the current status of the Request associated with a Request record to include in the response.
8
+ *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CertificateRequestStatus extends Enum {
14
 
15
  /**
16
+ * Request of any status.
17
  */
18
  public static $ALL = 'ALL';
19
 
20
  /**
21
+ * Request has been initiated and is currently open.
22
  */
23
  public static $OPEN = 'OPEN';
24
 
25
  /**
26
+ * Request has been closed, either manually or automatically.
27
  */
28
  public static $CLOSED = 'CLOSED';
29
+
30
  public static function Values()
31
  {
32
  return array(
33
  CertificateRequestStatus::$ALL,
34
+ CertificateRequestStatus::$OPEN,
35
  CertificateRequestStatus::$CLOSED
36
  );
37
  }
38
+
39
  // Unfortunate boiler plate due to polymorphism issues on static functions
40
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
41
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/CertificateStatus.class.php CHANGED
@@ -8,44 +8,42 @@
8
  * @see ExemptionCertificate
9
  *
10
  * @author Avalara
11
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package AvaCert2
13
  */
14
  class CertificateStatus extends Enum
15
- {
16
  /**
17
  * The certificate is active with images received.
18
  *
19
  * @var CertificateStatus
20
  */
21
  public static $ACTIVE = 'ACTIVE';
22
-
23
  /**
24
  * The certificate has been voided from active use.
25
  *
26
  * @var CertificateStatus
27
  */
28
  public static $VOID = 'VOID';
29
-
30
  /**
31
  * The certificate does not yet have all of its images received.
32
  *
33
  * @var CertificateStatus
34
  */
35
  public static $INCOMPLETE = 'INCOMPLETE';
36
-
37
  public static function Values()
38
  {
39
  return array(
40
  CertificateStatus::$ACTIVE,
41
  CertificateStatus::$VOID,
42
- CertificateStatus::$INCOMPLETE
43
  );
44
  }
45
-
46
  // Unfortunate boiler plate due to polymorphism issues on static functions
47
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
48
 
49
  }
50
-
51
- ?>
8
  * @see ExemptionCertificate
9
  *
10
  * @author Avalara
11
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package AvaCert2
13
  */
14
  class CertificateStatus extends Enum
15
+ {
16
  /**
17
  * The certificate is active with images received.
18
  *
19
  * @var CertificateStatus
20
  */
21
  public static $ACTIVE = 'ACTIVE';
22
+
23
  /**
24
  * The certificate has been voided from active use.
25
  *
26
  * @var CertificateStatus
27
  */
28
  public static $VOID = 'VOID';
29
+
30
  /**
31
  * The certificate does not yet have all of its images received.
32
  *
33
  * @var CertificateStatus
34
  */
35
  public static $INCOMPLETE = 'INCOMPLETE';
36
+
37
  public static function Values()
38
  {
39
  return array(
40
  CertificateStatus::$ACTIVE,
41
  CertificateStatus::$VOID,
42
+ CertificateStatus::$INCOMPLETE
43
  );
44
  }
45
+
46
  // Unfortunate boiler plate due to polymorphism issues on static functions
47
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
48
 
49
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/CertificateUsage.class.php CHANGED
@@ -8,44 +8,42 @@
8
  * @see ExemptionCertificate
9
  *
10
  * @author Avalara
11
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package AvaCert2
13
  */
14
  class CertificateUsage extends Enum
15
- {
16
  /**
17
  * The certificate may be used multiple times.
18
  *
19
  * @var CertificateUsage
20
  */
21
  public static $BLANKET = 'BLANKET';
22
-
23
  /**
24
  * The certificate may only be used for a single transaction.
25
  *
26
  * @var CertificateUsage
27
  */
28
  public static $SINGLE = 'SINGLE';
29
-
30
  /**
31
  * The value has not been set.
32
  *
33
  * @var CertificateUsage
34
  */
35
  public static $NULL = 'NULL';
36
-
37
  public static function Values()
38
  {
39
  return array(
40
  CertificateUsage::$BLANKET,
41
  CertificateUsage::$SINGLE,
42
- CertificateUsage::$NULL
43
  );
44
  }
45
-
46
  // Unfortunate boiler plate due to polymorphism issues on static functions
47
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
48
 
49
  }
50
-
51
- ?>
8
  * @see ExemptionCertificate
9
  *
10
  * @author Avalara
11
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package AvaCert2
13
  */
14
  class CertificateUsage extends Enum
15
+ {
16
  /**
17
  * The certificate may be used multiple times.
18
  *
19
  * @var CertificateUsage
20
  */
21
  public static $BLANKET = 'BLANKET';
22
+
23
  /**
24
  * The certificate may only be used for a single transaction.
25
  *
26
  * @var CertificateUsage
27
  */
28
  public static $SINGLE = 'SINGLE';
29
+
30
  /**
31
  * The value has not been set.
32
  *
33
  * @var CertificateUsage
34
  */
35
  public static $NULL = 'NULL';
36
+
37
  public static function Values()
38
  {
39
  return array(
40
  CertificateUsage::$BLANKET,
41
  CertificateUsage::$SINGLE,
42
+ CertificateUsage::$NULL
43
  );
44
  }
45
+
46
  // Unfortunate boiler plate due to polymorphism issues on static functions
47
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
48
 
49
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/CommunicationMode.class.php CHANGED
@@ -8,31 +8,31 @@
8
  * @see CertificateRequestInitiateRequest
9
  *
10
  * @author Avalara
11
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package AvaCert2
13
  */
14
  class CommunicationMode {
15
 
16
  /**
17
- * The value has not been set.
18
  */
19
  public static $NULL = 'NULL';
20
 
21
  /**
22
- * Email address
23
  */
24
  public static $EMAIL = 'EMAIL';
25
 
26
  /**
27
- * Mail address
28
  */
29
  public static $MAIL = 'MAIL';
30
 
31
  /**
32
- * Fax number
33
  */
34
  public static $FAX = 'FAX';
35
-
36
  public static function Values()
37
  {
38
  return array(
@@ -40,10 +40,8 @@ class CommunicationMode {
40
  CommunicationMode::$EMAIL,
41
  CommunicationMode::$MAIL,
42
  CommunicationMode::$FAX
43
-
44
  );
45
  }
46
 
47
  }
48
-
49
- ?>
8
  * @see CertificateRequestInitiateRequest
9
  *
10
  * @author Avalara
11
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package AvaCert2
13
  */
14
  class CommunicationMode {
15
 
16
  /**
17
+ * The value has not been set.
18
  */
19
  public static $NULL = 'NULL';
20
 
21
  /**
22
+ * Email address
23
  */
24
  public static $EMAIL = 'EMAIL';
25
 
26
  /**
27
+ * Mail address
28
  */
29
  public static $MAIL = 'MAIL';
30
 
31
  /**
32
+ * Fax number
33
  */
34
  public static $FAX = 'FAX';
35
+
36
  public static function Values()
37
  {
38
  return array(
40
  CommunicationMode::$EMAIL,
41
  CommunicationMode::$MAIL,
42
  CommunicationMode::$FAX
43
+
44
  );
45
  }
46
 
47
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/Customer.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- * Contains customer data. Can be passed to {@link CustomerSave} using {@link CustomerSaveRequest}.
8
- *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class Customer {
@@ -30,108 +30,106 @@ class Customer {
30
  public function setCustomerCode($value){$this->CustomerCode=$value;} // string
31
 
32
  /**
33
- * Customer identification code from client system.
34
  */
35
  public function getCustomerCode(){return $this->CustomerCode;} // string
36
 
37
  public function setNewCustomerCode($value){$this->NewCustomerCode=$value;} // string
38
 
39
  /**
40
- * NewCustomerCode is used to update the CustomerCode.
41
  */
42
  public function getNewCustomerCode(){return $this->NewCustomerCode;} // string
43
 
44
  public function setParentCustomerCode($value){$this->ParentCustomerCode=$value;} // string
45
 
46
  /**
47
- * Unique identifier for the Parent Customer record.
48
  */
49
  public function getParentCustomerCode(){return $this->ParentCustomerCode;} // string
50
 
51
  public function setType($value){$this->Type=$value;} // string
52
 
53
  /**
54
- * Customer type code
55
  */
56
  public function getType(){return $this->Type;} // string
57
 
58
  public function setBusinessName($value){$this->BusinessName=$value;} // string
59
 
60
  /**
61
- * Business or organization name
62
  */
63
  public function getBusinessName(){return $this->BusinessName;} // string
64
 
65
  public function setAttn($value){$this->Attn=$value;} // string
66
 
67
  /**
68
- * Name of the person to use in correspondence for the Customer record.
69
  */
70
  public function getAttn(){return $this->Attn;} // string
71
 
72
  public function setAddress1($value){$this->Address1=$value;} // string
73
 
74
  /**
75
- * Address1 of the Customer
76
  */
77
  public function getAddress1(){return $this->Address1;} // string
78
 
79
  public function setAddress2($value){$this->Address2=$value;} // string
80
 
81
  /**
82
- * Address2 of the Customer
83
  */
84
  public function getAddress2(){return $this->Address2;} // string
85
 
86
  public function setCity($value){$this->City=$value;} // string
87
 
88
  /**
89
- * City of the Customer
90
  */
91
  public function getCity(){return $this->City;} // string
92
 
93
  public function setState($value){$this->State=$value;} // string
94
 
95
  /**
96
- * State or province of the Customer
97
  */
98
  public function getState(){return $this->State;} // string
99
 
100
  public function setCountry($value){$this->Country=$value;} // string
101
 
102
  /**
103
- * ISO 2-character country code
104
  */
105
  public function getCountry(){return $this->Country;} // string
106
 
107
  public function setZip($value){$this->Zip=$value;} // string
108
 
109
  /**
110
- * ZIP or PostalCode of the Customer
111
  */
112
  public function getZip(){return $this->Zip;} // string
113
 
114
  public function setPhone($value){$this->Phone=$value;} // string
115
 
116
  /**
117
- * Phone number
118
  */
119
  public function getPhone(){return $this->Phone;} // string
120
 
121
  public function setFax($value){$this->Fax=$value;} // string
122
 
123
  /**
124
- * Fax number
125
  */
126
  public function getFax(){return $this->Fax;} // string
127
 
128
  public function setEmail($value){$this->Email=$value;} // string
129
 
130
  /**
131
- * Email address
132
  */
133
  public function getEmail(){return $this->Email;} // string
134
 
135
  }
136
-
137
- ?>
4
  */
5
 
6
  /**
7
+ * Contains customer data. Can be passed to {@link CustomerSave} using {@link CustomerSaveRequest}.
8
+ *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class Customer {
30
  public function setCustomerCode($value){$this->CustomerCode=$value;} // string
31
 
32
  /**
33
+ * Customer identification code from client system.
34
  */
35
  public function getCustomerCode(){return $this->CustomerCode;} // string
36
 
37
  public function setNewCustomerCode($value){$this->NewCustomerCode=$value;} // string
38
 
39
  /**
40
+ * NewCustomerCode is used to update the CustomerCode.
41
  */
42
  public function getNewCustomerCode(){return $this->NewCustomerCode;} // string
43
 
44
  public function setParentCustomerCode($value){$this->ParentCustomerCode=$value;} // string
45
 
46
  /**
47
+ * Unique identifier for the Parent Customer record.
48
  */
49
  public function getParentCustomerCode(){return $this->ParentCustomerCode;} // string
50
 
51
  public function setType($value){$this->Type=$value;} // string
52
 
53
  /**
54
+ * Customer type code
55
  */
56
  public function getType(){return $this->Type;} // string
57
 
58
  public function setBusinessName($value){$this->BusinessName=$value;} // string
59
 
60
  /**
61
+ * Business or organization name
62
  */
63
  public function getBusinessName(){return $this->BusinessName;} // string
64
 
65
  public function setAttn($value){$this->Attn=$value;} // string
66
 
67
  /**
68
+ * Name of the person to use in correspondence for the Customer record.
69
  */
70
  public function getAttn(){return $this->Attn;} // string
71
 
72
  public function setAddress1($value){$this->Address1=$value;} // string
73
 
74
  /**
75
+ * Address1 of the Customer
76
  */
77
  public function getAddress1(){return $this->Address1;} // string
78
 
79
  public function setAddress2($value){$this->Address2=$value;} // string
80
 
81
  /**
82
+ * Address2 of the Customer
83
  */
84
  public function getAddress2(){return $this->Address2;} // string
85
 
86
  public function setCity($value){$this->City=$value;} // string
87
 
88
  /**
89
+ * City of the Customer
90
  */
91
  public function getCity(){return $this->City;} // string
92
 
93
  public function setState($value){$this->State=$value;} // string
94
 
95
  /**
96
+ * State or province of the Customer
97
  */
98
  public function getState(){return $this->State;} // string
99
 
100
  public function setCountry($value){$this->Country=$value;} // string
101
 
102
  /**
103
+ * ISO 2-character country code
104
  */
105
  public function getCountry(){return $this->Country;} // string
106
 
107
  public function setZip($value){$this->Zip=$value;} // string
108
 
109
  /**
110
+ * ZIP or PostalCode of the Customer
111
  */
112
  public function getZip(){return $this->Zip;} // string
113
 
114
  public function setPhone($value){$this->Phone=$value;} // string
115
 
116
  /**
117
+ * Phone number
118
  */
119
  public function getPhone(){return $this->Phone;} // string
120
 
121
  public function setFax($value){$this->Fax=$value;} // string
122
 
123
  /**
124
+ * Fax number
125
  */
126
  public function getFax(){return $this->Fax;} // string
127
 
128
  public function setEmail($value){$this->Email=$value;} // string
129
 
130
  /**
131
+ * Email address
132
  */
133
  public function getEmail(){return $this->Email;} // string
134
 
135
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/CustomerSaveRequest.class.php CHANGED
@@ -5,9 +5,9 @@
5
 
6
  /**
7
  * Input for {@link CustomerSave}.
8
- *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CustomerSaveRequest {
@@ -17,17 +17,15 @@ class CustomerSaveRequest {
17
  public function setCompanyCode($value){$this->CompanyCode=$value;} // string
18
 
19
  /**
20
- * Company Code of the company to which the customer belongs.
21
  */
22
  public function getCompanyCode(){return $this->CompanyCode;} // string
23
 
24
  public function setCustomer($value){$this->Customer=$value;} // Customer
25
 
26
  /**
27
- * The customer to add.
28
  */
29
  public function getCustomer(){return $this->Customer;} // Customer
30
 
31
  }
32
-
33
- ?>
5
 
6
  /**
7
  * Input for {@link CustomerSave}.
8
+ *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CustomerSaveRequest {
17
  public function setCompanyCode($value){$this->CompanyCode=$value;} // string
18
 
19
  /**
20
+ * Company Code of the company to which the customer belongs.
21
  */
22
  public function getCompanyCode(){return $this->CompanyCode;} // string
23
 
24
  public function setCustomer($value){$this->Customer=$value;} // Customer
25
 
26
  /**
27
+ * The customer to add.
28
  */
29
  public function getCustomer(){return $this->Customer;} // Customer
30
 
31
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/CustomerSaveResult.class.php CHANGED
@@ -5,13 +5,11 @@
5
 
6
  /**
7
  * Contains the customer save operation result returned by {@link CustomerSave}.
8
- *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CustomerSaveResult extends BaseResult {
14
 
15
  }
16
-
17
- ?>
5
 
6
  /**
7
  * Contains the customer save operation result returned by {@link CustomerSave}.
8
+ *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class CustomerSaveResult extends BaseResult {
14
 
15
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/FormatType.class.php CHANGED
@@ -5,25 +5,25 @@
5
 
6
  /**
7
  * FormatType is the format in which the image needs to be exported.
8
- *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class FormatType extends Enum {
14
 
15
  /**
16
- * The value has not been set.
17
  */
18
  public static $NULL = 'NULL';
19
 
20
  /**
21
- * PNG is a bitmapped binary image in the 1-bit PNG format (default value).
22
  */
23
  public static $PNG = 'PNG';
24
 
25
  /**
26
- * PDF is a document in Portable document format with images of every page in the certificate.
27
  */
28
  public static $PDF = 'PDF';
29
 
@@ -32,12 +32,10 @@ class FormatType extends Enum {
32
  return array(
33
  FormatType::$NULL,
34
  FormatType::$PNG,
35
- FormatType::$PDF
36
  );
37
  }
38
-
39
  // Unfortunate boiler plate due to polymorphism issues on static functions
40
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
41
  }
42
-
43
- ?>
5
 
6
  /**
7
  * FormatType is the format in which the image needs to be exported.
8
+ *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package AvaCert2
12
  */
13
  class FormatType extends Enum {
14
 
15
  /**
16
+ * The value has not been set.
17
  */
18
  public static $NULL = 'NULL';
19
 
20
  /**
21
+ * PNG is a bitmapped binary image in the 1-bit PNG format (default value).
22
  */
23
  public static $PNG = 'PNG';
24
 
25
  /**
26
+ * PDF is a document in Portable document format with images of every page in the certificate.
27
  */
28
  public static $PDF = 'PDF';
29
 
32
  return array(
33
  FormatType::$NULL,
34
  FormatType::$PNG,
35
+ FormatType::$PDF
36
  );
37
  }
38
+
39
  // Unfortunate boiler plate due to polymorphism issues on static functions
40
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
41
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/RequestType.class.php CHANGED
@@ -4,40 +4,38 @@
4
  */
5
 
6
  /**
7
- * RequestType indicates the type of the request to be initiated.
8
  * @see InitiateExemptCertRequest
9
  *
10
  * @author Avalara
11
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package AvaCert2
13
  */
14
  class RequestType extends Enum
15
- {
16
  /**
17
  * Standard sends correspondences and follow ups related to the Request to the associated Customer.
18
  *
19
  * @var RequestType
20
  */
21
  public static $STANDARD = 'STANDARD';
22
-
23
  /**
24
  * Direct does not send any correspondence or follow ups related to the Request to the associated Customer.
25
  *
26
  * @var RequestType
27
  */
28
  public static $DIRECT = 'DIRECT';
29
-
30
  public static function Values()
31
  {
32
  return array(
33
  RequestType::$STANDARD,
34
- RequestType::$DIRECT
35
  );
36
  }
37
-
38
  // Unfortunate boiler plate due to polymorphism issues on static functions
39
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
40
 
41
  }
42
-
43
- ?>
4
  */
5
 
6
  /**
7
+ * RequestType indicates the type of the request to be initiated.
8
  * @see InitiateExemptCertRequest
9
  *
10
  * @author Avalara
11
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package AvaCert2
13
  */
14
  class RequestType extends Enum
15
+ {
16
  /**
17
  * Standard sends correspondences and follow ups related to the Request to the associated Customer.
18
  *
19
  * @var RequestType
20
  */
21
  public static $STANDARD = 'STANDARD';
22
+
23
  /**
24
  * Direct does not send any correspondence or follow ups related to the Request to the associated Customer.
25
  *
26
  * @var RequestType
27
  */
28
  public static $DIRECT = 'DIRECT';
29
+
30
  public static function Values()
31
  {
32
  return array(
33
  RequestType::$STANDARD,
34
+ RequestType::$DIRECT
35
  );
36
  }
37
+
38
  // Unfortunate boiler plate due to polymorphism issues on static functions
39
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
40
 
41
  }
 
 
lib/AvaTax/classes/AvaCert2Svc/ReviewStatus.class.php CHANGED
@@ -6,46 +6,44 @@
6
  /**
7
  * ReviewStatus indicates the review status for the Certificate record.
8
  * @see ExemptionCertificate
9
- *
10
  * @author Avalara
11
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package AvaCert2
13
  */
14
  class ReviewStatus extends Enum
15
- {
16
  /**
17
  * The certificate has not yet been reviewed.
18
  *
19
  * @var ReviewStatus
20
  */
21
  public static $PENDING = 'PENDING';
22
-
23
  /**
24
  * The certificate was accepted during review.
25
  *
26
  * @var ReviewStatus
27
  */
28
  public static $ACCEPTED = 'ACCEPTED';
29
-
30
  /**
31
  * The certificate was rejected during review.
32
  *
33
  * @var ReviewStatus
34
  */
35
  public static $REJECTED = 'REJECTED';
36
-
37
  public static function Values()
38
  {
39
  return array(
40
  ReviewStatus::$PENDING,
41
  ReviewStatus::$ACCEPTED,
42
- ReviewStatus::$REJECTED
43
  );
44
  }
45
-
46
  // Unfortunate boiler plate due to polymorphism issues on static functions
47
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
48
 
49
  }
50
-
51
- ?>
6
  /**
7
  * ReviewStatus indicates the review status for the Certificate record.
8
  * @see ExemptionCertificate
9
+ *
10
  * @author Avalara
11
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package AvaCert2
13
  */
14
  class ReviewStatus extends Enum
15
+ {
16
  /**
17
  * The certificate has not yet been reviewed.
18
  *
19
  * @var ReviewStatus
20
  */
21
  public static $PENDING = 'PENDING';
22
+
23
  /**
24
  * The certificate was accepted during review.
25
  *
26
  * @var ReviewStatus
27
  */
28
  public static $ACCEPTED = 'ACCEPTED';
29
+
30
  /**
31
  * The certificate was rejected during review.
32
  *
33
  * @var ReviewStatus
34
  */
35
  public static $REJECTED = 'REJECTED';
36
+
37
  public static function Values()
38
  {
39
  return array(
40
  ReviewStatus::$PENDING,
41
  ReviewStatus::$ACCEPTED,
42
+ ReviewStatus::$REJECTED
43
  );
44
  }
45
+
46
  // Unfortunate boiler plate due to polymorphism issues on static functions
47
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
48
 
49
  }
 
 
lib/AvaTax/classes/AvalaraSoapClient.class.php CHANGED
@@ -11,13 +11,13 @@
11
  * @abstract
12
  * @see AddressServiceSoap
13
  * @see TaxServiceSoap
14
- *
15
  * @author Avalara
16
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
17
  * @package Base
18
  */
19
 
20
- class AvalaraSoapClient
21
  {
22
  protected $client;
23
 
@@ -27,7 +27,3 @@ class AvalaraSoapClient
27
  public function __getLastResponseHeaders() { return $this->client->__getLastResponseHeaders(); }
28
 
29
  }
30
-
31
-
32
-
33
- ?>
11
  * @abstract
12
  * @see AddressServiceSoap
13
  * @see TaxServiceSoap
14
+ *
15
  * @author Avalara
16
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
17
  * @package Base
18
  */
19
 
20
+ class AvalaraSoapClient
21
  {
22
  protected $client;
23
 
27
  public function __getLastResponseHeaders() { return $this->client->__getLastResponseHeaders(); }
28
 
29
  }
 
 
 
 
lib/AvaTax/classes/BaseResult.class.php CHANGED
@@ -1,17 +1,17 @@
1
  <?php
2
- /**
3
  * BaseResult.class.php
4
  */
5
-
6
  /**
7
  * The base class for result objects that return a ResultCode and Messages collection -- There is no reason for clients to create these.
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Base
12
  */
13
-
14
-
15
  class BaseResult
16
  {
17
 
@@ -23,7 +23,7 @@ class BaseResult
23
  * @return string
24
  */
25
  public function getTransactionId() { return $this->TransactionId; }
26
-
27
  public function getDocId() { return $this->DocId; }
28
  /**
29
  * Indicates whether operation was successfully completed or not.
@@ -37,5 +37,3 @@ class BaseResult
37
  public function getMessages() { return EnsureIsArray($this->Messages->Message); }
38
 
39
  }
40
-
41
- ?>
1
  <?php
2
+ /**
3
  * BaseResult.class.php
4
  */
5
+
6
  /**
7
  * The base class for result objects that return a ResultCode and Messages collection -- There is no reason for clients to create these.
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Base
12
  */
13
+
14
+
15
  class BaseResult
16
  {
17
 
23
  * @return string
24
  */
25
  public function getTransactionId() { return $this->TransactionId; }
26
+
27
  public function getDocId() { return $this->DocId; }
28
  /**
29
  * Indicates whether operation was successfully completed or not.
37
  public function getMessages() { return EnsureIsArray($this->Messages->Message); }
38
 
39
  }
 
 
lib/AvaTax/classes/BatchSvc/AuditMessage.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class AuditMessage {
@@ -17,5 +17,3 @@ class AuditMessage {
17
  public function getMessage(){return $this->Message;} // string
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class AuditMessage {
17
  public function getMessage(){return $this->Message;} // string
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/AvaTaxBatchSvc.php CHANGED
@@ -2,27 +2,27 @@
2
  /**
3
  * AvaTaxBatchSvc.class.php
4
  */
5
-
6
  /**
7
  * Defines class loading search path.
8
- *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
- * @package Base
12
  */
13
-
14
- function __autoload($class_name)
15
- {
16
  require_once $class_name . '.class.php';
17
  }
18
 
19
- function EnsureIsArray( $obj )
20
  {
21
- if( is_object($obj))
22
  {
23
  $item[0] = $obj;
24
- }
25
- else
26
  {
27
  $item = (array)$obj;
28
  }
@@ -44,7 +44,7 @@ function xml_pretty_printer($xml, $html_output=FALSE)
44
  $xml_obj = new SimpleXMLElement($xml);
45
  $xml_lines = explode("n", $xml_obj->asXML());
46
  $indent_level = 0;
47
-
48
  $new_xml_lines = array();
49
  foreach ($xml_lines as $xml_line) {
50
  if (preg_match('#(<[a-z0-9:-]+((s+[a-z0-9:-]+="[^"]+")*)?>.*<s*/s*[^>]+>)|(<[a-z0-9:-]+((s+[a-z0-9:-]+="[^"]+")*)?s*/s*>)#i', $xml_line)) {
@@ -67,10 +67,7 @@ function xml_pretty_printer($xml, $html_output=FALSE)
67
  $new_xml_lines[] = $new_line;
68
  }
69
  }
70
-
71
  $xml = join("n", $new_xml_lines);
72
  return ($html_output) ? '<pre>' . htmlentities($xml) . '</pre>' : $xml;
73
  }
74
-
75
-
76
- ?>
2
  /**
3
  * AvaTaxBatchSvc.class.php
4
  */
5
+
6
  /**
7
  * Defines class loading search path.
8
+ *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
+ * @package Base
12
  */
13
+
14
+ function __autoload($class_name)
15
+ {
16
  require_once $class_name . '.class.php';
17
  }
18
 
19
+ function EnsureIsArray( $obj )
20
  {
21
+ if( is_object($obj))
22
  {
23
  $item[0] = $obj;
24
+ }
25
+ else
26
  {
27
  $item = (array)$obj;
28
  }
44
  $xml_obj = new SimpleXMLElement($xml);
45
  $xml_lines = explode("n", $xml_obj->asXML());
46
  $indent_level = 0;
47
+
48
  $new_xml_lines = array();
49
  foreach ($xml_lines as $xml_line) {
50
  if (preg_match('#(<[a-z0-9:-]+((s+[a-z0-9:-]+="[^"]+")*)?>.*<s*/s*[^>]+>)|(<[a-z0-9:-]+((s+[a-z0-9:-]+="[^"]+")*)?s*/s*>)#i', $xml_line)) {
67
  $new_xml_lines[] = $new_line;
68
  }
69
  }
70
+
71
  $xml = join("n", $new_xml_lines);
72
  return ($html_output) ? '<pre>' . htmlentities($xml) . '</pre>' : $xml;
73
  }
 
 
 
lib/AvaTax/classes/BatchSvc/BaseResult.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BaseResult {
@@ -25,5 +25,3 @@ class BaseResult {
25
  public function getMessages(){return $this->Messages;} // ArrayOfMessage
26
 
27
  }
28
-
29
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BaseResult {
25
  public function getMessages(){return $this->Messages;} // ArrayOfMessage
26
 
27
  }
 
 
lib/AvaTax/classes/BatchSvc/Batch.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class Batch {
@@ -26,7 +26,7 @@ class Batch {
26
  private $Options; // string
27
  private $RecordCount; // int
28
  private $CurrentRecord; // int
29
-
30
  function __construct()
31
  {
32
  $this->AccountId=0;
@@ -35,13 +35,13 @@ class Batch {
35
  $this->ModifiedUserId=0;
36
  $this->RecordCount=0;
37
  $this->CurrentRecord=0;
38
-
39
  $this->CreatedDate=getCurrentDate();
40
  $this->CompletedDate=getCurrentDate();
41
  $this->ModifiedDate=getCurrentDate();
42
-
43
-
44
-
45
  }
46
 
47
  public function setAccountId($value){$this->AccountId=$value;} // int
@@ -90,5 +90,3 @@ class Batch {
90
  public function getCurrentRecord(){return $this->CurrentRecord;} // int
91
 
92
  }
93
-
94
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class Batch {
26
  private $Options; // string
27
  private $RecordCount; // int
28
  private $CurrentRecord; // int
29
+
30
  function __construct()
31
  {
32
  $this->AccountId=0;
35
  $this->ModifiedUserId=0;
36
  $this->RecordCount=0;
37
  $this->CurrentRecord=0;
38
+
39
  $this->CreatedDate=getCurrentDate();
40
  $this->CompletedDate=getCurrentDate();
41
  $this->ModifiedDate=getCurrentDate();
42
+
43
+
44
+
45
  }
46
 
47
  public function setAccountId($value){$this->AccountId=$value;} // int
90
  public function getCurrentRecord(){return $this->CurrentRecord;} // int
91
 
92
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchDelete.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchDelete {
@@ -17,5 +17,3 @@ class BatchDelete {
17
  public function getDeleteRequest(){return $this->DeleteRequest;} // DeleteRequest
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchDelete {
17
  public function getDeleteRequest(){return $this->DeleteRequest;} // DeleteRequest
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchDeleteResponse.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchDeleteResponse {
@@ -17,5 +17,3 @@ class BatchDeleteResponse {
17
  public function getBatchDeleteResult(){return $this->BatchDeleteResult;} // DeleteResult
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchDeleteResponse {
17
  public function getBatchDeleteResult(){return $this->BatchDeleteResult;} // DeleteResult
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchFetch.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFetch {
@@ -17,5 +17,3 @@ class BatchFetch {
17
  public function getFetchRequest(){return $this->FetchRequest;} // FetchRequest
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFetch {
17
  public function getFetchRequest(){return $this->FetchRequest;} // FetchRequest
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchFetchResponse.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFetchResponse {
@@ -17,5 +17,3 @@ class BatchFetchResponse {
17
  public function getBatchFetchResult(){return $this->BatchFetchResult;} // BatchFetchResult
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFetchResponse {
17
  public function getBatchFetchResult(){return $this->BatchFetchResult;} // BatchFetchResult
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchFetchResult.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFetchResult extends BaseResult {
@@ -21,5 +21,3 @@ class BatchFetchResult extends BaseResult {
21
  public function getRecordCount(){return $this->RecordCount;} // int
22
 
23
  }
24
-
25
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFetchResult extends BaseResult {
21
  public function getRecordCount(){return $this->RecordCount;} // int
22
 
23
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchFile.class.php CHANGED
@@ -4,9 +4,9 @@
4
  */
5
 
6
  /**
7
- *
8
  * @author Avalara
9
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
10
  * @package Batch
11
  */
12
  class BatchFile {
@@ -19,7 +19,7 @@ class BatchFile {
19
  private $Name; // string
20
  private $Size; // int
21
  private $ErrorCount; // int
22
-
23
  function __construct()
24
  {
25
  $this->BatchFileId=0;
@@ -55,5 +55,3 @@ class BatchFile {
55
  public function getErrorCount(){return $this->ErrorCount;} // int
56
 
57
  }
58
-
59
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  * @author Avalara
9
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
10
  * @package Batch
11
  */
12
  class BatchFile {
19
  private $Name; // string
20
  private $Size; // int
21
  private $ErrorCount; // int
22
+
23
  function __construct()
24
  {
25
  $this->BatchFileId=0;
55
  public function getErrorCount(){return $this->ErrorCount;} // int
56
 
57
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchFileDelete.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFileDelete {
@@ -17,5 +17,3 @@ class BatchFileDelete {
17
  public function getDeleteRequest(){return $this->DeleteRequest;} // DeleteRequest
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFileDelete {
17
  public function getDeleteRequest(){return $this->DeleteRequest;} // DeleteRequest
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchFileDeleteResponse.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFileDeleteResponse {
@@ -17,5 +17,3 @@ class BatchFileDeleteResponse {
17
  public function getBatchFileDeleteResult(){return $this->BatchFileDeleteResult;} // DeleteResult
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFileDeleteResponse {
17
  public function getBatchFileDeleteResult(){return $this->BatchFileDeleteResult;} // DeleteResult
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchFileFetch.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFileFetch {
@@ -17,5 +17,3 @@ class BatchFileFetch {
17
  public function getFetchRequest(){return $this->FetchRequest;} // FetchRequest
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFileFetch {
17
  public function getFetchRequest(){return $this->FetchRequest;} // FetchRequest
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchFileFetchResponse.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFileFetchResponse {
@@ -17,5 +17,3 @@ class BatchFileFetchResponse {
17
  public function getBatchFileFetchResult(){return $this->BatchFileFetchResult;} // BatchFileFetchResult
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFileFetchResponse {
17
  public function getBatchFileFetchResult(){return $this->BatchFileFetchResult;} // BatchFileFetchResult
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchFileFetchResult.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFileFetchResult extends BaseResult {
@@ -21,5 +21,3 @@ class BatchFileFetchResult extends BaseResult {
21
  public function getRecordCount(){return $this->RecordCount;} // int
22
 
23
  }
24
-
25
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFileFetchResult extends BaseResult {
21
  public function getRecordCount(){return $this->RecordCount;} // int
22
 
23
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchFileSave.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFileSave {
@@ -17,5 +17,3 @@ class BatchFileSave {
17
  public function getBatchFile(){return $this->BatchFile;} // BatchFile
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFileSave {
17
  public function getBatchFile(){return $this->BatchFile;} // BatchFile
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchFileSaveResponse.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFileSaveResponse {
@@ -17,5 +17,3 @@ class BatchFileSaveResponse {
17
  public function getBatchFileSaveResult(){return $this->BatchFileSaveResult;} // BatchFileSaveResult
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFileSaveResponse {
17
  public function getBatchFileSaveResult(){return $this->BatchFileSaveResult;} // BatchFileSaveResult
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchFileSaveResult.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFileSaveResult extends BaseResult {
@@ -17,5 +17,3 @@ class BatchFileSaveResult extends BaseResult {
17
  public function getBatchFileId(){return $this->BatchFileId;} // int
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchFileSaveResult extends BaseResult {
17
  public function getBatchFileId(){return $this->BatchFileId;} // int
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchProcess.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchProcess {
@@ -17,5 +17,3 @@ class BatchProcess {
17
  public function getBatchProcessRequest(){return $this->BatchProcessRequest;} // BatchProcessRequest
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchProcess {
17
  public function getBatchProcessRequest(){return $this->BatchProcessRequest;} // BatchProcessRequest
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchProcessRequest.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchProcessRequest //extends FilterRequest
@@ -18,9 +18,9 @@ class BatchProcessRequest //extends FilterRequest
18
  function __construct()
19
  {
20
  $this->MaxCount=0;
21
-
22
  }
23
-
24
  public function setFilters($value){$this->Filters=$value;} // string
25
  public function getFilters(){return $this->Filters;} // string
26
 
@@ -28,5 +28,3 @@ class BatchProcessRequest //extends FilterRequest
28
  public function getMaxCount(){return $this->MaxCount;} // int
29
 
30
  }
31
-
32
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchProcessRequest //extends FilterRequest
18
  function __construct()
19
  {
20
  $this->MaxCount=0;
21
+
22
  }
23
+
24
  public function setFilters($value){$this->Filters=$value;} // string
25
  public function getFilters(){return $this->Filters;} // string
26
 
28
  public function getMaxCount(){return $this->MaxCount;} // int
29
 
30
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchProcessResponse.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchProcessResponse {
@@ -17,5 +17,3 @@ class BatchProcessResponse {
17
  public function getBatchProcessResult(){return $this->BatchProcessResult;} // BatchProcessResult
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchProcessResponse {
17
  public function getBatchProcessResult(){return $this->BatchProcessResult;} // BatchProcessResult
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchProcessResult.class.php CHANGED
@@ -4,14 +4,12 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchProcessResult extends BaseResult {
14
 
15
  }
16
-
17
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchProcessResult extends BaseResult {
14
 
15
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchSave.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchSave {
@@ -17,5 +17,3 @@ class BatchSave {
17
  public function getBatch(){return $this->Batch;} // Batch
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchSave {
17
  public function getBatch(){return $this->Batch;} // Batch
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchSaveResponse.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchSaveResponse {
@@ -17,5 +17,3 @@ class BatchSaveResponse {
17
  public function getBatchSaveResult(){return $this->BatchSaveResult;} // BatchSaveResult
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchSaveResponse {
17
  public function getBatchSaveResult(){return $this->BatchSaveResult;} // BatchSaveResult
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchSaveResult.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchSaveResult extends BaseResult {
@@ -21,5 +21,3 @@ class BatchSaveResult extends BaseResult {
21
  public function getEstimatedCompletion(){return $this->EstimatedCompletion;} // dateTime
22
 
23
  }
24
-
25
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class BatchSaveResult extends BaseResult {
21
  public function getEstimatedCompletion(){return $this->EstimatedCompletion;} // dateTime
22
 
23
  }
 
 
lib/AvaTax/classes/BatchSvc/BatchSvc.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
 
@@ -59,114 +59,114 @@ class BatchSvc extends SoapClient {
59
  public function __construct($configurationName = 'Default')
60
  {
61
  $config = new ATConfig($configurationName);
62
-
63
  $this->client = new DynamicSoapClient (
64
  $config->batchWSDL,
65
  array
66
  (
67
- 'location' => $config->url.$config->batchService,
68
  'trace' => $config->trace,
69
  'classmap' => BatchSvc::$classmap
70
- ),
71
  $config
72
  );
73
- }
74
 
75
  /**
76
- * Fetches one or more Batch
77
  *
78
  * @param BatchFetch $parameters
79
  * @return BatchFetchResponse
80
- */
81
- public function BatchFetch(&$fetchRequest) {
82
-
83
  return $this->client->BatchFetch(array('FetchRequest' => $fetchRequest))->getBatchFetchResult();
84
  }
85
 
86
  /**
87
- * Saves a Batch entry
88
  *
89
  * @param BatchSave $parameters
90
  * @return BatchSaveResponse
91
  */
92
  public function BatchSave(&$batch) {
93
-
94
  return $this->client->BatchSave(array('Batch' => $batch))->getBatchSaveResult();
95
-
96
  }
97
 
98
  /**
99
- * Deletes one or more Batches
100
  *
101
  * @param BatchDelete $parameters
102
  * @return BatchDeleteResponse
103
  */
104
  public function BatchDelete(&$deleteRequest) {
105
-
106
  return $this->client->BatchDelete(array('DeleteRequest' => $deleteRequest))->getBatchDeleteResult();
107
-
108
  }
109
 
110
  /**
111
- * Processes one or more Batches
112
  *
113
  * @param BatchProcess $parameters
114
  * @return BatchProcessResponse
115
  */
116
  public function BatchProcess(&$batchProcessRequest) {
117
-
118
  return $this->client->BatchProcess(array('BatchProcessRequest' => $batchProcessRequest))->getBatchProcessResult();
119
-
120
  }
121
 
122
  /**
123
- * Fetches one or more BatchFiles
124
  *
125
  * @param BatchFileFetch $parameters
126
  * @return BatchFileFetchResponse
127
  */
128
  public function BatchFileFetch(&$fetchRequest) {
129
-
130
  return $this->client->BatchFileFetch(array('FetchRequest' => $fetchRequest))->getBatchFileFetchResult();
131
-
132
  }
133
 
134
  /**
135
- * Saves a Batch File
136
  *
137
  * @param BatchFileSave $parameters
138
  * @return BatchFileSaveResponse
139
  */
140
- public function BatchFileSave(&$batchFile) {
141
-
142
  return $this->client->BatchFileSave(array('BatchFile' => $batchFile))->getBatchFileSaveResult();
143
-
144
  }
145
 
146
  /**
147
- * Deletes one or more BatchFiles
148
  *
149
  * @param BatchFileDelete $parameters
150
  * @return BatchFileDeleteResponse
151
  */
152
  public function BatchFileDelete(&$deleteRequest) {
153
-
154
  return $this->client->BatchFileDelete(array('DeleteRequest' => $deleteRequest))->getBatchFileDeleteResult();
155
-
156
  }
157
 
158
  /**
159
- * Tests connectivity and version of the service
160
  *
161
  * @param Ping $parameters
162
  * @return PingResponse
163
  */
164
- public function Ping($message = '') {
165
  return $this->client->Ping(array('Message' => $message))->getPingResult();
166
  }
167
 
168
  /**
169
- * Checks authentication and authorization to one or more operations on the service.
170
  *
171
  * @param IsAuthorized $parameters
172
  * @return IsAuthorizedResponse
@@ -177,5 +177,3 @@ public function IsAuthorized($operations)
177
  }
178
 
179
  }
180
-
181
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
 
59
  public function __construct($configurationName = 'Default')
60
  {
61
  $config = new ATConfig($configurationName);
62
+
63
  $this->client = new DynamicSoapClient (
64
  $config->batchWSDL,
65
  array
66
  (
67
+ 'location' => $config->url.$config->batchService,
68
  'trace' => $config->trace,
69
  'classmap' => BatchSvc::$classmap
70
+ ),
71
  $config
72
  );
73
+ }
74
 
75
  /**
76
+ * Fetches one or more Batch
77
  *
78
  * @param BatchFetch $parameters
79
  * @return BatchFetchResponse
80
+ */
81
+ public function BatchFetch(&$fetchRequest) {
82
+
83
  return $this->client->BatchFetch(array('FetchRequest' => $fetchRequest))->getBatchFetchResult();
84
  }
85
 
86
  /**
87
+ * Saves a Batch entry
88
  *
89
  * @param BatchSave $parameters
90
  * @return BatchSaveResponse
91
  */
92
  public function BatchSave(&$batch) {
93
+
94
  return $this->client->BatchSave(array('Batch' => $batch))->getBatchSaveResult();
95
+
96
  }
97
 
98
  /**
99
+ * Deletes one or more Batches
100
  *
101
  * @param BatchDelete $parameters
102
  * @return BatchDeleteResponse
103
  */
104
  public function BatchDelete(&$deleteRequest) {
105
+
106
  return $this->client->BatchDelete(array('DeleteRequest' => $deleteRequest))->getBatchDeleteResult();
107
+
108
  }
109
 
110
  /**
111
+ * Processes one or more Batches
112
  *
113
  * @param BatchProcess $parameters
114
  * @return BatchProcessResponse
115
  */
116
  public function BatchProcess(&$batchProcessRequest) {
117
+
118
  return $this->client->BatchProcess(array('BatchProcessRequest' => $batchProcessRequest))->getBatchProcessResult();
119
+
120
  }
121
 
122
  /**
123
+ * Fetches one or more BatchFiles
124
  *
125
  * @param BatchFileFetch $parameters
126
  * @return BatchFileFetchResponse
127
  */
128
  public function BatchFileFetch(&$fetchRequest) {
129
+
130
  return $this->client->BatchFileFetch(array('FetchRequest' => $fetchRequest))->getBatchFileFetchResult();
131
+
132
  }
133
 
134
  /**
135
+ * Saves a Batch File
136
  *
137
  * @param BatchFileSave $parameters
138
  * @return BatchFileSaveResponse
139
  */
140
+ public function BatchFileSave(&$batchFile) {
141
+
142
  return $this->client->BatchFileSave(array('BatchFile' => $batchFile))->getBatchFileSaveResult();
143
+
144
  }
145
 
146
  /**
147
+ * Deletes one or more BatchFiles
148
  *
149
  * @param BatchFileDelete $parameters
150
  * @return BatchFileDeleteResponse
151
  */
152
  public function BatchFileDelete(&$deleteRequest) {
153
+
154
  return $this->client->BatchFileDelete(array('DeleteRequest' => $deleteRequest))->getBatchFileDeleteResult();
155
+
156
  }
157
 
158
  /**
159
+ * Tests connectivity and version of the service
160
  *
161
  * @param Ping $parameters
162
  * @return PingResponse
163
  */
164
+ public function Ping($message = '') {
165
  return $this->client->Ping(array('Message' => $message))->getPingResult();
166
  }
167
 
168
  /**
169
+ * Checks authentication and authorization to one or more operations on the service.
170
  *
171
  * @param IsAuthorized $parameters
172
  * @return IsAuthorizedResponse
177
  }
178
 
179
  }
 
 
lib/AvaTax/classes/BatchSvc/DeleteRequest.class.php CHANGED
@@ -4,23 +4,23 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
- class DeleteRequest //extends FilterRequest
14
- {
15
  private $Filters; // string
16
  private $MaxCount; // int
17
 
18
  function __construct()
19
  {
20
  $this->MaxCount=0;
21
-
22
  }
23
-
24
  public function setFilters($value){$this->Filters=$value;} // string
25
  public function getFilters(){return $this->Filters;} // string
26
 
@@ -28,5 +28,3 @@ class DeleteRequest //extends FilterRequest
28
  public function getMaxCount(){return $this->MaxCount;} // int
29
 
30
  }
31
-
32
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
+ class DeleteRequest //extends FilterRequest
14
+ {
15
  private $Filters; // string
16
  private $MaxCount; // int
17
 
18
  function __construct()
19
  {
20
  $this->MaxCount=0;
21
+
22
  }
23
+
24
  public function setFilters($value){$this->Filters=$value;} // string
25
  public function getFilters(){return $this->Filters;} // string
26
 
28
  public function getMaxCount(){return $this->MaxCount;} // int
29
 
30
  }
 
 
lib/AvaTax/classes/BatchSvc/DeleteResult.class.php CHANGED
@@ -4,14 +4,12 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class DeleteResult extends BaseResult {
14
 
15
  }
16
-
17
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class DeleteResult extends BaseResult {
14
 
15
  }
 
 
lib/AvaTax/classes/BatchSvc/FetchRequest.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class FetchRequest {
@@ -18,7 +18,7 @@ class FetchRequest {
18
  private $PageIndex; // int
19
  private $PageSize; // int
20
  private $RecordCount; // int
21
-
22
  function __construct()
23
  {
24
  $this->MaxCount=0;
@@ -49,5 +49,3 @@ class FetchRequest {
49
  public function getRecordCount(){return $this->RecordCount;} // int
50
 
51
  }
52
-
53
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class FetchRequest {
18
  private $PageIndex; // int
19
  private $PageSize; // int
20
  private $RecordCount; // int
21
+
22
  function __construct()
23
  {
24
  $this->MaxCount=0;
49
  public function getRecordCount(){return $this->RecordCount;} // int
50
 
51
  }
 
 
lib/AvaTax/classes/BatchSvc/FilterRequest.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class FilterRequest {
@@ -17,9 +17,9 @@ class FilterRequest {
17
  function __construct()
18
  {
19
  $this->MaxCount=0;
20
-
21
  }
22
-
23
  public function setFilters($value){$this->Filters=$value;} // string
24
  public function getFilters(){return $this->Filters;} // string
25
 
@@ -27,5 +27,3 @@ class FilterRequest {
27
  public function getMaxCount(){return $this->MaxCount;} // int
28
 
29
  }
30
-
31
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class FilterRequest {
17
  function __construct()
18
  {
19
  $this->MaxCount=0;
20
+
21
  }
22
+
23
  public function setFilters($value){$this->Filters=$value;} // string
24
  public function getFilters(){return $this->Filters;} // string
25
 
27
  public function getMaxCount(){return $this->MaxCount;} // int
28
 
29
  }
 
 
lib/AvaTax/classes/BatchSvc/FilterResult.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class FilterResult {
@@ -17,5 +17,3 @@ class FilterResult {
17
  public function getCount(){return $this->Count;} // int
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class FilterResult {
17
  public function getCount(){return $this->Count;} // int
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/IsAuthorized.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class IsAuthorized {
@@ -17,5 +17,3 @@ class IsAuthorized {
17
  public function getOperations(){return $this->Operations;} // string
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class IsAuthorized {
17
  public function getOperations(){return $this->Operations;} // string
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/IsAuthorizedResponse.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class IsAuthorizedResponse {
@@ -17,5 +17,3 @@ class IsAuthorizedResponse {
17
  public function getIsAuthorizedResult(){return $this->IsAuthorizedResult;} // IsAuthorizedResult
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class IsAuthorizedResponse {
17
  public function getIsAuthorizedResult(){return $this->IsAuthorizedResult;} // IsAuthorizedResult
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/IsAuthorizedResult.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class IsAuthorizedResult {
@@ -21,5 +21,3 @@ class IsAuthorizedResult {
21
  public function getExpires(){return $this->Expires;} // dateTime
22
 
23
  }
24
-
25
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class IsAuthorizedResult {
21
  public function getExpires(){return $this->Expires;} // dateTime
22
 
23
  }
 
 
lib/AvaTax/classes/BatchSvc/Message.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class Message {
@@ -41,5 +41,3 @@ class Message {
41
  public function getName(){return $this->Name;} // string
42
 
43
  }
44
-
45
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class Message {
41
  public function getName(){return $this->Name;} // string
42
 
43
  }
 
 
lib/AvaTax/classes/BatchSvc/Ping.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class Ping {
@@ -17,5 +17,3 @@ class Ping {
17
  public function getMessage(){return $this->Message;} // string
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class Ping {
17
  public function getMessage(){return $this->Message;} // string
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/PingResponse.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class PingResponse {
@@ -17,5 +17,3 @@ class PingResponse {
17
  public function getPingResult(){return $this->PingResult;} // PingResult
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class PingResponse {
17
  public function getPingResult(){return $this->PingResult;} // PingResult
18
 
19
  }
 
 
lib/AvaTax/classes/BatchSvc/PingResult.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class PingResult extends BaseResult
@@ -28,7 +28,5 @@ class PingResult extends BaseResult
28
  * @return array
29
  */
30
  //public function getMessages() { return EnsureIsArray($this->Messages->Message);}
31
-
32
- }
33
 
34
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class PingResult extends BaseResult
28
  * @return array
29
  */
30
  //public function getMessages() { return EnsureIsArray($this->Messages->Message);}
 
 
31
 
32
+ }
lib/AvaTax/classes/BatchSvc/Profile.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class Profile {
@@ -29,5 +29,3 @@ class Profile {
29
  public function getMachine(){return $this->Machine;} // string
30
 
31
  }
32
-
33
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class Profile {
29
  public function getMachine(){return $this->Machine;} // string
30
 
31
  }
 
 
lib/AvaTax/classes/BatchSvc/SeverityLevel.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class SeverityLevel {
@@ -17,5 +17,3 @@ class SeverityLevel {
17
  const Exception = 'Exception';
18
 
19
  }
20
-
21
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Batch
12
  */
13
  class SeverityLevel {
17
  const Exception = 'Exception';
18
 
19
  }
 
 
lib/AvaTax/classes/BoundaryLevel.class.php CHANGED
@@ -8,9 +8,9 @@
8
  * This depends on the accuracy of the address as well as the
9
  * precision level of the state provided jurisdiction boundaries.
10
  * @see TaxLine
11
- *
12
  * @author Avalara
13
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
14
  * @package Tax
15
  */
16
 
@@ -22,8 +22,8 @@ class BoundaryLevel extends Enum
22
  *
23
  * @var unknown_type
24
  */
25
- public static $Address = 'Address'; //enum
26
-
27
  /**
28
  *5-digit zip precision
29
  *
@@ -36,10 +36,10 @@ class BoundaryLevel extends Enum
36
  *
37
  * @var unknown_type
38
  */
39
- public static $Zip5 = 'Zip5'; //enum
40
-
 
41
 
42
-
43
  public static function Values()
44
  {
45
  return array(
@@ -49,10 +49,7 @@ class BoundaryLevel extends Enum
49
  );
50
  }
51
 
52
-
53
  // Unfortunate boiler plate due to polymorphism issues on static functions
54
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
55
  }
56
-
57
-
58
- ?>
8
  * This depends on the accuracy of the address as well as the
9
  * precision level of the state provided jurisdiction boundaries.
10
  * @see TaxLine
11
+ *
12
  * @author Avalara
13
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
14
  * @package Tax
15
  */
16
 
22
  *
23
  * @var unknown_type
24
  */
25
+ public static $Address = 'Address'; //enum
26
+
27
  /**
28
  *5-digit zip precision
29
  *
36
  *
37
  * @var unknown_type
38
  */
39
+ public static $Zip5 = 'Zip5'; //enum
40
+
41
+
42
 
 
43
  public static function Values()
44
  {
45
  return array(
49
  );
50
  }
51
 
52
+
53
  // Unfortunate boiler plate due to polymorphism issues on static functions
54
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
55
  }
 
 
 
lib/AvaTax/classes/CancelCode.class.php CHANGED
@@ -7,9 +7,9 @@
7
  * A cancel code is set on a {@link CancelTaxRequest} and specifies the reason the
8
  * tax calculation is being canceled (or in the case of posting, returned to its prior state).
9
  * @see CancelTaxRequest
10
- *
11
  * @author Avalara
12
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  * @package Tax
14
  */
15
  class CancelCode extends Enum
@@ -39,7 +39,7 @@ class CancelCode extends Enum
39
  */
40
 
41
  public static $DocDeleted = 'DocDeleted';
42
-
43
  /**
44
  * Specifies the document was voided within the client's application and
45
  * should be removed from the AvaTax records; If the document within AvaTax
@@ -50,7 +50,7 @@ class CancelCode extends Enum
50
  public static $DocVoided = 'DocVoided';
51
  public static $AdjustmentCancelled = 'AdjustmentCancelled';
52
 
53
-
54
  public static function Values()
55
  {
56
  return array(
@@ -61,10 +61,8 @@ class CancelCode extends Enum
61
  CancelCode::$AdjustmentCancelled
62
  );
63
  }
64
-
65
  // Unfortunate boiler plate due to polymorphism issues on static functions
66
- public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
67
-
68
- }
69
 
70
- ?>
7
  * A cancel code is set on a {@link CancelTaxRequest} and specifies the reason the
8
  * tax calculation is being canceled (or in the case of posting, returned to its prior state).
9
  * @see CancelTaxRequest
10
+ *
11
  * @author Avalara
12
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  * @package Tax
14
  */
15
  class CancelCode extends Enum
39
  */
40
 
41
  public static $DocDeleted = 'DocDeleted';
42
+
43
  /**
44
  * Specifies the document was voided within the client's application and
45
  * should be removed from the AvaTax records; If the document within AvaTax
50
  public static $DocVoided = 'DocVoided';
51
  public static $AdjustmentCancelled = 'AdjustmentCancelled';
52
 
53
+
54
  public static function Values()
55
  {
56
  return array(
61
  CancelCode::$AdjustmentCancelled
62
  );
63
  }
64
+
65
  // Unfortunate boiler plate due to polymorphism issues on static functions
66
+ public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
 
 
67
 
68
+ }
lib/AvaTax/classes/CancelTaxRequest.class.php CHANGED
@@ -16,7 +16,7 @@
16
  * @see CancelTaxResult, DocumentType
17
  *
18
  * @author Avalara
19
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
20
  * @package Tax
21
  */
22
 
@@ -39,8 +39,8 @@ class CancelTaxRequest extends TaxRequest
39
  */
40
 
41
  public function getCancelCode() { return $this->CancelCode; }
42
-
43
-
44
  /**
45
  * A code indicating the reason the document is getting canceled.
46
  *
@@ -49,11 +49,5 @@ class CancelTaxRequest extends TaxRequest
49
  */
50
 
51
  public function setCancelCode($value) { CancelCode::Validate($value); $this->CancelCode = $value; return $this; }
52
-
53
- }
54
-
55
 
56
-
57
-
58
-
59
- ?>
16
  * @see CancelTaxResult, DocumentType
17
  *
18
  * @author Avalara
19
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
20
  * @package Tax
21
  */
22
 
39
  */
40
 
41
  public function getCancelCode() { return $this->CancelCode; }
42
+
43
+
44
  /**
45
  * A code indicating the reason the document is getting canceled.
46
  *
49
  */
50
 
51
  public function setCancelCode($value) { CancelCode::Validate($value); $this->CancelCode = $value; return $this; }
 
 
 
52
 
53
+ }
 
 
 
lib/AvaTax/classes/CancelTaxResult.class.php CHANGED
@@ -6,16 +6,16 @@
6
  /**
7
  * Result data returned from {@link TaxSvcSoap#cancelTax}
8
  * @see CancelTaxRequest
9
- *
10
  * @author Avalara
11
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package Tax
13
- *
14
  */
15
 
16
  class CancelTaxResult // extends BaseResult
17
  {
18
-
19
 
20
  // BaseResult innards - workaround a bug in SoapClient
21
 
@@ -31,7 +31,7 @@ class CancelTaxResult // extends BaseResult
31
  * @var array of Message.
32
  */
33
  private $Messages = array();
34
-
35
  private $DocId;
36
 
37
  /**
@@ -39,9 +39,9 @@ class CancelTaxResult // extends BaseResult
39
  * @return string
40
  */
41
  public function getTransactionId() { return $this->TransactionId; }
42
-
43
  public function getDocId() { return $this->DocId; }
44
-
45
  /**
46
  * Accessor
47
  * @return string
@@ -56,5 +56,3 @@ class CancelTaxResult // extends BaseResult
56
 
57
 
58
  }
59
-
60
- ?>
6
  /**
7
  * Result data returned from {@link TaxSvcSoap#cancelTax}
8
  * @see CancelTaxRequest
9
+ *
10
  * @author Avalara
11
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package Tax
13
+ *
14
  */
15
 
16
  class CancelTaxResult // extends BaseResult
17
  {
18
+
19
 
20
  // BaseResult innards - workaround a bug in SoapClient
21
 
31
  * @var array of Message.
32
  */
33
  private $Messages = array();
34
+
35
  private $DocId;
36
 
37
  /**
39
  * @return string
40
  */
41
  public function getTransactionId() { return $this->TransactionId; }
42
+
43
  public function getDocId() { return $this->DocId; }
44
+
45
  /**
46
  * Accessor
47
  * @return string
56
 
57
 
58
  }
 
 
lib/AvaTax/classes/CommitTaxRequest.class.php CHANGED
@@ -13,34 +13,31 @@
13
  * </p>
14
  *
15
  * @see CommitTaxResult
16
- *
17
  * @author Avalara
18
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
19
  * @package Tax
20
  */
21
-
22
  class CommitTaxRequest extends TaxRequest
23
  {
24
  private $NewDocCode; //string
25
-
26
  /**
27
- * As on this version of SDK DocCode can be changed during commit using NewDocCode.
28
  *
29
  * @return string
30
  */
31
  public function getNewDocCode() { return $this->NewDocCode; }
32
-
33
  /**
34
- * As on this version of SDK DocCode can be changed during commit using NewDocCode.
35
  *
36
  * @param string $value
37
  */
38
  public function setNewDocCode($value) { $this->NewDocCode = $value; }
39
-
40
-
41
-
42
 
43
- }
44
 
45
 
46
- ?>
 
13
  * </p>
14
  *
15
  * @see CommitTaxResult
16
+ *
17
  * @author Avalara
18
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
19
  * @package Tax
20
  */
21
+
22
  class CommitTaxRequest extends TaxRequest
23
  {
24
  private $NewDocCode; //string
25
+
26
  /**
27
+ * As on this version of SDK DocCode can be changed during commit using NewDocCode.
28
  *
29
  * @return string
30
  */
31
  public function getNewDocCode() { return $this->NewDocCode; }
32
+
33
  /**
34
+ * As on this version of SDK DocCode can be changed during commit using NewDocCode.
35
  *
36
  * @param string $value
37
  */
38
  public function setNewDocCode($value) { $this->NewDocCode = $value; }
 
 
 
39
 
 
40
 
41
 
42
+
43
+ }
lib/AvaTax/classes/CommitTaxResult.class.php CHANGED
@@ -6,23 +6,23 @@
6
  /**
7
  * Result data returned from {@link TaxServiceSoap#commitTax}.
8
  * @see CommitTaxRequest
9
- *
10
  * @author Avalara
11
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package Tax
13
  */
14
 
15
  class CommitTaxResult //extends BaseResult
16
- {
17
-
18
-
19
  // BaseResult innards - workaround a bug in SoapClient
20
 
21
  /**
22
  * @var string
23
  */
24
  private $TransactionId;
25
-
26
  private $DocId;
27
  /**
28
  * @var string must be one of the values defined in {@link SeverityLevel}.
@@ -38,7 +38,7 @@ class CommitTaxResult //extends BaseResult
38
  * @return string
39
  */
40
  public function getTransactionId() { return $this->TransactionId; }
41
-
42
  public function getDocId() { return $this->DocId;}
43
  /**
44
  * Accessor
@@ -53,5 +53,3 @@ class CommitTaxResult //extends BaseResult
53
 
54
 
55
  }
56
-
57
- ?>
6
  /**
7
  * Result data returned from {@link TaxServiceSoap#commitTax}.
8
  * @see CommitTaxRequest
9
+ *
10
  * @author Avalara
11
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package Tax
13
  */
14
 
15
  class CommitTaxResult //extends BaseResult
16
+ {
17
+
18
+
19
  // BaseResult innards - workaround a bug in SoapClient
20
 
21
  /**
22
  * @var string
23
  */
24
  private $TransactionId;
25
+
26
  private $DocId;
27
  /**
28
  * @var string must be one of the values defined in {@link SeverityLevel}.
38
  * @return string
39
  */
40
  public function getTransactionId() { return $this->TransactionId; }
41
+
42
  public function getDocId() { return $this->DocId;}
43
  /**
44
  * Accessor
53
 
54
 
55
  }
 
 
lib/AvaTax/classes/DetailLevel.class.php CHANGED
@@ -2,13 +2,13 @@
2
  /**
3
  * DetailLevel.class.php
4
  */
5
-
6
  /**
7
  * Specifies the level of tax detail to return to the client application following a tax calculation.
8
  * @see GetTaxRequest, GetTaxHistoryRequest
9
  *
10
  * @author Avalara
11
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package Tax
13
  */
14
 
@@ -19,18 +19,18 @@ class DetailLevel extends Enum
19
  * Reserved for future use.
20
  */
21
  public static $Summary = 'Summary';
22
-
23
  /**
24
  * Document ({@link GetTaxResult}) level details; {@link ArrayOfTaxLine} will not be returned.
25
  */
26
  public static $Document = 'Document';
27
-
28
  /**
29
  * Line level details (includes Document details). {@link ArrayOfTaxLine} will
30
  * be returned but {@link ArrayOfTaxDetail} will not be returned.
31
- */
32
  public static $Line = 'Line';
33
-
34
  /**
35
  * Tax jurisdiction level details (includes Document, {@link ArrayOfTaxLine},
36
  * and {@link ArrayOfTaxDetail})
@@ -38,7 +38,7 @@ class DetailLevel extends Enum
38
  public static $Tax = 'Tax';
39
  public static $Diagnostic = 'Diagnostic';
40
 
41
-
42
  public static function Values()
43
  {
44
  return array(
@@ -49,9 +49,7 @@ class DetailLevel extends Enum
49
  DetailLevel::$Diagnostic
50
  );
51
  }
52
-
53
  // Unfortunate boiler plate due to polymorphism issues on static functions
54
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
55
  }
56
-
57
- ?>
2
  /**
3
  * DetailLevel.class.php
4
  */
5
+
6
  /**
7
  * Specifies the level of tax detail to return to the client application following a tax calculation.
8
  * @see GetTaxRequest, GetTaxHistoryRequest
9
  *
10
  * @author Avalara
11
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package Tax
13
  */
14
 
19
  * Reserved for future use.
20
  */
21
  public static $Summary = 'Summary';
22
+
23
  /**
24
  * Document ({@link GetTaxResult}) level details; {@link ArrayOfTaxLine} will not be returned.
25
  */
26
  public static $Document = 'Document';
27
+
28
  /**
29
  * Line level details (includes Document details). {@link ArrayOfTaxLine} will
30
  * be returned but {@link ArrayOfTaxDetail} will not be returned.
31
+ */
32
  public static $Line = 'Line';
33
+
34
  /**
35
  * Tax jurisdiction level details (includes Document, {@link ArrayOfTaxLine},
36
  * and {@link ArrayOfTaxDetail})
38
  public static $Tax = 'Tax';
39
  public static $Diagnostic = 'Diagnostic';
40
 
41
+
42
  public static function Values()
43
  {
44
  return array(
49
  DetailLevel::$Diagnostic
50
  );
51
  }
52
+
53
  // Unfortunate boiler plate due to polymorphism issues on static functions
54
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
55
  }
 
 
lib/AvaTax/classes/DocStatus.class.php CHANGED
@@ -8,7 +8,7 @@
8
  * and indicates the state of the document in tax history.
9
  *
10
  * @author Avalara
11
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package Tax
13
  */
14
 
@@ -22,42 +22,42 @@ class DocStatus extends Enum
22
  * @var unknown_type
23
  */
24
  public static $Temporary= 'Temporary';
25
-
26
  /**
27
  * A saved document (DocumentType was SalesInvoice, PurchaseInvoice, ReturnInvoice) ready to be posted.
28
  *
29
  * @var DocStatus
30
  */
31
  public static $Saved = 'Saved';
32
-
33
  /**
34
  * A posted document (not committed).
35
  *
36
  * @var DocStatus
37
  */
38
  public static $Posted = 'Posted';
39
-
40
  /**
41
  * A posted document that has been committed.
42
  *
43
  * @var DocStatus
44
  */
45
  public static $Committed = 'Committed';
46
-
47
  /**
48
  * A committed document that has been cancelled.
49
  *
50
  * @var DocStatus
51
  */
52
  public static $Cancelled = 'Cancelled';
53
-
54
  /**
55
  * Enter description here...
56
  *
57
  * @var DocStatus
58
  */
59
  public static $Adjusted = 'Adjusted';
60
-
61
  /**
62
  * Any status (used for searching)
63
  *
@@ -65,7 +65,7 @@ class DocStatus extends Enum
65
  */
66
  public static $Any = 'Any';
67
 
68
-
69
  public static function Values()
70
  {
71
  return array(
@@ -75,12 +75,10 @@ class DocStatus extends Enum
75
  DocStatus::$Committed,
76
  DocStatus::$Cancelled,
77
  DocStatus::$Adjusted,
78
- DocStatus::$Any
79
  );
80
  }
81
  // Unfortunate boiler plate due to polymorphism issues on static functions
82
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
83
 
84
  }
85
-
86
- ?>
8
  * and indicates the state of the document in tax history.
9
  *
10
  * @author Avalara
11
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package Tax
13
  */
14
 
22
  * @var unknown_type
23
  */
24
  public static $Temporary= 'Temporary';
25
+
26
  /**
27
  * A saved document (DocumentType was SalesInvoice, PurchaseInvoice, ReturnInvoice) ready to be posted.
28
  *
29
  * @var DocStatus
30
  */
31
  public static $Saved = 'Saved';
32
+
33
  /**
34
  * A posted document (not committed).
35
  *
36
  * @var DocStatus
37
  */
38
  public static $Posted = 'Posted';
39
+
40
  /**
41
  * A posted document that has been committed.
42
  *
43
  * @var DocStatus
44
  */
45
  public static $Committed = 'Committed';
46
+
47
  /**
48
  * A committed document that has been cancelled.
49
  *
50
  * @var DocStatus
51
  */
52
  public static $Cancelled = 'Cancelled';
53
+
54
  /**
55
  * Enter description here...
56
  *
57
  * @var DocStatus
58
  */
59
  public static $Adjusted = 'Adjusted';
60
+
61
  /**
62
  * Any status (used for searching)
63
  *
65
  */
66
  public static $Any = 'Any';
67
 
68
+
69
  public static function Values()
70
  {
71
  return array(
75
  DocStatus::$Committed,
76
  DocStatus::$Cancelled,
77
  DocStatus::$Adjusted,
78
+ DocStatus::$Any
79
  );
80
  }
81
  // Unfortunate boiler plate due to polymorphism issues on static functions
82
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
83
 
84
  }
 
 
lib/AvaTax/classes/DocumentType.class.php CHANGED
@@ -2,13 +2,13 @@
2
  /**
3
  * DocumentType.class.php
4
  */
5
-
6
  /**
7
  * The document type specifies the category of the document and affects how the document
8
  * is treated after a tax calculation. Specified when constructing a {@link GetTaxRequest}.
9
  *
10
  * @author Avalara
11
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package Tax
13
  */
14
 
@@ -22,35 +22,35 @@ class DocumentType extends Enum
22
  * @var DocumentType
23
  */
24
  public static $SalesOrder = 'SalesOrder';
25
-
26
  /**
27
  * The document is a permanent invoice; document and tax calculation results are saved in the tax history.
28
  *
29
  * @var DocumentType
30
  */
31
  public static $SalesInvoice = 'SalesInvoice';
32
-
33
  /**
34
  * Purchase order, estimate, or quote.
35
  *
36
  * @var DocumentType
37
  */
38
  public static $PurchaseOrder = 'PurchaseOrder';
39
-
40
  /**
41
  * The document is a permanent invoice; document and tax calculation results are saved in the tax history.
42
  *
43
  * @var DocumentType
44
  */
45
  public static $PurchaseInvoice = 'PurchaseInvoice';
46
-
47
  /**
48
  *Sales Return Order.
49
  *
50
  * @var DocumentType
51
  */
52
  public static $ReturnOrder = 'ReturnOrder';
53
-
54
  /**
55
  * The document is a permanent sales return invoice; document and tax calculation results are saved in the tax history GetTaxResult will return with a DocStatus of Saved.
56
  *
@@ -71,14 +71,14 @@ class DocumentType extends Enum
71
  * @var DocumentType
72
  */
73
  public static $InventoryTransferInvoice = 'InventoryTransferInvoice';
74
-
75
  /**
76
  * This will return all types of documents.
77
  *
78
  * @var DocumentType
79
  */
80
  public static $Any = 'Any';
81
-
82
  public static function Values()
83
  {
84
  return array(
@@ -87,15 +87,13 @@ class DocumentType extends Enum
87
  DocumentType::$PurchaseOrder,
88
  DocumentType::$PurchaseInvoice,
89
  DocumentType::$ReturnOrder,
90
- DocumentType::$ReturnInvoice,
91
- DocumentType::$InventoryTransferOrder,
92
  DocumentType::$InventoryTransferInvoice,
93
  DocumentType::$Any
94
  );
95
  }
96
  // Unfortunate boiler plate due to polymorphism issues on static functions
97
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
98
-
99
- }
100
 
101
- ?>
2
  /**
3
  * DocumentType.class.php
4
  */
5
+
6
  /**
7
  * The document type specifies the category of the document and affects how the document
8
  * is treated after a tax calculation. Specified when constructing a {@link GetTaxRequest}.
9
  *
10
  * @author Avalara
11
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package Tax
13
  */
14
 
22
  * @var DocumentType
23
  */
24
  public static $SalesOrder = 'SalesOrder';
25
+
26
  /**
27
  * The document is a permanent invoice; document and tax calculation results are saved in the tax history.
28
  *
29
  * @var DocumentType
30
  */
31
  public static $SalesInvoice = 'SalesInvoice';
32
+
33
  /**
34
  * Purchase order, estimate, or quote.
35
  *
36
  * @var DocumentType
37
  */
38
  public static $PurchaseOrder = 'PurchaseOrder';
39
+
40
  /**
41
  * The document is a permanent invoice; document and tax calculation results are saved in the tax history.
42
  *
43
  * @var DocumentType
44
  */
45
  public static $PurchaseInvoice = 'PurchaseInvoice';
46
+
47
  /**
48
  *Sales Return Order.
49
  *
50
  * @var DocumentType
51
  */
52
  public static $ReturnOrder = 'ReturnOrder';
53
+
54
  /**
55
  * The document is a permanent sales return invoice; document and tax calculation results are saved in the tax history GetTaxResult will return with a DocStatus of Saved.
56
  *
71
  * @var DocumentType
72
  */
73
  public static $InventoryTransferInvoice = 'InventoryTransferInvoice';
74
+
75
  /**
76
  * This will return all types of documents.
77
  *
78
  * @var DocumentType
79
  */
80
  public static $Any = 'Any';
81
+
82
  public static function Values()
83
  {
84
  return array(
87
  DocumentType::$PurchaseOrder,
88
  DocumentType::$PurchaseInvoice,
89
  DocumentType::$ReturnOrder,
90
+ DocumentType::$ReturnInvoice,
91
+ DocumentType::$InventoryTransferOrder,
92
  DocumentType::$InventoryTransferInvoice,
93
  DocumentType::$Any
94
  );
95
  }
96
  // Unfortunate boiler plate due to polymorphism issues on static functions
97
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
 
 
98
 
99
+ }
lib/AvaTax/classes/DynamicSoapClient.class.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * DynamicSoapClient.class.php
4
  */
5
-
6
  /**
7
  * Private implementation class for all Avalara web service clients.
8
  *
@@ -12,19 +12,19 @@
12
  * @see AvalaraSoapClient
13
  * @see AddressServiceSoap
14
  * @see TaxServiceSoap
15
- *
16
  * @author Avalara
17
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
18
  * @package Base
19
  */
20
-
21
  class DynamicSoapClient extends SoapClient
22
  {
23
  private $config;
24
  public function __construct($wsdl,$options,&$config)
25
  {
26
  parent::__construct($wsdl,$options);
27
- $this->config = $config;
28
  }
29
 
30
  public function __call($n,$args)
@@ -34,10 +34,10 @@ class DynamicSoapClient extends SoapClient
34
  $result = $this->__soapCall($n,$args,NULL,array($securityHeader,$profileHeader));
35
  return $result;
36
  }
37
-
38
  private function securityXML()
39
  {
40
- return
41
  '<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="1">'.
42
  '<wsse:UsernameToken>'.
43
  '<wsse:Username>'.$this->config->account.'</wsse:Username>'.
@@ -46,17 +46,15 @@ class DynamicSoapClient extends SoapClient
46
  '</wsse:UsernameToken>'.
47
  '</wsse:Security>';
48
  }
49
-
50
  private function profileXML()
51
  {
52
- return
53
  '<Profile xmlns="http://avatax.avalara.com/services" SOAP-ENV:actor="http://schemas.xmlsoap.org/soap/actor/next" SOAP-ENV:mustUnderstand="0">'.
54
  '<Name>'.$this->config->name.'</Name>'.
55
  '<Client>'.$this->config->client.'</Client>'.
56
- '<Adapter>'.$this->config->adapter.'</Adapter>'.
57
  '</Profile>';
58
  }
59
-
60
- }
61
 
62
- ?>
2
  /**
3
  * DynamicSoapClient.class.php
4
  */
5
+
6
  /**
7
  * Private implementation class for all Avalara web service clients.
8
  *
12
  * @see AvalaraSoapClient
13
  * @see AddressServiceSoap
14
  * @see TaxServiceSoap
15
+ *
16
  * @author Avalara
17
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
18
  * @package Base
19
  */
20
+
21
  class DynamicSoapClient extends SoapClient
22
  {
23
  private $config;
24
  public function __construct($wsdl,$options,&$config)
25
  {
26
  parent::__construct($wsdl,$options);
27
+ $this->config = $config;
28
  }
29
 
30
  public function __call($n,$args)
34
  $result = $this->__soapCall($n,$args,NULL,array($securityHeader,$profileHeader));
35
  return $result;
36
  }
37
+
38
  private function securityXML()
39
  {
40
+ return
41
  '<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="1">'.
42
  '<wsse:UsernameToken>'.
43
  '<wsse:Username>'.$this->config->account.'</wsse:Username>'.
46
  '</wsse:UsernameToken>'.
47
  '</wsse:Security>';
48
  }
49
+
50
  private function profileXML()
51
  {
52
+ return
53
  '<Profile xmlns="http://avatax.avalara.com/services" SOAP-ENV:actor="http://schemas.xmlsoap.org/soap/actor/next" SOAP-ENV:mustUnderstand="0">'.
54
  '<Name>'.$this->config->name.'</Name>'.
55
  '<Client>'.$this->config->client.'</Client>'.
56
+ '<Adapter>'.$this->config->adapter.'</Adapter>'.
57
  '</Profile>';
58
  }
 
 
59
 
60
+ }
lib/AvaTax/classes/Enum.class.php CHANGED
@@ -7,15 +7,15 @@
7
  * Abstract class for enumerated types - provides validation.
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Base
12
  */
13
-
14
  class Enum
15
  {
16
  // Basic implementation - check and throw
17
- protected static function __Validate($value,$values,$class=__CLASS__)
18
- {
19
  foreach($values as $valid)
20
  {
21
  if($value == $valid)
@@ -23,9 +23,7 @@ class Enum
23
  return true;
24
  }
25
  }
26
-
27
  throw new Exception('Invalid '.$class.' "'.$value.'" - must be one of "'.implode('"|"',$values).'"');
28
  }
29
  }
30
-
31
- ?>
7
  * Abstract class for enumerated types - provides validation.
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Base
12
  */
13
+
14
  class Enum
15
  {
16
  // Basic implementation - check and throw
17
+ protected static function __Validate($value,$values,$class=__CLASS__)
18
+ {
19
  foreach($values as $valid)
20
  {
21
  if($value == $valid)
23
  return true;
24
  }
25
  }
26
+
27
  throw new Exception('Invalid '.$class.' "'.$value.'" - must be one of "'.implode('"|"',$values).'"');
28
  }
29
  }
 
 
lib/AvaTax/classes/GetTaxHistoryRequest.class.php CHANGED
@@ -6,20 +6,20 @@
6
  /**
7
  * Data to pass to {@link TaxServiceSoap#getTaxHistory}.
8
  * <p>
9
- * The request must specify all of CompanyCode, DocCode, and DocType in order to uniquely identify the document.
10
  * </p>
11
  *
12
  * @see GetTaxHistoryResult
13
- *
14
  * @author Avalara
15
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
16
  * @package Tax
17
  */
18
 
19
- class GetTaxHistoryRequest extends TaxRequest
20
  {
21
- private $DetailLevel;
22
-
23
  public function __construct()
24
  {
25
  parent::__construct();
@@ -27,10 +27,10 @@ class GetTaxHistoryRequest extends TaxRequest
27
  $this->DocType = DocumentType::$SalesOrder; // this is right Document
28
 
29
  }
30
-
31
  /**
32
  * Specifies the level of detail to return.
33
- *
34
  * @return detailLevel
35
  * @var string
36
  * @see DetailLevel
@@ -40,7 +40,7 @@ class GetTaxHistoryRequest extends TaxRequest
40
 
41
  /**
42
  * Specifies the level of detail to return.
43
- *
44
  * @see DetailLevel
45
  * @return string
46
  */
@@ -48,5 +48,3 @@ class GetTaxHistoryRequest extends TaxRequest
48
  public function setDetailLevel($value) { DetailLevel::Validate($value); $this->DetailLevel = $value; return $this; } //Summary or Document or Line or Tax or Diagnostic - enum
49
 
50
  }
51
-
52
- ?>
6
  /**
7
  * Data to pass to {@link TaxServiceSoap#getTaxHistory}.
8
  * <p>
9
+ * The request must specify all of CompanyCode, DocCode, and DocType in order to uniquely identify the document.
10
  * </p>
11
  *
12
  * @see GetTaxHistoryResult
13
+ *
14
  * @author Avalara
15
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
16
  * @package Tax
17
  */
18
 
19
+ class GetTaxHistoryRequest extends TaxRequest
20
  {
21
+ private $DetailLevel;
22
+
23
  public function __construct()
24
  {
25
  parent::__construct();
27
  $this->DocType = DocumentType::$SalesOrder; // this is right Document
28
 
29
  }
30
+
31
  /**
32
  * Specifies the level of detail to return.
33
+ *
34
  * @return detailLevel
35
  * @var string
36
  * @see DetailLevel
40
 
41
  /**
42
  * Specifies the level of detail to return.
43
+ *
44
  * @see DetailLevel
45
  * @return string
46
  */
48
  public function setDetailLevel($value) { DetailLevel::Validate($value); $this->DetailLevel = $value; return $this; } //Summary or Document or Line or Tax or Diagnostic - enum
49
 
50
  }
 
 
lib/AvaTax/classes/GetTaxHistoryResult.class.php CHANGED
@@ -7,9 +7,9 @@
7
  * Result data returned from {@link TaxServiceSoap#getTaxHistory} for a previously calculated tax document.
8
  *
9
  * @see GetTaxHistoryRequest
10
- *
11
  * @author Avalara
12
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  * @package Tax
14
  */
15
 
@@ -17,10 +17,10 @@ class GetTaxHistoryResult //extends BaseResult
17
  {
18
  private $GetTaxRequest;
19
  private $GetTaxResult;
20
-
21
  /**
22
  * Gets the original {@link GetTaxRequest} for the document.
23
- *
24
  * @return GetTaxRequest
25
  */
26
 
@@ -28,13 +28,13 @@ class GetTaxHistoryResult //extends BaseResult
28
 
29
  /**
30
  * Gets the original {@link GetTaxResult} for the document.
31
- *
32
  * @return GetTaxResult
33
  */
34
 
35
  public function getGetTaxResult() { return $this->GetTaxResult; }
36
-
37
-
38
  // BaseResult innards - work around a bug in SoapClient
39
 
40
  /**
@@ -68,5 +68,3 @@ class GetTaxHistoryResult //extends BaseResult
68
 
69
 
70
  }
71
-
72
- ?>
7
  * Result data returned from {@link TaxServiceSoap#getTaxHistory} for a previously calculated tax document.
8
  *
9
  * @see GetTaxHistoryRequest
10
+ *
11
  * @author Avalara
12
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  * @package Tax
14
  */
15
 
17
  {
18
  private $GetTaxRequest;
19
  private $GetTaxResult;
20
+
21
  /**
22
  * Gets the original {@link GetTaxRequest} for the document.
23
+ *
24
  * @return GetTaxRequest
25
  */
26
 
28
 
29
  /**
30
  * Gets the original {@link GetTaxResult} for the document.
31
+ *
32
  * @return GetTaxResult
33
  */
34
 
35
  public function getGetTaxResult() { return $this->GetTaxResult; }
36
+
37
+
38
  // BaseResult innards - work around a bug in SoapClient
39
 
40
  /**
68
 
69
 
70
  }
 
 
lib/AvaTax/classes/GetTaxRequest.class.php CHANGED
@@ -563,5 +563,3 @@ class GetTaxRequest
563
 
564
 
565
  }
566
-
567
- ?>
563
 
564
 
565
  }
 
 
lib/AvaTax/classes/GetTaxResult.class.php CHANGED
@@ -7,42 +7,42 @@
7
  * Result data returned from {@link TaxServiceSoap#getTax}.
8
  *
9
  * @see GetTaxRequest
10
- *
11
  * @author Avalara
12
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
- * @package Tax
14
  */
15
 
16
  class GetTaxResult // extends BaseResult
17
  {
18
-
19
- private $DocCode; //string
20
  private $DocId; //string
21
- private $AdjustmentDescription; //string
22
- private $DocDate; //date
23
- private $TaxDate; //date
24
- private $DocType; //DocumentType
25
- private $DocStatus; //DocStatus
26
- private $Reconciled; //boolean
27
- private $Locked; //boolean
28
- private $Timestamp; //dateTime
29
- private $TotalAmount; //decimal
30
- private $TotalDiscount; //decimal
31
- private $TotalExemption; //decimal
32
- private $TotalTaxable; //decimal
33
- private $TotalTax; //decimal
34
- private $AdjustmentReason; //int
35
- private $Version; //int
36
  private $TaxLines; //ArrayOfTaxLine
37
-
38
  //@author:swetal
39
  //Added new properties to upgrade to 5.3 interface
40
  private $TotalTaxCalculated; //decimal
41
- private $TaxSummary; //ArrayOfTaxDetail
42
-
43
-
44
  /**
45
- * Gets the internal reference code used by the client application. This is used for operations such as Post and GetTaxHistory.
46
  * <p>
47
  * See {@link GetTaxRequest#getDocId} on <b>GetTaxRequest</b> for more information about this member.
48
  * </p>
@@ -50,9 +50,9 @@ class GetTaxResult // extends BaseResult
50
  * @return string
51
  */
52
  public function getDocId() {return $this->DocId; }
53
-
54
  /**
55
- * Gets the internal reference code used by the client application. This is used for operations such as Post and GetTaxHistory.
56
  * <p>
57
  * See {@link GetTaxRequest#getDocCode} on <b>GetTaxRequest</b> for more information about this member.
58
  * </p>
@@ -60,21 +60,21 @@ class GetTaxResult // extends BaseResult
60
  * @return string
61
  */
62
  public function getDocCode() {return $this->DocCode; }
63
-
64
  /**
65
- * AdjustmentDescription set while making AdjustTax call.
66
  *
67
  * @return string
68
  */
69
  public function getAdjustmentDescription() { return $this->AdjustmentDescription; }
70
-
71
  /**
72
- * AdjustmentReason set while making AdjustTax call. It is a high level classification of why an Original Document is being modified.
73
  *
74
  * @return int
75
  */
76
  public function getAdjustmentReason(){ return $this->AdjustmentReason; }
77
-
78
  /**
79
  * Gets the date on the invoice, purchase order, etc.
80
  * <p>
@@ -84,9 +84,9 @@ class GetTaxResult // extends BaseResult
84
  * @return date
85
  */
86
  public function getDocDate() {return $this->DocDate; }
87
-
88
  /**
89
- * Tax Date is the date used to calculate tax on the Document.
90
  * <p>
91
  * See {@link GetTaxRequest#taxDate} on <b>GetTaxRequest</b> for more information about this member.
92
  * </p>
@@ -94,7 +94,7 @@ class GetTaxResult // extends BaseResult
94
  * @return date
95
  */
96
  public function getTaxDate() {return $this->TaxDate; }
97
-
98
  /**
99
  * Gets the Document Type.
100
  * <p>
@@ -104,14 +104,14 @@ class GetTaxResult // extends BaseResult
104
  * @return DocumentType
105
  */
106
  public function getDocType() {return $this->DocType; }
107
-
108
  /**
109
  * Gets the document's status after the tax calculation.
110
  *
111
  * @return DocStatus
112
- */
113
  public function getDocStatus() {return $this->DocStatus; }
114
-
115
  /**
116
  * True if the document has been reconciled; Only committed documents can be reconciled.
117
  * <p>
@@ -121,46 +121,46 @@ class GetTaxResult // extends BaseResult
121
  * </p>
122
  *
123
  * @return boolean
124
- */
125
  public function getIsReconciled() {return $this->Reconciled; }
126
-
127
  /**
128
- * Flag indicating if a Document has been locked by Avalara's MRS process. Locked documents can not be modified and can not be cancelled because they have been reported on Tax Return.
129
  *
130
  * @return boolean
131
  */
132
  public function getLocked() {return $this->Locked; }
133
-
134
  /**
135
  * Date of the last status change on the document (i.e. Save date, Post date, Commit date, Cancel date).
136
  *
137
  * @return dateTime
138
  */
139
  public function getTimestamp() {return $this->Timestamp; }
140
-
141
  /**
142
  * The sum of all line {@link Line#getAmount} values.
143
  *
144
  * @param decimal
145
- */
146
  public function getTotalAmount() {return $this->TotalAmount; }
147
-
148
  /**
149
  * Gets the sum of all <b>TaxLine</b> {@link TaxLine#getDiscount} amounts; Typically it
150
  * will equal the requested Discount, but, but it is possible that no lines were marked as discounted.
151
  *
152
  * @return decimal
153
- */
154
  public function getTotalDiscount() {return $this->TotalDiscount; }
155
-
156
  /**
157
  * Gets the sum of all <b>TaxLine</b> {@link TaxLine#getExemption} amounts.
158
  *
159
  * @return decimal
160
  * @deprecated See {@link TaxDetail#getExemption}.
161
- */
162
  public function getTotalExemption() {return $this->TotalExemption; }
163
-
164
  /**
165
  * Gets the amount the tax is based on; This is the total of all {@link Line} <b>Base</b> amounts;
166
  * Typically it will be equal to the document
@@ -168,37 +168,37 @@ class GetTaxResult // extends BaseResult
168
  *
169
  * @return decimal
170
  * @deprecated See {@link TaxDetail#getTaxable}.
171
- */
172
  public function getTotalTaxable() {return $this->TotalTaxable; }
173
-
174
  /**
175
  * Gets the total tax for the document.
176
  *
177
  * @return decimal
178
- */
179
  public function getTotalTax() {return $this->TotalTax; }
180
-
181
  /**
182
- * HashCode to support Reconciliation.
183
- *
184
  * @return hashCode
185
- */
186
  public function getHashCode() {return $this->HashCode; }
187
-
188
  /**
189
- * Current version of the document.
190
  *
191
  * @return int
192
  */
193
  public function getVersion() {return $this->Version; }
194
-
195
  /**
196
  * Gets the Tax broken down by individual {@link TaxLine}.
197
  *
198
  * @return taxLines
199
  */
200
  public function getTaxLines() {return EnsureIsArray($this->TaxLines->TaxLine); }
201
-
202
  /**
203
  * TotalTaxCalculated indicates the total tax calculated by AvaTax. This is usually the same as the TotalTax, except when a tax override amount is specified.
204
  * This is for informational purposes.The TotalTax will still be used for reporting
@@ -206,15 +206,15 @@ class GetTaxResult // extends BaseResult
206
  * @return unknown
207
  */
208
  public function getTotalTaxCalculated(){ return $this->TotalTaxCalculated;}
209
-
210
  /**
211
  * TaxSummary is now returned when GetTaxRequest.DetailLevel == DetailLevel.Line in addition to DetailLevel.Summary.
212
- * It is not returned for DetailLevel.Document or DetailLevel.TaxDetail.
213
  *
214
  * @return ArrayOfTaxDetail
215
  */
216
  public function getTaxSummary() {return EnsureIsArray($this->TaxSummary->TaxDetail);}
217
-
218
  public function getTaxLine($lineNo)
219
  {
220
  if($this->getTaxLines() != null)
@@ -225,13 +225,13 @@ class GetTaxResult // extends BaseResult
225
  {
226
  return $taxLine;
227
  }
228
-
229
  }
230
  }
231
  }
232
-
233
-
234
-
235
  /////////////////////////////////////////////PHP bug requires this copy from BaseResult ///////////
236
  /**
237
  * @var string
@@ -261,12 +261,10 @@ class GetTaxResult // extends BaseResult
261
  * @return array
262
  */
263
  public function getMessages() { return EnsureIsArray($this->Messages->Message); }
264
-
265
-
266
 
267
 
268
 
269
 
270
- }
271
 
272
- ?>
 
7
  * Result data returned from {@link TaxServiceSoap#getTax}.
8
  *
9
  * @see GetTaxRequest
10
+ *
11
  * @author Avalara
12
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
+ * @package Tax
14
  */
15
 
16
  class GetTaxResult // extends BaseResult
17
  {
18
+
19
+ private $DocCode; //string
20
  private $DocId; //string
21
+ private $AdjustmentDescription; //string
22
+ private $DocDate; //date
23
+ private $TaxDate; //date
24
+ private $DocType; //DocumentType
25
+ private $DocStatus; //DocStatus
26
+ private $Reconciled; //boolean
27
+ private $Locked; //boolean
28
+ private $Timestamp; //dateTime
29
+ private $TotalAmount; //decimal
30
+ private $TotalDiscount; //decimal
31
+ private $TotalExemption; //decimal
32
+ private $TotalTaxable; //decimal
33
+ private $TotalTax; //decimal
34
+ private $AdjustmentReason; //int
35
+ private $Version; //int
36
  private $TaxLines; //ArrayOfTaxLine
37
+
38
  //@author:swetal
39
  //Added new properties to upgrade to 5.3 interface
40
  private $TotalTaxCalculated; //decimal
41
+ private $TaxSummary; //ArrayOfTaxDetail
42
+
43
+
44
  /**
45
+ * Gets the internal reference code used by the client application. This is used for operations such as Post and GetTaxHistory.
46
  * <p>
47
  * See {@link GetTaxRequest#getDocId} on <b>GetTaxRequest</b> for more information about this member.
48
  * </p>
50
  * @return string
51
  */
52
  public function getDocId() {return $this->DocId; }
53
+
54
  /**
55
+ * Gets the internal reference code used by the client application. This is used for operations such as Post and GetTaxHistory.
56
  * <p>
57
  * See {@link GetTaxRequest#getDocCode} on <b>GetTaxRequest</b> for more information about this member.
58
  * </p>
60
  * @return string
61
  */
62
  public function getDocCode() {return $this->DocCode; }
63
+
64
  /**
65
+ * AdjustmentDescription set while making AdjustTax call.
66
  *
67
  * @return string
68
  */
69
  public function getAdjustmentDescription() { return $this->AdjustmentDescription; }
70
+
71
  /**
72
+ * AdjustmentReason set while making AdjustTax call. It is a high level classification of why an Original Document is being modified.
73
  *
74
  * @return int
75
  */
76
  public function getAdjustmentReason(){ return $this->AdjustmentReason; }
77
+
78
  /**
79
  * Gets the date on the invoice, purchase order, etc.
80
  * <p>
84
  * @return date
85
  */
86
  public function getDocDate() {return $this->DocDate; }
87
+
88
  /**
89
+ * Tax Date is the date used to calculate tax on the Document.
90
  * <p>
91
  * See {@link GetTaxRequest#taxDate} on <b>GetTaxRequest</b> for more information about this member.
92
  * </p>
94
  * @return date
95
  */
96
  public function getTaxDate() {return $this->TaxDate; }
97
+
98
  /**
99
  * Gets the Document Type.
100
  * <p>
104
  * @return DocumentType
105
  */
106
  public function getDocType() {return $this->DocType; }
107
+
108
  /**
109
  * Gets the document's status after the tax calculation.
110
  *
111
  * @return DocStatus
112
+ */
113
  public function getDocStatus() {return $this->DocStatus; }
114
+
115
  /**
116
  * True if the document has been reconciled; Only committed documents can be reconciled.
117
  * <p>
121
  * </p>
122
  *
123
  * @return boolean
124
+ */
125
  public function getIsReconciled() {return $this->Reconciled; }
126
+
127
  /**
128
+ * Flag indicating if a Document has been locked by Avalara's MRS process. Locked documents can not be modified and can not be cancelled because they have been reported on Tax Return.
129
  *
130
  * @return boolean
131
  */
132
  public function getLocked() {return $this->Locked; }
133
+
134
  /**
135
  * Date of the last status change on the document (i.e. Save date, Post date, Commit date, Cancel date).
136
  *
137
  * @return dateTime
138
  */
139
  public function getTimestamp() {return $this->Timestamp; }
140
+
141
  /**
142
  * The sum of all line {@link Line#getAmount} values.
143
  *
144
  * @param decimal
145
+ */
146
  public function getTotalAmount() {return $this->TotalAmount; }
147
+
148
  /**
149
  * Gets the sum of all <b>TaxLine</b> {@link TaxLine#getDiscount} amounts; Typically it
150
  * will equal the requested Discount, but, but it is possible that no lines were marked as discounted.
151
  *
152
  * @return decimal
153
+ */
154
  public function getTotalDiscount() {return $this->TotalDiscount; }
155
+
156
  /**
157
  * Gets the sum of all <b>TaxLine</b> {@link TaxLine#getExemption} amounts.
158
  *
159
  * @return decimal
160
  * @deprecated See {@link TaxDetail#getExemption}.
161
+ */
162
  public function getTotalExemption() {return $this->TotalExemption; }
163
+
164
  /**
165
  * Gets the amount the tax is based on; This is the total of all {@link Line} <b>Base</b> amounts;
166
  * Typically it will be equal to the document
168
  *
169
  * @return decimal
170
  * @deprecated See {@link TaxDetail#getTaxable}.
171
+ */
172
  public function getTotalTaxable() {return $this->TotalTaxable; }
173
+
174
  /**
175
  * Gets the total tax for the document.
176
  *
177
  * @return decimal
178
+ */
179
  public function getTotalTax() {return $this->TotalTax; }
180
+
181
  /**
182
+ * HashCode to support Reconciliation.
183
+ *
184
  * @return hashCode
185
+ */
186
  public function getHashCode() {return $this->HashCode; }
187
+
188
  /**
189
+ * Current version of the document.
190
  *
191
  * @return int
192
  */
193
  public function getVersion() {return $this->Version; }
194
+
195
  /**
196
  * Gets the Tax broken down by individual {@link TaxLine}.
197
  *
198
  * @return taxLines
199
  */
200
  public function getTaxLines() {return EnsureIsArray($this->TaxLines->TaxLine); }
201
+
202
  /**
203
  * TotalTaxCalculated indicates the total tax calculated by AvaTax. This is usually the same as the TotalTax, except when a tax override amount is specified.
204
  * This is for informational purposes.The TotalTax will still be used for reporting
206
  * @return unknown
207
  */
208
  public function getTotalTaxCalculated(){ return $this->TotalTaxCalculated;}
209
+
210
  /**
211
  * TaxSummary is now returned when GetTaxRequest.DetailLevel == DetailLevel.Line in addition to DetailLevel.Summary.
212
+ * It is not returned for DetailLevel.Document or DetailLevel.TaxDetail.
213
  *
214
  * @return ArrayOfTaxDetail
215
  */
216
  public function getTaxSummary() {return EnsureIsArray($this->TaxSummary->TaxDetail);}
217
+
218
  public function getTaxLine($lineNo)
219
  {
220
  if($this->getTaxLines() != null)
225
  {
226
  return $taxLine;
227
  }
228
+
229
  }
230
  }
231
  }
232
+
233
+
234
+
235
  /////////////////////////////////////////////PHP bug requires this copy from BaseResult ///////////
236
  /**
237
  * @var string
261
  * @return array
262
  */
263
  public function getMessages() { return EnsureIsArray($this->Messages->Message); }
 
 
264
 
265
 
266
 
267
 
 
268
 
269
+
270
+ }
lib/AvaTax/classes/IsAuthorizedResult.class.php CHANGED
@@ -18,7 +18,7 @@
18
  * </pre>
19
  *
20
  * @author Avalara
21
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
22
  * @package Address
23
  */
24
 
@@ -26,24 +26,24 @@ class IsAuthorizedResult //extends BaseResult
26
  {
27
  private $Operations;
28
  private $Expires;
29
-
30
  /**
31
  * Authorized operations for the user.
32
  *
33
  * @return string
34
  */
35
  public function getOperations() { return $this->Operations; }
36
-
37
  /**
38
- * Indicates the subscription expiration date in yyyy-mm-dd format
39
  *
40
  * @return date
41
  */
42
  public function getExpires() { return $this->Expires; }
43
-
44
  public function setOperations($value) { $this->Operations = $value; return $this; }
45
  public function setExpires($value) { $this->Expires = $value; return $this; }
46
-
47
  //BaseResult innards - workaround for SoapClient bug
48
  /**
49
  * @var string
@@ -76,5 +76,3 @@ class IsAuthorizedResult //extends BaseResult
76
 
77
 
78
  }
79
-
80
- ?>
18
  * </pre>
19
  *
20
  * @author Avalara
21
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
22
  * @package Address
23
  */
24
 
26
  {
27
  private $Operations;
28
  private $Expires;
29
+
30
  /**
31
  * Authorized operations for the user.
32
  *
33
  * @return string
34
  */
35
  public function getOperations() { return $this->Operations; }
36
+
37
  /**
38
+ * Indicates the subscription expiration date in yyyy-mm-dd format
39
  *
40
  * @return date
41
  */
42
  public function getExpires() { return $this->Expires; }
43
+
44
  public function setOperations($value) { $this->Operations = $value; return $this; }
45
  public function setExpires($value) { $this->Expires = $value; return $this; }
46
+
47
  //BaseResult innards - workaround for SoapClient bug
48
  /**
49
  * @var string
76
 
77
 
78
  }
 
 
lib/AvaTax/classes/JurisdictionType.class.php CHANGED
@@ -2,20 +2,20 @@
2
  /**
3
  * JurisdictionType.class.php
4
  */
5
-
6
  /**
7
  * A Jurisdiction Type describes the jurisdiction for which a particular tax is applied to a document.
8
- * Jurisdiction is determined by the GetTaxRequest#getDestinationAddress or GetTaxRequest#getOriginAddress of a GetTaxRequest.
9
  * Multiple jurisdictions might be applied to a single Line during a tax calcuation.
10
- * Details are available in the TaxDetail of the GetTaxResult.
11
  *
12
  * @see TaxDetail
13
- *
14
  * @author Avalara
15
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
16
  * @package Tax
17
  */
18
- class JurisdictionType
19
  {
20
  /**
21
  * Unspecified Jurisdiction
@@ -23,28 +23,28 @@ class JurisdictionType
23
  * @var JurisdictionType
24
  */
25
  public static $Composite = 'Composite';
26
-
27
  /**
28
  * State
29
  *
30
  * @var JurisdictionType
31
  */
32
  public static $State = 'State';
33
-
34
  /**
35
  * County
36
  *
37
  * @var JurisdictionType
38
  */
39
  public static $County = 'County';
40
-
41
  /**
42
  * City
43
  *
44
  * @var JurisdictionType
45
  */
46
  public static $City = 'City';
47
-
48
  /**
49
  * Special Tax Jurisdiction
50
  *
@@ -52,7 +52,7 @@ class JurisdictionType
52
  */
53
  public static $Special = 'Special';
54
  /*
55
-
56
  public static function Values()
57
  {
58
  return array(
@@ -63,12 +63,10 @@ class JurisdictionType
63
  JurisdictionType::$Special
64
  );
65
  }
66
-
67
  // Unfortunate boiler plate due to polymorphism issues on static functions
68
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
69
-
70
  */
71
-
72
- }
73
 
74
- ?>
2
  /**
3
  * JurisdictionType.class.php
4
  */
5
+
6
  /**
7
  * A Jurisdiction Type describes the jurisdiction for which a particular tax is applied to a document.
8
+ * Jurisdiction is determined by the GetTaxRequest#getDestinationAddress or GetTaxRequest#getOriginAddress of a GetTaxRequest.
9
  * Multiple jurisdictions might be applied to a single Line during a tax calcuation.
10
+ * Details are available in the TaxDetail of the GetTaxResult.
11
  *
12
  * @see TaxDetail
13
+ *
14
  * @author Avalara
15
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
16
  * @package Tax
17
  */
18
+ class JurisdictionType
19
  {
20
  /**
21
  * Unspecified Jurisdiction
23
  * @var JurisdictionType
24
  */
25
  public static $Composite = 'Composite';
26
+
27
  /**
28
  * State
29
  *
30
  * @var JurisdictionType
31
  */
32
  public static $State = 'State';
33
+
34
  /**
35
  * County
36
  *
37
  * @var JurisdictionType
38
  */
39
  public static $County = 'County';
40
+
41
  /**
42
  * City
43
  *
44
  * @var JurisdictionType
45
  */
46
  public static $City = 'City';
47
+
48
  /**
49
  * Special Tax Jurisdiction
50
  *
52
  */
53
  public static $Special = 'Special';
54
  /*
55
+
56
  public static function Values()
57
  {
58
  return array(
63
  JurisdictionType::$Special
64
  );
65
  }
66
+
67
  // Unfortunate boiler plate due to polymorphism issues on static functions
68
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
69
+
70
  */
 
 
71
 
72
+ }
lib/AvaTax/classes/Line.class.php CHANGED
@@ -4,15 +4,15 @@
4
  */
5
 
6
  /**
7
- * A single line within a document containing data used for calculating tax.
8
  *
9
  * @see GetTaxRequest
10
- *
11
  * @author Avalara
12
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  * @package Tax
14
  */
15
-
16
  class Line
17
  {
18
  private $No; //string // line Number of invoice
@@ -22,7 +22,7 @@ class Line
22
  private $Description; //string
23
  private $TaxCode; //string
24
  private $Qty; //decimal
25
- private $Amount; //decimal // TotalAmmount
26
  private $Discounted; //boolean is discount applied to this item
27
  private $RevAcct; //string
28
  private $Ref1; //string
@@ -30,7 +30,7 @@ class Line
30
  private $ExemptionNo; //string //zero tax will result if filled in
31
  private $CustomerUsageType; //string
32
  private $BatchCode; //string
33
-
34
  private $TaxOverride; //TaxOverride
35
  private $OriginAddress; //Address
36
  private $DestinationAddress; //Address
@@ -45,161 +45,161 @@ class Line
45
  $this->Qty=$qty;
46
  $this->Amount=$amount;
47
 
48
-
49
  $this->Discounted=false;
50
-
51
-
52
- }
53
-
54
 
55
- /*
 
 
 
 
56
  * Mutator
57
  * @access public
58
  * @param integer
59
  */
60
-
61
  /**
62
  * Line Number.
63
  *
64
- * @param string $value
65
  */
66
  public function setNo($value) { $this->No = $value; return $this; } //string // line Number of invoice
67
-
68
  /**
69
  * Item Code (SKU)
70
  *
71
- * @param string $value
72
  */
73
  public function setItemCode($value) { $this->ItemCode = $value; return $this; } //string
74
-
75
  /**
76
  * Sets the description which defines the description for the product or item.
77
  *
78
- * @param string $value
79
  */
80
  public function setDescription($value) { $this->Description = $value; return $this; } //string
81
-
82
  /**
83
  * System or Custom Tax Code.
84
  *
85
- * @param string $value
86
  */
87
  public function setTaxCode($value) { $this->TaxCode = $value; return $this; } //string
88
-
89
  /**
90
  * Revenue Account.
91
  *
92
- * @param string $value
93
  */
94
  public function setRevAcct($value) { $this->RevAcct = $value; return $this; } //string
95
-
96
  /**
97
  * Client specific reference field.
98
  *
99
- * @param string $value
100
  */
101
  public function setRef1($value) { $this->Ref1 = $value; return $this; } //string
102
-
103
  /**
104
  * Client specific reference field.
105
  *
106
- * @param string $value
107
  */
108
  public function setRef2($value) { $this->Ref2 = $value; return $this; } //string
109
-
110
  /**
111
- * Exemption number for this line
112
  *
113
- * @param string $value
114
  */
115
  public function setExemptionNo($value) { $this->ExemptionNo = $value; return $this; } //string //zero tax will result if filled in
116
-
117
  /**
118
  * The client application customer or usage type.
119
  * <p>
120
- * This is used to determine the exempt status of the transaction based on the exemption tax rules for the
121
  * jurisdictions involved. This may also be set at the line level.
122
  * </p>
123
  * <p>
124
  * The standard values for the CustomerUsageType (A-L).<br/>
125
- A � Federal Government<br/>
126
- B � State/Local Govt.<br/>
127
- C � Tribal Government<br/>
128
- D � Foreign Diplomat<br/>
129
- E � Charitable Organization<br/>
130
- F � Religious/Education<br/>
131
- G � Resale<br/>
132
- H � Agricultural Production<br/>
133
- I � Industrial Prod/Mfg.<br/>
134
- J � Direct Pay Permit<br/>
135
- K � Direct Mail<br/>
136
  L - Other<br/>
137
  * </p>
138
  * @param string $value
139
  */
140
  public function setCustomerUsageType($value) { $this->CustomerUsageType = $value; return $this; } //string
141
-
142
  /**
143
  * Enter description here...
144
  *
145
- * @param string $value
146
  */
147
- public function setBatchCode($value) { $this->BatchCode = $value; return $this; } //string
148
-
149
  /**
150
- * The quantity represented by this line.
151
  *
152
- * @param string $value
153
  */
154
  public function setQty($value) { $this->Qty = $value; return $this; } //decimal
155
-
156
  /**
157
- * The total amount for this line item (Qty * UnitPrice).
158
  *
159
- * @param string $value
160
  */
161
- public function setAmount($value) { $this->Amount = $value; return $this; } //decimal // TotalAmmount
162
-
163
  /**
164
- * TaxOverride for the document at line level.
165
  *
166
- * @param string $value
167
  */
168
  public function setTaxOverride($value) { $this->TaxOverride = $value; return $this; } //decimal
169
-
170
  /**
171
- * True if the document discount should be applied to this line
172
  *
173
- * @param string $value
174
  */
175
  public function setDiscounted( $value) { $this->Discounted = ($value ? true : false); return $this; } //boolean is discount applied to this item
176
-
177
  /**
178
  * Sets the Address used as the "Ship From" location for a specific line item.
179
  *
180
- * @param string $value
181
  */
182
  public function setOriginAddress(&$value) { $this->OriginAddress = $value; return $this; } //Address
183
-
184
  /**
185
- * Sets the Address used as the "Ship To" location for a specific line item.
186
  *
187
- * @param string $value
188
  */
189
  public function setDestinationAddress(&$value) { $this->DestinationAddress = $value; return $this; } //Address
190
-
191
  /**
192
  * True if tax is included in the line.
193
- * @param boolean
194
  */
195
  public function setTaxIncluded($value)
196
  {
197
  $this->TaxIncluded=$value;
198
  }
199
-
200
  /**
201
  * True if tax is included in the line.
202
- * @return boolean
203
  */
204
  public function getTaxIncluded($value)
205
  {
@@ -223,23 +223,23 @@ class Line
223
  {
224
  return $this->BusinessIdentificationNo;
225
  }
226
-
227
  public function registerAddressesIn(&$getTaxRequest)
228
  {
229
  if(is_null($this->OriginAddress))
230
  {
231
  $this->OriginAddress = $getTaxRequest->getOriginAddress();
232
-
233
  }
234
  if(is_null($this->DestinationAddress))
235
  {
236
  $this->DestinationAddress = $getTaxRequest->getDestinationAddress();
237
-
238
  }
239
  $this->OriginCode = $getTaxRequest->registerAddress($this->OriginAddress);
240
  $this->DestinationCode = $getTaxRequest->registerAddress($this->DestinationAddress);
241
  }
242
-
243
  public function postFetchWithAddresses($addresses)
244
  {
245
  $this->OriginAddress = $addresses[$this->OriginCode];
@@ -252,8 +252,8 @@ class Line
252
  * @access public
253
  * @return string
254
  */
255
-
256
-
257
  public function getNo () { return $this->No; } //string // line Number of invoice
258
  public function getItemCode() { return $this->ItemCode; } //string
259
  public function getDescription() { return $this->Description; } //string
@@ -264,22 +264,19 @@ class Line
264
  public function getExemptionNo() { return $this->ExemptionNo; } //string //zero tax will result if filled in
265
  public function getCustomerUsageType() { return $this->CustomerUsageType; } //string
266
  public function getBatchCode() { return $this->BatchCode; } //string
267
-
268
  public function getQty() { return $this->Qty; } //decimal
269
- public function getAmount() { return $this->Amount; } //decimal // TotalAmmount
270
  public function getTaxOverride() { return $this->TaxOverride; } //decimal
271
-
272
  public function getDiscounted() { return $this->Discounted; } //boolean is discount applied to this item
273
-
274
-
275
  public function getOriginAddress() { return $this->OriginAddress; } //Address
276
  public function getDestinationAddress() { return $this->DestinationAddress; } //Address
277
 
278
-
279
 
280
  /**#@-*/
281
 
282
  }
283
-
284
-
285
- ?>
4
  */
5
 
6
  /**
7
+ * A single line within a document containing data used for calculating tax.
8
  *
9
  * @see GetTaxRequest
10
+ *
11
  * @author Avalara
12
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  * @package Tax
14
  */
15
+
16
  class Line
17
  {
18
  private $No; //string // line Number of invoice
22
  private $Description; //string
23
  private $TaxCode; //string
24
  private $Qty; //decimal
25
+ private $Amount; //decimal // TotalAmmount
26
  private $Discounted; //boolean is discount applied to this item
27
  private $RevAcct; //string
28
  private $Ref1; //string
30
  private $ExemptionNo; //string //zero tax will result if filled in
31
  private $CustomerUsageType; //string
32
  private $BatchCode; //string
33
+
34
  private $TaxOverride; //TaxOverride
35
  private $OriginAddress; //Address
36
  private $DestinationAddress; //Address
45
  $this->Qty=$qty;
46
  $this->Amount=$amount;
47
 
48
+
49
  $this->Discounted=false;
 
 
 
 
50
 
51
+
52
+ }
53
+
54
+
55
+ /*
56
  * Mutator
57
  * @access public
58
  * @param integer
59
  */
60
+
61
  /**
62
  * Line Number.
63
  *
64
+ * @param string $value
65
  */
66
  public function setNo($value) { $this->No = $value; return $this; } //string // line Number of invoice
67
+
68
  /**
69
  * Item Code (SKU)
70
  *
71
+ * @param string $value
72
  */
73
  public function setItemCode($value) { $this->ItemCode = $value; return $this; } //string
74
+
75
  /**
76
  * Sets the description which defines the description for the product or item.
77
  *
78
+ * @param string $value
79
  */
80
  public function setDescription($value) { $this->Description = $value; return $this; } //string
81
+
82
  /**
83
  * System or Custom Tax Code.
84
  *
85
+ * @param string $value
86
  */
87
  public function setTaxCode($value) { $this->TaxCode = $value; return $this; } //string
88
+
89
  /**
90
  * Revenue Account.
91
  *
92
+ * @param string $value
93
  */
94
  public function setRevAcct($value) { $this->RevAcct = $value; return $this; } //string
95
+
96
  /**
97
  * Client specific reference field.
98
  *
99
+ * @param string $value
100
  */
101
  public function setRef1($value) { $this->Ref1 = $value; return $this; } //string
102
+
103
  /**
104
  * Client specific reference field.
105
  *
106
+ * @param string $value
107
  */
108
  public function setRef2($value) { $this->Ref2 = $value; return $this; } //string
109
+
110
  /**
111
+ * Exemption number for this line
112
  *
113
+ * @param string $value
114
  */
115
  public function setExemptionNo($value) { $this->ExemptionNo = $value; return $this; } //string //zero tax will result if filled in
116
+
117
  /**
118
  * The client application customer or usage type.
119
  * <p>
120
+ * This is used to determine the exempt status of the transaction based on the exemption tax rules for the
121
  * jurisdictions involved. This may also be set at the line level.
122
  * </p>
123
  * <p>
124
  * The standard values for the CustomerUsageType (A-L).<br/>
125
+ A � Federal Government<br/>
126
+ B � State/Local Govt.<br/>
127
+ C � Tribal Government<br/>
128
+ D � Foreign Diplomat<br/>
129
+ E � Charitable Organization<br/>
130
+ F � Religious/Education<br/>
131
+ G � Resale<br/>
132
+ H � Agricultural Production<br/>
133
+ I � Industrial Prod/Mfg.<br/>
134
+ J � Direct Pay Permit<br/>
135
+ K � Direct Mail<br/>
136
  L - Other<br/>
137
  * </p>
138
  * @param string $value
139
  */
140
  public function setCustomerUsageType($value) { $this->CustomerUsageType = $value; return $this; } //string
141
+
142
  /**
143
  * Enter description here...
144
  *
145
+ * @param string $value
146
  */
147
+ public function setBatchCode($value) { $this->BatchCode = $value; return $this; } //string
148
+
149
  /**
150
+ * The quantity represented by this line.
151
  *
152
+ * @param string $value
153
  */
154
  public function setQty($value) { $this->Qty = $value; return $this; } //decimal
155
+
156
  /**
157
+ * The total amount for this line item (Qty * UnitPrice).
158
  *
159
+ * @param string $value
160
  */
161
+ public function setAmount($value) { $this->Amount = $value; return $this; } //decimal // TotalAmmount
162
+
163
  /**
164
+ * TaxOverride for the document at line level.
165
  *
166
+ * @param string $value
167
  */
168
  public function setTaxOverride($value) { $this->TaxOverride = $value; return $this; } //decimal
169
+
170
  /**
171
+ * True if the document discount should be applied to this line
172
  *
173
+ * @param string $value
174
  */
175
  public function setDiscounted( $value) { $this->Discounted = ($value ? true : false); return $this; } //boolean is discount applied to this item
176
+
177
  /**
178
  * Sets the Address used as the "Ship From" location for a specific line item.
179
  *
180
+ * @param string $value
181
  */
182
  public function setOriginAddress(&$value) { $this->OriginAddress = $value; return $this; } //Address
183
+
184
  /**
185
+ * Sets the Address used as the "Ship To" location for a specific line item.
186
  *
187
+ * @param string $value
188
  */
189
  public function setDestinationAddress(&$value) { $this->DestinationAddress = $value; return $this; } //Address
190
+
191
  /**
192
  * True if tax is included in the line.
193
+ * @param boolean
194
  */
195
  public function setTaxIncluded($value)
196
  {
197
  $this->TaxIncluded=$value;
198
  }
199
+
200
  /**
201
  * True if tax is included in the line.
202
+ * @return boolean
203
  */
204
  public function getTaxIncluded($value)
205
  {
223
  {
224
  return $this->BusinessIdentificationNo;
225
  }
226
+
227
  public function registerAddressesIn(&$getTaxRequest)
228
  {
229
  if(is_null($this->OriginAddress))
230
  {
231
  $this->OriginAddress = $getTaxRequest->getOriginAddress();
232
+
233
  }
234
  if(is_null($this->DestinationAddress))
235
  {
236
  $this->DestinationAddress = $getTaxRequest->getDestinationAddress();
237
+
238
  }
239
  $this->OriginCode = $getTaxRequest->registerAddress($this->OriginAddress);
240
  $this->DestinationCode = $getTaxRequest->registerAddress($this->DestinationAddress);
241
  }
242
+
243
  public function postFetchWithAddresses($addresses)
244
  {
245
  $this->OriginAddress = $addresses[$this->OriginCode];
252
  * @access public
253
  * @return string
254
  */
255
+
256
+
257
  public function getNo () { return $this->No; } //string // line Number of invoice
258
  public function getItemCode() { return $this->ItemCode; } //string
259
  public function getDescription() { return $this->Description; } //string
264
  public function getExemptionNo() { return $this->ExemptionNo; } //string //zero tax will result if filled in
265
  public function getCustomerUsageType() { return $this->CustomerUsageType; } //string
266
  public function getBatchCode() { return $this->BatchCode; } //string
267
+
268
  public function getQty() { return $this->Qty; } //decimal
269
+ public function getAmount() { return $this->Amount; } //decimal // TotalAmmount
270
  public function getTaxOverride() { return $this->TaxOverride; } //decimal
271
+
272
  public function getDiscounted() { return $this->Discounted; } //boolean is discount applied to this item
273
+
274
+
275
  public function getOriginAddress() { return $this->OriginAddress; } //Address
276
  public function getDestinationAddress() { return $this->DestinationAddress; } //Address
277
 
278
+
279
 
280
  /**#@-*/
281
 
282
  }
 
 
 
lib/AvaTax/classes/Message.class.php CHANGED
@@ -9,7 +9,7 @@
9
  *
10
  * @package Address
11
  * @author Avalara
12
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  */
14
 
15
  class Message
@@ -21,56 +21,56 @@ class Message
21
  private $Severity;
22
  private $Source;
23
  private $Name;
24
-
25
  /**
26
- * Gets the concise summary of the message.
27
  *
28
  * @return string
29
- */
30
  public function getSummary() { return $this->Summary; }
31
-
32
  /**
33
- * Gets the details of the message.
34
  *
35
  * @return string
36
  */
37
  public function getDetails() { return $this->Details; }
38
-
39
  /**
40
- *Gets the URL to help page for this message.
41
  *
42
  * @return unknown
43
  */
44
  public function getHelpLink() { return $this->HelpLink; }
45
-
46
  /**
47
- * Gets the item the message refers to, if applicable. Used to indicate a missing or incorrect value.
48
  *
49
  * @return unknown
50
  */
51
  public function getRefersTo() { return $this->RefersTo; }
52
-
53
  /**
54
- * Gets the Severity Level of the message.
55
  *
56
  * @return unknown
57
  */
58
  public function getSeverity() { return $this->Severity; }
59
-
60
  /**
61
  * Gets the source of the message.
62
  *
63
  * @return unknown
64
  */
65
  public function getSource() { return $this->Source; }
66
-
67
  /**
68
- * Gets the name of the message.
69
  *
70
  * @return unknown
71
  */
72
  public function getName() { return $this->Name; }
73
-
74
  // mutators
75
  public function setSummary($value) { $this->Summary = $value; return $this; }
76
  public function setDetails($value) { $this->Details = $value; return $this; }
@@ -79,7 +79,5 @@ class Message
79
  public function setSeverity($value) { SeverityLevel::Validate($value); $this->Severity = $value; return $this; }
80
  public function setSource($value) { $this->Source = $value; return $this; }
81
  public function setName($value) { $this->Name = $value; return $this; }
82
-
83
- }
84
 
85
- ?>
9
  *
10
  * @package Address
11
  * @author Avalara
12
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  */
14
 
15
  class Message
21
  private $Severity;
22
  private $Source;
23
  private $Name;
24
+
25
  /**
26
+ * Gets the concise summary of the message.
27
  *
28
  * @return string
29
+ */
30
  public function getSummary() { return $this->Summary; }
31
+
32
  /**
33
+ * Gets the details of the message.
34
  *
35
  * @return string
36
  */
37
  public function getDetails() { return $this->Details; }
38
+
39
  /**
40
+ *Gets the URL to help page for this message.
41
  *
42
  * @return unknown
43
  */
44
  public function getHelpLink() { return $this->HelpLink; }
45
+
46
  /**
47
+ * Gets the item the message refers to, if applicable. Used to indicate a missing or incorrect value.
48
  *
49
  * @return unknown
50
  */
51
  public function getRefersTo() { return $this->RefersTo; }
52
+
53
  /**
54
+ * Gets the Severity Level of the message.
55
  *
56
  * @return unknown
57
  */
58
  public function getSeverity() { return $this->Severity; }
59
+
60
  /**
61
  * Gets the source of the message.
62
  *
63
  * @return unknown
64
  */
65
  public function getSource() { return $this->Source; }
66
+
67
  /**
68
+ * Gets the name of the message.
69
  *
70
  * @return unknown
71
  */
72
  public function getName() { return $this->Name; }
73
+
74
  // mutators
75
  public function setSummary($value) { $this->Summary = $value; return $this; }
76
  public function setDetails($value) { $this->Details = $value; return $this; }
79
  public function setSeverity($value) { SeverityLevel::Validate($value); $this->Severity = $value; return $this; }
80
  public function setSource($value) { $this->Source = $value; return $this; }
81
  public function setName($value) { $this->Name = $value; return $this; }
 
 
82
 
83
+ }
lib/AvaTax/classes/PingResult.class.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * PingResult.class.php
4
  */
5
-
6
  /**
7
  * Result information returned from the {@link AddressServiceSoap}'s
8
  * {@link AddressServiceSoap#ping} method and the {@link TaxServiceSoap}'s
@@ -17,7 +17,7 @@
17
  * </pre>
18
  *
19
  * @author Avalara
20
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
21
  * @package Base
22
  */
23
 
@@ -29,7 +29,7 @@ class PingResult //extends BaseResult
29
  * @var string
30
  */
31
  private $Version;
32
-
33
  /**
34
  * Method returning version string of the pinged service.
35
  * @return string
@@ -70,5 +70,3 @@ class PingResult //extends BaseResult
70
 
71
 
72
  }
73
-
74
- ?>
2
  /**
3
  * PingResult.class.php
4
  */
5
+
6
  /**
7
  * Result information returned from the {@link AddressServiceSoap}'s
8
  * {@link AddressServiceSoap#ping} method and the {@link TaxServiceSoap}'s
17
  * </pre>
18
  *
19
  * @author Avalara
20
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
21
  * @package Base
22
  */
23
 
29
  * @var string
30
  */
31
  private $Version;
32
+
33
  /**
34
  * Method returning version string of the pinged service.
35
  * @return string
70
 
71
 
72
  }
 
 
lib/AvaTax/classes/PostTaxRequest.class.php CHANGED
@@ -6,79 +6,74 @@
6
  /**
7
  * Data to pass to {@link TaxServiceSoap#commitTax}.
8
  * <p>
9
- * The request must specify all of CompanyCode, DocCode, and DocType in order to uniquely identify the document.
10
  * </p>
11
  *
12
  * @see PostTaxResult
13
- *
14
  * @author Avalara
15
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
16
  * @package Tax
17
  */
18
-
19
  class PostTaxRequest extends TaxRequest
20
  {
21
  private $DocDate; //date
22
  private $TotalAmount; // decimal
23
  private $TotalTax; // decimal
24
- private $Commit=false; // boolean
25
  private $NewDocCode; //string
26
-
27
-
28
  public function __construct()
29
  {
30
- parent::__construct();
31
-
32
-
33
  }
34
-
35
  public function getDocDate() { return $this->DocDate; }
36
  public function getTotalAmount() { return $this->TotalAmount; }
37
  public function getTotalTax() { return $this->TotalTax; }
38
  public function getCommit() { return $this->Commit; }
39
  public function getNewDocCode() { return $this->NewDocCode; }
40
-
41
-
42
  /**
43
- * DocDate should be in the format yyyy-mm-dd
44
  *
45
- * @param date $value
46
  */
47
  public function setDocDate($value) { $this->DocDate = $value; return $this; }
48
-
49
  /**
50
- *The total amount (not including tax) for the document.
51
  *
52
- * @param decimal $value
53
  */
54
  public function setTotalAmount($value) { $this->TotalAmount = $value; return $this; }
55
-
56
  /**
57
- * The total tax for the document.
58
  *
59
- * @param decimal $value
60
  */
61
  public function setTotalTax($value) { $this->TotalTax = $value; return $this; }
62
-
63
  /**
64
- * If this is set to True, AvaTax will Post and Commit the document in one call.
65
- * A very useful feature if you want to Post/Commit the document in one call this avoides one round trip to AvaTax server.
66
  *
67
- * @param string $value
68
  */
69
  public function setCommit($value) { $this->Commit = ($value ? true : false); return $this; }
70
-
71
  /**
72
- * New Document Code for the document.
73
- * As on this version of SDK DocCode can be changed during post using NewDocCode.
74
-
75
- * @param string $value
76
  */
77
  public function setNewDocCode($value) { $this->NewDocCode = $value; }
78
-
79
- }
80
-
81
-
82
-
83
 
84
- ?>
6
  /**
7
  * Data to pass to {@link TaxServiceSoap#commitTax}.
8
  * <p>
9
+ * The request must specify all of CompanyCode, DocCode, and DocType in order to uniquely identify the document.
10
  * </p>
11
  *
12
  * @see PostTaxResult
13
+ *
14
  * @author Avalara
15
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
16
  * @package Tax
17
  */
18
+
19
  class PostTaxRequest extends TaxRequest
20
  {
21
  private $DocDate; //date
22
  private $TotalAmount; // decimal
23
  private $TotalTax; // decimal
24
+ private $Commit=false; // boolean
25
  private $NewDocCode; //string
26
+
27
+
28
  public function __construct()
29
  {
30
+ parent::__construct();
31
+
32
+
33
  }
34
+
35
  public function getDocDate() { return $this->DocDate; }
36
  public function getTotalAmount() { return $this->TotalAmount; }
37
  public function getTotalTax() { return $this->TotalTax; }
38
  public function getCommit() { return $this->Commit; }
39
  public function getNewDocCode() { return $this->NewDocCode; }
40
+
41
+
42
  /**
43
+ * DocDate should be in the format yyyy-mm-dd
44
  *
45
+ * @param date $value
46
  */
47
  public function setDocDate($value) { $this->DocDate = $value; return $this; }
48
+
49
  /**
50
+ *The total amount (not including tax) for the document.
51
  *
52
+ * @param decimal $value
53
  */
54
  public function setTotalAmount($value) { $this->TotalAmount = $value; return $this; }
55
+
56
  /**
57
+ * The total tax for the document.
58
  *
59
+ * @param decimal $value
60
  */
61
  public function setTotalTax($value) { $this->TotalTax = $value; return $this; }
62
+
63
  /**
64
+ * If this is set to True, AvaTax will Post and Commit the document in one call.
65
+ * A very useful feature if you want to Post/Commit the document in one call this avoides one round trip to AvaTax server.
66
  *
67
+ * @param string $value
68
  */
69
  public function setCommit($value) { $this->Commit = ($value ? true : false); return $this; }
70
+
71
  /**
72
+ * New Document Code for the document.
73
+ * As on this version of SDK DocCode can be changed during post using NewDocCode.
74
+
75
+ * @param string $value
76
  */
77
  public function setNewDocCode($value) { $this->NewDocCode = $value; }
 
 
 
 
 
78
 
79
+ }
lib/AvaTax/classes/PostTaxResult.class.php CHANGED
@@ -7,23 +7,23 @@
7
  * Result data returned from {@link TaxServiceSoap#postTax}.
8
  *
9
  * @see PostTaxRequest
10
- *
11
  * @author Avalara
12
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  * @package Tax
14
  */
15
 
16
  class PostTaxResult //extends BaseResult
17
  {
18
-
19
-
20
  // BaseResult innards - work around a bug in SoapClient
21
 
22
  /**
23
  * @var string
24
  */
25
  private $TransactionId;
26
-
27
  private $DocId;
28
  /**
29
  * @var string must be one of the values defined in {@link SeverityLevel}.
@@ -39,7 +39,7 @@ class PostTaxResult //extends BaseResult
39
  * @return string
40
  */
41
  public function getTransactionId() { return $this->TransactionId; }
42
-
43
  public function getDocId() { return $this->DocId; }
44
  /**
45
  * Accessor
@@ -55,4 +55,3 @@ class PostTaxResult //extends BaseResult
55
 
56
  }
57
 
58
- ?>
7
  * Result data returned from {@link TaxServiceSoap#postTax}.
8
  *
9
  * @see PostTaxRequest
10
+ *
11
  * @author Avalara
12
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  * @package Tax
14
  */
15
 
16
  class PostTaxResult //extends BaseResult
17
  {
18
+
19
+
20
  // BaseResult innards - work around a bug in SoapClient
21
 
22
  /**
23
  * @var string
24
  */
25
  private $TransactionId;
26
+
27
  private $DocId;
28
  /**
29
  * @var string must be one of the values defined in {@link SeverityLevel}.
39
  * @return string
40
  */
41
  public function getTransactionId() { return $this->TransactionId; }
42
+
43
  public function getDocId() { return $this->DocId; }
44
  /**
45
  * Accessor
55
 
56
  }
57
 
 
lib/AvaTax/classes/ReconcileTaxHistoryRequest.class.php CHANGED
@@ -6,9 +6,9 @@
6
  /**
7
  * Data to pass to {@link TaxServiceSoap#reconcileTaxHistory(ReconcileTaxHistoryRequest)}
8
  * @see ReconcileTaxHistoryResult
9
- *
10
  * @author Avalara
11
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package Tax
13
  */
14
 
@@ -22,63 +22,63 @@ class ReconcileTaxHistoryRequest// extends TaxRequest
22
  private $DocType; // DocType
23
  private $LastDocCode; // string
24
  private $PageSize; // int
25
-
26
  private $Reconciled=true;
27
-
28
  public function __construct()
29
- {
30
  //parent::__construct();
31
  $this->EndDate = date("Y-m-d");
32
  $this->DocStatus =DocStatus::$Any;
33
-
34
  }
35
-
36
 
37
-
 
38
  public function getCompanyCode() { return $this->CompanyCode;}
39
-
40
-
41
  public function getstartDate() { return $this->StartDate; }
42
  public function getEndDate() { return $this->EndDate; }
43
  public function getDocStatus() { return $this->DocStatus; }
44
-
45
  /**
46
- * Sets the client application company reference code.
47
  *
48
- * @param string $value
49
  */
50
  public function setCompanyCode($value) { $this->CompanyCode = $value; return $this; }
51
-
52
-
53
-
54
  /**
55
- * Set this to retrieve data FROM a specific date.
56
  *
57
- * @param date $value
58
  */
59
  public function setStartDate($value) { $this->StartDate = $value; return $this; }
60
-
61
  /**
62
- * Set this to retrieve data TO a specific date.
63
  *
64
- * @param date $value
65
  */
66
  public function setEndDate($value) { $this->EndDate = $value; return $this; }
67
-
68
  /**
69
- * Set this to retrieve data with a specific DocStatus.
70
  *
71
- * @param string $value
72
  */
73
  public function setDocStatus($value) { DocStatus::Validate($value); $this->DocStatus = $value; return $this; }
74
-
75
-
76
  public function setDocType($value){$this->DocType=$value;} // DocType
77
  public function getDocType(){return $this->DocType;} // DocType
78
 
79
  public function setLastDocCode($value){$this->LastDocCode=$value;} // string
80
  public function getLastDocCode(){return $this->LastDocCode;} // string
81
-
82
  public function setLastDocId($value){$this->LastDocId=$value;} // string
83
  public function getLastDocId(){return $this->LastDocId;} // string
84
 
@@ -87,5 +87,3 @@ class ReconcileTaxHistoryRequest// extends TaxRequest
87
 
88
 
89
  }
90
-
91
- ?>
6
  /**
7
  * Data to pass to {@link TaxServiceSoap#reconcileTaxHistory(ReconcileTaxHistoryRequest)}
8
  * @see ReconcileTaxHistoryResult
9
+ *
10
  * @author Avalara
11
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package Tax
13
  */
14
 
22
  private $DocType; // DocType
23
  private $LastDocCode; // string
24
  private $PageSize; // int
25
+
26
  private $Reconciled=true;
27
+
28
  public function __construct()
29
+ {
30
  //parent::__construct();
31
  $this->EndDate = date("Y-m-d");
32
  $this->DocStatus =DocStatus::$Any;
33
+
34
  }
 
35
 
36
+
37
+
38
  public function getCompanyCode() { return $this->CompanyCode;}
39
+
40
+
41
  public function getstartDate() { return $this->StartDate; }
42
  public function getEndDate() { return $this->EndDate; }
43
  public function getDocStatus() { return $this->DocStatus; }
44
+
45
  /**
46
+ * Sets the client application company reference code.
47
  *
48
+ * @param string $value
49
  */
50
  public function setCompanyCode($value) { $this->CompanyCode = $value; return $this; }
51
+
52
+
53
+
54
  /**
55
+ * Set this to retrieve data FROM a specific date.
56
  *
57
+ * @param date $value
58
  */
59
  public function setStartDate($value) { $this->StartDate = $value; return $this; }
60
+
61
  /**
62
+ * Set this to retrieve data TO a specific date.
63
  *
64
+ * @param date $value
65
  */
66
  public function setEndDate($value) { $this->EndDate = $value; return $this; }
67
+
68
  /**
69
+ * Set this to retrieve data with a specific DocStatus.
70
  *
71
+ * @param string $value
72
  */
73
  public function setDocStatus($value) { DocStatus::Validate($value); $this->DocStatus = $value; return $this; }
74
+
75
+
76
  public function setDocType($value){$this->DocType=$value;} // DocType
77
  public function getDocType(){return $this->DocType;} // DocType
78
 
79
  public function setLastDocCode($value){$this->LastDocCode=$value;} // string
80
  public function getLastDocCode(){return $this->LastDocCode;} // string
81
+
82
  public function setLastDocId($value){$this->LastDocId=$value;} // string
83
  public function getLastDocId(){return $this->LastDocId;} // string
84
 
87
 
88
 
89
  }
 
 
lib/AvaTax/classes/ReconcileTaxHistoryResult.class.php CHANGED
@@ -6,20 +6,20 @@
6
  /**
7
  * Result data returned from {@link TaxServiceSoap#reconcileTaxHistory}.
8
  * @see ReconcileTaxHistoryRequest
9
- *
10
  * @author Avalara
11
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package Tax
13
  */
14
 
15
  class ReconcileTaxHistoryResult //extends SearchTaxHistoryResult
16
  {
17
  // SearchTaxHistoryResult innards - work around a bug in SoapClient
18
-
19
  public $GetTaxResults; // array of GetTaxResult
20
  private $RecordCount; // int
21
  private $LastDocCode; //string
22
-
23
 
24
 
25
  /**
@@ -55,13 +55,13 @@ class ReconcileTaxHistoryResult //extends SearchTaxHistoryResult
55
  }
56
  else
57
  {
58
- return null;
59
  }
60
  }
61
-
62
  public function setRecordCount($value){$this->RecordCount=$value;} // int
63
  public function getRecordCount(){return $this->RecordCount;} // int
64
-
65
  public function setLastDocCode($value)
66
  {
67
  $this->LastDocCode=$value;
@@ -71,8 +71,8 @@ class ReconcileTaxHistoryResult //extends SearchTaxHistoryResult
71
  return $this->LastDocCode;
72
  }
73
 
74
-
75
-
76
  // BaseResult innards - work around a bug in SoapClient
77
 
78
  /**
@@ -105,7 +105,5 @@ class ReconcileTaxHistoryResult //extends SearchTaxHistoryResult
105
  public function getMessages() { return EnsureIsArray($this->Messages->Message); }
106
 
107
 
108
-
109
- }
110
 
111
- ?>
6
  /**
7
  * Result data returned from {@link TaxServiceSoap#reconcileTaxHistory}.
8
  * @see ReconcileTaxHistoryRequest
9
+ *
10
  * @author Avalara
11
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
12
  * @package Tax
13
  */
14
 
15
  class ReconcileTaxHistoryResult //extends SearchTaxHistoryResult
16
  {
17
  // SearchTaxHistoryResult innards - work around a bug in SoapClient
18
+
19
  public $GetTaxResults; // array of GetTaxResult
20
  private $RecordCount; // int
21
  private $LastDocCode; //string
22
+
23
 
24
 
25
  /**
55
  }
56
  else
57
  {
58
+ return null;
59
  }
60
  }
61
+
62
  public function setRecordCount($value){$this->RecordCount=$value;} // int
63
  public function getRecordCount(){return $this->RecordCount;} // int
64
+
65
  public function setLastDocCode($value)
66
  {
67
  $this->LastDocCode=$value;
71
  return $this->LastDocCode;
72
  }
73
 
74
+
75
+
76
  // BaseResult innards - work around a bug in SoapClient
77
 
78
  /**
105
  public function getMessages() { return EnsureIsArray($this->Messages->Message); }
106
 
107
 
 
 
108
 
109
+ }
lib/AvaTax/classes/SearchTaxHistoryResult.class.php CHANGED
@@ -8,9 +8,9 @@
8
  * This class encapsulates the data and methods used by {@link ReconcileTaxHistoryResult}.
9
  *
10
  * @see ReconcileTaxHistoryRequest
11
- *
12
  * @author Avalara
13
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
14
  * @package Tax
15
  */
16
 
@@ -46,7 +46,7 @@ class SearchTaxHistoryResult //extends BaseResult
46
  */
47
 
48
  public function getTaxResults() { return EnsureIsArray($this->GetTaxResults->GetTaxResult); }
49
-
50
  /**
51
  * Indicates the last Document Code ({@link GetTaxResult#getDocId}) the results list.
52
  * <p>
@@ -63,7 +63,7 @@ class SearchTaxHistoryResult //extends BaseResult
63
  */
64
 
65
  public function getLastDocId() { return $this->LastDocId; }
66
-
67
  // BaseResult innards - work around a bug in SoapClient
68
 
69
  /**
@@ -98,5 +98,3 @@ class SearchTaxHistoryResult //extends BaseResult
98
 
99
 
100
  }
101
-
102
- ?>
8
  * This class encapsulates the data and methods used by {@link ReconcileTaxHistoryResult}.
9
  *
10
  * @see ReconcileTaxHistoryRequest
11
+ *
12
  * @author Avalara
13
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
14
  * @package Tax
15
  */
16
 
46
  */
47
 
48
  public function getTaxResults() { return EnsureIsArray($this->GetTaxResults->GetTaxResult); }
49
+
50
  /**
51
  * Indicates the last Document Code ({@link GetTaxResult#getDocId}) the results list.
52
  * <p>
63
  */
64
 
65
  public function getLastDocId() { return $this->LastDocId; }
66
+
67
  // BaseResult innards - work around a bug in SoapClient
68
 
69
  /**
98
 
99
 
100
  }
 
 
lib/AvaTax/classes/ServiceMode.class.php CHANGED
@@ -2,18 +2,18 @@
2
  /**
3
  * ServiceMode.class.php
4
  */
5
-
6
  /**
7
  * Specifies the ServiceMode.
8
  *
9
  * @see GetTaxRequest, GetTaxHistoryRequest
10
- *
11
  * This is only supported by AvaLocal servers. It provides the ability to controls whether tax is calculated locally or remotely when using an AvaLocal server.
12
  * The default is Automatic which calculates locally unless remote is necessary for non-local addresses
13
- *
14
  * @author Avalara
15
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
16
- * @package Tax
17
  */
18
 
19
  class ServiceMode extends Enum
@@ -33,17 +33,16 @@ class ServiceMode extends Enum
33
  * All lines are calculated by AvaTax remote server.
34
  */
35
  public static $Remote = "Remote";
36
-
37
  public static function Values()
38
  {
39
  return array(
40
  ServiceMode::$Automatic,
41
  ServiceMode::$Local,
42
- ServiceMode::$Remote
43
  );
44
  }
45
-
46
  // Unfortunate boiler plate due to polymorphism issues on static functions
47
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
48
  }
49
- ?>
2
  /**
3
  * ServiceMode.class.php
4
  */
5
+
6
  /**
7
  * Specifies the ServiceMode.
8
  *
9
  * @see GetTaxRequest, GetTaxHistoryRequest
10
+ *
11
  * This is only supported by AvaLocal servers. It provides the ability to controls whether tax is calculated locally or remotely when using an AvaLocal server.
12
  * The default is Automatic which calculates locally unless remote is necessary for non-local addresses
13
+ *
14
  * @author Avalara
15
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
16
+ * @package Tax
17
  */
18
 
19
  class ServiceMode extends Enum
33
  * All lines are calculated by AvaTax remote server.
34
  */
35
  public static $Remote = "Remote";
36
+
37
  public static function Values()
38
  {
39
  return array(
40
  ServiceMode::$Automatic,
41
  ServiceMode::$Local,
42
+ ServiceMode::$Remote
43
  );
44
  }
45
+
46
  // Unfortunate boiler plate due to polymorphism issues on static functions
47
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
48
  }
 
lib/AvaTax/classes/SeverityLevel.class.php CHANGED
@@ -9,18 +9,18 @@
9
  * Defines the constants used to specify SeverityLevel in {@link Message}
10
  *
11
  * @author Avalara
12
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  * @package Address
14
  */
15
-
16
  class SeverityLevel extends Enum
17
  {
18
  public static $Success = 'Success';
19
  public static $Warning = 'Warning';
20
  public static $Error = 'Error';
21
  public static $Exception = 'Exception';
22
-
23
-
24
  public static function Values()
25
  {
26
  return array(
@@ -30,9 +30,7 @@ class SeverityLevel extends Enum
30
  SeverityLevel::$Exception
31
  );
32
  }
33
-
34
  // Unfortunate boiler plate due to polymorphism issues on static functions
35
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
36
  }
37
-
38
- ?>
9
  * Defines the constants used to specify SeverityLevel in {@link Message}
10
  *
11
  * @author Avalara
12
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  * @package Address
14
  */
15
+
16
  class SeverityLevel extends Enum
17
  {
18
  public static $Success = 'Success';
19
  public static $Warning = 'Warning';
20
  public static $Error = 'Error';
21
  public static $Exception = 'Exception';
22
+
23
+
24
  public static function Values()
25
  {
26
  return array(
30
  SeverityLevel::$Exception
31
  );
32
  }
33
+
34
  // Unfortunate boiler plate due to polymorphism issues on static functions
35
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
36
  }
 
 
lib/AvaTax/classes/TaxDetail.class.php CHANGED
@@ -9,52 +9,52 @@
9
  * @see ArrayOfTaxDetail
10
  * @see TaxLine
11
  * @see GetTaxResult
12
- *
13
  * @author Avalara
14
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
15
  * @package Tax
16
  */
17
 
18
  class TaxDetail
19
  {
20
 
21
- private $JurisType; //JurisdictionType
22
- private $JurisCode; //string
23
- private $TaxType; //TaxType
24
-
25
  private $Base; //decimal // See Taxable
26
- private $Taxable; //decimal
27
- private $Rate; //decimal
28
-
29
- private $Tax; //decimal
30
- private $NonTaxable; //decimal
31
- private $Exemption; //decimal
32
- private $JurisName; //string
33
- private $TaxName; //string
34
  private $TaxAuthorityType; // int
35
-
36
  //@author:swetal
37
  //Added new properties to upgrade it to 5.3 interface
38
  private $Country; //string
39
  private $Region; //string
40
  private $TaxCalculated; //decimal
41
  private $TaxGroup; //string
42
-
43
  //Task# 25610
44
  private $StateAssignedNo;
45
-
46
  public function getStateAssignedNo()
47
  {
48
  return $this->StateAssignedNo;
49
  }
50
-
51
-
52
-
53
  /**
54
  * Gets the JurisdictionType.
55
  * <p>
56
- *
57
-
58
  * </p>
59
  * @see JurisdictionType
60
  @see GetTaxResults
@@ -62,7 +62,7 @@ class TaxDetail
62
  */
63
 
64
  public function getJurisType() {return $this->JurisType; }
65
-
66
  /**
67
  * Gets the JurisCode.
68
  * <p>
@@ -93,7 +93,7 @@ class TaxDetail
93
  */
94
 
95
  public function getTaxable() {return $this->Taxable; }
96
-
97
  /**
98
  * Gets the Taxable amount.
99
  * <p>
@@ -125,7 +125,7 @@ class TaxDetail
125
  */
126
 
127
  public function getTax() {return $this->Tax; }
128
-
129
  /**
130
  * Gets the non-taxable amount..
131
  * <p>
@@ -134,7 +134,7 @@ class TaxDetail
134
  @see GetTaxResults
135
  * @return decimal
136
  */
137
-
138
  public function getNonTaxable() {return $this->NonTaxable; }
139
 
140
 
@@ -160,7 +160,7 @@ class TaxDetail
160
 
161
  public function getJurisName() {return $this->JurisName; }
162
  /**
163
- *
164
  * <p>
165
  Gets the taxName value.
166
  It further defines tax and jurisdiction. * </p>
@@ -179,18 +179,12 @@ class TaxDetail
179
  */
180
 
181
  public function getTaxAuthorityType() {return $this->TaxAuthorityType; }
182
-
183
- //@author:swetal
184
- public function getCountry(){ return $this->Country;}
185
- public function getRegion(){ return $this->Region;}
186
- public function getTaxCalculated(){ return $this->TaxCalculated;}
187
- public function getTaxGroup(){ return $this->TaxGroup;}
188
 
189
-
190
- }
 
 
 
191
 
192
-
193
-
194
-
195
 
196
- ?>
9
  * @see ArrayOfTaxDetail
10
  * @see TaxLine
11
  * @see GetTaxResult
12
+ *
13
  * @author Avalara
14
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
15
  * @package Tax
16
  */
17
 
18
  class TaxDetail
19
  {
20
 
21
+ private $JurisType; //JurisdictionType
22
+ private $JurisCode; //string
23
+ private $TaxType; //TaxType
24
+
25
  private $Base; //decimal // See Taxable
26
+ private $Taxable; //decimal
27
+ private $Rate; //decimal
28
+
29
+ private $Tax; //decimal
30
+ private $NonTaxable; //decimal
31
+ private $Exemption; //decimal
32
+ private $JurisName; //string
33
+ private $TaxName; //string
34
  private $TaxAuthorityType; // int
35
+
36
  //@author:swetal
37
  //Added new properties to upgrade it to 5.3 interface
38
  private $Country; //string
39
  private $Region; //string
40
  private $TaxCalculated; //decimal
41
  private $TaxGroup; //string
42
+
43
  //Task# 25610
44
  private $StateAssignedNo;
45
+
46
  public function getStateAssignedNo()
47
  {
48
  return $this->StateAssignedNo;
49
  }
50
+
51
+
52
+
53
  /**
54
  * Gets the JurisdictionType.
55
  * <p>
56
+ *
57
+
58
  * </p>
59
  * @see JurisdictionType
60
  @see GetTaxResults
62
  */
63
 
64
  public function getJurisType() {return $this->JurisType; }
65
+
66
  /**
67
  * Gets the JurisCode.
68
  * <p>
93
  */
94
 
95
  public function getTaxable() {return $this->Taxable; }
96
+
97
  /**
98
  * Gets the Taxable amount.
99
  * <p>
125
  */
126
 
127
  public function getTax() {return $this->Tax; }
128
+
129
  /**
130
  * Gets the non-taxable amount..
131
  * <p>
134
  @see GetTaxResults
135
  * @return decimal
136
  */
137
+
138
  public function getNonTaxable() {return $this->NonTaxable; }
139
 
140
 
160
 
161
  public function getJurisName() {return $this->JurisName; }
162
  /**
163
+ *
164
  * <p>
165
  Gets the taxName value.
166
  It further defines tax and jurisdiction. * </p>
179
  */
180
 
181
  public function getTaxAuthorityType() {return $this->TaxAuthorityType; }
 
 
 
 
 
 
182
 
183
+ //@author:swetal
184
+ public function getCountry(){ return $this->Country;}
185
+ public function getRegion(){ return $this->Region;}
186
+ public function getTaxCalculated(){ return $this->TaxCalculated;}
187
+ public function getTaxGroup(){ return $this->TaxGroup;}
188
 
 
 
 
189
 
190
+ }
lib/AvaTax/classes/TaxLine.class.php CHANGED
@@ -2,103 +2,103 @@
2
  /**
3
  * TaxLine.class.php
4
  */
5
-
6
  /**
7
  * Contains Tax data; Retunded form {@link AddressServiceSoap#getTax};
8
  * Also part of the {@link GetTaxRequest}
9
  * result returned from the {@link TaxServiceSoap#getTax} tax calculation service;
10
- *
11
  * @author Avalara
12
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  * @package Tax
14
  */
15
 
16
  class TaxLine
17
  {
18
 
19
- private $No; //string
20
- private $TaxCode; //string
21
- private $Taxability; //boolean
22
- private $BoundaryLevel; //BoundaryLevel
23
- private $Exemption; //decimal
24
- private $Discount; //decimal
25
- private $Taxable; //decimal
26
- private $Rate; //decimal
27
- private $Tax; //decimal
28
- private $ExemptCertId; //int
29
  private $TaxDetails; //ArrayOfTaxDetail
30
-
31
  //@author:swetal
32
  //added following properties to upgrade to 5.3 interface
33
  private $TaxCalculated; //decimal
34
  private $ReportingDate; //date
35
  private $AccountingMethod;//String
36
-
37
  private $TaxIncluded; //boolean
38
-
39
  /**
40
  * Accessor
41
  * @return string
42
  */
43
- public function getNo() { return $this->No; }
44
-
45
-
46
  /**
47
  * Accessor
48
  * @return string
49
  */
50
- public function getTaxCode() { return $this->TaxCode; }
51
  /**
52
  * Accessor
53
  * @return boolean
54
  */
55
- public function getTaxability() { return $this->Taxability; }
56
  /**
57
  * Accessor
58
  * @see BoundaryLevel
59
  * @return string
60
  */
61
- public function getBoundaryLevel() { return $this->BoundaryLevel; }
62
  /**
63
  * Accessor
64
  * @return decimal
65
  */
66
- public function getExemption() { return $this->Exemption; }
67
  /**
68
  * Accessor
69
  * @return decimal
70
  */
71
- public function getDiscount() { return $this->Discount; }
72
  /**
73
  * Accessor
74
  * @return decimal
75
  */
76
- public function getTaxable() { return $this->Taxable; }
77
  /**
78
  * Accessor
79
  * @return decimal
80
  */
81
- public function getRate() { return $this->Rate; }
82
  /**
83
  * Accessor
84
  * @return string
85
  */
86
  public function getTax() { return $this->Tax; }
87
-
88
 
89
  /**
90
  * Accessor
91
  * @return decimal
92
  */
93
- public function getTaxDetails() { return EnsureIsArray($this->TaxDetails->TaxDetail); }
94
-
95
-
96
  /**
97
  * Accessor
98
  * @return int
99
  */
100
  public function getExemptCertId() { return $this->ExemptCertId; }
101
-
102
  /**
103
  * Accessor
104
  * @return decimal
@@ -106,26 +106,25 @@ class TaxLine
106
  public function getTaxCalculated(){ return $this->TaxCalculated; } //decimalt
107
  public function getReportingDate(){ return $this->ReportingDate;} //date
108
  public function getAccountingMethod(){ return $this->AccountingMethod;}//String
109
-
110
  /**
111
  * True if tax is included in the line.
112
- * @param boolean
113
  */
114
  public function setTaxIncluded($value)
115
  {
116
  $this->TaxIncluded=$value;
117
  }
118
-
119
  /**
120
  * True if tax is included in the line.
121
- * @return boolean
122
  */
123
  public function getTaxIncluded()
124
  {
125
  return $this->TaxIncluded;
126
  }
127
-
128
-
129
 
130
  }
131
- ?>
2
  /**
3
  * TaxLine.class.php
4
  */
5
+
6
  /**
7
  * Contains Tax data; Retunded form {@link AddressServiceSoap#getTax};
8
  * Also part of the {@link GetTaxRequest}
9
  * result returned from the {@link TaxServiceSoap#getTax} tax calculation service;
10
+ *
11
  * @author Avalara
12
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
13
  * @package Tax
14
  */
15
 
16
  class TaxLine
17
  {
18
 
19
+ private $No; //string
20
+ private $TaxCode; //string
21
+ private $Taxability; //boolean
22
+ private $BoundaryLevel; //BoundaryLevel
23
+ private $Exemption; //decimal
24
+ private $Discount; //decimal
25
+ private $Taxable; //decimal
26
+ private $Rate; //decimal
27
+ private $Tax; //decimal
28
+ private $ExemptCertId; //int
29
  private $TaxDetails; //ArrayOfTaxDetail
30
+
31
  //@author:swetal
32
  //added following properties to upgrade to 5.3 interface
33
  private $TaxCalculated; //decimal
34
  private $ReportingDate; //date
35
  private $AccountingMethod;//String
36
+
37
  private $TaxIncluded; //boolean
38
+
39
  /**
40
  * Accessor
41
  * @return string
42
  */
43
+ public function getNo() { return $this->No; }
44
+
45
+
46
  /**
47
  * Accessor
48
  * @return string
49
  */
50
+ public function getTaxCode() { return $this->TaxCode; }
51
  /**
52
  * Accessor
53
  * @return boolean
54
  */
55
+ public function getTaxability() { return $this->Taxability; }
56
  /**
57
  * Accessor
58
  * @see BoundaryLevel
59
  * @return string
60
  */
61
+ public function getBoundaryLevel() { return $this->BoundaryLevel; }
62
  /**
63
  * Accessor
64
  * @return decimal
65
  */
66
+ public function getExemption() { return $this->Exemption; }
67
  /**
68
  * Accessor
69
  * @return decimal
70
  */
71
+ public function getDiscount() { return $this->Discount; }
72
  /**
73
  * Accessor
74
  * @return decimal
75
  */
76
+ public function getTaxable() { return $this->Taxable; }
77
  /**
78
  * Accessor
79
  * @return decimal
80
  */
81
+ public function getRate() { return $this->Rate; }
82
  /**
83
  * Accessor
84
  * @return string
85
  */
86
  public function getTax() { return $this->Tax; }
87
+
88
 
89
  /**
90
  * Accessor
91
  * @return decimal
92
  */
93
+ public function getTaxDetails() { return EnsureIsArray($this->TaxDetails->TaxDetail); }
94
+
95
+
96
  /**
97
  * Accessor
98
  * @return int
99
  */
100
  public function getExemptCertId() { return $this->ExemptCertId; }
101
+
102
  /**
103
  * Accessor
104
  * @return decimal
106
  public function getTaxCalculated(){ return $this->TaxCalculated; } //decimalt
107
  public function getReportingDate(){ return $this->ReportingDate;} //date
108
  public function getAccountingMethod(){ return $this->AccountingMethod;}//String
109
+
110
  /**
111
  * True if tax is included in the line.
112
+ * @param boolean
113
  */
114
  public function setTaxIncluded($value)
115
  {
116
  $this->TaxIncluded=$value;
117
  }
118
+
119
  /**
120
  * True if tax is included in the line.
121
+ * @return boolean
122
  */
123
  public function getTaxIncluded()
124
  {
125
  return $this->TaxIncluded;
126
  }
127
+
128
+
129
 
130
  }
 
lib/AvaTax/classes/TaxOverride.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Tax
12
  */
13
 
@@ -17,31 +17,29 @@ class TaxOverride
17
  private $TaxAmount; //decimal
18
  private $TaxDate; //date
19
  private $Reason; //string
20
-
21
-
22
-
23
  public function __construct()
24
  {
25
  $this->TaxAmount=0.0;
26
-
27
  $dateTime=new DateTime();
28
  $dateTime->setDate(1900,01,01);
29
-
30
  $this->TaxDate=$dateTime->format("Y-m-d");
31
  }
32
-
33
  public function setTaxOverrideType($value){ $this->TaxOverrideType=$value; } //TaxOverrideType
34
  public function setTaxAmount($value){$this->TaxAmount=$value;} //decimal
35
  public function setTaxDate($value){$this->TaxDate=$value;} //date
36
  public function setReason($value){$this->Reason=$value;} //string
37
-
38
-
39
  public function getTaxOverrideType(){ return $this->TaxOverrideType; } //TaxOverrideType
40
  public function getTaxAmount(){return $this->TaxAmount;} //decimal
41
  public function getTaxDate(){return $this->TaxDate;} //date
42
  public function getReason(){return $this->Reason;} //string
43
-
44
-
45
- }
46
 
47
- ?>
 
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Tax
12
  */
13
 
17
  private $TaxAmount; //decimal
18
  private $TaxDate; //date
19
  private $Reason; //string
20
+
21
+
22
+
23
  public function __construct()
24
  {
25
  $this->TaxAmount=0.0;
26
+
27
  $dateTime=new DateTime();
28
  $dateTime->setDate(1900,01,01);
29
+
30
  $this->TaxDate=$dateTime->format("Y-m-d");
31
  }
32
+
33
  public function setTaxOverrideType($value){ $this->TaxOverrideType=$value; } //TaxOverrideType
34
  public function setTaxAmount($value){$this->TaxAmount=$value;} //decimal
35
  public function setTaxDate($value){$this->TaxDate=$value;} //date
36
  public function setReason($value){$this->Reason=$value;} //string
37
+
38
+
39
  public function getTaxOverrideType(){ return $this->TaxOverrideType; } //TaxOverrideType
40
  public function getTaxAmount(){return $this->TaxAmount;} //decimal
41
  public function getTaxDate(){return $this->TaxDate;} //date
42
  public function getReason(){return $this->Reason;} //string
 
 
 
43
 
44
+
45
+ }
lib/AvaTax/classes/TaxOverrideType.class.php CHANGED
@@ -4,10 +4,10 @@
4
  */
5
 
6
  /**
7
- *
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Tax
12
  */
13
  class TaxOverrideType
@@ -18,5 +18,3 @@ class TaxOverrideType
18
  public static $TaxDate = "TaxDate";
19
  public static $AccruedTaxAmount = "AccruedTaxAmount";
20
  }
21
-
22
- ?>
4
  */
5
 
6
  /**
7
+ *
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Tax
12
  */
13
  class TaxOverrideType
18
  public static $TaxDate = "TaxDate";
19
  public static $AccruedTaxAmount = "AccruedTaxAmount";
20
  }
 
 
lib/AvaTax/classes/TaxRequest.class.php CHANGED
@@ -8,9 +8,9 @@
8
  * Tax Requests require either a DocId, or CompanyCode, DocType, and DocCode.
9
  *
10
  * @see TaxServiceSoap
11
- *
12
  * @author Avalara
13
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
14
  * @package Tax
15
  */
16
 
@@ -21,7 +21,7 @@ class TaxRequest
21
  * @access public
22
  * @var string
23
  */
24
- protected $CompanyCode;
25
  /**
26
  * Must be one of SalesOrder or SalesInvoice or PurchaseOrder or PurchaseInvoice or ReturnOrder or ReturnInvoice
27
  * Constants defined in DocumentType.
@@ -30,14 +30,14 @@ class TaxRequest
30
  * @access public
31
  * @var string
32
  */
33
- protected $DocType;
34
  /**
35
  * Invoice Number
36
  *
37
  * @access public
38
  * @var string
39
  */
40
- protected $DocCode;
41
 
42
  /**
43
  * A unique document ID.
@@ -48,15 +48,15 @@ class TaxRequest
48
  * @access public
49
  * @var string
50
  */
51
- protected $DocId;
52
-
53
  /**
54
  * Sets the client application company reference code.
55
  * <br>If docId is specified, this is not needed.
56
  *
57
  * @param string
58
  */
59
-
60
  protected $HashCode;
61
 
62
  public function setCompanyCode($value) { $this->CompanyCode = $value; return $this; }
@@ -101,7 +101,7 @@ class TaxRequest
101
  public function setHashCode($value) { $this->HashCode = $value; return $this; }
102
  // Accessors
103
  /**
104
- * Gets the client application company reference code.
105
  *
106
  * @return string
107
  */
@@ -150,14 +150,12 @@ class TaxRequest
150
  */
151
 
152
  public function getDocId() { return $this->DocId; }
153
-
154
  public function __construct()
155
  {
156
  $this->DocType = DocumentType::$SalesOrder; // this is right Document
157
  $this->HashCode= 0;
158
-
159
  }
160
 
161
  }
162
-
163
- ?>
8
  * Tax Requests require either a DocId, or CompanyCode, DocType, and DocCode.
9
  *
10
  * @see TaxServiceSoap
11
+ *
12
  * @author Avalara
13
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
14
  * @package Tax
15
  */
16
 
21
  * @access public
22
  * @var string
23
  */
24
+ protected $CompanyCode;
25
  /**
26
  * Must be one of SalesOrder or SalesInvoice or PurchaseOrder or PurchaseInvoice or ReturnOrder or ReturnInvoice
27
  * Constants defined in DocumentType.
30
  * @access public
31
  * @var string
32
  */
33
+ protected $DocType;
34
  /**
35
  * Invoice Number
36
  *
37
  * @access public
38
  * @var string
39
  */
40
+ protected $DocCode;
41
 
42
  /**
43
  * A unique document ID.
48
  * @access public
49
  * @var string
50
  */
51
+ protected $DocId;
52
+
53
  /**
54
  * Sets the client application company reference code.
55
  * <br>If docId is specified, this is not needed.
56
  *
57
  * @param string
58
  */
59
+
60
  protected $HashCode;
61
 
62
  public function setCompanyCode($value) { $this->CompanyCode = $value; return $this; }
101
  public function setHashCode($value) { $this->HashCode = $value; return $this; }
102
  // Accessors
103
  /**
104
+ * Gets the client application company reference code.
105
  *
106
  * @return string
107
  */
150
  */
151
 
152
  public function getDocId() { return $this->DocId; }
153
+
154
  public function __construct()
155
  {
156
  $this->DocType = DocumentType::$SalesOrder; // this is right Document
157
  $this->HashCode= 0;
158
+
159
  }
160
 
161
  }
 
 
lib/AvaTax/classes/TaxServiceSoap.class.php CHANGED
@@ -5,7 +5,7 @@
5
 
6
  /**
7
  * Proxy interface for the Avalara Tax Web Service. It contains methods that perform remote calls
8
- * to the Avalara Tax Service.
9
  *
10
  * TaxServiceSoap reads its configuration values from static variables defined
11
  * in ATConfig.class.php. This file must be properly configured with your security credentials.
@@ -18,7 +18,7 @@
18
  * </pre>
19
  *
20
  * @author Avalara
21
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
22
  * @package Tax
23
  */
24
 
@@ -54,21 +54,21 @@ class TaxServiceSoap extends AvalaraSoapClient
54
  'ApplyPaymentRequest'=>'ApplyPaymentRequest',
55
  'ApplyPaymentResult'=>'ApplyPaymentResult',
56
  'BaseResult'=>'BaseResult',
57
- 'TaxOverride'=>'TaxOverride'
58
  );
59
-
60
  public function __construct($configurationName = 'Default')
61
  {
62
  $config = new ATConfig($configurationName);
63
-
64
  $this->client = new DynamicSoapClient (
65
  $config->taxWSDL,
66
  array
67
  (
68
- 'location' => $config->url.$config->taxService,
69
  'trace' => $config->trace,
70
  'classmap' => TaxServiceSoap::$classmap
71
- ),
72
  $config
73
  );
74
  }
@@ -100,7 +100,7 @@ public function __construct($configurationName = 'Default')
100
  * Otherwise the request must specify all of {@link PostTaxRequest#getCompanyCode}, see {@link PostTaxRequest#getDocCode}
101
  * and {@link PostTaxRequest#getDocType} in order to uniquely identify the document.
102
  * </p>
103
- *
104
  * @param getTaxHistoryRequest a {@link GetTaxHistoryRequest} object indicating the document for which history should be retrieved.
105
  * @return a {@link GetTaxHistoryResult} object
106
  * @throws SoapFault
@@ -129,11 +129,11 @@ public function __construct($configurationName = 'Default')
129
  * @return a {@link PostTaxResult} object
130
  * @throws SoapFault
131
  */
132
-
133
  /*public com.avalara.avatax.services.tax.PostTaxResult postTax(com.avalara.avatax.services.tax.PostTaxRequest postTaxRequest) throws SoapFault;
134
  */
135
  public function postTax(&$postTaxRequest)
136
- {
137
  return $this->client->PostTax(array('PostTaxRequest'=>$postTaxRequest))->PostTaxResult;
138
  }
139
 
@@ -153,7 +153,7 @@ public function __construct($configurationName = 'Default')
153
  * @return a {@link CommitTaxResult} object
154
  * @throws SoapFault
155
  */
156
-
157
  /*public com.avalara.avatax.services.tax.CommitTaxResult commitTax(com.avalara.avatax.services.tax.CommitTaxRequest commitTaxRequest) throws SoapFault;
158
  */
159
  public function commitTax(&$commitTaxRequest)
@@ -235,7 +235,7 @@ public function __construct($configurationName = 'Default')
235
  * @return a {@link AdjustTaxResult} object
236
  * @throws SoapFault
237
  */
238
-
239
  /*public com.avalara.avatax.services.tax.CommitTaxResult commitTax(com.avalara.avatax.services.tax.CommitTaxRequest commitTaxRequest) throws SoapFault;
240
  */
241
  public function adjustTax(&$adjustTaxRequest)
@@ -246,13 +246,13 @@ public function __construct($configurationName = 'Default')
246
  /**
247
  * Checks authentication of and authorization to one or more
248
  * operations on the service.
249
- *
250
  * This operation allows pre-authorization checking of any
251
  * or all operations. It will return a comma delimited set of
252
  * operation names which will be all or a subset of the requested
253
  * operation names. For security, it will never return operation
254
  * names other than those requested (no phishing allowed).
255
- *
256
  * <b>Example:</b><br>
257
  * <code> isAuthorized("GetTax,PostTax")</code>
258
  *
@@ -261,13 +261,13 @@ public function __construct($configurationName = 'Default')
261
  * @return IsAuthorizedResult
262
  * @throws SoapFault
263
  */
264
-
265
 
266
  public function isAuthorized($operations)
267
  {
268
  return $this->client->IsAuthorized(array('Operations' => $operations))->IsAuthorizedResult;
269
  }
270
-
271
  /**
272
  * Verifies connectivity to the web service and returns version
273
  * information about the service.
@@ -284,20 +284,18 @@ public function __construct($configurationName = 'Default')
284
  {
285
  return $this->client->Ping(array('Message' => $message))->PingResult;
286
  }
287
-
288
  /**
289
- * This method is used to apply a payment to a document for cash basis accounting. Applies a payment date to an existing invoice
290
- * It sets the document PaymentDate and changes the reporting date from the DocDate default. It may be called before or after a document is committed. It should not be used for accrual basis accounting
291
  *
292
  * @param ApplyPaymentRequest $applyPaymentRequest
293
  * @return ApplyPaymentResult
294
  */
295
-
296
  public function applyPayment(&$applyPaymentRequest)
297
- {
298
  return $this->client->ApplyPayment(array('ApplyPaymentRequest' => $applyPaymentRequest))->ApplyPaymentResult;
299
- }
300
 
301
  }
302
-
303
- ?>
5
 
6
  /**
7
  * Proxy interface for the Avalara Tax Web Service. It contains methods that perform remote calls
8
+ * to the Avalara Tax Service.
9
  *
10
  * TaxServiceSoap reads its configuration values from static variables defined
11
  * in ATConfig.class.php. This file must be properly configured with your security credentials.
18
  * </pre>
19
  *
20
  * @author Avalara
21
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
22
  * @package Tax
23
  */
24
 
54
  'ApplyPaymentRequest'=>'ApplyPaymentRequest',
55
  'ApplyPaymentResult'=>'ApplyPaymentResult',
56
  'BaseResult'=>'BaseResult',
57
+ 'TaxOverride'=>'TaxOverride'
58
  );
59
+
60
  public function __construct($configurationName = 'Default')
61
  {
62
  $config = new ATConfig($configurationName);
63
+
64
  $this->client = new DynamicSoapClient (
65
  $config->taxWSDL,
66
  array
67
  (
68
+ 'location' => $config->url.$config->taxService,
69
  'trace' => $config->trace,
70
  'classmap' => TaxServiceSoap::$classmap
71
+ ),
72
  $config
73
  );
74
  }
100
  * Otherwise the request must specify all of {@link PostTaxRequest#getCompanyCode}, see {@link PostTaxRequest#getDocCode}
101
  * and {@link PostTaxRequest#getDocType} in order to uniquely identify the document.
102
  * </p>
103
+ *
104
  * @param getTaxHistoryRequest a {@link GetTaxHistoryRequest} object indicating the document for which history should be retrieved.
105
  * @return a {@link GetTaxHistoryResult} object
106
  * @throws SoapFault
129
  * @return a {@link PostTaxResult} object
130
  * @throws SoapFault
131
  */
132
+
133
  /*public com.avalara.avatax.services.tax.PostTaxResult postTax(com.avalara.avatax.services.tax.PostTaxRequest postTaxRequest) throws SoapFault;
134
  */
135
  public function postTax(&$postTaxRequest)
136
+ {
137
  return $this->client->PostTax(array('PostTaxRequest'=>$postTaxRequest))->PostTaxResult;
138
  }
139
 
153
  * @return a {@link CommitTaxResult} object
154
  * @throws SoapFault
155
  */
156
+
157
  /*public com.avalara.avatax.services.tax.CommitTaxResult commitTax(com.avalara.avatax.services.tax.CommitTaxRequest commitTaxRequest) throws SoapFault;
158
  */
159
  public function commitTax(&$commitTaxRequest)
235
  * @return a {@link AdjustTaxResult} object
236
  * @throws SoapFault
237
  */
238
+
239
  /*public com.avalara.avatax.services.tax.CommitTaxResult commitTax(com.avalara.avatax.services.tax.CommitTaxRequest commitTaxRequest) throws SoapFault;
240
  */
241
  public function adjustTax(&$adjustTaxRequest)
246
  /**
247
  * Checks authentication of and authorization to one or more
248
  * operations on the service.
249
+ *
250
  * This operation allows pre-authorization checking of any
251
  * or all operations. It will return a comma delimited set of
252
  * operation names which will be all or a subset of the requested
253
  * operation names. For security, it will never return operation
254
  * names other than those requested (no phishing allowed).
255
+ *
256
  * <b>Example:</b><br>
257
  * <code> isAuthorized("GetTax,PostTax")</code>
258
  *
261
  * @return IsAuthorizedResult
262
  * @throws SoapFault
263
  */
264
+
265
 
266
  public function isAuthorized($operations)
267
  {
268
  return $this->client->IsAuthorized(array('Operations' => $operations))->IsAuthorizedResult;
269
  }
270
+
271
  /**
272
  * Verifies connectivity to the web service and returns version
273
  * information about the service.
284
  {
285
  return $this->client->Ping(array('Message' => $message))->PingResult;
286
  }
287
+
288
  /**
289
+ * This method is used to apply a payment to a document for cash basis accounting. Applies a payment date to an existing invoice
290
+ * It sets the document PaymentDate and changes the reporting date from the DocDate default. It may be called before or after a document is committed. It should not be used for accrual basis accounting
291
  *
292
  * @param ApplyPaymentRequest $applyPaymentRequest
293
  * @return ApplyPaymentResult
294
  */
295
+
296
  public function applyPayment(&$applyPaymentRequest)
297
+ {
298
  return $this->client->ApplyPayment(array('ApplyPaymentRequest' => $applyPaymentRequest))->ApplyPaymentResult;
299
+ }
300
 
301
  }
 
 
lib/AvaTax/classes/TaxType.class.php CHANGED
@@ -7,7 +7,7 @@
7
  * The Type of the tax.
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Tax
12
  */
13
 
@@ -31,14 +31,10 @@ class TaxType// extends Enum
31
  $TaxType::$ConsumerUse
32
  );
33
  }
34
-
35
  // Unfortunate boiler plate due to polymorphism issues on static functions
36
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
37
-
38
- */
39
-
40
- }
41
 
42
-
43
 
44
- ?>
7
  * The Type of the tax.
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Tax
12
  */
13
 
31
  $TaxType::$ConsumerUse
32
  );
33
  }
34
+
35
  // Unfortunate boiler plate due to polymorphism issues on static functions
36
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
 
 
 
 
37
 
38
+ */
39
 
40
+ }
lib/AvaTax/classes/TextCase.class.php CHANGED
@@ -7,7 +7,7 @@
7
  * The casing to apply to the valid address(es) returned in the validation result.
8
  *
9
  * @author Avalara
10
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Address
12
  */
13
 
@@ -16,7 +16,7 @@ class TextCase extends Enum
16
  public static $Default = 'Default';
17
  public static $Upper = 'Upper';
18
  public static $Mixed = 'Mixed';
19
-
20
  public static function Values()
21
  {
22
  return array(
@@ -29,5 +29,3 @@ class TextCase extends Enum
29
  // Unfortunate boiler plate due to polymorphism issues on static functions
30
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
31
  }
32
-
33
- ?>
7
  * The casing to apply to the valid address(es) returned in the validation result.
8
  *
9
  * @author Avalara
10
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
11
  * @package Address
12
  */
13
 
16
  public static $Default = 'Default';
17
  public static $Upper = 'Upper';
18
  public static $Mixed = 'Mixed';
19
+
20
  public static function Values()
21
  {
22
  return array(
29
  // Unfortunate boiler plate due to polymorphism issues on static functions
30
  public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
31
  }
 
 
lib/AvaTax/classes/ValidAddress.class.php CHANGED
@@ -32,9 +32,9 @@
32
  * </pre>
33
  *
34
  * @see Address
35
- *
36
  * @author Avalara
37
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
38
  * @package Address
39
  */
40
 
@@ -98,7 +98,7 @@ class ValidAddress //extends Address - or it should - SoapClient has issues mapp
98
  * @param Address
99
  * @return boolean
100
  */
101
-
102
  public function equals(&$other)
103
  {
104
  return $this === $other || (
@@ -117,23 +117,23 @@ class ValidAddress //extends Address - or it should - SoapClient has issues mapp
117
  }
118
 
119
 
120
-
121
  /**
122
  * Address line 4.
123
- *
124
  * @return line4 - Address line 4
125
  */
126
 
127
  public function getLine4() { return $this->Line4; }
128
-
129
  /**
130
  * County Name.
131
- *
132
  * @return county - County Name
133
  */
134
 
135
  public function getCounty() { return $this->County; }
136
-
137
  /**
138
  * Federal Information Processing Standards Code (USA).
139
  * <p> This is a unique code representing each geographic combination of state, county, and city.
@@ -158,9 +158,9 @@ class ValidAddress //extends Address - or it should - SoapClient has issues mapp
158
  *
159
  * @return fipsCode
160
  */
161
-
162
  public function getFipsCode() { return $this->FipsCode; }
163
-
164
  /**
165
  * The carrier route associated with the input address (USA).
166
  * <p>The CarrierRoute Property is a 4 character string set
@@ -228,7 +228,7 @@ class ValidAddress //extends Address - or it should - SoapClient has issues mapp
228
  */
229
 
230
  public function getPostNet() { return $this->PostNet; }
231
-
232
  /**
233
  * Address Type - The type of address that was coded
234
  * (PO Box, Rural Route, and so on), using the input address.
@@ -261,12 +261,12 @@ class ValidAddress //extends Address - or it should - SoapClient has issues mapp
261
  * @see AddressType
262
  * @return string
263
  */
264
-
265
  public function getAddressType() { return $this->AddressType; }
266
-
267
  /**
268
  * Gets the latitude value for this ValidAddress.
269
- *
270
  * @return latitude
271
  */
272
 
@@ -274,14 +274,14 @@ class ValidAddress //extends Address - or it should - SoapClient has issues mapp
274
 
275
  /**
276
  * Gets the longitude value for this ValidAddress.
277
- *
278
  * @return longitude
279
  */
280
-
281
  public function getLongitude() { return $this->Longitude; }
282
 
283
  // mutators
284
-
285
  /**#@+
286
  * Mutator
287
  * @access public
@@ -304,25 +304,25 @@ class ValidAddress //extends Address - or it should - SoapClient has issues mapp
304
  * @param integer
305
  * @return Address
306
  */
307
- public function setTaxRegionId($value) { $this->TaxRegionId = $value; return $this; }
308
  /**
309
  * Address line 4.
310
- *
311
  * @param line4 - Address line 4
312
  * @var string
313
  */
314
 
315
  public function setLine4($value) { $this->Line4 = $value; return $this; }
316
-
317
  /**
318
  * County Name.
319
- *
320
  * @param county - County Name
321
  * @var string
322
  */
323
 
324
  public function setCounty($value) { $this->County= $value; return $this; }
325
-
326
  /**
327
  * Federal Information Processing Standards Code (USA).
328
  * <p> This is a unique code representing each geographic combination of state, county, and city.
@@ -348,9 +348,9 @@ class ValidAddress //extends Address - or it should - SoapClient has issues mapp
348
  * @param fipsCode
349
  * @var string
350
  */
351
-
352
  public function setFipsCode($value) { $this->FipsCode= $value; return $this; }
353
-
354
  /**
355
  * The carrier route associated with the input address (USA).
356
  * <p>The CarrierRoute Property is a 4 character string set
@@ -420,7 +420,7 @@ class ValidAddress //extends Address - or it should - SoapClient has issues mapp
420
  */
421
 
422
  public function setPostNet($value) { $this->PostNet= $value; return $this; }
423
-
424
  /**
425
  * Address Type - The type of address that was coded
426
  * (PO Box, Rural Route, and so on), using the input address.
@@ -454,12 +454,12 @@ class ValidAddress //extends Address - or it should - SoapClient has issues mapp
454
  * @param addressType
455
  * @var string
456
  */
457
-
458
  public function setAddressType($value) { $this->AddressType= $value; return $this; }
459
-
460
  /**
461
  * Sets the latitude value for this ValidAddress.
462
- *
463
  * @param latitude
464
  */
465
 
@@ -467,14 +467,12 @@ class ValidAddress //extends Address - or it should - SoapClient has issues mapp
467
 
468
  /**
469
  * Sets the longitude value for this ValidAddress.
470
- *
471
  * @param longitude
472
  */
473
 
474
  public function setLongitude($value) { $this->Longitude= $value; return $this; }
475
-
476
-
477
-
478
- }
479
 
480
- ?>
 
 
32
  * </pre>
33
  *
34
  * @see Address
35
+ *
36
  * @author Avalara
37
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
38
  * @package Address
39
  */
40
 
98
  * @param Address
99
  * @return boolean
100
  */
101
+
102
  public function equals(&$other)
103
  {
104
  return $this === $other || (
117
  }
118
 
119
 
120
+
121
  /**
122
  * Address line 4.
123
+ *
124
  * @return line4 - Address line 4
125
  */
126
 
127
  public function getLine4() { return $this->Line4; }
128
+
129
  /**
130
  * County Name.
131
+ *
132
  * @return county - County Name
133
  */
134
 
135
  public function getCounty() { return $this->County; }
136
+
137
  /**
138
  * Federal Information Processing Standards Code (USA).
139
  * <p> This is a unique code representing each geographic combination of state, county, and city.
158
  *
159
  * @return fipsCode
160
  */
161
+
162
  public function getFipsCode() { return $this->FipsCode; }
163
+
164
  /**
165
  * The carrier route associated with the input address (USA).
166
  * <p>The CarrierRoute Property is a 4 character string set
228
  */
229
 
230
  public function getPostNet() { return $this->PostNet; }
231
+
232
  /**
233
  * Address Type - The type of address that was coded
234
  * (PO Box, Rural Route, and so on), using the input address.
261
  * @see AddressType
262
  * @return string
263
  */
264
+
265
  public function getAddressType() { return $this->AddressType; }
266
+
267
  /**
268
  * Gets the latitude value for this ValidAddress.
269
+ *
270
  * @return latitude
271
  */
272
 
274
 
275
  /**
276
  * Gets the longitude value for this ValidAddress.
277
+ *
278
  * @return longitude
279
  */
280
+
281
  public function getLongitude() { return $this->Longitude; }
282
 
283
  // mutators
284
+
285
  /**#@+
286
  * Mutator
287
  * @access public
304
  * @param integer
305
  * @return Address
306
  */
307
+ public function setTaxRegionId($value) { $this->TaxRegionId = $value; return $this; }
308
  /**
309
  * Address line 4.
310
+ *
311
  * @param line4 - Address line 4
312
  * @var string
313
  */
314
 
315
  public function setLine4($value) { $this->Line4 = $value; return $this; }
316
+
317
  /**
318
  * County Name.
319
+ *
320
  * @param county - County Name
321
  * @var string
322
  */
323
 
324
  public function setCounty($value) { $this->County= $value; return $this; }
325
+
326
  /**
327
  * Federal Information Processing Standards Code (USA).
328
  * <p> This is a unique code representing each geographic combination of state, county, and city.
348
  * @param fipsCode
349
  * @var string
350
  */
351
+
352
  public function setFipsCode($value) { $this->FipsCode= $value; return $this; }
353
+
354
  /**
355
  * The carrier route associated with the input address (USA).
356
  * <p>The CarrierRoute Property is a 4 character string set
420
  */
421
 
422
  public function setPostNet($value) { $this->PostNet= $value; return $this; }
423
+
424
  /**
425
  * Address Type - The type of address that was coded
426
  * (PO Box, Rural Route, and so on), using the input address.
454
  * @param addressType
455
  * @var string
456
  */
457
+
458
  public function setAddressType($value) { $this->AddressType= $value; return $this; }
459
+
460
  /**
461
  * Sets the latitude value for this ValidAddress.
462
+ *
463
  * @param latitude
464
  */
465
 
467
 
468
  /**
469
  * Sets the longitude value for this ValidAddress.
470
+ *
471
  * @param longitude
472
  */
473
 
474
  public function setLongitude($value) { $this->Longitude= $value; return $this; }
 
 
 
 
475
 
476
+
477
+
478
+ }
lib/AvaTax/classes/ValidateRequest.class.php CHANGED
@@ -5,7 +5,7 @@
5
 
6
  /**
7
  * Data wrapper used internally to pass arguments within {@link AddressServiceSoap#validate}. End users should not need to use this class.
8
- *
9
  * <pre>
10
  * <b>Example:</b>
11
  * $svc = new AddressServiceSoap();
@@ -29,10 +29,10 @@
29
  * </pre>
30
  *
31
  * @author Avalara
32
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
33
  * @package Address
34
  */
35
-
36
  //public function validate($address, $textCase = 'Default', $coordinates = false)
37
  //{
38
  // $request = new ValidateRequest($address, ($textCase ? $textCase : TextCase::$Default), $coordinates);
@@ -46,14 +46,14 @@ class ValidateRequest
46
  private $TextCase = 'Default';
47
  private $Coordinates = false;
48
  private $Taxability=false;
49
-
50
  public function __construct($address = null, $textCase = 'Default', $coordinates = false)
51
  {
52
  $this->setAddress($address);
53
  $this->setTextCase($textCase);
54
  $this->setCoordinates($coordinates);
55
  }
56
-
57
  // mutators
58
  /**
59
  * The address to Validate.
@@ -74,9 +74,9 @@ class ValidateRequest
74
  *
75
  * @var Address
76
  */
77
-
78
  public function setAddress(&$value) { $this->Address = $value; return $this; }
79
-
80
  /**
81
  * The casing to apply to the validated address(es).
82
  * <pre>
@@ -98,19 +98,19 @@ class ValidateRequest
98
  * @var string
99
  * @see TextCase
100
  */
101
-
102
- public function setTextCase($value)
103
- {
104
- if($value)
105
- {
106
- TextCase::Validate($value);
107
- $this->TextCase = $value;
108
- }
109
- else
110
- {
111
- $this->TextCase = TextCase::$Default;
112
- }
113
- return $this;
114
  }
115
 
116
  /**
@@ -122,8 +122,8 @@ class ValidateRequest
122
  * @var boolean
123
  */
124
  public function setCoordinates($value) { $this->Coordinates = ($value ? true : false); return $this; }
125
-
126
-
127
  //@author:swetal
128
  public function setTaxability($value)
129
  {
@@ -149,9 +149,9 @@ class ValidateRequest
149
  *
150
  * @return Address
151
  */
152
-
153
  public function getAddress() { return $this->Address; }
154
-
155
  /**
156
  * The casing to apply to the validated address(es).
157
  * <pre>
@@ -173,9 +173,9 @@ class ValidateRequest
173
  * @return string
174
  * @see TextCase
175
  */
176
-
177
  public function getTextCase() { return $this->TextCase; }
178
-
179
  /**
180
  * Returns whether to return the coordinates value for this ValidateRequest.
181
  * <p>
@@ -187,5 +187,3 @@ class ValidateRequest
187
 
188
  public function getCoordinates() { return $this->Coordinates; }
189
  }
190
-
191
- ?>
5
 
6
  /**
7
  * Data wrapper used internally to pass arguments within {@link AddressServiceSoap#validate}. End users should not need to use this class.
8
+ *
9
  * <pre>
10
  * <b>Example:</b>
11
  * $svc = new AddressServiceSoap();
29
  * </pre>
30
  *
31
  * @author Avalara
32
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
33
  * @package Address
34
  */
35
+
36
  //public function validate($address, $textCase = 'Default', $coordinates = false)
37
  //{
38
  // $request = new ValidateRequest($address, ($textCase ? $textCase : TextCase::$Default), $coordinates);
46
  private $TextCase = 'Default';
47
  private $Coordinates = false;
48
  private $Taxability=false;
49
+
50
  public function __construct($address = null, $textCase = 'Default', $coordinates = false)
51
  {
52
  $this->setAddress($address);
53
  $this->setTextCase($textCase);
54
  $this->setCoordinates($coordinates);
55
  }
56
+
57
  // mutators
58
  /**
59
  * The address to Validate.
74
  *
75
  * @var Address
76
  */
77
+
78
  public function setAddress(&$value) { $this->Address = $value; return $this; }
79
+
80
  /**
81
  * The casing to apply to the validated address(es).
82
  * <pre>
98
  * @var string
99
  * @see TextCase
100
  */
101
+
102
+ public function setTextCase($value)
103
+ {
104
+ if($value)
105
+ {
106
+ TextCase::Validate($value);
107
+ $this->TextCase = $value;
108
+ }
109
+ else
110
+ {
111
+ $this->TextCase = TextCase::$Default;
112
+ }
113
+ return $this;
114
  }
115
 
116
  /**
122
  * @var boolean
123
  */
124
  public function setCoordinates($value) { $this->Coordinates = ($value ? true : false); return $this; }
125
+
126
+
127
  //@author:swetal
128
  public function setTaxability($value)
129
  {
149
  *
150
  * @return Address
151
  */
152
+
153
  public function getAddress() { return $this->Address; }
154
+
155
  /**
156
  * The casing to apply to the validated address(es).
157
  * <pre>
173
  * @return string
174
  * @see TextCase
175
  */
176
+
177
  public function getTextCase() { return $this->TextCase; }
178
+
179
  /**
180
  * Returns whether to return the coordinates value for this ValidateRequest.
181
  * <p>
187
 
188
  public function getCoordinates() { return $this->Coordinates; }
189
  }
 
 
lib/AvaTax/classes/ValidateResult.class.php CHANGED
@@ -2,9 +2,9 @@
2
  /**
3
  * ValidateResult.class.php
4
  */
5
-
6
  /**
7
- * Contains an array of {@link ValidAddress} objects returned by {@link AddressServiceSoap#validate}
8
  *
9
  * <pre>
10
  * $port = new AddressServiceSoap();
@@ -21,11 +21,11 @@
21
  * print("Number of addresses returned is ". sizeoof($addresses));
22
  *
23
  * </pre>
24
- *
25
  * @see ValidAddress
26
- *
27
  * @author Avalara
28
- * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
29
  * @package Address
30
  */
31
 
@@ -37,17 +37,17 @@ class ValidateResult// extends BaseResult
37
  * @var array
38
  */
39
  private $ValidAddresses;
40
-
41
  /**
42
  * Method returning array of matching {@link ValidAddress}'s.
43
  * @return array
44
  */
45
  public function getValidAddresses() { return EnsureIsArray($this->ValidAddresses->ValidAddress); }
46
-
47
-
48
-
49
-
50
-
51
  /**
52
  * @var string
53
  */
@@ -76,14 +76,12 @@ class ValidateResult// extends BaseResult
76
  * @return array
77
  */
78
  public function getMessages() { return EnsureIsArray($this->Messages->Message); }
79
-
80
  //@author:swetal
81
-
82
  public function isTaxable()
83
  {
84
  return $this->Taxable;
85
  }
86
 
87
  }
88
-
89
- ?>
2
  /**
3
  * ValidateResult.class.php
4
  */
5
+
6
  /**
7
+ * Contains an array of {@link ValidAddress} objects returned by {@link AddressServiceSoap#validate}
8
  *
9
  * <pre>
10
  * $port = new AddressServiceSoap();
21
  * print("Number of addresses returned is ". sizeoof($addresses));
22
  *
23
  * </pre>
24
+ *
25
  * @see ValidAddress
26
+ *
27
  * @author Avalara
28
+ * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
29
  * @package Address
30
  */
31
 
37
  * @var array
38
  */
39
  private $ValidAddresses;
40
+
41
  /**
42
  * Method returning array of matching {@link ValidAddress}'s.
43
  * @return array
44
  */
45
  public function getValidAddresses() { return EnsureIsArray($this->ValidAddresses->ValidAddress); }
46
+
47
+
48
+
49
+
50
+
51
  /**
52
  * @var string
53
  */
76
  * @return array
77
  */
78
  public function getMessages() { return EnsureIsArray($this->Messages->Message); }
79
+
80
  //@author:swetal
81
+
82
  public function isTaxable()
83
  {
84
  return $this->Taxable;
85
  }
86
 
87
  }
 
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>OnePica_AvaTax</name>
4
- <version>2.6.1</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
@@ -18,18 +18,11 @@ Released as a commercial extension, this software will not work unless you have
18
  &#xD;
19
  &#xD;
20
  At One Pica (www.onepica.com), we strive to build increasingly scalable and flexible enterprise systems for all of our clients, large and small. We want to give back to this community both to promote its success and as a sign of our gratitude. Please feel free to contact us on ways we can improve this extension or extend on this framework.</description>
21
- <notes>Added global feature support&#xD;
22
- Fixed issue with multiple requests to Avalara&#xD;
23
- Fixed tax class for gifting options&#xD;
24
- Fixed tax calculation for gift options&#xD;
25
- Fixed timezone issues when send invoice/creditmemo to Avalara&#xD;
26
- Fixed company value code send when create order in admin for non-default store&#xD;
27
- Fixed vat id value for checkout with multiple addresses&#xD;
28
- Fixed currency conversion for non default store</notes>
29
  <authors><author><name>Rostyslav Redko</name><user>marketing</user><email>avalara@onepica.com</email></author></authors>
30
- <date>2015-10-01</date>
31
- <time>09:43:19</time>
32
- <contents><target name="magecommunity"><dir name="OnePica"><dir name="AvaTax"><dir name="Block"><dir name="Adminhtml"><dir name="Export"><dir name="Abstract"><file name="Grid.php" hash="5f96ca490c5f7bd3fac23e30b00336e5"/></dir><dir name="Log"><file name="Grid.php" hash="311c55d8bc770e6d6aa6f377c2eee6fd"/><file name="View.php" hash="097d82a3e2b1a8820d335a63f212451b"/></dir><dir name="Queue"><file name="Grid.php" hash="1ef8ba9bf3e0870ea6dc50bb202a0b91"/></dir></dir><dir name="Notification"><file name="Toolbar.php" hash="a31bc4d477eaa87b45da1113c7e4b8b6"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Export.php" hash="9a34cc10bf2e179725517be980d8ef17"/></dir></dir></dir></dir><dir name="Tax"><dir name="Class"><dir name="Edit"><file name="Form.php" hash="0e78c592366ee2746f3891cf91a388d3"/></dir><file name="Grid.php" hash="d731eb160457b8a22cfcd28682a1c485"/></dir></dir></dir><dir name="Checkout"><dir name="Onepage"><dir name="Shipping"><dir name="Method"><file name="Available.php" hash="c8ad904b71f344cfd1e01ceea7556dd1"/></dir></dir></dir></dir></dir><file name="Exception.php" hash="fc752f8da808a402baae2425c4072d22"/><dir name="Helper"><file name="Data.php" hash="bd631c0e65b789d253d1abf3a4532326"/><dir name="Tax"><file name="Data.php" hash="e041b574919704a2ddc5173d38edda91"/></dir></dir><dir name="Model"><file name="Abstract.php" hash="97f0ae95e164849371f09dbb7b1afd86"/><dir name="Admin"><file name="Session.php" hash="e3dc3353c7eebf4e17c22ea4039585c5"/></dir><dir name="Adminhtml"><file name="Config.php" hash="e3656ed052c4bd143822369ffed5a5c7"/><dir name="Sales"><dir name="Order"><file name="Create.php" hash="08253fde693e39124b4b4f242c238852"/></dir></dir></dir><dir name="Avatax"><file name="Abstract.php" hash="b8c44571e04c86a3d9aa2e96c69e71fa"/><file name="Address.php" hash="7c269d14d30b2faa1fbce281e6047889"/><file name="Estimate.php" hash="74481f4cc1fb34efc32fc8b824498308"/><dir name="Exception"><file name="Address.php" hash="66761b418530d8682666a0ed6987ff3e"/><file name="Commitfailure.php" hash="81257541dd1d679493cfd2d3c5b6366e"/><file name="Unbalanced.php" hash="dc7967d9c5780b45ecb0828d5a1fc6dc"/></dir><file name="Invoice.php" hash="289c9f884ff20435018ff993ddd66518"/><file name="Ping.php" hash="57b77948291fda5c6fe15733fd96a3c0"/></dir><file name="Config.php" hash="623922ea0cb4b335d2fca188f6f4f405"/><dir name="Export"><dir name="Adapter"><file name="Abstract.php" hash="840c8b87acd97646572bba9bb3b8f5ea"/><file name="Sql.php" hash="0e9bedb400f411785311f78ebbf676da"/></dir><dir name="Entity"><file name="Abstract.php" hash="d38a2293452c31e92f81bf5be59c3e1c"/><file name="Log.php" hash="a1dd28eee3e72d1a4ef7bddd865ddbae"/><file name="Queue.php" hash="14a97c283aa74f97982ab71160017aa3"/></dir></dir><file name="Export.php" hash="b94613b678b413d6268b07d314ba122e"/><file name="Observer.php" hash="31cf1af00c679866b93fe3a1dc9dae2b"/><dir name="Records"><file name="Log.php" hash="9a95ea609f75fa416c4564de8d3af4a2"/><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="29db8163f4dda862ff822ddffd04554d"/></dir><file name="Log.php" hash="d6fb7997768b7e0f1b39363fd4de5917"/><dir name="Queue"><file name="Collection.php" hash="11bba1561c81f39695f091b94bd81560"/></dir><file name="Queue.php" hash="ad319339f577fdbbba740c52848a272c"/></dir><dir name="Queue"><file name="Process.php" hash="77092de76e08561d16759660b4a4f0c4"/></dir><file name="Queue.php" hash="17e369325bcac42042676bb61a2248c5"/></dir><dir name="Sales"><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Grand.php" hash="63fb5a808ad3c16d2ed15f1dafad7937"/><file name="Tax.php" hash="cf83ec631fc356095f7e1ce6f581adaf"/></dir></dir><file name="Address.php" hash="3191bbdf4e2227d35cf588dde798731b"/></dir></dir><file name="Session.php" hash="429142089e75418a702e70edc56374cf"/><dir name="Source"><file name="Actions.php" hash="879b80f92f735402f57e316546b16984"/><file name="Addressvalidation.php" hash="9f2315018910f7336ad894156d49d9b9"/><file name="Customercodeformat.php" hash="cfcfcbaa27ed29add072324816da0c9d"/><file name="Error.php" hash="7f5495a2f295ded2d0a30f2f7108d009"/><file name="Fieldlist.php" hash="18987603d4d58130959a8ac76716ed08"/><file name="Logmode.php" hash="24d61da578a3b4adb896fea7d4d4d8ec"/><file name="Logtype.php" hash="4079ebbf7ef44593e631b8cc9f0fc2a5"/><file name="Onerrorfrontend.php" hash="ef4154ae563d8157c1083f20e0adf563"/><dir name="Regionfilter"><file name="List.php" hash="ed98a569d45cb5b014107f0fda52d735"/><file name="Mode.php" hash="27fdc94c6f162100d55005285b5170df"/></dir></dir><dir name="Tax"><file name="Config.php" hash="6168c0d674a44291b7dbfe358305a04b"/></dir><dir name="Total"><dir name="Quote"><dir name="Tax"><file name="Giftwrapping.php" hash="ff5f4418766f31933ae0a184ffaab946"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ExportController.php" hash="0ad97f1a39563925b5e33d6e9ca07885"/><file name="GridController.php" hash="91f38761378ff91d1f9c396b1cb3c150"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="92c529d045fa34fd0822b6ccb40bd4ed"/><file name="config.xml" hash="c8b48a3aec5cb3170ebf0dcdc65286fc"/><file name="system-disabled.xml" hash="588cd3c8ddbf05eea324e2c85f28c195"/><file name="system.xml" hash="befdcbd7ca59d45dee7d0d5631c81b47"/></dir><dir name="sql"><dir name="avatax_records_setup"><file name="mysql4-data-upgrade-2.2.0-2.2.1.php" hash="260d1c57754ebadba00d8ccdbb0ec996"/><file name="mysql4-install-0.1.0.php" hash="3d16899179b36bfde69609a99a2faae6"/><file name="mysql4-upgrade-0.1.4-0.1.5.php" hash="94d0cf2fc0e9bbe2de2829198ce3026f"/><file name="mysql4-upgrade-1.0.1-2.0.0.php" hash="905d7519328cdb1c46bba4221288c41c"/><file name="mysql4-upgrade-2.5.0.0-2.5.0.1.php" hash="4b439957397049bbe01d458fd7cfe0a2"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OnePica_AvaTax.xml" hash="07fd9423811b4dc084060d6131b889d7"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="onepica"><file name="avatax.xml" hash="a2514046fa0428d24a25f82d17627843"/></dir></dir><dir name="template"><dir name="onepica"><dir name="avatax"><dir name="log"><file name="view.phtml" hash="df14eee805bbedd484cf500dbf2335ed"/></dir><dir name="notification"><file name="toolbar.phtml" hash="fd368e043843df76ec3a74290b87dc3e"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="onepica"><file name="avatax.xml" hash="38c6ce2165f6ccfd6641eb1487faad39"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="OnePica_AvaTax.csv" hash="43d2dee74aee6f15abd471a65b4f407c"/></dir><dir name="en_US"><file name="OnePica_AvaTax.csv" hash="43d2dee74aee6f15abd471a65b4f407c"/></dir><dir name="es_ES"><file name="OnePica_AvaTax.csv" hash="43d2dee74aee6f15abd471a65b4f407c"/></dir><dir name="fr_FR"><file name="OnePica_AvaTax.csv" hash="43d2dee74aee6f15abd471a65b4f407c"/></dir><dir name="nl_NL"><file name="OnePica_AvaTax.csv" hash="43d2dee74aee6f15abd471a65b4f407c"/></dir><dir name="pt_BR"><file name="OnePica_AvaTax.csv" hash="43d2dee74aee6f15abd471a65b4f407c"/></dir><dir name="zh_CN"><file name="OnePica_AvaTax.csv" hash="43d2dee74aee6f15abd471a65b4f407c"/></dir></target><target name="magelib"><dir name="AvaTax"><file name="AvaTax.php" hash="26989654c44655c391758b9b82c3fc97"/><dir name="classes"><file name="ATConfig.class.php" hash="cac35e53e2dbd0f50c689d9ea63ffef7"/><file name="ATObject.class.php" hash="7e19ef9e2bf9f068c0074c89b5e182c4"/><file name="Address.class.php" hash="2d8f324e4f5d1f5aab46c607e7996470"/><file name="AddressServiceSoap.class.php" hash="72cead0fb71cf50ea205725e3581db43"/><file name="AddressType.class.php" hash="5fe3117c43c9e72782c99fe9f05e6d44"/><file name="AdjustTaxRequest.class.php" hash="88ae06a8a6af2bb4f606df2a5d3311b3"/><file name="AdjustTaxResult.class.php" hash="244b36ac53068f7d31e1f675292bc633"/><file name="ApplyPaymentRequest.class.php" hash="97c03c4b9e3e971d4f02c465158e57c5"/><file name="ApplyPaymentResult.class.php" hash="151fef191bbf5b5680dc17b68bd1fd5b"/><dir name="AvaCert2Svc"><file name="AvaCert2Soap.class.php" hash="011512b904f890fff8f83d8d12c32137"/><file name="Certificate.class.php" hash="148fb1033df9617143df3c0e56930b2e"/><file name="CertificateGetRequest.class.php" hash="f430a993f08f0a061cb8eeb8d2f72888"/><file name="CertificateGetResult.class.php" hash="9fa85bbabaca47bbeb1cbb0d5649565a"/><file name="CertificateImageGetRequest.class.php" hash="3a50a5e435b721224e6319318dd63ef1"/><file name="CertificateImageGetResult.class.php" hash="a579ccb4c5bbdfb6e78f4713ce9d3362"/><file name="CertificateJurisdiction.class.php" hash="7aa081021ddfe5f8208f8a7c85b6c4b5"/><file name="CertificateRequest.class.php" hash="88d48e898ff3026e03ef84ef6e10f095"/><file name="CertificateRequestGetRequest.class.php" hash="e21c5f0f4fedcacf6419378c9348701c"/><file name="CertificateRequestGetResult.class.php" hash="ba7e8558f1c49eeedba3ceb8d9f408e1"/><file name="CertificateRequestInitiateRequest.class.php" hash="277b647bbe7ed8a4ac6abb71098c2bcd"/><file name="CertificateRequestInitiateResult.class.php" hash="0fa5b3ad1287273abf91af3c620e462c"/><file name="CertificateRequestStage.class.php" hash="e69c9a74d81f487c106c54b7f3fb1557"/><file name="CertificateRequestStatus.class.php" hash="2e718743928ad93705a7b9b72ae01791"/><file name="CertificateStatus.class.php" hash="5644c784f7404af14fa790c0a4987f2f"/><file name="CertificateUsage.class.php" hash="1c849c3118546241482b2fbc3040eb68"/><file name="CommunicationMode.class.php" hash="45be17774b1d31307d1c07419b68fa86"/><file name="Customer.class.php" hash="9d6604f45014bc919551f3427a1f6096"/><file name="CustomerSaveRequest.class.php" hash="448f65a1ed1a469198c92ea5228565a5"/><file name="CustomerSaveResult.class.php" hash="ca833de9567ee04deeef9e0c67bc6906"/><file name="FormatType.class.php" hash="a5da25399b4db992f94980a42d80a894"/><file name="RequestType.class.php" hash="b8cb7931e1cdf437fbca74d33b7372c8"/><file name="ReviewStatus.class.php" hash="f026a188fd126a722743b7f193ab790d"/></dir><file name="AvalaraSoapClient.class.php" hash="a1ef291d4f3f60ff7aebe2231b48b7a1"/><file name="BaseResult.class.php" hash="5643a0cfac67684d689b5214fa449c78"/><dir name="BatchSvc"><file name="AuditMessage.class.php" hash="c5d32e8221163fc3b32bb8aeaa36b6ca"/><file name="AvaTaxBatchSvc.php" hash="b74e21e6381e4d124895cccc9d7b2e85"/><file name="BaseResult.class.php" hash="b66a3e1b84fda37475ec0cf5eab72631"/><file name="Batch.class.php" hash="e2c09672a5bc642803924afd56c81353"/><file name="BatchDelete.class.php" hash="f0a0262c2c9d98d206db30811524372a"/><file name="BatchDeleteResponse.class.php" hash="7fc5ba8b16e4b3c2e23fa2f9b22527b9"/><file name="BatchFetch.class.php" hash="99a36be1615da5ee74364434bbc7b395"/><file name="BatchFetchResponse.class.php" hash="0979f86a3aebc4a980241a66aff8be5b"/><file name="BatchFetchResult.class.php" hash="b5d1ef7ed331c13da8aeb4dbf8786b49"/><file name="BatchFile.class.php" hash="f276bb7844ec659daa4f8e48d02b3de4"/><file name="BatchFileDelete.class.php" hash="61e1f12cbe1cd03394e3da9219bfeb28"/><file name="BatchFileDeleteResponse.class.php" hash="8c46b1855f5b2f80e43486ecc76e9da7"/><file name="BatchFileFetch.class.php" hash="434b21f695fe1a4a98755d89548a0582"/><file name="BatchFileFetchResponse.class.php" hash="60ebb86596058188550bc28deefa80e9"/><file name="BatchFileFetchResult.class.php" hash="0c27895ca6e531e45ed684fa983f605f"/><file name="BatchFileSave.class.php" hash="1c7689a40fb435185507649aa05be0a1"/><file name="BatchFileSaveResponse.class.php" hash="a9317ce4b16fd03a655262f677b8c4f5"/><file name="BatchFileSaveResult.class.php" hash="22083e9f476643f765dfb212f66a6d44"/><file name="BatchProcess.class.php" hash="7f74ee2c8132422029e9bd2df004fcf2"/><file name="BatchProcessRequest.class.php" hash="418941b17d58b1a4f3852ed9f33082d4"/><file name="BatchProcessResponse.class.php" hash="19a6ca5665990b5ed8a5eb96c418380a"/><file name="BatchProcessResult.class.php" hash="238dc3924533d0cebed26b69cb297d3a"/><file name="BatchSave.class.php" hash="61d914a1f31ec41e0cf6c17d4609afaa"/><file name="BatchSaveResponse.class.php" hash="0d43f7251a987b236265b410857dd28b"/><file name="BatchSaveResult.class.php" hash="c07d8c4c3a972fa633b5251b85e2004e"/><file name="BatchSvc.class.php" hash="6756e5f46f50076d87ba36d5e333e57c"/><file name="DeleteRequest.class.php" hash="889e52100944e0a0ea55f3b07d3bd2ad"/><file name="DeleteResult.class.php" hash="1c07ae35a5c700cbde27d55ca0f28de2"/><file name="FetchRequest.class.php" hash="9c25698d7d0917d9f196673cc66a651b"/><file name="FilterRequest.class.php" hash="03c664a1e1a883b164879bc2be36c2bd"/><file name="FilterResult.class.php" hash="ef1a819f3786e9f577ec82fa9feb35ec"/><file name="IsAuthorized.class.php" hash="ec5f302437e1dca3cbd74ab320455f39"/><file name="IsAuthorizedResponse.class.php" hash="101dd46745a27e14980cf641e2f72dfc"/><file name="IsAuthorizedResult.class.php" hash="f55df9606c0efa6c0dc92eec2fd0938c"/><file name="Message.class.php" hash="106e66c6429b3a226c257fc3f25a6b67"/><file name="Ping.class.php" hash="1fe9cbed451083691655e8be68c787b5"/><file name="PingResponse.class.php" hash="7ffa8e8c97ecf6e2a16dc099e25f42fc"/><file name="PingResult.class.php" hash="46b9973ac9e8abf2ec0017b998a0c9c3"/><file name="Profile.class.php" hash="cdb9c3fac721d6f36d0b5d9f4302553d"/><file name="SeverityLevel.class.php" hash="1d9d5e106362d218c955770b315b5f81"/></dir><file name="BoundaryLevel.class.php" hash="253b8a05322b8e231919687f3827a7b5"/><file name="CancelCode.class.php" hash="d18bf4c911c3e8f61276379b38b19a2f"/><file name="CancelTaxRequest.class.php" hash="a9695b4f52190a8564418756a0803f4f"/><file name="CancelTaxResult.class.php" hash="14481a7ffadcdcac39d62054ba71de03"/><file name="CommitTaxRequest.class.php" hash="44c1b2572e472b1f5039d4951720e253"/><file name="CommitTaxResult.class.php" hash="c3011037fde1267653cada283a98be06"/><file name="DetailLevel.class.php" hash="77bd93452c5aff9ebb55775090f0ccb3"/><file name="DocStatus.class.php" hash="e997874e8837ab16c41c5d8a22674e90"/><file name="DocumentType.class.php" hash="758fc459c61b61f74fcd1eea3db2e4db"/><file name="DynamicSoapClient.class.php" hash="340af2b0cc31e6d2af86bca2107660fa"/><file name="Enum.class.php" hash="c42f3aff54c5575626149dd68b9548a1"/><file name="GetTaxHistoryRequest.class.php" hash="3affe503b0fb3b893271e16b3b4fc55a"/><file name="GetTaxHistoryResult.class.php" hash="7846121d29d5ac72e9b5e5c159a3d1e0"/><file name="GetTaxRequest.class.php" hash="ee45f7351ef19ffb2c9e0b8e79aa9bf1"/><file name="GetTaxResult.class.php" hash="a10ca0bf9fa9c144cab7047c8e24a11f"/><file name="IsAuthorizedResult.class.php" hash="daf9c6678d96536202118aca416593f0"/><file name="JurisdictionType.class.php" hash="89ebf55527a1c6c2fa7d875f97aa3890"/><file name="Line.class.php" hash="53c00d0b7d7c6f04807bfde0a32e8b3e"/><file name="Message.class.php" hash="a597a20d4e71d8359f5716e4090f5f91"/><file name="PingResult.class.php" hash="89fba1b1b4ebf9b5305841a95b1abea5"/><file name="PostTaxRequest.class.php" hash="45e5b40f965b37451ef1ff55003589cd"/><file name="PostTaxResult.class.php" hash="17643f25442780d7bbf9ecdb3fefd560"/><file name="ReconcileTaxHistoryRequest.class.php" hash="cd9c75c27b67aa3b0d602d7b58a84833"/><file name="ReconcileTaxHistoryResult.class.php" hash="467947a86b364e275bf43cb1faff2c98"/><file name="SearchTaxHistoryResult.class.php" hash="931aa2769869e17ea14081b2619bc189"/><file name="ServiceMode.class.php" hash="1fb48c918639b8fb6a6fa19b04236b3a"/><file name="SeverityLevel.class.php" hash="10056ae4392ce28ce3cbd0ca7c940178"/><file name="TaxDetail.class.php" hash="ef9e531bf185e58e76f09bfd4737e5f4"/><file name="TaxLine.class.php" hash="179f26ad8b7969aae73d7e83837961b4"/><file name="TaxOverride.class.php" hash="b7f6d15c23cbd5493a39d0448c345c02"/><file name="TaxOverrideType.class.php" hash="bd4f08a9742010694496048122b77d74"/><file name="TaxRequest.class.php" hash="3e8cf3ae19656365282c47b141c5409c"/><file name="TaxServiceSoap.class.php" hash="1c5b5ee61bad472c18727914045d70f3"/><file name="TaxType.class.php" hash="76c213ba5dff5fe71388ed9b12926c6e"/><file name="TextCase.class.php" hash="8ff721c254f32afef24176fb7d1aea52"/><file name="ValidAddress.class.php" hash="b651bb1ed9e937be0babe2fc5e7ab7f7"/><file name="ValidateRequest.class.php" hash="17f34c99a63d32cb2e17eef7fb0ffdea"/><file name="ValidateResult.class.php" hash="e8bdece299be6bcb1fa38e3714e01ae0"/><dir name="wsdl"><file name="Address.wsdl" hash="37ac1778f42147b548e09c8bb39b3cfc"/><file name="AvaCert2Svc.wsdl" hash="60da5aa0484ce00b82d7675ea3fd6454"/><file name="AvaCertSvc.wsdl" hash="25d03720f7018ea027c3345ec2c69c8e"/><file name="BatchSvc.wsdl" hash="798a715e28b9751b01666a29554135f7"/><file name="Tax.wsdl" hash="051420912d3e0b2489ae250c47059166"/></dir></dir><file name="functions.php" hash="57734d162b59cbc65933d25bf3950270"/></dir></target></contents>
33
  <compatible/>
34
  <dependencies><required><php><min>5.2.3</min><max>6.0.0</max></php><extension><name>Core</name><min/><max/></extension><extension><name>curl</name><min/><max/></extension><extension><name>soap</name><min/><max/></extension></required></dependencies>
35
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>OnePica_AvaTax</name>
4
+ <version>2.6.2</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
18
  &#xD;
19
  &#xD;
20
  At One Pica (www.onepica.com), we strive to build increasingly scalable and flexible enterprise systems for all of our clients, large and small. We want to give back to this community both to promote its success and as a sign of our gratitude. Please feel free to contact us on ways we can improve this extension or extend on this framework.</description>
21
+ <notes>Remove closing tag ("?&gt;") in Avatax library</notes>
 
 
 
 
 
 
 
22
  <authors><author><name>Rostyslav Redko</name><user>marketing</user><email>avalara@onepica.com</email></author></authors>
23
+ <date>2015-10-22</date>
24
+ <time>09:33:02</time>
25
+ <contents><target name="magecommunity"><dir name="OnePica"><dir name="AvaTax"><dir name="Block"><dir name="Adminhtml"><dir name="Export"><dir name="Abstract"><file name="Grid.php" hash="5f96ca490c5f7bd3fac23e30b00336e5"/></dir><dir name="Log"><file name="Grid.php" hash="311c55d8bc770e6d6aa6f377c2eee6fd"/><file name="View.php" hash="097d82a3e2b1a8820d335a63f212451b"/></dir><dir name="Queue"><file name="Grid.php" hash="1ef8ba9bf3e0870ea6dc50bb202a0b91"/></dir></dir><dir name="Notification"><file name="Toolbar.php" hash="a31bc4d477eaa87b45da1113c7e4b8b6"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Export.php" hash="9a34cc10bf2e179725517be980d8ef17"/></dir></dir></dir></dir><dir name="Tax"><dir name="Class"><dir name="Edit"><file name="Form.php" hash="0e78c592366ee2746f3891cf91a388d3"/></dir><file name="Grid.php" hash="d731eb160457b8a22cfcd28682a1c485"/></dir></dir></dir><dir name="Checkout"><dir name="Onepage"><dir name="Shipping"><dir name="Method"><file name="Available.php" hash="c8ad904b71f344cfd1e01ceea7556dd1"/></dir></dir></dir></dir></dir><file name="Exception.php" hash="fc752f8da808a402baae2425c4072d22"/><dir name="Helper"><file name="Data.php" hash="bd631c0e65b789d253d1abf3a4532326"/><dir name="Tax"><file name="Data.php" hash="e041b574919704a2ddc5173d38edda91"/></dir></dir><dir name="Model"><file name="Abstract.php" hash="97f0ae95e164849371f09dbb7b1afd86"/><dir name="Admin"><file name="Session.php" hash="e3dc3353c7eebf4e17c22ea4039585c5"/></dir><dir name="Adminhtml"><file name="Config.php" hash="e3656ed052c4bd143822369ffed5a5c7"/><dir name="Sales"><dir name="Order"><file name="Create.php" hash="08253fde693e39124b4b4f242c238852"/></dir></dir></dir><dir name="Avatax"><file name="Abstract.php" hash="b8c44571e04c86a3d9aa2e96c69e71fa"/><file name="Address.php" hash="7c269d14d30b2faa1fbce281e6047889"/><file name="Estimate.php" hash="74481f4cc1fb34efc32fc8b824498308"/><dir name="Exception"><file name="Address.php" hash="66761b418530d8682666a0ed6987ff3e"/><file name="Commitfailure.php" hash="81257541dd1d679493cfd2d3c5b6366e"/><file name="Unbalanced.php" hash="dc7967d9c5780b45ecb0828d5a1fc6dc"/></dir><file name="Invoice.php" hash="289c9f884ff20435018ff993ddd66518"/><file name="Ping.php" hash="57b77948291fda5c6fe15733fd96a3c0"/></dir><file name="Config.php" hash="623922ea0cb4b335d2fca188f6f4f405"/><dir name="Export"><dir name="Adapter"><file name="Abstract.php" hash="840c8b87acd97646572bba9bb3b8f5ea"/><file name="Sql.php" hash="0e9bedb400f411785311f78ebbf676da"/></dir><dir name="Entity"><file name="Abstract.php" hash="d38a2293452c31e92f81bf5be59c3e1c"/><file name="Log.php" hash="a1dd28eee3e72d1a4ef7bddd865ddbae"/><file name="Queue.php" hash="14a97c283aa74f97982ab71160017aa3"/></dir></dir><file name="Export.php" hash="b94613b678b413d6268b07d314ba122e"/><file name="Observer.php" hash="31cf1af00c679866b93fe3a1dc9dae2b"/><dir name="Records"><file name="Log.php" hash="9a95ea609f75fa416c4564de8d3af4a2"/><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="29db8163f4dda862ff822ddffd04554d"/></dir><file name="Log.php" hash="d6fb7997768b7e0f1b39363fd4de5917"/><dir name="Queue"><file name="Collection.php" hash="11bba1561c81f39695f091b94bd81560"/></dir><file name="Queue.php" hash="ad319339f577fdbbba740c52848a272c"/></dir><dir name="Queue"><file name="Process.php" hash="77092de76e08561d16759660b4a4f0c4"/></dir><file name="Queue.php" hash="17e369325bcac42042676bb61a2248c5"/></dir><dir name="Sales"><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Grand.php" hash="63fb5a808ad3c16d2ed15f1dafad7937"/><file name="Tax.php" hash="cf83ec631fc356095f7e1ce6f581adaf"/></dir></dir><file name="Address.php" hash="3191bbdf4e2227d35cf588dde798731b"/></dir></dir><file name="Session.php" hash="429142089e75418a702e70edc56374cf"/><dir name="Source"><file name="Actions.php" hash="879b80f92f735402f57e316546b16984"/><file name="Addressvalidation.php" hash="9f2315018910f7336ad894156d49d9b9"/><file name="Customercodeformat.php" hash="cfcfcbaa27ed29add072324816da0c9d"/><file name="Error.php" hash="7f5495a2f295ded2d0a30f2f7108d009"/><file name="Fieldlist.php" hash="18987603d4d58130959a8ac76716ed08"/><file name="Logmode.php" hash="24d61da578a3b4adb896fea7d4d4d8ec"/><file name="Logtype.php" hash="4079ebbf7ef44593e631b8cc9f0fc2a5"/><file name="Onerrorfrontend.php" hash="ef4154ae563d8157c1083f20e0adf563"/><dir name="Regionfilter"><file name="List.php" hash="ed98a569d45cb5b014107f0fda52d735"/><file name="Mode.php" hash="27fdc94c6f162100d55005285b5170df"/></dir></dir><dir name="Tax"><file name="Config.php" hash="6168c0d674a44291b7dbfe358305a04b"/></dir><dir name="Total"><dir name="Quote"><dir name="Tax"><file name="Giftwrapping.php" hash="ff5f4418766f31933ae0a184ffaab946"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ExportController.php" hash="0ad97f1a39563925b5e33d6e9ca07885"/><file name="GridController.php" hash="91f38761378ff91d1f9c396b1cb3c150"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="92c529d045fa34fd0822b6ccb40bd4ed"/><file name="config.xml" hash="c8b48a3aec5cb3170ebf0dcdc65286fc"/><file name="system-disabled.xml" hash="588cd3c8ddbf05eea324e2c85f28c195"/><file name="system.xml" hash="befdcbd7ca59d45dee7d0d5631c81b47"/></dir><dir name="sql"><dir name="avatax_records_setup"><file name="mysql4-data-upgrade-2.2.0-2.2.1.php" hash="260d1c57754ebadba00d8ccdbb0ec996"/><file name="mysql4-install-0.1.0.php" hash="3d16899179b36bfde69609a99a2faae6"/><file name="mysql4-upgrade-0.1.4-0.1.5.php" hash="94d0cf2fc0e9bbe2de2829198ce3026f"/><file name="mysql4-upgrade-1.0.1-2.0.0.php" hash="905d7519328cdb1c46bba4221288c41c"/><file name="mysql4-upgrade-2.5.0.0-2.5.0.1.php" hash="4b439957397049bbe01d458fd7cfe0a2"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OnePica_AvaTax.xml" hash="07fd9423811b4dc084060d6131b889d7"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="onepica"><file name="avatax.xml" hash="a2514046fa0428d24a25f82d17627843"/></dir></dir><dir name="template"><dir name="onepica"><dir name="avatax"><dir name="log"><file name="view.phtml" hash="df14eee805bbedd484cf500dbf2335ed"/></dir><dir name="notification"><file name="toolbar.phtml" hash="fd368e043843df76ec3a74290b87dc3e"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="onepica"><file name="avatax.xml" hash="38c6ce2165f6ccfd6641eb1487faad39"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="OnePica_AvaTax.csv" hash="43d2dee74aee6f15abd471a65b4f407c"/></dir><dir name="en_US"><file name="OnePica_AvaTax.csv" hash="43d2dee74aee6f15abd471a65b4f407c"/></dir><dir name="es_ES"><file name="OnePica_AvaTax.csv" hash="43d2dee74aee6f15abd471a65b4f407c"/></dir><dir name="fr_FR"><file name="OnePica_AvaTax.csv" hash="43d2dee74aee6f15abd471a65b4f407c"/></dir><dir name="nl_NL"><file name="OnePica_AvaTax.csv" hash="43d2dee74aee6f15abd471a65b4f407c"/></dir><dir name="pt_BR"><file name="OnePica_AvaTax.csv" hash="43d2dee74aee6f15abd471a65b4f407c"/></dir><dir name="zh_CN"><file name="OnePica_AvaTax.csv" hash="43d2dee74aee6f15abd471a65b4f407c"/></dir></target><target name="magelib"><dir name="AvaTax"><file name="AvaTax.php" hash="46bf3fb7795482b7494b2fdc266af3bc"/><dir name="classes"><file name="ATConfig.class.php" hash="dd1c39643f677e0c3b612c549686812c"/><file name="ATObject.class.php" hash="83359fd7639c98449836dc11d08c899d"/><file name="Address.class.php" hash="68bf4fe1306a60e672b7345a0dc7fcc6"/><file name="AddressServiceSoap.class.php" hash="c59bf4a586da207611f7bace4f08c880"/><file name="AddressType.class.php" hash="62c9ff3c533aaf5ad1fd4de95702be40"/><file name="AdjustTaxRequest.class.php" hash="47dbfa8044ca893bf214d8e71ab4864e"/><file name="AdjustTaxResult.class.php" hash="cf63aa5b7c3b52b3ec86695c4cdf0fcc"/><file name="ApplyPaymentRequest.class.php" hash="69d69dff63cbd284d8aea62247142692"/><file name="ApplyPaymentResult.class.php" hash="0e37bda0f1221c2ed2432717a2d8cc08"/><dir name="AvaCert2Svc"><file name="AvaCert2Soap.class.php" hash="0567793d9e4e496b45c3e8a0459f944a"/><file name="Certificate.class.php" hash="dd3f0dd2a2b03c97552f9dbd5c6463ba"/><file name="CertificateGetRequest.class.php" hash="4c11fd111cab99fa4dbc2c2250e0f3ad"/><file name="CertificateGetResult.class.php" hash="6a95a06e71bd13839c6142bba08bfba5"/><file name="CertificateImageGetRequest.class.php" hash="32f61011abe3d1c74ea7fc209e3e4224"/><file name="CertificateImageGetResult.class.php" hash="beda0f1fd54951b84b7dd77ead92bda3"/><file name="CertificateJurisdiction.class.php" hash="e666d572fb34d17fcd91127a50616195"/><file name="CertificateRequest.class.php" hash="7b76dc3675e507975ae6cf01abfa6059"/><file name="CertificateRequestGetRequest.class.php" hash="0cf2fafae88f795a754d75291947cb56"/><file name="CertificateRequestGetResult.class.php" hash="eceffe3acec787506649669b1b5edcf7"/><file name="CertificateRequestInitiateRequest.class.php" hash="148a5c4c881c885be863f403582b4974"/><file name="CertificateRequestInitiateResult.class.php" hash="a7a55cb398cd2fb9f0e11b8c6b09498d"/><file name="CertificateRequestStage.class.php" hash="92dec7da28f83f1a419d9573e6cec1fa"/><file name="CertificateRequestStatus.class.php" hash="a5d5c1629ce4f5ee0c18a8924204ca22"/><file name="CertificateStatus.class.php" hash="6ae43ab57ae9df37d07ac4203270c25e"/><file name="CertificateUsage.class.php" hash="bad34570daa7679b267f1288bf0a371f"/><file name="CommunicationMode.class.php" hash="71d2743c1d2afffe11d2903e89ff9c0e"/><file name="Customer.class.php" hash="e9f13f38f75cb4e1b845c55e6f26a5ab"/><file name="CustomerSaveRequest.class.php" hash="58ff71b04bb3a308b7f0199c6fae1e56"/><file name="CustomerSaveResult.class.php" hash="98cf79bdb7c0558963670b21e66b7d85"/><file name="FormatType.class.php" hash="714d183d3d365a07ef606d1211c732b0"/><file name="RequestType.class.php" hash="6144c2731baaf67400ea34e50440c1df"/><file name="ReviewStatus.class.php" hash="0dd208ecbf6b45196f51f304b1d48b03"/></dir><file name="AvalaraSoapClient.class.php" hash="dd605cefabb4396ef1b46b6d23b439b5"/><file name="BaseResult.class.php" hash="85d2c23ecc62bf4b828d04f405f83d37"/><dir name="BatchSvc"><file name="AuditMessage.class.php" hash="798d8169506357af02e6912b4bca9148"/><file name="AvaTaxBatchSvc.php" hash="8d65fd4a02cd4fc1104aa9c24b35e4fb"/><file name="BaseResult.class.php" hash="727ef623b821e95a73cf6d1eda891379"/><file name="Batch.class.php" hash="c028822bcf2a4f1fae6fc7dca76f247a"/><file name="BatchDelete.class.php" hash="0bcff09309ccad969d65c2d27fa63dda"/><file name="BatchDeleteResponse.class.php" hash="46afd464673459efb54ccaf509d37eef"/><file name="BatchFetch.class.php" hash="74f96ecc3c2df87271d60c4c969e43f8"/><file name="BatchFetchResponse.class.php" hash="b2acf63deea2c0fd374f80745b60fef5"/><file name="BatchFetchResult.class.php" hash="83d8de067f4bd59acafe4cd065f90163"/><file name="BatchFile.class.php" hash="65cee20383c8040fac1d4c45bbe757dd"/><file name="BatchFileDelete.class.php" hash="01d0bc10cb0ada43a9a00ca0efffef17"/><file name="BatchFileDeleteResponse.class.php" hash="b4e7881d26b7071303650973144f418b"/><file name="BatchFileFetch.class.php" hash="c5e91b8073fb756545d0f74803fdf3d6"/><file name="BatchFileFetchResponse.class.php" hash="c37ce819a975cdae5e7a82432b4b2334"/><file name="BatchFileFetchResult.class.php" hash="6bc54523d34356a83cdc4ecd2f696ea5"/><file name="BatchFileSave.class.php" hash="8434b0ffdd1fba4991535248ee3d618e"/><file name="BatchFileSaveResponse.class.php" hash="d52f79b42467b59f2177359f8a73cd3a"/><file name="BatchFileSaveResult.class.php" hash="19d3a2f20ccc42e80759b280842cf03c"/><file name="BatchProcess.class.php" hash="44d9efe13d01fce15bd444e5729b320c"/><file name="BatchProcessRequest.class.php" hash="04684b987c6d77319cc6881941091de9"/><file name="BatchProcessResponse.class.php" hash="c22b08c125eefc4006495c55984ed91e"/><file name="BatchProcessResult.class.php" hash="f9cac2270aafae49fc0892ea729c3713"/><file name="BatchSave.class.php" hash="d3a397348b905d49a0c91be780f3ec04"/><file name="BatchSaveResponse.class.php" hash="4c3088b85590fd697b5686aa1dddd89e"/><file name="BatchSaveResult.class.php" hash="7ea7fe3dc7d580711f6b52d991c43dce"/><file name="BatchSvc.class.php" hash="fa903f70b06d1e3b86384f2b6fb60616"/><file name="DeleteRequest.class.php" hash="43f945ef1e59ef02494df6df6ec3d1b6"/><file name="DeleteResult.class.php" hash="f7d64582f1182ae0337d6d84a5f60e8d"/><file name="FetchRequest.class.php" hash="7271317a8909672261ea0e00867e810b"/><file name="FilterRequest.class.php" hash="3c1eaec68f84531931a3cd6143533576"/><file name="FilterResult.class.php" hash="f4c0eeac0153b735ec589fcff7accd86"/><file name="IsAuthorized.class.php" hash="8339a2b249d954efaaf64f10665976fc"/><file name="IsAuthorizedResponse.class.php" hash="613c91f36370dc38ca07b83a29f2a45f"/><file name="IsAuthorizedResult.class.php" hash="65f9665508a5e7f33e4aee2835a9806e"/><file name="Message.class.php" hash="576327c8d9cd74bd96d9ccd62a2daa5b"/><file name="Ping.class.php" hash="3a2246f5557a5279fa260c65b36a9b44"/><file name="PingResponse.class.php" hash="b9f5e8b43382ee605d93768db8af1805"/><file name="PingResult.class.php" hash="2e05acfe74aad28003ad7d8ed102c3c6"/><file name="Profile.class.php" hash="a16a4819018dd8510ddab8feb9ee0f7e"/><file name="SeverityLevel.class.php" hash="5736530f3b5fd0cd932c783418563647"/></dir><file name="BoundaryLevel.class.php" hash="e9c2f2e3173e44fa8351f2a6dbb578fe"/><file name="CancelCode.class.php" hash="fd0b8ad2865e8fcf622b1faafc677527"/><file name="CancelTaxRequest.class.php" hash="08a114e32ec9eda9268ec337f79cb86f"/><file name="CancelTaxResult.class.php" hash="687be65bab85e6c6e8f99764c0475d9b"/><file name="CommitTaxRequest.class.php" hash="66ef55bc094d233b75e36b029995aed7"/><file name="CommitTaxResult.class.php" hash="ef90276817207e63e4e96ea518618f50"/><file name="DetailLevel.class.php" hash="2439f7137a4f9f52e28a6b321c4bcf16"/><file name="DocStatus.class.php" hash="9e3384a0f2ace05fa67fe05eba295fcd"/><file name="DocumentType.class.php" hash="94b4509b914d638a94f946b5518b8993"/><file name="DynamicSoapClient.class.php" hash="5bb36f2d4db3955ae059488eb9511ca9"/><file name="Enum.class.php" hash="d3ff4c898aff49f3c425042433826257"/><file name="GetTaxHistoryRequest.class.php" hash="3ed4c54de1e015f476ce7aa58c802468"/><file name="GetTaxHistoryResult.class.php" hash="7e8209e1f64df52b538927312b1bd934"/><file name="GetTaxRequest.class.php" hash="a3343ef6a1e27e48c9a75aa9e02777c4"/><file name="GetTaxResult.class.php" hash="7e2b7415a018fd76b62ab49637833533"/><file name="IsAuthorizedResult.class.php" hash="58164457677a61e93309f788fe61dc0c"/><file name="JurisdictionType.class.php" hash="a345fe5db379af87a6f7ec833ff86586"/><file name="Line.class.php" hash="7fefbd0230ee2fe8a8e6468abf338b80"/><file name="Message.class.php" hash="073be6cbcccacf2d1d55a04c045eab63"/><file name="PingResult.class.php" hash="18f88589588f08b619488c926cf5547c"/><file name="PostTaxRequest.class.php" hash="be8ea4ee2fddb10b62cb1be7e38179e3"/><file name="PostTaxResult.class.php" hash="bf2ee0b1293301ee00ac9b8b8390e780"/><file name="ReconcileTaxHistoryRequest.class.php" hash="41f2cfe04495612a9c293b1bc19220ce"/><file name="ReconcileTaxHistoryResult.class.php" hash="dd20684e0e017f56c98e29297180a0d7"/><file name="SearchTaxHistoryResult.class.php" hash="e3171e00482f7c2c0ed9753ffd05cd14"/><file name="ServiceMode.class.php" hash="0c66b3e25f4466461cebf32735e207e0"/><file name="SeverityLevel.class.php" hash="68fc81e651fe7f01c81b43b0d28ff0dc"/><file name="TaxDetail.class.php" hash="56065f8ea68505152b23e41238b80dfb"/><file name="TaxLine.class.php" hash="05376f01ad9a14f438ad0f1d5d423b61"/><file name="TaxOverride.class.php" hash="94d28efa3cdf58a87ba45a313ce93fc7"/><file name="TaxOverrideType.class.php" hash="d23f90c9ac639954c8fcee57ba763b21"/><file name="TaxRequest.class.php" hash="7339016da0c3cbe51843767987e7fbed"/><file name="TaxServiceSoap.class.php" hash="bc7e4eb0e66dd1bd956e19e0da337171"/><file name="TaxType.class.php" hash="ee87ecc8721076f0cda67fe1cc5b0db7"/><file name="TextCase.class.php" hash="8fb2eccc49eacdc1a4f5624c0716a750"/><file name="ValidAddress.class.php" hash="2f8eebcd379208198cd38632f1e34b0a"/><file name="ValidateRequest.class.php" hash="340822f22dee80e160193cacdc9c8dfb"/><file name="ValidateResult.class.php" hash="23de6a26defed9324ddcdcedfd2228bf"/><dir name="wsdl"><file name="Address.wsdl" hash="37ac1778f42147b548e09c8bb39b3cfc"/><file name="AvaCert2Svc.wsdl" hash="60da5aa0484ce00b82d7675ea3fd6454"/><file name="AvaCertSvc.wsdl" hash="25d03720f7018ea027c3345ec2c69c8e"/><file name="BatchSvc.wsdl" hash="798a715e28b9751b01666a29554135f7"/><file name="Tax.wsdl" hash="051420912d3e0b2489ae250c47059166"/></dir></dir><file name="functions.php" hash="57734d162b59cbc65933d25bf3950270"/></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.2.3</min><max>6.0.0</max></php><extension><name>Core</name><min/><max/></extension><extension><name>curl</name><min/><max/></extension><extension><name>soap</name><min/><max/></extension></required></dependencies>
28
  </package>