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 @@
6fc967cafa78afc6c6adb86802a26217fa770522
e8d907775e192e65884d828ea51a9f66d09ca4b2
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2350
v2368
4 changes: 4 additions & 0 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,10 @@ class Capabilities(StripeObject):
"""
The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
"""
sequra_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the Sequra capability of the account, or whether the account can directly process Sequra payments.
"""
shopeepay_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the ShopeePay capability of the account, or whether the account can directly process ShopeePay payments.
Expand Down
16 changes: 16 additions & 0 deletions stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,10 @@ class Wallet(StripeObject):
"""
A collection of fields required to be displayed on receipts. Only required for EMV transactions.
"""
retrieval_reference_number: Optional[str]
"""
The retrieval reference number assigned to this transaction.
"""
wallet: Optional[Wallet]
_inner_class_types = {
"multicapture": Multicapture,
Expand Down Expand Up @@ -1805,6 +1809,10 @@ class Link(StripeObject):
Two-letter ISO code representing the funding source country beneath the Link payment.
You could use this attribute to get a sense of international fees.
"""
pricing_group: Optional[str]
"""
The pricing bundle applied to this Link payment at confirmation time. Maps to a bundle in your Stripe pricing contract and on Stripe's published pricing page. Omitted if bundle lookup failed at confirmation time.
"""

class MbWay(StripeObject):
pass
Expand Down Expand Up @@ -2254,6 +2262,12 @@ class SepaDebit(StripeObject):
Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://docs.stripe.com/api/mandates/retrieve).
"""

class Sequra(StripeObject):
transaction_id: Optional[str]
"""
The Sequra transaction ID associated with this payment.
"""

class Shopeepay(StripeObject):
pass

Expand Down Expand Up @@ -2467,6 +2481,7 @@ class Zip(StripeObject):
scalapay: Optional[Scalapay]
sepa_credit_transfer: Optional[SepaCreditTransfer]
sepa_debit: Optional[SepaDebit]
sequra: Optional[Sequra]
shopeepay: Optional[Shopeepay]
sofort: Optional[Sofort]
stripe_account: Optional[StripeAccount]
Expand Down Expand Up @@ -2544,6 +2559,7 @@ class Zip(StripeObject):
"scalapay": Scalapay,
"sepa_credit_transfer": SepaCreditTransfer,
"sepa_debit": SepaDebit,
"sequra": Sequra,
"shopeepay": Shopeepay,
"sofort": Sofort,
"stripe_account": StripeAccount,
Expand Down
10 changes: 10 additions & 0 deletions stripe/_confirmation_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,10 @@ class Wallet(StripeObject):
"""
A collection of fields required to be displayed on receipts. Only required for EMV transactions.
"""
retrieval_reference_number: Optional[str]
"""
The retrieval reference number assigned to this transaction.
"""
wallet: Optional[Wallet]
_inner_class_types = {
"multicapture": Multicapture,
Expand Down Expand Up @@ -1487,6 +1491,9 @@ class GeneratedFrom(StripeObject):
"""
_inner_class_types = {"generated_from": GeneratedFrom}

class Sequra(StripeObject):
pass

class Shopeepay(StripeObject):
pass

Expand Down Expand Up @@ -1698,6 +1705,7 @@ class Zip(StripeObject):
satispay: Optional[Satispay]
scalapay: Optional[Scalapay]
sepa_debit: Optional[SepaDebit]
sequra: Optional[Sequra]
shopeepay: Optional[Shopeepay]
sofort: Optional[Sofort]
stripe_balance: Optional[StripeBalance]
Expand Down Expand Up @@ -1762,6 +1770,7 @@ class Zip(StripeObject):
"satispay",
"scalapay",
"sepa_debit",
"sequra",
"shopeepay",
"sofort",
"stripe_balance",
Expand Down Expand Up @@ -1841,6 +1850,7 @@ class Zip(StripeObject):
"satispay": Satispay,
"scalapay": Scalapay,
"sepa_debit": SepaDebit,
"sequra": Sequra,
"shopeepay": Shopeepay,
"sofort": Sofort,
"stripe_balance": StripeBalance,
Expand Down
2 changes: 1 addition & 1 deletion stripe/_coupon.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class Iterations(StripeObject):
"""
type: Optional[Union[Literal["amount_off", "percent_off", "script"], str]]
"""
One of `amount_off`, `percent_off`, or `script`. Describes the type of coupon logic used to calculate the discount.
The type of coupon logic used to calculate the discount.
"""
valid: bool
"""
Expand Down
12 changes: 12 additions & 0 deletions stripe/_payment_attempt_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,10 @@ class Wallet(StripeObject):
"""
A collection of fields required to be displayed on receipts. Only required for EMV transactions.
"""
retrieval_reference_number: Optional[str]
"""
The retrieval reference number assigned to this transaction.
"""
wallet: Optional[Wallet]
_inner_class_types = {
"multicapture": Multicapture,
Expand Down Expand Up @@ -1995,6 +1999,12 @@ class SepaDebit(StripeObject):
Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://docs.stripe.com/api/mandates/retrieve).
"""

class Sequra(StripeObject):
transaction_id: Optional[str]
"""
The Sequra transaction ID associated with this payment.
"""

class Shopeepay(StripeObject):
pass

Expand Down Expand Up @@ -2223,6 +2233,7 @@ class Zip(StripeObject):
scalapay: Optional[Scalapay]
sepa_credit_transfer: Optional[SepaCreditTransfer]
sepa_debit: Optional[SepaDebit]
sequra: Optional[Sequra]
shopeepay: Optional[Shopeepay]
sofort: Optional[Sofort]
stripe_account: Optional[StripeAccount]
Expand Down Expand Up @@ -2302,6 +2313,7 @@ class Zip(StripeObject):
"scalapay": Scalapay,
"sepa_credit_transfer": SepaCreditTransfer,
"sepa_debit": SepaDebit,
"sequra": Sequra,
"shopeepay": Shopeepay,
"sofort": Sofort,
"stripe_account": StripeAccount,
Expand Down
39 changes: 39 additions & 0 deletions stripe/_payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -3896,6 +3896,34 @@ class Address(StripeObject):
}

class CardPresent(StripeObject):
class AadeData(StripeObject):
mark_data: Optional[str]
"""
The canonical string that was signed by the e-invoicing provider to produce `signed_mark`, formatted per Appendix A of A.1155/2023. Required when `mode` is `standard`.
"""
mode: Literal["autonomous", "standard"]
"""
The e-invoicing mode under which the mark was generated.
"""
provider_id: Optional[int]
"""
The AADE-assigned approval number of the e-invoicing provider that generated the mark. Required when `mode` is `standard`.
"""
signed_mark: Optional[str]
"""
The cryptographic signature returned by the e-invoicing provider for this transaction, hex-encoded. Required when `mode` is `standard`.
"""
unbound_pos: Optional[
Literal[
"interconnection_loss",
"lock",
"replacement_cash_system",
]
]
"""
The reason for entering autonomous mode. Required when `mode` is `autonomous`.
"""

class CaptureDelay(StripeObject):
days: Optional[int]
"""
Expand All @@ -3918,6 +3946,7 @@ class Routing(StripeObject):
Requested routing priority
"""

aade_data: Optional[AadeData]
capture_by: Optional[
Literal["auth_expiry", "end_of_day", "target_delay"]
]
Expand Down Expand Up @@ -3955,6 +3984,7 @@ class Routing(StripeObject):
"""
routing: Optional[Routing]
_inner_class_types = {
"aade_data": AadeData,
"capture_delay": CaptureDelay,
"routing": Routing,
}
Expand Down Expand Up @@ -4835,6 +4865,12 @@ class MandateOptions(StripeObject):
"""
_inner_class_types = {"mandate_options": MandateOptions}

class Sequra(StripeObject):
capture_method: Optional[Literal["manual"]]
"""
Controls when the funds will be captured from the customer's account.
"""

class Shopeepay(StripeObject):
setup_future_usage: Optional[Literal["none"]]
"""
Expand Down Expand Up @@ -5189,6 +5225,7 @@ class Zip(StripeObject):
satispay: Optional[Satispay]
scalapay: Optional[Scalapay]
sepa_debit: Optional[SepaDebit]
sequra: Optional[Sequra]
shopeepay: Optional[Shopeepay]
sofort: Optional[Sofort]
stripe_balance: Optional[StripeBalance]
Expand Down Expand Up @@ -5255,6 +5292,7 @@ class Zip(StripeObject):
"satispay": Satispay,
"scalapay": Scalapay,
"sepa_debit": SepaDebit,
"sequra": Sequra,
"shopeepay": Shopeepay,
"sofort": Sofort,
"stripe_balance": StripeBalance,
Expand Down Expand Up @@ -5655,6 +5693,7 @@ class PaymentData(StripeObject):
"satispay",
"scalapay",
"sepa_debit",
"sequra",
"shopeepay",
"sofort",
"stripe_balance",
Expand Down
4 changes: 3 additions & 1 deletion stripe/_payment_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ class AutomaticSurcharge(StripeObject):
"""
Indicates whether automatic surcharge is enabled for the payment link.
"""
provider: Optional[Literal["interpayments", "proserv", "yeeld"]]
provider: Optional[
Literal["daikin", "interpayments", "proserv", "yeeld"]
]
"""
The surcharge provider used for this payment link.
"""
Expand Down
5 changes: 5 additions & 0 deletions stripe/_payment_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,10 @@ class Wallet(StripeObject):
"""
A collection of fields required to be displayed on receipts. Only required for EMV transactions.
"""
retrieval_reference_number: Optional[str]
"""
The retrieval reference number assigned to this transaction.
"""
wallet: Optional[Wallet]
_inner_class_types = {
"multicapture": Multicapture,
Expand Down Expand Up @@ -1790,6 +1794,7 @@ class Zip(StripeObject):
"satispay",
"scalapay",
"sepa_debit",
"sequra",
"shopeepay",
"sofort",
"stripe_balance",
Expand Down
12 changes: 12 additions & 0 deletions stripe/_payment_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,10 @@ class Wallet(StripeObject):
"""
A collection of fields required to be displayed on receipts. Only required for EMV transactions.
"""
retrieval_reference_number: Optional[str]
"""
The retrieval reference number assigned to this transaction.
"""
wallet: Optional[Wallet]
_inner_class_types = {
"multicapture": Multicapture,
Expand Down Expand Up @@ -2012,6 +2016,12 @@ class SepaDebit(StripeObject):
Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://docs.stripe.com/api/mandates/retrieve).
"""

class Sequra(StripeObject):
transaction_id: Optional[str]
"""
The Sequra transaction ID associated with this payment.
"""

class Shopeepay(StripeObject):
pass

Expand Down Expand Up @@ -2240,6 +2250,7 @@ class Zip(StripeObject):
scalapay: Optional[Scalapay]
sepa_credit_transfer: Optional[SepaCreditTransfer]
sepa_debit: Optional[SepaDebit]
sequra: Optional[Sequra]
shopeepay: Optional[Shopeepay]
sofort: Optional[Sofort]
stripe_account: Optional[StripeAccount]
Expand Down Expand Up @@ -2319,6 +2330,7 @@ class Zip(StripeObject):
"scalapay": Scalapay,
"sepa_credit_transfer": SepaCreditTransfer,
"sepa_debit": SepaDebit,
"sequra": Sequra,
"shopeepay": Shopeepay,
"sofort": Sofort,
"stripe_account": StripeAccount,
Expand Down
2 changes: 1 addition & 1 deletion stripe/_quote_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ class EndBehavior(StripeObject):
Union[Literal["automatic", "line_starts_at"], str]
]
"""
For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp. For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
"""
cancel_subscription_schedule: Optional[CancelSubscriptionSchedule]
"""
Expand Down
1 change: 1 addition & 0 deletions stripe/_setup_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,7 @@ class FrMealVoucher(StripeObject):
"satispay",
"scalapay",
"sepa_debit",
"sequra",
"shopeepay",
"sofort",
"stripe_balance",
Expand Down
4 changes: 2 additions & 2 deletions stripe/_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -1752,7 +1752,7 @@ def modify(
When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint.

By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.
By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. You can also [use scripts to prorate your billing. To learn more, see <a href="/billing/subscriptions/prorations">Prorations](https://docs.stripe.com/billing/scripts/stripe-authored/proration).

Switching prices does not normally change the billing date or generate an immediate charge unless:

Expand Down Expand Up @@ -1789,7 +1789,7 @@ async def modify_async(
When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint.

By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.
By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. You can also [use scripts to prorate your billing. To learn more, see <a href="/billing/subscriptions/prorations">Prorations](https://docs.stripe.com/billing/scripts/stripe-authored/proration).

Switching prices does not normally change the billing date or generate an immediate charge unless:

Expand Down
Loading
Loading