solidus_avatax_certified 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.env_example +4 -0
- data/.gitignore +16 -0
- data/.rspec +3 -0
- data/.ruby-version +1 -0
- data/GEM_VERSION +1 -0
- data/Gemfile +18 -0
- data/LICENSE +26 -0
- data/README.md +27 -0
- data/Rakefile +21 -0
- data/app/assets/javascripts/spree/backend/address_validator.js +84 -0
- data/app/assets/javascripts/spree/backend/solidus_avatax_certified.js +5 -0
- data/app/assets/javascripts/spree/backend/use_code_picker.js +51 -0
- data/app/assets/javascripts/spree/frontend/address_validator.js +87 -0
- data/app/assets/javascripts/spree/frontend/flash.js.coffee +26 -0
- data/app/assets/javascripts/spree/frontend/solidus_avatax_certified.js +4 -0
- data/app/assets/stylesheets/spree/backend/solidus_avatax_certified.css +4 -0
- data/app/assets/stylesheets/spree/frontend/solidus_avatax_certified.css +4 -0
- data/app/controllers/spree/admin/avalara_entity_use_codes_controller.rb +15 -0
- data/app/controllers/spree/admin/avatax_settings_controller.rb +82 -0
- data/app/controllers/spree/admin/users_controller_decorator.rb +11 -0
- data/app/controllers/spree/checkout_controller_decorator.rb +22 -0
- data/app/models/solidus_avatax_certified/address.rb +95 -0
- data/app/models/solidus_avatax_certified/avatax_log.rb +69 -0
- data/app/models/solidus_avatax_certified/line.rb +146 -0
- data/app/models/solidus_avatax_certified/preference_updater.rb +74 -0
- data/app/models/spree/address_decorator.rb +13 -0
- data/app/models/spree/adjustment_decorator.rb +10 -0
- data/app/models/spree/avalara_entity_use_code.rb +5 -0
- data/app/models/spree/avalara_preference.rb +72 -0
- data/app/models/spree/avalara_transaction.rb +181 -0
- data/app/models/spree/calculator/avalara_transaction.rb +86 -0
- data/app/models/spree/line_item_decorator.rb +25 -0
- data/app/models/spree/order_decorator.rb +85 -0
- data/app/models/spree/payment_decorator.rb +23 -0
- data/app/models/spree/refund_decorator.rb +30 -0
- data/app/models/spree/shipment_decorator.rb +28 -0
- data/app/models/spree/shipping_rate_decorator.rb +25 -0
- data/app/models/spree/user_decorator.rb +3 -0
- data/app/models/tax_svc.rb +143 -0
- data/app/overrides/spree/admin/shared/_configuration_menu.rb +10 -0
- data/app/overrides/spree/admin/users/sidebar.rb +8 -0
- data/app/overrides/spree/admin/users/validation_button.rb +6 -0
- data/app/views/spree/admin/avalara_entity_use_codes/_form.html.erb +27 -0
- data/app/views/spree/admin/avalara_entity_use_codes/edit.html.erb +16 -0
- data/app/views/spree/admin/avalara_entity_use_codes/index.html.erb +33 -0
- data/app/views/spree/admin/avalara_entity_use_codes/new.html.erb +17 -0
- data/app/views/spree/admin/avalara_entity_use_codes/show.html.erb +24 -0
- data/app/views/spree/admin/avatax_settings/edit.html.erb +183 -0
- data/app/views/spree/admin/avatax_settings/ping_my_service.js.erb +8 -0
- data/app/views/spree/admin/avatax_settings/show.html.erb +124 -0
- data/app/views/spree/admin/avatax_settings/validate_address.js.erb +8 -0
- data/app/views/spree/admin/users/avalara_information.html.erb +53 -0
- data/app/views/spree/checkout/_address.html.erb +35 -0
- data/app/views/spree/checkout/_address_validator_button.html.erb +3 -0
- data/bin/rails +7 -0
- data/circle.yml +17 -0
- data/config/initializers/avatax.rb +5 -0
- data/config/initializers/spree.rb +3 -0
- data/config/locales/en.yml +35 -0
- data/config/routes.rb +18 -0
- data/db/migrate/20160624154205_create_spree_avalara_transactions.rb +9 -0
- data/db/migrate/20160624154423_create_spree_avalara_entity_use_codes.rb +9 -0
- data/db/migrate/20160624155217_add_columns_to_spree_users.rb +6 -0
- data/db/migrate/20160628200504_create_spree_avalara_preferences.rb +10 -0
- data/db/migrate/20160805193512_add_vat_id_to_spree_users.rb +5 -0
- data/db/seeds.rb +1 -0
- data/lib/generators/solidus_avatax_certified/install/install_generator.rb +45 -0
- data/lib/solidus_avatax_certified/engine.rb +22 -0
- data/lib/solidus_avatax_certified/preference_seeder.rb +69 -0
- data/lib/solidus_avatax_certified/seeder.rb +117 -0
- data/lib/solidus_avatax_certified.rb +2 -0
- data/lib/tasks/load_seeds.rake +15 -0
- data/setup.md +12 -0
- data/solidus_avatax_certified.gemspec +42 -0
- data/spec/controllers/spree/admin/avalara_entity_use_codes_controller_spec.rb +53 -0
- data/spec/controllers/spree/admin/avatax_settings_controller_spec.rb +67 -0
- data/spec/factories/avalara_entity_use_code_factory.rb +6 -0
- data/spec/factories/avalara_factories.rb +76 -0
- data/spec/factories/avalara_order_factory.rb +62 -0
- data/spec/factories/avalara_preference_factory.rb +7 -0
- data/spec/factories/avalara_shipment_factory.rb +27 -0
- data/spec/factories/avalara_shipping_method_factory.rb +23 -0
- data/spec/factories/tax_rate_factory.rb +19 -0
- data/spec/features/certification_spec.rb +77 -0
- data/spec/features/checkout_spec.rb +156 -0
- data/spec/features/vat_spec.rb +153 -0
- data/spec/models/solidus_avatax_certified/address_spec.rb +80 -0
- data/spec/models/solidus_avatax_certified/avatax_log_spec.rb +97 -0
- data/spec/models/solidus_avatax_certified/line_spec.rb +100 -0
- data/spec/models/spree/address_decorator_spec.rb +44 -0
- data/spec/models/spree/adjustment_decorator_spec.rb +25 -0
- data/spec/models/spree/avalara_entity_use_code_spec.rb +5 -0
- data/spec/models/spree/avalara_preference_spec.rb +173 -0
- data/spec/models/spree/avalara_transaction_spec.rb +203 -0
- data/spec/models/spree/calculator/avalara_transaction_spec.rb +129 -0
- data/spec/models/spree/line_item_decorator_spec.rb +33 -0
- data/spec/models/spree/order_decorator_spec.rb +164 -0
- data/spec/models/spree/payment_decorator_spec.rb +117 -0
- data/spec/models/spree/refund_decorator_spec.rb +81 -0
- data/spec/models/spree/shipment_decorator_spec.rb +36 -0
- data/spec/models/spree/shipping_rate_decorator_spec.rb +17 -0
- data/spec/models/spree/user_decorator_spec.rb +5 -0
- data/spec/spec_helper.rb +81 -0
- data/spec/support/avatax_config_preferences.rb +8 -0
- data/spec/support/vcr.rb +9 -0
- data/spec/vcr/Certification/Exempt_sales_should_be_reflected_in_the_test_data_through_use_of_ExemptionNo_or_CustomerUsageType_/does_not_add_additional_tax.yml +276 -0
- data/spec/vcr/Certification/Transactions_have_been_committed_/commits_an_order.yml +336 -0
- data/spec/vcr/Certification/Transactions_have_been_voided/cancelled_/should_be_successful/returns_ResultCode_with_value_Success.yml +522 -0
- data/spec/vcr/Certification/return_orders/_commit_avatax_final/should_commit_avatax_final.yml +404 -0
- data/spec/vcr/Checkout/complete_order/has_tax_and_shipping_tax_adjustments_on_page.yml +72 -0
- data/spec/vcr/Checkout/complete_order/order_line_items_and_shipments_have_an_additional_tax_total_sum_of_0_40.yml +72 -0
- data/spec/vcr/Checkout/payment/tax_included/has_tax_and_shipping_tax_adjustments_on_page.yml +72 -0
- data/spec/vcr/Checkout/payment/tax_included/order_line_items_and_shipments_have_an_included_tax_total_sum_of_0_38.yml +72 -0
- data/spec/vcr/Checkout/payment/tax_not_included/on_payment_page/has_tax_and_shipping_tax_adjustments_on_page.yml +72 -0
- data/spec/vcr/Checkout/payment/tax_not_included/on_payment_page/order_line_items_and_shipments_and_shipments_have_an_additional_tax_total_sum_of_0_40.yml +72 -0
- data/spec/vcr/Checkout/payment/with_promotion/tax_not_included/has_adjusted_tax_amount_after_promotion_applied.yml +73 -0
- data/spec/vcr/SolidusAvataxCertified_Address/_validate/fails_when_information_is_incorrect.yml +54 -0
- data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_computing_a_line_item/when_tax_is_included_in_price/should_be_equal_to_the_item_pre-tax_total_rate.yml +137 -0
- data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_computing_a_line_item/when_tax_is_included_in_price/should_be_equal_to_the_previous_included_tax_total_is_order_is_at_address.yml +138 -0
- data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_computing_a_line_item/when_tax_is_included_in_price/should_be_equal_to_the_previous_included_tax_total_is_order_is_at_cart.yml +137 -0
- data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_computing_a_line_item/when_tax_is_not_included_in_price/should_be_equal_to_the_item_pre-tax_total_rate.yml +136 -0
- data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_computing_a_line_item/when_tax_is_not_included_in_price/should_be_equal_to_the_previous_additional_tax_total_if_order_is_at_address.yml +137 -0
- data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_computing_a_line_item/when_tax_is_not_included_in_price/should_be_equal_to_the_previous_additional_tax_total_if_order_is_at_cart.yml +136 -0
- data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_computing_a_line_item/when_tax_is_not_included_in_price/should_be_equal_to_the_previous_tax_total_if_preference_tax_calculation_is_false.yml +136 -0
- data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_computing_a_line_item/when_tax_is_not_included_in_price/when_the_line_item_is_discounted/should_be_equal_to_the_items_pre-tax_total_rate.yml +276 -0
- data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_computing_a_line_item/when_tax_is_not_included_in_price/when_the_order_is_discounted/should_be_equal_to_the_items_pre-tax_total_rate.yml +206 -0
- data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_given_a_shipment/computing_normal_shipment/should_be_equal_4_0.yml +141 -0
- data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_given_a_shipment/when_tax_is_included_in_price/should_be_equal_to_3_85.yml +143 -0
- data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_given_a_shipment/with_promotion/should_equal_3_96.yml +210 -0
- data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_given_an_order/when_computing_an_order/should_raise_error.yml +136 -0
- data/spec/vcr/Spree_Order/_cancel_avalara/should_receive_cancel_order_when_cancel_avalara_is_called.yml +136 -0
- data/spec/vcr/Spree_Order/_cancel_avalara/state_machine_event_cancel/should_recieve_cancel_avalara_when_event_cancel_is_called.yml +259 -0
- data/spec/vcr/Spree_Order/_validate_ship_address/should_return_false_if_validation_failed.yml +54 -0
- data/spec/vcr/Spree_Order/_validate_ship_address/should_return_the_response_if_refuse_checkout_on_address_validation_is_disabled.yml +59 -0
- data/spec/vcr/Spree_Order/_validate_ship_address/should_return_the_response_if_validation_is_success.yml +59 -0
- data/spec/vcr/Spree_Payment/_avalara_finalize/should_update_the_amount_to_be_the_order_total.yml +136 -0
- data/spec/vcr/Spree_Payment/_cancel_avalara/committed_order/should_be_successful/ResultCode_returns_Success.yml +205 -0
- data/spec/vcr/Spree_Payment/_cancel_avalara/uncommitted_order/should_fail/ResultCode_returns_Error.yml +191 -0
- data/spec/vcr/Spree_Payment/_purchase_/receive_avalara_finalize.yml +136 -0
- data/spec/vcr/Spree_Payment/_void_transaction_/receive_cancel_avalara.yml +136 -0
- data/spec/vcr/Spree_Refund/full_refund/returns_correct_tax_calculations.yml +270 -0
- data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_another_EU_country/Seller_does_not_have_Nexus_Jurisdition_Registered/TotalTax_is_equal_to_order_included_tax_total.yml +137 -0
- data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_another_EU_country/Seller_does_not_have_Nexus_Jurisdition_Registered/origin_country_tax_is_returned.yml +138 -0
- data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_another_EU_country/Seller_does_not_have_Nexus_Jurisdition_Registered/with_BusinessIdentificationNo/origin_country_zero_rate_is_returned.yml +143 -0
- data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_another_EU_country/Seller_has_Nexus_Jurisdition_Registered/TotalTax_is_equal_to_order_included_tax_total.yml +139 -0
- data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_another_EU_country/Seller_has_Nexus_Jurisdition_Registered/destination_country_tax_is_returned.yml +139 -0
- data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_another_EU_country/Seller_has_Nexus_Jurisdition_Registered/with_BusinessIdentificationNo/origin_country_zero_rate_is_returned.yml +144 -0
- data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_same_EU_country/TotalTax_is_equal_to_order_included_tax_total.yml +137 -0
- data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_same_EU_country/tax_detail_country_equals_to_IT.yml +138 -0
- data/spec/vcr/VAT/Seller_in_EU_country_Buyer_is_outside_EU/Seller_does_not_have_Nexus_Jurisdition_registered/TotalTax_is_equal_to_order_included_tax_total.yml +137 -0
- data/spec/vcr/VAT/Seller_in_EU_country_Buyer_is_outside_EU/Seller_does_not_have_Nexus_Jurisdition_registered/tax_detail_country_equals_to_IT.yml +137 -0
- data/spec/vcr/VAT/Seller_in_EU_country_Buyer_is_outside_EU/Seller_does_not_have_Nexus_Jurisdition_registered/total_tax_is_0_since_utah_is_not_in_jurisdiction.yml +137 -0
- data/spec/vcr/VAT/Seller_in_EU_country_Buyer_is_outside_EU/Seller_does_not_have_Nexus_Jurisdition_registered/with_BusinessIdentificationNo/origin_country_zero_rate_is_returned.yml +138 -0
- data/spec/vcr/VAT/Seller_in_EU_country_Buyer_is_outside_EU/Seller_has_Nexus_Jurisdiction_Registered/TotalTax_is_equal_to_order_included_tax_total.yml +195 -0
- data/spec/vcr/VAT/Seller_in_EU_country_Buyer_is_outside_EU/Seller_has_Nexus_Jurisdiction_Registered/tax_detail_region_equals_to_AL.yml +195 -0
- data/spec/vcr/address_validation_success.yml +59 -0
- data/spec/vcr/capture_with_customer_usage_type.yml +72 -0
- data/spec/vcr/order_cancel.yml +258 -0
- data/spec/vcr/order_capture.yml +72 -0
- data/spec/vcr/order_capture_finalize.yml +141 -0
- data/spec/vcr/order_capture_with_promo.yml +73 -0
- data/spec/vcr/order_return_capture.yml +68 -0
- data/spec/vcr/tax_included_order.yml +73 -0
- metadata +581 -0
@@ -0,0 +1,195 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://development.avalara.net/1.0/address/validate?City=Montgomery&Country=US&Line1=915%20S%20Jackson%20St&Line2=&PostalCode=36104&Region=AL
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- private
|
25
|
+
Content-Type:
|
26
|
+
- text/json; charset=utf-8
|
27
|
+
Vary:
|
28
|
+
- Accept-Encoding
|
29
|
+
X-Aspnet-Version:
|
30
|
+
- 4.0.30319
|
31
|
+
X-Powered-By:
|
32
|
+
- ASP.NET
|
33
|
+
Date:
|
34
|
+
- Thu, 23 Mar 2017 19:40:51 GMT
|
35
|
+
Content-Length:
|
36
|
+
- '313'
|
37
|
+
Set-Cookie:
|
38
|
+
- TS017f1821=01a8ddc44e3da45199cfc0380054a8eeb582533320f2e14f783b8cd92335a45c943fc7be9cfe9128a480f936519a87d42ffb21c99c;
|
39
|
+
Path=/
|
40
|
+
body:
|
41
|
+
encoding: ASCII-8BIT
|
42
|
+
string: |
|
43
|
+
{
|
44
|
+
"ResultCode": "Success",
|
45
|
+
"Address": {
|
46
|
+
"Line1": "915 S Jackson St",
|
47
|
+
"City": "Montgomery",
|
48
|
+
"Region": "AL",
|
49
|
+
"PostalCode": "36104-5716",
|
50
|
+
"Country": "US",
|
51
|
+
"County": "MONTGOMERY",
|
52
|
+
"FipsCode": "0110151000",
|
53
|
+
"CarrierRoute": "C037",
|
54
|
+
"PostNet": "361045716999",
|
55
|
+
"AddressType": "H"}
|
56
|
+
}
|
57
|
+
http_version:
|
58
|
+
recorded_at: Thu, 23 Mar 2017 19:40:53 GMT
|
59
|
+
- request:
|
60
|
+
method: post
|
61
|
+
uri: https://development.avalara.net/1.0/tax/get
|
62
|
+
body:
|
63
|
+
encoding: UTF-8
|
64
|
+
string: '{"DocCode":"R697941853","DocDate":"2017-03-23","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"915
|
65
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"1","Line1":"150
|
66
|
+
Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
67
|
+
#14 - 759","TaxCode":"PC030000","ItemCode":"SKU-14","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
|
68
|
+
Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
69
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R697941853","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
70
|
+
headers:
|
71
|
+
Accept:
|
72
|
+
- "*/*; q=0.5, application/xml"
|
73
|
+
Accept-Encoding:
|
74
|
+
- gzip, deflate
|
75
|
+
Authorization:
|
76
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
77
|
+
Content-Type:
|
78
|
+
- application/json
|
79
|
+
Content-Length:
|
80
|
+
- '1112'
|
81
|
+
User-Agent:
|
82
|
+
- Ruby
|
83
|
+
response:
|
84
|
+
status:
|
85
|
+
code: 200
|
86
|
+
message: OK
|
87
|
+
headers:
|
88
|
+
Cache-Control:
|
89
|
+
- private
|
90
|
+
Content-Type:
|
91
|
+
- text/json; charset=utf-8
|
92
|
+
Content-Encoding:
|
93
|
+
- gzip
|
94
|
+
Vary:
|
95
|
+
- Accept-Encoding
|
96
|
+
X-Aspnet-Version:
|
97
|
+
- 4.0.30319
|
98
|
+
X-Powered-By:
|
99
|
+
- ASP.NET
|
100
|
+
Date:
|
101
|
+
- Thu, 23 Mar 2017 19:40:51 GMT
|
102
|
+
Content-Length:
|
103
|
+
- '648'
|
104
|
+
Set-Cookie:
|
105
|
+
- TS017f1821=01a8ddc44e7d95fd7f7d172d0073d05d766a4f3f616e39ca6a438e68cad95e612311985d9fd379ec5429277568b3edb8c6f22c5b5c;
|
106
|
+
Path=/
|
107
|
+
body:
|
108
|
+
encoding: ASCII-8BIT
|
109
|
+
string: !binary |-
|
110
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
111
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
112
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
113
|
+
6Gk1NZ+++vThg4f7uwf37+kXT7OWv9jb2X2wvXNve4+/eFMs8qbNFqvwqze7
|
114
|
+
Dx/t7zy6vzfeeUBAdnZ/ihtXbVYeL6r1skXz3YfjvX37+dOimZpvduynp+/y
|
115
|
+
xaotqmX48ZvsXTYpGZ8QCn2BD3fGDz71PzvJyum6pBHMgm+zd8+LZd7QZ99L
|
116
|
+
iC7440VFf320u/38TFsYgrw82bm3Q49+nE2Ksmiv8U1br3N8+oTQn2X19fP8
|
117
|
+
Mi/xxfFsVitl++PojxdAZUwPx5/u4aNXhDH+3hnv7FPXppl8dO9A/+wOzn7x
|
118
|
+
NG+zorTDO0F3NaP81Ws0eZVfKEbHz/H3d9Z10by5XnGfr1uCaD81VNjZxUcE
|
119
|
+
+2ugyoBeZAtud/z8+MnxF8f4nJq5T9PXb47fnKZvjn/vj35J8v3klyQjwtxN
|
120
|
+
zN72s1f6jkHp2Svqjh79+EcT896oMiA3BbecmO8n0kSJ6cRIP6A/P3q4ez99
|
121
|
+
nX4nm75tqmX6ugVU/dog/pT0Bz4+0Un7olq2F9UiJ3rg0y5pXlakbkrz8r1P
|
122
|
+
d3dY+LsUI7zkozOm/d7O/b0HDx/iGx6seX9nd3dn9/4uyCKcpsjhu937O+nL
|
123
|
+
YjrNZkVZMjL6pXmZKW7QflZWdb6c8sR4SJ+9wQch0oQM9Ucf95HcechfBDgS
|
124
|
+
CEfsiBb+Jcn/Aw2vI8HTBQAA
|
125
|
+
http_version:
|
126
|
+
recorded_at: Thu, 23 Mar 2017 19:40:53 GMT
|
127
|
+
- request:
|
128
|
+
method: post
|
129
|
+
uri: https://development.avalara.net/1.0/tax/get
|
130
|
+
body:
|
131
|
+
encoding: UTF-8
|
132
|
+
string: '{"DocCode":"R697941853","DocDate":"2017-03-23","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"915
|
133
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"1","Line1":"150
|
134
|
+
Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
135
|
+
#14 - 759","TaxCode":"PC030000","ItemCode":"SKU-14","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
|
136
|
+
Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
137
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R697941853","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
138
|
+
headers:
|
139
|
+
Accept:
|
140
|
+
- "*/*; q=0.5, application/xml"
|
141
|
+
Accept-Encoding:
|
142
|
+
- gzip, deflate
|
143
|
+
Authorization:
|
144
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
145
|
+
Content-Type:
|
146
|
+
- application/json
|
147
|
+
Content-Length:
|
148
|
+
- '1112'
|
149
|
+
User-Agent:
|
150
|
+
- Ruby
|
151
|
+
response:
|
152
|
+
status:
|
153
|
+
code: 200
|
154
|
+
message: OK
|
155
|
+
headers:
|
156
|
+
Cache-Control:
|
157
|
+
- private
|
158
|
+
Content-Type:
|
159
|
+
- text/json; charset=utf-8
|
160
|
+
Content-Encoding:
|
161
|
+
- gzip
|
162
|
+
Vary:
|
163
|
+
- Accept-Encoding
|
164
|
+
X-Aspnet-Version:
|
165
|
+
- 4.0.30319
|
166
|
+
X-Powered-By:
|
167
|
+
- ASP.NET
|
168
|
+
Date:
|
169
|
+
- Thu, 23 Mar 2017 19:40:52 GMT
|
170
|
+
Content-Length:
|
171
|
+
- '650'
|
172
|
+
Set-Cookie:
|
173
|
+
- TS017f1821=01a8ddc44ebc5804147cc28e8bc8d40af3f5f9291c8b712f73196be81ff810927714e803ac0d569056583d1b90700262a40fc2cbc9;
|
174
|
+
Path=/
|
175
|
+
body:
|
176
|
+
encoding: ASCII-8BIT
|
177
|
+
string: !binary |-
|
178
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
179
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
180
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
181
|
+
6Gk1NZ+++vThg4f7uwf37+kXT7OWv9jb2X2wvXNve4+/eFMs8qbNFqvwqze7
|
182
|
+
Dx/t7zy6vzf+9N7+we6Dg5/ixlWblceLar1s0Xz34Xhv337+tGim5psd++np
|
183
|
+
u3yxaotqGX78JnuXTUrGJ4RCX+DDnfGDT/3PTrJyui5pBLPg2+zd82KZN/TZ
|
184
|
+
9xKiC/54UdFfH+1uPz/TFoYgL0927u3Qox9nk6Is2mt809brHJ8+IfRnWX39
|
185
|
+
PL/MS3xxPJvVStn+OPrjBVAZ08Pxp3v46BVhjL93xjv71LVpJh/dO9A/u4Oz
|
186
|
+
XzzN26wo7fBO0F3NKH/1Gk1e5ReK0fFz/P2ddV00b65X3OfrliDaTw0Vdnbx
|
187
|
+
EcH+GqgyoBfZgtsdPz9+cvzFMT6nZu7T9PWb4zen6Zvj3/ujX5J8P/klyYgw
|
188
|
+
dxOzt/3slb5jUHr2irqjRz/+0cS8N6oMyE3BLSfm+4k0UWI6MdIP6M+PHu7e
|
189
|
+
T1+n38mmb5tqmb5uAVW/Nog/Jf2Bj0900r6olu1FtciJHvi0S5qXFamb0rx8
|
190
|
+
79PdHRb+LsUIL/nojGm/t3N/78HDh/iGB2ve39nd3dm9vwuyCKcpcvhu9/5O
|
191
|
+
+rKYTrNZUZaMjH5pXmaKG7SflVWdL6c8MR7SZ2/wQYg0IUP90cd9JHce8hcB
|
192
|
+
jgTCETuihX9J8v8AgnSEOtMFAAA=
|
193
|
+
http_version:
|
194
|
+
recorded_at: Thu, 23 Mar 2017 19:40:54 GMT
|
195
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,195 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://development.avalara.net/1.0/address/validate?City=Montgomery&Country=US&Line1=915%20S%20Jackson%20St&Line2=&PostalCode=36104&Region=AL
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- private
|
25
|
+
Content-Type:
|
26
|
+
- text/json; charset=utf-8
|
27
|
+
Vary:
|
28
|
+
- Accept-Encoding
|
29
|
+
X-Aspnet-Version:
|
30
|
+
- 4.0.30319
|
31
|
+
X-Powered-By:
|
32
|
+
- ASP.NET
|
33
|
+
Date:
|
34
|
+
- Thu, 23 Mar 2017 19:40:48 GMT
|
35
|
+
Content-Length:
|
36
|
+
- '313'
|
37
|
+
Set-Cookie:
|
38
|
+
- TS017f1821=01a8ddc44e53be0115ad19b6d359aea3ce3703aa446cc89350c97116d5233c3d9a02888385805393c02a9672eb4acf2c4a4a1d0320;
|
39
|
+
Path=/
|
40
|
+
body:
|
41
|
+
encoding: ASCII-8BIT
|
42
|
+
string: |
|
43
|
+
{
|
44
|
+
"ResultCode": "Success",
|
45
|
+
"Address": {
|
46
|
+
"Line1": "915 S Jackson St",
|
47
|
+
"City": "Montgomery",
|
48
|
+
"Region": "AL",
|
49
|
+
"PostalCode": "36104-5716",
|
50
|
+
"Country": "US",
|
51
|
+
"County": "MONTGOMERY",
|
52
|
+
"FipsCode": "0110151000",
|
53
|
+
"CarrierRoute": "C037",
|
54
|
+
"AddressType": "H",
|
55
|
+
"PostNet": "361045716999"}
|
56
|
+
}
|
57
|
+
http_version:
|
58
|
+
recorded_at: Thu, 23 Mar 2017 19:40:50 GMT
|
59
|
+
- request:
|
60
|
+
method: post
|
61
|
+
uri: https://development.avalara.net/1.0/tax/get
|
62
|
+
body:
|
63
|
+
encoding: UTF-8
|
64
|
+
string: '{"DocCode":"R462698536","DocDate":"2017-03-23","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"915
|
65
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"1","Line1":"150
|
66
|
+
Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
67
|
+
#13 - 494","TaxCode":"PC030000","ItemCode":"SKU-13","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
|
68
|
+
Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
69
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R462698536","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
70
|
+
headers:
|
71
|
+
Accept:
|
72
|
+
- "*/*; q=0.5, application/xml"
|
73
|
+
Accept-Encoding:
|
74
|
+
- gzip, deflate
|
75
|
+
Authorization:
|
76
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
77
|
+
Content-Type:
|
78
|
+
- application/json
|
79
|
+
Content-Length:
|
80
|
+
- '1112'
|
81
|
+
User-Agent:
|
82
|
+
- Ruby
|
83
|
+
response:
|
84
|
+
status:
|
85
|
+
code: 200
|
86
|
+
message: OK
|
87
|
+
headers:
|
88
|
+
Cache-Control:
|
89
|
+
- private
|
90
|
+
Content-Type:
|
91
|
+
- text/json; charset=utf-8
|
92
|
+
Content-Encoding:
|
93
|
+
- gzip
|
94
|
+
Vary:
|
95
|
+
- Accept-Encoding
|
96
|
+
X-Aspnet-Version:
|
97
|
+
- 4.0.30319
|
98
|
+
X-Powered-By:
|
99
|
+
- ASP.NET
|
100
|
+
Date:
|
101
|
+
- Thu, 23 Mar 2017 19:40:49 GMT
|
102
|
+
Content-Length:
|
103
|
+
- '650'
|
104
|
+
Set-Cookie:
|
105
|
+
- TS017f1821=01a8ddc44e88b85f440ad6b34a65fa86b97de80967357ff8f12e9cc64b4604ad85a4c6ea23a9f8885037fe7ae6175b9a3fd0f3bef5;
|
106
|
+
Path=/
|
107
|
+
body:
|
108
|
+
encoding: ASCII-8BIT
|
109
|
+
string: !binary |-
|
110
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
111
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
112
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
113
|
+
6Gk1NZ++2v9079OHB/fvfapfPM1a/mJvZ/fB9s697b17+OJNscibNluswq/e
|
114
|
+
7D58tL/zaP/h+MGnO/sP7z/8KW5ctVl5vKjWyxbNdx+O9/bt50+LZmq+2bGf
|
115
|
+
nr7LF6u2qJbhx2+yd9mkZHxCKPQFPtyhfv3PTrJyui5pBLPg2+zd82KZN/TZ
|
116
|
+
9xKiC/54UdFfH+1uPz/TFoYgL0927u3Qox9nk6Is2mt809brHJ8+IfRnWX39
|
117
|
+
PL/MS3xxPJvVStn+OPrjBVAZ08Pxp3v46BVhjL93xjv71LVpJh/dO9A/u4Oz
|
118
|
+
XzzN26wo7fBO0F3NKH/1Gk1e5ReK0fFz/P2ddV00b65X3OfrliDaTw0Vdnbx
|
119
|
+
EcH+GqgyoBfZgtsdPz9+cvzFMT6nZu7T9PWb4zen6Zvj3/ujX5J8P/klyYgw
|
120
|
+
dxOzt/3slb5jUHr2irqjRz/+0cS8N6oMyE3BLSfm+4k0UWI6MdIP6M+PHu7e
|
121
|
+
T1+n38mmb5tqmb5uAVW/Nog/Jf2Bj0900r6olu1FtciJHvi0S5qXFamb0rx8
|
122
|
+
79PdHRb+LsUIL/nojGm/t3N/78HDh/iGB2ve39nd3dm9vwuyCKcpcvhu9/5O
|
123
|
+
+rKYTrNZUZaMjH5pXmaKG7SflVWdL6c8MR7SZ2/wQYg0IUP90cd9JHce8hcB
|
124
|
+
jgTCETuihX9J8v8AELJIcNMFAAA=
|
125
|
+
http_version:
|
126
|
+
recorded_at: Thu, 23 Mar 2017 19:40:51 GMT
|
127
|
+
- request:
|
128
|
+
method: post
|
129
|
+
uri: https://development.avalara.net/1.0/tax/get
|
130
|
+
body:
|
131
|
+
encoding: UTF-8
|
132
|
+
string: '{"DocCode":"R462698536","DocDate":"2017-03-23","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"915
|
133
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"1","Line1":"150
|
134
|
+
Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
135
|
+
#13 - 494","TaxCode":"PC030000","ItemCode":"SKU-13","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
|
136
|
+
Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
137
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R462698536","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
138
|
+
headers:
|
139
|
+
Accept:
|
140
|
+
- "*/*; q=0.5, application/xml"
|
141
|
+
Accept-Encoding:
|
142
|
+
- gzip, deflate
|
143
|
+
Authorization:
|
144
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
145
|
+
Content-Type:
|
146
|
+
- application/json
|
147
|
+
Content-Length:
|
148
|
+
- '1112'
|
149
|
+
User-Agent:
|
150
|
+
- Ruby
|
151
|
+
response:
|
152
|
+
status:
|
153
|
+
code: 200
|
154
|
+
message: OK
|
155
|
+
headers:
|
156
|
+
Cache-Control:
|
157
|
+
- private
|
158
|
+
Content-Type:
|
159
|
+
- text/json; charset=utf-8
|
160
|
+
Content-Encoding:
|
161
|
+
- gzip
|
162
|
+
Vary:
|
163
|
+
- Accept-Encoding
|
164
|
+
X-Aspnet-Version:
|
165
|
+
- 4.0.30319
|
166
|
+
X-Powered-By:
|
167
|
+
- ASP.NET
|
168
|
+
Date:
|
169
|
+
- Thu, 23 Mar 2017 19:40:50 GMT
|
170
|
+
Content-Length:
|
171
|
+
- '652'
|
172
|
+
Set-Cookie:
|
173
|
+
- TS017f1821=01a8ddc44e704905f8444d6b19a0d7a322b249c5983a8e981865b28b3297a55aec0768641c482c12726f915e721c5d358ab2ad2742;
|
174
|
+
Path=/
|
175
|
+
body:
|
176
|
+
encoding: ASCII-8BIT
|
177
|
+
string: !binary |-
|
178
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
179
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
180
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
181
|
+
6Gk1NZ++2v9079OHB/fvfapfPM1a/mJvZ/fB9s697b17+OJNscibNluswq/e
|
182
|
+
7D58tL/z6P7O+N7+pw/vPbz/U9y4arPyeFGtly2a7z4c7+3bz58WzdR8s2M/
|
183
|
+
PX2XL1ZtUS3Dj99k77JJyfiEUOgLfLgzfsB4m89OsnK6LmkEs+Db7N3zYpk3
|
184
|
+
9Nn3EqIL/nhR0V8f7W4/P9MWhiAvT3bu7dCjH2eToizaa3zT1uscnz4h9GdZ
|
185
|
+
ff08v8xLfHE8m9VK2f44+uMFUBnTw/Gne/joFWGMv3fGO/vUtWkmH9070D+7
|
186
|
+
g7NfPM3brCjt8E7QXc0of/UaTV7lF4rR8XP8/Z11XTRvrlfc5+uWINpPDRV2
|
187
|
+
dvERwf4aqDKgF9mC2x0/P35y/MUxPqdm7tP09ZvjN6fpm+Pf+6Nfknw/+SXJ
|
188
|
+
iDB3E7O3/eyVvmNQevaKuqNHP/7RxLw3qgzITcEtJ+b7iTRRYjox0g/oz48e
|
189
|
+
7t5PX6ffyaZvm2qZvm4BVb82iD8l/YGPT3TSvqiW7UW1yIke+LRLmpcVqZvS
|
190
|
+
vHzv090dFv4uxQgv+eiMab+3c3/vwcOH+IYHa97f2d3d2b2/C7IIpyly+G73
|
191
|
+
/k76sphOs1lRloyMfmleZoobtJ+VVZ0vpzwxHtJnb/BBiDQhQ/3Rx30kdx7y
|
192
|
+
FwGOBMIRO6KFf0ny/wCXbUrZ0wUAAA==
|
193
|
+
http_version:
|
194
|
+
recorded_at: Thu, 23 Mar 2017 19:40:51 GMT
|
195
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://development.avalara.net/1.0/address/validate?City=Tuscaloosa&Country=US&Line1=220%20Paul%20W%20Bryant%20Dr&Line2=&PostalCode=36104&Region=AL
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- private
|
25
|
+
Content-Type:
|
26
|
+
- text/json; charset=utf-8
|
27
|
+
Vary:
|
28
|
+
- Accept-Encoding
|
29
|
+
X-Aspnet-Version:
|
30
|
+
- 4.0.30319
|
31
|
+
X-Powered-By:
|
32
|
+
- ASP.NET
|
33
|
+
Date:
|
34
|
+
- Thu, 23 Mar 2017 18:10:54 GMT
|
35
|
+
Content-Length:
|
36
|
+
- '314'
|
37
|
+
Set-Cookie:
|
38
|
+
- TS017f1821=01a8ddc44ed319cbbe93799858e6b40f6c1ba0f06971f0d433c43c576a1507e8bf78984d29bbcedb05e4db9f7076f24389ed2f5ef4;
|
39
|
+
Path=/
|
40
|
+
body:
|
41
|
+
encoding: ASCII-8BIT
|
42
|
+
string: |
|
43
|
+
{
|
44
|
+
"ResultCode": "Success",
|
45
|
+
"Address": {
|
46
|
+
"Line1": "220 Paul W Bryant Dr E",
|
47
|
+
"City": "Tuscaloosa",
|
48
|
+
"Region": "AL",
|
49
|
+
"PostalCode": "35401-2007",
|
50
|
+
"Country": "US",
|
51
|
+
"County": "TUSCALOOSA",
|
52
|
+
"FipsCode": "0112577256",
|
53
|
+
"CarrierRoute": "C009",
|
54
|
+
"PostNet": "354012007206",
|
55
|
+
"AddressType": "S"}
|
56
|
+
}
|
57
|
+
http_version:
|
58
|
+
recorded_at: Thu, 23 Mar 2017 18:10:56 GMT
|
59
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,72 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://development.avalara.net/1.0/tax/get
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"DocCode":"R430951651","DocDate":"2017-03-23","Discount":"0.0","Commit":false,"DocType":"SalesInvoice","Addresses":[{"AddressCode":"Orig","Line1":"915
|
9
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"A
|
10
|
+
Different Road","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"2","Line1":"1600
|
11
|
+
Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
12
|
+
#1 - 3100","TaxCode":"PC030000","ItemCode":"SKU-1","Qty":1,"Amount":10.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":"A","Discounted":false,"TaxIncluded":false},{"LineNo":"1-FR","ItemCode":"Avalara
|
13
|
+
Ground","Qty":1,"Amount":5.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":"A","Description":"Shipping
|
14
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":false}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":"A","ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R430951651","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
15
|
+
headers:
|
16
|
+
Accept:
|
17
|
+
- "*/*; q=0.5, application/xml"
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip, deflate
|
20
|
+
Authorization:
|
21
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
22
|
+
Content-Type:
|
23
|
+
- application/json
|
24
|
+
Content-Length:
|
25
|
+
- '1142'
|
26
|
+
User-Agent:
|
27
|
+
- Ruby
|
28
|
+
response:
|
29
|
+
status:
|
30
|
+
code: 200
|
31
|
+
message: OK
|
32
|
+
headers:
|
33
|
+
Cache-Control:
|
34
|
+
- private
|
35
|
+
Content-Type:
|
36
|
+
- text/json; charset=utf-8
|
37
|
+
Content-Encoding:
|
38
|
+
- gzip
|
39
|
+
Vary:
|
40
|
+
- Accept-Encoding
|
41
|
+
X-Aspnet-Version:
|
42
|
+
- 4.0.30319
|
43
|
+
X-Powered-By:
|
44
|
+
- ASP.NET
|
45
|
+
Date:
|
46
|
+
- Thu, 23 Mar 2017 17:48:13 GMT
|
47
|
+
Content-Length:
|
48
|
+
- '645'
|
49
|
+
Set-Cookie:
|
50
|
+
- TS017f1821=01a8ddc44eecc65cc37c8de42ccccc40896e495851c97bce24004bab56ab45232e19109ca5ebbe6cad2d7baaf4a1280d0e93a233a4;
|
51
|
+
Path=/
|
52
|
+
body:
|
53
|
+
encoding: ASCII-8BIT
|
54
|
+
string: !binary |-
|
55
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
56
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
57
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
58
|
+
6Gk1NZ++2r+38/D+7qf3d/WLp1nLX+zt7D7Y3rm3vXcPX7wpFnnTZotV+NWb
|
59
|
+
3QeP9g8e7d4b37sn7ao2K48X1XrZouXuffvh06KZmo937Ken7/LFqi2qJT72
|
60
|
+
Wr/J3mWTkhFxjenD3gcnWTldl4TzzH2VvXteLPOGPvheQmTAHy8q+uuj3e3n
|
61
|
+
Z9rCjP/lyc69HXr042xSlEV7jW/aep3j0yeE9Syrr5/nl3mJL36qWDGiIe4M
|
62
|
+
oT9IgPTG8Yow5T/GO/vUK39Gbfgj/T0+oqd5mxWlHdMJeqkZz69eo8mr/EIx
|
63
|
+
OX6Ov7+zrovmzfWKe3vdEjj7qRn6Dk85wX4vDBnEi2zBjY6fHz85/uIYn1Mb
|
64
|
+
92n6+s3xm9P0zfHv/dEvSb6f/JJkRDj78/Dslb5jkHn2ivqiRz/+2vPAn/xo
|
65
|
+
GuTT3jR8P5Emx7NZTbrAyYh+QH9+dJw+Lc7P8zpftumrKpsBqn5tUH5KugAf
|
66
|
+
n+gUfVEt24tqkRMl8GmXKC8rUh2lefnep7s7+/i4SyvCSz46Y5Lv7dzfe/Dw
|
67
|
+
Ib7hwZr3d3Z3d3bv74ImwleKHL7b/XRnJ32ZL5fNdXmZLYssPb7M0xffBRBt
|
68
|
+
ZsDs4TMzgO9mzbxYXrSEDj7dPABCjPqmjwVbfPT0BH93BsBtAtQJc30IdTMX
|
69
|
+
EYX7S5L/B1Mne8y+BQAA
|
70
|
+
http_version:
|
71
|
+
recorded_at: Thu, 23 Mar 2017 17:48:14 GMT
|
72
|
+
recorded_with: VCR 3.0.3
|