Skip to content

Commit 89aa0f9

Browse files
Merge upstream and update generated code for v1565
2 parents 14f1d47 + a27751d commit 89aa0f9

File tree

129 files changed

+10284
-5218
lines changed

Some content is hidden

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

129 files changed

+10284
-5218
lines changed

OPENAPI_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1472
1+
v1565

lib/stripe/api_version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
module Stripe
55
module ApiVersion
6-
CURRENT = "2025-01-27.acacia"
6+
CURRENT = "2025-03-31.basil"
77
end
88
end

lib/stripe/resources/account.rb

+19-1
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,8 @@ class Dashboard < Stripe::StripeObject
561561
class Invoices < Stripe::StripeObject
562562
# The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
563563
attr_reader :default_account_tax_ids
564+
# Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
565+
attr_reader :hosted_payment_method_save
564566
end
565567

566568
class Payments < Stripe::StripeObject
@@ -2581,9 +2583,12 @@ def initialize(
25812583
class Invoices < Stripe::RequestParams
25822584
# The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
25832585
attr_accessor :default_account_tax_ids
2586+
# Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
2587+
attr_accessor :hosted_payment_method_save
25842588

2585-
def initialize(default_account_tax_ids: nil)
2589+
def initialize(default_account_tax_ids: nil, hosted_payment_method_save: nil)
25862590
@default_account_tax_ids = default_account_tax_ids
2591+
@hosted_payment_method_save = hosted_payment_method_save
25872592
end
25882593
end
25892594

@@ -4842,6 +4847,15 @@ def initialize(
48424847
end
48434848
end
48444849

4850+
class Invoices < Stripe::RequestParams
4851+
# Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
4852+
attr_accessor :hosted_payment_method_save
4853+
4854+
def initialize(hosted_payment_method_save: nil)
4855+
@hosted_payment_method_save = hosted_payment_method_save
4856+
end
4857+
end
4858+
48454859
class Payments < Stripe::RequestParams
48464860
# The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors).
48474861
attr_accessor :statement_descriptor
@@ -4936,6 +4950,8 @@ def initialize(tos_acceptance: nil)
49364950
attr_accessor :card_issuing
49374951
# Settings specific to card charging on the account.
49384952
attr_accessor :card_payments
4953+
# Settings specific to the account’s use of Invoices.
4954+
attr_accessor :invoices
49394955
# Settings that apply across payment methods for charging on the account.
49404956
attr_accessor :payments
49414957
# Settings specific to the account's payouts.
@@ -4952,6 +4968,7 @@ def initialize(
49524968
capital: nil,
49534969
card_issuing: nil,
49544970
card_payments: nil,
4971+
invoices: nil,
49554972
payments: nil,
49564973
payouts: nil,
49574974
tax_forms: nil,
@@ -4963,6 +4980,7 @@ def initialize(
49634980
@capital = capital
49644981
@card_issuing = card_issuing
49654982
@card_payments = card_payments
4983+
@invoices = invoices
49664984
@payments = payments
49674985
@payouts = payouts
49684986
@tax_forms = tax_forms

lib/stripe/resources/application_fee.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class FeeSource < Stripe::StripeObject
1818
attr_reader :charge
1919
# Payout ID that created this application fee.
2020
attr_reader :payout
21-
# Type of object that created the application fee, either `charge` or `payout`.
21+
# Type of object that created the application fee.
2222
attr_reader :type
2323
end
2424

lib/stripe/resources/bank_account.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Error < Stripe::StripeObject
5656
# Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
5757
attr_reader :pending_verification
5858
end
59-
# The ID of the account that the bank account is associated with.
59+
# The account this bank account belongs to. Only applicable on Accounts (not customers or recipients) This property is only available when returned as an [External Account](/api/external_account_bank_accounts/object) where [controller.is_controller](/api/accounts/object#account_object-controller-is_controller) is `true`.
6060
attr_reader :account
6161
# The name of the person or business that owns the bank account.
6262
attr_reader :account_holder_name

lib/stripe/resources/billing/credit_balance_summary.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ def initialize(id: nil)
5353
@id = id
5454
end
5555
end
56-
# The price type that credit grants can apply to. We currently only support the `metered` price type.
56+
# The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
5757
attr_accessor :price_type
58-
# A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
58+
# A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
5959
attr_accessor :prices
6060

6161
def initialize(price_type: nil, prices: nil)

lib/stripe/resources/billing/credit_grant.rb

+12-6
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ class Price < Stripe::StripeObject
3535
# Unique identifier for the object.
3636
attr_reader :id
3737
end
38-
# The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
38+
# The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `prices`.
3939
attr_reader :price_type
40-
# The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
40+
# The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `price_type`.
4141
attr_reader :prices
4242
end
4343
# Attribute for field scope
@@ -105,9 +105,9 @@ def initialize(id: nil)
105105
@id = id
106106
end
107107
end
108-
# The price type that credit grants can apply to. We currently only support the `metered` price type.
108+
# The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
109109
attr_accessor :price_type
110-
# A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
110+
# A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
111111
attr_accessor :prices
112112

113113
def initialize(price_type: nil, prices: nil)
@@ -124,7 +124,7 @@ def initialize(scope: nil)
124124
end
125125
# Amount of this credit grant.
126126
attr_accessor :amount
127-
# Configuration specifying what this credit grant applies to.
127+
# Configuration specifying what this credit grant applies to. We currently only support `metered` prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
128128
attr_accessor :applicability_config
129129
# The category of this credit grant.
130130
attr_accessor :category
@@ -140,6 +140,8 @@ def initialize(scope: nil)
140140
attr_accessor :metadata
141141
# A descriptive name shown in the Dashboard.
142142
attr_accessor :name
143+
# The desired priority for applying this credit grant. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100.
144+
attr_accessor :priority
143145

144146
def initialize(
145147
amount: nil,
@@ -150,7 +152,8 @@ def initialize(
150152
expand: nil,
151153
expires_at: nil,
152154
metadata: nil,
153-
name: nil
155+
name: nil,
156+
priority: nil
154157
)
155158
@amount = amount
156159
@applicability_config = applicability_config
@@ -161,6 +164,7 @@ def initialize(
161164
@expires_at = expires_at
162165
@metadata = metadata
163166
@name = name
167+
@priority = priority
164168
end
165169
end
166170

@@ -229,6 +233,8 @@ def initialize(expand: nil)
229233
attr_reader :name
230234
# String representing the object's type. Objects of the same type share the same value.
231235
attr_reader :object
236+
# The priority for applying this credit grant. The highest priority is 0 and the lowest is 100.
237+
attr_reader :priority
232238
# ID of the test clock this credit grant belongs to.
233239
attr_reader :test_clock
234240
# Time at which the object was last updated. Measured in seconds since the Unix epoch.

lib/stripe/resources/card.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Networks < Stripe::StripeObject
2121
# 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.
2222
attr_reader :preferred
2323
end
24-
# The account this card belongs to. This attribute will not be in the card object if the card belongs to a customer or recipient instead. This property is only available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
24+
# Attribute for field account
2525
attr_reader :account
2626
# City/District/Suburb/Town/Village.
2727
attr_reader :address_city
@@ -49,7 +49,7 @@ class Networks < Stripe::StripeObject
4949
attr_reader :brand_product
5050
# 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.
5151
attr_reader :country
52-
# Three-letter [ISO code for currency](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. Must be a [supported currency](https://docs.stripe.com/currencies). Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency. This property is only available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
52+
# Three-letter [ISO code for currency](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. Must be a [supported currency](https://docs.stripe.com/currencies). Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency. This property is only available when returned as an [External Account](/api/external_account_cards/object) where [controller.is_controller](/api/accounts/object#account_object-controller-is_controller) is `true`.
5353
attr_reader :currency
5454
# The customer that this card belongs to. This attribute will not be in the card object if the card belongs to an account or recipient instead.
5555
attr_reader :customer

lib/stripe/resources/charge.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ class Zip < Stripe::StripeObject; end
11671167
attr_reader :swish
11681168
# Attribute for field twint
11691169
attr_reader :twint
1170-
# 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`.
1170+
# 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.
11711171
# An additional hash is included on `payment_method_details` with a name matching this value.
11721172
# It contains information specific to the payment method.
11731173
attr_reader :type
@@ -2908,7 +2908,7 @@ def initialize(amount: nil)
29082908
@amount = amount
29092909
end
29102910
end
2911-
# The amount to capture, which must be less than or equal to the original amount. Any additional amount will be automatically refunded.
2911+
# The amount to capture, which must be less than or equal to the original amount.
29122912
attr_accessor :amount
29132913
# An application fee to add on to this charge.
29142914
attr_accessor :application_fee

0 commit comments

Comments
 (0)