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,141 @@
|
|
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":"R943411022","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
|
+
#3 - 3128","TaxCode":"PC030000","ItemCode":"SKU-3","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":100.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":"R943411022","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
|
+
- '1145'
|
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 20:52:49 GMT
|
47
|
+
Content-Length:
|
48
|
+
- '670'
|
49
|
+
Set-Cookie:
|
50
|
+
- TS017f1821=01a8ddc44eb68b9d63ea3e5431f8d48cac134803b91171acfea0eee2287c35b12c54bd923b009bbb7cd200cc8df0ba2d8fa7a40854;
|
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++erh/b393d2dvT794mrX8xd7O7oPtnXvbe7v44k2xyJs2W6zCr97s
|
59
|
+
7Ty6v/do/+H44OHD/fsHez/Fjas2K48X1XrZojlBt58+LZqp+dx9evouX6za
|
60
|
+
olqGH7/J3mWTkrHxYdDH+Gh/vO9/dJKV03VJyM/8L7N3z4tl3tBH30uIIvjj
|
61
|
+
RUV/fbS7/fxMWxhSvDzZubdDj36cTYqyaK/xTVuvc3z6hFCfZfX18/wyL/HF
|
62
|
+
TxWr+/iiP4D+QAFRB8MfvCJc8dfOeGefeuXPqJF8ZLAPR+U+f5q3WVHacZ2g
|
63
|
+
q5px/eo1mrzKLxSb4+f4+zvrumjeXK+4x9ctAbSfmuHvyES/P5oM5UW24GbH
|
64
|
+
z4+fHH9xjM+plfs0ff3m+M1p+ub49/7olyTfT35JMiK0/el49krfMfg8e0W9
|
65
|
+
0aMf/2xOB3+yYaA8TPo9nA3z6Q9nLhifm3BkII7ot5yK7yfS5Hg2q0lDOHHR
|
66
|
+
DwxWT0kFAFpvhC8r0g2laXbv090dxoZAytjPmF57O/f3Hjx8iG8YT9N+h4R7
|
67
|
+
9z6NkIejfeKL4/RpcX6e1/myTV9V2QxfnygPfFEt24tqkRMa9Kl0g8+JxMJb
|
68
|
+
Csd0wurtBsQJQcGhgzh/FqBMGOuDr7Qr/uLTnZ30Zb5cNtflZbYssvT4Mk9f
|
69
|
+
fBfNDOrfzZp5sbxoCWH6VDrC509PCHUzFxE1/EuS/wdwtCAM1AUAAA==
|
70
|
+
http_version:
|
71
|
+
recorded_at: Tue, 21 Mar 2017 20:52:48 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":"R670589124","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":"915
|
79
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"2","Line1":"1600
|
80
|
+
Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
81
|
+
#25 - 3806","TaxCode":"PC030000","ItemCode":"SKU-25","Qty":1,"Amount":10.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":false},{"LineNo":"1-FR","ItemCode":"Avalara
|
82
|
+
Ground","Qty":1,"Amount":100.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
83
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":false}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R670589124","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
84
|
+
headers:
|
85
|
+
Accept:
|
86
|
+
- "*/*; q=0.5, application/xml"
|
87
|
+
Accept-Encoding:
|
88
|
+
- gzip, deflate
|
89
|
+
Authorization:
|
90
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
91
|
+
Content-Type:
|
92
|
+
- application/json
|
93
|
+
Content-Length:
|
94
|
+
- '1147'
|
95
|
+
User-Agent:
|
96
|
+
- Ruby
|
97
|
+
response:
|
98
|
+
status:
|
99
|
+
code: 200
|
100
|
+
message: OK
|
101
|
+
headers:
|
102
|
+
Cache-Control:
|
103
|
+
- private
|
104
|
+
Content-Type:
|
105
|
+
- text/json; charset=utf-8
|
106
|
+
Content-Encoding:
|
107
|
+
- gzip
|
108
|
+
Vary:
|
109
|
+
- Accept-Encoding
|
110
|
+
X-Aspnet-Version:
|
111
|
+
- 4.0.30319
|
112
|
+
X-Powered-By:
|
113
|
+
- ASP.NET
|
114
|
+
Date:
|
115
|
+
- Tue, 21 Mar 2017 21:38:11 GMT
|
116
|
+
Content-Length:
|
117
|
+
- '673'
|
118
|
+
Set-Cookie:
|
119
|
+
- TS017f1821=01a8ddc44e7c8937acbb5e8804dc8727cd4e6e6bf9e13dd281c2aa380f24a5e60d7e5649a7937a9b8adec5f79003bd48778cad6f38;
|
120
|
+
Path=/
|
121
|
+
body:
|
122
|
+
encoding: ASCII-8BIT
|
123
|
+
string: !binary |-
|
124
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
125
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
126
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
127
|
+
6Gk1NZ+++vTBzv2Dh7t7+/rF06zlL/Z2dh9s79zb3tvFF2+KRd602WIVfvVm
|
128
|
+
b/fRvYNHu3vjvYeffrp/7+CnuHHVZuXxolovWzTf3d2xnz4tmqn53H16+i5f
|
129
|
+
rNqiWoYfv8neZZOSsfFh0Mf4aH/MKJuPTrJyui4J+Zn/ZfbuebHMG/roewlR
|
130
|
+
BH+8qOivj3a3n59pC0OKlyc793bo0Y+zSVEW7TW+aet1jk+fEOqzrL5+nl/m
|
131
|
+
Jb44ns1qpWl/DP2xAqiOhz94Rejir53xzj51zJ9RI/nIDCAcmPv8ad5mRWmH
|
132
|
+
doKuakb3q9do8iq/UGyOn+Pv76zronlzveIeX7cE0H5qKLAjc/3+aDKUF9mC
|
133
|
+
mx0/P35y/MUxPqdW7tP09ZvjN6fpm+Pf+6Nfknw/+SXJiND2Z+TZK33H4PPs
|
134
|
+
FfVGj378szwj/MmGsfJI6fdwQsynP5zpYHxuwpGBOLrfcja+n0gTpaATGv2A
|
135
|
+
/vzo4e799HX6nWz6tqmW6esWUPVrg/RT0hP4+ERn6otq2V5Ui5xogU+7ZHlZ
|
136
|
+
kVopzcv3Pt3d4SF0qUV4yUdnTPS9nft7Dx4+xDc8WPP+DumJ3ftEph0aFNhL
|
137
|
+
kcN3u5/u7KQv8+WyuS4vs2WRpceXefriuwCizQyYPXxmBvDdrJkXy4uW0MGn
|
138
|
+
mwdAiFHf9LFgi4+enuDvzgC4TYA6Ya4PoW7mIqKMf0ny/wAkWNdn2gUAAA==
|
139
|
+
http_version:
|
140
|
+
recorded_at: Tue, 21 Mar 2017 21:38:11 GMT
|
141
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,143 @@
|
|
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":"R272753161","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
|
+
#1 - 9237","TaxCode":"PC030000","ItemCode":"SKU-1","Qty":1,"Amount":10.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"1-FR","ItemCode":"Avalara
|
13
|
+
Ground","Qty":1,"Amount":100.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
14
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R272753161","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 20:52:47 GMT
|
47
|
+
Content-Length:
|
48
|
+
- '687'
|
49
|
+
Set-Cookie:
|
50
|
+
- TS017f1821=01a8ddc44e6a49d3afac3183fe8773bbbc5db0658ae929b473c1d24c20b23d24d36a73aad6a2ad1ea5e18967f56dfc7c2b81eb3bae;
|
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++2nuw9+D+vd1Pd/WLp1nLX+zt7D7Y3rm3vcdfvCkWedNmi1X41Zu9
|
59
|
+
nUf39x7tPxjv7+18enCw/1PcuGqz8nhRrZctmu/u3B8/eGC/eFo0U/PVjv30
|
60
|
+
9F2+WLVFtQw/fpO9yyYlI9QBQ9/g0/3x3j3/s5OsnK5LGsMs+DZ797xY5g19
|
61
|
+
9r2EKIM/XlT010e728/PtIUhycuTnXs79OjH2aQoi/Ya37T1OsenTwj/WVZf
|
62
|
+
P88v8xJf/FSxuo8v+qPojxYQZUQPx5/u4aNXhC7+3hnv7FO/ppl8dO9A/wxH
|
63
|
+
5n3xNG+zorRjO0F3NeP71Ws0eZVfKEbHz/H3d9Z10by5XnGfr1uCaD81JNiR
|
64
|
+
Sf9aqDKgF9mC2x0/P35y/MUxPqdm7tP09ZvjN6fpm+Pf+6Nfknw/+SXJiDD3
|
65
|
+
Z+XZK33HoPTsFXVHj378szgrn453+bUNY703PuAm9Gc4Ld4XP5RpeQ9cGZKb
|
66
|
+
gVvOy/cTaXI8m9WkPZwI6QcGtaekHgCtN8yXFemN0jS79+nuzj4+JpBCgDOm
|
67
|
+
297O/b0HDx/iG8bTtN/Z3d3Zvb+rI9I+8cVx+rQ4P8/rfNmmr6pshq9PlCG+
|
68
|
+
qJbtRbXICQ36VLrB50RnYTSFYzphzr4BcUJQcOggzp8FKBPG+uAr7Yq/+HRn
|
69
|
+
J32ZL5fNdXmZLYssPb7M0xffRTOD+nezZl4sL1pCmD6VjvD50xNC3cxFREX/
|
70
|
+
kuT/AYylj3nwBQAA
|
71
|
+
http_version:
|
72
|
+
recorded_at: Tue, 21 Mar 2017 20:52:46 GMT
|
73
|
+
- request:
|
74
|
+
method: post
|
75
|
+
uri: https://development.avalara.net/1.0/tax/get
|
76
|
+
body:
|
77
|
+
encoding: UTF-8
|
78
|
+
string: '{"DocCode":"R744106949","DocDate":"2017-03-21","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":"915
|
79
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"915
|
80
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"2","Line1":"1600
|
81
|
+
Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
82
|
+
#24 - 9457","TaxCode":"PC030000","ItemCode":"SKU-24","Qty":1,"Amount":10.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"1-FR","ItemCode":"Avalara
|
83
|
+
Ground","Qty":1,"Amount":100.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
84
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R744106949","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
85
|
+
headers:
|
86
|
+
Accept:
|
87
|
+
- "*/*; q=0.5, application/xml"
|
88
|
+
Accept-Encoding:
|
89
|
+
- gzip, deflate
|
90
|
+
Authorization:
|
91
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
92
|
+
Content-Type:
|
93
|
+
- application/json
|
94
|
+
Content-Length:
|
95
|
+
- '1145'
|
96
|
+
User-Agent:
|
97
|
+
- Ruby
|
98
|
+
response:
|
99
|
+
status:
|
100
|
+
code: 200
|
101
|
+
message: OK
|
102
|
+
headers:
|
103
|
+
Cache-Control:
|
104
|
+
- private
|
105
|
+
Content-Type:
|
106
|
+
- text/json; charset=utf-8
|
107
|
+
Content-Encoding:
|
108
|
+
- gzip
|
109
|
+
Vary:
|
110
|
+
- Accept-Encoding
|
111
|
+
X-Aspnet-Version:
|
112
|
+
- 4.0.30319
|
113
|
+
X-Powered-By:
|
114
|
+
- ASP.NET
|
115
|
+
Date:
|
116
|
+
- Tue, 21 Mar 2017 21:38:10 GMT
|
117
|
+
Content-Length:
|
118
|
+
- '685'
|
119
|
+
Set-Cookie:
|
120
|
+
- TS017f1821=01a8ddc44e758617c40a4bdfd5c4bf1e13578c63ade7f668e89aae1efde96c1d799a29841d392f611d6a43b6522b5376fc9ebb0454;
|
121
|
+
Path=/
|
122
|
+
body:
|
123
|
+
encoding: ASCII-8BIT
|
124
|
+
string: !binary |-
|
125
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
126
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
127
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
128
|
+
6Gk1NZ++erC/v7vz6cP9h/rF06zlL/Z2dh9s79zb3tvFF2+KRd602WIVfvVm
|
129
|
+
b/fRvYNHu7vj3YefHux9+lPctmqz8nhRrZctWu/u3B8/eGC/eFo0U/PVjv30
|
130
|
+
9F2+WLVFtQw/fpO9yyYl49MBQ9/g0/3x3j3/s5OsnK5LGsIs+DZ797xY5g19
|
131
|
+
9r2ECIM/XlT010e728/PtIWhyMuTnXs79OjH2aQoi/Ya37T1OsenTwj/WVZf
|
132
|
+
P88v8xJfHM9mtZK2P5D+gAFUBvVw/OkePnpFGOPvnfHOPnVtmslH9w70z3Bw
|
133
|
+
3hdP8zYrSju8E3RXM8pfvUaTV/mFYnT8HH9/Z10XzZvrFff5uiWI9lNDhR2Z
|
134
|
+
9q+FKgN6kS243fHz4yfHXxzjc2rmPk1fvzl+c5q+Of69P/olyfeTX5KMCHN/
|
135
|
+
Yp690ncMSs9eUXf06Mc/uxPz6Xj3Pj7bMNx74wNuQn+GM+N98UOZmffAlSG5
|
136
|
+
Sbjl1Hw/kSZKTidI+gH9+dHD3fvp6/Q72fRtUy3T1y2g6tcG86ekQvDxiU7b
|
137
|
+
F9WyvagWOREEn3Zp87IijVOal+99uruzj4+7JCO85KMzJv7ezv29Bw9Zm/Fg
|
138
|
+
zfs7u7s7u/d3QRbhNUUO3+1+urOTvsyXy+a6vMyWRZYeX+bpi+8CiDYzYFgG
|
139
|
+
zAC+mzXzYnnREjr4dPMACDHqmz4WbPHR0xP83RkAtwlQJ8z1IdTNXET09C9J
|
140
|
+
/h9EJAzx9QUAAA==
|
141
|
+
http_version:
|
142
|
+
recorded_at: Tue, 21 Mar 2017 21:38:10 GMT
|
143
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,210 @@
|
|
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":"R572501115","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
|
+
#2 - 753","TaxCode":"PC030000","ItemCode":"SKU-2","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":100.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":"R572501115","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
|
+
- '1144'
|
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 20:52:48 GMT
|
47
|
+
Content-Length:
|
48
|
+
- '674'
|
49
|
+
Set-Cookie:
|
50
|
+
- TS017f1821=01a8ddc44edc4dfdd38760a289592f8428554990e36e8c7f703c1855ccef166915c5825e2ec82283eb8f75303043d1ad92b02d394e;
|
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++uv9g7/7O7u7uff3iadbyF3s7uw+2d+5t7+3iizfFIm/abLEKv3qz
|
59
|
+
t/Po/t6j/YPx/b179+493P8pbly1WXm8qNbLFs13d3fsp0+LZmo+d5+evssX
|
60
|
+
q7aoluHHb7J32aRkbHwY9DE+2h/v+x+dZOV0XRLyM//L7N3zYpk39NH3EqII
|
61
|
+
/nhR0V8f7W4/P9MWhhQvT3bu7dCjH2eToizaa3zT1uscnz4h1GdZff08v8xL
|
62
|
+
fPFTxYrp1h9Af6CAqIPhD14RrvhrZ7yzT73yZ9RIPjLYh6Nynz/N26wo7bhO
|
63
|
+
0FXNuH71Gk1e5ReKzfFz/P2ddV00b65X3OPrlgDaT83wd2Si3x9NhvIiW3Cz
|
64
|
+
4+fHT46/OMbn1Mp9mr5+c/zmNH1z/Ht/9EuS7ye/JBkR2v50PHul7xh8nr2i
|
65
|
+
3ujRj382p4M/2TBQHib9Hs6G+fSHMxeMz004MhBH9FtOxfcTaXI8m9WkIZy4
|
66
|
+
6Af050fH6dPi/Dyv82WbvqqyGaDq1wbpp6Qh8PGJTtMX1bK9qBY50QKfdsny
|
67
|
+
siKFUpqX7326u8ND6FKL8JKPzpjoezv39x48fIhveLDmfVJhO7v3iUw7NCjw
|
68
|
+
liKH73Y/3dlJX+bLZXNdXmbLIkuPL/P0xXcBRJsZMHv4zAzgu1kzL5YXLaGD
|
69
|
+
TzcPgBCjvuljwRYfPT3B350BcJsAdcJcH0LdzEVEDf+S5P8BHyqut9QFAAA=
|
70
|
+
http_version:
|
71
|
+
recorded_at: Tue, 21 Mar 2017 20:52:47 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":"R572501115","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":"A
|
79
|
+
Different Road","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"2","Line1":"1600
|
80
|
+
Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
81
|
+
#2 - 753","TaxCode":"PC030000","ItemCode":"SKU-2","Qty":1,"Amount":10.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":false},{"LineNo":"1-FR","ItemCode":"Avalara
|
82
|
+
Ground","Qty":1,"Amount":99.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
83
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":false}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R572501115","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
84
|
+
headers:
|
85
|
+
Accept:
|
86
|
+
- "*/*; q=0.5, application/xml"
|
87
|
+
Accept-Encoding:
|
88
|
+
- gzip, deflate
|
89
|
+
Authorization:
|
90
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
91
|
+
Content-Type:
|
92
|
+
- application/json
|
93
|
+
Content-Length:
|
94
|
+
- '1143'
|
95
|
+
User-Agent:
|
96
|
+
- Ruby
|
97
|
+
response:
|
98
|
+
status:
|
99
|
+
code: 200
|
100
|
+
message: OK
|
101
|
+
headers:
|
102
|
+
Cache-Control:
|
103
|
+
- private
|
104
|
+
Content-Type:
|
105
|
+
- text/json; charset=utf-8
|
106
|
+
Content-Encoding:
|
107
|
+
- gzip
|
108
|
+
Vary:
|
109
|
+
- Accept-Encoding
|
110
|
+
X-Aspnet-Version:
|
111
|
+
- 4.0.30319
|
112
|
+
X-Powered-By:
|
113
|
+
- ASP.NET
|
114
|
+
Date:
|
115
|
+
- Tue, 21 Mar 2017 20:52:49 GMT
|
116
|
+
Content-Length:
|
117
|
+
- '675'
|
118
|
+
Set-Cookie:
|
119
|
+
- TS017f1821=01a8ddc44e2d195fed0bb7a3bdd6b148d5278cba9b10a02e66e7918a2ba75824e6cf1d07d1006ea47c350afd0ff6f6bd1884ebb0eb;
|
120
|
+
Path=/
|
121
|
+
body:
|
122
|
+
encoding: ASCII-8BIT
|
123
|
+
string: !binary |-
|
124
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
125
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
126
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
127
|
+
6Gk1NZ++uv9g7/7O7u7uff3iadbyF3s7uw+2d+5t7+3iizfFIm/abLEKv3qz
|
128
|
+
t/Po/t6j/Yfj3Qf79z/dOfgpbly1WXm8qNbLFs13dx7aT58WzdR8vmM/PX2X
|
129
|
+
L1ZtUS3Dj99k77JJydj4MOhjfLQ/vvep/9lJVk7XJWE/C77N3j0vlnlDn30v
|
130
|
+
IZrgjxcV/fXR7vbzM21hiPHyZOfeDj36cTYpyqK9xjdtvc7x6RNCfpbV18/z
|
131
|
+
y7zEFz9VrJhy/SH0hwqIZjj44BUhi792xjv71Ct/Ro3ko339KxyW+/xp3mZF
|
132
|
+
acd1gq5qxvWr12jyKr9QbI6f4+/vrOuieXO94h5ftwTQfmqGvyNT/f5oMpQX
|
133
|
+
2YKbHT8/fnL8xTE+p1bu0/T1m+M3p+mb49/7o1+SfD/5JcmI0Pan49krfcfg
|
134
|
+
8+wV9UaPfvyzNx0Pmbk2jPPe+KHhpnA+vC9+GBNya0QZjKP9LWfk+4k0OZ7N
|
135
|
+
alIVTmr0A/rzo+P0aXF+ntf5sk1fVdkMUPVrg/ZTUhX4+ERn64tq2V5Ui5yo
|
136
|
+
gU+7hHlZkWYpzcv3Pt3dYabq0ovwko/OmPJ7O/f3Hgg9eLDmfdJlO7v3d0EW
|
137
|
+
YTFFDt/tfrqzk77Ml8vmurzMlkWWHl/m6YvvAog2M2D28JkZwHezZl4sL1pC
|
138
|
+
B59uHgAhRn3Tx4ItPnp6gr87A+A2AeqEuT6EupmLiD7+Jcn/A4+lu/rdBQAA
|
139
|
+
http_version:
|
140
|
+
recorded_at: Tue, 21 Mar 2017 20:52:48 GMT
|
141
|
+
- request:
|
142
|
+
method: post
|
143
|
+
uri: https://development.avalara.net/1.0/tax/get
|
144
|
+
body:
|
145
|
+
encoding: UTF-8
|
146
|
+
string: '{"DocCode":"R531780088","DocDate":"2017-03-21","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":"915
|
147
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"915
|
148
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"2","Line1":"1600
|
149
|
+
Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
150
|
+
#26 - 9414","TaxCode":"PC030000","ItemCode":"SKU-26","Qty":1,"Amount":10.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":false},{"LineNo":"1-FR","ItemCode":"Avalara
|
151
|
+
Ground","Qty":1,"Amount":99.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
152
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":false}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R531780088","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
153
|
+
headers:
|
154
|
+
Accept:
|
155
|
+
- "*/*; q=0.5, application/xml"
|
156
|
+
Accept-Encoding:
|
157
|
+
- gzip, deflate
|
158
|
+
Authorization:
|
159
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
160
|
+
Content-Type:
|
161
|
+
- application/json
|
162
|
+
Content-Length:
|
163
|
+
- '1146'
|
164
|
+
User-Agent:
|
165
|
+
- Ruby
|
166
|
+
response:
|
167
|
+
status:
|
168
|
+
code: 200
|
169
|
+
message: OK
|
170
|
+
headers:
|
171
|
+
Cache-Control:
|
172
|
+
- private
|
173
|
+
Content-Type:
|
174
|
+
- text/json; charset=utf-8
|
175
|
+
Content-Encoding:
|
176
|
+
- gzip
|
177
|
+
Vary:
|
178
|
+
- Accept-Encoding
|
179
|
+
X-Aspnet-Version:
|
180
|
+
- 4.0.30319
|
181
|
+
X-Powered-By:
|
182
|
+
- ASP.NET
|
183
|
+
Date:
|
184
|
+
- Tue, 21 Mar 2017 21:38:12 GMT
|
185
|
+
Content-Length:
|
186
|
+
- '673'
|
187
|
+
Set-Cookie:
|
188
|
+
- TS017f1821=01a8ddc44e99efca93e04d65e3f0a1cc9e440985cf269682d7bccd2662d1fc20c936306dd45135f8c245d19389cc55c860e3c6abc3;
|
189
|
+
Path=/
|
190
|
+
body:
|
191
|
+
encoding: ASCII-8BIT
|
192
|
+
string: !binary |-
|
193
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
194
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
195
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
196
|
+
6Gk1fZq1/Onezu6D7Z1723u7+OJNscibNluswq/e7O0+unfwaPfe+NOD3fu7
|
197
|
+
Dw9+ihtXbVYeL6r1skXz3Z2H9tOnRTM1n+/YT0/f5YtVW1TL8OM32btsUjI2
|
198
|
+
Pgz6GB/tj+996n92kpXTdUnYz4Jvs3fxEdFQDQFe3b+3++BgZ+fgAF/QG8+L
|
199
|
+
Zd7QN99LiFj440VFf320u/38TFuYV1+e7NzboUc/ziZFWbTX+Kat1zk+fULD
|
200
|
+
nWX19fP8Mi/xxfFsViu5++Pu0wdADQ3wwSsdzc54Z5865s+okXy0r3+FtHCf
|
201
|
+
P83brCjt0E7QVc3ofvUaTV7lF4rN8XP8/Z11XTRvrlfc4+uWANpPDQV2mJoE
|
202
|
+
+33RZCgvsgU3O35+/OT4i2N8Tq3cp+nrN8dvTtM3x7/3R78k+X7yS5IRoe3P
|
203
|
+
yLNX+o7B59kr6o0e/fhndUYeMlNuGOq98UPDheGUeF/8MObk1ogyGEf+W07K
|
204
|
+
9xNpooR0sqMf0J8fPdy9n75Ov5NN3zbVMn3dAqp+bdB+SioGH5/ohH1RLduL
|
205
|
+
apETNfBplzAvK9JIpXn53qe7O8xXXXoRXvLRGVN+b+f+3gOhBw/WvL+zu7tD
|
206
|
+
KgxkES5T5PDd7qc7O+nLfLlsrsvLbFlk6fFlnr74LoBoMwNmD5+ZAXw3a+bF
|
207
|
+
8qIldPDp5gEQYtQ3fSzY4qOnJ/i7MwBuE6BOmOtDqGM+/h8M59sg4wUAAA==
|
208
|
+
http_version:
|
209
|
+
recorded_at: Tue, 21 Mar 2017 21:38:12 GMT
|
210
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,136 @@
|
|
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":"R737708061","DocDate":"2017-03-20","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"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
11
|
+
#5 - 3654","TaxCode":"PC030000","ItemCode":"SKU-5","Qty":1,"Amount":10.0,"OriginCode":"Orig","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":false}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R737708061","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
12
|
+
headers:
|
13
|
+
Accept:
|
14
|
+
- "*/*; q=0.5, application/xml"
|
15
|
+
Accept-Encoding:
|
16
|
+
- gzip, deflate
|
17
|
+
Authorization:
|
18
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
19
|
+
Content-Type:
|
20
|
+
- application/json
|
21
|
+
Content-Length:
|
22
|
+
- '796'
|
23
|
+
User-Agent:
|
24
|
+
- Ruby
|
25
|
+
response:
|
26
|
+
status:
|
27
|
+
code: 200
|
28
|
+
message: OK
|
29
|
+
headers:
|
30
|
+
Cache-Control:
|
31
|
+
- private
|
32
|
+
Content-Type:
|
33
|
+
- text/json; charset=utf-8
|
34
|
+
Content-Encoding:
|
35
|
+
- gzip
|
36
|
+
Vary:
|
37
|
+
- Accept-Encoding
|
38
|
+
X-Aspnet-Version:
|
39
|
+
- 4.0.30319
|
40
|
+
X-Powered-By:
|
41
|
+
- ASP.NET
|
42
|
+
Date:
|
43
|
+
- Mon, 20 Mar 2017 21:22:57 GMT
|
44
|
+
Content-Length:
|
45
|
+
- '582'
|
46
|
+
Set-Cookie:
|
47
|
+
- TS017f1821=01a8ddc44ec89cb03c5cc88113ae9e49d931079bfc29ee2cb9648ce537d40d02be5598604c751395e4cb10872f29f2dbc8e411b2db;
|
48
|
+
Path=/
|
49
|
+
body:
|
50
|
+
encoding: ASCII-8BIT
|
51
|
+
string: !binary |-
|
52
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
53
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
54
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
55
|
+
6Gk1NZ++enDvwYOdg51Pd/WLp1nLX+zt7D7Y3rm3vbeDL94Ui7xps8Uq/OrN
|
56
|
+
3u6jvb1H9x+MP93Zube3v/dT3Lhqs/J4Ua2XLZrvCgR8+LRopuZj9+npu3yx
|
57
|
+
aotqGX78JnuXTUpGxgNBn+KTnfG+/9FJVk7XJaE+87/M3j0vlnlDH30vIXrg
|
58
|
+
jxcV/fXR7vbzM21hCPHyZOfeDj36cTYpyqK9xjdtvc7x6RPCfJbV18/zy7zE
|
59
|
+
Fz9VrO7jiz7+/XECoj+WV4Qr/toZ7+xTr/wZNZKPDPZDo3qat1lR2nGdoKua
|
60
|
+
cf3qNZq8yi8Um+Pn+Ps767po3lyvuMfXLQG0n5rh7/D8E+z3RZOhvMgW3Oz4
|
61
|
+
+fGT4y+O8Tm1cp+mr98cvzlN3xz/3h/9kuT7Cf4vTY5ns5qY0s2RfkB/fnSc
|
62
|
+
Pi3Oz/M6X7bpqyqbAap+bbB+SkyJj090qr6olu1FtciJGPi0S5eXFfFwaV6+
|
63
|
+
9+nuDg+hSy7CSz46Y7rv7dzfe/DwIb7hwZr3d3Z3d3bv74IqvyQZhbg/3L2f
|
64
|
+
vk6/k03fNtUyfc1I6tfm9S/r4gIf/9zjbiYjIvq/JPl/AMGQJGRIBAAA
|
65
|
+
http_version:
|
66
|
+
recorded_at: Mon, 20 Mar 2017 21:22:57 GMT
|
67
|
+
- request:
|
68
|
+
method: post
|
69
|
+
uri: https://development.avalara.net/1.0/tax/get
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: '{"DocCode":"R737708061","DocDate":"2017-03-20","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":"915
|
73
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"A
|
74
|
+
Different Road","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"2","Line1":"1600
|
75
|
+
Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
76
|
+
#5 - 3654","TaxCode":"PC030000","ItemCode":"SKU-5","Qty":1,"Amount":10.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":false},{"LineNo":"1-FR","ItemCode":"Avalara
|
77
|
+
Ground","Qty":1,"Amount":100.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
78
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":false}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R737708061","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
79
|
+
headers:
|
80
|
+
Accept:
|
81
|
+
- "*/*; q=0.5, application/xml"
|
82
|
+
Accept-Encoding:
|
83
|
+
- gzip, deflate
|
84
|
+
Authorization:
|
85
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
86
|
+
Content-Type:
|
87
|
+
- application/json
|
88
|
+
Content-Length:
|
89
|
+
- '1145'
|
90
|
+
User-Agent:
|
91
|
+
- Ruby
|
92
|
+
response:
|
93
|
+
status:
|
94
|
+
code: 200
|
95
|
+
message: OK
|
96
|
+
headers:
|
97
|
+
Cache-Control:
|
98
|
+
- private
|
99
|
+
Content-Type:
|
100
|
+
- text/json; charset=utf-8
|
101
|
+
Content-Encoding:
|
102
|
+
- gzip
|
103
|
+
Vary:
|
104
|
+
- Accept-Encoding
|
105
|
+
X-Aspnet-Version:
|
106
|
+
- 4.0.30319
|
107
|
+
X-Powered-By:
|
108
|
+
- ASP.NET
|
109
|
+
Date:
|
110
|
+
- Mon, 20 Mar 2017 21:22:58 GMT
|
111
|
+
Content-Length:
|
112
|
+
- '672'
|
113
|
+
Set-Cookie:
|
114
|
+
- TS017f1821=01a8ddc44e7f265f150240fd06a6a18aa473530d5cb42a84ccf843bb528e16bf2438c23f5b3f20cea96093415261c0eb3254a7063f;
|
115
|
+
Path=/
|
116
|
+
body:
|
117
|
+
encoding: ASCII-8BIT
|
118
|
+
string: !binary |-
|
119
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
120
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
121
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
122
|
+
6Gk1NZ++enDvwYOdg51Pd/WLp1nLX+zt7D7Y3rm3vbeDL94Ui7xps8Uq/OrN
|
123
|
+
3u6jvb1H9w/Ge3sPdnYfPvgpbly1WXm8qNbLFs13dwUEPn1aNFPzufv09F2+
|
124
|
+
WLVFtQw/fpO9yyYlY+PDoI/x0f543//oJCun65KQn/lfZu+eF8u8oY++lxBF
|
125
|
+
8MeLiv76aHf7+Zm2MKR4ebJzb4ce/TibFGXRXuObtl7n+PQJoT7L6uvn+WVe
|
126
|
+
4oufKlb38UV/AP2BAqIOhj94Rbjir53xzj71yp9RI/nIYB+Oyn3+NG+zorTj
|
127
|
+
OkFXNeP61Ws0eZVfKDbHz/H3d9Z10by5XnGPr1sCaD81w99hDiDY74smQ3mR
|
128
|
+
LbjZ8fPjJ8dfHONzauU+TV+/OX5zmr45/r0/+iXJ95NfkowIbX86nr3Sdww+
|
129
|
+
z15Rb/Toxz+b08GfbBgoD5N+D2fDfPrDmQvG5yYcGYgj+i2n4vuJNDmezWrS
|
130
|
+
EE5c9AOD1VNSAYB2ovPwRbVsL6pFToPFp91xv6xIY5Tm5Xuf7u4wjl1yUMfy
|
131
|
+
0RlTdW/n/t6Dhw/xDY/GvL9DKmD3PtGBB62Y4Yvj9Glxfp7X+bJNX1XZjAYF
|
132
|
+
3tIW5vU9vGUQ/27WzIvlRUto4NPNiBNC0qdgiY+enuDvDuLcJkCZMNYHXylC
|
133
|
+
/MWnOzvpy3y5bK7Ly2xZZOnxZZ6++C6hbuYiooZ/SfL/AIMT1LjUBQAA
|
134
|
+
http_version:
|
135
|
+
recorded_at: Mon, 20 Mar 2017 21:22:58 GMT
|
136
|
+
recorded_with: VCR 3.0.3
|