Skip to content

Commit

Permalink
Update generated code (#1336)
Browse files Browse the repository at this point in the history
* 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 <100975018+ramya-stripe@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] and ramya-stripe committed May 30, 2024
1 parent c28ec9d commit 00a078c
Show file tree
Hide file tree
Showing 20 changed files with 615 additions and 177 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1047
v1058
4 changes: 3 additions & 1 deletion stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ class Error(StripeObject):
"verification_missing_executives",
"verification_missing_owners",
"verification_requires_additional_memorandum_of_associations",
"verification_requires_additional_proof_of_registration",
]
"""
The code for the type of error.
Expand Down Expand Up @@ -855,6 +856,7 @@ class Error(StripeObject):
"verification_missing_executives",
"verification_missing_owners",
"verification_requires_additional_memorandum_of_associations",
"verification_requires_additional_proof_of_registration",
]
"""
The code for the type of error.
Expand Down Expand Up @@ -1264,7 +1266,7 @@ class CreateParams(RequestOptions):
"""
tos_acceptance: NotRequired["Account.CreateParamsTosAcceptance"]
"""
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.
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.
"""
type: NotRequired[Literal["custom", "express", "standard"]]
"""
Expand Down
4 changes: 2 additions & 2 deletions stripe/_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class CreateParams(TypedDict):
"""
tos_acceptance: NotRequired["AccountService.CreateParamsTosAcceptance"]
"""
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.
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.
"""
type: NotRequired[Literal["custom", "express", "standard"]]
"""
Expand Down Expand Up @@ -1707,7 +1707,7 @@ class UpdateParams(TypedDict):
"""
tos_acceptance: NotRequired["AccountService.UpdateParamsTosAcceptance"]
"""
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.
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.
"""

class UpdateParamsBankAccount(TypedDict):
Expand Down
2 changes: 2 additions & 0 deletions stripe/_bank_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ class Error(StripeObject):
"verification_missing_executives",
"verification_missing_owners",
"verification_requires_additional_memorandum_of_associations",
"verification_requires_additional_proof_of_registration",
]
"""
The code for the type of error.
Expand Down Expand Up @@ -248,6 +249,7 @@ class Error(StripeObject):
"verification_missing_executives",
"verification_missing_owners",
"verification_requires_additional_memorandum_of_associations",
"verification_requires_additional_proof_of_registration",
]
"""
The code for the type of error.
Expand Down
2 changes: 2 additions & 0 deletions stripe/_capability.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ class Error(StripeObject):
"verification_missing_executives",
"verification_missing_owners",
"verification_requires_additional_memorandum_of_associations",
"verification_requires_additional_proof_of_registration",
]
"""
The code for the type of error.
Expand Down Expand Up @@ -267,6 +268,7 @@ class Error(StripeObject):
"verification_missing_executives",
"verification_missing_owners",
"verification_requires_additional_memorandum_of_associations",
"verification_requires_additional_proof_of_registration",
]
"""
The code for the type of error.
Expand Down
2 changes: 1 addition & 1 deletion stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ class Klarna(StripeObject):
preferred_locale: Optional[str]
"""
Preferred language of the Klarna authorization page that the customer is redirected to.
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`
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`
"""

class Konbini(StripeObject):
Expand Down
182 changes: 182 additions & 0 deletions stripe/_confirmation_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,183 @@ class Checks(StripeObject):
If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
"""

class GeneratedFrom(StripeObject):
class PaymentMethodDetails(StripeObject):
class CardPresent(StripeObject):
class Offline(StripeObject):
stored_at: Optional[int]
"""
Time at which the payment was collected while offline
"""

class Receipt(StripeObject):
account_type: Optional[
Literal[
"checking", "credit", "prepaid", "unknown"
]
]
"""
The type of account being debited or credited
"""
application_cryptogram: Optional[str]
"""
EMV tag 9F26, cryptogram generated by the integrated circuit chip.
"""
application_preferred_name: Optional[str]
"""
Mnenomic of the Application Identifier.
"""
authorization_code: Optional[str]
"""
Identifier for this transaction.
"""
authorization_response_code: Optional[str]
"""
EMV tag 8A. A code returned by the card issuer.
"""
cardholder_verification_method: Optional[str]
"""
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`.
"""
dedicated_file_name: Optional[str]
"""
EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
"""
terminal_verification_results: Optional[str]
"""
The outcome of a series of EMV functions performed by the card reader.
"""
transaction_status_information: Optional[str]
"""
An indication of various EMV functions performed during the transaction.
"""

amount_authorized: Optional[int]
"""
The authorized amount
"""
brand: Optional[str]
"""
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
"""
capture_before: Optional[int]
"""
When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
"""
cardholder_name: Optional[str]
"""
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.
"""
country: Optional[str]
"""
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.
"""
description: Optional[str]
"""
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.)
"""
emv_auth_data: Optional[str]
"""
Authorization response cryptogram.
"""
exp_month: int
"""
Two-digit number representing the card's expiration month.
"""
exp_year: int
"""
Four-digit number representing the card's expiration year.
"""
fingerprint: Optional[str]
"""
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.
*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.*
"""
funding: Optional[str]
"""
Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
"""
generated_card: Optional[str]
"""
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.
"""
iin: Optional[str]
"""
Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
"""
incremental_authorization_supported: bool
"""
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).
"""
issuer: Optional[str]
"""
The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
"""
last4: Optional[str]
"""
The last four digits of the card.
"""
network: Optional[str]
"""
Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
"""
offline: Optional[Offline]
"""
Details about payments collected offline.
"""
overcapture_supported: bool
"""
Defines whether the authorized amount can be over-captured or not
"""
preferred_locales: Optional[List[str]]
"""
EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
"""
read_method: Optional[
Literal[
"contact_emv",
"contactless_emv",
"contactless_magstripe_mode",
"magnetic_stripe_fallback",
"magnetic_stripe_track2",
]
]
"""
How card details were read in this transaction.
"""
receipt: Optional[Receipt]
"""
A collection of fields required to be displayed on receipts. Only required for EMV transactions.
"""
_inner_class_types = {
"offline": Offline,
"receipt": Receipt,
}

card_present: Optional[CardPresent]
type: str
"""
The type of payment method transaction-specific details from the transaction that generated this `card` payment method. Always `card_present`.
"""
_inner_class_types = {"card_present": CardPresent}

charge: Optional[str]
"""
The charge that created this object.
"""
payment_method_details: Optional[PaymentMethodDetails]
"""
Transaction-specific details of the payment method used in the payment.
"""
setup_attempt: Optional[ExpandableField["SetupAttempt"]]
"""
The ID of the SetupAttempt that generated this PaymentMethod, if any.
"""
_inner_class_types = {
"payment_method_details": PaymentMethodDetails,
}

class Networks(StripeObject):
available: List[str]
"""
Expand Down Expand Up @@ -447,6 +624,10 @@ class ShippingAddress(StripeObject):
"""
Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
"""
generated_from: Optional[GeneratedFrom]
"""
Details of the original PaymentMethod that created this object.
"""
iin: Optional[str]
"""
Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
Expand All @@ -473,6 +654,7 @@ class ShippingAddress(StripeObject):
"""
_inner_class_types = {
"checks": Checks,
"generated_from": GeneratedFrom,
"networks": Networks,
"three_d_secure_usage": ThreeDSecureUsage,
"wallet": Wallet,
Expand Down
4 changes: 4 additions & 0 deletions stripe/_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ class RetrieveParams(RequestOptions):
"issuing_dispute.funds_reinstated",
"issuing_dispute.submitted",
"issuing_dispute.updated",
"issuing_personalization_design.activated",
"issuing_personalization_design.deactivated",
"issuing_personalization_design.rejected",
"issuing_personalization_design.updated",
"issuing_token.created",
"issuing_token.updated",
"issuing_transaction.created",
Expand Down

0 comments on commit 00a078c

Please sign in to comment.