Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code for beta #1429

Merged
merged 18 commits into from
Dec 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update generated code for v1389
  • Loading branch information
stripe-openapi[bot] committed Dec 6, 2024
commit ebba892d61e3195ab7fd2761e8f936d5fe2aa1d1
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1388
v1389
23 changes: 21 additions & 2 deletions stripe/billing/_credit_balance_transaction.py
Original file line number Diff line number Diff line change
@@ -47,12 +47,31 @@ class Monetary(StripeObject):
"""
_inner_class_types = {"monetary": Monetary}

class CreditsApplicationInvoiceVoided(StripeObject):
invoice: ExpandableField["Invoice"]
"""
The invoice to which the reinstated billing credits were originally applied.
"""
invoice_line_item: str
"""
The invoice line item to which the reinstated billing credits were originally applied.
"""

amount: Amount
type: Literal["credits_granted"]
credits_application_invoice_voided: Optional[
CreditsApplicationInvoiceVoided
]
"""
Details of the invoice to which the reinstated credits were originally applied. Only present if `type` is `credits_application_invoice_voided`.
"""
type: Literal["credits_application_invoice_voided", "credits_granted"]
"""
The type of credit transaction.
"""
_inner_class_types = {"amount": Amount}
_inner_class_types = {
"amount": Amount,
"credits_application_invoice_voided": CreditsApplicationInvoiceVoided,
}

class Debit(StripeObject):
class Amount(StripeObject):
Loading