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
data/spec/vcr/Spree_Payment/_avalara_finalize/should_update_the_amount_to_be_the_order_total.yml
ADDED
@@ -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":"R580842798","DocDate":"2017-03-23","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
|
+
#4 - 5268","TaxCode":"PC030000","ItemCode":"SKU-4","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":"R580842798","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
|
+
- Thu, 23 Mar 2017 17:02:03 GMT
|
44
|
+
Content-Length:
|
45
|
+
- '581'
|
46
|
+
Set-Cookie:
|
47
|
+
- TS017f1821=01a8ddc44e46b6fbf2512c2af7de0f4585188d319ba5314f7471f4eb6caa0896e4e38bd38e1a987cac90845f80d785b0e209cd9c75;
|
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++un+wc7C/9+DhgX7xNGv5i72d3QfbO/e29+7hizfFIm/abLEKv3qz
|
56
|
+
++DRzt6jnXvjBw/u7+w+fPhT3Lhqs/J4Ua2XLZrv7tgPnxbN1HzsPj19ly9W
|
57
|
+
bVEtw4/fZO+yScnIeCDoU3yyM973PzrJyum6JNRn/pfZu+fFMm/oo+8lRA/8
|
58
|
+
8aKivz7a3X5+pi0MIV6e7NzboUc/ziZFWbTX+Kat1zk+fUKYz7L6+nl+mZf4
|
59
|
+
4qeK1X180ce/P05A9MfyinDFXzvjnX3qlT+jRvKRwX5oVE/zNitKO64TdFUz
|
60
|
+
rl+9RpNX+YVic/wcf39nXRfNm+sV9/i6JYD2UzP8nV18RLDfF02G8iJbcLPj
|
61
|
+
58dPjr84xufUyn2avn5z/OY0fXP8e3/0S5LvJ/i/NDmezWpiSjdH+gH9+dFx
|
62
|
+
+rQ4P8/rfNmmr6psBqj6tcH6KTElPj7RqfqiWrYX1SInYuDTLl1eVsTDpXn5
|
63
|
+
3qe7OzyELrkIL/nojOm+t3Of5OMhvuHBmvd3dnd3du/vgiq/JBmFuD/cvZ++
|
64
|
+
Tr+TTd821TJ9zUjq1+b1L+viAh//3ONuJiMi+r8k+X8Au/FWwUgEAAA=
|
65
|
+
http_version:
|
66
|
+
recorded_at: Thu, 23 Mar 2017 17:02:05 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":"R580842798","DocDate":"2017-03-23","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
|
+
#4 - 5268","TaxCode":"PC030000","ItemCode":"SKU-4","Qty":1,"Amount":10.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":false},{"LineNo":"1-FR","ItemCode":"Avalara
|
77
|
+
Ground","Qty":1,"Amount":5.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":"R580842798","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
|
+
- '1143'
|
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
|
+
- Thu, 23 Mar 2017 17:02:03 GMT
|
111
|
+
Content-Length:
|
112
|
+
- '671'
|
113
|
+
Set-Cookie:
|
114
|
+
- TS017f1821=01a8ddc44e2b94c84a9831ffb9c0575f570b660c31c60e7ff8681a87bf20e371bd357af863750c40ffc2c7cf39bc3fa51ec92d116e;
|
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++un+wc7C/9+DhgX7xNGv5i72d3QfbO/e29+7hizfFIm/abLEKv3qz
|
123
|
+
++DRzt6jnf3x/qd793cf/BS3rdqsPF5U62WL1rv37YdPi2ZqPt6xn56+yxer
|
124
|
+
tqiW4cdvsnfZpGRcPBD0KT7ZGX/qf3SSldN1SZjP/C+zd8+LZd7QR99LiBz4
|
125
|
+
40VFf320u/38TFsYOrw82bm3Q49+nE2Ksmiv8U1br3N8+oQwn2X19fP8Mi/x
|
126
|
+
xU8VK8arj39/nICoY+EPXhGu+GtnvLNPvfJn1Eg+2te/uqMynz/N26wo7bhO
|
127
|
+
0FXNuH71Gk1e5ReKzfFz/P2ddV00b65X3OPrlgDaT83wd3bxEcF+XzQZyots
|
128
|
+
wc2Onx8/Of7iGJ9TK/dp+vrN8ZvT9M3x7/3RL0m+n/ySZERo+9Px7JW+Y/B5
|
129
|
+
9op6o0c//tmbDn5l4zD39K/ubJjPfxizcUssGYgj+y0n4/uJNDmezWpSEE5g
|
130
|
+
9AP686Pj9Glxfp7X+bJNX1XZDFD1a4P0U1IQ+PhEJ+qLatleVIucaIFPu2R5
|
131
|
+
WZE+Kc3L9z7d3WF+6lKL8JKPzpjsezv3SVc9xDc8WPP+zu7uzu79XVBFuEuR
|
132
|
+
w3e7n+7spC/z5bK5Li+zZZGlx5d5+uK7AKLNDBimohnAd7NmXiwvWkIHn24e
|
133
|
+
ACFGfdPHgi0+enqCvzsD4DYB6oS5PoS6mYuIFv4lyf8DC+kQD9MFAAA=
|
134
|
+
http_version:
|
135
|
+
recorded_at: Thu, 23 Mar 2017 17:02:06 GMT
|
136
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,205 @@
|
|
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":"R357671434","DocDate":"2017-03-23","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
|
+
#1 - 3022","TaxCode":"PC030000","ItemCode":"SKU-1","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":"R357671434","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
|
+
- Thu, 23 Mar 2017 17:01:56 GMT
|
44
|
+
Content-Length:
|
45
|
+
- '583'
|
46
|
+
Set-Cookie:
|
47
|
+
- TS017f1821=01a8ddc44e8c299d8de20b79925955e2ad066c847168e00fa6964815b62b163210576f3601dd30369b79499686fa005958ef027e37;
|
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++unf/wacPdvfv7esXT7OWv9jb2X2wvXNve+8evnhTLPKmzRar8Ks3
|
56
|
+
uw8e7ew+uv9gfH/30/s7D+//FDeu2qw8XlTrZYvmuzv2w6dFMzUfu09P3+WL
|
57
|
+
VVtUy/DjN9m7bFIyMh4I+hSf7IwZYfPRSVZO1yWhPvO/zN49L5Z5Qx99LyF6
|
58
|
+
4I8XFf310e728zNtYQjx8mTn3g49+nE2KcqivcY3bb3O8ekTwnyW1dfP88u8
|
59
|
+
xBc/Vazu44s+/v1xAqI/lleEK/7aGe/sU6/8GTWSjwz2Q6N6mrdZUdpxnaCr
|
60
|
+
mnH96jWavMovFJvj5/j7O+u6aN5cr7jH1y0BtJ+a4e/s4iOC/b5oMpQX2YKb
|
61
|
+
HT8/fnL8xTE+p1bu0/T1m+M3p+mb49/7o1+SfD/B/6XJ8WxWE1O6OdIP6M+P
|
62
|
+
jtOnxfl5XufLNn1VZTNA1a8N1k+JKfHxiU7VF9WyvagWOREDn3bp8rIiHi7N
|
63
|
+
y/c+3d3hIXTJRXjJR2dM972d+3sPHj7ENzxY8/7O7u7O7v1dUOWXJKMQ94e7
|
64
|
+
99PX6Xey6dumWqavGUn92rz+ZV1c4OOfe9zNZERE/5ck/w98ngVWSAQAAA==
|
65
|
+
http_version:
|
66
|
+
recorded_at: Thu, 23 Mar 2017 17:01:59 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":"R357671434","DocDate":"2017-03-23","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
|
+
#1 - 3022","TaxCode":"PC030000","ItemCode":"SKU-1","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":5.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":"R357671434","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
|
+
- '1143'
|
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
|
+
- Thu, 23 Mar 2017 17:01:58 GMT
|
111
|
+
Content-Length:
|
112
|
+
- '674'
|
113
|
+
Set-Cookie:
|
114
|
+
- TS017f1821=01a8ddc44ee3c247fc4aa775b2ba3c229b6c4fc1bf0899e0557d7c942591e24fcbed7a66eda2ce59bdece0dcbab391dbf9b545689e;
|
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++unf/wacPdvfv7esXT7OWv9jb2X2wvXNve+8evnhTLPKmzRar8Ks3
|
123
|
+
uw8e7ew+un8w3nuwc/Dw05/itlWblceLar1s0Xr3vv3wadFMzcc79tPTd/li
|
124
|
+
1RbVMvz4TfYum5SMiweCPsUnO+NP/Y9OsnK6Lgnzmf9l9u55scwb+uh7CZED
|
125
|
+
f7yo6K+Pdrefn2kLQ4eXJzv3dujRj7NJURbtNb5p63WOT58Q5rOsvn6eX+Yl
|
126
|
+
vvipYsV49fHvjxMQdSz8wSvCFX/tjHf2qVf+jBrJRzwV9Fd3VObzp3mbFaUd
|
127
|
+
1wm6qhnXr16jyav8QrE5fo6/v7Oui+bN9Yp7fN0SQPupGf7OLj4i2O+LJkN5
|
128
|
+
kS242fHz4yfHXxzjc2rlPk1fvzl+c5q+Of69P/olyfeTX5KMCG1/Op690ncM
|
129
|
+
Ps9eUW/06Mc/e9PBr2wc5p7+1Z0N8/kPYzZuiSUDcWS/5WR8P5Emx7NZTQrC
|
130
|
+
CYx+QH9+dJw+Lc7P8zpftumrKpsBqn5tkH5KCgIfn+hEfVEt24tqkRMt8GmX
|
131
|
+
LC8r0ielefnep7s7zE9dahFe8tEZk31v5/7eg4cP8Q0P1ry/s7u7s3t/F1QR
|
132
|
+
7lLk8N3upzs76ct8uWyuy8tsWWTp8WWevvgugGgzA4apaAbw3ayZF8uLltDB
|
133
|
+
p5sHQIhR3/SxYIuPnp7g784AuE2AOmGuD6Fu5iKihX9J8v8AmUtp69MFAAA=
|
134
|
+
http_version:
|
135
|
+
recorded_at: Thu, 23 Mar 2017 17:01:59 GMT
|
136
|
+
- request:
|
137
|
+
method: post
|
138
|
+
uri: https://development.avalara.net/1.0/tax/get
|
139
|
+
body:
|
140
|
+
encoding: UTF-8
|
141
|
+
string: '{"DocCode":"R357671434","DocDate":"2017-03-23","Discount":"0.0","Commit":true,"DocType":"SalesInvoice","Addresses":[{"AddressCode":"Orig","Line1":"915
|
142
|
+
S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"A
|
143
|
+
Different Road","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"2","Line1":"1600
|
144
|
+
Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
|
145
|
+
#1 - 3022","TaxCode":"PC030000","ItemCode":"SKU-1","Qty":1,"Amount":10.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":false},{"LineNo":"1-FR","ItemCode":"Avalara
|
146
|
+
Ground","Qty":1,"Amount":5.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
|
147
|
+
Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":false}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R357671434","DetailLevel":"Tax","CurrencyCode":"USD"}'
|
148
|
+
headers:
|
149
|
+
Accept:
|
150
|
+
- "*/*; q=0.5, application/xml"
|
151
|
+
Accept-Encoding:
|
152
|
+
- gzip, deflate
|
153
|
+
Authorization:
|
154
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
155
|
+
Content-Type:
|
156
|
+
- application/json
|
157
|
+
Content-Length:
|
158
|
+
- '1144'
|
159
|
+
User-Agent:
|
160
|
+
- Ruby
|
161
|
+
response:
|
162
|
+
status:
|
163
|
+
code: 200
|
164
|
+
message: OK
|
165
|
+
headers:
|
166
|
+
Cache-Control:
|
167
|
+
- private
|
168
|
+
Content-Type:
|
169
|
+
- text/json; charset=utf-8
|
170
|
+
Content-Encoding:
|
171
|
+
- gzip
|
172
|
+
Vary:
|
173
|
+
- Accept-Encoding
|
174
|
+
X-Aspnet-Version:
|
175
|
+
- 4.0.30319
|
176
|
+
X-Powered-By:
|
177
|
+
- ASP.NET
|
178
|
+
Date:
|
179
|
+
- Thu, 23 Mar 2017 17:01:58 GMT
|
180
|
+
Content-Length:
|
181
|
+
- '669'
|
182
|
+
Set-Cookie:
|
183
|
+
- TS017f1821=01a8ddc44efefeee4839d4bfc4502f6d115e718656d9c99e1577fc162640d63235f1ed3115aa28f1b838a1e4dc2c8c95af41ae927f;
|
184
|
+
Path=/
|
185
|
+
body:
|
186
|
+
encoding: ASCII-8BIT
|
187
|
+
string: !binary |-
|
188
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
189
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
190
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
|
191
|
+
6Gk1NZ++unf/wacPdvfv7esXT7OWv9jb2X2wvXNve+8evnhTLPKmzRar8Ks3
|
192
|
+
uw8e7ew+uv9wvPvwAber2qw8XlTrZYuWu/fth0+LZmo+3rGfnr7LF6u2qJbh
|
193
|
+
x2+yd9mkZDw8EPQpPtkZf+p/dJKV03VJWM/8L7N3z4tl3tBH30uIFPjjRUV/
|
194
|
+
fbS7/fxMWxgavDzZubdDj36cTYqyaK/xTVuvc3z6hDCfZfX18/wyL/HFTxUr
|
195
|
+
xquPf3+cgKhj4Q9eEa74a2e8s0+98mfUSD7iaaC/uqMynz/N26wo7bhO0FXN
|
196
|
+
uH71Gk1e5ReKzfFz/P2ddV00b65X3OPrlgDaT83wd3bxEcF+XzQZyotswc2O
|
197
|
+
nx8/Of7iGJ9TK/dp+vrN8ZvT9M3x7/3RL0m+n/ySZERo+9Px7JW+Y/B59op6
|
198
|
+
o0c//tmbDn5l4zD39K/ubJjPfxizcUssGYgj+y0n4/uJNDmezWpSDk5g9AP6
|
199
|
+
86Pj9Glxfp7X+bJNX1XZDFD1a4P0U1IO+PhEJ+qLatleVIucaIFPu2R5WZEu
|
200
|
+
Kc3L9z7d3WF+6lKL8JKPzpjsezv39x48fIhveLDm/Z3d3Z3d+7uginCXIofv
|
201
|
+
dj/d2Ulf5stlc11eZssiS48v8/TFdwFEmxkwTEUzgO9mzbxYXrSEDj7dPABC
|
202
|
+
jPqmjwVbfPT0BH93BsBtAtQJc30IdTMXEQ38S5L/By3zDz/PBQAA
|
203
|
+
http_version:
|
204
|
+
recorded_at: Thu, 23 Mar 2017 17:02:00 GMT
|
205
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,191 @@
|
|
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":"R018376371","DocDate":"2017-03-23","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
|
+
#2 - 1810","TaxCode":"PC030000","ItemCode":"SKU-2","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":"R018376371","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
|
+
- Thu, 23 Mar 2017 17:01:59 GMT
|
44
|
+
Content-Length:
|
45
|
+
- '580'
|
46
|
+
Set-Cookie:
|
47
|
+
- TS017f1821=01a8ddc44e235c4ba825b0a501c39cf4874397fc61ea870e5b439c08e645261bb8fc6cef9d6f89542595549251aa589969c5ca2c43;
|
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++2tk9uPfg03sPdvWLp1nLX+zt7D7Y3rm3vXcPX7wpFnnTZotV+NWb
|
56
|
+
3QePdvYe7eyMd+7t799/8OCnuHHVZuXxolovWzTf3bEfPi2aqfnYfXr6Ll+s
|
57
|
+
2qJahh+/yd5lk5KR8UDQp/hkZ7zvf3SSldN1SajP/C+zd8+LZd7QR99LiB74
|
58
|
+
40VFf320u/38TFsYQrw82bm3Q49+nE2Ksmiv8U1br3N8+oQwn2X19fP8Mi/x
|
59
|
+
xU8Vq/v4oo9/f5yA6I/lFeGKv4hy+9Qrf0aN5COD/dConuZtVpR2XCfoqmZc
|
60
|
+
v3qNJq/yC8Xm+Dn+/s66Lpo31yvu8XVLAO2nZvg7PP8E+33RZCgvsgU3O35+
|
61
|
+
/OT4i2N8Tq3cp+nrN8dvTtM3x7/3R78k+X6C/0uT49msJqZ0c6Qf0J8fHadP
|
62
|
+
i/PzvM6XbfqqymaAql8brJ8SU+LjE52qL6ple1EtciIGPu3S5WVFPFyal+99
|
63
|
+
urvDQ+iSi/CSj86Y7ns79/cePHyIb3iw5v2d3d2d3fu7oMovSUYh7g9376ev
|
64
|
+
0+9k07dNtUxfM5L6tXn9y7q4wMc/97ibyYiI/i9J/h/LMRS7SAQAAA==
|
65
|
+
http_version:
|
66
|
+
recorded_at: Thu, 23 Mar 2017 17:02:01 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":"R018376371","DocDate":"2017-03-23","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
|
+
#2 - 1810","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
|
77
|
+
Ground","Qty":1,"Amount":5.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":"R018376371","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
|
+
- '1143'
|
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
|
+
- Thu, 23 Mar 2017 17:02:00 GMT
|
111
|
+
Content-Length:
|
112
|
+
- '671'
|
113
|
+
Set-Cookie:
|
114
|
+
- TS017f1821=01a8ddc44e1968eaed5775b971b8b8610152dd6251f7dd2b2da2944af74f366b139899f3f4bf052a8a733034c6d6b8f15e694a43c1;
|
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++2tk9uPfg03sPdvWLp1nLX+zt7D7Y3rm3vXcPX7wpFnnTZotV+NWb
|
123
|
+
3QePdvYe7eyMP32w83Bv5/5PceOqzcrjRbVetmi+e99++LRopubjHfvp6bt8
|
124
|
+
sWqLahl+/CZ7l01KRsYDQZ/iE+rR/+gkK6frklCf+V9m754Xy7yhj76XED3w
|
125
|
+
x4uK/vpod/v5mbYwhHh5snNvhx79OJsUZdFe45u2Xuf49AlhPsvq6+f5ZV7i
|
126
|
+
i58qVoxXH//+OAFRx8IfvCJc8dfOeGefeuXPqJF8tK9/dUdlPn+at1lR2nGd
|
127
|
+
oKuacf3qNZq8yi8Um+Pn+Ps767po3lyvuMfXLQG0n5rh7/D8E+z3RZOhvMgW
|
128
|
+
3Oz4+fGT4y+O8Tm1cp+mr98cvzlN3xz/3h/9kuT7yS9JRoS2Px3PXuk7Bp9n
|
129
|
+
r6g3evTjn73p4Fc2DnNP/+rOhvn8hzEbt8SSgTiy33Iyvp9Ik+PZrCYN4QRG
|
130
|
+
P6A/PzpOnxbn53mdL9v0VZXNAFW/Nkg/JQ2Bj090or6olu1FtciJFvi0S5aX
|
131
|
+
FSmU0rx879PdHeanLrUIL/nojMlOOmbvwcOH+IYHa97f2d3d2b2/C6oIdyly
|
132
|
+
+G73052d9GW+XDbX5WW2LLL0+DJPX3wXQLSZAcNUNAP4btbMi+VFS+jg080D
|
133
|
+
IMSob/pYsMVHT0/wd2cA3CZAnTDXh1A3cxFRw78k+X8A+woe4tQFAAA=
|
134
|
+
http_version:
|
135
|
+
recorded_at: Thu, 23 Mar 2017 17:02:02 GMT
|
136
|
+
- request:
|
137
|
+
method: post
|
138
|
+
uri: https://development.avalara.net/1.0/tax/cancel
|
139
|
+
body:
|
140
|
+
encoding: UTF-8
|
141
|
+
string: '{"CompanyCode":"54321","DocType":"SalesInvoice","DocCode":"R018376371","CancelCode":"DocVoided"}'
|
142
|
+
headers:
|
143
|
+
Accept:
|
144
|
+
- "*/*; q=0.5, application/xml"
|
145
|
+
Accept-Encoding:
|
146
|
+
- gzip, deflate
|
147
|
+
Authorization:
|
148
|
+
- Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
|
149
|
+
Content-Type:
|
150
|
+
- application/json
|
151
|
+
Content-Length:
|
152
|
+
- '96'
|
153
|
+
User-Agent:
|
154
|
+
- Ruby
|
155
|
+
response:
|
156
|
+
status:
|
157
|
+
code: 200
|
158
|
+
message: OK
|
159
|
+
headers:
|
160
|
+
Cache-Control:
|
161
|
+
- private
|
162
|
+
Content-Type:
|
163
|
+
- text/json; charset=utf-8
|
164
|
+
Content-Encoding:
|
165
|
+
- gzip
|
166
|
+
Vary:
|
167
|
+
- Accept-Encoding
|
168
|
+
X-Aspnet-Version:
|
169
|
+
- 4.0.30319
|
170
|
+
X-Powered-By:
|
171
|
+
- ASP.NET
|
172
|
+
Date:
|
173
|
+
- Thu, 23 Mar 2017 17:02:00 GMT
|
174
|
+
Content-Length:
|
175
|
+
- '308'
|
176
|
+
Set-Cookie:
|
177
|
+
- TS017f1821=01a8ddc44ec4d492438346abdae032f0e0321bbc6d52f853b805c9ae53bb0b4135510bde598033e4c9735f8448360b7745bbea7e1d;
|
178
|
+
Path=/
|
179
|
+
body:
|
180
|
+
encoding: ASCII-8BIT
|
181
|
+
string: !binary |-
|
182
|
+
H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
|
183
|
+
kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
|
184
|
+
AWz2zkrayZ4hgKrIHz9+fB8/In5x8tFJtpzm5Zvs3au8WZftR49S+vBNnS2b
|
185
|
+
bNoW1fJsRh/d3919eP/T3b3de/sHOw93d0fJR9L8pJrl9P1Hp3Vd1R/Rx1/k
|
186
|
+
TZNd5A19+L2EIL1eLxZZfU1/fvRmnqdt9i6dVdP1Il+26bRal7N0WbXpJE/P
|
187
|
+
q/VyNgaIp3mbFSUgfPRqZ/fg3oNP7z3YxRev88u8LloGZjt8Xa3rKeNwfJmV
|
188
|
+
WZ2N6ScNZ/w6ry+Lad6M6Y+Pfkny/eSXJL8k+X8A1kRpNvEAAAA=
|
189
|
+
http_version:
|
190
|
+
recorded_at: Thu, 23 Mar 2017 17:02:02 GMT
|
191
|
+
recorded_with: VCR 3.0.3
|