Skip to content

Commit 2c10dc5

Browse files
Update generated code for v2324 and 6012b623b1c09ad54d466947da04511a042ee45a
1 parent 9106b4a commit 2c10dc5

88 files changed

Lines changed: 1066 additions & 137 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1f0a7866ce5b5e12153c09a04349f91486b17d95
1+
6012b623b1c09ad54d466947da04511a042ee45a

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2323
1+
v2324

stripe/_api_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# -*- coding: utf-8 -*-
22
# File generated from our OpenAPI spec
33
class _ApiVersion:
4-
CURRENT = "2026-05-27.preview"
4+
CURRENT = "2026-06-24.preview"

stripe/_balance_transaction.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ class FeeDetail(StripeObject):
195195
"stripe_fee",
196196
"stripe_fx_fee",
197197
"tax_fee",
198+
"tax_fund",
198199
"topup",
199200
"topup_reversal",
200201
"transfer",
@@ -203,17 +204,17 @@ class FeeDetail(StripeObject):
203204
"transfer_refund",
204205
]
205206
"""
206-
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.
207+
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.
207208
"""
208209

209210
@classmethod
210211
def list(
211212
cls, **params: Unpack["BalanceTransactionListParams"]
212213
) -> ListObject["BalanceTransaction"]:
213214
"""
214-
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.
215+
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.
215216
216-
Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history.
217+
The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history.
217218
"""
218219
result = cls._static_request(
219220
"get",
@@ -233,9 +234,9 @@ async def list_async(
233234
cls, **params: Unpack["BalanceTransactionListParams"]
234235
) -> ListObject["BalanceTransaction"]:
235236
"""
236-
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.
237+
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.
237238
238-
Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history.
239+
The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history.
239240
"""
240241
result = await cls._static_request_async(
241242
"get",

stripe/_balance_transaction_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ def list(
2424
options: Optional["RequestOptions"] = None,
2525
) -> "ListObject[BalanceTransaction]":
2626
"""
27-
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.
27+
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.
2828
29-
Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history.
29+
The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history.
3030
"""
3131
return cast(
3232
"ListObject[BalanceTransaction]",
@@ -45,9 +45,9 @@ async def list_async(
4545
options: Optional["RequestOptions"] = None,
4646
) -> "ListObject[BalanceTransaction]":
4747
"""
48-
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.
48+
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.
4949
50-
Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history.
50+
The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history.
5151
"""
5252
return cast(
5353
"ListObject[BalanceTransaction]",

stripe/_card.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ class Networks(StripeObject):
3333
The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
3434
"""
3535

36+
class Redaction(StripeObject):
37+
status: Literal["processing", "redacted", "validated"]
38+
"""
39+
Indicates whether this object and its related objects have been redacted or not.
40+
"""
41+
3642
account: Optional[ExpandableField["Account"]]
3743
address_city: Optional[str]
3844
"""
@@ -161,6 +167,10 @@ class Networks(StripeObject):
161167
"""
162168
String representing the object's type. Objects of the same type share the same value.
163169
"""
170+
redaction: Optional[Redaction]
171+
"""
172+
Redaction status of this card. If not null, this card is associated to a redaction job.
173+
"""
164174
regulated_status: Optional[Literal["regulated", "unregulated"]]
165175
"""
166176
Status of a card based on the card issuer.
@@ -325,4 +335,4 @@ def retrieve(cls, id, **params):
325335
"(see https://stripe.com/docs/api/external_account_cards/retrieve)."
326336
)
327337

328-
_inner_class_types = {"networks": Networks}
338+
_inner_class_types = {"networks": Networks, "redaction": Redaction}

stripe/_charge.py

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,10 @@ class Billie(StripeObject):
461461
"""
462462

463463
class Bizum(StripeObject):
464+
buyer_id: Optional[str]
465+
"""
466+
A unique identifier for the buyer as determined by the local payment processor.
467+
"""
464468
transaction_id: Optional[str]
465469
"""
466470
The Bizum transaction ID associated with this payment.
@@ -929,6 +933,10 @@ class ShippingAddress(StripeObject):
929933
"""
930934
Populated if this transaction used 3D Secure authentication.
931935
"""
936+
transaction_link_id: Optional[str]
937+
"""
938+
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.
939+
"""
932940
wallet: Optional[Wallet]
933941
"""
934942
If this Card is part of a card wallet, this contains the details of the card wallet.
@@ -1147,13 +1155,17 @@ class Crypto(StripeObject):
11471155
The wallet address of the customer.
11481156
"""
11491157
network: Optional[
1150-
Literal["base", "ethereum", "polygon", "solana", "tempo"]
1158+
Literal[
1159+
"base", "ethereum", "polygon", "solana", "sui", "tempo"
1160+
]
11511161
]
11521162
"""
11531163
The blockchain network that the transaction was sent on.
11541164
"""
11551165
token_currency: Optional[
1156-
Literal["phantom_cash", "usdc", "usdg", "usdp", "usdt"]
1166+
Literal[
1167+
"phantom_cash", "usdc", "usdg", "usdp", "usdsui", "usdt"
1168+
]
11571169
]
11581170
"""
11591171
The token currency that the transaction was sent with.
@@ -1928,6 +1940,10 @@ class Pix(StripeObject):
19281940
"""
19291941
Unique transaction id generated by BCB
19301942
"""
1943+
fingerprint: Optional[str]
1944+
"""
1945+
Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same.
1946+
"""
19311947
mandate: Optional[str]
19321948
"""
19331949
ID of the multi use Mandate generated by the PaymentIntent
@@ -2369,6 +2385,12 @@ class RadarOptions(StripeObject):
23692385
A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
23702386
"""
23712387

2388+
class Redaction(StripeObject):
2389+
status: Literal["processing", "redacted", "validated"]
2390+
"""
2391+
Indicates whether this object and its related objects have been redacted or not.
2392+
"""
2393+
23722394
class Shipping(StripeObject):
23732395
class Address(StripeObject):
23742396
city: Optional[str]
@@ -2562,6 +2584,10 @@ class TransferData(StripeObject):
25622584
"""
25632585
This is the URL to view the receipt for this charge. The receipt is kept up-to-date to the latest state of the charge, including any refunds. If the charge is for an Invoice, the receipt will be stylized as an Invoice receipt.
25642586
"""
2587+
redaction: Optional[Redaction]
2588+
"""
2589+
Redaction status of this charge. If not null, this charge is associated to a redaction job.
2590+
"""
25652591
refunded: bool
25662592
"""
25672593
Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false.
@@ -3025,6 +3051,7 @@ async def list_refunds_async(
30253051
"payment_method_details": PaymentMethodDetails,
30263052
"presentment_details": PresentmentDetails,
30273053
"radar_options": RadarOptions,
3054+
"redaction": Redaction,
30283055
"shipping": Shipping,
30293056
"transfer_data": TransferData,
30303057
}

stripe/_confirmation_token.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,16 @@ class Address(StripeObject):
223223
_inner_class_types = {"address": Address}
224224

225225
class Bizum(StripeObject):
226-
pass
226+
buyer_id: Optional[str]
227+
"""
228+
A unique identifier for the buyer as determined by the local payment processor.
229+
"""
227230

228231
class Blik(StripeObject):
229-
pass
232+
buyer_id: Optional[str]
233+
"""
234+
A unique and immutable identifier assigned by BLIK to every buyer.
235+
"""
230236

231237
class Boleto(StripeObject):
232238
tax_id: str
@@ -1303,7 +1309,10 @@ class Payto(StripeObject):
13031309
"""
13041310

13051311
class Pix(StripeObject):
1306-
pass
1312+
fingerprint: Optional[str]
1313+
"""
1314+
Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same.
1315+
"""
13071316

13081317
class Promptpay(StripeObject):
13091318
pass

stripe/_credit_note.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,8 @@ def create(
388388
389389
You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount,
390390
post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation.
391+
392+
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.
391393
"""
392394
return cast(
393395
"CreditNote",
@@ -416,6 +418,8 @@ async def create_async(
416418
417419
You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount,
418420
post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation.
421+
422+
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.
419423
"""
420424
return cast(
421425
"CreditNote",

stripe/_credit_note_service.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ def create(
119119
120120
You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount,
121121
post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation.
122+
123+
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.
122124
"""
123125
return cast(
124126
"CreditNote",
@@ -150,6 +152,8 @@ async def create_async(
150152
151153
You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount,
152154
post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation.
155+
156+
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.
153157
"""
154158
return cast(
155159
"CreditNote",

0 commit comments

Comments
 (0)