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,136 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://development.avalara.net/1.0/tax/get
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"DocCode":"R290766698","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 - 8591","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":"R290766698","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:06:10 GMT
44
+ Content-Length:
45
+ - '582'
46
+ Set-Cookie:
47
+ - TS017f1821=01a8ddc44eabc91b941e717166f261865e47237f5004f709a497b60cc4142d720a3046cab79ec8ba48bc7386db630b8ee0719ba065;
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++2nu48+DTTz99eKBfPM1a/mJvZ/fB9s697b09fPGmWORNmy1W4Vdv
56
+ 9nYe7Xz6aHd3vL/z4P7+wf5PceOqzcrjRbVetmi+u2M/fFo0U/Ox+/T0Xb5Y
57
+ tUW1DD9+k73LJiUj44GgT/HJznjf/+gkK6frklCf+V9m754Xy7yhj76XED3w
58
+ x4uK/vpod/v5mbYwhHh5snNvhx79OJsUZdFe45u2Xuf49AlhPsvq6+f5ZV7i
59
+ i58qVvfxRR///jgB0R/LK8IVf+2Md/apV/6MGslHBvuhUT3N26wo7bhO0FXN
60
+ uH71Gk1e5ReKzfFz/P2ddV00b65X3OPrlgDaT83wd3bxEcF+XzQZyotswc2O
61
+ nx8/Of7iGJ9TK/dp+vrN8ZvT9M3x7/3RL0m+n+D/0uR4NquJKd0c6Qf050fH
62
+ 6dPi/Dyv82WbvqqyGaDq1wbrp8SU+PhEp+qLatleVIuciIFPu3R5WREPl+bl
63
+ e5/u7vAQuuQivOSjM6b73s79vQcPH+IbHqx5f2d3d2f3/i6o8kuSUYj7w937
64
+ 6ev0O9n0bVMt09eMpH5tXv+yLi7w8c897mYyIqL/S5L/B1SAKfpIBAAA
65
+ http_version:
66
+ recorded_at: Wed, 22 Mar 2017 20:06:11 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":"R290766698","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 - 8591","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":"R290766698","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:06:11 GMT
111
+ Content-Length:
112
+ - '675'
113
+ Set-Cookie:
114
+ - TS017f1821=01a8ddc44ebab5f87d9a4796bcb04662d96c762b6be6679ec8db259e22f0a81ab6427dad8b50c17d58ba12ba3d3c561cba81eac97d;
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++2nu48+DTTz99eKBfPM1a/mJvZ/fB9s697b09fPGmWORNmy1W4Vdv
123
+ 9nYe7Xz6aHdvvPPwYO/ewf2f4sZVm5XHi2q9bNF897798GnRTM3HO/bT03f5
124
+ YtUW1TL8+E32LpuUjIwHgj7FJzvjT/2PTrJyui4J9Zn/ZfbuebHMG/roewnR
125
+ A3+8qOivj3a3n59pC0OIlyc793bo0Y+zSVEW7TW+aet1jk+fEOazrL5+nl/m
126
+ Jb74qWLFePXx748TEHUs/MErwhV/7Yx39qlX/owayUf7+ld3VObzp3mbFaUd
127
+ 1wm6qhnXr16jyav8QrE5fo6/v7Oui+bN9Yp7fN0SQPupGf7OLj4i2O+LJkN5
128
+ kS242fHz4yfHXxzjc2rlPk1fvzl+c5q+Of69P/olyfeTX5KMCG1/Op690ncM
129
+ Ps9eUW/06Mc/e9PBr2wcpggAodaZDfP5D2M2boklA3Fkv+VkfD+RJsezWU0a
130
+ wgmMfkB/fnScPi3Oz/M6X7bpqyqbAap+bZB+ShoCH5/oRH1RLduLapETLfBp
131
+ lywvK1IopXn53qe7O8xPXWoRXvLRGZN9b+f+3oOHD/END9a8v7O7u7N7fxdU
132
+ Ee5S5PDd7qc7O+nLfLlsrsvLbFlk6fFlnr74LoBoMwOGqWgG8N2smRfLi5bQ
133
+ waebB0CIUd/0sWCLj56e4O/OALhNgDphrg+hbuYiooZ/SfL/ANJFmmzUBQAA
134
+ http_version:
135
+ recorded_at: Wed, 22 Mar 2017 20:06:12 GMT
136
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,259 @@
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":"R925417762","DocDate":"2017-03-23","Discount":"0.0","Commit":false,"DocType":"SalesOrder","Addresses":[{"AddressCode":"Orig","Line1":"915
9
+ S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"915
10
+ S Jackson St","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"}],"Lines":[{"LineNo":"1-LI","Description":"Product
11
+ #2 - 2414","TaxCode":"PC030000","ItemCode":"SKU-2","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":"R925417762","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
+ - Thu, 23 Mar 2017 20:11:49 GMT
44
+ Content-Length:
45
+ - '560'
46
+ Set-Cookie:
47
+ - TS017f1821=01a8ddc44eeb202243034f3c0470406bac17aa8d4a810f273d711f6c4714e9d81593268a13e66f6fdf24ad78d9b83874d698e86118;
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++erh3f3/3wYNP9/SLp1nLX+zt7D7Y3rm3vXcPX7wpFnnTZotV+NWb
56
+ vZ1Hu7uP9h+OP9399GBnb++nuHHVZuXxolovWzTf3bEfPi2aqfnYfXr6Ll+s
57
+ 2qJahh+/yd5lk5KR8UDQp/hkZ7zvf3SSldN1SajP/C+zd8+LZd7QR99LiB74
58
+ 40VFf320u/38TFsYQrw82bm3Q49+nE2Ksmiv8U1br3N8+oQwn2X19fP8Mi/x
59
+ xfFsVitF+0PoDxVA/eG8InTx1854Z5865s+okXxkBjA0sKd5mxWlHdoJuqoZ
60
+ 3a9eo8mr/EKxOX6Ov7+zrovmzfWKe3zdEkD7qaHAzi4+ItjviyZDeZEtuNnx
61
+ 8+Mnx18c43Nq5T5NX785fnOavjn+vT/6Jcn3E/xfmigV3TTpB/TnRw9376ev
62
+ 0+9k07dNtUxft4CqXxusnxJf4uMTna0vqmV7US1yIgY+7dLlZUVsXJqX7326
63
+ u8ND6JKL8JKPzpjuezv39x48fIhveLDm/Z3d3Z3d+7ugyi9JRu+N+5d1cYGP
64
+ f+5xN5MRkf5fkvw/modCFUsEAAA=
65
+ http_version:
66
+ recorded_at: Thu, 23 Mar 2017 20:11:51 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":"R925417762","DocDate":"2017-03-23","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":"915
74
+ S Jackson St","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
+ #2 - 2414","TaxCode":"PC030000","ItemCode":"SKU-2","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":"R925417762","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
+ - Thu, 23 Mar 2017 20:11:50 GMT
111
+ Content-Length:
112
+ - '695'
113
+ Set-Cookie:
114
+ - TS017f1821=01a8ddc44e3bd630d33dafdea5eff0d962088d7e7b0f7a31c1315ea41b793272f4134b6c013fbd926c1b1dc70fd1b9b7df25ae06b7;
115
+ Path=/
116
+ body:
117
+ encoding: ASCII-8BIT
118
+ string: !binary |-
119
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
120
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
121
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tHTanpSzfKPHqUfvXq4d39/98GDT/c+
122
+ GvEXT7OWv9jb2X2wvXNve+8evnhTLPKmzRar8Ks3ezuPdncf3d8Z7917eH93
123
+ 78FPceOqzcrjRbVetmi+e99++LRopubjHfvp6bt8sWqLahl+/CZ7l01KRsYD
124
+ QZ/ik53xp/5HJ1k5XZeE+sz/Mns3MJrs3fNimTf0zfcSogf+eFHRXx/tbj8/
125
+ 0xaGQi9Pdu7t0KMfZ5OiLNprfNPW6xyfPqEhzbL6+nl+mZf44ng2q/OmwXf8
126
+ hg6CQbxSjHbGO/sElT+jRvLRPv7qE4mQ6YyPG0boRiPO26wo7dDok/ft/1V+
127
+ oTCPn+PvEyBT84i/eo0PvrOui+bN9YrhvG4B0Hz6Ilvwp8fPj58cf3FsPzfE
128
+ 3NnFR9Sfa5i+fnP85jR9c/x7f/RLku8nvyQZEdr+jDx7pe8YIM9eEd706Mfv
129
+ OSN9qsUIbojGjLeRZiw49Fd3isznnQnpUbNLbqZXnLqGAJaK74klA3GUt1NE
130
+ rdynvfn4fiJNlIZObPQD+vOjh7v309fpd7Lp26Zapq9bQNWvDdJPSYHg4xOd
131
+ qy+qZXtRLXKiBT7tkuVlRfqmNC/f+3R3J8qchJd8dMZk39u5v/fg4UN8w4M1
132
+ 7+/s7u7s3t8FVYTBFDl8t/vpzk76Ml8um+vyMlsWWXp8macvvgsg2syAYSqa
133
+ AXw3a+bF8qIldPDp5gEQYtQ3fSzY4qOnJ/i7MwBuE6BOmOtDqPNcvMqbddma
134
+ 71+vp1NC8aNfkvw/nU7kndoFAAA=
135
+ http_version:
136
+ recorded_at: Thu, 23 Mar 2017 20:11:51 GMT
137
+ - request:
138
+ method: post
139
+ uri: https://development.avalara.net/1.0/tax/get
140
+ body:
141
+ encoding: UTF-8
142
+ string: '{"DocCode":"R925417762","DocDate":"2017-03-23","Discount":"0.0","Commit":true,"DocType":"SalesInvoice","Addresses":[{"AddressCode":"Orig","Line1":"915
143
+ S Jackson St","Line2":"","City":"Montgomery","Region":"AL","PostalCode":"36104","Country":"US"},{"AddressCode":"Dest","Line1":"915
144
+ S Jackson St","Line2":"","City":"Montgomery","Region":"Alabama","Country":"US","PostalCode":"36104"},{"AddressCode":"2","Line1":"1600
145
+ Pennsylvania Ave NW","Line2":null,"City":"Washington","PostalCode":"20500","Country":"US"}],"Lines":[{"LineNo":"1-LI","Description":"Product
146
+ #2 - 2414","TaxCode":"PC030000","ItemCode":"SKU-2","Qty":1,"Amount":10.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Discounted":false,"TaxIncluded":false},{"LineNo":"1-FR","ItemCode":"Avalara
147
+ Ground","Qty":1,"Amount":5.0,"OriginCode":"2","DestinationCode":"Dest","CustomerUsageType":null,"Description":"Shipping
148
+ Charge","TaxCode":"FR000000","Discounted":false,"TaxIncluded":false}],"CustomerCode":1,"CompanyCode":"54321","CustomerUsageType":null,"ExemptionNo":null,"Client":"a0o33000004FH8l","ReferenceCode":"R925417762","DetailLevel":"Tax","CurrencyCode":"USD"}'
149
+ headers:
150
+ Accept:
151
+ - "*/*; q=0.5, application/xml"
152
+ Accept-Encoding:
153
+ - gzip, deflate
154
+ Authorization:
155
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
156
+ Content-Type:
157
+ - application/json
158
+ Content-Length:
159
+ - '1144'
160
+ User-Agent:
161
+ - Ruby
162
+ response:
163
+ status:
164
+ code: 200
165
+ message: OK
166
+ headers:
167
+ Cache-Control:
168
+ - private
169
+ Content-Type:
170
+ - text/json; charset=utf-8
171
+ Content-Encoding:
172
+ - gzip
173
+ Vary:
174
+ - Accept-Encoding
175
+ X-Aspnet-Version:
176
+ - 4.0.30319
177
+ X-Powered-By:
178
+ - ASP.NET
179
+ Date:
180
+ - Thu, 23 Mar 2017 20:11:51 GMT
181
+ Content-Length:
182
+ - '667'
183
+ Set-Cookie:
184
+ - TS017f1821=01a8ddc44e165d5e1aee13dd45ef0e3d0d663604ddfde810e8112c35c47aa56641ed83f89abc029d5bc6877422fb88f83f07732662;
185
+ Path=/
186
+ body:
187
+ encoding: ASCII-8BIT
188
+ string: !binary |-
189
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
190
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
191
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tGrvFmX7Uk1yz96lH70ej2d5k3z0Sj5
192
+ 6Gk1NZ++erh3f3/3wYNP9/SLp1nLX+zt7D7Y3rm3vXcPX7wpFnnTZotV+NWb
193
+ vZ1Hu7uP7u+Od/e5WdVm5fGiWi9bNNy9bz98WjRT8/GO/fT0Xb5YtUW1DD9+
194
+ k73LJiWj4YGgT/HJzvhT/6OTrJyuS0J65n+ZvXteLPOGPvpeQpTAHy8q+uuj
195
+ 3e3nZ9rCkODlyc69HXr042xSlEV7jW/aep3j0yeE+Syrr5/nl3mJL45ns1pp
196
+ 2R9Cf6gAqsPhD14RuvhrZ7yzTx3zZ9RIPhJCEnqdgZnPn+ZtVpR2aCfoqmZ0
197
+ v3qNJq/yC8Xm+Dn+/s66Lpo31yvu8XVLAO2nhgI7u/iIYL8vmgzlRbbgZsfP
198
+ j58cf3GMz6mV+zR9/eb4zWn65vj3/uiXJN9PfkkyIrT9GXn2St8x+Dx7Rb3R
199
+ ox//rM4I89fGkbJk0F/dCTGf/zAm5JZYMhBH+VvOx/cTaaI0dGKjH9CfHz3c
200
+ vZ++Tr+TTd821TJ93QKqfm2QfkoaAh+f6Fx9US3bi2qREy3waZcsLytSKKV5
201
+ +d6nuzvMUl1qEV7y0RmTfW/n/t6Dhw/xDQ/WvL+zu7uze38XVBEGU+Tw3e6n
202
+ Ozvpy3y5bK7Ly2xZZOnxZZ6++C6AaDMDhqloBvDdrJkXy4uW0MGnmwdAiFHf
203
+ 9LFgi4+enuDvzgC4TYA6Ya4PoW7mIqKGf0ny/wByET9+1AUAAA==
204
+ http_version:
205
+ recorded_at: Thu, 23 Mar 2017 20:11:52 GMT
206
+ - request:
207
+ method: post
208
+ uri: https://development.avalara.net/1.0/tax/cancel
209
+ body:
210
+ encoding: UTF-8
211
+ string: '{"CompanyCode":"54321","DocType":"SalesInvoice","DocCode":"R925417762","CancelCode":"DocVoided"}'
212
+ headers:
213
+ Accept:
214
+ - "*/*; q=0.5, application/xml"
215
+ Accept-Encoding:
216
+ - gzip, deflate
217
+ Authorization:
218
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
219
+ Content-Type:
220
+ - application/json
221
+ Content-Length:
222
+ - '96'
223
+ User-Agent:
224
+ - Ruby
225
+ response:
226
+ status:
227
+ code: 200
228
+ message: OK
229
+ headers:
230
+ Cache-Control:
231
+ - private
232
+ Content-Type:
233
+ - text/json; charset=utf-8
234
+ Content-Encoding:
235
+ - gzip
236
+ Vary:
237
+ - Accept-Encoding
238
+ X-Aspnet-Version:
239
+ - 4.0.30319
240
+ X-Powered-By:
241
+ - ASP.NET
242
+ Date:
243
+ - Thu, 23 Mar 2017 20:11:51 GMT
244
+ Content-Length:
245
+ - '211'
246
+ Set-Cookie:
247
+ - TS017f1821=01a8ddc44e3ffcd320b453b35a6331f3cf7633d732d5fc17e52f0d986d2dcf6dd6cd553325819fdc14f83d3215b0e6205404176812;
248
+ Path=/
249
+ body:
250
+ encoding: ASCII-8BIT
251
+ string: !binary |-
252
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
253
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
254
+ AWz2zkrayZ4hgKrIHz9+fB8/In5x8tFJtpzm5Zvs3au8WZftR49S+vBpNT2b
255
+ 0a8f7R3ce/Dgwf17Bx+Nko/e1NmyyaZtUS352/u7uw8/fUD/Prj3cP/g0/vU
256
+ RICcVLOcvv/o9Xo6zZvmo1+S/JLk/wGrG+ZsawAAAA==
257
+ http_version:
258
+ recorded_at: Thu, 23 Mar 2017 20:11:53 GMT
259
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://development.avalara.net/1.0/address/validate?City=&Country=US&Line1=&Line2=&PostalCode=&Region=AL
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 500
21
+ message: Internal Server Error
22
+ headers:
23
+ Cache-Control:
24
+ - private
25
+ Content-Type:
26
+ - text/json; charset=utf-8
27
+ X-Aspnet-Version:
28
+ - 4.0.30319
29
+ X-Powered-By:
30
+ - ASP.NET
31
+ Date:
32
+ - Wed, 22 Mar 2017 20:06:37 GMT
33
+ Content-Length:
34
+ - '251'
35
+ Set-Cookie:
36
+ - TS017f1821=01a8ddc44ec1b7cbb66180f4e8fcd4879e6b4284e81f1afbab0e92678cb9a4383adb5849446d643eaf49aa51ec8f69581e440955da;
37
+ Path=/
38
+ body:
39
+ encoding: UTF-8
40
+ string: |
41
+ {
42
+ "ResultCode": "Error",
43
+ "Messages": [
44
+ {
45
+ "Summary": "Insufficient address information",
46
+ "Details": "You must specify at least Line\/ZIP, or Line\/City\/State",
47
+ "RefersTo": "Line1",
48
+ "Severity": "Error",
49
+ "Source": "Avalara.AvaTax.Services.Address"}
50
+ ]
51
+ }
52
+ http_version:
53
+ recorded_at: Wed, 22 Mar 2017 20:06:38 GMT
54
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,59 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://development.avalara.net/1.0/address/validate?City=Montgomery&Country=US&Line1=915%20S%20Jackson%20St&Line2=&PostalCode=36104&Region=AL
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - private
25
+ Content-Type:
26
+ - text/json; charset=utf-8
27
+ Vary:
28
+ - Accept-Encoding
29
+ X-Aspnet-Version:
30
+ - 4.0.30319
31
+ X-Powered-By:
32
+ - ASP.NET
33
+ Date:
34
+ - Wed, 22 Mar 2017 20:06:38 GMT
35
+ Content-Length:
36
+ - '313'
37
+ Set-Cookie:
38
+ - TS017f1821=01a8ddc44efb8033ad89e63c833339b1a141f3eaaca8eea1c8c8d8fc6aec461610f50e4a54bdb18eedc131c6b52df0df90a958bb40;
39
+ Path=/
40
+ body:
41
+ encoding: ASCII-8BIT
42
+ string: |
43
+ {
44
+ "ResultCode": "Success",
45
+ "Address": {
46
+ "Line1": "915 S Jackson St",
47
+ "City": "Montgomery",
48
+ "Region": "AL",
49
+ "PostalCode": "36104-5716",
50
+ "Country": "US",
51
+ "County": "MONTGOMERY",
52
+ "FipsCode": "0110151000",
53
+ "CarrierRoute": "C037",
54
+ "PostNet": "361045716999",
55
+ "AddressType": "H"}
56
+ }
57
+ http_version:
58
+ recorded_at: Wed, 22 Mar 2017 20:06:39 GMT
59
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,59 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://development.avalara.net/1.0/address/validate?City=Montgomery&Country=US&Line1=915%20S%20Jackson%20St&Line2=&PostalCode=36104&Region=AL
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - Basic MTEwMDExMzA5NjoxRDEzRURBMkRDQ0M3RTRB
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - private
25
+ Content-Type:
26
+ - text/json; charset=utf-8
27
+ Vary:
28
+ - Accept-Encoding
29
+ X-Aspnet-Version:
30
+ - 4.0.30319
31
+ X-Powered-By:
32
+ - ASP.NET
33
+ Date:
34
+ - Wed, 22 Mar 2017 20:06:38 GMT
35
+ Content-Length:
36
+ - '313'
37
+ Set-Cookie:
38
+ - TS017f1821=01a8ddc44e00a5b4990a9e281217422a63e728dc0575f0417780fd7f44b0d90a1bb0cfaf032c77d465186985e9a52c67772af838cf;
39
+ Path=/
40
+ body:
41
+ encoding: ASCII-8BIT
42
+ string: |
43
+ {
44
+ "ResultCode": "Success",
45
+ "Address": {
46
+ "Line1": "915 S Jackson St",
47
+ "City": "Montgomery",
48
+ "Region": "AL",
49
+ "PostalCode": "36104-5716",
50
+ "Country": "US",
51
+ "County": "MONTGOMERY",
52
+ "FipsCode": "0110151000",
53
+ "CarrierRoute": "C037",
54
+ "PostNet": "361045716999",
55
+ "AddressType": "H"}
56
+ }
57
+ http_version:
58
+ recorded_at: Wed, 22 Mar 2017 20:06:38 GMT
59
+ recorded_with: VCR 3.0.3