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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a527d1f955ea1eab1b7ccdb63001a69d1786fc37
5bc3045398277cd3acb999fac04faae98bb39d1d
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2240
v2252
9 changes: 8 additions & 1 deletion stripe/_account_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,14 @@ class Features(StripeObject):

class Bills(StripeObject):
class Features(StripeObject):
pass
bill_management: bool
"""
Whether to enable the bill management feature that grants access to bill creation and payment.
"""
send_money: bool
"""
Whether to enable the send money feature that grants access to bill creation and payment.
"""

enabled: bool
"""
Expand Down
5 changes: 5 additions & 0 deletions stripe/_confirmation_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
if TYPE_CHECKING:
from stripe._charge import Charge
from stripe._customer import Customer
from stripe._payment_method import PaymentMethod
from stripe._setup_attempt import SetupAttempt
from stripe.params._confirmation_token_create_params import (
ConfirmationTokenCreateParams,
Expand Down Expand Up @@ -1368,6 +1369,10 @@ class GeneratedFrom(StripeObject):
"""
The ID of the Charge that generated this PaymentMethod, if any.
"""
payment_method: Optional[ExpandableField["PaymentMethod"]]
"""
The ID of the PaymentMethod that generated this PaymentMethod, if any.
"""
setup_attempt: Optional[ExpandableField["SetupAttempt"]]
"""
The ID of the SetupAttempt that generated this PaymentMethod, if any.
Expand Down
1 change: 1 addition & 0 deletions stripe/_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,6 +1136,7 @@ class Filters(StripeObject):
"konbini",
"kr_card",
"link",
"momo",
"multibanco",
"naver_pay",
"nz_bank_account",
Expand Down
20 changes: 16 additions & 4 deletions stripe/_payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
PaymentIntentAmountDetailsLineItem,
)
from stripe._payment_method import PaymentMethod
from stripe._profile import Profile
from stripe._review import Review
from stripe._setup_intent import SetupIntent
from stripe._source import Source
Expand Down Expand Up @@ -111,6 +112,16 @@ class PaymentIntent(

OBJECT_NAME: ClassVar[Literal["payment_intent"]] = "payment_intent"

class AgentDetails(StripeObject):
name: str
"""
The name of the agent that initiated the payment.
"""
network_business_profile: ExpandableField["Profile"]
"""
The Stripe profile associated with the agent that initiated the payment.
"""

class AllocatedFunds(StripeObject):
enabled: Optional[bool]
"""
Expand Down Expand Up @@ -4763,6 +4774,10 @@ class TransferData(StripeObject):
The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success.
"""

agent_details: Optional[AgentDetails]
"""
Details about the agent that initiated the creation of this PaymentIntent.
"""
allocated_funds: Optional[AllocatedFunds]
"""
Allocated Funds configuration for this PaymentIntent.
Expand Down Expand Up @@ -5014,10 +5029,6 @@ class TransferData(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).
"""
shared_payment_granted_token: Optional[str]
"""
ID of the shared payment token granted to be used in this PaymentIntent
"""
shipping: Optional[Shipping]
"""
Shipping information for this PaymentIntent.
Expand Down Expand Up @@ -7100,6 +7111,7 @@ def test_helpers(self):
return self.TestHelpers(self)

_inner_class_types = {
"agent_details": AgentDetails,
"allocated_funds": AllocatedFunds,
"amount_details": AmountDetails,
"async_workflows": AsyncWorkflows,
Expand Down
8 changes: 4 additions & 4 deletions stripe/_payment_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,10 @@ class GeneratedFrom(StripeObject):
"""
The ID of the Charge that generated this PaymentMethod, if any.
"""
payment_method: Optional[ExpandableField["PaymentMethod"]]
"""
The ID of the PaymentMethod that generated this PaymentMethod, if any.
"""
setup_attempt: Optional[ExpandableField["SetupAttempt"]]
"""
The ID of the SetupAttempt that generated this PaymentMethod, if any.
Expand Down Expand Up @@ -1605,10 +1609,6 @@ class Zip(StripeObject):
samsung_pay: Optional[SamsungPay]
satispay: Optional[Satispay]
sepa_debit: Optional[SepaDebit]
shared_payment_granted_token: Optional[str]
"""
ID of the shared payment granted token used in the creation of this PaymentMethod.
"""
shopeepay: Optional[Shopeepay]
sofort: Optional[Sofort]
stripe_balance: Optional[StripeBalance]
Expand Down
1 change: 1 addition & 0 deletions stripe/_quote_preview_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -1092,6 +1092,7 @@ class Filters(StripeObject):
"konbini",
"kr_card",
"link",
"momo",
"multibanco",
"naver_pay",
"nz_bank_account",
Expand Down
1 change: 1 addition & 0 deletions stripe/_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ class Filters(StripeObject):
"konbini",
"kr_card",
"link",
"momo",
"multibanco",
"naver_pay",
"nz_bank_account",
Expand Down
10 changes: 10 additions & 0 deletions stripe/checkout/_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from stripe._line_item import LineItem
from stripe._payment_intent import PaymentIntent
from stripe._payment_link import PaymentLink
from stripe._payment_record import PaymentRecord
from stripe._promotion_code import PromotionCode
from stripe._setup_intent import SetupIntent
from stripe._shipping_rate import ShippingRate
Expand Down Expand Up @@ -2860,6 +2861,11 @@ class Link(StripeObject):
"""
Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if `ui_mode` is `custom`.
"""
custom_payment_method_types: Optional[List[str]]
"""
A list of the types of [custom payment methods](https://docs.stripe.com/payments/payment-methods/custom-payment-methods) (e.g. cpmt_123) this Checkout
Session is allowed to accept.
"""
custom_text: CustomText
customer: Optional[ExpandableField["Customer"]]
"""
Expand Down Expand Up @@ -3025,6 +3031,10 @@ class Link(StripeObject):
A list of the types of payment methods (e.g. card) this Checkout
Session is allowed to accept.
"""
payment_record: Optional[ExpandableField["PaymentRecord"]]
"""
The [Payment Record](https://docs.stripe.com/api/payment-record) for this Checkout Session.
"""
payment_status: Literal["no_payment_required", "paid", "unpaid"]
"""
The payment status of the Checkout Session, one of `paid`, `unpaid`, or `no_payment_required`.
Expand Down
6 changes: 3 additions & 3 deletions stripe/delegated_checkout/_requested_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class ShippingOption(StripeObject):
"""
The shipping option.
"""
type: str
type: Literal["digital", "shipping"]
"""
The type of the fulfillment option.
"""
Expand All @@ -230,7 +230,7 @@ class Shipping(StripeObject):
"""
The shipping option.
"""
type: str
type: Literal["digital", "shipping"]
"""
The type of the selected fulfillment option.
"""
Expand Down Expand Up @@ -261,7 +261,7 @@ class Shipping(StripeObject):
"""
The shipping option.
"""
type: str
type: Literal["digital", "shipping"]
"""
The type of the selected fulfillment option.
"""
Expand Down
4 changes: 0 additions & 4 deletions stripe/params/_confirmation_token_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,6 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"""
If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
"""
shared_payment_granted_token: NotRequired[str]
"""
ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
"""
shopeepay: NotRequired[
"ConfirmationTokenCreateParamsPaymentMethodDataShopeepay"
]
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_invoice_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,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', 'bizum', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', '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', 'bizum', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', '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).
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_invoice_modify_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class InvoiceModifyParamsPaymentSettings(TypedDict):
Payment-method-specific configuration to provide to the invoice's PaymentIntent.
"""
payment_method_types: NotRequired[
"Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', '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', 'bizum', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', '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).
Expand Down
2 changes: 1 addition & 1 deletion stripe/params/_invoice_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class InvoiceUpdateParamsPaymentSettings(TypedDict):
Payment-method-specific configuration to provide to the invoice's PaymentIntent.
"""
payment_method_types: NotRequired[
"Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'bizum', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', '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', 'bizum', 'boleto', 'card', 'cashapp', 'check_scan', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'momo', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', '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).
Expand Down
4 changes: 0 additions & 4 deletions stripe/params/_payment_intent_confirm_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3022,10 +3022,6 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict):
"""
If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
"""
shared_payment_granted_token: NotRequired[str]
"""
ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
"""
shopeepay: NotRequired[
"PaymentIntentConfirmParamsPaymentMethodDataShopeepay"
]
Expand Down
4 changes: 0 additions & 4 deletions stripe/params/_payment_intent_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3152,10 +3152,6 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict):
"""
If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
"""
shared_payment_granted_token: NotRequired[str]
"""
ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
"""
shopeepay: NotRequired[
"PaymentIntentCreateParamsPaymentMethodDataShopeepay"
]
Expand Down
4 changes: 0 additions & 4 deletions stripe/params/_payment_intent_modify_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3005,10 +3005,6 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict):
"""
If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
"""
shared_payment_granted_token: NotRequired[str]
"""
ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
"""
shopeepay: NotRequired[
"PaymentIntentModifyParamsPaymentMethodDataShopeepay"
]
Expand Down
4 changes: 0 additions & 4 deletions stripe/params/_payment_intent_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3004,10 +3004,6 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict):
"""
If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
"""
shared_payment_granted_token: NotRequired[str]
"""
ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
"""
shopeepay: NotRequired[
"PaymentIntentUpdateParamsPaymentMethodDataShopeepay"
]
Expand Down
4 changes: 4 additions & 0 deletions stripe/params/_price_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ class PriceCreateParams(RequestOptions):
"""
Specifies which fields in the response should be expanded.
"""
external_reference: NotRequired[str]
"""
A custom identifier for this price, such as a SKU number or product code, that can be used to reference records from external systems.
"""
lookup_key: NotRequired[str]
"""
A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
Expand Down
4 changes: 4 additions & 0 deletions stripe/params/_price_modify_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class PriceModifyParams(RequestOptions):
"""
Specifies which fields in the response should be expanded.
"""
external_reference: NotRequired["Literal['']|str"]
"""
A custom identifier for this price, such as a SKU number or product code, that can be used to reference records from external systems.
"""
lookup_key: NotRequired[str]
"""
A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
Expand Down
4 changes: 4 additions & 0 deletions stripe/params/_price_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class PriceUpdateParams(TypedDict):
"""
Specifies which fields in the response should be expanded.
"""
external_reference: NotRequired["Literal['']|str"]
"""
A custom identifier for this price, such as a SKU number or product code, that can be used to reference records from external systems.
"""
lookup_key: NotRequired[str]
"""
A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
Expand Down
4 changes: 0 additions & 4 deletions stripe/params/_setup_intent_confirm_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,6 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict):
"""
If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
"""
shared_payment_granted_token: NotRequired[str]
"""
ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
"""
shopeepay: NotRequired[
"SetupIntentConfirmParamsPaymentMethodDataShopeepay"
]
Expand Down
4 changes: 0 additions & 4 deletions stripe/params/_setup_intent_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,6 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict):
"""
If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
"""
shared_payment_granted_token: NotRequired[str]
"""
ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
"""
shopeepay: NotRequired["SetupIntentCreateParamsPaymentMethodDataShopeepay"]
"""
If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
Expand Down
4 changes: 0 additions & 4 deletions stripe/params/_setup_intent_modify_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,6 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict):
"""
If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
"""
shared_payment_granted_token: NotRequired[str]
"""
ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
"""
shopeepay: NotRequired["SetupIntentModifyParamsPaymentMethodDataShopeepay"]
"""
If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
Expand Down
4 changes: 0 additions & 4 deletions stripe/params/_setup_intent_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,6 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict):
"""
If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
"""
shared_payment_granted_token: NotRequired[str]
"""
ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
"""
shopeepay: NotRequired["SetupIntentUpdateParamsPaymentMethodDataShopeepay"]
"""
If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
Expand Down
Loading
Loading