Skip to content

Commit 626a182

Browse files
Update generated code (#1369)
* Update generated code for v1157 * Update generated code for v1158 * Update generated code for v1159 * Update generated code for v1160 * Update generated code for v1162 * Update generated code for v1163 * Update generated code for v1166 * Update generated code for v1167 * Update generated code for v1169 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent 5e5eb48 commit 626a182

25 files changed

+1123
-241
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1155
1+
v1169

stripe/_charge.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -703,10 +703,6 @@ class ShippingAddress(StripeObject):
703703
"""
704704
The authorized amount.
705705
"""
706-
authorization_code: Optional[str]
707-
"""
708-
Authorization code on the charge.
709-
"""
710706
brand: Optional[str]
711707
"""
712708
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
@@ -2182,7 +2178,7 @@ class SearchParams(RequestOptions):
21822178
billing_details: BillingDetails
21832179
calculated_statement_descriptor: Optional[str]
21842180
"""
2185-
The full statement descriptor that is passed to card networks, and that is displayed on your customers' credit card and bank statements. Allows you to see what the statement descriptor looks like after the static and dynamic portions are combined.
2181+
The full statement descriptor that is passed to card networks, and that is displayed on your customers' credit card and bank statements. Allows you to see what the statement descriptor looks like after the static and dynamic portions are combined. This only works for card payments.
21862182
"""
21872183
captured: bool
21882184
"""

stripe/_event.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ class RetrieveParams(RequestOptions):
166166
"application_fee.refund.updated",
167167
"application_fee.refunded",
168168
"balance.available",
169+
"billing.alert.triggered",
169170
"billing_portal.configuration.created",
170171
"billing_portal.configuration.updated",
171172
"billing_portal.session.created",

stripe/_invoice.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ class LastFinalizationError(StripeObject):
351351
"charge_already_refunded",
352352
"charge_disputed",
353353
"charge_exceeds_source_limit",
354+
"charge_exceeds_transaction_limit",
354355
"charge_expired_for_capture",
355356
"charge_invalid_parameter",
356357
"charge_not_refundable",

stripe/_object_classes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
stripe.BankAccount.OBJECT_NAME: stripe.BankAccount,
2121
stripe.billing_portal.Configuration.OBJECT_NAME: stripe.billing_portal.Configuration,
2222
stripe.billing_portal.Session.OBJECT_NAME: stripe.billing_portal.Session,
23+
stripe.billing.Alert.OBJECT_NAME: stripe.billing.Alert,
24+
stripe.billing.AlertTriggered.OBJECT_NAME: stripe.billing.AlertTriggered,
2325
stripe.billing.Meter.OBJECT_NAME: stripe.billing.Meter,
2426
stripe.billing.MeterEvent.OBJECT_NAME: stripe.billing.MeterEvent,
2527
stripe.billing.MeterEventAdjustment.OBJECT_NAME: stripe.billing.MeterEventAdjustment,

stripe/_payment_intent.py

Lines changed: 416 additions & 111 deletions
Large diffs are not rendered by default.

stripe/_payment_intent_service.py

Lines changed: 338 additions & 110 deletions
Large diffs are not rendered by default.

stripe/_setup_attempt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ class SetupError(StripeObject):
460460
"charge_already_refunded",
461461
"charge_disputed",
462462
"charge_exceeds_source_limit",
463+
"charge_exceeds_transaction_limit",
463464
"charge_expired_for_capture",
464465
"charge_invalid_parameter",
465466
"charge_not_refundable",

stripe/_setup_intent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ class LastSetupError(StripeObject):
113113
"charge_already_refunded",
114114
"charge_disputed",
115115
"charge_exceeds_source_limit",
116+
"charge_exceeds_transaction_limit",
116117
"charge_expired_for_capture",
117118
"charge_invalid_parameter",
118119
"charge_not_refundable",
@@ -2904,7 +2905,7 @@ class ModifyParams(RequestOptions):
29042905
"""
29052906
payment_method: NotRequired[str]
29062907
"""
2907-
ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent.
2908+
ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent. To unset this field to null, pass in an empty string.
29082909
"""
29092910
payment_method_configuration: NotRequired[str]
29102911
"""
@@ -4000,7 +4001,7 @@ class VerifyMicrodepositsParams(RequestOptions):
40004001
"""
40014002
payment_method: Optional[ExpandableField["PaymentMethod"]]
40024003
"""
4003-
ID of the payment method used with this SetupIntent.
4004+
ID of the payment method used with this SetupIntent. If the payment method is `card_present` and isn't a digital wallet, then the [generated_card](https://docs.corp.stripe.com/api/setup_attempts/object#setup_attempt_object-payment_method_details-card_present-generated_card) associated with the `latest_attempt` is attached to the Customer instead.
40044005
"""
40054006
payment_method_configuration_details: Optional[
40064007
PaymentMethodConfigurationDetails

stripe/_setup_intent_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2370,7 +2370,7 @@ class UpdateParams(TypedDict):
23702370
"""
23712371
payment_method: NotRequired[str]
23722372
"""
2373-
ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent.
2373+
ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent. To unset this field to null, pass in an empty string.
23742374
"""
23752375
payment_method_configuration: NotRequired[str]
23762376
"""

0 commit comments

Comments
 (0)