8000 Update generated code for v1627 · stripe/stripe-python@a4e8268 · GitHub
[go: up one dir, main page]

Skip to content

Commit a4e8268

Browse files
Update generated code for v1627
1 parent a410300 commit a4e8268

File tree

5 files changed

+101
-3
lines changed

5 files changed

+101
-3
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1626
1+
v1627

stripe/_invoice.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,21 +689,52 @@ class LastFinalizationError(StripeObject):
689689
class Parent(StripeObject):
690690
class QuoteDetails(StripeObject):
691691
quote: str
692+
"""
693+
The quote that generated this invoice
694+
"""
692695

693696
class SubscriptionDetails(StripeObject):
694697
class PauseCollection(StripeObject):
695698
behavior: Optional[str]
699+
"""
700+
The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
701+
"""
696702
resumes_at: Optional[int]
703+
"""
704+
The time after which the subscription will resume collecting payments.
705+
"""
697706

698707
metadata: Optional[Dict[str, str]]
708+
"""
709+
Set of [key-value pairs](https://stripe.com/docs/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization.
710+
*Note: This attribute is populated only for invoices created on or after June 29, 2023.*
711+
"""
699712
pause_collection: Optional[PauseCollection]
713+
"""
714+
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
715+
"""
700716
subscription: str
717+
"""
718+
The subscription that generated this invoice
719+
"""
701720
subscription_proration_date: Optional[int]
721+
"""
722+
Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
723+
"""
702724
_inner_class_types = {"pause_collection": PauseCollection}
703725

704726
quote_details: Optional[QuoteDetails]
727+
"""
728+
Details about the quote that generated this invoice
729+
"""
705730
subscription_details: Optional[SubscriptionDetails]
731+
"""
732+
Details about the subscription that generated this invoice
733+
"""
706734
type: Literal["quote_details", "subscription_details"]
735+
"""
736+
The type of parent that generated this invoice
737+
"""
707738
_inner_class_types = {
708739
"quote_details": QuoteDetails,
709740
"subscription_details": SubscriptionDetails,

stripe/_invoice_item.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,22 @@ class InvoiceItem(
5252
class Parent(StripeObject):
5353
class SubscriptionDetails(StripeObject):
5454
subscription: str
55+
"""
56+
The subscription that generated this invoice item
57+
"""
5558
subscription_item: Optional[str]
59+
"""
60+
The subscription item that generated this invoice item
61+
"""
5662

5763
subscription_details: Optional[SubscriptionDetails]
64+
"""
65+
Details about the subscription that generated this invoice item
66+
"""
5867
type: Literal["subscription_details"]
68+
"""
69+
The type of parent that generated this invoice item
70+
"""
5971
_inner_class_types = {"subscription_details": SubscriptionDetails}
6072

6173
class Period(StripeObject):

stripe/_invoice_line_item.py

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,21 @@ class CreditedItems(StripeObject):
7272
_inner_class_types = {"credited_items": CreditedItems}
7373

7474
invoice_item: str
75+
"""
76+
The invoice item that generated this line item
77+
"""
7578
proration: bool
7679
"""
77-
Whether this is a proration.
80+
Whether this is a proration
7881
"""
7982
proration_details: Optional[ProrationDetails]
8083
"""
8184
Additional details for proration line items
8285
"""
8386
subscription: Optional[str]
87+
"""
88+
The subscription that the invoice item belongs to
89+
"""
8490
_inner_class_types = {"proration_details": ProrationDetails}
8591

8692
class SubscriptionItemDetails(StripeObject):
@@ -102,21 +108,39 @@ class CreditedItems(StripeObject):
102108
_inner_class_types = {"credited_items": CreditedItems}
103109

104110
invoice_item: Optional[str]
111+
"""
112+
The invoice item that generated this line item
113+
"""
105114
proration: bool
106115
"""
107-
Whether this is a proration.
116+
Whether this is a proration
108117
"""
109118
proration_details: Optional[ProrationDetails]
110119
"""
111120
Additional details for proration line items
112121
"""
113122
subscription: str
123+
"""
124+
The subscription that the subscription item belongs to
125+
"""
114126
subscription_item: str
127+
"""
128+
The subscription item that generated this line item
129+
"""
115130
_inner_class_types = {"proration_details": ProrationDetails}
116131

117132
invoice_item_details: Optional[InvoiceItemDetails]
133+
"""
134+
Details about the invoice item that generated this line item
135+
"""
118136
subscription_item_details: Optional[SubscriptionItemDetails]
137+
"""
138+
Details about the subscription item that generated this line item
139+
"""
119140
type: Literal["invoice_item_details", "subscription_item_details"]
141+
"""
142+
The type of parent that generated this line item
143+
"""
120144
_inner_class_types = {
121145
"invoice_item_details": InvoiceItemDetails,
122146
"subscription_item_details": SubscriptionItemDetails,

stripe/_quote_preview_invoice.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,21 +672,52 @@ class LastFinalizationError(StripeObject):
672672
class Parent(StripeObject):
673673
class QuoteDetails(StripeObject):
674674
quote: str
675+
"""
676+
The quote that generated this invoice
677+
"""
675678

676679
class SubscriptionDetails(StripeObject):
677680
class PauseCollection(StripeObject):
678681
behavior: Optional[str]
682+
"""
683+
The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
684+
"""
679685
resumes_at: Optional[int]
686+
"""
687+
The time after which the subscription will resume collecting payments.
688+
"""
680689

681690
metadata: Optional[Dict[str, str]]
691+
"""
692+
Set of [key-value pairs](https://stripe.com/docs/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization.
693+
*Note: This attribute is populated only for invoices created on or after June 29, 2023.*
694+
"""
682695
pause_collection: Optional[PauseCollection]
696+
"""
697+
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
698+
"""
683699
subscription: str
700+
"""
701+
The subscription that generated this invoice
702+
"""
684703
subscription_proration_date: Optional[int]
704+
"""
705+
Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
706+
"""
685707
_inner_class_types = {"pause_collection": PauseCollection}
686708

687709
quote_details: Optional[QuoteDetails]
710+
"""
711+
Details about the quote that generated this invoice
712+
"""
688713
subscription_details: Optional[SubscriptionDetails]
714+
"""
715+
Details about the subscription that generated this invoice
716+
"""
689717
type: Literal["quote_details", "subscription_details"]
718+
"""
719+
The type of parent that generated this invoice
720+
"""
690721
_inner_class_types = {
691722
"quote_details": QuoteDetails,
692723
"subscription_details": SubscriptionDetails,

0 commit comments

Comments
 (0)
0