solidus_avatax_certified 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. checksums.yaml +7 -0
  2. data/.env_example +4 -0
  3. data/.gitignore +16 -0
  4. data/.rspec +3 -0
  5. data/.ruby-version +1 -0
  6. data/GEM_VERSION +1 -0
  7. data/Gemfile +18 -0
  8. data/LICENSE +26 -0
  9. data/README.md +27 -0
  10. data/Rakefile +21 -0
  11. data/app/assets/javascripts/spree/backend/address_validator.js +84 -0
  12. data/app/assets/javascripts/spree/backend/solidus_avatax_certified.js +5 -0
  13. data/app/assets/javascripts/spree/backend/use_code_picker.js +51 -0
  14. data/app/assets/javascripts/spree/frontend/address_validator.js +87 -0
  15. data/app/assets/javascripts/spree/frontend/flash.js.coffee +26 -0
  16. data/app/assets/javascripts/spree/frontend/solidus_avatax_certified.js +4 -0
  17. data/app/assets/stylesheets/spree/backend/solidus_avatax_certified.css +4 -0
  18. data/app/assets/stylesheets/spree/frontend/solidus_avatax_certified.css +4 -0
  19. data/app/controllers/spree/admin/avalara_entity_use_codes_controller.rb +15 -0
  20. data/app/controllers/spree/admin/avatax_settings_controller.rb +82 -0
  21. data/app/controllers/spree/admin/users_controller_decorator.rb +11 -0
  22. data/app/controllers/spree/checkout_controller_decorator.rb +22 -0
  23. data/app/models/solidus_avatax_certified/address.rb +95 -0
  24. data/app/models/solidus_avatax_certified/avatax_log.rb +69 -0
  25. data/app/models/solidus_avatax_certified/line.rb +146 -0
  26. data/app/models/solidus_avatax_certified/preference_updater.rb +74 -0
  27. data/app/models/spree/address_decorator.rb +13 -0
  28. data/app/models/spree/adjustment_decorator.rb +10 -0
  29. data/app/models/spree/avalara_entity_use_code.rb +5 -0
  30. data/app/models/spree/avalara_preference.rb +72 -0
  31. data/app/models/spree/avalara_transaction.rb +181 -0
  32. data/app/models/spree/calculator/avalara_transaction.rb +86 -0
  33. data/app/models/spree/line_item_decorator.rb +25 -0
  34. data/app/models/spree/order_decorator.rb +85 -0
  35. data/app/models/spree/payment_decorator.rb +23 -0
  36. data/app/models/spree/refund_decorator.rb +30 -0
  37. data/app/models/spree/shipment_decorator.rb +28 -0
  38. data/app/models/spree/shipping_rate_decorator.rb +25 -0
  39. data/app/models/spree/user_decorator.rb +3 -0
  40. data/app/models/tax_svc.rb +143 -0
  41. data/app/overrides/spree/admin/shared/_configuration_menu.rb +10 -0
  42. data/app/overrides/spree/admin/users/sidebar.rb +8 -0
  43. data/app/overrides/spree/admin/users/validation_button.rb +6 -0
  44. data/app/views/spree/admin/avalara_entity_use_codes/_form.html.erb +27 -0
  45. data/app/views/spree/admin/avalara_entity_use_codes/edit.html.erb +16 -0
  46. data/app/views/spree/admin/avalara_entity_use_codes/index.html.erb +33 -0
  47. data/app/views/spree/admin/avalara_entity_use_codes/new.html.erb +17 -0
  48. data/app/views/spree/admin/avalara_entity_use_codes/show.html.erb +24 -0
  49. data/app/views/spree/admin/avatax_settings/edit.html.erb +183 -0
  50. data/app/views/spree/admin/avatax_settings/ping_my_service.js.erb +8 -0
  51. data/app/views/spree/admin/avatax_settings/show.html.erb +124 -0
  52. data/app/views/spree/admin/avatax_settings/validate_address.js.erb +8 -0
  53. data/app/views/spree/admin/users/avalara_information.html.erb +53 -0
  54. data/app/views/spree/checkout/_address.html.erb +35 -0
  55. data/app/views/spree/checkout/_address_validator_button.html.erb +3 -0
  56. data/bin/rails +7 -0
  57. data/circle.yml +17 -0
  58. data/config/initializers/avatax.rb +5 -0
  59. data/config/initializers/spree.rb +3 -0
  60. data/config/locales/en.yml +35 -0
  61. data/config/routes.rb +18 -0
  62. data/db/migrate/20160624154205_create_spree_avalara_transactions.rb +9 -0
  63. data/db/migrate/20160624154423_create_spree_avalara_entity_use_codes.rb +9 -0
  64. data/db/migrate/20160624155217_add_columns_to_spree_users.rb +6 -0
  65. data/db/migrate/20160628200504_create_spree_avalara_preferences.rb +10 -0
  66. data/db/migrate/20160805193512_add_vat_id_to_spree_users.rb +5 -0
  67. data/db/seeds.rb +1 -0
  68. data/lib/generators/solidus_avatax_certified/install/install_generator.rb +45 -0
  69. data/lib/solidus_avatax_certified/engine.rb +22 -0
  70. data/lib/solidus_avatax_certified/preference_seeder.rb +69 -0
  71. data/lib/solidus_avatax_certified/seeder.rb +117 -0
  72. data/lib/solidus_avatax_certified.rb +2 -0
  73. data/lib/tasks/load_seeds.rake +15 -0
  74. data/setup.md +12 -0
  75. data/solidus_avatax_certified.gemspec +42 -0
  76. data/spec/controllers/spree/admin/avalara_entity_use_codes_controller_spec.rb +53 -0
  77. data/spec/controllers/spree/admin/avatax_settings_controller_spec.rb +67 -0
  78. data/spec/factories/avalara_entity_use_code_factory.rb +6 -0
  79. data/spec/factories/avalara_factories.rb +76 -0
  80. data/spec/factories/avalara_order_factory.rb +62 -0
  81. data/spec/factories/avalara_preference_factory.rb +7 -0
  82. data/spec/factories/avalara_shipment_factory.rb +27 -0
  83. data/spec/factories/avalara_shipping_method_factory.rb +23 -0
  84. data/spec/factories/tax_rate_factory.rb +19 -0
  85. data/spec/features/certification_spec.rb +77 -0
  86. data/spec/features/checkout_spec.rb +156 -0
  87. data/spec/features/vat_spec.rb +153 -0
  88. data/spec/models/solidus_avatax_certified/address_spec.rb +80 -0
  89. data/spec/models/solidus_avatax_certified/avatax_log_spec.rb +97 -0
  90. data/spec/models/solidus_avatax_certified/line_spec.rb +100 -0
  91. data/spec/models/spree/address_decorator_spec.rb +44 -0
  92. data/spec/models/spree/adjustment_decorator_spec.rb +25 -0
  93. data/spec/models/spree/avalara_entity_use_code_spec.rb +5 -0
  94. data/spec/models/spree/avalara_preference_spec.rb +173 -0
  95. data/spec/models/spree/avalara_transaction_spec.rb +203 -0
  96. data/spec/models/spree/calculator/avalara_transaction_spec.rb +129 -0
  97. data/spec/models/spree/line_item_decorator_spec.rb +33 -0
  98. data/spec/models/spree/order_decorator_spec.rb +164 -0
  99. data/spec/models/spree/payment_decorator_spec.rb +117 -0
  100. data/spec/models/spree/refund_decorator_spec.rb +81 -0
  101. data/spec/models/spree/shipment_decorator_spec.rb +36 -0
  102. data/spec/models/spree/shipping_rate_decorator_spec.rb +17 -0
  103. data/spec/models/spree/user_decorator_spec.rb +5 -0
  104. data/spec/spec_helper.rb +81 -0
  105. data/spec/support/avatax_config_preferences.rb +8 -0
  106. data/spec/support/vcr.rb +9 -0
  107. data/spec/vcr/Certification/Exempt_sales_should_be_reflected_in_the_test_data_through_use_of_ExemptionNo_or_CustomerUsageType_/does_not_add_additional_tax.yml +276 -0
  108. data/spec/vcr/Certification/Transactions_have_been_committed_/commits_an_order.yml +336 -0
  109. data/spec/vcr/Certification/Transactions_have_been_voided/cancelled_/should_be_successful/returns_ResultCode_with_value_Success.yml +522 -0
  110. data/spec/vcr/Certification/return_orders/_commit_avatax_final/should_commit_avatax_final.yml +404 -0
  111. data/spec/vcr/Checkout/complete_order/has_tax_and_shipping_tax_adjustments_on_page.yml +72 -0
  112. data/spec/vcr/Checkout/complete_order/order_line_items_and_shipments_have_an_additional_tax_total_sum_of_0_40.yml +72 -0
  113. data/spec/vcr/Checkout/payment/tax_included/has_tax_and_shipping_tax_adjustments_on_page.yml +72 -0
  114. data/spec/vcr/Checkout/payment/tax_included/order_line_items_and_shipments_have_an_included_tax_total_sum_of_0_38.yml +72 -0
  115. data/spec/vcr/Checkout/payment/tax_not_included/on_payment_page/has_tax_and_shipping_tax_adjustments_on_page.yml +72 -0
  116. data/spec/vcr/Checkout/payment/tax_not_included/on_payment_page/order_line_items_and_shipments_and_shipments_have_an_additional_tax_total_sum_of_0_40.yml +72 -0
  117. data/spec/vcr/Checkout/payment/with_promotion/tax_not_included/has_adjusted_tax_amount_after_promotion_applied.yml +73 -0
  118. data/spec/vcr/SolidusAvataxCertified_Address/_validate/fails_when_information_is_incorrect.yml +54 -0
  119. data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_computing_a_line_item/when_tax_is_included_in_price/should_be_equal_to_the_item_pre-tax_total_rate.yml +137 -0
  120. data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_computing_a_line_item/when_tax_is_included_in_price/should_be_equal_to_the_previous_included_tax_total_is_order_is_at_address.yml +138 -0
  121. data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_computing_a_line_item/when_tax_is_included_in_price/should_be_equal_to_the_previous_included_tax_total_is_order_is_at_cart.yml +137 -0
  122. data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_computing_a_line_item/when_tax_is_not_included_in_price/should_be_equal_to_the_item_pre-tax_total_rate.yml +136 -0
  123. data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_computing_a_line_item/when_tax_is_not_included_in_price/should_be_equal_to_the_previous_additional_tax_total_if_order_is_at_address.yml +137 -0
  124. data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_computing_a_line_item/when_tax_is_not_included_in_price/should_be_equal_to_the_previous_additional_tax_total_if_order_is_at_cart.yml +136 -0
  125. data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_computing_a_line_item/when_tax_is_not_included_in_price/should_be_equal_to_the_previous_tax_total_if_preference_tax_calculation_is_false.yml +136 -0
  126. data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_computing_a_line_item/when_tax_is_not_included_in_price/when_the_line_item_is_discounted/should_be_equal_to_the_items_pre-tax_total_rate.yml +276 -0
  127. data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_computing_a_line_item/when_tax_is_not_included_in_price/when_the_order_is_discounted/should_be_equal_to_the_items_pre-tax_total_rate.yml +206 -0
  128. data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_given_a_shipment/computing_normal_shipment/should_be_equal_4_0.yml +141 -0
  129. data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_given_a_shipment/when_tax_is_included_in_price/should_be_equal_to_3_85.yml +143 -0
  130. data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_given_a_shipment/with_promotion/should_equal_3_96.yml +210 -0
  131. data/spec/vcr/Spree_Calculator_AvalaraTransaction/_compute/when_given_an_order/when_computing_an_order/should_raise_error.yml +136 -0
  132. data/spec/vcr/Spree_Order/_cancel_avalara/should_receive_cancel_order_when_cancel_avalara_is_called.yml +136 -0
  133. data/spec/vcr/Spree_Order/_cancel_avalara/state_machine_event_cancel/should_recieve_cancel_avalara_when_event_cancel_is_called.yml +259 -0
  134. data/spec/vcr/Spree_Order/_validate_ship_address/should_return_false_if_validation_failed.yml +54 -0
  135. data/spec/vcr/Spree_Order/_validate_ship_address/should_return_the_response_if_refuse_checkout_on_address_validation_is_disabled.yml +59 -0
  136. data/spec/vcr/Spree_Order/_validate_ship_address/should_return_the_response_if_validation_is_success.yml +59 -0
  137. data/spec/vcr/Spree_Payment/_avalara_finalize/should_update_the_amount_to_be_the_order_total.yml +136 -0
  138. data/spec/vcr/Spree_Payment/_cancel_avalara/committed_order/should_be_successful/ResultCode_returns_Success.yml +205 -0
  139. data/spec/vcr/Spree_Payment/_cancel_avalara/uncommitted_order/should_fail/ResultCode_returns_Error.yml +191 -0
  140. data/spec/vcr/Spree_Payment/_purchase_/receive_avalara_finalize.yml +136 -0
  141. data/spec/vcr/Spree_Payment/_void_transaction_/receive_cancel_avalara.yml +136 -0
  142. data/spec/vcr/Spree_Refund/full_refund/returns_correct_tax_calculations.yml +270 -0
  143. data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_another_EU_country/Seller_does_not_have_Nexus_Jurisdition_Registered/TotalTax_is_equal_to_order_included_tax_total.yml +137 -0
  144. data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_another_EU_country/Seller_does_not_have_Nexus_Jurisdition_Registered/origin_country_tax_is_returned.yml +138 -0
  145. data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_another_EU_country/Seller_does_not_have_Nexus_Jurisdition_Registered/with_BusinessIdentificationNo/origin_country_zero_rate_is_returned.yml +143 -0
  146. data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_another_EU_country/Seller_has_Nexus_Jurisdition_Registered/TotalTax_is_equal_to_order_included_tax_total.yml +139 -0
  147. data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_another_EU_country/Seller_has_Nexus_Jurisdition_Registered/destination_country_tax_is_returned.yml +139 -0
  148. data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_another_EU_country/Seller_has_Nexus_Jurisdition_Registered/with_BusinessIdentificationNo/origin_country_zero_rate_is_returned.yml +144 -0
  149. data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_same_EU_country/TotalTax_is_equal_to_order_included_tax_total.yml +137 -0
  150. data/spec/vcr/VAT/Seller_in_EU_country_Buyer_in_same_EU_country/tax_detail_country_equals_to_IT.yml +138 -0
  151. data/spec/vcr/VAT/Seller_in_EU_country_Buyer_is_outside_EU/Seller_does_not_have_Nexus_Jurisdition_registered/TotalTax_is_equal_to_order_included_tax_total.yml +137 -0
  152. data/spec/vcr/VAT/Seller_in_EU_country_Buyer_is_outside_EU/Seller_does_not_have_Nexus_Jurisdition_registered/tax_detail_country_equals_to_IT.yml +137 -0
  153. data/spec/vcr/VAT/Seller_in_EU_country_Buyer_is_outside_EU/Seller_does_not_have_Nexus_Jurisdition_registered/total_tax_is_0_since_utah_is_not_in_jurisdiction.yml +137 -0
  154. data/spec/vcr/VAT/Seller_in_EU_country_Buyer_is_outside_EU/Seller_does_not_have_Nexus_Jurisdition_registered/with_BusinessIdentificationNo/origin_country_zero_rate_is_returned.yml +138 -0
  155. data/spec/vcr/VAT/Seller_in_EU_country_Buyer_is_outside_EU/Seller_has_Nexus_Jurisdiction_Registered/TotalTax_is_equal_to_order_included_tax_total.yml +195 -0
  156. data/spec/vcr/VAT/Seller_in_EU_country_Buyer_is_outside_EU/Seller_has_Nexus_Jurisdiction_Registered/tax_detail_region_equals_to_AL.yml +195 -0
  157. data/spec/vcr/address_validation_success.yml +59 -0
  158. data/spec/vcr/capture_with_customer_usage_type.yml +72 -0
  159. data/spec/vcr/order_cancel.yml +258 -0
  160. data/spec/vcr/order_capture.yml +72 -0
  161. data/spec/vcr/order_capture_finalize.yml +141 -0
  162. data/spec/vcr/order_capture_with_promo.yml +73 -0
  163. data/spec/vcr/order_return_capture.yml +68 -0
  164. data/spec/vcr/tax_included_order.yml +73 -0
  165. metadata +581 -0
@@ -0,0 +1,137 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://development.avalara.net/1.0/tax/get
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"DocCode":"R439473665","DocDate":"2017-01-13","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"8
9
+ Boulevard du Palais","Line2":"","City":"Paris","Region":"","Country":"FR","PostalCode":"75001"},{"AddressCode":"1","Line1":"150
10
+ Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
11
+ #1 - 3189","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
12
+ Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
13
+ Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R439473665","DetailLevel":"Tax","CurrencyCode":"USD"}'
14
+ headers:
15
+ Accept:
16
+ - "*/*; q=0.5, application/xml"
17
+ Accept-Encoding:
18
+ - gzip, deflate
19
+ Authorization:
20
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
21
+ Content-Type:
22
+ - application/json
23
+ Content-Length:
24
+ - '1104'
25
+ User-Agent:
26
+ - Ruby
27
+ response:
28
+ status:
29
+ code: 200
30
+ message: OK
31
+ headers:
32
+ Cache-Control:
33
+ - private
34
+ Content-Type:
35
+ - text/json; charset=utf-8
36
+ Content-Encoding:
37
+ - gzip
38
+ Vary:
39
+ - Accept-Encoding
40
+ X-Aspnet-Version:
41
+ - 4.0.30319
42
+ X-Powered-By:
43
+ - ASP.NET
44
+ Date:
45
+ - Fri, 13 Jan 2017 16:47:59 GMT
46
+ Content-Length:
47
+ - '622'
48
+ Set-Cookie:
49
+ - TS017f1821=01a8ddc44ef5e7a3e375571a6c54c1c38a7b7f732e98fee0634048638c42be7383c82250d5cb16564b1fd2b63471c28982f4c7d5bd;
50
+ Path=/
51
+ body:
52
+ encoding: ASCII-8BIT
53
+ string: !binary |-
54
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
55
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
56
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
57
+ 6Gk1NZ++2r/3cP/BvU8/va9fPM1a/mJvZ/fB9s7u9u49fPGmWORNmy1W4Vdv
58
+ dj99tP/g0f2H492D3d2d3YOf4sZVm5XHi2q9bNF899Pxvv34adFMzRc79tPT
59
+ d/li1RbVMvz4TfYum5SMTgCEPsdn98af+h+dZOV0XRL6M//L7N3zYpk39NH3
60
+ EqIJ/nhR0V8f7W4/P9MWhhgvT3bu7dCjH2eToizaa3zT1uscnz4h3GdZff08
61
+ v8xLfPFTxYop1x9Bf6SAKKM5GO/hk1eELP7cGe/tUbemFT7aHR/oX+Gw3OdP
62
+ 8zYrSjuwE/RVM7Jnb9DkVX6h6Mjf31nXRfPmesU9mtbmc0MBaUrQ3xtTBvMi
63
+ W3CzszfHz38ffEptzGev2wykm6UM65ck309+STIixN2M7G0/e6UvGXyevaLO
64
+ 6NGPfzQj74EpgzHUv+2MfD+RNsezWU3awgmOfkB/fnSQEtHL/BKvztbpy6zM
65
+ CtYr2sag/pRUBj4+0Sl7mRFC/IGOlT6TGX9ZkXIpzXsP7u/s7OJjwkNodsaU
66
+ 3tu5v3PAWoCHZpoTCOEk7R6f7d7fSV8W02k2K8qSiapfmpcYvkHsWVnV+XLK
67
+ /OThJqQPcQMOhtZd3B7yFwFuBMLRNKJaf0ny/wBT0gRxqAUAAA==
68
+ http_version:
69
+ recorded_at: Fri, 13 Jan 2017 16:47:59 GMT
70
+ - request:
71
+ method: post
72
+ uri: https://development.avalara.net/1.0/tax/get
73
+ body:
74
+ encoding: UTF-8
75
+ string: '{"DocCode":"R439473665","DocDate":"2017-01-13","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"8
76
+ Boulevard du Palais","Line2":"","City":"Paris","Region":"","Country":"FR","PostalCode":"75001"},{"AddressCode":"1","Line1":"150
77
+ Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
78
+ #1 - 3189","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
79
+ Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
80
+ Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R439473665","DetailLevel":"Tax","CurrencyCode":"USD"}'
81
+ headers:
82
+ Accept:
83
+ - "*/*; q=0.5, application/xml"
84
+ Accept-Encoding:
85
+ - gzip, deflate
86
+ Authorization:
87
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
88
+ Content-Type:
89
+ - application/json
90
+ Content-Length:
91
+ - '1104'
92
+ User-Agent:
93
+ - Ruby
94
+ response:
95
+ status:
96
+ code: 200
97
+ message: OK
98
+ headers:
99
+ Cache-Control:
100
+ - private
101
+ Content-Type:
102
+ - text/json; charset=utf-8
103
+ Content-Encoding:
104
+ - gzip
105
+ Vary:
106
+ - Accept-Encoding
107
+ X-Aspnet-Version:
108
+ - 4.0.30319
109
+ X-Powered-By:
110
+ - ASP.NET
111
+ Date:
112
+ - Fri, 13 Jan 2017 16:48:00 GMT
113
+ Content-Length:
114
+ - '622'
115
+ Set-Cookie:
116
+ - TS017f1821=01a8ddc44ee8cc8a4208528ba4675329243e725b18b022f43f67ebd6a95eefc764490a35e3498bb6b5a3056c65bbeb663fce31711d;
117
+ Path=/
118
+ body:
119
+ encoding: ASCII-8BIT
120
+ string: !binary |-
121
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
122
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
123
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
124
+ 6Gk1NZ++2r/3cP/BvU8/va9fPM1a/mJvZ/fB9s7u9u49fPGmWORNmy1W4Vdv
125
+ dj99tH/waGdnfO/+wwf39u//FDeu2qw8XlTrZYvmu5+O9+3HT4tmar7YsZ+e
126
+ vssXq7aoluHHb7J32aRkdAIg9Dk+uzf+1P/oJCun65LQn/lfZu+eF8u8oY++
127
+ lxBN8MeLiv76aHf7+Zm2MMR4ebJzb4ce/TibFGXRXuObtl7n+PQJ4T7L6uvn
128
+ +WVe4oufKlZMuf4I+iMFRBnNwXgPn7wiZPHnznhvj7o1rfDR7vhA/wqH5T5/
129
+ mrdZUdqBnaCvmpE9e4Mmr/ILRUf+/s66Lpo31yvu0bQ2nxsKSFOC/t6YMpgX
130
+ 2YKbnb05fv774FNqYz573WYg3SxlWL8k+X7yS5IRIe5mZG/72St9yeDz7BV1
131
+ Ro9+/KMZeQ9MGYyh/m1n5PuJtDmezWrSFk5w9AP686ODlIhe5pd4dbZOX2Zl
132
+ VrBe0TYG9aekMvDxiU7Zy4wQ4g90rPSZzPjLipRLad57cH9nZxcfEx5CszOm
133
+ 9N7O/Z0D1gI8NNOcQAgnaff4bPf+TvqymE6zWVGWTFT90rzE8A1iz8qqzpdT
134
+ 5icPNyF9iBtwMLTu4vaQvwhwIxCOphHV+kuS/webV821qAUAAA==
135
+ http_version:
136
+ recorded_at: Fri, 13 Jan 2017 16:48:00 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":"R983967130","DocDate":"2017-01-13","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"8
9
+ Boulevard du Palais","Line2":"","City":"Paris","Region":"","Country":"FR","PostalCode":"75001"},{"AddressCode":"1","Line1":"150
10
+ Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
11
+ #2 - 4154","TaxCode":"PC030000","ItemCode":"SKU-2","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
12
+ Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
13
+ Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R983967130","DetailLevel":"Tax","CurrencyCode":"USD"}'
14
+ headers:
15
+ Accept:
16
+ - "*/*; q=0.5, application/xml"
17
+ Accept-Encoding:
18
+ - gzip, deflate
19
+ Authorization:
20
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
21
+ Content-Type:
22
+ - application/json
23
+ Content-Length:
24
+ - '1104'
25
+ User-Agent:
26
+ - Ruby
27
+ response:
28
+ status:
29
+ code: 200
30
+ message: OK
31
+ headers:
32
+ Cache-Control:
33
+ - private
34
+ Content-Type:
35
+ - text/json; charset=utf-8
36
+ Content-Encoding:
37
+ - gzip
38
+ Vary:
39
+ - Accept-Encoding
40
+ X-Aspnet-Version:
41
+ - 4.0.30319
42
+ X-Powered-By:
43
+ - ASP.NET
44
+ Date:
45
+ - Fri, 13 Jan 2017 16:48:01 GMT
46
+ Content-Length:
47
+ - '660'
48
+ Set-Cookie:
49
+ - TS017f1821=01a8ddc44eb7c9ea8fe41c0b1b1430e6d8e8533e597b5fae03a9435ce662f9e90aa98dad143a30f955cb5a8133dae7c9ae6d8da634;
50
+ Path=/
51
+ body:
52
+ encoding: ASCII-8BIT
53
+ string: !binary |-
54
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
55
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
56
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tHTanpSzfKPHqUfvXp4cO/hpw927+18
57
+ NOIvnmYtf7G3s/tge2d3e/cevnhTLPKmzRar8Ks3u58+2j94tLM33vl0Z39n
58
+ 96e4bdVm5fGiWi9btN79dLxvP35aNFPzBffIn56+yxertqiW4cdvsnfZpGRs
59
+ AiD0OT67N/7U/+gkK6frkrCf+V9m7wYGlL17Xizzhr75XkIkwR8vKvrro93t
60
+ 52fawhDp5cnOvR169ONsUpRFe41v2nqd49MnNKhZVl8/zy/zEl/8VLG6jy+4
61
+ uYzhYLyHT14pPjvjvT2CaYDio93xAf7qE4lQCUanDSN0o/HmbVaUdmD0yXsj
62
+ 8Cq/UKBnb/D3CbCpecDywXfWddG8uV4xHPOt+fxFtuDPz94cP/997KeGlgKA
63
+ +jPNXrcZSDdLGa9fknw/+SXJiBB3M7K3/eyVvmSgPHtFiNOjH7/PjPSJFqP3
64
+ e9OM/orOEX3emRFDL2ojxOiSm+k1RF1DAWlK0N8bUwZjqG8nidqYz2Iz8v1E
65
+ 2hzPZnXeNE5w9AP686ODlIhe5pd4dbZOX2ZlVjSArW0M6k9JleDjE52ylxkh
66
+ xB/oWOkzmfGXFSmd0rz34P7Ozi4+JjyEZmdM6b2d+zsHrB54aKY5gRBO0u7x
67
+ 2e79nfRlMZ1ms6Ismaj6pXmJ4RvEnpVVnS+nzE8ebkL6EDfgYGjdxe0hfxHg
68
+ RiCUpq/yZl225vPX6+mUsPnolyT/D7hpZyinBQAA
69
+ http_version:
70
+ recorded_at: Fri, 13 Jan 2017 16:48:02 GMT
71
+ - request:
72
+ method: post
73
+ uri: https://development.avalara.net/1.0/tax/get
74
+ body:
75
+ encoding: UTF-8
76
+ string: '{"DocCode":"R983967130","DocDate":"2017-01-13","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"8
77
+ Boulevard du Palais","Line2":"","City":"Paris","Region":"","Country":"FR","PostalCode":"75001"},{"AddressCode":"1","Line1":"150
78
+ Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
79
+ #2 - 4154","TaxCode":"PC030000","ItemCode":"SKU-2","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
80
+ Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
81
+ Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R983967130","DetailLevel":"Tax","CurrencyCode":"USD"}'
82
+ headers:
83
+ Accept:
84
+ - "*/*; q=0.5, application/xml"
85
+ Accept-Encoding:
86
+ - gzip, deflate
87
+ Authorization:
88
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
89
+ Content-Type:
90
+ - application/json
91
+ Content-Length:
92
+ - '1104'
93
+ User-Agent:
94
+ - Ruby
95
+ response:
96
+ status:
97
+ code: 200
98
+ message: OK
99
+ headers:
100
+ Cache-Control:
101
+ - private
102
+ Content-Type:
103
+ - text/json; charset=utf-8
104
+ Content-Encoding:
105
+ - gzip
106
+ Vary:
107
+ - Accept-Encoding
108
+ X-Aspnet-Version:
109
+ - 4.0.30319
110
+ X-Powered-By:
111
+ - ASP.NET
112
+ Date:
113
+ - Fri, 13 Jan 2017 16:48:02 GMT
114
+ Content-Length:
115
+ - '623'
116
+ Set-Cookie:
117
+ - TS017f1821=01a8ddc44e44c93786f3462cec61b45038ee211b520e1d9b862904af99a6a4b8a2ecb2ffb4c12f58b820c768d010b3869f958cb996;
118
+ Path=/
119
+ body:
120
+ encoding: ASCII-8BIT
121
+ string: !binary |-
122
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
123
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
124
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
125
+ 6Gk1NZ++enhw7+GnD3bv7egXT7OWv9jb2X2wvbO7vXsPX7wpFnnTZotV+NWb
126
+ 3U8f7R882rk33tvde7B3/+CnuHHVZuXxolovWzTf/XS8bz9+WjRT8wV3yZ+e
127
+ vssXq7aoluHHb7J32aRkdAIg9Dk+uzf+1P/oJCun65LQn/lfZu+eF8u8oY++
128
+ lxBN8MeLiv76aHf7+Zm2MMR4ebJzb4ce/TibFGXRXuObtl7n+PQJ4T7L6uvn
129
+ +WVe4oufKlb38UV/BP2RAqKM5mC8h09eEbL4c2e8t0fdmlb4aHd8oH+Fw3Kf
130
+ P83brCjtwE7QV83Inr1Bk1f5haIjf39nXRfNm+sV92ham88NBaQpQX9vTBnM
131
+ i2zBzc7eHD//ffAptTGfvW4zkG6WMqxfknw/+SXJiBB3M7K3/eyVvmTwefaK
132
+ OqNHP/7RjLwHpgzGUP+2M/L9RNocz2Y1aQsnOPoB/fnRQUpEL/NLvDpbpy+z
133
+ MitYr2gbg/pTUhn4+ESn7GVGCPEHOlb6TGb8ZUXKpTTvPbi/s7OLjwkPodkZ
134
+ U3pv5/7OAWsBHpppTiCEk7R7fLZ7fyd9WUyn2awoSyaqfmleYvgGsWdlVefL
135
+ KfOTh5uQPsQNOBhad3F7yF8EuBEIR9OIav0lyf8DESyZu6gFAAA=
136
+ http_version:
137
+ recorded_at: Fri, 13 Jan 2017 16:48:03 GMT
138
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,143 @@
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":"R476062746","DocDate":"2017-01-13","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"8
9
+ Boulevard du Palais","Line2":"","City":"Paris","Region":"","Country":"FR","PostalCode":"75001"},{"AddressCode":"1","Line1":"150
10
+ Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
11
+ #3 - 6873","TaxCode":"PC030000","ItemCode":"SKU-3","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
12
+ Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
13
+ Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R476062746","DetailLevel":"Tax","CurrencyCode":"USD"}'
14
+ headers:
15
+ Accept:
16
+ - "*/*; q=0.5, application/xml"
17
+ Accept-Encoding:
18
+ - gzip, deflate
19
+ Authorization:
20
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
21
+ Content-Type:
22
+ - application/json
23
+ Content-Length:
24
+ - '1104'
25
+ User-Agent:
26
+ - Ruby
27
+ response:
28
+ status:
29
+ code: 200
30
+ message: OK
31
+ headers:
32
+ Cache-Control:
33
+ - private
34
+ Content-Type:
35
+ - text/json; charset=utf-8
36
+ Content-Encoding:
37
+ - gzip
38
+ Vary:
39
+ - Accept-Encoding
40
+ X-Aspnet-Version:
41
+ - 4.0.30319
42
+ X-Powered-By:
43
+ - ASP.NET
44
+ Date:
45
+ - Fri, 13 Jan 2017 16:48:04 GMT
46
+ Content-Length:
47
+ - '623'
48
+ Set-Cookie:
49
+ - TS017f1821=01a8ddc44eb8f62dad44bab36c3c94876d764836189873c09e0774158dd0f9be345c99592adf335279798f6656b3f234da7c82fe2f;
50
+ Path=/
51
+ body:
52
+ encoding: ASCII-8BIT
53
+ string: !binary |-
54
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
55
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
56
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
57
+ 6Gk1NZ++2n/w6c6new/2P9UvnmYtf7G3s/tge2d3e/cevnhTLPKmzRar8Ks3
58
+ u58+2j94tLM/frj78NNPd+7/FDeu2qw8XlTrZYvmu5+O9+3HT4tmar7YsZ+e
59
+ vssXq7aoluHHb7J32aRkdAIg9Dk+uzdmpM1HJ1k5XZeE/sz/Mnv3vFjmDX30
60
+ vYRogj9eVPTXR7vbz8+0hSHGy5Odezv06MfZpCiL9hrftPU6x6dPCPdZVl8/
61
+ zy/zEl/8VLG6jy/6I+iPFBBlNAfjPXzyipDFnzvjvT3q1rTCR7vjA/0rHJb7
62
+ /GneZkVpB3aCvmpG9uwNmrzKLxQd+fs767po3lyvuEfT2nxuKCBNCfp7Y8pg
63
+ XmQLbnb25vj574NPqY357HWbgXSzlGH9kuT7yS9JRoS4m5G97Wev9CWDz7NX
64
+ 1Bk9+vGPZuQ9MGUwhvq3nZHvJ9LmeDarSVs4wdEP6M+PDlIieplf4tXZOn2Z
65
+ lVnBekXbGNSfksrAxyc6ZS8zQog/0LHSZzLjLytSLqV578H9nZ1dfEx4CM3O
66
+ mNJ7O/d3DlgL8NBMcwIhnKTd47Pd+zvpy2I6zWZFWTJR9UvzEsM3iD0rqzpf
67
+ TpmfPNyE9CFuwMHQuovbQ/4iwI1AOJpGVOsvSf4fHDv93agFAAA=
68
+ http_version:
69
+ recorded_at: Fri, 13 Jan 2017 16:48:05 GMT
70
+ - request:
71
+ method: post
72
+ uri: https://development.avalara.net/1.0/tax/get
73
+ body:
74
+ encoding: UTF-8
75
+ string: '{"DocCode":"R476062746","DocDate":"2017-01-13","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"8
76
+ Boulevard du Palais","Line2":"","City":"Paris","Region":"","Country":"FR","PostalCode":"75001"},{"AddressCode":"1","Line1":"150
77
+ Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
78
+ #3 - 6873","TaxCode":"PC030000","ItemCode":"SKU-3","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
79
+ Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
80
+ Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R476062746","DetailLevel":"Tax","CurrencyCode":"USD","BusinessIdentificationNo":"123456789"}'
81
+ headers:
82
+ Accept:
83
+ - "*/*; q=0.5, application/xml"
84
+ Accept-Encoding:
85
+ - gzip, deflate
86
+ Authorization:
87
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
88
+ Content-Type:
89
+ - application/json
90
+ Content-Length:
91
+ - '1143'
92
+ User-Agent:
93
+ - Ruby
94
+ response:
95
+ status:
96
+ code: 200
97
+ message: OK
98
+ headers:
99
+ Cache-Control:
100
+ - private
101
+ Content-Type:
102
+ - text/json; charset=utf-8
103
+ Content-Encoding:
104
+ - gzip
105
+ Vary:
106
+ - Accept-Encoding
107
+ X-Aspnet-Version:
108
+ - 4.0.30319
109
+ X-Powered-By:
110
+ - ASP.NET
111
+ Date:
112
+ - Fri, 13 Jan 2017 16:48:05 GMT
113
+ Content-Length:
114
+ - '859'
115
+ Set-Cookie:
116
+ - TS017f1821=01a8ddc44ec78721bbeaba4d5c477c9a00b306fdb9d7ba5cb01afaac9e07d9f8f66921370aedb7347b6261873473961fce031c35fb;
117
+ Path=/
118
+ body:
119
+ encoding: ASCII-8BIT
120
+ string: !binary |-
121
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
122
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
123
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
124
+ 6Gk1NZ++2n/w6c6new/2P9UvnmYtf7G3s/tge2d3e/cevnhTLPKmzRar8Ks3
125
+ u58+2j94tPPpeGdn5/7uw4c/xY2rNiuPF9V62Upz++HTopmaj92np+/yxaot
126
+ qmX48ZvsXTYpFRn/U3wSfHCSldN1SYjP3FfZu+fFMm/og+8lRAv88aKivz7a
127
+ 3X5+pi0MEV6e7NyjAZgXs0lRFu01vmnrdY5PnxDWs6y+fp5f5iW++KlidR9f
128
+ 9HHvjxEQZRy7/MErwhR/7YBq9OAzasQf6e/xET3N26wo7ZhO0E3NeJ69QZNX
129
+ +YViIn9/Z10XzZvrFfdmWpvPzeClKUF/PyQZxotswY3O3hw//33wKbUwn/1U
130
+ XlcpQ/klyfeTX5KMCGM3C3vbz17pCwaRZ6+oG3r04x/NAn1wE5IMw1D8NrPw
131
+ /US+P57NatIGTkD0A/rzo4OUCF3ml1k9S2fr9GVWZgXrDW1jcH5KKgEfn+g0
132
+ vcwIGf5AB0mfySy/rEh5lOa9B/d3dnbxMeEhxDpjAu/t3N852McXPCzTnEAI
133
+ 92j3+Gz3/k76sphOs1lRlkxN/dK8xPANYs/Kqs6XU+YhDzeheYgbcGDKRnB7
134
+ yF8EuBEIR9O46vyCsMouHKFfrxcL4mH686Oz5WVVTPM0NW3S86pO23metnW2
135
+ bLIpszTBcCz30S/+fc1r+tIXWdPm9fOiaX/fjx59j77Wz4EifbIzsp/QX7/v
136
+ Ry+qNFutymIKRktJq9M3xfJCey6atCQZHf++H/2SUQ/UbgfUGREy2z79Kn29
137
+ JojXaXWefl5VsybNmnSV1+lx3Y7T3XsHKTX5yeM36dOizmlIl3m6t7Pz6e97
138
+ d3d3j/r5PkENR+SNhagqOoP+/n1Zdf++H1F7bWjwYlzDptAvkaY7v+T7vwQE
139
+ fU0apFbu8Azj62pdT3kOjy+J6+tsTD8J8Ph1Xl8Sgs2Y/uAZ/yXJ/wM0JGMB
140
+ YQcAAA==
141
+ http_version:
142
+ recorded_at: Fri, 13 Jan 2017 16:48:06 GMT
143
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,139 @@
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":"R369668077","DocDate":"2017-01-13","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"89
9
+ Nieuwendijk","Line2":"","City":"Amsterdam","Region":"","Country":"NL","PostalCode":"1012
10
+ MC"},{"AddressCode":"1","Line1":"150 Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
11
+ #4 - 6014","TaxCode":"PC030000","ItemCode":"SKU-4","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
12
+ Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
13
+ Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R369668077","DetailLevel":"Tax","CurrencyCode":"USD"}'
14
+ headers:
15
+ Accept:
16
+ - "*/*; q=0.5, application/xml"
17
+ Accept-Encoding:
18
+ - gzip, deflate
19
+ Authorization:
20
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
21
+ Content-Type:
22
+ - application/json
23
+ Content-Length:
24
+ - '1103'
25
+ User-Agent:
26
+ - Ruby
27
+ response:
28
+ status:
29
+ code: 200
30
+ message: OK
31
+ headers:
32
+ Cache-Control:
33
+ - private
34
+ Content-Type:
35
+ - text/json; charset=utf-8
36
+ Content-Encoding:
37
+ - gzip
38
+ Vary:
39
+ - Accept-Encoding
40
+ X-Aspnet-Version:
41
+ - 4.0.30319
42
+ X-Powered-By:
43
+ - ASP.NET
44
+ Date:
45
+ - Fri, 13 Jan 2017 16:48:06 GMT
46
+ Content-Length:
47
+ - '642'
48
+ Set-Cookie:
49
+ - TS017f1821=01a8ddc44e0d0da5dc0c2e9956787312686e86807cd599868f15e688389254bac7cf1d3ee70ec2bd2d1211b572bdcd73674149c03b;
50
+ Path=/
51
+ body:
52
+ encoding: ASCII-8BIT
53
+ string: !binary |-
54
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
55
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
56
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
57
+ 6Gk1NZ++uvfpw08/Pdh58EC/eJq1/MXezu6D7Z3d7d17+OJNscibNluswq/e
58
+ 7H76aP/g0c6D8cHDvb0HB/d+ihtXbVYeL6r1skXz3U/H9/fs50+LZmq+2bGf
59
+ nr7LF6u2qJbhx2+yd9mkZHxCKPQFPrw33j/wPzvJyum6pBHMgm+zd8+LZd7Q
60
+ Z99LiC7440VFf320u/38TFsYgrw82bm3Q49+nE2Ksmiv8U1br3N8+oTQn2X1
61
+ 9fP8Mi/xxU8Vq/v4oj+I/mABUQZ0MN77FB+9InTx9854b5f6Nc3w0e74wb7+
62
+ GY7M++Jp3mZFacd2gu5qxvfFczR5lV8oRvL3d9Z10by5XnGfprX53BBBmhL0
63
+ r4EsA3qRLbjdi9M33z599fz4xdPX+I6amm9etxmoOEsZ5C9Jvp/8kmREA3CT
64
+ s7f97JW+ZPB69or6pEc//tHk8AfvgSwDMlPwfpPz/UTaHM9mNekRJ076Af35
65
+ 0cHD9EWRr6/y5az46bcAql8a3J+SFsHHJzptx4umzetZtuAPdcD0uYzxZUU6
66
+ pzTv7u7s7qVfnOALQkNId8YU39u5v/PwIb7g8ZkXCIjwlCKBz3bv76Qvi+k0
67
+ mxVlybTVL81Lu/jMoPesrOp8OWXO8rA7e4MPQuyAg6F4Dzf+IsCNQDiSRnTu
68
+ L0n+H17WJKHBBQAA
69
+ http_version:
70
+ recorded_at: Fri, 13 Jan 2017 16:48:08 GMT
71
+ - request:
72
+ method: post
73
+ uri: https://development.avalara.net/1.0/tax/get
74
+ body:
75
+ encoding: UTF-8
76
+ string: '{"DocCode":"R369668077","DocDate":"2017-01-13","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":null,"Line2":null,"City":"Florence","Region":"","PostalCode":null,"Country":"IT"},{"AddressCode":"Dest","Line1":"89
77
+ Nieuwendijk","Line2":"","City":"Amsterdam","Region":"","Country":"NL","PostalCode":"1012
78
+ MC"},{"AddressCode":"1","Line1":"150 Piccadilly","Line2":null,"City":"Florence","PostalCode":"20500","Country":"IT"}],"Lines":[{"LineNo":"1-LI","Description":"Product
79
+ #4 - 6014","TaxCode":"PC030000","ItemCode":"SKU-4","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":true},{"LineNo":"2-FR","ItemCode":"Avalara
80
+ Ground","Qty":1,"Amount":10.0,"OriginCode":"1","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
81
+ Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":true}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R369668077","DetailLevel":"Tax","CurrencyCode":"USD"}'
82
+ headers:
83
+ Accept:
84
+ - "*/*; q=0.5, application/xml"
85
+ Accept-Encoding:
86
+ - gzip, deflate
87
+ Authorization:
88
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
89
+ Content-Type:
90
+ - application/json
91
+ Content-Length:
92
+ - '1103'
93
+ User-Agent:
94
+ - Ruby
95
+ response:
96
+ status:
97
+ code: 200
98
+ message: OK
99
+ headers:
100
+ Cache-Control:
101
+ - private
102
+ Content-Type:
103
+ - text/json; charset=utf-8
104
+ Content-Encoding:
105
+ - gzip
106
+ Vary:
107
+ - Accept-Encoding
108
+ X-Aspnet-Version:
109
+ - 4.0.30319
110
+ X-Powered-By:
111
+ - ASP.NET
112
+ Date:
113
+ - Fri, 13 Jan 2017 16:48:08 GMT
114
+ Content-Length:
115
+ - '640'
116
+ Set-Cookie:
117
+ - TS017f1821=01a8ddc44e1d7fe2a3c79140a5d7fde5caa8ee59c00addaf2e23535dea9b34d0c0d8bb3579cc46e45f74a2d064d60c6051eb573e42;
118
+ Path=/
119
+ body:
120
+ encoding: ASCII-8BIT
121
+ string: !binary |-
122
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
123
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
124
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
125
+ 6Gk1NZ++uvfpw08/Pdh58EC/eJq1/MXezu6D7Z3d7d17+OJNscibNluswq/e
126
+ 7H76aP/g0c7BGEA+3Tv4KW5ctVl5vKjWyxbNdz8d39+znz8tmqn5Zsd+evou
127
+ X6zaolqGH7/J3mWTkvEJodAX+PDeeP/A/+wkK6frkkYwC77N3j0vlnlDn30v
128
+ IbrgjxcV/fXR7vbzM21hCPLyZOfeDj36cTYpyqK9xjdtvc7x6RNCf5bV18/z
129
+ y7zEFz9VrO7ji/4g+oMFRBnQwXjvU3z0itDF3zvjvV3q1zTDR7vjB/v6Zzgy
130
+ 74uneZsVpR3bCbqrGd8Xz9HkVX6hGMnf31nXRfPmesV9mtbmc0MEaUrQvway
131
+ DOhFtuB2L07ffPv01fPjF09f4ztqar553Wag4ixlkL8k+X7yS5IRDcBNzt72
132
+ s1f6ksHr2Svqkx79+EeTwx+8B7IMyEzB+03O9xNpczyb1aRHnDjpB/TnRwcP
133
+ 0xdFvr7Kl7Pip98CqH5pcH9KWgQfn+i0HS+aNq9n2YI/1AHT5zLGlxXpnNK8
134
+ u7uzu5d+cYIvCA0h3RlTfG/n/s7Dh/iCx2deICDCU4oEPtu9v5O+LKbTbFaU
135
+ JdNWvzQv7eIzg96zsqrz5ZQ5y8Pu7A0+CLEDDobiPdz4iwA3AuFIGtG5vyT5
136
+ fwDQJiQvwQUAAA==
137
+ http_version:
138
+ recorded_at: Fri, 13 Jan 2017 16:48:09 GMT
139
+ recorded_with: VCR 3.0.3