stripe: Properly convert Period object to CreateParamsPeriod dict.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-04-30 10:56:58 -07:00 committed by Tim Abbott
parent 228ade86be
commit 9ca64b21f3
1 changed files with 4 additions and 1 deletions

View File

@ -3460,7 +3460,10 @@ class BillingSession(ABC):
currency=invoice_item.currency,
customer=stripe_invoice.customer,
description=invoice_item.description,
period=invoice_item.period,
period={
"start": invoice_item.period.start,
"end": invoice_item.period.end,
},
**price_args,
)