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,276 @@
|
|
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":"R478514717","DocDate":"2017-03-21","Discount":"0.0","Commit":false,"DocType":"SalesOrder","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
|
+
#8 - 9986","TaxCode":"PC030000","ItemCode":"SKU-8","Qty":1,"Amount":10.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":false},{"LineNo":"1-FR","ItemCode":"Avalara
|
13
|
+
Ground","Qty":1,"Amount":5.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
14
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":false}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R478514717","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
|
+
- '1143'
|
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
|
+
- Tue, 21 Mar 2017 21:33:47 GMT
|
47
|
+
Content-Length:
|
48
|
+
- '663'
|
49
|
+
Set-Cookie:
|
50
|
+
- TS017f1821=01a8ddc44e8f4c037724fad8f6e2d33f9710eadb28da1004462c96a14ba92d11274d5bb3749f9db4eba0e2a9b89b9b8e7b8e206745;
|
51
|
+
Path=/
|
52
|
+
body:
|
53
|
+
encoding: ASCII-8BIT
|
54
|
+
string: !binary |-
|
55
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
56
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
57
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGb7N3zYpk3Hz1Kv5fQ3/jjRUV/fbS7
|
58
|
+
/fzsoxG3OKlmOT56ebJzb4ce/TibFGXRXuObtl7n+PRJtV7Osvr6eX6Zl/ji
|
59
|
+
p4rVfXxx+i5frNqiWuJDBvC0aKbUurUfMMSSO9rlD15lLf+1M97Zp175M2ok
|
60
|
+
H+3rXydZOV2X1HIWfv40b7OitOM6QVc14/rVazR5lV8oNsfP8fd31nXRvLle
|
61
|
+
cY+vWwJoPzXD39nFRwT7fdFkKC+yBTc7fn785PiLY3xOrdyn6es3x29O0zfH
|
62
|
+
v/dHvyT5fvJLkhGh7U/Hs1f6jsHn2SvqjR79+GdvOviVjcPc07+6s2E+/2HM
|
63
|
+
xi2xZCCO7LecjO8n0uR4NqvzpnECox8YrJ7mTQtovRG+rJo2K02ze5/u7jBr
|
64
|
+
dAdOXchHZ0zBvZ37ew8ePsQ3jLd5f2d3d2f3/q4OUHHAF8fp0+L8PK/zZZu+
|
65
|
+
qrIZvj5RrviiWrYX1SIntIS79D0DlMlzA+KEkPQpWOKjpyf4u4M4twlQJoz1
|
66
|
+
wVfaNX/x6c5O+jJfLpvr8jJbFll6fJmnL76LZgb172bNvFhetNSjm4unOtd7
|
67
|
+
O7sPtnfube8xRzytpqbLV/sPDu7v7j/YfaBfxN94Uyxo1rLFKvzqzd7uo3v3
|
68
|
+
Hu0/GD8kGA/2P/0pblwRNY4XoBKa7zLX8Yd9CcKnfUnjjwl9w7ceCPoUn+yM
|
69
|
+
P/U/6goVf/kqb9Zla0b6ej2dgpy/JPl/AL0wL/3UBQAA
|
70
|
+
http_version:
|
71
|
+
recorded_at: Tue, 21 Mar 2017 21:33:46 GMT
|
72
|
+
- request:
|
73
|
+
method: post
|
74
|
+
uri: https://development.avalara.net/1.0/tax/get
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: '{"DocCode":"R105275816","DocDate":"2017-03-21","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":"915
|
78
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"3366
|
79
|
+
Speedway Blvd","Line2":"","City":"Lincoln","Region":"Alabama","Country":"US","PostalCode":"35096"},{"AddressCode":"3","Line1":"1600
|
80
|
+
Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"2-LI","Description":"Product
|
81
|
+
#9 - 9966","TaxCode":"PC030000","ItemCode":"SKU-9","Qty":1,"Amount":10.0,"OriginCode":"3","DestinationCode":"Dest","CustomerUsageType":"","Discounted":false,"TaxIncluded":false}],"CustomerCode":"acreilly3@gmail.com","CompanyCode":"54321","CustomerUsageType":"","ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R105275816","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
82
|
+
headers:
|
83
|
+
Accept:
|
84
|
+
- "*/*; q=0.5, application/xml"
|
85
|
+
Accept-Encoding:
|
86
|
+
- gzip, deflate
|
87
|
+
Authorization:
|
88
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
89
|
+
Content-Type:
|
90
|
+
- application/json
|
91
|
+
Content-Length:
|
92
|
+
- '932'
|
93
|
+
User-Agent:
|
94
|
+
- Ruby
|
95
|
+
response:
|
96
|
+
status:
|
97
|
+
code: 200
|
98
|
+
message: OK
|
99
|
+
headers:
|
100
|
+
Cache-Control:
|
101
|
+
- private
|
102
|
+
Content-Type:
|
103
|
+
- text/json; charset=utf-8
|
104
|
+
Content-Encoding:
|
105
|
+
- gzip
|
106
|
+
Vary:
|
107
|
+
- Accept-Encoding
|
108
|
+
X-Aspnet-Version:
|
109
|
+
- 4.0.30319
|
110
|
+
X-Powered-By:
|
111
|
+
- ASP.NET
|
112
|
+
Date:
|
113
|
+
- Tue, 21 Mar 2017 21:33:48 GMT
|
114
|
+
Content-Length:
|
115
|
+
- '621'
|
116
|
+
Set-Cookie:
|
117
|
+
- TS017f1821=01a8ddc44ed87dfee437a076fa854f1263c59ca6d001c58df077d5b84b3c3ea2771fa897dd1b42769a77cf32d59f807922bce36b86;
|
118
|
+
Path=/
|
119
|
+
body:
|
120
|
+
encoding: ASCII-8BIT
|
121
|
+
string: !binary |-
|
122
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
123
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
124
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
125
|
+
6Gk1fZq1/Onezu6D7Z1723u7+OJNscibNluswq/e7O0+unfv0f7B+NODg4f7
|
126
|
+
B/s/xY2rNiuPF9V62aL57o798GnRTM3H7tPTd/li1RbVMvz4TfYum5SMjAeC
|
127
|
+
PsUnO+N9/6OTrJyuS0J95n+ZvYuPhoZpBv9qd+f+3oP7B7uf4gt643mxzBv6
|
128
|
+
5nsJEQp/vKjor4/2tp+faQvz6suTnXs79OjH2aQoi/Ya37T1OsenT2iss6y+
|
129
|
+
fp5f5iW++KlidR9f9Efcpwwg+qN/pUPZGe/sU6/8GTWSj8x4B+mQt1lR2nGd
|
130
|
+
oKuacf3qNZq8yi8Um+Pn+Ps767po3lyvuMfXLQG0n5rh7zApCfb7oslQXmQL
|
131
|
+
bnb8/PjJ8RfH+JxauU/T12+O35ymb45/749+SfL9BP+XJsezWU3c6uZIP6A/
|
132
|
+
P7p379NP09erPJ9dZdfpk/JyBrjawOD9lBgZH5/oZNEcT6tyyR91yfKyIqYv
|
133
|
+
zZv37u88ZDbpUovQko/OmOx7u3v7Dz/dwzc8VvP+zu7u3u7+vd29HRrTKER9
|
134
|
+
99OdnfRlvlw21+Vltiyy9PgyT198F0C0mQFzD58Z7L+bNfNiedESOvh08wD2
|
135
|
+
du7LhAi2+OjpCf7uDIDbBKjv7tJU8kOoYzr+H6NlJhVGBAAA
|
136
|
+
http_version:
|
137
|
+
recorded_at: Tue, 21 Mar 2017 21:33:47 GMT
|
138
|
+
- request:
|
139
|
+
method: post
|
140
|
+
uri: https://development.avalara.net/1.0/tax/get
|
141
|
+
body:
|
142
|
+
encoding: UTF-8
|
143
|
+
string: '{"DocCode":"R478514717","DocDate":"2017-03-21","Discount":"0.0","Commit":false,"DocType":"SalesInvoice","Addresses":[{"AddressCode":"Orig","Line1":"915
|
144
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"A
|
145
|
+
Different Road","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"2","Line1":"1600
|
146
|
+
Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
147
|
+
#8 - 9986","TaxCode":"PC030000","ItemCode":"SKU-8","Qty":1,"Amount":10.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":"A","Discounted":false,"TaxIncluded":false},{"LineNo":"1-FR","ItemCode":"Avalara
|
148
|
+
Ground","Qty":1,"Amount":5.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":"A","Description":"Shipping
|
149
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":false}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":"A","ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R478514717","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
150
|
+
headers:
|
151
|
+
Accept:
|
152
|
+
- "*/*; q=0.5, application/xml"
|
153
|
+
Accept-Encoding:
|
154
|
+
- gzip, deflate
|
155
|
+
Authorization:
|
156
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
157
|
+
Content-Type:
|
158
|
+
- application/json
|
159
|
+
Content-Length:
|
160
|
+
- '1142'
|
161
|
+
User-Agent:
|
162
|
+
- Ruby
|
163
|
+
response:
|
164
|
+
status:
|
165
|
+
code: 200
|
166
|
+
message: OK
|
167
|
+
headers:
|
168
|
+
Cache-Control:
|
169
|
+
- private
|
170
|
+
Content-Type:
|
171
|
+
- text/json; charset=utf-8
|
172
|
+
Content-Encoding:
|
173
|
+
- gzip
|
174
|
+
Vary:
|
175
|
+
- Accept-Encoding
|
176
|
+
X-Aspnet-Version:
|
177
|
+
- 4.0.30319
|
178
|
+
X-Powered-By:
|
179
|
+
- ASP.NET
|
180
|
+
Date:
|
181
|
+
- Tue, 21 Mar 2017 21:33:48 GMT
|
182
|
+
Content-Length:
|
183
|
+
- '644'
|
184
|
+
Set-Cookie:
|
185
|
+
- TS017f1821=01a8ddc44e1b31152ba7b97a040ef2b39165e207569414b590c7bd8d5f53e86f6fc9430579995125913cd7a2b0900daee9a11e5e0e;
|
186
|
+
Path=/
|
187
|
+
body:
|
188
|
+
encoding: ASCII-8BIT
|
189
|
+
string: !binary |-
|
190
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
191
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
192
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
193
|
+
6Gk1fZq1/Onezu6D7Z1723u7+OJNscibNluswq/e7O0+unfv0f7D8d4BN6va
|
194
|
+
rDxeVOtli4a79+2HT4tmaj7esZ+evssXq7aolvjYa/0me5dNSsbDNaYPex+c
|
195
|
+
ZOV0XRLKM/dV9i4+BhqcGfKr/QcH93f3H+w+wBf0xvNimTf0zfcSIg/+eFHR
|
196
|
+
Xx/tbj8/0xbm1ZcnO/d26NGPs0lRFu01vmnrdY5Pn9A4Z1l9/Ty/zEt88VPF
|
197
|
+
iocWjpYh9MkCkN7IX+lQdsY7+9Qrf0Zt+CP9fYAGeZsVpR3TCXqpGc+vXqPJ
|
198
|
+
q/xCMTl+jr+/s66L5s31int73RI4+6kZ+g6TkWC/F4YM4kW24EbHz4+fHH9x
|
199
|
+
jM+pjfs0ff3m+M1p+ub49/7olyTfT35JMiKc/Xl49krfMcg8e0V90aMff+15
|
200
|
+
4E9+NA3yaW8avp9Ik+PZrCYd4WREP6A/PzpOnxbn53mdL9v0VZXNAFW/Nig/
|
201
|
+
JeWBj090ir6olu1FtciJEvi0S5SXFema0rx879PdnX183KUV4SUfnTHJ93bu
|
202
|
+
7z14+BDf8GDN+zu7uzu793dBE+ErRQ7f7X66s5O+zJfL5rq8zJZFlh5f5umL
|
203
|
+
7wKINjNg9vCZGcB3s2ZeLC9aQgefbh4AIUZ908eCLT56eoK/OwPgNgHqhLk+
|
204
|
+
hDrm4/8BWnu9Qb0FAAA=
|
205
|
+
http_version:
|
206
|
+
recorded_at: Tue, 21 Mar 2017 21:33:48 GMT
|
207
|
+
- request:
|
208
|
+
method: post
|
209
|
+
uri: https://development.avalara.net/1.0/tax/get
|
210
|
+
body:
|
211
|
+
encoding: UTF-8
|
212
|
+
string: '{"DocCode":"R362354686","DocDate":"2017-03-21","Discount":"0.0","Commit":false,"DocType":"SalesInvoice","Addresses":[{"AddressCode":"Orig","Line1":"915
|
213
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"915
|
214
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"2","Line1":"1600
|
215
|
+
Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
216
|
+
#6 - 6205","TaxCode":"PC030000","ItemCode":"SKU-6","Qty":1,"Amount":10.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":"A","Discounted":false,"TaxIncluded":false},{"LineNo":"1-FR","ItemCode":"Avalara
|
217
|
+
Ground","Qty":1,"Amount":5.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":"A","Description":"Shipping
|
218
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":false}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":"A","ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R362354686","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
219
|
+
headers:
|
220
|
+
Accept:
|
221
|
+
- "*/*; q=0.5, application/xml"
|
222
|
+
Accept-Encoding:
|
223
|
+
- gzip, deflate
|
224
|
+
Authorization:
|
225
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
226
|
+
Content-Type:
|
227
|
+
- application/json
|
228
|
+
Content-Length:
|
229
|
+
- '1142'
|
230
|
+
User-Agent:
|
231
|
+
- Ruby
|
232
|
+
response:
|
233
|
+
status:
|
234
|
+
code: 200
|
235
|
+
message: OK
|
236
|
+
headers:
|
237
|
+
Cache-Control:
|
238
|
+
- private
|
239
|
+
Content-Type:
|
240
|
+
- text/json; charset=utf-8
|
241
|
+
Content-Encoding:
|
242
|
+
- gzip
|
243
|
+
Vary:
|
244
|
+
- Accept-Encoding
|
245
|
+
X-Aspnet-Version:
|
246
|
+
- 4.0.30319
|
247
|
+
X-Powered-By:
|
248
|
+
- ASP.NET
|
249
|
+
Date:
|
250
|
+
- Tue, 21 Mar 2017 21:37:58 GMT
|
251
|
+
Content-Length:
|
252
|
+
- '641'
|
253
|
+
Set-Cookie:
|
254
|
+
- TS017f1821=01a8ddc44e87005ae3db978c7c86e9779d0cb76475880ab3d0ba36a92fd9bab885173a2d266705a8caa6a81272bef08ec279ef027e;
|
255
|
+
Path=/
|
256
|
+
body:
|
257
|
+
encoding: ASCII-8BIT
|
258
|
+
string: !binary |-
|
259
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
260
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
261
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
262
|
+
6Gk1NZ++uvfp3r37+58efKpfPM1a/mJvZ/fB9s697b1dfPGmWORNmy1W4Vdv
|
263
|
+
9nYf3Xvw6P7B+NOH3Kxqs/J4Ua2XLRru3rcfPi2aqfl4x356+i5frNqiWuJj
|
264
|
+
r/Wb7F02KRkP15g+7H1wkpXTdUkoz9xX2bvnxTJv6IPvJUQF/PGior8+2t1+
|
265
|
+
fqYtzPBfnuzc26FHP84mRVm01/imrdc5Pn1CWM+y+vp5fpmX+OJ4NquVjiH6
|
266
|
+
DKQ/TkD1hvKKkOU/xjv71DF/Rm34I/09PqineZsVpR3WCXqpGdWvXqPJq/xC
|
267
|
+
MTl+jr+/s66L5s31int73RI4+6kZ/Y7M7XtiyCBeZAtudPz8+MnxF8f4nNq4
|
268
|
+
T9PXb47fnKZvjn/vj35J8v3klyQjwtmfimev9B2DzLNX1Bc9+vGHTAUz0o9m
|
269
|
+
Qj7tzcT3E2mi1HOSoh/Qnx893L2fvk6/k03fNtUyfd0Cqn5tUH5KCgEfn+gs
|
270
|
+
fVEt24tqkRMl8GmXKC8r0h+lefnep7s7+/i4SyvCSz46Y5Lv7dzfe/CQdQsP
|
271
|
+
1ry/s7u7s3t/FzQR1lLk8N3upzs76ct8uWyuy8tsWWTp8WWevvgugGgzA2YP
|
272
|
+
n5kBfDdr5sXyoiV08OnmARBi1Dd9LNjio6cn+LszAG4ToE6Y60Oom7mIaN1f
|
273
|
+
kvw/kcnCEsMFAAA=
|
274
|
+
http_version:
|
275
|
+
recorded_at: Tue, 21 Mar 2017 21:37:57 GMT
|
276
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,336 @@
|
|
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":"R658177556","DocDate":"2017-03-21","Discount":"0.0","Commit":false,"DocType":"SalesOrder","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
|
+
#4 - 9022","TaxCode":"PC030000","ItemCode":"SKU-4","Qty":1,"Amount":10.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":false},{"LineNo":"1-FR","ItemCode":"Avalara
|
13
|
+
Ground","Qty":1,"Amount":5.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
14
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":false}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R658177556","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
|
+
- '1143'
|
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
|
+
- Tue, 21 Mar 2017 21:33:41 GMT
|
47
|
+
Content-Length:
|
48
|
+
- '672'
|
49
|
+
Set-Cookie:
|
50
|
+
- TS017f1821=01a8ddc44e54d8277e04e6ffedccf51f1d03e0ba1349b3c90978ab029b9f43892db79b46a5754b5991a8879167e55c9bf9ae39338f;
|
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+++vT+we6DB/fvf6pfPM1a/mJvZ/fB9s697b1dfPGmWORNmy1W4Vdv
|
59
|
+
9nYf3bv3aH9vfP/B7sOHe5/+FDeu2qw8XlTrZYvmu/fth0+LZmo+3rGfnr7L
|
60
|
+
F6u2qJbhx2+yd9mkZGQ8EPQpPtkZM8Lmo5OsnK5LQn3mf5m9e14s84Y++l5C
|
61
|
+
9MAfLyr666Pd7edn2sIQ4uXJzr0devTjbFKURXuNb9p6nePTJ4T5LKuvn+eX
|
62
|
+
eYkvfqpYMV59/PvjBEQdC3/winDFXzvjnX3qlT+jRvLRvv7VHZX5/GneZkVp
|
63
|
+
x3WCrmrG9avXaPIqv1Bsjp/j7++s66J5c73iHl+3BNB+aoa/I9P8/mgylBfZ
|
64
|
+
gpsdPz9+cvzFMT6nVu7T9PWb4zen6Zvj3/ujX5J8P/klyYjQ9qfj2St9x+Dz
|
65
|
+
7BX1Ro9+/LM3HfzKxmHu6V/d2TCf/zBm45ZYMhBH9ltOxvcTaXI8m9WkIZzA
|
66
|
+
6Af050fH6dPi/Dyv82WbvqqyGaDq1wbpp6Qh8PGJTtQX1bK9qBY50QKfdsny
|
67
|
+
siKFUpqX7326u8P81KUW4SUfnTHZ93bu7z14+BDf8GDN+zu7uzu793dBFeEu
|
68
|
+
RQ7f7X66s5O+zJfL5rq8zJZFlh5f5umL7wKINjNgmIpmAN/NmnmxvGgJHXy6
|
69
|
+
eQCEGPVNHwu2+OjpCf7uDIDbBKgT5voQ6mYuImr4lyT/D2pC1zTUBQAA
|
70
|
+
http_version:
|
71
|
+
recorded_at: Tue, 21 Mar 2017 21:33:41 GMT
|
72
|
+
- request:
|
73
|
+
method: post
|
74
|
+
uri: https://development.avalara.net/1.0/tax/get
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: '{"DocCode":"R169679876","DocDate":"2017-03-21","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":"915
|
78
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"3366
|
79
|
+
Speedway Blvd","Line2":"","City":"Lincoln","Region":"Alabama","Country":"US","PostalCode":"35096"},{"AddressCode":"3","Line1":"1600
|
80
|
+
Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"2-LI","Description":"Product
|
81
|
+
#5 - 7665","TaxCode":"PC030000","ItemCode":"SKU-5","Qty":1,"Amount":10.0,"OriginCode":"3","DestinationCode":"Dest","CustomerUsageType":"","Discounted":false,"TaxIncluded":false}],"CustomerCode":"acreilly3@gmail.com","CompanyCode":"54321","CustomerUsageType":"","ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R169679876","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
82
|
+
headers:
|
83
|
+
Accept:
|
84
|
+
- "*/*; q=0.5, application/xml"
|
85
|
+
Accept-Encoding:
|
86
|
+
- gzip, deflate
|
87
|
+
Authorization:
|
88
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
89
|
+
Content-Type:
|
90
|
+
- application/json
|
91
|
+
Content-Length:
|
92
|
+
- '932'
|
93
|
+
User-Agent:
|
94
|
+
- Ruby
|
95
|
+
response:
|
96
|
+
status:
|
97
|
+
code: 200
|
98
|
+
message: OK
|
99
|
+
headers:
|
100
|
+
Cache-Control:
|
101
|
+
- private
|
102
|
+
Content-Type:
|
103
|
+
- text/json; charset=utf-8
|
104
|
+
Content-Encoding:
|
105
|
+
- gzip
|
106
|
+
Vary:
|
107
|
+
- Accept-Encoding
|
108
|
+
X-Aspnet-Version:
|
109
|
+
- 4.0.30319
|
110
|
+
X-Powered-By:
|
111
|
+
- ASP.NET
|
112
|
+
Date:
|
113
|
+
- Tue, 21 Mar 2017 21:33:42 GMT
|
114
|
+
Content-Length:
|
115
|
+
- '622'
|
116
|
+
Set-Cookie:
|
117
|
+
- TS017f1821=01a8ddc44e210f61e98d25c89442dff4ec37ce5ecbf1f5661012552f7c2f41ba8cd16f79cc12e18dd8e8adc48324f889cd7c219269;
|
118
|
+
Path=/
|
119
|
+
body:
|
120
|
+
encoding: ASCII-8BIT
|
121
|
+
string: !binary |-
|
122
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
123
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
124
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
125
|
+
6Gk1NZ++2v304acPHh48+FS/eJq1/MXezu6D7Z1723u7+OJNscibNluswq/e
|
126
|
+
7O0+unfv0f698b2H+/f27+//FDeu2qw8XlTrZYvmuzv2w6dFMzUfu09P3+WL
|
127
|
+
VVtUy/DjN9m7bFIyMh4I+hSf7Iz3/Y9OsnK6Lgn1mf9l9u55scwb+uh7CdED
|
128
|
+
f7yo6K+P9rafn2kLQ4iXJzv3dujRj7NJURbtNb5p63WOT58Q5rOsvn6eX+Yl
|
129
|
+
vvipYnUfX/Tx748TEP2xvCJc8dfOeGefeuXPqJF8ZLAfGtXTvM2K0o7rBF3V
|
130
|
+
jOtXr9HkVX6h2Bw/x9/fWddF8+Z6xT2+bgmg/dQMf0em+f3RZCgvsgU3O35+
|
131
|
+
/OT4i2N8Tq3cp+nrN8dvTtM3x7/3R78k+X6C/0uT49msJqZ0c6Qf0J8f3bv3
|
132
|
+
6afp61Wez66y6/RJeTkDXG1g8H5KbImPT3SyaI6nVbnkj7pkeVkRC5fmzXv3
|
133
|
+
dx4y03epRWjJR2dM9r3dvf2Hn+7hGx6reX9nd3dvd//e7t4OjWkUor776c5O
|
134
|
+
+jJfLpvr8jJbFll6fJmnL74LINrMgLmHzwz2382aebG8aAkdfLp5AHs792VC
|
135
|
+
BFt89PQEf3cGwG0C1Hd3aSr5IdTNVEQE/5ck/w+75fOkRgQAAA==
|
136
|
+
http_version:
|
137
|
+
recorded_at: Tue, 21 Mar 2017 21:33:42 GMT
|
138
|
+
- request:
|
139
|
+
method: post
|
140
|
+
uri: https://development.avalara.net/1.0/tax/get
|
141
|
+
body:
|
142
|
+
encoding: UTF-8
|
143
|
+
string: '{"DocCode":"R169679876","DocDate":"2017-03-21","Discount":"0.0","Commit":true,"DocType":"SalesInvoice","Addresses":[{"AddressCode":"Orig","Line1":"915
|
144
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"3366
|
145
|
+
Speedway Blvd","Line2":"","City":"Lincoln","Region":"Alabama","Country":"US","PostalCode":"35096"},{"AddressCode":"3","Line1":"1600
|
146
|
+
Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"2-LI","Description":"Product
|
147
|
+
#5 - 7665","TaxCode":"PC030000","ItemCode":"SKU-5","Qty":1,"Amount":10.0,"OriginCode":"3","DestinationCode":"Dest","CustomerUsageType":"","Discounted":false,"TaxIncluded":false}],"CustomerCode":"acreilly3@gmail.com","CompanyCode":"54321","CustomerUsageType":"","ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R169679876","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
148
|
+
headers:
|
149
|
+
Accept:
|
150
|
+
- "*/*; q=0.5, application/xml"
|
151
|
+
Accept-Encoding:
|
152
|
+
- gzip, deflate
|
153
|
+
Authorization:
|
154
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
155
|
+
Content-Type:
|
156
|
+
- application/json
|
157
|
+
Content-Length:
|
158
|
+
- '933'
|
159
|
+
User-Agent:
|
160
|
+
- Ruby
|
161
|
+
response:
|
162
|
+
status:
|
163
|
+
code: 200
|
164
|
+
message: OK
|
165
|
+
headers:
|
166
|
+
Cache-Control:
|
167
|
+
- private
|
168
|
+
Content-Type:
|
169
|
+
- text/json; charset=utf-8
|
170
|
+
Content-Encoding:
|
171
|
+
- gzip
|
172
|
+
Vary:
|
173
|
+
- Accept-Encoding
|
174
|
+
X-Aspnet-Version:
|
175
|
+
- 4.0.30319
|
176
|
+
X-Powered-By:
|
177
|
+
- ASP.NET
|
178
|
+
Date:
|
179
|
+
- Tue, 21 Mar 2017 21:33:42 GMT
|
180
|
+
Content-Length:
|
181
|
+
- '617'
|
182
|
+
Set-Cookie:
|
183
|
+
- TS017f1821=01a8ddc44e3af41df1c7b190d40c78b78130a68e580afa00c3ea62533dd0da8213d916cc16d5124253c71c48ab6c7cc07547a9b013;
|
184
|
+
Path=/
|
185
|
+
body:
|
186
|
+
encoding: ASCII-8BIT
|
187
|
+
string: !binary |-
|
188
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
189
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
190
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
191
|
+
6Gk1NZ++2v304acPHh48+FS/eJq1/MXezu6D7Z1723u7+OJNscibNluswq/e
|
192
|
+
7O0+unfv0f698cP7D7hd1Wbl8aJaL1u03N2xHz4tmqn52H16+i5frNqiWoYf
|
193
|
+
v8neZZOS8fBA0Kf4ZGe87390kpXTdUlYz/wvs3fPi2Xe0EffS4gU+ONFRX99
|
194
|
+
tLf9/ExbGBq8PNm5t0OPfpxNirJor/FNW69zfPqEMJ9l9fXz/DIv8cVPFav7
|
195
|
+
+KKPf3+cgOiP5RXhir92xjv71Ct/Ro3kI4P90Kie5m1WlHZcJ+iqZly/eo0m
|
196
|
+
r/ILxeb4Of7+zroumjfXK+7xdUsA7adm+Dsyw++PJkN5kS242fHz4yfHXxzj
|
197
|
+
c2rlPk1fvzl+c5q+Of69P/olyfcT/F+aHM9mNfGjmyP9gP786N69Tz9NX6/y
|
198
|
+
fHaVXadPyssZ4GoDg/dT4kh8fKKTRXM8rcolf9Qly8uKuLc0b967v/OQ+b1L
|
199
|
+
LUJLPjpjsu/t7u0//HQP3/BYzfs7u7t7u/v3dvd2aEyjEPXdT3d20pf5ctlc
|
200
|
+
l5fZssjS48s8ffFdANFmBsw9fGaw/27WzIvlRUvo4NPNA9jbuS8TItjio6cn
|
201
|
+
+LszAG4ToL67S1PJD6FupiIi878k+X8Aenoao0EEAAA=
|
202
|
+
http_version:
|
203
|
+
recorded_at: Tue, 21 Mar 2017 21:33:42 GMT
|
204
|
+
- request:
|
205
|
+
method: post
|
206
|
+
uri: https://development.avalara.net/1.0/tax/get
|
207
|
+
body:
|
208
|
+
encoding: UTF-8
|
209
|
+
string: '{"DocCode":"R820843740","DocDate":"2017-03-21","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":"915
|
210
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"3366
|
211
|
+
Speedway Blvd","Line2":"","City":"Lincoln","Region":"Alabama","Country":"US","PostalCode":"35096"},{"AddressCode":"3","Line1":"1600
|
212
|
+
Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"2-LI","Description":"Product
|
213
|
+
#5 - 8525","TaxCode":"PC030000","ItemCode":"SKU-5","Qty":1,"Amount":10.0,"OriginCode":"3","DestinationCode":"Dest","CustomerUsageType":"","Discounted":false,"TaxIncluded":false}],"CustomerCode":"acreilly3@gmail.com","CompanyCode":"54321","CustomerUsageType":"","ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R820843740","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
214
|
+
headers:
|
215
|
+
Accept:
|
216
|
+
- "*/*; q=0.5, application/xml"
|
217
|
+
Accept-Encoding:
|
218
|
+
- gzip, deflate
|
219
|
+
Authorization:
|
220
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
221
|
+
Content-Type:
|
222
|
+
- application/json
|
223
|
+
Content-Length:
|
224
|
+
- '932'
|
225
|
+
User-Agent:
|
226
|
+
- Ruby
|
227
|
+
response:
|
228
|
+
status:
|
229
|
+
code: 200
|
230
|
+
message: OK
|
231
|
+
headers:
|
232
|
+
Cache-Control:
|
233
|
+
- private
|
234
|
+
Content-Type:
|
235
|
+
- text/json; charset=utf-8
|
236
|
+
Content-Encoding:
|
237
|
+
- gzip
|
238
|
+
Vary:
|
239
|
+
- Accept-Encoding
|
240
|
+
X-Aspnet-Version:
|
241
|
+
- 4.0.30319
|
242
|
+
X-Powered-By:
|
243
|
+
- ASP.NET
|
244
|
+
Date:
|
245
|
+
- Tue, 21 Mar 2017 21:37:56 GMT
|
246
|
+
Content-Length:
|
247
|
+
- '620'
|
248
|
+
Set-Cookie:
|
249
|
+
- TS017f1821=01a8ddc44ecf7614df34a5f8591dc71e9e8ce30eb756da690bcbcae69c8c60cf16034a6de949c46c337116ab07a3df580f67e7a351;
|
250
|
+
Path=/
|
251
|
+
body:
|
252
|
+
encoding: ASCII-8BIT
|
253
|
+
string: !binary |-
|
254
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
255
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
256
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
257
|
+
6Gk1fZq1/Onezu6D7Z1723u7+OJNscibNluswq/e7O0+uvfg0f1Pxwc7B/sP
|
258
|
+
dj79KW5ctVl5vKjWyxbNd3fsh0+LZmo+dp+evssXq7aoluHHb7J32aRkZDwQ
|
259
|
+
9Ck+2Rnv+x+dZOV0XRLqM//L7F18NDRMM/hXB3uE+b0H+9JD9u55scwb+uZ7
|
260
|
+
CREKf7yo6K+P9rafn2kL8+rLk517O/Tox9mkKIv2Gt+09TrHp09orLOsvn6e
|
261
|
+
X+YlvvipYnUfX/RH3KcMIPqjf6VD2Rnv7FOv/Bk1ko/MeAfpkLdZUdpxnaCr
|
262
|
+
mnH96jWavMovFJvj5/j7O+u6aN5cr7jH1y0BtJ+a4e8wKQn2+6LJUF5kC252
|
263
|
+
/Pz4yfEXx/icWrlP09dvjt+cpm+Of++Pfkny/QT/lybHs1lN3OrmSD+gPz+6
|
264
|
+
d+/TT9PXqzyfXWXX6ZPycga42sDg/ZQYGR+f6GTRHE+rcskfdcnysiKmL82b
|
265
|
+
9+7vPPwUH3epRWjJR2dM9r3dvf2Hn+7hGx6reX9nd3dvd//e7t4OjWkUor77
|
266
|
+
6c5O+jJfLpvr8jJbFll6fJmnL74LINrMgLmHzwz2382aebG8aAkdfLp5AHs7
|
267
|
+
92VCBFt89PQEf3cGwG0C1Hd3aSr5IdQxHf8PtUXneUYEAAA=
|
268
|
+
http_version:
|
269
|
+
recorded_at: Tue, 21 Mar 2017 21:37:55 GMT
|
270
|
+
- request:
|
271
|
+
method: post
|
272
|
+
uri: https://development.avalara.net/1.0/tax/get
|
273
|
+
body:
|
274
|
+
encoding: UTF-8
|
275
|
+
string: '{"DocCode":"R820843740","DocDate":"2017-03-21","Discount":"0.0","Commit":true,"DocType":"SalesInvoice","Addresses":[{"AddressCode":"Orig","Line1":"915
|
276
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"3366
|
277
|
+
Speedway Blvd","Line2":"","City":"Lincoln","Region":"Alabama","Country":"US","PostalCode":"35096"},{"AddressCode":"3","Line1":"1600
|
278
|
+
Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"2-LI","Description":"Product
|
279
|
+
#5 - 8525","TaxCode":"PC030000","ItemCode":"SKU-5","Qty":1,"Amount":10.0,"OriginCode":"3","DestinationCode":"Dest","CustomerUsageType":"","Discounted":false,"TaxIncluded":false}],"CustomerCode":"acreilly3@gmail.com","CompanyCode":"54321","CustomerUsageType":"","ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R820843740","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
280
|
+
headers:
|
281
|
+
Accept:
|
282
|
+
- "*/*; q=0.5, application/xml"
|
283
|
+
Accept-Encoding:
|
284
|
+
- gzip, deflate
|
285
|
+
Authorization:
|
286
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
287
|
+
Content-Type:
|
288
|
+
- application/json
|
289
|
+
Content-Length:
|
290
|
+
- '933'
|
291
|
+
User-Agent:
|
292
|
+
- Ruby
|
293
|
+
response:
|
294
|
+
status:
|
295
|
+
code: 200
|
296
|
+
message: OK
|
297
|
+
headers:
|
298
|
+
Cache-Control:
|
299
|
+
- private
|
300
|
+
Content-Type:
|
301
|
+
- text/json; charset=utf-8
|
302
|
+
Content-Encoding:
|
303
|
+
- gzip
|
304
|
+
Vary:
|
305
|
+
- Accept-Encoding
|
306
|
+
X-Aspnet-Version:
|
307
|
+
- 4.0.30319
|
308
|
+
X-Powered-By:
|
309
|
+
- ASP.NET
|
310
|
+
Date:
|
311
|
+
- Tue, 21 Mar 2017 21:37:56 GMT
|
312
|
+
Content-Length:
|
313
|
+
- '616'
|
314
|
+
Set-Cookie:
|
315
|
+
- TS017f1821=01a8ddc44ee30273bbd30661b430df0805f4308cb9e47075dbdf5f5fdeaf1d2ecd72cfcb7a5852084a1e89ab629ad621fc95a50330;
|
316
|
+
Path=/
|
317
|
+
body:
|
318
|
+
encoding: ASCII-8BIT
|
319
|
+
string: !binary |-
|
320
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
321
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
322
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
323
|
+
6Gk1NZ++OtjbOdi/92B/R794mrX8xd7O7oPtnXvbe7v44k2xyJs2W6zCr97s
|
324
|
+
7T669+DR/Qfje/fvcbuqzcrjRbVetmi5y1D5w6dFMzUfu09P3+WLVVtUy/Dj
|
325
|
+
N9m7bFIyHh4I+hSf7Iz3/Y9OsnK6Lgnrmf9l9u55scwb+uh7CZECf7yo6K+P
|
326
|
+
9rafn2kLQ4OXJzv3dujRj7NJURbtNb5p63WOT58Q5rOsvn6eX+YlvvipYnUf
|
327
|
+
X/Tx748TEP2xvCJc8dfOeGefeuXPqJF8ZLAfGtXTvM2K0o7rBF3VjOtXr9Hk
|
328
|
+
VX6h2Bw/x9/fWddF8+Z6xT2+bgmg/dQMf0dm+P3RZCgvsgU3O35+/OT4i2N8
|
329
|
+
Tq3cp+nrN8dvTtM3x7/3R78k+X6C/0uT49msJn50c6Qf0J8f3bv36afp61We
|
330
|
+
z66y6/RJeTkDXG1g8H5KHImPT3SyaI6nVbnkj7pkeVkR95bmzXv3dx5+io+7
|
331
|
+
1CK05KMzJvve7t7+w0/38A2P1by/s7u7t7t/b3dvh8Y0ClHf/XRnJ32ZL5fN
|
332
|
+
dXmZLYssPb7M0xffBRBtZsCwxBjsv5s182J50RI6+HTzAPZ27suECLb46OkJ
|
333
|
+
/u4MgNsEqO/u0lTyQ6ibqYjI/C9J/h/t71JFQQQAAA==
|
334
|
+
http_version:
|
335
|
+
recorded_at: Tue, 21 Mar 2017 21:37:56 GMT
|
336
|
+
recorded_with: VCR 3.0.3
|