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,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":"R058692896","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":"350
|
9
|
+
Av Central","Line2":"","City":"Tamarindo","Region":"","Country":"CR","PostalCode":"50309"},{"AddressCode":"1","Line1":"150
|
10
|
+
Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
11
|
+
#11 - 3576","TaxCode":"PC030000","ItemCode":"SKU-11","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":"R058692896","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:27 GMT
|
46
|
+
Content-Length:
|
47
|
+
- '608'
|
48
|
+
Set-Cookie:
|
49
|
+
- TS017f1821=01a8ddc44e7322152a5c2f7f4b4e932b249bf6682bcb062588523e2ee6d3072325032383042b4e6bfaf464322d54f2e56ec48e199e;
|
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++2rl/8OnDvYOHn+oXT7OWv9jb2X2wvbO7vXsPX7wpFnnTZotV+NWb
|
58
|
+
3U8f7R882jsY7+/t3d/f3fspbly1WXm8qNbLVprbD58WzdR87D49fZcvVm1R
|
59
|
+
LcOP32TvskmpyPif4pPgg5OsnK5LQnzmvsrePS+WeUMffC8hWuCPFxX99dHu
|
60
|
+
9vMzbWGI8PJk594OPfpxNinKor3GN229zvHpE8J6ltXXz/PLvMQXP1Ws7uOL
|
61
|
+
Pu79MQKijGOXP3hFmOKvnTH1SQ8+o0b8kf4eH9HTvM2K0o7pBN3UjOfZGzR5
|
62
|
+
lV8oJvL3d9Z10by5XnFvprX53AxemhL090OSYbzIFtzo7M3x898Hn1IL89lP
|
63
|
+
5XWVMpRfknw/+SXJiDB2s7C3/eyVvmAQefaKuqFHP/7RLNAHNyHJMAzFbzML
|
64
|
+
30/k++PZrCZt4AREP6A/P7p3fyc9vkxPcsI0KwFQvzTIPiVdgI9PdH7eZIus
|
65
|
+
Lpazij/UEdLnJzzFLyvSHKV59z6J2kN8TEgIpc6Yuns793f3WNfwmExzAiGs
|
66
|
+
oyjgs13C72UxnWazoiyZlPqleWkXnxnknpVVnS+nzEAebkLwEDfCwZK4g9vO
|
67
|
+
Q/4iwI1AOIJG9OYvSf4fxx8u9IUFAAA=
|
68
|
+
http_version:
|
69
|
+
recorded_at: Fri, 13 Jan 2017 16:48:28 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":"R058692896","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":"350
|
76
|
+
Av Central","Line2":"","City":"Tamarindo","Region":"","Country":"CR","PostalCode":"50309"},{"AddressCode":"1","Line1":"150
|
77
|
+
Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
78
|
+
#11 - 3576","TaxCode":"PC030000","ItemCode":"SKU-11","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":"R058692896","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
|
+
- '1103'
|
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:29 GMT
|
113
|
+
Content-Length:
|
114
|
+
- '609'
|
115
|
+
Set-Cookie:
|
116
|
+
- TS017f1821=01a8ddc44e604905d277d4915926bb1737d5feae12f1937fd90aa638d5916bd6fd0b8e09db066369a3404d1d8cbb5bdfc7246c4624;
|
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++2rl/8OnDvYOHn+oXT7OWv9jb2X2wvbO7vXsPX7wpFnnTZotV+NWb
|
125
|
+
3U8f7R882ns4vr/z8OHOwac/xY2rNiuPF9V62Upz++HTopmaj92np+/yxaot
|
126
|
+
qmX48ZvsXTYpFRn/U3wSfHCSldN1SYjP3FfZu+fFMm/og+8lRAv88aKivz7a
|
127
|
+
3X5+pi0MEV6e7NzboUc/ziZFWbTX+Kat1zk+fUJYz7L6+nl+mZf44qeK1X18
|
128
|
+
0ce9P0ZAlHHs8gevCFP8tTOmPunBZ9SIP9Lf4yN6mrdZUdoxnaCbmvE8e4Mm
|
129
|
+
r/ILxUT+/s66Lpo31yvuzbQ2n5vBS1OC/n5IMowX2YIbnb05fv774FNqYT77
|
130
|
+
qbyuUobyS5LvJ78kGRHGbhb2tp+90hcMIs9eUTf06Mc/mgX64CYkGYah+G1m
|
131
|
+
4fuJfH88m9WkDZyA6Af050f37u+kx5fpSU6YZiUA6pcG2aekC/Dxic7Pm2yR
|
132
|
+
1cVyVvGHOkL6/ISn+GVFmqM0794nUXuIjwkJodQZU3dv5/7uHusaHpNpTiCE
|
133
|
+
dRQFfLZL+L0sptNsVpQlk1K/NC/t4jOD3LOyqvPllBnIw00IHuJGOFgSd3Db
|
134
|
+
echfBLgRCEfQiN78Jcn/A1STE+OFBQAA
|
135
|
+
http_version:
|
136
|
+
recorded_at: Fri, 13 Jan 2017 16:48:29 GMT
|
137
|
+
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":"R319628057","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":"350
|
9
|
+
Av Central","Line2":"","City":"Tamarindo","Region":"","Country":"CR","PostalCode":"50309"},{"AddressCode":"1","Line1":"150
|
10
|
+
Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
11
|
+
#9 - 3620","TaxCode":"PC030000","ItemCode":"SKU-9","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":"R319628057","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
|
+
- '1101'
|
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:22 GMT
|
46
|
+
Content-Length:
|
47
|
+
- '608'
|
48
|
+
Set-Cookie:
|
49
|
+
- TS017f1821=01a8ddc44ef02540392640e720a3b31c69ce65b79ac3c9bcef63c51efa92d928aa21775fb057cff2e78c43b2e242e7145e732b0822;
|
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++urf78NO9g537D/SLp1nLX+zt7D7Y3tnd3r2HL94Ui7xps8Uq/OrN
|
58
|
+
7qeP9g8e7e2ND3Z2Ht6/d/BT3Lhqs/J4Ua2XrTS3Hz4tmqn52H16+i5frNqi
|
59
|
+
WoYfv8neZZNSkfE/xSfBBydZOV2XhPjMfZW9e14s84Y++F5CtMAfLyr666Pd
|
60
|
+
7edn2sIQ4eXJzr0devTjbFKURXuNb9p6nePTJ4T1LKuvn+eXeYkvfqpY3ccX
|
61
|
+
fdz7YwREGccuf/CKMMVfO2Pqkx58Ro34I/09PqKneZsVpR3TCbqpGc+zN2jy
|
62
|
+
Kr9QTOTv76zronlzveLeTGvzuRm8NCXo74ckw3iRLbjR2Zvj578PPqUW5rOf
|
63
|
+
yusqZSi/JPl+8kuSEWHsZmFv+9krfcEg8uwVdUOPfvyjWaAPbkKSYRiK32YW
|
64
|
+
vp/I98ezWU3awAmIfkB/fnTv/k56fJme5IRpVgKgfmmQfUq6AB+f6Py8yRZZ
|
65
|
+
XSxnFX+oI6TPT3iKX1akOUrz7n0StYf4mJAQSp0xdfd27u/usa7hMZnmBEJY
|
66
|
+
R1HAZ7uE38tiOs1mRVkyKfVL89IuPjPIPSurOl9OmYE83ITgIW6EgyVxB7ed
|
67
|
+
h/xFgBuBcASN6M1fkvw/I6kDOIUFAAA=
|
68
|
+
http_version:
|
69
|
+
recorded_at: Fri, 13 Jan 2017 16:48:22 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":"R319628057","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":"350
|
76
|
+
Av Central","Line2":"","City":"Tamarindo","Region":"","Country":"CR","PostalCode":"50309"},{"AddressCode":"1","Line1":"150
|
77
|
+
Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
78
|
+
#9 - 3620","TaxCode":"PC030000","ItemCode":"SKU-9","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":"R319628057","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
|
+
- '1101'
|
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:23 GMT
|
113
|
+
Content-Length:
|
114
|
+
- '609'
|
115
|
+
Set-Cookie:
|
116
|
+
- TS017f1821=01a8ddc44e9fd00b0128e2731094f4728dc5174f8dd7731687022a928c7347940c47388b57fff5ed030b8671170521233803ca5c9c;
|
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++urf78NO9g537D/SLp1nLX+zt7D7Y3tnd3r2HL94Ui7xps8Uq/OrN
|
125
|
+
7qeP9g8e7d0bP9zd2Xn44OCnuHHVZuXxolovW2luP3xaNFPzsfv09F2+WLVF
|
126
|
+
tQw/fpO9yyalIuN/ik+CD06ycrouCfGZ+yp797xY5g198L2EaIE/XlT010e7
|
127
|
+
28/PtIUhwsuTnXs79OjH2aQoi/Ya37T1OsenTwjrWVZfP88v8xJf/FSxuo8v
|
128
|
+
+rj3xwiIMo5d/uAVYYq/dsbUJz34jBrxR/p7fERP8zYrSjumE3RTM55nb9Dk
|
129
|
+
VX6hmMjf31nXRfPmesW9mdbmczN4aUrQ3w9JhvEiW3CjszfHz38ffEotzGc/
|
130
|
+
lddVylB+SfL95JckI8LYzcLe9rNX+oJB5Nkr6oYe/fhHs0Af3IQkwzAUv80s
|
131
|
+
fD+R749ns5q0gRMQ/YD+/Oje/Z30+DI9yQnTrARA/dIg+5R0AT4+0fl5ky2y
|
132
|
+
uljOKv5QR0ifn/AUv6xIc5Tm3fskag/xMSEhlDpj6u7t3N/dY13DYzLNCYSw
|
133
|
+
jqKAz3YJv5fFdJrNirJkUuqX5qVdfGaQe1ZWdb6cMgN5uAnBQ9wIB0viDm47
|
134
|
+
D/mLADcC4Qga0Zu/JPl/AJ3JCo6FBQAA
|
135
|
+
http_version:
|
136
|
+
recorded_at: Fri, 13 Jan 2017 16:48:23 GMT
|
137
|
+
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":"R387296431","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":"350
|
9
|
+
Av Central","Line2":"","City":"Tamarindo","Region":"","Country":"CR","PostalCode":"50309"},{"AddressCode":"1","Line1":"150
|
10
|
+
Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
11
|
+
#10 - 4051","TaxCode":"PC030000","ItemCode":"SKU-10","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":"R387296431","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:25 GMT
|
46
|
+
Content-Length:
|
47
|
+
- '609'
|
48
|
+
Set-Cookie:
|
49
|
+
- TS017f1821=01a8ddc44e6509fccff8821cc0391c455f617ae373b423a91be5496fcba277521115eb4dbf660886ef37f5b17cc833f25eff560837;
|
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++unfwYO/hp/v3dvWLp1nLX+zt7D7Y3tnd3r2HL94Ui7xps8Uq/OrN
|
58
|
+
7qeP9g8e7d0ff/rpwc6n+5/+FDeu2qw8XlTrZSvN7YdPi2ZqPnafnr7LF6u2
|
59
|
+
qJbhx2+yd9mkVGT8T/FJ8MFJVk7XJSE+c19l754Xy7yhD76XEC3wx4uK/vpo
|
60
|
+
d/v5mbYwRHh5snNvhx79OJsUZdFe45u2Xuf49AlhPcvq6+f5ZV7ii58qVvfx
|
61
|
+
RR/3/hgBUcaxyx+8Ikzx186Y+qQHn1Ej/kh/j4/oad5mRWnHdIJuasbz7A2a
|
62
|
+
vMovFBP5+zvrumjeXK+4N9PafG4GL00J+vshyTBeZAtudPbm+Pnvg0+phfns
|
63
|
+
p/K6ShnKL0m+n/ySZEQYu1nY2372Sl8wiDx7Rd3Qox//aBbog5uQZBiG4reZ
|
64
|
+
he8n8v3xbFaTNnACoh/Qnx/du7+THl+mJzlhmpUAqF8aZJ+SLsDHJzo/b7JF
|
65
|
+
VhfLWcUf6gjp8xOe4pcVaY7SvHufRO0hPiYkhFJnTN29nfu7e6xreEymOYEQ
|
66
|
+
1lEU8Nku4feymE6zWVGWTEr90rzEuswg96ys6nw5ZQbycBOCh7gRDpbEHdx2
|
67
|
+
HvIXAW4EwhE0ojd/SfL/AD7tbMCFBQAA
|
68
|
+
http_version:
|
69
|
+
recorded_at: Fri, 13 Jan 2017 16:48:25 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":"R387296431","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":"350
|
76
|
+
Av Central","Line2":"","City":"Tamarindo","Region":"","Country":"CR","PostalCode":"50309"},{"AddressCode":"1","Line1":"150
|
77
|
+
Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
78
|
+
#10 - 4051","TaxCode":"PC030000","ItemCode":"SKU-10","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":"R387296431","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
|
+
- '1103'
|
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:26 GMT
|
113
|
+
Content-Length:
|
114
|
+
- '607'
|
115
|
+
Set-Cookie:
|
116
|
+
- TS017f1821=01a8ddc44e09326ed4371767702c0f70c727ec0736dd9802b0f0aeb11fbf0d9a98ee3d11c276d043952fa4eb6f13ece6bf5763e875;
|
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++unfwYO/hp/v3dvWLp1nLX+zt7D7Y3tnd3r2HL94Ui7xps8Uq/OrN
|
125
|
+
7qeP9g8e7X06/nT/0/v08U9x46rNyuNFtV620tx++LRopuZj9+npu3yxaotq
|
126
|
+
GX78JnuXTUpFxv8UnwQfnGTldF0S4jP3VfbuebHMG/rgewnRAn+8qOivj3a3
|
127
|
+
n59pC0OElyc793bo0Y+zSVEW7TW+aet1jk+fENazrL5+nl/mJb74qWJ1H1/0
|
128
|
+
ce+PERBlHLv8wSvCFH/tjKlPevAZNeKP9Pf4iJ7mbVaUdkwn6KZmPM/eoMmr
|
129
|
+
/EIxkb+/s66L5s31inszrc3nZvDSlKC/H5IM40W24EZnb46f/z74lFqYz34q
|
130
|
+
r6uUofyS5PvJL0lGhLGbhb3tZ6/0BYPIs1fUDT368Y9mgT64CUmGYSh+m1n4
|
131
|
+
fiLfH89mNWkDJyD6Af350b37O+nxZXqSE6ZZCYD6pUH2KekCfHyi8/MmW2R1
|
132
|
+
sZxV/KGOkD4/4Sl+WZHmKM2790nUHuJjQkIodcbU3du5v7vHuobHZJoTCGEd
|
133
|
+
RQGf7RJ+L4vpNJsVZcmk1C/NS6zLDHLPyqrOl1NmIA83IXiIG+FgSdzBbech
|
134
|
+
fxHgRiAcQSN685ck/w+eaCOxhQUAAA==
|
135
|
+
http_version:
|
136
|
+
recorded_at: Fri, 13 Jan 2017 16:48:26 GMT
|
137
|
+
recorded_with: VCR 3.0.3
|
@@ -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":"R615425246","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":"350
|
9
|
+
Av Central","Line2":"","City":"Tamarindo","Region":"","Country":"CR","PostalCode":"50309"},{"AddressCode":"1","Line1":"150
|
10
|
+
Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
11
|
+
#12 - 4573","TaxCode":"PC030000","ItemCode":"SKU-12","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":"R615425246","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:30 GMT
|
46
|
+
Content-Length:
|
47
|
+
- '609'
|
48
|
+
Set-Cookie:
|
49
|
+
- TS017f1821=01a8ddc44eb4edd81413902287f30f3a7dcbf4777b417c0ae2e00de142ee1e06604cb347e9f80d22b2ff78d692a8072c316a07021c;
|
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+++nT3/v7e/b39T/WLp1nLX+zt7D7Y3tnd3r2HL94Ui7xps8Uq/OrN
|
58
|
+
7qeP9g8e3dsd7z24t3ew9+lPceOqzcrjRbVettLcfvi0aKbmY/fp6bt8sWqL
|
59
|
+
ahl+/CZ7l01KRcb/FJ8EH5xk5XRdEuIz91X27nmxzBv64HsJ0QJ/vKjor492
|
60
|
+
t5+faQtDhJcnO/d26NGPs0lRFu01vmnrdY5PnxDWs6y+fp5f5iW++KlidR9f
|
61
|
+
9HHvjxEQZRy7/MErwhR/7YypT3rwGTXij/T3+Iie5m1WlHZMJ+imZjzP3qDJ
|
62
|
+
q/xCMZG/v7Oui+bN9Yp7M63N52bw0pSgvx+SDONFtuBGZ2+On/8++JRamM9+
|
63
|
+
Kq+rlKH8kuT7yS9JRoSxm4W97Wev9AWDyLNX1A09+vGPZoE+uAlJhmEofptZ
|
64
|
+
+H4i3x/PZjVpAycg+gH9+dG9+zvp8WV6khOmWQmA+qVB9inpAnx8ovPzJltk
|
65
|
+
dbGcVfyhjpA+P+EpflmR5ijNu/dJ1B7iY0JCKHXG1N3bub+7x7qGx2SaEwhh
|
66
|
+
HUUBn+0Sfi+L6TSbFWXJpNQvzUu7+Mwg96ys6nw5ZQbycBOCh7gRDpbEHdx2
|
67
|
+
HvIXAW4EwhE0ojd/SfL/AOgvF3eFBQAA
|
68
|
+
http_version:
|
69
|
+
recorded_at: Fri, 13 Jan 2017 16:48:31 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":"R615425246","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":"350
|
76
|
+
Av Central","Line2":"","City":"Tamarindo","Region":"","Country":"CR","PostalCode":"50309"},{"AddressCode":"1","Line1":"150
|
77
|
+
Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
78
|
+
#12 - 4573","TaxCode":"PC030000","ItemCode":"SKU-12","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":"R615425246","DetailLevel":"Tax","CurrencyCode":"USD","BusinessIdentificationNo":"123456789"}'
|
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
|
+
- '1142'
|
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:31 GMT
|
113
|
+
Content-Length:
|
114
|
+
- '645'
|
115
|
+
Set-Cookie:
|
116
|
+
- TS017f1821=01a8ddc44eba1a06b687b71a4461b1200de6f7f62f1bb6bbd818a9a41ff11e5b8ec067a2168ab15a18951e2cf3823b024f0b833440;
|
117
|
+
Path=/
|
118
|
+
body:
|
119
|
+
encoding: ASCII-8BIT
|
120
|
+
string: !binary |-
|
121
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
122
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
123
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tHTanpSzfKPHqUfvfp09/7+3v29/U8/
|
124
|
+
GvEXT7OWv9jb2X2wvbO7vXsPX7wpFnnTZotV+NWb3U8f7R88urc33ru3f7C7
|
125
|
+
t/9T3Lhqs/J4Ua2XrTS3Hz4tmqn52H16+i5frNqiWoYfv8neZZNSkfE/xSfB
|
126
|
+
BydZOV2XhPjMfZW9GxhJ9u55scwb+uZ7CdECf7yo6K+Pdrefn2kLQ52XJzv3
|
127
|
+
dujRj7NJURbtNb5p63WOT5/QcGZZff08v8xLfPFTxeo+vuDmgv0uv/9K0dkZ
|
128
|
+
E0B68Bk14o/we582hEd/YBFi0VDzNitKOyb65P36fpVfKMSzN/j7BIjUPFD5
|
129
|
+
4DvrumjeXK8YivnWfP4iW/DnZ2+On/8+9lNDQwFAvZlmP5XXVcoY/ZLk+8kv
|
130
|
+
SUaEsZuFve1nr/QFA+HZK0KZHv34fWahT60Ymd+PWPR7ZF7o084sGDJRC6FB
|
131
|
+
l8pMpiGimsFLU4L+fkgyDENxOzHUwnzWnYXvJ/L98WxW503jBEQ/oD8/und/
|
132
|
+
Jz2+TE9ywjQrAVC/NMg+JSWBj090ft5ki6wulrOKP9QR0ucnPMUvK1IppXn3
|
133
|
+
PonaQ3xMSAilzpi6ezv3d/dYdHlMpjmBENZRFPDZLuH3sphOs1lRlkxK/dK8
|
134
|
+
tIvPDHLPyqrOl1NmIA83IXiIG+FgSdzBbechfxHgRiCUoK/yZl225vPX6+mU
|
135
|
+
sPnolyT/D44BaiSFBQAA
|
136
|
+
http_version:
|
137
|
+
recorded_at: Fri, 13 Jan 2017 16:48:32 GMT
|
138
|
+
recorded_with: VCR 3.0.3
|