Skip to content

Commit f2c59c9

Browse files
Merge pull request #1726 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents f57db70 + c1979c8 commit f2c59c9

148 files changed

Lines changed: 7640 additions & 823 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-
c250368ba89214c80bc8de3e4fc5d2094c5502cc
1+
529796460735eb8ef64a29787291f1b4d4b29f1c

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2153
1+
v2160

stripe/__init__.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ def add_beta_version(
162162
product_catalog as product_catalog,
163163
radar as radar,
164164
reporting as reporting,
165+
reserve as reserve,
165166
shared_payment as shared_payment,
166167
sigma as sigma,
167168
tax as tax,
@@ -376,6 +377,12 @@ def add_beta_version(
376377
from stripe._forwarding_service import (
377378
ForwardingService as ForwardingService,
378379
)
380+
from stripe._fr_meal_vouchers_onboarding import (
381+
FrMealVouchersOnboarding as FrMealVouchersOnboarding,
382+
)
383+
from stripe._fr_meal_vouchers_onboarding_service import (
384+
FrMealVouchersOnboardingService as FrMealVouchersOnboardingService,
385+
)
379386
from stripe._funding_instructions import (
380387
FundingInstructions as FundingInstructions,
381388
)
@@ -428,9 +435,6 @@ def add_beta_version(
428435
from stripe._oauth import OAuth as OAuth
429436
from stripe._oauth_service import OAuthService as OAuthService
430437
from stripe._order import Order as Order
431-
from stripe._order_line_item_service import (
432-
OrderLineItemService as OrderLineItemService,
433-
)
434438
from stripe._order_service import OrderService as OrderService
435439
from stripe._payment_attempt_record import (
436440
PaymentAttemptRecord as PaymentAttemptRecord,
@@ -527,6 +531,7 @@ def add_beta_version(
527531
from stripe._reporting_service import ReportingService as ReportingService
528532
from stripe._request_options import RequestOptions as RequestOptions
529533
from stripe._requestor_options import RequestorOptions as RequestorOptions
534+
from stripe._reserve_service import ReserveService as ReserveService
530535
from stripe._reserve_transaction import (
531536
ReserveTransaction as ReserveTransaction,
532537
)
@@ -659,6 +664,7 @@ def add_beta_version(
659664
"product_catalog": ("stripe.product_catalog", True),
660665
"radar": ("stripe.radar", True),
661666
"reporting": ("stripe.reporting", True),
667+
"reserve": ("stripe.reserve", True),
662668
"shared_payment": ("stripe.shared_payment", True),
663669
"sigma": ("stripe.sigma", True),
664670
"tax": ("stripe.tax", True),
@@ -827,6 +833,11 @@ def add_beta_version(
827833
False,
828834
),
829835
"ForwardingService": ("stripe._forwarding_service", False),
836+
"FrMealVouchersOnboarding": ("stripe._fr_meal_vouchers_onboarding", False),
837+
"FrMealVouchersOnboardingService": (
838+
"stripe._fr_meal_vouchers_onboarding_service",
839+
False,
840+
),
830841
"FundingInstructions": ("stripe._funding_instructions", False),
831842
"FxQuote": ("stripe._fx_quote", False),
832843
"FxQuoteService": ("stripe._fx_quote_service", False),
@@ -867,7 +878,6 @@ def add_beta_version(
867878
"OAuth": ("stripe._oauth", False),
868879
"OAuthService": ("stripe._oauth_service", False),
869880
"Order": ("stripe._order", False),
870-
"OrderLineItemService": ("stripe._order_line_item_service", False),
871881
"OrderService": ("stripe._order_service", False),
872882
"PaymentAttemptRecord": ("stripe._payment_attempt_record", False),
873883
"PaymentAttemptRecordService": (
@@ -951,6 +961,7 @@ def add_beta_version(
951961
"ReportingService": ("stripe._reporting_service", False),
952962
"RequestOptions": ("stripe._request_options", False),
953963
"RequestorOptions": ("stripe._requestor_options", False),
964+
"ReserveService": ("stripe._reserve_service", False),
954965
"ReserveTransaction": ("stripe._reserve_transaction", False),
955966
"Reversal": ("stripe._reversal", False),
956967
"Review": ("stripe._review", False),

stripe/_account.py

Lines changed: 41 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,16 +1345,6 @@ class Branding(StripeObject):
13451345
A CSS hex color value representing the secondary branding color for this account
13461346
"""
13471347

1348-
class Capital(StripeObject):
1349-
payout_destination: Optional[Dict[str, str]]
1350-
"""
1351-
Per-currency mapping of user-selected destination accounts used to pay out loans.
1352-
"""
1353-
payout_destination_selector: Optional[Dict[str, List[str]]]
1354-
"""
1355-
Per-currency mapping of all destination accounts eligible to receive loan payouts.
1356-
"""
1357-
13581348
class CardIssuing(StripeObject):
13591349
class TosAcceptance(StripeObject):
13601350
date: Optional[int]
@@ -1492,10 +1482,51 @@ class Schedule(StripeObject):
14921482
_inner_class_types = {"schedule": Schedule}
14931483

14941484
class PaypayPayments(StripeObject):
1485+
class Site(StripeObject):
1486+
class Accessible(StripeObject):
1487+
pass
1488+
1489+
class InDevelopment(StripeObject):
1490+
password_provided: Optional[bool]
1491+
"""
1492+
Field to indicate that the website password has been provided.
1493+
"""
1494+
username: Optional[str]
1495+
"""
1496+
The username needed to access your business's website.
1497+
"""
1498+
1499+
class Restricted(StripeObject):
1500+
payment_flow_file: Optional[str]
1501+
"""
1502+
File explaining the payment flow for your business.
1503+
"""
1504+
1505+
accessible: Optional[Accessible]
1506+
in_development: Optional[InDevelopment]
1507+
restricted: Optional[Restricted]
1508+
type: Optional[
1509+
Literal["accessible", "in_development", "restricted"]
1510+
]
1511+
"""
1512+
The status of your business's website.
1513+
"""
1514+
_inner_class_types = {
1515+
"accessible": Accessible,
1516+
"in_development": InDevelopment,
1517+
"restricted": Restricted,
1518+
}
1519+
1520+
additional_files: Optional[List[str]]
1521+
"""
1522+
Additional files that are required to support the onboarding process of your business.
1523+
"""
14951524
goods_type: Optional[Literal["digital_content", "other"]]
14961525
"""
14971526
Whether your business sells digital content or not.
14981527
"""
1528+
site: Optional[Site]
1529+
_inner_class_types = {"site": Site}
14991530

15001531
class SepaDebitPayments(StripeObject):
15011532
creditor_id: Optional[str]
@@ -1530,7 +1561,6 @@ class TosAcceptance(StripeObject):
15301561
bacs_debit_payments: Optional[BacsDebitPayments]
15311562
bank_bca_onboarding: Optional[BankBcaOnboarding]
15321563
branding: Branding
1533-
capital: Optional[Capital]
15341564
card_issuing: Optional[CardIssuing]
15351565
card_payments: CardPayments
15361566
dashboard: Dashboard
@@ -1545,7 +1575,6 @@ class TosAcceptance(StripeObject):
15451575
"bacs_debit_payments": BacsDebitPayments,
15461576
"bank_bca_onboarding": BankBcaOnboarding,
15471577
"branding": Branding,
1548-
"capital": Capital,
15491578
"card_issuing": CardIssuing,
15501579
"card_payments": CardPayments,
15511580
"dashboard": Dashboard,

stripe/_account_session.py

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@ class Features(StripeObject):
6161
features: Features
6262
_inner_class_types = {"features": Features}
6363

64+
class AgenticCommerceSettings(StripeObject):
65+
class Features(StripeObject):
66+
pass
67+
68+
enabled: bool
69+
"""
70+
Whether the embedded component is enabled.
71+
"""
72+
features: Features
73+
_inner_class_types = {"features": Features}
74+
6475
class Balances(StripeObject):
6576
class Features(StripeObject):
6677
disable_stripe_user_authentication: bool
@@ -77,7 +88,7 @@ class Features(StripeObject):
7788
"""
7889
instant_payouts: bool
7990
"""
80-
Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
91+
Whether to allow creation of instant payouts. The default value is `enabled` when Stripe is responsible for negative account balances, and `use_dashboard_rules` otherwise.
8192
"""
8293
standard_payouts: bool
8394
"""
@@ -224,7 +235,7 @@ class Features(StripeObject):
224235
"""
225236
instant_payouts: bool
226237
"""
227-
Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
238+
Whether to allow creation of instant payouts. The default value is `enabled` when Stripe is responsible for negative account balances, and `use_dashboard_rules` otherwise.
228239
"""
229240

230241
enabled: bool
@@ -409,7 +420,7 @@ class Features(StripeObject):
409420
"""
410421
instant_payouts: bool
411422
"""
412-
Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
423+
Whether to allow creation of instant payouts. The default value is `enabled` when Stripe is responsible for negative account balances, and `use_dashboard_rules` otherwise.
413424
"""
414425
standard_payouts: bool
415426
"""
@@ -458,6 +469,10 @@ class Features(StripeObject):
458469

459470
account_management: AccountManagement
460471
account_onboarding: AccountOnboarding
472+
agentic_commerce_settings: Optional[AgenticCommerceSettings]
473+
"""
474+
Configuration for the [agentic commerce settings](https://docs.stripe.com/connect/supported-embedded-components/agentic-commerce-settings/) embedded component.
475+
"""
461476
balances: Balances
462477
capital_financing: Optional[CapitalFinancing]
463478
capital_financing_application: Optional[CapitalFinancingApplication]
@@ -485,6 +500,7 @@ class Features(StripeObject):
485500
_inner_class_types = {
486501
"account_management": AccountManagement,
487502
"account_onboarding": AccountOnboarding,
503+
"agentic_commerce_settings": AgenticCommerceSettings,
488504
"balances": Balances,
489505
"capital_financing": CapitalFinancing,
490506
"capital_financing_application": CapitalFinancingApplication,

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 = "2025-12-15.preview"
4+
CURRENT = "2026-01-28.preview"

stripe/_balance_transaction.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ class FeeDetail(StripeObject):
7777
The date that the transaction's net funds become available in the Stripe balance.
7878
"""
7979
balance_type: Literal[
80-
"issuing", "payments", "refund_and_dispute_prefunding", "transit"
80+
"issuing",
81+
"payments",
82+
"refund_and_dispute_prefunding",
83+
"risk_reserved",
84+
"transit",
8185
]
8286
"""
8387
The balance that this transaction impacts.
@@ -183,6 +187,8 @@ class FeeDetail(StripeObject):
183187
"payout_minimum_balance_release",
184188
"refund",
185189
"refund_failure",
190+
"reserve_hold",
191+
"reserve_release",
186192
"reserve_transaction",
187193
"reserved_funds",
188194
"stripe_balance_payment_debit",
@@ -198,7 +204,7 @@ class FeeDetail(StripeObject):
198204
"transfer_refund",
199205
]
200206
"""
201-
Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `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`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. 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: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `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`, or `transfer_refund`. 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.
202208
"""
203209

204210
@classmethod

stripe/_charge.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,9 @@ class ThreeDSecure(StripeObject):
625625
The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID
626626
(dsTransId) for this payment.
627627
"""
628-
version: Optional[Literal["1.0.2", "2.1.0", "2.2.0"]]
628+
version: Optional[
629+
Literal["1.0.2", "2.1.0", "2.2.0", "2.3.0", "2.3.1"]
630+
]
629631
"""
630632
The version of 3D Secure that was used.
631633
"""
@@ -1291,6 +1293,7 @@ class Ideal(StripeObject):
12911293
bank: Optional[
12921294
Literal[
12931295
"abn_amro",
1296+
"adyen",
12941297
"asn_bank",
12951298
"bunq",
12961299
"buut",
@@ -1312,11 +1315,12 @@ class Ideal(StripeObject):
13121315
]
13131316
]
13141317
"""
1315-
The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
1318+
The customer's bank. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
13161319
"""
13171320
bic: Optional[
13181321
Literal[
13191322
"ABNANL2A",
1323+
"ADYBNL2A",
13201324
"ASNBNL21",
13211325
"BITSNL2A",
13221326
"BUNQNL2A",
@@ -2079,7 +2083,7 @@ class StripeBalance(StripeObject):
20792083
"""
20802084
The connected account ID whose Stripe balance to use as the source of payment
20812085
"""
2082-
source_type: Literal["bank_account", "card", "fpx"]
2086+
source_type: Optional[Literal["bank_account", "card", "fpx"]]
20832087
"""
20842088
The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
20852089
"""

stripe/_confirmation_token.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,7 @@ class Ideal(StripeObject):
966966
bank: Optional[
967967
Literal[
968968
"abn_amro",
969+
"adyen",
969970
"asn_bank",
970971
"bunq",
971972
"buut",
@@ -987,11 +988,12 @@ class Ideal(StripeObject):
987988
]
988989
]
989990
"""
990-
The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
991+
The customer's bank, if provided. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
991992
"""
992993
bic: Optional[
993994
Literal[
994995
"ABNANL2A",
996+
"ADYBNL2A",
995997
"ASNBNL21",
996998
"BITSNL2A",
997999
"BUNQNL2A",
@@ -1388,7 +1390,7 @@ class StripeBalance(StripeObject):
13881390
"""
13891391
The connected account ID whose Stripe balance to use as the source of payment
13901392
"""
1391-
source_type: Literal["bank_account", "card", "fpx"]
1393+
source_type: Optional[Literal["bank_account", "card", "fpx"]]
13921394
"""
13931395
The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
13941396
"""

stripe/_coupon.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ class Script(StripeObject):
5959
The script implementation ID for this coupon.
6060
"""
6161

62+
class ServicePeriod(StripeObject):
63+
class Iterations(StripeObject):
64+
count: Optional[int]
65+
type: Literal["count", "forever"]
66+
67+
interval: str
68+
interval_count: int
69+
iterations: Iterations
70+
_inner_class_types = {"iterations": Iterations}
71+
6272
amount_off: Optional[int]
6373
"""
6474
Amount (in the `currency` specified) that will be taken off the subtotal of any invoices for this customer.
@@ -80,7 +90,7 @@ class Script(StripeObject):
8090
"""
8191
Always true for a deleted object
8292
"""
83-
duration: Literal["forever", "once", "repeating"]
93+
duration: Literal["forever", "once", "repeating", "service_period"]
8494
"""
8595
One of `forever`, `once`, or `repeating`. Describes how long a customer who applies this coupon will get the discount.
8696
"""
@@ -124,6 +134,7 @@ class Script(StripeObject):
124134
"""
125135
Configuration of the [script](https://docs.stripe.com/billing/subscriptions/script-coupons) used to calculate the discount.
126136
"""
137+
service_period: Optional[ServicePeriod]
127138
times_redeemed: int
128139
"""
129140
Number of times this coupon has been applied to a customer.
@@ -365,4 +376,5 @@ async def retrieve_async(
365376
"applies_to": AppliesTo,
366377
"currency_options": CurrencyOptions,
367378
"script": Script,
379+
"service_period": ServicePeriod,
368380
}

0 commit comments

Comments
 (0)