diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 6fae6735a..983636f7b 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -d59a1f4bdea3032b8e282d40badc032cb021fc60 \ No newline at end of file +6012b623b1c09ad54d466947da04511a042ee45a \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 30723023b..83c68c9d1 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2277 \ No newline at end of file +v2324 \ No newline at end of file diff --git a/stripe/_api_version.py b/stripe/_api_version.py index a2e41e6db..f9abf225b 100644 --- a/stripe/_api_version.py +++ b/stripe/_api_version.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec class _ApiVersion: - CURRENT = "2026-05-27.dahlia" + CURRENT = "2026-06-24.dahlia" CURRENT_MAJOR = "dahlia" diff --git a/stripe/_balance_transaction.py b/stripe/_balance_transaction.py index 2dc1b438d..dc731baa6 100644 --- a/stripe/_balance_transaction.py +++ b/stripe/_balance_transaction.py @@ -195,6 +195,7 @@ class FeeDetail(StripeObject): "stripe_fee", "stripe_fx_fee", "tax_fee", + "tax_fund", "topup", "topup_reversal", "transfer", @@ -203,7 +204,7 @@ class FeeDetail(StripeObject): "transfer_refund", ] """ - Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead. + Transaction type: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead. """ @classmethod @@ -211,9 +212,9 @@ def list( cls, **params: Unpack["BalanceTransactionListParams"] ) -> ListObject["BalanceTransaction"]: """ - Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first. + Returns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first. - Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. + The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history. """ result = cls._static_request( "get", @@ -233,9 +234,9 @@ async def list_async( cls, **params: Unpack["BalanceTransactionListParams"] ) -> ListObject["BalanceTransaction"]: """ - Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first. + Returns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first. - Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. + The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history. """ result = await cls._static_request_async( "get", diff --git a/stripe/_balance_transaction_service.py b/stripe/_balance_transaction_service.py index 35023fd93..2166a14fc 100644 --- a/stripe/_balance_transaction_service.py +++ b/stripe/_balance_transaction_service.py @@ -24,9 +24,9 @@ def list( options: Optional["RequestOptions"] = None, ) -> "ListObject[BalanceTransaction]": """ - Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first. + Returns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first. - Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. + The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history. """ return cast( "ListObject[BalanceTransaction]", @@ -45,9 +45,9 @@ async def list_async( options: Optional["RequestOptions"] = None, ) -> "ListObject[BalanceTransaction]": """ - Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first. + Returns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first. - Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. + The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history. """ return cast( "ListObject[BalanceTransaction]", diff --git a/stripe/_charge.py b/stripe/_charge.py index a3da18b49..9f1025c1e 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -457,6 +457,10 @@ class Billie(StripeObject): """ class Bizum(StripeObject): + buyer_id: Optional[str] + """ + A unique identifier for the buyer as determined by the local payment processor. + """ transaction_id: Optional[str] """ The Bizum transaction ID associated with this payment. @@ -902,6 +906,10 @@ class ShippingAddress(StripeObject): """ Populated if this transaction used 3D Secure authentication. """ + transaction_link_id: Optional[str] + """ + Transaction Link ID (TLID) is a unique identifier for a transaction. This is used by some card networks, such as Mastercard, for transaction linking, in addition to Network Transaction IDs. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + """ wallet: Optional[Wallet] """ If this Card is part of a card wallet, this contains the details of the card wallet. @@ -1118,13 +1126,17 @@ class Crypto(StripeObject): The wallet address of the customer. """ network: Optional[ - Literal["base", "ethereum", "polygon", "solana", "tempo"] + Literal[ + "base", "ethereum", "polygon", "solana", "sui", "tempo" + ] ] """ The blockchain network that the transaction was sent on. """ token_currency: Optional[ - Literal["phantom_cash", "usdc", "usdg", "usdp", "usdt"] + Literal[ + "phantom_cash", "usdc", "usdg", "usdp", "usdsui", "usdt" + ] ] """ The token currency that the transaction was sent with. @@ -1793,6 +1805,10 @@ class Pix(StripeObject): """ Unique transaction id generated by BCB """ + fingerprint: Optional[str] + """ + Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + """ mandate: Optional[str] """ ID of the multi use Mandate generated by the PaymentIntent diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index c2ae3a460..db6911072 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -219,10 +219,16 @@ class Address(StripeObject): _inner_class_types = {"address": Address} class Bizum(StripeObject): - pass + buyer_id: Optional[str] + """ + A unique identifier for the buyer as determined by the local payment processor. + """ class Blik(StripeObject): - pass + buyer_id: Optional[str] + """ + A unique and immutable identifier assigned by BLIK to every buyer. + """ class Boleto(StripeObject): tax_id: str @@ -1278,7 +1284,10 @@ class Payto(StripeObject): """ class Pix(StripeObject): - pass + fingerprint: Optional[str] + """ + Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + """ class Promptpay(StripeObject): pass diff --git a/stripe/_credit_note.py b/stripe/_credit_note.py index a07c5b94f..323b41361 100644 --- a/stripe/_credit_note.py +++ b/stripe/_credit_note.py @@ -388,6 +388,8 @@ def create( You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount, post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation. + + For invoices that also have refunds created through the [Refund API](https://docs.stripe.com/docs/api/refunds), the credit note API subtracts those refund amounts from the maximum creditable amount. This prevents the combined credit notes and refunds from exceeding the invoice amount. If you use both, ensure the combined total does not exceed the invoice's paid amount. """ return cast( "CreditNote", @@ -416,6 +418,8 @@ async def create_async( You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount, post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation. + + For invoices that also have refunds created through the [Refund API](https://docs.stripe.com/docs/api/refunds), the credit note API subtracts those refund amounts from the maximum creditable amount. This prevents the combined credit notes and refunds from exceeding the invoice amount. If you use both, ensure the combined total does not exceed the invoice's paid amount. """ return cast( "CreditNote", diff --git a/stripe/_credit_note_service.py b/stripe/_credit_note_service.py index 4d716f4ce..ab9ea98e9 100644 --- a/stripe/_credit_note_service.py +++ b/stripe/_credit_note_service.py @@ -119,6 +119,8 @@ def create( You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount, post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation. + + For invoices that also have refunds created through the [Refund API](https://docs.stripe.com/docs/api/refunds), the credit note API subtracts those refund amounts from the maximum creditable amount. This prevents the combined credit notes and refunds from exceeding the invoice amount. If you use both, ensure the combined total does not exceed the invoice's paid amount. """ return cast( "CreditNote", @@ -150,6 +152,8 @@ async def create_async( You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount, post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation. + + For invoices that also have refunds created through the [Refund API](https://docs.stripe.com/docs/api/refunds), the credit note API subtracts those refund amounts from the maximum creditable amount. This prevents the combined credit notes and refunds from exceeding the invoice amount. If you use both, ensure the combined total does not exceed the invoice's paid amount. """ return cast( "CreditNote", diff --git a/stripe/_dispute.py b/stripe/_dispute.py index ce304a8d2..dee4b2372 100644 --- a/stripe/_dispute.py +++ b/stripe/_dispute.py @@ -35,6 +35,12 @@ class Dispute( class Evidence(StripeObject): class EnhancedEvidence(StripeObject): + class MastercardCompliance(StripeObject): + fee_acknowledged: bool + """ + A field acknowledging the fee incurred when countering a Mastercard compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. + """ + class VisaCompellingEvidence3(StripeObject): class DisputedTransaction(StripeObject): class ShippingAddress(StripeObject): @@ -179,9 +185,11 @@ class VisaCompliance(StripeObject): A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute. """ + mastercard_compliance: Optional[MastercardCompliance] visa_compelling_evidence_3: Optional[VisaCompellingEvidence3] visa_compliance: Optional[VisaCompliance] _inner_class_types = { + "mastercard_compliance": MastercardCompliance, "visa_compelling_evidence_3": VisaCompellingEvidence3, "visa_compliance": VisaCompliance, } @@ -299,6 +307,14 @@ class VisaCompliance(StripeObject): class EvidenceDetails(StripeObject): class EnhancedEligibility(StripeObject): + class MastercardCompliance(StripeObject): + status: Literal[ + "fee_acknowledged", "requires_fee_acknowledgement" + ] + """ + Mastercard compliance eligibility status. + """ + class VisaCompellingEvidence3(StripeObject): required_actions: List[ Literal[ @@ -327,9 +343,11 @@ class VisaCompliance(StripeObject): Visa compliance eligibility status. """ + mastercard_compliance: Optional[MastercardCompliance] visa_compelling_evidence_3: Optional[VisaCompellingEvidence3] visa_compliance: Optional[VisaCompliance] _inner_class_types = { + "mastercard_compliance": MastercardCompliance, "visa_compelling_evidence_3": VisaCompellingEvidence3, "visa_compliance": VisaCompliance, } @@ -432,7 +450,11 @@ class Paypal(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). """ enhanced_eligibility_types: List[ - Literal["visa_compelling_evidence_3", "visa_compliance"] + Literal[ + "mastercard_compliance", + "visa_compelling_evidence_3", + "visa_compliance", + ] ] """ List of eligibility types that are included in `enhanced_evidence`. diff --git a/stripe/_event.py b/stripe/_event.py index 1013f7cbd..b0dc2e3ff 100644 --- a/stripe/_event.py +++ b/stripe/_event.py @@ -105,7 +105,13 @@ class Request(StripeObject): "balance.available", "balance_settings.updated", "billing.alert.triggered", + "billing.credit_balance_transaction.created", "billing.credit_grant.created", + "billing.credit_grant.updated", + "billing.meter.created", + "billing.meter.deactivated", + "billing.meter.reactivated", + "billing.meter.updated", "billing_portal.configuration.created", "billing_portal.configuration.updated", "billing_portal.session.created", @@ -347,12 +353,6 @@ class Request(StripeObject): "treasury.received_credit.failed", "treasury.received_credit.succeeded", "treasury.received_debit.created", - "billing.credit_balance_transaction.created", - "billing.credit_grant.updated", - "billing.meter.created", - "billing.meter.deactivated", - "billing.meter.reactivated", - "billing.meter.updated", ] """ Description of the event (for example, `invoice.created` or `charge.refunded`). diff --git a/stripe/_invoice.py b/stripe/_invoice.py index 0fe35d184..2e0baff01 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -427,6 +427,7 @@ class LastFinalizationError(StripeObject): "alipay_upgrade_required", "amount_too_large", "amount_too_small", + "anomalous_money_movement_request", "api_key_expired", "application_fees_not_allowed", "approval_required", @@ -466,6 +467,10 @@ class LastFinalizationError(StripeObject): "debit_not_authorized", "email_invalid", "expired_card", + "failed_tax_calculation", + "financial_account_balance_does_not_support_currency", + "financial_account_capability_not_enabled", + "financial_account_capability_restricted", "financial_connections_account_inactive", "financial_connections_account_pending_account_numbers", "financial_connections_account_unavailable_account_numbers", @@ -1016,6 +1021,7 @@ class Filters(StripeObject): "pix", "promptpay", "revolut_pay", + "satispay", "sepa_credit_transfer", "sepa_debit", "sofort", diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py index 9198dae9d..0e518b494 100644 --- a/stripe/_payment_attempt_record.py +++ b/stripe/_payment_attempt_record.py @@ -417,6 +417,10 @@ class Address(StripeObject): _inner_class_types = {"address": Address} class Bizum(StripeObject): + buyer_id: Optional[str] + """ + A unique identifier for the buyer as determined by the local payment processor. + """ transaction_id: Optional[str] """ The Bizum transaction ID associated with this payment. @@ -676,12 +680,6 @@ class GooglePay(StripeObject): """ 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. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. """ - stored_credential_usage: Optional[ - Literal["recurring", "unscheduled"] - ] - """ - The transaction type that was passed for an off-session, Merchant-Initiated transaction, one of `recurring` or `unscheduled`. - """ three_d_secure: Optional[ThreeDSecure] """ Populated if this transaction used 3D Secure authentication. @@ -898,13 +896,17 @@ class Crypto(StripeObject): The wallet address of the customer. """ network: Optional[ - Literal["base", "ethereum", "polygon", "solana", "tempo"] + Literal[ + "base", "ethereum", "polygon", "solana", "sui", "tempo" + ] ] """ The blockchain network that the transaction was sent on. """ token_currency: Optional[ - Literal["phantom_cash", "usdc", "usdg", "usdp", "usdt"] + Literal[ + "phantom_cash", "usdc", "usdg", "usdp", "usdsui", "usdt" + ] ] """ The token currency that the transaction was sent with. diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index f4a280aa2..ee3c27e8a 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -212,6 +212,7 @@ class LastPaymentError(StripeObject): "alipay_upgrade_required", "amount_too_large", "amount_too_small", + "anomalous_money_movement_request", "api_key_expired", "application_fees_not_allowed", "approval_required", @@ -251,6 +252,10 @@ class LastPaymentError(StripeObject): "debit_not_authorized", "email_invalid", "expired_card", + "failed_tax_calculation", + "financial_account_balance_does_not_support_currency", + "financial_account_capability_not_enabled", + "financial_account_capability_restricted", "financial_connections_account_inactive", "financial_connections_account_pending_account_numbers", "financial_connections_account_unavailable_account_numbers", @@ -2522,6 +2527,18 @@ class Satispay(StripeObject): """ Controls when the funds will be captured from the customer's account. """ + setup_future_usage: Optional[ + Literal["none", "off_session", "on_session"] + ] + """ + 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 Scalapay(StripeObject): capture_method: Optional[Literal["manual"]] @@ -2573,6 +2590,22 @@ class Sofort(StripeObject): 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 Sunbit(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + 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 Swish(StripeObject): reference: Optional[str] """ @@ -2693,7 +2726,7 @@ class MandateOptions(StripeObject): class WechatPay(StripeObject): app_id: Optional[str] """ - The app ID registered with WeChat Pay. Only required when client is ios or android. + The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. """ client: Optional[Literal["android", "ios", "web"]] """ @@ -2771,6 +2804,7 @@ class Zip(StripeObject): scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] + sunbit: Optional[Sunbit] swish: Optional[Swish] twint: Optional[Twint] upi: Optional[Upi] @@ -2827,6 +2861,7 @@ class Zip(StripeObject): "scalapay": Scalapay, "sepa_debit": SepaDebit, "sofort": Sofort, + "sunbit": Sunbit, "swish": Swish, "twint": Twint, "upi": Upi, diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 3039ea29c..c300cf57e 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -170,10 +170,16 @@ class Address(StripeObject): _inner_class_types = {"address": Address} class Bizum(StripeObject): - pass + buyer_id: Optional[str] + """ + A unique identifier for the buyer as determined by the local payment processor. + """ class Blik(StripeObject): - pass + buyer_id: Optional[str] + """ + A unique and immutable identifier assigned by BLIK to every buyer. + """ class Boleto(StripeObject): tax_id: str @@ -1247,7 +1253,10 @@ class Payto(StripeObject): """ class Pix(StripeObject): - pass + fingerprint: Optional[str] + """ + Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + """ class Promptpay(StripeObject): pass diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py index 21bf46a29..a48da6c59 100644 --- a/stripe/_payment_record.py +++ b/stripe/_payment_record.py @@ -433,6 +433,10 @@ class Address(StripeObject): _inner_class_types = {"address": Address} class Bizum(StripeObject): + buyer_id: Optional[str] + """ + A unique identifier for the buyer as determined by the local payment processor. + """ transaction_id: Optional[str] """ The Bizum transaction ID associated with this payment. @@ -692,12 +696,6 @@ class GooglePay(StripeObject): """ 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. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. """ - stored_credential_usage: Optional[ - Literal["recurring", "unscheduled"] - ] - """ - The transaction type that was passed for an off-session, Merchant-Initiated transaction, one of `recurring` or `unscheduled`. - """ three_d_secure: Optional[ThreeDSecure] """ Populated if this transaction used 3D Secure authentication. @@ -914,13 +912,17 @@ class Crypto(StripeObject): The wallet address of the customer. """ network: Optional[ - Literal["base", "ethereum", "polygon", "solana", "tempo"] + Literal[ + "base", "ethereum", "polygon", "solana", "sui", "tempo" + ] ] """ The blockchain network that the transaction was sent on. """ token_currency: Optional[ - Literal["phantom_cash", "usdc", "usdg", "usdp", "usdt"] + Literal[ + "phantom_cash", "usdc", "usdg", "usdp", "usdsui", "usdt" + ] ] """ The token currency that the transaction was sent with. diff --git a/stripe/_setup_attempt.py b/stripe/_setup_attempt.py index 5c6ac3fa9..63cc99951 100644 --- a/stripe/_setup_attempt.py +++ b/stripe/_setup_attempt.py @@ -365,11 +365,17 @@ class Payto(StripeObject): pass class Pix(StripeObject): - pass + fingerprint: Optional[str] + """ + Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + """ class RevolutPay(StripeObject): pass + class Satispay(StripeObject): + pass + class SepaDebit(StripeObject): pass @@ -438,6 +444,7 @@ class UsBankAccount(StripeObject): payto: Optional[Payto] pix: Optional[Pix] revolut_pay: Optional[RevolutPay] + satispay: Optional[Satispay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] twint: Optional[Twint] @@ -468,6 +475,7 @@ class UsBankAccount(StripeObject): "payto": Payto, "pix": Pix, "revolut_pay": RevolutPay, + "satispay": Satispay, "sepa_debit": SepaDebit, "sofort": Sofort, "twint": Twint, @@ -498,6 +506,7 @@ class SetupError(StripeObject): "alipay_upgrade_required", "amount_too_large", "amount_too_small", + "anomalous_money_movement_request", "api_key_expired", "application_fees_not_allowed", "approval_required", @@ -537,6 +546,10 @@ class SetupError(StripeObject): "debit_not_authorized", "email_invalid", "expired_card", + "failed_tax_calculation", + "financial_account_balance_does_not_support_currency", + "financial_account_capability_not_enabled", + "financial_account_capability_restricted", "financial_connections_account_inactive", "financial_connections_account_pending_account_numbers", "financial_connections_account_unavailable_account_numbers", diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index 2f9486ae6..1709795f5 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -108,6 +108,7 @@ class LastSetupError(StripeObject): "alipay_upgrade_required", "amount_too_large", "amount_too_small", + "anomalous_money_movement_request", "api_key_expired", "application_fees_not_allowed", "approval_required", @@ -147,6 +148,10 @@ class LastSetupError(StripeObject): "debit_not_authorized", "email_invalid", "expired_card", + "failed_tax_calculation", + "financial_account_balance_does_not_support_currency", + "financial_account_capability_not_enabled", + "financial_account_capability_restricted", "financial_connections_account_inactive", "financial_connections_account_pending_account_numbers", "financial_connections_account_unavailable_account_numbers", diff --git a/stripe/_subscription.py b/stripe/_subscription.py index a66720d4f..69e9754e7 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -246,6 +246,16 @@ class CancellationDetails(StripeObject): """ class InvoiceSettings(StripeObject): + class CustomField(StripeObject): + name: str + """ + The name of the custom field. + """ + value: str + """ + The value of the custom field. + """ + class Issuer(StripeObject): account: Optional[ExpandableField["Account"]] """ @@ -260,8 +270,20 @@ class Issuer(StripeObject): """ The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. """ + custom_fields: Optional[List[CustomField]] + """ + A list of up to 4 custom fields to be displayed on the invoice. + """ + description: Optional[str] + """ + An arbitrary string attached to the object. Often useful for displaying to users. + """ + footer: Optional[str] + """ + Footer to be displayed on the invoice. + """ issuer: Issuer - _inner_class_types = {"issuer": Issuer} + _inner_class_types = {"custom_fields": CustomField, "issuer": Issuer} class ManagedPayments(StripeObject): enabled: bool @@ -603,6 +625,7 @@ class Filters(StripeObject): "pix", "promptpay", "revolut_pay", + "satispay", "sepa_credit_transfer", "sepa_debit", "sofort", @@ -916,7 +939,7 @@ def _cls_cancel( """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. + Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -942,7 +965,7 @@ def cancel( """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. + Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -955,7 +978,7 @@ def cancel( """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. + Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -968,7 +991,7 @@ def cancel( # pyright: ignore[reportGeneralTypeIssues] """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. + Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -992,7 +1015,7 @@ async def _cls_cancel_async( """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. + Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -1018,7 +1041,7 @@ async def cancel_async( """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. + Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -1031,7 +1054,7 @@ async def cancel_async( """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. + Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -1044,7 +1067,7 @@ async def cancel_async( # pyright: ignore[reportGeneralTypeIssues] """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. + Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index f52f3f673..076cee8c7 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -48,7 +48,7 @@ def cancel( """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. + Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -76,7 +76,7 @@ async def cancel_async( """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. + Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index be7819d7b..706c322d8 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -1585,6 +1585,22 @@ class Sofort(StripeObject): 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 Sunbit(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + 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 Swish(StripeObject): reference: Optional[str] """ @@ -1698,6 +1714,26 @@ class Filters(StripeObject): "financial_connections": FinancialConnections } + class WechatPay(StripeObject): + app_id: Optional[str] + """ + The app ID registered with WeChat Pay. Only required when client is iOS or Android. + """ + client: Optional[Literal["android", "ios", "web"]] + """ + The client type that the end customer will pay from + """ + 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). + """ + acss_debit: Optional[AcssDebit] affirm: Optional[Affirm] afterpay_clearpay: Optional[AfterpayClearpay] @@ -1738,10 +1774,12 @@ class Filters(StripeObject): scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] sofort: Optional[Sofort] + sunbit: Optional[Sunbit] swish: Optional[Swish] twint: Optional[Twint] upi: Optional[Upi] us_bank_account: Optional[UsBankAccount] + wechat_pay: Optional[WechatPay] _inner_class_types = { "acss_debit": AcssDebit, "affirm": Affirm, @@ -1783,10 +1821,12 @@ class Filters(StripeObject): "scalapay": Scalapay, "sepa_debit": SepaDebit, "sofort": Sofort, + "sunbit": Sunbit, "swish": Swish, "twint": Twint, "upi": Upi, "us_bank_account": UsBankAccount, + "wechat_pay": WechatPay, } class Permissions(StripeObject): diff --git a/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py b/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py index e49fce024..94aeb5f40 100644 --- a/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py +++ b/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py @@ -140,6 +140,7 @@ class V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventDat "samsung_pay_payments", "sepa_bank_transfer_payments", "sepa_debit_payments", + "sunbit_payments", "swish_payments", "twint_payments", "us_bank_transfer_payments", diff --git a/stripe/financial_connections/_account.py b/stripe/financial_connections/_account.py index e81de2959..e4098ccd3 100644 --- a/stripe/financial_connections/_account.py +++ b/stripe/financial_connections/_account.py @@ -149,6 +149,26 @@ class OwnershipRefresh(StripeObject): The status of the last refresh attempt. """ + class StatusDetails(StripeObject): + class Active(StripeObject): + action: Literal["none", "relink_required"] + """ + The action (if any) to proactively relink the Account. + """ + cause: Literal[ + "access_expired", "institution_requirement", "unspecified" + ] + """ + The underlying cause of the Account becoming inactive. + """ + expected_deactivation_date: int + """ + When the Account is expected to become inactive, if applicable. + """ + + active: Optional[Active] + _inner_class_types = {"active": Active} + class TransactionRefresh(StripeObject): id: str """ @@ -235,6 +255,7 @@ class TransactionRefresh(StripeObject): """ The status of the link to the account. """ + status_details: Optional[StatusDetails] subcategory: Literal[ "checking", "credit_card", @@ -890,5 +911,6 @@ async def unsubscribe_async( # pyright: ignore[reportGeneralTypeIssues] "balance": Balance, "balance_refresh": BalanceRefresh, "ownership_refresh": OwnershipRefresh, + "status_details": StatusDetails, "transaction_refresh": TransactionRefresh, } diff --git a/stripe/identity/_verification_session.py b/stripe/identity/_verification_session.py index 6a3136202..25216c5aa 100644 --- a/stripe/identity/_verification_session.py +++ b/stripe/identity/_verification_session.py @@ -157,7 +157,7 @@ class ProvidedDetails(StripeObject): """ class Redaction(StripeObject): - status: Literal["processing", "redacted"] + status: Literal["processing", "redacted", "validated"] """ Indicates whether this object and its related objects have been redacted or not. """ diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py index e7bf7eff8..dc99b081b 100644 --- a/stripe/params/__init__.py +++ b/stripe/params/__init__.py @@ -1005,6 +1005,7 @@ DisputeModifyParams as DisputeModifyParams, DisputeModifyParamsEvidence as DisputeModifyParamsEvidence, DisputeModifyParamsEvidenceEnhancedEvidence as DisputeModifyParamsEvidenceEnhancedEvidence, + DisputeModifyParamsEvidenceEnhancedEvidenceMastercardCompliance as DisputeModifyParamsEvidenceEnhancedEvidenceMastercardCompliance, DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3 as DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3, DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction as DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction, DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress as DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress, @@ -1019,6 +1020,7 @@ DisputeUpdateParams as DisputeUpdateParams, DisputeUpdateParamsEvidence as DisputeUpdateParamsEvidence, DisputeUpdateParamsEvidenceEnhancedEvidence as DisputeUpdateParamsEvidenceEnhancedEvidence, + DisputeUpdateParamsEvidenceEnhancedEvidenceMastercardCompliance as DisputeUpdateParamsEvidenceEnhancedEvidenceMastercardCompliance, DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3 as DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3, DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction as DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction, DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress as DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress, @@ -1556,6 +1558,7 @@ PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit as PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit, PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentConfirmParamsPaymentMethodOptionsSofort as PaymentIntentConfirmParamsPaymentMethodOptionsSofort, + PaymentIntentConfirmParamsPaymentMethodOptionsSunbit as PaymentIntentConfirmParamsPaymentMethodOptionsSunbit, PaymentIntentConfirmParamsPaymentMethodOptionsSwish as PaymentIntentConfirmParamsPaymentMethodOptionsSwish, PaymentIntentConfirmParamsPaymentMethodOptionsTwint as PaymentIntentConfirmParamsPaymentMethodOptionsTwint, PaymentIntentConfirmParamsPaymentMethodOptionsUpi as PaymentIntentConfirmParamsPaymentMethodOptionsUpi, @@ -1719,6 +1722,7 @@ PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit as PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit, PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentCreateParamsPaymentMethodOptionsSofort as PaymentIntentCreateParamsPaymentMethodOptionsSofort, + PaymentIntentCreateParamsPaymentMethodOptionsSunbit as PaymentIntentCreateParamsPaymentMethodOptionsSunbit, PaymentIntentCreateParamsPaymentMethodOptionsSwish as PaymentIntentCreateParamsPaymentMethodOptionsSwish, PaymentIntentCreateParamsPaymentMethodOptionsTwint as PaymentIntentCreateParamsPaymentMethodOptionsTwint, PaymentIntentCreateParamsPaymentMethodOptionsUpi as PaymentIntentCreateParamsPaymentMethodOptionsUpi, @@ -1904,6 +1908,7 @@ PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit as PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit, PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentModifyParamsPaymentMethodOptionsSofort as PaymentIntentModifyParamsPaymentMethodOptionsSofort, + PaymentIntentModifyParamsPaymentMethodOptionsSunbit as PaymentIntentModifyParamsPaymentMethodOptionsSunbit, PaymentIntentModifyParamsPaymentMethodOptionsSwish as PaymentIntentModifyParamsPaymentMethodOptionsSwish, PaymentIntentModifyParamsPaymentMethodOptionsTwint as PaymentIntentModifyParamsPaymentMethodOptionsTwint, PaymentIntentModifyParamsPaymentMethodOptionsUpi as PaymentIntentModifyParamsPaymentMethodOptionsUpi, @@ -2069,6 +2074,7 @@ PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit as PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit, PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentUpdateParamsPaymentMethodOptionsSofort as PaymentIntentUpdateParamsPaymentMethodOptionsSofort, + PaymentIntentUpdateParamsPaymentMethodOptionsSunbit as PaymentIntentUpdateParamsPaymentMethodOptionsSunbit, PaymentIntentUpdateParamsPaymentMethodOptionsSwish as PaymentIntentUpdateParamsPaymentMethodOptionsSwish, PaymentIntentUpdateParamsPaymentMethodOptionsTwint as PaymentIntentUpdateParamsPaymentMethodOptionsTwint, PaymentIntentUpdateParamsPaymentMethodOptionsUpi as PaymentIntentUpdateParamsPaymentMethodOptionsUpi, @@ -3561,6 +3567,7 @@ SubscriptionCreateParamsBillingThresholds as SubscriptionCreateParamsBillingThresholds, SubscriptionCreateParamsDiscount as SubscriptionCreateParamsDiscount, SubscriptionCreateParamsInvoiceSettings as SubscriptionCreateParamsInvoiceSettings, + SubscriptionCreateParamsInvoiceSettingsCustomField as SubscriptionCreateParamsInvoiceSettingsCustomField, SubscriptionCreateParamsInvoiceSettingsIssuer as SubscriptionCreateParamsInvoiceSettingsIssuer, SubscriptionCreateParamsItem as SubscriptionCreateParamsItem, SubscriptionCreateParamsItemBillingThresholds as SubscriptionCreateParamsItemBillingThresholds, @@ -3656,6 +3663,7 @@ SubscriptionModifyParamsCancellationDetails as SubscriptionModifyParamsCancellationDetails, SubscriptionModifyParamsDiscount as SubscriptionModifyParamsDiscount, SubscriptionModifyParamsInvoiceSettings as SubscriptionModifyParamsInvoiceSettings, + SubscriptionModifyParamsInvoiceSettingsCustomField as SubscriptionModifyParamsInvoiceSettingsCustomField, SubscriptionModifyParamsInvoiceSettingsIssuer as SubscriptionModifyParamsInvoiceSettingsIssuer, SubscriptionModifyParamsItem as SubscriptionModifyParamsItem, SubscriptionModifyParamsItemBillingThresholds as SubscriptionModifyParamsItemBillingThresholds, @@ -3824,6 +3832,7 @@ SubscriptionUpdateParamsCancellationDetails as SubscriptionUpdateParamsCancellationDetails, SubscriptionUpdateParamsDiscount as SubscriptionUpdateParamsDiscount, SubscriptionUpdateParamsInvoiceSettings as SubscriptionUpdateParamsInvoiceSettings, + SubscriptionUpdateParamsInvoiceSettingsCustomField as SubscriptionUpdateParamsInvoiceSettingsCustomField, SubscriptionUpdateParamsInvoiceSettingsIssuer as SubscriptionUpdateParamsInvoiceSettingsIssuer, SubscriptionUpdateParamsItem as SubscriptionUpdateParamsItem, SubscriptionUpdateParamsItemBillingThresholds as SubscriptionUpdateParamsItemBillingThresholds, @@ -3949,6 +3958,8 @@ ) from stripe.params._topup_create_params import ( TopupCreateParams as TopupCreateParams, + TopupCreateParamsPaymentMethodOptions as TopupCreateParamsPaymentMethodOptions, + TopupCreateParamsPaymentMethodOptionsUsBankAccount as TopupCreateParamsPaymentMethodOptionsUsBankAccount, ) from stripe.params._topup_list_params import ( TopupListParams as TopupListParams, @@ -6700,6 +6711,10 @@ "stripe.params._dispute_modify_params", False, ), + "DisputeModifyParamsEvidenceEnhancedEvidenceMastercardCompliance": ( + "stripe.params._dispute_modify_params", + False, + ), "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3": ( "stripe.params._dispute_modify_params", False, @@ -6734,6 +6749,10 @@ "stripe.params._dispute_update_params", False, ), + "DisputeUpdateParamsEvidenceEnhancedEvidenceMastercardCompliance": ( + "stripe.params._dispute_update_params", + False, + ), "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3": ( "stripe.params._dispute_update_params", False, @@ -8384,6 +8403,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsSunbit": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsSwish": ( "stripe.params._payment_intent_confirm_params", False, @@ -9028,6 +9051,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsSunbit": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsSwish": ( "stripe.params._payment_intent_create_params", False, @@ -9736,6 +9763,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsSunbit": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsSwish": ( "stripe.params._payment_intent_modify_params", False, @@ -10372,6 +10403,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsSunbit": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsSwish": ( "stripe.params._payment_intent_update_params", False, @@ -15173,6 +15208,10 @@ "stripe.params._subscription_create_params", False, ), + "SubscriptionCreateParamsInvoiceSettingsCustomField": ( + "stripe.params._subscription_create_params", + False, + ), "SubscriptionCreateParamsInvoiceSettingsIssuer": ( "stripe.params._subscription_create_params", False, @@ -15473,6 +15512,10 @@ "stripe.params._subscription_modify_params", False, ), + "SubscriptionModifyParamsInvoiceSettingsCustomField": ( + "stripe.params._subscription_modify_params", + False, + ), "SubscriptionModifyParamsInvoiceSettingsIssuer": ( "stripe.params._subscription_modify_params", False, @@ -16057,6 +16100,10 @@ "stripe.params._subscription_update_params", False, ), + "SubscriptionUpdateParamsInvoiceSettingsCustomField": ( + "stripe.params._subscription_update_params", + False, + ), "SubscriptionUpdateParamsInvoiceSettingsIssuer": ( "stripe.params._subscription_update_params", False, @@ -16377,6 +16424,14 @@ "TokenRetrieveParams": ("stripe.params._token_retrieve_params", False), "TopupCancelParams": ("stripe.params._topup_cancel_params", False), "TopupCreateParams": ("stripe.params._topup_create_params", False), + "TopupCreateParamsPaymentMethodOptions": ( + "stripe.params._topup_create_params", + False, + ), + "TopupCreateParamsPaymentMethodOptionsUsBankAccount": ( + "stripe.params._topup_create_params", + False, + ), "TopupListParams": ("stripe.params._topup_list_params", False), "TopupListParamsAmount": ("stripe.params._topup_list_params", False), "TopupListParamsCreated": ("stripe.params._topup_list_params", False), diff --git a/stripe/params/_account_create_params.py b/stripe/params/_account_create_params.py index be5e3f9e0..852e9b421 100644 --- a/stripe/params/_account_create_params.py +++ b/stripe/params/_account_create_params.py @@ -1366,7 +1366,7 @@ class AccountCreateParamsDocuments(TypedDict): "AccountCreateParamsDocumentsCompanyMemorandumOfAssociation" ] """ - One or more documents showing the company's Memorandum of Association. + One or more documents showing the company's governing document (for example, a memorandum of association, constitution, or articles of association). """ company_ministerial_decree: NotRequired[ "AccountCreateParamsDocumentsCompanyMinisterialDecree" diff --git a/stripe/params/_account_update_params.py b/stripe/params/_account_update_params.py index 2e0a7d6e4..83427e8c8 100644 --- a/stripe/params/_account_update_params.py +++ b/stripe/params/_account_update_params.py @@ -1308,7 +1308,7 @@ class AccountUpdateParamsDocuments(TypedDict): "AccountUpdateParamsDocumentsCompanyMemorandumOfAssociation" ] """ - One or more documents showing the company's Memorandum of Association. + One or more documents showing the company's governing document (for example, a memorandum of association, constitution, or articles of association). """ company_ministerial_decree: NotRequired[ "AccountUpdateParamsDocumentsCompanyMinisterialDecree" diff --git a/stripe/params/_balance_transaction_list_params.py b/stripe/params/_balance_transaction_list_params.py index 9f636474c..04d0554ca 100644 --- a/stripe/params/_balance_transaction_list_params.py +++ b/stripe/params/_balance_transaction_list_params.py @@ -40,7 +40,7 @@ class BalanceTransactionListParams(RequestOptions): """ type: NotRequired[str] """ - Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. + Only returns transactions of the given type. One of: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. """ diff --git a/stripe/params/_confirmation_token_create_params.py b/stripe/params/_confirmation_token_create_params.py index b1d21fb89..a7ec38732 100644 --- a/stripe/params/_confirmation_token_create_params.py +++ b/stripe/params/_confirmation_token_create_params.py @@ -304,7 +304,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSwish"] """ diff --git a/stripe/params/_credit_note_create_params.py b/stripe/params/_credit_note_create_params.py index 6299dba8e..5ce43d56b 100644 --- a/stripe/params/_credit_note_create_params.py +++ b/stripe/params/_credit_note_create_params.py @@ -95,7 +95,7 @@ class CreditNoteCreateParamsLine(TypedDict): "Literal['']|List[CreditNoteCreateParamsLineTaxAmount]" ] """ - A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. """ tax_rates: NotRequired["Literal['']|List[str]"] """ diff --git a/stripe/params/_credit_note_preview_lines_list_params.py b/stripe/params/_credit_note_preview_lines_list_params.py index 140b25522..e14ea097f 100644 --- a/stripe/params/_credit_note_preview_lines_list_params.py +++ b/stripe/params/_credit_note_preview_lines_list_params.py @@ -106,7 +106,7 @@ class CreditNotePreviewLinesListParamsLine(TypedDict): "Literal['']|List[CreditNotePreviewLinesListParamsLineTaxAmount]" ] """ - A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. """ tax_rates: NotRequired["Literal['']|List[str]"] """ diff --git a/stripe/params/_credit_note_preview_lines_params.py b/stripe/params/_credit_note_preview_lines_params.py index 54102dd77..d8974086f 100644 --- a/stripe/params/_credit_note_preview_lines_params.py +++ b/stripe/params/_credit_note_preview_lines_params.py @@ -107,7 +107,7 @@ class CreditNotePreviewLinesParamsLine(TypedDict): "Literal['']|List[CreditNotePreviewLinesParamsLineTaxAmount]" ] """ - A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. """ tax_rates: NotRequired["Literal['']|List[str]"] """ diff --git a/stripe/params/_credit_note_preview_params.py b/stripe/params/_credit_note_preview_params.py index 4987dd467..ec7be34e9 100644 --- a/stripe/params/_credit_note_preview_params.py +++ b/stripe/params/_credit_note_preview_params.py @@ -95,7 +95,7 @@ class CreditNotePreviewParamsLine(TypedDict): "Literal['']|List[CreditNotePreviewParamsLineTaxAmount]" ] """ - A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. """ tax_rates: NotRequired["Literal['']|List[str]"] """ diff --git a/stripe/params/_dispute_modify_params.py b/stripe/params/_dispute_modify_params.py index d63713298..7379e4f95 100644 --- a/stripe/params/_dispute_modify_params.py +++ b/stripe/params/_dispute_modify_params.py @@ -145,6 +145,12 @@ class DisputeModifyParamsEvidence(TypedDict): class DisputeModifyParamsEvidenceEnhancedEvidence(TypedDict): + mastercard_compliance: NotRequired[ + "DisputeModifyParamsEvidenceEnhancedEvidenceMastercardCompliance" + ] + """ + Evidence provided for Mastercard compliance evidence submission. + """ visa_compelling_evidence_3: NotRequired[ "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3" ] @@ -159,6 +165,15 @@ class DisputeModifyParamsEvidenceEnhancedEvidence(TypedDict): """ +class DisputeModifyParamsEvidenceEnhancedEvidenceMastercardCompliance( + TypedDict, +): + fee_acknowledged: NotRequired[bool] + """ + A field acknowledging the fee incurred when countering a Mastercard compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. + """ + + class DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3( TypedDict, ): diff --git a/stripe/params/_dispute_update_params.py b/stripe/params/_dispute_update_params.py index 79f5c7876..eabbfaff0 100644 --- a/stripe/params/_dispute_update_params.py +++ b/stripe/params/_dispute_update_params.py @@ -144,6 +144,12 @@ class DisputeUpdateParamsEvidence(TypedDict): class DisputeUpdateParamsEvidenceEnhancedEvidence(TypedDict): + mastercard_compliance: NotRequired[ + "DisputeUpdateParamsEvidenceEnhancedEvidenceMastercardCompliance" + ] + """ + Evidence provided for Mastercard compliance evidence submission. + """ visa_compelling_evidence_3: NotRequired[ "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3" ] @@ -158,6 +164,15 @@ class DisputeUpdateParamsEvidenceEnhancedEvidence(TypedDict): """ +class DisputeUpdateParamsEvidenceEnhancedEvidenceMastercardCompliance( + TypedDict, +): + fee_acknowledged: NotRequired[bool] + """ + A field acknowledging the fee incurred when countering a Mastercard compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. + """ + + class DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3( TypedDict, ): diff --git a/stripe/params/_invoice_add_lines_params.py b/stripe/params/_invoice_add_lines_params.py index cae4ecf4e..6f672e37c 100644 --- a/stripe/params/_invoice_add_lines_params.py +++ b/stripe/params/_invoice_add_lines_params.py @@ -77,7 +77,7 @@ class InvoiceAddLinesParamsLine(TypedDict): "Literal['']|List[InvoiceAddLinesParamsLineTaxAmount]" ] """ - A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. + A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. """ tax_rates: NotRequired["Literal['']|List[str]"] """ diff --git a/stripe/params/_invoice_create_params.py b/stripe/params/_invoice_create_params.py index f95675082..4ab17fdac 100644 --- a/stripe/params/_invoice_create_params.py +++ b/stripe/params/_invoice_create_params.py @@ -229,7 +229,7 @@ class InvoiceCreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ 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). diff --git a/stripe/params/_invoice_create_preview_params.py b/stripe/params/_invoice_create_preview_params.py index 6b92ce798..6da2a604c 100644 --- a/stripe/params/_invoice_create_preview_params.py +++ b/stripe/params/_invoice_create_preview_params.py @@ -1146,7 +1146,7 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsItem(TypedDict): """ id: NotRequired[str] """ - Subscription item to update. + Subscription item to update. If you omit `id`, the API adds a new subscription item rather than updating the existing one. See [Changing a subscription's price](https://docs.stripe.com/billing/subscriptions/change-price#changing). """ metadata: NotRequired[ "Literal['']|Dict[str, str]|UntypedStripeObject[str]" diff --git a/stripe/params/_invoice_line_item_update_params.py b/stripe/params/_invoice_line_item_update_params.py index 04f4d2528..d1c4d039c 100644 --- a/stripe/params/_invoice_line_item_update_params.py +++ b/stripe/params/_invoice_line_item_update_params.py @@ -59,7 +59,7 @@ class InvoiceLineItemUpdateParams(TypedDict): "Literal['']|List[InvoiceLineItemUpdateParamsTaxAmount]" ] """ - A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. + A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. """ tax_rates: NotRequired["Literal['']|List[str]"] """ diff --git a/stripe/params/_invoice_modify_params.py b/stripe/params/_invoice_modify_params.py index c1ec68ac0..25f85ba6b 100644 --- a/stripe/params/_invoice_modify_params.py +++ b/stripe/params/_invoice_modify_params.py @@ -196,7 +196,7 @@ class InvoiceModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ 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). diff --git a/stripe/params/_invoice_update_lines_params.py b/stripe/params/_invoice_update_lines_params.py index de6731409..617a9a1b8 100644 --- a/stripe/params/_invoice_update_lines_params.py +++ b/stripe/params/_invoice_update_lines_params.py @@ -77,7 +77,7 @@ class InvoiceUpdateLinesParamsLine(TypedDict): "Literal['']|List[InvoiceUpdateLinesParamsLineTaxAmount]" ] """ - A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. + A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. """ tax_rates: NotRequired["Literal['']|List[str]"] """ diff --git a/stripe/params/_invoice_update_params.py b/stripe/params/_invoice_update_params.py index c5f9d2eb9..09736a6f5 100644 --- a/stripe/params/_invoice_update_params.py +++ b/stripe/params/_invoice_update_params.py @@ -195,7 +195,7 @@ class InvoiceUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to the invoice's PaymentIntent. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ 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). diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py index a0c63009b..33983c3e2 100644 --- a/stripe/params/_payment_intent_confirm_params.py +++ b/stripe/params/_payment_intent_confirm_params.py @@ -655,7 +655,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataSwish"] """ @@ -1568,6 +1568,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): """ If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. """ + sunbit: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSunbit" + ] + """ + If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options. + """ swish: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSwish" ] @@ -3064,6 +3070,18 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsSatispay(TypedDict): If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + 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 PaymentIntentConfirmParamsPaymentMethodOptionsScalapay(TypedDict): @@ -3136,6 +3154,27 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsSofort(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodOptionsSunbit(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + setup_future_usage: NotRequired[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 PaymentIntentConfirmParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ @@ -3313,7 +3352,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountNetworks( class PaymentIntentConfirmParamsPaymentMethodOptionsWechatPay(TypedDict): app_id: NotRequired[str] """ - The app ID registered with WeChat Pay. Only required when client is ios or android. + The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. """ client: NotRequired[Literal["android", "ios", "web"]] """ diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py index d8be7545b..6867b222b 100644 --- a/stripe/params/_payment_intent_create_params.py +++ b/stripe/params/_payment_intent_create_params.py @@ -787,7 +787,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSwish"] """ @@ -1700,6 +1700,12 @@ class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): """ If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. """ + sunbit: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSunbit" + ] + """ + If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options. + """ swish: NotRequired[ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSwish" ] @@ -3190,6 +3196,18 @@ class PaymentIntentCreateParamsPaymentMethodOptionsSatispay(TypedDict): If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + 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 PaymentIntentCreateParamsPaymentMethodOptionsScalapay(TypedDict): @@ -3262,6 +3280,27 @@ class PaymentIntentCreateParamsPaymentMethodOptionsSofort(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodOptionsSunbit(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + setup_future_usage: NotRequired[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 PaymentIntentCreateParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ @@ -3439,7 +3478,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountNetworks( class PaymentIntentCreateParamsPaymentMethodOptionsWechatPay(TypedDict): app_id: NotRequired[str] """ - The app ID registered with WeChat Pay. Only required when client is ios or android. + The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. """ client: NotRequired[Literal["android", "ios", "web"]] """ diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py index c4169ca30..37e89f1e0 100644 --- a/stripe/params/_payment_intent_modify_params.py +++ b/stripe/params/_payment_intent_modify_params.py @@ -622,7 +622,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSwish"] """ @@ -1535,6 +1535,12 @@ class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): """ If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. """ + sunbit: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSunbit" + ] + """ + If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options. + """ swish: NotRequired[ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSwish" ] @@ -3025,6 +3031,18 @@ class PaymentIntentModifyParamsPaymentMethodOptionsSatispay(TypedDict): If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + 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 PaymentIntentModifyParamsPaymentMethodOptionsScalapay(TypedDict): @@ -3097,6 +3115,27 @@ class PaymentIntentModifyParamsPaymentMethodOptionsSofort(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodOptionsSunbit(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + setup_future_usage: NotRequired[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 PaymentIntentModifyParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ @@ -3274,7 +3313,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountNetworks( class PaymentIntentModifyParamsPaymentMethodOptionsWechatPay(TypedDict): app_id: NotRequired[str] """ - The app ID registered with WeChat Pay. Only required when client is ios or android. + The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. """ client: NotRequired[Literal["android", "ios", "web"]] """ diff --git a/stripe/params/_payment_intent_search_params.py b/stripe/params/_payment_intent_search_params.py index 516352aec..37f7a2dff 100644 --- a/stripe/params/_payment_intent_search_params.py +++ b/stripe/params/_payment_intent_search_params.py @@ -20,5 +20,5 @@ class PaymentIntentSearchParams(RequestOptions): """ query: str """ - The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for payment intents](https://docs.stripe.com/search#query-fields-for-payment-intents). + The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for payment intents](https://docs.stripe.com/search#query-fields-for-paymentintents). """ diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py index b2305f084..c88c9ab6c 100644 --- a/stripe/params/_payment_intent_update_params.py +++ b/stripe/params/_payment_intent_update_params.py @@ -621,7 +621,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSwish"] """ @@ -1534,6 +1534,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): """ If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. """ + sunbit: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSunbit" + ] + """ + If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options. + """ swish: NotRequired[ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSwish" ] @@ -3024,6 +3030,18 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsSatispay(TypedDict): If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. """ + setup_future_usage: NotRequired[ + "Literal['']|Literal['none', 'off_session', 'on_session']" + ] + """ + 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 PaymentIntentUpdateParamsPaymentMethodOptionsScalapay(TypedDict): @@ -3096,6 +3114,27 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsSofort(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodOptionsSunbit(TypedDict): + capture_method: NotRequired["Literal['']|Literal['manual']"] + """ + Controls when the funds are captured from the customer's account. + + If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + + If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + """ + setup_future_usage: NotRequired[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 PaymentIntentUpdateParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired["Literal['']|str"] """ @@ -3273,7 +3312,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountNetworks( class PaymentIntentUpdateParamsPaymentMethodOptionsWechatPay(TypedDict): app_id: NotRequired[str] """ - The app ID registered with WeChat Pay. Only required when client is ios or android. + The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. """ client: NotRequired[Literal["android", "ios", "web"]] """ diff --git a/stripe/params/_payment_link_create_params.py b/stripe/params/_payment_link_create_params.py index 0b975c6cb..d2a03b6d2 100644 --- a/stripe/params/_payment_link_create_params.py +++ b/stripe/params/_payment_link_create_params.py @@ -107,6 +107,9 @@ class PaymentLinkCreateParams(RequestOptions): payment_method_options: NotRequired[ "PaymentLinkCreateParamsPaymentMethodOptions" ] + """ + Payment-method-specific configuration. + """ payment_method_types: NotRequired[ List[ Literal[ diff --git a/stripe/params/_payment_method_create_params.py b/stripe/params/_payment_method_create_params.py index bed5bfdb9..68f930682 100644 --- a/stripe/params/_payment_method_create_params.py +++ b/stripe/params/_payment_method_create_params.py @@ -233,7 +233,7 @@ class PaymentMethodCreateParams(RequestOptions): """ sunbit: NotRequired["PaymentMethodCreateParamsSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["PaymentMethodCreateParamsSwish"] """ diff --git a/stripe/params/_payment_record_report_refund_params.py b/stripe/params/_payment_record_report_refund_params.py index a2eacdfe2..c18df94b6 100644 --- a/stripe/params/_payment_record_report_refund_params.py +++ b/stripe/params/_payment_record_report_refund_params.py @@ -33,7 +33,7 @@ class PaymentRecordReportRefundParams(RequestOptions): """ Processor information for this refund. """ - refunded: "PaymentRecordReportRefundParamsRefunded" + refunded: NotRequired["PaymentRecordReportRefundParamsRefunded"] """ Information about the payment attempt refund. """ diff --git a/stripe/params/_setup_intent_confirm_params.py b/stripe/params/_setup_intent_confirm_params.py index b4a90c0d9..24b9628a3 100644 --- a/stripe/params/_setup_intent_confirm_params.py +++ b/stripe/params/_setup_intent_confirm_params.py @@ -339,7 +339,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["SetupIntentConfirmParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["SetupIntentConfirmParamsPaymentMethodDataSwish"] """ diff --git a/stripe/params/_setup_intent_create_params.py b/stripe/params/_setup_intent_create_params.py index 6fb00af9b..ebacfc819 100644 --- a/stripe/params/_setup_intent_create_params.py +++ b/stripe/params/_setup_intent_create_params.py @@ -471,7 +471,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["SetupIntentCreateParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["SetupIntentCreateParamsPaymentMethodDataSwish"] """ diff --git a/stripe/params/_setup_intent_modify_params.py b/stripe/params/_setup_intent_modify_params.py index d8e028871..3be1f43c4 100644 --- a/stripe/params/_setup_intent_modify_params.py +++ b/stripe/params/_setup_intent_modify_params.py @@ -317,7 +317,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["SetupIntentModifyParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["SetupIntentModifyParamsPaymentMethodDataSwish"] """ diff --git a/stripe/params/_setup_intent_update_params.py b/stripe/params/_setup_intent_update_params.py index 63dae872e..fc29f50ce 100644 --- a/stripe/params/_setup_intent_update_params.py +++ b/stripe/params/_setup_intent_update_params.py @@ -316,7 +316,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["SetupIntentUpdateParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["SetupIntentUpdateParamsPaymentMethodDataSwish"] """ diff --git a/stripe/params/_subscription_create_params.py b/stripe/params/_subscription_create_params.py index b2daef377..6f6d271a3 100644 --- a/stripe/params/_subscription_create_params.py +++ b/stripe/params/_subscription_create_params.py @@ -439,12 +439,37 @@ class SubscriptionCreateParamsInvoiceSettings(TypedDict): """ The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. """ + custom_fields: NotRequired[ + "Literal['']|List[SubscriptionCreateParamsInvoiceSettingsCustomField]" + ] + """ + A list of up to 4 custom fields to be displayed on the invoice. + """ + description: NotRequired[str] + """ + An arbitrary string attached to the object. Often useful for displaying to users. + """ + footer: NotRequired[str] + """ + Footer to be displayed on the invoice. + """ issuer: NotRequired["SubscriptionCreateParamsInvoiceSettingsIssuer"] """ The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. """ +class SubscriptionCreateParamsInvoiceSettingsCustomField(TypedDict): + name: str + """ + The name of the custom field. This may be up to 40 characters. + """ + value: str + """ + The value of the custom field. This may be up to 140 characters. + """ + + class SubscriptionCreateParamsInvoiceSettingsIssuer(TypedDict): account: NotRequired[str] """ @@ -563,7 +588,7 @@ class SubscriptionCreateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ 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 diff --git a/stripe/params/_subscription_modify_params.py b/stripe/params/_subscription_modify_params.py index 7b8512126..38e455572 100644 --- a/stripe/params/_subscription_modify_params.py +++ b/stripe/params/_subscription_modify_params.py @@ -399,12 +399,37 @@ class SubscriptionModifyParamsInvoiceSettings(TypedDict): """ The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. """ + custom_fields: NotRequired[ + "Literal['']|List[SubscriptionModifyParamsInvoiceSettingsCustomField]" + ] + """ + A list of up to 4 custom fields to be displayed on the invoice. + """ + description: NotRequired["Literal['']|str"] + """ + An arbitrary string attached to the object. Often useful for displaying to users. + """ + footer: NotRequired["Literal['']|str"] + """ + Footer to be displayed on the invoice. + """ issuer: NotRequired["SubscriptionModifyParamsInvoiceSettingsIssuer"] """ The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. """ +class SubscriptionModifyParamsInvoiceSettingsCustomField(TypedDict): + name: str + """ + The name of the custom field. This may be up to 40 characters. + """ + value: str + """ + The value of the custom field. This may be up to 140 characters. + """ + + class SubscriptionModifyParamsInvoiceSettingsIssuer(TypedDict): account: NotRequired[str] """ @@ -439,7 +464,7 @@ class SubscriptionModifyParamsItem(TypedDict): """ id: NotRequired[str] """ - Subscription item to update. + Subscription item to update. If you omit `id`, the API adds a new subscription item rather than updating the existing one. See [Changing a subscription's price](https://docs.stripe.com/billing/subscriptions/change-price#changing). """ metadata: NotRequired[ "Literal['']|Dict[str, str]|UntypedStripeObject[str]" @@ -548,7 +573,7 @@ class SubscriptionModifyParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ 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 diff --git a/stripe/params/_subscription_update_params.py b/stripe/params/_subscription_update_params.py index e67522480..d9ce2cf3c 100644 --- a/stripe/params/_subscription_update_params.py +++ b/stripe/params/_subscription_update_params.py @@ -398,12 +398,37 @@ class SubscriptionUpdateParamsInvoiceSettings(TypedDict): """ The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. """ + custom_fields: NotRequired[ + "Literal['']|List[SubscriptionUpdateParamsInvoiceSettingsCustomField]" + ] + """ + A list of up to 4 custom fields to be displayed on the invoice. + """ + description: NotRequired["Literal['']|str"] + """ + An arbitrary string attached to the object. Often useful for displaying to users. + """ + footer: NotRequired["Literal['']|str"] + """ + Footer to be displayed on the invoice. + """ issuer: NotRequired["SubscriptionUpdateParamsInvoiceSettingsIssuer"] """ The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. """ +class SubscriptionUpdateParamsInvoiceSettingsCustomField(TypedDict): + name: str + """ + The name of the custom field. This may be up to 40 characters. + """ + value: str + """ + The value of the custom field. This may be up to 140 characters. + """ + + class SubscriptionUpdateParamsInvoiceSettingsIssuer(TypedDict): account: NotRequired[str] """ @@ -438,7 +463,7 @@ class SubscriptionUpdateParamsItem(TypedDict): """ id: NotRequired[str] """ - Subscription item to update. + Subscription item to update. If you omit `id`, the API adds a new subscription item rather than updating the existing one. See [Changing a subscription's price](https://docs.stripe.com/billing/subscriptions/change-price#changing). """ metadata: NotRequired[ "Literal['']|Dict[str, str]|UntypedStripeObject[str]" @@ -547,7 +572,7 @@ class SubscriptionUpdateParamsPaymentSettings(TypedDict): Payment-method-specific configuration to provide to invoices created by the subscription. """ payment_method_types: NotRequired[ - "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" + "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay']]" ] """ 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 diff --git a/stripe/params/_topup_create_params.py b/stripe/params/_topup_create_params.py index 6203536e8..930c37cd3 100644 --- a/stripe/params/_topup_create_params.py +++ b/stripe/params/_topup_create_params.py @@ -3,7 +3,7 @@ from stripe._request_options import RequestOptions from stripe._stripe_object import UntypedStripeObject from typing import Dict, List -from typing_extensions import Literal, NotRequired +from typing_extensions import Literal, NotRequired, TypedDict class TopupCreateParams(RequestOptions): @@ -29,6 +29,16 @@ class TopupCreateParams(RequestOptions): """ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. """ + payment_method: NotRequired[str] + """ + The ID of a PaymentMethod representing the payment method to be used for the top-up. A PaymentMethod of type `us_bank_account` can be used. + """ + payment_method_options: NotRequired[ + "TopupCreateParamsPaymentMethodOptions" + ] + """ + Payment method-specific configuration for this top-up. + """ source: NotRequired[str] """ The ID of a source to transfer funds from. For most users, this should be left unspecified which will use the bank account that was set up in the dashboard for the specified currency. In test mode, this can be a test bank token (see [Testing Top-ups](https://docs.stripe.com/connect/testing#testing-top-ups)). @@ -41,3 +51,13 @@ class TopupCreateParams(RequestOptions): """ A string that identifies this top-up as part of a group. """ + + +class TopupCreateParamsPaymentMethodOptions(TypedDict): + us_bank_account: NotRequired[ + "TopupCreateParamsPaymentMethodOptionsUsBankAccount" + ] + + +class TopupCreateParamsPaymentMethodOptionsUsBankAccount(TypedDict): + network: Literal["ach"] diff --git a/stripe/params/_webhook_endpoint_create_params.py b/stripe/params/_webhook_endpoint_create_params.py index 589cb7af2..611621347 100644 --- a/stripe/params/_webhook_endpoint_create_params.py +++ b/stripe/params/_webhook_endpoint_create_params.py @@ -133,6 +133,7 @@ class WebhookEndpointCreateParams(RequestOptions): "2026-03-25.dahlia", "2026-04-22.dahlia", "2026-05-27.dahlia", + "2026-06-24.dahlia", ] ] """ @@ -161,7 +162,13 @@ class WebhookEndpointCreateParams(RequestOptions): "balance.available", "balance_settings.updated", "billing.alert.triggered", + "billing.credit_balance_transaction.created", "billing.credit_grant.created", + "billing.credit_grant.updated", + "billing.meter.created", + "billing.meter.deactivated", + "billing.meter.reactivated", + "billing.meter.updated", "billing_portal.configuration.created", "billing_portal.configuration.updated", "billing_portal.session.created", @@ -403,12 +410,6 @@ class WebhookEndpointCreateParams(RequestOptions): "treasury.received_credit.failed", "treasury.received_credit.succeeded", "treasury.received_debit.created", - "billing.credit_balance_transaction.created", - "billing.credit_grant.updated", - "billing.meter.created", - "billing.meter.deactivated", - "billing.meter.reactivated", - "billing.meter.updated", ] ] """ diff --git a/stripe/params/_webhook_endpoint_modify_params.py b/stripe/params/_webhook_endpoint_modify_params.py index 72dc85a1b..698a72709 100644 --- a/stripe/params/_webhook_endpoint_modify_params.py +++ b/stripe/params/_webhook_endpoint_modify_params.py @@ -31,7 +31,13 @@ class WebhookEndpointModifyParams(RequestOptions): "balance.available", "balance_settings.updated", "billing.alert.triggered", + "billing.credit_balance_transaction.created", "billing.credit_grant.created", + "billing.credit_grant.updated", + "billing.meter.created", + "billing.meter.deactivated", + "billing.meter.reactivated", + "billing.meter.updated", "billing_portal.configuration.created", "billing_portal.configuration.updated", "billing_portal.session.created", @@ -273,12 +279,6 @@ class WebhookEndpointModifyParams(RequestOptions): "treasury.received_credit.failed", "treasury.received_credit.succeeded", "treasury.received_debit.created", - "billing.credit_balance_transaction.created", - "billing.credit_grant.updated", - "billing.meter.created", - "billing.meter.deactivated", - "billing.meter.reactivated", - "billing.meter.updated", ] ] ] diff --git a/stripe/params/_webhook_endpoint_update_params.py b/stripe/params/_webhook_endpoint_update_params.py index 878b7a2d2..7acac088b 100644 --- a/stripe/params/_webhook_endpoint_update_params.py +++ b/stripe/params/_webhook_endpoint_update_params.py @@ -30,7 +30,13 @@ class WebhookEndpointUpdateParams(TypedDict): "balance.available", "balance_settings.updated", "billing.alert.triggered", + "billing.credit_balance_transaction.created", "billing.credit_grant.created", + "billing.credit_grant.updated", + "billing.meter.created", + "billing.meter.deactivated", + "billing.meter.reactivated", + "billing.meter.updated", "billing_portal.configuration.created", "billing_portal.configuration.updated", "billing_portal.session.created", @@ -272,12 +278,6 @@ class WebhookEndpointUpdateParams(TypedDict): "treasury.received_credit.failed", "treasury.received_credit.succeeded", "treasury.received_debit.created", - "billing.credit_balance_transaction.created", - "billing.credit_grant.updated", - "billing.meter.created", - "billing.meter.deactivated", - "billing.meter.reactivated", - "billing.meter.updated", ] ] ] diff --git a/stripe/params/billing/_credit_balance_summary_retrieve_params.py b/stripe/params/billing/_credit_balance_summary_retrieve_params.py index a5ea1a65a..aa72845f2 100644 --- a/stripe/params/billing/_credit_balance_summary_retrieve_params.py +++ b/stripe/params/billing/_credit_balance_summary_retrieve_params.py @@ -50,7 +50,7 @@ class CreditBalanceSummaryRetrieveParamsFilterApplicabilityScope(TypedDict): List["CreditBalanceSummaryRetrieveParamsFilterApplicabilityScopePrice"] ] """ - A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. + A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. Limit 20 prices. """ diff --git a/stripe/params/billing/_credit_grant_create_params.py b/stripe/params/billing/_credit_grant_create_params.py index aade53e43..2161be55c 100644 --- a/stripe/params/billing/_credit_grant_create_params.py +++ b/stripe/params/billing/_credit_grant_create_params.py @@ -91,7 +91,7 @@ class CreditGrantCreateParamsApplicabilityConfigScope(TypedDict): List["CreditGrantCreateParamsApplicabilityConfigScopePrice"] ] """ - A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. + A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. Limit 20 prices. """ diff --git a/stripe/params/checkout/__init__.py b/stripe/params/checkout/__init__.py index 649df0707..0c865ab53 100644 --- a/stripe/params/checkout/__init__.py +++ b/stripe/params/checkout/__init__.py @@ -105,6 +105,7 @@ SessionCreateParamsPaymentMethodOptionsSepaDebit as SessionCreateParamsPaymentMethodOptionsSepaDebit, SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions, SessionCreateParamsPaymentMethodOptionsSofort as SessionCreateParamsPaymentMethodOptionsSofort, + SessionCreateParamsPaymentMethodOptionsSunbit as SessionCreateParamsPaymentMethodOptionsSunbit, SessionCreateParamsPaymentMethodOptionsSwish as SessionCreateParamsPaymentMethodOptionsSwish, SessionCreateParamsPaymentMethodOptionsTwint as SessionCreateParamsPaymentMethodOptionsTwint, SessionCreateParamsPaymentMethodOptionsUpi as SessionCreateParamsPaymentMethodOptionsUpi, @@ -125,6 +126,7 @@ SessionCreateParamsShippingOptionShippingRateDataFixedAmount as SessionCreateParamsShippingOptionShippingRateDataFixedAmount, SessionCreateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions as SessionCreateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions, SessionCreateParamsSubscriptionData as SessionCreateParamsSubscriptionData, + SessionCreateParamsSubscriptionDataBillingCycleAnchorConfig as SessionCreateParamsSubscriptionDataBillingCycleAnchorConfig, SessionCreateParamsSubscriptionDataBillingMode as SessionCreateParamsSubscriptionDataBillingMode, SessionCreateParamsSubscriptionDataBillingModeFlexible as SessionCreateParamsSubscriptionDataBillingModeFlexible, SessionCreateParamsSubscriptionDataInvoiceSettings as SessionCreateParamsSubscriptionDataInvoiceSettings, @@ -593,6 +595,10 @@ "stripe.params.checkout._session_create_params", False, ), + "SessionCreateParamsPaymentMethodOptionsSunbit": ( + "stripe.params.checkout._session_create_params", + False, + ), "SessionCreateParamsPaymentMethodOptionsSwish": ( "stripe.params.checkout._session_create_params", False, @@ -673,6 +679,10 @@ "stripe.params.checkout._session_create_params", False, ), + "SessionCreateParamsSubscriptionDataBillingCycleAnchorConfig": ( + "stripe.params.checkout._session_create_params", + False, + ), "SessionCreateParamsSubscriptionDataBillingMode": ( "stripe.params.checkout._session_create_params", False, diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py index be27f5726..233df65e2 100644 --- a/stripe/params/checkout/_session_create_params.py +++ b/stripe/params/checkout/_session_create_params.py @@ -257,8 +257,6 @@ class SessionCreateParams(RequestOptions): You can configure Checkout to collect your customers' business names, individual names, or both. Each name field can be either required or optional. If a [Customer](https://docs.stripe.com/api/customers) is created or provided, the names can be saved to the Customer object as well. - - You can't set this parameter if `ui_mode` is `custom`. """ optional_items: NotRequired[List["SessionCreateParamsOptionalItem"]] """ @@ -1393,6 +1391,10 @@ class SessionCreateParamsPaymentMethodOptions(TypedDict): """ contains details about the Sofort payment method options. """ + sunbit: NotRequired["SessionCreateParamsPaymentMethodOptionsSunbit"] + """ + contains details about the Sunbit payment method options. + """ swish: NotRequired["SessionCreateParamsPaymentMethodOptionsSwish"] """ contains details about the Swish payment method options. @@ -2396,6 +2398,23 @@ class SessionCreateParamsPaymentMethodOptionsSofort(TypedDict): """ +class SessionCreateParamsPaymentMethodOptionsSunbit(TypedDict): + capture_method: NotRequired[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + setup_future_usage: NotRequired[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 SessionCreateParamsPaymentMethodOptionsSwish(TypedDict): reference: NotRequired[str] """ @@ -2947,6 +2966,12 @@ class SessionCreateParamsSubscriptionData(TypedDict): """ A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `elements`. """ + billing_cycle_anchor_config: NotRequired[ + "SessionCreateParamsSubscriptionDataBillingCycleAnchorConfig" + ] + """ + Configures when the subscription schedule's billing cycle anchors to a specific day of the week or month. + """ billing_mode: NotRequired["SessionCreateParamsSubscriptionDataBillingMode"] """ Controls how prorations and invoices for subscriptions are calculated and orchestrated. @@ -3009,6 +3034,29 @@ class SessionCreateParamsSubscriptionData(TypedDict): """ +class SessionCreateParamsSubscriptionDataBillingCycleAnchorConfig(TypedDict): + day_of_month: int + """ + The day of the month the anchor should be. Ranges from 1 to 31. + """ + hour: NotRequired[int] + """ + The hour of the day the anchor should be. Ranges from 0 to 23. + """ + minute: NotRequired[int] + """ + The minute of the hour the anchor should be. Ranges from 0 to 59. + """ + month: NotRequired[int] + """ + The month to start full cycle periods. Ranges from 1 to 12. + """ + second: NotRequired[int] + """ + The second of the minute the anchor should be. Ranges from 0 to 59. + """ + + class SessionCreateParamsSubscriptionDataBillingMode(TypedDict): flexible: NotRequired[ "SessionCreateParamsSubscriptionDataBillingModeFlexible" diff --git a/stripe/params/test_helpers/_confirmation_token_create_params.py b/stripe/params/test_helpers/_confirmation_token_create_params.py index 0b2945124..1085b9d43 100644 --- a/stripe/params/test_helpers/_confirmation_token_create_params.py +++ b/stripe/params/test_helpers/_confirmation_token_create_params.py @@ -303,7 +303,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ sunbit: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSunbit"] """ - If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. """ swish: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSwish"] """ diff --git a/stripe/params/v2/commerce/product_catalog/_import_create_params.py b/stripe/params/v2/commerce/product_catalog/_import_create_params.py index 8549de060..a84306f92 100644 --- a/stripe/params/v2/commerce/product_catalog/_import_create_params.py +++ b/stripe/params/v2/commerce/product_catalog/_import_create_params.py @@ -6,7 +6,7 @@ class ImportCreateParams(TypedDict): - feed_type: Literal["inventory", "pricing", "product"] + feed_type: Literal["inventory", "pricing", "product", "promotion"] """ The type of catalog data to import. """ diff --git a/stripe/params/v2/commerce/product_catalog/_import_list_params.py b/stripe/params/v2/commerce/product_catalog/_import_list_params.py index fecbc23da..5833fd5e4 100644 --- a/stripe/params/v2/commerce/product_catalog/_import_list_params.py +++ b/stripe/params/v2/commerce/product_catalog/_import_list_params.py @@ -29,7 +29,9 @@ class ImportListParams(TypedDict): Filter for objects created on or before the specified timestamp. Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. """ - feed_type: NotRequired[Literal["inventory", "pricing", "product"]] + feed_type: NotRequired[ + Literal["inventory", "pricing", "product", "promotion"] + ] """ Filter by the type of feed data being imported. """ diff --git a/stripe/params/v2/core/__init__.py b/stripe/params/v2/core/__init__.py index 36afb616d..f756daa94 100644 --- a/stripe/params/v2/core/__init__.py +++ b/stripe/params/v2/core/__init__.py @@ -65,6 +65,7 @@ AccountCreateParamsConfigurationMerchantCapabilitiesSamsungPayPayments as AccountCreateParamsConfigurationMerchantCapabilitiesSamsungPayPayments, AccountCreateParamsConfigurationMerchantCapabilitiesSepaBankTransferPayments as AccountCreateParamsConfigurationMerchantCapabilitiesSepaBankTransferPayments, AccountCreateParamsConfigurationMerchantCapabilitiesSepaDebitPayments as AccountCreateParamsConfigurationMerchantCapabilitiesSepaDebitPayments, + AccountCreateParamsConfigurationMerchantCapabilitiesSunbitPayments as AccountCreateParamsConfigurationMerchantCapabilitiesSunbitPayments, AccountCreateParamsConfigurationMerchantCapabilitiesSwishPayments as AccountCreateParamsConfigurationMerchantCapabilitiesSwishPayments, AccountCreateParamsConfigurationMerchantCapabilitiesTwintPayments as AccountCreateParamsConfigurationMerchantCapabilitiesTwintPayments, AccountCreateParamsConfigurationMerchantCapabilitiesUsBankTransferPayments as AccountCreateParamsConfigurationMerchantCapabilitiesUsBankTransferPayments, @@ -275,6 +276,7 @@ AccountUpdateParamsConfigurationMerchantCapabilitiesSamsungPayPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesSamsungPayPayments, AccountUpdateParamsConfigurationMerchantCapabilitiesSepaBankTransferPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesSepaBankTransferPayments, AccountUpdateParamsConfigurationMerchantCapabilitiesSepaDebitPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesSepaDebitPayments, + AccountUpdateParamsConfigurationMerchantCapabilitiesSunbitPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesSunbitPayments, AccountUpdateParamsConfigurationMerchantCapabilitiesSwishPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesSwishPayments, AccountUpdateParamsConfigurationMerchantCapabilitiesTwintPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesTwintPayments, AccountUpdateParamsConfigurationMerchantCapabilitiesUsBankTransferPayments as AccountUpdateParamsConfigurationMerchantCapabilitiesUsBankTransferPayments, @@ -305,8 +307,8 @@ AccountUpdateParamsIdentityAttestationsRepresentativeDeclaration as AccountUpdateParamsIdentityAttestationsRepresentativeDeclaration, AccountUpdateParamsIdentityAttestationsTermsOfService as AccountUpdateParamsIdentityAttestationsTermsOfService, AccountUpdateParamsIdentityAttestationsTermsOfServiceAccount as AccountUpdateParamsIdentityAttestationsTermsOfServiceAccount, - AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoStorer as AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoStorer, - AccountUpdateParamsIdentityAttestationsTermsOfServiceStorer as AccountUpdateParamsIdentityAttestationsTermsOfServiceStorer, + AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoMoneyManager as AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoMoneyManager, + AccountUpdateParamsIdentityAttestationsTermsOfServiceMoneyManager as AccountUpdateParamsIdentityAttestationsTermsOfServiceMoneyManager, AccountUpdateParamsIdentityBusinessDetails as AccountUpdateParamsIdentityBusinessDetails, AccountUpdateParamsIdentityBusinessDetailsAddress as AccountUpdateParamsIdentityBusinessDetailsAddress, AccountUpdateParamsIdentityBusinessDetailsAnnualRevenue as AccountUpdateParamsIdentityBusinessDetailsAnnualRevenue, @@ -622,6 +624,10 @@ "stripe.params.v2.core._account_create_params", False, ), + "AccountCreateParamsConfigurationMerchantCapabilitiesSunbitPayments": ( + "stripe.params.v2.core._account_create_params", + False, + ), "AccountCreateParamsConfigurationMerchantCapabilitiesSwishPayments": ( "stripe.params.v2.core._account_create_params", False, @@ -1411,6 +1417,10 @@ "stripe.params.v2.core._account_update_params", False, ), + "AccountUpdateParamsConfigurationMerchantCapabilitiesSunbitPayments": ( + "stripe.params.v2.core._account_update_params", + False, + ), "AccountUpdateParamsConfigurationMerchantCapabilitiesSwishPayments": ( "stripe.params.v2.core._account_update_params", False, @@ -1531,11 +1541,11 @@ "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoStorer": ( + "AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoMoneyManager": ( "stripe.params.v2.core._account_update_params", False, ), - "AccountUpdateParamsIdentityAttestationsTermsOfServiceStorer": ( + "AccountUpdateParamsIdentityAttestationsTermsOfServiceMoneyManager": ( "stripe.params.v2.core._account_update_params", False, ), diff --git a/stripe/params/v2/core/_account_create_params.py b/stripe/params/v2/core/_account_create_params.py index 305d2168f..9a85811d3 100644 --- a/stripe/params/v2/core/_account_create_params.py +++ b/stripe/params/v2/core/_account_create_params.py @@ -561,6 +561,12 @@ class AccountCreateParamsConfigurationMerchantCapabilities(TypedDict): """ Allow the merchant to process SEPA Direct Debit payments. """ + sunbit_payments: NotRequired[ + "AccountCreateParamsConfigurationMerchantCapabilitiesSunbitPayments" + ] + """ + Allow the merchant to process Sunbit payments. + """ swish_payments: NotRequired[ "AccountCreateParamsConfigurationMerchantCapabilitiesSwishPayments" ] @@ -947,6 +953,15 @@ class AccountCreateParamsConfigurationMerchantCapabilitiesSepaDebitPayments( """ +class AccountCreateParamsConfigurationMerchantCapabilitiesSunbitPayments( + TypedDict, +): + requested: bool + """ + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + """ + + class AccountCreateParamsConfigurationMerchantCapabilitiesSwishPayments( TypedDict, ): diff --git a/stripe/params/v2/core/_account_update_params.py b/stripe/params/v2/core/_account_update_params.py index 823fb6ba5..60b43fda5 100644 --- a/stripe/params/v2/core/_account_update_params.py +++ b/stripe/params/v2/core/_account_update_params.py @@ -579,6 +579,12 @@ class AccountUpdateParamsConfigurationMerchantCapabilities(TypedDict): """ Allow the merchant to process SEPA Direct Debit payments. """ + sunbit_payments: NotRequired[ + "AccountUpdateParamsConfigurationMerchantCapabilitiesSunbitPayments" + ] + """ + Allow the merchant to process Sunbit payments. + """ swish_payments: NotRequired[ "AccountUpdateParamsConfigurationMerchantCapabilitiesSwishPayments" ] @@ -965,6 +971,15 @@ class AccountUpdateParamsConfigurationMerchantCapabilitiesSepaDebitPayments( """ +class AccountUpdateParamsConfigurationMerchantCapabilitiesSunbitPayments( + TypedDict, +): + requested: NotRequired[bool] + """ + To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + """ + + class AccountUpdateParamsConfigurationMerchantCapabilitiesSwishPayments( TypedDict, ): @@ -1486,14 +1501,14 @@ class AccountUpdateParamsIdentityAttestationsTermsOfService(TypedDict): """ Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance). """ - crypto_storer: NotRequired[ - "AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoStorer" + crypto_money_manager: NotRequired[ + "AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoMoneyManager" ] """ - Details on the Account's acceptance of Crypto-storer-specific terms of service. + Details on the Account's acceptance of Crypto-specific terms of service. """ - storer: NotRequired[ - "AccountUpdateParamsIdentityAttestationsTermsOfServiceStorer" + money_manager: NotRequired[ + "AccountUpdateParamsIdentityAttestationsTermsOfServiceMoneyManager" ] """ Details on the Account's acceptance of Treasury-specific terms of service. @@ -1515,7 +1530,7 @@ class AccountUpdateParamsIdentityAttestationsTermsOfServiceAccount(TypedDict): """ -class AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoStorer( +class AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoMoneyManager( TypedDict, ): date: NotRequired[str] @@ -1532,7 +1547,9 @@ class AccountUpdateParamsIdentityAttestationsTermsOfServiceCryptoStorer( """ -class AccountUpdateParamsIdentityAttestationsTermsOfServiceStorer(TypedDict): +class AccountUpdateParamsIdentityAttestationsTermsOfServiceMoneyManager( + TypedDict, +): date: NotRequired[str] """ The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. diff --git a/stripe/reserve/_hold.py b/stripe/reserve/_hold.py index 65070f6fe..284ba6457 100644 --- a/stripe/reserve/_hold.py +++ b/stripe/reserve/_hold.py @@ -2,7 +2,7 @@ # File generated from our OpenAPI spec from stripe._expandable_field import ExpandableField from stripe._stripe_object import StripeObject, UntypedStripeObject -from typing import ClassVar, Optional +from typing import ClassVar, List, Optional from typing_extensions import Literal, TYPE_CHECKING if TYPE_CHECKING: @@ -17,6 +17,16 @@ class Hold(StripeObject): OBJECT_NAME: ClassVar[Literal["reserve.hold"]] = "reserve.hold" + class ReleaseDetail(StripeObject): + amount: int + """ + The amount released by the ReserveRelease from this ReserveHold. A positive integer representing how much is released in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + """ + reserve_release: str + """ + The ReserveRelease which released funds from this ReserveHold (e.g., resrel_123). + """ + class ReleaseSchedule(StripeObject): release_after: Optional[int] """ @@ -71,6 +81,10 @@ class ReleaseSchedule(StripeObject): """ The reason for the ReserveHold. """ + release_details: Optional[List[ReleaseDetail]] + """ + List of ReserveReleases and the amounts released from this ReserveHold. + """ release_schedule: ReleaseSchedule reserve_plan: Optional[ExpandableField["Plan"]] """ @@ -84,4 +98,7 @@ class ReleaseSchedule(StripeObject): """ Which source balance type this ReserveHold reserves funds from. One of `bank_account`, `card`, or `fpx`. """ - _inner_class_types = {"release_schedule": ReleaseSchedule} + _inner_class_types = { + "release_details": ReleaseDetail, + "release_schedule": ReleaseSchedule, + } diff --git a/stripe/terminal/_reader.py b/stripe/terminal/_reader.py index 2b734969b..f568f68b1 100644 --- a/stripe/terminal/_reader.py +++ b/stripe/terminal/_reader.py @@ -103,6 +103,7 @@ class ApiError(StripeObject): "alipay_upgrade_required", "amount_too_large", "amount_too_small", + "anomalous_money_movement_request", "api_key_expired", "application_fees_not_allowed", "approval_required", @@ -142,6 +143,10 @@ class ApiError(StripeObject): "debit_not_authorized", "email_invalid", "expired_card", + "failed_tax_calculation", + "financial_account_balance_does_not_support_currency", + "financial_account_capability_not_enabled", + "financial_account_capability_restricted", "financial_connections_account_inactive", "financial_connections_account_pending_account_numbers", "financial_connections_account_unavailable_account_numbers", diff --git a/stripe/v2/commerce/_product_catalog_import.py b/stripe/v2/commerce/_product_catalog_import.py index 3e48b840e..3f4229c32 100644 --- a/stripe/v2/commerce/_product_catalog_import.py +++ b/stripe/v2/commerce/_product_catalog_import.py @@ -167,7 +167,7 @@ class Sample(StripeObject): """ The time this ProductCatalogImport was created. """ - feed_type: Literal["inventory", "pricing", "product"] + feed_type: Literal["inventory", "pricing", "product", "promotion"] """ The type of feed data being imported into the product catalog. """ @@ -183,6 +183,10 @@ class Sample(StripeObject): """ Additional information about the object in a structured format. """ + mode: Literal["replace", "upsert"] + """ + The import strategy for handling existing catalog data. + """ object: Literal["v2.commerce.product_catalog_import"] """ String representing the object's type. Objects of the same type share the same value of the object field. diff --git a/stripe/v2/core/_account.py b/stripe/v2/core/_account.py index 6e4cbcde7..61c6b8d72 100644 --- a/stripe/v2/core/_account.py +++ b/stripe/v2/core/_account.py @@ -1618,6 +1618,39 @@ class StatusDetail(StripeObject): """ _inner_class_types = {"payouts": Payouts} + class SunbitPayments(StripeObject): + class StatusDetail(StripeObject): + code: Literal[ + "determining_status", + "requirements_past_due", + "requirements_pending_verification", + "restricted_other", + "unsupported_business", + "unsupported_country", + "unsupported_entity_type", + ] + """ + Machine-readable code explaining the reason for the Capability to be in its current status. + """ + resolution: Literal[ + "contact_stripe", "no_resolution", "provide_info" + ] + """ + Machine-readable code explaining how to make the Capability active. + """ + + status: Literal[ + "active", "pending", "restricted", "unsupported" + ] + """ + The status of the Capability. + """ + status_details: List[StatusDetail] + """ + Additional details about the capability's status. This value is empty when `status` is `active`. + """ + _inner_class_types = {"status_details": StatusDetail} + class SwishPayments(StripeObject): class StatusDetail(StripeObject): code: Literal[ @@ -1914,6 +1947,10 @@ class StatusDetail(StripeObject): """ Capabilities that enable the merchant to manage their Stripe Balance (/v1/balance). """ + sunbit_payments: Optional[SunbitPayments] + """ + Allow the merchant to process Sunbit payments. + """ swish_payments: Optional[SwishPayments] """ Allow the merchant to process Swish payments. @@ -1972,6 +2009,7 @@ class StatusDetail(StripeObject): "sepa_bank_transfer_payments": SepaBankTransferPayments, "sepa_debit_payments": SepaDebitPayments, "stripe_balance": StripeBalance, + "sunbit_payments": SunbitPayments, "swish_payments": SwishPayments, "twint_payments": TwintPayments, "us_bank_transfer_payments": UsBankTransferPayments, @@ -2328,7 +2366,7 @@ class Responsibilities(StripeObject): """ losses_collector: Optional[Literal["application", "stripe"]] """ - A value indicating responsibility for collecting requirements on this account. + A value indicating the responsibility for losses on this account. """ requirements_collector: Literal["application", "stripe"] """