Skip to content

Commit fa25f24

Browse files
Update generated code (#1836)
* Update generated code for v2323 and 1f0a7866ce5b5e12153c09a04349f91486b17d95 * Update generated code for v2324 and 6012b623b1c09ad54d466947da04511a042ee45a --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent 4280756 commit fa25f24

75 files changed

Lines changed: 853 additions & 133 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-
d59a1f4bdea3032b8e282d40badc032cb021fc60
1+
6012b623b1c09ad54d466947da04511a042ee45a

OPENAPI_VERSION

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

stripe/_api_version.py

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

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/_charge.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,10 @@ class Billie(StripeObject):
457457
"""
458458

459459
class Bizum(StripeObject):
460+
buyer_id: Optional[str]
461+
"""
462+
A unique identifier for the buyer as determined by the local payment processor.
463+
"""
460464
transaction_id: Optional[str]
461465
"""
462466
The Bizum transaction ID associated with this payment.
@@ -902,6 +906,10 @@ class ShippingAddress(StripeObject):
902906
"""
903907
Populated if this transaction used 3D Secure authentication.
904908
"""
909+
transaction_link_id: Optional[str]
910+
"""
911+
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.
912+
"""
905913
wallet: Optional[Wallet]
906914
"""
907915
If this Card is part of a card wallet, this contains the details of the card wallet.
@@ -1118,13 +1126,17 @@ class Crypto(StripeObject):
11181126
The wallet address of the customer.
11191127
"""
11201128
network: Optional[
1121-
Literal["base", "ethereum", "polygon", "solana", "tempo"]
1129+
Literal[
1130+
"base", "ethereum", "polygon", "solana", "sui", "tempo"
1131+
]
11221132
]
11231133
"""
11241134
The blockchain network that the transaction was sent on.
11251135
"""
11261136
token_currency: Optional[
1127-
Literal["phantom_cash", "usdc", "usdg", "usdp", "usdt"]
1137+
Literal[
1138+
"phantom_cash", "usdc", "usdg", "usdp", "usdsui", "usdt"
1139+
]
11281140
]
11291141
"""
11301142
The token currency that the transaction was sent with.
@@ -1793,6 +1805,10 @@ class Pix(StripeObject):
17931805
"""
17941806
Unique transaction id generated by BCB
17951807
"""
1808+
fingerprint: Optional[str]
1809+
"""
1810+
Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same.
1811+
"""
17961812
mandate: Optional[str]
17971813
"""
17981814
ID of the multi use Mandate generated by the PaymentIntent

stripe/_confirmation_token.py

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

221221
class Bizum(StripeObject):
222-
pass
222+
buyer_id: Optional[str]
223+
"""
224+
A unique identifier for the buyer as determined by the local payment processor.
225+
"""
223226

224227
class Blik(StripeObject):
225-
pass
228+
buyer_id: Optional[str]
229+
"""
230+
A unique and immutable identifier assigned by BLIK to every buyer.
231+
"""
226232

227233
class Boleto(StripeObject):
228234
tax_id: str
@@ -1278,7 +1284,10 @@ class Payto(StripeObject):
12781284
"""
12791285

12801286
class Pix(StripeObject):
1281-
pass
1287+
fingerprint: Optional[str]
1288+
"""
1289+
Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same.
1290+
"""
12821291

12831292
class Promptpay(StripeObject):
12841293
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",

stripe/_dispute.py

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ class Dispute(
3535

3636
class Evidence(StripeObject):
3737
class EnhancedEvidence(StripeObject):
38+
class MastercardCompliance(StripeObject):
39+
fee_acknowledged: bool
40+
"""
41+
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.
42+
"""
43+
3844
class VisaCompellingEvidence3(StripeObject):
3945
class DisputedTransaction(StripeObject):
4046
class ShippingAddress(StripeObject):
@@ -179,9 +185,11 @@ class VisaCompliance(StripeObject):
179185
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.
180186
"""
181187

188+
mastercard_compliance: Optional[MastercardCompliance]
182189
visa_compelling_evidence_3: Optional[VisaCompellingEvidence3]
183190
visa_compliance: Optional[VisaCompliance]
184191
_inner_class_types = {
192+
"mastercard_compliance": MastercardCompliance,
185193
"visa_compelling_evidence_3": VisaCompellingEvidence3,
186194
"visa_compliance": VisaCompliance,
187195
}
@@ -299,6 +307,14 @@ class VisaCompliance(StripeObject):
299307

300308
class EvidenceDetails(StripeObject):
301309
class EnhancedEligibility(StripeObject):
310+
class MastercardCompliance(StripeObject):
311+
status: Literal[
312+
"fee_acknowledged", "requires_fee_acknowledgement"
313+
]
314+
"""
315+
Mastercard compliance eligibility status.
316+
"""
317+
302318
class VisaCompellingEvidence3(StripeObject):
303319
required_actions: List[
304320
Literal[
@@ -327,9 +343,11 @@ class VisaCompliance(StripeObject):
327343
Visa compliance eligibility status.
328344
"""
329345

346+
mastercard_compliance: Optional[MastercardCompliance]
330347
visa_compelling_evidence_3: Optional[VisaCompellingEvidence3]
331348
visa_compliance: Optional[VisaCompliance]
332349
_inner_class_types = {
350+
"mastercard_compliance": MastercardCompliance,
333351
"visa_compelling_evidence_3": VisaCompellingEvidence3,
334352
"visa_compliance": VisaCompliance,
335353
}
@@ -432,7 +450,11 @@ class Paypal(StripeObject):
432450
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).
433451
"""
434452
enhanced_eligibility_types: List[
435-
Literal["visa_compelling_evidence_3", "visa_compliance"]
453+
Literal[
454+
"mastercard_compliance",
455+
"visa_compelling_evidence_3",
456+
"visa_compliance",
457+
]
436458
]
437459
"""
438460
List of eligibility types that are included in `enhanced_evidence`.

0 commit comments

Comments
 (0)