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,139 @@
|
|
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":"R084381398","DocDate":"2017-01-13","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"89
|
9
|
+
Nieuwendijk","Line2":"","City":"Amsterdam","Region":"","Country":"NL","PostalCode":"1012
|
10
|
+
MC"},{"AddressCode":"1","Line1":"150 Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
11
|
+
#5 - 9543","TaxCode":"PC030000","ItemCode":"SKU-5","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
|
12
|
+
Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
13
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R084381398","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
14
|
+
headers:
|
15
|
+
Accept:
|
16
|
+
- "*/*; q=0.5, application/xml"
|
17
|
+
Accept-Encoding:
|
18
|
+
- gzip, deflate
|
19
|
+
Authorization:
|
20
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Content-Length:
|
24
|
+
- '1103'
|
25
|
+
User-Agent:
|
26
|
+
- Ruby
|
27
|
+
response:
|
28
|
+
status:
|
29
|
+
code: 200
|
30
|
+
message: OK
|
31
|
+
headers:
|
32
|
+
Cache-Control:
|
33
|
+
- private
|
34
|
+
Content-Type:
|
35
|
+
- text/json; charset=utf-8
|
36
|
+
Content-Encoding:
|
37
|
+
- gzip
|
38
|
+
Vary:
|
39
|
+
- Accept-Encoding
|
40
|
+
X-Aspnet-Version:
|
41
|
+
- 4.0.30319
|
42
|
+
X-Powered-By:
|
43
|
+
- ASP.NET
|
44
|
+
Date:
|
45
|
+
- Fri, 13 Jan 2017 16:48:10 GMT
|
46
|
+
Content-Length:
|
47
|
+
- '642'
|
48
|
+
Set-Cookie:
|
49
|
+
- TS017f1821=01a8ddc44e28e99d030c419ad030af7f1f93379bc9fbb38f10f0d66b33d318b05657f1133b87f74a4187adcefb6d9a64fc3d0a8ad3;
|
50
|
+
Path=/
|
51
|
+
body:
|
52
|
+
encoding: ASCII-8BIT
|
53
|
+
string: !binary |-
|
54
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
55
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
56
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
57
|
+
6Gk1NZ++2jnYv3ewe+/hgX7xNGv5i72d3QfbO7vbu/fwxZtikTdttliFX73Z
|
58
|
+
/fTR/sGj3Z3xp/ce7uzf3/spbly1WXm8qNbLFs13Px3f37OfPy2aqflmx356
|
59
|
+
+i5frNqiWoYfv8neZZOS8Qmh0Bf48N54n/E2n51k5XRd0ghmwbfZu+fFMm/o
|
60
|
+
s+8lRBf88aKivz7a3X5+pi0MQV6e7NzboUc/ziZFWbTX+Kat1zk+fULoz7L6
|
61
|
+
+nl+mZf44qeK1X180R9Ef7CAKAM6GO99io9eEbr4e2e8t0v9mmb4aHf8YF//
|
62
|
+
DEfmffE0b7OitGM7QXc14/viOZq8yi8UI/n7O+u6aN5cr7hP09p8boggTQn6
|
63
|
+
10CWAb3IFtzuxembb5++en784ulrfEdNzTev2wxUnKUM8pck309+STKiAbjJ
|
64
|
+
2dt+9kpfMng9e0V90qMf/2hy+IP3QJYBmSl4v8n5fiJtjmezmvSIEyf9gP78
|
65
|
+
6OBh+qLI11f5clb89FsA1S8N7k9Ji+DjE52240XT5vUsW/CHOmD6XMb4siKd
|
66
|
+
U5p3d3d299IvTvAFoSGkO2OK7+3c33n4EF/w+MwLBER4SpHAZ7v3d9KXxXSa
|
67
|
+
zYqyZNrql+alXXxm0HtWVnW+nDJnedidvcEHIXbAwVC8hxt/EeBGIBxJIzr3
|
68
|
+
lyT/D/Ggu3bBBQAA
|
69
|
+
http_version:
|
70
|
+
recorded_at: Fri, 13 Jan 2017 16:48:10 GMT
|
71
|
+
- request:
|
72
|
+
method: post
|
73
|
+
uri: https://development.avalara.net/1.0/tax/get
|
74
|
+
body:
|
75
|
+
encoding: UTF-8
|
76
|
+
string: '{"DocCode":"R084381398","DocDate":"2017-01-13","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"89
|
77
|
+
Nieuwendijk","Line2":"","City":"Amsterdam","Region":"","Country":"NL","PostalCode":"1012
|
78
|
+
MC"},{"AddressCode":"1","Line1":"150 Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
79
|
+
#5 - 9543","TaxCode":"PC030000","ItemCode":"SKU-5","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
|
80
|
+
Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
81
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R084381398","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
|
+
- '1103'
|
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
|
+
- Fri, 13 Jan 2017 16:48:11 GMT
|
114
|
+
Content-Length:
|
115
|
+
- '640'
|
116
|
+
Set-Cookie:
|
117
|
+
- TS017f1821=01a8ddc44e6c73ab30faa3c534300634cb4aad0814df524c62d4cf008b52a13fc86e8272b3f2998ad6f83e18b69c02e10802ca873d;
|
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/Onezu6D7Z3d7d17+OJNscibNluswq/e7H76aP/g0e7u+MHO3qe7
|
126
|
+
9+79FDeu2qw8XlTrZYvmu5+O7+/Zz58WzdR8s2M/PX2XL1ZtUS3Dj99k77JJ
|
127
|
+
yfiEUOgLfHhvvH/gf3aSldN1SSOYBd9m7+KjouEaIrzaOdi/d7B776F543mx
|
128
|
+
zBv65nsJEQx/vKjor492t5+faQvz6suTnXs79OjH2aQoi/Ya37T1OsenT2jA
|
129
|
+
s6y+fp5f5iW++KlidR9f9IfdJw8gCgkOxnuf4qNXOpid8d4u9Wua4SOaiH39
|
130
|
+
M6SF98XTvM2K0o7tBN3VjO+L52jyKr9QjOTv76zronlzveI+TWvzuSGCNCXo
|
131
|
+
XwNZBvQiW3C7F6dvvn366vnxi6ev8R01Nd+8bjNQcZYyyF+SfD/5JcmIBuAm
|
132
|
+
Z2/72St9yeD17BX1SY9+/KPJ4Q/eA1kGZKbg/Sbn+4m0OZ7NalIwTpz0A/rz
|
133
|
+
o4OH6YsiX1/ly1nx028BVL80uD8lvYOPT3TajhdNm9ezbMEf6oDpcxnjy4q0
|
134
|
+
VGne3d3Z3Uu/OMEXhIaQ7owpvrdzf+fhQ3zB4zMvEBDhKUUCn+3e30lfFtNp
|
135
|
+
NivKkmmrX5qXdvGZQe9ZWdX5csqc5WF39gYfhNgBB0PxHm78RYAbgQBJf0ny
|
136
|
+
/wAK+VwzwQUAAA==
|
137
|
+
http_version:
|
138
|
+
recorded_at: Fri, 13 Jan 2017 16:48:11 GMT
|
139
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,144 @@
|
|
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":"R488915094","DocDate":"2017-01-13","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"89
|
9
|
+
Nieuwendijk","Line2":"","City":"Amsterdam","Region":"","Country":"NL","PostalCode":"1012
|
10
|
+
MC"},{"AddressCode":"1","Line1":"150 Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
11
|
+
#6 - 9407","TaxCode":"PC030000","ItemCode":"SKU-6","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
|
12
|
+
Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
13
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R488915094","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
14
|
+
headers:
|
15
|
+
Accept:
|
16
|
+
- "*/*; q=0.5, application/xml"
|
17
|
+
Accept-Encoding:
|
18
|
+
- gzip, deflate
|
19
|
+
Authorization:
|
20
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Content-Length:
|
24
|
+
- '1103'
|
25
|
+
User-Agent:
|
26
|
+
- Ruby
|
27
|
+
response:
|
28
|
+
status:
|
29
|
+
code: 200
|
30
|
+
message: OK
|
31
|
+
headers:
|
32
|
+
Cache-Control:
|
33
|
+
- private
|
34
|
+
Content-Type:
|
35
|
+
- text/json; charset=utf-8
|
36
|
+
Content-Encoding:
|
37
|
+
- gzip
|
38
|
+
Vary:
|
39
|
+
- Accept-Encoding
|
40
|
+
X-Aspnet-Version:
|
41
|
+
- 4.0.30319
|
42
|
+
X-Powered-By:
|
43
|
+
- ASP.NET
|
44
|
+
Date:
|
45
|
+
- Fri, 13 Jan 2017 16:48:12 GMT
|
46
|
+
Content-Length:
|
47
|
+
- '638'
|
48
|
+
Set-Cookie:
|
49
|
+
- TS017f1821=01a8ddc44eea5e9133a0ecc0abe61452fe71177d684d64c59382624698c78963f534913e9af3ae911932e2cb432e1e89afaa09c393;
|
50
|
+
Path=/
|
51
|
+
body:
|
52
|
+
encoding: ASCII-8BIT
|
53
|
+
string: !binary |-
|
54
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
55
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
56
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
57
|
+
6Gk1NZ++2j84eLh7f+fhvn7xNGv5i72d3QfbO7vbu/fwxZtikTdttliFX73Z
|
58
|
+
/fTR/sGj3Xvj+/fu7T38KW5atVl5vKjWyxaNdz8d39+znz8tmqn5Zsd+evou
|
59
|
+
X6zaolqGH7/J3mWTkrEJodAX+PDeeP/A/+wkK6frkvCfBd9m754Xy7yhz76X
|
60
|
+
EFXwx4uK/vpod/v5mbYw5Hh5snNvhx79OJsUZdFe45u2Xuf49AmhP8vq6+f5
|
61
|
+
ZV7ii58qVvfxRX8Q/cECogzoYLz3KT56Reji753x3i71a5rho93xA54U+jMc
|
62
|
+
mffF07zNitKO7QTd1Yzvi+do8iq/UIzk7++s66J5c73iPk1r87khgjQl6F8D
|
63
|
+
WQb0Iltwuxenb759+ur58Yunr/EdNTXfvG4zUHGWMshfknw/+SXJiAbgJmdv
|
64
|
+
+9krfcng9ewV9UmPfvyjyeEP3gNZBmSm4P0m5/uJtDmezWrSIk6c9AP686OD
|
65
|
+
h+mLIl9f5ctZ8dNvAVS/NLg/JR2Cj0902o4XTZvXs2zBH+qA6XMZ48uKNE5p
|
66
|
+
3t3d2d1LvzjBF4SGkO6MKb63Q+rrIb7g8ZkXCIjwlCKBz0jRpS+L6TSbFWXJ
|
67
|
+
tNUvzUu7+Myg96ys6nw5Zc7ysDt7gw9C7ICDoXgPN/4iwI1AOJJGNO4vSf4f
|
68
|
+
j0gtWL8FAAA=
|
69
|
+
http_version:
|
70
|
+
recorded_at: Fri, 13 Jan 2017 16:48:13 GMT
|
71
|
+
- request:
|
72
|
+
method: post
|
73
|
+
uri: https://development.avalara.net/1.0/tax/get
|
74
|
+
body:
|
75
|
+
encoding: UTF-8
|
76
|
+
string: '{"DocCode":"R488915094","DocDate":"2017-01-13","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"89
|
77
|
+
Nieuwendijk","Line2":"","City":"Amsterdam","Region":"","Country":"NL","PostalCode":"1012
|
78
|
+
MC"},{"AddressCode":"1","Line1":"150 Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
79
|
+
#6 - 9407","TaxCode":"PC030000","ItemCode":"SKU-6","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
|
80
|
+
Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
81
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R488915094","DetailLevel":"Tax","CurrencyCode":"USD","BusinessIdentificationNo":"123456789"}'
|
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
|
+
- '1142'
|
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
|
+
- Fri, 13 Jan 2017 16:48:14 GMT
|
114
|
+
Content-Length:
|
115
|
+
- '861'
|
116
|
+
Set-Cookie:
|
117
|
+
- TS017f1821=01a8ddc44eed3093abf9e4a6be093779490fe50f1c63178824b468d77548d9d2a9651cf65fa957d5eb8e9caf8ff65a9cfeb2758a93;
|
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++2j84eLh7f+fhvn7xNGv5i72d3QfbO7vbu/fwxZtikTdttliFX73Z
|
126
|
+
/fTR/sGj3f3xpw8OHj7cf/hT3Lhqs/J4Ua2XrTS3Hz4tmqn52H16+i5frNqi
|
127
|
+
WoYfv8neZZNSkfE/xSfBBydZOV2XhPjMfZW9e14s84Y++F5CtMAfLyr666Pd
|
128
|
+
7edn2sIQ4eXJzr0devTjbFKURXuNb9p6nePTJ4T1LKuvn+eXeYkvfqpY3ccX
|
129
|
+
fdz7YwREGccuf/CKMMVfO2Pqkx58Ro34I/09PqKneZsVpR3TCbqpGc+zN2jy
|
130
|
+
Kr9QTOTv76zronlzveLeTGvzuRm8NCXo74ckw3iRLbjR2Zvj578PPqUW5rOf
|
131
|
+
yusqZSi/JPl+8kuSEWHsZmFv+9krfcEg8uwVdUOPfvyjWaAPbkKSYRiK32YW
|
132
|
+
vp/I98ezWU3awAmIfkB/fnTwMH1R5OurfDkrfvotAOqXBtmnpAvw8YnOz/Gi
|
133
|
+
afN6li34Qx0hff7iOT54WZHmKM27uzu7e+kXJ/iC0BBanTF993ZIDT3EFzwq
|
134
|
+
8wIBEeZRJPAZKaz0ZTGdZrOiLJmY+qV5aRefGfSelVWdL6fMQh52QvIQO+DA
|
135
|
+
hI3hxl8EuBEIR9K45vyCsMouHJ1frxcLYmH686Oz5WVVTPM0NW3S86pO23me
|
136
|
+
tnW2bLIpczTBcBz30S/+fc1r+tIXGWj/vGja3/ejR9+jr/VzoEif7IzsJ/TX
|
137
|
+
7/vRiyrNVquymILPUlLq9E2xvNCeiyYtSUTHv+9Hv2TUA7XbAXVGhMy2T79K
|
138
|
+
X68J4nVanaefV9WsSbMmXeV1ely343T33kFKTX7y+E36tKhzGtJlnu7t7Hz6
|
139
|
+
+97d3d2jfr5PUMMReWMhqorKoL9/X9bcv+9H1F4bGrwY17Ap1Euk6c4v+f4v
|
140
|
+
AUFfkwKplTs8u/i6WtdTnsPjy6zM6mxMPwnw+HVeXxKCzZj+4Bn/Jcn/A6zP
|
141
|
+
d9tgBwAA
|
142
|
+
http_version:
|
143
|
+
recorded_at: Fri, 13 Jan 2017 16:48:14 GMT
|
144
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,137 @@
|
|
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":"R427279044","DocDate":"2017-01-13","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"34
|
9
|
+
Borgo degli Albizi","Line2":"","City":"Florence","Region":"","Country":"IT","PostalCode":"50122"},{"AddressCode":"1","Line1":"150
|
10
|
+
Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
11
|
+
#8 - 5245","TaxCode":"PC030000","ItemCode":"SKU-8","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
|
12
|
+
Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
13
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R427279044","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
14
|
+
headers:
|
15
|
+
Accept:
|
16
|
+
- "*/*; q=0.5, application/xml"
|
17
|
+
Accept-Encoding:
|
18
|
+
- gzip, deflate
|
19
|
+
Authorization:
|
20
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Content-Length:
|
24
|
+
- '1107'
|
25
|
+
User-Agent:
|
26
|
+
- Ruby
|
27
|
+
response:
|
28
|
+
status:
|
29
|
+
code: 200
|
30
|
+
message: OK
|
31
|
+
headers:
|
32
|
+
Cache-Control:
|
33
|
+
- private
|
34
|
+
Content-Type:
|
35
|
+
- text/json; charset=utf-8
|
36
|
+
Content-Encoding:
|
37
|
+
- gzip
|
38
|
+
Vary:
|
39
|
+
- Accept-Encoding
|
40
|
+
X-Aspnet-Version:
|
41
|
+
- 4.0.30319
|
42
|
+
X-Powered-By:
|
43
|
+
- ASP.NET
|
44
|
+
Date:
|
45
|
+
- Fri, 13 Jan 2017 16:48:19 GMT
|
46
|
+
Content-Length:
|
47
|
+
- '607'
|
48
|
+
Set-Cookie:
|
49
|
+
- TS017f1821=01a8ddc44e47e4a0f8dae67358294f343e22b2ef1223d3ce38b887ec24e035a91b8b856d78c55c57d916d7d37c411299fa91edf9cc;
|
50
|
+
Path=/
|
51
|
+
body:
|
52
|
+
encoding: ASCII-8BIT
|
53
|
+
string: !binary |-
|
54
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
55
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
56
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
57
|
+
6Gk1fZq1/Onezu6D7Z3d7d17+OJNscibNluswq/e7H76aP/g0e7D8cHOvYc7
|
58
|
+
n/4Ut63arDxeVOtli9a7n4737cdPi2Zqvtixn56+yxertqiW4cdvsnfZpGRs
|
59
|
+
AiD0OT67N/7U/+gkK6frkrCf+V9m7+IDopGa8b/a33uw9+Dhzr70kL17Xizz
|
60
|
+
hr75XkK0wh8vKvrro93t52fawrz68mTn3g49+nE2KcqivcY3bb3O8ekTGu0s
|
61
|
+
q6+f55d5iS9+qljdxxf9MfdpA4gy/oPxHj55pWPZGe/tUbemFT7aHR/oXyEh
|
62
|
+
3OdP8zYrSjuwE/RVM7Jnb9DkVX6h6Mjf31nXRfPmesU9mtbmc0MBaUrQ3xtT
|
63
|
+
BvMiW3CzszfHz38ffEptzGev2wykm6UM65ck309+STIixN2M7G0/e6UvGXye
|
64
|
+
vaLO6NGPfzQj74EpgzHUv+2MfD+RNsezWU1axAmOfkB/fnRvP31S1RdVOssv
|
65
|
+
yiI9LifFDwrA1jYG9aekY/DxiU7Zs7Kq8+WUp80Mlz6WEb6sSCGV5tX7O7t7
|
66
|
+
PExCRch2xsTe27m/85DHyqMzzQmEMJNigM927++kL4vpNJsVZcl01S/NS7v4
|
67
|
+
7GvgBhwYhffADaT9fwBPGjViqgUAAA==
|
68
|
+
http_version:
|
69
|
+
recorded_at: Fri, 13 Jan 2017 16:48:19 GMT
|
70
|
+
- request:
|
71
|
+
method: post
|
72
|
+
uri: https://development.avalara.net/1.0/tax/get
|
73
|
+
body:
|
74
|
+
encoding: UTF-8
|
75
|
+
string: '{"DocCode":"R427279044","DocDate":"2017-01-13","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"34
|
76
|
+
Borgo degli Albizi","Line2":"","City":"Florence","Region":"","Country":"IT","PostalCode":"50122"},{"AddressCode":"1","Line1":"150
|
77
|
+
Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
78
|
+
#8 - 5245","TaxCode":"PC030000","ItemCode":"SKU-8","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
|
79
|
+
Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
80
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R427279044","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
81
|
+
headers:
|
82
|
+
Accept:
|
83
|
+
- "*/*; q=0.5, application/xml"
|
84
|
+
Accept-Encoding:
|
85
|
+
- gzip, deflate
|
86
|
+
Authorization:
|
87
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
88
|
+
Content-Type:
|
89
|
+
- application/json
|
90
|
+
Content-Length:
|
91
|
+
- '1107'
|
92
|
+
User-Agent:
|
93
|
+
- Ruby
|
94
|
+
response:
|
95
|
+
status:
|
96
|
+
code: 200
|
97
|
+
message: OK
|
98
|
+
headers:
|
99
|
+
Cache-Control:
|
100
|
+
- private
|
101
|
+
Content-Type:
|
102
|
+
- text/json; charset=utf-8
|
103
|
+
Content-Encoding:
|
104
|
+
- gzip
|
105
|
+
Vary:
|
106
|
+
- Accept-Encoding
|
107
|
+
X-Aspnet-Version:
|
108
|
+
- 4.0.30319
|
109
|
+
X-Powered-By:
|
110
|
+
- ASP.NET
|
111
|
+
Date:
|
112
|
+
- Fri, 13 Jan 2017 16:48:20 GMT
|
113
|
+
Content-Length:
|
114
|
+
- '610'
|
115
|
+
Set-Cookie:
|
116
|
+
- TS017f1821=01a8ddc44e8b8d6056c83fce317ad03326e4732f341aa5ef5cf0fd1976add8863777564090ef700709edfb14811fda7cc6ca2c9b94;
|
117
|
+
Path=/
|
118
|
+
body:
|
119
|
+
encoding: ASCII-8BIT
|
120
|
+
string: !binary |-
|
121
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
122
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
123
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
124
|
+
6Gk1NZ++2t97sPfg4c7+vn7xNGv5i72d3QfbO7vbu/fwxZtikTdttliFX73Z
|
125
|
+
/fTR/sGjvd3xzr17Dx8efPpT3Lhqs/J4Ua2XLZrvfjpm4Pzx06KZmi927Ken
|
126
|
+
7/LFqi2qZfjxm+xdNikZnQAIfY7P7o0/9T86ycrpuiT0Z/6X2bvnxTJv6KPv
|
127
|
+
JUQT/PGior8+2t1+fqYtDDFenuzc26FHP84mRVm01/imrdc5Pn1CuM+y+vp5
|
128
|
+
fpmX+OKnitV9fNEfQX+kgCijORjv4ZNXhCz+3Bnv7VG3phU+2h0f6F/hsNzn
|
129
|
+
T/M2K0o7sBP0VTOyZ2/Q5FV+oejI399Z10Xz5nrFPZrW5nNDAWlK0N8bUwbz
|
130
|
+
Iltws7M3x89/H3xKbcxnr9sMpJulDOuXJN9PfkkyIsTdjOxtP3ulLxl8nr2i
|
131
|
+
zujRj380I++BKYMx1L/tjHw/kTbHs1lN2sIJjn5Af350bz99UtUXVTrLL8oi
|
132
|
+
PS4nxQ8KwNY2BvWnpDLw8YlO2bOyqvPllKfNDJc+lhG+rEi/lObV+zu7ezxM
|
133
|
+
QkXIdsbE3tu5v/OQx8qjM80JhDCTYoDPdu/vpC+L6TSbFWXJdNUvzUu7+Oxr
|
134
|
+
4AYcGIX3wM2QNaJdf0ny/wDR9YcCqwUAAA==
|
135
|
+
http_version:
|
136
|
+
recorded_at: Fri, 13 Jan 2017 16:48:21 GMT
|
137
|
+
recorded_with: VCR 3.0.3
|
data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_same_EU_country/tax_detail_country_equals_to_IT.yml
ADDED
@@ -0,0 +1,138 @@
|
|
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":"R218526109","DocDate":"2017-01-13","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"34
|
9
|
+
Borgo degli Albizi","Line2":"","City":"Florence","Region":"","Country":"IT","PostalCode":"50122"},{"AddressCode":"1","Line1":"150
|
10
|
+
Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
11
|
+
#7 - 7357","TaxCode":"PC030000","ItemCode":"SKU-7","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
|
12
|
+
Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
13
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R218526109","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
14
|
+
headers:
|
15
|
+
Accept:
|
16
|
+
- "*/*; q=0.5, application/xml"
|
17
|
+
Accept-Encoding:
|
18
|
+
- gzip, deflate
|
19
|
+
Authorization:
|
20
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Content-Length:
|
24
|
+
- '1107'
|
25
|
+
User-Agent:
|
26
|
+
- Ruby
|
27
|
+
response:
|
28
|
+
status:
|
29
|
+
code: 200
|
30
|
+
message: OK
|
31
|
+
headers:
|
32
|
+
Cache-Control:
|
33
|
+
- private
|
34
|
+
Content-Type:
|
35
|
+
- text/json; charset=utf-8
|
36
|
+
Content-Encoding:
|
37
|
+
- gzip
|
38
|
+
Vary:
|
39
|
+
- Accept-Encoding
|
40
|
+
X-Aspnet-Version:
|
41
|
+
- 4.0.30319
|
42
|
+
X-Powered-By:
|
43
|
+
- ASP.NET
|
44
|
+
Date:
|
45
|
+
- Fri, 13 Jan 2017 16:48:15 GMT
|
46
|
+
Content-Length:
|
47
|
+
- '608'
|
48
|
+
Set-Cookie:
|
49
|
+
- TS017f1821=01a8ddc44ed2bb88df4baa8965f42e9d94ef608358110b6806af4da696d30b444be96fe7f9d55519f51150fb958f02e6c7daf2b40e;
|
50
|
+
Path=/
|
51
|
+
body:
|
52
|
+
encoding: ASCII-8BIT
|
53
|
+
string: !binary |-
|
54
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
55
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
56
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
57
|
+
6Gk1NZ++2ts9uL/36e7OQ/3iadbyF3s7uw+2d3a3d+/hizfFIm/abLEKv3qz
|
58
|
+
++mj/YNHu5+OH3z6YPfTe/s/xY2rNiuPF9V62aI5fbtvP35aNFPzxY799PRd
|
59
|
+
vli1RbUMP36TvcsmJaMTAKHP8dm98af+RydZOV2XhP7M/zJ797xY5g199L2E
|
60
|
+
aII/XlT010e728/PtIUhxsuTnXs79OjH2aQoi/Ya37T1OsenTwj3WVZfP88v
|
61
|
+
8xJf/FSxuo8v+iPojxQQZTQH4z188oqQxZ8747096ta0wke74wP9KxyW+/xp
|
62
|
+
3mZFaQd2gr5qRvbsDZq8yi8UHfn7O+u6aN5cr7hH09p8biggTQn6e2PKYF5k
|
63
|
+
C2529ub4+e+DT6mN+ex1m4F0s5Rh/ZLk+8kvSUaEuJuRve1nr/Qlg8+zV9QZ
|
64
|
+
Pfrxj2bkPTBlMIb6t52R7yfS5ng2q0lbOMHRD+jPj+7tp0+q+qJKZ/lFWaTH
|
65
|
+
5aT4QQHY2sag/pRUBj4+0Sl7VlZ1vpzytJnh0scywpcV6ZfSvHp/Z3ePh0mo
|
66
|
+
CNnOmNh7O/d3HvJYeXSmOYEQZlIM8Nnu/Z30ZTGdZrOiLJmu+qV5aReffQ3c
|
67
|
+
gAOj8B64GbJGtOsvSf4fdm1RaqsFAAA=
|
68
|
+
http_version:
|
69
|
+
recorded_at: Fri, 13 Jan 2017 16:48:16 GMT
|
70
|
+
- request:
|
71
|
+
method: post
|
72
|
+
uri: https://development.avalara.net/1.0/tax/get
|
73
|
+
body:
|
74
|
+
encoding: UTF-8
|
75
|
+
string: '{"DocCode":"R218526109","DocDate":"2017-01-13","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"34
|
76
|
+
Borgo degli Albizi","Line2":"","City":"Florence","Region":"","Country":"IT","PostalCode":"50122"},{"AddressCode":"1","Line1":"150
|
77
|
+
Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
78
|
+
#7 - 7357","TaxCode":"PC030000","ItemCode":"SKU-7","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
|
79
|
+
Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
80
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R218526109","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
81
|
+
headers:
|
82
|
+
Accept:
|
83
|
+
- "*/*; q=0.5, application/xml"
|
84
|
+
Accept-Encoding:
|
85
|
+
- gzip, deflate
|
86
|
+
Authorization:
|
87
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
88
|
+
Content-Type:
|
89
|
+
- application/json
|
90
|
+
Content-Length:
|
91
|
+
- '1107'
|
92
|
+
User-Agent:
|
93
|
+
- Ruby
|
94
|
+
response:
|
95
|
+
status:
|
96
|
+
code: 200
|
97
|
+
message: OK
|
98
|
+
headers:
|
99
|
+
Cache-Control:
|
100
|
+
- private
|
101
|
+
Content-Type:
|
102
|
+
- text/json; charset=utf-8
|
103
|
+
Content-Encoding:
|
104
|
+
- gzip
|
105
|
+
Vary:
|
106
|
+
- Accept-Encoding
|
107
|
+
X-Aspnet-Version:
|
108
|
+
- 4.0.30319
|
109
|
+
X-Powered-By:
|
110
|
+
- ASP.NET
|
111
|
+
Date:
|
112
|
+
- Fri, 13 Jan 2017 16:48:18 GMT
|
113
|
+
Content-Length:
|
114
|
+
- '647'
|
115
|
+
Set-Cookie:
|
116
|
+
- TS017f1821=01a8ddc44e4c1f43ddb7777de6b98c8682750dd431e9ffdb72899e67f52342bdc4f6c4dbdeb76f973038b27375d2180dc47f3c7b85;
|
117
|
+
Path=/
|
118
|
+
body:
|
119
|
+
encoding: ASCII-8BIT
|
120
|
+
string: !binary |-
|
121
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
122
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
123
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tHTanpSzfKPHqUfvdrbPbi/9+nuzsOP
|
124
|
+
RvzF06zlL/Z2dh9s7+xu797DF2+KRd602WIVfvVm99NH+wePdg/Gu7sP7h3s
|
125
|
+
7v8UN67arDxeVOtli+a7n4737cdPi2Zqvtixn56+yxertqiW4cdvsnfZpGR0
|
126
|
+
AiD0OT67N/7U/+gkK6frktCf+V9m7wZGlL17Xizzhr75XkI0wR8vKvrro93t
|
127
|
+
52fawlDp5cnOvR169ONsUpRFe41v2nqd49MnNKhZVl8/zy/zEl/8VLG6jy+4
|
128
|
+
uYzhYLyHT14pPjvjvT2CaYDio93xAf7qE4lQCUanDSN0o/HmbVaUdmD0yXsj
|
129
|
+
8Cq/UKBnb/D3CbCpecDywXfWddG8uV4xHPOt+fxFtuDPz94cP/997KeGlgKA
|
130
|
+
+jPNXrcZSDdLGa9fknw/+SXJiBB3M7K3/eyVvmSgPHtFiNOjH7/PjPSJFqP3
|
131
|
+
e9OM/orOEX3emRFDL2ojxOiSm+k1RF1DAWlK0N8bUwZjqG8nidqYz2Iz8v1E
|
132
|
+
2hzPZnXeNE5w9AP686N7++mTqr6o0ll+URbpcTkpflAAtrYxqD8lXYKPT3TK
|
133
|
+
npVVnS+nPG1muPSxjPBlRYqnNK/e39nd42ESKkK2Myb23s79nYc8Vh6daU4g
|
134
|
+
hJkUA3y2e38nfVlMp9msKEumq35pXtrFZ18DN+DAKLwHbkzWV3mzLlvz+ev1
|
135
|
+
dErYfPRLkv8HvWzJs6sFAAA=
|
136
|
+
http_version:
|
137
|
+
recorded_at: Fri, 13 Jan 2017 16:48:18 GMT
|
138
|
+
recorded_with: VCR 3.0.3
|