Skip to content

Commit

Permalink
Update generated code for v1309
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Oct 17, 2024
1 parent 1174e61 commit 043e059
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1307
v1309
16 changes: 16 additions & 0 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ class Capabilities(StripeObject):
"""
The status of the Afterpay Clearpay capability of the account, or whether the account can directly process Afterpay Clearpay charges.
"""
alma_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the Alma capability of the account, or whether the account can directly process Alma payments.
"""
amazon_pay_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the AmazonPay capability of the account, or whether the account can directly process AmazonPay payments.
Expand Down Expand Up @@ -1603,6 +1607,12 @@ class CreateParamsCapabilities(TypedDict):
"""
The afterpay_clearpay_payments capability.
"""
alma_payments: NotRequired[
"Account.CreateParamsCapabilitiesAlmaPayments"
]
"""
The alma_payments capability.
"""
amazon_pay_payments: NotRequired[
"Account.CreateParamsCapabilitiesAmazonPayPayments"
]
Expand Down Expand Up @@ -1972,6 +1982,12 @@ class CreateParamsCapabilitiesAfterpayClearpayPayments(TypedDict):
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesAlmaPayments(TypedDict):
requested: NotRequired[bool]
"""
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesAmazonPayPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down
24 changes: 24 additions & 0 deletions stripe/_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,12 @@ class CreateParamsCapabilities(TypedDict):
"""
The afterpay_clearpay_payments capability.
"""
alma_payments: NotRequired[
"AccountService.CreateParamsCapabilitiesAlmaPayments"
]
"""
The alma_payments capability.
"""
amazon_pay_payments: NotRequired[
"AccountService.CreateParamsCapabilitiesAmazonPayPayments"
]
Expand Down Expand Up @@ -637,6 +643,12 @@ class CreateParamsCapabilitiesAfterpayClearpayPayments(TypedDict):
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesAlmaPayments(TypedDict):
requested: NotRequired[bool]
"""
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class CreateParamsCapabilitiesAmazonPayPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down Expand Up @@ -2224,6 +2236,12 @@ class UpdateParamsCapabilities(TypedDict):
"""
The afterpay_clearpay_payments capability.
"""
alma_payments: NotRequired[
"AccountService.UpdateParamsCapabilitiesAlmaPayments"
]
"""
The alma_payments capability.
"""
amazon_pay_payments: NotRequired[
"AccountService.UpdateParamsCapabilitiesAmazonPayPayments"
]
Expand Down Expand Up @@ -2597,6 +2615,12 @@ class UpdateParamsCapabilitiesAfterpayClearpayPayments(TypedDict):
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class UpdateParamsCapabilitiesAlmaPayments(TypedDict):
requested: NotRequired[bool]
"""
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
"""

class UpdateParamsCapabilitiesAmazonPayPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down
4 changes: 3 additions & 1 deletion stripe/_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,9 @@ class ModifyParamsTax(TypedDict):
"""
A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes.
"""
validate_location: NotRequired[Literal["deferred", "immediately"]]
validate_location: NotRequired[
Literal["auto", "deferred", "immediately"]
]
"""
A flag that indicates when Stripe should validate the customer tax location. Defaults to `deferred`.
"""
Expand Down
4 changes: 3 additions & 1 deletion stripe/_customer_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,9 @@ class UpdateParamsTax(TypedDict):
"""
A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes.
"""
validate_location: NotRequired[Literal["deferred", "immediately"]]
validate_location: NotRequired[
Literal["auto", "deferred", "immediately"]
]
"""
A flag that indicates when Stripe should validate the customer tax location. Defaults to `deferred`.
"""
Expand Down

0 comments on commit 043e059

Please sign in to comment.