super_good-solidus_taxjar 0.18.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +48 -6
  3. data/CHANGELOG.md +103 -1
  4. data/Gemfile +26 -10
  5. data/PULL_REQUEST_TEMPLATE.md +0 -1
  6. data/README.md +299 -39
  7. data/Rakefile +3 -0
  8. data/app/controllers/spree/admin/taxjar_settings_controller.rb +86 -1
  9. data/app/controllers/spree/admin/taxjar_transactions_controller.rb +37 -0
  10. data/app/controllers/spree/admin/transaction_sync_batches_controller.rb +18 -0
  11. data/app/jobs/super_good/solidus_taxjar/backfill_transaction_sync_batch_job.rb +23 -0
  12. data/app/jobs/super_good/solidus_taxjar/replace_transaction_job.rb +26 -0
  13. data/app/jobs/super_good/solidus_taxjar/report_transaction_job.rb +22 -0
  14. data/app/models/super_good/solidus_taxjar/configuration.rb +27 -0
  15. data/app/models/super_good/solidus_taxjar/order_transaction.rb +16 -0
  16. data/app/models/super_good/solidus_taxjar/refund_transaction.rb +13 -0
  17. data/app/models/super_good/solidus_taxjar/transaction_sync_batch.rb +11 -0
  18. data/app/models/super_good/solidus_taxjar/transaction_sync_log.rb +8 -0
  19. data/app/overrides/spree/admin/orders_controller_override.rb +12 -0
  20. data/app/overrides/spree/admin/shared/_order_submenu/add_taxjar_sync_history_tab.html.erb.deface +6 -0
  21. data/app/overrides/spree/admin/shared/_order_summary/add_taxjar_reported_at.html.erb.deface +30 -0
  22. data/app/overrides/spree/admin/shared/_taxes_tabs/add_configuration_menu_items.html.erb.deface +5 -0
  23. data/app/overrides/super_good/solidus_taxjar/spree/order_override.rb +21 -0
  24. data/app/views/spree/admin/orders/taxjar_transactions.html.erb +4 -0
  25. data/app/views/spree/admin/shared/_transaction_sync_log_table.html.erb +35 -0
  26. data/app/views/spree/admin/taxjar_settings/_nexus_regions.html.erb +23 -0
  27. data/app/views/spree/admin/taxjar_settings/_tax_categories.html.erb +41 -0
  28. data/app/views/spree/admin/taxjar_settings/edit.html.erb +17 -0
  29. data/app/views/spree/admin/taxjar_settings/edit_no_api_key.html.erb +21 -0
  30. data/app/views/spree/admin/transaction_sync_batches/index.html.erb +50 -0
  31. data/app/views/spree/admin/transaction_sync_batches/show.html.erb +7 -0
  32. data/bin/console +2 -0
  33. data/bin/rails-engine +1 -1
  34. data/bin/sandbox +43 -36
  35. data/bin/setup +3 -3
  36. data/config/routes.rb +13 -1
  37. data/db/migrate/20210908205201_create_taxjar_order_transactions.rb +16 -0
  38. data/db/migrate/20211008175113_create_taxjar_refund_transaction.rb +15 -0
  39. data/db/migrate/20211008183858_add_transaction_date_to_order_transaction.rb +5 -0
  40. data/db/migrate/20211119143354_create_configuration.rb +8 -0
  41. data/db/migrate/20220405213958_create_transaction_sync_batches.rb +7 -0
  42. data/db/migrate/20220405215225_create_transaction_sync_logs.rb +14 -0
  43. data/db/migrate/20220908181655_add_dates_to_transaction_sync_batch.rb +6 -0
  44. data/db/migrate/20220912182210_allow_null_transaction_sync_batches_on_logs.rb +5 -0
  45. data/db/migrate/20230320211309_add_refund_transaction_to_sync_logs.rb +5 -0
  46. data/lib/generators/super_good/solidus_taxjar/install/install_generator.rb +68 -0
  47. data/lib/super_good/solidus_taxjar/api.rb +41 -9
  48. data/lib/super_good/solidus_taxjar/api_params.rb +92 -25
  49. data/lib/super_good/solidus_taxjar/backfill_transactions.rb +11 -0
  50. data/lib/super_good/solidus_taxjar/cached_api.rb +23 -0
  51. data/lib/super_good/solidus_taxjar/calculator_helper.rb +33 -4
  52. data/lib/super_good/solidus_taxjar/discount_calculator.rb +1 -1
  53. data/lib/super_good/solidus_taxjar/overrides/request_override.rb +15 -0
  54. data/lib/super_good/solidus_taxjar/reportable.rb +91 -0
  55. data/lib/super_good/solidus_taxjar/reporting.rb +44 -0
  56. data/lib/super_good/solidus_taxjar/spree/legacy_reporting_subscriber.rb +41 -0
  57. data/lib/super_good/solidus_taxjar/spree/reporting_subscriber.rb +40 -0
  58. data/lib/super_good/solidus_taxjar/tax_calculator.rb +7 -1
  59. data/lib/super_good/solidus_taxjar/testing_support/factories/address_factory.rb +11 -0
  60. data/lib/super_good/solidus_taxjar/testing_support/factories/configuration_factory.rb +11 -0
  61. data/lib/super_good/solidus_taxjar/testing_support/factories/order_transaction_factory.rb +22 -0
  62. data/lib/super_good/solidus_taxjar/testing_support/factories/refund_transaction_factory.rb +7 -0
  63. data/lib/super_good/solidus_taxjar/testing_support/factories/transaction_sync_batch_factory.rb +9 -0
  64. data/lib/super_good/solidus_taxjar/testing_support/factories/transaction_sync_log_factory.rb +18 -0
  65. data/lib/super_good/solidus_taxjar/transaction_id_generator.rb +45 -0
  66. data/lib/super_good/solidus_taxjar/version.rb +1 -1
  67. data/lib/super_good/solidus_taxjar.rb +29 -2
  68. data/spec/features/spree/admin/backfill_transactions_spec.rb +138 -0
  69. data/spec/features/spree/admin/refund_spec.rb +167 -0
  70. data/spec/features/spree/admin/reporting_to_taxjar_spec.rb +156 -0
  71. data/spec/features/spree/admin/taxjar_settings_spec.rb +58 -16
  72. data/spec/features/spree/checkout_spec.rb +58 -0
  73. data/spec/fixtures/cassettes/Admin_TaxJar_Settings/GET_sync_nexus_regions/Taxjar_API_token_is_not_set/doesn_t_make_a_request_for_the_nexus_regions.yml +57 -0
  74. data/spec/fixtures/cassettes/Admin_TaxJar_Settings/GET_sync_tax_categories/Taxjar_API_token_is_not_set/doesn_t_make_a_request_for_the_tax_categories.yml +57 -0
  75. data/spec/fixtures/cassettes/Admin_TaxJar_Settings/Taxjar_settings_tab/Taxjar_API_token_is_set/shows_the_settings_page.yml +2437 -0
  76. data/spec/fixtures/cassettes/Admin_TaxJar_Settings/Taxjar_settings_tab/Taxjar_API_token_isn_t_set/doesn_t_show_any_other_TaxJar_features.yml +57 -0
  77. data/spec/fixtures/cassettes/Admin_TaxJar_Settings/Taxjar_settings_tab/Taxjar_API_token_isn_t_set/shows_a_descriptive_error_message.yml +57 -0
  78. data/spec/fixtures/cassettes/Admin_TaxJar_Settings/Taxjar_settings_tab/Taxjar_reporting_is_enabled/shows_that_reporting_is_enabled.yml +2382 -0
  79. data/spec/fixtures/cassettes/Admin_TaxJar_Settings/Taxjar_settings_tab/order_is_shipped/the_user_backfills_their_transactions.yml +2511 -0
  80. data/spec/fixtures/cassettes/Admin_TaxJar_Settings/Taxjar_settings_tab/the_user_navigates_to_the_TaxJar_Settings.yml +2382 -0
  81. data/spec/fixtures/cassettes/Admin_Transaction_Sync_Batches/user_has_a_shipped_order/starts_a_transaction_backfill.yml +370 -0
  82. data/spec/fixtures/cassettes/Reporting_orders_to_TaxJar/shipping_a_complete_and_paid_order.yml +310 -0
  83. data/spec/fixtures/cassettes/Reporting_orders_to_TaxJar/updating_an_order_which_was_not_reported_due_to_failure/it_reports_the_order_instead_of_trying_to_replace_it.yml +794 -0
  84. data/spec/fixtures/cassettes/Reporting_orders_to_TaxJar/with_an_order_with_invalid_zipcode/retry_of_a_previously_failed_transaction_sync.yml +418 -0
  85. data/spec/fixtures/cassettes/Spree_Admin_TransactionSyncBatchesController/_create/creates_a_batch.yml +250 -0
  86. data/spec/fixtures/cassettes/Spree_Admin_TransactionSyncBatchesController/_create/creates_a_log_in_the_batch_with_an_order.yml +250 -0
  87. data/spec/fixtures/cassettes/Spree_Admin_TransactionSyncBatchesController/_create/user_supplies_a_start_date/creates_a_batch.yml +250 -0
  88. data/spec/fixtures/cassettes/Spree_Admin_TransactionSyncBatchesController/_create/user_supplies_a_start_date/user_supplies_start_and_end_date/creates_a_batch.yml +250 -0
  89. data/spec/fixtures/cassettes/SuperGood_SolidusTaxjar_CalculatorHelper/_taxable_address_/when_taxable_address_check_returns_true/with_US_address/when_the_address_is_not_within_a_nexus_region/1_3_2_2_2_1.yml +58 -0
  90. data/spec/fixtures/cassettes/SuperGood_SolidusTaxjar_CalculatorHelper/_taxable_address_/when_taxable_address_check_returns_true/with_US_address/when_the_address_is_within_a_nexus_region/1_3_2_2_1_1.yml +58 -0
  91. data/spec/fixtures/cassettes/SuperGood_SolidusTaxjar_Reporting/_refund_and_create_transaction/when_Taxjar_cannot_create_a_refund_transaction/doesn_t_create_a_new_transaction.yml +393 -0
  92. data/spec/fixtures/cassettes/SuperGood_SolidusTaxjar_Reporting/_refund_and_create_transaction/when_Taxjar_cannot_create_a_refund_transaction/raises_an_error.yml +393 -0
  93. data/spec/fixtures/cassettes/Taxjar_API_Request/logging_is_disabled/doesn_t_call_the_logger.yml +158 -0
  94. data/spec/fixtures/cassettes/Taxjar_API_Request/logging_is_enabled/calls_the_logger.yml +158 -0
  95. data/spec/fixtures/cassettes/features/spree/admin/checkout.yml +238 -0
  96. data/spec/fixtures/cassettes/features/spree/admin/refund.yml +1162 -0
  97. data/spec/jobs/super_good/solidus_taxjar/backfill_transaction_sync_batch_job_spec.rb +117 -0
  98. data/spec/jobs/super_good/solidus_taxjar/replace_transaction_job_spec.rb +95 -0
  99. data/spec/jobs/super_good/solidus_taxjar/report_transaction_job_spec.rb +76 -0
  100. data/spec/models/super_good/solidus_taxjar/configuration_spec.rb +79 -0
  101. data/spec/models/super_good/solidus_taxjar/order_transaction_spec.rb +36 -0
  102. data/spec/models/super_good/solidus_taxjar/transaction_sync_batch_spec.rb +48 -0
  103. data/spec/requests/spree/admin/order_request_spec.rb +121 -0
  104. data/spec/requests/spree/admin/taxjar_settings_request_spec.rb +198 -0
  105. data/spec/requests/spree/admin/taxjar_transactions_request_spec.rb +62 -0
  106. data/spec/requests/spree/admin/transaction_sync_batches_request_spec.rb +82 -0
  107. data/spec/spec_helper.rb +46 -3
  108. data/spec/subscribers/super_good/solidus_taxjar/spree/reporting_subscriber_spec.rb +278 -0
  109. data/spec/super_good/solidus_taxjar/addresses_spec.rb +0 -14
  110. data/spec/super_good/solidus_taxjar/api_params_spec.rb +261 -89
  111. data/spec/super_good/solidus_taxjar/api_spec.rb +152 -29
  112. data/spec/super_good/solidus_taxjar/backfill_transactions_spec.rb +24 -0
  113. data/spec/super_good/solidus_taxjar/cached_api_spec.rb +58 -0
  114. data/spec/super_good/solidus_taxjar/calculator_helper_spec.rb +131 -0
  115. data/spec/super_good/solidus_taxjar/discount_calculator_spec.rb +19 -2
  116. data/spec/super_good/solidus_taxjar/reportable_spec.rb +194 -0
  117. data/spec/super_good/solidus_taxjar/reporting_spec.rb +243 -0
  118. data/spec/super_good/solidus_taxjar/tax_calculator_spec.rb +19 -19
  119. data/spec/super_good/solidus_taxjar/tax_rate_calculator_spec.rb +8 -3
  120. data/spec/super_good/solidus_taxjar/transaction_id_generator_spec.rb +77 -0
  121. data/spec/super_good/solidus_taxjar_spec.rb +84 -0
  122. data/spec/support/checkoutable_store_shared_context.rb +19 -0
  123. data/spec/support/solidus_events_helper.rb +26 -0
  124. data/spec/taxjar/api/request_spec.rb +52 -0
  125. data/super_good-solidus_taxjar.gemspec +3 -2
  126. metadata +169 -17
  127. data/app/decorators/super_good/solidus_taxjar/spree/order_updater/fire_recalculated_event.rb +0 -18
  128. data/app/overrides/spree/admin/shared/_configuration_menu.rb +0 -11
  129. data/app/views/spree/admin/taxjar_settings/show.html.erb +0 -13
  130. data/spec/models/spree/order_updater_spec.rb +0 -12
@@ -0,0 +1,393 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.taxjar.com/v2/nexus/regions
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 20.6.0 Darwin Kernel Version
12
+ 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64
13
+ x86_64; ruby 2.7.6-p219; OpenSSL 1.1.1n 15 Mar 2022) taxjar-ruby/3.0.4'
14
+ Authorization:
15
+ - Bearer <BEARER_TOKEN>
16
+ X-Api-Version:
17
+ - '2020-08-07'
18
+ Plugin:
19
+ - supergoodsolidustaxjar
20
+ Connection:
21
+ - close
22
+ Host:
23
+ - api.taxjar.com
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Content-Length:
32
+ - '277'
33
+ Connection:
34
+ - close
35
+ Date:
36
+ - Mon, 12 Dec 2022 19:22:54 GMT
37
+ X-Amzn-Requestid:
38
+ - f7c4220b-09d2-4926-818c-27238ad8fd7c
39
+ X-Amz-Apigw-Id:
40
+ - dDDeRHAUoAMFawA=
41
+ X-Amzn-Trace-Id:
42
+ - Root=1-63977f8e-0056bfd82d6a2afc6fd895f6
43
+ X-Cache:
44
+ - Miss from cloudfront
45
+ Via:
46
+ - 1.1 a8e5d5aeee6eacca5c379e5059b1f68c.cloudfront.net (CloudFront)
47
+ X-Amz-Cf-Pop:
48
+ - SEA73-P2
49
+ X-Amz-Cf-Id:
50
+ - W1Qru0J1U3nH7IUWJC2787n0lQ3XbTScprVVwbh08RWOUT7vCXN74g==
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"regions":[{"region_code":"BC","region":"British Columbia","country_code":"CA","country":"Canada"},{"region_code":"CA","region":"California","country_code":"US","country":"United
54
+ States"},{"region_code":"NY","region":"New York","country_code":"US","country":"United
55
+ States"}]}'
56
+ http_version:
57
+ recorded_at: Mon, 12 Dec 2022 19:22:54 GMT
58
+ - request:
59
+ method: post
60
+ uri: https://api.taxjar.com/v2/taxes
61
+ body:
62
+ encoding: UTF-8
63
+ string: '{"customer_id":"1","to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"A
64
+ Different Road","line_items":[{"id":1,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
65
+ - 700816"}],"shipping":"100.0"}'
66
+ headers:
67
+ User-Agent:
68
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 20.6.0 Darwin Kernel Version
69
+ 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64
70
+ x86_64; ruby 2.7.6-p219; OpenSSL 1.1.1n 15 Mar 2022) taxjar-ruby/3.0.4'
71
+ Authorization:
72
+ - Bearer <BEARER_TOKEN>
73
+ X-Api-Version:
74
+ - '2020-08-07'
75
+ Plugin:
76
+ - supergoodsolidustaxjar
77
+ Connection:
78
+ - close
79
+ Content-Type:
80
+ - application/json; charset=UTF-8
81
+ Host:
82
+ - api.taxjar.com
83
+ response:
84
+ status:
85
+ code: 200
86
+ message: OK
87
+ headers:
88
+ Content-Type:
89
+ - application/json; charset=utf-8
90
+ Content-Length:
91
+ - '1487'
92
+ Connection:
93
+ - close
94
+ Date:
95
+ - Mon, 12 Dec 2022 19:22:54 GMT
96
+ X-Amzn-Requestid:
97
+ - 55c98e9d-3fa8-4511-a326-a042f4851124
98
+ Access-Control-Allow-Origin:
99
+ - https://developers.taxjar.com
100
+ X-Amz-Apigw-Id:
101
+ - dDDeUHiioAMFrSQ=
102
+ X-Amzn-Trace-Id:
103
+ - Root=1-63977f8e-359bf9a97b91b32425ec3aff
104
+ X-Cache:
105
+ - Miss from cloudfront
106
+ Via:
107
+ - 1.1 e77661e211afe9242e85e573f12d5534.cloudfront.net (CloudFront)
108
+ X-Amz-Cf-Pop:
109
+ - SEA73-P2
110
+ X-Amz-Cf-Id:
111
+ - 04jgvNF8tB65Il5U0MNrhcD7E7pcij0nAKFSgDXyaTfMOpvIWE698Q==
112
+ body:
113
+ encoding: UTF-8
114
+ string: '{"tax":{"amount_to_collect":9.76,"breakdown":{"city_tax_collectable":5.36,"city_tax_rate":0.04875,"city_taxable_amount":110.0,"combined_tax_rate":0.08875,"county_tax_collectable":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"line_items":[{"city_amount":0.49,"city_tax_rate":0.04875,"city_taxable_amount":10.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"id":"1","special_district_amount":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_amount":0.4,"state_sales_tax_rate":0.04,"state_taxable_amount":10.0,"tax_collectable":0.89,"taxable_amount":10.0}],"shipping":{"city_amount":4.88,"city_tax_rate":0.04875,"city_taxable_amount":100.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"special_district_amount":0.0,"special_tax_rate":0.0,"special_taxable_amount":0.0,"state_amount":4.0,"state_sales_tax_rate":0.04,"state_taxable_amount":100.0,"tax_collectable":8.88,"taxable_amount":100.0},"special_district_tax_collectable":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_tax_collectable":4.4,"state_tax_rate":0.04,"state_taxable_amount":110.0,"tax_collectable":9.76,"taxable_amount":110.0},"freight_taxable":true,"has_nexus":true,"jurisdictions":{"city":"NEW
115
+ YORK CITY","country":"US","county":"QUEENS","state":"NY"},"order_total_amount":110.0,"rate":0.08875,"shipping":100.0,"tax_source":"destination","taxable_amount":110.0}}'
116
+ http_version:
117
+ recorded_at: Mon, 12 Dec 2022 19:22:54 GMT
118
+ - request:
119
+ method: get
120
+ uri: https://api.taxjar.com/v2/transactions/orders/R1234-old-transaction
121
+ body:
122
+ encoding: UTF-8
123
+ string: ''
124
+ headers:
125
+ User-Agent:
126
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 20.6.0 Darwin Kernel Version
127
+ 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64
128
+ x86_64; ruby 2.7.6-p219; OpenSSL 1.1.1n 15 Mar 2022) taxjar-ruby/3.0.4'
129
+ Authorization:
130
+ - Bearer <BEARER_TOKEN>
131
+ X-Api-Version:
132
+ - '2020-08-07'
133
+ Plugin:
134
+ - supergoodsolidustaxjar
135
+ Connection:
136
+ - close
137
+ Host:
138
+ - api.taxjar.com
139
+ response:
140
+ status:
141
+ code: 200
142
+ message: OK
143
+ headers:
144
+ Content-Type:
145
+ - application/json; charset=utf-8
146
+ Content-Length:
147
+ - '654'
148
+ Connection:
149
+ - close
150
+ Date:
151
+ - Mon, 12 Dec 2022 19:22:55 GMT
152
+ X-Amzn-Requestid:
153
+ - 309b02a3-ec08-4128-9bff-b48de02e6068
154
+ X-Amzn-Remapped-Content-Length:
155
+ - '654'
156
+ X-Amzn-Remapped-Connection:
157
+ - keep-alive
158
+ X-Request-Id:
159
+ - FzAiHkS6j4UzMYsEIZEC
160
+ X-Api-Version:
161
+ - '2020-08-07'
162
+ X-Amz-Apigw-Id:
163
+ - dDDeZGrqIAMF2Fg=
164
+ Cache-Control:
165
+ - max-age=0, private, must-revalidate
166
+ X-Amzn-Remapped-Server:
167
+ - Cowboy
168
+ X-Amzn-Remapped-Date:
169
+ - Mon, 12 Dec 2022 19:22:55 GMT
170
+ X-Cache:
171
+ - Miss from cloudfront
172
+ Via:
173
+ - 1.1 f62c9ca47e35df5c65764381977823a6.cloudfront.net (CloudFront)
174
+ X-Amz-Cf-Pop:
175
+ - SEA73-P2
176
+ X-Amz-Cf-Id:
177
+ - t3b9R8DtgisroVs-4gWLRrxoGNxSXhWsxVV5YOrHEIkJ-9cbCFxy0Q==
178
+ body:
179
+ encoding: UTF-8
180
+ string: '{"order":{"user_id":225397,"transaction_reference_id":null,"transaction_id":"R1234-old-transaction","transaction_date":"2022-07-18T00:22:11.000Z","to_zip":"11430","to_street":"A
181
+ Different Road","to_state":"NY","to_country":"US","to_city":"HERNDON","shipping":"100.0","sales_tax":"9.77","provider":"api","line_items":[{"unit_price":"10.0","sales_tax":"0.89","quantity":1,"product_tax_code":"TaxCode
182
+ - 703184","product_identifier":"SKU-1","id":0,"discount":"0.0","description":"Product
183
+ #1 - 3375 - Master"}],"from_zip":null,"from_street":null,"from_state":null,"from_country":"US","from_city":null,"exemption_type":null,"customer_id":"4","amount":"110.0"}}'
184
+ http_version:
185
+ recorded_at: Mon, 12 Dec 2022 19:22:55 GMT
186
+ - request:
187
+ method: get
188
+ uri: https://api.taxjar.com/v2/transactions/refunds/R1234-old-transaction-REFUND
189
+ body:
190
+ encoding: UTF-8
191
+ string: ''
192
+ headers:
193
+ User-Agent:
194
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 20.6.0 Darwin Kernel Version
195
+ 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64
196
+ x86_64; ruby 2.7.6-p219; OpenSSL 1.1.1n 15 Mar 2022) taxjar-ruby/3.0.4'
197
+ Authorization:
198
+ - Bearer <BEARER_TOKEN>
199
+ X-Api-Version:
200
+ - '2020-08-07'
201
+ Plugin:
202
+ - supergoodsolidustaxjar
203
+ Connection:
204
+ - close
205
+ Host:
206
+ - api.taxjar.com
207
+ response:
208
+ status:
209
+ code: 200
210
+ message: OK
211
+ headers:
212
+ Content-Type:
213
+ - application/json; charset=utf-8
214
+ Content-Length:
215
+ - '687'
216
+ Connection:
217
+ - close
218
+ Date:
219
+ - Mon, 12 Dec 2022 19:22:55 GMT
220
+ X-Amzn-Requestid:
221
+ - ea3c4548-c15c-4265-be8f-255072404cc7
222
+ X-Amzn-Remapped-Content-Length:
223
+ - '687'
224
+ X-Amzn-Remapped-Connection:
225
+ - keep-alive
226
+ X-Request-Id:
227
+ - FzAiHlf4KUWP7BvMGCSD
228
+ X-Api-Version:
229
+ - '2020-08-07'
230
+ X-Amz-Apigw-Id:
231
+ - dDDecHdJIAMFfCA=
232
+ Cache-Control:
233
+ - max-age=0, private, must-revalidate
234
+ X-Amzn-Remapped-Server:
235
+ - Cowboy
236
+ X-Amzn-Remapped-Date:
237
+ - Mon, 12 Dec 2022 19:22:55 GMT
238
+ X-Cache:
239
+ - Miss from cloudfront
240
+ Via:
241
+ - 1.1 76dcc62b68091cc715d50b5017be77fc.cloudfront.net (CloudFront)
242
+ X-Amz-Cf-Pop:
243
+ - SEA73-P2
244
+ X-Amz-Cf-Id:
245
+ - rYRAcfXPNPyUEXNBf0WhidBFtCoB7h_mxsA7DLM3lR_WAJkq5nhUKA==
246
+ body:
247
+ encoding: UTF-8
248
+ string: '{"refund":{"user_id":225397,"transaction_reference_id":"R1234-old-transaction","transaction_id":"R1234-old-transaction-REFUND","transaction_date":"2022-07-18T00:22:11.000Z","to_zip":"11430","to_street":"A
249
+ Different Road","to_state":"NY","to_country":"US","to_city":"HERNDON","shipping":"-100.0","sales_tax":"-9.77","provider":"api","line_items":[{"unit_price":"-10.0","sales_tax":"-0.89","quantity":1,"product_tax_code":"TaxCode
250
+ - 703184","product_identifier":"SKU-1","id":0,"discount":"0.0","description":"Product
251
+ #1 - 3375 - Master"}],"from_zip":null,"from_street":null,"from_state":null,"from_country":"US","from_city":null,"exemption_type":null,"customer_id":null,"amount":"-110.0"}}'
252
+ http_version:
253
+ recorded_at: Mon, 12 Dec 2022 19:22:55 GMT
254
+ - request:
255
+ method: get
256
+ uri: https://api.taxjar.com/v2/transactions/orders/R1234-old-transaction
257
+ body:
258
+ encoding: UTF-8
259
+ string: ''
260
+ headers:
261
+ User-Agent:
262
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 20.6.0 Darwin Kernel Version
263
+ 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64
264
+ x86_64; ruby 2.7.6-p219; OpenSSL 1.1.1n 15 Mar 2022) taxjar-ruby/3.0.4'
265
+ Authorization:
266
+ - Bearer <BEARER_TOKEN>
267
+ X-Api-Version:
268
+ - '2020-08-07'
269
+ Plugin:
270
+ - supergoodsolidustaxjar
271
+ Connection:
272
+ - close
273
+ Host:
274
+ - api.taxjar.com
275
+ response:
276
+ status:
277
+ code: 200
278
+ message: OK
279
+ headers:
280
+ Content-Type:
281
+ - application/json; charset=utf-8
282
+ Content-Length:
283
+ - '654'
284
+ Connection:
285
+ - close
286
+ Date:
287
+ - Mon, 12 Dec 2022 19:22:55 GMT
288
+ X-Amzn-Requestid:
289
+ - 53e0c8c9-afe3-4491-a75e-bdcbe585ca77
290
+ X-Amzn-Remapped-Content-Length:
291
+ - '654'
292
+ X-Amzn-Remapped-Connection:
293
+ - keep-alive
294
+ X-Request-Id:
295
+ - FzAiHmylioTJnaoar0HD
296
+ X-Api-Version:
297
+ - '2020-08-07'
298
+ X-Amz-Apigw-Id:
299
+ - dDDegHK5IAMFpiQ=
300
+ Cache-Control:
301
+ - max-age=0, private, must-revalidate
302
+ X-Amzn-Remapped-Server:
303
+ - Cowboy
304
+ X-Amzn-Remapped-Date:
305
+ - Mon, 12 Dec 2022 19:22:55 GMT
306
+ X-Cache:
307
+ - Miss from cloudfront
308
+ Via:
309
+ - 1.1 020978022b22df6352245f09cfbc410c.cloudfront.net (CloudFront)
310
+ X-Amz-Cf-Pop:
311
+ - SEA73-P2
312
+ X-Amz-Cf-Id:
313
+ - WhyPhaltV50mcOYlevlubepWT8U3iQlBJnJqJeBUQKZZeg7Ud-DZ_g==
314
+ body:
315
+ encoding: UTF-8
316
+ string: '{"order":{"user_id":225397,"transaction_reference_id":null,"transaction_id":"R1234-old-transaction","transaction_date":"2022-07-18T00:22:11.000Z","to_zip":"11430","to_street":"A
317
+ Different Road","to_state":"NY","to_country":"US","to_city":"HERNDON","shipping":"100.0","sales_tax":"9.77","provider":"api","line_items":[{"unit_price":"10.0","sales_tax":"0.89","quantity":1,"product_tax_code":"TaxCode
318
+ - 703184","product_identifier":"SKU-1","id":0,"discount":"0.0","description":"Product
319
+ #1 - 3375 - Master"}],"from_zip":null,"from_street":null,"from_state":null,"from_country":"US","from_city":null,"exemption_type":null,"customer_id":"4","amount":"110.0"}}'
320
+ http_version:
321
+ recorded_at: Mon, 12 Dec 2022 19:22:55 GMT
322
+ - request:
323
+ method: post
324
+ uri: https://api.taxjar.com/v2/transactions/refunds
325
+ body:
326
+ encoding: UTF-8
327
+ string: '{"to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"A
328
+ Different Road","transaction_id":"R1234-old-transaction-REFUND","transaction_reference_id":"R1234-old-transaction","transaction_date":"2022-12-12T19:22:54Z","amount":-110.0,"sales_tax":-9.77,"shipping":-100.0,"line_items":[{"unit_price":-10.0,"sales_tax":-0.89,"quantity":1,"product_tax_code":"TaxCode
329
+ - 703184","product_identifier":"SKU-1","id":0,"discount":-0.0,"description":"Product
330
+ #1 - 3375 - Master"}]}'
331
+ headers:
332
+ User-Agent:
333
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 20.6.0 Darwin Kernel Version
334
+ 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64
335
+ x86_64; ruby 2.7.6-p219; OpenSSL 1.1.1n 15 Mar 2022) taxjar-ruby/3.0.4'
336
+ Authorization:
337
+ - Bearer <BEARER_TOKEN>
338
+ X-Api-Version:
339
+ - '2020-08-07'
340
+ Plugin:
341
+ - supergoodsolidustaxjar
342
+ Connection:
343
+ - close
344
+ Content-Type:
345
+ - application/json; charset=UTF-8
346
+ Host:
347
+ - api.taxjar.com
348
+ response:
349
+ status:
350
+ code: 422
351
+ message: Unprocessable Entity
352
+ headers:
353
+ Content-Type:
354
+ - application/json; charset=utf-8
355
+ Content-Length:
356
+ - '110'
357
+ Connection:
358
+ - close
359
+ Date:
360
+ - Mon, 12 Dec 2022 19:22:56 GMT
361
+ X-Amzn-Requestid:
362
+ - b40d16b7-bab8-4bd1-87b3-6e3169eaa93c
363
+ X-Amzn-Remapped-Content-Length:
364
+ - '110'
365
+ X-Amzn-Remapped-Connection:
366
+ - keep-alive
367
+ X-Request-Id:
368
+ - FzAiHnmNbI55fybMSE0D
369
+ X-Api-Version:
370
+ - '2020-08-07'
371
+ X-Amz-Apigw-Id:
372
+ - dDDeiFyRIAMFnxQ=
373
+ Cache-Control:
374
+ - max-age=0, private, must-revalidate
375
+ X-Amzn-Remapped-Server:
376
+ - Cowboy
377
+ X-Amzn-Remapped-Date:
378
+ - Mon, 12 Dec 2022 19:22:56 GMT
379
+ X-Cache:
380
+ - Error from cloudfront
381
+ Via:
382
+ - 1.1 ca66331b52971370c4e54619e8a952cc.cloudfront.net (CloudFront)
383
+ X-Amz-Cf-Pop:
384
+ - SEA73-P2
385
+ X-Amz-Cf-Id:
386
+ - 5i6dMHBZ2570am8ClBOr5EjJx-TO1QbXq5obvzGZKhFm0nLyuDOEIQ==
387
+ body:
388
+ encoding: UTF-8
389
+ string: '{"status":422,"error":"Unprocessable Entity","detail":"Provider tranx
390
+ already imported for your user account"}'
391
+ http_version:
392
+ recorded_at: Mon, 12 Dec 2022 19:22:56 GMT
393
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,158 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.sandbox.taxjar.com/v2/summary_rates
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - 'TaxJar/Ruby (Darwin Nicks-Mac-mini.local 21.2.0 Darwin Kernel Version 21.2.0:
12
+ Sun Nov 28 20:29:10 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T8101 x86_64;
13
+ ruby 2.6.9-p207; OpenSSL 1.1.1m 14 Dec 2021) taxjar-ruby/3.0.2'
14
+ Authorization:
15
+ - Bearer <BEARER_TOKEN>
16
+ Connection:
17
+ - close
18
+ Host:
19
+ - api.sandbox.taxjar.com
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Cache-Control:
26
+ - max-age=0, private, must-revalidate
27
+ Content-Type:
28
+ - application/json
29
+ Etag:
30
+ - W/"e37b629cd4bb4ff95bc96bb6f5fae72b"
31
+ Vary:
32
+ - Origin
33
+ X-Request-Id:
34
+ - 7e9f8b53-4d81-4328-a352-9ebf5eb36a30
35
+ X-Runtime:
36
+ - '0.026216'
37
+ Content-Length:
38
+ - '16208'
39
+ Connection:
40
+ - Close
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: '{"summary_rates":[{"country_code":"AT","country":"Austria","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.2},"average_rate":{"label":"VAT","rate":0.2}},{"country_code":"BE","country":"Belgium","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.21},"average_rate":{"label":"VAT","rate":0.21}},{"country_code":"BG","country":"Bulgaria","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.2},"average_rate":{"label":"VAT","rate":0.2}},{"country_code":"CA","country":"Canada","region_code":"AB","region":"Alberta","minimum_rate":{"label":"GST","rate":0.05},"average_rate":{"label":"GST","rate":0.05}},{"country_code":"CA","country":"Canada","region_code":"BC","region":"British
44
+ Columbia","minimum_rate":{"label":"GST","rate":0.05},"average_rate":{"label":"GST/PST","rate":0.12}},{"country_code":"CA","country":"Canada","region_code":"MB","region":"Manitoba","minimum_rate":{"label":"GST","rate":0.05},"average_rate":{"label":"GST/PST","rate":0.13}},{"country_code":"US","country":"United
45
+ States","region_code":"SC","region":"South Carolina","minimum_rate":{"label":"State
46
+ Tax","rate":0.06},"average_rate":{"label":"Tax","rate":0.0736}},{"country_code":"CA","country":"Canada","region_code":"NS","region":"Nova
47
+ Scotia","minimum_rate":{"label":"GST","rate":0.05},"average_rate":{"label":"HST","rate":0.15}},{"country_code":"CA","country":"Canada","region_code":"NT","region":"Northwest
48
+ Territories","minimum_rate":{"label":"GST","rate":0.05},"average_rate":{"label":"GST","rate":0.05}},{"country_code":"CA","country":"Canada","region_code":"NU","region":"Nunavut","minimum_rate":{"label":"GST","rate":0.05},"average_rate":{"label":"GST","rate":0.05}},{"country_code":"CA","country":"Canada","region_code":"ON","region":"Ontario","minimum_rate":{"label":"GST","rate":0.05},"average_rate":{"label":"HST","rate":0.13}},{"country_code":"CA","country":"Canada","region_code":"QC","region":"Quebec","minimum_rate":{"label":"GST","rate":0.05},"average_rate":{"label":"GST/QST","rate":0.1498}},{"country_code":"CA","country":"Canada","region_code":"YT","region":"Yukon","minimum_rate":{"label":"GST","rate":0.05},"average_rate":{"label":"GST","rate":0.05}},{"country_code":"CY","country":"Cyprus","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.19},"average_rate":{"label":"VAT","rate":0.19}},{"country_code":"CZ","country":"Czech
49
+ Republic","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.21},"average_rate":{"label":"VAT","rate":0.21}},{"country_code":"DE","country":"Germany","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.19},"average_rate":{"label":"VAT","rate":0.19}},{"country_code":"DK","country":"Denmark","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.25},"average_rate":{"label":"VAT","rate":0.25}},{"country_code":"EE","country":"Estonia","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.2},"average_rate":{"label":"VAT","rate":0.2}},{"country_code":"EL","country":"Greece","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.24},"average_rate":{"label":"VAT","rate":0.24}},{"country_code":"ES","country":"Spain","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.21},"average_rate":{"label":"VAT","rate":0.21}},{"country_code":"FI","country":"Finland","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.24},"average_rate":{"label":"VAT","rate":0.24}},{"country_code":"FR","country":"France","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.2},"average_rate":{"label":"VAT","rate":0.2}},{"country_code":"HR","country":"Croatia","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.25},"average_rate":{"label":"VAT","rate":0.25}},{"country_code":"HU","country":"Hungary","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.27},"average_rate":{"label":"VAT","rate":0.27}},{"country_code":"IE","country":"Ireland","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.23},"average_rate":{"label":"VAT","rate":0.23}},{"country_code":"IT","country":"Italy","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.22},"average_rate":{"label":"VAT","rate":0.22}},{"country_code":"LT","country":"Lithuania","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.21},"average_rate":{"label":"VAT","rate":0.21}},{"country_code":"LU","country":"Luxembourg","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.17},"average_rate":{"label":"VAT","rate":0.17}},{"country_code":"LV","country":"Latvia","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.21},"average_rate":{"label":"VAT","rate":0.21}},{"country_code":"MT","country":"Malta","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.18},"average_rate":{"label":"VAT","rate":0.18}},{"country_code":"NL","country":"Netherlands","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.21},"average_rate":{"label":"VAT","rate":0.21}},{"country_code":"PL","country":"Poland","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.23},"average_rate":{"label":"VAT","rate":0.23}},{"country_code":"PT","country":"Portugal","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.23},"average_rate":{"label":"VAT","rate":0.23}},{"country_code":"US","country":"United
50
+ States","region_code":"NC","region":"North Carolina","minimum_rate":{"label":"State
51
+ Tax","rate":0.0475},"average_rate":{"label":"Tax","rate":0.069}},{"country_code":"SE","country":"Sweden","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.25},"average_rate":{"label":"VAT","rate":0.25}},{"country_code":"SI","country":"Slovenia","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.22},"average_rate":{"label":"VAT","rate":0.22}},{"country_code":"SK","country":"Slovakia","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.2},"average_rate":{"label":"VAT","rate":0.2}},{"country_code":"UK","country":"United
52
+ Kingdom","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.2},"average_rate":{"label":"VAT","rate":0.2}},{"country_code":"US","country":"United
53
+ States","region_code":"CT","region":"Connecticut","minimum_rate":{"label":"State
54
+ Tax","rate":0.0635},"average_rate":{"label":"Tax","rate":0.0635}},{"country_code":"US","country":"United
55
+ States","region_code":"DC","region":"District of Columbia","minimum_rate":{"label":"State
56
+ Tax","rate":0.0575},"average_rate":{"label":"Tax","rate":0.0575}},{"country_code":"US","country":"United
57
+ States","region_code":"DE","region":"Delaware","minimum_rate":{"label":"State
58
+ Tax","rate":0.0},"average_rate":{"label":"Tax","rate":0.0}},{"country_code":"US","country":"United
59
+ States","region_code":"HI","region":"Hawaii","minimum_rate":{"label":"State
60
+ Tax","rate":0.04},"average_rate":{"label":"Tax","rate":0.0424}},{"country_code":"US","country":"United
61
+ States","region_code":"IN","region":"Indiana","minimum_rate":{"label":"State
62
+ Tax","rate":0.07},"average_rate":{"label":"Tax","rate":0.07}},{"country_code":"US","country":"United
63
+ States","region_code":"KY","region":"Kentucky","minimum_rate":{"label":"State
64
+ Tax","rate":0.06},"average_rate":{"label":"Tax","rate":0.06}},{"country_code":"US","country":"United
65
+ States","region_code":"MA","region":"Massachusetts","minimum_rate":{"label":"State
66
+ Tax","rate":0.0625},"average_rate":{"label":"Tax","rate":0.0625}},{"country_code":"US","country":"United
67
+ States","region_code":"MD","region":"Maryland","minimum_rate":{"label":"State
68
+ Tax","rate":0.06},"average_rate":{"label":"Tax","rate":0.06}},{"country_code":"US","country":"United
69
+ States","region_code":"ME","region":"Maine","minimum_rate":{"label":"State
70
+ Tax","rate":0.055},"average_rate":{"label":"Tax","rate":0.055}},{"country_code":"US","country":"United
71
+ States","region_code":"MI","region":"Michigan","minimum_rate":{"label":"State
72
+ Tax","rate":0.06},"average_rate":{"label":"Tax","rate":0.06}},{"country_code":"US","country":"United
73
+ States","region_code":"ID","region":"Idaho","minimum_rate":{"label":"State
74
+ Tax","rate":0.06},"average_rate":{"label":"Tax","rate":0.0604}},{"country_code":"US","country":"United
75
+ States","region_code":"MT","region":"Montana","minimum_rate":{"label":"State
76
+ Tax","rate":0.0},"average_rate":{"label":"Tax","rate":0.0}},{"country_code":"CA","country":"Canada","region_code":"SK","region":"Saskatchewan","minimum_rate":{"label":"GST","rate":0.05},"average_rate":{"label":"GST/PST","rate":0.11}},{"country_code":"US","country":"United
77
+ States","region_code":"NV","region":"Nevada","minimum_rate":{"label":"State
78
+ Tax","rate":0.046},"average_rate":{"label":"Tax","rate":0.0778}},{"country_code":"US","country":"United
79
+ States","region_code":"NH","region":"New Hampshire","minimum_rate":{"label":"State
80
+ Tax","rate":0.0},"average_rate":{"label":"Tax","rate":0.0}},{"country_code":"US","country":"United
81
+ States","region_code":"NJ","region":"New Jersey","minimum_rate":{"label":"State
82
+ Tax","rate":0.07},"average_rate":{"label":"Tax","rate":0.0663}},{"country_code":"US","country":"United
83
+ States","region_code":"OR","region":"Oregon","minimum_rate":{"label":"State
84
+ Tax","rate":0.0},"average_rate":{"label":"Tax","rate":0.0}},{"country_code":"US","country":"United
85
+ States","region_code":"PR","region":"Puerto Rico","minimum_rate":{"label":"State
86
+ Tax","rate":0.115},"average_rate":{"label":"Tax","rate":0.115}},{"country_code":"US","country":"United
87
+ States","region_code":"RI","region":"Rhode Island","minimum_rate":{"label":"State
88
+ Tax","rate":0.07},"average_rate":{"label":"Tax","rate":0.07}},{"country_code":"US","country":"United
89
+ States","region_code":"TN","region":"Tennessee","minimum_rate":{"label":"State
90
+ Tax","rate":0.07},"average_rate":{"label":"Tax","rate":0.095}},{"country_code":"US","country":"United
91
+ States","region_code":"VA","region":"Virginia","minimum_rate":{"label":"State
92
+ Tax","rate":0.043},"average_rate":{"label":"Tax","rate":0.0546}},{"country_code":"US","country":"United
93
+ States","region_code":"NM","region":"New Mexico","minimum_rate":{"label":"State
94
+ Tax","rate":0.0513},"average_rate":{"label":"Tax","rate":0.0703}},{"country_code":"US","country":"United
95
+ States","region_code":"NY","region":"New York","minimum_rate":{"label":"State
96
+ Tax","rate":0.04},"average_rate":{"label":"Tax","rate":0.0819}},{"country_code":"US","country":"United
97
+ States","region_code":"LA","region":"Louisiana","minimum_rate":{"label":"State
98
+ Tax","rate":0.05},"average_rate":{"label":"Tax","rate":0.0958}},{"country_code":"US","country":"United
99
+ States","region_code":"IL","region":"Illinois","minimum_rate":{"label":"State
100
+ Tax","rate":0.0625},"average_rate":{"label":"Tax","rate":0.075}},{"country_code":"US","country":"United
101
+ States","region_code":"MS","region":"Mississippi","minimum_rate":{"label":"State
102
+ Tax","rate":0.07},"average_rate":{"label":"Tax","rate":0.0702}},{"country_code":"US","country":"United
103
+ States","region_code":"IA","region":"Iowa","minimum_rate":{"label":"State
104
+ Tax","rate":0.06},"average_rate":{"label":"Tax","rate":0.0689}},{"country_code":"US","country":"United
105
+ States","region_code":"AL","region":"Alabama","minimum_rate":{"label":"State
106
+ Tax","rate":0.04},"average_rate":{"label":"Tax","rate":0.0836}},{"country_code":"CA","country":"Canada","region_code":"NL","region":"Newfoundland
107
+ and Labrador","minimum_rate":{"label":"GST","rate":0.05},"average_rate":{"label":"HST","rate":0.15}},{"country_code":"US","country":"United
108
+ States","region_code":"UT","region":"Utah","minimum_rate":{"label":"State
109
+ Tax","rate":0.047},"average_rate":{"label":"Tax","rate":0.0661}},{"country_code":"CA","country":"Canada","region_code":"PE","region":"Prince
110
+ Edward Island","minimum_rate":{"label":"GST","rate":0.05},"average_rate":{"label":"HST","rate":0.15}},{"country_code":"US","country":"United
111
+ States","region_code":"CA","region":"California","minimum_rate":{"label":"State
112
+ Tax","rate":0.0625},"average_rate":{"label":"Tax","rate":0.0826}},{"country_code":"US","country":"United
113
+ States","region_code":"WV","region":"West Virginia","minimum_rate":{"label":"State
114
+ Tax","rate":0.06},"average_rate":{"label":"Tax","rate":0.061}},{"country_code":"US","country":"United
115
+ States","region_code":"NE","region":"Nebraska","minimum_rate":{"label":"State
116
+ Tax","rate":0.055},"average_rate":{"label":"Tax","rate":0.0586}},{"country_code":"US","country":"United
117
+ States","region_code":"FL","region":"Florida","minimum_rate":{"label":"State
118
+ Tax","rate":0.06},"average_rate":{"label":"Tax","rate":0.0682}},{"country_code":"US","country":"United
119
+ States","region_code":"VT","region":"Vermont","minimum_rate":{"label":"State
120
+ Tax","rate":0.06},"average_rate":{"label":"Tax","rate":0.0604}},{"country_code":"US","country":"United
121
+ States","region_code":"TX","region":"Texas","minimum_rate":{"label":"State
122
+ Tax","rate":0.0625},"average_rate":{"label":"Tax","rate":0.0744}},{"country_code":"US","country":"United
123
+ States","region_code":"WY","region":"Wyoming","minimum_rate":{"label":"State
124
+ Tax","rate":0.04},"average_rate":{"label":"Tax","rate":0.0529}},{"country_code":"US","country":"United
125
+ States","region_code":"WI","region":"Wisconsin","minimum_rate":{"label":"State
126
+ Tax","rate":0.05},"average_rate":{"label":"Tax","rate":0.0546}},{"country_code":"US","country":"United
127
+ States","region_code":"PA","region":"Pennsylvania","minimum_rate":{"label":"State
128
+ Tax","rate":0.06},"average_rate":{"label":"Tax","rate":0.061}},{"country_code":"US","country":"United
129
+ States","region_code":"KS","region":"Kansas","minimum_rate":{"label":"State
130
+ Tax","rate":0.065},"average_rate":{"label":"Tax","rate":0.0805}},{"country_code":"US","country":"United
131
+ States","region_code":"AR","region":"Arkansas","minimum_rate":{"label":"State
132
+ Tax","rate":0.065},"average_rate":{"label":"Tax","rate":0.0857}},{"country_code":"US","country":"United
133
+ States","region_code":"MO","region":"Missouri","minimum_rate":{"label":"State
134
+ Tax","rate":0.0423},"average_rate":{"label":"Tax","rate":0.0728}},{"country_code":"US","country":"United
135
+ States","region_code":"AZ","region":"Arizona","minimum_rate":{"label":"State
136
+ Tax","rate":0.056},"average_rate":{"label":"Tax","rate":0.0787}},{"country_code":"US","country":"United
137
+ States","region_code":"OK","region":"Oklahoma","minimum_rate":{"label":"State
138
+ Tax","rate":0.045},"average_rate":{"label":"Tax","rate":0.0786}},{"country_code":"US","country":"United
139
+ States","region_code":"MN","region":"Minnesota","minimum_rate":{"label":"State
140
+ Tax","rate":0.0688},"average_rate":{"label":"Tax","rate":0.0718}},{"country_code":"US","country":"United
141
+ States","region_code":"AK","region":"Alaska","minimum_rate":{"label":"State
142
+ Tax","rate":0.0},"average_rate":{"label":"Tax","rate":0.0154}},{"country_code":"US","country":"United
143
+ States","region_code":"ND","region":"North Dakota","minimum_rate":{"label":"State
144
+ Tax","rate":0.05},"average_rate":{"label":"Tax","rate":0.0551}},{"country_code":"US","country":"United
145
+ States","region_code":"WA","region":"Washington","minimum_rate":{"label":"State
146
+ Tax","rate":0.065},"average_rate":{"label":"Tax","rate":0.0876}},{"country_code":"US","country":"United
147
+ States","region_code":"GA","region":"Georgia","minimum_rate":{"label":"State
148
+ Tax","rate":0.04},"average_rate":{"label":"Tax","rate":0.0733}},{"country_code":"US","country":"United
149
+ States","region_code":"OH","region":"Ohio","minimum_rate":{"label":"State
150
+ Tax","rate":0.0575},"average_rate":{"label":"Tax","rate":0.071}},{"country_code":"US","country":"United
151
+ States","region_code":"CO","region":"Colorado","minimum_rate":{"label":"State
152
+ Tax","rate":0.029},"average_rate":{"label":"Tax","rate":0.0647}},{"country_code":"CA","country":"Canada","region_code":"NB","region":"New
153
+ Brunswick","minimum_rate":{"label":"GST","rate":0.05},"average_rate":{"label":"HST","rate":0.15}},{"country_code":"US","country":"United
154
+ States","region_code":"SD","region":"South Dakota","minimum_rate":{"label":"State
155
+ Tax","rate":0.045},"average_rate":{"label":"Tax","rate":0.056}},{"country_code":"RO","country":"Romania","region_code":null,"region":null,"minimum_rate":{"label":"VAT","rate":0.19},"average_rate":{"label":"VAT","rate":0.19}}]}'
156
+ http_version:
157
+ recorded_at: Wed, 09 Mar 2022 23:01:20 GMT
158
+ recorded_with: VCR 4.0.0