Skip to content

Commit 7242072

Browse files
committed
Invoice: Add customer_email in invoice object
[Stripe documentation on invoices] describes this field like this: > customer_email - nullable string > > The customer’s email. Until the invoice is finalized, this field will equal > customer.email. Once the invoice is finalized, this field will no longer be > updated. So it's the field to use to know where the invoice was effectively sent if it was sent by email after being finalized. [Stripe documentation on invoices]: https://docs.stripe.com/api/invoices/object#invoice_object-customer_email
1 parent fdbe945 commit 7242072

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

localstripe/resources.py

+1
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,7 @@ def __init__(self, customer=None, subscription=None, metadata=None,
12081208
super().__init__()
12091209

12101210
self.customer = customer
1211+
self.customer_email = cus.email
12111212
self.subscription = subscription
12121213
self.tax_percent = tax_percent
12131214
self.default_tax_rates = default_tax_rates

0 commit comments

Comments
 (0)