Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code for beta #1547

Open
wants to merge 29 commits into
base: beta
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
a27751d
Fixed broken test caused by removing overrides for invoice/upcoming (…
prathmesh-stripe Mar 13, 2025
72c36f9
lock rbi version in jruby (#1549)
helenye-stripe Mar 14, 2025
66e70ee
Merge upstream and update generated code for v1566
stripe-openapi[bot] Mar 17, 2025
131f617
Update generated code for v1572
stripe-openapi[bot] Mar 19, 2025
21b8a0e
Update generated code for v1573
stripe-openapi[bot] Mar 19, 2025
5a7099d
Update generated code for v1574
stripe-openapi[bot] Mar 19, 2025
da53b4a
Update generated code for v1575
stripe-openapi[bot] Mar 19, 2025
a352bc5
Update generated code for v1577
stripe-openapi[bot] Mar 19, 2025
39d9bef
Update generated code for v1578
stripe-openapi[bot] Mar 19, 2025
e85259b
Update generated code for v1579
stripe-openapi[bot] Mar 19, 2025
659fd10
Update generated code for v1580
stripe-openapi[bot] Mar 19, 2025
abcc974
Update generated code for v1581
stripe-openapi[bot] Mar 19, 2025
93c32d3
Update generated code for v1582
stripe-openapi[bot] Mar 19, 2025
834007f
Update generated code for v1583
stripe-openapi[bot] Mar 19, 2025
ca3f126
Update generated code for v1585
stripe-openapi[bot] Mar 19, 2025
b5a617a
Update generated code for v1586
stripe-openapi[bot] Mar 20, 2025
00d8b4c
Update generated code for v1587
stripe-openapi[bot] Mar 20, 2025
322228b
Update generated code for v1588
stripe-openapi[bot] Mar 20, 2025
66b64e5
Update generated code for v1590
stripe-openapi[bot] Mar 20, 2025
138f042
Update generated code for v1591
stripe-openapi[bot] Mar 20, 2025
07568dc
Update generated code for v1593
stripe-openapi[bot] Mar 20, 2025
dda5e02
Update generated code for v1594
stripe-openapi[bot] Mar 20, 2025
cda307e
Update generated code for v1595
stripe-openapi[bot] Mar 20, 2025
a011f1c
Update generated code for v1597
stripe-openapi[bot] Mar 20, 2025
3b7530b
Update generated code for v1598
stripe-openapi[bot] Mar 20, 2025
30b654e
Update generated code for v1599
stripe-openapi[bot] Mar 20, 2025
9872283
Update generated code for v1602
stripe-openapi[bot] Mar 20, 2025
f84dedf
Update generated code for v1604
stripe-openapi[bot] Mar 21, 2025
06d611d
Update generated code for v1605
stripe-openapi[bot] Mar 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1505
v1605
2 changes: 1 addition & 1 deletion lib/stripe/api_version.rb
Original file line number Diff line number Diff line change
@@ -3,6 +3,6 @@

module Stripe
module ApiVersion
CURRENT = "2025-02-24.acacia"
CURRENT = "2025-03-31.basil"
end
end
2 changes: 0 additions & 2 deletions lib/stripe/object_types.rb
Original file line number Diff line number Diff line change
@@ -172,8 +172,6 @@ def self.object_names_to_classes
Treasury::ReceivedDebit.object_name => Treasury::ReceivedDebit,
Treasury::Transaction.object_name => Treasury::Transaction,
Treasury::TransactionEntry.object_name => Treasury::TransactionEntry,
UsageRecord.object_name => UsageRecord,
UsageRecordSummary.object_name => UsageRecordSummary,
WebhookEndpoint.object_name => WebhookEndpoint,
# object classes: The end of the section generated from our OpenAPI spec
}
2 changes: 0 additions & 2 deletions lib/stripe/resources.rb
Original file line number Diff line number Diff line change
@@ -160,8 +160,6 @@
require "stripe/resources/treasury/received_debit"
require "stripe/resources/treasury/transaction"
require "stripe/resources/treasury/transaction_entry"
require "stripe/resources/usage_record"
require "stripe/resources/usage_record_summary"
require "stripe/resources/v2/billing/meter_event"
require "stripe/resources/v2/billing/meter_event_adjustment"
require "stripe/resources/v2/billing/meter_event_session"
82 changes: 78 additions & 4 deletions lib/stripe/resources/account.rb
Original file line number Diff line number Diff line change
@@ -110,6 +110,8 @@ class Capabilities < Stripe::StripeObject
attr_reader :bancontact_payments
# The status of the customer_balance payments capability of the account, or whether the account can directly process customer_balance charges.
attr_reader :bank_transfer_payments
# The status of the Billie capability of the account, or whether the account can directly process Billie payments.
attr_reader :billie_payments
# The status of the blik payments capability of the account, or whether the account can directly process blik charges.
attr_reader :blik_payments
# The status of the boleto payments capability of the account, or whether the account can directly process boleto charges.
@@ -192,6 +194,8 @@ class Capabilities < Stripe::StripeObject
attr_reader :revolut_pay_payments
# The status of the SamsungPay capability of the account, or whether the account can directly process SamsungPay payments.
attr_reader :samsung_pay_payments
# The status of the Satispay capability of the account, or whether the account can directly process Satispay payments.
attr_reader :satispay_payments
# The status of the SEPA customer_balance payments (EUR currency) capability of the account, or whether the account can directly process SEPA customer_balance charges.
attr_reader :sepa_bank_transfer_payments
# The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
@@ -334,7 +338,7 @@ class Document < Stripe::StripeObject
attr_reader :owners_provided
# This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
attr_reader :ownership_declaration
# Attribute for field ownership_exemption_reason
# This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
attr_reader :ownership_exemption_reason
# The company's phone number (used for verification).
attr_reader :phone
@@ -561,6 +565,8 @@ class Dashboard < Stripe::StripeObject
class Invoices < Stripe::StripeObject
# The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
attr_reader :default_account_tax_ids
# Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
attr_reader :hosted_payment_method_save
end

class Payments < Stripe::StripeObject
@@ -903,6 +909,15 @@ def initialize(requested: nil)
end
end

class BilliePayments < Stripe::RequestParams
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
attr_accessor :requested

def initialize(requested: nil)
@requested = requested
end
end

class BlikPayments < Stripe::RequestParams
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
attr_accessor :requested
@@ -1272,6 +1287,15 @@ def initialize(requested: nil)
end
end

class SatispayPayments < Stripe::RequestParams
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
attr_accessor :requested

def initialize(requested: nil)
@requested = requested
end
end

class SepaBankTransferPayments < Stripe::RequestParams
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
attr_accessor :requested
@@ -1435,6 +1459,8 @@ def initialize(requested: nil)
attr_accessor :bancontact_payments
# The bank_transfer_payments capability.
attr_accessor :bank_transfer_payments
# The billie_payments capability.
attr_accessor :billie_payments
# The blik_payments capability.
attr_accessor :blik_payments
# The boleto_payments capability.
@@ -1517,6 +1543,8 @@ def initialize(requested: nil)
attr_accessor :revolut_pay_payments
# The samsung_pay_payments capability.
attr_accessor :samsung_pay_payments
# The satispay_payments capability.
attr_accessor :satispay_payments
# The sepa_bank_transfer_payments capability.
attr_accessor :sepa_bank_transfer_payments
# The sepa_debit_payments capability.
@@ -1561,6 +1589,7 @@ def initialize(
bacs_debit_payments: nil,
bancontact_payments: nil,
bank_transfer_payments: nil,
billie_payments: nil,
blik_payments: nil,
boleto_payments: nil,
card_issuing: nil,
@@ -1602,6 +1631,7 @@ def initialize(
rechnung_payments: nil,
revolut_pay_payments: nil,
samsung_pay_payments: nil,
satispay_payments: nil,
sepa_bank_transfer_payments: nil,
sepa_debit_payments: nil,
shopeepay_payments: nil,
@@ -1629,6 +1659,7 @@ def initialize(
@bacs_debit_payments = bacs_debit_payments
@bancontact_payments = bancontact_payments
@bank_transfer_payments = bank_transfer_payments
@billie_payments = billie_payments
@blik_payments = blik_payments
@boleto_payments = boleto_payments
@card_issuing = card_issuing
@@ -1670,6 +1701,7 @@ def initialize(
@rechnung_payments = rechnung_payments
@revolut_pay_payments = revolut_pay_payments
@samsung_pay_payments = samsung_pay_payments
@satispay_payments = satispay_payments
@sepa_bank_transfer_payments = sepa_bank_transfer_payments
@sepa_debit_payments = sepa_debit_payments
@shopeepay_payments = shopeepay_payments
@@ -1948,7 +1980,7 @@ def initialize(document: nil)
attr_accessor :owners_provided
# This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
attr_accessor :ownership_declaration
# Attribute for param field ownership_exemption_reason
# This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
attr_accessor :ownership_exemption_reason
# The company's phone number (used for verification).
attr_accessor :phone
@@ -2581,9 +2613,12 @@ def initialize(
class Invoices < Stripe::RequestParams
# The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
attr_accessor :default_account_tax_ids
# Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
attr_accessor :hosted_payment_method_save

def initialize(default_account_tax_ids: nil)
def initialize(default_account_tax_ids: nil, hosted_payment_method_save: nil)
@default_account_tax_ids = default_account_tax_ids
@hosted_payment_method_save = hosted_payment_method_save
end
end

@@ -3086,6 +3121,15 @@ def initialize(requested: nil)
end
end

class BilliePayments < Stripe::RequestParams
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
attr_accessor :requested

def initialize(requested: nil)
@requested = requested
end
end

class BlikPayments < Stripe::RequestParams
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
attr_accessor :requested
@@ -3455,6 +3499,15 @@ def initialize(requested: nil)
end
end

class SatispayPayments < Stripe::RequestParams
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
attr_accessor :requested

def initialize(requested: nil)
@requested = requested
end
end

class SepaBankTransferPayments < Stripe::RequestParams
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
attr_accessor :requested
@@ -3618,6 +3671,8 @@ def initialize(requested: nil)
attr_accessor :bancontact_payments
# The bank_transfer_payments capability.
attr_accessor :bank_transfer_payments
# The billie_payments capability.
attr_accessor :billie_payments
# The blik_payments capability.
attr_accessor :blik_payments
# The boleto_payments capability.
@@ -3700,6 +3755,8 @@ def initialize(requested: nil)
attr_accessor :revolut_pay_payments
# The samsung_pay_payments capability.
attr_accessor :samsung_pay_payments
# The satispay_payments capability.
attr_accessor :satispay_payments
# The sepa_bank_transfer_payments capability.
attr_accessor :sepa_bank_transfer_payments
# The sepa_debit_payments capability.
@@ -3744,6 +3801,7 @@ def initialize(
bacs_debit_payments: nil,
bancontact_payments: nil,
bank_transfer_payments: nil,
billie_payments: nil,
blik_payments: nil,
boleto_payments: nil,
card_issuing: nil,
@@ -3785,6 +3843,7 @@ def initialize(
rechnung_payments: nil,
revolut_pay_payments: nil,
samsung_pay_payments: nil,
satispay_payments: nil,
sepa_bank_transfer_payments: nil,
sepa_debit_payments: nil,
shopeepay_payments: nil,
@@ -3812,6 +3871,7 @@ def initialize(
@bacs_debit_payments = bacs_debit_payments
@bancontact_payments = bancontact_payments
@bank_transfer_payments = bank_transfer_payments
@billie_payments = billie_payments
@blik_payments = blik_payments
@boleto_payments = boleto_payments
@card_issuing = card_issuing
@@ -3853,6 +3913,7 @@ def initialize(
@rechnung_payments = rechnung_payments
@revolut_pay_payments = revolut_pay_payments
@samsung_pay_payments = samsung_pay_payments
@satispay_payments = satispay_payments
@sepa_bank_transfer_payments = sepa_bank_transfer_payments
@sepa_debit_payments = sepa_debit_payments
@shopeepay_payments = shopeepay_payments
@@ -4131,7 +4192,7 @@ def initialize(document: nil)
attr_accessor :owners_provided
# This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
attr_accessor :ownership_declaration
# Attribute for param field ownership_exemption_reason
# This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
attr_accessor :ownership_exemption_reason
# The company's phone number (used for verification).
attr_accessor :phone
@@ -4842,6 +4903,15 @@ def initialize(
end
end

class Invoices < Stripe::RequestParams
# Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
attr_accessor :hosted_payment_method_save

def initialize(hosted_payment_method_save: nil)
@hosted_payment_method_save = hosted_payment_method_save
end
end

class Payments < Stripe::RequestParams
# 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).
attr_accessor :statement_descriptor
@@ -4936,6 +5006,8 @@ def initialize(tos_acceptance: nil)
attr_accessor :card_issuing
# Settings specific to card charging on the account.
attr_accessor :card_payments
# Settings specific to the account’s use of Invoices.
attr_accessor :invoices
# Settings that apply across payment methods for charging on the account.
attr_accessor :payments
# Settings specific to the account's payouts.
@@ -4952,6 +5024,7 @@ def initialize(
capital: nil,
card_issuing: nil,
card_payments: nil,
invoices: nil,
payments: nil,
payouts: nil,
tax_forms: nil,
@@ -4963,6 +5036,7 @@ def initialize(
@capital = capital
@card_issuing = card_issuing
@card_payments = card_payments
@invoices = invoices
@payments = payments
@payouts = payouts
@tax_forms = tax_forms
2 changes: 1 addition & 1 deletion lib/stripe/resources/application_fee.rb
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ class FeeSource < Stripe::StripeObject
attr_reader :charge
# Payout ID that created this application fee.
attr_reader :payout
# Type of object that created the application fee, either `charge` or `payout`.
# Type of object that created the application fee.
attr_reader :type
end

2 changes: 1 addition & 1 deletion lib/stripe/resources/bank_account.rb
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ class Error < Stripe::StripeObject
# 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.
attr_reader :pending_verification
end
# The ID of the account that the bank account is associated with.
# 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`.
attr_reader :account
# The name of the person or business that owns the bank account.
attr_reader :account_holder_name
4 changes: 2 additions & 2 deletions lib/stripe/resources/billing/credit_balance_summary.rb
Original file line number Diff line number Diff line change
@@ -53,9 +53,9 @@ def initialize(id: nil)
@id = id
end
end
# The price type that credit grants can apply to. We currently only support the `metered` price type.
# The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
attr_accessor :price_type
# A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
# 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`.
attr_accessor :prices

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