Skip to content

Commit 00a078c

Browse files
Update generated code (#1336)
* Update generated code for v1049 * Update generated code for v1050 * Update generated code for v1051 * Update generated code for v1052 * Update generated code for v1053 * Update generated code for v1054 * Update generated code for v1055 * Update generated code for v1056 * Update generated code for v1058 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <[email protected]>
1 parent c28ec9d commit 00a078c

20 files changed

+615
-177
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1047
1+
v1058

stripe/_account.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,7 @@ class Error(StripeObject):
707707
"verification_missing_executives",
708708
"verification_missing_owners",
709709
"verification_requires_additional_memorandum_of_associations",
710+
"verification_requires_additional_proof_of_registration",
710711
]
711712
"""
712713
The code for the type of error.
@@ -855,6 +856,7 @@ class Error(StripeObject):
855856
"verification_missing_executives",
856857
"verification_missing_owners",
857858
"verification_requires_additional_memorandum_of_associations",
859+
"verification_requires_additional_proof_of_registration",
858860
]
859861
"""
860862
The code for the type of error.
@@ -1264,7 +1266,7 @@ class CreateParams(RequestOptions):
12641266
"""
12651267
tos_acceptance: NotRequired["Account.CreateParamsTosAcceptance"]
12661268
"""
1267-
Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
1269+
Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
12681270
"""
12691271
type: NotRequired[Literal["custom", "express", "standard"]]
12701272
"""

stripe/_account_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class CreateParams(TypedDict):
101101
"""
102102
tos_acceptance: NotRequired["AccountService.CreateParamsTosAcceptance"]
103103
"""
104-
Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
104+
Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
105105
"""
106106
type: NotRequired[Literal["custom", "express", "standard"]]
107107
"""
@@ -1707,7 +1707,7 @@ class UpdateParams(TypedDict):
17071707
"""
17081708
tos_acceptance: NotRequired["AccountService.UpdateParamsTosAcceptance"]
17091709
"""
1710-
Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
1710+
Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
17111711
"""
17121712

17131713
class UpdateParamsBankAccount(TypedDict):

stripe/_bank_account.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ class Error(StripeObject):
126126
"verification_missing_executives",
127127
"verification_missing_owners",
128128
"verification_requires_additional_memorandum_of_associations",
129+
"verification_requires_additional_proof_of_registration",
129130
]
130131
"""
131132
The code for the type of error.
@@ -248,6 +249,7 @@ class Error(StripeObject):
248249
"verification_missing_executives",
249250
"verification_missing_owners",
250251
"verification_requires_additional_memorandum_of_associations",
252+
"verification_requires_additional_proof_of_registration",
251253
]
252254
"""
253255
The code for the type of error.

stripe/_capability.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ class Error(StripeObject):
119119
"verification_missing_executives",
120120
"verification_missing_owners",
121121
"verification_requires_additional_memorandum_of_associations",
122+
"verification_requires_additional_proof_of_registration",
122123
]
123124
"""
124125
The code for the type of error.
@@ -267,6 +268,7 @@ class Error(StripeObject):
267268
"verification_missing_executives",
268269
"verification_missing_owners",
269270
"verification_requires_additional_memorandum_of_associations",
271+
"verification_requires_additional_proof_of_registration",
270272
]
271273
"""
272274
The code for the type of error.

stripe/_charge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ class Klarna(StripeObject):
12551255
preferred_locale: Optional[str]
12561256
"""
12571257
Preferred language of the Klarna authorization page that the customer is redirected to.
1258-
Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH`
1258+
Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH`
12591259
"""
12601260

12611261
class Konbini(StripeObject):

stripe/_confirmation_token.py

Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,183 @@ class Checks(StripeObject):
196196
If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
197197
"""
198198

199+
class GeneratedFrom(StripeObject):
200+
class PaymentMethodDetails(StripeObject):
201+
class CardPresent(StripeObject):
202+
class Offline(StripeObject):
203+
stored_at: Optional[int]
204+
"""
205+
Time at which the payment was collected while offline
206+
"""
207+
208+
class Receipt(StripeObject):
209+
account_type: Optional[
210+
Literal[
211+
"checking", "credit", "prepaid", "unknown"
212+
]
213+
]
214+
"""
215+
The type of account being debited or credited
216+
"""
217+
application_cryptogram: Optional[str]
218+
"""
219+
EMV tag 9F26, cryptogram generated by the integrated circuit chip.
220+
"""
221+
application_preferred_name: Optional[str]
222+
"""
223+
Mnenomic of the Application Identifier.
224+
"""
225+
authorization_code: Optional[str]
226+
"""
227+
Identifier for this transaction.
228+
"""
229+
authorization_response_code: Optional[str]
230+
"""
231+
EMV tag 8A. A code returned by the card issuer.
232+
"""
233+
cardholder_verification_method: Optional[str]
234+
"""
235+
Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
236+
"""
237+
dedicated_file_name: Optional[str]
238+
"""
239+
EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
240+
"""
241+
terminal_verification_results: Optional[str]
242+
"""
243+
The outcome of a series of EMV functions performed by the card reader.
244+
"""
245+
transaction_status_information: Optional[str]
246+
"""
247+
An indication of various EMV functions performed during the transaction.
248+
"""
249+
250+
amount_authorized: Optional[int]
251+
"""
252+
The authorized amount
253+
"""
254+
brand: Optional[str]
255+
"""
256+
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
257+
"""
258+
capture_before: Optional[int]
259+
"""
260+
When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
261+
"""
262+
cardholder_name: Optional[str]
263+
"""
264+
The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
265+
"""
266+
country: Optional[str]
267+
"""
268+
Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
269+
"""
270+
description: Optional[str]
271+
"""
272+
A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
273+
"""
274+
emv_auth_data: Optional[str]
275+
"""
276+
Authorization response cryptogram.
277+
"""
278+
exp_month: int
279+
"""
280+
Two-digit number representing the card's expiration month.
281+
"""
282+
exp_year: int
283+
"""
284+
Four-digit number representing the card's expiration year.
285+
"""
286+
fingerprint: Optional[str]
287+
"""
288+
Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
289+
290+
*As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
291+
"""
292+
funding: Optional[str]
293+
"""
294+
Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
295+
"""
296+
generated_card: Optional[str]
297+
"""
298+
ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
299+
"""
300+
iin: Optional[str]
301+
"""
302+
Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
303+
"""
304+
incremental_authorization_supported: bool
305+
"""
306+
Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support).
307+
"""
308+
issuer: Optional[str]
309+
"""
310+
The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
311+
"""
312+
last4: Optional[str]
313+
"""
314+
The last four digits of the card.
315+
"""
316+
network: Optional[str]
317+
"""
318+
Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
319+
"""
320+
offline: Optional[Offline]
321+
"""
322+
Details about payments collected offline.
323+
"""
324+
overcapture_supported: bool
325+
"""
326+
Defines whether the authorized amount can be over-captured or not
327+
"""
328+
preferred_locales: Optional[List[str]]
329+
"""
330+
EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
331+
"""
332+
read_method: Optional[
333+
Literal[
334+
"contact_emv",
335+
"contactless_emv",
336+
"contactless_magstripe_mode",
337+
"magnetic_stripe_fallback",
338+
"magnetic_stripe_track2",
339+
]
340+
]
341+
"""
342+
How card details were read in this transaction.
343+
"""
344+
receipt: Optional[Receipt]
345+
"""
346+
A collection of fields required to be displayed on receipts. Only required for EMV transactions.
347+
"""
348+
_inner_class_types = {
349+
"offline": Offline,
350+
"receipt": Receipt,
351+
}
352+
353+
card_present: Optional[CardPresent]
354+
type: str
355+
"""
356+
The type of payment method transaction-specific details from the transaction that generated this `card` payment method. Always `card_present`.
357+
"""
358+
_inner_class_types = {"card_present": CardPresent}
359+
360+
charge: Optional[str]
361+
"""
362+
The charge that created this object.
363+
"""
364+
payment_method_details: Optional[PaymentMethodDetails]
365+
"""
366+
Transaction-specific details of the payment method used in the payment.
367+
"""
368+
setup_attempt: Optional[ExpandableField["SetupAttempt"]]
369+
"""
370+
The ID of the SetupAttempt that generated this PaymentMethod, if any.
371+
"""
372+
_inner_class_types = {
373+
"payment_method_details": PaymentMethodDetails,
374+
}
375+
199376
class Networks(StripeObject):
200377
available: List[str]
201378
"""
@@ -447,6 +624,10 @@ class ShippingAddress(StripeObject):
447624
"""
448625
Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
449626
"""
627+
generated_from: Optional[GeneratedFrom]
628+
"""
629+
Details of the original PaymentMethod that created this object.
630+
"""
450631
iin: Optional[str]
451632
"""
452633
Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
@@ -473,6 +654,7 @@ class ShippingAddress(StripeObject):
473654
"""
474655
_inner_class_types = {
475656
"checks": Checks,
657+
"generated_from": GeneratedFrom,
476658
"networks": Networks,
477659
"three_d_secure_usage": ThreeDSecureUsage,
478660
"wallet": Wallet,

stripe/_event.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,10 @@ class RetrieveParams(RequestOptions):
265265
"issuing_dispute.funds_reinstated",
266266
"issuing_dispute.submitted",
267267
"issuing_dispute.updated",
268+
"issuing_personalization_design.activated",
269+
"issuing_personalization_design.deactivated",
270+
"issuing_personalization_design.rejected",
271+
"issuing_personalization_design.updated",
268272
"issuing_token.created",
269273
"issuing_token.updated",
270274
"issuing_transaction.created",

0 commit comments

Comments
 (0)