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

Make tax rates properties default to empty array when unset #184

Closed bravier closed 3 years ago

bravier commented 3 years ago

InvoiceItem: Make tax_rates property default to an empty array

Real Stripe servers return an empty array if there is no tax rates on an InvoiceItem object. Let's do that in localstripe too.

https://stripe.com/docs/api/invoiceitems/object#invoiceitem_object-tax_rates


SubscriptionItem: Make tax_rates property default to an empty array

Real Stripe servers return an empty array if there is no tax rates on a SubscriptionItem object. Let's do that in localstripe too.

https://stripe.com/docs/api/subscription_items/object#subscription_item_object-tax_rates