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,522 @@
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":"R560453032","DocDate":"2017-03-22","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 - 5074","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":"R560453032","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
+ - Wed, 22 Mar 2017 18:51:53 GMT
44
+ Content-Length:
45
+ - '581'
46
+ Set-Cookie:
47
+ - TS017f1821=01a8ddc44e35b93a185d0a26b37373c27cbcd42f01c474b385202a50eb5dc11f1421293fe3fa5fbdf69602447951a4de490a6d7fa6;
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++uv/pzv79ezv39vSLp1nLX+zt7D7Y3rm3vcdfvCkWedNmi1X41Zvd
56
+ g0f3dx/d3x/v37v36f6n93+KG1dtVh4vqvWyRfPdHfvh06KZmo/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/Lw+JeEgEAAA=
65
+ http_version:
66
+ recorded_at: Wed, 22 Mar 2017 18:51:53 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":"R560453032","DocDate":"2017-03-22","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 - 5074","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":"R560453032","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
+ - Wed, 22 Mar 2017 18:51:55 GMT
111
+ Content-Length:
112
+ - '673'
113
+ Set-Cookie:
114
+ - TS017f1821=01a8ddc44eae9ffc3d6c8438687f6ef78b55bbd3c34cceea2d9f2d580253bc35f90a91ee7c7127b77c1996367eba688b4a6e806944;
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++uv/pzv79ezv39vSLp1nLX+zt7D7Y3rm3vcdfvCkWedNmi1X41Zvd
123
+ g0f3dx/dvz/e3d/f3dt/8FPcuGqz8nhRrZctmu/etx8+LZqp+XjHfnr6Ll+s
124
+ 2qJahh+/yd5lk5KR8UDQp/hkZ/yp/9FJVk7XJaE+87/M3j0vlnlDH30vIXrg
125
+ jxcV/fXR7vbzM21hCPHyZOfeDj36cTYpyqK9xjdtvc7x6RPCfJbV18/zy7zE
126
+ Fz9VrBivPv79cQKijoU/eEW44q+d8c4+9cqfUSP5aF//6o7KfP40b7OitOM6
127
+ QVc14/rVazR5lV8oNsfP8fd31nXRvLlecY+vWwJoPzXD39nFRwT7fdFkKC+y
128
+ BTc7fn785PiLY3xOrdyn6es3x29O0zfHv/dHvyT5fvJLkhGh7U/Hs1f6jsHn
129
+ 2SvqjR79+GdvOviVjcMUASDUOrNhPv9hzMYtsWQgjuy3nIzvJ9LkeDarSUM4
130
+ gdEP6M+PjtOnxfl5XufLNn1VZTNA1a8N0k9JQ+DjE52oL6ple1EtcqIFPu2S
131
+ 5WVFCqU0L9/7dHeH+alLLcJLPjpjsu/t3N978PAhvuHBmvd3dnd3du/vgirC
132
+ XYocvtv9dGcnfZkvl811eZktiyw9vszTF98FEG1mwDAVzQC+mzXzYnnREjr4
133
+ dPMACDHqmz4WbPHR0xP83RkAtwlQJ8z1IdTNXETU8C9J/h+HDwvW1AUAAA==
134
+ http_version:
135
+ recorded_at: Wed, 22 Mar 2017 18:51:54 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":"R546990270","DocDate":"2017-03-22","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":"915
142
+ S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"3366
143
+ Speedway Blvd","Line2":"","City":"Lincoln","Region":"Alabama","Country":"US","PostalCode":"35096"}],"Lines":[{"LineNo":"2-LI","Description":"Product
144
+ #2 - 7041","TaxCode":"PC030000","ItemCode":"SKU-2","Qty":1,"Amount":10.0,"OriginCode":"Orig","DestinationCode":"Dest","CustomerUsageType":"","Discounted":false,"TaxIncluded":false}],"CustomerCode":"acreilly3@gmail.com","CompanyCode":"54321","CustomerUsageType":"","ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R546990270","DetailLevel":"Tax","CurrencyCode":"USD"}'
145
+ headers:
146
+ Accept:
147
+ - "*/*; q=0.5, application/xml"
148
+ Accept-Encoding:
149
+ - gzip, deflate
150
+ Authorization:
151
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
152
+ Content-Type:
153
+ - application/json
154
+ Content-Length:
155
+ - '811'
156
+ User-Agent:
157
+ - Ruby
158
+ response:
159
+ status:
160
+ code: 200
161
+ message: OK
162
+ headers:
163
+ Cache-Control:
164
+ - private
165
+ Content-Type:
166
+ - text/json; charset=utf-8
167
+ Content-Encoding:
168
+ - gzip
169
+ Vary:
170
+ - Accept-Encoding
171
+ X-Aspnet-Version:
172
+ - 4.0.30319
173
+ X-Powered-By:
174
+ - ASP.NET
175
+ Date:
176
+ - Wed, 22 Mar 2017 18:51:55 GMT
177
+ Content-Length:
178
+ - '621'
179
+ Set-Cookie:
180
+ - TS017f1821=01a8ddc44e440ba12cd9bc1466be9dda7ce3c117ee3b2e74f54e4aa8b6379daca68658e905410d3266d75a52dc47604514b9051d80;
181
+ Path=/
182
+ body:
183
+ encoding: ASCII-8BIT
184
+ string: !binary |-
185
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
186
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
187
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
188
+ 6Gk1NZ++ur//6cOHO3sPdvSLp1nLX+zt7D7Y3rm3vbeHL94Ui7xps8Uq/OrN
189
+ 7sGj+7uP7t8fP9zdvb+/t/dT3Lhqs/J4Ua2XLZrvMmj+8GnRTM3H7tPTd/li
190
+ 1RbVMvz4TfYum5SMjAeCPsUnO+N9/6OTrJyuS0J95n+ZvXteLPOGPvpeQvTA
191
+ Hy8q+uujve3nZ9rCEOLlyc69HXr042xSlEV7jW/aep3j0yeE+Syrr5/nl3mJ
192
+ L36qWN3HF338++MERH8srwhX/LUz3tmnXvkzaiQfGeyHRvU0b7OitOM6QVc1
193
+ 4/rVazR5lV8oNsfP8fd31nXRvLlecY+vWwJoPzXD39nFRwT7fdFkKC+yBTc7
194
+ fn785PiLY3xOrdyn6es3x29O0zfHv/dHvyT5foL/S5Pj2awmpnRzpB/Qnx/d
195
+ u/fpp+nrVZ7PrrLr9El5OQNcbWDwfkpsiY9PdLJojqdVueSPumR5WRELl+bN
196
+ e/d3Hn6Kj7vUIrTkozMm+97u3v7DT1kKeKzm/Z3d3b3d/Xu7ezs0plGI+sPd
197
+ ++nr9DvZ9G1TLdPXjKF+bV7/si4u8LFB/Itq2V5Ui5wQxqc34P7p7g5TXxDF
198
+ R3Hcd+7vPXj4EN90cd/Zvb+LCXVzEZH8X5L8Pz77wT9HBAAA
199
+ http_version:
200
+ recorded_at: Wed, 22 Mar 2017 18:51:54 GMT
201
+ - request:
202
+ method: post
203
+ uri: https://development.avalara.net/1.0/tax/get
204
+ body:
205
+ encoding: UTF-8
206
+ string: '{"DocCode":"R546990270","DocDate":"2017-03-22","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":"915
207
+ S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"3366
208
+ Speedway Blvd","Line2":"","City":"Lincoln","Region":"Alabama","Country":"US","PostalCode":"35096"},{"AddressCode":"3","Line1":"1600
209
+ Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"2-LI","Description":"Product
210
+ #2 - 7041","TaxCode":"PC030000","ItemCode":"SKU-2","Qty":1,"Amount":10.0,"OriginCode":"3","DestinationCode":"Dest","CustomerUsageType":"","Discounted":false,"TaxIncluded":false}],"CustomerCode":"acreilly3@gmail.com","CompanyCode":"54321","CustomerUsageType":"","ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R546990270","DetailLevel":"Tax","CurrencyCode":"USD"}'
211
+ headers:
212
+ Accept:
213
+ - "*/*; q=0.5, application/xml"
214
+ Accept-Encoding:
215
+ - gzip, deflate
216
+ Authorization:
217
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
218
+ Content-Type:
219
+ - application/json
220
+ Content-Length:
221
+ - '932'
222
+ User-Agent:
223
+ - Ruby
224
+ response:
225
+ status:
226
+ code: 200
227
+ message: OK
228
+ headers:
229
+ Cache-Control:
230
+ - private
231
+ Content-Type:
232
+ - text/json; charset=utf-8
233
+ Content-Encoding:
234
+ - gzip
235
+ Vary:
236
+ - Accept-Encoding
237
+ X-Aspnet-Version:
238
+ - 4.0.30319
239
+ X-Powered-By:
240
+ - ASP.NET
241
+ Date:
242
+ - Wed, 22 Mar 2017 18:51:56 GMT
243
+ Content-Length:
244
+ - '624'
245
+ Set-Cookie:
246
+ - TS017f1821=01a8ddc44e9c72fc7c3ebb9137bfa0fe3f0bdc867b1119df39eec6aad45062a637960a2a9da1fd50ad7a4d58c85dfb8e7f0e835d5b;
247
+ Path=/
248
+ body:
249
+ encoding: ASCII-8BIT
250
+ string: !binary |-
251
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
252
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
253
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
254
+ 6Gk1NZ++ur//6cOHO3sPdvSLp1nLX+zt7D7Y3rm3vbeHL94Ui7xps8Uq/OrN
255
+ 7sGj+7uP7n863n94cP/ep5/+FDeu2qw8XlTrZYvmuwyaP3xaNFPzsfv09F2+
256
+ WLVFtQw/fpO9yyYlI+OBoE/xyc543//oJCun65JQn/lfZu+eF8u8oY++lxA9
257
+ 8MeLiv76aG/7+Zm2MIR4ebJzb4ce/TibFGXRXuObtl7n+PQJYT7L6uvn+WVe
258
+ 4oufKlb38UUf//44AdEfyyvCFX/tjHf2qVf+jBrJRwb7oVE9zdusKO24TtBV
259
+ zbh+9RpNXuUXis3xc/z9nXVdNG+uV9zj65YA2k/N8Hd28RHBfl80GcqLbMHN
260
+ jp8fPzn+4hifUyv3afr6zfGb0/TN8e/90S9Jvp/g/9LkeDariSndHOkH9OdH
261
+ 94if0terPJ9dZdfpk/JyBrjawOD9lNgSH5/oZNEcT6tyyR91yfKyIhYuzZv3
262
+ 7u88/BQfd6lFaMlHZ0z2vd29/YefshTwWM37O7u7e7v793b3dmhMoxD13U93
263
+ dtKX+XLZXJeX2bLI0uPLPH3xXQDRZgbMPXxmsP9u1syL5UVL6ODTzQPY27kv
264
+ EyLY4qOnJ/i7MwBuE6C+u0tTyQ+hbqYiIvi/JPl/AH+zCyJGBAAA
265
+ http_version:
266
+ recorded_at: Wed, 22 Mar 2017 18:51:55 GMT
267
+ - request:
268
+ method: post
269
+ uri: https://development.avalara.net/1.0/tax/get
270
+ body:
271
+ encoding: UTF-8
272
+ string: '{"DocCode":"R142408563","DocDate":"2017-03-22","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":"915
273
+ S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"A
274
+ Different Road","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"}],"Lines":[{"LineNo":"3-LI","Description":"Product
275
+ #3 - 6873","TaxCode":"PC030000","ItemCode":"SKU-3","Qty":1,"Amount":10.0,"OriginCode":"Orig","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":false}],"CustomerCode":2,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R142408563","DetailLevel":"Tax","CurrencyCode":"USD"}'
276
+ headers:
277
+ Accept:
278
+ - "*/*; q=0.5, application/xml"
279
+ Accept-Encoding:
280
+ - gzip, deflate
281
+ Authorization:
282
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
283
+ Content-Type:
284
+ - application/json
285
+ Content-Length:
286
+ - '796'
287
+ User-Agent:
288
+ - Ruby
289
+ response:
290
+ status:
291
+ code: 200
292
+ message: OK
293
+ headers:
294
+ Cache-Control:
295
+ - private
296
+ Content-Type:
297
+ - text/json; charset=utf-8
298
+ Content-Encoding:
299
+ - gzip
300
+ Vary:
301
+ - Accept-Encoding
302
+ X-Aspnet-Version:
303
+ - 4.0.30319
304
+ X-Powered-By:
305
+ - ASP.NET
306
+ Date:
307
+ - Wed, 22 Mar 2017 18:51:57 GMT
308
+ Content-Length:
309
+ - '582'
310
+ Set-Cookie:
311
+ - TS017f1821=01a8ddc44e7ca7c11f0e085cd4e8f98d7b9b3b66a4186003621cdd62acaf578bedb70088d02a6c360467589e9b9f256209c0fda282;
312
+ Path=/
313
+ body:
314
+ encoding: ASCII-8BIT
315
+ string: !binary |-
316
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
317
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
318
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
319
+ 6Gk1NZ++2t3f2985uP/pPf3iadbyF3s7uw+2d+5t7+3hizfFIm/abLEKv3qz
320
+ e/Do/u6j+w/Gu7v79+9/+vCnuHHVZuXxolovWzTf3bEfPi2aqfnYfXr6Ll+s
321
+ 2qJahh+/yd5lk5KR8UDQp/hkZ7zvf3SSldN1SajP/C+zd8+LZd7QR99LiB74
322
+ 40VFf310b/v5mbYwhHh5snNvhx79OJsUZdFe45u2Xuf49AlhPsvq6+f5ZV7i
323
+ i58qVvfxRR///jgB0R/LK8IVf+2Md/apV/6MGslHBvuhUT3N26wo7bhO0FXN
324
+ uH71Gk1e5ReKzfFz/P2ddV00b65X3OPrlgDaT83wd3bxEcF+XzQZyotswc2O
325
+ nx8/Of7iGJ9TK/dp+vrN8ZvT9M3x7/3RL0m+n+D/0uR4NquJKd0c6Qf050fH
326
+ 6dPi/Dyv82WbvqqyGaDq1wbrp8SU+PhEp+qLatleVIuciIFPu3R5WREPl+bl
327
+ e5/u7vAQuuQivOSjM6b73s79vQcPH+IbHqx5f2d3d2f3/i6o8kuSUYj7w937
328
+ 6ev0O9n0bVMt09eMpH5tXv+yLi7w8c897mYyIqL/S5L/B/GDEZdIBAAA
329
+ http_version:
330
+ recorded_at: Wed, 22 Mar 2017 18:51:56 GMT
331
+ - request:
332
+ method: post
333
+ uri: https://development.avalara.net/1.0/tax/get
334
+ body:
335
+ encoding: UTF-8
336
+ string: '{"DocCode":"R142408563","DocDate":"2017-03-22","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":"915
337
+ S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"A
338
+ Different Road","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"4","Line1":"1600
339
+ Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"3-LI","Description":"Product
340
+ #3 - 6873","TaxCode":"PC030000","ItemCode":"SKU-3","Qty":1,"Amount":10.0,"OriginCode":"4","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":false},{"LineNo":"3-FR","ItemCode":"Avalara
341
+ Ground","Qty":1,"Amount":5.0,"OriginCode":"4","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
342
+ Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":false}],"CustomerCode":2,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R142408563","DetailLevel":"Tax","CurrencyCode":"USD"}'
343
+ headers:
344
+ Accept:
345
+ - "*/*; q=0.5, application/xml"
346
+ Accept-Encoding:
347
+ - gzip, deflate
348
+ Authorization:
349
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
350
+ Content-Type:
351
+ - application/json
352
+ Content-Length:
353
+ - '1143'
354
+ User-Agent:
355
+ - Ruby
356
+ response:
357
+ status:
358
+ code: 200
359
+ message: OK
360
+ headers:
361
+ Cache-Control:
362
+ - private
363
+ Content-Type:
364
+ - text/json; charset=utf-8
365
+ Content-Encoding:
366
+ - gzip
367
+ Vary:
368
+ - Accept-Encoding
369
+ X-Aspnet-Version:
370
+ - 4.0.30319
371
+ X-Powered-By:
372
+ - ASP.NET
373
+ Date:
374
+ - Wed, 22 Mar 2017 18:51:57 GMT
375
+ Content-Length:
376
+ - '675'
377
+ Set-Cookie:
378
+ - TS017f1821=01a8ddc44ea22c02ab8610ec455cd53e088fddaf79f19372a6d72cb3f2e64106eed783bdd4c3b09588517ff7f10736ffe800204f4b;
379
+ Path=/
380
+ body:
381
+ encoding: ASCII-8BIT
382
+ string: !binary |-
383
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
384
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
385
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
386
+ 6Gk1NZ++2t3f2985uP/pPf3iadbyF3s7uw+2d+5t7+3hizfFIm/abLEKv3qz
387
+ e/Do/u6j+w/GDx58ur+/++lPceOqzcrjRbVetmi+e99++LRopubjHfvp6bt8
388
+ sWqLahl+/CZ7l01KRsYDQZ/ik53xp/5HJ1k5XZeE+sz/Mnv3vFjmDX30vYTo
389
+ gT9eVPTXR/e2n59pC0OIlyc793bo0Y+zSVEW7TW+aet1jk+fEOazrL5+nl/m
390
+ Jb74qWLFePXx748TEHUs/MErwhV/7Yx39qlX/owayUf7+ld3VObzp3mbFaUd
391
+ 1wm6qhnXr16jyav8QrE5fo6/v7Oui+bN9Yp7fN0SQPupGf7OLj4i2O+LJkN5
392
+ kS242fHz4yfHXxzjc2rlPk1fvzl+c5q+Of69P/olyfeTX5KMCG1/Op690ncM
393
+ Ps9eUW/06Mc/e9PBr2wcpggAodaZDfP5D2M2boklA3Fkv+VkfD+RJsezWU0a
394
+ wgmMfkB/fnScPi3Oz/M6X7bpqyqbAap+bZB+ShoCH5/oRH1RLduLapETLfBp
395
+ lywvK1IopXn53qe7O8xPXWoRXvLRGZN9b+f+3oOHD/END9a8v7O7u7N7fxdU
396
+ Ee5S5PDd7qc7O+nLfLlsrsvLbFlk6fFlnr74LoBoMwOGUTAD+G7WzIvlRUvo
397
+ 4NPNAyDEqG/6WLDFR09P8HdnANwmQJ0w14dQN3MRUcO/JPl/ANxOhorUBQAA
398
+ http_version:
399
+ recorded_at: Wed, 22 Mar 2017 18:51:56 GMT
400
+ - request:
401
+ method: post
402
+ uri: https://development.avalara.net/1.0/tax/get
403
+ body:
404
+ encoding: UTF-8
405
+ string: '{"DocCode":"R142408563","DocDate":"2017-03-22","Discount":"0.0","Commit":true,"DocType":"SalesInvoice","Addresses":[{"AddressCode":"Orig","Line1":"915
406
+ S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"A
407
+ Different Road","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"4","Line1":"1600
408
+ Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"3-LI","Description":"Product
409
+ #3 - 6873","TaxCode":"PC030000","ItemCode":"SKU-3","Qty":1,"Amount":10.0,"OriginCode":"4","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":false},{"LineNo":"3-FR","ItemCode":"Avalara
410
+ Ground","Qty":1,"Amount":5.0,"OriginCode":"4","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
411
+ Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":false}],"CustomerCode":2,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R142408563","DetailLevel":"Tax","CurrencyCode":"USD"}'
412
+ headers:
413
+ Accept:
414
+ - "*/*; q=0.5, application/xml"
415
+ Accept-Encoding:
416
+ - gzip, deflate
417
+ Authorization:
418
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
419
+ Content-Type:
420
+ - application/json
421
+ Content-Length:
422
+ - '1144'
423
+ User-Agent:
424
+ - Ruby
425
+ response:
426
+ status:
427
+ code: 200
428
+ message: OK
429
+ headers:
430
+ Cache-Control:
431
+ - private
432
+ Content-Type:
433
+ - text/json; charset=utf-8
434
+ Content-Encoding:
435
+ - gzip
436
+ Vary:
437
+ - Accept-Encoding
438
+ X-Aspnet-Version:
439
+ - 4.0.30319
440
+ X-Powered-By:
441
+ - ASP.NET
442
+ Date:
443
+ - Wed, 22 Mar 2017 18:51:58 GMT
444
+ Content-Length:
445
+ - '666'
446
+ Set-Cookie:
447
+ - TS017f1821=01a8ddc44e03043b0edf95a2b31c57ddc5d58c0090ad767c204164f8d7aaa5e7832e23ec76d810ef6079651ef68957d5e3aec9bd00;
448
+ Path=/
449
+ body:
450
+ encoding: ASCII-8BIT
451
+ string: !binary |-
452
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
453
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
454
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
455
+ 6Gk1NZ++2t3f2985uP/pPf3iadbyF3s7uw+2d+5t7+3hizfFIm/abLEKv3qz
456
+ e/Do/u6j+wfj+9KsarPyeFGtly0a7t63Hz4tmqn5eMd+evouX6zaolqGH7/J
457
+ 3mWTktHwQNCn+GRn/Kn/0UlWTtclIT3zv8zePS+WeUMffS8hSuCPFxX99dG9
458
+ 7edn2sKQ4OXJzr0devTjbFKURXuNb9p6nePTJ4T5LKuvn+eXeYkvfqpYMV59
459
+ /PvjBEQdC3/winDFXzvjnX3qlT+jRvLRvv7VHZX5/GneZkVpx3WCrmrG9avX
460
+ aPIqv1Bsjp/j7++s66J5c73iHl+3BNB+aoa/s4uPCPb7oslQXmQLbnb8/PjJ
461
+ 8RfH+JxauU/T12+O35ymb45/749+SfL95JckI0Lbn45nr/Qdg8+zV9QbPfrx
462
+ z9508Csbhyk8Tah1ZsN8/sOYjVtiyUAc2W85Gd9PpMnxbFaTbnACox/Qnx8d
463
+ p0+L8/O8zpdt+qrKZoCqXxukn5JuwMcnOlFfVMv2olrkRAt82iXLy4pUSWle
464
+ vvfp7g7zU5dahJd8dMZk39u5v/fg4UN8w4M17+/s7u7s3t8FVYS7FDl8t/vp
465
+ zk76Ml8um+vyMlsWWXp8macvvgsg2syAYRTMAL6bNfNiedESOvh08wAIMeqb
466
+ PhZs8dHTE/zdGQC3CVAnzPUh1M1cRBTwL0n+H3bleLzOBQAA
467
+ http_version:
468
+ recorded_at: Wed, 22 Mar 2017 18:51:57 GMT
469
+ - request:
470
+ method: post
471
+ uri: https://development.avalara.net/1.0/tax/cancel
472
+ body:
473
+ encoding: UTF-8
474
+ string: '{"CompanyCode":"54321","DocType":"SalesInvoice","DocCode":"R142408563","CancelCode":"DocVoided"}'
475
+ headers:
476
+ Accept:
477
+ - "*/*; q=0.5, application/xml"
478
+ Accept-Encoding:
479
+ - gzip, deflate
480
+ Authorization:
481
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
482
+ Content-Type:
483
+ - application/json
484
+ Content-Length:
485
+ - '96'
486
+ User-Agent:
487
+ - Ruby
488
+ response:
489
+ status:
490
+ code: 200
491
+ message: OK
492
+ headers:
493
+ Cache-Control:
494
+ - private
495
+ Content-Type:
496
+ - text/json; charset=utf-8
497
+ Content-Encoding:
498
+ - gzip
499
+ Vary:
500
+ - Accept-Encoding
501
+ X-Aspnet-Version:
502
+ - 4.0.30319
503
+ X-Powered-By:
504
+ - ASP.NET
505
+ Date:
506
+ - Wed, 22 Mar 2017 18:51:58 GMT
507
+ Content-Length:
508
+ - '212'
509
+ Set-Cookie:
510
+ - TS017f1821=01a8ddc44efe4afa13a10d6f2dfe619b76d131bfdb23112293d5ecf8b4dbebadb98ad5789d73cf0fd5c9f1a8dc659d570a114889be;
511
+ Path=/
512
+ body:
513
+ encoding: ASCII-8BIT
514
+ string: !binary |-
515
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
516
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
517
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tFJtpzm5Zvs3au8WZftR49S+vBpNT2b
518
+ 0a8f7R3cu7/7YG/3049GyUdv6mzZZNO2qJb87f3d3YMHn97bPXi4u3Nv78Gn
519
+ 1ESAnFSznL7/6PV6Os2b5qNfkvyS5P8BLAnVkmsAAAA=
520
+ http_version:
521
+ recorded_at: Wed, 22 Mar 2017 18:51:57 GMT
522
+ recorded_with: VCR 3.0.3