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,258 @@
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":"R606802873","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 - 8452","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":"R606802873","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 20:45:52 GMT
44
+ Content-Length:
45
+ - '582'
46
+ Set-Cookie:
47
+ - TS017f1821=01a8ddc44e36de91f6f78d59890b07eefc6529ecabf67306c7ac2935caf0630d7f14f6305d537e57c4ed882e73197b1386ebc79e8c;
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+++nTn04OdvYMH9/SLp1nLX+zt7D7Y3rm3vbeHL94Ui7xps8Uq/OrN
56
+ 3s6j/fuP7u+N7+19+vD+/v2f4sZVm5XHi2q9bNF8d8d++LRopuZj9+npu3yx
57
+ aotqGX78JnuXTUpGxgNBn+KTnfG+/9FJVk7XJaE+87/M3j0vlnlDH30vIXrg
58
+ jxcV/fXR7vbzM21hCPHyZOfeDj36cTYpyqK9xjdtvc7x6RPCfJbV18/zy7zE
59
+ Fz9VrO7jiz7+/XECoj+WV4Qr/toZ7+xTr/wZNZKPDPZDo3qat1lR2nGdoKua
60
+ cf3qNZq8yi8Um+Pn+Ps767po3lyvuMfXLQG0n5rh7+ziI4L9vmgylBfZgpsd
61
+ Pz9+cvzFMT6nVu7T9PWb4zen6Zvj3/ujX5J8P8H/pcnxbFYTU7o50g/oz4+O
62
+ 06fF+Xle58s2fVVlM0DVrw3WT4kp8fGJTtUX1bK9qBY5EQOfdunysiIeLs3L
63
+ 9z7d3eEhdMlFeMlHZ0z3vZ37ew8ePsQ3PFjz/s7u7s7u/V1Q5ZckoxD3h7v3
64
+ 09fpd7Lp26Zapq8ZSf3avP5lXVzg45973M1kRET/lyT/DzpCfp5IBAAA
65
+ http_version:
66
+ recorded_at: Wed, 22 Mar 2017 20:45:52 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":"R606802873","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 - 8452","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":"R606802873","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 20:45:53 GMT
111
+ Content-Length:
112
+ - '675'
113
+ Set-Cookie:
114
+ - TS017f1821=01a8ddc44e09800d151c6f73237dcfd6041e9d60ff8d27f441f69d6f08560e483ce656f5c14f845574f79998728dbe2c68555f3bc6;
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+++nTn04OdvYMH9/SLp1nLX+zt7D7Y3rm3vbeHL94Ui7xps8Uq/OrN
123
+ 3s6j/fuP7t8b37//cO/h3sFPceOqzcrjRbVetmi+e99++LRopubjHfvp6bt8
124
+ sWqLahl+/CZ7l01KRsYDQZ/ik53xp/5HJ1k5XZeE+sz/Mnv3vFjmDX30vYTo
125
+ gT9eVPTXR7vbz8+0hSHEy5Odezv06MfZpCiL9hrftPU6x6dPCPNZVl8/zy/z
126
+ El/8VLFivPr498cJiDoW/uAV4Yq/dsY7+9Qrf0aN5KN9/as7KvP507zNitKO
127
+ 6wRd1YzrV6/R5FV+odgcP8ff31nXRfPmesU9vm4JoP3UDH9nFx8R7PdFk6G8
128
+ yBbc7Pj58ZPjL47xObVyn6av3xy/OU3fHP/eH/2S5PvJL0lGhLY/Hc9e6TsG
129
+ n2evqDd69OOfvengVzYOUwSAUOvMhvn8hzEbt8SSgTiy33Iyvp9Ik+PZrCYN
130
+ 4QRGP6A/PzpOnxbn53mdL9v0VZXNAFW/Nkg/JQ2Bj090or6olu1FtciJFvi0
131
+ S5aXFSmU0rx879PdHeanLrUIL/nojMm+t3N/78HDh/iGB2ve39nd3dm9vwuq
132
+ CHcpcvhu99OdnfRlvlw21+Vltiyy9PgyT198F0C0mQHDVDQD+G7WzIvlRUvo
133
+ 4NPNAyDEqG/6WLDFR09P8HdnANwmQJ0w14dQN3MRUcO/JPl/ANYC8U/UBQAA
134
+ http_version:
135
+ recorded_at: Wed, 22 Mar 2017 20:45:53 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":"R606802873","DocDate":"2017-03-22","Discount":"0.0","Commit":true,"DocType":"SalesInvoice","Addresses":[{"AddressCode":"Orig","Line1":"915
142
+ S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"A
143
+ Different Road","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"2","Line1":"1600
144
+ Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
145
+ #1 - 8452","TaxCode":"PC030000","ItemCode":"SKU-1","Qty":1,"Amount":10.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":false},{"LineNo":"1-FR","ItemCode":"Avalara
146
+ Ground","Qty":1,"Amount":5.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
147
+ Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":false}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R606802873","DetailLevel":"Tax","CurrencyCode":"USD"}'
148
+ headers:
149
+ Accept:
150
+ - "*/*; q=0.5, application/xml"
151
+ Accept-Encoding:
152
+ - gzip, deflate
153
+ Authorization:
154
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
155
+ Content-Type:
156
+ - application/json
157
+ Content-Length:
158
+ - '1144'
159
+ User-Agent:
160
+ - Ruby
161
+ response:
162
+ status:
163
+ code: 200
164
+ message: OK
165
+ headers:
166
+ Cache-Control:
167
+ - private
168
+ Content-Type:
169
+ - text/json; charset=utf-8
170
+ Content-Encoding:
171
+ - gzip
172
+ Vary:
173
+ - Accept-Encoding
174
+ X-Aspnet-Version:
175
+ - 4.0.30319
176
+ X-Powered-By:
177
+ - ASP.NET
178
+ Date:
179
+ - Wed, 22 Mar 2017 20:45:53 GMT
180
+ Content-Length:
181
+ - '669'
182
+ Set-Cookie:
183
+ - TS017f1821=01a8ddc44ee0e52797b62670080b441218946292ff30303c3f2267b00bb6e68139a2afc73caff1f0091b086c14b2cadbb96bf78895;
184
+ Path=/
185
+ body:
186
+ encoding: ASCII-8BIT
187
+ string: !binary |-
188
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
189
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
190
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
191
+ 6Gk1NZ+++nTn04OdvYMH9/SLp1nLX+zt7D7Y3rm3vbeHL94Ui7xps8Uq/OrN
192
+ 3s6j/fuP7u+Pd/cfcLuqzcrjRbVetmi5e99++LRopubjHfvp6bt8sWqLahl+
193
+ /CZ7l01KxsMDQZ/ik53xp/5HJ1k5XZeE9cz/Mnv3vFjmDX30vYRIgT9eVPTX
194
+ R7vbz8+0haHBy5Odezv06MfZpCiL9hrftPU6x6dPCPNZVl8/zy/zEl/8VLFi
195
+ vPr498cJiDoW/uAV4Yq/dsY7+9Qrf0aN5KN9/as7KvP507zNitKO6wRd1Yzr
196
+ V6/R5FV+odgcP8ff31nXRfPmesU9vm4JoP3UDH9nFx8R7PdFk6G8yBbc7Pj5
197
+ 8ZPjL47xObVyn6av3xy/OU3fHP/eH/2S5PvJL0lGhLY/Hc9e6TsGn2evqDd6
198
+ 9OOfvengVzYOU3ifUOvMhvn8hzEbt8SSgTiy33Iyvp9Ik+PZrCbl4ARGP6A/
199
+ PzpOnxbn53mdL9v0VZXNAFW/Nkg/JeWAj090or6olu1FtciJFvi0S5aXFemS
200
+ 0rx879PdHeanLrUIL/nojMm+t3N/78HDh/iGB2ve39nd3dm9vwuqCHcpcvhu
201
+ 99OdnfRlvlw21+Vltiyy9PgyT198F0C0mQHDVDQD+G7WzIvlRUvo4NPNAyDE
202
+ qG/6WLDFR09P8HdnANwmQJ0w14dQN3MR0cC/JPl/ABKz6tnPBQAA
203
+ http_version:
204
+ recorded_at: Wed, 22 Mar 2017 20:45:54 GMT
205
+ - request:
206
+ method: post
207
+ uri: https://development.avalara.net/1.0/tax/cancel
208
+ body:
209
+ encoding: UTF-8
210
+ string: '{"CompanyCode":"54321","DocType":"SalesInvoice","DocCode":"R606802873","CancelCode":"DocVoided"}'
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
+ - '96'
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 20:45:54 GMT
243
+ Content-Length:
244
+ - '212'
245
+ Set-Cookie:
246
+ - TS017f1821=01a8ddc44edaf518b54b682e565928d0d6e9b62059ab00f1fa22fd58c5e5e36850836a97b23a910209314a72f2760af0f07b1de277;
247
+ Path=/
248
+ body:
249
+ encoding: ASCII-8BIT
250
+ string: !binary |-
251
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
252
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
253
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tFJtpzm5Zvs3au8WZftR49S+vBpNT2b
254
+ 0a8f7R3cu39v7/7D/Y9GyUdv6mzZZNO2qJb87f3d3YODe7v39z99sPfp/fv7
255
+ 1ESAnFSznL7/6PV6Os2b5qNfkvyS5P8Bi2Kvn2sAAAA=
256
+ http_version:
257
+ recorded_at: Wed, 22 Mar 2017 20:45:54 GMT
258
+ 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":"R207073277","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"},{"AddressCode":"2","Line1":"1600
11
+ Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
12
+ #1 - 6531","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
13
+ Ground","Qty":1,"Amount":5.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
14
+ Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":false}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R207073277","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
+ - Wed, 22 Mar 2017 19:58:31 GMT
47
+ Content-Length:
48
+ - '674'
49
+ Set-Cookie:
50
+ - TS017f1821=01a8ddc44ea5a64492ca25deacbf7e858d681c455b799f7fdaff5f677965148bcea92a4cea517bc6453651b5ae7c4419e92b43bb6a;
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++2tt5sPPg3t6DB/rF06zlL/Z2dh9s79zb3tvDF2+KRd602WIVfvVm
59
+ 9+Gj+weP7u2NP72/93B3Z/enuHHVZuXxolovWzTfvW8/fFo0U/Pxjv309F2+
60
+ WLVFtQw/fpO9yyYlI+OBoE/xyc74U/+jk6ycrktCfeZ/mb17Xizzhj76XkL0
61
+ wB8vKvrro93t52fawhDi5cnOvR169ONsUpRFe41v2nqd49MnhPksq6+f55d5
62
+ iS9+qlgxXn38++MERB0Lf/CKcMVfO+OdfeqVP6NG8tG+/tUdlfn8ad5mRWnH
63
+ dYKuasb1q9do8iq/UGyOn+Pv76zronlzveIeX7cE0H5qhr+zi48I9vuiyVBe
64
+ ZAtudvz8+MnxF8f4nFq5T9PXb47fnKZvjn/vj35J8v3klyQjQtufjmev9B2D
65
+ z7NX1Bs9+vHP3nTwKxuHKQJAqHVmw3z+w5iNW2LJQBzZbzkZ30+kyfFsVpOG
66
+ cAKjH9CfHx2nT4vz87zOl236qspmgKpfG6SfkobAxyc6UV9Uy/aiWuREC3za
67
+ JcvLihRKaV6+9+nuDvNTl1qEl3x0xmTf27m/9+DhQ3zDgzXv7+yS9rm/C6oI
68
+ dyly+G73052d9GW+XDbX5WW2LLL0+DJPX3wXQLSZAcNUNAP4btbMi+VFS+jg
69
+ 080DIMSob/pYsMVHT0/wd2cA3CZAnTDXh1A3cxFRw78k+X8A5rTxTNQFAAA=
70
+ http_version:
71
+ recorded_at: Wed, 22 Mar 2017 19:58:32 GMT
72
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,141 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://development.avalara.net/1.0/tax/get
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"DocCode":"R680916948","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"},{"AddressCode":"2","Line1":"1600
11
+ Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
12
+ #1 - 1234","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
13
+ Ground","Qty":1,"Amount":5.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
14
+ Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":false}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R680916948","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
+ - Wed, 22 Mar 2017 20:00:51 GMT
47
+ Content-Length:
48
+ - '674'
49
+ Set-Cookie:
50
+ - TS017f1821=01a8ddc44e18f69b7c52365bd4651248450e723170bf29674cdbbf75c147e1ccfbc51a3d15c09bf04809d02a2a31caaa8c57a3e2c3;
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
+ 6Gk1fZq1/Onezu6D7Z1723t7+OJNscibNluswq/e7O082tl5dH93fO/hzv1P
59
+ Hz78KW5ctVl5vKjWyxbNd+/bD58WzdR8vGM/PX2XL1ZtUS3Dj99k77JJych4
60
+ IOhTfLIz/tT/6CQrp+uSUJ/5X2bv4qOhYZrBv/r0YOfh7qcP9w/wBb3xvFjm
61
+ DX3zvYQIhT9eVPTXR7vbz8+0hXn15cnOvR169ONsUpRFe41v2nqd49MnNNZZ
62
+ Vl8/zy/zEl/8VLHikfRH3KcMIOro+YNXOpSd8c4+9cqfUSP5aF//6tLBfP40
63
+ b7OitOM6QVc14/rVazR5lV8oNsfP8fd31nXRvLlecY+vWwJoPzXD39nFRwT7
64
+ fdFkKC+yBTc7fn785PiLY3xOrdyn6es3x29O0zfHv/dHvyT5fvJLkhGh7U/H
65
+ s1f6jsHn2SvqjR79+GdvOviVjcNkJqO/urNhPv9hzMYtsWQgjuy3nIzvJ9Lk
66
+ eDarSXU4gdEP6M+PjtOnxfl5XufLNn1VZTNA1a8N0k9Jp+DjE52oL6ple1Et
67
+ cqIFPu2S5WVFKqg0L9/7dHeH+alLLcJLPjpjsu/t3N978PAhvuHBmvd3dnd3
68
+ du/vgirCXYocvtv9dGcnfZkvl811eZktiyw9vszTF98FEG1mwDAVzQC+mzXz
69
+ YnnREjr4dPMACDHqmz4WbPHR0xP83RkAtwlQJ8z1IdQxH/8P+aE49NQFAAA=
70
+ http_version:
71
+ recorded_at: Wed, 22 Mar 2017 20:00:51 GMT
72
+ - request:
73
+ method: post
74
+ uri: https://development.avalara.net/1.0/tax/get
75
+ body:
76
+ encoding: UTF-8
77
+ string: '{"DocCode":"R793138523","DocDate":"2017-03-22","Discount":"0.0","Commit":true,"DocType":"SalesInvoice","Addresses":[{"AddressCode":"Orig","Line1":"915
78
+ S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"A
79
+ Different Road","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"2","Line1":"1600
80
+ Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
81
+ #1 - 6245","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
82
+ Ground","Qty":1,"Amount":5.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
83
+ Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":false}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R793138523","DetailLevel":"Tax","CurrencyCode":"USD"}'
84
+ headers:
85
+ Accept:
86
+ - "*/*; q=0.5, application/xml"
87
+ Accept-Encoding:
88
+ - gzip, deflate
89
+ Authorization:
90
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
91
+ Content-Type:
92
+ - application/json
93
+ Content-Length:
94
+ - '1144'
95
+ User-Agent:
96
+ - Ruby
97
+ response:
98
+ status:
99
+ code: 200
100
+ message: OK
101
+ headers:
102
+ Cache-Control:
103
+ - private
104
+ Content-Type:
105
+ - text/json; charset=utf-8
106
+ Content-Encoding:
107
+ - gzip
108
+ Vary:
109
+ - Accept-Encoding
110
+ X-Aspnet-Version:
111
+ - 4.0.30319
112
+ X-Powered-By:
113
+ - ASP.NET
114
+ Date:
115
+ - Wed, 22 Mar 2017 21:04:09 GMT
116
+ Content-Length:
117
+ - '667'
118
+ Set-Cookie:
119
+ - TS017f1821=01a8ddc44e956fc908734e0bc9395035b4e0247068796f9d639576f17d103ddee2b0f231459da101f8601a1c5a7c63c9e1dd3b1494;
120
+ Path=/
121
+ body:
122
+ encoding: ASCII-8BIT
123
+ string: !binary |-
124
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
125
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
126
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
127
+ 6Gk1fZq1/Onezu6D7Z1723t7+OJNscibNluswq/e7O0+2tl/tLsz3t29x+2q
128
+ NiuPF9V62aLl7n374dOimZqPd+ynp+/yxaotqmX48ZvsXTYpGQ8PBH2KT3bG
129
+ n/ofnWTldF0S1jP/y+xdfCA0QjPuVw8e3tu9d3B/TzDP3j0vlnlD33wvIRrh
130
+ jxcV/fXR7vbzM21hXn15snNvhx79OJsUZdFe45u2Xuf49AmNdZbV18/zy7zE
131
+ Fz9VrHgk/RH3KQOIOnr+4JUOZWe8s0+98mfUSD7a17+6dDCfP83brCjtuE7Q
132
+ Vc24fvUaTV7lF4rN8XP8/Z11XTRvrlfc4+uWANpPzfB3dvERwX5fNBnKi2zB
133
+ zY6fHz85/uIYn1Mr92n6+s3xm9P0zfHv/dEvSb6f/JJkRGj70/Hslb5j8Hn2
134
+ inqjRz/+2ZsOfmXjMJnJ6K/ubJjPfxizcUssGYgj+y0n4/uJNDmezWrSGk5g
135
+ 9AP686Pj9Glxfp7X+bJNX1XZDFD1a4P0U1In+PhEJ+qLatleVIucaIFPu2R5
136
+ WZH2Kc3L9z7d3WF+6lKL8JKPzpjsezv39x48fIhveLDm/Z3d3Z3d+7uginCX
137
+ Iofvdj/d2Ulf5stlc11eZssiS48v8/TFdwFEmxkwTEUzgO9mzbxYXrSEDj7d
138
+ PABCjPqmjwVbfPT0BH93BsBtAtQJc30IdczH/wPVbcOQzwUAAA==
139
+ http_version:
140
+ recorded_at: Wed, 22 Mar 2017 21:04:10 GMT
141
+ 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":"R542269700","DocDate":"2017-03-23","Discount":"10.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":"915
9
+ S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"A
10
+ Different Road","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"2","Line1":"1600
11
+ Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
12
+ #1 - 8928","TaxCode":"PC030000","ItemCode":"SKU-1","Qty":1,"Amount":10.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":true,"TaxIncluded":false},{"LineNo":"1-FR","ItemCode":"Avalara
13
+ Ground","Qty":1,"Amount":5.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
14
+ Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":false}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R542269700","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 17:50:46 GMT
47
+ Content-Length:
48
+ - '679'
49
+ Set-Cookie:
50
+ - TS017f1821=01a8ddc44e67f300699c2e1a7edc1a4e6d66538f45b08a9e5ab72d43133132c1bbda505cfae85ee508806ab4014a5e32fbc76ce68f;
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++ur+/t/fpwwc7O/rF06zlL/Z2dh9s79zb3ruHL94Ui7xps8Uq/OrN
59
+ 7oNH93ce7X86Ptj/9N7D+/d/ihtXbVYeL6r1skXz3fv2w6dFM7Ufc4/88em7
60
+ fLFqi2qJz93Hb7J32aRkbBwI+hAf7Iz3/I9OsnK6Lgn1mf9l9u55scwb+uh7
61
+ CdEDf7yo6K+Pdrefn2kLQ4iXJzv3dujRj7NJURbtNb5p63WOT58Q5rOsvn6e
62
+ X+YlvvipYsV49dGPjBMgZSz89yvClf8Y7+xTr/wZteGP9PfOmPTTp3mbFaUd
63
+ 0wm6qRnPr16jyav8QjE5fo6/v7Oui+bN9Yp7e90SOPupGfrOLj4i2O+FIYN4
64
+ kS240fHz4yfHXxzjc2rjPk1fvzl+c5q+Of69P/olyfeTX5KMCGd/Hp690ncM
65
+ Ms9eUV/06Mff3DzwBwxRBsmvbBqkZaLORNjPfxhTcUssGYgj+y0n4/uJNDme
66
+ zWpSDU5S9AP686Pj9Glxfp7X+bJNX1XZDFD1a4P0U1IN+PhEJ+qLatleVIuc
67
+ aIFPu2R5WZEmKc3L9z7d3dnHx11qEV7y0RmTfW/n/t6Dhw/xDQ/WvL+zu7uz
68
+ e38XVBHuUuTw3e6nOzvpy3y5bK7Ly2xZZOnxZZ6++C6AaDMDhqloBvDdrJkX
69
+ y4uW0MGnmwdAiFHf9LFgi4+enuDvzgC4TYA6Ya4PoW7mIqJ/f0ny/wAjGEqv
70
+ zQUAAA==
71
+ http_version:
72
+ recorded_at: Thu, 23 Mar 2017 17:50:48 GMT
73
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,68 @@
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":"R289947659.","DocDate":"2017-03-22","Commit":false,"DocType":"ReturnOrder","Addresses":[{"AddressCode":"Orig","Line1":"915
9
+ S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"A
10
+ Different Road","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"2","Line1":"1600
11
+ Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"-RA","ItemCode":"fake-refund-transaction-1","Qty":1,"Amount":-15.6,"OriginCode":"Orig","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Refund","TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R289947659","DetailLevel":"Tax","CurrencyCode":"USD","TaxOverride":{"TaxOverrideType":"TaxDate","Reason":"Refund
12
+ for return #1","TaxDate":"2017-03-22"}}'
13
+ headers:
14
+ Accept:
15
+ - "*/*; q=0.5, application/xml"
16
+ Accept-Encoding:
17
+ - gzip, deflate
18
+ Authorization:
19
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
20
+ Content-Type:
21
+ - application/json
22
+ Content-Length:
23
+ - '972'
24
+ User-Agent:
25
+ - Ruby
26
+ response:
27
+ status:
28
+ code: 200
29
+ message: OK
30
+ headers:
31
+ Cache-Control:
32
+ - private
33
+ Content-Type:
34
+ - text/json; charset=utf-8
35
+ Content-Encoding:
36
+ - gzip
37
+ Vary:
38
+ - Accept-Encoding
39
+ X-Aspnet-Version:
40
+ - 4.0.30319
41
+ X-Powered-By:
42
+ - ASP.NET
43
+ Date:
44
+ - Wed, 22 Mar 2017 21:14:11 GMT
45
+ Content-Length:
46
+ - '576'
47
+ Set-Cookie:
48
+ - TS017f1821=01a8ddc44e532db1bec3d4df49d13d5a0e13543bc102f5e72b076f4e93e17845923d490459427fd4460712f72860ed33a4bc3505bb;
49
+ Path=/
50
+ body:
51
+ encoding: ASCII-8BIT
52
+ string: !binary |-
53
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
54
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
55
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
56
+ 6Gk1NZ++2jt4+HD/waf3H471m6dZy9/s7ew+2N65t723hy/eFIu8abPFKvzq
57
+ zd7uo939R7u74wc7u/cfPvj0p7hx1Wbl8aJaL1s03969bz99WjRT8/mO/fT0
58
+ Xb5YtUW1DD9+k73LJiVj48Ogj/mjnfGn/mcnWTldl4T9LPg2e/e8WOYNffa9
59
+ hIiCP15U9NdH26+OtYEhxssdefTjbFKURXuNb9p6nePTJ4T7LKuvn+eXeYkv
60
+ fqpYMWL9EfRHCojBaF4RsvhzZ7yzT92aVvjIQ39wXE/zNitKO7IT9FYzul+9
61
+ RpNX+YUidPwcf39nXRfNm+sV9/m6JYj2U0OBnV18RLDfH1OG8yJbcLvj58dP
62
+ jr8w9HWfpq/fHL85Td8c/94f/ZLk+wn+L02OZ7OauNPNk35Af350nD4tzs/z
63
+ Ol+26asqmwGqfm3wfkrMiY9PdL6+qJbtRbXIiRz4tEuZlxXxcmlevvfp7s4+
64
+ Pu4SjPCSj86Y9Hs79/cePHyIb3iw5v2d3V1i/l2Q5ZckoxD3h7v309fpd7Lp
65
+ 26Zapq8ZSf3avP5lXVzg45973M1kRFTAL0n+H14GiAlRBAAA
66
+ http_version:
67
+ recorded_at: Wed, 22 Mar 2017 21:14:11 GMT
68
+ recorded_with: VCR 3.0.3