Avatax_TaxService 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Avatax Ruby SDK Guide.docx +0 -0
- data/Avatax_TaxService.gemspec +22 -0
- data/LICENSE.txt +21 -0
- data/lib/avatax_taxservice.rb +965 -0
- data/lib/tax_log.txt +0 -0
- data/lib/taxservice_dev.wsdl +1091 -0
- data/lib/taxservice_prd.wsdl +1091 -0
- data/lib/template_adjusttax.erb +101 -0
- data/lib/template_canceltax.erb +30 -0
- data/lib/template_committax.erb +31 -0
- data/lib/template_gettax.erb +97 -0
- data/lib/template_gettaxhistory.erb +29 -0
- data/lib/template_isauthorized.erb +22 -0
- data/lib/template_ping.erb +22 -0
- data/lib/template_posttax.erb +26 -0
- data/lib/template_reconciletaxhistory.erb +32 -0
- data/lib/xpath_adjtax.txt +74 -0
- data/lib/xpath_cancel.txt +10 -0
- data/lib/xpath_commit.txt +10 -0
- data/lib/xpath_gettax.txt +74 -0
- data/lib/xpath_gettaxhistory.txt +128 -0
- data/lib/xpath_isauthorized.txt +4 -0
- data/lib/xpath_ping.txt +9 -0
- data/lib/xpath_post.txt +9 -0
- data/lib/xpath_reconciletaxhistory.txt +31 -0
- data/test/test_adjtax.rb +116 -0
- data/test/test_gettax.rb +191 -0
- data/test/test_gettaxhistory.rb +50 -0
- data/test/test_reconciletaxhistory.rb +77 -0
- metadata +112 -0
@@ -0,0 +1,101 @@
|
|
1
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://avatax.avalara.com/services">
|
2
|
+
<soapenv:Header>
|
3
|
+
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
|
4
|
+
<wsse:UsernameToken wsu:Id="UsernameToken-7" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
|
5
|
+
<wsse:Username><%= @username %></wsse:Username>
|
6
|
+
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"><%= @password %></wsse:Password>
|
7
|
+
<wsu:Created>2012-03-02T23:41:44.511Z</wsu:Created>
|
8
|
+
</wsse:UsernameToken>
|
9
|
+
</wsse:Security>
|
10
|
+
<ser:Profile>
|
11
|
+
<ser:Name><%= @name %></ser:Name>
|
12
|
+
<ser:Client><%= @clientname %></ser:Client>
|
13
|
+
<ser:Adapter><%= @adapter %></ser:Adapter>
|
14
|
+
<ser:Machine><%= @machine %></ser:Machine>
|
15
|
+
</ser:Profile>
|
16
|
+
</soapenv:Header>
|
17
|
+
<soapenv:Body>
|
18
|
+
<ser:AdjustTax>
|
19
|
+
<ser:AdjustTaxRequest>
|
20
|
+
<ser:AdjustmentReason><%= adjustmentreason %></ser:AdjustmentReason>
|
21
|
+
<ser:AdjustmentDescription><%= adjustmentdescription %></ser:AdjustmentDescription>
|
22
|
+
<ser:GetTaxRequest>
|
23
|
+
<ser:CompanyCode><%= @companycode %></ser:CompanyCode>
|
24
|
+
<ser:DocType><%= @doctype %></ser:DocType>
|
25
|
+
<ser:DocCode><%= @doccode %></ser:DocCode>
|
26
|
+
<ser:DocDate><%= @docdate %></ser:DocDate>
|
27
|
+
<ser:SalespersonCode><%= @salespersoncode %></ser:SalespersonCode>
|
28
|
+
<ser:CustomerCode><%= @customercode %></ser:CustomerCode>
|
29
|
+
<ser:CustomerUsageType><%= @customerusagetype %></ser:CustomerUsageType>
|
30
|
+
<ser:Discount><%= @discount %></ser:Discount>
|
31
|
+
<ser:PurchaseOrderNo><%= @purchaseorderno %></ser:PurchaseOrderNo>
|
32
|
+
<ser:ExemptionNo><%= @exemptionno %></ser:ExemptionNo>
|
33
|
+
<ser:OriginCode><%= @origincode %></ser:OriginCode>
|
34
|
+
<ser:DestinationCode><%= @destinationcode %></ser:DestinationCode>
|
35
|
+
<ser:Addresses><% addresses.each do |addresscode, line1, line2, line3, city, region, postalcode, country, taxregionid, latitude, longitude| %>
|
36
|
+
<ser:BaseAddress>
|
37
|
+
<ser:AddressCode><%= addresscode %></ser:AddressCode>
|
38
|
+
<ser:Line1><%= line1 %></ser:Line1>
|
39
|
+
<ser:Line2><%= line2 %></ser:Line2>
|
40
|
+
<ser:Line3><%= line3 %></ser:Line3>
|
41
|
+
<ser:City><%= city %></ser:City>
|
42
|
+
<ser:Region><%= region %></ser:Region>
|
43
|
+
<ser:PostalCode><%= postalcode %></ser:PostalCode>
|
44
|
+
<ser:Country><%= country %></ser:Country>
|
45
|
+
<ser:TaxRegionId><%= taxregionid %></ser:TaxRegionId>
|
46
|
+
<ser:Latitude><%= latitude %></ser:Latitude>
|
47
|
+
<ser:Longitude><%= longitude %></ser:Longitude>
|
48
|
+
</ser:BaseAddress><% end %>
|
49
|
+
</ser:Addresses>
|
50
|
+
<ser:Lines><% lines.each do |no, origincodeline, destinationcodeline, itemcode, taxcode, qty, amount, discounted, revacct, ref1, ref2,
|
51
|
+
exemptionnoline, customerusagetype, description, taxoverridetypeline, taxamountline, taxdateline, reasonline, taxincluded,
|
52
|
+
businessidentificationnoline| %>
|
53
|
+
<ser:Line>
|
54
|
+
<ser:No><%= no %></ser:No>
|
55
|
+
<ser:OriginCode><%= origincodeline %></ser:OriginCode>
|
56
|
+
<ser:DestinationCode><%= destinationcodeline %></ser:DestinationCode>
|
57
|
+
<ser:ItemCode><%= itemcode %></ser:ItemCode>
|
58
|
+
<ser:TaxCode><%= taxcode %></ser:TaxCode>
|
59
|
+
<ser:Qty><%= qty %></ser:Qty>
|
60
|
+
<ser:Amount><%= amount %></ser:Amount>
|
61
|
+
<ser:Discounted><%= discounted %></ser:Discounted>
|
62
|
+
<ser:RevAcct><%= revacct %></ser:RevAcct>
|
63
|
+
<ser:Ref1><%= ref1 %></ser:Ref1>
|
64
|
+
<ser:Ref2><%= ref2 %></ser:Ref2>
|
65
|
+
<ser:ExemptionNo><%= exemptionnoline %></ser:ExemptionNo>
|
66
|
+
<ser:CustomerUsageType><%= customerusagetype %></ser:CustomerUsageType>
|
67
|
+
<ser:Description><%= description %></ser:Description>
|
68
|
+
<ser:TaxOverride>
|
69
|
+
<ser:TaxOverrideType><%= taxoverridetypeline %></ser:TaxOverrideType>
|
70
|
+
<ser:TaxAmount><%= taxamountline %></ser:TaxAmount>
|
71
|
+
<ser:TaxDate><%= taxdateline %></ser:TaxDate>
|
72
|
+
<ser:Reason><%= reasonline %></ser:Reason>
|
73
|
+
</ser:TaxOverride>
|
74
|
+
<ser:TaxIncluded><%= taxincluded %></ser:TaxIncluded>
|
75
|
+
<ser:BusinessIdentificationNo><%= businessidentificationnoline %></ser:BusinessIdentificationNo>
|
76
|
+
</ser:Line><% end %>
|
77
|
+
</ser:Lines>
|
78
|
+
<ser:DetailLevel><%= @detaillevel %></ser:DetailLevel>
|
79
|
+
<ser:ReferenceCode><%= @referencecode %></ser:ReferenceCode>
|
80
|
+
<ser:HashCode><%= @hashcode %></ser:HashCode>
|
81
|
+
<ser:LocationCode><%= @locationcode %></ser:LocationCode>
|
82
|
+
<ser:Commit><%= @commit %></ser:Commit>
|
83
|
+
<ser:BatchCode><%= @batchcode %></ser:BatchCode>
|
84
|
+
<ser:TaxOverride>
|
85
|
+
<ser:TaxOverrideType><%= @taxoverridetype %></ser:TaxOverrideType>
|
86
|
+
<ser:TaxAmount><%= @taxamount %></ser:TaxAmount>
|
87
|
+
<ser:TaxDate><%= @taxdate %></ser:TaxDate>
|
88
|
+
<ser:Reason><%= @reason %></ser:Reason>
|
89
|
+
</ser:TaxOverride>
|
90
|
+
<ser:CurrencyCode><%= @currencycode %></ser:CurrencyCode>
|
91
|
+
<ser:ServiceMode><%= @servicemode %></ser:ServiceMode>
|
92
|
+
<ser:PaymentDate><%= @paymentdate %></ser:PaymentDate>
|
93
|
+
<ser:ExchangeRate><%= @exchangerate %></ser:ExchangeRate>
|
94
|
+
<ser:ExchangeRateEffDate><%= @exchangerateeffdate %></ser:ExchangeRateEffDate>
|
95
|
+
<ser:PosLaneCode><%= @poslanecode %></ser:PosLaneCode>
|
96
|
+
<ser:BusinessIdentificationNo><%= @businessidentificationno %></ser:BusinessIdentificationNo>
|
97
|
+
</ser:GetTaxRequest>
|
98
|
+
</ser:AdjustTaxRequest>
|
99
|
+
</ser:AdjustTax>
|
100
|
+
</soapenv:Body>
|
101
|
+
</soapenv:Envelope>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://avatax.avalara.com/services">
|
2
|
+
<soapenv:Header>
|
3
|
+
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
|
4
|
+
<wsse:UsernameToken wsu:Id="UsernameToken-7" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
|
5
|
+
<wsse:Username><%= @username %></wsse:Username>
|
6
|
+
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"><%= @password %></wsse:Password>
|
7
|
+
<wsu:Created>2012-03-02T23:41:44.511Z</wsu:Created>
|
8
|
+
</wsse:UsernameToken>
|
9
|
+
</wsse:Security>
|
10
|
+
<ser:Profile>
|
11
|
+
<ser:Name><%= @name %></ser:Name>
|
12
|
+
<ser:Client><%= @clientname %></ser:Client>
|
13
|
+
<ser:Adapter><%= @adapter %></ser:Adapter>
|
14
|
+
<ser:Machine><%= @machine %></ser:Machine>
|
15
|
+
</ser:Profile>
|
16
|
+
<ser:AuditMessage>
|
17
|
+
<ser:Message><%= @message %></ser:Message>
|
18
|
+
</ser:AuditMessage>
|
19
|
+
</soapenv:Header>
|
20
|
+
<soapenv:Body>
|
21
|
+
<ser:CancelTax>
|
22
|
+
<ser:CancelTaxRequest>
|
23
|
+
<ser:DocId><%= @docid %></ser:DocId>
|
24
|
+
<ser:CompanyCode><%= @companycode %></ser:CompanyCode>
|
25
|
+
<ser:DocType><%= @doctype %></ser:DocType>
|
26
|
+
<ser:CancelCode><%= @cancelcode %></ser:CancelCode>
|
27
|
+
</ser:CancelTaxRequest>
|
28
|
+
</ser:CancelTax>
|
29
|
+
</soapenv:Body>
|
30
|
+
</soapenv:Envelope>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://avatax.avalara.com/services">
|
2
|
+
<soapenv:Header>
|
3
|
+
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
|
4
|
+
<wsse:UsernameToken wsu:Id="UsernameToken-7" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
|
5
|
+
<wsse:Username><%= @username %></wsse:Username>
|
6
|
+
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"><%= @password %></wsse:Password>
|
7
|
+
<wsu:Created>2012-03-02T23:41:44.511Z</wsu:Created>
|
8
|
+
</wsse:UsernameToken>
|
9
|
+
</wsse:Security>
|
10
|
+
<ser:Profile>
|
11
|
+
<ser:Name><%= @name %></ser:Name>
|
12
|
+
<ser:Client><%= @clientname %></ser:Client>
|
13
|
+
<ser:Adapter><%= @adapter %></ser:Adapter>
|
14
|
+
<ser:Machine><%= @machine %></ser:Machine>
|
15
|
+
</ser:Profile>
|
16
|
+
<ser:AuditMessage>
|
17
|
+
<ser:Message><%= @message %></ser:Message>
|
18
|
+
</ser:AuditMessage>
|
19
|
+
</soapenv:Header>
|
20
|
+
<soapenv:Body>
|
21
|
+
<ser:CommitTax>
|
22
|
+
<ser:CommitTaxRequest>
|
23
|
+
<ser:DocId><%= @docid %></ser:DocId>
|
24
|
+
<ser:CompanyCode><%= @companycode %></ser:CompanyCode>
|
25
|
+
<ser:DocType><%= @doctype %></ser:DocType>
|
26
|
+
<ser:DocCode><%= @doccode %></ser:DocCode>
|
27
|
+
<ser:NewDocCode><%= @newdoccode %></ser:NewDocCode>
|
28
|
+
</ser:CommitTaxRequest>
|
29
|
+
</ser:CommitTax>
|
30
|
+
</soapenv:Body>
|
31
|
+
</soapenv:Envelope>
|
@@ -0,0 +1,97 @@
|
|
1
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://avatax.avalara.com/services">
|
2
|
+
<soapenv:Header>
|
3
|
+
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
|
4
|
+
<wsse:UsernameToken wsu:Id="UsernameToken-7" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
|
5
|
+
<wsse:Username><%= @username %></wsse:Username>
|
6
|
+
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"><%= @password %></wsse:Password>
|
7
|
+
<wsu:Created>2012-03-02T23:41:44.511Z</wsu:Created>
|
8
|
+
</wsse:UsernameToken>
|
9
|
+
</wsse:Security>
|
10
|
+
<ser:Profile>
|
11
|
+
<ser:Name><%= @name %></ser:Name>
|
12
|
+
<ser:Client><%= @clientname %></ser:Client>
|
13
|
+
<ser:Adapter><%= @adapter %></ser:Adapter>
|
14
|
+
<ser:Machine><%= @machine %></ser:Machine>
|
15
|
+
</ser:Profile>
|
16
|
+
</soapenv:Header>
|
17
|
+
<soapenv:Body>
|
18
|
+
<ser:GetTax>
|
19
|
+
<ser:GetTaxRequest>
|
20
|
+
<ser:CompanyCode><%= @companycode %></ser:CompanyCode>
|
21
|
+
<ser:DocType><%= @doctype %></ser:DocType>
|
22
|
+
<ser:DocCode><%= @doccode %></ser:DocCode>
|
23
|
+
<ser:DocDate><%= @docdate %></ser:DocDate>
|
24
|
+
<ser:SalespersonCode><%= @salespersoncode %></ser:SalespersonCode>
|
25
|
+
<ser:CustomerCode><%= @customercode %></ser:CustomerCode>
|
26
|
+
<ser:CustomerUsageType><%= @customerusagetype %></ser:CustomerUsageType>
|
27
|
+
<ser:Discount><%= @discount %></ser:Discount>
|
28
|
+
<ser:PurchaseOrderNo><%= @purchaseorderno %></ser:PurchaseOrderNo>
|
29
|
+
<ser:ExemptionNo><%= @exemptionno %></ser:ExemptionNo>
|
30
|
+
<ser:OriginCode><%= @origincode %></ser:OriginCode>
|
31
|
+
<ser:DestinationCode><%= @destinationcode %></ser:DestinationCode>
|
32
|
+
<ser:Addresses><% @addresses.each do |addresscode, line1, line2, line3, city, region, postalcode, country, taxregionid, latitude, longitude| %>
|
33
|
+
<ser:BaseAddress>
|
34
|
+
<ser:AddressCode><%= addresscode %></ser:AddressCode>
|
35
|
+
<ser:Line1><%= line1 %></ser:Line1>
|
36
|
+
<ser:Line2><%= line2 %></ser:Line2>
|
37
|
+
<ser:Line3><%= line3 %></ser:Line3>
|
38
|
+
<ser:City><%= city %></ser:City>
|
39
|
+
<ser:Region><%= region %></ser:Region>
|
40
|
+
<ser:PostalCode><%= postalcode %></ser:PostalCode>
|
41
|
+
<ser:Country><%= country %></ser:Country>
|
42
|
+
<ser:TaxRegionId><%= taxregionid %></ser:TaxRegionId>
|
43
|
+
<ser:Latitude><%= latitude %></ser:Latitude>
|
44
|
+
<ser:Longitude><%= longitude %></ser:Longitude>
|
45
|
+
</ser:BaseAddress><% end %>
|
46
|
+
</ser:Addresses>
|
47
|
+
<ser:Lines><% @lines.each do |no, origincodeline, destinationcodeline, itemcode, taxcode, qty, amount, discounted, revacct, ref1, ref2,
|
48
|
+
exemptionnoline, customerusagetype, description, taxoverridetypeline, taxamountline, taxdateline, reasonline, taxincluded,
|
49
|
+
businessidentificationnoline| %>
|
50
|
+
<ser:Line>
|
51
|
+
<ser:No><%= no %></ser:No>
|
52
|
+
<ser:OriginCode><%= origincodeline %></ser:OriginCode>
|
53
|
+
<ser:DestinationCode><%= destinationcodeline %></ser:DestinationCode>
|
54
|
+
<ser:ItemCode><%= itemcode %></ser:ItemCode>
|
55
|
+
<ser:TaxCode><%= taxcode %></ser:TaxCode>
|
56
|
+
<ser:Qty><%= qty %></ser:Qty>
|
57
|
+
<ser:Amount><%= amount %></ser:Amount>
|
58
|
+
<ser:Discounted><%= discounted %></ser:Discounted>
|
59
|
+
<ser:RevAcct><%= revacct %></ser:RevAcct>
|
60
|
+
<ser:Ref1><%= ref1 %></ser:Ref1>
|
61
|
+
<ser:Ref2><%= ref2 %></ser:Ref2>
|
62
|
+
<ser:ExemptionNo><%= exemptionnoline %></ser:ExemptionNo>
|
63
|
+
<ser:CustomerUsageType><%= customerusagetype %></ser:CustomerUsageType>
|
64
|
+
<ser:Description><%= description %></ser:Description>
|
65
|
+
<ser:TaxOverride>
|
66
|
+
<ser:TaxOverrideType><%= taxoverridetypeline %></ser:TaxOverrideType>
|
67
|
+
<ser:TaxAmount><%= taxamountline %></ser:TaxAmount>
|
68
|
+
<ser:TaxDate><%= taxdateline %></ser:TaxDate>
|
69
|
+
<ser:Reason><%= reasonline %></ser:Reason>
|
70
|
+
</ser:TaxOverride>
|
71
|
+
<ser:TaxIncluded><%= taxincluded %></ser:TaxIncluded>
|
72
|
+
<ser:BusinessIdentificationNo><%= businessidentificationnoline %></ser:BusinessIdentificationNo>
|
73
|
+
</ser:Line><% end %>
|
74
|
+
</ser:Lines>
|
75
|
+
<ser:DetailLevel><%= @detaillevel %></ser:DetailLevel>
|
76
|
+
<ser:ReferenceCode><%= @referencecode %></ser:ReferenceCode>
|
77
|
+
<ser:HashCode><%= @hashcode %></ser:HashCode>
|
78
|
+
<ser:LocationCode><%= @locationcode %></ser:LocationCode>
|
79
|
+
<ser:Commit><%= @commit %></ser:Commit>
|
80
|
+
<ser:BatchCode><%= @batchcode %></ser:BatchCode>
|
81
|
+
<ser:TaxOverride>
|
82
|
+
<ser:TaxOverrideType><%= @taxoverridetype %></ser:TaxOverrideType>
|
83
|
+
<ser:TaxAmount><%= @taxamount %></ser:TaxAmount>
|
84
|
+
<ser:TaxDate><%= @taxdate %></ser:TaxDate>
|
85
|
+
<ser:Reason><%= @reason %></ser:Reason>
|
86
|
+
</ser:TaxOverride>
|
87
|
+
<ser:CurrencyCode><%= @currencycode %></ser:CurrencyCode>
|
88
|
+
<ser:ServiceMode><%= @servicemode %></ser:ServiceMode>
|
89
|
+
<ser:PaymentDate><%= @paymentdate %></ser:PaymentDate>
|
90
|
+
<ser:ExchangeRate><%= @exchangerate %></ser:ExchangeRate>
|
91
|
+
<ser:ExchangeRateEffDate><%= @exchangerateeffdate %></ser:ExchangeRateEffDate>
|
92
|
+
<ser:PosLaneCode><%= @poslanecode %></ser:PosLaneCode>
|
93
|
+
<ser:BusinessIdentificationNo><%= @businessidentificationno %></ser:BusinessIdentificationNo>
|
94
|
+
</ser:GetTaxRequest>
|
95
|
+
</ser:GetTax>
|
96
|
+
</soapenv:Body>
|
97
|
+
</soapenv:Envelope>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://avatax.avalara.com/services">
|
2
|
+
<soapenv:Header>
|
3
|
+
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
|
4
|
+
<wsse:UsernameToken wsu:Id="UsernameToken-7" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
|
5
|
+
<wsse:Username><%= @username %></wsse:Username>
|
6
|
+
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"><%= @password %></wsse:Password>
|
7
|
+
<wsu:Created>2012-03-02T23:41:44.511Z</wsu:Created>
|
8
|
+
</wsse:UsernameToken>
|
9
|
+
</wsse:Security>
|
10
|
+
<ser:Profile>
|
11
|
+
<ser:Name><%= @name %></ser:Name>
|
12
|
+
<ser:Client><%= @clientname %></ser:Client>
|
13
|
+
<ser:Adapter><%= @adapter %></ser:Adapter>
|
14
|
+
<ser:Machine><%= @machine %></ser:Machine>
|
15
|
+
</ser:Profile>
|
16
|
+
</soapenv:Header>
|
17
|
+
<soapenv:Body>
|
18
|
+
<ser:GetTaxHistory>
|
19
|
+
<ser:GetTaxHistoryRequest>
|
20
|
+
<ser:DocId><%= @docid %></ser:DocId>
|
21
|
+
<ser:CompanyCode><%= @companycode %></ser:CompanyCode>
|
22
|
+
<ser:DocType><%= @doctype %></ser:DocType>
|
23
|
+
<ser:DocCode><%= @doccode %></ser:DocCode>
|
24
|
+
<ser:DocDate><%= @docdate %></ser:DocDate>
|
25
|
+
<ser:DetailLevel><%= @detaillevel %></ser:DetailLevel>
|
26
|
+
</ser:GetTaxHistoryRequest>
|
27
|
+
</ser:GetTaxHistory>
|
28
|
+
</soapenv:Body>
|
29
|
+
</soapenv:Envelope>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://avatax.avalara.com/services">
|
2
|
+
<soapenv:Header>
|
3
|
+
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
|
4
|
+
<wsse:UsernameToken wsu:Id="UsernameToken-7" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
|
5
|
+
<wsse:Username><%= @username %></wsse:Username>
|
6
|
+
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"><%= @password %></wsse:Password>
|
7
|
+
<wsu:Created>2012-03-02T23:41:44.511Z</wsu:Created>
|
8
|
+
</wsse:UsernameToken>
|
9
|
+
</wsse:Security>
|
10
|
+
<ser:Profile>
|
11
|
+
<ser:Name><%= @name %></ser:Name>
|
12
|
+
<ser:Client><%= @clientname %></ser:Client>
|
13
|
+
<ser:Adapter><%= @adapter %></ser:Adapter>
|
14
|
+
<ser:Machine><%= @machine %></ser:Machine>
|
15
|
+
</ser:Profile>
|
16
|
+
</soapenv:Header>
|
17
|
+
<soapenv:Body>
|
18
|
+
<ser:IsAuthorized>
|
19
|
+
<ser:Operations><%= @operation %></ser:Operations>
|
20
|
+
</ser:IsAuthorized>
|
21
|
+
</soapenv:Body>
|
22
|
+
</soapenv:Envelope>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://avatax.avalara.com/services">
|
2
|
+
<soapenv:Header>
|
3
|
+
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
|
4
|
+
<wsse:UsernameToken wsu:Id="UsernameToken-7" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
|
5
|
+
<wsse:Username><%= @username %></wsse:Username>
|
6
|
+
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"><%= @password %></wsse:Password>
|
7
|
+
<wsu:Created>2012-03-02T23:41:44.511Z</wsu:Created>
|
8
|
+
</wsse:UsernameToken>
|
9
|
+
</wsse:Security>
|
10
|
+
<ser:Profile>
|
11
|
+
<ser:Name><%= @name %></ser:Name>
|
12
|
+
<ser:Client><%= @clientname %></ser:Client>
|
13
|
+
<ser:Adapter><%= @adapter %></ser:Adapter>
|
14
|
+
<ser:Machine><%= @machine %></ser:Machine>
|
15
|
+
</ser:Profile>
|
16
|
+
</soapenv:Header>
|
17
|
+
<soapenv:Body>
|
18
|
+
<ser:Ping>
|
19
|
+
<ser:Message><%= @ping_message %></ser:Message>
|
20
|
+
</ser:Ping>
|
21
|
+
</soapenv:Body>
|
22
|
+
</soapenv:Envelope>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://avatax.avalara.com/services">
|
2
|
+
<soapenv:Header>
|
3
|
+
<ser:Profile>
|
4
|
+
<ser:Name><%= @name %></ser:Name>
|
5
|
+
<ser:Client><%= @clientname %></ser:Client>
|
6
|
+
<ser:Adapter><%= @adapter %></ser:Adapter>
|
7
|
+
<ser:Machine><%= @machine %></ser:Machine>
|
8
|
+
</ser:Profile>
|
9
|
+
</soapenv:Header>
|
10
|
+
<soapenv:Body>
|
11
|
+
<ser:PostTax>
|
12
|
+
<ser:PostTaxRequest>
|
13
|
+
<ser:DocId><%= @docid %></ser:DocId>
|
14
|
+
<ser:CompanyCode><%= @companycode %></ser:CompanyCode>
|
15
|
+
<ser:DocType><%= @doctype %></ser:DocType>
|
16
|
+
<ser:DocCode><%= @doccode %></ser:DocCode>
|
17
|
+
<ser:DocDate><%= @docdate %></ser:DocDate>
|
18
|
+
<ser:TotalAmount><%= @totalamount %></ser:TotalAmount>
|
19
|
+
<ser:TotalTax><%= @totaltax %></ser:TotalTax>
|
20
|
+
<ser:HashCode><%= @hashcode %></ser:HashCode>
|
21
|
+
<ser:Commit><%= @commit %></ser:Commit>
|
22
|
+
<ser:NewDocCode><%= @newdoccode %></ser:NewDocCode>
|
23
|
+
</ser:PostTaxRequest>
|
24
|
+
</ser:PostTax>
|
25
|
+
</soapenv:Body>
|
26
|
+
</soapenv:Envelope>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://avatax.avalara.com/services">
|
2
|
+
<soapenv:Header>
|
3
|
+
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
|
4
|
+
<wsse:UsernameToken wsu:Id="UsernameToken-7" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
|
5
|
+
<wsse:Username><%= @username %></wsse:Username>
|
6
|
+
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"><%= @password %></wsse:Password>
|
7
|
+
<wsu:Created>2012-03-02T23:41:44.511Z</wsu:Created>
|
8
|
+
</wsse:UsernameToken>
|
9
|
+
</wsse:Security>
|
10
|
+
<ser:Profile>
|
11
|
+
<ser:Name><%= @name %></ser:Name>
|
12
|
+
<ser:Client><%= @clientname %></ser:Client>
|
13
|
+
<ser:Adapter><%= @adapter %></ser:Adapter>
|
14
|
+
<ser:Machine><%= @machine %></ser:Machine>
|
15
|
+
</ser:Profile>
|
16
|
+
</soapenv:Header>
|
17
|
+
<soapenv:Body>
|
18
|
+
<ser:ReconcileTaxHistory>
|
19
|
+
<ser:ReconcileTaxHistoryRequest>
|
20
|
+
<ser:CompanyCode><%= @companycode %></ser:CompanyCode>
|
21
|
+
<ser:LastDocId><%= @lastdocid %></ser:LastDocId>
|
22
|
+
<ser:Reconciled><%= @reconciled %></ser:Reconciled>
|
23
|
+
<ser:StartDate><%= @startdate %></ser:StartDate>
|
24
|
+
<ser:EndDate><%= @enddate %></ser:EndDate>
|
25
|
+
<ser:DocStatus><%= @docstatus %></ser:DocStatus>
|
26
|
+
<ser:DocType><%= @doctype %></ser:DocType>
|
27
|
+
<ser:LastDocCode><%= @lastdoccode %></ser:LastDocCode>
|
28
|
+
<ser:PageSize><%= @pagesize %></ser:PageSize>
|
29
|
+
</ser:ReconcileTaxHistoryRequest>
|
30
|
+
</ser:ReconcileTaxHistory>
|
31
|
+
</soapenv:Body>
|
32
|
+
</soapenv:Envelope>
|
@@ -0,0 +1,74 @@
|
|
1
|
+
//TransactionId
|
2
|
+
//ResultCode
|
3
|
+
//Summary
|
4
|
+
//Details
|
5
|
+
//HelpLink
|
6
|
+
//RefersTo
|
7
|
+
//Severity
|
8
|
+
//Source
|
9
|
+
//GetTaxResult/DocId
|
10
|
+
//GetTaxResult/DocType
|
11
|
+
//GetTaxResult/DocCode
|
12
|
+
//GetTaxResult/DocDate
|
13
|
+
//GetTaxResult/DocStatus
|
14
|
+
//GetTaxResult/Reconciled
|
15
|
+
//GetTaxResult/Timestamp
|
16
|
+
//GetTaxResult/TotalAmount
|
17
|
+
//GetTaxResult/TotalDiscount
|
18
|
+
//GetTaxResult/TotalExemption
|
19
|
+
//GetTaxResult/TotalTaxable
|
20
|
+
//GetTaxResult/TotalTax
|
21
|
+
//GetTaxResult/TotalTaxCalculated
|
22
|
+
//GetTaxResult/HashCode
|
23
|
+
//TaxLine/No
|
24
|
+
//TaxLine/TaxCode
|
25
|
+
//TaxLine/Taxability
|
26
|
+
//TaxLine/BoundaryLevel
|
27
|
+
//TaxLine/Exemption
|
28
|
+
//TaxLine/Discount
|
29
|
+
//TaxLine/Taxable
|
30
|
+
//TaxLine/Rate
|
31
|
+
//TaxLine/Tax
|
32
|
+
//TaxLine/TaxCalculated
|
33
|
+
//TaxLine/TaxIncluded
|
34
|
+
//TaxDetail/Country
|
35
|
+
//TaxDetail/Region
|
36
|
+
//TaxDetail/JurisType
|
37
|
+
//TaxDetail/TaxType
|
38
|
+
//TaxDetail/Base
|
39
|
+
//TaxLine/Taxable
|
40
|
+
//TaxDetail/Rate
|
41
|
+
//TaxDetail/Tax
|
42
|
+
//TaxDetail/TaxCalculated
|
43
|
+
//TaxDetail/NonTaxable
|
44
|
+
//TaxDetail/Exemption
|
45
|
+
//TaxDetail/JurisName
|
46
|
+
//TaxDetail/TaxName
|
47
|
+
//TaxDetail/TaxAuthorityType
|
48
|
+
//TaxDetail/TaxGroup
|
49
|
+
//TaxDetail/RateType
|
50
|
+
//TaxDetail/StateAssignedNo
|
51
|
+
//TaxLine/ExemptCertId
|
52
|
+
//TaxLine/TaxDate
|
53
|
+
//TaxLine/ReportingDate
|
54
|
+
//TaxLine/AccountingMethod
|
55
|
+
//TaxAddress/Address
|
56
|
+
//TaxAddress/AddressCode
|
57
|
+
//TaxAddress/City
|
58
|
+
//TaxAddress/Country
|
59
|
+
//TaxAddress/PostalCode
|
60
|
+
//TaxAddress/Region
|
61
|
+
//TaxAddress/TaxRegionId
|
62
|
+
//TaxAddress/JurisCode
|
63
|
+
//TaxAddress/Latitude
|
64
|
+
//TaxAddress/Longitude
|
65
|
+
//TaxAddress/GeocodeType
|
66
|
+
//TaxAddress/ValidateStatus
|
67
|
+
//TaxAddress/DistanceToBoundary
|
68
|
+
//GetTaxResult/Locked
|
69
|
+
//GetTaxResult/AdjustmentReason
|
70
|
+
//GetTaxResult/AdjustmentDescription
|
71
|
+
//GetTaxResult/Version
|
72
|
+
//GetTaxResult/TaxDate
|
73
|
+
//GetTaxResult/TaxSummary
|
74
|
+
//GetTaxResult/VolatileTaxRates
|