Skip to content

Commit e91edbf

Browse files
Update generated code for v1201
1 parent 3c05de1 commit e91edbf

File tree

8 files changed

+70
-10
lines changed

8 files changed

+70
-10
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1200
1+
v1201

stripe/_account.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2840,7 +2840,7 @@ class CreatePersonParams(RequestOptions):
28402840
"Account.CreatePersonParamsAdditionalTosAcceptances"
28412841
]
28422842
"""
2843-
Details on the legal guardian's acceptance of the required Stripe agreements.
2843+
Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
28442844
"""
28452845
address: NotRequired["Account.CreatePersonParamsAddress"]
28462846
"""
@@ -3421,7 +3421,7 @@ class ModifyPersonParams(RequestOptions):
34213421
"Account.ModifyPersonParamsAdditionalTosAcceptances"
34223422
]
34233423
"""
3424-
Details on the legal guardian's acceptance of the required Stripe agreements.
3424+
Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
34253425
"""
34263426
address: NotRequired["Account.ModifyPersonParamsAddress"]
34273427
"""

stripe/_account_person_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class CreateParams(TypedDict):
1515
"AccountPersonService.CreateParamsAdditionalTosAcceptances"
1616
]
1717
"""
18-
Details on the legal guardian's acceptance of the required Stripe agreements.
18+
Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
1919
"""
2020
address: NotRequired["AccountPersonService.CreateParamsAddress"]
2121
"""
@@ -444,7 +444,7 @@ class UpdateParams(TypedDict):
444444
"AccountPersonService.UpdateParamsAdditionalTosAcceptances"
445445
]
446446
"""
447-
Details on the legal guardian's acceptance of the required Stripe agreements.
447+
Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
448448
"""
449449
address: NotRequired["AccountPersonService.UpdateParamsAddress"]
450450
"""

stripe/_charge.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,14 @@ class Receipt(StripeObject):
854854
An indication of various EMV functions performed during the transaction.
855855
"""
856856

857+
class Wallet(StripeObject):
858+
type: Literal[
859+
"apple_pay", "google_pay", "samsung_pay", "unknown"
860+
]
861+
"""
862+
The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
863+
"""
864+
857865
amount_authorized: Optional[int]
858866
"""
859867
The authorized amount
@@ -960,7 +968,12 @@ class Receipt(StripeObject):
960968
"""
961969
A collection of fields required to be displayed on receipts. Only required for EMV transactions.
962970
"""
963-
_inner_class_types = {"offline": Offline, "receipt": Receipt}
971+
wallet: Optional[Wallet]
972+
_inner_class_types = {
973+
"offline": Offline,
974+
"receipt": Receipt,
975+
"wallet": Wallet,
976+
}
964977

965978
class Cashapp(StripeObject):
966979
buyer_id: Optional[str]

stripe/_confirmation_token.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,17 @@ class Receipt(StripeObject):
265265
An indication of various EMV functions performed during the transaction.
266266
"""
267267

268+
class Wallet(StripeObject):
269+
type: Literal[
270+
"apple_pay",
271+
"google_pay",
272+
"samsung_pay",
273+
"unknown",
274+
]
275+
"""
276+
The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
277+
"""
278+
268279
amount_authorized: Optional[int]
269280
"""
270281
The authorized amount
@@ -371,9 +382,11 @@ class Receipt(StripeObject):
371382
"""
372383
A collection of fields required to be displayed on receipts. Only required for EMV transactions.
373384
"""
385+
wallet: Optional[Wallet]
374386
_inner_class_types = {
375387
"offline": Offline,
376388
"receipt": Receipt,
389+
"wallet": Wallet,
377390
}
378391

379392
card_present: Optional[CardPresent]
@@ -707,6 +720,14 @@ class Offline(StripeObject):
707720
The method used to process this payment method offline. Only deferred is allowed.
708721
"""
709722

723+
class Wallet(StripeObject):
724+
type: Literal[
725+
"apple_pay", "google_pay", "samsung_pay", "unknown"
726+
]
727+
"""
728+
The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
729+
"""
730+
710731
brand: Optional[str]
711732
"""
712733
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
@@ -781,7 +802,12 @@ class Offline(StripeObject):
781802
"""
782803
How card details were read in this transaction.
783804
"""
784-
_inner_class_types = {"networks": Networks, "offline": Offline}
805+
wallet: Optional[Wallet]
806+
_inner_class_types = {
807+
"networks": Networks,
808+
"offline": Offline,
809+
"wallet": Wallet,
810+
}
785811

786812
class Cashapp(StripeObject):
787813
buyer_id: Optional[str]

stripe/_payment_method.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,14 @@ class Receipt(StripeObject):
225225
An indication of various EMV functions performed during the transaction.
226226
"""
227227

228+
class Wallet(StripeObject):
229+
type: Literal[
230+
"apple_pay", "google_pay", "samsung_pay", "unknown"
231+
]
232+
"""
233+
The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
234+
"""
235+
228236
amount_authorized: Optional[int]
229237
"""
230238
The authorized amount
@@ -331,9 +339,11 @@ class Receipt(StripeObject):
331339
"""
332340
A collection of fields required to be displayed on receipts. Only required for EMV transactions.
333341
"""
342+
wallet: Optional[Wallet]
334343
_inner_class_types = {
335344
"offline": Offline,
336345
"receipt": Receipt,
346+
"wallet": Wallet,
337347
}
338348

339349
card_present: Optional[CardPresent]
@@ -667,6 +677,12 @@ class Offline(StripeObject):
667677
The method used to process this payment method offline. Only deferred is allowed.
668678
"""
669679

680+
class Wallet(StripeObject):
681+
type: Literal["apple_pay", "google_pay", "samsung_pay", "unknown"]
682+
"""
683+
The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
684+
"""
685+
670686
brand: Optional[str]
671687
"""
672688
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
@@ -741,7 +757,12 @@ class Offline(StripeObject):
741757
"""
742758
How card details were read in this transaction.
743759
"""
744-
_inner_class_types = {"networks": Networks, "offline": Offline}
760+
wallet: Optional[Wallet]
761+
_inner_class_types = {
762+
"networks": Networks,
763+
"offline": Offline,
764+
"wallet": Wallet,
765+
}
745766

746767
class Cashapp(StripeObject):
747768
buyer_id: Optional[str]

stripe/_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ class CreateParamsPerson(TypedDict):
703703
"Token.CreateParamsPersonAdditionalTosAcceptances"
704704
]
705705
"""
706-
Details on the legal guardian's acceptance of the required Stripe agreements.
706+
Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
707707
"""
708708
address: NotRequired["Token.CreateParamsPersonAddress"]
709709
"""

stripe/_token_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ class CreateParamsPerson(TypedDict):
674674
"TokenService.CreateParamsPersonAdditionalTosAcceptances"
675675
]
676676
"""
677-
Details on the legal guardian's acceptance of the required Stripe agreements.
677+
Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
678678
"""
679679
address: NotRequired["TokenService.CreateParamsPersonAddress"]
680680
"""

0 commit comments

Comments
 (0)