solidus_avatax_certified 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. checksums.yaml +7 -0
  2. data/.env_example +4 -0
  3. data/.gitignore +16 -0
  4. data/.rspec +3 -0
  5. data/.ruby-version +1 -0
  6. data/GEM_VERSION +1 -0
  7. data/Gemfile +18 -0
  8. data/LICENSE +26 -0
  9. data/README.md +27 -0
  10. data/Rakefile +21 -0
  11. data/app/assets/javascripts/spree/backend/address_validator.js +84 -0
  12. data/app/assets/javascripts/spree/backend/solidus_avatax_certified.js +5 -0
  13. data/app/assets/javascripts/spree/backend/use_code_picker.js +51 -0
  14. data/app/assets/javascripts/spree/frontend/address_validator.js +87 -0
  15. data/app/assets/javascripts/spree/frontend/flash.js.coffee +26 -0
  16. data/app/assets/javascripts/spree/frontend/solidus_avatax_certified.js +4 -0
  17. data/app/assets/stylesheets/spree/backend/solidus_avatax_certified.css +4 -0
  18. data/app/assets/stylesheets/spree/frontend/solidus_avatax_certified.css +4 -0
  19. data/app/controllers/spree/admin/avalara_entity_use_codes_controller.rb +15 -0
  20. data/app/controllers/spree/admin/avatax_settings_controller.rb +82 -0
  21. data/app/controllers/spree/admin/users_controller_decorator.rb +11 -0
  22. data/app/controllers/spree/checkout_controller_decorator.rb +22 -0
  23. data/app/models/solidus_avatax_certified/address.rb +95 -0
  24. data/app/models/solidus_avatax_certified/avatax_log.rb +69 -0
  25. data/app/models/solidus_avatax_certified/line.rb +146 -0
  26. data/app/models/solidus_avatax_certified/preference_updater.rb +74 -0
  27. data/app/models/spree/address_decorator.rb +13 -0
  28. data/app/models/spree/adjustment_decorator.rb +10 -0
  29. data/app/models/spree/avalara_entity_use_code.rb +5 -0
  30. data/app/models/spree/avalara_preference.rb +72 -0
  31. data/app/models/spree/avalara_transaction.rb +181 -0
  32. data/app/models/spree/calculator/avalara_transaction.rb +86 -0
  33. data/app/models/spree/line_item_decorator.rb +25 -0
  34. data/app/models/spree/order_decorator.rb +85 -0
  35. data/app/models/spree/payment_decorator.rb +23 -0
  36. data/app/models/spree/refund_decorator.rb +30 -0
  37. data/app/models/spree/shipment_decorator.rb +28 -0
  38. data/app/models/spree/shipping_rate_decorator.rb +25 -0
  39. data/app/models/spree/user_decorator.rb +3 -0
  40. data/app/models/tax_svc.rb +143 -0
  41. data/app/overrides/spree/admin/shared/_configuration_menu.rb +10 -0
  42. data/app/overrides/spree/admin/users/sidebar.rb +8 -0
  43. data/app/overrides/spree/admin/users/validation_button.rb +6 -0
  44. data/app/views/spree/admin/avalara_entity_use_codes/_form.html.erb +27 -0
  45. data/app/views/spree/admin/avalara_entity_use_codes/edit.html.erb +16 -0
  46. data/app/views/spree/admin/avalara_entity_use_codes/index.html.erb +33 -0
  47. data/app/views/spree/admin/avalara_entity_use_codes/new.html.erb +17 -0
  48. data/app/views/spree/admin/avalara_entity_use_codes/show.html.erb +24 -0
  49. data/app/views/spree/admin/avatax_settings/edit.html.erb +183 -0
  50. data/app/views/spree/admin/avatax_settings/ping_my_service.js.erb +8 -0
  51. data/app/views/spree/admin/avatax_settings/show.html.erb +124 -0
  52. data/app/views/spree/admin/avatax_settings/validate_address.js.erb +8 -0
  53. data/app/views/spree/admin/users/avalara_information.html.erb +53 -0
  54. data/app/views/spree/checkout/_address.html.erb +35 -0
  55. data/app/views/spree/checkout/_address_validator_button.html.erb +3 -0
  56. data/bin/rails +7 -0
  57. data/circle.yml +17 -0
  58. data/config/initializers/avatax.rb +5 -0
  59. data/config/initializers/spree.rb +3 -0
  60. data/config/locales/en.yml +35 -0
  61. data/config/routes.rb +18 -0
  62. data/db/migrate/20160624154205_create_spree_avalara_transactions.rb +9 -0
  63. data/db/migrate/20160624154423_create_spree_avalara_entity_use_codes.rb +9 -0
  64. data/db/migrate/20160624155217_add_columns_to_spree_users.rb +6 -0
  65. data/db/migrate/20160628200504_create_spree_avalara_preferences.rb +10 -0
  66. data/db/migrate/20160805193512_add_vat_id_to_spree_users.rb +5 -0
  67. data/db/seeds.rb +1 -0
  68. data/lib/generators/solidus_avatax_certified/install/install_generator.rb +45 -0
  69. data/lib/solidus_avatax_certified/engine.rb +22 -0
  70. data/lib/solidus_avatax_certified/preference_seeder.rb +69 -0
  71. data/lib/solidus_avatax_certified/seeder.rb +117 -0
  72. data/lib/solidus_avatax_certified.rb +2 -0
  73. data/lib/tasks/load_seeds.rake +15 -0
  74. data/setup.md +12 -0
  75. data/solidus_avatax_certified.gemspec +42 -0
  76. data/spec/controllers/spree/admin/avalara_entity_use_codes_controller_spec.rb +53 -0
  77. data/spec/controllers/spree/admin/avatax_settings_controller_spec.rb +67 -0
  78. data/spec/factories/avalara_entity_use_code_factory.rb +6 -0
  79. data/spec/factories/avalara_factories.rb +76 -0
  80. data/spec/factories/avalara_order_factory.rb +62 -0
  81. data/spec/factories/avalara_preference_factory.rb +7 -0
  82. data/spec/factories/avalara_shipment_factory.rb +27 -0
  83. data/spec/factories/avalara_shipping_method_factory.rb +23 -0
  84. data/spec/factories/tax_rate_factory.rb +19 -0
  85. data/spec/features/certification_spec.rb +77 -0
  86. data/spec/features/checkout_spec.rb +156 -0
  87. data/spec/features/vat_spec.rb +153 -0
  88. data/spec/models/solidus_avatax_certified/address_spec.rb +80 -0
  89. data/spec/models/solidus_avatax_certified/avatax_log_spec.rb +97 -0
  90. data/spec/models/solidus_avatax_certified/line_spec.rb +100 -0
  91. data/spec/models/spree/address_decorator_spec.rb +44 -0
  92. data/spec/models/spree/adjustment_decorator_spec.rb +25 -0
  93. data/spec/models/spree/avalara_entity_use_code_spec.rb +5 -0
  94. data/spec/models/spree/avalara_preference_spec.rb +173 -0
  95. data/spec/models/spree/avalara_transaction_spec.rb +203 -0
  96. data/spec/models/spree/calculator/avalara_transaction_spec.rb +129 -0
  97. data/spec/models/spree/line_item_decorator_spec.rb +33 -0
  98. data/spec/models/spree/order_decorator_spec.rb +164 -0
  99. data/spec/models/spree/payment_decorator_spec.rb +117 -0
  100. data/spec/models/spree/refund_decorator_spec.rb +81 -0
  101. data/spec/models/spree/shipment_decorator_spec.rb +36 -0
  102. data/spec/models/spree/shipping_rate_decorator_spec.rb +17 -0
  103. data/spec/models/spree/user_decorator_spec.rb +5 -0
  104. data/spec/spec_helper.rb +81 -0
  105. data/spec/support/avatax_config_preferences.rb +8 -0
  106. data/spec/support/vcr.rb +9 -0
  107. 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
  108. data/spec/vcr/Certification/Transactions_have_been_committed_/commits_an_order.yml +336 -0
  109. data/spec/vcr/Certification/Transactions_have_been_voided/cancelled_/should_be_successful/returns_ResultCode_with_value_Success.yml +522 -0
  110. data/spec/vcr/Certification/return_orders/_commit_avatax_final/should_commit_avatax_final.yml +404 -0
  111. data/spec/vcr/Checkout/complete_order/has_tax_and_shipping_tax_adjustments_on_page.yml +72 -0
  112. data/spec/vcr/Checkout/complete_order/order_line_items_and_shipments_have_an_additional_tax_total_sum_of_0_40.yml +72 -0
  113. data/spec/vcr/Checkout/payment/tax_included/has_tax_and_shipping_tax_adjustments_on_page.yml +72 -0
  114. data/spec/vcr/Checkout/payment/tax_included/order_line_items_and_shipments_have_an_included_tax_total_sum_of_0_38.yml +72 -0
  115. data/spec/vcr/Checkout/payment/tax_not_included/on_payment_page/has_tax_and_shipping_tax_adjustments_on_page.yml +72 -0
  116. 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
  117. data/spec/vcr/Checkout/payment/with_promotion/tax_not_included/has_adjusted_tax_amount_after_promotion_applied.yml +73 -0
  118. data/spec/vcr/SolidusAvataxCertified_Address/_validate/fails_when_information_is_incorrect.yml +54 -0
  119. 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
  120. 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
  121. 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
  122. 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
  123. 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
  124. 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
  125. 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
  126. 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
  127. 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
  128. data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_given_a_shipment/computing_normal_shipment/should_be_equal_4_0.yml +141 -0
  129. 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
  130. data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_given_a_shipment/with_promotion/should_equal_3_96.yml +210 -0
  131. data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_given_an_order/when_computing_an_order/should_raise_error.yml +136 -0
  132. data/spec/vcr/Spree_Order/_cancel_avalara/should_receive_cancel_order_when_cancel_avalara_is_called.yml +136 -0
  133. data/spec/vcr/Spree_Order/_cancel_avalara/state_machine_event_cancel/should_recieve_cancel_avalara_when_event_cancel_is_called.yml +259 -0
  134. data/spec/vcr/Spree_Order/_validate_ship_address/should_return_false_if_validation_failed.yml +54 -0
  135. data/spec/vcr/Spree_Order/_validate_ship_address/should_return_the_response_if_refuse_checkout_on_address_validation_is_disabled.yml +59 -0
  136. data/spec/vcr/Spree_Order/_validate_ship_address/should_return_the_response_if_validation_is_success.yml +59 -0
  137. data/spec/vcr/Spree_Payment/_avalara_finalize/should_update_the_amount_to_be_the_order_total.yml +136 -0
  138. data/spec/vcr/Spree_Payment/_cancel_avalara/committed_order/should_be_successful/ResultCode_returns_Success.yml +205 -0
  139. data/spec/vcr/Spree_Payment/_cancel_avalara/uncommitted_order/should_fail/ResultCode_returns_Error.yml +191 -0
  140. data/spec/vcr/Spree_Payment/_purchase_/receive_avalara_finalize.yml +136 -0
  141. data/spec/vcr/Spree_Payment/_void_transaction_/receive_cancel_avalara.yml +136 -0
  142. data/spec/vcr/Spree_Refund/full_refund/returns_correct_tax_calculations.yml +270 -0
  143. 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
  144. 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
  145. 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
  146. 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
  147. 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
  148. 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
  149. data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_same_EU_country/TotalTax_is_equal_to_order_included_tax_total.yml +137 -0
  150. data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_same_EU_country/tax_detail_country_equals_to_IT.yml +138 -0
  151. 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
  152. 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
  153. 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
  154. 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
  155. 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
  156. 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
  157. data/spec/vcr/address_validation_success.yml +59 -0
  158. data/spec/vcr/capture_with_customer_usage_type.yml +72 -0
  159. data/spec/vcr/order_cancel.yml +258 -0
  160. data/spec/vcr/order_capture.yml +72 -0
  161. data/spec/vcr/order_capture_finalize.yml +141 -0
  162. data/spec/vcr/order_capture_with_promo.yml +73 -0
  163. data/spec/vcr/order_return_capture.yml +68 -0
  164. data/spec/vcr/tax_included_order.yml +73 -0
  165. 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":"R660421937","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
+ #6 - 5475","TaxCode":"PC030000","ItemCode":"SKU-6","Qty":1,"Amount":10.0,"OriginCode":"Orig","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R660421937","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
+ - '795'
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:58 GMT
44
+ Content-Length:
45
+ - '578'
46
+ Set-Cookie:
47
+ - TS017f1821=01a8ddc44e42405894f70cadaa9ffce9b0eeda26414ab2939652187f46f8c14c90b997f00ffb184d11f2f0e9e425ee1173bcf7b882;
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+++vTTnf293Yf3HugXT7OWv9jb2X2wvXNve28HX7wpFnnTZotV+NWb
56
+ vd1He3uP7j8c7+7sPXjwU9y0arPyeFGtly0aPxx/umc/flo0U/OFwMWnp+/y
57
+ xaotqmX48ZvsXTYpGZkACH2Oz3bG9w78z06ycrouCftZ8G327nmxzBv67HsJ
58
+ 0QR/vKjor492t5+faQtDjJcnO/d26NGPs0lRFu01vmnrdY5PnxD2s6y+fp5f
59
+ 5iW++KlidR9f9MfQHysghuN5Reji753xzj71a5rJR3YAgyN7mrdZUdqxnaC7
60
+ mvH96jWavMovFKPj5/j7O+u6aN5cr7jP1y1BtJ8aEuzs4iOC/TVQZUAvsgW3
61
+ O35+/OT4i2N8Ts3cp+nrN8dvTtM3x7/3R78k+X6C/0uT49msJv50U6UfGMye
62
+ EgMC2olOyRfVsr2oFjkNGJ92x/6yIn4tzcv3Pt3d2cfHXZJQx/LRGRN3b+f+
63
+ 3oOHD/ENj8a8v7O7u7N7f1fHrZjhi+P0aXF+ntf5sk1fVdmMBjXq4/5lXVzg
64
+ xf934f5w9376Ov1ONn3bVMv0dUu4m8mIaIFfkvw/10ej1VMEAAA=
65
+ http_version:
66
+ recorded_at: Mon, 20 Mar 2017 21:22: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":"R660421937","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
+ #6 - 5475","TaxCode":"PC030000","ItemCode":"SKU-6","Qty":1,"Amount":10.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"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":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R660421937","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
+ - Mon, 20 Mar 2017 21:22:59 GMT
111
+ Content-Length:
112
+ - '688'
113
+ Set-Cookie:
114
+ - TS017f1821=01a8ddc44eb90b30b9322a774b00ffb6d6383b3d65bcafe2f24a0996c48b8c0906fb5503ebde86ac3dc57ecd5c1195f3d4daee0c7c;
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+++vTTnf293Yf3HugXT7OWv9jb2X2wvXNve28HX7wpFnnTZotV+NWb
123
+ vd1He3uP7j8cP9jfv3///sFPceOqzcrjRbVetmi+u3N//IDB8xdPi2ZqvhLY
124
+ +PT0Xb5YtUW1DD9+k73LJiUj1AFD3+DT/fHePf+zk6ycrksawyz4Nnv3vFjm
125
+ DX32vYQogz9eVPTXR7vbz8+0hSHJy5Odezv06MfZpCiL9hrftPU6x6dPCP9Z
126
+ Vl8/zy/zEl/8VLG6jy/6o+iPFhBlRA/Hn+7ho1eELv7eGe/sU7+mmXx070D/
127
+ DEfmffE0b7OitGM7QXc14/vVazR5lV8oRsfP8fd31nXRvLlecZ+vW4JoPzUk
128
+ 2NnFRwT7a6DKgF5kC253/Pz4yfEXx/icmrlP09dvjt+cpm+Of++Pfkny/eSX
129
+ JCPC3J+VZ6/0HYPSs1fUHT368c/irHw63uXXNoz13viAm9Cf4bR4X/xQpuU9
130
+ cGVIbgZuOS/fT6TJ8WxWk/ZwIqQfGNSeknoAtBOdlC+qZXtRLXIaMT7tDv5l
131
+ RdqkNC/f+3R3Zx8fd2lCHctHZ0zdvZ37ew8ePsQ3PBrz/s7u7s7u/V0dt2KG
132
+ L47Tp8X5eV7nyzZ9VWUzGhQYTVuY15mzDeLfzZp5sbxoCQ18uhlxQkj6FCzx
133
+ 0dMT/N1BnNsEKBPG+uArRYi/+HRnJ32ZL5fNdXmZLYssPb7M0xffJdTNXERU
134
+ 9C9J/h/3+W0u8AUAAA==
135
+ http_version:
136
+ recorded_at: Mon, 20 Mar 2017 21:22:59 GMT
137
+ 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":"R618997790","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
+ #10 - 1635","TaxCode":"PC030000","ItemCode":"SKU-10","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":"R618997790","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
+ - '798'
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:23:04 GMT
44
+ Content-Length:
45
+ - '581'
46
+ Set-Cookie:
47
+ - TS017f1821=01a8ddc44e0e1cd701267992805f3598b17a587d702fabc0a46a81c7909fd96a104de5e858c228283da2f907432c39a7130274767e;
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+++nT34OHDBw8e7ugXT7OWv9jb2X2wvXNve4+/eFMs8qbNFqvwqzd7
56
+ u4/27j3auT/e29t58HD/4U9x46rNyuNFtV62aL4rEPDh06KZmo/dp6fv8sWq
57
+ Lapl+PGb7F02KRkZDwR9ik92xvv+RydZOV2XhPrM/zJ797xY5g199L2E6IE/
58
+ XlT010e728/PtIUhxMuTnXs79OjH2aQoi/Ya37T1OsenTwjzWVZfP88v8xJf
59
+ /FSxuo8v+vj3xwmI/lheEa74a2e8s0+98mfUSD4y2A+N6mneZkVpx3WCrmrG
60
+ 9avXaPIqv1Bsjp/j7++s66J5c73iHl+3BNB+aoa/s4uPCPb7oslQXmQLbnb8
61
+ /PjJ8RfH+JxauU/T12+O35ymb45/749+SfL9BP+XJsezWU1M6eZIP6A/PzpO
62
+ nxbn53mdL9v0VZXNAFW/Nlg/JabExyc6VV9Uy/aiWuREDHzapcvLini4NC/f
63
+ +3R3h4fQJRfhJR+dMd33du7vPXj4EN/wYM37O7u7O7v3d0GVX5KMQtwf7t5P
64
+ X6ffyaZvm2qZvmYk9Wvz+pd1cYGPf+5xN5MREf1fkvw/7XNaM0gEAAA=
65
+ http_version:
66
+ recorded_at: Mon, 20 Mar 2017 21:23: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":"R618997790","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
+ #10 - 1635","TaxCode":"PC030000","ItemCode":"SKU-10","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":"R618997790","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
+ - '1147'
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:23:05 GMT
111
+ Content-Length:
112
+ - '675'
113
+ Set-Cookie:
114
+ - TS017f1821=01a8ddc44ef9cfc636d22e614278ecc0cc4ef0683aab68d82ffb34cf885781a14d6393d40afa3d12df6f7c7e8c9cb15962f962ed87;
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+++nT34OHDBw8e7ugXT7OWv9jb2X2wvXNve4+/eFMs8qbNFqvwqzd7
123
+ u4/27j3auT8+2Kf/9vZ+ihtXbVYeL6r1skXz3V0BgU+fFs3UfO4+PX2XL1Zt
124
+ US3Dj99k77JJydj4MOhjfLQ/3vc/OsnK6bok5Gf+l9m758Uyb+ij7yVEEfzx
125
+ oqK/Ptrdfn6mLQwpXp7s3NuhRz/OJkVZtNf4pq3XOT59QqjPsvr6eX6Zl/ji
126
+ p4rVfXzRH0B/oICog+EPXhGu+GtnvLNPvfJn1Eg+MtiHo3KfP83brCjtuE7Q
127
+ Vc24fvUaTV7lF4rN8XP8/Z11XTRvrlfc4+uWANpPzfB3dvERwX5fNBnKi2zB
128
+ zY6fHz85/uIYn1Mr92n6+s3xm9P0zfHv/dEvSb6f/JJkRGj70/Hslb5j8Hn2
129
+ inqjRz/+2ZwO/mTDQHmY9Hs4G+bTH85cMD434chAHNFvORXfT6TJ8WxWk4Zw
130
+ 4qIf0J8fHadPi/PzvM6XbfqqymaAql8bpJ+ShsDHJzpNX1TL9qJa5EQLfNol
131
+ y8uKFEppXr736e4OD6FLLcJLPjpjou/t3N978PAhvuHBmvd3SEPs3icy7dCg
132
+ wFuKHL7b/XRnJ32ZL5fNdXmZLYssPb7M0xffBRBtZsDs4TMzgO9mzbxYXrSE
133
+ Dj7dPABCjPqmjwVbfPT0BH93BsBtAtQJc30IdTMXETX8S5L/B6DaQXbUBQAA
134
+ http_version:
135
+ recorded_at: Mon, 20 Mar 2017 21:23:05 GMT
136
+ 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":"R680304966","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
+ #11 - 1930","TaxCode":"PC030000","ItemCode":"SKU-11","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":"R680304966","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
+ - '798'
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:23:06 GMT
44
+ Content-Length:
45
+ - '581'
46
+ Set-Cookie:
47
+ - TS017f1821=01a8ddc44edc0cd2d5b038950a08efcd5ee02126fae4b6096612514262cc48545bff15a94838a1e13282a73b1cb888be3eb8497c56;
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+++vRg597O/sNPP9UvnmYtf7G3s/tge+fe9t4OvnhTLPKmzRar8Ks3
56
+ e7uP9u492vl0fLB7f//+zv2f4sZVm5XHi2q9bNF8VyDgw6dFMzUfu09P3+WL
57
+ VVtUy/DjN9m7bFIyMh4I+hSf7Iz3/Y9OsnK6Lgn1mf9l9u55scwb+uh7CdED
58
+ f7yo6K+Pdrefn2kLQ4iXJ0QHevTjbFKURXuNb9p6nePTJ4T5LKuvn+eXeYkv
59
+ fqpY3ccXffz74wREfyyvCFf8tTPe2ade+TNqJB8Z7IdG9TRvs6K04zpBVzXj
60
+ +tVrNHmVXyg2x8/x93fWddG8uV5xj69bAmg/NcPf2cVHBPt90WQoL7IFNzt+
61
+ fvzk+ItjfE6t3Kfp6zfHb07TN8e/90e/JPl+gv9Lk+PZrCamdHOkH9CfHx2n
62
+ T4vz87zOl236qspmgKpfG6yfElPi4xOdqi+qZXtRLXIiBj7t0uVlRTxcmpfv
63
+ fbq7w0Pokovwko/OmO57O/f3Hjx8iG94sOb9nd3dnd37u6DKL0lGIe4Pd++n
64
+ r9PvZNO3TbVMXzOS+rV5/cu6uMDHP/e4m8mIiP4vSf4fAW4Q4kgEAAA=
65
+ http_version:
66
+ recorded_at: Mon, 20 Mar 2017 21:23:06 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":"R680304966","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
+ #11 - 1930","TaxCode":"PC030000","ItemCode":"SKU-11","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":"R680304966","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
+ - '1147'
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:23:07 GMT
111
+ Content-Length:
112
+ - '677'
113
+ Set-Cookie:
114
+ - TS017f1821=01a8ddc44e3cf7e96c4474399c6263f59f0a5a718185489c2f22d0d8bb833f5188e05677521171b011654812b23e397a8c54585367;
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+++vRg597O/sNPP9UvnmYtf7G3s/tge+fe9t4OvnhTLPKmzRar8Ks3
123
+ e7uP9u492nkw3t+7/+nBpwc/xY2rNiuPF9V62aL57q6AwKdPi2ZqPnefnr7L
124
+ F6u2qJbhx2+yd9mkZGx8GPQxPtof7/sfnWTldF0S8jP/y+zd82KZN/TR9xKi
125
+ CP54UdFfH+1uPz/TFoYUL0+IEvTox9mkKIv2Gt+09TrHp08I9VlWXz/PL/MS
126
+ X/xUsbqPL/oD6A8UEHUw/MErwhV/7Yx39qlX/owayUcG+3BU7vOneZsVpR3X
127
+ CbqqGdevXqPJq/xCsTl+jr+/s66L5s31int83RJA+6kZ/s4uPiLY74smQ3mR
128
+ LbjZ8fPjJ8dfHONzauU+TV+/OX5zmr45/r0/+iXJ95NfkowIbX86nr3Sdww+
129
+ z15Rb/Toxz+b08GfbBgoD5N+D2fDfPrDmQvG5yYcGYgj+i2n4vuJNDmezWrS
130
+ EE5c9AP686Pj9Glxfp7X+bJNX1XZDFD1a4P0U9IQ+PhEp+mLatleVIucaIFP
131
+ u2R5WZFCKc3L9z7d3eEhdKlFeMlHZ0z0vZ37ew8ePsQ3PFjz/g5piN37RKYd
132
+ GhR4S5HDd7uf7uykL/PlsrkuL7NlkaXHl3n64rsAos0MmD18Zgbw3ayZF8uL
133
+ ltDBp5sHQIhR3/SxYIuPnp7g784AuE2AOmGuD6Fu5iKihn9J8v8A+VnnpdQF
134
+ AAA=
135
+ http_version:
136
+ recorded_at: Mon, 20 Mar 2017 21:23:07 GMT
137
+ 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":"R645514092","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
+ #9 - 1552","TaxCode":"PC030000","ItemCode":"SKU-9","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":"R645514092","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:23:03 GMT
44
+ Content-Length:
45
+ - '583'
46
+ Set-Cookie:
47
+ - TS017f1821=01a8ddc44e9225f2b43d3d6c218414221a3c96e1e8fa4668d40cc9518a709636ad651cd9bbbfad2c73288a1d7c731997178b9c1a82;
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+++nT//v3d/Z2He/rF06zlL/Z2dh9s79zb3tvBF2+KRd602WIVfvVm
56
+ b/fR3r1HO/fGD+7vPvj0wYOf4sZVm5XHi2q9bNF8VyDgw6dFMzUfu09P3+WL
57
+ VVtUy/DjN9m7bFIyMh4I+hSf7Iz3/Y9OsnK6Lgn1mf9l9u55scwb+uh7CdED
58
+ f7yo6K+Pdrefn2kLQ4iXJzv3dujRj7NJURbtNb5p63WOT58Q5rOsvn6eX+Yl
59
+ vvipYnUfX/Tx748TEP2xvCJc8dfOeGefeuXPqJF8ZLAfGtXTvM2K0o7rBF3V
60
+ jOtXr9HkVX6h2Bw/x9/fWddF8+Z6xT2+bgmg/dQMf2cXHxHs90WTobzIFtzs
61
+ +Pnxk+MvjvE5tXKfpq/fHL85Td8c/94f/ZLk+wn+L02OZ7OamNLNkX5Af350
62
+ nD4tzs/zOl+26asqmwGqfm2wfkpMiY9PdKq+qJbtRbXIiRj4tEuXlxXxcGle
63
+ vvfp7g4PoUsuwks+OmO67+3c33vw8CG+4cGa93d2d3d27++CKr8kGYW4P9y9
64
+ n75Ov5NN3zbVMn3NSOrX5vUv6+ICH//c424mIyL6vyT5fwAOY3BrSAQAAA==
65
+ http_version:
66
+ recorded_at: Mon, 20 Mar 2017 21:23:03 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":"R645514092","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
+ #9 - 1552","TaxCode":"PC030000","ItemCode":"SKU-9","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":"R645514092","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:23:03 GMT
111
+ Content-Length:
112
+ - '672'
113
+ Set-Cookie:
114
+ - TS017f1821=01a8ddc44e2c6c39a3b363ba59fe8fbb40a1971f9e20ec2e064267ec28af805699b2bf4b2250290f0eb76fc560608a376aca335696;
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+++nT//v3d/Z2He/rF06zlL/Z2dh9s79zb3tvBF2+KRd602WIVfvVm
123
+ b/fR3r1HO/vjew8ODnYefPpT3Lhqs/J4Ua2XLZrv7goIfPq0aKbmc/fp6bt8
124
+ sWqLahl+/CZ7l01KxsaHQR/jo/3xvv/RSVZO1yUhP/O/zN49L5Z5Qx99LyGK
125
+ 4I8XFf310e728zNtYUjx8mTn3g49+nE2KcqivcY3bb3O8ekTQn2W1dfP88u8
126
+ xBc/Vazu44v+APoDBUQdDH/winDFXzvjnX3qlT+jRvKRwT4clfv8ad5mRWnH
127
+ dYKuasb1q9do8iq/UGyOn+Pv76zronlzveIeX7cE0H5qhr+zi48I9vuiyVBe
128
+ ZAtudvz8+MnxF8f4nFq5T9PXb47fnKZvjn/vj35J8v3klyQjQtufjmev9B2D
129
+ z7NX1Bs9+vHP5nTwJxsGysOk38PZMJ/+cOaC8bkJRwbiiH7Lqfh+Ik2OZ7Oa
130
+ NIQTF/3AYPWUVACgneg8fFEt24tqkdNg8Wl33C8r0hilefnep7s7jGOXHNSx
131
+ fHTGVN3bub/34OFDfMOjMe/vkArYvU904EErZvjiOH1anJ/ndb5s01dVNqNB
132
+ gbe0hXmd1ZtB/LtZMy+WFy2hgU83I04ISZ+CJT56eoK/O4hzmwBlwlgffKUI
133
+ 8Ref7uykL/PlsrkuL7NlkaXHl3n64ruEupmLiBr+Jcn/A6aJgWHUBQAA
134
+ http_version:
135
+ recorded_at: Mon, 20 Mar 2017 21:23:04 GMT
136
+ recorded_with: VCR 3.0.3