Skip to content

Commit fb0436b

Browse files
Update generated code for v1868 and 2025-07-30.basil (#1627)
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent f6fd754 commit fb0436b

File tree

91 files changed

+3811
-469
lines changed

Some content is hidden

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

91 files changed

+3811
-469
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-06-30.basil
1+
2025-07-30.basil

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1819
1+
v1868

lib/stripe/api_version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
module Stripe
55
module ApiVersion
6-
CURRENT = "2025-06-30.basil"
6+
CURRENT = "2025-07-30.basil"
77
CURRENT_MAJOR = "basil"
88
end
99
end

lib/stripe/resources/account.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class SupportAddress < Stripe::StripeObject
7171
attr_reader :estimated_worker_count
7272
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
7373
attr_reader :mcc
74-
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
74+
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
7575
attr_reader :minority_owned_business_designation
7676
# Attribute for field monthly_estimated_revenue
7777
attr_reader :monthly_estimated_revenue
@@ -700,7 +700,7 @@ def initialize(
700700
attr_accessor :estimated_worker_count
701701
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
702702
attr_accessor :mcc
703-
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
703+
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
704704
attr_accessor :minority_owned_business_designation
705705
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
706706
attr_accessor :monthly_estimated_revenue
@@ -2751,7 +2751,7 @@ def initialize(
27512751
attr_accessor :estimated_worker_count
27522752
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
27532753
attr_accessor :mcc
2754-
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
2754+
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
27552755
attr_accessor :minority_owned_business_designation
27562756
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
27572757
attr_accessor :monthly_estimated_revenue
@@ -4852,7 +4852,7 @@ def self.create(params = {}, opts = {})
48524852
#
48534853
# Test-mode accounts can be deleted at any time.
48544854
#
4855-
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
4855+
# Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
48564856
#
48574857
# If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
48584858
def self.delete(account, params = {}, opts = {})
@@ -4868,7 +4868,7 @@ def self.delete(account, params = {}, opts = {})
48684868
#
48694869
# Test-mode accounts can be deleted at any time.
48704870
#
4871-
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
4871+
# Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
48724872
#
48734873
# If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
48744874
def delete(params = {}, opts = {})

lib/stripe/resources/account_link.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ def initialize(fields: nil, future_requirements: nil)
3838
attr_accessor :refresh_url
3939
# The URL that the user will be redirected to upon leaving or completing the linked flow.
4040
attr_accessor :return_url
41-
# The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`.
41+
# The type of account link the user is requesting.
42+
#
43+
# You can create Account Links of type `account_update` only for connected accounts where your platform is responsible for collecting requirements, including Custom accounts. You can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use [Connect embedded components](/connect/get-started-connect-embedded-components), you can include components that allow your connected accounts to update their own information. For an account without Stripe-hosted Dashboard access where Stripe is liable for negative balances, you must use embedded components.
4244
attr_accessor :type
4345

4446
def initialize(

lib/stripe/resources/account_session.rb

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,21 @@ class Features < Stripe::StripeObject
116116
attr_reader :features
117117
end
118118

119+
class InstantPayoutsPromotion < Stripe::StripeObject
120+
class Features < Stripe::StripeObject
121+
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
122+
attr_reader :disable_stripe_user_authentication
123+
# Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
124+
attr_reader :external_account_collection
125+
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
126+
attr_reader :instant_payouts
127+
end
128+
# Whether the embedded component is enabled.
129+
attr_reader :enabled
130+
# Attribute for field features
131+
attr_reader :features
132+
end
133+
119134
class IssuingCard < Stripe::StripeObject
120135
class Features < Stripe::StripeObject
121136
# Whether to allow card management features.
@@ -270,6 +285,8 @@ class Features < Stripe::StripeObject; end
270285
attr_reader :financial_account
271286
# Attribute for field financial_account_transactions
272287
attr_reader :financial_account_transactions
288+
# Attribute for field instant_payouts_promotion
289+
attr_reader :instant_payouts_promotion
273290
# Attribute for field issuing_card
274291
attr_reader :issuing_card
275292
# Attribute for field issuing_cards_list
@@ -485,6 +502,36 @@ def initialize(enabled: nil, features: nil)
485502
end
486503
end
487504

505+
class InstantPayoutsPromotion < Stripe::RequestParams
506+
class Features < Stripe::RequestParams
507+
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
508+
attr_accessor :disable_stripe_user_authentication
509+
# Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
510+
attr_accessor :external_account_collection
511+
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
512+
attr_accessor :instant_payouts
513+
514+
def initialize(
515+
disable_stripe_user_authentication: nil,
516+
external_account_collection: nil,
517+
instant_payouts: nil
518+
)
519+
@disable_stripe_user_authentication = disable_stripe_user_authentication
520+
@external_account_collection = external_account_collection
521+
@instant_payouts = instant_payouts
522+
end
523+
end
524+
# Whether the embedded component is enabled.
525+
attr_accessor :enabled
526+
# The list of features enabled in the embedded component.
527+
attr_accessor :features
528+
529+
def initialize(enabled: nil, features: nil)
530+
@enabled = enabled
531+
@features = features
532+
end
533+
end
534+
488535
class IssuingCard < Stripe::RequestParams
489536
class Features < Stripe::RequestParams
490537
# Whether to allow card management features.
@@ -771,6 +818,8 @@ def initialize(enabled: nil, features: nil)
771818
attr_accessor :financial_account
772819
# Configuration for the [financial account transactions](/connect/supported-embedded-components/financial-account-transactions/) embedded component.
773820
attr_accessor :financial_account_transactions
821+
# Configuration for the [instant payouts promotion](/connect/supported-embedded-components/instant-payouts-promotion/) embedded component.
822+
attr_accessor :instant_payouts_promotion
774823
# Configuration for the [issuing card](/connect/supported-embedded-components/issuing-card/) embedded component.
775824
attr_accessor :issuing_card
776825
# Configuration for the [issuing cards list](/connect/supported-embedded-components/issuing-cards-list/) embedded component.
@@ -800,6 +849,7 @@ def initialize(
800849
documents: nil,
801850
financial_account: nil,
802851
financial_account_transactions: nil,
852+
instant_payouts_promotion: nil,
803853
issuing_card: nil,
804854
issuing_cards_list: nil,
805855
notification_banner: nil,
@@ -818,6 +868,7 @@ def initialize(
818868
@documents = documents
819869
@financial_account = financial_account
820870
@financial_account_transactions = financial_account_transactions
871+
@instant_payouts_promotion = instant_payouts_promotion
821872
@issuing_card = issuing_card
822873
@issuing_cards_list = issuing_cards_list
823874
@notification_banner = notification_banner

lib/stripe/resources/billing/credit_grant.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def initialize(currency: nil, value: nil)
8686
end
8787
# The monetary amount.
8888
attr_accessor :monetary
89-
# Specify the type of this amount. We currently only support `monetary` billing credits.
89+
# The type of this amount. We currently only support `monetary` billing credits.
9090
attr_accessor :type
9191

9292
def initialize(monetary: nil, type: nil)

lib/stripe/resources/billing_portal/configuration.rb

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ class CancellationReason < Stripe::StripeObject
6060

6161
class SubscriptionUpdate < Stripe::StripeObject
6262
class Product < Stripe::StripeObject
63+
class AdjustableQuantity < Stripe::StripeObject
64+
# If true, the quantity can be adjusted to any non-negative integer.
65+
attr_reader :enabled
66+
# The maximum quantity that can be set for the product.
67+
attr_reader :maximum
68+
# The minimum quantity that can be set for the product.
69+
attr_reader :minimum
70+
end
71+
# Attribute for field adjustable_quantity
72+
attr_reader :adjustable_quantity
6373
# The list of price IDs which, when subscribed to, a subscription can be updated.
6474
attr_reader :prices
6575
# The product ID.
@@ -220,12 +230,29 @@ def initialize(
220230

221231
class SubscriptionUpdate < Stripe::RequestParams
222232
class Product < Stripe::RequestParams
233+
class AdjustableQuantity < Stripe::RequestParams
234+
# Set to true if the quantity can be adjusted to any non-negative integer.
235+
attr_accessor :enabled
236+
# The maximum quantity that can be set for the product.
237+
attr_accessor :maximum
238+
# The minimum quantity that can be set for the product.
239+
attr_accessor :minimum
240+
241+
def initialize(enabled: nil, maximum: nil, minimum: nil)
242+
@enabled = enabled
243+
@maximum = maximum
244+
@minimum = minimum
245+
end
246+
end
247+
# Control whether the quantity of the product can be adjusted.
248+
attr_accessor :adjustable_quantity
223249
# The list of price IDs for the product that a subscription can be updated to.
224250
attr_accessor :prices
225251
# The product id.
226252
attr_accessor :product
227253

228-
def initialize(prices: nil, product: nil)
254+
def initialize(adjustable_quantity: nil, prices: nil, product: nil)
255+
@adjustable_quantity = adjustable_quantity
229256
@prices = prices
230257
@product = product
231258
end
@@ -419,12 +446,29 @@ def initialize(
419446

420447
class SubscriptionUpdate < Stripe::RequestParams
421448
class Product < Stripe::RequestParams
449+
class AdjustableQuantity < Stripe::RequestParams
450+
# Set to true if the quantity can be adjusted to any non-negative integer.
451+
attr_accessor :enabled
452+
# The maximum quantity that can be set for the product.
453+
attr_accessor :maximum
454+
# The minimum quantity that can be set for the product.
455+
attr_accessor :minimum
456+
457+
def initialize(enabled: nil, maximum: nil, minimum: nil)
458+
@enabled = enabled
459+
@maximum = maximum
460+
@minimum = minimum
461+
end
462+
end
463+
# Control whether the quantity of the product can be adjusted.
464+
attr_accessor :adjustable_quantity
422465
# The list of price IDs for the product that a subscription can be updated to.
423466
attr_accessor :prices
424467
# The product id.
425468
attr_accessor :product
426469

427-
def initialize(prices: nil, product: nil)
470+
def initialize(adjustable_quantity: nil, prices: nil, product: nil)
471+
@adjustable_quantity = adjustable_quantity
428472
@prices = prices
429473
@product = product
430474
end

lib/stripe/resources/charge.rb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class Alma < Stripe::StripeObject; end
186186
class AmazonPay < Stripe::StripeObject
187187
class Funding < Stripe::StripeObject
188188
class Card < Stripe::StripeObject
189-
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
189+
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
190190
attr_reader :brand
191191
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
192192
attr_reader :country
@@ -448,7 +448,7 @@ class ShippingAddress < Stripe::StripeObject
448448
attr_reader :amount_authorized
449449
# Authorization code on the charge.
450450
attr_reader :authorization_code
451-
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
451+
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
452452
attr_reader :brand
453453
# When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured.
454454
attr_reader :capture_before
@@ -539,7 +539,7 @@ class Wallet < Stripe::StripeObject
539539
end
540540
# The authorized amount
541541
attr_reader :amount_authorized
542-
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
542+
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
543543
attr_reader :brand
544544
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
545545
attr_reader :brand_product
@@ -596,6 +596,8 @@ class Cashapp < Stripe::StripeObject
596596
attr_reader :buyer_id
597597
# A public identifier for buyers using Cash App.
598598
attr_reader :cashtag
599+
# A unique and immutable identifier of payments assigned by Cash App
600+
attr_reader :transaction_id
599601
end
600602

601603
class Crypto < Stripe::StripeObject
@@ -880,7 +882,7 @@ class Promptpay < Stripe::StripeObject
880882
class RevolutPay < Stripe::StripeObject
881883
class Funding < Stripe::StripeObject
882884
class Card < Stripe::StripeObject
883-
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
885+
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
884886
attr_reader :brand
885887
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
886888
attr_reader :country
@@ -1119,7 +1121,7 @@ class Zip < Stripe::StripeObject; end
11191121
end
11201122

11211123
class PresentmentDetails < Stripe::StripeObject
1122-
# Amount intended to be collected by this payment, denominated in presentment_currency.
1124+
# Amount intended to be collected by this payment, denominated in `presentment_currency`.
11231125
attr_reader :presentment_amount
11241126
# Currency presented to the customer during payment.
11251127
attr_reader :presentment_currency

0 commit comments

Comments
 (0)