Skip to content

Commit

Permalink
Merge pull request #1375 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] authored Aug 15, 2024
2 parents 7ecbe62 + d94ad20 commit 60c27d2
Show file tree
Hide file tree
Showing 20 changed files with 680 additions and 60 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1196
v1201
8 changes: 4 additions & 4 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -2412,7 +2412,7 @@ class CreateParamsDocuments(TypedDict):
"Account.CreateParamsDocumentsBankAccountOwnershipVerification"
]
"""
One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a voided check.
One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
"""
company_license: NotRequired[
"Account.CreateParamsDocumentsCompanyLicense"
Expand Down Expand Up @@ -3030,7 +3030,7 @@ class CreatePersonParams(RequestOptions):
"Account.CreatePersonParamsAdditionalTosAcceptances"
]
"""
Details on the legal guardian's acceptance of the required Stripe agreements.
Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
"""
address: NotRequired["Account.CreatePersonParamsAddress"]
"""
Expand Down Expand Up @@ -3595,7 +3595,7 @@ class ModifyExternalAccountParamsDocuments(TypedDict):
"Account.ModifyExternalAccountParamsDocumentsBankAccountOwnershipVerification"
]
"""
One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a voided check.
One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a check.
"""

class ModifyExternalAccountParamsDocumentsBankAccountOwnershipVerification(
Expand All @@ -3611,7 +3611,7 @@ class ModifyPersonParams(RequestOptions):
"Account.ModifyPersonParamsAdditionalTosAcceptances"
]
"""
Details on the legal guardian's acceptance of the required Stripe agreements.
Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
"""
address: NotRequired["Account.ModifyPersonParamsAddress"]
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/_account_external_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class UpdateParamsDocuments(TypedDict):
"AccountExternalAccountService.UpdateParamsDocumentsBankAccountOwnershipVerification"
]
"""
One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a voided check.
One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a check.
"""

class UpdateParamsDocumentsBankAccountOwnershipVerification(TypedDict):
Expand Down
4 changes: 2 additions & 2 deletions stripe/_account_person_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CreateParams(TypedDict):
"AccountPersonService.CreateParamsAdditionalTosAcceptances"
]
"""
Details on the legal guardian's acceptance of the required Stripe agreements.
Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
"""
address: NotRequired["AccountPersonService.CreateParamsAddress"]
"""
Expand Down Expand Up @@ -444,7 +444,7 @@ class UpdateParams(TypedDict):
"AccountPersonService.UpdateParamsAdditionalTosAcceptances"
]
"""
Details on the legal guardian's acceptance of the required Stripe agreements.
Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
"""
address: NotRequired["AccountPersonService.UpdateParamsAddress"]
"""
Expand Down
4 changes: 2 additions & 2 deletions stripe/_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ class CreateParamsDocuments(TypedDict):
"AccountService.CreateParamsDocumentsBankAccountOwnershipVerification"
]
"""
One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a voided check.
One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
"""
company_license: NotRequired[
"AccountService.CreateParamsDocumentsCompanyLicense"
Expand Down Expand Up @@ -2885,7 +2885,7 @@ class UpdateParamsDocuments(TypedDict):
"AccountService.UpdateParamsDocumentsBankAccountOwnershipVerification"
]
"""
One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a voided check.
One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
"""
company_license: NotRequired[
"AccountService.UpdateParamsDocumentsCompanyLicense"
Expand Down
45 changes: 45 additions & 0 deletions stripe/_account_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,24 @@ class CreateParamsComponents(TypedDict):
"""
Configuration for the balances embedded component.
"""
capital_financing: NotRequired[
"AccountSession.CreateParamsComponentsCapitalFinancing"
]
"""
Configuration for the capital financing embedded component.
"""
capital_financing_application: NotRequired[
"AccountSession.CreateParamsComponentsCapitalFinancingApplication"
]
"""
Configuration for the capital financing application embedded component.
"""
capital_financing_promotion: NotRequired[
"AccountSession.CreateParamsComponentsCapitalFinancingPromotion"
]
"""
Configuration for the capital financing promotion embedded component.
"""
capital_overview: NotRequired[
"AccountSession.CreateParamsComponentsCapitalOverview"
]
Expand Down Expand Up @@ -504,6 +519,36 @@ class CreateParamsComponentsBalancesFeatures(TypedDict):
Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
"""

class CreateParamsComponentsCapitalFinancing(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSession.CreateParamsComponentsCapitalFinancingFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsCapitalFinancingApplication(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSession.CreateParamsComponentsCapitalFinancingApplicationFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsCapitalFinancingApplicationFeatures(TypedDict):
pass

class CreateParamsComponentsCapitalFinancingFeatures(TypedDict):
pass

class CreateParamsComponentsCapitalFinancingPromotion(TypedDict):
enabled: bool
"""
Expand Down
45 changes: 45 additions & 0 deletions stripe/_account_session_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,24 @@ class CreateParamsComponents(TypedDict):
"""
Configuration for the balances embedded component.
"""
capital_financing: NotRequired[
"AccountSessionService.CreateParamsComponentsCapitalFinancing"
]
"""
Configuration for the capital financing embedded component.
"""
capital_financing_application: NotRequired[
"AccountSessionService.CreateParamsComponentsCapitalFinancingApplication"
]
"""
Configuration for the capital financing application embedded component.
"""
capital_financing_promotion: NotRequired[
"AccountSessionService.CreateParamsComponentsCapitalFinancingPromotion"
]
"""
Configuration for the capital financing promotion embedded component.
"""
capital_overview: NotRequired[
"AccountSessionService.CreateParamsComponentsCapitalOverview"
]
Expand Down Expand Up @@ -243,6 +258,36 @@ class CreateParamsComponentsBalancesFeatures(TypedDict):
Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
"""

class CreateParamsComponentsCapitalFinancing(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSessionService.CreateParamsComponentsCapitalFinancingFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsCapitalFinancingApplication(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSessionService.CreateParamsComponentsCapitalFinancingApplicationFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsCapitalFinancingApplicationFeatures(TypedDict):
pass

class CreateParamsComponentsCapitalFinancingFeatures(TypedDict):
pass

class CreateParamsComponentsCapitalFinancingPromotion(TypedDict):
enabled: bool
"""
Expand Down
33 changes: 20 additions & 13 deletions stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,14 @@ class Receipt(StripeObject):
An indication of various EMV functions performed during the transaction.
"""

class Wallet(StripeObject):
type: Literal[
"apple_pay", "google_pay", "samsung_pay", "unknown"
]
"""
The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
"""

amount_authorized: Optional[int]
"""
The authorized amount
Expand Down Expand Up @@ -938,10 +946,7 @@ class Receipt(StripeObject):
"""
network_transaction_id: Optional[str]
"""
This is used by the financial networks to identify a transaction.
Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data.
The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD).
This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
"""
offline: Optional[Offline]
"""
Expand Down Expand Up @@ -971,7 +976,12 @@ class Receipt(StripeObject):
"""
A collection of fields required to be displayed on receipts. Only required for EMV transactions.
"""
_inner_class_types = {"offline": Offline, "receipt": Receipt}
wallet: Optional[Wallet]
_inner_class_types = {
"offline": Offline,
"receipt": Receipt,
"wallet": Wallet,
}

class Cashapp(StripeObject):
buyer_id: Optional[str]
Expand Down Expand Up @@ -1259,10 +1269,7 @@ class Receipt(StripeObject):
"""
network_transaction_id: Optional[str]
"""
This is used by the financial networks to identify a transaction.
Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data.
The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD).
This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
"""
preferred_locales: Optional[List[str]]
"""
Expand Down Expand Up @@ -1915,7 +1922,7 @@ class CaptureParams(RequestOptions):
"""
statement_descriptor_suffix: NotRequired[str]
"""
Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
"""
transfer_data: NotRequired["Charge.CaptureParamsTransferData"]
"""
Expand Down Expand Up @@ -2642,7 +2649,7 @@ class CreateParams(RequestOptions):
"""
statement_descriptor_suffix: NotRequired[str]
"""
Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
"""
transfer_data: NotRequired["Charge.CreateParamsTransferData"]
"""
Expand Down Expand Up @@ -3728,15 +3735,15 @@ class SearchParams(RequestOptions):
"""
source_transfer: Optional[ExpandableField["Transfer"]]
"""
The transfer ID which created this charge. Only present if the charge came from another Stripe account. [See the Connect documentation](https://stripe.com/docs/connect/destination-charges) for details.
The transfer ID which created this charge. Only present if the charge came from another Stripe account. [See the Connect documentation](https://docs.stripe.com/connect/destination-charges) for details.
"""
statement_descriptor: Optional[str]
"""
For a non-card charge, text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors). This value overrides the account's default statement descriptor. For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
"""
statement_descriptor_suffix: Optional[str]
"""
Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
"""
status: Literal["failed", "pending", "succeeded"]
"""
Expand Down
Loading

0 comments on commit 60c27d2

Please sign in to comment.