Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
85839f80afcaccd622aa30bf53a414cdffbd57bc
12a3ccc9c8524b11fe63c8e5e5d3178b307a612b
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2369
v2372
2 changes: 1 addition & 1 deletion stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ class Capabilities(StripeObject):
"""
sequra_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the Sequra capability of the account, or whether the account can directly process Sequra payments.
The status of the SeQura capability of the account, or whether the account can directly process SeQura payments.
"""
shopeepay_payments: Optional[Literal["active", "inactive", "pending"]]
"""
Expand Down
8 changes: 6 additions & 2 deletions stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1809,9 +1809,13 @@ class Link(StripeObject):
Two-letter ISO code representing the funding source country beneath the Link payment.
You could use this attribute to get a sense of international fees.
"""
funding_source_group: Optional[str]
"""
The funding source group applied to this Link payment at confirmation time. Maps to a bundle in your Stripe pricing contract and on Stripe's published pricing page. Omitted if group lookup failed at confirmation time.
"""
pricing_group: Optional[str]
"""
The pricing bundle applied to this Link payment at confirmation time. Maps to a bundle in your Stripe pricing contract and on Stripe's published pricing page. Omitted if bundle lookup failed at confirmation time.
Deprecated: use funding_source_group instead.
"""

class MbWay(StripeObject):
Expand Down Expand Up @@ -2265,7 +2269,7 @@ class SepaDebit(StripeObject):
class Sequra(StripeObject):
transaction_id: Optional[str]
"""
The Sequra transaction ID associated with this payment.
The SeQura transaction ID associated with this payment.
"""

class Shopeepay(StripeObject):
Expand Down
1 change: 1 addition & 0 deletions stripe/_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,7 @@ class WechatPay(StripeObject):
"payco",
"paynow",
"paypal",
"paypay",
"payto",
"pix",
"promptpay",
Expand Down
2 changes: 1 addition & 1 deletion stripe/_payment_attempt_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -2002,7 +2002,7 @@ class SepaDebit(StripeObject):
class Sequra(StripeObject):
transaction_id: Optional[str]
"""
The Sequra transaction ID associated with this payment.
The SeQura transaction ID associated with this payment.
"""

class Shopeepay(StripeObject):
Expand Down
10 changes: 10 additions & 0 deletions stripe/_payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -4870,6 +4870,16 @@ class Sequra(StripeObject):
"""
Controls when the funds will be captured from the customer's account.
"""
setup_future_usage: Optional[Literal["none"]]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.

If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.

If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.

When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
"""

class Shopeepay(StripeObject):
setup_future_usage: Optional[Literal["none"]]
Expand Down
2 changes: 1 addition & 1 deletion stripe/_payment_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -2019,7 +2019,7 @@ class SepaDebit(StripeObject):
class Sequra(StripeObject):
transaction_id: Optional[str]
"""
The Sequra transaction ID associated with this payment.
The SeQura transaction ID associated with this payment.
"""

class Shopeepay(StripeObject):
Expand Down
1 change: 1 addition & 0 deletions stripe/_quote_preview_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,7 @@ class WechatPay(StripeObject):
"payco",
"paynow",
"paypal",
"paypay",
"payto",
"pix",
"promptpay",
Expand Down
1 change: 1 addition & 0 deletions stripe/_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ class WechatPay(StripeObject):
"payco",
"paynow",
"paypal",
"paypay",
"payto",
"pix",
"promptpay",
Expand Down
1 change: 1 addition & 0 deletions stripe/crypto/_customer_consumer_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class CustomerConsumerWallet(StripeObject):
"avalanche",
"base",
"bitcoin",
"celo",
"ethereum",
"optimism",
"polygon",
Expand Down
6 changes: 6 additions & 0 deletions stripe/crypto/_onramp_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ class DestinationTags(StripeObject):
"""
A bitcoin address
"""
celo: Optional[str]
"""
A Celo address
"""
destination_tags: Optional[DestinationTags]
"""
The end customer's crypto wallet destination tag (for each network) to use for this transaction.
Expand Down Expand Up @@ -151,6 +155,7 @@ class DestinationTags(StripeObject):
"avalanche",
"base",
"bitcoin",
"celo",
"ethereum",
"optimism",
"polygon",
Expand All @@ -173,6 +178,7 @@ class DestinationTags(StripeObject):
"avalanche",
"base",
"bitcoin",
"celo",
"ethereum",
"optimism",
"polygon",
Expand Down
100 changes: 99 additions & 1 deletion stripe/issuing/_authorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,44 @@ class AmountDetails(StripeObject):
The amount of cash requested by the cardholder.
"""

class HoldAmount(StripeObject):
currency: str
"""
Three-letter ISO currency code.
"""
value: int
"""
The amount in the smallest currency unit.
"""

class HoldAmountDetails(StripeObject):
class Network(StripeObject):
currency: str
"""
Three-letter ISO currency code.
"""
value: int
"""
The amount in the smallest currency unit.
"""

class Reserve(StripeObject):
currency: str
"""
Three-letter ISO currency code.
"""
value: int
"""
The amount in the smallest currency unit.
"""

network: Network
reserve: Optional[Reserve]
"""
The reserve amount held for this authorization. Present for certain MCCs that may have overcaptures.
"""
_inner_class_types = {"network": Network, "reserve": Reserve}

amount: int
"""
The additional amount Stripe will hold if the authorization is approved, in the card's [currency](https://docs.stripe.com/api#issuing_authorization_object-pending-request-currency) and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
Expand All @@ -999,6 +1037,14 @@ class AmountDetails(StripeObject):
"""
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
"""
hold_amount: Optional[HoldAmount]
"""
The total amount to be held for this authorization request.
"""
hold_amount_details: Optional[HoldAmountDetails]
"""
Breakdown of the amounts contributing to hold_amount.
"""
is_amount_controllable: bool
"""
If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization.
Expand All @@ -1015,7 +1061,11 @@ class AmountDetails(StripeObject):
"""
The card network's estimate of the likelihood that an authorization is fraudulent. Takes on values between 1 and 99.
"""
_inner_class_types = {"amount_details": AmountDetails}
_inner_class_types = {
"amount_details": AmountDetails,
"hold_amount": HoldAmount,
"hold_amount_details": HoldAmountDetails,
}

class Redaction(StripeObject):
status: Union[Literal["processing", "redacted", "validated"], str]
Expand All @@ -1034,6 +1084,44 @@ class AmountDetails(StripeObject):
The amount of cash requested by the cardholder.
"""

class HoldAmount(StripeObject):
currency: str
"""
Three-letter ISO currency code.
"""
value: int
"""
The amount in the smallest currency unit.
"""

class HoldAmountDetails(StripeObject):
class Network(StripeObject):
currency: str
"""
Three-letter ISO currency code.
"""
value: int
"""
The amount in the smallest currency unit.
"""

class Reserve(StripeObject):
currency: str
"""
Three-letter ISO currency code.
"""
value: int
"""
The amount in the smallest currency unit.
"""

network: Network
reserve: Optional[Reserve]
"""
The reserve amount held for this authorization. Present for certain MCCs that may have overcaptures.
"""
_inner_class_types = {"network": Network, "reserve": Reserve}

class NetworkData(StripeObject):
class TraceId(StripeObject):
banknet_reference_number: Optional[str]
Expand Down Expand Up @@ -1079,6 +1167,14 @@ class TraceId(StripeObject):
"""
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
"""
hold_amount: Optional[HoldAmount]
"""
The total amount that was held for this authorization request.
"""
hold_amount_details: Optional[HoldAmountDetails]
"""
Breakdown of the amounts contributing to hold_amount.
"""
merchant_amount: int
"""
The `pending_request.merchant_amount` at the time of the request, presented in the `merchant_currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
Expand Down Expand Up @@ -1134,6 +1230,8 @@ class TraceId(StripeObject):
"""
_inner_class_types = {
"amount_details": AmountDetails,
"hold_amount": HoldAmount,
"hold_amount_details": HoldAmountDetails,
"network_data": NetworkData,
}

Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_invoice_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class InvoiceCreateParamsPaymentSettings(TypedDict):
Payment-method-specific configuration to provide to the invoice's PaymentIntent.
"""
payment_method_types: NotRequired[
"Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
"Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
]
"""
The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_invoice_modify_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class InvoiceModifyParamsPaymentSettings(TypedDict):
Payment-method-specific configuration to provide to the invoice's PaymentIntent.
"""
payment_method_types: NotRequired[
"Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
"Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
]
"""
The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_invoice_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class InvoiceUpdateParamsPaymentSettings(TypedDict):
Payment-method-specific configuration to provide to the invoice's PaymentIntent.
"""
payment_method_types: NotRequired[
"Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
"Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
]
"""
The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_subscription_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ class SubscriptionCreateParamsPaymentSettings(TypedDict):
Payment-method-specific configuration to provide to invoices created by the subscription.
"""
payment_method_types: NotRequired[
"Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
"Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sequra', 'sofort', 'stripe_balance', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
]
"""
The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
Expand Down
Loading
Loading