adrienverge / localstripe

A fake but stateful Stripe server that you can run locally, for testing purposes.
GNU General Public License v3.0
192 stars 59 forks source link

fix(resources): Make tax_rates default to empty array everywhere #191

Closed bravier closed 3 years ago

bravier commented 3 years ago

Before, tax_rates property could either be null or an empty array at different places in the code despite previous commits 84fa00b and 4f7c8e3.

Commit 4f7c8e3 even broke localstripe tests.

Stripe docs says InvoiceItems' and SubscriptionItems' tax_rates is an array:

So let's use arrays everywhere.

Note: same commit could be done for default_tax_rates.