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,72 @@
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":"R938222448","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":"915
10
+ S Jackson St","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"1","Line1":"1600
11
+ Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
12
+ #1 - 5637","TaxCode":"PC030000","ItemCode":"SKU-1","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
13
+ Ground","Qty":1,"Amount":10.0,"OriginCode":"1","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":"R938222448","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
+ - '1142'
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
+ - Thu, 23 Mar 2017 18:57:22 GMT
47
+ Content-Length:
48
+ - '667'
49
+ Set-Cookie:
50
+ - TS017f1821=01a8ddc44e60e2dd0bafd99b07c8f592068cc737073e2312e7620e9c657d428513035096ef0c196f670d95de20b00fd9a66757f3a3;
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++enjvYG9vb3//QL94mrX8xd7O7oPtnXvbe/fwxZtikTdttliFX73Z
59
+ PXh0/8Gjvb3x7v2H+zv3f4rbVm1WHi+q9bJF692H4719+/nTopmab3bsp6fv
60
+ 8sWqLapl+PGb7F02KRmdEAp9gQ93xg8+9T87ycrpuqQBzIJvs3fPi2Xe0Gff
61
+ S4gs+ONFRX99tLv9/ExbGHq8PNm5t0OPfpxNirJor/FNW69zfPqE0J9l9fXz
62
+ /DIv8cXxbFYrYfvj6I8XQGVMD8ef7uGjV4Qx/t4Z7+xT16aZfHSPJ4b+7A7O
63
+ fvE0b7OitMM7QXc1o/zVazR5lV8oRsfP8fd31nXRvLlecZ+vW4JoPzVU2NnF
64
+ RwT7a6DKgF5kC253/Pz4yfEXx/icmrlP09dvjt+cpm+Of++Pfkny/eSXJCPC
65
+ 3E3M3vazV/qOQenZK+qOHv34RxPz3qgyIDcFt5yY7yfSRInpxEg/oD8/erh7
66
+ P32dfiebvm2qZfq6BVT92iD+lNQHPu4RgUALHc6YfHs79/cePHyIbxhf8/7O
67
+ 7u7O7v1dHdmJTv0X1bK9qBY5AaRPX1akokrzxr1Pd3dYYwh4fERkFk5T5PDZ
68
+ 7qc7O+nLfLlsrsvLbFlk6fFlnr74Lt7UZgYi0/6mATB+AeqEuT74yqD+3ayZ
69
+ F8uLljCjT0PUiQjSWADjo6cnhLqZi4iO/iXJ/wMDwgN48QUAAA==
70
+ http_version:
71
+ recorded_at: Thu, 23 Mar 2017 18:57:23 GMT
72
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,72 @@
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":"R423400717","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":"915
10
+ S Jackson St","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"1","Line1":"1600
11
+ Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
12
+ #3 - 5299","TaxCode":"PC030000","ItemCode":"SKU-3","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":false},{"LineNo":"2-FR","ItemCode":"Avalara
13
+ Ground","Qty":1,"Amount":10.0,"OriginCode":"1","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":"R423400717","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
+ - Thu, 23 Mar 2017 18:57:32 GMT
47
+ Content-Length:
48
+ - '651'
49
+ Set-Cookie:
50
+ - TS017f1821=01a8ddc44eff5adaf4c4b8e0879e5ad0cd853f8cb014352ff8a824aa1d60b3a5d5141df30b0e793f0b81fa1c28ab9dea601d6c59ce;
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++2t+7t7+z82D3gX7xNGv5i72d3QfbO/e29+7hizfFIm/abLEKv3qz
59
+ e/Do/oNH9/bG+/f3Dg52dn+KG1dtVh4vqvWyleb2w6dFMzUfu09P3+WLVVtU
60
+ y/DjN9m7bFIqMv6n+GRnfOB/dJKV03VJqM/8L7N3z4tl3tBH30uIHvjjRUV/
61
+ fbS7/fxMWxhCvDzZubdDj36cTYqyaK/xTVuvc3z6hDCfZfX18/wyL/HF8WxW
62
+ K0X7Q+gPFUBlOLv8wStCF3/tjHdoBmzP8tG+/tUdmPn8ad5mRWmHdoKuakb3
63
+ q9do8iq/UGyOn+Pv76zronlzveIeX7cE0H5qKLCzi48I9vuiyVBeZAtudvz8
64
+ +MnxF8f4nFq5T9PXb47fnKZvjn/vj35J8v3klyQjQtvNyN72s1f6jsHn2Svq
65
+ jR79+Eczcns0GYqj/S1n5PuJNFEqOsHRD+jPjx7u3k9fp9/Jpm+bapm+bgFV
66
+ vzZYPyVNgY9PdLa+qJbtRbXIiRj4tEuXlxUpltK8fO/T3R0eQpdchJd8dMZ0
67
+ 39u5v/fg4UN8w4M17+/s7u7s3t8FVYTFFDl8t/vpzk76Ml8um+vyMlsWWXp8
68
+ macvvgsg2syAYcKbAXw3a+bF8qIldPDp5gEQYtQ3fSzY4qOnJ/i7MwBuE6BO
69
+ mOtDqJu5iKjjX5L8P68euVDcBQAA
70
+ http_version:
71
+ recorded_at: Thu, 23 Mar 2017 18:57:34 GMT
72
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,72 @@
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":"R032485482","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":"915
10
+ S Jackson St","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"1","Line1":"1600
11
+ Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
12
+ #4 - 6812","TaxCode":"PC030000","ItemCode":"SKU-4","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":false},{"LineNo":"2-FR","ItemCode":"Avalara
13
+ Ground","Qty":1,"Amount":10.0,"OriginCode":"1","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":"R032485482","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
+ - Thu, 23 Mar 2017 18:57:37 GMT
47
+ Content-Length:
48
+ - '655'
49
+ Set-Cookie:
50
+ - TS017f1821=01a8ddc44e3802ab2c7101323c9cd057e464b14a1089e4f5d936c3bca01f77a1607ca07fbd4fd8894d902074306f99e1b307b00d4f;
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++2rm3t39wf/9gT794mrX8xd7O7oPtnXvbe/fwxZtikTdttliFX73Z
59
+ PXh0/8Gjewfjvf3d/b37uz/Fjas2K48X1XrZSnP74dOimZqP3aen7/LFqi2q
60
+ Zfjxm+xdNikVGf9TfLIzPvA/OsnK6bok1Gf+l9m758Uyb+ij7yVED/zxoqK/
61
+ Ptrdfn6mLQwhXp7s3NuhRz/OJkVZtNf4pq3XOT59QpjPsvr6eX6Zl/jieDar
62
+ laL9IfSHCqAynF3+4BWhi792xjv71DF/Ro3ko339qzsw8/nTvM2K0g7tBF3V
63
+ jO5Xr9HkVX6h2Bw/x9/fWddF8+Z6xT2+bgmg/dRQYGcXHxHs90WTobzIFtzs
64
+ +Pnxk+MvjvE5tXKfpq/fHL85Td8c/94f/ZLk+8kvSUaEtpuRve1nr/Qdg8+z
65
+ V9QbPfrxj2bk9mgyFEf7W87I9xNpolR0gqMf0J8fPdy9n75Ov5NN3zbVMn3d
66
+ Aqp+bbB+SpoCH5/obH1RLduLapETMfBply4vK1IspXn53qe7OzwEwkModsZ0
67
+ 3tu5v/fg4UN8w4Mz7Xd2d3d27+8qFeQNfE40FhZT5PDZ7qc7O+nLfLlsrsvL
68
+ bFlk6fFlnr74Lt7UZgYsE94M4LtZMy+WFy1BxqebB0CICi6dAfBnAeqEuT74
69
+ Stri86cnhLqZi4g6/iXJ/wPTfDp03AUAAA==
70
+ http_version:
71
+ recorded_at: Thu, 23 Mar 2017 18:57:39 GMT
72
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,73 @@
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":"R888603583","DocDate":"2017-03-23","Discount":"5.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":"915
10
+ S Jackson St","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"1","Line1":"1600
11
+ Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
12
+ #5 - 3706","TaxCode":"PC030000","ItemCode":"SKU-5","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":true,"TaxIncluded":false},{"LineNo":"2-FR","ItemCode":"Avalara
13
+ Ground","Qty":1,"Amount":10.0,"OriginCode":"1","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":"R888603583","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
+ - Thu, 23 Mar 2017 18:57:43 GMT
47
+ Content-Length:
48
+ - '678'
49
+ Set-Cookie:
50
+ - TS017f1821=01a8ddc44e8a18ddb453adcce77f2f95a136a57946bf9b56d4ead93ab3d015bc0d7a73439747092cd1931527e97d4e8a49fb78cfa1;
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++Ojg4+HTn3v2De/rF06zlL/Z2dh9s79zb3uMv3hSLvGmzxSr86s3u
59
+ waP7Dx7t3xvv3tvZebj36U9x46rNyuNFtV620tx++LRopubj+/bT03f5YtUW
60
+ 1RIfu8ZvsnfZpGRkdl1j+hSf7Iw/9T86ycrpuiTUZ/6X2bvnxTJv6KPvJUQP
61
+ /PGior8+2t1+fqYtDCFenuzQEHake/RclEV7jW/aep3j0yeE+Syrr5/nl3mJ
62
+ L45ns1op2h9Cf6gAKsPhv18RtvhjZ7yzT/3yS9RGPtrTv7rjMp8/zdusKO3I
63
+ TtBTzdh+9RpNXuUXiszxc/z9nXVdNG+uV9zj65YA2k8NAXZ28RHBfk8sGciL
64
+ bMHNjp8fPzn+4hifUyv3afr6zfGb0/TN8e/90S9Jvp/8kmREWLv52Nt+9krf
65
+ Meg8e0W90aMff6PzwR8wUBnpLn+wcaj7+ld3QsznP4wJuS2aDMXR/pYz8v1E
66
+ migVndjoB/TnRw9376ev0+9k07dNtUxft4CqXxusn5KewMcnOltfVMv2olrk
67
+ RAx82qXLy4rUSmlevvfp7g4PoUsuwks+OmO67+3c33vw8CG+4cGa93d2d3d2
68
+ 7++CKsJiihy+2/10Zyd9mS+XzXV5mS2LLD2+zNMX3wUQbWbAMOHNAL6bNfNi
69
+ edESOvh08wAIMeqbPhZs8dHTE/zdGQC3CVAnzPUh1M1cRJTxL0n+HwGzJ7ja
70
+ BQAA
71
+ http_version:
72
+ recorded_at: Thu, 23 Mar 2017 18:57:44 GMT
73
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://development.avalara.net/1.0/address/validate?City=&Country=US&Line1=220%20Paul%20W%20Bryant%20Dr&Line2=&PostalCode=36104&Region=AL
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 500
21
+ message: Internal Server Error
22
+ headers:
23
+ Cache-Control:
24
+ - private
25
+ Content-Type:
26
+ - text/json; charset=utf-8
27
+ X-Aspnet-Version:
28
+ - 4.0.30319
29
+ X-Powered-By:
30
+ - ASP.NET
31
+ Date:
32
+ - Thu, 23 Mar 2017 18:10:54 GMT
33
+ Content-Length:
34
+ - '373'
35
+ Set-Cookie:
36
+ - TS017f1821=01a8ddc44ecc54844194119d45cac1e4482250d17bb22af5a5fcd94b66cce4d353c22d13ac7d1f0b18626bcc9bcde3701b81b09560;
37
+ Path=/
38
+ body:
39
+ encoding: UTF-8
40
+ string: |
41
+ {
42
+ "ResultCode": "Error",
43
+ "Messages": [
44
+ {
45
+ "Summary": "An exact street name match could not be found",
46
+ "Details": "An exact street name match could not be found and phonetically matching the street name resulted in either no matches or matches to more than one street name.",
47
+ "RefersTo": "Address.Line1",
48
+ "Severity": "Error",
49
+ "Source": "Avalara.AvaTax.Services.Address"}
50
+ ]
51
+ }
52
+ http_version:
53
+ recorded_at: Thu, 23 Mar 2017 18:10:56 GMT
54
+ 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":"R722467361","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
+ #7 - 7178","TaxCode":"PC030000","ItemCode":"SKU-7","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":"R722467361","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:23:00 GMT
44
+ Content-Length:
45
+ - '585'
46
+ Set-Cookie:
47
+ - TS017f1821=01a8ddc44efa24370e09720390d4b16979391add6c92d233d6af9a0d07b65643af2b5cb002f7a9c511c1c42bedfe1318bc696a62c7;
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++erC3t//pg3uf7uoXT7OWv9jb2X2wvXNve28HX7wpFnnTZotV+NWb
56
+ vd1He/ce7eyMP91/sPfg/sOf4sZVm5XHi2q9bNH84fjTPfvx06KZmi8EMj49
57
+ fZcvVm1RLcOP32TvsknJ6ARA6HN8tjO+d+B/dpKV03VJ+M+Cb7N3z4tl3tBn
58
+ 30uIKvjjRUV/fbS7/fxMWxhyvDzZubdDj36cTYqyaK/xTVuvc3z6hLCfZfX1
59
+ 8/wyL/HFTxWr+/iiP4b+WAExHM8rQhd/74x39qlf00w+sgMYHNnTvM2K0o7t
60
+ BN3VjO9Xr9HkVX6hGB0/x9/fWddF8+Z6xX2+bgmi/dSQYIc5gWB/DVQZ0Its
61
+ we2Onx8/Of7iGJ9TM/dp+vrN8ZvT9M3x7/3RL0m+n+D/0uR4NquJQ91U6Qf0
62
+ 50fH6dPi/Dyv82WbvqqyGaDq1wbxp8Sh+PhEZ+yLatleVIuc6IFPu6R5WRFD
63
+ l+ZlEoCdfXzcpRjhJR+dMe33du7vPXj4EN/wYM37O7u7O7v3d0GWX5KMQtwf
64
+ 7t5PX6ffyaZvm2qZvmYk9Wvz+pd1cYGPf+5xN5MR0QO/JPl/AFEB0HFVBAAA
65
+ http_version:
66
+ recorded_at: Mon, 20 Mar 2017 21:23:00 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":"R722467361","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
+ #7 - 7178","TaxCode":"PC030000","ItemCode":"SKU-7","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":"R722467361","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:23:01 GMT
111
+ Content-Length:
112
+ - '690'
113
+ Set-Cookie:
114
+ - TS017f1821=01a8ddc44eb7e2441981463db03de12f651409d1c006e87098f4a9cc7a69c97f8c74aaae65884ebd641c80e62ff16ba858fe73dcd9;
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++erC3t//pg3uf7uoXT7OWv9jb2X2wvXNve28HX7wpFnnTZotV+NWb
123
+ vd1He/ce7eyO9x4+eLB7sP9T3Lhqs/J4Ua2XLZrv7twfP3hgv3haNFPzlcDG
124
+ p6fv8sWqLapl+PGb7F02KRmhDhj6Bp/uj/fu+Z+dZOV0XdIYZsG32bvnxTJv
125
+ 6LPvJUQZ/PGior8+2t1+fqYtDElenuzc26FHP84mRVm01/imrdc5Pn1C+M+y
126
+ +vp5fpmX+OKnitV9fNEfRX+0gCgjejj+dA8fvSJ08ffOeGef+jXN5KN7B/pn
127
+ ODLvi6d5mxWlHdsJuqsZ369eo8mr/EIxOn6Ov7+zrovmzfWK+3zdEkT7qSHB
128
+ DnMDwf4aqDKgF9mC2x0/P35y/MUxPqdm7tP09ZvjN6fpm+Pf+6Nfknw/+SXJ
129
+ iDD3Z+XZK33HoPTsFXVHj378szgrn453+bUNY703PuAm9Gc4Ld4XP5RpeQ9c
130
+ GZKbgVvOy/cTaXI8m9WkPZwI6Qf050fH6dPi/Dyv82WbvqqyGaDq1wbzp6Q9
131
+ 8PGJztkX1bK9qBY5EQSfdmnzsiJlU5qXSTnt7OPjLskIL/nojIm/t3N/78HD
132
+ h/iGB2ve39nd3dm9vwuyCKMpcvhu99OdnfRlvlw21+Vltiyy9PgyT198F0C0
133
+ mQHDAmAG8N2smRfLi5bQwaebB0CIUd/0sWCLj56e4O/OALhNgDphrg+hbuYi
134
+ oqJ/SfL/AL6dhzjwBQAA
135
+ http_version:
136
+ recorded_at: Mon, 20 Mar 2017 21:23:01 GMT
137
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,138 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://development.avalara.net/1.0/tax/get
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"DocCode":"R947142983","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
+ #8 - 8225","TaxCode":"PC030000","ItemCode":"SKU-8","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":"R947142983","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:23:01 GMT
44
+ Content-Length:
45
+ - '586'
46
+ Set-Cookie:
47
+ - TS017f1821=01a8ddc44e35c0c65290d0b56f9900fb3cb05a0470efd1f26c67ab438161498ef5e80a271df0067afca2188dc39e326806341f7769;
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++erj/YHd/7+HBPf3iadbyF3s7uw+2d+5t7+3gizfFIm/abLEKv3qz
56
+ t/to796jnb3x3oN79+7v3/8pbly1WXm8qNbLFs0fjj/dsx8/LZqp+UIg49PT
57
+ d/li1RbVMvz4TfYum5SMTgCEPsdnO+N7B/5nJ1k5XZeE/yz4Nnv3vFjmDX32
58
+ vYSogj9eVPTXR7vbz8+0hSHHy5Odezv06MfZpCiL9hrftPU6x6dPCPtZVl8/
59
+ zy/zEl/8VLG6jy/6Y+iPFRDD8bwidPH3znhnn/o1zeQjO4DBkT3N26wo7dhO
60
+ 0F3N+H71Gk1e5ReK0fFz/P2ddV00b65X3OfrliDaTw0JdnbxEcH+GqgyoBfZ
61
+ gtsdPz9+cvzFMT6nZu7T9PWb4zen6Zvj3/ujX5J8P8H/pcnxbFYTh7qp0g/o
62
+ z4+O06fF+Xle58s2fVVlM0DVrw3iT4lD8fGJztgX1bK9qBY50QOfdknzsiKG
63
+ Ls3L9z7d3dnHx12KEV7y0RnTfm/n/t6Dhw/xDQ/WvL+zu7uze38XZPklySjE
64
+ /eHu/fR1+p1s+raplulrRlK/Nq9/WRcX+PjnHnczGRE98EuS/wfXO6RxVQQA
65
+ AA==
66
+ http_version:
67
+ recorded_at: Mon, 20 Mar 2017 21:23:02 GMT
68
+ - request:
69
+ method: post
70
+ uri: https://development.avalara.net/1.0/tax/get
71
+ body:
72
+ encoding: UTF-8
73
+ string: '{"DocCode":"R947142983","DocDate":"2017-03-20","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":"915
74
+ S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"A
75
+ Different Road","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"2","Line1":"1600
76
+ Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
77
+ #8 - 8225","TaxCode":"PC030000","ItemCode":"SKU-8","Qty":1,"Amount":10.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"1-FR","ItemCode":"Avalara
78
+ Ground","Qty":1,"Amount":100.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
79
+ Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R947142983","DetailLevel":"Tax","CurrencyCode":"USD"}'
80
+ headers:
81
+ Accept:
82
+ - "*/*; q=0.5, application/xml"
83
+ Accept-Encoding:
84
+ - gzip, deflate
85
+ Authorization:
86
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
87
+ Content-Type:
88
+ - application/json
89
+ Content-Length:
90
+ - '1143'
91
+ User-Agent:
92
+ - Ruby
93
+ response:
94
+ status:
95
+ code: 200
96
+ message: OK
97
+ headers:
98
+ Cache-Control:
99
+ - private
100
+ Content-Type:
101
+ - text/json; charset=utf-8
102
+ Content-Encoding:
103
+ - gzip
104
+ Vary:
105
+ - Accept-Encoding
106
+ X-Aspnet-Version:
107
+ - 4.0.30319
108
+ X-Powered-By:
109
+ - ASP.NET
110
+ Date:
111
+ - Mon, 20 Mar 2017 21:23:02 GMT
112
+ Content-Length:
113
+ - '692'
114
+ Set-Cookie:
115
+ - TS017f1821=01a8ddc44e6325c2b4ad3e17ff8a131f62e8e0c01c6a303d7c886a477d090dfd9f7415652ae958613a319f982c9b4e44d7acd00ee6;
116
+ Path=/
117
+ body:
118
+ encoding: ASCII-8BIT
119
+ string: !binary |-
120
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
121
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
122
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
123
+ 6Gk1NZ++erj/YHd/7+HBPf3iadbyF3s7uw+2d+5t7+3gizfFIm/abLEKv3qz
124
+ t/to796jnb3xw3t7Owf3D36KG1dtVh4vqvWyRfPdnfvjBw/sF0+LZmq+Etj4
125
+ 9PRdvli1RbUMP36TvcsmJSPUAUPf4NP98R5jbj47ycrpuqQxzIJvs3fPi2Xe
126
+ 0GffS4gy+ONFRX99tLv9/ExbGJK8PNm5t0OPfpxNirJor/FNW69zfPqE8J9l
127
+ 9fXz/DIv8cVPFav7+KI/iv5oAVFG9HD86R4+ekXo4u+d8c4+9WuayUf3DvTP
128
+ cGTeF0/zNitKO7YTdFczvl+9RpNX+YVidPwcf39nXRfNm+sV9/m6JYj2U0OC
129
+ nV18RLC/BqoM6EW24HbHz4+fHH9xjM+pmfs0ff3m+M1p+ub49/7olyTfT35J
130
+ MiLM/Vl59krfMSg9e0Xd0aMf/yzOyqfjXX5tw1jvjQ+4Cf0ZTov3xQ9lWt4D
131
+ V4bkZuCW8/L9RJocz2Y1aQ8nQvoB/fnRcfq0OD/P63zZpq+qbAao+rXB/Clp
132
+ D3x8onP2RbVsL6pFTgTBp13avKxI2ZTm5Xuf7u7s4+MuyQgv+eiMib+3c3/v
133
+ wcOH+IYHa97f2d3d2b2/C7IIoyly+G73052d9GW+XDbX5WW2LLL0+DJPX3wX
134
+ QLSZAcMCYAbw3ayZF8uLltDBp5sHQIhR3/SxYIuPnp7g784AuE2AOmGuD6Fu
135
+ 5iKion9J8v8Av8exP/AFAAA=
136
+ http_version:
137
+ recorded_at: Mon, 20 Mar 2017 21:23:02 GMT
138
+ recorded_with: VCR 3.0.3