Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update generated code #1450

Merged
merged 6 commits into from
Feb 24, 2025
Merged
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
25 changes: 0 additions & 25 deletions CONTRIBUTING.md

This file was deleted.

2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1455
v1505
2 changes: 1 addition & 1 deletion stripe/_api_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
class _ApiVersion:
CURRENT = "2025-01-27.acacia"
CURRENT = "2025-02-24.acacia"
36 changes: 18 additions & 18 deletions stripe/_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ class Available(StripeObject):
class SourceTypes(StripeObject):
bank_account: Optional[int]
"""
Amount for bank account.
Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
"""
card: Optional[int]
"""
Amount for card.
Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
"""
fpx: Optional[int]
"""
Amount for FPX.
Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
"""

amount: int
Expand All @@ -54,15 +54,15 @@ class ConnectReserved(StripeObject):
class SourceTypes(StripeObject):
bank_account: Optional[int]
"""
Amount for bank account.
Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
"""
card: Optional[int]
"""
Amount for card.
Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
"""
fpx: Optional[int]
"""
Amount for FPX.
Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
"""

amount: int
Expand All @@ -81,15 +81,15 @@ class NetAvailable(StripeObject):
class SourceTypes(StripeObject):
bank_account: Optional[int]
"""
Amount for bank account.
Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
"""
card: Optional[int]
"""
Amount for card.
Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
"""
fpx: Optional[int]
"""
Amount for FPX.
Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
"""

amount: int
Expand All @@ -106,15 +106,15 @@ class SourceTypes(StripeObject):
class SourceTypes(StripeObject):
bank_account: Optional[int]
"""
Amount for bank account.
Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
"""
card: Optional[int]
"""
Amount for card.
Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
"""
fpx: Optional[int]
"""
Amount for FPX.
Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
"""

amount: int
Expand All @@ -140,15 +140,15 @@ class Available(StripeObject):
class SourceTypes(StripeObject):
bank_account: Optional[int]
"""
Amount for bank account.
Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
"""
card: Optional[int]
"""
Amount for card.
Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
"""
fpx: Optional[int]
"""
Amount for FPX.
Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
"""

amount: int
Expand All @@ -172,15 +172,15 @@ class Pending(StripeObject):
class SourceTypes(StripeObject):
bank_account: Optional[int]
"""
Amount for bank account.
Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
"""
card: Optional[int]
"""
Amount for card.
Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
"""
fpx: Optional[int]
"""
Amount for FPX.
Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
"""

amount: int
Expand Down
8 changes: 4 additions & 4 deletions stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ class ShippingAddress(StripeObject):
"""
network_transaction_id: Optional[str]
"""
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. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
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.
"""
overcapture: Optional[Overcapture]
regulated_status: Optional[Literal["regulated", "unregulated"]]
Expand Down Expand Up @@ -998,7 +998,7 @@ class Wallet(StripeObject):
"""
network_transaction_id: Optional[str]
"""
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. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
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.
"""
offline: Optional[Offline]
"""
Expand Down Expand Up @@ -1321,7 +1321,7 @@ class Receipt(StripeObject):
"""
network_transaction_id: Optional[str]
"""
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. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
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.
"""
preferred_locales: Optional[List[str]]
"""
Expand Down Expand Up @@ -1853,7 +1853,7 @@ class Zip(StripeObject):
twint: Optional[Twint]
type: str
"""
The type of transaction-specific details of the payment method used in the payment, one of `ach_credit_transfer`, `ach_debit`, `acss_debit`, `alipay`, `au_becs_debit`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `klarna`, `multibanco`, `p24`, `sepa_debit`, `sofort`, `stripe_account`, or `wechat`.
The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type) for the full list of possible types.
An additional hash is included on `payment_method_details` with a name matching this value.
It contains information specific to the payment method.
"""
Expand Down
8 changes: 4 additions & 4 deletions stripe/_confirmation_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ class Wallet(StripeObject):
"""
network_transaction_id: Optional[str]
"""
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. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
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.
"""
offline: Optional[Offline]
"""
Expand Down Expand Up @@ -418,7 +418,7 @@ class Wallet(StripeObject):
class Networks(StripeObject):
available: List[str]
"""
All available networks for the card.
All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
"""
preferred: Optional[str]
"""
Expand Down Expand Up @@ -710,7 +710,7 @@ class CardPresent(StripeObject):
class Networks(StripeObject):
available: List[str]
"""
All available networks for the card.
All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
"""
preferred: Optional[str]
"""
Expand Down Expand Up @@ -958,7 +958,7 @@ class InteracPresent(StripeObject):
class Networks(StripeObject):
available: List[str]
"""
All available networks for the card.
All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
"""
preferred: Optional[str]
"""
Expand Down
4 changes: 2 additions & 2 deletions stripe/_credit_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ class Tax(StripeObject):
"""
rate: "TaxRate"
"""
Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.

Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
"""
taxability_reason: Optional[
Literal[
Expand Down
4 changes: 2 additions & 2 deletions stripe/_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,9 +865,9 @@ class Tax(StripeObject):
"""
rate: "TaxRate"
"""
Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.

Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
"""
taxability_reason: Optional[
Literal[
Expand Down
4 changes: 2 additions & 2 deletions stripe/_line_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class Tax(StripeObject):
"""
rate: "TaxRate"
"""
Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.

Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
"""
taxability_reason: Optional[
Literal[
Expand Down
Loading
Loading