Skip to content

Commit 0770f46

Browse files
Update generated code for v2217 and
1 parent 9db7e76 commit 0770f46

42 files changed

Lines changed: 3138 additions & 509 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b0095e1dae0437fa60f0933a38f0914e8bba44ff
1+
b5cc8d9d026e6840410576d03adac922b62bc30d

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2207
1+
v2217

stripe/_api_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# -*- coding: utf-8 -*-
22
# File generated from our OpenAPI spec
33
class _ApiVersion:
4-
CURRENT = "2026-03-25.preview"
4+
CURRENT = "2026-04-01.preview"

stripe/_coupon.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,22 @@ class Script(StripeObject):
6161
class ServicePeriod(StripeObject):
6262
class Iterations(StripeObject):
6363
count: Optional[int]
64+
"""
65+
The number of iterations the service period will repeat for. Only used when type is `count`.
66+
"""
6467
type: Literal["count", "forever"]
68+
"""
69+
The type of iterations.
70+
"""
6571

6672
interval: str
73+
"""
74+
Specifies coupon frequency. Either `day`, `week`, `month` or `year`.
75+
"""
6776
interval_count: int
77+
"""
78+
The number of intervals for which the coupon will be applied.
79+
"""
6880
iterations: Iterations
6981
_inner_class_types = {"iterations": Iterations}
7082

stripe/_invoice.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,20 @@ class Installments(StripeObject):
863863
"""
864864
_inner_class_types = {"installments": Installments}
865865

866+
class CheckScan(StripeObject):
867+
class CheckDepositAddress(StripeObject):
868+
city: Optional[str]
869+
country: Optional[str]
870+
line1: Optional[str]
871+
line2: Optional[str]
872+
postal_code: Optional[str]
873+
state: Optional[str]
874+
875+
check_deposit_address: Optional[CheckDepositAddress]
876+
_inner_class_types = {
877+
"check_deposit_address": CheckDepositAddress,
878+
}
879+
866880
class CustomerBalance(StripeObject):
867881
class BankTransfer(StripeObject):
868882
class EuBankTransfer(StripeObject):
@@ -1024,6 +1038,10 @@ class Filters(StripeObject):
10241038
"""
10251039
If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
10261040
"""
1041+
check_scan: Optional[CheckScan]
1042+
"""
1043+
If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent.
1044+
"""
10271045
customer_balance: Optional[CustomerBalance]
10281046
"""
10291047
If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
@@ -1060,6 +1078,7 @@ class Filters(StripeObject):
10601078
"acss_debit": AcssDebit,
10611079
"bancontact": Bancontact,
10621080
"card": Card,
1081+
"check_scan": CheckScan,
10631082
"customer_balance": CustomerBalance,
10641083
"id_bank_transfer": IdBankTransfer,
10651084
"konbini": Konbini,
@@ -1092,6 +1111,7 @@ class Filters(StripeObject):
10921111
"boleto",
10931112
"card",
10941113
"cashapp",
1114+
"check_scan",
10951115
"crypto",
10961116
"custom",
10971117
"customer_balance",

stripe/_object_classes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@
334334
"stripe.shared_payment._granted_token",
335335
"GrantedToken",
336336
),
337+
"shared_payment.issued_token": (
338+
"stripe.shared_payment._issued_token",
339+
"IssuedToken",
340+
),
337341
"shipping_rate": ("stripe._shipping_rate", "ShippingRate"),
338342
"scheduled_query_run": (
339343
"stripe.sigma._scheduled_query_run",

stripe/_quote_preview_invoice.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,20 @@ class Installments(StripeObject):
819819
"""
820820
_inner_class_types = {"installments": Installments}
821821

822+
class CheckScan(StripeObject):
823+
class CheckDepositAddress(StripeObject):
824+
city: Optional[str]
825+
country: Optional[str]
826+
line1: Optional[str]
827+
line2: Optional[str]
828+
postal_code: Optional[str]
829+
state: Optional[str]
830+
831+
check_deposit_address: Optional[CheckDepositAddress]
832+
_inner_class_types = {
833+
"check_deposit_address": CheckDepositAddress,
834+
}
835+
822836
class CustomerBalance(StripeObject):
823837
class BankTransfer(StripeObject):
824838
class EuBankTransfer(StripeObject):
@@ -980,6 +994,10 @@ class Filters(StripeObject):
980994
"""
981995
If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
982996
"""
997+
check_scan: Optional[CheckScan]
998+
"""
999+
If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent.
1000+
"""
9831001
customer_balance: Optional[CustomerBalance]
9841002
"""
9851003
If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
@@ -1016,6 +1034,7 @@ class Filters(StripeObject):
10161034
"acss_debit": AcssDebit,
10171035
"bancontact": Bancontact,
10181036
"card": Card,
1037+
"check_scan": CheckScan,
10191038
"customer_balance": CustomerBalance,
10201039
"id_bank_transfer": IdBankTransfer,
10211040
"konbini": Konbini,
@@ -1048,6 +1067,7 @@ class Filters(StripeObject):
10481067
"boleto",
10491068
"card",
10501069
"cashapp",
1070+
"check_scan",
10511071
"crypto",
10521072
"custom",
10531073
"customer_balance",

stripe/_quote_preview_subscription_schedule.py

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,6 @@ class AppliesTo(StripeObject):
7373
Controls which subscription items the billing schedule applies to.
7474
"""
7575

76-
class BillFrom(StripeObject):
77-
computed_timestamp: int
78-
"""
79-
The time the billing schedule applies from.
80-
"""
81-
timestamp: Optional[int]
82-
"""
83-
Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`.
84-
"""
85-
type: Literal["timestamp"]
86-
"""
87-
Describes how the billing schedule determines the start date. Possible values are `timestamp`.
88-
"""
89-
9076
class BillUntil(StripeObject):
9177
class Duration(StripeObject):
9278
interval: Literal["day", "month", "week", "year"]
@@ -120,10 +106,6 @@ class Duration(StripeObject):
120106
"""
121107
Specifies which subscription items the billing schedule applies to.
122108
"""
123-
bill_from: Optional[BillFrom]
124-
"""
125-
Specifies the start of the billing period.
126-
"""
127109
bill_until: BillUntil
128110
"""
129111
Specifies the end of billing period.
@@ -132,11 +114,7 @@ class Duration(StripeObject):
132114
"""
133115
Unique identifier for the billing schedule.
134116
"""
135-
_inner_class_types = {
136-
"applies_to": AppliesTo,
137-
"bill_from": BillFrom,
138-
"bill_until": BillUntil,
139-
}
117+
_inner_class_types = {"applies_to": AppliesTo, "bill_until": BillUntil}
140118

141119
class CurrentPhase(StripeObject):
142120
end_date: int

stripe/_subscription.py

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -166,20 +166,6 @@ class AppliesTo(StripeObject):
166166
Controls which subscription items the billing schedule applies to.
167167
"""
168168

169-
class BillFrom(StripeObject):
170-
computed_timestamp: int
171-
"""
172-
The time the billing schedule applies from.
173-
"""
174-
timestamp: Optional[int]
175-
"""
176-
Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`.
177-
"""
178-
type: Literal["timestamp"]
179-
"""
180-
Describes how the billing schedule determines the start date. Possible values are `timestamp`.
181-
"""
182-
183169
class BillUntil(StripeObject):
184170
class Duration(StripeObject):
185171
interval: Literal["day", "month", "week", "year"]
@@ -213,10 +199,6 @@ class Duration(StripeObject):
213199
"""
214200
Specifies which subscription items the billing schedule applies to.
215201
"""
216-
bill_from: Optional[BillFrom]
217-
"""
218-
Specifies the start of the billing period.
219-
"""
220202
bill_until: BillUntil
221203
"""
222204
Specifies the end of billing period.
@@ -225,11 +207,7 @@ class Duration(StripeObject):
225207
"""
226208
Unique identifier for the billing schedule.
227209
"""
228-
_inner_class_types = {
229-
"applies_to": AppliesTo,
230-
"bill_from": BillFrom,
231-
"bill_until": BillUntil,
232-
}
210+
_inner_class_types = {"applies_to": AppliesTo, "bill_until": BillUntil}
233211

234212
class BillingThresholds(StripeObject):
235213
amount_gte: Optional[int]
@@ -400,6 +378,20 @@ class MandateOptions(StripeObject):
400378
"""
401379
_inner_class_types = {"mandate_options": MandateOptions}
402380

381+
class CheckScan(StripeObject):
382+
class CheckDepositAddress(StripeObject):
383+
city: Optional[str]
384+
country: Optional[str]
385+
line1: Optional[str]
386+
line2: Optional[str]
387+
postal_code: Optional[str]
388+
state: Optional[str]
389+
390+
check_deposit_address: Optional[CheckDepositAddress]
391+
_inner_class_types = {
392+
"check_deposit_address": CheckDepositAddress,
393+
}
394+
403395
class CustomerBalance(StripeObject):
404396
class BankTransfer(StripeObject):
405397
class EuBankTransfer(StripeObject):
@@ -585,6 +577,10 @@ class Filters(StripeObject):
585577
"""
586578
This sub-hash contains details about the Card payment method options to pass to invoices created by the subscription.
587579
"""
580+
check_scan: Optional[CheckScan]
581+
"""
582+
This sub-hash contains details about the Check Scan payment method options to pass to invoices created by the subscription.
583+
"""
588584
customer_balance: Optional[CustomerBalance]
589585
"""
590586
This sub-hash contains details about the Bank transfer payment method options to pass to invoices created by the subscription.
@@ -621,6 +617,7 @@ class Filters(StripeObject):
621617
"acss_debit": AcssDebit,
622618
"bancontact": Bancontact,
623619
"card": Card,
620+
"check_scan": CheckScan,
624621
"customer_balance": CustomerBalance,
625622
"id_bank_transfer": IdBankTransfer,
626623
"konbini": Konbini,
@@ -649,6 +646,7 @@ class Filters(StripeObject):
649646
"boleto",
650647
"card",
651648
"cashapp",
649+
"check_scan",
652650
"crypto",
653651
"custom",
654652
"customer_balance",

stripe/_subscription_schedule.py

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -95,20 +95,6 @@ class AppliesTo(StripeObject):
9595
Controls which subscription items the billing schedule applies to.
9696
"""
9797

98-
class BillFrom(StripeObject):
99-
computed_timestamp: int
100-
"""
101-
The time the billing schedule applies from.
102-
"""
103-
timestamp: Optional[int]
104-
"""
105-
Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`.
106-
"""
107-
type: Literal["timestamp"]
108-
"""
109-
Describes how the billing schedule determines the start date. Possible values are `timestamp`.
110-
"""
111-
11298
class BillUntil(StripeObject):
11399
class Duration(StripeObject):
114100
interval: Literal["day", "month", "week", "year"]
@@ -142,10 +128,6 @@ class Duration(StripeObject):
142128
"""
143129
Specifies which subscription items the billing schedule applies to.
144130
"""
145-
bill_from: Optional[BillFrom]
146-
"""
147-
Specifies the start of the billing period.
148-
"""
149131
bill_until: BillUntil
150132
"""
151133
Specifies the end of billing period.
@@ -154,11 +136,7 @@ class Duration(StripeObject):
154136
"""
155137
Unique identifier for the billing schedule.
156138
"""
157-
_inner_class_types = {
158-
"applies_to": AppliesTo,
159-
"bill_from": BillFrom,
160-
"bill_until": BillUntil,
161-
}
139+
_inner_class_types = {"applies_to": AppliesTo, "bill_until": BillUntil}
162140

163141
class CurrentPhase(StripeObject):
164142
end_date: int

0 commit comments

Comments
 (0)