From 13766d190ceaa024d09910a0a8faa6103b8c0f9b Mon Sep 17 00:00:00 2001
From: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com>
Date: Mon, 11 Aug 2025 11:17:44 -0700
Subject: [PATCH] Remove double `T.nilable` before every emptyable field in
update methods (#1633)
---
rbi/stripe/resources/account.rbi | 102 +-
rbi/stripe/resources/billing/credit_grant.rbi | 4 +-
.../billing_portal/configuration.rbi | 56 +-
rbi/stripe/resources/charge.rbi | 12 +-
rbi/stripe/resources/checkout/session.rbi | 50 +-
rbi/stripe/resources/climate/order.rbi | 8 +-
rbi/stripe/resources/confirmation_token.rbi | 14 +-
rbi/stripe/resources/coupon.rbi | 8 +-
rbi/stripe/resources/credit_note.rbi | 18 +-
rbi/stripe/resources/customer.rbi | 60 +-
rbi/stripe/resources/dispute.rbi | 64 +-
rbi/stripe/resources/entitlements/feature.rbi | 4 +-
rbi/stripe/resources/file.rbi | 4 +-
rbi/stripe/resources/file_link.rbi | 10 +-
.../identity/verification_session.rbi | 8 +-
rbi/stripe/resources/invoice.rbi | 224 ++---
rbi/stripe/resources/invoice_item.rbi | 18 +-
rbi/stripe/resources/invoice_line_item.rbi | 10 +-
.../resources/issuing/authorization.rbi | 12 +-
rbi/stripe/resources/issuing/card.rbi | 8 +-
rbi/stripe/resources/issuing/cardholder.rbi | 8 +-
rbi/stripe/resources/issuing/dispute.rbi | 232 ++---
.../issuing/personalization_design.rbi | 30 +-
rbi/stripe/resources/issuing/transaction.rbi | 4 +-
rbi/stripe/resources/payment_intent.rbi | 932 +++++++++---------
rbi/stripe/resources/payment_link.rbi | 82 +-
rbi/stripe/resources/payment_method.rbi | 28 +-
.../payment_method_configuration.rbi | 4 +-
rbi/stripe/resources/payout.rbi | 4 +-
rbi/stripe/resources/plan.rbi | 8 +-
rbi/stripe/resources/price.rbi | 6 +-
rbi/stripe/resources/product.rbi | 20 +-
rbi/stripe/resources/promotion_code.rbi | 4 +-
rbi/stripe/resources/quote.rbi | 74 +-
rbi/stripe/resources/refund.rbi | 8 +-
rbi/stripe/resources/setup_intent.rbi | 106 +-
rbi/stripe/resources/shipping_rate.rbi | 4 +-
rbi/stripe/resources/source.rbi | 12 +-
rbi/stripe/resources/subscription.rbi | 134 ++-
rbi/stripe/resources/subscription_item.rbi | 18 +-
.../resources/subscription_schedule.rbi | 88 +-
rbi/stripe/resources/tax/calculation.rbi | 24 +-
rbi/stripe/resources/tax/registration.rbi | 4 +-
rbi/stripe/resources/tax_rate.rbi | 4 +-
.../resources/terminal/configuration.rbi | 48 +-
rbi/stripe/resources/terminal/location.rbi | 12 +-
rbi/stripe/resources/terminal/reader.rbi | 10 +-
rbi/stripe/resources/token.rbi | 38 +-
rbi/stripe/resources/topup.rbi | 8 +-
rbi/stripe/resources/transfer.rbi | 4 +-
.../resources/treasury/financial_account.rbi | 8 +-
.../resources/treasury/outbound_payment.rbi | 14 +-
.../resources/treasury/outbound_transfer.rbi | 4 +-
rbi/stripe/resources/webhook_endpoint.rbi | 12 +-
.../account_external_account_service.rbi | 6 +-
.../services/account_person_service.rbi | 36 +-
rbi/stripe/services/account_service.rbi | 98 +-
.../application_fee_refund_service.rbi | 4 +-
.../services/billing/credit_grant_service.rbi | 4 +-
.../billing_portal/configuration_service.rbi | 56 +-
rbi/stripe/services/charge_service.rbi | 12 +-
.../services/checkout/session_service.rbi | 50 +-
rbi/stripe/services/climate/order_service.rbi | 8 +-
rbi/stripe/services/coupon_service.rbi | 8 +-
.../credit_note_preview_lines_service.rbi | 6 +-
rbi/stripe/services/credit_note_service.rbi | 12 +-
.../customer_balance_transaction_service.rbi | 8 +-
.../customer_payment_source_service.rbi | 4 +-
rbi/stripe/services/customer_service.rbi | 60 +-
rbi/stripe/services/dispute_service.rbi | 64 +-
.../services/entitlements/feature_service.rbi | 4 +-
rbi/stripe/services/file_link_service.rbi | 10 +-
rbi/stripe/services/file_service.rbi | 4 +-
.../identity/verification_session_service.rbi | 8 +-
rbi/stripe/services/invoice_item_service.rbi | 18 +-
.../services/invoice_line_item_service.rbi | 10 +-
rbi/stripe/services/invoice_service.rbi | 214 ++--
.../issuing/authorization_service.rbi | 12 +-
rbi/stripe/services/issuing/card_service.rbi | 8 +-
.../services/issuing/cardholder_service.rbi | 8 +-
.../services/issuing/dispute_service.rbi | 232 ++---
.../personalization_design_service.rbi | 30 +-
.../services/issuing/transaction_service.rbi | 4 +-
.../services/payment_intent_service.rbi | 924 +++++++++--------
rbi/stripe/services/payment_link_service.rbi | 80 +-
.../payment_method_configuration_service.rbi | 4 +-
.../services/payment_method_service.rbi | 28 +-
rbi/stripe/services/payout_service.rbi | 4 +-
rbi/stripe/services/plan_service.rbi | 8 +-
rbi/stripe/services/price_service.rbi | 6 +-
rbi/stripe/services/product_service.rbi | 18 +-
.../services/promotion_code_service.rbi | 4 +-
rbi/stripe/services/quote_service.rbi | 70 +-
rbi/stripe/services/refund_service.rbi | 8 +-
rbi/stripe/services/setup_intent_service.rbi | 102 +-
rbi/stripe/services/shipping_rate_service.rbi | 4 +-
rbi/stripe/services/source_service.rbi | 12 +-
.../services/subscription_item_service.rbi | 18 +-
.../subscription_schedule_service.rbi | 88 +-
rbi/stripe/services/subscription_service.rbi | 132 ++-
.../services/tax/calculation_service.rbi | 24 +-
.../services/tax/registration_service.rbi | 4 +-
rbi/stripe/services/tax_rate_service.rbi | 4 +-
.../terminal/configuration_service.rbi | 48 +-
.../services/terminal/location_service.rbi | 12 +-
.../services/terminal/reader_service.rbi | 10 +-
.../confirmation_token_service.rbi | 14 +-
rbi/stripe/services/token_service.rbi | 38 +-
rbi/stripe/services/topup_service.rbi | 8 +-
.../services/transfer_reversal_service.rbi | 8 +-
rbi/stripe/services/transfer_service.rbi | 4 +-
.../treasury/financial_account_service.rbi | 8 +-
.../treasury/outbound_payment_service.rbi | 14 +-
.../treasury/outbound_transfer_service.rbi | 4 +-
.../services/webhook_endpoint_service.rbi | 12 +-
115 files changed, 2649 insertions(+), 2761 deletions(-)
diff --git a/rbi/stripe/resources/account.rbi b/rbi/stripe/resources/account.rbi
index 9e9558d40..7f17d9d6d 100644
--- a/rbi/stripe/resources/account.rbi
+++ b/rbi/stripe/resources/account.rbi
@@ -977,13 +977,13 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :support_phone
# A publicly available website for handling support issues.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :support_url
# The business's publicly available website.
sig { returns(T.nilable(String)) }
attr_accessor :url
sig {
- params(annual_revenue: T.nilable(::Stripe::Account::UpdateParams::BusinessProfile::AnnualRevenue), estimated_worker_count: T.nilable(Integer), mcc: T.nilable(String), minority_owned_business_designation: T.nilable(T::Array[String]), monthly_estimated_revenue: T.nilable(::Stripe::Account::UpdateParams::BusinessProfile::MonthlyEstimatedRevenue), name: T.nilable(String), product_description: T.nilable(String), support_address: T.nilable(::Stripe::Account::UpdateParams::BusinessProfile::SupportAddress), support_email: T.nilable(String), support_phone: T.nilable(String), support_url: T.nilable(T.nilable(String)), url: T.nilable(String)).void
+ params(annual_revenue: T.nilable(::Stripe::Account::UpdateParams::BusinessProfile::AnnualRevenue), estimated_worker_count: T.nilable(Integer), mcc: T.nilable(String), minority_owned_business_designation: T.nilable(T::Array[String]), monthly_estimated_revenue: T.nilable(::Stripe::Account::UpdateParams::BusinessProfile::MonthlyEstimatedRevenue), name: T.nilable(String), product_description: T.nilable(String), support_address: T.nilable(::Stripe::Account::UpdateParams::BusinessProfile::SupportAddress), support_email: T.nilable(String), support_phone: T.nilable(String), support_url: T.nilable(String), url: T.nilable(String)).void
}
def initialize(
annual_revenue: nil,
@@ -1980,21 +1980,21 @@ module Stripe
sig { returns(T.nilable(::Stripe::Account::UpdateParams::Company::OwnershipDeclaration)) }
attr_accessor :ownership_declaration
# 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.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :ownership_exemption_reason
# The company's phone number (used for verification).
sig { returns(T.nilable(String)) }
attr_accessor :phone
# Attribute for param field registration_date
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Account::UpdateParams::Company::RegistrationDate))))
+ returns(T.nilable(T.any(String, ::Stripe::Account::UpdateParams::Company::RegistrationDate)))
}
attr_accessor :registration_date
# The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
sig { returns(T.nilable(String)) }
attr_accessor :registration_number
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :structure
# The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
sig { returns(T.nilable(String)) }
@@ -2009,7 +2009,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Account::UpdateParams::Company::Verification)) }
attr_accessor :verification
sig {
- params(address: T.nilable(::Stripe::Account::UpdateParams::Company::Address), address_kana: T.nilable(::Stripe::Account::UpdateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::Account::UpdateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::Account::UpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::Account::UpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::Account::UpdateParams::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::Account::UpdateParams::Company::Verification)).void
+ params(address: T.nilable(::Stripe::Account::UpdateParams::Company::Address), address_kana: T.nilable(::Stripe::Account::UpdateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::Account::UpdateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::Account::UpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::Account::UpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, ::Stripe::Account::UpdateParams::Company::RegistrationDate)), registration_number: T.nilable(String), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::Account::UpdateParams::Company::Verification)).void
}
def initialize(
address: nil,
@@ -2156,9 +2156,9 @@ module Stripe
end
class Groups < Stripe::RequestParams
# The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :payments_pricing
- sig { params(payments_pricing: T.nilable(T.nilable(String))).void }
+ sig { params(payments_pricing: T.nilable(String)).void }
def initialize(payments_pricing: nil); end
end
class Individual < Stripe::RequestParams
@@ -2318,13 +2318,13 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :owner
# The percent owned by the person of the account's legal entity.
- sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
+ sig { returns(T.nilable(T.any(String, Float))) }
attr_accessor :percent_ownership
# The person's title (e.g., CEO, Support Engineer).
sig { returns(T.nilable(String)) }
attr_accessor :title
sig {
- params(director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.nilable(T.any(String, Float))), title: T.nilable(String)).void
+ params(director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.any(String, Float)), title: T.nilable(String)).void
}
def initialize(
director: nil,
@@ -2380,9 +2380,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Account::UpdateParams::Individual::AddressKanji)) }
attr_accessor :address_kanji
# The individual's date of birth.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Account::UpdateParams::Individual::Dob))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::Account::UpdateParams::Individual::Dob))) }
attr_accessor :dob
# The individual's email address.
sig { returns(T.nilable(String)) }
@@ -2397,7 +2395,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :first_name_kanji
# A list of alternate names or aliases that the individual is known by.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :full_name_aliases
# The individual's gender
sig { returns(T.nilable(String)) }
@@ -2421,7 +2419,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :maiden_name
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The individual's phone number.
sig { returns(T.nilable(String)) }
@@ -2442,7 +2440,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Account::UpdateParams::Individual::Verification)) }
attr_accessor :verification
sig {
- params(address: T.nilable(::Stripe::Account::UpdateParams::Individual::Address), address_kana: T.nilable(::Stripe::Account::UpdateParams::Individual::AddressKana), address_kanji: T.nilable(::Stripe::Account::UpdateParams::Individual::AddressKanji), dob: T.nilable(T.nilable(T.any(String, ::Stripe::Account::UpdateParams::Individual::Dob))), email: T.nilable(String), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.nilable(T.any(String, T::Array[String]))), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::Account::UpdateParams::Individual::RegisteredAddress), relationship: T.nilable(::Stripe::Account::UpdateParams::Individual::Relationship), ssn_last_4: T.nilable(String), verification: T.nilable(::Stripe::Account::UpdateParams::Individual::Verification)).void
+ params(address: T.nilable(::Stripe::Account::UpdateParams::Individual::Address), address_kana: T.nilable(::Stripe::Account::UpdateParams::Individual::AddressKana), address_kanji: T.nilable(::Stripe::Account::UpdateParams::Individual::AddressKanji), dob: T.nilable(T.any(String, ::Stripe::Account::UpdateParams::Individual::Dob)), email: T.nilable(String), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.any(String, T::Array[String])), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::Account::UpdateParams::Individual::RegisteredAddress), relationship: T.nilable(::Stripe::Account::UpdateParams::Individual::Relationship), ssn_last_4: T.nilable(String), verification: T.nilable(::Stripe::Account::UpdateParams::Individual::Verification)).void
}
def initialize(
address: nil,
@@ -2505,10 +2503,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :ip
# The user agent of the browser from which the account representative accepted the service agreement.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :user_agent
sig {
- params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
}
def initialize(date: nil, ip: nil, user_agent: nil); end
end
@@ -2544,13 +2542,13 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_prefix
# The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kana` specified on the charge. `statement_descriptor_prefix_kana` is useful for maximizing descriptor space for the dynamic portion.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_prefix_kana
# The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kanji` specified on the charge. `statement_descriptor_prefix_kanji` is useful for maximizing descriptor space for the dynamic portion.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_prefix_kanji
sig {
- params(decline_on: T.nilable(::Stripe::Account::UpdateParams::Settings::CardPayments::DeclineOn), statement_descriptor_prefix: T.nilable(String), statement_descriptor_prefix_kana: T.nilable(T.nilable(String)), statement_descriptor_prefix_kanji: T.nilable(T.nilable(String))).void
+ params(decline_on: T.nilable(::Stripe::Account::UpdateParams::Settings::CardPayments::DeclineOn), statement_descriptor_prefix: T.nilable(String), statement_descriptor_prefix_kana: T.nilable(String), statement_descriptor_prefix_kanji: T.nilable(String)).void
}
def initialize(
decline_on: nil,
@@ -2561,13 +2559,13 @@ module Stripe
end
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.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
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.
sig { returns(T.nilable(String)) }
attr_accessor :hosted_payment_method_save
sig {
- params(default_account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), hosted_payment_method_save: T.nilable(String)).void
+ params(default_account_tax_ids: T.nilable(T.any(String, T::Array[String])), hosted_payment_method_save: T.nilable(String)).void
}
def initialize(default_account_tax_ids: nil, hosted_payment_method_save: nil); end
end
@@ -2649,10 +2647,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :ip
# The user agent of the browser from which the account representative accepted the service agreement.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :user_agent
sig {
- params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
}
def initialize(date: nil, ip: nil, user_agent: nil); end
end
@@ -2758,7 +2756,7 @@ module Stripe
attr_accessor :expand
# A card or bank account to attach to the account for receiving [payouts](/connect/bank-debit-card-payouts) (you won’t be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](/js), or a dictionary, as documented in the `external_account` parameter for [bank account](/api#account_create_bank_account) creation.
By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](/api#account_create_bank_account) or [card creation](/api#account_create_card) APIs. After you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T.any(String, ::Stripe::Account::UpdateParams::BankAccount, ::Stripe::Account::UpdateParams::Card, ::Stripe::Account::UpdateParams::CardToken)))))
+ returns(T.nilable(T.any(String, T.any(String, ::Stripe::Account::UpdateParams::BankAccount, ::Stripe::Account::UpdateParams::Card, ::Stripe::Account::UpdateParams::CardToken))))
}
attr_accessor :external_account
# A hash of account group type to tokens. These are account groups this account should be added to.
@@ -2768,7 +2766,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Account::UpdateParams::Individual)) }
attr_accessor :individual
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Options for customizing how the account functions within Stripe.
sig { returns(T.nilable(::Stripe::Account::UpdateParams::Settings)) }
@@ -2777,7 +2775,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Account::UpdateParams::TosAcceptance)) }
attr_accessor :tos_acceptance
sig {
- params(account_token: T.nilable(String), business_profile: T.nilable(::Stripe::Account::UpdateParams::BusinessProfile), business_type: T.nilable(String), capabilities: T.nilable(::Stripe::Account::UpdateParams::Capabilities), company: T.nilable(::Stripe::Account::UpdateParams::Company), default_currency: T.nilable(String), documents: T.nilable(::Stripe::Account::UpdateParams::Documents), email: T.nilable(String), expand: T.nilable(T::Array[String]), external_account: T.nilable(T.nilable(T.any(String, T.any(String, ::Stripe::Account::UpdateParams::BankAccount, ::Stripe::Account::UpdateParams::Card, ::Stripe::Account::UpdateParams::CardToken)))), groups: T.nilable(::Stripe::Account::UpdateParams::Groups), individual: T.nilable(::Stripe::Account::UpdateParams::Individual), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), settings: T.nilable(::Stripe::Account::UpdateParams::Settings), tos_acceptance: T.nilable(::Stripe::Account::UpdateParams::TosAcceptance)).void
+ params(account_token: T.nilable(String), business_profile: T.nilable(::Stripe::Account::UpdateParams::BusinessProfile), business_type: T.nilable(String), capabilities: T.nilable(::Stripe::Account::UpdateParams::Capabilities), company: T.nilable(::Stripe::Account::UpdateParams::Company), default_currency: T.nilable(String), documents: T.nilable(::Stripe::Account::UpdateParams::Documents), email: T.nilable(String), expand: T.nilable(T::Array[String]), external_account: T.nilable(T.any(String, T.any(String, ::Stripe::Account::UpdateParams::BankAccount, ::Stripe::Account::UpdateParams::Card, ::Stripe::Account::UpdateParams::CardToken))), groups: T.nilable(::Stripe::Account::UpdateParams::Groups), individual: T.nilable(::Stripe::Account::UpdateParams::Individual), metadata: T.nilable(T.any(String, T::Hash[String, String])), settings: T.nilable(::Stripe::Account::UpdateParams::Settings), tos_acceptance: T.nilable(::Stripe::Account::UpdateParams::TosAcceptance)).void
}
def initialize(
account_token: nil,
@@ -2966,13 +2964,13 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :support_phone
# A publicly available website for handling support issues.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :support_url
# The business's publicly available website.
sig { returns(T.nilable(String)) }
attr_accessor :url
sig {
- params(annual_revenue: T.nilable(::Stripe::Account::CreateParams::BusinessProfile::AnnualRevenue), estimated_worker_count: T.nilable(Integer), mcc: T.nilable(String), minority_owned_business_designation: T.nilable(T::Array[String]), monthly_estimated_revenue: T.nilable(::Stripe::Account::CreateParams::BusinessProfile::MonthlyEstimatedRevenue), name: T.nilable(String), product_description: T.nilable(String), support_address: T.nilable(::Stripe::Account::CreateParams::BusinessProfile::SupportAddress), support_email: T.nilable(String), support_phone: T.nilable(String), support_url: T.nilable(T.nilable(String)), url: T.nilable(String)).void
+ params(annual_revenue: T.nilable(::Stripe::Account::CreateParams::BusinessProfile::AnnualRevenue), estimated_worker_count: T.nilable(Integer), mcc: T.nilable(String), minority_owned_business_designation: T.nilable(T::Array[String]), monthly_estimated_revenue: T.nilable(::Stripe::Account::CreateParams::BusinessProfile::MonthlyEstimatedRevenue), name: T.nilable(String), product_description: T.nilable(String), support_address: T.nilable(::Stripe::Account::CreateParams::BusinessProfile::SupportAddress), support_email: T.nilable(String), support_phone: T.nilable(String), support_url: T.nilable(String), url: T.nilable(String)).void
}
def initialize(
annual_revenue: nil,
@@ -3969,21 +3967,21 @@ module Stripe
sig { returns(T.nilable(::Stripe::Account::CreateParams::Company::OwnershipDeclaration)) }
attr_accessor :ownership_declaration
# 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.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :ownership_exemption_reason
# The company's phone number (used for verification).
sig { returns(T.nilable(String)) }
attr_accessor :phone
# When the business was incorporated or registered.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Account::CreateParams::Company::RegistrationDate))))
+ returns(T.nilable(T.any(String, ::Stripe::Account::CreateParams::Company::RegistrationDate)))
}
attr_accessor :registration_date
# The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
sig { returns(T.nilable(String)) }
attr_accessor :registration_number
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :structure
# The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
sig { returns(T.nilable(String)) }
@@ -3998,7 +3996,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Account::CreateParams::Company::Verification)) }
attr_accessor :verification
sig {
- params(address: T.nilable(::Stripe::Account::CreateParams::Company::Address), address_kana: T.nilable(::Stripe::Account::CreateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::Account::CreateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::Account::CreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::Account::CreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::Account::CreateParams::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::Account::CreateParams::Company::Verification)).void
+ params(address: T.nilable(::Stripe::Account::CreateParams::Company::Address), address_kana: T.nilable(::Stripe::Account::CreateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::Account::CreateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::Account::CreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::Account::CreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, ::Stripe::Account::CreateParams::Company::RegistrationDate)), registration_number: T.nilable(String), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::Account::CreateParams::Company::Verification)).void
}
def initialize(
address: nil,
@@ -4189,9 +4187,9 @@ module Stripe
end
class Groups < Stripe::RequestParams
# The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :payments_pricing
- sig { params(payments_pricing: T.nilable(T.nilable(String))).void }
+ sig { params(payments_pricing: T.nilable(String)).void }
def initialize(payments_pricing: nil); end
end
class Individual < Stripe::RequestParams
@@ -4351,13 +4349,13 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :owner
# The percent owned by the person of the account's legal entity.
- sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
+ sig { returns(T.nilable(T.any(String, Float))) }
attr_accessor :percent_ownership
# The person's title (e.g., CEO, Support Engineer).
sig { returns(T.nilable(String)) }
attr_accessor :title
sig {
- params(director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.nilable(T.any(String, Float))), title: T.nilable(String)).void
+ params(director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.any(String, Float)), title: T.nilable(String)).void
}
def initialize(
director: nil,
@@ -4413,9 +4411,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Account::CreateParams::Individual::AddressKanji)) }
attr_accessor :address_kanji
# The individual's date of birth.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Account::CreateParams::Individual::Dob))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::Account::CreateParams::Individual::Dob))) }
attr_accessor :dob
# The individual's email address.
sig { returns(T.nilable(String)) }
@@ -4430,7 +4426,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :first_name_kanji
# A list of alternate names or aliases that the individual is known by.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :full_name_aliases
# The individual's gender
sig { returns(T.nilable(String)) }
@@ -4454,7 +4450,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :maiden_name
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The individual's phone number.
sig { returns(T.nilable(String)) }
@@ -4475,7 +4471,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Account::CreateParams::Individual::Verification)) }
attr_accessor :verification
sig {
- params(address: T.nilable(::Stripe::Account::CreateParams::Individual::Address), address_kana: T.nilable(::Stripe::Account::CreateParams::Individual::AddressKana), address_kanji: T.nilable(::Stripe::Account::CreateParams::Individual::AddressKanji), dob: T.nilable(T.nilable(T.any(String, ::Stripe::Account::CreateParams::Individual::Dob))), email: T.nilable(String), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.nilable(T.any(String, T::Array[String]))), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::Account::CreateParams::Individual::RegisteredAddress), relationship: T.nilable(::Stripe::Account::CreateParams::Individual::Relationship), ssn_last_4: T.nilable(String), verification: T.nilable(::Stripe::Account::CreateParams::Individual::Verification)).void
+ params(address: T.nilable(::Stripe::Account::CreateParams::Individual::Address), address_kana: T.nilable(::Stripe::Account::CreateParams::Individual::AddressKana), address_kanji: T.nilable(::Stripe::Account::CreateParams::Individual::AddressKanji), dob: T.nilable(T.any(String, ::Stripe::Account::CreateParams::Individual::Dob)), email: T.nilable(String), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.any(String, T::Array[String])), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::Account::CreateParams::Individual::RegisteredAddress), relationship: T.nilable(::Stripe::Account::CreateParams::Individual::Relationship), ssn_last_4: T.nilable(String), verification: T.nilable(::Stripe::Account::CreateParams::Individual::Verification)).void
}
def initialize(
address: nil,
@@ -4538,10 +4534,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :ip
# The user agent of the browser from which the account representative accepted the service agreement.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :user_agent
sig {
- params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
}
def initialize(date: nil, ip: nil, user_agent: nil); end
end
@@ -4577,13 +4573,13 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_prefix
# The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kana` specified on the charge. `statement_descriptor_prefix_kana` is useful for maximizing descriptor space for the dynamic portion.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_prefix_kana
# The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kanji` specified on the charge. `statement_descriptor_prefix_kanji` is useful for maximizing descriptor space for the dynamic portion.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_prefix_kanji
sig {
- params(decline_on: T.nilable(::Stripe::Account::CreateParams::Settings::CardPayments::DeclineOn), statement_descriptor_prefix: T.nilable(String), statement_descriptor_prefix_kana: T.nilable(T.nilable(String)), statement_descriptor_prefix_kanji: T.nilable(T.nilable(String))).void
+ params(decline_on: T.nilable(::Stripe::Account::CreateParams::Settings::CardPayments::DeclineOn), statement_descriptor_prefix: T.nilable(String), statement_descriptor_prefix_kana: T.nilable(String), statement_descriptor_prefix_kanji: T.nilable(String)).void
}
def initialize(
decline_on: nil,
@@ -4677,10 +4673,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :ip
# The user agent of the browser from which the account representative accepted the service agreement.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :user_agent
sig {
- params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
}
def initialize(date: nil, ip: nil, user_agent: nil); end
end
@@ -4802,7 +4798,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Account::CreateParams::Individual)) }
attr_accessor :individual
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Options for customizing how the account functions within Stripe.
sig { returns(T.nilable(::Stripe::Account::CreateParams::Settings)) }
@@ -4814,7 +4810,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :type
sig {
- params(account_token: T.nilable(String), business_profile: T.nilable(::Stripe::Account::CreateParams::BusinessProfile), business_type: T.nilable(String), capabilities: T.nilable(::Stripe::Account::CreateParams::Capabilities), company: T.nilable(::Stripe::Account::CreateParams::Company), controller: T.nilable(::Stripe::Account::CreateParams::Controller), country: T.nilable(String), default_currency: T.nilable(String), documents: T.nilable(::Stripe::Account::CreateParams::Documents), email: T.nilable(String), expand: T.nilable(T::Array[String]), external_account: T.nilable(T.any(String, ::Stripe::Account::CreateParams::BankAccount, ::Stripe::Account::CreateParams::Card, ::Stripe::Account::CreateParams::CardToken)), groups: T.nilable(::Stripe::Account::CreateParams::Groups), individual: T.nilable(::Stripe::Account::CreateParams::Individual), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), settings: T.nilable(::Stripe::Account::CreateParams::Settings), tos_acceptance: T.nilable(::Stripe::Account::CreateParams::TosAcceptance), type: T.nilable(String)).void
+ params(account_token: T.nilable(String), business_profile: T.nilable(::Stripe::Account::CreateParams::BusinessProfile), business_type: T.nilable(String), capabilities: T.nilable(::Stripe::Account::CreateParams::Capabilities), company: T.nilable(::Stripe::Account::CreateParams::Company), controller: T.nilable(::Stripe::Account::CreateParams::Controller), country: T.nilable(String), default_currency: T.nilable(String), documents: T.nilable(::Stripe::Account::CreateParams::Documents), email: T.nilable(String), expand: T.nilable(T::Array[String]), external_account: T.nilable(T.any(String, ::Stripe::Account::CreateParams::BankAccount, ::Stripe::Account::CreateParams::Card, ::Stripe::Account::CreateParams::CardToken)), groups: T.nilable(::Stripe::Account::CreateParams::Groups), individual: T.nilable(::Stripe::Account::CreateParams::Individual), metadata: T.nilable(T.any(String, T::Hash[String, String])), settings: T.nilable(::Stripe::Account::CreateParams::Settings), tos_acceptance: T.nilable(::Stripe::Account::CreateParams::TosAcceptance), type: T.nilable(String)).void
}
def initialize(
account_token: nil,
diff --git a/rbi/stripe/resources/billing/credit_grant.rbi b/rbi/stripe/resources/billing/credit_grant.rbi
index c4ac186dc..749110bbb 100644
--- a/rbi/stripe/resources/billing/credit_grant.rbi
+++ b/rbi/stripe/resources/billing/credit_grant.rbi
@@ -221,13 +221,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# The time when the billing credits created by this credit grant expire. If set to empty, the billing credits never expire.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expires_at
# Set of key-value pairs you can attach to an object. You can use this to store additional information about the object (for example, cost basis) in a structured format.
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), expires_at: T.nilable(T.nilable(T.any(String, Integer))), metadata: T.nilable(T::Hash[String, String])).void
+ params(expand: T.nilable(T::Array[String]), expires_at: T.nilable(T.any(String, Integer)), metadata: T.nilable(T::Hash[String, String])).void
}
def initialize(expand: nil, expires_at: nil, metadata: nil); end
end
diff --git a/rbi/stripe/resources/billing_portal/configuration.rbi b/rbi/stripe/resources/billing_portal/configuration.rbi
index 3beeeb559..48a17f825 100644
--- a/rbi/stripe/resources/billing_portal/configuration.rbi
+++ b/rbi/stripe/resources/billing_portal/configuration.rbi
@@ -206,7 +206,7 @@ module Stripe
class CreateParams < Stripe::RequestParams
class BusinessProfile < Stripe::RequestParams
# The messaging shown to customers in the portal.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :headline
# A link to the business’s publicly available privacy policy.
sig { returns(T.nilable(String)) }
@@ -215,20 +215,20 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :terms_of_service_url
sig {
- params(headline: T.nilable(T.nilable(String)), privacy_policy_url: T.nilable(String), terms_of_service_url: T.nilable(String)).void
+ params(headline: T.nilable(String), privacy_policy_url: T.nilable(String), terms_of_service_url: T.nilable(String)).void
}
def initialize(headline: nil, privacy_policy_url: nil, terms_of_service_url: nil); end
end
class Features < Stripe::RequestParams
class CustomerUpdate < Stripe::RequestParams
# The types of customer updates that are supported. When empty, customers are not updateable.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :allowed_updates
# Whether the feature is enabled.
sig { returns(T::Boolean) }
attr_accessor :enabled
sig {
- params(allowed_updates: T.nilable(T.nilable(T.any(String, T::Array[String]))), enabled: T::Boolean).void
+ params(allowed_updates: T.nilable(T.any(String, T::Array[String])), enabled: T::Boolean).void
}
def initialize(allowed_updates: nil, enabled: nil); end
end
@@ -252,11 +252,9 @@ module Stripe
sig { returns(T::Boolean) }
attr_accessor :enabled
# Which cancellation reasons will be given as options to the customer.
- sig { returns(T.nilable(T.any(String, T::Array[String]))) }
+ sig { returns(T.any(String, T::Array[String])) }
attr_accessor :options
- sig {
- params(enabled: T::Boolean, options: T.nilable(T.any(String, T::Array[String]))).void
- }
+ sig { params(enabled: T::Boolean, options: T.any(String, T::Array[String])).void }
def initialize(enabled: nil, options: nil); end
end
# Whether the cancellation reasons will be collected in the portal and which options are exposed to the customer
@@ -335,14 +333,14 @@ module Stripe
def initialize(conditions: nil); end
end
# The types of subscription updates that are supported. When empty, subscriptions are not updateable.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_allowed_updates
# Whether the feature is enabled.
sig { returns(T::Boolean) }
attr_accessor :enabled
# The list of up to 10 products that support subscription updates.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::CreateParams::Features::SubscriptionUpdate::Product]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::CreateParams::Features::SubscriptionUpdate::Product])))
}
attr_accessor :products
# Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
@@ -354,7 +352,7 @@ module Stripe
}
attr_accessor :schedule_at_period_end
sig {
- params(default_allowed_updates: T.nilable(T.nilable(T.any(String, T::Array[String]))), enabled: T::Boolean, products: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::CreateParams::Features::SubscriptionUpdate::Product]))), proration_behavior: T.nilable(String), schedule_at_period_end: T.nilable(::Stripe::BillingPortal::Configuration::CreateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd)).void
+ params(default_allowed_updates: T.nilable(T.any(String, T::Array[String])), enabled: T::Boolean, products: T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::CreateParams::Features::SubscriptionUpdate::Product])), proration_behavior: T.nilable(String), schedule_at_period_end: T.nilable(::Stripe::BillingPortal::Configuration::CreateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd)).void
}
def initialize(
default_allowed_updates: nil,
@@ -413,7 +411,7 @@ module Stripe
}
attr_accessor :business_profile
# The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overriden](https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :default_return_url
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
@@ -428,7 +426,7 @@ module Stripe
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
sig {
- params(business_profile: T.nilable(::Stripe::BillingPortal::Configuration::CreateParams::BusinessProfile), default_return_url: T.nilable(T.nilable(String)), expand: T.nilable(T::Array[String]), features: ::Stripe::BillingPortal::Configuration::CreateParams::Features, login_page: T.nilable(::Stripe::BillingPortal::Configuration::CreateParams::LoginPage), metadata: T.nilable(T::Hash[String, String])).void
+ params(business_profile: T.nilable(::Stripe::BillingPortal::Configuration::CreateParams::BusinessProfile), default_return_url: T.nilable(String), expand: T.nilable(T::Array[String]), features: ::Stripe::BillingPortal::Configuration::CreateParams::Features, login_page: T.nilable(::Stripe::BillingPortal::Configuration::CreateParams::LoginPage), metadata: T.nilable(T::Hash[String, String])).void
}
def initialize(
business_profile: nil,
@@ -442,29 +440,29 @@ module Stripe
class UpdateParams < Stripe::RequestParams
class BusinessProfile < Stripe::RequestParams
# The messaging shown to customers in the portal.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :headline
# A link to the business’s publicly available privacy policy.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :privacy_policy_url
# A link to the business’s publicly available terms of service.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :terms_of_service_url
sig {
- params(headline: T.nilable(T.nilable(String)), privacy_policy_url: T.nilable(T.nilable(String)), terms_of_service_url: T.nilable(T.nilable(String))).void
+ params(headline: T.nilable(String), privacy_policy_url: T.nilable(String), terms_of_service_url: T.nilable(String)).void
}
def initialize(headline: nil, privacy_policy_url: nil, terms_of_service_url: nil); end
end
class Features < Stripe::RequestParams
class CustomerUpdate < Stripe::RequestParams
# The types of customer updates that are supported. When empty, customers are not updateable.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :allowed_updates
# Whether the feature is enabled.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :enabled
sig {
- params(allowed_updates: T.nilable(T.nilable(T.any(String, T::Array[String]))), enabled: T.nilable(T::Boolean)).void
+ params(allowed_updates: T.nilable(T.any(String, T::Array[String])), enabled: T.nilable(T::Boolean)).void
}
def initialize(allowed_updates: nil, enabled: nil); end
end
@@ -488,10 +486,10 @@ module Stripe
sig { returns(T::Boolean) }
attr_accessor :enabled
# Which cancellation reasons will be given as options to the customer.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :options
sig {
- params(enabled: T::Boolean, options: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(enabled: T::Boolean, options: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(enabled: nil, options: nil); end
end
@@ -562,23 +560,23 @@ module Stripe
end
# List of conditions. When any condition is true, the update will be scheduled at the end of the current period.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd::Condition]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd::Condition])))
}
attr_accessor :conditions
sig {
- params(conditions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd::Condition])))).void
+ params(conditions: T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd::Condition]))).void
}
def initialize(conditions: nil); end
end
# The types of subscription updates that are supported. When empty, subscriptions are not updateable.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_allowed_updates
# Whether the feature is enabled.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :enabled
# The list of up to 10 products that support subscription updates.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::Product]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::Product])))
}
attr_accessor :products
# Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
@@ -590,7 +588,7 @@ module Stripe
}
attr_accessor :schedule_at_period_end
sig {
- params(default_allowed_updates: T.nilable(T.nilable(T.any(String, T::Array[String]))), enabled: T.nilable(T::Boolean), products: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::Product]))), proration_behavior: T.nilable(String), schedule_at_period_end: T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd)).void
+ params(default_allowed_updates: T.nilable(T.any(String, T::Array[String])), enabled: T.nilable(T::Boolean), products: T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::Product])), proration_behavior: T.nilable(String), schedule_at_period_end: T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd)).void
}
def initialize(
default_allowed_updates: nil,
@@ -654,7 +652,7 @@ module Stripe
}
attr_accessor :business_profile
# The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overriden](https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :default_return_url
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
@@ -666,10 +664,10 @@ module Stripe
sig { returns(T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::LoginPage)) }
attr_accessor :login_page
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(active: T.nilable(T::Boolean), business_profile: T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::BusinessProfile), default_return_url: T.nilable(T.nilable(String)), expand: T.nilable(T::Array[String]), features: T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::Features), login_page: T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::LoginPage), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(active: T.nilable(T::Boolean), business_profile: T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::BusinessProfile), default_return_url: T.nilable(String), expand: T.nilable(T::Array[String]), features: T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::Features), login_page: T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::LoginPage), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(
active: nil,
diff --git a/rbi/stripe/resources/charge.rbi b/rbi/stripe/resources/charge.rbi
index 7272d67a3..f288c5d76 100644
--- a/rbi/stripe/resources/charge.rbi
+++ b/rbi/stripe/resources/charge.rbi
@@ -1812,7 +1812,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The Stripe account ID for which these funds are intended. Automatically set if you use the `destination` parameter. For details, see [Creating Separate Charges and Transfers](https://stripe.com/docs/connect/separate-charges-and-transfers#settlement-merchant).
sig { returns(T.nilable(String)) }
@@ -1844,7 +1844,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transfer_group
sig {
- params(amount: T.nilable(Integer), application_fee: T.nilable(Integer), application_fee_amount: T.nilable(Integer), capture: T.nilable(T::Boolean), currency: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), destination: T.nilable(::Stripe::Charge::CreateParams::Destination), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), on_behalf_of: T.nilable(String), radar_options: T.nilable(::Stripe::Charge::CreateParams::RadarOptions), receipt_email: T.nilable(String), shipping: T.nilable(::Stripe::Charge::CreateParams::Shipping), source: T.nilable(String), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::Charge::CreateParams::TransferData), transfer_group: T.nilable(String)).void
+ params(amount: T.nilable(Integer), application_fee: T.nilable(Integer), application_fee_amount: T.nilable(Integer), capture: T.nilable(T::Boolean), currency: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), destination: T.nilable(::Stripe::Charge::CreateParams::Destination), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), on_behalf_of: T.nilable(String), radar_options: T.nilable(::Stripe::Charge::CreateParams::RadarOptions), receipt_email: T.nilable(String), shipping: T.nilable(::Stripe::Charge::CreateParams::Shipping), source: T.nilable(String), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::Charge::CreateParams::TransferData), transfer_group: T.nilable(String)).void
}
def initialize(
amount: nil,
@@ -1871,9 +1871,9 @@ module Stripe
class UpdateParams < Stripe::RequestParams
class FraudDetails < Stripe::RequestParams
# Either `safe` or `fraudulent`.
- sig { returns(T.nilable(T.any(String, String))) }
+ sig { returns(T.any(String, String)) }
attr_accessor :user_report
- sig { params(user_report: T.nilable(T.any(String, String))).void }
+ sig { params(user_report: T.any(String, String)).void }
def initialize(user_report: nil); end
end
class Shipping < Stripe::RequestParams
@@ -1941,7 +1941,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Charge::UpdateParams::FraudDetails)) }
attr_accessor :fraud_details
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# This is the email address that the receipt for this charge will be sent to. If this field is updated, then a new email receipt will be sent to the updated address.
sig { returns(T.nilable(String)) }
@@ -1953,7 +1953,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transfer_group
sig {
- params(customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), fraud_details: T.nilable(::Stripe::Charge::UpdateParams::FraudDetails), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), receipt_email: T.nilable(String), shipping: T.nilable(::Stripe::Charge::UpdateParams::Shipping), transfer_group: T.nilable(String)).void
+ params(customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), fraud_details: T.nilable(::Stripe::Charge::UpdateParams::FraudDetails), metadata: T.nilable(T.any(String, T::Hash[String, String])), receipt_email: T.nilable(String), shipping: T.nilable(::Stripe::Charge::UpdateParams::Shipping), transfer_group: T.nilable(String)).void
}
def initialize(
customer: nil,
diff --git a/rbi/stripe/resources/checkout/session.rbi b/rbi/stripe/resources/checkout/session.rbi
index 2b80d2257..4e9519404 100644
--- a/rbi/stripe/resources/checkout/session.rbi
+++ b/rbi/stripe/resources/checkout/session.rbi
@@ -1723,26 +1723,26 @@ module Stripe
end
# Custom text that should be displayed after the payment confirmation button.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::CustomText::AfterSubmit))))
+ returns(T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::CustomText::AfterSubmit)))
}
attr_accessor :after_submit
# Custom text that should be displayed alongside shipping address collection.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::CustomText::ShippingAddress))))
+ returns(T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::CustomText::ShippingAddress)))
}
attr_accessor :shipping_address
# Custom text that should be displayed alongside the payment confirmation button.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::CustomText::Submit))))
+ returns(T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::CustomText::Submit)))
}
attr_accessor :submit
# Custom text that should be displayed in place of the default terms of service agreement text.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::CustomText::TermsOfServiceAcceptance))))
+ returns(T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::CustomText::TermsOfServiceAcceptance)))
}
attr_accessor :terms_of_service_acceptance
sig {
- params(after_submit: T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::CustomText::AfterSubmit))), shipping_address: T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::CustomText::ShippingAddress))), submit: T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::CustomText::Submit))), terms_of_service_acceptance: T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::CustomText::TermsOfServiceAcceptance)))).void
+ params(after_submit: T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::CustomText::AfterSubmit)), shipping_address: T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::CustomText::ShippingAddress)), submit: T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::CustomText::Submit)), terms_of_service_acceptance: T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::CustomText::TermsOfServiceAcceptance))).void
}
def initialize(
after_submit: nil,
@@ -1802,22 +1802,22 @@ module Stripe
end
class RenderingOptions < Stripe::RequestParams
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :amount_tax_display
# ID of the invoice rendering template to use for this invoice.
sig { returns(T.nilable(String)) }
attr_accessor :template
sig {
- params(amount_tax_display: T.nilable(T.nilable(T.any(String, String))), template: T.nilable(String)).void
+ params(amount_tax_display: T.nilable(T.any(String, String)), template: T.nilable(String)).void
}
def initialize(amount_tax_display: nil, template: nil); end
end
# The account tax IDs associated with the invoice.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# Default custom fields to be displayed on invoices for this customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Checkout::Session::CreateParams::InvoiceCreation::InvoiceData::CustomField]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Checkout::Session::CreateParams::InvoiceCreation::InvoiceData::CustomField])))
}
attr_accessor :custom_fields
# An arbitrary string attached to the object. Often useful for displaying to users.
@@ -1836,11 +1836,11 @@ module Stripe
attr_accessor :metadata
# Default options for invoice PDF rendering for this customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions))))
+ returns(T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions)))
}
attr_accessor :rendering_options
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), custom_fields: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Checkout::Session::CreateParams::InvoiceCreation::InvoiceData::CustomField]))), description: T.nilable(String), footer: T.nilable(String), issuer: T.nilable(::Stripe::Checkout::Session::CreateParams::InvoiceCreation::InvoiceData::Issuer), metadata: T.nilable(T::Hash[String, String]), rendering_options: T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions)))).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::Checkout::Session::CreateParams::InvoiceCreation::InvoiceData::CustomField])), description: T.nilable(String), footer: T.nilable(String), issuer: T.nilable(::Stripe::Checkout::Session::CreateParams::InvoiceCreation::InvoiceData::Issuer), metadata: T.nilable(T::Hash[String, String]), rendering_options: T.nilable(T.any(String, ::Stripe::Checkout::Session::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions))).void
}
def initialize(
account_tax_ids: nil,
@@ -2190,7 +2190,7 @@ module Stripe
# A URL for custom mandate text to render during confirmation step.
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :custom_mandate_url
# List of Stripe products where this mandate can be selected automatically. Only usable in `setup` mode.
sig { returns(T.nilable(T::Array[String])) }
@@ -2205,7 +2205,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transaction_type
sig {
- params(custom_mandate_url: T.nilable(T.nilable(String)), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
+ params(custom_mandate_url: T.nilable(String), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
}
def initialize(
custom_mandate_url: nil,
@@ -2322,9 +2322,9 @@ module Stripe
class BacsDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -2648,11 +2648,11 @@ module Stripe
attr_accessor :setup_future_usage
# Subscription details if the Checkout Session sets up a future subscription.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Klarna::Subscription]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Klarna::Subscription])))
}
attr_accessor :subscriptions
sig {
- params(setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Klarna::Subscription])))).void
+ params(setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.any(String, T::Array[::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Klarna::Subscription]))).void
}
def initialize(setup_future_usage: nil, subscriptions: nil); end
end
@@ -2808,7 +2808,7 @@ module Stripe
end
class Paypal < Stripe::RequestParams
# Controls when the funds will be captured from the customer's account.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
sig { returns(T.nilable(String)) }
@@ -2828,10 +2828,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), preferred_locale: T.nilable(String), reference: T.nilable(String), risk_correlation_id: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), preferred_locale: T.nilable(String), reference: T.nilable(String), risk_correlation_id: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(
capture_method: nil,
@@ -2882,9 +2882,9 @@ module Stripe
class SepaDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -4001,15 +4001,15 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The shipping rate options to apply to this Session. Up to a maximum of 5.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Checkout::Session::UpdateParams::ShippingOption]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Checkout::Session::UpdateParams::ShippingOption])))
}
attr_accessor :shipping_options
sig {
- params(collected_information: T.nilable(::Stripe::Checkout::Session::UpdateParams::CollectedInformation), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), shipping_options: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Checkout::Session::UpdateParams::ShippingOption])))).void
+ params(collected_information: T.nilable(::Stripe::Checkout::Session::UpdateParams::CollectedInformation), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), shipping_options: T.nilable(T.any(String, T::Array[::Stripe::Checkout::Session::UpdateParams::ShippingOption]))).void
}
def initialize(
collected_information: nil,
diff --git a/rbi/stripe/resources/climate/order.rbi b/rbi/stripe/resources/climate/order.rbi
index 986957d8d..a01eb2b57 100644
--- a/rbi/stripe/resources/climate/order.rbi
+++ b/rbi/stripe/resources/climate/order.rbi
@@ -175,14 +175,14 @@ module Stripe
class UpdateParams < Stripe::RequestParams
class Beneficiary < Stripe::RequestParams
# Publicly displayable name for the end beneficiary of carbon removal.
- sig { returns(T.nilable(String)) }
+ sig { returns(String) }
attr_accessor :public_name
- sig { params(public_name: T.nilable(String)).void }
+ sig { params(public_name: String).void }
def initialize(public_name: nil); end
end
# Publicly sharable reference for the end beneficiary of carbon removal. Assumed to be the Stripe account if not set.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Climate::Order::UpdateParams::Beneficiary))))
+ returns(T.nilable(T.any(String, ::Stripe::Climate::Order::UpdateParams::Beneficiary)))
}
attr_accessor :beneficiary
# Specifies which fields in the response should be expanded.
@@ -192,7 +192,7 @@ module Stripe
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
sig {
- params(beneficiary: T.nilable(T.nilable(T.any(String, ::Stripe::Climate::Order::UpdateParams::Beneficiary))), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String])).void
+ params(beneficiary: T.nilable(T.any(String, ::Stripe::Climate::Order::UpdateParams::Beneficiary)), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String])).void
}
def initialize(beneficiary: nil, expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/resources/confirmation_token.rbi b/rbi/stripe/resources/confirmation_token.rbi
index 8c3887f6a..e5d192550 100644
--- a/rbi/stripe/resources/confirmation_token.rbi
+++ b/rbi/stripe/resources/confirmation_token.rbi
@@ -1169,23 +1169,23 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
sig { returns(T.nilable(String)) }
attr_accessor :tax_id
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
+ params(address: T.nilable(T.any(String, ::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), tax_id: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
end
@@ -1771,10 +1771,10 @@ module Stripe
sig { returns(String) }
attr_accessor :name
# Recipient phone (including extension)
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
sig {
- params(address: ::Stripe::ConfirmationToken::CreateParams::Shipping::Address, name: String, phone: T.nilable(T.nilable(String))).void
+ params(address: ::Stripe::ConfirmationToken::CreateParams::Shipping::Address, name: String, phone: T.nilable(String)).void
}
def initialize(address: nil, name: nil, phone: nil); end
end
diff --git a/rbi/stripe/resources/coupon.rbi b/rbi/stripe/resources/coupon.rbi
index 9b2528e93..6193ca580 100644
--- a/rbi/stripe/resources/coupon.rbi
+++ b/rbi/stripe/resources/coupon.rbi
@@ -87,13 +87,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set.
sig { returns(T.nilable(String)) }
attr_accessor :name
sig {
- params(currency_options: T.nilable(T::Hash[String, ::Stripe::Coupon::UpdateParams::CurrencyOptions]), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), name: T.nilable(String)).void
+ params(currency_options: T.nilable(T::Hash[String, ::Stripe::Coupon::UpdateParams::CurrencyOptions]), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String)).void
}
def initialize(currency_options: nil, expand: nil, metadata: nil, name: nil); end
end
@@ -185,7 +185,7 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :max_redemptions
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set.
sig { returns(T.nilable(String)) }
@@ -197,7 +197,7 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :redeem_by
sig {
- params(amount_off: T.nilable(Integer), applies_to: T.nilable(::Stripe::Coupon::CreateParams::AppliesTo), currency: T.nilable(String), currency_options: T.nilable(T::Hash[String, ::Stripe::Coupon::CreateParams::CurrencyOptions]), duration: T.nilable(String), duration_in_months: T.nilable(Integer), expand: T.nilable(T::Array[String]), id: T.nilable(String), max_redemptions: T.nilable(Integer), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), name: T.nilable(String), percent_off: T.nilable(Float), redeem_by: T.nilable(Integer)).void
+ params(amount_off: T.nilable(Integer), applies_to: T.nilable(::Stripe::Coupon::CreateParams::AppliesTo), currency: T.nilable(String), currency_options: T.nilable(T::Hash[String, ::Stripe::Coupon::CreateParams::CurrencyOptions]), duration: T.nilable(String), duration_in_months: T.nilable(Integer), expand: T.nilable(T::Array[String]), id: T.nilable(String), max_redemptions: T.nilable(Integer), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), percent_off: T.nilable(Float), redeem_by: T.nilable(Integer)).void
}
def initialize(
amount_off: nil,
diff --git a/rbi/stripe/resources/credit_note.rbi b/rbi/stripe/resources/credit_note.rbi
index 3c037d947..ca6dc8605 100644
--- a/rbi/stripe/resources/credit_note.rbi
+++ b/rbi/stripe/resources/credit_note.rbi
@@ -276,11 +276,11 @@ module Stripe
attr_accessor :quantity
# A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with `tax_rates`.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::CreditNote::CreateParams::Line::TaxAmount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::CreditNote::CreateParams::Line::TaxAmount])))
}
attr_accessor :tax_amounts
# The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and cannot be mixed with `tax_amounts`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
# Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`
sig { returns(String) }
@@ -292,7 +292,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :unit_amount_decimal
sig {
- params(amount: T.nilable(Integer), description: T.nilable(String), invoice_line_item: T.nilable(String), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::CreditNote::CreateParams::Line::TaxAmount]))), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), type: String, unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
+ params(amount: T.nilable(Integer), description: T.nilable(String), invoice_line_item: T.nilable(String), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.any(String, T::Array[::Stripe::CreditNote::CreateParams::Line::TaxAmount])), tax_rates: T.nilable(T.any(String, T::Array[String])), type: String, unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
}
def initialize(
amount: nil,
@@ -429,11 +429,11 @@ module Stripe
attr_accessor :quantity
# A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with `tax_rates`.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::CreditNote::PreviewParams::Line::TaxAmount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::CreditNote::PreviewParams::Line::TaxAmount])))
}
attr_accessor :tax_amounts
# The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and cannot be mixed with `tax_amounts`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
# Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`
sig { returns(String) }
@@ -445,7 +445,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :unit_amount_decimal
sig {
- params(amount: T.nilable(Integer), description: T.nilable(String), invoice_line_item: T.nilable(String), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::CreditNote::PreviewParams::Line::TaxAmount]))), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), type: String, unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
+ params(amount: T.nilable(Integer), description: T.nilable(String), invoice_line_item: T.nilable(String), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.any(String, T::Array[::Stripe::CreditNote::PreviewParams::Line::TaxAmount])), tax_rates: T.nilable(T.any(String, T::Array[String])), type: String, unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
}
def initialize(
amount: nil,
@@ -567,11 +567,11 @@ module Stripe
attr_accessor :quantity
# A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with `tax_rates`.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::CreditNote::ListPreviewLineItemsParams::Line::TaxAmount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::CreditNote::ListPreviewLineItemsParams::Line::TaxAmount])))
}
attr_accessor :tax_amounts
# The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and cannot be mixed with `tax_amounts`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
# Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`
sig { returns(String) }
@@ -583,7 +583,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :unit_amount_decimal
sig {
- params(amount: T.nilable(Integer), description: T.nilable(String), invoice_line_item: T.nilable(String), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::CreditNote::ListPreviewLineItemsParams::Line::TaxAmount]))), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), type: String, unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
+ params(amount: T.nilable(Integer), description: T.nilable(String), invoice_line_item: T.nilable(String), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.any(String, T::Array[::Stripe::CreditNote::ListPreviewLineItemsParams::Line::TaxAmount])), tax_rates: T.nilable(T.any(String, T::Array[String])), type: String, unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
}
def initialize(
amount: nil,
diff --git a/rbi/stripe/resources/customer.rbi b/rbi/stripe/resources/customer.rbi
index 0e12b84ab..3290d5e48 100644
--- a/rbi/stripe/resources/customer.rbi
+++ b/rbi/stripe/resources/customer.rbi
@@ -273,19 +273,19 @@ module Stripe
end
class RenderingOptions < Stripe::RequestParams
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :amount_tax_display
# ID of the invoice rendering template to use for future invoices.
sig { returns(T.nilable(String)) }
attr_accessor :template
sig {
- params(amount_tax_display: T.nilable(T.nilable(T.any(String, String))), template: T.nilable(String)).void
+ params(amount_tax_display: T.nilable(T.any(String, String)), template: T.nilable(String)).void
}
def initialize(amount_tax_display: nil, template: nil); end
end
# The list of up to 4 default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Customer::UpdateParams::InvoiceSettings::CustomField]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Customer::UpdateParams::InvoiceSettings::CustomField])))
}
attr_accessor :custom_fields
# ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices.
@@ -296,11 +296,11 @@ module Stripe
attr_accessor :footer
# Default options for invoice PDF rendering for this customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::InvoiceSettings::RenderingOptions))))
+ returns(T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::InvoiceSettings::RenderingOptions)))
}
attr_accessor :rendering_options
sig {
- params(custom_fields: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Customer::UpdateParams::InvoiceSettings::CustomField]))), default_payment_method: T.nilable(String), footer: T.nilable(String), rendering_options: T.nilable(T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::InvoiceSettings::RenderingOptions)))).void
+ params(custom_fields: T.nilable(T.any(String, T::Array[::Stripe::Customer::UpdateParams::InvoiceSettings::CustomField])), default_payment_method: T.nilable(String), footer: T.nilable(String), rendering_options: T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::InvoiceSettings::RenderingOptions))).void
}
def initialize(
custom_fields: nil,
@@ -357,20 +357,16 @@ module Stripe
end
class Tax < Stripe::RequestParams
# A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :ip_address
# A flag that indicates when Stripe should validate the customer tax location. Defaults to `auto`.
sig { returns(T.nilable(String)) }
attr_accessor :validate_location
- sig {
- params(ip_address: T.nilable(T.nilable(String)), validate_location: T.nilable(String)).void
- }
+ sig { params(ip_address: T.nilable(String), validate_location: T.nilable(String)).void }
def initialize(ip_address: nil, validate_location: nil); end
end
# The customer's address.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::Address))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::Address))) }
attr_accessor :address
# An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice.
sig { returns(T.nilable(Integer)) }
@@ -401,7 +397,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Customer::UpdateParams::InvoiceSettings)) }
attr_accessor :invoice_settings
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The customer's full name or business name.
sig { returns(T.nilable(String)) }
@@ -416,9 +412,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :preferred_locales
# The customer's shipping information. Appears on invoices emailed to this customer.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::Shipping))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::Shipping))) }
attr_accessor :shipping
# Attribute for param field source
sig { returns(T.nilable(String)) }
@@ -427,13 +421,13 @@ module Stripe
sig { returns(T.nilable(::Stripe::Customer::UpdateParams::Tax)) }
attr_accessor :tax
# The customer's tax exemption. One of `none`, `exempt`, or `reverse`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :tax_exempt
# Attribute for param field validate
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :validate
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::Address))), balance: T.nilable(Integer), cash_balance: T.nilable(::Stripe::Customer::UpdateParams::CashBalance), default_source: T.nilable(String), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::Customer::UpdateParams::InvoiceSettings), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::Shipping))), source: T.nilable(String), tax: T.nilable(::Stripe::Customer::UpdateParams::Tax), tax_exempt: T.nilable(T.nilable(T.any(String, String))), validate: T.nilable(T::Boolean)).void
+ params(address: T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::Address)), balance: T.nilable(Integer), cash_balance: T.nilable(::Stripe::Customer::UpdateParams::CashBalance), default_source: T.nilable(String), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::Customer::UpdateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::Customer::UpdateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), validate: T.nilable(T::Boolean)).void
}
def initialize(
address: nil,
@@ -573,19 +567,19 @@ module Stripe
end
class RenderingOptions < Stripe::RequestParams
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :amount_tax_display
# ID of the invoice rendering template to use for future invoices.
sig { returns(T.nilable(String)) }
attr_accessor :template
sig {
- params(amount_tax_display: T.nilable(T.nilable(T.any(String, String))), template: T.nilable(String)).void
+ params(amount_tax_display: T.nilable(T.any(String, String)), template: T.nilable(String)).void
}
def initialize(amount_tax_display: nil, template: nil); end
end
# The list of up to 4 default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Customer::CreateParams::InvoiceSettings::CustomField]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Customer::CreateParams::InvoiceSettings::CustomField])))
}
attr_accessor :custom_fields
# ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices.
@@ -596,11 +590,11 @@ module Stripe
attr_accessor :footer
# Default options for invoice PDF rendering for this customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Customer::CreateParams::InvoiceSettings::RenderingOptions))))
+ returns(T.nilable(T.any(String, ::Stripe::Customer::CreateParams::InvoiceSettings::RenderingOptions)))
}
attr_accessor :rendering_options
sig {
- params(custom_fields: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Customer::CreateParams::InvoiceSettings::CustomField]))), default_payment_method: T.nilable(String), footer: T.nilable(String), rendering_options: T.nilable(T.nilable(T.any(String, ::Stripe::Customer::CreateParams::InvoiceSettings::RenderingOptions)))).void
+ params(custom_fields: T.nilable(T.any(String, T::Array[::Stripe::Customer::CreateParams::InvoiceSettings::CustomField])), default_payment_method: T.nilable(String), footer: T.nilable(String), rendering_options: T.nilable(T.any(String, ::Stripe::Customer::CreateParams::InvoiceSettings::RenderingOptions))).void
}
def initialize(
custom_fields: nil,
@@ -657,14 +651,12 @@ module Stripe
end
class Tax < Stripe::RequestParams
# A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :ip_address
# A flag that indicates when Stripe should validate the customer tax location. Defaults to `deferred`.
sig { returns(T.nilable(String)) }
attr_accessor :validate_location
- sig {
- params(ip_address: T.nilable(T.nilable(String)), validate_location: T.nilable(String)).void
- }
+ sig { params(ip_address: T.nilable(String), validate_location: T.nilable(String)).void }
def initialize(ip_address: nil, validate_location: nil); end
end
class TaxIdDatum < Stripe::RequestParams
@@ -678,9 +670,7 @@ module Stripe
def initialize(type: nil, value: nil); end
end
# The customer's address.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Customer::CreateParams::Address))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::Customer::CreateParams::Address))) }
attr_accessor :address
# An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice.
sig { returns(T.nilable(Integer)) }
@@ -704,7 +694,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Customer::CreateParams::InvoiceSettings)) }
attr_accessor :invoice_settings
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The customer's full name or business name.
sig { returns(T.nilable(String)) }
@@ -722,9 +712,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :preferred_locales
# The customer's shipping information. Appears on invoices emailed to this customer.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Customer::CreateParams::Shipping))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::Customer::CreateParams::Shipping))) }
attr_accessor :shipping
# Attribute for param field source
sig { returns(T.nilable(String)) }
@@ -733,7 +721,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Customer::CreateParams::Tax)) }
attr_accessor :tax
# The customer's tax exemption. One of `none`, `exempt`, or `reverse`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :tax_exempt
# The customer's tax IDs.
sig { returns(T.nilable(T::Array[::Stripe::Customer::CreateParams::TaxIdDatum])) }
@@ -745,7 +733,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :validate
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::Customer::CreateParams::Address))), balance: T.nilable(Integer), cash_balance: T.nilable(::Stripe::Customer::CreateParams::CashBalance), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::Customer::CreateParams::InvoiceSettings), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), payment_method: T.nilable(String), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::Customer::CreateParams::Shipping))), source: T.nilable(String), tax: T.nilable(::Stripe::Customer::CreateParams::Tax), tax_exempt: T.nilable(T.nilable(T.any(String, String))), tax_id_data: T.nilable(T::Array[::Stripe::Customer::CreateParams::TaxIdDatum]), test_clock: T.nilable(String), validate: T.nilable(T::Boolean)).void
+ params(address: T.nilable(T.any(String, ::Stripe::Customer::CreateParams::Address)), balance: T.nilable(Integer), cash_balance: T.nilable(::Stripe::Customer::CreateParams::CashBalance), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::Customer::CreateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), payment_method: T.nilable(String), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::Customer::CreateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::Customer::CreateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), tax_id_data: T.nilable(T::Array[::Stripe::Customer::CreateParams::TaxIdDatum]), test_clock: T.nilable(String), validate: T.nilable(T::Boolean)).void
}
def initialize(
address: nil,
diff --git a/rbi/stripe/resources/dispute.rbi b/rbi/stripe/resources/dispute.rbi
index 1c13bdf97..d58b690c8 100644
--- a/rbi/stripe/resources/dispute.rbi
+++ b/rbi/stripe/resources/dispute.rbi
@@ -406,25 +406,25 @@ module Stripe
class DisputedTransaction < Stripe::RequestParams
class ShippingAddress < Stripe::RequestParams
# City, district, suburb, town, or village.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :city
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :country
# Address line 1 (e.g., street, PO Box, or company name).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :line1
# Address line 2 (e.g., apartment, suite, unit, or building).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :line2
# ZIP or postal code.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :postal_code
# State, county, province, or region.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :state
sig {
- params(city: T.nilable(T.nilable(String)), country: T.nilable(T.nilable(String)), line1: T.nilable(T.nilable(String)), line2: T.nilable(T.nilable(String)), postal_code: T.nilable(T.nilable(String)), state: T.nilable(T.nilable(String))).void
+ params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
}
def initialize(
city: nil,
@@ -436,25 +436,25 @@ module Stripe
); end
end
# User Account ID used to log into business platform. Must be recognizable by the user.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_account_id
# Unique identifier of the cardholder’s device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_device_fingerprint
# Unique identifier of the cardholder’s device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_device_id
# The email address of the customer.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_email_address
# The IP address that the customer used when making the purchase.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_purchase_ip
# Categorization of disputed payment.
sig { returns(T.nilable(String)) }
attr_accessor :merchandise_or_services
# A description of the product or service that was sold.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
sig {
@@ -462,7 +462,7 @@ module Stripe
}
attr_accessor :shipping_address
sig {
- params(customer_account_id: T.nilable(T.nilable(String)), customer_device_fingerprint: T.nilable(T.nilable(String)), customer_device_id: T.nilable(T.nilable(String)), customer_email_address: T.nilable(T.nilable(String)), customer_purchase_ip: T.nilable(T.nilable(String)), merchandise_or_services: T.nilable(String), product_description: T.nilable(T.nilable(String)), shipping_address: T.nilable(::Stripe::Dispute::UpdateParams::Evidence::EnhancedEvidence::VisaCompellingEvidence3::DisputedTransaction::ShippingAddress)).void
+ params(customer_account_id: T.nilable(String), customer_device_fingerprint: T.nilable(String), customer_device_id: T.nilable(String), customer_email_address: T.nilable(String), customer_purchase_ip: T.nilable(String), merchandise_or_services: T.nilable(String), product_description: T.nilable(String), shipping_address: T.nilable(::Stripe::Dispute::UpdateParams::Evidence::EnhancedEvidence::VisaCompellingEvidence3::DisputedTransaction::ShippingAddress)).void
}
def initialize(
customer_account_id: nil,
@@ -478,25 +478,25 @@ module Stripe
class PriorUndisputedTransaction < Stripe::RequestParams
class ShippingAddress < Stripe::RequestParams
# City, district, suburb, town, or village.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :city
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :country
# Address line 1 (e.g., street, PO Box, or company name).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :line1
# Address line 2 (e.g., apartment, suite, unit, or building).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :line2
# ZIP or postal code.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :postal_code
# State, county, province, or region.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :state
sig {
- params(city: T.nilable(T.nilable(String)), country: T.nilable(T.nilable(String)), line1: T.nilable(T.nilable(String)), line2: T.nilable(T.nilable(String)), postal_code: T.nilable(T.nilable(String)), state: T.nilable(T.nilable(String))).void
+ params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
}
def initialize(
city: nil,
@@ -511,22 +511,22 @@ module Stripe
sig { returns(String) }
attr_accessor :charge
# User Account ID used to log into business platform. Must be recognizable by the user.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_account_id
# Unique identifier of the cardholder’s device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_device_fingerprint
# Unique identifier of the cardholder’s device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_device_id
# The email address of the customer.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_email_address
# The IP address that the customer used when making the purchase.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_purchase_ip
# A description of the product or service that was sold.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
sig {
@@ -534,7 +534,7 @@ module Stripe
}
attr_accessor :shipping_address
sig {
- params(charge: String, customer_account_id: T.nilable(T.nilable(String)), customer_device_fingerprint: T.nilable(T.nilable(String)), customer_device_id: T.nilable(T.nilable(String)), customer_email_address: T.nilable(T.nilable(String)), customer_purchase_ip: T.nilable(T.nilable(String)), product_description: T.nilable(T.nilable(String)), shipping_address: T.nilable(::Stripe::Dispute::UpdateParams::Evidence::EnhancedEvidence::VisaCompellingEvidence3::PriorUndisputedTransaction::ShippingAddress)).void
+ params(charge: String, customer_account_id: T.nilable(String), customer_device_fingerprint: T.nilable(String), customer_device_id: T.nilable(String), customer_email_address: T.nilable(String), customer_purchase_ip: T.nilable(String), product_description: T.nilable(String), shipping_address: T.nilable(::Stripe::Dispute::UpdateParams::Evidence::EnhancedEvidence::VisaCompellingEvidence3::PriorUndisputedTransaction::ShippingAddress)).void
}
def initialize(
charge: nil,
@@ -625,7 +625,7 @@ module Stripe
attr_accessor :duplicate_charge_id
# Additional evidence for qualifying evidence programs.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Dispute::UpdateParams::Evidence::EnhancedEvidence))))
+ returns(T.nilable(T.any(String, ::Stripe::Dispute::UpdateParams::Evidence::EnhancedEvidence)))
}
attr_accessor :enhanced_evidence
# A description of the product or service that was sold. Has a maximum character count of 20,000.
@@ -671,7 +671,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :uncategorized_text
sig {
- params(access_activity_log: T.nilable(String), billing_address: T.nilable(String), cancellation_policy: T.nilable(String), cancellation_policy_disclosure: T.nilable(String), cancellation_rebuttal: T.nilable(String), customer_communication: T.nilable(String), customer_email_address: T.nilable(String), customer_name: T.nilable(String), customer_purchase_ip: T.nilable(String), customer_signature: T.nilable(String), duplicate_charge_documentation: T.nilable(String), duplicate_charge_explanation: T.nilable(String), duplicate_charge_id: T.nilable(String), enhanced_evidence: T.nilable(T.nilable(T.any(String, ::Stripe::Dispute::UpdateParams::Evidence::EnhancedEvidence))), product_description: T.nilable(String), receipt: T.nilable(String), refund_policy: T.nilable(String), refund_policy_disclosure: T.nilable(String), refund_refusal_explanation: T.nilable(String), service_date: T.nilable(String), service_documentation: T.nilable(String), shipping_address: T.nilable(String), shipping_carrier: T.nilable(String), shipping_date: T.nilable(String), shipping_documentation: T.nilable(String), shipping_tracking_number: T.nilable(String), uncategorized_file: T.nilable(String), uncategorized_text: T.nilable(String)).void
+ params(access_activity_log: T.nilable(String), billing_address: T.nilable(String), cancellation_policy: T.nilable(String), cancellation_policy_disclosure: T.nilable(String), cancellation_rebuttal: T.nilable(String), customer_communication: T.nilable(String), customer_email_address: T.nilable(String), customer_name: T.nilable(String), customer_purchase_ip: T.nilable(String), customer_signature: T.nilable(String), duplicate_charge_documentation: T.nilable(String), duplicate_charge_explanation: T.nilable(String), duplicate_charge_id: T.nilable(String), enhanced_evidence: T.nilable(T.any(String, ::Stripe::Dispute::UpdateParams::Evidence::EnhancedEvidence)), product_description: T.nilable(String), receipt: T.nilable(String), refund_policy: T.nilable(String), refund_policy_disclosure: T.nilable(String), refund_refusal_explanation: T.nilable(String), service_date: T.nilable(String), service_documentation: T.nilable(String), shipping_address: T.nilable(String), shipping_carrier: T.nilable(String), shipping_date: T.nilable(String), shipping_documentation: T.nilable(String), shipping_tracking_number: T.nilable(String), uncategorized_file: T.nilable(String), uncategorized_text: T.nilable(String)).void
}
def initialize(
access_activity_log: nil,
@@ -711,13 +711,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Whether to immediately submit evidence to the bank. If `false`, evidence is staged on the dispute. Staged evidence is visible in the API and Dashboard, and can be submitted to the bank by making another request with this attribute set to `true` (the default).
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :submit
sig {
- params(evidence: T.nilable(::Stripe::Dispute::UpdateParams::Evidence), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), submit: T.nilable(T::Boolean)).void
+ params(evidence: T.nilable(::Stripe::Dispute::UpdateParams::Evidence), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), submit: T.nilable(T::Boolean)).void
}
def initialize(evidence: nil, expand: nil, metadata: nil, submit: nil); end
end
diff --git a/rbi/stripe/resources/entitlements/feature.rbi b/rbi/stripe/resources/entitlements/feature.rbi
index 64de9afde..a242e671c 100644
--- a/rbi/stripe/resources/entitlements/feature.rbi
+++ b/rbi/stripe/resources/entitlements/feature.rbi
@@ -85,13 +85,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The feature's name, for your own purpose, not meant to be displayable to the customer.
sig { returns(T.nilable(String)) }
attr_accessor :name
sig {
- params(active: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), name: T.nilable(String)).void
+ params(active: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String)).void
}
def initialize(active: nil, expand: nil, metadata: nil, name: nil); end
end
diff --git a/rbi/stripe/resources/file.rbi b/rbi/stripe/resources/file.rbi
index 3ba13dd8a..2500c6d32 100644
--- a/rbi/stripe/resources/file.rbi
+++ b/rbi/stripe/resources/file.rbi
@@ -102,10 +102,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :expires_at
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(create: T::Boolean, expires_at: T.nilable(Integer), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(create: T::Boolean, expires_at: T.nilable(Integer), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(create: nil, expires_at: nil, metadata: nil); end
end
diff --git a/rbi/stripe/resources/file_link.rbi b/rbi/stripe/resources/file_link.rbi
index d5a96c548..7bbcccf04 100644
--- a/rbi/stripe/resources/file_link.rbi
+++ b/rbi/stripe/resources/file_link.rbi
@@ -98,10 +98,10 @@ module Stripe
sig { returns(String) }
attr_accessor :file
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), file: String, metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), file: String, metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, expires_at: nil, file: nil, metadata: nil); end
end
@@ -110,13 +110,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# A future timestamp after which the link will no longer be usable, or `now` to expire the link immediately.
- sig { returns(T.nilable(T.nilable(T.any(String, T.any(String, Integer))))) }
+ sig { returns(T.nilable(T.any(String, T.any(String, Integer)))) }
attr_accessor :expires_at
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), expires_at: T.nilable(T.nilable(T.any(String, T.any(String, Integer)))), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), expires_at: T.nilable(T.any(String, T.any(String, Integer))), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, expires_at: nil, metadata: nil); end
end
diff --git a/rbi/stripe/resources/identity/verification_session.rbi b/rbi/stripe/resources/identity/verification_session.rbi
index 53db2c0e6..91020609b 100644
--- a/rbi/stripe/resources/identity/verification_session.rbi
+++ b/rbi/stripe/resources/identity/verification_session.rbi
@@ -304,11 +304,11 @@ module Stripe
end
# Options that apply to the [document check](https://stripe.com/docs/identity/verification-checks?type=document).
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Identity::VerificationSession::CreateParams::Options::Document))))
+ returns(T.nilable(T.any(String, ::Stripe::Identity::VerificationSession::CreateParams::Options::Document)))
}
attr_accessor :document
sig {
- params(document: T.nilable(T.nilable(T.any(String, ::Stripe::Identity::VerificationSession::CreateParams::Options::Document)))).void
+ params(document: T.nilable(T.any(String, ::Stripe::Identity::VerificationSession::CreateParams::Options::Document))).void
}
def initialize(document: nil); end
end
@@ -409,11 +409,11 @@ module Stripe
end
# Options that apply to the [document check](https://stripe.com/docs/identity/verification-checks?type=document).
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Identity::VerificationSession::UpdateParams::Options::Document))))
+ returns(T.nilable(T.any(String, ::Stripe::Identity::VerificationSession::UpdateParams::Options::Document)))
}
attr_accessor :document
sig {
- params(document: T.nilable(T.nilable(T.any(String, ::Stripe::Identity::VerificationSession::UpdateParams::Options::Document)))).void
+ params(document: T.nilable(T.any(String, ::Stripe::Identity::VerificationSession::UpdateParams::Options::Document))).void
}
def initialize(document: nil); end
end
diff --git a/rbi/stripe/resources/invoice.rbi b/rbi/stripe/resources/invoice.rbi
index 1564d2a9f..3d7bff82f 100644
--- a/rbi/stripe/resources/invoice.rbi
+++ b/rbi/stripe/resources/invoice.rbi
@@ -902,11 +902,11 @@ module Stripe
attr_accessor :enabled
# The selected installment plan to use for this invoice.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::Card::Installments::Plan))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::Card::Installments::Plan)))
}
attr_accessor :plan
sig {
- params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::Card::Installments::Plan)))).void
+ params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::Card::Installments::Plan))).void
}
def initialize(enabled: nil, plan: nil); end
end
@@ -1002,41 +1002,41 @@ module Stripe
end
# If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::AcssDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::AcssDebit)))
}
attr_accessor :acss_debit
# If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::Bancontact))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::Bancontact)))
}
attr_accessor :bancontact
# If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::Card))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::Card)))
}
attr_accessor :card
# If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance)))
}
attr_accessor :customer_balance
# If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::Konbini))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::Konbini)))
}
attr_accessor :konbini
# If paying by `sepa_debit`, this sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::SepaDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::SepaDebit)))
}
attr_accessor :sepa_debit
# If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount)))
}
attr_accessor :us_bank_account
sig {
- params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::AcssDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::Bancontact))), card: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::Card))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::Konbini))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::SepaDebit))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount)))).void
+ params(acss_debit: T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::AcssDebit)), bancontact: T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::Bancontact)), card: T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::Card)), customer_balance: T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance)), konbini: T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::Konbini)), sepa_debit: T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::SepaDebit)), us_bank_account: T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount))).void
}
def initialize(
acss_debit: nil,
@@ -1049,7 +1049,7 @@ module Stripe
); end
end
# ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :default_mandate
# Payment-method-specific configuration to provide to the invoice’s PaymentIntent.
sig {
@@ -1057,10 +1057,10 @@ module Stripe
}
attr_accessor :payment_method_options
# The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :payment_method_types
sig {
- params(default_mandate: T.nilable(T.nilable(String)), payment_method_options: T.nilable(::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions), payment_method_types: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(default_mandate: T.nilable(String), payment_method_options: T.nilable(::Stripe::Invoice::UpdateParams::PaymentSettings::PaymentMethodOptions), payment_method_types: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
default_mandate: nil,
@@ -1079,7 +1079,7 @@ module Stripe
def initialize(page_size: nil); end
end
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :amount_tax_display
# Invoice pdf rendering options
sig { returns(T.nilable(::Stripe::Invoice::UpdateParams::Rendering::Pdf)) }
@@ -1088,10 +1088,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :template
# The specific version of invoice rendering template to use for this invoice.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :template_version
sig {
- params(amount_tax_display: T.nilable(T.nilable(T.any(String, String))), pdf: T.nilable(::Stripe::Invoice::UpdateParams::Rendering::Pdf), template: T.nilable(String), template_version: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(amount_tax_display: T.nilable(T.any(String, String)), pdf: T.nilable(::Stripe::Invoice::UpdateParams::Rendering::Pdf), template: T.nilable(String), template_version: T.nilable(T.any(String, Integer))).void
}
def initialize(amount_tax_display: nil, pdf: nil, template: nil, template_version: nil); end
end
@@ -1248,10 +1248,10 @@ module Stripe
sig { returns(String) }
attr_accessor :name
# Recipient phone (including extension)
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
sig {
- params(address: ::Stripe::Invoice::UpdateParams::ShippingDetails::Address, name: String, phone: T.nilable(T.nilable(String))).void
+ params(address: ::Stripe::Invoice::UpdateParams::ShippingDetails::Address, name: String, phone: T.nilable(String)).void
}
def initialize(address: nil, name: nil, phone: nil); end
end
@@ -1266,7 +1266,7 @@ module Stripe
def initialize(amount: nil, destination: nil); end
end
# The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/billing/invoices/connect#collecting-fees).
sig { returns(T.nilable(Integer)) }
@@ -1285,7 +1285,7 @@ module Stripe
attr_accessor :collection_method
# A list of up to 4 custom fields to be displayed on the invoice. If a value for `custom_fields` is specified, the list specified will replace the existing custom field list on this invoice. Pass an empty string to remove previously-defined fields.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::UpdateParams::CustomField]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Invoice::UpdateParams::CustomField])))
}
attr_accessor :custom_fields
# The number of days from which the invoice is created until it is due. Only valid for invoices where `collection_method=send_invoice`. This field can only be updated on `draft` invoices.
@@ -1295,24 +1295,22 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :default_payment_method
# ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :default_source
# The tax rates that will apply to any line item that does not have `tax_rates` set. Pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_tax_rates
# An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.
sig { returns(T.nilable(String)) }
attr_accessor :description
# The discounts that will apply to the invoice. Pass an empty string to remove previously-defined discounts.
- sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::UpdateParams::Discount]))))
- }
+ sig { returns(T.nilable(T.any(String, T::Array[::Stripe::Invoice::UpdateParams::Discount]))) }
attr_accessor :discounts
# The date on which payment for this invoice is due. Only valid for invoices where `collection_method=send_invoice`. This field can only be updated on `draft` invoices.
sig { returns(T.nilable(Integer)) }
attr_accessor :due_date
# The date when this invoice is in effect. Same as `finalized_at` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :effective_at
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
@@ -1324,13 +1322,13 @@ module Stripe
sig { returns(T.nilable(::Stripe::Invoice::UpdateParams::Issuer)) }
attr_accessor :issuer
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Set the number for this invoice. If no number is present then a number will be assigned automatically when the invoice is finalized. In many markets, regulations require invoices to be unique, sequential and / or gapless. You are responsible for ensuring this is true across all your different invoicing systems in the event that you edit the invoice number using our API. If you use only Stripe for your invoices and do not change invoice numbers, Stripe handles this aspect of compliance for you automatically.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :number
# The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :on_behalf_of
# Configuration settings for the PaymentIntent that is generated when the invoice is finalized.
sig { returns(T.nilable(::Stripe::Invoice::UpdateParams::PaymentSettings)) }
@@ -1339,25 +1337,19 @@ module Stripe
sig { returns(T.nilable(::Stripe::Invoice::UpdateParams::Rendering)) }
attr_accessor :rendering
# Settings for the cost of shipping for this invoice.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::ShippingCost))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::ShippingCost))) }
attr_accessor :shipping_cost
# Shipping details for the invoice. The Invoice PDF will use the `shipping_details` value if it is set, otherwise the PDF will render the shipping address from the customer.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::ShippingDetails))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::ShippingDetails))) }
attr_accessor :shipping_details
# Extra information about a charge for the customer's credit card statement. It must contain at least one letter. If not specified and this invoice is part of a subscription, the default `statement_descriptor` will be set to the first subscription item's product's `statement_descriptor`.
sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor
# If specified, the funds from the invoice will be transferred to the destination and the ID of the resulting transfer will be found on the invoice's charge. This will be unset if you POST an empty value.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::TransferData))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::TransferData))) }
attr_accessor :transfer_data
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), application_fee_amount: T.nilable(Integer), auto_advance: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::Invoice::UpdateParams::AutomaticTax), automatically_finalizes_at: T.nilable(Integer), collection_method: T.nilable(String), custom_fields: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::UpdateParams::CustomField]))), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(T.nilable(String)), default_tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), description: T.nilable(String), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::UpdateParams::Discount]))), due_date: T.nilable(Integer), effective_at: T.nilable(T.nilable(T.any(String, Integer))), expand: T.nilable(T::Array[String]), footer: T.nilable(String), issuer: T.nilable(::Stripe::Invoice::UpdateParams::Issuer), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), number: T.nilable(T.nilable(String)), on_behalf_of: T.nilable(T.nilable(String)), payment_settings: T.nilable(::Stripe::Invoice::UpdateParams::PaymentSettings), rendering: T.nilable(::Stripe::Invoice::UpdateParams::Rendering), shipping_cost: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::ShippingCost))), shipping_details: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::ShippingDetails))), statement_descriptor: T.nilable(String), transfer_data: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::TransferData)))).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), application_fee_amount: T.nilable(Integer), auto_advance: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::Invoice::UpdateParams::AutomaticTax), automatically_finalizes_at: T.nilable(Integer), collection_method: T.nilable(String), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::Invoice::UpdateParams::CustomField])), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::Invoice::UpdateParams::Discount])), due_date: T.nilable(Integer), effective_at: T.nilable(T.any(String, Integer)), expand: T.nilable(T::Array[String]), footer: T.nilable(String), issuer: T.nilable(::Stripe::Invoice::UpdateParams::Issuer), metadata: T.nilable(T.any(String, T::Hash[String, String])), number: T.nilable(String), on_behalf_of: T.nilable(String), payment_settings: T.nilable(::Stripe::Invoice::UpdateParams::PaymentSettings), rendering: T.nilable(::Stripe::Invoice::UpdateParams::Rendering), shipping_cost: T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::ShippingCost)), shipping_details: T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::ShippingDetails)), statement_descriptor: T.nilable(String), transfer_data: T.nilable(T.any(String, ::Stripe::Invoice::UpdateParams::TransferData))).void
}
def initialize(
account_tax_ids: nil,
@@ -1594,11 +1586,11 @@ module Stripe
attr_accessor :enabled
# The selected installment plan to use for this invoice.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::Card::Installments::Plan))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::Card::Installments::Plan)))
}
attr_accessor :plan
sig {
- params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::Card::Installments::Plan)))).void
+ params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::Card::Installments::Plan))).void
}
def initialize(enabled: nil, plan: nil); end
end
@@ -1694,41 +1686,41 @@ module Stripe
end
# If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::AcssDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::AcssDebit)))
}
attr_accessor :acss_debit
# If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::Bancontact))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::Bancontact)))
}
attr_accessor :bancontact
# If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::Card))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::Card)))
}
attr_accessor :card
# If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance)))
}
attr_accessor :customer_balance
# If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::Konbini))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::Konbini)))
}
attr_accessor :konbini
# If paying by `sepa_debit`, this sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::SepaDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::SepaDebit)))
}
attr_accessor :sepa_debit
# If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount)))
}
attr_accessor :us_bank_account
sig {
- params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::AcssDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::Bancontact))), card: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::Card))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::Konbini))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::SepaDebit))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount)))).void
+ params(acss_debit: T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::AcssDebit)), bancontact: T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::Bancontact)), card: T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::Card)), customer_balance: T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance)), konbini: T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::Konbini)), sepa_debit: T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::SepaDebit)), us_bank_account: T.nilable(T.any(String, ::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount))).void
}
def initialize(
acss_debit: nil,
@@ -1741,7 +1733,7 @@ module Stripe
); end
end
# ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :default_mandate
# Payment-method-specific configuration to provide to the invoice’s PaymentIntent.
sig {
@@ -1749,10 +1741,10 @@ module Stripe
}
attr_accessor :payment_method_options
# The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :payment_method_types
sig {
- params(default_mandate: T.nilable(T.nilable(String)), payment_method_options: T.nilable(::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions), payment_method_types: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(default_mandate: T.nilable(String), payment_method_options: T.nilable(::Stripe::Invoice::CreateParams::PaymentSettings::PaymentMethodOptions), payment_method_types: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
default_mandate: nil,
@@ -1771,7 +1763,7 @@ module Stripe
def initialize(page_size: nil); end
end
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :amount_tax_display
# Invoice pdf rendering options
sig { returns(T.nilable(::Stripe::Invoice::CreateParams::Rendering::Pdf)) }
@@ -1780,10 +1772,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :template
# The specific version of invoice rendering template to use for this invoice.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :template_version
sig {
- params(amount_tax_display: T.nilable(T.nilable(T.any(String, String))), pdf: T.nilable(::Stripe::Invoice::CreateParams::Rendering::Pdf), template: T.nilable(String), template_version: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(amount_tax_display: T.nilable(T.any(String, String)), pdf: T.nilable(::Stripe::Invoice::CreateParams::Rendering::Pdf), template: T.nilable(String), template_version: T.nilable(T.any(String, Integer))).void
}
def initialize(amount_tax_display: nil, pdf: nil, template: nil, template_version: nil); end
end
@@ -1940,10 +1932,10 @@ module Stripe
sig { returns(String) }
attr_accessor :name
# Recipient phone (including extension)
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
sig {
- params(address: ::Stripe::Invoice::CreateParams::ShippingDetails::Address, name: String, phone: T.nilable(T.nilable(String))).void
+ params(address: ::Stripe::Invoice::CreateParams::ShippingDetails::Address, name: String, phone: T.nilable(String)).void
}
def initialize(address: nil, name: nil, phone: nil); end
end
@@ -1958,7 +1950,7 @@ module Stripe
def initialize(amount: nil, destination: nil); end
end
# The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/billing/invoices/connect#collecting-fees).
sig { returns(T.nilable(Integer)) }
@@ -1980,7 +1972,7 @@ module Stripe
attr_accessor :currency
# A list of up to 4 custom fields to be displayed on the invoice.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreateParams::CustomField]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreateParams::CustomField])))
}
attr_accessor :custom_fields
# The ID of the customer who will be billed.
@@ -2002,9 +1994,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :description
# The coupons and promotion codes to redeem into discounts for the invoice. If not specified, inherits the discount from the invoice's customer. Pass an empty string to avoid inheriting any discounts.
- sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreateParams::Discount]))))
- }
+ sig { returns(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreateParams::Discount]))) }
attr_accessor :discounts
# The date on which payment for this invoice is due. Valid only for invoices where `collection_method=send_invoice`.
sig { returns(T.nilable(Integer)) }
@@ -2025,7 +2015,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Invoice::CreateParams::Issuer)) }
attr_accessor :issuer
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Set the number for this invoice. If no number is present then a number will be assigned automatically when the invoice is finalized. In many markets, regulations require invoices to be unique, sequential and / or gapless. You are responsible for ensuring this is true across all your different invoicing systems in the event that you edit the invoice number using our API. If you use only Stripe for your invoices and do not change invoice numbers, Stripe handles this aspect of compliance for you automatically.
sig { returns(T.nilable(String)) }
@@ -2058,7 +2048,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Invoice::CreateParams::TransferData)) }
attr_accessor :transfer_data
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), application_fee_amount: T.nilable(Integer), auto_advance: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::Invoice::CreateParams::AutomaticTax), automatically_finalizes_at: T.nilable(Integer), collection_method: T.nilable(String), currency: T.nilable(String), custom_fields: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreateParams::CustomField]))), customer: T.nilable(String), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T::Array[String]), description: T.nilable(String), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreateParams::Discount]))), due_date: T.nilable(Integer), effective_at: T.nilable(Integer), expand: T.nilable(T::Array[String]), footer: T.nilable(String), from_invoice: T.nilable(::Stripe::Invoice::CreateParams::FromInvoice), issuer: T.nilable(::Stripe::Invoice::CreateParams::Issuer), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), number: T.nilable(String), on_behalf_of: T.nilable(String), payment_settings: T.nilable(::Stripe::Invoice::CreateParams::PaymentSettings), pending_invoice_items_behavior: T.nilable(String), rendering: T.nilable(::Stripe::Invoice::CreateParams::Rendering), shipping_cost: T.nilable(::Stripe::Invoice::CreateParams::ShippingCost), shipping_details: T.nilable(::Stripe::Invoice::CreateParams::ShippingDetails), statement_descriptor: T.nilable(String), subscription: T.nilable(String), transfer_data: T.nilable(::Stripe::Invoice::CreateParams::TransferData)).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), application_fee_amount: T.nilable(Integer), auto_advance: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::Invoice::CreateParams::AutomaticTax), automatically_finalizes_at: T.nilable(Integer), collection_method: T.nilable(String), currency: T.nilable(String), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreateParams::CustomField])), customer: T.nilable(String), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T::Array[String]), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreateParams::Discount])), due_date: T.nilable(Integer), effective_at: T.nilable(Integer), expand: T.nilable(T::Array[String]), footer: T.nilable(String), from_invoice: T.nilable(::Stripe::Invoice::CreateParams::FromInvoice), issuer: T.nilable(::Stripe::Invoice::CreateParams::Issuer), metadata: T.nilable(T.any(String, T::Hash[String, String])), number: T.nilable(String), on_behalf_of: T.nilable(String), payment_settings: T.nilable(::Stripe::Invoice::CreateParams::PaymentSettings), pending_invoice_items_behavior: T.nilable(String), rendering: T.nilable(::Stripe::Invoice::CreateParams::Rendering), shipping_cost: T.nilable(::Stripe::Invoice::CreateParams::ShippingCost), shipping_details: T.nilable(::Stripe::Invoice::CreateParams::ShippingDetails), statement_descriptor: T.nilable(String), subscription: T.nilable(String), transfer_data: T.nilable(::Stripe::Invoice::CreateParams::TransferData)).void
}
def initialize(
account_tax_ids: nil,
@@ -2286,14 +2276,14 @@ module Stripe
attr_accessor :discountable
# The coupons, promotion codes & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::AddLinesParams::Line::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Invoice::AddLinesParams::Line::Discount])))
}
attr_accessor :discounts
# ID of an unassigned invoice item to assign to this invoice. If not provided, a new item will be created.
sig { returns(T.nilable(String)) }
attr_accessor :invoice_item
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
sig { returns(T.nilable(::Stripe::Invoice::AddLinesParams::Line::Period)) }
@@ -2309,14 +2299,14 @@ module Stripe
attr_accessor :quantity
# A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://stripe.com/docs/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://stripe.com/docs/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::AddLinesParams::Line::TaxAmount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Invoice::AddLinesParams::Line::TaxAmount])))
}
attr_accessor :tax_amounts
# The tax rates which apply to the line item. When set, the `default_tax_rates` on the invoice do not apply to this line item. Pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(amount: T.nilable(Integer), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::AddLinesParams::Line::Discount]))), invoice_item: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), period: T.nilable(::Stripe::Invoice::AddLinesParams::Line::Period), price_data: T.nilable(::Stripe::Invoice::AddLinesParams::Line::PriceData), pricing: T.nilable(::Stripe::Invoice::AddLinesParams::Line::Pricing), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::AddLinesParams::Line::TaxAmount]))), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(amount: T.nilable(Integer), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[::Stripe::Invoice::AddLinesParams::Line::Discount])), invoice_item: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), period: T.nilable(::Stripe::Invoice::AddLinesParams::Line::Period), price_data: T.nilable(::Stripe::Invoice::AddLinesParams::Line::PriceData), pricing: T.nilable(::Stripe::Invoice::AddLinesParams::Line::Pricing), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.any(String, T::Array[::Stripe::Invoice::AddLinesParams::Line::TaxAmount])), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
amount: nil,
@@ -2337,13 +2327,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :invoice_metadata
# The line items to add.
sig { returns(T::Array[::Stripe::Invoice::AddLinesParams::Line]) }
attr_accessor :lines
sig {
- params(expand: T.nilable(T::Array[String]), invoice_metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), lines: T::Array[::Stripe::Invoice::AddLinesParams::Line]).void
+ params(expand: T.nilable(T::Array[String]), invoice_metadata: T.nilable(T.any(String, T::Hash[String, String])), lines: T::Array[::Stripe::Invoice::AddLinesParams::Line]).void
}
def initialize(expand: nil, invoice_metadata: nil, lines: nil); end
end
@@ -2384,7 +2374,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :forgive
# ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the payment_method param or the invoice's default_payment_method or default_source, if set.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :mandate
# Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `true` (off-session).
sig { returns(T.nilable(T::Boolean)) }
@@ -2399,7 +2389,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :source
sig {
- params(expand: T.nilable(T::Array[String]), forgive: T.nilable(T::Boolean), mandate: T.nilable(T.nilable(String)), off_session: T.nilable(T::Boolean), paid_out_of_band: T.nilable(T::Boolean), payment_method: T.nilable(String), source: T.nilable(String)).void
+ params(expand: T.nilable(T::Array[String]), forgive: T.nilable(T::Boolean), mandate: T.nilable(String), off_session: T.nilable(T::Boolean), paid_out_of_band: T.nilable(T::Boolean), payment_method: T.nilable(String), source: T.nilable(String)).void
}
def initialize(
expand: nil,
@@ -2426,13 +2416,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :invoice_metadata
# The line items to remove.
sig { returns(T::Array[::Stripe::Invoice::RemoveLinesParams::Line]) }
attr_accessor :lines
sig {
- params(expand: T.nilable(T::Array[String]), invoice_metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), lines: T::Array[::Stripe::Invoice::RemoveLinesParams::Line]).void
+ params(expand: T.nilable(T::Array[String]), invoice_metadata: T.nilable(T.any(String, T::Hash[String, String])), lines: T::Array[::Stripe::Invoice::RemoveLinesParams::Line]).void
}
def initialize(expand: nil, invoice_metadata: nil, lines: nil); end
end
@@ -2616,14 +2606,14 @@ module Stripe
attr_accessor :discountable
# The coupons, promotion codes & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::UpdateLinesParams::Line::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Invoice::UpdateLinesParams::Line::Discount])))
}
attr_accessor :discounts
# ID of an existing line item on the invoice.
sig { returns(String) }
attr_accessor :id
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
sig { returns(T.nilable(::Stripe::Invoice::UpdateLinesParams::Line::Period)) }
@@ -2639,14 +2629,14 @@ module Stripe
attr_accessor :quantity
# A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://stripe.com/docs/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://stripe.com/docs/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::UpdateLinesParams::Line::TaxAmount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Invoice::UpdateLinesParams::Line::TaxAmount])))
}
attr_accessor :tax_amounts
# The tax rates which apply to the line item. When set, the `default_tax_rates` on the invoice do not apply to this line item. Pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(amount: T.nilable(Integer), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::UpdateLinesParams::Line::Discount]))), id: String, metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), period: T.nilable(::Stripe::Invoice::UpdateLinesParams::Line::Period), price_data: T.nilable(::Stripe::Invoice::UpdateLinesParams::Line::PriceData), pricing: T.nilable(::Stripe::Invoice::UpdateLinesParams::Line::Pricing), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::UpdateLinesParams::Line::TaxAmount]))), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(amount: T.nilable(Integer), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[::Stripe::Invoice::UpdateLinesParams::Line::Discount])), id: String, metadata: T.nilable(T.any(String, T::Hash[String, String])), period: T.nilable(::Stripe::Invoice::UpdateLinesParams::Line::Period), price_data: T.nilable(::Stripe::Invoice::UpdateLinesParams::Line::PriceData), pricing: T.nilable(::Stripe::Invoice::UpdateLinesParams::Line::Pricing), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.any(String, T::Array[::Stripe::Invoice::UpdateLinesParams::Line::TaxAmount])), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
amount: nil,
@@ -2667,13 +2657,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :invoice_metadata
# The line items to update.
sig { returns(T::Array[::Stripe::Invoice::UpdateLinesParams::Line]) }
attr_accessor :lines
sig {
- params(expand: T.nilable(T::Array[String]), invoice_metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), lines: T::Array[::Stripe::Invoice::UpdateLinesParams::Line]).void
+ params(expand: T.nilable(T::Array[String]), invoice_metadata: T.nilable(T.any(String, T::Hash[String, String])), lines: T::Array[::Stripe::Invoice::UpdateLinesParams::Line]).void
}
def initialize(expand: nil, invoice_metadata: nil, lines: nil); end
end
@@ -2789,9 +2779,9 @@ module Stripe
end
class Tax < Stripe::RequestParams
# A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :ip_address
- sig { params(ip_address: T.nilable(T.nilable(String))).void }
+ sig { params(ip_address: T.nilable(String)).void }
def initialize(ip_address: nil); end
end
class TaxId < Stripe::RequestParams
@@ -2806,19 +2796,19 @@ module Stripe
end
# The customer's address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::CustomerDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::CustomerDetails::Address)))
}
attr_accessor :address
# The customer's shipping information. Appears on invoices emailed to this customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::CustomerDetails::Shipping))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::CustomerDetails::Shipping)))
}
attr_accessor :shipping
# Tax details about the customer.
sig { returns(T.nilable(::Stripe::Invoice::CreatePreviewParams::CustomerDetails::Tax)) }
attr_accessor :tax
# The customer's tax exemption. One of `none`, `exempt`, or `reverse`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :tax_exempt
# The customer's tax IDs.
sig {
@@ -2826,7 +2816,7 @@ module Stripe
}
attr_accessor :tax_ids
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::CustomerDetails::Address))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::CustomerDetails::Shipping))), tax: T.nilable(::Stripe::Invoice::CreatePreviewParams::CustomerDetails::Tax), tax_exempt: T.nilable(T.nilable(T.any(String, String))), tax_ids: T.nilable(T::Array[::Stripe::Invoice::CreatePreviewParams::CustomerDetails::TaxId])).void
+ params(address: T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::CustomerDetails::Address)), shipping: T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::CustomerDetails::Shipping)), tax: T.nilable(::Stripe::Invoice::CreatePreviewParams::CustomerDetails::Tax), tax_exempt: T.nilable(T.any(String, String)), tax_ids: T.nilable(T::Array[::Stripe::Invoice::CreatePreviewParams::CustomerDetails::TaxId])).void
}
def initialize(address: nil, shipping: nil, tax: nil, tax_exempt: nil, tax_ids: nil); end
end
@@ -2912,14 +2902,14 @@ module Stripe
attr_accessor :discountable
# The coupons to redeem into discounts for the invoice item in the preview.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::InvoiceItem::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::InvoiceItem::Discount])))
}
attr_accessor :discounts
# The ID of the invoice item to update in preview. If not specified, a new invoice item will be added to the preview of the upcoming invoice.
sig { returns(T.nilable(String)) }
attr_accessor :invoiceitem
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
sig { returns(T.nilable(::Stripe::Invoice::CreatePreviewParams::InvoiceItem::Period)) }
@@ -2937,10 +2927,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :tax_behavior
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :tax_code
# The tax rates that apply to the item. When set, any `default_tax_rates` do not apply to this item.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
# The integer unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This unit_amount will be multiplied by the quantity to get the full amount. If you want to apply a credit to the customer's account, pass a negative unit_amount.
sig { returns(T.nilable(Integer)) }
@@ -2949,7 +2939,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :unit_amount_decimal
sig {
- params(amount: T.nilable(Integer), currency: T.nilable(String), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::InvoiceItem::Discount]))), invoiceitem: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), period: T.nilable(::Stripe::Invoice::CreatePreviewParams::InvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::Invoice::CreatePreviewParams::InvoiceItem::PriceData), quantity: T.nilable(Integer), tax_behavior: T.nilable(String), tax_code: T.nilable(T.nilable(String)), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
+ params(amount: T.nilable(Integer), currency: T.nilable(String), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::InvoiceItem::Discount])), invoiceitem: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), period: T.nilable(::Stripe::Invoice::CreatePreviewParams::InvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::Invoice::CreatePreviewParams::InvoiceItem::PriceData), quantity: T.nilable(Integer), tax_behavior: T.nilable(String), tax_code: T.nilable(String), tax_rates: T.nilable(T.any(String, T::Array[String])), unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
}
def initialize(
amount: nil,
@@ -3049,10 +3039,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(discounts: T.nilable(T::Array[::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(discounts: T.nilable(T::Array[::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
discounts: nil,
@@ -3135,7 +3125,7 @@ module Stripe
def initialize(account: nil, type: nil); end
end
# The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
sig { returns(T.nilable(Integer)) }
@@ -3146,7 +3136,7 @@ module Stripe
}
attr_accessor :issuer
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::InvoiceSettings::Issuer)).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::InvoiceSettings::Issuer)).void
}
def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end
end
@@ -3218,12 +3208,12 @@ module Stripe
end
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Item::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Item::BillingThresholds)))
}
attr_accessor :billing_thresholds
# The coupons to redeem into discounts for the subscription item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Item::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Item::Discount])))
}
attr_accessor :discounts
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a configuration item. Metadata on a configuration item will update the underlying subscription item's `metadata` when the phase is entered, adding new keys and replacing existing keys. Individual keys in the subscription item's `metadata` can be unset by posting an empty value to them in the configuration item's `metadata`. To unset all keys in the subscription item's `metadata`, update the subscription item directly or unset every key individually from the configuration item's `metadata`.
@@ -3244,10 +3234,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Item::BillingThresholds))), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Item::Discount]))), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(billing_thresholds: T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
billing_thresholds: nil,
@@ -3288,7 +3278,7 @@ module Stripe
attr_accessor :billing_cycle_anchor
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::BillingThresholds)))
}
attr_accessor :billing_thresholds
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
@@ -3301,14 +3291,14 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :default_payment_method
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://stripe.com/docs/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_tax_rates
# Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Discount])))
}
attr_accessor :discounts
# The number of intervals the phase should last. If set, `end_date` must not be set.
@@ -3356,7 +3346,7 @@ module Stripe
sig { returns(T.nilable(T.any(Integer, String))) }
attr_accessor :trial_end
sig {
- params(add_invoice_items: T.nilable(T::Array[::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::BillingThresholds))), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), description: T.nilable(T.nilable(String)), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Discount]))), duration: T.nilable(::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Duration), end_date: T.nilable(T.any(Integer, String)), invoice_settings: T.nilable(::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::InvoiceSettings), items: T::Array[::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Item], iterations: T.nilable(Integer), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), proration_behavior: T.nilable(String), start_date: T.nilable(T.any(Integer, String)), transfer_data: T.nilable(::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::TransferData), trial: T.nilable(T::Boolean), trial_end: T.nilable(T.any(Integer, String))).void
+ params(add_invoice_items: T.nilable(T::Array[::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::BillingThresholds)), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Discount])), duration: T.nilable(::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Duration), end_date: T.nilable(T.any(Integer, String)), invoice_settings: T.nilable(::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::InvoiceSettings), items: T::Array[::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Item], iterations: T.nilable(Integer), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), proration_behavior: T.nilable(String), start_date: T.nilable(T.any(Integer, String)), transfer_data: T.nilable(::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::TransferData), trial: T.nilable(T::Boolean), trial_end: T.nilable(T.any(Integer, String))).void
}
def initialize(
add_invoice_items: nil,
@@ -3486,7 +3476,7 @@ module Stripe
end
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::SubscriptionDetails::Item::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::SubscriptionDetails::Item::BillingThresholds)))
}
attr_accessor :billing_thresholds
# Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
@@ -3497,14 +3487,14 @@ module Stripe
attr_accessor :deleted
# The coupons to redeem into discounts for the subscription item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::SubscriptionDetails::Item::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::SubscriptionDetails::Item::Discount])))
}
attr_accessor :discounts
# Subscription item to update.
sig { returns(T.nilable(String)) }
attr_accessor :id
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Plan ID for this item, as a string.
sig { returns(T.nilable(String)) }
@@ -3521,10 +3511,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::SubscriptionDetails::Item::BillingThresholds))), clear_usage: T.nilable(T::Boolean), deleted: T.nilable(T::Boolean), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::SubscriptionDetails::Item::Discount]))), id: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::Invoice::CreatePreviewParams::SubscriptionDetails::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(billing_thresholds: T.nilable(T.any(String, ::Stripe::Invoice::CreatePreviewParams::SubscriptionDetails::Item::BillingThresholds)), clear_usage: T.nilable(T::Boolean), deleted: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::SubscriptionDetails::Item::Discount])), id: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::Invoice::CreatePreviewParams::SubscriptionDetails::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
billing_thresholds: nil,
@@ -3549,7 +3539,7 @@ module Stripe
}
attr_accessor :billing_mode
# A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
- sig { returns(T.nilable(T.nilable(T.any(String, T.any(Integer, String))))) }
+ sig { returns(T.nilable(T.any(String, T.any(Integer, String)))) }
attr_accessor :cancel_at
# Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`.
sig { returns(T.nilable(T::Boolean)) }
@@ -3558,7 +3548,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :cancel_now
# If provided, the invoice returned will preview updating or creating a subscription with these default tax rates. The default tax rates will apply to any line item that does not have `tax_rates` set.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_tax_rates
# A list of up to 20 subscription items, each with an attached price.
sig {
@@ -3581,7 +3571,7 @@ module Stripe
sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :trial_end
sig {
- params(billing_cycle_anchor: T.nilable(T.any(String, Integer)), billing_mode: T.nilable(::Stripe::Invoice::CreatePreviewParams::SubscriptionDetails::BillingMode), cancel_at: T.nilable(T.nilable(T.any(String, T.any(Integer, String)))), cancel_at_period_end: T.nilable(T::Boolean), cancel_now: T.nilable(T::Boolean), default_tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), items: T.nilable(T::Array[::Stripe::Invoice::CreatePreviewParams::SubscriptionDetails::Item]), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), resume_at: T.nilable(String), start_date: T.nilable(Integer), trial_end: T.nilable(T.any(String, Integer))).void
+ params(billing_cycle_anchor: T.nilable(T.any(String, Integer)), billing_mode: T.nilable(::Stripe::Invoice::CreatePreviewParams::SubscriptionDetails::BillingMode), cancel_at: T.nilable(T.any(String, T.any(Integer, String))), cancel_at_period_end: T.nilable(T::Boolean), cancel_now: T.nilable(T::Boolean), default_tax_rates: T.nilable(T.any(String, T::Array[String])), items: T.nilable(T::Array[::Stripe::Invoice::CreatePreviewParams::SubscriptionDetails::Item]), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), resume_at: T.nilable(String), start_date: T.nilable(Integer), trial_end: T.nilable(T.any(String, Integer))).void
}
def initialize(
billing_cycle_anchor: nil,
@@ -3612,7 +3602,7 @@ module Stripe
attr_accessor :customer_details
# The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the subscription or customer. This works for both coupons directly applied to an invoice and coupons applied to a subscription. Pass an empty string to avoid inheriting any discounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::Discount])))
}
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
@@ -3625,7 +3615,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Invoice::CreatePreviewParams::Issuer)) }
attr_accessor :issuer
# The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :on_behalf_of
# Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified.
sig { returns(T.nilable(String)) }
@@ -3643,7 +3633,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Invoice::CreatePreviewParams::SubscriptionDetails)) }
attr_accessor :subscription_details
sig {
- params(automatic_tax: T.nilable(::Stripe::Invoice::CreatePreviewParams::AutomaticTax), currency: T.nilable(String), customer: T.nilable(String), customer_details: T.nilable(::Stripe::Invoice::CreatePreviewParams::CustomerDetails), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::Discount]))), expand: T.nilable(T::Array[String]), invoice_items: T.nilable(T::Array[::Stripe::Invoice::CreatePreviewParams::InvoiceItem]), issuer: T.nilable(::Stripe::Invoice::CreatePreviewParams::Issuer), on_behalf_of: T.nilable(T.nilable(String)), preview_mode: T.nilable(String), schedule: T.nilable(String), schedule_details: T.nilable(::Stripe::Invoice::CreatePreviewParams::ScheduleDetails), subscription: T.nilable(String), subscription_details: T.nilable(::Stripe::Invoice::CreatePreviewParams::SubscriptionDetails)).void
+ params(automatic_tax: T.nilable(::Stripe::Invoice::CreatePreviewParams::AutomaticTax), currency: T.nilable(String), customer: T.nilable(String), customer_details: T.nilable(::Stripe::Invoice::CreatePreviewParams::CustomerDetails), discounts: T.nilable(T.any(String, T::Array[::Stripe::Invoice::CreatePreviewParams::Discount])), expand: T.nilable(T::Array[String]), invoice_items: T.nilable(T::Array[::Stripe::Invoice::CreatePreviewParams::InvoiceItem]), issuer: T.nilable(::Stripe::Invoice::CreatePreviewParams::Issuer), on_behalf_of: T.nilable(String), preview_mode: T.nilable(String), schedule: T.nilable(String), schedule_details: T.nilable(::Stripe::Invoice::CreatePreviewParams::ScheduleDetails), subscription: T.nilable(String), subscription_details: T.nilable(::Stripe::Invoice::CreatePreviewParams::SubscriptionDetails)).void
}
def initialize(
automatic_tax: nil,
diff --git a/rbi/stripe/resources/invoice_item.rbi b/rbi/stripe/resources/invoice_item.rbi
index f3f62accd..79afa8b1c 100644
--- a/rbi/stripe/resources/invoice_item.rbi
+++ b/rbi/stripe/resources/invoice_item.rbi
@@ -187,14 +187,14 @@ module Stripe
attr_accessor :discountable
# The coupons, promotion codes & existing discounts which apply to the invoice item or invoice line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceItem::UpdateParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceItem::UpdateParams::Discount])))
}
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
sig { returns(T.nilable(::Stripe::InvoiceItem::UpdateParams::Period)) }
@@ -212,16 +212,16 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :tax_behavior
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :tax_code
# The tax rates which apply to the invoice item. When set, the `default_tax_rates` on the invoice do not apply to this invoice item. Pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
# The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This `unit_amount_decimal` will be multiplied by the quantity to get the full amount. Passing in a negative `unit_amount_decimal` will reduce the `amount_due` on the invoice. Accepts at most 12 decimal places.
sig { returns(T.nilable(String)) }
attr_accessor :unit_amount_decimal
sig {
- params(amount: T.nilable(Integer), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceItem::UpdateParams::Discount]))), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), period: T.nilable(::Stripe::InvoiceItem::UpdateParams::Period), price_data: T.nilable(::Stripe::InvoiceItem::UpdateParams::PriceData), pricing: T.nilable(::Stripe::InvoiceItem::UpdateParams::Pricing), quantity: T.nilable(Integer), tax_behavior: T.nilable(String), tax_code: T.nilable(T.nilable(String)), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), unit_amount_decimal: T.nilable(String)).void
+ params(amount: T.nilable(Integer), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceItem::UpdateParams::Discount])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), period: T.nilable(::Stripe::InvoiceItem::UpdateParams::Period), price_data: T.nilable(::Stripe::InvoiceItem::UpdateParams::PriceData), pricing: T.nilable(::Stripe::InvoiceItem::UpdateParams::Pricing), quantity: T.nilable(Integer), tax_behavior: T.nilable(String), tax_code: T.nilable(String), tax_rates: T.nilable(T.any(String, T::Array[String])), unit_amount_decimal: T.nilable(String)).void
}
def initialize(
amount: nil,
@@ -374,7 +374,7 @@ module Stripe
attr_accessor :discountable
# The coupons and promotion codes to redeem into discounts for the invoice item or invoice line item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceItem::CreateParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceItem::CreateParams::Discount])))
}
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
@@ -384,7 +384,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :invoice
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
sig { returns(T.nilable(::Stripe::InvoiceItem::CreateParams::Period)) }
@@ -405,7 +405,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :tax_behavior
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :tax_code
# The tax rates which apply to the invoice item. When set, the `default_tax_rates` on the invoice do not apply to this invoice item.
sig { returns(T.nilable(T::Array[String])) }
@@ -414,7 +414,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :unit_amount_decimal
sig {
- params(amount: T.nilable(Integer), currency: T.nilable(String), customer: String, description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceItem::CreateParams::Discount]))), expand: T.nilable(T::Array[String]), invoice: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), period: T.nilable(::Stripe::InvoiceItem::CreateParams::Period), price_data: T.nilable(::Stripe::InvoiceItem::CreateParams::PriceData), pricing: T.nilable(::Stripe::InvoiceItem::CreateParams::Pricing), quantity: T.nilable(Integer), subscription: T.nilable(String), tax_behavior: T.nilable(String), tax_code: T.nilable(T.nilable(String)), tax_rates: T.nilable(T::Array[String]), unit_amount_decimal: T.nilable(String)).void
+ params(amount: T.nilable(Integer), currency: T.nilable(String), customer: String, description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceItem::CreateParams::Discount])), expand: T.nilable(T::Array[String]), invoice: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), period: T.nilable(::Stripe::InvoiceItem::CreateParams::Period), price_data: T.nilable(::Stripe::InvoiceItem::CreateParams::PriceData), pricing: T.nilable(::Stripe::InvoiceItem::CreateParams::Pricing), quantity: T.nilable(Integer), subscription: T.nilable(String), tax_behavior: T.nilable(String), tax_code: T.nilable(String), tax_rates: T.nilable(T::Array[String]), unit_amount_decimal: T.nilable(String)).void
}
def initialize(
amount: nil,
diff --git a/rbi/stripe/resources/invoice_line_item.rbi b/rbi/stripe/resources/invoice_line_item.rbi
index 1cdf99d2d..61c689221 100644
--- a/rbi/stripe/resources/invoice_line_item.rbi
+++ b/rbi/stripe/resources/invoice_line_item.rbi
@@ -373,14 +373,14 @@ module Stripe
attr_accessor :discountable
# The coupons, promotion codes & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceLineItem::UpdateParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceLineItem::UpdateParams::Discount])))
}
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
sig { returns(T.nilable(::Stripe::InvoiceLineItem::UpdateParams::Period)) }
@@ -396,14 +396,14 @@ module Stripe
attr_accessor :quantity
# A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://stripe.com/docs/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://stripe.com/docs/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceLineItem::UpdateParams::TaxAmount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceLineItem::UpdateParams::TaxAmount])))
}
attr_accessor :tax_amounts
# The tax rates which apply to the line item. When set, the `default_tax_rates` on the invoice do not apply to this line item. Pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(amount: T.nilable(Integer), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceLineItem::UpdateParams::Discount]))), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), period: T.nilable(::Stripe::InvoiceLineItem::UpdateParams::Period), price_data: T.nilable(::Stripe::InvoiceLineItem::UpdateParams::PriceData), pricing: T.nilable(::Stripe::InvoiceLineItem::UpdateParams::Pricing), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceLineItem::UpdateParams::TaxAmount]))), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(amount: T.nilable(Integer), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceLineItem::UpdateParams::Discount])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), period: T.nilable(::Stripe::InvoiceLineItem::UpdateParams::Period), price_data: T.nilable(::Stripe::InvoiceLineItem::UpdateParams::PriceData), pricing: T.nilable(::Stripe::InvoiceLineItem::UpdateParams::Pricing), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceLineItem::UpdateParams::TaxAmount])), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
amount: nil,
diff --git a/rbi/stripe/resources/issuing/authorization.rbi b/rbi/stripe/resources/issuing/authorization.rbi
index 70ec30877..83eaf7f55 100644
--- a/rbi/stripe/resources/issuing/authorization.rbi
+++ b/rbi/stripe/resources/issuing/authorization.rbi
@@ -430,10 +430,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, metadata: nil); end
end
@@ -445,10 +445,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(amount: nil, expand: nil, metadata: nil); end
end
@@ -457,10 +457,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/resources/issuing/card.rbi b/rbi/stripe/resources/issuing/card.rbi
index d45e13ae4..96f59d613 100644
--- a/rbi/stripe/resources/issuing/card.rbi
+++ b/rbi/stripe/resources/issuing/card.rbi
@@ -474,7 +474,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :replacement_reason
# The second line to print on the card. Max length: 24 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :second_line
# The address where the card will be shipped.
sig { returns(T.nilable(::Stripe::Issuing::Card::CreateParams::Shipping)) }
@@ -489,7 +489,7 @@ module Stripe
sig { returns(String) }
attr_accessor :type
sig {
- params(cardholder: T.nilable(String), currency: String, expand: T.nilable(T::Array[String]), financial_account: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), personalization_design: T.nilable(String), pin: T.nilable(::Stripe::Issuing::Card::CreateParams::Pin), replacement_for: T.nilable(String), replacement_reason: T.nilable(String), second_line: T.nilable(T.nilable(String)), shipping: T.nilable(::Stripe::Issuing::Card::CreateParams::Shipping), spending_controls: T.nilable(::Stripe::Issuing::Card::CreateParams::SpendingControls), status: T.nilable(String), type: String).void
+ params(cardholder: T.nilable(String), currency: String, expand: T.nilable(T::Array[String]), financial_account: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), personalization_design: T.nilable(String), pin: T.nilable(::Stripe::Issuing::Card::CreateParams::Pin), replacement_for: T.nilable(String), replacement_reason: T.nilable(String), second_line: T.nilable(String), shipping: T.nilable(::Stripe::Issuing::Card::CreateParams::Shipping), spending_controls: T.nilable(::Stripe::Issuing::Card::CreateParams::SpendingControls), status: T.nilable(String), type: String).void
}
def initialize(
cardholder: nil,
@@ -653,7 +653,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Attribute for param field personalization_design
sig { returns(T.nilable(String)) }
@@ -671,7 +671,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :status
sig {
- params(cancellation_reason: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), personalization_design: T.nilable(String), pin: T.nilable(::Stripe::Issuing::Card::UpdateParams::Pin), shipping: T.nilable(::Stripe::Issuing::Card::UpdateParams::Shipping), spending_controls: T.nilable(::Stripe::Issuing::Card::UpdateParams::SpendingControls), status: T.nilable(String)).void
+ params(cancellation_reason: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), personalization_design: T.nilable(String), pin: T.nilable(::Stripe::Issuing::Card::UpdateParams::Pin), shipping: T.nilable(::Stripe::Issuing::Card::UpdateParams::Shipping), spending_controls: T.nilable(::Stripe::Issuing::Card::UpdateParams::SpendingControls), status: T.nilable(String)).void
}
def initialize(
cancellation_reason: nil,
diff --git a/rbi/stripe/resources/issuing/cardholder.rbi b/rbi/stripe/resources/issuing/cardholder.rbi
index 017e157b3..e4b76016e 100644
--- a/rbi/stripe/resources/issuing/cardholder.rbi
+++ b/rbi/stripe/resources/issuing/cardholder.rbi
@@ -304,10 +304,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :ip
# The user agent of the browser from which the cardholder accepted the Authorized User Terms.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :user_agent
sig {
- params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
}
def initialize(date: nil, ip: nil, user_agent: nil); end
end
@@ -546,10 +546,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :ip
# The user agent of the browser from which the cardholder accepted the Authorized User Terms.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :user_agent
sig {
- params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
}
def initialize(date: nil, ip: nil, user_agent: nil); end
end
diff --git a/rbi/stripe/resources/issuing/dispute.rbi b/rbi/stripe/resources/issuing/dispute.rbi
index dbe0f5db9..8ed228742 100644
--- a/rbi/stripe/resources/issuing/dispute.rbi
+++ b/rbi/stripe/resources/issuing/dispute.rbi
@@ -277,37 +277,37 @@ module Stripe
class Evidence < Stripe::RequestParams
class Canceled < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Date when order was canceled.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :canceled_at
# Whether the cardholder was provided with a cancellation policy.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Boolean)))) }
+ sig { returns(T.nilable(T.any(String, T::Boolean))) }
attr_accessor :cancellation_policy_provided
# Reason for canceling the order.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :cancellation_reason
# Date when the cardholder expected to receive the product.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expected_at
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Description of the merchandise or service that was purchased.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# Whether the product was a merchandise or service.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :product_type
# Result of cardholder's attempt to return the product.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :return_status
# Date when the product was returned or attempted to be returned.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :returned_at
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), canceled_at: T.nilable(T.nilable(T.any(String, Integer))), cancellation_policy_provided: T.nilable(T.nilable(T.any(String, T::Boolean))), cancellation_reason: T.nilable(T.nilable(String)), expected_at: T.nilable(T.nilable(T.any(String, Integer))), explanation: T.nilable(T.nilable(String)), product_description: T.nilable(T.nilable(String)), product_type: T.nilable(T.nilable(T.any(String, String))), return_status: T.nilable(T.nilable(T.any(String, String))), returned_at: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(additional_documentation: T.nilable(String), canceled_at: T.nilable(T.any(String, Integer)), cancellation_policy_provided: T.nilable(T.any(String, T::Boolean)), cancellation_reason: T.nilable(String), expected_at: T.nilable(T.any(String, Integer)), explanation: T.nilable(String), product_description: T.nilable(String), product_type: T.nilable(T.any(String, String)), return_status: T.nilable(T.any(String, String)), returned_at: T.nilable(T.any(String, Integer))).void
}
def initialize(
additional_documentation: nil,
@@ -324,25 +324,25 @@ module Stripe
end
class Duplicate < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the card statement showing that the product had already been paid for.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :card_statement
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the receipt showing that the product had been paid for in cash.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :cash_receipt
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Image of the front and back of the check that was used to pay for the product.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :check_image
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Transaction (e.g., ipi_...) that the disputed transaction is a duplicate of. Of the two or more transactions that are copies of each other, this is original undisputed one.
sig { returns(T.nilable(String)) }
attr_accessor :original_transaction
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), card_statement: T.nilable(T.nilable(String)), cash_receipt: T.nilable(T.nilable(String)), check_image: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String)), original_transaction: T.nilable(String)).void
+ params(additional_documentation: T.nilable(String), card_statement: T.nilable(String), cash_receipt: T.nilable(String), check_image: T.nilable(String), explanation: T.nilable(String), original_transaction: T.nilable(String)).void
}
def initialize(
additional_documentation: nil,
@@ -355,37 +355,37 @@ module Stripe
end
class Fraudulent < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String))).void
+ params(additional_documentation: T.nilable(String), explanation: T.nilable(String)).void
}
def initialize(additional_documentation: nil, explanation: nil); end
end
class MerchandiseNotAsDescribed < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Date when the product was received.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :received_at
# Description of the cardholder's attempt to return the product.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :return_description
# Result of cardholder's attempt to return the product.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :return_status
# Date when the product was returned or attempted to be returned.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :returned_at
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String)), received_at: T.nilable(T.nilable(T.any(String, Integer))), return_description: T.nilable(T.nilable(String)), return_status: T.nilable(T.nilable(T.any(String, String))), returned_at: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(additional_documentation: T.nilable(String), explanation: T.nilable(String), received_at: T.nilable(T.any(String, Integer)), return_description: T.nilable(String), return_status: T.nilable(T.any(String, String)), returned_at: T.nilable(T.any(String, Integer))).void
}
def initialize(
additional_documentation: nil,
@@ -398,34 +398,34 @@ module Stripe
end
class NoValidAuthorization < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String))).void
+ params(additional_documentation: T.nilable(String), explanation: T.nilable(String)).void
}
def initialize(additional_documentation: nil, explanation: nil); end
end
class NotReceived < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Date when the cardholder expected to receive the product.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expected_at
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Description of the merchandise or service that was purchased.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# Whether the product was a merchandise or service.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :product_type
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), expected_at: T.nilable(T.nilable(T.any(String, Integer))), explanation: T.nilable(T.nilable(String)), product_description: T.nilable(T.nilable(String)), product_type: T.nilable(T.nilable(T.any(String, String)))).void
+ params(additional_documentation: T.nilable(String), expected_at: T.nilable(T.any(String, Integer)), explanation: T.nilable(String), product_description: T.nilable(String), product_type: T.nilable(T.any(String, String))).void
}
def initialize(
additional_documentation: nil,
@@ -437,19 +437,19 @@ module Stripe
end
class Other < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Description of the merchandise or service that was purchased.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# Whether the product was a merchandise or service.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :product_type
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String)), product_description: T.nilable(T.nilable(String)), product_type: T.nilable(T.nilable(T.any(String, String)))).void
+ params(additional_documentation: T.nilable(String), explanation: T.nilable(String), product_description: T.nilable(String), product_type: T.nilable(T.any(String, String))).void
}
def initialize(
additional_documentation: nil,
@@ -460,22 +460,22 @@ module Stripe
end
class ServiceNotAsDescribed < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Date when order was canceled.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :canceled_at
# Reason for canceling the order.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :cancellation_reason
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Date when the product was received.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :received_at
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), canceled_at: T.nilable(T.nilable(T.any(String, Integer))), cancellation_reason: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String)), received_at: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(additional_documentation: T.nilable(String), canceled_at: T.nilable(T.any(String, Integer)), cancellation_reason: T.nilable(String), explanation: T.nilable(String), received_at: T.nilable(T.any(String, Integer))).void
}
def initialize(
additional_documentation: nil,
@@ -487,37 +487,37 @@ module Stripe
end
# Evidence provided when `reason` is 'canceled'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::Canceled))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::Canceled)))
}
attr_accessor :canceled
# Evidence provided when `reason` is 'duplicate'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::Duplicate))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::Duplicate)))
}
attr_accessor :duplicate
# Evidence provided when `reason` is 'fraudulent'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::Fraudulent))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::Fraudulent)))
}
attr_accessor :fraudulent
# Evidence provided when `reason` is 'merchandise_not_as_described'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::MerchandiseNotAsDescribed))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::MerchandiseNotAsDescribed)))
}
attr_accessor :merchandise_not_as_described
# Evidence provided when `reason` is 'no_valid_authorization'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::NoValidAuthorization))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::NoValidAuthorization)))
}
attr_accessor :no_valid_authorization
# Evidence provided when `reason` is 'not_received'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::NotReceived))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::NotReceived)))
}
attr_accessor :not_received
# Evidence provided when `reason` is 'other'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::Other))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::Other)))
}
attr_accessor :other
# The reason for filing the dispute. The evidence should be submitted in the field of the same name.
@@ -525,11 +525,11 @@ module Stripe
attr_accessor :reason
# Evidence provided when `reason` is 'service_not_as_described'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::ServiceNotAsDescribed))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::ServiceNotAsDescribed)))
}
attr_accessor :service_not_as_described
sig {
- params(canceled: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::Canceled))), duplicate: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::Duplicate))), fraudulent: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::Fraudulent))), merchandise_not_as_described: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::MerchandiseNotAsDescribed))), no_valid_authorization: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::NoValidAuthorization))), not_received: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::NotReceived))), other: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::Other))), reason: T.nilable(String), service_not_as_described: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::ServiceNotAsDescribed)))).void
+ params(canceled: T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::Canceled)), duplicate: T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::Duplicate)), fraudulent: T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::Fraudulent)), merchandise_not_as_described: T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::MerchandiseNotAsDescribed)), no_valid_authorization: T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::NoValidAuthorization)), not_received: T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::NotReceived)), other: T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::Other)), reason: T.nilable(String), service_not_as_described: T.nilable(T.any(String, ::Stripe::Issuing::Dispute::CreateParams::Evidence::ServiceNotAsDescribed))).void
}
def initialize(
canceled: nil,
@@ -584,37 +584,37 @@ module Stripe
class Evidence < Stripe::RequestParams
class Canceled < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Date when order was canceled.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :canceled_at
# Whether the cardholder was provided with a cancellation policy.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Boolean)))) }
+ sig { returns(T.nilable(T.any(String, T::Boolean))) }
attr_accessor :cancellation_policy_provided
# Reason for canceling the order.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :cancellation_reason
# Date when the cardholder expected to receive the product.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expected_at
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Description of the merchandise or service that was purchased.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# Whether the product was a merchandise or service.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :product_type
# Result of cardholder's attempt to return the product.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :return_status
# Date when the product was returned or attempted to be returned.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :returned_at
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), canceled_at: T.nilable(T.nilable(T.any(String, Integer))), cancellation_policy_provided: T.nilable(T.nilable(T.any(String, T::Boolean))), cancellation_reason: T.nilable(T.nilable(String)), expected_at: T.nilable(T.nilable(T.any(String, Integer))), explanation: T.nilable(T.nilable(String)), product_description: T.nilable(T.nilable(String)), product_type: T.nilable(T.nilable(T.any(String, String))), return_status: T.nilable(T.nilable(T.any(String, String))), returned_at: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(additional_documentation: T.nilable(String), canceled_at: T.nilable(T.any(String, Integer)), cancellation_policy_provided: T.nilable(T.any(String, T::Boolean)), cancellation_reason: T.nilable(String), expected_at: T.nilable(T.any(String, Integer)), explanation: T.nilable(String), product_description: T.nilable(String), product_type: T.nilable(T.any(String, String)), return_status: T.nilable(T.any(String, String)), returned_at: T.nilable(T.any(String, Integer))).void
}
def initialize(
additional_documentation: nil,
@@ -631,25 +631,25 @@ module Stripe
end
class Duplicate < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the card statement showing that the product had already been paid for.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :card_statement
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the receipt showing that the product had been paid for in cash.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :cash_receipt
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Image of the front and back of the check that was used to pay for the product.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :check_image
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Transaction (e.g., ipi_...) that the disputed transaction is a duplicate of. Of the two or more transactions that are copies of each other, this is original undisputed one.
sig { returns(T.nilable(String)) }
attr_accessor :original_transaction
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), card_statement: T.nilable(T.nilable(String)), cash_receipt: T.nilable(T.nilable(String)), check_image: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String)), original_transaction: T.nilable(String)).void
+ params(additional_documentation: T.nilable(String), card_statement: T.nilable(String), cash_receipt: T.nilable(String), check_image: T.nilable(String), explanation: T.nilable(String), original_transaction: T.nilable(String)).void
}
def initialize(
additional_documentation: nil,
@@ -662,37 +662,37 @@ module Stripe
end
class Fraudulent < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String))).void
+ params(additional_documentation: T.nilable(String), explanation: T.nilable(String)).void
}
def initialize(additional_documentation: nil, explanation: nil); end
end
class MerchandiseNotAsDescribed < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Date when the product was received.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :received_at
# Description of the cardholder's attempt to return the product.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :return_description
# Result of cardholder's attempt to return the product.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :return_status
# Date when the product was returned or attempted to be returned.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :returned_at
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String)), received_at: T.nilable(T.nilable(T.any(String, Integer))), return_description: T.nilable(T.nilable(String)), return_status: T.nilable(T.nilable(T.any(String, String))), returned_at: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(additional_documentation: T.nilable(String), explanation: T.nilable(String), received_at: T.nilable(T.any(String, Integer)), return_description: T.nilable(String), return_status: T.nilable(T.any(String, String)), returned_at: T.nilable(T.any(String, Integer))).void
}
def initialize(
additional_documentation: nil,
@@ -705,34 +705,34 @@ module Stripe
end
class NoValidAuthorization < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String))).void
+ params(additional_documentation: T.nilable(String), explanation: T.nilable(String)).void
}
def initialize(additional_documentation: nil, explanation: nil); end
end
class NotReceived < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Date when the cardholder expected to receive the product.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expected_at
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Description of the merchandise or service that was purchased.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# Whether the product was a merchandise or service.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :product_type
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), expected_at: T.nilable(T.nilable(T.any(String, Integer))), explanation: T.nilable(T.nilable(String)), product_description: T.nilable(T.nilable(String)), product_type: T.nilable(T.nilable(T.any(String, String)))).void
+ params(additional_documentation: T.nilable(String), expected_at: T.nilable(T.any(String, Integer)), explanation: T.nilable(String), product_description: T.nilable(String), product_type: T.nilable(T.any(String, String))).void
}
def initialize(
additional_documentation: nil,
@@ -744,19 +744,19 @@ module Stripe
end
class Other < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Description of the merchandise or service that was purchased.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# Whether the product was a merchandise or service.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :product_type
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String)), product_description: T.nilable(T.nilable(String)), product_type: T.nilable(T.nilable(T.any(String, String)))).void
+ params(additional_documentation: T.nilable(String), explanation: T.nilable(String), product_description: T.nilable(String), product_type: T.nilable(T.any(String, String))).void
}
def initialize(
additional_documentation: nil,
@@ -767,22 +767,22 @@ module Stripe
end
class ServiceNotAsDescribed < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Date when order was canceled.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :canceled_at
# Reason for canceling the order.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :cancellation_reason
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Date when the product was received.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :received_at
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), canceled_at: T.nilable(T.nilable(T.any(String, Integer))), cancellation_reason: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String)), received_at: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(additional_documentation: T.nilable(String), canceled_at: T.nilable(T.any(String, Integer)), cancellation_reason: T.nilable(String), explanation: T.nilable(String), received_at: T.nilable(T.any(String, Integer))).void
}
def initialize(
additional_documentation: nil,
@@ -794,37 +794,37 @@ module Stripe
end
# Evidence provided when `reason` is 'canceled'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::Canceled))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::Canceled)))
}
attr_accessor :canceled
# Evidence provided when `reason` is 'duplicate'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::Duplicate))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::Duplicate)))
}
attr_accessor :duplicate
# Evidence provided when `reason` is 'fraudulent'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::Fraudulent))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::Fraudulent)))
}
attr_accessor :fraudulent
# Evidence provided when `reason` is 'merchandise_not_as_described'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::MerchandiseNotAsDescribed))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::MerchandiseNotAsDescribed)))
}
attr_accessor :merchandise_not_as_described
# Evidence provided when `reason` is 'no_valid_authorization'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::NoValidAuthorization))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::NoValidAuthorization)))
}
attr_accessor :no_valid_authorization
# Evidence provided when `reason` is 'not_received'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::NotReceived))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::NotReceived)))
}
attr_accessor :not_received
# Evidence provided when `reason` is 'other'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::Other))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::Other)))
}
attr_accessor :other
# The reason for filing the dispute. The evidence should be submitted in the field of the same name.
@@ -832,11 +832,11 @@ module Stripe
attr_accessor :reason
# Evidence provided when `reason` is 'service_not_as_described'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::ServiceNotAsDescribed))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::ServiceNotAsDescribed)))
}
attr_accessor :service_not_as_described
sig {
- params(canceled: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::Canceled))), duplicate: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::Duplicate))), fraudulent: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::Fraudulent))), merchandise_not_as_described: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::MerchandiseNotAsDescribed))), no_valid_authorization: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::NoValidAuthorization))), not_received: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::NotReceived))), other: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::Other))), reason: T.nilable(String), service_not_as_described: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::ServiceNotAsDescribed)))).void
+ params(canceled: T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::Canceled)), duplicate: T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::Duplicate)), fraudulent: T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::Fraudulent)), merchandise_not_as_described: T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::MerchandiseNotAsDescribed)), no_valid_authorization: T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::NoValidAuthorization)), not_received: T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::NotReceived)), other: T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::Other)), reason: T.nilable(String), service_not_as_described: T.nilable(T.any(String, ::Stripe::Issuing::Dispute::UpdateParams::Evidence::ServiceNotAsDescribed))).void
}
def initialize(
canceled: nil,
@@ -860,10 +860,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(amount: T.nilable(Integer), evidence: T.nilable(::Stripe::Issuing::Dispute::UpdateParams::Evidence), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(amount: T.nilable(Integer), evidence: T.nilable(::Stripe::Issuing::Dispute::UpdateParams::Evidence), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(amount: nil, evidence: nil, expand: nil, metadata: nil); end
end
@@ -872,10 +872,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/resources/issuing/personalization_design.rbi b/rbi/stripe/resources/issuing/personalization_design.rbi
index c930e232f..bc3420e3c 100644
--- a/rbi/stripe/resources/issuing/personalization_design.rbi
+++ b/rbi/stripe/resources/issuing/personalization_design.rbi
@@ -127,19 +127,19 @@ module Stripe
class CreateParams < Stripe::RequestParams
class CarrierText < Stripe::RequestParams
# The footer body text of the carrier letter.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :footer_body
# The footer title text of the carrier letter.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :footer_title
# The header body text of the carrier letter.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :header_body
# The header title text of the carrier letter.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :header_title
sig {
- params(footer_body: T.nilable(T.nilable(String)), footer_title: T.nilable(T.nilable(String)), header_body: T.nilable(T.nilable(String)), header_title: T.nilable(T.nilable(String))).void
+ params(footer_body: T.nilable(String), footer_title: T.nilable(String), header_body: T.nilable(String), header_title: T.nilable(String)).void
}
def initialize(
footer_body: nil,
@@ -204,19 +204,19 @@ module Stripe
class UpdateParams < Stripe::RequestParams
class CarrierText < Stripe::RequestParams
# The footer body text of the carrier letter.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :footer_body
# The footer title text of the carrier letter.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :footer_title
# The header body text of the carrier letter.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :header_body
# The header title text of the carrier letter.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :header_title
sig {
- params(footer_body: T.nilable(T.nilable(String)), footer_title: T.nilable(T.nilable(String)), header_body: T.nilable(T.nilable(String)), header_title: T.nilable(T.nilable(String))).void
+ params(footer_body: T.nilable(String), footer_title: T.nilable(String), header_body: T.nilable(String), header_title: T.nilable(String)).void
}
def initialize(
footer_body: nil,
@@ -233,24 +233,24 @@ module Stripe
def initialize(is_default: nil); end
end
# The file for the card logo, for use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :card_logo
# Hash containing carrier text, for use with physical bundles that support carrier text.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::PersonalizationDesign::UpdateParams::CarrierText))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::PersonalizationDesign::UpdateParams::CarrierText)))
}
attr_accessor :carrier_text
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :lookup_key
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
# Friendly display name. Providing an empty string will set the field to null.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# The physical bundle object belonging to this personalization design.
sig { returns(T.nilable(String)) }
@@ -264,7 +264,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :transfer_lookup_key
sig {
- params(card_logo: T.nilable(T.nilable(String)), carrier_text: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::PersonalizationDesign::UpdateParams::CarrierText))), expand: T.nilable(T::Array[String]), lookup_key: T.nilable(T.nilable(String)), metadata: T.nilable(T::Hash[String, String]), name: T.nilable(T.nilable(String)), physical_bundle: T.nilable(String), preferences: T.nilable(::Stripe::Issuing::PersonalizationDesign::UpdateParams::Preferences), transfer_lookup_key: T.nilable(T::Boolean)).void
+ params(card_logo: T.nilable(String), carrier_text: T.nilable(T.any(String, ::Stripe::Issuing::PersonalizationDesign::UpdateParams::CarrierText)), expand: T.nilable(T::Array[String]), lookup_key: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), name: T.nilable(String), physical_bundle: T.nilable(String), preferences: T.nilable(::Stripe::Issuing::PersonalizationDesign::UpdateParams::Preferences), transfer_lookup_key: T.nilable(T::Boolean)).void
}
def initialize(
card_logo: nil,
diff --git a/rbi/stripe/resources/issuing/transaction.rbi b/rbi/stripe/resources/issuing/transaction.rbi
index a3d48d71c..37be3baa1 100644
--- a/rbi/stripe/resources/issuing/transaction.rbi
+++ b/rbi/stripe/resources/issuing/transaction.rbi
@@ -358,10 +358,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/resources/payment_intent.rbi b/rbi/stripe/resources/payment_intent.rbi
index ecac9899c..a2656449c 100644
--- a/rbi/stripe/resources/payment_intent.rbi
+++ b/rbi/stripe/resources/payment_intent.rbi
@@ -2237,23 +2237,23 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
sig { returns(T.nilable(String)) }
attr_accessor :tax_id
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
+ params(address: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodData::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), tax_id: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
end
@@ -2710,7 +2710,7 @@ module Stripe
# A URL for custom mandate text to render during confirmation step.
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :custom_mandate_url
# Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
sig { returns(T.nilable(String)) }
@@ -2722,7 +2722,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transaction_type
sig {
- params(custom_mandate_url: T.nilable(T.nilable(String)), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
+ params(custom_mandate_url: T.nilable(String), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
}
def initialize(
custom_mandate_url: nil,
@@ -2745,7 +2745,7 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
@@ -2754,7 +2754,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :verification_method
sig {
- params(mandate_options: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String), verification_method: T.nilable(String)).void
+ params(mandate_options: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String), verification_method: T.nilable(String)).void
}
def initialize(
mandate_options: nil,
@@ -2769,7 +2769,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Preferred language of the Affirm authorization page that the customer is redirected to.
sig { returns(T.nilable(String)) }
@@ -2786,7 +2786,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String)).void
+ params(capture_method: T.nilable(String), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(capture_method: nil, preferred_locale: nil, setup_future_usage: nil); end
end
@@ -2796,7 +2796,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes.
# This field differs from the statement descriptor and item name.
@@ -2814,7 +2814,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), reference: T.nilable(String), setup_future_usage: T.nilable(String)).void
+ params(capture_method: T.nilable(String), reference: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(capture_method: nil, reference: nil, setup_future_usage: nil); end
end
@@ -2828,9 +2828,9 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
- sig { params(setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void }
+ sig { params(setup_future_usage: T.nilable(T.any(String, String))).void }
def initialize(setup_future_usage: nil); end
end
class Alma < Stripe::RequestParams
@@ -2839,9 +2839,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class AmazonPay < Stripe::RequestParams
@@ -2850,7 +2850,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -2859,10 +2859,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -2876,22 +2876,22 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(setup_future_usage: nil, target_date: nil); end
end
class BacsDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -2908,13 +2908,13 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(mandate_options: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(mandate_options: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
end
@@ -2931,10 +2931,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(preferred_language: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(preferred_language: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(preferred_language: nil, setup_future_usage: nil); end
end
@@ -2944,9 +2944,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class Blik < Stripe::RequestParams
@@ -2962,11 +2962,9 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
- sig {
- params(code: T.nilable(String), setup_future_usage: T.nilable(T.nilable(String))).void
- }
+ sig { params(code: T.nilable(String), setup_future_usage: T.nilable(String)).void }
def initialize(code: nil, setup_future_usage: nil); end
end
class Boleto < Stripe::RequestParams
@@ -2982,10 +2980,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(expires_after_days: T.nilable(Integer), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(expires_after_days: T.nilable(Integer), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(expires_after_days: nil, setup_future_usage: nil); end
end
@@ -3015,11 +3013,11 @@ module Stripe
# The selected installment plan to use for this payment attempt.
# This parameter can only be provided during confirmation.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Card::Installments::Plan))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Card::Installments::Plan)))
}
attr_accessor :plan
sig {
- params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Card::Installments::Plan)))).void
+ params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Card::Installments::Plan))).void
}
def initialize(enabled: nil, plan: nil); end
end
@@ -3152,7 +3150,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
sig { returns(T.nilable(String)) }
@@ -3204,13 +3202,13 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_suffix_kana
# Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_suffix_kanji
# If 3D Secure authentication was performed with a third-party provider,
# the authentication details to use for this payment.
@@ -3219,7 +3217,7 @@ module Stripe
}
attr_accessor :three_d_secure
sig {
- params(capture_method: T.nilable(T.nilable(String)), cvc_token: T.nilable(String), installments: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Card::Installments), mandate_options: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Card::MandateOptions), moto: T.nilable(T::Boolean), network: T.nilable(String), request_extended_authorization: T.nilable(String), request_incremental_authorization: T.nilable(String), request_multicapture: T.nilable(String), request_overcapture: T.nilable(String), request_three_d_secure: T.nilable(String), require_cvc_recollection: T.nilable(T::Boolean), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), statement_descriptor_suffix_kana: T.nilable(T.nilable(String)), statement_descriptor_suffix_kanji: T.nilable(T.nilable(String)), three_d_secure: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Card::ThreeDSecure)).void
+ params(capture_method: T.nilable(String), cvc_token: T.nilable(String), installments: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Card::Installments), mandate_options: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Card::MandateOptions), moto: T.nilable(T::Boolean), network: T.nilable(String), request_extended_authorization: T.nilable(String), request_incremental_authorization: T.nilable(String), request_multicapture: T.nilable(String), request_overcapture: T.nilable(String), request_three_d_secure: T.nilable(String), require_cvc_recollection: T.nilable(T::Boolean), setup_future_usage: T.nilable(T.any(String, String)), statement_descriptor_suffix_kana: T.nilable(String), statement_descriptor_suffix_kanji: T.nilable(String), three_d_secure: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Card::ThreeDSecure)).void
}
def initialize(
capture_method: nil,
@@ -3274,7 +3272,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -3285,10 +3283,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -3428,9 +3426,9 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
- sig { params(setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void }
+ sig { params(setup_future_usage: T.nilable(T.any(String, String))).void }
def initialize(setup_future_usage: nil); end
end
class InteracPresent < Stripe::RequestParams; end
@@ -3440,7 +3438,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -3449,10 +3447,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -3528,7 +3526,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# On-demand details if setting up or charging an on-demand payment.
sig {
@@ -3551,11 +3549,11 @@ module Stripe
attr_accessor :setup_future_usage
# Subscription details if setting up or charging a subscription.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Klarna::Subscription]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Klarna::Subscription])))
}
attr_accessor :subscriptions
sig {
- params(capture_method: T.nilable(T.nilable(String)), on_demand: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Klarna::Subscription])))).void
+ params(capture_method: T.nilable(String), on_demand: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.any(String, T::Array[::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Klarna::Subscription]))).void
}
def initialize(
capture_method: nil,
@@ -3567,16 +3565,16 @@ module Stripe
end
class Konbini < Stripe::RequestParams
# An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :confirmation_number
# The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expires_after_days
# The timestamp at which the Konbini payment instructions will expire. Only one of `expires_after_days` or `expires_at` may be set.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expires_at
# A product descriptor of up to 22 characters, which will appear to customers at the convenience store.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -3590,7 +3588,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(confirmation_number: T.nilable(T.nilable(String)), expires_after_days: T.nilable(T.nilable(T.any(String, Integer))), expires_at: T.nilable(T.nilable(T.any(String, Integer))), product_description: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(String)).void
+ params(confirmation_number: T.nilable(String), expires_after_days: T.nilable(T.any(String, Integer)), expires_at: T.nilable(T.any(String, Integer)), product_description: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(
confirmation_number: nil,
@@ -3606,7 +3604,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -3615,10 +3613,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -3628,7 +3626,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# [Deprecated] This is a legacy parameter that no longer has any function.
sig { returns(T.nilable(String)) }
@@ -3642,10 +3640,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), persistent_token: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), persistent_token: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, persistent_token: nil, setup_future_usage: nil); end
end
@@ -3655,7 +3653,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -3669,7 +3667,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(String)).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -3694,7 +3692,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -3703,10 +3701,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -3720,13 +3718,13 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(setup_future_usage: nil, target_date: nil); end
end
@@ -3777,9 +3775,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class Paynow < Stripe::RequestParams
@@ -3799,7 +3797,7 @@ module Stripe
end
class Paypal < Stripe::RequestParams
# Controls when the funds will be captured from the customer's account.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
sig { returns(T.nilable(String)) }
@@ -3819,10 +3817,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), preferred_locale: T.nilable(String), reference: T.nilable(String), risk_correlation_id: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), preferred_locale: T.nilable(String), reference: T.nilable(String), risk_correlation_id: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(
capture_method: nil,
@@ -3876,7 +3874,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -3885,10 +3883,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -3898,9 +3896,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class Satispay < Stripe::RequestParams
@@ -3909,17 +3907,17 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class SepaDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -3936,19 +3934,19 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(mandate_options: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(mandate_options: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
end
class Sofort < Stripe::RequestParams
# Language shown to the payer on redirect.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :preferred_language
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -3959,16 +3957,16 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(preferred_language: T.nilable(T.nilable(T.any(String, String))), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(preferred_language: T.nilable(T.any(String, String)), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(preferred_language: nil, setup_future_usage: nil); end
end
class Swish < Stripe::RequestParams
# A reference for this payment to be displayed in the Swish app.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -3981,9 +3979,7 @@ module Stripe
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
- sig {
- params(reference: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(String)).void
- }
+ sig { params(reference: T.nilable(String), setup_future_usage: T.nilable(String)).void }
def initialize(reference: nil, setup_future_usage: nil); end
end
class Twint < Stripe::RequestParams
@@ -4031,9 +4027,9 @@ module Stripe
end
class MandateOptions < Stripe::RequestParams
# The method used to collect offline mandate customer acceptance.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :collection_method
- sig { params(collection_method: T.nilable(T.nilable(String))).void }
+ sig { params(collection_method: T.nilable(String)).void }
def initialize(collection_method: nil); end
end
class Networks < Stripe::RequestParams
@@ -4059,7 +4055,7 @@ module Stripe
}
attr_accessor :networks
# Preferred transaction settlement speed
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :preferred_settlement_speed
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -4070,7 +4066,7 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
@@ -4079,7 +4075,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :verification_method
sig {
- params(financial_connections: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), mandate_options: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::UsBankAccount::MandateOptions), networks: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::UsBankAccount::Networks), preferred_settlement_speed: T.nilable(T.nilable(T.any(String, String))), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String), verification_method: T.nilable(String)).void
+ params(financial_connections: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), mandate_options: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::UsBankAccount::MandateOptions), networks: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::UsBankAccount::Networks), preferred_settlement_speed: T.nilable(T.any(String, String)), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String), verification_method: T.nilable(String)).void
}
def initialize(
financial_connections: nil,
@@ -4131,256 +4127,256 @@ module Stripe
end
# If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AcssDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AcssDebit)))
}
attr_accessor :acss_debit
# If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Affirm))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Affirm)))
}
attr_accessor :affirm
# If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AfterpayClearpay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AfterpayClearpay)))
}
attr_accessor :afterpay_clearpay
# If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Alipay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Alipay)))
}
attr_accessor :alipay
# If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Alma))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Alma)))
}
attr_accessor :alma
# If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AmazonPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AmazonPay)))
}
attr_accessor :amazon_pay
# If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AuBecsDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AuBecsDebit)))
}
attr_accessor :au_becs_debit
# If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::BacsDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::BacsDebit)))
}
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Bancontact))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Bancontact)))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Billie))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Billie)))
}
attr_accessor :billie
# If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Blik))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Blik)))
}
attr_accessor :blik
# If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Boleto))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Boleto)))
}
attr_accessor :boleto
# Configuration for any card payments attempted on this PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Card))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Card)))
}
attr_accessor :card
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::CardPresent))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::CardPresent)))
}
attr_accessor :card_present
# If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Cashapp))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Cashapp)))
}
attr_accessor :cashapp
# If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Crypto))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Crypto)))
}
attr_accessor :crypto
# If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::CustomerBalance))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::CustomerBalance)))
}
attr_accessor :customer_balance
# If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Eps))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Eps)))
}
attr_accessor :eps
# If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Fpx))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Fpx)))
}
attr_accessor :fpx
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Giropay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Giropay)))
}
attr_accessor :giropay
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Grabpay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Grabpay)))
}
attr_accessor :grabpay
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Ideal))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Ideal)))
}
attr_accessor :ideal
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::InteracPresent))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::InteracPresent)))
}
attr_accessor :interac_present
# If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::KakaoPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::KakaoPay)))
}
attr_accessor :kakao_pay
# If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Klarna))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Klarna)))
}
attr_accessor :klarna
# If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Konbini))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Konbini)))
}
attr_accessor :konbini
# If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::KrCard))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::KrCard)))
}
attr_accessor :kr_card
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Link))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Link)))
}
attr_accessor :link
# If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Mobilepay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Mobilepay)))
}
attr_accessor :mobilepay
# If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Multibanco))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Multibanco)))
}
attr_accessor :multibanco
# If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::NaverPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::NaverPay)))
}
attr_accessor :naver_pay
# If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::NzBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::NzBankAccount)))
}
attr_accessor :nz_bank_account
# If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Oxxo))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Oxxo)))
}
attr_accessor :oxxo
# If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::P24))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::P24)))
}
attr_accessor :p24
# If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::PayByBank))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::PayByBank)))
}
attr_accessor :pay_by_bank
# If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Payco))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Payco)))
}
attr_accessor :payco
# If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Paynow))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Paynow)))
}
attr_accessor :paynow
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Paypal))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Paypal)))
}
attr_accessor :paypal
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Pix))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Pix)))
}
attr_accessor :pix
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Promptpay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Promptpay)))
}
attr_accessor :promptpay
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::RevolutPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::RevolutPay)))
}
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::SamsungPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::SamsungPay)))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Satispay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Satispay)))
}
attr_accessor :satispay
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::SepaDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::SepaDebit)))
}
attr_accessor :sepa_debit
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Sofort))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Sofort)))
}
attr_accessor :sofort
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Swish))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Swish)))
}
attr_accessor :swish
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Twint))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Twint)))
}
attr_accessor :twint
# If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::UsBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::UsBankAccount)))
}
attr_accessor :us_bank_account
# If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::WechatPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::WechatPay)))
}
attr_accessor :wechat_pay
# If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Zip))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Zip)))
}
attr_accessor :zip
sig {
- params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AcssDebit))), affirm: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Affirm))), afterpay_clearpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AfterpayClearpay))), alipay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Alipay))), alma: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Alma))), amazon_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AmazonPay))), au_becs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AuBecsDebit))), bacs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::BacsDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Bancontact))), billie: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Billie))), blik: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Blik))), boleto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Boleto))), card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Card))), card_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::CardPresent))), cashapp: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Cashapp))), crypto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Crypto))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::CustomerBalance))), eps: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Eps))), fpx: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Fpx))), giropay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Giropay))), grabpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Grabpay))), ideal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Ideal))), interac_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::InteracPresent))), kakao_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::KakaoPay))), klarna: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Klarna))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Konbini))), kr_card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::KrCard))), link: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Link))), mobilepay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Mobilepay))), multibanco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Multibanco))), naver_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::NaverPay))), nz_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::NzBankAccount))), oxxo: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Oxxo))), p24: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::P24))), pay_by_bank: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::PayByBank))), payco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Payco))), paynow: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Paynow))), paypal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Paypal))), pix: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Pix))), promptpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Promptpay))), revolut_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::RevolutPay))), samsung_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::SamsungPay))), satispay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Satispay))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::SepaDebit))), sofort: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Sofort))), swish: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Swish))), twint: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Twint))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::UsBankAccount))), wechat_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::WechatPay))), zip: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Zip)))).void
+ params(acss_debit: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AcssDebit)), affirm: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Affirm)), afterpay_clearpay: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AfterpayClearpay)), alipay: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Alipay)), alma: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Alma)), amazon_pay: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AmazonPay)), au_becs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::AuBecsDebit)), bacs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::BacsDebit)), bancontact: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Bancontact)), billie: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Billie)), blik: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Blik)), boleto: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Boleto)), card: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Card)), card_present: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::CardPresent)), cashapp: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Cashapp)), crypto: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Crypto)), customer_balance: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::CustomerBalance)), eps: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Eps)), fpx: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Fpx)), giropay: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Giropay)), grabpay: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Grabpay)), ideal: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Ideal)), interac_present: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::InteracPresent)), kakao_pay: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::KakaoPay)), klarna: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Klarna)), konbini: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Konbini)), kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::KrCard)), link: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Link)), mobilepay: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Mobilepay)), multibanco: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Multibanco)), naver_pay: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::NaverPay)), nz_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::NzBankAccount)), oxxo: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Oxxo)), p24: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::P24)), pay_by_bank: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::PayByBank)), payco: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Payco)), paynow: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Paynow)), paypal: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Paypal)), pix: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Pix)), promptpay: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Promptpay)), revolut_pay: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::RevolutPay)), samsung_pay: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::SamsungPay)), satispay: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Satispay)), sepa_debit: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::SepaDebit)), sofort: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Sofort)), swish: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Swish)), twint: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Twint)), us_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::UsBankAccount)), wechat_pay: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::WechatPay)), zip: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::Zip))).void
}
def initialize(
acss_debit: nil,
@@ -4559,9 +4555,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :mandate
# This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::MandateData))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::MandateData))) }
attr_accessor :mandate_data
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
sig { returns(T.nilable(T::Hash[String, String])) }
@@ -4633,7 +4627,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :use_stripe_sdk
sig {
- params(amount: Integer, application_fee_amount: T.nilable(Integer), automatic_payment_methods: T.nilable(::Stripe::PaymentIntent::CreateParams::AutomaticPaymentMethods), capture_method: T.nilable(String), confirm: T.nilable(T::Boolean), confirmation_method: T.nilable(String), confirmation_token: T.nilable(String), currency: String, customer: T.nilable(String), description: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::MandateData))), metadata: T.nilable(T::Hash[String, String]), off_session: T.nilable(T.any(T::Boolean, String)), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntent::CreateParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), setup_future_usage: T.nilable(String), shipping: T.nilable(::Stripe::PaymentIntent::CreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::CreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void
+ params(amount: Integer, application_fee_amount: T.nilable(Integer), automatic_payment_methods: T.nilable(::Stripe::PaymentIntent::CreateParams::AutomaticPaymentMethods), capture_method: T.nilable(String), confirm: T.nilable(T::Boolean), confirmation_method: T.nilable(String), confirmation_token: T.nilable(String), currency: String, customer: T.nilable(String), description: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, ::Stripe::PaymentIntent::CreateParams::MandateData)), metadata: T.nilable(T::Hash[String, String]), off_session: T.nilable(T.any(T::Boolean, String)), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntent::CreateParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), setup_future_usage: T.nilable(String), shipping: T.nilable(::Stripe::PaymentIntent::CreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::CreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void
}
def initialize(
amount: nil,
@@ -4748,23 +4742,23 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
sig { returns(T.nilable(String)) }
attr_accessor :tax_id
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
+ params(address: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), tax_id: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
end
@@ -5221,7 +5215,7 @@ module Stripe
# A URL for custom mandate text to render during confirmation step.
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :custom_mandate_url
# Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
sig { returns(T.nilable(String)) }
@@ -5233,7 +5227,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transaction_type
sig {
- params(custom_mandate_url: T.nilable(T.nilable(String)), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
+ params(custom_mandate_url: T.nilable(String), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
}
def initialize(
custom_mandate_url: nil,
@@ -5256,7 +5250,7 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
@@ -5265,7 +5259,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :verification_method
sig {
- params(mandate_options: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AcssDebit::MandateOptions), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String), verification_method: T.nilable(String)).void
+ params(mandate_options: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AcssDebit::MandateOptions), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String), verification_method: T.nilable(String)).void
}
def initialize(
mandate_options: nil,
@@ -5280,7 +5274,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Preferred language of the Affirm authorization page that the customer is redirected to.
sig { returns(T.nilable(String)) }
@@ -5297,7 +5291,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String)).void
+ params(capture_method: T.nilable(String), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(capture_method: nil, preferred_locale: nil, setup_future_usage: nil); end
end
@@ -5307,7 +5301,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes.
# This field differs from the statement descriptor and item name.
@@ -5325,7 +5319,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), reference: T.nilable(String), setup_future_usage: T.nilable(String)).void
+ params(capture_method: T.nilable(String), reference: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(capture_method: nil, reference: nil, setup_future_usage: nil); end
end
@@ -5339,9 +5333,9 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
- sig { params(setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void }
+ sig { params(setup_future_usage: T.nilable(T.any(String, String))).void }
def initialize(setup_future_usage: nil); end
end
class Alma < Stripe::RequestParams
@@ -5350,9 +5344,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class AmazonPay < Stripe::RequestParams
@@ -5361,7 +5355,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -5370,10 +5364,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -5387,22 +5381,22 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(setup_future_usage: nil, target_date: nil); end
end
class BacsDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -5419,13 +5413,13 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(mandate_options: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::BacsDebit::MandateOptions), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(mandate_options: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::BacsDebit::MandateOptions), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
end
@@ -5442,10 +5436,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(preferred_language: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(preferred_language: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(preferred_language: nil, setup_future_usage: nil); end
end
@@ -5455,9 +5449,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class Blik < Stripe::RequestParams
@@ -5473,11 +5467,9 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
- sig {
- params(code: T.nilable(String), setup_future_usage: T.nilable(T.nilable(String))).void
- }
+ sig { params(code: T.nilable(String), setup_future_usage: T.nilable(String)).void }
def initialize(code: nil, setup_future_usage: nil); end
end
class Boleto < Stripe::RequestParams
@@ -5493,10 +5485,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(expires_after_days: T.nilable(Integer), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(expires_after_days: T.nilable(Integer), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(expires_after_days: nil, setup_future_usage: nil); end
end
@@ -5526,11 +5518,11 @@ module Stripe
# The selected installment plan to use for this payment attempt.
# This parameter can only be provided during confirmation.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Card::Installments::Plan))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Card::Installments::Plan)))
}
attr_accessor :plan
sig {
- params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Card::Installments::Plan)))).void
+ params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Card::Installments::Plan))).void
}
def initialize(enabled: nil, plan: nil); end
end
@@ -5663,7 +5655,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
sig { returns(T.nilable(String)) }
@@ -5715,13 +5707,13 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_suffix_kana
# Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_suffix_kanji
# If 3D Secure authentication was performed with a third-party provider,
# the authentication details to use for this payment.
@@ -5730,7 +5722,7 @@ module Stripe
}
attr_accessor :three_d_secure
sig {
- params(capture_method: T.nilable(T.nilable(String)), cvc_token: T.nilable(String), installments: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Card::Installments), mandate_options: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Card::MandateOptions), moto: T.nilable(T::Boolean), network: T.nilable(String), request_extended_authorization: T.nilable(String), request_incremental_authorization: T.nilable(String), request_multicapture: T.nilable(String), request_overcapture: T.nilable(String), request_three_d_secure: T.nilable(String), require_cvc_recollection: T.nilable(T::Boolean), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), statement_descriptor_suffix_kana: T.nilable(T.nilable(String)), statement_descriptor_suffix_kanji: T.nilable(T.nilable(String)), three_d_secure: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure)).void
+ params(capture_method: T.nilable(String), cvc_token: T.nilable(String), installments: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Card::Installments), mandate_options: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Card::MandateOptions), moto: T.nilable(T::Boolean), network: T.nilable(String), request_extended_authorization: T.nilable(String), request_incremental_authorization: T.nilable(String), request_multicapture: T.nilable(String), request_overcapture: T.nilable(String), request_three_d_secure: T.nilable(String), require_cvc_recollection: T.nilable(T::Boolean), setup_future_usage: T.nilable(T.any(String, String)), statement_descriptor_suffix_kana: T.nilable(String), statement_descriptor_suffix_kanji: T.nilable(String), three_d_secure: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure)).void
}
def initialize(
capture_method: nil,
@@ -5785,7 +5777,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -5796,10 +5788,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -5939,9 +5931,9 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
- sig { params(setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void }
+ sig { params(setup_future_usage: T.nilable(T.any(String, String))).void }
def initialize(setup_future_usage: nil); end
end
class InteracPresent < Stripe::RequestParams; end
@@ -5951,7 +5943,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -5960,10 +5952,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -6039,7 +6031,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# On-demand details if setting up or charging an on-demand payment.
sig {
@@ -6062,11 +6054,11 @@ module Stripe
attr_accessor :setup_future_usage
# Subscription details if setting up or charging a subscription.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Klarna::Subscription]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Klarna::Subscription])))
}
attr_accessor :subscriptions
sig {
- params(capture_method: T.nilable(T.nilable(String)), on_demand: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Klarna::Subscription])))).void
+ params(capture_method: T.nilable(String), on_demand: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.any(String, T::Array[::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Klarna::Subscription]))).void
}
def initialize(
capture_method: nil,
@@ -6078,16 +6070,16 @@ module Stripe
end
class Konbini < Stripe::RequestParams
# An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :confirmation_number
# The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expires_after_days
# The timestamp at which the Konbini payment instructions will expire. Only one of `expires_after_days` or `expires_at` may be set.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expires_at
# A product descriptor of up to 22 characters, which will appear to customers at the convenience store.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -6101,7 +6093,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(confirmation_number: T.nilable(T.nilable(String)), expires_after_days: T.nilable(T.nilable(T.any(String, Integer))), expires_at: T.nilable(T.nilable(T.any(String, Integer))), product_description: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(String)).void
+ params(confirmation_number: T.nilable(String), expires_after_days: T.nilable(T.any(String, Integer)), expires_at: T.nilable(T.any(String, Integer)), product_description: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(
confirmation_number: nil,
@@ -6117,7 +6109,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -6126,10 +6118,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -6139,7 +6131,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# [Deprecated] This is a legacy parameter that no longer has any function.
sig { returns(T.nilable(String)) }
@@ -6153,10 +6145,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), persistent_token: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), persistent_token: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, persistent_token: nil, setup_future_usage: nil); end
end
@@ -6166,7 +6158,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -6180,7 +6172,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(String)).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -6205,7 +6197,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -6214,10 +6206,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -6231,13 +6223,13 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(setup_future_usage: nil, target_date: nil); end
end
@@ -6288,9 +6280,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class Paynow < Stripe::RequestParams
@@ -6310,7 +6302,7 @@ module Stripe
end
class Paypal < Stripe::RequestParams
# Controls when the funds will be captured from the customer's account.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
sig { returns(T.nilable(String)) }
@@ -6330,10 +6322,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), preferred_locale: T.nilable(String), reference: T.nilable(String), risk_correlation_id: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), preferred_locale: T.nilable(String), reference: T.nilable(String), risk_correlation_id: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(
capture_method: nil,
@@ -6387,7 +6379,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -6396,10 +6388,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -6409,9 +6401,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class Satispay < Stripe::RequestParams
@@ -6420,17 +6412,17 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class SepaDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -6447,19 +6439,19 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(mandate_options: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::SepaDebit::MandateOptions), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(mandate_options: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::SepaDebit::MandateOptions), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
end
class Sofort < Stripe::RequestParams
# Language shown to the payer on redirect.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :preferred_language
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -6470,16 +6462,16 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(preferred_language: T.nilable(T.nilable(T.any(String, String))), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(preferred_language: T.nilable(T.any(String, String)), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(preferred_language: nil, setup_future_usage: nil); end
end
class Swish < Stripe::RequestParams
# A reference for this payment to be displayed in the Swish app.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -6492,9 +6484,7 @@ module Stripe
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
- sig {
- params(reference: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(String)).void
- }
+ sig { params(reference: T.nilable(String), setup_future_usage: T.nilable(String)).void }
def initialize(reference: nil, setup_future_usage: nil); end
end
class Twint < Stripe::RequestParams
@@ -6542,9 +6532,9 @@ module Stripe
end
class MandateOptions < Stripe::RequestParams
# The method used to collect offline mandate customer acceptance.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :collection_method
- sig { params(collection_method: T.nilable(T.nilable(String))).void }
+ sig { params(collection_method: T.nilable(String)).void }
def initialize(collection_method: nil); end
end
class Networks < Stripe::RequestParams
@@ -6570,7 +6560,7 @@ module Stripe
}
attr_accessor :networks
# Preferred transaction settlement speed
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :preferred_settlement_speed
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -6581,7 +6571,7 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
@@ -6590,7 +6580,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :verification_method
sig {
- params(financial_connections: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), mandate_options: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::MandateOptions), networks: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::Networks), preferred_settlement_speed: T.nilable(T.nilable(T.any(String, String))), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String), verification_method: T.nilable(String)).void
+ params(financial_connections: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), mandate_options: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::MandateOptions), networks: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::Networks), preferred_settlement_speed: T.nilable(T.any(String, String)), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String), verification_method: T.nilable(String)).void
}
def initialize(
financial_connections: nil,
@@ -6642,256 +6632,256 @@ module Stripe
end
# If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AcssDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AcssDebit)))
}
attr_accessor :acss_debit
# If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Affirm))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Affirm)))
}
attr_accessor :affirm
# If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AfterpayClearpay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AfterpayClearpay)))
}
attr_accessor :afterpay_clearpay
# If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Alipay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Alipay)))
}
attr_accessor :alipay
# If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Alma))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Alma)))
}
attr_accessor :alma
# If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AmazonPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AmazonPay)))
}
attr_accessor :amazon_pay
# If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AuBecsDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AuBecsDebit)))
}
attr_accessor :au_becs_debit
# If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::BacsDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::BacsDebit)))
}
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Bancontact))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Bancontact)))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Billie))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Billie)))
}
attr_accessor :billie
# If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Blik))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Blik)))
}
attr_accessor :blik
# If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Boleto))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Boleto)))
}
attr_accessor :boleto
# Configuration for any card payments attempted on this PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Card))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Card)))
}
attr_accessor :card
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::CardPresent))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::CardPresent)))
}
attr_accessor :card_present
# If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Cashapp))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Cashapp)))
}
attr_accessor :cashapp
# If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Crypto))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Crypto)))
}
attr_accessor :crypto
# If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::CustomerBalance))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::CustomerBalance)))
}
attr_accessor :customer_balance
# If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Eps))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Eps)))
}
attr_accessor :eps
# If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Fpx))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Fpx)))
}
attr_accessor :fpx
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Giropay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Giropay)))
}
attr_accessor :giropay
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Grabpay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Grabpay)))
}
attr_accessor :grabpay
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Ideal))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Ideal)))
}
attr_accessor :ideal
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::InteracPresent))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::InteracPresent)))
}
attr_accessor :interac_present
# If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::KakaoPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::KakaoPay)))
}
attr_accessor :kakao_pay
# If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Klarna))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Klarna)))
}
attr_accessor :klarna
# If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Konbini))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Konbini)))
}
attr_accessor :konbini
# If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::KrCard))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::KrCard)))
}
attr_accessor :kr_card
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Link))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Link)))
}
attr_accessor :link
# If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Mobilepay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Mobilepay)))
}
attr_accessor :mobilepay
# If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Multibanco))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Multibanco)))
}
attr_accessor :multibanco
# If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::NaverPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::NaverPay)))
}
attr_accessor :naver_pay
# If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::NzBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::NzBankAccount)))
}
attr_accessor :nz_bank_account
# If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Oxxo))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Oxxo)))
}
attr_accessor :oxxo
# If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::P24))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::P24)))
}
attr_accessor :p24
# If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::PayByBank))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::PayByBank)))
}
attr_accessor :pay_by_bank
# If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Payco))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Payco)))
}
attr_accessor :payco
# If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Paynow))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Paynow)))
}
attr_accessor :paynow
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Paypal))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Paypal)))
}
attr_accessor :paypal
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Pix))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Pix)))
}
attr_accessor :pix
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Promptpay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Promptpay)))
}
attr_accessor :promptpay
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::RevolutPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::RevolutPay)))
}
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::SamsungPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::SamsungPay)))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Satispay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Satispay)))
}
attr_accessor :satispay
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::SepaDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::SepaDebit)))
}
attr_accessor :sepa_debit
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Sofort))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Sofort)))
}
attr_accessor :sofort
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Swish))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Swish)))
}
attr_accessor :swish
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Twint))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Twint)))
}
attr_accessor :twint
# If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::UsBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::UsBankAccount)))
}
attr_accessor :us_bank_account
# If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::WechatPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::WechatPay)))
}
attr_accessor :wechat_pay
# If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Zip))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Zip)))
}
attr_accessor :zip
sig {
- params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AcssDebit))), affirm: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Affirm))), afterpay_clearpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AfterpayClearpay))), alipay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Alipay))), alma: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Alma))), amazon_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AmazonPay))), au_becs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AuBecsDebit))), bacs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::BacsDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Bancontact))), billie: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Billie))), blik: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Blik))), boleto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Boleto))), card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Card))), card_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::CardPresent))), cashapp: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Cashapp))), crypto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Crypto))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::CustomerBalance))), eps: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Eps))), fpx: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Fpx))), giropay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Giropay))), grabpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Grabpay))), ideal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Ideal))), interac_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::InteracPresent))), kakao_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::KakaoPay))), klarna: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Klarna))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Konbini))), kr_card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::KrCard))), link: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Link))), mobilepay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Mobilepay))), multibanco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Multibanco))), naver_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::NaverPay))), nz_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::NzBankAccount))), oxxo: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Oxxo))), p24: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::P24))), pay_by_bank: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::PayByBank))), payco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Payco))), paynow: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Paynow))), paypal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Paypal))), pix: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Pix))), promptpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Promptpay))), revolut_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::RevolutPay))), samsung_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::SamsungPay))), satispay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Satispay))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::SepaDebit))), sofort: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Sofort))), swish: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Swish))), twint: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Twint))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::UsBankAccount))), wechat_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::WechatPay))), zip: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Zip)))).void
+ params(acss_debit: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AcssDebit)), affirm: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Affirm)), afterpay_clearpay: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AfterpayClearpay)), alipay: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Alipay)), alma: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Alma)), amazon_pay: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AmazonPay)), au_becs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::AuBecsDebit)), bacs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::BacsDebit)), bancontact: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Bancontact)), billie: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Billie)), blik: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Blik)), boleto: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Boleto)), card: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Card)), card_present: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::CardPresent)), cashapp: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Cashapp)), crypto: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Crypto)), customer_balance: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::CustomerBalance)), eps: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Eps)), fpx: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Fpx)), giropay: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Giropay)), grabpay: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Grabpay)), ideal: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Ideal)), interac_present: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::InteracPresent)), kakao_pay: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::KakaoPay)), klarna: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Klarna)), konbini: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Konbini)), kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::KrCard)), link: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Link)), mobilepay: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Mobilepay)), multibanco: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Multibanco)), naver_pay: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::NaverPay)), nz_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::NzBankAccount)), oxxo: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Oxxo)), p24: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::P24)), pay_by_bank: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::PayByBank)), payco: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Payco)), paynow: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Paynow)), paypal: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Paypal)), pix: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Pix)), promptpay: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Promptpay)), revolut_pay: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::RevolutPay)), samsung_pay: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::SamsungPay)), satispay: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Satispay)), sepa_debit: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::SepaDebit)), sofort: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Sofort)), swish: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Swish)), twint: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Twint)), us_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::UsBankAccount)), wechat_pay: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::WechatPay)), zip: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Zip))).void
}
def initialize(
acss_debit: nil,
@@ -7009,7 +6999,7 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :amount
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :application_fee_amount
# Controls when the funds will be captured from the customer's account.
sig { returns(T.nilable(String)) }
@@ -7031,7 +7021,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent. To unset this field to null, pass in an empty string.
sig { returns(T.nilable(String)) }
@@ -7051,7 +7041,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :payment_method_types
# Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :receipt_email
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -7062,12 +7052,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Shipping information for this PaymentIntent.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::Shipping))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::Shipping))) }
attr_accessor :shipping
# Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
#
@@ -7084,7 +7072,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transfer_group
sig {
- params(amount: T.nilable(Integer), application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), capture_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::Shipping))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::UpdateParams::TransferData), transfer_group: T.nilable(String)).void
+ params(amount: T.nilable(Integer), application_fee_amount: T.nilable(T.any(String, Integer)), capture_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, ::Stripe::PaymentIntent::UpdateParams::Shipping)), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::UpdateParams::TransferData), transfer_group: T.nilable(String)).void
}
def initialize(
amount: nil,
@@ -7179,7 +7167,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :final_capture
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
#
@@ -7194,7 +7182,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::PaymentIntent::CaptureParams::TransferData)) }
attr_accessor :transfer_data
sig {
- params(amount_to_capture: T.nilable(Integer), application_fee_amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), final_capture: T.nilable(T::Boolean), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::CaptureParams::TransferData)).void
+ params(amount_to_capture: T.nilable(Integer), application_fee_amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), final_capture: T.nilable(T::Boolean), metadata: T.nilable(T.any(String, T::Hash[String, String])), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::CaptureParams::TransferData)).void
}
def initialize(
amount_to_capture: nil,
@@ -7329,23 +7317,23 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
sig { returns(T.nilable(String)) }
attr_accessor :tax_id
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
+ params(address: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), tax_id: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
end
@@ -7822,7 +7810,7 @@ module Stripe
# A URL for custom mandate text to render during confirmation step.
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :custom_mandate_url
# Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
sig { returns(T.nilable(String)) }
@@ -7834,7 +7822,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transaction_type
sig {
- params(custom_mandate_url: T.nilable(T.nilable(String)), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
+ params(custom_mandate_url: T.nilable(String), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
}
def initialize(
custom_mandate_url: nil,
@@ -7857,7 +7845,7 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
@@ -7866,7 +7854,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :verification_method
sig {
- params(mandate_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AcssDebit::MandateOptions), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String), verification_method: T.nilable(String)).void
+ params(mandate_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AcssDebit::MandateOptions), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String), verification_method: T.nilable(String)).void
}
def initialize(
mandate_options: nil,
@@ -7881,7 +7869,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Preferred language of the Affirm authorization page that the customer is redirected to.
sig { returns(T.nilable(String)) }
@@ -7898,7 +7886,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String)).void
+ params(capture_method: T.nilable(String), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(capture_method: nil, preferred_locale: nil, setup_future_usage: nil); end
end
@@ -7908,7 +7896,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes.
# This field differs from the statement descriptor and item name.
@@ -7926,7 +7914,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), reference: T.nilable(String), setup_future_usage: T.nilable(String)).void
+ params(capture_method: T.nilable(String), reference: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(capture_method: nil, reference: nil, setup_future_usage: nil); end
end
@@ -7940,9 +7928,9 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
- sig { params(setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void }
+ sig { params(setup_future_usage: T.nilable(T.any(String, String))).void }
def initialize(setup_future_usage: nil); end
end
class Alma < Stripe::RequestParams
@@ -7951,9 +7939,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class AmazonPay < Stripe::RequestParams
@@ -7962,7 +7950,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -7971,10 +7959,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -7988,22 +7976,22 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(setup_future_usage: nil, target_date: nil); end
end
class BacsDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -8020,13 +8008,13 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(mandate_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::BacsDebit::MandateOptions), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(mandate_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::BacsDebit::MandateOptions), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
end
@@ -8043,10 +8031,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(preferred_language: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(preferred_language: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(preferred_language: nil, setup_future_usage: nil); end
end
@@ -8056,9 +8044,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class Blik < Stripe::RequestParams
@@ -8074,11 +8062,9 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
- sig {
- params(code: T.nilable(String), setup_future_usage: T.nilable(T.nilable(String))).void
- }
+ sig { params(code: T.nilable(String), setup_future_usage: T.nilable(String)).void }
def initialize(code: nil, setup_future_usage: nil); end
end
class Boleto < Stripe::RequestParams
@@ -8094,10 +8080,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(expires_after_days: T.nilable(Integer), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(expires_after_days: T.nilable(Integer), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(expires_after_days: nil, setup_future_usage: nil); end
end
@@ -8127,11 +8113,11 @@ module Stripe
# The selected installment plan to use for this payment attempt.
# This parameter can only be provided during confirmation.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Card::Installments::Plan))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Card::Installments::Plan)))
}
attr_accessor :plan
sig {
- params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Card::Installments::Plan)))).void
+ params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Card::Installments::Plan))).void
}
def initialize(enabled: nil, plan: nil); end
end
@@ -8264,7 +8250,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
sig { returns(T.nilable(String)) }
@@ -8316,13 +8302,13 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_suffix_kana
# Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_suffix_kanji
# If 3D Secure authentication was performed with a third-party provider,
# the authentication details to use for this payment.
@@ -8331,7 +8317,7 @@ module Stripe
}
attr_accessor :three_d_secure
sig {
- params(capture_method: T.nilable(T.nilable(String)), cvc_token: T.nilable(String), installments: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Card::Installments), mandate_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Card::MandateOptions), moto: T.nilable(T::Boolean), network: T.nilable(String), request_extended_authorization: T.nilable(String), request_incremental_authorization: T.nilable(String), request_multicapture: T.nilable(String), request_overcapture: T.nilable(String), request_three_d_secure: T.nilable(String), require_cvc_recollection: T.nilable(T::Boolean), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), statement_descriptor_suffix_kana: T.nilable(T.nilable(String)), statement_descriptor_suffix_kanji: T.nilable(T.nilable(String)), three_d_secure: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure)).void
+ params(capture_method: T.nilable(String), cvc_token: T.nilable(String), installments: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Card::Installments), mandate_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Card::MandateOptions), moto: T.nilable(T::Boolean), network: T.nilable(String), request_extended_authorization: T.nilable(String), request_incremental_authorization: T.nilable(String), request_multicapture: T.nilable(String), request_overcapture: T.nilable(String), request_three_d_secure: T.nilable(String), require_cvc_recollection: T.nilable(T::Boolean), setup_future_usage: T.nilable(T.any(String, String)), statement_descriptor_suffix_kana: T.nilable(String), statement_descriptor_suffix_kanji: T.nilable(String), three_d_secure: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure)).void
}
def initialize(
capture_method: nil,
@@ -8386,7 +8372,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -8397,10 +8383,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -8540,9 +8526,9 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
- sig { params(setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void }
+ sig { params(setup_future_usage: T.nilable(T.any(String, String))).void }
def initialize(setup_future_usage: nil); end
end
class InteracPresent < Stripe::RequestParams; end
@@ -8552,7 +8538,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -8561,10 +8547,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -8640,7 +8626,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# On-demand details if setting up or charging an on-demand payment.
sig {
@@ -8663,11 +8649,11 @@ module Stripe
attr_accessor :setup_future_usage
# Subscription details if setting up or charging a subscription.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Klarna::Subscription]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Klarna::Subscription])))
}
attr_accessor :subscriptions
sig {
- params(capture_method: T.nilable(T.nilable(String)), on_demand: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Klarna::Subscription])))).void
+ params(capture_method: T.nilable(String), on_demand: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.any(String, T::Array[::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Klarna::Subscription]))).void
}
def initialize(
capture_method: nil,
@@ -8679,16 +8665,16 @@ module Stripe
end
class Konbini < Stripe::RequestParams
# An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :confirmation_number
# The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expires_after_days
# The timestamp at which the Konbini payment instructions will expire. Only one of `expires_after_days` or `expires_at` may be set.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expires_at
# A product descriptor of up to 22 characters, which will appear to customers at the convenience store.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -8702,7 +8688,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(confirmation_number: T.nilable(T.nilable(String)), expires_after_days: T.nilable(T.nilable(T.any(String, Integer))), expires_at: T.nilable(T.nilable(T.any(String, Integer))), product_description: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(String)).void
+ params(confirmation_number: T.nilable(String), expires_after_days: T.nilable(T.any(String, Integer)), expires_at: T.nilable(T.any(String, Integer)), product_description: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(
confirmation_number: nil,
@@ -8718,7 +8704,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -8727,10 +8713,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -8740,7 +8726,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# [Deprecated] This is a legacy parameter that no longer has any function.
sig { returns(T.nilable(String)) }
@@ -8754,10 +8740,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), persistent_token: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), persistent_token: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, persistent_token: nil, setup_future_usage: nil); end
end
@@ -8767,7 +8753,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -8781,7 +8767,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(String)).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -8806,7 +8792,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -8815,10 +8801,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -8832,13 +8818,13 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(setup_future_usage: nil, target_date: nil); end
end
@@ -8889,9 +8875,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class Paynow < Stripe::RequestParams
@@ -8911,7 +8897,7 @@ module Stripe
end
class Paypal < Stripe::RequestParams
# Controls when the funds will be captured from the customer's account.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
sig { returns(T.nilable(String)) }
@@ -8931,10 +8917,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), preferred_locale: T.nilable(String), reference: T.nilable(String), risk_correlation_id: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), preferred_locale: T.nilable(String), reference: T.nilable(String), risk_correlation_id: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(
capture_method: nil,
@@ -8988,7 +8974,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -8997,10 +8983,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -9010,9 +8996,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class Satispay < Stripe::RequestParams
@@ -9021,17 +9007,17 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class SepaDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -9048,19 +9034,19 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(mandate_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::SepaDebit::MandateOptions), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(mandate_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::SepaDebit::MandateOptions), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
end
class Sofort < Stripe::RequestParams
# Language shown to the payer on redirect.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :preferred_language
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -9071,16 +9057,16 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(preferred_language: T.nilable(T.nilable(T.any(String, String))), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(preferred_language: T.nilable(T.any(String, String)), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(preferred_language: nil, setup_future_usage: nil); end
end
class Swish < Stripe::RequestParams
# A reference for this payment to be displayed in the Swish app.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -9093,9 +9079,7 @@ module Stripe
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
- sig {
- params(reference: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(String)).void
- }
+ sig { params(reference: T.nilable(String), setup_future_usage: T.nilable(String)).void }
def initialize(reference: nil, setup_future_usage: nil); end
end
class Twint < Stripe::RequestParams
@@ -9143,9 +9127,9 @@ module Stripe
end
class MandateOptions < Stripe::RequestParams
# The method used to collect offline mandate customer acceptance.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :collection_method
- sig { params(collection_method: T.nilable(T.nilable(String))).void }
+ sig { params(collection_method: T.nilable(String)).void }
def initialize(collection_method: nil); end
end
class Networks < Stripe::RequestParams
@@ -9171,7 +9155,7 @@ module Stripe
}
attr_accessor :networks
# Preferred transaction settlement speed
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :preferred_settlement_speed
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -9182,7 +9166,7 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
@@ -9191,7 +9175,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :verification_method
sig {
- params(financial_connections: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), mandate_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::MandateOptions), networks: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::Networks), preferred_settlement_speed: T.nilable(T.nilable(T.any(String, String))), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String), verification_method: T.nilable(String)).void
+ params(financial_connections: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), mandate_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::MandateOptions), networks: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::Networks), preferred_settlement_speed: T.nilable(T.any(String, String)), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String), verification_method: T.nilable(String)).void
}
def initialize(
financial_connections: nil,
@@ -9243,256 +9227,256 @@ module Stripe
end
# If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AcssDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AcssDebit)))
}
attr_accessor :acss_debit
# If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Affirm))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Affirm)))
}
attr_accessor :affirm
# If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AfterpayClearpay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AfterpayClearpay)))
}
attr_accessor :afterpay_clearpay
# If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Alipay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Alipay)))
}
attr_accessor :alipay
# If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Alma))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Alma)))
}
attr_accessor :alma
# If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AmazonPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AmazonPay)))
}
attr_accessor :amazon_pay
# If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AuBecsDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AuBecsDebit)))
}
attr_accessor :au_becs_debit
# If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::BacsDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::BacsDebit)))
}
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Bancontact))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Bancontact)))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Billie))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Billie)))
}
attr_accessor :billie
# If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Blik))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Blik)))
}
attr_accessor :blik
# If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Boleto))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Boleto)))
}
attr_accessor :boleto
# Configuration for any card payments attempted on this PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Card))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Card)))
}
attr_accessor :card
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::CardPresent))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::CardPresent)))
}
attr_accessor :card_present
# If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Cashapp))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Cashapp)))
}
attr_accessor :cashapp
# If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Crypto))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Crypto)))
}
attr_accessor :crypto
# If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::CustomerBalance))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::CustomerBalance)))
}
attr_accessor :customer_balance
# If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Eps))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Eps)))
}
attr_accessor :eps
# If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Fpx))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Fpx)))
}
attr_accessor :fpx
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Giropay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Giropay)))
}
attr_accessor :giropay
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Grabpay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Grabpay)))
}
attr_accessor :grabpay
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Ideal))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Ideal)))
}
attr_accessor :ideal
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::InteracPresent))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::InteracPresent)))
}
attr_accessor :interac_present
# If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::KakaoPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::KakaoPay)))
}
attr_accessor :kakao_pay
# If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Klarna))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Klarna)))
}
attr_accessor :klarna
# If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Konbini))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Konbini)))
}
attr_accessor :konbini
# If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::KrCard))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::KrCard)))
}
attr_accessor :kr_card
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Link))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Link)))
}
attr_accessor :link
# If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Mobilepay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Mobilepay)))
}
attr_accessor :mobilepay
# If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Multibanco))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Multibanco)))
}
attr_accessor :multibanco
# If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::NaverPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::NaverPay)))
}
attr_accessor :naver_pay
# If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::NzBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::NzBankAccount)))
}
attr_accessor :nz_bank_account
# If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Oxxo))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Oxxo)))
}
attr_accessor :oxxo
# If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::P24))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::P24)))
}
attr_accessor :p24
# If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::PayByBank))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::PayByBank)))
}
attr_accessor :pay_by_bank
# If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Payco))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Payco)))
}
attr_accessor :payco
# If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Paynow))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Paynow)))
}
attr_accessor :paynow
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Paypal))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Paypal)))
}
attr_accessor :paypal
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Pix))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Pix)))
}
attr_accessor :pix
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Promptpay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Promptpay)))
}
attr_accessor :promptpay
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::RevolutPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::RevolutPay)))
}
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::SamsungPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::SamsungPay)))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Satispay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Satispay)))
}
attr_accessor :satispay
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::SepaDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::SepaDebit)))
}
attr_accessor :sepa_debit
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Sofort))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Sofort)))
}
attr_accessor :sofort
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Swish))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Swish)))
}
attr_accessor :swish
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Twint))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Twint)))
}
attr_accessor :twint
# If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount)))
}
attr_accessor :us_bank_account
# If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::WechatPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::WechatPay)))
}
attr_accessor :wechat_pay
# If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Zip))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Zip)))
}
attr_accessor :zip
sig {
- params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AcssDebit))), affirm: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Affirm))), afterpay_clearpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AfterpayClearpay))), alipay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Alipay))), alma: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Alma))), amazon_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AmazonPay))), au_becs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AuBecsDebit))), bacs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::BacsDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Bancontact))), billie: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Billie))), blik: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Blik))), boleto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Boleto))), card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Card))), card_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::CardPresent))), cashapp: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Cashapp))), crypto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Crypto))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::CustomerBalance))), eps: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Eps))), fpx: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Fpx))), giropay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Giropay))), grabpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Grabpay))), ideal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Ideal))), interac_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::InteracPresent))), kakao_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::KakaoPay))), klarna: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Klarna))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Konbini))), kr_card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::KrCard))), link: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Link))), mobilepay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Mobilepay))), multibanco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Multibanco))), naver_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::NaverPay))), nz_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::NzBankAccount))), oxxo: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Oxxo))), p24: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::P24))), pay_by_bank: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::PayByBank))), payco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Payco))), paynow: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Paynow))), paypal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Paypal))), pix: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Pix))), promptpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Promptpay))), revolut_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::RevolutPay))), samsung_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::SamsungPay))), satispay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Satispay))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::SepaDebit))), sofort: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Sofort))), swish: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Swish))), twint: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Twint))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount))), wechat_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::WechatPay))), zip: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Zip)))).void
+ params(acss_debit: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AcssDebit)), affirm: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Affirm)), afterpay_clearpay: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AfterpayClearpay)), alipay: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Alipay)), alma: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Alma)), amazon_pay: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AmazonPay)), au_becs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::AuBecsDebit)), bacs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::BacsDebit)), bancontact: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Bancontact)), billie: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Billie)), blik: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Blik)), boleto: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Boleto)), card: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Card)), card_present: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::CardPresent)), cashapp: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Cashapp)), crypto: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Crypto)), customer_balance: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::CustomerBalance)), eps: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Eps)), fpx: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Fpx)), giropay: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Giropay)), grabpay: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Grabpay)), ideal: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Ideal)), interac_present: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::InteracPresent)), kakao_pay: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::KakaoPay)), klarna: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Klarna)), konbini: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Konbini)), kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::KrCard)), link: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Link)), mobilepay: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Mobilepay)), multibanco: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Multibanco)), naver_pay: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::NaverPay)), nz_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::NzBankAccount)), oxxo: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Oxxo)), p24: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::P24)), pay_by_bank: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::PayByBank)), payco: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Payco)), paynow: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Paynow)), paypal: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Paypal)), pix: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Pix)), promptpay: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Promptpay)), revolut_pay: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::RevolutPay)), samsung_pay: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::SamsungPay)), satispay: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Satispay)), sepa_debit: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::SepaDebit)), sofort: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Sofort)), swish: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Swish)), twint: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Twint)), us_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount)), wechat_pay: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::WechatPay)), zip: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Zip))).void
}
def initialize(
acss_debit: nil,
@@ -9624,9 +9608,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :mandate
# Attribute for param field mandate_data
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::MandateData))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::MandateData))) }
attr_accessor :mandate_data
# Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards).
sig { returns(T.nilable(T.any(T::Boolean, String))) }
@@ -9650,7 +9632,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::RadarOptions)) }
attr_accessor :radar_options
# Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :receipt_email
# The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
# If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme.
@@ -9666,18 +9648,16 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Shipping information for this PaymentIntent.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::Shipping))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::Shipping))) }
attr_accessor :shipping
# Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :use_stripe_sdk
sig {
- params(capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::MandateData))), off_session: T.nilable(T.any(T::Boolean, String)), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::RadarOptions), receipt_email: T.nilable(T.nilable(String)), return_url: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::Shipping))), use_stripe_sdk: T.nilable(T::Boolean)).void
+ params(capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::MandateData)), off_session: T.nilable(T.any(T::Boolean, String)), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntent::ConfirmParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, ::Stripe::PaymentIntent::ConfirmParams::Shipping)), use_stripe_sdk: T.nilable(T::Boolean)).void
}
def initialize(
capture_method: nil,
diff --git a/rbi/stripe/resources/payment_link.rbi b/rbi/stripe/resources/payment_link.rbi
index b1b01feb5..55aadd093 100644
--- a/rbi/stripe/resources/payment_link.rbi
+++ b/rbi/stripe/resources/payment_link.rbi
@@ -701,26 +701,26 @@ module Stripe
end
# Custom text that should be displayed after the payment confirmation button.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::CustomText::AfterSubmit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::CustomText::AfterSubmit)))
}
attr_accessor :after_submit
# Custom text that should be displayed alongside shipping address collection.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::CustomText::ShippingAddress))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::CustomText::ShippingAddress)))
}
attr_accessor :shipping_address
# Custom text that should be displayed alongside the payment confirmation button.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::CustomText::Submit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::CustomText::Submit)))
}
attr_accessor :submit
# Custom text that should be displayed in place of the default terms of service agreement text.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::CustomText::TermsOfServiceAcceptance))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::CustomText::TermsOfServiceAcceptance)))
}
attr_accessor :terms_of_service_acceptance
sig {
- params(after_submit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::CustomText::AfterSubmit))), shipping_address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::CustomText::ShippingAddress))), submit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::CustomText::Submit))), terms_of_service_acceptance: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::CustomText::TermsOfServiceAcceptance)))).void
+ params(after_submit: T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::CustomText::AfterSubmit)), shipping_address: T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::CustomText::ShippingAddress)), submit: T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::CustomText::Submit)), terms_of_service_acceptance: T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::CustomText::TermsOfServiceAcceptance))).void
}
def initialize(
after_submit: nil,
@@ -753,22 +753,22 @@ module Stripe
end
class RenderingOptions < Stripe::RequestParams
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :amount_tax_display
# ID of the invoice rendering template to use for this invoice.
sig { returns(T.nilable(String)) }
attr_accessor :template
sig {
- params(amount_tax_display: T.nilable(T.nilable(T.any(String, String))), template: T.nilable(String)).void
+ params(amount_tax_display: T.nilable(T.any(String, String)), template: T.nilable(String)).void
}
def initialize(amount_tax_display: nil, template: nil); end
end
# The account tax IDs associated with the invoice.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# Default custom fields to be displayed on invoices for this customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentLink::CreateParams::InvoiceCreation::InvoiceData::CustomField]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::PaymentLink::CreateParams::InvoiceCreation::InvoiceData::CustomField])))
}
attr_accessor :custom_fields
# An arbitrary string attached to the object. Often useful for displaying to users.
@@ -783,15 +783,15 @@ module Stripe
}
attr_accessor :issuer
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Default options for invoice PDF rendering for this customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions)))
}
attr_accessor :rendering_options
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), custom_fields: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentLink::CreateParams::InvoiceCreation::InvoiceData::CustomField]))), description: T.nilable(String), footer: T.nilable(String), issuer: T.nilable(::Stripe::PaymentLink::CreateParams::InvoiceCreation::InvoiceData::Issuer), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), rendering_options: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions)))).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::PaymentLink::CreateParams::InvoiceCreation::InvoiceData::CustomField])), description: T.nilable(String), footer: T.nilable(String), issuer: T.nilable(::Stripe::PaymentLink::CreateParams::InvoiceCreation::InvoiceData::Issuer), metadata: T.nilable(T.any(String, T::Hash[String, String])), rendering_options: T.nilable(T.any(String, ::Stripe::PaymentLink::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions))).void
}
def initialize(
account_tax_ids: nil,
@@ -1453,26 +1453,26 @@ module Stripe
end
# Custom text that should be displayed after the payment confirmation button.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::CustomText::AfterSubmit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::CustomText::AfterSubmit)))
}
attr_accessor :after_submit
# Custom text that should be displayed alongside shipping address collection.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::CustomText::ShippingAddress))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::CustomText::ShippingAddress)))
}
attr_accessor :shipping_address
# Custom text that should be displayed alongside the payment confirmation button.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::CustomText::Submit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::CustomText::Submit)))
}
attr_accessor :submit
# Custom text that should be displayed in place of the default terms of service agreement text.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::CustomText::TermsOfServiceAcceptance))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::CustomText::TermsOfServiceAcceptance)))
}
attr_accessor :terms_of_service_acceptance
sig {
- params(after_submit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::CustomText::AfterSubmit))), shipping_address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::CustomText::ShippingAddress))), submit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::CustomText::Submit))), terms_of_service_acceptance: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::CustomText::TermsOfServiceAcceptance)))).void
+ params(after_submit: T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::CustomText::AfterSubmit)), shipping_address: T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::CustomText::ShippingAddress)), submit: T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::CustomText::Submit)), terms_of_service_acceptance: T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::CustomText::TermsOfServiceAcceptance))).void
}
def initialize(
after_submit: nil,
@@ -1505,22 +1505,22 @@ module Stripe
end
class RenderingOptions < Stripe::RequestParams
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :amount_tax_display
# ID of the invoice rendering template to use for this invoice.
sig { returns(T.nilable(String)) }
attr_accessor :template
sig {
- params(amount_tax_display: T.nilable(T.nilable(T.any(String, String))), template: T.nilable(String)).void
+ params(amount_tax_display: T.nilable(T.any(String, String)), template: T.nilable(String)).void
}
def initialize(amount_tax_display: nil, template: nil); end
end
# The account tax IDs associated with the invoice.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# Default custom fields to be displayed on invoices for this customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentLink::UpdateParams::InvoiceCreation::InvoiceData::CustomField]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::PaymentLink::UpdateParams::InvoiceCreation::InvoiceData::CustomField])))
}
attr_accessor :custom_fields
# An arbitrary string attached to the object. Often useful for displaying to users.
@@ -1535,15 +1535,15 @@ module Stripe
}
attr_accessor :issuer
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Default options for invoice PDF rendering for this customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::InvoiceCreation::InvoiceData::RenderingOptions))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::InvoiceCreation::InvoiceData::RenderingOptions)))
}
attr_accessor :rendering_options
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), custom_fields: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentLink::UpdateParams::InvoiceCreation::InvoiceData::CustomField]))), description: T.nilable(String), footer: T.nilable(String), issuer: T.nilable(::Stripe::PaymentLink::UpdateParams::InvoiceCreation::InvoiceData::Issuer), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), rendering_options: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::InvoiceCreation::InvoiceData::RenderingOptions)))).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::PaymentLink::UpdateParams::InvoiceCreation::InvoiceData::CustomField])), description: T.nilable(String), footer: T.nilable(String), issuer: T.nilable(::Stripe::PaymentLink::UpdateParams::InvoiceCreation::InvoiceData::Issuer), metadata: T.nilable(T.any(String, T::Hash[String, String])), rendering_options: T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::InvoiceCreation::InvoiceData::RenderingOptions))).void
}
def initialize(
account_tax_ids: nil,
@@ -1602,24 +1602,24 @@ module Stripe
end
class PaymentIntentData < Stripe::RequestParams
# An arbitrary string attached to the object. Often useful for displaying to users.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will declaratively set metadata on [Payment Intents](https://stripe.com/docs/api/payment_intents) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
#
# Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor
# Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_suffix
# A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers) for details.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :transfer_group
sig {
- params(description: T.nilable(T.nilable(String)), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), statement_descriptor: T.nilable(T.nilable(String)), statement_descriptor_suffix: T.nilable(T.nilable(String)), transfer_group: T.nilable(T.nilable(String))).void
+ params(description: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_group: T.nilable(String)).void
}
def initialize(
description: nil,
@@ -1706,18 +1706,18 @@ module Stripe
}
attr_accessor :invoice_settings
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will declaratively set metadata on [Subscriptions](https://stripe.com/docs/api/subscriptions) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :trial_period_days
# Settings related to subscription trials.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::SubscriptionData::TrialSettings))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::SubscriptionData::TrialSettings)))
}
attr_accessor :trial_settings
sig {
- params(invoice_settings: T.nilable(::Stripe::PaymentLink::UpdateParams::SubscriptionData::InvoiceSettings), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), trial_period_days: T.nilable(T.nilable(T.any(String, Integer))), trial_settings: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::SubscriptionData::TrialSettings)))).void
+ params(invoice_settings: T.nilable(::Stripe::PaymentLink::UpdateParams::SubscriptionData::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), trial_period_days: T.nilable(T.any(String, Integer)), trial_settings: T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::SubscriptionData::TrialSettings))).void
}
def initialize(
invoice_settings: nil,
@@ -1753,7 +1753,7 @@ module Stripe
attr_accessor :billing_address_collection
# Collect additional information from your customer using custom fields. Up to 3 fields are supported.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentLink::UpdateParams::CustomField]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::PaymentLink::UpdateParams::CustomField])))
}
attr_accessor :custom_fields
# Display additional text for your customers using custom text.
@@ -1766,7 +1766,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# The custom message to be displayed to a customer when a payment link is no longer active.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :inactive_message
# Generate a post-purchase Invoice for one-time payments.
sig { returns(T.nilable(::Stripe::PaymentLink::UpdateParams::InvoiceCreation)) }
@@ -1788,7 +1788,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :payment_method_collection
# The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :payment_method_types
# Controls phone number collection settings during checkout.
#
@@ -1796,13 +1796,11 @@ module Stripe
sig { returns(T.nilable(::Stripe::PaymentLink::UpdateParams::PhoneNumberCollection)) }
attr_accessor :phone_number_collection
# Settings that restrict the usage of a payment link.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::Restrictions))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::Restrictions))) }
attr_accessor :restrictions
# Configuration for collecting the customer's shipping address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::ShippingAddressCollection))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::ShippingAddressCollection)))
}
attr_accessor :shipping_address_collection
# Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button. Changing this value will also affect the hostname in the [url](https://stripe.com/docs/api/payment_links/payment_links/object#url) property (example: `donate.stripe.com`).
@@ -1815,7 +1813,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::PaymentLink::UpdateParams::TaxIdCollection)) }
attr_accessor :tax_id_collection
sig {
- params(active: T.nilable(T::Boolean), after_completion: T.nilable(::Stripe::PaymentLink::UpdateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::PaymentLink::UpdateParams::AutomaticTax), billing_address_collection: T.nilable(String), custom_fields: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentLink::UpdateParams::CustomField]))), custom_text: T.nilable(::Stripe::PaymentLink::UpdateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(T.nilable(String)), invoice_creation: T.nilable(::Stripe::PaymentLink::UpdateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::PaymentLink::UpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), payment_intent_data: T.nilable(::Stripe::PaymentLink::UpdateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T.nilable(T.any(String, T::Array[String]))), phone_number_collection: T.nilable(::Stripe::PaymentLink::UpdateParams::PhoneNumberCollection), restrictions: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::Restrictions))), shipping_address_collection: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::ShippingAddressCollection))), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::PaymentLink::UpdateParams::SubscriptionData), tax_id_collection: T.nilable(::Stripe::PaymentLink::UpdateParams::TaxIdCollection)).void
+ params(active: T.nilable(T::Boolean), after_completion: T.nilable(::Stripe::PaymentLink::UpdateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::PaymentLink::UpdateParams::AutomaticTax), billing_address_collection: T.nilable(String), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::PaymentLink::UpdateParams::CustomField])), custom_text: T.nilable(::Stripe::PaymentLink::UpdateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(::Stripe::PaymentLink::UpdateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::PaymentLink::UpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), payment_intent_data: T.nilable(::Stripe::PaymentLink::UpdateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T.any(String, T::Array[String])), phone_number_collection: T.nilable(::Stripe::PaymentLink::UpdateParams::PhoneNumberCollection), restrictions: T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::Restrictions)), shipping_address_collection: T.nilable(T.any(String, ::Stripe::PaymentLink::UpdateParams::ShippingAddressCollection)), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::PaymentLink::UpdateParams::SubscriptionData), tax_id_collection: T.nilable(::Stripe::PaymentLink::UpdateParams::TaxIdCollection)).void
}
def initialize(
active: nil,
diff --git a/rbi/stripe/resources/payment_method.rbi b/rbi/stripe/resources/payment_method.rbi
index 912c1e87d..d850aa052 100644
--- a/rbi/stripe/resources/payment_method.rbi
+++ b/rbi/stripe/resources/payment_method.rbi
@@ -1092,23 +1092,23 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethod::CreateParams::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentMethod::CreateParams::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
sig { returns(T.nilable(String)) }
attr_accessor :tax_id
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethod::CreateParams::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
+ params(address: T.nilable(T.any(String, ::Stripe::PaymentMethod::CreateParams::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), tax_id: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
end
@@ -1590,32 +1590,32 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethod::UpdateParams::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentMethod::UpdateParams::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
sig { returns(T.nilable(String)) }
attr_accessor :tax_id
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethod::UpdateParams::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
+ params(address: T.nilable(T.any(String, ::Stripe::PaymentMethod::UpdateParams::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), tax_id: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
end
class Card < Stripe::RequestParams
class Networks < Stripe::RequestParams
# The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :preferred
- sig { params(preferred: T.nilable(T.nilable(T.any(String, String)))).void }
+ sig { params(preferred: T.nilable(T.any(String, String))).void }
def initialize(preferred: nil); end
end
# Two-digit number representing the card's expiration month.
@@ -1660,7 +1660,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::PaymentMethod::UpdateParams::Link)) }
attr_accessor :link
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
sig { returns(T.nilable(::Stripe::PaymentMethod::UpdateParams::PayByBank)) }
@@ -1669,7 +1669,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::PaymentMethod::UpdateParams::UsBankAccount)) }
attr_accessor :us_bank_account
sig {
- params(allow_redisplay: T.nilable(String), billing_details: T.nilable(::Stripe::PaymentMethod::UpdateParams::BillingDetails), card: T.nilable(::Stripe::PaymentMethod::UpdateParams::Card), expand: T.nilable(T::Array[String]), link: T.nilable(::Stripe::PaymentMethod::UpdateParams::Link), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), pay_by_bank: T.nilable(::Stripe::PaymentMethod::UpdateParams::PayByBank), us_bank_account: T.nilable(::Stripe::PaymentMethod::UpdateParams::UsBankAccount)).void
+ params(allow_redisplay: T.nilable(String), billing_details: T.nilable(::Stripe::PaymentMethod::UpdateParams::BillingDetails), card: T.nilable(::Stripe::PaymentMethod::UpdateParams::Card), expand: T.nilable(T::Array[String]), link: T.nilable(::Stripe::PaymentMethod::UpdateParams::Link), metadata: T.nilable(T.any(String, T::Hash[String, String])), pay_by_bank: T.nilable(::Stripe::PaymentMethod::UpdateParams::PayByBank), us_bank_account: T.nilable(::Stripe::PaymentMethod::UpdateParams::UsBankAccount)).void
}
def initialize(
allow_redisplay: nil,
diff --git a/rbi/stripe/resources/payment_method_configuration.rbi b/rbi/stripe/resources/payment_method_configuration.rbi
index c6a3f72a3..d67da2a2f 100644
--- a/rbi/stripe/resources/payment_method_configuration.rbi
+++ b/rbi/stripe/resources/payment_method_configuration.rbi
@@ -1166,7 +1166,7 @@ module Stripe
attr_reader :zip
class ListParams < Stripe::RequestParams
# The Connect application to filter by.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :application
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
sig { returns(T.nilable(String)) }
@@ -1181,7 +1181,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :starting_after
sig {
- params(application: T.nilable(T.nilable(String)), ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String)).void
+ params(application: T.nilable(String), ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String)).void
}
def initialize(
application: nil,
diff --git a/rbi/stripe/resources/payout.rbi b/rbi/stripe/resources/payout.rbi
index 293e2aba0..fe2c392ab 100644
--- a/rbi/stripe/resources/payout.rbi
+++ b/rbi/stripe/resources/payout.rbi
@@ -221,10 +221,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/resources/plan.rbi b/rbi/stripe/resources/plan.rbi
index 4d32080ba..a10b47a72 100644
--- a/rbi/stripe/resources/plan.rbi
+++ b/rbi/stripe/resources/plan.rbi
@@ -109,7 +109,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# A brief description of the plan, hidden from customers.
sig { returns(T.nilable(String)) }
@@ -121,7 +121,7 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :trial_period_days
sig {
- params(active: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), nickname: T.nilable(String), product: T.nilable(String), trial_period_days: T.nilable(Integer)).void
+ params(active: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), nickname: T.nilable(String), product: T.nilable(String), trial_period_days: T.nilable(Integer)).void
}
def initialize(
active: nil,
@@ -288,7 +288,7 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :interval_count
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The meter tracking the usage of a metered price
sig { returns(T.nilable(String)) }
@@ -315,7 +315,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :usage_type
sig {
- params(active: T.nilable(T::Boolean), amount: T.nilable(Integer), amount_decimal: T.nilable(String), billing_scheme: T.nilable(String), currency: String, expand: T.nilable(T::Array[String]), id: T.nilable(String), interval: String, interval_count: T.nilable(Integer), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), meter: T.nilable(String), nickname: T.nilable(String), product: T.nilable(T.any(::Stripe::Plan::CreateParams::Product, String)), tiers: T.nilable(T::Array[::Stripe::Plan::CreateParams::Tier]), tiers_mode: T.nilable(String), transform_usage: T.nilable(::Stripe::Plan::CreateParams::TransformUsage), trial_period_days: T.nilable(Integer), usage_type: T.nilable(String)).void
+ params(active: T.nilable(T::Boolean), amount: T.nilable(Integer), amount_decimal: T.nilable(String), billing_scheme: T.nilable(String), currency: String, expand: T.nilable(T::Array[String]), id: T.nilable(String), interval: String, interval_count: T.nilable(Integer), metadata: T.nilable(T.any(String, T::Hash[String, String])), meter: T.nilable(String), nickname: T.nilable(String), product: T.nilable(T.any(::Stripe::Plan::CreateParams::Product, String)), tiers: T.nilable(T::Array[::Stripe::Plan::CreateParams::Tier]), tiers_mode: T.nilable(String), transform_usage: T.nilable(::Stripe::Plan::CreateParams::TransformUsage), trial_period_days: T.nilable(Integer), usage_type: T.nilable(String)).void
}
def initialize(
active: nil,
diff --git a/rbi/stripe/resources/price.rbi b/rbi/stripe/resources/price.rbi
index a0f237c27..140a40d73 100644
--- a/rbi/stripe/resources/price.rbi
+++ b/rbi/stripe/resources/price.rbi
@@ -610,7 +610,7 @@ module Stripe
attr_accessor :active
# Prices defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Hash[String, ::Stripe::Price::UpdateParams::CurrencyOptions]))))
+ returns(T.nilable(T.any(String, T::Hash[String, ::Stripe::Price::UpdateParams::CurrencyOptions])))
}
attr_accessor :currency_options
# Specifies which fields in the response should be expanded.
@@ -620,7 +620,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :lookup_key
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# A brief description of the price, hidden from customers.
sig { returns(T.nilable(String)) }
@@ -632,7 +632,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :transfer_lookup_key
sig {
- params(active: T.nilable(T::Boolean), currency_options: T.nilable(T.nilable(T.any(String, T::Hash[String, ::Stripe::Price::UpdateParams::CurrencyOptions]))), expand: T.nilable(T::Array[String]), lookup_key: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), nickname: T.nilable(String), tax_behavior: T.nilable(String), transfer_lookup_key: T.nilable(T::Boolean)).void
+ params(active: T.nilable(T::Boolean), currency_options: T.nilable(T.any(String, T::Hash[String, ::Stripe::Price::UpdateParams::CurrencyOptions])), expand: T.nilable(T::Array[String]), lookup_key: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), nickname: T.nilable(String), tax_behavior: T.nilable(String), transfer_lookup_key: T.nilable(T::Boolean)).void
}
def initialize(
active: nil,
diff --git a/rbi/stripe/resources/product.rbi b/rbi/stripe/resources/product.rbi
index 819bc801e..1caa43f28 100644
--- a/rbi/stripe/resources/product.rbi
+++ b/rbi/stripe/resources/product.rbi
@@ -123,29 +123,27 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :default_price
# The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :images
# A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table).
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Product::UpdateParams::MarketingFeature]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Product::UpdateParams::MarketingFeature])))
}
attr_accessor :marketing_features
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The product's name, meant to be displayable to the customer.
sig { returns(T.nilable(String)) }
attr_accessor :name
# The dimensions of this product for shipping purposes.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Product::UpdateParams::PackageDimensions))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::Product::UpdateParams::PackageDimensions))) }
attr_accessor :package_dimensions
# Whether this product is shipped (i.e., physical goods).
sig { returns(T.nilable(T::Boolean)) }
@@ -157,16 +155,16 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :tax_code
# A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. May only be set if `type=service`.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :unit_label
# A URL of a publicly-accessible webpage for this product.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :url
sig {
- params(active: T.nilable(T::Boolean), default_price: T.nilable(String), description: T.nilable(T.nilable(String)), expand: T.nilable(T::Array[String]), images: T.nilable(T.nilable(T.any(String, T::Array[String]))), marketing_features: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Product::UpdateParams::MarketingFeature]))), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), name: T.nilable(String), package_dimensions: T.nilable(T.nilable(T.any(String, ::Stripe::Product::UpdateParams::PackageDimensions))), shippable: T.nilable(T::Boolean), statement_descriptor: T.nilable(String), tax_code: T.nilable(T.nilable(String)), unit_label: T.nilable(T.nilable(String)), url: T.nilable(T.nilable(String))).void
+ params(active: T.nilable(T::Boolean), default_price: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), images: T.nilable(T.any(String, T::Array[String])), marketing_features: T.nilable(T.any(String, T::Array[::Stripe::Product::UpdateParams::MarketingFeature])), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), package_dimensions: T.nilable(T.any(String, ::Stripe::Product::UpdateParams::PackageDimensions)), shippable: T.nilable(T::Boolean), statement_descriptor: T.nilable(String), tax_code: T.nilable(String), unit_label: T.nilable(String), url: T.nilable(String)).void
}
def initialize(
active: nil,
diff --git a/rbi/stripe/resources/promotion_code.rbi b/rbi/stripe/resources/promotion_code.rbi
index 19e4af04e..4fdcd5b6d 100644
--- a/rbi/stripe/resources/promotion_code.rbi
+++ b/rbi/stripe/resources/promotion_code.rbi
@@ -230,13 +230,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Settings that restrict the redemption of the promotion code.
sig { returns(T.nilable(::Stripe::PromotionCode::UpdateParams::Restrictions)) }
attr_accessor :restrictions
sig {
- params(active: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), restrictions: T.nilable(::Stripe::PromotionCode::UpdateParams::Restrictions)).void
+ params(active: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), restrictions: T.nilable(::Stripe::PromotionCode::UpdateParams::Restrictions)).void
}
def initialize(active: nil, expand: nil, metadata: nil, restrictions: nil); end
end
diff --git a/rbi/stripe/resources/quote.rbi b/rbi/stripe/resources/quote.rbi
index 77e92018b..b960e9941 100644
--- a/rbi/stripe/resources/quote.rbi
+++ b/rbi/stripe/resources/quote.rbi
@@ -551,7 +551,7 @@ module Stripe
end
# The discounts applied to this line item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Quote::CreateParams::LineItem::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Quote::CreateParams::LineItem::Discount])))
}
attr_accessor :discounts
# The ID of the price object. One of `price` or `price_data` is required.
@@ -564,10 +564,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# The tax rates which apply to the line item. When set, the `default_tax_rates` on the quote do not apply to this line item.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Quote::CreateParams::LineItem::Discount]))), price: T.nilable(String), price_data: T.nilable(::Stripe::Quote::CreateParams::LineItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(discounts: T.nilable(T.any(String, T::Array[::Stripe::Quote::CreateParams::LineItem::Discount])), price: T.nilable(String), price_data: T.nilable(::Stripe::Quote::CreateParams::LineItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
discounts: nil,
@@ -592,16 +592,16 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :description
# When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. The `effective_date` is ignored if it is in the past when the quote is accepted.
- sig { returns(T.nilable(T.nilable(T.any(String, T.any(String, Integer))))) }
+ sig { returns(T.nilable(T.any(String, T.any(String, Integer)))) }
attr_accessor :effective_date
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
# Integer representing the number of trial period days before the customer is charged for the first time.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :trial_period_days
sig {
- params(billing_mode: T.nilable(::Stripe::Quote::CreateParams::SubscriptionData::BillingMode), description: T.nilable(String), effective_date: T.nilable(T.nilable(T.any(String, T.any(String, Integer)))), metadata: T.nilable(T::Hash[String, String]), trial_period_days: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(billing_mode: T.nilable(::Stripe::Quote::CreateParams::SubscriptionData::BillingMode), description: T.nilable(String), effective_date: T.nilable(T.any(String, T.any(String, Integer))), metadata: T.nilable(T::Hash[String, String]), trial_period_days: T.nilable(T.any(String, Integer))).void
}
def initialize(
billing_mode: nil,
@@ -627,10 +627,10 @@ module Stripe
def initialize(amount: nil, amount_percent: nil, destination: nil); end
end
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. There cannot be any line items with recurring prices when using this field.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :application_fee_amount
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field.
- sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
+ sig { returns(T.nilable(T.any(String, Float))) }
attr_accessor :application_fee_percent
# Settings for automatic tax lookup for this quote and resulting invoices and subscriptions.
sig { returns(T.nilable(::Stripe::Quote::CreateParams::AutomaticTax)) }
@@ -642,15 +642,13 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :customer
# The tax rates that will apply to any line item that does not have `tax_rates` set.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_tax_rates
# A description that will be displayed on the quote PDF. If no value is passed, the default description configured in your [quote template settings](https://dashboard.stripe.com/settings/billing/quote) will be used.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# The discounts applied to the quote.
- sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Quote::CreateParams::Discount]))))
- }
+ sig { returns(T.nilable(T.any(String, T::Array[::Stripe::Quote::CreateParams::Discount]))) }
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
@@ -659,13 +657,13 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :expires_at
# A footer that will be displayed on the quote PDF. If no value is passed, the default footer configured in your [quote template settings](https://dashboard.stripe.com/settings/billing/quote) will be used.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :footer
# Clone an existing quote. The new quote will be created in `status=draft`. When using this parameter, you cannot specify any other parameters except for `expires_at`.
sig { returns(T.nilable(::Stripe::Quote::CreateParams::FromQuote)) }
attr_accessor :from_quote
# A header that will be displayed on the quote PDF. If no value is passed, the default header configured in your [quote template settings](https://dashboard.stripe.com/settings/billing/quote) will be used.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :header
# All invoices will be billed using the specified settings.
sig { returns(T.nilable(::Stripe::Quote::CreateParams::InvoiceSettings)) }
@@ -677,7 +675,7 @@ module Stripe
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
# The account on behalf of which to charge.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :on_behalf_of
# When creating a subscription or subscription schedule, the specified configuration data will be used. There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. A subscription schedule is created if `subscription_data[effective_date]` is present and in the future, otherwise a subscription is created.
sig { returns(T.nilable(::Stripe::Quote::CreateParams::SubscriptionData)) }
@@ -686,12 +684,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :test_clock
# The data with which to automatically create a Transfer for each of the invoices.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Quote::CreateParams::TransferData))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::Quote::CreateParams::TransferData))) }
attr_accessor :transfer_data
sig {
- params(application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), application_fee_percent: T.nilable(T.nilable(T.any(String, Float))), automatic_tax: T.nilable(::Stripe::Quote::CreateParams::AutomaticTax), collection_method: T.nilable(String), customer: T.nilable(String), default_tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), description: T.nilable(T.nilable(String)), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Quote::CreateParams::Discount]))), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), footer: T.nilable(T.nilable(String)), from_quote: T.nilable(::Stripe::Quote::CreateParams::FromQuote), header: T.nilable(T.nilable(String)), invoice_settings: T.nilable(::Stripe::Quote::CreateParams::InvoiceSettings), line_items: T.nilable(T::Array[::Stripe::Quote::CreateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(T.nilable(String)), subscription_data: T.nilable(::Stripe::Quote::CreateParams::SubscriptionData), test_clock: T.nilable(String), transfer_data: T.nilable(T.nilable(T.any(String, ::Stripe::Quote::CreateParams::TransferData)))).void
+ params(application_fee_amount: T.nilable(T.any(String, Integer)), application_fee_percent: T.nilable(T.any(String, Float)), automatic_tax: T.nilable(::Stripe::Quote::CreateParams::AutomaticTax), collection_method: T.nilable(String), customer: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::Quote::CreateParams::Discount])), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), footer: T.nilable(String), from_quote: T.nilable(::Stripe::Quote::CreateParams::FromQuote), header: T.nilable(String), invoice_settings: T.nilable(::Stripe::Quote::CreateParams::InvoiceSettings), line_items: T.nilable(T::Array[::Stripe::Quote::CreateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), subscription_data: T.nilable(::Stripe::Quote::CreateParams::SubscriptionData), test_clock: T.nilable(String), transfer_data: T.nilable(T.any(String, ::Stripe::Quote::CreateParams::TransferData))).void
}
def initialize(
application_fee_amount: nil,
@@ -835,7 +831,7 @@ module Stripe
end
# The discounts applied to this line item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Quote::UpdateParams::LineItem::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Quote::UpdateParams::LineItem::Discount])))
}
attr_accessor :discounts
# The ID of an existing line item on the quote.
@@ -851,10 +847,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# The tax rates which apply to the line item. When set, the `default_tax_rates` on the quote do not apply to this line item.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Quote::UpdateParams::LineItem::Discount]))), id: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::Quote::UpdateParams::LineItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(discounts: T.nilable(T.any(String, T::Array[::Stripe::Quote::UpdateParams::LineItem::Discount])), id: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::Quote::UpdateParams::LineItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
discounts: nil,
@@ -867,19 +863,19 @@ module Stripe
end
class SubscriptionData < Stripe::RequestParams
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. The `effective_date` is ignored if it is in the past when the quote is accepted.
- sig { returns(T.nilable(T.nilable(T.any(String, T.any(String, Integer))))) }
+ sig { returns(T.nilable(T.any(String, T.any(String, Integer)))) }
attr_accessor :effective_date
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
# Integer representing the number of trial period days before the customer is charged for the first time.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :trial_period_days
sig {
- params(description: T.nilable(T.nilable(String)), effective_date: T.nilable(T.nilable(T.any(String, T.any(String, Integer)))), metadata: T.nilable(T::Hash[String, String]), trial_period_days: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(description: T.nilable(String), effective_date: T.nilable(T.any(String, T.any(String, Integer))), metadata: T.nilable(T::Hash[String, String]), trial_period_days: T.nilable(T.any(String, Integer))).void
}
def initialize(
description: nil,
@@ -904,10 +900,10 @@ module Stripe
def initialize(amount: nil, amount_percent: nil, destination: nil); end
end
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. There cannot be any line items with recurring prices when using this field.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :application_fee_amount
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field.
- sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
+ sig { returns(T.nilable(T.any(String, Float))) }
attr_accessor :application_fee_percent
# Settings for automatic tax lookup for this quote and resulting invoices and subscriptions.
sig { returns(T.nilable(::Stripe::Quote::UpdateParams::AutomaticTax)) }
@@ -919,15 +915,13 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :customer
# The tax rates that will apply to any line item that does not have `tax_rates` set.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_tax_rates
# A description that will be displayed on the quote PDF.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# The discounts applied to the quote.
- sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Quote::UpdateParams::Discount]))))
- }
+ sig { returns(T.nilable(T.any(String, T::Array[::Stripe::Quote::UpdateParams::Discount]))) }
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
@@ -936,10 +930,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :expires_at
# A footer that will be displayed on the quote PDF.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :footer
# A header that will be displayed on the quote PDF.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :header
# All invoices will be billed using the specified settings.
sig { returns(T.nilable(::Stripe::Quote::UpdateParams::InvoiceSettings)) }
@@ -951,18 +945,16 @@ module Stripe
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
# The account on behalf of which to charge.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :on_behalf_of
# When creating a subscription or subscription schedule, the specified configuration data will be used. There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. A subscription schedule is created if `subscription_data[effective_date]` is present and in the future, otherwise a subscription is created.
sig { returns(T.nilable(::Stripe::Quote::UpdateParams::SubscriptionData)) }
attr_accessor :subscription_data
# The data with which to automatically create a Transfer for each of the invoices.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Quote::UpdateParams::TransferData))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::Quote::UpdateParams::TransferData))) }
attr_accessor :transfer_data
sig {
- params(application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), application_fee_percent: T.nilable(T.nilable(T.any(String, Float))), automatic_tax: T.nilable(::Stripe::Quote::UpdateParams::AutomaticTax), collection_method: T.nilable(String), customer: T.nilable(String), default_tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), description: T.nilable(T.nilable(String)), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Quote::UpdateParams::Discount]))), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), footer: T.nilable(T.nilable(String)), header: T.nilable(T.nilable(String)), invoice_settings: T.nilable(::Stripe::Quote::UpdateParams::InvoiceSettings), line_items: T.nilable(T::Array[::Stripe::Quote::UpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(T.nilable(String)), subscription_data: T.nilable(::Stripe::Quote::UpdateParams::SubscriptionData), transfer_data: T.nilable(T.nilable(T.any(String, ::Stripe::Quote::UpdateParams::TransferData)))).void
+ params(application_fee_amount: T.nilable(T.any(String, Integer)), application_fee_percent: T.nilable(T.any(String, Float)), automatic_tax: T.nilable(::Stripe::Quote::UpdateParams::AutomaticTax), collection_method: T.nilable(String), customer: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::Quote::UpdateParams::Discount])), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), footer: T.nilable(String), header: T.nilable(String), invoice_settings: T.nilable(::Stripe::Quote::UpdateParams::InvoiceSettings), line_items: T.nilable(T::Array[::Stripe::Quote::UpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), subscription_data: T.nilable(::Stripe::Quote::UpdateParams::SubscriptionData), transfer_data: T.nilable(T.any(String, ::Stripe::Quote::UpdateParams::TransferData))).void
}
def initialize(
application_fee_amount: nil,
diff --git a/rbi/stripe/resources/refund.rbi b/rbi/stripe/resources/refund.rbi
index 601db9de8..3274d02b9 100644
--- a/rbi/stripe/resources/refund.rbi
+++ b/rbi/stripe/resources/refund.rbi
@@ -413,7 +413,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :instructions_email
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Origin of the refund
sig { returns(T.nilable(String)) }
@@ -431,7 +431,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :reverse_transfer
sig {
- params(amount: T.nilable(Integer), charge: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), expand: T.nilable(T::Array[String]), instructions_email: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), origin: T.nilable(String), payment_intent: T.nilable(String), reason: T.nilable(String), refund_application_fee: T.nilable(T::Boolean), reverse_transfer: T.nilable(T::Boolean)).void
+ params(amount: T.nilable(Integer), charge: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), expand: T.nilable(T::Array[String]), instructions_email: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), origin: T.nilable(String), payment_intent: T.nilable(String), reason: T.nilable(String), refund_application_fee: T.nilable(T::Boolean), reverse_transfer: T.nilable(T::Boolean)).void
}
def initialize(
amount: nil,
@@ -453,10 +453,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/resources/setup_intent.rbi b/rbi/stripe/resources/setup_intent.rbi
index d3e49c49c..88dd53003 100644
--- a/rbi/stripe/resources/setup_intent.rbi
+++ b/rbi/stripe/resources/setup_intent.rbi
@@ -639,23 +639,23 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::CreateParams::PaymentMethodData::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::SetupIntent::CreateParams::PaymentMethodData::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
sig { returns(T.nilable(String)) }
attr_accessor :tax_id
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::CreateParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
+ params(address: T.nilable(T.any(String, ::Stripe::SetupIntent::CreateParams::PaymentMethodData::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), tax_id: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
end
@@ -1098,7 +1098,7 @@ module Stripe
# A URL for custom mandate text to render during confirmation step.
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :custom_mandate_url
# List of Stripe products where this mandate can be selected automatically.
sig { returns(T.nilable(T::Array[String])) }
@@ -1113,7 +1113,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transaction_type
sig {
- params(custom_mandate_url: T.nilable(T.nilable(String)), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
+ params(custom_mandate_url: T.nilable(String), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
}
def initialize(
custom_mandate_url: nil,
@@ -1143,9 +1143,9 @@ module Stripe
class BacsDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -1397,11 +1397,11 @@ module Stripe
attr_accessor :preferred_locale
# Subscription details if setting up or charging a subscription
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Klarna::Subscription]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Klarna::Subscription])))
}
attr_accessor :subscriptions
sig {
- params(currency: T.nilable(String), on_demand: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), subscriptions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Klarna::Subscription])))).void
+ params(currency: T.nilable(String), on_demand: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), subscriptions: T.nilable(T.any(String, T::Array[::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Klarna::Subscription]))).void
}
def initialize(
currency: nil,
@@ -1427,9 +1427,9 @@ module Stripe
class SepaDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -1472,9 +1472,9 @@ module Stripe
end
class MandateOptions < Stripe::RequestParams
# The method used to collect offline mandate customer acceptance.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :collection_method
- sig { params(collection_method: T.nilable(T.nilable(String))).void }
+ sig { params(collection_method: T.nilable(String)).void }
def initialize(collection_method: nil); end
end
class Networks < Stripe::RequestParams
@@ -1617,9 +1617,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :flow_directions
# This hash contains details about the mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm).
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::CreateParams::MandateData))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::SetupIntent::CreateParams::MandateData))) }
attr_accessor :mandate_data
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
sig { returns(T.nilable(T::Hash[String, String])) }
@@ -1658,7 +1656,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :use_stripe_sdk
sig {
- params(attach_to_self: T.nilable(T::Boolean), automatic_payment_methods: T.nilable(::Stripe::SetupIntent::CreateParams::AutomaticPaymentMethods), confirm: T.nilable(T::Boolean), confirmation_token: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::CreateParams::MandateData))), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), return_url: T.nilable(String), single_use: T.nilable(::Stripe::SetupIntent::CreateParams::SingleUse), usage: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void
+ params(attach_to_self: T.nilable(T::Boolean), automatic_payment_methods: T.nilable(::Stripe::SetupIntent::CreateParams::AutomaticPaymentMethods), confirm: T.nilable(T::Boolean), confirmation_token: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), mandate_data: T.nilable(T.any(String, ::Stripe::SetupIntent::CreateParams::MandateData)), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), return_url: T.nilable(String), single_use: T.nilable(::Stripe::SetupIntent::CreateParams::SingleUse), usage: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void
}
def initialize(
attach_to_self: nil,
@@ -1761,23 +1759,23 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
sig { returns(T.nilable(String)) }
attr_accessor :tax_id
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
+ params(address: T.nilable(T.any(String, ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), tax_id: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
end
@@ -2220,7 +2218,7 @@ module Stripe
# A URL for custom mandate text to render during confirmation step.
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :custom_mandate_url
# List of Stripe products where this mandate can be selected automatically.
sig { returns(T.nilable(T::Array[String])) }
@@ -2235,7 +2233,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transaction_type
sig {
- params(custom_mandate_url: T.nilable(T.nilable(String)), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
+ params(custom_mandate_url: T.nilable(String), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
}
def initialize(
custom_mandate_url: nil,
@@ -2265,9 +2263,9 @@ module Stripe
class BacsDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -2519,11 +2517,11 @@ module Stripe
attr_accessor :preferred_locale
# Subscription details if setting up or charging a subscription
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Klarna::Subscription]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Klarna::Subscription])))
}
attr_accessor :subscriptions
sig {
- params(currency: T.nilable(String), on_demand: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), subscriptions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Klarna::Subscription])))).void
+ params(currency: T.nilable(String), on_demand: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), subscriptions: T.nilable(T.any(String, T::Array[::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Klarna::Subscription]))).void
}
def initialize(
currency: nil,
@@ -2549,9 +2547,9 @@ module Stripe
class SepaDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -2594,9 +2592,9 @@ module Stripe
end
class MandateOptions < Stripe::RequestParams
# The method used to collect offline mandate customer acceptance.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :collection_method
- sig { params(collection_method: T.nilable(T.nilable(String))).void }
+ sig { params(collection_method: T.nilable(String)).void }
def initialize(collection_method: nil); end
end
class Networks < Stripe::RequestParams
@@ -2718,7 +2716,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :flow_directions
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent. To unset this field to null, pass in an empty string.
sig { returns(T.nilable(String)) }
@@ -2737,7 +2735,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :payment_method_types
sig {
- params(attach_to_self: T.nilable(T::Boolean), customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String])).void
+ params(attach_to_self: T.nilable(T::Boolean), customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String])).void
}
def initialize(
attach_to_self: nil,
@@ -2887,23 +2885,23 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
sig { returns(T.nilable(String)) }
attr_accessor :tax_id
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
+ params(address: T.nilable(T.any(String, ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), tax_id: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
end
@@ -3352,7 +3350,7 @@ module Stripe
# A URL for custom mandate text to render during confirmation step.
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :custom_mandate_url
# List of Stripe products where this mandate can be selected automatically.
sig { returns(T.nilable(T::Array[String])) }
@@ -3367,7 +3365,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transaction_type
sig {
- params(custom_mandate_url: T.nilable(T.nilable(String)), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
+ params(custom_mandate_url: T.nilable(String), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
}
def initialize(
custom_mandate_url: nil,
@@ -3397,9 +3395,9 @@ module Stripe
class BacsDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -3651,11 +3649,11 @@ module Stripe
attr_accessor :preferred_locale
# Subscription details if setting up or charging a subscription
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Klarna::Subscription]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Klarna::Subscription])))
}
attr_accessor :subscriptions
sig {
- params(currency: T.nilable(String), on_demand: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), subscriptions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Klarna::Subscription])))).void
+ params(currency: T.nilable(String), on_demand: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), subscriptions: T.nilable(T.any(String, T::Array[::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Klarna::Subscription]))).void
}
def initialize(
currency: nil,
@@ -3681,9 +3679,9 @@ module Stripe
class SepaDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -3726,9 +3724,9 @@ module Stripe
end
class MandateOptions < Stripe::RequestParams
# The method used to collect offline mandate customer acceptance.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :collection_method
- sig { params(collection_method: T.nilable(T.nilable(String))).void }
+ sig { params(collection_method: T.nilable(String)).void }
def initialize(collection_method: nil); end
end
class Networks < Stripe::RequestParams
@@ -3837,9 +3835,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Attribute for param field mandate_data
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::ConfirmParams::MandateData))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::SetupIntent::ConfirmParams::MandateData))) }
attr_accessor :mandate_data
# ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent.
sig { returns(T.nilable(String)) }
@@ -3860,7 +3856,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :use_stripe_sdk
sig {
- params(confirmation_token: T.nilable(String), expand: T.nilable(T::Array[String]), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::ConfirmParams::MandateData))), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions), return_url: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void
+ params(confirmation_token: T.nilable(String), expand: T.nilable(T::Array[String]), mandate_data: T.nilable(T.any(String, ::Stripe::SetupIntent::ConfirmParams::MandateData)), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions), return_url: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void
}
def initialize(
confirmation_token: nil,
diff --git a/rbi/stripe/resources/shipping_rate.rbi b/rbi/stripe/resources/shipping_rate.rbi
index d03a7f06e..117fd31d6 100644
--- a/rbi/stripe/resources/shipping_rate.rbi
+++ b/rbi/stripe/resources/shipping_rate.rbi
@@ -268,13 +268,13 @@ module Stripe
sig { returns(T.nilable(::Stripe::ShippingRate::UpdateParams::FixedAmount)) }
attr_accessor :fixed_amount
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
sig { returns(T.nilable(String)) }
attr_accessor :tax_behavior
sig {
- params(active: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fixed_amount: T.nilable(::Stripe::ShippingRate::UpdateParams::FixedAmount), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), tax_behavior: T.nilable(String)).void
+ params(active: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fixed_amount: T.nilable(::Stripe::ShippingRate::UpdateParams::FixedAmount), metadata: T.nilable(T.any(String, T::Hash[String, String])), tax_behavior: T.nilable(String)).void
}
def initialize(
active: nil,
diff --git a/rbi/stripe/resources/source.rbi b/rbi/stripe/resources/source.rbi
index e9a522804..b503c7255 100644
--- a/rbi/stripe/resources/source.rbi
+++ b/rbi/stripe/resources/source.rbi
@@ -936,7 +936,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Source::UpdateParams::Mandate::Acceptance)) }
attr_accessor :acceptance
# The amount specified by the mandate. (Leave null for a mandate covering all amounts)
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :amount
# The currency specified by the mandate. (Must match `currency` of the source)
sig { returns(T.nilable(String)) }
@@ -948,7 +948,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :notification_method
sig {
- params(acceptance: T.nilable(::Stripe::Source::UpdateParams::Mandate::Acceptance), amount: T.nilable(T.nilable(T.any(String, Integer))), currency: T.nilable(String), interval: T.nilable(String), notification_method: T.nilable(String)).void
+ params(acceptance: T.nilable(::Stripe::Source::UpdateParams::Mandate::Acceptance), amount: T.nilable(T.any(String, Integer)), currency: T.nilable(String), interval: T.nilable(String), notification_method: T.nilable(String)).void
}
def initialize(
acceptance: nil,
@@ -1118,7 +1118,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Source::UpdateParams::Mandate)) }
attr_accessor :mandate
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Information about the owner of the payment instrument that may be used or required by particular source types.
sig { returns(T.nilable(::Stripe::Source::UpdateParams::Owner)) }
@@ -1127,7 +1127,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Source::UpdateParams::SourceOrder)) }
attr_accessor :source_order
sig {
- params(amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), mandate: T.nilable(::Stripe::Source::UpdateParams::Mandate), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), owner: T.nilable(::Stripe::Source::UpdateParams::Owner), source_order: T.nilable(::Stripe::Source::UpdateParams::SourceOrder)).void
+ params(amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), mandate: T.nilable(::Stripe::Source::UpdateParams::Mandate), metadata: T.nilable(T.any(String, T::Hash[String, String])), owner: T.nilable(::Stripe::Source::UpdateParams::Owner), source_order: T.nilable(::Stripe::Source::UpdateParams::SourceOrder)).void
}
def initialize(
amount: nil,
@@ -1201,7 +1201,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Source::CreateParams::Mandate::Acceptance)) }
attr_accessor :acceptance
# The amount specified by the mandate. (Leave null for a mandate covering all amounts)
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :amount
# The currency specified by the mandate. (Must match `currency` of the source)
sig { returns(T.nilable(String)) }
@@ -1213,7 +1213,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :notification_method
sig {
- params(acceptance: T.nilable(::Stripe::Source::CreateParams::Mandate::Acceptance), amount: T.nilable(T.nilable(T.any(String, Integer))), currency: T.nilable(String), interval: T.nilable(String), notification_method: T.nilable(String)).void
+ params(acceptance: T.nilable(::Stripe::Source::CreateParams::Mandate::Acceptance), amount: T.nilable(T.any(String, Integer)), currency: T.nilable(String), interval: T.nilable(String), notification_method: T.nilable(String)).void
}
def initialize(
acceptance: nil,
diff --git a/rbi/stripe/resources/subscription.rbi b/rbi/stripe/resources/subscription.rbi
index dccbc2296..56f868f6e 100644
--- a/rbi/stripe/resources/subscription.rbi
+++ b/rbi/stripe/resources/subscription.rbi
@@ -405,14 +405,12 @@ module Stripe
class CancelParams < Stripe::RequestParams
class CancellationDetails < Stripe::RequestParams
# Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :comment
# The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :feedback
- sig {
- params(comment: T.nilable(T.nilable(String)), feedback: T.nilable(T.nilable(T.any(String, String)))).void
- }
+ sig { params(comment: T.nilable(String), feedback: T.nilable(T.any(String, String))).void }
def initialize(comment: nil, feedback: nil); end
end
# Details about why this subscription was cancelled
@@ -491,10 +489,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(discounts: T.nilable(T::Array[::Stripe::Subscription::UpdateParams::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::Subscription::UpdateParams::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(discounts: T.nilable(T::Array[::Stripe::Subscription::UpdateParams::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::Subscription::UpdateParams::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
discounts: nil,
@@ -540,14 +538,12 @@ module Stripe
end
class CancellationDetails < Stripe::RequestParams
# Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :comment
# The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :feedback
- sig {
- params(comment: T.nilable(T.nilable(String)), feedback: T.nilable(T.nilable(T.any(String, String)))).void
- }
+ sig { params(comment: T.nilable(String), feedback: T.nilable(T.any(String, String))).void }
def initialize(comment: nil, feedback: nil); end
end
class Discount < Stripe::RequestParams
@@ -577,13 +573,13 @@ module Stripe
def initialize(account: nil, type: nil); end
end
# The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
sig { returns(T.nilable(::Stripe::Subscription::UpdateParams::InvoiceSettings::Issuer)) }
attr_accessor :issuer
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), issuer: T.nilable(::Stripe::Subscription::UpdateParams::InvoiceSettings::Issuer)).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), issuer: T.nilable(::Stripe::Subscription::UpdateParams::InvoiceSettings::Issuer)).void
}
def initialize(account_tax_ids: nil, issuer: nil); end
end
@@ -653,7 +649,7 @@ module Stripe
end
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::Item::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::Item::BillingThresholds)))
}
attr_accessor :billing_thresholds
# Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
@@ -664,14 +660,14 @@ module Stripe
attr_accessor :deleted
# The coupons to redeem into discounts for the subscription item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Subscription::UpdateParams::Item::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Subscription::UpdateParams::Item::Discount])))
}
attr_accessor :discounts
# Subscription item to update.
sig { returns(T.nilable(String)) }
attr_accessor :id
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Plan ID for this item, as a string.
sig { returns(T.nilable(String)) }
@@ -686,10 +682,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::Item::BillingThresholds))), clear_usage: T.nilable(T::Boolean), deleted: T.nilable(T::Boolean), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Subscription::UpdateParams::Item::Discount]))), id: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::Subscription::UpdateParams::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(billing_thresholds: T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::Item::BillingThresholds)), clear_usage: T.nilable(T::Boolean), deleted: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[::Stripe::Subscription::UpdateParams::Item::Discount])), id: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::Subscription::UpdateParams::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
billing_thresholds: nil,
@@ -854,41 +850,41 @@ module Stripe
end
# This sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::AcssDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::AcssDebit)))
}
attr_accessor :acss_debit
# This sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::Bancontact))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::Bancontact)))
}
attr_accessor :bancontact
# This sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::Card))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::Card)))
}
attr_accessor :card
# This sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance)))
}
attr_accessor :customer_balance
# This sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::Konbini))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::Konbini)))
}
attr_accessor :konbini
# This sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::SepaDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::SepaDebit)))
}
attr_accessor :sepa_debit
# This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount)))
}
attr_accessor :us_bank_account
sig {
- params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::AcssDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::Bancontact))), card: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::Card))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::Konbini))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::SepaDebit))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount)))).void
+ params(acss_debit: T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::AcssDebit)), bancontact: T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::Bancontact)), card: T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::Card)), customer_balance: T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance)), konbini: T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::Konbini)), sepa_debit: T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::SepaDebit)), us_bank_account: T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount))).void
}
def initialize(
acss_debit: nil,
@@ -906,13 +902,13 @@ module Stripe
}
attr_accessor :payment_method_options
# The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :payment_method_types
# Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off` if unspecified.
sig { returns(T.nilable(String)) }
attr_accessor :save_default_payment_method
sig {
- params(payment_method_options: T.nilable(::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions), payment_method_types: T.nilable(T.nilable(T.any(String, T::Array[String]))), save_default_payment_method: T.nilable(String)).void
+ params(payment_method_options: T.nilable(::Stripe::Subscription::UpdateParams::PaymentSettings::PaymentMethodOptions), payment_method_types: T.nilable(T.any(String, T::Array[String])), save_default_payment_method: T.nilable(String)).void
}
def initialize(
payment_method_options: nil,
@@ -960,7 +956,7 @@ module Stripe
sig { returns(T.nilable(T::Array[::Stripe::Subscription::UpdateParams::AddInvoiceItem])) }
attr_accessor :add_invoice_items
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
- sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
+ sig { returns(T.nilable(T.any(String, Float))) }
attr_accessor :application_fee_percent
# Automatic tax settings for this subscription. We recommend you only include this parameter when the existing value is being changed.
sig { returns(T.nilable(::Stripe::Subscription::UpdateParams::AutomaticTax)) }
@@ -970,11 +966,11 @@ module Stripe
attr_accessor :billing_cycle_anchor
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::BillingThresholds)))
}
attr_accessor :billing_thresholds
# A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
- sig { returns(T.nilable(T.nilable(T.any(String, T.any(Integer, String))))) }
+ sig { returns(T.nilable(T.any(String, T.any(Integer, String)))) }
attr_accessor :cancel_at
# Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`.
sig { returns(T.nilable(T::Boolean)) }
@@ -992,17 +988,17 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :default_payment_method
# ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If `default_payment_method` is also set, `default_payment_method` will take precedence. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :default_source
# The tax rates that will apply to any subscription item that does not have `tax_rates` set. Invoices created will have their `default_tax_rates` populated from the subscription. Pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_tax_rates
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# The coupons to redeem into discounts for the subscription. If not specified or empty, inherits the discount from the subscription's customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Subscription::UpdateParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Subscription::UpdateParams::Discount])))
}
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
@@ -1015,17 +1011,17 @@ module Stripe
sig { returns(T.nilable(T::Array[::Stripe::Subscription::UpdateParams::Item])) }
attr_accessor :items
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `false` (on-session).
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :off_session
# The account on behalf of which to charge, for each of the subscription's invoices.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :on_behalf_of
# If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PauseCollection))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PauseCollection)))
}
attr_accessor :pause_collection
# Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://stripe.com/docs/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior.
@@ -1042,7 +1038,7 @@ module Stripe
attr_accessor :payment_settings
# Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://stripe.com/docs/api#create_invoice) for the given subscription at the specified interval.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PendingInvoiceItemInterval))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PendingInvoiceItemInterval)))
}
attr_accessor :pending_invoice_item_interval
# Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
@@ -1052,9 +1048,7 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :proration_date
# If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges. This will be unset if you POST an empty value.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::TransferData))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::TransferData))) }
attr_accessor :transfer_data
# Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. If set, `trial_end` will override the default trial period of the plan the customer is being subscribed to. The `billing_cycle_anchor` will be updated to the `trial_end` value. The special value `now` can be provided to end the customer's trial immediately. Can be at most two years from `billing_cycle_anchor`.
sig { returns(T.nilable(T.any(String, Integer))) }
@@ -1066,7 +1060,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Subscription::UpdateParams::TrialSettings)) }
attr_accessor :trial_settings
sig {
- params(add_invoice_items: T.nilable(T::Array[::Stripe::Subscription::UpdateParams::AddInvoiceItem]), application_fee_percent: T.nilable(T.nilable(T.any(String, Float))), automatic_tax: T.nilable(::Stripe::Subscription::UpdateParams::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::BillingThresholds))), cancel_at: T.nilable(T.nilable(T.any(String, T.any(Integer, String)))), cancel_at_period_end: T.nilable(T::Boolean), cancellation_details: T.nilable(::Stripe::Subscription::UpdateParams::CancellationDetails), collection_method: T.nilable(String), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(T.nilable(String)), default_tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), description: T.nilable(T.nilable(String)), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Subscription::UpdateParams::Discount]))), expand: T.nilable(T::Array[String]), invoice_settings: T.nilable(::Stripe::Subscription::UpdateParams::InvoiceSettings), items: T.nilable(T::Array[::Stripe::Subscription::UpdateParams::Item]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), off_session: T.nilable(T::Boolean), on_behalf_of: T.nilable(T.nilable(String)), pause_collection: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PauseCollection))), payment_behavior: T.nilable(String), payment_settings: T.nilable(::Stripe::Subscription::UpdateParams::PaymentSettings), pending_invoice_item_interval: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PendingInvoiceItemInterval))), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), transfer_data: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::TransferData))), trial_end: T.nilable(T.any(String, Integer)), trial_from_plan: T.nilable(T::Boolean), trial_settings: T.nilable(::Stripe::Subscription::UpdateParams::TrialSettings)).void
+ params(add_invoice_items: T.nilable(T::Array[::Stripe::Subscription::UpdateParams::AddInvoiceItem]), application_fee_percent: T.nilable(T.any(String, Float)), automatic_tax: T.nilable(::Stripe::Subscription::UpdateParams::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::BillingThresholds)), cancel_at: T.nilable(T.any(String, T.any(Integer, String))), cancel_at_period_end: T.nilable(T::Boolean), cancellation_details: T.nilable(::Stripe::Subscription::UpdateParams::CancellationDetails), collection_method: T.nilable(String), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::Subscription::UpdateParams::Discount])), expand: T.nilable(T::Array[String]), invoice_settings: T.nilable(::Stripe::Subscription::UpdateParams::InvoiceSettings), items: T.nilable(T::Array[::Stripe::Subscription::UpdateParams::Item]), metadata: T.nilable(T.any(String, T::Hash[String, String])), off_session: T.nilable(T::Boolean), on_behalf_of: T.nilable(String), pause_collection: T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PauseCollection)), payment_behavior: T.nilable(String), payment_settings: T.nilable(::Stripe::Subscription::UpdateParams::PaymentSettings), pending_invoice_item_interval: T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::PendingInvoiceItemInterval)), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), transfer_data: T.nilable(T.any(String, ::Stripe::Subscription::UpdateParams::TransferData)), trial_end: T.nilable(T.any(String, Integer)), trial_from_plan: T.nilable(T::Boolean), trial_settings: T.nilable(::Stripe::Subscription::UpdateParams::TrialSettings)).void
}
def initialize(
add_invoice_items: nil,
@@ -1290,10 +1284,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(discounts: T.nilable(T::Array[::Stripe::Subscription::CreateParams::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::Subscription::CreateParams::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(discounts: T.nilable(T::Array[::Stripe::Subscription::CreateParams::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::Subscription::CreateParams::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
discounts: nil,
@@ -1392,13 +1386,13 @@ module Stripe
def initialize(account: nil, type: nil); end
end
# The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
sig { returns(T.nilable(::Stripe::Subscription::CreateParams::InvoiceSettings::Issuer)) }
attr_accessor :issuer
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), issuer: T.nilable(::Stripe::Subscription::CreateParams::InvoiceSettings::Issuer)).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), issuer: T.nilable(::Stripe::Subscription::CreateParams::InvoiceSettings::Issuer)).void
}
def initialize(account_tax_ids: nil, issuer: nil); end
end
@@ -1468,12 +1462,12 @@ module Stripe
end
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::Item::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::Item::BillingThresholds)))
}
attr_accessor :billing_thresholds
# The coupons to redeem into discounts for the subscription item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Subscription::CreateParams::Item::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Subscription::CreateParams::Item::Discount])))
}
attr_accessor :discounts
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -1492,10 +1486,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::Item::BillingThresholds))), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Subscription::CreateParams::Item::Discount]))), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::Subscription::CreateParams::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(billing_thresholds: T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[::Stripe::Subscription::CreateParams::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::Subscription::CreateParams::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
billing_thresholds: nil,
@@ -1647,41 +1641,41 @@ module Stripe
end
# This sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::AcssDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::AcssDebit)))
}
attr_accessor :acss_debit
# This sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::Bancontact))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::Bancontact)))
}
attr_accessor :bancontact
# This sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::Card))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::Card)))
}
attr_accessor :card
# This sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance)))
}
attr_accessor :customer_balance
# This sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::Konbini))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::Konbini)))
}
attr_accessor :konbini
# This sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::SepaDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::SepaDebit)))
}
attr_accessor :sepa_debit
# This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount)))
}
attr_accessor :us_bank_account
sig {
- params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::AcssDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::Bancontact))), card: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::Card))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::Konbini))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::SepaDebit))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount)))).void
+ params(acss_debit: T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::AcssDebit)), bancontact: T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::Bancontact)), card: T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::Card)), customer_balance: T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance)), konbini: T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::Konbini)), sepa_debit: T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::SepaDebit)), us_bank_account: T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount))).void
}
def initialize(
acss_debit: nil,
@@ -1699,13 +1693,13 @@ module Stripe
}
attr_accessor :payment_method_options
# The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :payment_method_types
# Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off` if unspecified.
sig { returns(T.nilable(String)) }
attr_accessor :save_default_payment_method
sig {
- params(payment_method_options: T.nilable(::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions), payment_method_types: T.nilable(T.nilable(T.any(String, T::Array[String]))), save_default_payment_method: T.nilable(String)).void
+ params(payment_method_options: T.nilable(::Stripe::Subscription::CreateParams::PaymentSettings::PaymentMethodOptions), payment_method_types: T.nilable(T.any(String, T::Array[String])), save_default_payment_method: T.nilable(String)).void
}
def initialize(
payment_method_options: nil,
@@ -1753,7 +1747,7 @@ module Stripe
sig { returns(T.nilable(T::Array[::Stripe::Subscription::CreateParams::AddInvoiceItem])) }
attr_accessor :add_invoice_items
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
- sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
+ sig { returns(T.nilable(T.any(String, Float))) }
attr_accessor :application_fee_percent
# Automatic tax settings for this subscription.
sig { returns(T.nilable(::Stripe::Subscription::CreateParams::AutomaticTax)) }
@@ -1772,7 +1766,7 @@ module Stripe
attr_accessor :billing_mode
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::BillingThresholds)))
}
attr_accessor :billing_thresholds
# A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
@@ -1800,14 +1794,14 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :default_source
# The tax rates that will apply to any subscription item that does not have `tax_rates` set. Invoices created will have their `default_tax_rates` populated from the subscription.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_tax_rates
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
sig { returns(T.nilable(String)) }
attr_accessor :description
# The coupons to redeem into discounts for the subscription. If not specified or empty, inherits the discount from the subscription's customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Subscription::CreateParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Subscription::CreateParams::Discount])))
}
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
@@ -1820,13 +1814,13 @@ module Stripe
sig { returns(T.nilable(T::Array[::Stripe::Subscription::CreateParams::Item])) }
attr_accessor :items
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `false` (on-session).
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :off_session
# The account on behalf of which to charge, for each of the subscription's invoices.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :on_behalf_of
# Only applies to subscriptions with `collection_method=charge_automatically`.
#
@@ -1846,7 +1840,7 @@ module Stripe
attr_accessor :payment_settings
# Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://stripe.com/docs/api#create_invoice) for the given subscription at the specified interval.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PendingInvoiceItemInterval))))
+ returns(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PendingInvoiceItemInterval)))
}
attr_accessor :pending_invoice_item_interval
# Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
@@ -1868,7 +1862,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Subscription::CreateParams::TrialSettings)) }
attr_accessor :trial_settings
sig {
- params(add_invoice_items: T.nilable(T::Array[::Stripe::Subscription::CreateParams::AddInvoiceItem]), application_fee_percent: T.nilable(T.nilable(T.any(String, Float))), automatic_tax: T.nilable(::Stripe::Subscription::CreateParams::AutomaticTax), backdate_start_date: T.nilable(Integer), billing_cycle_anchor: T.nilable(Integer), billing_cycle_anchor_config: T.nilable(::Stripe::Subscription::CreateParams::BillingCycleAnchorConfig), billing_mode: T.nilable(::Stripe::Subscription::CreateParams::BillingMode), billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::BillingThresholds))), cancel_at: T.nilable(T.any(Integer, String)), cancel_at_period_end: T.nilable(T::Boolean), collection_method: T.nilable(String), currency: T.nilable(String), customer: String, days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), description: T.nilable(String), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Subscription::CreateParams::Discount]))), expand: T.nilable(T::Array[String]), invoice_settings: T.nilable(::Stripe::Subscription::CreateParams::InvoiceSettings), items: T.nilable(T::Array[::Stripe::Subscription::CreateParams::Item]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), off_session: T.nilable(T::Boolean), on_behalf_of: T.nilable(T.nilable(String)), payment_behavior: T.nilable(String), payment_settings: T.nilable(::Stripe::Subscription::CreateParams::PaymentSettings), pending_invoice_item_interval: T.nilable(T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PendingInvoiceItemInterval))), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::Subscription::CreateParams::TransferData), trial_end: T.nilable(T.any(String, Integer)), trial_from_plan: T.nilable(T::Boolean), trial_period_days: T.nilable(Integer), trial_settings: T.nilable(::Stripe::Subscription::CreateParams::TrialSettings)).void
+ params(add_invoice_items: T.nilable(T::Array[::Stripe::Subscription::CreateParams::AddInvoiceItem]), application_fee_percent: T.nilable(T.any(String, Float)), automatic_tax: T.nilable(::Stripe::Subscription::CreateParams::AutomaticTax), backdate_start_date: T.nilable(Integer), billing_cycle_anchor: T.nilable(Integer), billing_cycle_anchor_config: T.nilable(::Stripe::Subscription::CreateParams::BillingCycleAnchorConfig), billing_mode: T.nilable(::Stripe::Subscription::CreateParams::BillingMode), billing_thresholds: T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::BillingThresholds)), cancel_at: T.nilable(T.any(Integer, String)), cancel_at_period_end: T.nilable(T::Boolean), collection_method: T.nilable(String), currency: T.nilable(String), customer: String, days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::Subscription::CreateParams::Discount])), expand: T.nilable(T::Array[String]), invoice_settings: T.nilable(::Stripe::Subscription::CreateParams::InvoiceSettings), items: T.nilable(T::Array[::Stripe::Subscription::CreateParams::Item]), metadata: T.nilable(T.any(String, T::Hash[String, String])), off_session: T.nilable(T::Boolean), on_behalf_of: T.nilable(String), payment_behavior: T.nilable(String), payment_settings: T.nilable(::Stripe::Subscription::CreateParams::PaymentSettings), pending_invoice_item_interval: T.nilable(T.any(String, ::Stripe::Subscription::CreateParams::PendingInvoiceItemInterval)), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::Subscription::CreateParams::TransferData), trial_end: T.nilable(T.any(String, Integer)), trial_from_plan: T.nilable(T::Boolean), trial_period_days: T.nilable(Integer), trial_settings: T.nilable(::Stripe::Subscription::CreateParams::TrialSettings)).void
}
def initialize(
add_invoice_items: nil,
diff --git a/rbi/stripe/resources/subscription_item.rbi b/rbi/stripe/resources/subscription_item.rbi
index 272c1b2b6..a416453e3 100644
--- a/rbi/stripe/resources/subscription_item.rbi
+++ b/rbi/stripe/resources/subscription_item.rbi
@@ -146,19 +146,19 @@ module Stripe
end
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionItem::UpdateParams::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionItem::UpdateParams::BillingThresholds)))
}
attr_accessor :billing_thresholds
# The coupons to redeem into discounts for the subscription item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionItem::UpdateParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionItem::UpdateParams::Discount])))
}
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `false` (on-session).
sig { returns(T.nilable(T::Boolean)) }
@@ -191,10 +191,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionItem::UpdateParams::BillingThresholds))), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionItem::UpdateParams::Discount]))), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), off_session: T.nilable(T::Boolean), payment_behavior: T.nilable(String), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionItem::UpdateParams::PriceData), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionItem::UpdateParams::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionItem::UpdateParams::Discount])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), off_session: T.nilable(T::Boolean), payment_behavior: T.nilable(String), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionItem::UpdateParams::PriceData), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
billing_thresholds: nil,
@@ -305,12 +305,12 @@ module Stripe
end
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionItem::CreateParams::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionItem::CreateParams::BillingThresholds)))
}
attr_accessor :billing_thresholds
# The coupons to redeem into discounts for the subscription item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionItem::CreateParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionItem::CreateParams::Discount])))
}
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
@@ -350,10 +350,10 @@ module Stripe
sig { returns(String) }
attr_accessor :subscription
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionItem::CreateParams::BillingThresholds))), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionItem::CreateParams::Discount]))), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), payment_behavior: T.nilable(String), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionItem::CreateParams::PriceData), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), quantity: T.nilable(Integer), subscription: String, tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionItem::CreateParams::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionItem::CreateParams::Discount])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), payment_behavior: T.nilable(String), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionItem::CreateParams::PriceData), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), quantity: T.nilable(Integer), subscription: String, tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
billing_thresholds: nil,
diff --git a/rbi/stripe/resources/subscription_schedule.rbi b/rbi/stripe/resources/subscription_schedule.rbi
index 691f0f81a..7132e396d 100644
--- a/rbi/stripe/resources/subscription_schedule.rbi
+++ b/rbi/stripe/resources/subscription_schedule.rbi
@@ -541,7 +541,7 @@ module Stripe
def initialize(account: nil, type: nil); end
end
# The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`.
sig { returns(T.nilable(Integer)) }
@@ -552,7 +552,7 @@ module Stripe
}
attr_accessor :issuer
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::DefaultSettings::InvoiceSettings::Issuer)).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::DefaultSettings::InvoiceSettings::Issuer)).void
}
def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end
end
@@ -579,7 +579,7 @@ module Stripe
attr_accessor :billing_cycle_anchor
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::CreateParams::DefaultSettings::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::CreateParams::DefaultSettings::BillingThresholds)))
}
attr_accessor :billing_thresholds
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
@@ -589,7 +589,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :default_payment_method
# Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# All invoices will be billed using the specified settings.
sig {
@@ -597,15 +597,15 @@ module Stripe
}
attr_accessor :invoice_settings
# The account on behalf of which to charge, for each of the associated subscription's invoices.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :on_behalf_of
# The data with which to automatically create a Transfer for each of the associated subscription's invoices.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::CreateParams::DefaultSettings::TransferData))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::CreateParams::DefaultSettings::TransferData)))
}
attr_accessor :transfer_data
sig {
- params(application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::DefaultSettings::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::CreateParams::DefaultSettings::BillingThresholds))), collection_method: T.nilable(String), default_payment_method: T.nilable(String), description: T.nilable(T.nilable(String)), invoice_settings: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::DefaultSettings::InvoiceSettings), on_behalf_of: T.nilable(T.nilable(String)), transfer_data: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::CreateParams::DefaultSettings::TransferData)))).void
+ params(application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::DefaultSettings::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::CreateParams::DefaultSettings::BillingThresholds)), collection_method: T.nilable(String), default_payment_method: T.nilable(String), description: T.nilable(String), invoice_settings: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::DefaultSettings::InvoiceSettings), on_behalf_of: T.nilable(String), transfer_data: T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::CreateParams::DefaultSettings::TransferData))).void
}
def initialize(
application_fee_percent: nil,
@@ -681,10 +681,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(discounts: T.nilable(T::Array[::Stripe::SubscriptionSchedule::CreateParams::Phase::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(discounts: T.nilable(T::Array[::Stripe::SubscriptionSchedule::CreateParams::Phase::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
discounts: nil,
@@ -767,7 +767,7 @@ module Stripe
def initialize(account: nil, type: nil); end
end
# The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
sig { returns(T.nilable(Integer)) }
@@ -778,7 +778,7 @@ module Stripe
}
attr_accessor :issuer
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::Phase::InvoiceSettings::Issuer)).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::Phase::InvoiceSettings::Issuer)).void
}
def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end
end
@@ -850,12 +850,12 @@ module Stripe
end
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::CreateParams::Phase::Item::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::CreateParams::Phase::Item::BillingThresholds)))
}
attr_accessor :billing_thresholds
# The coupons to redeem into discounts for the subscription item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionSchedule::CreateParams::Phase::Item::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionSchedule::CreateParams::Phase::Item::Discount])))
}
attr_accessor :discounts
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a configuration item. Metadata on a configuration item will update the underlying subscription item's `metadata` when the phase is entered, adding new keys and replacing existing keys. Individual keys in the subscription item's `metadata` can be unset by posting an empty value to them in the configuration item's `metadata`. To unset all keys in the subscription item's `metadata`, update the subscription item directly or unset every key individually from the configuration item's `metadata`.
@@ -876,10 +876,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::CreateParams::Phase::Item::BillingThresholds))), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionSchedule::CreateParams::Phase::Item::Discount]))), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::CreateParams::Phase::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionSchedule::CreateParams::Phase::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
billing_thresholds: nil,
@@ -920,7 +920,7 @@ module Stripe
attr_accessor :billing_cycle_anchor
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::CreateParams::Phase::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::CreateParams::Phase::BillingThresholds)))
}
attr_accessor :billing_thresholds
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
@@ -933,14 +933,14 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :default_payment_method
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://stripe.com/docs/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_tax_rates
# Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionSchedule::CreateParams::Phase::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionSchedule::CreateParams::Phase::Discount])))
}
attr_accessor :discounts
# The number of intervals the phase should last. If set, `end_date` must not be set.
@@ -981,7 +981,7 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :trial_end
sig {
- params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionSchedule::CreateParams::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::CreateParams::Phase::BillingThresholds))), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), description: T.nilable(T.nilable(String)), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionSchedule::CreateParams::Phase::Discount]))), duration: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::Phase::Duration), end_date: T.nilable(Integer), invoice_settings: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::Phase::InvoiceSettings), items: T::Array[::Stripe::SubscriptionSchedule::CreateParams::Phase::Item], iterations: T.nilable(Integer), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::Phase::TransferData), trial: T.nilable(T::Boolean), trial_end: T.nilable(Integer)).void
+ params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionSchedule::CreateParams::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::CreateParams::Phase::BillingThresholds)), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionSchedule::CreateParams::Phase::Discount])), duration: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::Phase::Duration), end_date: T.nilable(Integer), invoice_settings: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::Phase::InvoiceSettings), items: T::Array[::Stripe::SubscriptionSchedule::CreateParams::Phase::Item], iterations: T.nilable(Integer), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::Phase::TransferData), trial: T.nilable(T::Boolean), trial_end: T.nilable(Integer)).void
}
def initialize(
add_invoice_items: nil,
@@ -1027,7 +1027,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :from_subscription
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.
sig { returns(T.nilable(T::Array[::Stripe::SubscriptionSchedule::CreateParams::Phase])) }
@@ -1036,7 +1036,7 @@ module Stripe
sig { returns(T.nilable(T.any(Integer, String))) }
attr_accessor :start_date
sig {
- params(billing_mode: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::BillingMode), customer: T.nilable(String), default_settings: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::DefaultSettings), end_behavior: T.nilable(String), expand: T.nilable(T::Array[String]), from_subscription: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), phases: T.nilable(T::Array[::Stripe::SubscriptionSchedule::CreateParams::Phase]), start_date: T.nilable(T.any(Integer, String))).void
+ params(billing_mode: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::BillingMode), customer: T.nilable(String), default_settings: T.nilable(::Stripe::SubscriptionSchedule::CreateParams::DefaultSettings), end_behavior: T.nilable(String), expand: T.nilable(T::Array[String]), from_subscription: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), phases: T.nilable(T::Array[::Stripe::SubscriptionSchedule::CreateParams::Phase]), start_date: T.nilable(T.any(Integer, String))).void
}
def initialize(
billing_mode: nil,
@@ -1100,7 +1100,7 @@ module Stripe
def initialize(account: nil, type: nil); end
end
# The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`.
sig { returns(T.nilable(Integer)) }
@@ -1111,7 +1111,7 @@ module Stripe
}
attr_accessor :issuer
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::DefaultSettings::InvoiceSettings::Issuer)).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::DefaultSettings::InvoiceSettings::Issuer)).void
}
def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end
end
@@ -1138,7 +1138,7 @@ module Stripe
attr_accessor :billing_cycle_anchor
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::UpdateParams::DefaultSettings::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::UpdateParams::DefaultSettings::BillingThresholds)))
}
attr_accessor :billing_thresholds
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
@@ -1148,7 +1148,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :default_payment_method
# Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# All invoices will be billed using the specified settings.
sig {
@@ -1156,15 +1156,15 @@ module Stripe
}
attr_accessor :invoice_settings
# The account on behalf of which to charge, for each of the associated subscription's invoices.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :on_behalf_of
# The data with which to automatically create a Transfer for each of the associated subscription's invoices.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::UpdateParams::DefaultSettings::TransferData))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::UpdateParams::DefaultSettings::TransferData)))
}
attr_accessor :transfer_data
sig {
- params(application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::DefaultSettings::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::UpdateParams::DefaultSettings::BillingThresholds))), collection_method: T.nilable(String), default_payment_method: T.nilable(String), description: T.nilable(T.nilable(String)), invoice_settings: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::DefaultSettings::InvoiceSettings), on_behalf_of: T.nilable(T.nilable(String)), transfer_data: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::UpdateParams::DefaultSettings::TransferData)))).void
+ params(application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::DefaultSettings::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::UpdateParams::DefaultSettings::BillingThresholds)), collection_method: T.nilable(String), default_payment_method: T.nilable(String), description: T.nilable(String), invoice_settings: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::DefaultSettings::InvoiceSettings), on_behalf_of: T.nilable(String), transfer_data: T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::UpdateParams::DefaultSettings::TransferData))).void
}
def initialize(
application_fee_percent: nil,
@@ -1240,10 +1240,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(discounts: T.nilable(T::Array[::Stripe::SubscriptionSchedule::UpdateParams::Phase::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(discounts: T.nilable(T::Array[::Stripe::SubscriptionSchedule::UpdateParams::Phase::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
discounts: nil,
@@ -1326,7 +1326,7 @@ module Stripe
def initialize(account: nil, type: nil); end
end
# The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
sig { returns(T.nilable(Integer)) }
@@ -1337,7 +1337,7 @@ module Stripe
}
attr_accessor :issuer
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::Phase::InvoiceSettings::Issuer)).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::Phase::InvoiceSettings::Issuer)).void
}
def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end
end
@@ -1409,12 +1409,12 @@ module Stripe
end
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::UpdateParams::Phase::Item::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::UpdateParams::Phase::Item::BillingThresholds)))
}
attr_accessor :billing_thresholds
# The coupons to redeem into discounts for the subscription item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionSchedule::UpdateParams::Phase::Item::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionSchedule::UpdateParams::Phase::Item::Discount])))
}
attr_accessor :discounts
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a configuration item. Metadata on a configuration item will update the underlying subscription item's `metadata` when the phase is entered, adding new keys and replacing existing keys. Individual keys in the subscription item's `metadata` can be unset by posting an empty value to them in the configuration item's `metadata`. To unset all keys in the subscription item's `metadata`, update the subscription item directly or unset every key individually from the configuration item's `metadata`.
@@ -1435,10 +1435,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::UpdateParams::Phase::Item::BillingThresholds))), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionSchedule::UpdateParams::Phase::Item::Discount]))), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::UpdateParams::Phase::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionSchedule::UpdateParams::Phase::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
billing_thresholds: nil,
@@ -1479,7 +1479,7 @@ module Stripe
attr_accessor :billing_cycle_anchor
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::UpdateParams::Phase::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::UpdateParams::Phase::BillingThresholds)))
}
attr_accessor :billing_thresholds
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
@@ -1492,14 +1492,14 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :default_payment_method
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://stripe.com/docs/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_tax_rates
# Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionSchedule::UpdateParams::Phase::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionSchedule::UpdateParams::Phase::Discount])))
}
attr_accessor :discounts
# The number of intervals the phase should last. If set, `end_date` must not be set.
@@ -1543,7 +1543,7 @@ module Stripe
sig { returns(T.nilable(T.any(Integer, String))) }
attr_accessor :trial_end
sig {
- params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionSchedule::UpdateParams::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::UpdateParams::Phase::BillingThresholds))), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), description: T.nilable(T.nilable(String)), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionSchedule::UpdateParams::Phase::Discount]))), duration: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::Phase::Duration), end_date: T.nilable(T.any(Integer, String)), invoice_settings: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::Phase::InvoiceSettings), items: T::Array[::Stripe::SubscriptionSchedule::UpdateParams::Phase::Item], iterations: T.nilable(Integer), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), proration_behavior: T.nilable(String), start_date: T.nilable(T.any(Integer, String)), transfer_data: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::Phase::TransferData), trial: T.nilable(T::Boolean), trial_end: T.nilable(T.any(Integer, String))).void
+ params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionSchedule::UpdateParams::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionSchedule::UpdateParams::Phase::BillingThresholds)), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionSchedule::UpdateParams::Phase::Discount])), duration: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::Phase::Duration), end_date: T.nilable(T.any(Integer, String)), invoice_settings: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::Phase::InvoiceSettings), items: T::Array[::Stripe::SubscriptionSchedule::UpdateParams::Phase::Item], iterations: T.nilable(Integer), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), proration_behavior: T.nilable(String), start_date: T.nilable(T.any(Integer, String)), transfer_data: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::Phase::TransferData), trial: T.nilable(T::Boolean), trial_end: T.nilable(T.any(Integer, String))).void
}
def initialize(
add_invoice_items: nil,
@@ -1581,7 +1581,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. Note that past phases can be omitted.
sig { returns(T.nilable(T::Array[::Stripe::SubscriptionSchedule::UpdateParams::Phase])) }
@@ -1590,7 +1590,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :proration_behavior
sig {
- params(default_settings: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::DefaultSettings), end_behavior: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), phases: T.nilable(T::Array[::Stripe::SubscriptionSchedule::UpdateParams::Phase]), proration_behavior: T.nilable(String)).void
+ params(default_settings: T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::DefaultSettings), end_behavior: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), phases: T.nilable(T::Array[::Stripe::SubscriptionSchedule::UpdateParams::Phase]), proration_behavior: T.nilable(String)).void
}
def initialize(
default_settings: nil,
diff --git a/rbi/stripe/resources/tax/calculation.rbi b/rbi/stripe/resources/tax/calculation.rbi
index ec02b5993..707f521b2 100644
--- a/rbi/stripe/resources/tax/calculation.rbi
+++ b/rbi/stripe/resources/tax/calculation.rbi
@@ -255,25 +255,25 @@ module Stripe
class CustomerDetails < Stripe::RequestParams
class Address < Stripe::RequestParams
# City, district, suburb, town, or village.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :city
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
sig { returns(String) }
attr_accessor :country
# Address line 1 (e.g., street, PO Box, or company name).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :line1
# Address line 2 (e.g., apartment, suite, unit, or building).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :line2
# ZIP or postal code.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :postal_code
# State, county, province, or region. We recommend sending [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code value when possible.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :state
sig {
- params(city: T.nilable(T.nilable(String)), country: String, line1: T.nilable(T.nilable(String)), line2: T.nilable(T.nilable(String)), postal_code: T.nilable(T.nilable(String)), state: T.nilable(T.nilable(String))).void
+ params(city: T.nilable(String), country: String, line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
}
def initialize(
city: nil,
@@ -363,25 +363,25 @@ module Stripe
class ShipFromDetails < Stripe::RequestParams
class Address < Stripe::RequestParams
# City, district, suburb, town, or village.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :city
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
sig { returns(String) }
attr_accessor :country
# Address line 1 (e.g., street, PO Box, or company name).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :line1
# Address line 2 (e.g., apartment, suite, unit, or building).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :line2
# ZIP or postal code.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :postal_code
# State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix. Example: "NY" or "TX".
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :state
sig {
- params(city: T.nilable(T.nilable(String)), country: String, line1: T.nilable(T.nilable(String)), line2: T.nilable(T.nilable(String)), postal_code: T.nilable(T.nilable(String)), state: T.nilable(T.nilable(String))).void
+ params(city: T.nilable(String), country: String, line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
}
def initialize(
city: nil,
diff --git a/rbi/stripe/resources/tax/registration.rbi b/rbi/stripe/resources/tax/registration.rbi
index ccd46cb88..1ce018742 100644
--- a/rbi/stripe/resources/tax/registration.rbi
+++ b/rbi/stripe/resources/tax/registration.rbi
@@ -3185,10 +3185,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# If set, the registration stops being active at this time. If not set, the registration will be active indefinitely. It can be either `now` to indicate the current time, or a timestamp measured in seconds since the Unix epoch.
- sig { returns(T.nilable(T.nilable(T.any(String, T.any(String, Integer))))) }
+ sig { returns(T.nilable(T.any(String, T.any(String, Integer)))) }
attr_accessor :expires_at
sig {
- params(active_from: T.nilable(T.any(String, Integer)), expand: T.nilable(T::Array[String]), expires_at: T.nilable(T.nilable(T.any(String, T.any(String, Integer))))).void
+ params(active_from: T.nilable(T.any(String, Integer)), expand: T.nilable(T::Array[String]), expires_at: T.nilable(T.any(String, T.any(String, Integer)))).void
}
def initialize(active_from: nil, expand: nil, expires_at: nil); end
end
diff --git a/rbi/stripe/resources/tax_rate.rbi b/rbi/stripe/resources/tax_rate.rbi
index f103960e0..d52629deb 100644
--- a/rbi/stripe/resources/tax_rate.rbi
+++ b/rbi/stripe/resources/tax_rate.rbi
@@ -195,7 +195,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :jurisdiction
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States.
sig { returns(T.nilable(String)) }
@@ -204,7 +204,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :tax_type
sig {
- params(active: T.nilable(T::Boolean), country: T.nilable(String), description: T.nilable(String), display_name: T.nilable(String), expand: T.nilable(T::Array[String]), jurisdiction: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), state: T.nilable(String), tax_type: T.nilable(String)).void
+ params(active: T.nilable(T::Boolean), country: T.nilable(String), description: T.nilable(String), display_name: T.nilable(String), expand: T.nilable(T::Array[String]), jurisdiction: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), state: T.nilable(String), tax_type: T.nilable(String)).void
}
def initialize(
active: nil,
diff --git a/rbi/stripe/resources/terminal/configuration.rbi b/rbi/stripe/resources/terminal/configuration.rbi
index fc46810f8..953a3c548 100644
--- a/rbi/stripe/resources/terminal/configuration.rbi
+++ b/rbi/stripe/resources/terminal/configuration.rbi
@@ -413,9 +413,9 @@ module Stripe
class UpdateParams < Stripe::RequestParams
class BbposWiseposE < Stripe::RequestParams
# A File ID representing an image to display on the reader
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :splashscreen
- sig { params(splashscreen: T.nilable(T.nilable(String))).void }
+ sig { params(splashscreen: T.nilable(String)).void }
def initialize(splashscreen: nil); end
end
class Offline < Stripe::RequestParams
@@ -437,9 +437,9 @@ module Stripe
end
class StripeS700 < Stripe::RequestParams
# A File ID representing an image you would like displayed on the reader.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :splashscreen
- sig { params(splashscreen: T.nilable(T.nilable(String))).void }
+ sig { params(splashscreen: T.nilable(String)).void }
def initialize(splashscreen: nil); end
end
class Tipping < Stripe::RequestParams
@@ -831,9 +831,9 @@ module Stripe
end
class VerifoneP400 < Stripe::RequestParams
# A File ID representing an image you would like displayed on the reader.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :splashscreen
- sig { params(splashscreen: T.nilable(T.nilable(String))).void }
+ sig { params(splashscreen: T.nilable(String)).void }
def initialize(splashscreen: nil); end
end
class Wifi < Stripe::RequestParams
@@ -922,7 +922,7 @@ module Stripe
end
# An object containing device type specific settings for BBPOS WisePOS E readers
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::BbposWiseposE))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::BbposWiseposE)))
}
attr_accessor :bbpos_wisepos_e
# Specifies which fields in the response should be expanded.
@@ -933,36 +933,36 @@ module Stripe
attr_accessor :name
# Configurations for collecting transactions offline.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::Offline))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::Offline)))
}
attr_accessor :offline
# Reboot time settings for readers that support customized reboot time configuration.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::RebootWindow))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::RebootWindow)))
}
attr_accessor :reboot_window
# An object containing device type specific settings for Stripe S700 readers
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::StripeS700))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::StripeS700)))
}
attr_accessor :stripe_s700
# Tipping configurations for readers supporting on-reader tips
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::Tipping))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::Tipping)))
}
attr_accessor :tipping
# An object containing device type specific settings for Verifone P400 readers
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::VerifoneP400))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::VerifoneP400)))
}
attr_accessor :verifone_p400
# Configurations for connecting to a WiFi network.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::Wifi))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::Wifi)))
}
attr_accessor :wifi
sig {
- params(bbpos_wisepos_e: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::BbposWiseposE))), expand: T.nilable(T::Array[String]), name: T.nilable(String), offline: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::Offline))), reboot_window: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::RebootWindow))), stripe_s700: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::StripeS700))), tipping: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::Tipping))), verifone_p400: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::VerifoneP400))), wifi: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::Wifi)))).void
+ params(bbpos_wisepos_e: T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::BbposWiseposE)), expand: T.nilable(T::Array[String]), name: T.nilable(String), offline: T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::Offline)), reboot_window: T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::RebootWindow)), stripe_s700: T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::StripeS700)), tipping: T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::Tipping)), verifone_p400: T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::VerifoneP400)), wifi: T.nilable(T.any(String, ::Stripe::Terminal::Configuration::UpdateParams::Wifi))).void
}
def initialize(
bbpos_wisepos_e: nil,
@@ -1006,9 +1006,9 @@ module Stripe
class CreateParams < Stripe::RequestParams
class BbposWiseposE < Stripe::RequestParams
# A File ID representing an image to display on the reader
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :splashscreen
- sig { params(splashscreen: T.nilable(T.nilable(String))).void }
+ sig { params(splashscreen: T.nilable(String)).void }
def initialize(splashscreen: nil); end
end
class Offline < Stripe::RequestParams
@@ -1030,9 +1030,9 @@ module Stripe
end
class StripeS700 < Stripe::RequestParams
# A File ID representing an image you would like displayed on the reader.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :splashscreen
- sig { params(splashscreen: T.nilable(T.nilable(String))).void }
+ sig { params(splashscreen: T.nilable(String)).void }
def initialize(splashscreen: nil); end
end
class Tipping < Stripe::RequestParams
@@ -1424,9 +1424,9 @@ module Stripe
end
class VerifoneP400 < Stripe::RequestParams
# A File ID representing an image you would like displayed on the reader.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :splashscreen
- sig { params(splashscreen: T.nilable(T.nilable(String))).void }
+ sig { params(splashscreen: T.nilable(String)).void }
def initialize(splashscreen: nil); end
end
class Wifi < Stripe::RequestParams
@@ -1524,7 +1524,7 @@ module Stripe
attr_accessor :name
# Configurations for collecting transactions offline.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::CreateParams::Offline))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::CreateParams::Offline)))
}
attr_accessor :offline
# Reboot time settings for readers that support customized reboot time configuration.
@@ -1535,7 +1535,7 @@ module Stripe
attr_accessor :stripe_s700
# Tipping configurations for readers supporting on-reader tips
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::CreateParams::Tipping))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::CreateParams::Tipping)))
}
attr_accessor :tipping
# An object containing device type specific settings for Verifone P400 readers
@@ -1543,11 +1543,11 @@ module Stripe
attr_accessor :verifone_p400
# Configurations for connecting to a WiFi network.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::CreateParams::Wifi))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::CreateParams::Wifi)))
}
attr_accessor :wifi
sig {
- params(bbpos_wisepos_e: T.nilable(::Stripe::Terminal::Configuration::CreateParams::BbposWiseposE), expand: T.nilable(T::Array[String]), name: T.nilable(String), offline: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::CreateParams::Offline))), reboot_window: T.nilable(::Stripe::Terminal::Configuration::CreateParams::RebootWindow), stripe_s700: T.nilable(::Stripe::Terminal::Configuration::CreateParams::StripeS700), tipping: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::CreateParams::Tipping))), verifone_p400: T.nilable(::Stripe::Terminal::Configuration::CreateParams::VerifoneP400), wifi: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::Configuration::CreateParams::Wifi)))).void
+ params(bbpos_wisepos_e: T.nilable(::Stripe::Terminal::Configuration::CreateParams::BbposWiseposE), expand: T.nilable(T::Array[String]), name: T.nilable(String), offline: T.nilable(T.any(String, ::Stripe::Terminal::Configuration::CreateParams::Offline)), reboot_window: T.nilable(::Stripe::Terminal::Configuration::CreateParams::RebootWindow), stripe_s700: T.nilable(::Stripe::Terminal::Configuration::CreateParams::StripeS700), tipping: T.nilable(T.any(String, ::Stripe::Terminal::Configuration::CreateParams::Tipping)), verifone_p400: T.nilable(::Stripe::Terminal::Configuration::CreateParams::VerifoneP400), wifi: T.nilable(T.any(String, ::Stripe::Terminal::Configuration::CreateParams::Wifi))).void
}
def initialize(
bbpos_wisepos_e: nil,
diff --git a/rbi/stripe/resources/terminal/location.rbi b/rbi/stripe/resources/terminal/location.rbi
index e7e381c6f..b639cf227 100644
--- a/rbi/stripe/resources/terminal/location.rbi
+++ b/rbi/stripe/resources/terminal/location.rbi
@@ -89,19 +89,19 @@ module Stripe
sig { returns(T.nilable(::Stripe::Terminal::Location::UpdateParams::Address)) }
attr_accessor :address
# The ID of a configuration that will be used to customize all readers in this location.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :configuration_overrides
# A name for the location.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :display_name
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(address: T.nilable(::Stripe::Terminal::Location::UpdateParams::Address), configuration_overrides: T.nilable(T.nilable(String)), display_name: T.nilable(T.nilable(String)), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(address: T.nilable(::Stripe::Terminal::Location::UpdateParams::Address), configuration_overrides: T.nilable(String), display_name: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(
address: nil,
@@ -174,10 +174,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(address: ::Stripe::Terminal::Location::CreateParams::Address, configuration_overrides: T.nilable(String), display_name: String, expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(address: ::Stripe::Terminal::Location::CreateParams::Address, configuration_overrides: T.nilable(String), display_name: String, expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(
address: nil,
diff --git a/rbi/stripe/resources/terminal/reader.rbi b/rbi/stripe/resources/terminal/reader.rbi
index 604a5fbce..4bf630389 100644
--- a/rbi/stripe/resources/terminal/reader.rbi
+++ b/rbi/stripe/resources/terminal/reader.rbi
@@ -360,13 +360,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# The new label of the reader.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :label
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), label: T.nilable(T.nilable(String)), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), label: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, label: nil, metadata: nil); end
end
@@ -420,13 +420,13 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :location
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# A code generated by the reader used for registering to an account.
sig { returns(String) }
attr_accessor :registration_code
sig {
- params(expand: T.nilable(T::Array[String]), label: T.nilable(String), location: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), registration_code: String).void
+ params(expand: T.nilable(T::Array[String]), label: T.nilable(String), location: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), registration_code: String).void
}
def initialize(
expand: nil,
diff --git a/rbi/stripe/resources/token.rbi b/rbi/stripe/resources/token.rbi
index c12e2a2e3..0779dbbdb 100644
--- a/rbi/stripe/resources/token.rbi
+++ b/rbi/stripe/resources/token.rbi
@@ -276,21 +276,21 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :ownership_declaration_shown_and_signed
# 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.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :ownership_exemption_reason
# The company's phone number (used for verification).
sig { returns(T.nilable(String)) }
attr_accessor :phone
# When the business was incorporated or registered.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Token::CreateParams::Account::Company::RegistrationDate))))
+ returns(T.nilable(T.any(String, ::Stripe::Token::CreateParams::Account::Company::RegistrationDate)))
}
attr_accessor :registration_date
# The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
sig { returns(T.nilable(String)) }
attr_accessor :registration_number
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :structure
# The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
sig { returns(T.nilable(String)) }
@@ -305,7 +305,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Token::CreateParams::Account::Company::Verification)) }
attr_accessor :verification
sig {
- params(address: T.nilable(::Stripe::Token::CreateParams::Account::Company::Address), address_kana: T.nilable(::Stripe::Token::CreateParams::Account::Company::AddressKana), address_kanji: T.nilable(::Stripe::Token::CreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::Token::CreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::Token::CreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::Token::CreateParams::Account::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::Token::CreateParams::Account::Company::Verification)).void
+ params(address: T.nilable(::Stripe::Token::CreateParams::Account::Company::Address), address_kana: T.nilable(::Stripe::Token::CreateParams::Account::Company::AddressKana), address_kanji: T.nilable(::Stripe::Token::CreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::Token::CreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::Token::CreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, ::Stripe::Token::CreateParams::Account::Company::RegistrationDate)), registration_number: T.nilable(String), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::Token::CreateParams::Account::Company::Verification)).void
}
def initialize(
address: nil,
@@ -490,13 +490,13 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :owner
# The percent owned by the person of the account's legal entity.
- sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
+ sig { returns(T.nilable(T.any(String, Float))) }
attr_accessor :percent_ownership
# The person's title (e.g., CEO, Support Engineer).
sig { returns(T.nilable(String)) }
attr_accessor :title
sig {
- params(director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.nilable(T.any(String, Float))), title: T.nilable(String)).void
+ params(director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.any(String, Float)), title: T.nilable(String)).void
}
def initialize(
director: nil,
@@ -557,7 +557,7 @@ module Stripe
attr_accessor :address_kanji
# The individual's date of birth.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Token::CreateParams::Account::Individual::Dob))))
+ returns(T.nilable(T.any(String, ::Stripe::Token::CreateParams::Account::Individual::Dob)))
}
attr_accessor :dob
# The individual's email address.
@@ -573,7 +573,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :first_name_kanji
# A list of alternate names or aliases that the individual is known by.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :full_name_aliases
# The individual's gender
sig { returns(T.nilable(String)) }
@@ -597,7 +597,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :maiden_name
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The individual's phone number.
sig { returns(T.nilable(String)) }
@@ -624,7 +624,7 @@ module Stripe
}
attr_accessor :verification
sig {
- params(address: T.nilable(::Stripe::Token::CreateParams::Account::Individual::Address), address_kana: T.nilable(::Stripe::Token::CreateParams::Account::Individual::AddressKana), address_kanji: T.nilable(::Stripe::Token::CreateParams::Account::Individual::AddressKanji), dob: T.nilable(T.nilable(T.any(String, ::Stripe::Token::CreateParams::Account::Individual::Dob))), email: T.nilable(String), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.nilable(T.any(String, T::Array[String]))), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::Token::CreateParams::Account::Individual::RegisteredAddress), relationship: T.nilable(::Stripe::Token::CreateParams::Account::Individual::Relationship), ssn_last_4: T.nilable(String), verification: T.nilable(::Stripe::Token::CreateParams::Account::Individual::Verification)).void
+ params(address: T.nilable(::Stripe::Token::CreateParams::Account::Individual::Address), address_kana: T.nilable(::Stripe::Token::CreateParams::Account::Individual::AddressKana), address_kanji: T.nilable(::Stripe::Token::CreateParams::Account::Individual::AddressKanji), dob: T.nilable(T.any(String, ::Stripe::Token::CreateParams::Account::Individual::Dob)), email: T.nilable(String), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.any(String, T::Array[String])), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::Token::CreateParams::Account::Individual::RegisteredAddress), relationship: T.nilable(::Stripe::Token::CreateParams::Account::Individual::Relationship), ssn_last_4: T.nilable(String), verification: T.nilable(::Stripe::Token::CreateParams::Account::Individual::Verification)).void
}
def initialize(
address: nil,
@@ -796,10 +796,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :ip
# The user agent of the browser from which the account representative accepted the service agreement.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :user_agent
sig {
- params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
}
def initialize(date: nil, ip: nil, user_agent: nil); end
end
@@ -1013,7 +1013,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :owner
# The percent owned by the person of the account's legal entity.
- sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
+ sig { returns(T.nilable(T.any(String, Float))) }
attr_accessor :percent_ownership
# Whether the person is authorized as the primary representative of the account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account.
sig { returns(T.nilable(T::Boolean)) }
@@ -1022,7 +1022,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :title
sig {
- params(authorizer: T.nilable(T::Boolean), director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), legal_guardian: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.nilable(T.any(String, Float))), representative: T.nilable(T::Boolean), title: T.nilable(String)).void
+ params(authorizer: T.nilable(T::Boolean), director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), legal_guardian: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.any(String, Float)), representative: T.nilable(T::Boolean), title: T.nilable(String)).void
}
def initialize(
authorizer: nil,
@@ -1125,9 +1125,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Token::CreateParams::Person::AddressKanji)) }
attr_accessor :address_kanji
# The person's date of birth.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Token::CreateParams::Person::Dob))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::Token::CreateParams::Person::Dob))) }
attr_accessor :dob
# Documents that may be submitted to satisfy various informational requests.
sig { returns(T.nilable(::Stripe::Token::CreateParams::Person::Documents)) }
@@ -1145,7 +1143,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :first_name_kanji
# A list of alternate names or aliases that the person is known by.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :full_name_aliases
# The person's gender (International regulations require either "male" or "female").
sig { returns(T.nilable(String)) }
@@ -1169,7 +1167,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :maiden_name
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The country where the person is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)), or "XX" if unavailable.
sig { returns(T.nilable(String)) }
@@ -1196,7 +1194,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Token::CreateParams::Person::Verification)) }
attr_accessor :verification
sig {
- params(additional_tos_acceptances: T.nilable(::Stripe::Token::CreateParams::Person::AdditionalTosAcceptances), address: T.nilable(::Stripe::Token::CreateParams::Person::Address), address_kana: T.nilable(::Stripe::Token::CreateParams::Person::AddressKana), address_kanji: T.nilable(::Stripe::Token::CreateParams::Person::AddressKanji), dob: T.nilable(T.nilable(T.any(String, ::Stripe::Token::CreateParams::Person::Dob))), documents: T.nilable(::Stripe::Token::CreateParams::Person::Documents), email: T.nilable(String), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.nilable(T.any(String, T::Array[String]))), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), nationality: T.nilable(String), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::Token::CreateParams::Person::RegisteredAddress), relationship: T.nilable(::Stripe::Token::CreateParams::Person::Relationship), ssn_last_4: T.nilable(String), us_cfpb_data: T.nilable(::Stripe::Token::CreateParams::Person::UsCfpbData), verification: T.nilable(::Stripe::Token::CreateParams::Person::Verification)).void
+ params(additional_tos_acceptances: T.nilable(::Stripe::Token::CreateParams::Person::AdditionalTosAcceptances), address: T.nilable(::Stripe::Token::CreateParams::Person::Address), address_kana: T.nilable(::Stripe::Token::CreateParams::Person::AddressKana), address_kanji: T.nilable(::Stripe::Token::CreateParams::Person::AddressKanji), dob: T.nilable(T.any(String, ::Stripe::Token::CreateParams::Person::Dob)), documents: T.nilable(::Stripe::Token::CreateParams::Person::Documents), email: T.nilable(String), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.any(String, T::Array[String])), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), nationality: T.nilable(String), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::Token::CreateParams::Person::RegisteredAddress), relationship: T.nilable(::Stripe::Token::CreateParams::Person::Relationship), ssn_last_4: T.nilable(String), us_cfpb_data: T.nilable(::Stripe::Token::CreateParams::Person::UsCfpbData), verification: T.nilable(::Stripe::Token::CreateParams::Person::Verification)).void
}
def initialize(
additional_tos_acceptances: nil,
diff --git a/rbi/stripe/resources/topup.rbi b/rbi/stripe/resources/topup.rbi
index 0cbff72fd..fb55c172c 100644
--- a/rbi/stripe/resources/topup.rbi
+++ b/rbi/stripe/resources/topup.rbi
@@ -142,7 +142,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The ID of a source to transfer funds from. For most users, this should be left unspecified which will use the bank account that was set up in the dashboard for the specified currency. In test mode, this can be a test bank token (see [Testing Top-ups](https://stripe.com/docs/connect/testing#testing-top-ups)).
sig { returns(T.nilable(String)) }
@@ -154,7 +154,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transfer_group
sig {
- params(amount: Integer, currency: String, description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), source: T.nilable(String), statement_descriptor: T.nilable(String), transfer_group: T.nilable(String)).void
+ params(amount: Integer, currency: String, description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), source: T.nilable(String), statement_descriptor: T.nilable(String), transfer_group: T.nilable(String)).void
}
def initialize(
amount: nil,
@@ -175,10 +175,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(description: nil, expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/resources/transfer.rbi b/rbi/stripe/resources/transfer.rbi
index e0173e705..e0bba1e89 100644
--- a/rbi/stripe/resources/transfer.rbi
+++ b/rbi/stripe/resources/transfer.rbi
@@ -169,10 +169,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(description: nil, expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/resources/treasury/financial_account.rbi b/rbi/stripe/resources/treasury/financial_account.rbi
index d18738e97..0ceed8815 100644
--- a/rbi/stripe/resources/treasury/financial_account.rbi
+++ b/rbi/stripe/resources/treasury/financial_account.rbi
@@ -357,7 +357,7 @@ module Stripe
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
# The nickname for the FinancialAccount.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :nickname
# The set of functionalities that the platform can restrict on the FinancialAccount.
sig {
@@ -368,7 +368,7 @@ module Stripe
sig { returns(T::Array[String]) }
attr_accessor :supported_currencies
sig {
- params(expand: T.nilable(T::Array[String]), features: T.nilable(::Stripe::Treasury::FinancialAccount::CreateParams::Features), metadata: T.nilable(T::Hash[String, String]), nickname: T.nilable(T.nilable(String)), platform_restrictions: T.nilable(::Stripe::Treasury::FinancialAccount::CreateParams::PlatformRestrictions), supported_currencies: T::Array[String]).void
+ params(expand: T.nilable(T::Array[String]), features: T.nilable(::Stripe::Treasury::FinancialAccount::CreateParams::Features), metadata: T.nilable(T::Hash[String, String]), nickname: T.nilable(String), platform_restrictions: T.nilable(::Stripe::Treasury::FinancialAccount::CreateParams::PlatformRestrictions), supported_currencies: T::Array[String]).void
}
def initialize(
expand: nil,
@@ -586,7 +586,7 @@ module Stripe
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
# The nickname for the FinancialAccount.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :nickname
# The set of functionalities that the platform can restrict on the FinancialAccount.
sig {
@@ -594,7 +594,7 @@ module Stripe
}
attr_accessor :platform_restrictions
sig {
- params(expand: T.nilable(T::Array[String]), features: T.nilable(::Stripe::Treasury::FinancialAccount::UpdateParams::Features), forwarding_settings: T.nilable(::Stripe::Treasury::FinancialAccount::UpdateParams::ForwardingSettings), metadata: T.nilable(T::Hash[String, String]), nickname: T.nilable(T.nilable(String)), platform_restrictions: T.nilable(::Stripe::Treasury::FinancialAccount::UpdateParams::PlatformRestrictions)).void
+ params(expand: T.nilable(T::Array[String]), features: T.nilable(::Stripe::Treasury::FinancialAccount::UpdateParams::Features), forwarding_settings: T.nilable(::Stripe::Treasury::FinancialAccount::UpdateParams::ForwardingSettings), metadata: T.nilable(T::Hash[String, String]), nickname: T.nilable(String), platform_restrictions: T.nilable(::Stripe::Treasury::FinancialAccount::UpdateParams::PlatformRestrictions)).void
}
def initialize(
expand: nil,
diff --git a/rbi/stripe/resources/treasury/outbound_payment.rbi b/rbi/stripe/resources/treasury/outbound_payment.rbi
index 8504da5cd..6c37574f5 100644
--- a/rbi/stripe/resources/treasury/outbound_payment.rbi
+++ b/rbi/stripe/resources/treasury/outbound_payment.rbi
@@ -307,20 +307,20 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Treasury::OutboundPayment::CreateParams::DestinationPaymentMethodData::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::Treasury::OutboundPayment::CreateParams::DestinationPaymentMethodData::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::Treasury::OutboundPayment::CreateParams::DestinationPaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String))).void
+ params(address: T.nilable(T.any(String, ::Stripe::Treasury::OutboundPayment::CreateParams::DestinationPaymentMethodData::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil); end
end
@@ -391,11 +391,11 @@ module Stripe
end
# Optional fields for `us_bank_account`.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Treasury::OutboundPayment::CreateParams::DestinationPaymentMethodOptions::UsBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::Treasury::OutboundPayment::CreateParams::DestinationPaymentMethodOptions::UsBankAccount)))
}
attr_accessor :us_bank_account
sig {
- params(us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::Treasury::OutboundPayment::CreateParams::DestinationPaymentMethodOptions::UsBankAccount)))).void
+ params(us_bank_account: T.nilable(T.any(String, ::Stripe::Treasury::OutboundPayment::CreateParams::DestinationPaymentMethodOptions::UsBankAccount))).void
}
def initialize(us_bank_account: nil); end
end
diff --git a/rbi/stripe/resources/treasury/outbound_transfer.rbi b/rbi/stripe/resources/treasury/outbound_transfer.rbi
index 2f76df0e5..0b2eef55a 100644
--- a/rbi/stripe/resources/treasury/outbound_transfer.rbi
+++ b/rbi/stripe/resources/treasury/outbound_transfer.rbi
@@ -250,11 +250,11 @@ module Stripe
end
# Optional fields for `us_bank_account`.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Treasury::OutboundTransfer::CreateParams::DestinationPaymentMethodOptions::UsBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::Treasury::OutboundTransfer::CreateParams::DestinationPaymentMethodOptions::UsBankAccount)))
}
attr_accessor :us_bank_account
sig {
- params(us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::Treasury::OutboundTransfer::CreateParams::DestinationPaymentMethodOptions::UsBankAccount)))).void
+ params(us_bank_account: T.nilable(T.any(String, ::Stripe::Treasury::OutboundTransfer::CreateParams::DestinationPaymentMethodOptions::UsBankAccount))).void
}
def initialize(us_bank_account: nil); end
end
diff --git a/rbi/stripe/resources/webhook_endpoint.rbi b/rbi/stripe/resources/webhook_endpoint.rbi
index 63f77458d..4541ab2dd 100644
--- a/rbi/stripe/resources/webhook_endpoint.rbi
+++ b/rbi/stripe/resources/webhook_endpoint.rbi
@@ -53,7 +53,7 @@ module Stripe
class DeleteParams < Stripe::RequestParams; end
class UpdateParams < Stripe::RequestParams
# An optional description of what the webhook is used for.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# Disable the webhook endpoint if set to true.
sig { returns(T.nilable(T::Boolean)) }
@@ -65,13 +65,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The URL of the webhook endpoint.
sig { returns(T.nilable(String)) }
attr_accessor :url
sig {
- params(description: T.nilable(T.nilable(String)), disabled: T.nilable(T::Boolean), enabled_events: T.nilable(T::Array[String]), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), url: T.nilable(String)).void
+ params(description: T.nilable(String), disabled: T.nilable(T::Boolean), enabled_events: T.nilable(T::Array[String]), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), url: T.nilable(String)).void
}
def initialize(
description: nil,
@@ -108,7 +108,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :connect
# An optional description of what the webhook is used for.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# The list of events to enable for this endpoint. You may specify `['*']` to enable all events, except those that require explicit selection.
sig { returns(T::Array[String]) }
@@ -117,13 +117,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The URL of the webhook endpoint.
sig { returns(String) }
attr_accessor :url
sig {
- params(api_version: T.nilable(String), connect: T.nilable(T::Boolean), description: T.nilable(T.nilable(String)), enabled_events: T::Array[String], expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), url: String).void
+ params(api_version: T.nilable(String), connect: T.nilable(T::Boolean), description: T.nilable(String), enabled_events: T::Array[String], expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), url: String).void
}
def initialize(
api_version: nil,
diff --git a/rbi/stripe/services/account_external_account_service.rbi b/rbi/stripe/services/account_external_account_service.rbi
index 8e705b74a..a8e777be2 100644
--- a/rbi/stripe/services/account_external_account_service.rbi
+++ b/rbi/stripe/services/account_external_account_service.rbi
@@ -35,7 +35,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :account_holder_name
# The type of entity that holds the account. This can be either `individual` or `company`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :account_holder_type
# The bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`.
sig { returns(T.nilable(String)) }
@@ -74,13 +74,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Cardholder name.
sig { returns(T.nilable(String)) }
attr_accessor :name
sig {
- params(account_holder_name: T.nilable(String), account_holder_type: T.nilable(T.nilable(T.any(String, String))), account_type: T.nilable(String), address_city: T.nilable(String), address_country: T.nilable(String), address_line1: T.nilable(String), address_line2: T.nilable(String), address_state: T.nilable(String), address_zip: T.nilable(String), default_for_currency: T.nilable(T::Boolean), documents: T.nilable(::Stripe::AccountExternalAccountService::UpdateParams::Documents), exp_month: T.nilable(String), exp_year: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), name: T.nilable(String)).void
+ params(account_holder_name: T.nilable(String), account_holder_type: T.nilable(T.any(String, String)), account_type: T.nilable(String), address_city: T.nilable(String), address_country: T.nilable(String), address_line1: T.nilable(String), address_line2: T.nilable(String), address_state: T.nilable(String), address_zip: T.nilable(String), default_for_currency: T.nilable(T::Boolean), documents: T.nilable(::Stripe::AccountExternalAccountService::UpdateParams::Documents), exp_month: T.nilable(String), exp_year: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String)).void
}
def initialize(
account_holder_name: nil,
diff --git a/rbi/stripe/services/account_person_service.rbi b/rbi/stripe/services/account_person_service.rbi
index 1c98975bc..616146ee4 100644
--- a/rbi/stripe/services/account_person_service.rbi
+++ b/rbi/stripe/services/account_person_service.rbi
@@ -22,10 +22,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :ip
# The user agent of the browser from which the account representative accepted the service agreement.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :user_agent
sig {
- params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
}
def initialize(date: nil, ip: nil, user_agent: nil); end
end
@@ -241,7 +241,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :owner
# The percent owned by the person of the account's legal entity.
- sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
+ sig { returns(T.nilable(T.any(String, Float))) }
attr_accessor :percent_ownership
# Whether the person is authorized as the primary representative of the account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account.
sig { returns(T.nilable(T::Boolean)) }
@@ -250,7 +250,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :title
sig {
- params(authorizer: T.nilable(T::Boolean), director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), legal_guardian: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.nilable(T.any(String, Float))), representative: T.nilable(T::Boolean), title: T.nilable(String)).void
+ params(authorizer: T.nilable(T::Boolean), director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), legal_guardian: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.any(String, Float)), representative: T.nilable(T::Boolean), title: T.nilable(String)).void
}
def initialize(
authorizer: nil,
@@ -355,9 +355,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::AccountPersonService::UpdateParams::AddressKanji)) }
attr_accessor :address_kanji
# The person's date of birth.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::AccountPersonService::UpdateParams::Dob))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::AccountPersonService::UpdateParams::Dob))) }
attr_accessor :dob
# Documents that may be submitted to satisfy various informational requests.
sig { returns(T.nilable(::Stripe::AccountPersonService::UpdateParams::Documents)) }
@@ -378,7 +376,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :first_name_kanji
# A list of alternate names or aliases that the person is known by.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :full_name_aliases
# The person's gender (International regulations require either "male" or "female").
sig { returns(T.nilable(String)) }
@@ -402,7 +400,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :maiden_name
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The country where the person is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)), or "XX" if unavailable.
sig { returns(T.nilable(String)) }
@@ -432,7 +430,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::AccountPersonService::UpdateParams::Verification)) }
attr_accessor :verification
sig {
- params(additional_tos_acceptances: T.nilable(::Stripe::AccountPersonService::UpdateParams::AdditionalTosAcceptances), address: T.nilable(::Stripe::AccountPersonService::UpdateParams::Address), address_kana: T.nilable(::Stripe::AccountPersonService::UpdateParams::AddressKana), address_kanji: T.nilable(::Stripe::AccountPersonService::UpdateParams::AddressKanji), dob: T.nilable(T.nilable(T.any(String, ::Stripe::AccountPersonService::UpdateParams::Dob))), documents: T.nilable(::Stripe::AccountPersonService::UpdateParams::Documents), email: T.nilable(String), expand: T.nilable(T::Array[String]), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.nilable(T.any(String, T::Array[String]))), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), nationality: T.nilable(String), person_token: T.nilable(String), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::AccountPersonService::UpdateParams::RegisteredAddress), relationship: T.nilable(::Stripe::AccountPersonService::UpdateParams::Relationship), ssn_last_4: T.nilable(String), us_cfpb_data: T.nilable(::Stripe::AccountPersonService::UpdateParams::UsCfpbData), verification: T.nilable(::Stripe::AccountPersonService::UpdateParams::Verification)).void
+ params(additional_tos_acceptances: T.nilable(::Stripe::AccountPersonService::UpdateParams::AdditionalTosAcceptances), address: T.nilable(::Stripe::AccountPersonService::UpdateParams::Address), address_kana: T.nilable(::Stripe::AccountPersonService::UpdateParams::AddressKana), address_kanji: T.nilable(::Stripe::AccountPersonService::UpdateParams::AddressKanji), dob: T.nilable(T.any(String, ::Stripe::AccountPersonService::UpdateParams::Dob)), documents: T.nilable(::Stripe::AccountPersonService::UpdateParams::Documents), email: T.nilable(String), expand: T.nilable(T::Array[String]), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.any(String, T::Array[String])), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), nationality: T.nilable(String), person_token: T.nilable(String), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::AccountPersonService::UpdateParams::RegisteredAddress), relationship: T.nilable(::Stripe::AccountPersonService::UpdateParams::Relationship), ssn_last_4: T.nilable(String), us_cfpb_data: T.nilable(::Stripe::AccountPersonService::UpdateParams::UsCfpbData), verification: T.nilable(::Stripe::AccountPersonService::UpdateParams::Verification)).void
}
def initialize(
additional_tos_acceptances: nil,
@@ -534,10 +532,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :ip
# The user agent of the browser from which the account representative accepted the service agreement.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :user_agent
sig {
- params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
}
def initialize(date: nil, ip: nil, user_agent: nil); end
end
@@ -753,7 +751,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :owner
# The percent owned by the person of the account's legal entity.
- sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
+ sig { returns(T.nilable(T.any(String, Float))) }
attr_accessor :percent_ownership
# Whether the person is authorized as the primary representative of the account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account.
sig { returns(T.nilable(T::Boolean)) }
@@ -762,7 +760,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :title
sig {
- params(authorizer: T.nilable(T::Boolean), director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), legal_guardian: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.nilable(T.any(String, Float))), representative: T.nilable(T::Boolean), title: T.nilable(String)).void
+ params(authorizer: T.nilable(T::Boolean), director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), legal_guardian: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.any(String, Float)), representative: T.nilable(T::Boolean), title: T.nilable(String)).void
}
def initialize(
authorizer: nil,
@@ -867,9 +865,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::AccountPersonService::CreateParams::AddressKanji)) }
attr_accessor :address_kanji
# The person's date of birth.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::AccountPersonService::CreateParams::Dob))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::AccountPersonService::CreateParams::Dob))) }
attr_accessor :dob
# Documents that may be submitted to satisfy various informational requests.
sig { returns(T.nilable(::Stripe::AccountPersonService::CreateParams::Documents)) }
@@ -890,7 +886,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :first_name_kanji
# A list of alternate names or aliases that the person is known by.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :full_name_aliases
# The person's gender (International regulations require either "male" or "female").
sig { returns(T.nilable(String)) }
@@ -914,7 +910,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :maiden_name
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The country where the person is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)), or "XX" if unavailable.
sig { returns(T.nilable(String)) }
@@ -944,7 +940,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::AccountPersonService::CreateParams::Verification)) }
attr_accessor :verification
sig {
- params(additional_tos_acceptances: T.nilable(::Stripe::AccountPersonService::CreateParams::AdditionalTosAcceptances), address: T.nilable(::Stripe::AccountPersonService::CreateParams::Address), address_kana: T.nilable(::Stripe::AccountPersonService::CreateParams::AddressKana), address_kanji: T.nilable(::Stripe::AccountPersonService::CreateParams::AddressKanji), dob: T.nilable(T.nilable(T.any(String, ::Stripe::AccountPersonService::CreateParams::Dob))), documents: T.nilable(::Stripe::AccountPersonService::CreateParams::Documents), email: T.nilable(String), expand: T.nilable(T::Array[String]), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.nilable(T.any(String, T::Array[String]))), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), nationality: T.nilable(String), person_token: T.nilable(String), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::AccountPersonService::CreateParams::RegisteredAddress), relationship: T.nilable(::Stripe::AccountPersonService::CreateParams::Relationship), ssn_last_4: T.nilable(String), us_cfpb_data: T.nilable(::Stripe::AccountPersonService::CreateParams::UsCfpbData), verification: T.nilable(::Stripe::AccountPersonService::CreateParams::Verification)).void
+ params(additional_tos_acceptances: T.nilable(::Stripe::AccountPersonService::CreateParams::AdditionalTosAcceptances), address: T.nilable(::Stripe::AccountPersonService::CreateParams::Address), address_kana: T.nilable(::Stripe::AccountPersonService::CreateParams::AddressKana), address_kanji: T.nilable(::Stripe::AccountPersonService::CreateParams::AddressKanji), dob: T.nilable(T.any(String, ::Stripe::AccountPersonService::CreateParams::Dob)), documents: T.nilable(::Stripe::AccountPersonService::CreateParams::Documents), email: T.nilable(String), expand: T.nilable(T::Array[String]), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.any(String, T::Array[String])), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), nationality: T.nilable(String), person_token: T.nilable(String), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::AccountPersonService::CreateParams::RegisteredAddress), relationship: T.nilable(::Stripe::AccountPersonService::CreateParams::Relationship), ssn_last_4: T.nilable(String), us_cfpb_data: T.nilable(::Stripe::AccountPersonService::CreateParams::UsCfpbData), verification: T.nilable(::Stripe::AccountPersonService::CreateParams::Verification)).void
}
def initialize(
additional_tos_acceptances: nil,
diff --git a/rbi/stripe/services/account_service.rbi b/rbi/stripe/services/account_service.rbi
index 3e59d07cd..5c24f0e3e 100644
--- a/rbi/stripe/services/account_service.rbi
+++ b/rbi/stripe/services/account_service.rbi
@@ -144,13 +144,13 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :support_phone
# A publicly available website for handling support issues.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :support_url
# The business's publicly available website.
sig { returns(T.nilable(String)) }
attr_accessor :url
sig {
- params(annual_revenue: T.nilable(::Stripe::AccountService::UpdateParams::BusinessProfile::AnnualRevenue), estimated_worker_count: T.nilable(Integer), mcc: T.nilable(String), minority_owned_business_designation: T.nilable(T::Array[String]), monthly_estimated_revenue: T.nilable(::Stripe::AccountService::UpdateParams::BusinessProfile::MonthlyEstimatedRevenue), name: T.nilable(String), product_description: T.nilable(String), support_address: T.nilable(::Stripe::AccountService::UpdateParams::BusinessProfile::SupportAddress), support_email: T.nilable(String), support_phone: T.nilable(String), support_url: T.nilable(T.nilable(String)), url: T.nilable(String)).void
+ params(annual_revenue: T.nilable(::Stripe::AccountService::UpdateParams::BusinessProfile::AnnualRevenue), estimated_worker_count: T.nilable(Integer), mcc: T.nilable(String), minority_owned_business_designation: T.nilable(T::Array[String]), monthly_estimated_revenue: T.nilable(::Stripe::AccountService::UpdateParams::BusinessProfile::MonthlyEstimatedRevenue), name: T.nilable(String), product_description: T.nilable(String), support_address: T.nilable(::Stripe::AccountService::UpdateParams::BusinessProfile::SupportAddress), support_email: T.nilable(String), support_phone: T.nilable(String), support_url: T.nilable(String), url: T.nilable(String)).void
}
def initialize(
annual_revenue: nil,
@@ -1227,21 +1227,21 @@ module Stripe
}
attr_accessor :ownership_declaration
# 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.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :ownership_exemption_reason
# The company's phone number (used for verification).
sig { returns(T.nilable(String)) }
attr_accessor :phone
# Attribute for param field registration_date
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::AccountService::UpdateParams::Company::RegistrationDate))))
+ returns(T.nilable(T.any(String, ::Stripe::AccountService::UpdateParams::Company::RegistrationDate)))
}
attr_accessor :registration_date
# The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
sig { returns(T.nilable(String)) }
attr_accessor :registration_number
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :structure
# The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
sig { returns(T.nilable(String)) }
@@ -1256,7 +1256,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::AccountService::UpdateParams::Company::Verification)) }
attr_accessor :verification
sig {
- params(address: T.nilable(::Stripe::AccountService::UpdateParams::Company::Address), address_kana: T.nilable(::Stripe::AccountService::UpdateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::AccountService::UpdateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::AccountService::UpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::AccountService::UpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::AccountService::UpdateParams::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::AccountService::UpdateParams::Company::Verification)).void
+ params(address: T.nilable(::Stripe::AccountService::UpdateParams::Company::Address), address_kana: T.nilable(::Stripe::AccountService::UpdateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::AccountService::UpdateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::AccountService::UpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::AccountService::UpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, ::Stripe::AccountService::UpdateParams::Company::RegistrationDate)), registration_number: T.nilable(String), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::AccountService::UpdateParams::Company::Verification)).void
}
def initialize(
address: nil,
@@ -1409,9 +1409,9 @@ module Stripe
end
class Groups < Stripe::RequestParams
# The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :payments_pricing
- sig { params(payments_pricing: T.nilable(T.nilable(String))).void }
+ sig { params(payments_pricing: T.nilable(String)).void }
def initialize(payments_pricing: nil); end
end
class Individual < Stripe::RequestParams
@@ -1571,13 +1571,13 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :owner
# The percent owned by the person of the account's legal entity.
- sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
+ sig { returns(T.nilable(T.any(String, Float))) }
attr_accessor :percent_ownership
# The person's title (e.g., CEO, Support Engineer).
sig { returns(T.nilable(String)) }
attr_accessor :title
sig {
- params(director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.nilable(T.any(String, Float))), title: T.nilable(String)).void
+ params(director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.any(String, Float)), title: T.nilable(String)).void
}
def initialize(
director: nil,
@@ -1634,7 +1634,7 @@ module Stripe
attr_accessor :address_kanji
# The individual's date of birth.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::AccountService::UpdateParams::Individual::Dob))))
+ returns(T.nilable(T.any(String, ::Stripe::AccountService::UpdateParams::Individual::Dob)))
}
attr_accessor :dob
# The individual's email address.
@@ -1650,7 +1650,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :first_name_kanji
# A list of alternate names or aliases that the individual is known by.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :full_name_aliases
# The individual's gender
sig { returns(T.nilable(String)) }
@@ -1674,7 +1674,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :maiden_name
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The individual's phone number.
sig { returns(T.nilable(String)) }
@@ -1697,7 +1697,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::AccountService::UpdateParams::Individual::Verification)) }
attr_accessor :verification
sig {
- params(address: T.nilable(::Stripe::AccountService::UpdateParams::Individual::Address), address_kana: T.nilable(::Stripe::AccountService::UpdateParams::Individual::AddressKana), address_kanji: T.nilable(::Stripe::AccountService::UpdateParams::Individual::AddressKanji), dob: T.nilable(T.nilable(T.any(String, ::Stripe::AccountService::UpdateParams::Individual::Dob))), email: T.nilable(String), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.nilable(T.any(String, T::Array[String]))), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::AccountService::UpdateParams::Individual::RegisteredAddress), relationship: T.nilable(::Stripe::AccountService::UpdateParams::Individual::Relationship), ssn_last_4: T.nilable(String), verification: T.nilable(::Stripe::AccountService::UpdateParams::Individual::Verification)).void
+ params(address: T.nilable(::Stripe::AccountService::UpdateParams::Individual::Address), address_kana: T.nilable(::Stripe::AccountService::UpdateParams::Individual::AddressKana), address_kanji: T.nilable(::Stripe::AccountService::UpdateParams::Individual::AddressKanji), dob: T.nilable(T.any(String, ::Stripe::AccountService::UpdateParams::Individual::Dob)), email: T.nilable(String), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.any(String, T::Array[String])), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::AccountService::UpdateParams::Individual::RegisteredAddress), relationship: T.nilable(::Stripe::AccountService::UpdateParams::Individual::Relationship), ssn_last_4: T.nilable(String), verification: T.nilable(::Stripe::AccountService::UpdateParams::Individual::Verification)).void
}
def initialize(
address: nil,
@@ -1760,10 +1760,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :ip
# The user agent of the browser from which the account representative accepted the service agreement.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :user_agent
sig {
- params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
}
def initialize(date: nil, ip: nil, user_agent: nil); end
end
@@ -1799,13 +1799,13 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_prefix
# The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kana` specified on the charge. `statement_descriptor_prefix_kana` is useful for maximizing descriptor space for the dynamic portion.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_prefix_kana
# The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kanji` specified on the charge. `statement_descriptor_prefix_kanji` is useful for maximizing descriptor space for the dynamic portion.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_prefix_kanji
sig {
- params(decline_on: T.nilable(::Stripe::AccountService::UpdateParams::Settings::CardPayments::DeclineOn), statement_descriptor_prefix: T.nilable(String), statement_descriptor_prefix_kana: T.nilable(T.nilable(String)), statement_descriptor_prefix_kanji: T.nilable(T.nilable(String))).void
+ params(decline_on: T.nilable(::Stripe::AccountService::UpdateParams::Settings::CardPayments::DeclineOn), statement_descriptor_prefix: T.nilable(String), statement_descriptor_prefix_kana: T.nilable(String), statement_descriptor_prefix_kanji: T.nilable(String)).void
}
def initialize(
decline_on: nil,
@@ -1816,13 +1816,13 @@ module Stripe
end
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.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
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.
sig { returns(T.nilable(String)) }
attr_accessor :hosted_payment_method_save
sig {
- params(default_account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), hosted_payment_method_save: T.nilable(String)).void
+ params(default_account_tax_ids: T.nilable(T.any(String, T::Array[String])), hosted_payment_method_save: T.nilable(String)).void
}
def initialize(default_account_tax_ids: nil, hosted_payment_method_save: nil); end
end
@@ -1906,10 +1906,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :ip
# The user agent of the browser from which the account representative accepted the service agreement.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :user_agent
sig {
- params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
}
def initialize(date: nil, ip: nil, user_agent: nil); end
end
@@ -2017,7 +2017,7 @@ module Stripe
attr_accessor :expand
# A card or bank account to attach to the account for receiving [payouts](/connect/bank-debit-card-payouts) (you won’t be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](/js), or a dictionary, as documented in the `external_account` parameter for [bank account](/api#account_create_bank_account) creation.
By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](/api#account_create_bank_account) or [card creation](/api#account_create_card) APIs. After you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T.any(String, ::Stripe::AccountService::UpdateParams::BankAccount, ::Stripe::AccountService::UpdateParams::Card, ::Stripe::AccountService::UpdateParams::CardToken)))))
+ returns(T.nilable(T.any(String, T.any(String, ::Stripe::AccountService::UpdateParams::BankAccount, ::Stripe::AccountService::UpdateParams::Card, ::Stripe::AccountService::UpdateParams::CardToken))))
}
attr_accessor :external_account
# A hash of account group type to tokens. These are account groups this account should be added to.
@@ -2027,7 +2027,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::AccountService::UpdateParams::Individual)) }
attr_accessor :individual
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Options for customizing how the account functions within Stripe.
sig { returns(T.nilable(::Stripe::AccountService::UpdateParams::Settings)) }
@@ -2036,7 +2036,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::AccountService::UpdateParams::TosAcceptance)) }
attr_accessor :tos_acceptance
sig {
- params(account_token: T.nilable(String), business_profile: T.nilable(::Stripe::AccountService::UpdateParams::BusinessProfile), business_type: T.nilable(String), capabilities: T.nilable(::Stripe::AccountService::UpdateParams::Capabilities), company: T.nilable(::Stripe::AccountService::UpdateParams::Company), default_currency: T.nilable(String), documents: T.nilable(::Stripe::AccountService::UpdateParams::Documents), email: T.nilable(String), expand: T.nilable(T::Array[String]), external_account: T.nilable(T.nilable(T.any(String, T.any(String, ::Stripe::AccountService::UpdateParams::BankAccount, ::Stripe::AccountService::UpdateParams::Card, ::Stripe::AccountService::UpdateParams::CardToken)))), groups: T.nilable(::Stripe::AccountService::UpdateParams::Groups), individual: T.nilable(::Stripe::AccountService::UpdateParams::Individual), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), settings: T.nilable(::Stripe::AccountService::UpdateParams::Settings), tos_acceptance: T.nilable(::Stripe::AccountService::UpdateParams::TosAcceptance)).void
+ params(account_token: T.nilable(String), business_profile: T.nilable(::Stripe::AccountService::UpdateParams::BusinessProfile), business_type: T.nilable(String), capabilities: T.nilable(::Stripe::AccountService::UpdateParams::Capabilities), company: T.nilable(::Stripe::AccountService::UpdateParams::Company), default_currency: T.nilable(String), documents: T.nilable(::Stripe::AccountService::UpdateParams::Documents), email: T.nilable(String), expand: T.nilable(T::Array[String]), external_account: T.nilable(T.any(String, T.any(String, ::Stripe::AccountService::UpdateParams::BankAccount, ::Stripe::AccountService::UpdateParams::Card, ::Stripe::AccountService::UpdateParams::CardToken))), groups: T.nilable(::Stripe::AccountService::UpdateParams::Groups), individual: T.nilable(::Stripe::AccountService::UpdateParams::Individual), metadata: T.nilable(T.any(String, T::Hash[String, String])), settings: T.nilable(::Stripe::AccountService::UpdateParams::Settings), tos_acceptance: T.nilable(::Stripe::AccountService::UpdateParams::TosAcceptance)).void
}
def initialize(
account_token: nil,
@@ -2236,13 +2236,13 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :support_phone
# A publicly available website for handling support issues.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :support_url
# The business's publicly available website.
sig { returns(T.nilable(String)) }
attr_accessor :url
sig {
- params(annual_revenue: T.nilable(::Stripe::AccountService::CreateParams::BusinessProfile::AnnualRevenue), estimated_worker_count: T.nilable(Integer), mcc: T.nilable(String), minority_owned_business_designation: T.nilable(T::Array[String]), monthly_estimated_revenue: T.nilable(::Stripe::AccountService::CreateParams::BusinessProfile::MonthlyEstimatedRevenue), name: T.nilable(String), product_description: T.nilable(String), support_address: T.nilable(::Stripe::AccountService::CreateParams::BusinessProfile::SupportAddress), support_email: T.nilable(String), support_phone: T.nilable(String), support_url: T.nilable(T.nilable(String)), url: T.nilable(String)).void
+ params(annual_revenue: T.nilable(::Stripe::AccountService::CreateParams::BusinessProfile::AnnualRevenue), estimated_worker_count: T.nilable(Integer), mcc: T.nilable(String), minority_owned_business_designation: T.nilable(T::Array[String]), monthly_estimated_revenue: T.nilable(::Stripe::AccountService::CreateParams::BusinessProfile::MonthlyEstimatedRevenue), name: T.nilable(String), product_description: T.nilable(String), support_address: T.nilable(::Stripe::AccountService::CreateParams::BusinessProfile::SupportAddress), support_email: T.nilable(String), support_phone: T.nilable(String), support_url: T.nilable(String), url: T.nilable(String)).void
}
def initialize(
annual_revenue: nil,
@@ -3319,21 +3319,21 @@ module Stripe
}
attr_accessor :ownership_declaration
# 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.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :ownership_exemption_reason
# The company's phone number (used for verification).
sig { returns(T.nilable(String)) }
attr_accessor :phone
# When the business was incorporated or registered.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::AccountService::CreateParams::Company::RegistrationDate))))
+ returns(T.nilable(T.any(String, ::Stripe::AccountService::CreateParams::Company::RegistrationDate)))
}
attr_accessor :registration_date
# The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
sig { returns(T.nilable(String)) }
attr_accessor :registration_number
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :structure
# The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
sig { returns(T.nilable(String)) }
@@ -3348,7 +3348,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::AccountService::CreateParams::Company::Verification)) }
attr_accessor :verification
sig {
- params(address: T.nilable(::Stripe::AccountService::CreateParams::Company::Address), address_kana: T.nilable(::Stripe::AccountService::CreateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::AccountService::CreateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::AccountService::CreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::AccountService::CreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::AccountService::CreateParams::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::AccountService::CreateParams::Company::Verification)).void
+ params(address: T.nilable(::Stripe::AccountService::CreateParams::Company::Address), address_kana: T.nilable(::Stripe::AccountService::CreateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::AccountService::CreateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::AccountService::CreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::AccountService::CreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, ::Stripe::AccountService::CreateParams::Company::RegistrationDate)), registration_number: T.nilable(String), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::AccountService::CreateParams::Company::Verification)).void
}
def initialize(
address: nil,
@@ -3547,9 +3547,9 @@ module Stripe
end
class Groups < Stripe::RequestParams
# The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :payments_pricing
- sig { params(payments_pricing: T.nilable(T.nilable(String))).void }
+ sig { params(payments_pricing: T.nilable(String)).void }
def initialize(payments_pricing: nil); end
end
class Individual < Stripe::RequestParams
@@ -3709,13 +3709,13 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :owner
# The percent owned by the person of the account's legal entity.
- sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
+ sig { returns(T.nilable(T.any(String, Float))) }
attr_accessor :percent_ownership
# The person's title (e.g., CEO, Support Engineer).
sig { returns(T.nilable(String)) }
attr_accessor :title
sig {
- params(director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.nilable(T.any(String, Float))), title: T.nilable(String)).void
+ params(director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.any(String, Float)), title: T.nilable(String)).void
}
def initialize(
director: nil,
@@ -3772,7 +3772,7 @@ module Stripe
attr_accessor :address_kanji
# The individual's date of birth.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::AccountService::CreateParams::Individual::Dob))))
+ returns(T.nilable(T.any(String, ::Stripe::AccountService::CreateParams::Individual::Dob)))
}
attr_accessor :dob
# The individual's email address.
@@ -3788,7 +3788,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :first_name_kanji
# A list of alternate names or aliases that the individual is known by.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :full_name_aliases
# The individual's gender
sig { returns(T.nilable(String)) }
@@ -3812,7 +3812,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :maiden_name
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The individual's phone number.
sig { returns(T.nilable(String)) }
@@ -3835,7 +3835,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::AccountService::CreateParams::Individual::Verification)) }
attr_accessor :verification
sig {
- params(address: T.nilable(::Stripe::AccountService::CreateParams::Individual::Address), address_kana: T.nilable(::Stripe::AccountService::CreateParams::Individual::AddressKana), address_kanji: T.nilable(::Stripe::AccountService::CreateParams::Individual::AddressKanji), dob: T.nilable(T.nilable(T.any(String, ::Stripe::AccountService::CreateParams::Individual::Dob))), email: T.nilable(String), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.nilable(T.any(String, T::Array[String]))), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::AccountService::CreateParams::Individual::RegisteredAddress), relationship: T.nilable(::Stripe::AccountService::CreateParams::Individual::Relationship), ssn_last_4: T.nilable(String), verification: T.nilable(::Stripe::AccountService::CreateParams::Individual::Verification)).void
+ params(address: T.nilable(::Stripe::AccountService::CreateParams::Individual::Address), address_kana: T.nilable(::Stripe::AccountService::CreateParams::Individual::AddressKana), address_kanji: T.nilable(::Stripe::AccountService::CreateParams::Individual::AddressKanji), dob: T.nilable(T.any(String, ::Stripe::AccountService::CreateParams::Individual::Dob)), email: T.nilable(String), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.any(String, T::Array[String])), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::AccountService::CreateParams::Individual::RegisteredAddress), relationship: T.nilable(::Stripe::AccountService::CreateParams::Individual::Relationship), ssn_last_4: T.nilable(String), verification: T.nilable(::Stripe::AccountService::CreateParams::Individual::Verification)).void
}
def initialize(
address: nil,
@@ -3898,10 +3898,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :ip
# The user agent of the browser from which the account representative accepted the service agreement.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :user_agent
sig {
- params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
}
def initialize(date: nil, ip: nil, user_agent: nil); end
end
@@ -3937,13 +3937,13 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_prefix
# The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kana` specified on the charge. `statement_descriptor_prefix_kana` is useful for maximizing descriptor space for the dynamic portion.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_prefix_kana
# The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kanji` specified on the charge. `statement_descriptor_prefix_kanji` is useful for maximizing descriptor space for the dynamic portion.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_prefix_kanji
sig {
- params(decline_on: T.nilable(::Stripe::AccountService::CreateParams::Settings::CardPayments::DeclineOn), statement_descriptor_prefix: T.nilable(String), statement_descriptor_prefix_kana: T.nilable(T.nilable(String)), statement_descriptor_prefix_kanji: T.nilable(T.nilable(String))).void
+ params(decline_on: T.nilable(::Stripe::AccountService::CreateParams::Settings::CardPayments::DeclineOn), statement_descriptor_prefix: T.nilable(String), statement_descriptor_prefix_kana: T.nilable(String), statement_descriptor_prefix_kanji: T.nilable(String)).void
}
def initialize(
decline_on: nil,
@@ -4039,10 +4039,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :ip
# The user agent of the browser from which the account representative accepted the service agreement.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :user_agent
sig {
- params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
}
def initialize(date: nil, ip: nil, user_agent: nil); end
end
@@ -4166,7 +4166,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::AccountService::CreateParams::Individual)) }
attr_accessor :individual
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Options for customizing how the account functions within Stripe.
sig { returns(T.nilable(::Stripe::AccountService::CreateParams::Settings)) }
@@ -4178,7 +4178,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :type
sig {
- params(account_token: T.nilable(String), business_profile: T.nilable(::Stripe::AccountService::CreateParams::BusinessProfile), business_type: T.nilable(String), capabilities: T.nilable(::Stripe::AccountService::CreateParams::Capabilities), company: T.nilable(::Stripe::AccountService::CreateParams::Company), controller: T.nilable(::Stripe::AccountService::CreateParams::Controller), country: T.nilable(String), default_currency: T.nilable(String), documents: T.nilable(::Stripe::AccountService::CreateParams::Documents), email: T.nilable(String), expand: T.nilable(T::Array[String]), external_account: T.nilable(T.any(String, ::Stripe::AccountService::CreateParams::BankAccount, ::Stripe::AccountService::CreateParams::Card, ::Stripe::AccountService::CreateParams::CardToken)), groups: T.nilable(::Stripe::AccountService::CreateParams::Groups), individual: T.nilable(::Stripe::AccountService::CreateParams::Individual), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), settings: T.nilable(::Stripe::AccountService::CreateParams::Settings), tos_acceptance: T.nilable(::Stripe::AccountService::CreateParams::TosAcceptance), type: T.nilable(String)).void
+ params(account_token: T.nilable(String), business_profile: T.nilable(::Stripe::AccountService::CreateParams::BusinessProfile), business_type: T.nilable(String), capabilities: T.nilable(::Stripe::AccountService::CreateParams::Capabilities), company: T.nilable(::Stripe::AccountService::CreateParams::Company), controller: T.nilable(::Stripe::AccountService::CreateParams::Controller), country: T.nilable(String), default_currency: T.nilable(String), documents: T.nilable(::Stripe::AccountService::CreateParams::Documents), email: T.nilable(String), expand: T.nilable(T::Array[String]), external_account: T.nilable(T.any(String, ::Stripe::AccountService::CreateParams::BankAccount, ::Stripe::AccountService::CreateParams::Card, ::Stripe::AccountService::CreateParams::CardToken)), groups: T.nilable(::Stripe::AccountService::CreateParams::Groups), individual: T.nilable(::Stripe::AccountService::CreateParams::Individual), metadata: T.nilable(T.any(String, T::Hash[String, String])), settings: T.nilable(::Stripe::AccountService::CreateParams::Settings), tos_acceptance: T.nilable(::Stripe::AccountService::CreateParams::TosAcceptance), type: T.nilable(String)).void
}
def initialize(
account_token: nil,
diff --git a/rbi/stripe/services/application_fee_refund_service.rbi b/rbi/stripe/services/application_fee_refund_service.rbi
index c3e57c6ef..55a5b3909 100644
--- a/rbi/stripe/services/application_fee_refund_service.rbi
+++ b/rbi/stripe/services/application_fee_refund_service.rbi
@@ -16,10 +16,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/services/billing/credit_grant_service.rbi b/rbi/stripe/services/billing/credit_grant_service.rbi
index 96701a13b..9c00a3848 100644
--- a/rbi/stripe/services/billing/credit_grant_service.rbi
+++ b/rbi/stripe/services/billing/credit_grant_service.rbi
@@ -147,13 +147,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# The time when the billing credits created by this credit grant expire. If set to empty, the billing credits never expire.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expires_at
# Set of key-value pairs you can attach to an object. You can use this to store additional information about the object (for example, cost basis) in a structured format.
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), expires_at: T.nilable(T.nilable(T.any(String, Integer))), metadata: T.nilable(T::Hash[String, String])).void
+ params(expand: T.nilable(T::Array[String]), expires_at: T.nilable(T.any(String, Integer)), metadata: T.nilable(T::Hash[String, String])).void
}
def initialize(expand: nil, expires_at: nil, metadata: nil); end
end
diff --git a/rbi/stripe/services/billing_portal/configuration_service.rbi b/rbi/stripe/services/billing_portal/configuration_service.rbi
index a736c8f12..051dfa8c6 100644
--- a/rbi/stripe/services/billing_portal/configuration_service.rbi
+++ b/rbi/stripe/services/billing_portal/configuration_service.rbi
@@ -39,7 +39,7 @@ module Stripe
class CreateParams < Stripe::RequestParams
class BusinessProfile < Stripe::RequestParams
# The messaging shown to customers in the portal.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :headline
# A link to the business’s publicly available privacy policy.
sig { returns(T.nilable(String)) }
@@ -48,20 +48,20 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :terms_of_service_url
sig {
- params(headline: T.nilable(T.nilable(String)), privacy_policy_url: T.nilable(String), terms_of_service_url: T.nilable(String)).void
+ params(headline: T.nilable(String), privacy_policy_url: T.nilable(String), terms_of_service_url: T.nilable(String)).void
}
def initialize(headline: nil, privacy_policy_url: nil, terms_of_service_url: nil); end
end
class Features < Stripe::RequestParams
class CustomerUpdate < Stripe::RequestParams
# The types of customer updates that are supported. When empty, customers are not updateable.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :allowed_updates
# Whether the feature is enabled.
sig { returns(T::Boolean) }
attr_accessor :enabled
sig {
- params(allowed_updates: T.nilable(T.nilable(T.any(String, T::Array[String]))), enabled: T::Boolean).void
+ params(allowed_updates: T.nilable(T.any(String, T::Array[String])), enabled: T::Boolean).void
}
def initialize(allowed_updates: nil, enabled: nil); end
end
@@ -85,11 +85,9 @@ module Stripe
sig { returns(T::Boolean) }
attr_accessor :enabled
# Which cancellation reasons will be given as options to the customer.
- sig { returns(T.nilable(T.any(String, T::Array[String]))) }
+ sig { returns(T.any(String, T::Array[String])) }
attr_accessor :options
- sig {
- params(enabled: T::Boolean, options: T.nilable(T.any(String, T::Array[String]))).void
- }
+ sig { params(enabled: T::Boolean, options: T.any(String, T::Array[String])).void }
def initialize(enabled: nil, options: nil); end
end
# Whether the cancellation reasons will be collected in the portal and which options are exposed to the customer
@@ -168,14 +166,14 @@ module Stripe
def initialize(conditions: nil); end
end
# The types of subscription updates that are supported. When empty, subscriptions are not updateable.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_allowed_updates
# Whether the feature is enabled.
sig { returns(T::Boolean) }
attr_accessor :enabled
# The list of up to 10 products that support subscription updates.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::ConfigurationService::CreateParams::Features::SubscriptionUpdate::Product]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::ConfigurationService::CreateParams::Features::SubscriptionUpdate::Product])))
}
attr_accessor :products
# Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
@@ -187,7 +185,7 @@ module Stripe
}
attr_accessor :schedule_at_period_end
sig {
- params(default_allowed_updates: T.nilable(T.nilable(T.any(String, T::Array[String]))), enabled: T::Boolean, products: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::ConfigurationService::CreateParams::Features::SubscriptionUpdate::Product]))), proration_behavior: T.nilable(String), schedule_at_period_end: T.nilable(::Stripe::BillingPortal::ConfigurationService::CreateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd)).void
+ params(default_allowed_updates: T.nilable(T.any(String, T::Array[String])), enabled: T::Boolean, products: T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::ConfigurationService::CreateParams::Features::SubscriptionUpdate::Product])), proration_behavior: T.nilable(String), schedule_at_period_end: T.nilable(::Stripe::BillingPortal::ConfigurationService::CreateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd)).void
}
def initialize(
default_allowed_updates: nil,
@@ -246,7 +244,7 @@ module Stripe
}
attr_accessor :business_profile
# The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overriden](https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :default_return_url
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
@@ -263,7 +261,7 @@ module Stripe
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
sig {
- params(business_profile: T.nilable(::Stripe::BillingPortal::ConfigurationService::CreateParams::BusinessProfile), default_return_url: T.nilable(T.nilable(String)), expand: T.nilable(T::Array[String]), features: ::Stripe::BillingPortal::ConfigurationService::CreateParams::Features, login_page: T.nilable(::Stripe::BillingPortal::ConfigurationService::CreateParams::LoginPage), metadata: T.nilable(T::Hash[String, String])).void
+ params(business_profile: T.nilable(::Stripe::BillingPortal::ConfigurationService::CreateParams::BusinessProfile), default_return_url: T.nilable(String), expand: T.nilable(T::Array[String]), features: ::Stripe::BillingPortal::ConfigurationService::CreateParams::Features, login_page: T.nilable(::Stripe::BillingPortal::ConfigurationService::CreateParams::LoginPage), metadata: T.nilable(T::Hash[String, String])).void
}
def initialize(
business_profile: nil,
@@ -284,29 +282,29 @@ module Stripe
class UpdateParams < Stripe::RequestParams
class BusinessProfile < Stripe::RequestParams
# The messaging shown to customers in the portal.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :headline
# A link to the business’s publicly available privacy policy.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :privacy_policy_url
# A link to the business’s publicly available terms of service.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :terms_of_service_url
sig {
- params(headline: T.nilable(T.nilable(String)), privacy_policy_url: T.nilable(T.nilable(String)), terms_of_service_url: T.nilable(T.nilable(String))).void
+ params(headline: T.nilable(String), privacy_policy_url: T.nilable(String), terms_of_service_url: T.nilable(String)).void
}
def initialize(headline: nil, privacy_policy_url: nil, terms_of_service_url: nil); end
end
class Features < Stripe::RequestParams
class CustomerUpdate < Stripe::RequestParams
# The types of customer updates that are supported. When empty, customers are not updateable.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :allowed_updates
# Whether the feature is enabled.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :enabled
sig {
- params(allowed_updates: T.nilable(T.nilable(T.any(String, T::Array[String]))), enabled: T.nilable(T::Boolean)).void
+ params(allowed_updates: T.nilable(T.any(String, T::Array[String])), enabled: T.nilable(T::Boolean)).void
}
def initialize(allowed_updates: nil, enabled: nil); end
end
@@ -330,10 +328,10 @@ module Stripe
sig { returns(T::Boolean) }
attr_accessor :enabled
# Which cancellation reasons will be given as options to the customer.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :options
sig {
- params(enabled: T::Boolean, options: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(enabled: T::Boolean, options: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(enabled: nil, options: nil); end
end
@@ -404,23 +402,23 @@ module Stripe
end
# List of conditions. When any condition is true, the update will be scheduled at the end of the current period.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::ConfigurationService::UpdateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd::Condition]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::ConfigurationService::UpdateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd::Condition])))
}
attr_accessor :conditions
sig {
- params(conditions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::ConfigurationService::UpdateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd::Condition])))).void
+ params(conditions: T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::ConfigurationService::UpdateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd::Condition]))).void
}
def initialize(conditions: nil); end
end
# The types of subscription updates that are supported. When empty, subscriptions are not updateable.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_allowed_updates
# Whether the feature is enabled.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :enabled
# The list of up to 10 products that support subscription updates.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::ConfigurationService::UpdateParams::Features::SubscriptionUpdate::Product]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::ConfigurationService::UpdateParams::Features::SubscriptionUpdate::Product])))
}
attr_accessor :products
# Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
@@ -432,7 +430,7 @@ module Stripe
}
attr_accessor :schedule_at_period_end
sig {
- params(default_allowed_updates: T.nilable(T.nilable(T.any(String, T::Array[String]))), enabled: T.nilable(T::Boolean), products: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::ConfigurationService::UpdateParams::Features::SubscriptionUpdate::Product]))), proration_behavior: T.nilable(String), schedule_at_period_end: T.nilable(::Stripe::BillingPortal::ConfigurationService::UpdateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd)).void
+ params(default_allowed_updates: T.nilable(T.any(String, T::Array[String])), enabled: T.nilable(T::Boolean), products: T.nilable(T.any(String, T::Array[::Stripe::BillingPortal::ConfigurationService::UpdateParams::Features::SubscriptionUpdate::Product])), proration_behavior: T.nilable(String), schedule_at_period_end: T.nilable(::Stripe::BillingPortal::ConfigurationService::UpdateParams::Features::SubscriptionUpdate::ScheduleAtPeriodEnd)).void
}
def initialize(
default_allowed_updates: nil,
@@ -496,7 +494,7 @@ module Stripe
}
attr_accessor :business_profile
# The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overriden](https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :default_return_url
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
@@ -512,10 +510,10 @@ module Stripe
}
attr_accessor :login_page
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(active: T.nilable(T::Boolean), business_profile: T.nilable(::Stripe::BillingPortal::ConfigurationService::UpdateParams::BusinessProfile), default_return_url: T.nilable(T.nilable(String)), expand: T.nilable(T::Array[String]), features: T.nilable(::Stripe::BillingPortal::ConfigurationService::UpdateParams::Features), login_page: T.nilable(::Stripe::BillingPortal::ConfigurationService::UpdateParams::LoginPage), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(active: T.nilable(T::Boolean), business_profile: T.nilable(::Stripe::BillingPortal::ConfigurationService::UpdateParams::BusinessProfile), default_return_url: T.nilable(String), expand: T.nilable(T::Array[String]), features: T.nilable(::Stripe::BillingPortal::ConfigurationService::UpdateParams::Features), login_page: T.nilable(::Stripe::BillingPortal::ConfigurationService::UpdateParams::LoginPage), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(
active: nil,
diff --git a/rbi/stripe/services/charge_service.rbi b/rbi/stripe/services/charge_service.rbi
index 2804be97f..a2b0974b2 100644
--- a/rbi/stripe/services/charge_service.rbi
+++ b/rbi/stripe/services/charge_service.rbi
@@ -169,7 +169,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The Stripe account ID for which these funds are intended. Automatically set if you use the `destination` parameter. For details, see [Creating Separate Charges and Transfers](https://stripe.com/docs/connect/separate-charges-and-transfers#settlement-merchant).
sig { returns(T.nilable(String)) }
@@ -201,7 +201,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transfer_group
sig {
- params(amount: T.nilable(Integer), application_fee: T.nilable(Integer), application_fee_amount: T.nilable(Integer), capture: T.nilable(T::Boolean), currency: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), destination: T.nilable(::Stripe::ChargeService::CreateParams::Destination), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), on_behalf_of: T.nilable(String), radar_options: T.nilable(::Stripe::ChargeService::CreateParams::RadarOptions), receipt_email: T.nilable(String), shipping: T.nilable(::Stripe::ChargeService::CreateParams::Shipping), source: T.nilable(String), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::ChargeService::CreateParams::TransferData), transfer_group: T.nilable(String)).void
+ params(amount: T.nilable(Integer), application_fee: T.nilable(Integer), application_fee_amount: T.nilable(Integer), capture: T.nilable(T::Boolean), currency: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), destination: T.nilable(::Stripe::ChargeService::CreateParams::Destination), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), on_behalf_of: T.nilable(String), radar_options: T.nilable(::Stripe::ChargeService::CreateParams::RadarOptions), receipt_email: T.nilable(String), shipping: T.nilable(::Stripe::ChargeService::CreateParams::Shipping), source: T.nilable(String), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::ChargeService::CreateParams::TransferData), transfer_group: T.nilable(String)).void
}
def initialize(
amount: nil,
@@ -235,9 +235,9 @@ module Stripe
class UpdateParams < Stripe::RequestParams
class FraudDetails < Stripe::RequestParams
# Either `safe` or `fraudulent`.
- sig { returns(T.nilable(T.any(String, String))) }
+ sig { returns(T.any(String, String)) }
attr_accessor :user_report
- sig { params(user_report: T.nilable(T.any(String, String))).void }
+ sig { params(user_report: T.any(String, String)).void }
def initialize(user_report: nil); end
end
class Shipping < Stripe::RequestParams
@@ -305,7 +305,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::ChargeService::UpdateParams::FraudDetails)) }
attr_accessor :fraud_details
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# This is the email address that the receipt for this charge will be sent to. If this field is updated, then a new email receipt will be sent to the updated address.
sig { returns(T.nilable(String)) }
@@ -317,7 +317,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transfer_group
sig {
- params(customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), fraud_details: T.nilable(::Stripe::ChargeService::UpdateParams::FraudDetails), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), receipt_email: T.nilable(String), shipping: T.nilable(::Stripe::ChargeService::UpdateParams::Shipping), transfer_group: T.nilable(String)).void
+ params(customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), fraud_details: T.nilable(::Stripe::ChargeService::UpdateParams::FraudDetails), metadata: T.nilable(T.any(String, T::Hash[String, String])), receipt_email: T.nilable(String), shipping: T.nilable(::Stripe::ChargeService::UpdateParams::Shipping), transfer_group: T.nilable(String)).void
}
def initialize(
customer: nil,
diff --git a/rbi/stripe/services/checkout/session_service.rbi b/rbi/stripe/services/checkout/session_service.rbi
index 9980043a0..9048051c8 100644
--- a/rbi/stripe/services/checkout/session_service.rbi
+++ b/rbi/stripe/services/checkout/session_service.rbi
@@ -309,26 +309,26 @@ module Stripe
end
# Custom text that should be displayed after the payment confirmation button.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::AfterSubmit))))
+ returns(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::AfterSubmit)))
}
attr_accessor :after_submit
# Custom text that should be displayed alongside shipping address collection.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::ShippingAddress))))
+ returns(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::ShippingAddress)))
}
attr_accessor :shipping_address
# Custom text that should be displayed alongside the payment confirmation button.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::Submit))))
+ returns(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::Submit)))
}
attr_accessor :submit
# Custom text that should be displayed in place of the default terms of service agreement text.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::TermsOfServiceAcceptance))))
+ returns(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::TermsOfServiceAcceptance)))
}
attr_accessor :terms_of_service_acceptance
sig {
- params(after_submit: T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::AfterSubmit))), shipping_address: T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::ShippingAddress))), submit: T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::Submit))), terms_of_service_acceptance: T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::TermsOfServiceAcceptance)))).void
+ params(after_submit: T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::AfterSubmit)), shipping_address: T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::ShippingAddress)), submit: T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::Submit)), terms_of_service_acceptance: T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::CustomText::TermsOfServiceAcceptance))).void
}
def initialize(
after_submit: nil,
@@ -388,22 +388,22 @@ module Stripe
end
class RenderingOptions < Stripe::RequestParams
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :amount_tax_display
# ID of the invoice rendering template to use for this invoice.
sig { returns(T.nilable(String)) }
attr_accessor :template
sig {
- params(amount_tax_display: T.nilable(T.nilable(T.any(String, String))), template: T.nilable(String)).void
+ params(amount_tax_display: T.nilable(T.any(String, String)), template: T.nilable(String)).void
}
def initialize(amount_tax_display: nil, template: nil); end
end
# The account tax IDs associated with the invoice.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# Default custom fields to be displayed on invoices for this customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData::CustomField]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData::CustomField])))
}
attr_accessor :custom_fields
# An arbitrary string attached to the object. Often useful for displaying to users.
@@ -422,11 +422,11 @@ module Stripe
attr_accessor :metadata
# Default options for invoice PDF rendering for this customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions))))
+ returns(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions)))
}
attr_accessor :rendering_options
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), custom_fields: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData::CustomField]))), description: T.nilable(String), footer: T.nilable(String), issuer: T.nilable(::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData::Issuer), metadata: T.nilable(T::Hash[String, String]), rendering_options: T.nilable(T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions)))).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData::CustomField])), description: T.nilable(String), footer: T.nilable(String), issuer: T.nilable(::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData::Issuer), metadata: T.nilable(T::Hash[String, String]), rendering_options: T.nilable(T.any(String, ::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions))).void
}
def initialize(
account_tax_ids: nil,
@@ -778,7 +778,7 @@ module Stripe
# A URL for custom mandate text to render during confirmation step.
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :custom_mandate_url
# List of Stripe products where this mandate can be selected automatically. Only usable in `setup` mode.
sig { returns(T.nilable(T::Array[String])) }
@@ -793,7 +793,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transaction_type
sig {
- params(custom_mandate_url: T.nilable(T.nilable(String)), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
+ params(custom_mandate_url: T.nilable(String), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
}
def initialize(
custom_mandate_url: nil,
@@ -910,9 +910,9 @@ module Stripe
class BacsDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -1236,11 +1236,11 @@ module Stripe
attr_accessor :setup_future_usage
# Subscription details if the Checkout Session sets up a future subscription.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Klarna::Subscription]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Klarna::Subscription])))
}
attr_accessor :subscriptions
sig {
- params(setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Klarna::Subscription])))).void
+ params(setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.any(String, T::Array[::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Klarna::Subscription]))).void
}
def initialize(setup_future_usage: nil, subscriptions: nil); end
end
@@ -1396,7 +1396,7 @@ module Stripe
end
class Paypal < Stripe::RequestParams
# Controls when the funds will be captured from the customer's account.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
sig { returns(T.nilable(String)) }
@@ -1416,10 +1416,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), preferred_locale: T.nilable(String), reference: T.nilable(String), risk_correlation_id: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), preferred_locale: T.nilable(String), reference: T.nilable(String), risk_correlation_id: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(
capture_method: nil,
@@ -1470,9 +1470,9 @@ module Stripe
class SepaDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -2628,15 +2628,15 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The shipping rate options to apply to this Session. Up to a maximum of 5.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Checkout::SessionService::UpdateParams::ShippingOption]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::Checkout::SessionService::UpdateParams::ShippingOption])))
}
attr_accessor :shipping_options
sig {
- params(collected_information: T.nilable(::Stripe::Checkout::SessionService::UpdateParams::CollectedInformation), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), shipping_options: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Checkout::SessionService::UpdateParams::ShippingOption])))).void
+ params(collected_information: T.nilable(::Stripe::Checkout::SessionService::UpdateParams::CollectedInformation), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), shipping_options: T.nilable(T.any(String, T::Array[::Stripe::Checkout::SessionService::UpdateParams::ShippingOption]))).void
}
def initialize(
collected_information: nil,
diff --git a/rbi/stripe/services/climate/order_service.rbi b/rbi/stripe/services/climate/order_service.rbi
index 42f883602..3bb017695 100644
--- a/rbi/stripe/services/climate/order_service.rbi
+++ b/rbi/stripe/services/climate/order_service.rbi
@@ -75,14 +75,14 @@ module Stripe
class UpdateParams < Stripe::RequestParams
class Beneficiary < Stripe::RequestParams
# Publicly displayable name for the end beneficiary of carbon removal.
- sig { returns(T.nilable(String)) }
+ sig { returns(String) }
attr_accessor :public_name
- sig { params(public_name: T.nilable(String)).void }
+ sig { params(public_name: String).void }
def initialize(public_name: nil); end
end
# Publicly sharable reference for the end beneficiary of carbon removal. Assumed to be the Stripe account if not set.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Climate::OrderService::UpdateParams::Beneficiary))))
+ returns(T.nilable(T.any(String, ::Stripe::Climate::OrderService::UpdateParams::Beneficiary)))
}
attr_accessor :beneficiary
# Specifies which fields in the response should be expanded.
@@ -92,7 +92,7 @@ module Stripe
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
sig {
- params(beneficiary: T.nilable(T.nilable(T.any(String, ::Stripe::Climate::OrderService::UpdateParams::Beneficiary))), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String])).void
+ params(beneficiary: T.nilable(T.any(String, ::Stripe::Climate::OrderService::UpdateParams::Beneficiary)), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String])).void
}
def initialize(beneficiary: nil, expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/services/coupon_service.rbi b/rbi/stripe/services/coupon_service.rbi
index 3467ae51e..ed1030c58 100644
--- a/rbi/stripe/services/coupon_service.rbi
+++ b/rbi/stripe/services/coupon_service.rbi
@@ -29,13 +29,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set.
sig { returns(T.nilable(String)) }
attr_accessor :name
sig {
- params(currency_options: T.nilable(T::Hash[String, ::Stripe::CouponService::UpdateParams::CurrencyOptions]), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), name: T.nilable(String)).void
+ params(currency_options: T.nilable(T::Hash[String, ::Stripe::CouponService::UpdateParams::CurrencyOptions]), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String)).void
}
def initialize(currency_options: nil, expand: nil, metadata: nil, name: nil); end
end
@@ -129,7 +129,7 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :max_redemptions
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set.
sig { returns(T.nilable(String)) }
@@ -141,7 +141,7 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :redeem_by
sig {
- params(amount_off: T.nilable(Integer), applies_to: T.nilable(::Stripe::CouponService::CreateParams::AppliesTo), currency: T.nilable(String), currency_options: T.nilable(T::Hash[String, ::Stripe::CouponService::CreateParams::CurrencyOptions]), duration: T.nilable(String), duration_in_months: T.nilable(Integer), expand: T.nilable(T::Array[String]), id: T.nilable(String), max_redemptions: T.nilable(Integer), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), name: T.nilable(String), percent_off: T.nilable(Float), redeem_by: T.nilable(Integer)).void
+ params(amount_off: T.nilable(Integer), applies_to: T.nilable(::Stripe::CouponService::CreateParams::AppliesTo), currency: T.nilable(String), currency_options: T.nilable(T::Hash[String, ::Stripe::CouponService::CreateParams::CurrencyOptions]), duration: T.nilable(String), duration_in_months: T.nilable(Integer), expand: T.nilable(T::Array[String]), id: T.nilable(String), max_redemptions: T.nilable(Integer), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), percent_off: T.nilable(Float), redeem_by: T.nilable(Integer)).void
}
def initialize(
amount_off: nil,
diff --git a/rbi/stripe/services/credit_note_preview_lines_service.rbi b/rbi/stripe/services/credit_note_preview_lines_service.rbi
index fc3c9c401..5429757d3 100644
--- a/rbi/stripe/services/credit_note_preview_lines_service.rbi
+++ b/rbi/stripe/services/credit_note_preview_lines_service.rbi
@@ -33,11 +33,11 @@ module Stripe
attr_accessor :quantity
# A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with `tax_rates`.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::CreditNotePreviewLinesService::ListParams::Line::TaxAmount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::CreditNotePreviewLinesService::ListParams::Line::TaxAmount])))
}
attr_accessor :tax_amounts
# The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and cannot be mixed with `tax_amounts`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
# Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`
sig { returns(String) }
@@ -49,7 +49,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :unit_amount_decimal
sig {
- params(amount: T.nilable(Integer), description: T.nilable(String), invoice_line_item: T.nilable(String), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::CreditNotePreviewLinesService::ListParams::Line::TaxAmount]))), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), type: String, unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
+ params(amount: T.nilable(Integer), description: T.nilable(String), invoice_line_item: T.nilable(String), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.any(String, T::Array[::Stripe::CreditNotePreviewLinesService::ListParams::Line::TaxAmount])), tax_rates: T.nilable(T.any(String, T::Array[String])), type: String, unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
}
def initialize(
amount: nil,
diff --git a/rbi/stripe/services/credit_note_service.rbi b/rbi/stripe/services/credit_note_service.rbi
index 1886563cf..a079f9146 100644
--- a/rbi/stripe/services/credit_note_service.rbi
+++ b/rbi/stripe/services/credit_note_service.rbi
@@ -88,11 +88,11 @@ module Stripe
attr_accessor :quantity
# A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with `tax_rates`.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::CreditNoteService::CreateParams::Line::TaxAmount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::CreditNoteService::CreateParams::Line::TaxAmount])))
}
attr_accessor :tax_amounts
# The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and cannot be mixed with `tax_amounts`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
# Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`
sig { returns(String) }
@@ -104,7 +104,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :unit_amount_decimal
sig {
- params(amount: T.nilable(Integer), description: T.nilable(String), invoice_line_item: T.nilable(String), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::CreditNoteService::CreateParams::Line::TaxAmount]))), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), type: String, unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
+ params(amount: T.nilable(Integer), description: T.nilable(String), invoice_line_item: T.nilable(String), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.any(String, T::Array[::Stripe::CreditNoteService::CreateParams::Line::TaxAmount])), tax_rates: T.nilable(T.any(String, T::Array[String])), type: String, unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
}
def initialize(
amount: nil,
@@ -248,11 +248,11 @@ module Stripe
attr_accessor :quantity
# A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with `tax_rates`.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::CreditNoteService::PreviewParams::Line::TaxAmount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::CreditNoteService::PreviewParams::Line::TaxAmount])))
}
attr_accessor :tax_amounts
# The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and cannot be mixed with `tax_amounts`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
# Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`
sig { returns(String) }
@@ -264,7 +264,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :unit_amount_decimal
sig {
- params(amount: T.nilable(Integer), description: T.nilable(String), invoice_line_item: T.nilable(String), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::CreditNoteService::PreviewParams::Line::TaxAmount]))), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), type: String, unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
+ params(amount: T.nilable(Integer), description: T.nilable(String), invoice_line_item: T.nilable(String), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.any(String, T::Array[::Stripe::CreditNoteService::PreviewParams::Line::TaxAmount])), tax_rates: T.nilable(T.any(String, T::Array[String])), type: String, unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
}
def initialize(
amount: nil,
diff --git a/rbi/stripe/services/customer_balance_transaction_service.rbi b/rbi/stripe/services/customer_balance_transaction_service.rbi
index 96af3807b..b0ff0b80d 100644
--- a/rbi/stripe/services/customer_balance_transaction_service.rbi
+++ b/rbi/stripe/services/customer_balance_transaction_service.rbi
@@ -36,10 +36,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(amount: Integer, currency: String, description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(amount: Integer, currency: String, description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(amount: nil, currency: nil, description: nil, expand: nil, metadata: nil); end
end
@@ -58,10 +58,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(description: nil, expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/services/customer_payment_source_service.rbi b/rbi/stripe/services/customer_payment_source_service.rbi
index a0519a864..06058e109 100644
--- a/rbi/stripe/services/customer_payment_source_service.rbi
+++ b/rbi/stripe/services/customer_payment_source_service.rbi
@@ -142,7 +142,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Cardholder name.
sig { returns(T.nilable(String)) }
@@ -151,7 +151,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::CustomerPaymentSourceService::UpdateParams::Owner)) }
attr_accessor :owner
sig {
- params(account_holder_name: T.nilable(String), account_holder_type: T.nilable(String), address_city: T.nilable(String), address_country: T.nilable(String), address_line1: T.nilable(String), address_line2: T.nilable(String), address_state: T.nilable(String), address_zip: T.nilable(String), exp_month: T.nilable(String), exp_year: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), name: T.nilable(String), owner: T.nilable(::Stripe::CustomerPaymentSourceService::UpdateParams::Owner)).void
+ params(account_holder_name: T.nilable(String), account_holder_type: T.nilable(String), address_city: T.nilable(String), address_country: T.nilable(String), address_line1: T.nilable(String), address_line2: T.nilable(String), address_state: T.nilable(String), address_zip: T.nilable(String), exp_month: T.nilable(String), exp_year: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), owner: T.nilable(::Stripe::CustomerPaymentSourceService::UpdateParams::Owner)).void
}
def initialize(
account_holder_name: nil,
diff --git a/rbi/stripe/services/customer_service.rbi b/rbi/stripe/services/customer_service.rbi
index 8b7824bee..a5bc9fa15 100644
--- a/rbi/stripe/services/customer_service.rbi
+++ b/rbi/stripe/services/customer_service.rbi
@@ -81,19 +81,19 @@ module Stripe
end
class RenderingOptions < Stripe::RequestParams
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :amount_tax_display
# ID of the invoice rendering template to use for future invoices.
sig { returns(T.nilable(String)) }
attr_accessor :template
sig {
- params(amount_tax_display: T.nilable(T.nilable(T.any(String, String))), template: T.nilable(String)).void
+ params(amount_tax_display: T.nilable(T.any(String, String)), template: T.nilable(String)).void
}
def initialize(amount_tax_display: nil, template: nil); end
end
# The list of up to 4 default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::CustomerService::UpdateParams::InvoiceSettings::CustomField]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::CustomerService::UpdateParams::InvoiceSettings::CustomField])))
}
attr_accessor :custom_fields
# ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices.
@@ -104,11 +104,11 @@ module Stripe
attr_accessor :footer
# Default options for invoice PDF rendering for this customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::InvoiceSettings::RenderingOptions))))
+ returns(T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::InvoiceSettings::RenderingOptions)))
}
attr_accessor :rendering_options
sig {
- params(custom_fields: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::CustomerService::UpdateParams::InvoiceSettings::CustomField]))), default_payment_method: T.nilable(String), footer: T.nilable(String), rendering_options: T.nilable(T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::InvoiceSettings::RenderingOptions)))).void
+ params(custom_fields: T.nilable(T.any(String, T::Array[::Stripe::CustomerService::UpdateParams::InvoiceSettings::CustomField])), default_payment_method: T.nilable(String), footer: T.nilable(String), rendering_options: T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::InvoiceSettings::RenderingOptions))).void
}
def initialize(
custom_fields: nil,
@@ -165,20 +165,16 @@ module Stripe
end
class Tax < Stripe::RequestParams
# A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :ip_address
# A flag that indicates when Stripe should validate the customer tax location. Defaults to `auto`.
sig { returns(T.nilable(String)) }
attr_accessor :validate_location
- sig {
- params(ip_address: T.nilable(T.nilable(String)), validate_location: T.nilable(String)).void
- }
+ sig { params(ip_address: T.nilable(String), validate_location: T.nilable(String)).void }
def initialize(ip_address: nil, validate_location: nil); end
end
# The customer's address.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::Address))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::Address))) }
attr_accessor :address
# An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice.
sig { returns(T.nilable(Integer)) }
@@ -209,7 +205,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::CustomerService::UpdateParams::InvoiceSettings)) }
attr_accessor :invoice_settings
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The customer's full name or business name.
sig { returns(T.nilable(String)) }
@@ -224,9 +220,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :preferred_locales
# The customer's shipping information. Appears on invoices emailed to this customer.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::Shipping))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::Shipping))) }
attr_accessor :shipping
# Attribute for param field source
sig { returns(T.nilable(String)) }
@@ -235,13 +229,13 @@ module Stripe
sig { returns(T.nilable(::Stripe::CustomerService::UpdateParams::Tax)) }
attr_accessor :tax
# The customer's tax exemption. One of `none`, `exempt`, or `reverse`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :tax_exempt
# Attribute for param field validate
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :validate
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::Address))), balance: T.nilable(Integer), cash_balance: T.nilable(::Stripe::CustomerService::UpdateParams::CashBalance), default_source: T.nilable(String), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::CustomerService::UpdateParams::InvoiceSettings), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::Shipping))), source: T.nilable(String), tax: T.nilable(::Stripe::CustomerService::UpdateParams::Tax), tax_exempt: T.nilable(T.nilable(T.any(String, String))), validate: T.nilable(T::Boolean)).void
+ params(address: T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::Address)), balance: T.nilable(Integer), cash_balance: T.nilable(::Stripe::CustomerService::UpdateParams::CashBalance), default_source: T.nilable(String), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::CustomerService::UpdateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::CustomerService::UpdateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), validate: T.nilable(T::Boolean)).void
}
def initialize(
address: nil,
@@ -381,19 +375,19 @@ module Stripe
end
class RenderingOptions < Stripe::RequestParams
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :amount_tax_display
# ID of the invoice rendering template to use for future invoices.
sig { returns(T.nilable(String)) }
attr_accessor :template
sig {
- params(amount_tax_display: T.nilable(T.nilable(T.any(String, String))), template: T.nilable(String)).void
+ params(amount_tax_display: T.nilable(T.any(String, String)), template: T.nilable(String)).void
}
def initialize(amount_tax_display: nil, template: nil); end
end
# The list of up to 4 default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::CustomerService::CreateParams::InvoiceSettings::CustomField]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::CustomerService::CreateParams::InvoiceSettings::CustomField])))
}
attr_accessor :custom_fields
# ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices.
@@ -404,11 +398,11 @@ module Stripe
attr_accessor :footer
# Default options for invoice PDF rendering for this customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::InvoiceSettings::RenderingOptions))))
+ returns(T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::InvoiceSettings::RenderingOptions)))
}
attr_accessor :rendering_options
sig {
- params(custom_fields: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::CustomerService::CreateParams::InvoiceSettings::CustomField]))), default_payment_method: T.nilable(String), footer: T.nilable(String), rendering_options: T.nilable(T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::InvoiceSettings::RenderingOptions)))).void
+ params(custom_fields: T.nilable(T.any(String, T::Array[::Stripe::CustomerService::CreateParams::InvoiceSettings::CustomField])), default_payment_method: T.nilable(String), footer: T.nilable(String), rendering_options: T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::InvoiceSettings::RenderingOptions))).void
}
def initialize(
custom_fields: nil,
@@ -465,14 +459,12 @@ module Stripe
end
class Tax < Stripe::RequestParams
# A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :ip_address
# A flag that indicates when Stripe should validate the customer tax location. Defaults to `deferred`.
sig { returns(T.nilable(String)) }
attr_accessor :validate_location
- sig {
- params(ip_address: T.nilable(T.nilable(String)), validate_location: T.nilable(String)).void
- }
+ sig { params(ip_address: T.nilable(String), validate_location: T.nilable(String)).void }
def initialize(ip_address: nil, validate_location: nil); end
end
class TaxIdDatum < Stripe::RequestParams
@@ -486,9 +478,7 @@ module Stripe
def initialize(type: nil, value: nil); end
end
# The customer's address.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::Address))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::Address))) }
attr_accessor :address
# An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice.
sig { returns(T.nilable(Integer)) }
@@ -512,7 +502,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::CustomerService::CreateParams::InvoiceSettings)) }
attr_accessor :invoice_settings
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The customer's full name or business name.
sig { returns(T.nilable(String)) }
@@ -530,9 +520,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :preferred_locales
# The customer's shipping information. Appears on invoices emailed to this customer.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::Shipping))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::Shipping))) }
attr_accessor :shipping
# Attribute for param field source
sig { returns(T.nilable(String)) }
@@ -541,7 +529,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::CustomerService::CreateParams::Tax)) }
attr_accessor :tax
# The customer's tax exemption. One of `none`, `exempt`, or `reverse`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :tax_exempt
# The customer's tax IDs.
sig { returns(T.nilable(T::Array[::Stripe::CustomerService::CreateParams::TaxIdDatum])) }
@@ -553,7 +541,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :validate
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::Address))), balance: T.nilable(Integer), cash_balance: T.nilable(::Stripe::CustomerService::CreateParams::CashBalance), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::CustomerService::CreateParams::InvoiceSettings), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), payment_method: T.nilable(String), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::Shipping))), source: T.nilable(String), tax: T.nilable(::Stripe::CustomerService::CreateParams::Tax), tax_exempt: T.nilable(T.nilable(T.any(String, String))), tax_id_data: T.nilable(T::Array[::Stripe::CustomerService::CreateParams::TaxIdDatum]), test_clock: T.nilable(String), validate: T.nilable(T::Boolean)).void
+ params(address: T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::Address)), balance: T.nilable(Integer), cash_balance: T.nilable(::Stripe::CustomerService::CreateParams::CashBalance), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::CustomerService::CreateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), payment_method: T.nilable(String), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::CustomerService::CreateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), tax_id_data: T.nilable(T::Array[::Stripe::CustomerService::CreateParams::TaxIdDatum]), test_clock: T.nilable(String), validate: T.nilable(T::Boolean)).void
}
def initialize(
address: nil,
diff --git a/rbi/stripe/services/dispute_service.rbi b/rbi/stripe/services/dispute_service.rbi
index 35bd072f3..77b240da2 100644
--- a/rbi/stripe/services/dispute_service.rbi
+++ b/rbi/stripe/services/dispute_service.rbi
@@ -71,25 +71,25 @@ module Stripe
class DisputedTransaction < Stripe::RequestParams
class ShippingAddress < Stripe::RequestParams
# City, district, suburb, town, or village.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :city
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :country
# Address line 1 (e.g., street, PO Box, or company name).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :line1
# Address line 2 (e.g., apartment, suite, unit, or building).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :line2
# ZIP or postal code.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :postal_code
# State, county, province, or region.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :state
sig {
- params(city: T.nilable(T.nilable(String)), country: T.nilable(T.nilable(String)), line1: T.nilable(T.nilable(String)), line2: T.nilable(T.nilable(String)), postal_code: T.nilable(T.nilable(String)), state: T.nilable(T.nilable(String))).void
+ params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
}
def initialize(
city: nil,
@@ -101,25 +101,25 @@ module Stripe
); end
end
# User Account ID used to log into business platform. Must be recognizable by the user.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_account_id
# Unique identifier of the cardholder’s device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_device_fingerprint
# Unique identifier of the cardholder’s device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_device_id
# The email address of the customer.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_email_address
# The IP address that the customer used when making the purchase.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_purchase_ip
# Categorization of disputed payment.
sig { returns(T.nilable(String)) }
attr_accessor :merchandise_or_services
# A description of the product or service that was sold.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
sig {
@@ -127,7 +127,7 @@ module Stripe
}
attr_accessor :shipping_address
sig {
- params(customer_account_id: T.nilable(T.nilable(String)), customer_device_fingerprint: T.nilable(T.nilable(String)), customer_device_id: T.nilable(T.nilable(String)), customer_email_address: T.nilable(T.nilable(String)), customer_purchase_ip: T.nilable(T.nilable(String)), merchandise_or_services: T.nilable(String), product_description: T.nilable(T.nilable(String)), shipping_address: T.nilable(::Stripe::DisputeService::UpdateParams::Evidence::EnhancedEvidence::VisaCompellingEvidence3::DisputedTransaction::ShippingAddress)).void
+ params(customer_account_id: T.nilable(String), customer_device_fingerprint: T.nilable(String), customer_device_id: T.nilable(String), customer_email_address: T.nilable(String), customer_purchase_ip: T.nilable(String), merchandise_or_services: T.nilable(String), product_description: T.nilable(String), shipping_address: T.nilable(::Stripe::DisputeService::UpdateParams::Evidence::EnhancedEvidence::VisaCompellingEvidence3::DisputedTransaction::ShippingAddress)).void
}
def initialize(
customer_account_id: nil,
@@ -143,25 +143,25 @@ module Stripe
class PriorUndisputedTransaction < Stripe::RequestParams
class ShippingAddress < Stripe::RequestParams
# City, district, suburb, town, or village.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :city
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :country
# Address line 1 (e.g., street, PO Box, or company name).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :line1
# Address line 2 (e.g., apartment, suite, unit, or building).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :line2
# ZIP or postal code.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :postal_code
# State, county, province, or region.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :state
sig {
- params(city: T.nilable(T.nilable(String)), country: T.nilable(T.nilable(String)), line1: T.nilable(T.nilable(String)), line2: T.nilable(T.nilable(String)), postal_code: T.nilable(T.nilable(String)), state: T.nilable(T.nilable(String))).void
+ params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
}
def initialize(
city: nil,
@@ -176,22 +176,22 @@ module Stripe
sig { returns(String) }
attr_accessor :charge
# User Account ID used to log into business platform. Must be recognizable by the user.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_account_id
# Unique identifier of the cardholder’s device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_device_fingerprint
# Unique identifier of the cardholder’s device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_device_id
# The email address of the customer.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_email_address
# The IP address that the customer used when making the purchase.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :customer_purchase_ip
# A description of the product or service that was sold.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
sig {
@@ -199,7 +199,7 @@ module Stripe
}
attr_accessor :shipping_address
sig {
- params(charge: String, customer_account_id: T.nilable(T.nilable(String)), customer_device_fingerprint: T.nilable(T.nilable(String)), customer_device_id: T.nilable(T.nilable(String)), customer_email_address: T.nilable(T.nilable(String)), customer_purchase_ip: T.nilable(T.nilable(String)), product_description: T.nilable(T.nilable(String)), shipping_address: T.nilable(::Stripe::DisputeService::UpdateParams::Evidence::EnhancedEvidence::VisaCompellingEvidence3::PriorUndisputedTransaction::ShippingAddress)).void
+ params(charge: String, customer_account_id: T.nilable(String), customer_device_fingerprint: T.nilable(String), customer_device_id: T.nilable(String), customer_email_address: T.nilable(String), customer_purchase_ip: T.nilable(String), product_description: T.nilable(String), shipping_address: T.nilable(::Stripe::DisputeService::UpdateParams::Evidence::EnhancedEvidence::VisaCompellingEvidence3::PriorUndisputedTransaction::ShippingAddress)).void
}
def initialize(
charge: nil,
@@ -290,7 +290,7 @@ module Stripe
attr_accessor :duplicate_charge_id
# Additional evidence for qualifying evidence programs.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::DisputeService::UpdateParams::Evidence::EnhancedEvidence))))
+ returns(T.nilable(T.any(String, ::Stripe::DisputeService::UpdateParams::Evidence::EnhancedEvidence)))
}
attr_accessor :enhanced_evidence
# A description of the product or service that was sold. Has a maximum character count of 20,000.
@@ -336,7 +336,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :uncategorized_text
sig {
- params(access_activity_log: T.nilable(String), billing_address: T.nilable(String), cancellation_policy: T.nilable(String), cancellation_policy_disclosure: T.nilable(String), cancellation_rebuttal: T.nilable(String), customer_communication: T.nilable(String), customer_email_address: T.nilable(String), customer_name: T.nilable(String), customer_purchase_ip: T.nilable(String), customer_signature: T.nilable(String), duplicate_charge_documentation: T.nilable(String), duplicate_charge_explanation: T.nilable(String), duplicate_charge_id: T.nilable(String), enhanced_evidence: T.nilable(T.nilable(T.any(String, ::Stripe::DisputeService::UpdateParams::Evidence::EnhancedEvidence))), product_description: T.nilable(String), receipt: T.nilable(String), refund_policy: T.nilable(String), refund_policy_disclosure: T.nilable(String), refund_refusal_explanation: T.nilable(String), service_date: T.nilable(String), service_documentation: T.nilable(String), shipping_address: T.nilable(String), shipping_carrier: T.nilable(String), shipping_date: T.nilable(String), shipping_documentation: T.nilable(String), shipping_tracking_number: T.nilable(String), uncategorized_file: T.nilable(String), uncategorized_text: T.nilable(String)).void
+ params(access_activity_log: T.nilable(String), billing_address: T.nilable(String), cancellation_policy: T.nilable(String), cancellation_policy_disclosure: T.nilable(String), cancellation_rebuttal: T.nilable(String), customer_communication: T.nilable(String), customer_email_address: T.nilable(String), customer_name: T.nilable(String), customer_purchase_ip: T.nilable(String), customer_signature: T.nilable(String), duplicate_charge_documentation: T.nilable(String), duplicate_charge_explanation: T.nilable(String), duplicate_charge_id: T.nilable(String), enhanced_evidence: T.nilable(T.any(String, ::Stripe::DisputeService::UpdateParams::Evidence::EnhancedEvidence)), product_description: T.nilable(String), receipt: T.nilable(String), refund_policy: T.nilable(String), refund_policy_disclosure: T.nilable(String), refund_refusal_explanation: T.nilable(String), service_date: T.nilable(String), service_documentation: T.nilable(String), shipping_address: T.nilable(String), shipping_carrier: T.nilable(String), shipping_date: T.nilable(String), shipping_documentation: T.nilable(String), shipping_tracking_number: T.nilable(String), uncategorized_file: T.nilable(String), uncategorized_text: T.nilable(String)).void
}
def initialize(
access_activity_log: nil,
@@ -376,13 +376,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Whether to immediately submit evidence to the bank. If `false`, evidence is staged on the dispute. Staged evidence is visible in the API and Dashboard, and can be submitted to the bank by making another request with this attribute set to `true` (the default).
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :submit
sig {
- params(evidence: T.nilable(::Stripe::DisputeService::UpdateParams::Evidence), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), submit: T.nilable(T::Boolean)).void
+ params(evidence: T.nilable(::Stripe::DisputeService::UpdateParams::Evidence), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), submit: T.nilable(T::Boolean)).void
}
def initialize(evidence: nil, expand: nil, metadata: nil, submit: nil); end
end
diff --git a/rbi/stripe/services/entitlements/feature_service.rbi b/rbi/stripe/services/entitlements/feature_service.rbi
index 49d778e9a..c9185e7ec 100644
--- a/rbi/stripe/services/entitlements/feature_service.rbi
+++ b/rbi/stripe/services/entitlements/feature_service.rbi
@@ -69,13 +69,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The feature's name, for your own purpose, not meant to be displayable to the customer.
sig { returns(T.nilable(String)) }
attr_accessor :name
sig {
- params(active: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), name: T.nilable(String)).void
+ params(active: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String)).void
}
def initialize(active: nil, expand: nil, metadata: nil, name: nil); end
end
diff --git a/rbi/stripe/services/file_link_service.rbi b/rbi/stripe/services/file_link_service.rbi
index 81a9041b7..678645867 100644
--- a/rbi/stripe/services/file_link_service.rbi
+++ b/rbi/stripe/services/file_link_service.rbi
@@ -68,10 +68,10 @@ module Stripe
sig { returns(String) }
attr_accessor :file
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), file: String, metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), file: String, metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, expires_at: nil, file: nil, metadata: nil); end
end
@@ -87,13 +87,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# A future timestamp after which the link will no longer be usable, or `now` to expire the link immediately.
- sig { returns(T.nilable(T.nilable(T.any(String, T.any(String, Integer))))) }
+ sig { returns(T.nilable(T.any(String, T.any(String, Integer)))) }
attr_accessor :expires_at
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), expires_at: T.nilable(T.nilable(T.any(String, T.any(String, Integer)))), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), expires_at: T.nilable(T.any(String, T.any(String, Integer))), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, expires_at: nil, metadata: nil); end
end
diff --git a/rbi/stripe/services/file_service.rbi b/rbi/stripe/services/file_service.rbi
index d70d802ed..79f20899c 100644
--- a/rbi/stripe/services/file_service.rbi
+++ b/rbi/stripe/services/file_service.rbi
@@ -62,10 +62,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :expires_at
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(create: T::Boolean, expires_at: T.nilable(Integer), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(create: T::Boolean, expires_at: T.nilable(Integer), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(create: nil, expires_at: nil, metadata: nil); end
end
diff --git a/rbi/stripe/services/identity/verification_session_service.rbi b/rbi/stripe/services/identity/verification_session_service.rbi
index e86d943cc..217e491fd 100644
--- a/rbi/stripe/services/identity/verification_session_service.rbi
+++ b/rbi/stripe/services/identity/verification_session_service.rbi
@@ -91,11 +91,11 @@ module Stripe
end
# Options that apply to the [document check](https://stripe.com/docs/identity/verification-checks?type=document).
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Identity::VerificationSessionService::CreateParams::Options::Document))))
+ returns(T.nilable(T.any(String, ::Stripe::Identity::VerificationSessionService::CreateParams::Options::Document)))
}
attr_accessor :document
sig {
- params(document: T.nilable(T.nilable(T.any(String, ::Stripe::Identity::VerificationSessionService::CreateParams::Options::Document)))).void
+ params(document: T.nilable(T.any(String, ::Stripe::Identity::VerificationSessionService::CreateParams::Options::Document))).void
}
def initialize(document: nil); end
end
@@ -205,11 +205,11 @@ module Stripe
end
# Options that apply to the [document check](https://stripe.com/docs/identity/verification-checks?type=document).
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Identity::VerificationSessionService::UpdateParams::Options::Document))))
+ returns(T.nilable(T.any(String, ::Stripe::Identity::VerificationSessionService::UpdateParams::Options::Document)))
}
attr_accessor :document
sig {
- params(document: T.nilable(T.nilable(T.any(String, ::Stripe::Identity::VerificationSessionService::UpdateParams::Options::Document)))).void
+ params(document: T.nilable(T.any(String, ::Stripe::Identity::VerificationSessionService::UpdateParams::Options::Document))).void
}
def initialize(document: nil); end
end
diff --git a/rbi/stripe/services/invoice_item_service.rbi b/rbi/stripe/services/invoice_item_service.rbi
index ee059733c..196e6fbb2 100644
--- a/rbi/stripe/services/invoice_item_service.rbi
+++ b/rbi/stripe/services/invoice_item_service.rbi
@@ -83,14 +83,14 @@ module Stripe
attr_accessor :discountable
# The coupons, promotion codes & existing discounts which apply to the invoice item or invoice line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceItemService::UpdateParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceItemService::UpdateParams::Discount])))
}
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
sig { returns(T.nilable(::Stripe::InvoiceItemService::UpdateParams::Period)) }
@@ -108,16 +108,16 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :tax_behavior
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :tax_code
# The tax rates which apply to the invoice item. When set, the `default_tax_rates` on the invoice do not apply to this invoice item. Pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
# The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This `unit_amount_decimal` will be multiplied by the quantity to get the full amount. Passing in a negative `unit_amount_decimal` will reduce the `amount_due` on the invoice. Accepts at most 12 decimal places.
sig { returns(T.nilable(String)) }
attr_accessor :unit_amount_decimal
sig {
- params(amount: T.nilable(Integer), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceItemService::UpdateParams::Discount]))), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), period: T.nilable(::Stripe::InvoiceItemService::UpdateParams::Period), price_data: T.nilable(::Stripe::InvoiceItemService::UpdateParams::PriceData), pricing: T.nilable(::Stripe::InvoiceItemService::UpdateParams::Pricing), quantity: T.nilable(Integer), tax_behavior: T.nilable(String), tax_code: T.nilable(T.nilable(String)), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), unit_amount_decimal: T.nilable(String)).void
+ params(amount: T.nilable(Integer), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceItemService::UpdateParams::Discount])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), period: T.nilable(::Stripe::InvoiceItemService::UpdateParams::Period), price_data: T.nilable(::Stripe::InvoiceItemService::UpdateParams::PriceData), pricing: T.nilable(::Stripe::InvoiceItemService::UpdateParams::Pricing), quantity: T.nilable(Integer), tax_behavior: T.nilable(String), tax_code: T.nilable(String), tax_rates: T.nilable(T.any(String, T::Array[String])), unit_amount_decimal: T.nilable(String)).void
}
def initialize(
amount: nil,
@@ -270,7 +270,7 @@ module Stripe
attr_accessor :discountable
# The coupons and promotion codes to redeem into discounts for the invoice item or invoice line item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceItemService::CreateParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceItemService::CreateParams::Discount])))
}
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
@@ -280,7 +280,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :invoice
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
sig { returns(T.nilable(::Stripe::InvoiceItemService::CreateParams::Period)) }
@@ -301,7 +301,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :tax_behavior
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :tax_code
# The tax rates which apply to the invoice item. When set, the `default_tax_rates` on the invoice do not apply to this invoice item.
sig { returns(T.nilable(T::Array[String])) }
@@ -310,7 +310,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :unit_amount_decimal
sig {
- params(amount: T.nilable(Integer), currency: T.nilable(String), customer: String, description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceItemService::CreateParams::Discount]))), expand: T.nilable(T::Array[String]), invoice: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), period: T.nilable(::Stripe::InvoiceItemService::CreateParams::Period), price_data: T.nilable(::Stripe::InvoiceItemService::CreateParams::PriceData), pricing: T.nilable(::Stripe::InvoiceItemService::CreateParams::Pricing), quantity: T.nilable(Integer), subscription: T.nilable(String), tax_behavior: T.nilable(String), tax_code: T.nilable(T.nilable(String)), tax_rates: T.nilable(T::Array[String]), unit_amount_decimal: T.nilable(String)).void
+ params(amount: T.nilable(Integer), currency: T.nilable(String), customer: String, description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceItemService::CreateParams::Discount])), expand: T.nilable(T::Array[String]), invoice: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), period: T.nilable(::Stripe::InvoiceItemService::CreateParams::Period), price_data: T.nilable(::Stripe::InvoiceItemService::CreateParams::PriceData), pricing: T.nilable(::Stripe::InvoiceItemService::CreateParams::Pricing), quantity: T.nilable(Integer), subscription: T.nilable(String), tax_behavior: T.nilable(String), tax_code: T.nilable(String), tax_rates: T.nilable(T::Array[String]), unit_amount_decimal: T.nilable(String)).void
}
def initialize(
amount: nil,
diff --git a/rbi/stripe/services/invoice_line_item_service.rbi b/rbi/stripe/services/invoice_line_item_service.rbi
index 89bc5266b..de8cd1bb3 100644
--- a/rbi/stripe/services/invoice_line_item_service.rbi
+++ b/rbi/stripe/services/invoice_line_item_service.rbi
@@ -194,14 +194,14 @@ module Stripe
attr_accessor :discountable
# The coupons, promotion codes & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceLineItemService::UpdateParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceLineItemService::UpdateParams::Discount])))
}
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
sig { returns(T.nilable(::Stripe::InvoiceLineItemService::UpdateParams::Period)) }
@@ -217,14 +217,14 @@ module Stripe
attr_accessor :quantity
# A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://stripe.com/docs/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://stripe.com/docs/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceLineItemService::UpdateParams::TaxAmount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceLineItemService::UpdateParams::TaxAmount])))
}
attr_accessor :tax_amounts
# The tax rates which apply to the line item. When set, the `default_tax_rates` on the invoice do not apply to this line item. Pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(amount: T.nilable(Integer), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceLineItemService::UpdateParams::Discount]))), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), period: T.nilable(::Stripe::InvoiceLineItemService::UpdateParams::Period), price_data: T.nilable(::Stripe::InvoiceLineItemService::UpdateParams::PriceData), pricing: T.nilable(::Stripe::InvoiceLineItemService::UpdateParams::Pricing), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceLineItemService::UpdateParams::TaxAmount]))), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(amount: T.nilable(Integer), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceLineItemService::UpdateParams::Discount])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), period: T.nilable(::Stripe::InvoiceLineItemService::UpdateParams::Period), price_data: T.nilable(::Stripe::InvoiceLineItemService::UpdateParams::PriceData), pricing: T.nilable(::Stripe::InvoiceLineItemService::UpdateParams::Pricing), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceLineItemService::UpdateParams::TaxAmount])), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
amount: nil,
diff --git a/rbi/stripe/services/invoice_service.rbi b/rbi/stripe/services/invoice_service.rbi
index e2c1fba72..7cce3d115 100644
--- a/rbi/stripe/services/invoice_service.rbi
+++ b/rbi/stripe/services/invoice_service.rbi
@@ -125,11 +125,11 @@ module Stripe
attr_accessor :enabled
# The selected installment plan to use for this invoice.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::Card::Installments::Plan))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::Card::Installments::Plan)))
}
attr_accessor :plan
sig {
- params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::Card::Installments::Plan)))).void
+ params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::Card::Installments::Plan))).void
}
def initialize(enabled: nil, plan: nil); end
end
@@ -225,41 +225,41 @@ module Stripe
end
# If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::AcssDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::AcssDebit)))
}
attr_accessor :acss_debit
# If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::Bancontact))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::Bancontact)))
}
attr_accessor :bancontact
# If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::Card))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::Card)))
}
attr_accessor :card
# If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance)))
}
attr_accessor :customer_balance
# If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::Konbini))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::Konbini)))
}
attr_accessor :konbini
# If paying by `sepa_debit`, this sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::SepaDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::SepaDebit)))
}
attr_accessor :sepa_debit
# If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount)))
}
attr_accessor :us_bank_account
sig {
- params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::AcssDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::Bancontact))), card: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::Card))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::Konbini))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::SepaDebit))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount)))).void
+ params(acss_debit: T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::AcssDebit)), bancontact: T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::Bancontact)), card: T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::Card)), customer_balance: T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance)), konbini: T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::Konbini)), sepa_debit: T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::SepaDebit)), us_bank_account: T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount))).void
}
def initialize(
acss_debit: nil,
@@ -272,7 +272,7 @@ module Stripe
); end
end
# ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :default_mandate
# Payment-method-specific configuration to provide to the invoice’s PaymentIntent.
sig {
@@ -280,10 +280,10 @@ module Stripe
}
attr_accessor :payment_method_options
# The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :payment_method_types
sig {
- params(default_mandate: T.nilable(T.nilable(String)), payment_method_options: T.nilable(::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions), payment_method_types: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(default_mandate: T.nilable(String), payment_method_options: T.nilable(::Stripe::InvoiceService::UpdateParams::PaymentSettings::PaymentMethodOptions), payment_method_types: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
default_mandate: nil,
@@ -302,7 +302,7 @@ module Stripe
def initialize(page_size: nil); end
end
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :amount_tax_display
# Invoice pdf rendering options
sig { returns(T.nilable(::Stripe::InvoiceService::UpdateParams::Rendering::Pdf)) }
@@ -311,10 +311,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :template
# The specific version of invoice rendering template to use for this invoice.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :template_version
sig {
- params(amount_tax_display: T.nilable(T.nilable(T.any(String, String))), pdf: T.nilable(::Stripe::InvoiceService::UpdateParams::Rendering::Pdf), template: T.nilable(String), template_version: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(amount_tax_display: T.nilable(T.any(String, String)), pdf: T.nilable(::Stripe::InvoiceService::UpdateParams::Rendering::Pdf), template: T.nilable(String), template_version: T.nilable(T.any(String, Integer))).void
}
def initialize(amount_tax_display: nil, pdf: nil, template: nil, template_version: nil); end
end
@@ -473,10 +473,10 @@ module Stripe
sig { returns(String) }
attr_accessor :name
# Recipient phone (including extension)
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
sig {
- params(address: ::Stripe::InvoiceService::UpdateParams::ShippingDetails::Address, name: String, phone: T.nilable(T.nilable(String))).void
+ params(address: ::Stripe::InvoiceService::UpdateParams::ShippingDetails::Address, name: String, phone: T.nilable(String)).void
}
def initialize(address: nil, name: nil, phone: nil); end
end
@@ -491,7 +491,7 @@ module Stripe
def initialize(amount: nil, destination: nil); end
end
# The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/billing/invoices/connect#collecting-fees).
sig { returns(T.nilable(Integer)) }
@@ -510,7 +510,7 @@ module Stripe
attr_accessor :collection_method
# A list of up to 4 custom fields to be displayed on the invoice. If a value for `custom_fields` is specified, the list specified will replace the existing custom field list on this invoice. Pass an empty string to remove previously-defined fields.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::UpdateParams::CustomField]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::UpdateParams::CustomField])))
}
attr_accessor :custom_fields
# The number of days from which the invoice is created until it is due. Only valid for invoices where `collection_method=send_invoice`. This field can only be updated on `draft` invoices.
@@ -520,24 +520,24 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :default_payment_method
# ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :default_source
# The tax rates that will apply to any line item that does not have `tax_rates` set. Pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_tax_rates
# An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.
sig { returns(T.nilable(String)) }
attr_accessor :description
# The discounts that will apply to the invoice. Pass an empty string to remove previously-defined discounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::UpdateParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::UpdateParams::Discount])))
}
attr_accessor :discounts
# The date on which payment for this invoice is due. Only valid for invoices where `collection_method=send_invoice`. This field can only be updated on `draft` invoices.
sig { returns(T.nilable(Integer)) }
attr_accessor :due_date
# The date when this invoice is in effect. Same as `finalized_at` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :effective_at
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
@@ -549,13 +549,13 @@ module Stripe
sig { returns(T.nilable(::Stripe::InvoiceService::UpdateParams::Issuer)) }
attr_accessor :issuer
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Set the number for this invoice. If no number is present then a number will be assigned automatically when the invoice is finalized. In many markets, regulations require invoices to be unique, sequential and / or gapless. You are responsible for ensuring this is true across all your different invoicing systems in the event that you edit the invoice number using our API. If you use only Stripe for your invoices and do not change invoice numbers, Stripe handles this aspect of compliance for you automatically.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :number
# The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :on_behalf_of
# Configuration settings for the PaymentIntent that is generated when the invoice is finalized.
sig { returns(T.nilable(::Stripe::InvoiceService::UpdateParams::PaymentSettings)) }
@@ -565,12 +565,12 @@ module Stripe
attr_accessor :rendering
# Settings for the cost of shipping for this invoice.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::ShippingCost))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::ShippingCost)))
}
attr_accessor :shipping_cost
# Shipping details for the invoice. The Invoice PDF will use the `shipping_details` value if it is set, otherwise the PDF will render the shipping address from the customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::ShippingDetails))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::ShippingDetails)))
}
attr_accessor :shipping_details
# Extra information about a charge for the customer's credit card statement. It must contain at least one letter. If not specified and this invoice is part of a subscription, the default `statement_descriptor` will be set to the first subscription item's product's `statement_descriptor`.
@@ -578,11 +578,11 @@ module Stripe
attr_accessor :statement_descriptor
# If specified, the funds from the invoice will be transferred to the destination and the ID of the resulting transfer will be found on the invoice's charge. This will be unset if you POST an empty value.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::TransferData))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::TransferData)))
}
attr_accessor :transfer_data
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), application_fee_amount: T.nilable(Integer), auto_advance: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::InvoiceService::UpdateParams::AutomaticTax), automatically_finalizes_at: T.nilable(Integer), collection_method: T.nilable(String), custom_fields: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::UpdateParams::CustomField]))), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(T.nilable(String)), default_tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), description: T.nilable(String), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::UpdateParams::Discount]))), due_date: T.nilable(Integer), effective_at: T.nilable(T.nilable(T.any(String, Integer))), expand: T.nilable(T::Array[String]), footer: T.nilable(String), issuer: T.nilable(::Stripe::InvoiceService::UpdateParams::Issuer), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), number: T.nilable(T.nilable(String)), on_behalf_of: T.nilable(T.nilable(String)), payment_settings: T.nilable(::Stripe::InvoiceService::UpdateParams::PaymentSettings), rendering: T.nilable(::Stripe::InvoiceService::UpdateParams::Rendering), shipping_cost: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::ShippingCost))), shipping_details: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::ShippingDetails))), statement_descriptor: T.nilable(String), transfer_data: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::TransferData)))).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), application_fee_amount: T.nilable(Integer), auto_advance: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::InvoiceService::UpdateParams::AutomaticTax), automatically_finalizes_at: T.nilable(Integer), collection_method: T.nilable(String), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::UpdateParams::CustomField])), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::UpdateParams::Discount])), due_date: T.nilable(Integer), effective_at: T.nilable(T.any(String, Integer)), expand: T.nilable(T::Array[String]), footer: T.nilable(String), issuer: T.nilable(::Stripe::InvoiceService::UpdateParams::Issuer), metadata: T.nilable(T.any(String, T::Hash[String, String])), number: T.nilable(String), on_behalf_of: T.nilable(String), payment_settings: T.nilable(::Stripe::InvoiceService::UpdateParams::PaymentSettings), rendering: T.nilable(::Stripe::InvoiceService::UpdateParams::Rendering), shipping_cost: T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::ShippingCost)), shipping_details: T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::ShippingDetails)), statement_descriptor: T.nilable(String), transfer_data: T.nilable(T.any(String, ::Stripe::InvoiceService::UpdateParams::TransferData))).void
}
def initialize(
account_tax_ids: nil,
@@ -819,11 +819,11 @@ module Stripe
attr_accessor :enabled
# The selected installment plan to use for this invoice.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::Card::Installments::Plan))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::Card::Installments::Plan)))
}
attr_accessor :plan
sig {
- params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::Card::Installments::Plan)))).void
+ params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::Card::Installments::Plan))).void
}
def initialize(enabled: nil, plan: nil); end
end
@@ -919,41 +919,41 @@ module Stripe
end
# If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::AcssDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::AcssDebit)))
}
attr_accessor :acss_debit
# If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::Bancontact))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::Bancontact)))
}
attr_accessor :bancontact
# If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::Card))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::Card)))
}
attr_accessor :card
# If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance)))
}
attr_accessor :customer_balance
# If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::Konbini))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::Konbini)))
}
attr_accessor :konbini
# If paying by `sepa_debit`, this sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::SepaDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::SepaDebit)))
}
attr_accessor :sepa_debit
# If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount)))
}
attr_accessor :us_bank_account
sig {
- params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::AcssDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::Bancontact))), card: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::Card))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::Konbini))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::SepaDebit))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount)))).void
+ params(acss_debit: T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::AcssDebit)), bancontact: T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::Bancontact)), card: T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::Card)), customer_balance: T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance)), konbini: T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::Konbini)), sepa_debit: T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::SepaDebit)), us_bank_account: T.nilable(T.any(String, ::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount))).void
}
def initialize(
acss_debit: nil,
@@ -966,7 +966,7 @@ module Stripe
); end
end
# ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :default_mandate
# Payment-method-specific configuration to provide to the invoice’s PaymentIntent.
sig {
@@ -974,10 +974,10 @@ module Stripe
}
attr_accessor :payment_method_options
# The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :payment_method_types
sig {
- params(default_mandate: T.nilable(T.nilable(String)), payment_method_options: T.nilable(::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions), payment_method_types: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(default_mandate: T.nilable(String), payment_method_options: T.nilable(::Stripe::InvoiceService::CreateParams::PaymentSettings::PaymentMethodOptions), payment_method_types: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
default_mandate: nil,
@@ -996,7 +996,7 @@ module Stripe
def initialize(page_size: nil); end
end
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :amount_tax_display
# Invoice pdf rendering options
sig { returns(T.nilable(::Stripe::InvoiceService::CreateParams::Rendering::Pdf)) }
@@ -1005,10 +1005,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :template
# The specific version of invoice rendering template to use for this invoice.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :template_version
sig {
- params(amount_tax_display: T.nilable(T.nilable(T.any(String, String))), pdf: T.nilable(::Stripe::InvoiceService::CreateParams::Rendering::Pdf), template: T.nilable(String), template_version: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(amount_tax_display: T.nilable(T.any(String, String)), pdf: T.nilable(::Stripe::InvoiceService::CreateParams::Rendering::Pdf), template: T.nilable(String), template_version: T.nilable(T.any(String, Integer))).void
}
def initialize(amount_tax_display: nil, pdf: nil, template: nil, template_version: nil); end
end
@@ -1167,10 +1167,10 @@ module Stripe
sig { returns(String) }
attr_accessor :name
# Recipient phone (including extension)
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
sig {
- params(address: ::Stripe::InvoiceService::CreateParams::ShippingDetails::Address, name: String, phone: T.nilable(T.nilable(String))).void
+ params(address: ::Stripe::InvoiceService::CreateParams::ShippingDetails::Address, name: String, phone: T.nilable(String)).void
}
def initialize(address: nil, name: nil, phone: nil); end
end
@@ -1185,7 +1185,7 @@ module Stripe
def initialize(amount: nil, destination: nil); end
end
# The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/billing/invoices/connect#collecting-fees).
sig { returns(T.nilable(Integer)) }
@@ -1207,7 +1207,7 @@ module Stripe
attr_accessor :currency
# A list of up to 4 custom fields to be displayed on the invoice.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreateParams::CustomField]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreateParams::CustomField])))
}
attr_accessor :custom_fields
# The ID of the customer who will be billed.
@@ -1230,7 +1230,7 @@ module Stripe
attr_accessor :description
# The coupons and promotion codes to redeem into discounts for the invoice. If not specified, inherits the discount from the invoice's customer. Pass an empty string to avoid inheriting any discounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreateParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreateParams::Discount])))
}
attr_accessor :discounts
# The date on which payment for this invoice is due. Valid only for invoices where `collection_method=send_invoice`.
@@ -1252,7 +1252,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::InvoiceService::CreateParams::Issuer)) }
attr_accessor :issuer
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Set the number for this invoice. If no number is present then a number will be assigned automatically when the invoice is finalized. In many markets, regulations require invoices to be unique, sequential and / or gapless. You are responsible for ensuring this is true across all your different invoicing systems in the event that you edit the invoice number using our API. If you use only Stripe for your invoices and do not change invoice numbers, Stripe handles this aspect of compliance for you automatically.
sig { returns(T.nilable(String)) }
@@ -1285,7 +1285,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::InvoiceService::CreateParams::TransferData)) }
attr_accessor :transfer_data
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), application_fee_amount: T.nilable(Integer), auto_advance: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::InvoiceService::CreateParams::AutomaticTax), automatically_finalizes_at: T.nilable(Integer), collection_method: T.nilable(String), currency: T.nilable(String), custom_fields: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreateParams::CustomField]))), customer: T.nilable(String), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T::Array[String]), description: T.nilable(String), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreateParams::Discount]))), due_date: T.nilable(Integer), effective_at: T.nilable(Integer), expand: T.nilable(T::Array[String]), footer: T.nilable(String), from_invoice: T.nilable(::Stripe::InvoiceService::CreateParams::FromInvoice), issuer: T.nilable(::Stripe::InvoiceService::CreateParams::Issuer), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), number: T.nilable(String), on_behalf_of: T.nilable(String), payment_settings: T.nilable(::Stripe::InvoiceService::CreateParams::PaymentSettings), pending_invoice_items_behavior: T.nilable(String), rendering: T.nilable(::Stripe::InvoiceService::CreateParams::Rendering), shipping_cost: T.nilable(::Stripe::InvoiceService::CreateParams::ShippingCost), shipping_details: T.nilable(::Stripe::InvoiceService::CreateParams::ShippingDetails), statement_descriptor: T.nilable(String), subscription: T.nilable(String), transfer_data: T.nilable(::Stripe::InvoiceService::CreateParams::TransferData)).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), application_fee_amount: T.nilable(Integer), auto_advance: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::InvoiceService::CreateParams::AutomaticTax), automatically_finalizes_at: T.nilable(Integer), collection_method: T.nilable(String), currency: T.nilable(String), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreateParams::CustomField])), customer: T.nilable(String), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T::Array[String]), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreateParams::Discount])), due_date: T.nilable(Integer), effective_at: T.nilable(Integer), expand: T.nilable(T::Array[String]), footer: T.nilable(String), from_invoice: T.nilable(::Stripe::InvoiceService::CreateParams::FromInvoice), issuer: T.nilable(::Stripe::InvoiceService::CreateParams::Issuer), metadata: T.nilable(T.any(String, T::Hash[String, String])), number: T.nilable(String), on_behalf_of: T.nilable(String), payment_settings: T.nilable(::Stripe::InvoiceService::CreateParams::PaymentSettings), pending_invoice_items_behavior: T.nilable(String), rendering: T.nilable(::Stripe::InvoiceService::CreateParams::Rendering), shipping_cost: T.nilable(::Stripe::InvoiceService::CreateParams::ShippingCost), shipping_details: T.nilable(::Stripe::InvoiceService::CreateParams::ShippingDetails), statement_descriptor: T.nilable(String), subscription: T.nilable(String), transfer_data: T.nilable(::Stripe::InvoiceService::CreateParams::TransferData)).void
}
def initialize(
account_tax_ids: nil,
@@ -1513,14 +1513,14 @@ module Stripe
attr_accessor :discountable
# The coupons, promotion codes & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::AddLinesParams::Line::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::AddLinesParams::Line::Discount])))
}
attr_accessor :discounts
# ID of an unassigned invoice item to assign to this invoice. If not provided, a new item will be created.
sig { returns(T.nilable(String)) }
attr_accessor :invoice_item
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
sig { returns(T.nilable(::Stripe::InvoiceService::AddLinesParams::Line::Period)) }
@@ -1536,14 +1536,14 @@ module Stripe
attr_accessor :quantity
# A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://stripe.com/docs/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://stripe.com/docs/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::AddLinesParams::Line::TaxAmount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::AddLinesParams::Line::TaxAmount])))
}
attr_accessor :tax_amounts
# The tax rates which apply to the line item. When set, the `default_tax_rates` on the invoice do not apply to this line item. Pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(amount: T.nilable(Integer), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::AddLinesParams::Line::Discount]))), invoice_item: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), period: T.nilable(::Stripe::InvoiceService::AddLinesParams::Line::Period), price_data: T.nilable(::Stripe::InvoiceService::AddLinesParams::Line::PriceData), pricing: T.nilable(::Stripe::InvoiceService::AddLinesParams::Line::Pricing), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::AddLinesParams::Line::TaxAmount]))), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(amount: T.nilable(Integer), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::AddLinesParams::Line::Discount])), invoice_item: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), period: T.nilable(::Stripe::InvoiceService::AddLinesParams::Line::Period), price_data: T.nilable(::Stripe::InvoiceService::AddLinesParams::Line::PriceData), pricing: T.nilable(::Stripe::InvoiceService::AddLinesParams::Line::Pricing), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::AddLinesParams::Line::TaxAmount])), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
amount: nil,
@@ -1564,13 +1564,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :invoice_metadata
# The line items to add.
sig { returns(T::Array[::Stripe::InvoiceService::AddLinesParams::Line]) }
attr_accessor :lines
sig {
- params(expand: T.nilable(T::Array[String]), invoice_metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), lines: T::Array[::Stripe::InvoiceService::AddLinesParams::Line]).void
+ params(expand: T.nilable(T::Array[String]), invoice_metadata: T.nilable(T.any(String, T::Hash[String, String])), lines: T::Array[::Stripe::InvoiceService::AddLinesParams::Line]).void
}
def initialize(expand: nil, invoice_metadata: nil, lines: nil); end
end
@@ -1611,7 +1611,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :forgive
# ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the payment_method param or the invoice's default_payment_method or default_source, if set.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :mandate
# Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `true` (off-session).
sig { returns(T.nilable(T::Boolean)) }
@@ -1626,7 +1626,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :source
sig {
- params(expand: T.nilable(T::Array[String]), forgive: T.nilable(T::Boolean), mandate: T.nilable(T.nilable(String)), off_session: T.nilable(T::Boolean), paid_out_of_band: T.nilable(T::Boolean), payment_method: T.nilable(String), source: T.nilable(String)).void
+ params(expand: T.nilable(T::Array[String]), forgive: T.nilable(T::Boolean), mandate: T.nilable(String), off_session: T.nilable(T::Boolean), paid_out_of_band: T.nilable(T::Boolean), payment_method: T.nilable(String), source: T.nilable(String)).void
}
def initialize(
expand: nil,
@@ -1653,13 +1653,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :invoice_metadata
# The line items to remove.
sig { returns(T::Array[::Stripe::InvoiceService::RemoveLinesParams::Line]) }
attr_accessor :lines
sig {
- params(expand: T.nilable(T::Array[String]), invoice_metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), lines: T::Array[::Stripe::InvoiceService::RemoveLinesParams::Line]).void
+ params(expand: T.nilable(T::Array[String]), invoice_metadata: T.nilable(T.any(String, T::Hash[String, String])), lines: T::Array[::Stripe::InvoiceService::RemoveLinesParams::Line]).void
}
def initialize(expand: nil, invoice_metadata: nil, lines: nil); end
end
@@ -1843,14 +1843,14 @@ module Stripe
attr_accessor :discountable
# The coupons, promotion codes & existing discounts which apply to the line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::UpdateLinesParams::Line::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::UpdateLinesParams::Line::Discount])))
}
attr_accessor :discounts
# ID of an existing line item on the invoice.
sig { returns(String) }
attr_accessor :id
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
sig { returns(T.nilable(::Stripe::InvoiceService::UpdateLinesParams::Line::Period)) }
@@ -1866,14 +1866,14 @@ module Stripe
attr_accessor :quantity
# A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://stripe.com/docs/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://stripe.com/docs/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::UpdateLinesParams::Line::TaxAmount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::UpdateLinesParams::Line::TaxAmount])))
}
attr_accessor :tax_amounts
# The tax rates which apply to the line item. When set, the `default_tax_rates` on the invoice do not apply to this line item. Pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(amount: T.nilable(Integer), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::UpdateLinesParams::Line::Discount]))), id: String, metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), period: T.nilable(::Stripe::InvoiceService::UpdateLinesParams::Line::Period), price_data: T.nilable(::Stripe::InvoiceService::UpdateLinesParams::Line::PriceData), pricing: T.nilable(::Stripe::InvoiceService::UpdateLinesParams::Line::Pricing), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::UpdateLinesParams::Line::TaxAmount]))), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(amount: T.nilable(Integer), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::UpdateLinesParams::Line::Discount])), id: String, metadata: T.nilable(T.any(String, T::Hash[String, String])), period: T.nilable(::Stripe::InvoiceService::UpdateLinesParams::Line::Period), price_data: T.nilable(::Stripe::InvoiceService::UpdateLinesParams::Line::PriceData), pricing: T.nilable(::Stripe::InvoiceService::UpdateLinesParams::Line::Pricing), quantity: T.nilable(Integer), tax_amounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::UpdateLinesParams::Line::TaxAmount])), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
amount: nil,
@@ -1894,13 +1894,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :invoice_metadata
# The line items to update.
sig { returns(T::Array[::Stripe::InvoiceService::UpdateLinesParams::Line]) }
attr_accessor :lines
sig {
- params(expand: T.nilable(T::Array[String]), invoice_metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), lines: T::Array[::Stripe::InvoiceService::UpdateLinesParams::Line]).void
+ params(expand: T.nilable(T::Array[String]), invoice_metadata: T.nilable(T.any(String, T::Hash[String, String])), lines: T::Array[::Stripe::InvoiceService::UpdateLinesParams::Line]).void
}
def initialize(expand: nil, invoice_metadata: nil, lines: nil); end
end
@@ -2018,9 +2018,9 @@ module Stripe
end
class Tax < Stripe::RequestParams
# A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :ip_address
- sig { params(ip_address: T.nilable(T.nilable(String))).void }
+ sig { params(ip_address: T.nilable(String)).void }
def initialize(ip_address: nil); end
end
class TaxId < Stripe::RequestParams
@@ -2035,12 +2035,12 @@ module Stripe
end
# The customer's address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::CustomerDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::CustomerDetails::Address)))
}
attr_accessor :address
# The customer's shipping information. Appears on invoices emailed to this customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::CustomerDetails::Shipping))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::CustomerDetails::Shipping)))
}
attr_accessor :shipping
# Tax details about the customer.
@@ -2049,7 +2049,7 @@ module Stripe
}
attr_accessor :tax
# The customer's tax exemption. One of `none`, `exempt`, or `reverse`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :tax_exempt
# The customer's tax IDs.
sig {
@@ -2057,7 +2057,7 @@ module Stripe
}
attr_accessor :tax_ids
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::CustomerDetails::Address))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::CustomerDetails::Shipping))), tax: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::CustomerDetails::Tax), tax_exempt: T.nilable(T.nilable(T.any(String, String))), tax_ids: T.nilable(T::Array[::Stripe::InvoiceService::CreatePreviewParams::CustomerDetails::TaxId])).void
+ params(address: T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::CustomerDetails::Address)), shipping: T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::CustomerDetails::Shipping)), tax: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::CustomerDetails::Tax), tax_exempt: T.nilable(T.any(String, String)), tax_ids: T.nilable(T::Array[::Stripe::InvoiceService::CreatePreviewParams::CustomerDetails::TaxId])).void
}
def initialize(address: nil, shipping: nil, tax: nil, tax_exempt: nil, tax_ids: nil); end
end
@@ -2143,14 +2143,14 @@ module Stripe
attr_accessor :discountable
# The coupons to redeem into discounts for the invoice item in the preview.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::InvoiceItem::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::InvoiceItem::Discount])))
}
attr_accessor :discounts
# The ID of the invoice item to update in preview. If not specified, a new invoice item will be added to the preview of the upcoming invoice.
sig { returns(T.nilable(String)) }
attr_accessor :invoiceitem
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
sig {
@@ -2172,10 +2172,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :tax_behavior
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :tax_code
# The tax rates that apply to the item. When set, any `default_tax_rates` do not apply to this item.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
# The integer unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This unit_amount will be multiplied by the quantity to get the full amount. If you want to apply a credit to the customer's account, pass a negative unit_amount.
sig { returns(T.nilable(Integer)) }
@@ -2184,7 +2184,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :unit_amount_decimal
sig {
- params(amount: T.nilable(Integer), currency: T.nilable(String), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::InvoiceItem::Discount]))), invoiceitem: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), period: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::InvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::InvoiceItem::PriceData), quantity: T.nilable(Integer), tax_behavior: T.nilable(String), tax_code: T.nilable(T.nilable(String)), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
+ params(amount: T.nilable(Integer), currency: T.nilable(String), description: T.nilable(String), discountable: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::InvoiceItem::Discount])), invoiceitem: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), period: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::InvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::InvoiceItem::PriceData), quantity: T.nilable(Integer), tax_behavior: T.nilable(String), tax_code: T.nilable(String), tax_rates: T.nilable(T.any(String, T::Array[String])), unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
}
def initialize(
amount: nil,
@@ -2284,10 +2284,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(discounts: T.nilable(T::Array[::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(discounts: T.nilable(T::Array[::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
discounts: nil,
@@ -2370,7 +2370,7 @@ module Stripe
def initialize(account: nil, type: nil); end
end
# The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
sig { returns(T.nilable(Integer)) }
@@ -2381,7 +2381,7 @@ module Stripe
}
attr_accessor :issuer
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::InvoiceSettings::Issuer)).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::InvoiceSettings::Issuer)).void
}
def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end
end
@@ -2453,12 +2453,12 @@ module Stripe
end
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Item::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Item::BillingThresholds)))
}
attr_accessor :billing_thresholds
# The coupons to redeem into discounts for the subscription item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Item::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Item::Discount])))
}
attr_accessor :discounts
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a configuration item. Metadata on a configuration item will update the underlying subscription item's `metadata` when the phase is entered, adding new keys and replacing existing keys. Individual keys in the subscription item's `metadata` can be unset by posting an empty value to them in the configuration item's `metadata`. To unset all keys in the subscription item's `metadata`, update the subscription item directly or unset every key individually from the configuration item's `metadata`.
@@ -2479,10 +2479,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Item::BillingThresholds))), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Item::Discount]))), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(billing_thresholds: T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
billing_thresholds: nil,
@@ -2523,7 +2523,7 @@ module Stripe
attr_accessor :billing_cycle_anchor
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::BillingThresholds)))
}
attr_accessor :billing_thresholds
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
@@ -2536,14 +2536,14 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :default_payment_method
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://stripe.com/docs/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_tax_rates
# Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Discount])))
}
attr_accessor :discounts
# The number of intervals the phase should last. If set, `end_date` must not be set.
@@ -2591,7 +2591,7 @@ module Stripe
sig { returns(T.nilable(T.any(Integer, String))) }
attr_accessor :trial_end
sig {
- params(add_invoice_items: T.nilable(T::Array[::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::BillingThresholds))), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), description: T.nilable(T.nilable(String)), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Discount]))), duration: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Duration), end_date: T.nilable(T.any(Integer, String)), invoice_settings: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::InvoiceSettings), items: T::Array[::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Item], iterations: T.nilable(Integer), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), proration_behavior: T.nilable(String), start_date: T.nilable(T.any(Integer, String)), transfer_data: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::TransferData), trial: T.nilable(T::Boolean), trial_end: T.nilable(T.any(Integer, String))).void
+ params(add_invoice_items: T.nilable(T::Array[::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::BillingThresholds)), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Discount])), duration: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Duration), end_date: T.nilable(T.any(Integer, String)), invoice_settings: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::InvoiceSettings), items: T::Array[::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Item], iterations: T.nilable(Integer), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), proration_behavior: T.nilable(String), start_date: T.nilable(T.any(Integer, String)), transfer_data: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::TransferData), trial: T.nilable(T::Boolean), trial_end: T.nilable(T.any(Integer, String))).void
}
def initialize(
add_invoice_items: nil,
@@ -2721,7 +2721,7 @@ module Stripe
end
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::SubscriptionDetails::Item::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::SubscriptionDetails::Item::BillingThresholds)))
}
attr_accessor :billing_thresholds
# Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
@@ -2732,14 +2732,14 @@ module Stripe
attr_accessor :deleted
# The coupons to redeem into discounts for the subscription item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::SubscriptionDetails::Item::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::SubscriptionDetails::Item::Discount])))
}
attr_accessor :discounts
# Subscription item to update.
sig { returns(T.nilable(String)) }
attr_accessor :id
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Plan ID for this item, as a string.
sig { returns(T.nilable(String)) }
@@ -2756,10 +2756,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::SubscriptionDetails::Item::BillingThresholds))), clear_usage: T.nilable(T::Boolean), deleted: T.nilable(T::Boolean), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::SubscriptionDetails::Item::Discount]))), id: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::SubscriptionDetails::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(billing_thresholds: T.nilable(T.any(String, ::Stripe::InvoiceService::CreatePreviewParams::SubscriptionDetails::Item::BillingThresholds)), clear_usage: T.nilable(T::Boolean), deleted: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::SubscriptionDetails::Item::Discount])), id: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::SubscriptionDetails::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
billing_thresholds: nil,
@@ -2784,7 +2784,7 @@ module Stripe
}
attr_accessor :billing_mode
# A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
- sig { returns(T.nilable(T.nilable(T.any(String, T.any(Integer, String))))) }
+ sig { returns(T.nilable(T.any(String, T.any(Integer, String)))) }
attr_accessor :cancel_at
# Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`.
sig { returns(T.nilable(T::Boolean)) }
@@ -2793,7 +2793,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :cancel_now
# If provided, the invoice returned will preview updating or creating a subscription with these default tax rates. The default tax rates will apply to any line item that does not have `tax_rates` set.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_tax_rates
# A list of up to 20 subscription items, each with an attached price.
sig {
@@ -2816,7 +2816,7 @@ module Stripe
sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :trial_end
sig {
- params(billing_cycle_anchor: T.nilable(T.any(String, Integer)), billing_mode: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::SubscriptionDetails::BillingMode), cancel_at: T.nilable(T.nilable(T.any(String, T.any(Integer, String)))), cancel_at_period_end: T.nilable(T::Boolean), cancel_now: T.nilable(T::Boolean), default_tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), items: T.nilable(T::Array[::Stripe::InvoiceService::CreatePreviewParams::SubscriptionDetails::Item]), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), resume_at: T.nilable(String), start_date: T.nilable(Integer), trial_end: T.nilable(T.any(String, Integer))).void
+ params(billing_cycle_anchor: T.nilable(T.any(String, Integer)), billing_mode: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::SubscriptionDetails::BillingMode), cancel_at: T.nilable(T.any(String, T.any(Integer, String))), cancel_at_period_end: T.nilable(T::Boolean), cancel_now: T.nilable(T::Boolean), default_tax_rates: T.nilable(T.any(String, T::Array[String])), items: T.nilable(T::Array[::Stripe::InvoiceService::CreatePreviewParams::SubscriptionDetails::Item]), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), resume_at: T.nilable(String), start_date: T.nilable(Integer), trial_end: T.nilable(T.any(String, Integer))).void
}
def initialize(
billing_cycle_anchor: nil,
@@ -2847,7 +2847,7 @@ module Stripe
attr_accessor :customer_details
# The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the subscription or customer. This works for both coupons directly applied to an invoice and coupons applied to a subscription. Pass an empty string to avoid inheriting any discounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::Discount])))
}
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
@@ -2862,7 +2862,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::InvoiceService::CreatePreviewParams::Issuer)) }
attr_accessor :issuer
# The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :on_behalf_of
# Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified.
sig { returns(T.nilable(String)) }
@@ -2880,7 +2880,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::InvoiceService::CreatePreviewParams::SubscriptionDetails)) }
attr_accessor :subscription_details
sig {
- params(automatic_tax: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::AutomaticTax), currency: T.nilable(String), customer: T.nilable(String), customer_details: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::CustomerDetails), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::Discount]))), expand: T.nilable(T::Array[String]), invoice_items: T.nilable(T::Array[::Stripe::InvoiceService::CreatePreviewParams::InvoiceItem]), issuer: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::Issuer), on_behalf_of: T.nilable(T.nilable(String)), preview_mode: T.nilable(String), schedule: T.nilable(String), schedule_details: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails), subscription: T.nilable(String), subscription_details: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::SubscriptionDetails)).void
+ params(automatic_tax: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::AutomaticTax), currency: T.nilable(String), customer: T.nilable(String), customer_details: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::CustomerDetails), discounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceService::CreatePreviewParams::Discount])), expand: T.nilable(T::Array[String]), invoice_items: T.nilable(T::Array[::Stripe::InvoiceService::CreatePreviewParams::InvoiceItem]), issuer: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::Issuer), on_behalf_of: T.nilable(String), preview_mode: T.nilable(String), schedule: T.nilable(String), schedule_details: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails), subscription: T.nilable(String), subscription_details: T.nilable(::Stripe::InvoiceService::CreatePreviewParams::SubscriptionDetails)).void
}
def initialize(
automatic_tax: nil,
diff --git a/rbi/stripe/services/issuing/authorization_service.rbi b/rbi/stripe/services/issuing/authorization_service.rbi
index 4ca654f7e..76ee24f2c 100644
--- a/rbi/stripe/services/issuing/authorization_service.rbi
+++ b/rbi/stripe/services/issuing/authorization_service.rbi
@@ -76,10 +76,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, metadata: nil); end
end
@@ -91,10 +91,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(amount: nil, expand: nil, metadata: nil); end
end
@@ -103,10 +103,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/services/issuing/card_service.rbi b/rbi/stripe/services/issuing/card_service.rbi
index 8119d112c..5b32e0ce6 100644
--- a/rbi/stripe/services/issuing/card_service.rbi
+++ b/rbi/stripe/services/issuing/card_service.rbi
@@ -248,7 +248,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :replacement_reason
# The second line to print on the card. Max length: 24 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :second_line
# The address where the card will be shipped.
sig { returns(T.nilable(::Stripe::Issuing::CardService::CreateParams::Shipping)) }
@@ -263,7 +263,7 @@ module Stripe
sig { returns(String) }
attr_accessor :type
sig {
- params(cardholder: T.nilable(String), currency: String, expand: T.nilable(T::Array[String]), financial_account: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), personalization_design: T.nilable(String), pin: T.nilable(::Stripe::Issuing::CardService::CreateParams::Pin), replacement_for: T.nilable(String), replacement_reason: T.nilable(String), second_line: T.nilable(T.nilable(String)), shipping: T.nilable(::Stripe::Issuing::CardService::CreateParams::Shipping), spending_controls: T.nilable(::Stripe::Issuing::CardService::CreateParams::SpendingControls), status: T.nilable(String), type: String).void
+ params(cardholder: T.nilable(String), currency: String, expand: T.nilable(T::Array[String]), financial_account: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), personalization_design: T.nilable(String), pin: T.nilable(::Stripe::Issuing::CardService::CreateParams::Pin), replacement_for: T.nilable(String), replacement_reason: T.nilable(String), second_line: T.nilable(String), shipping: T.nilable(::Stripe::Issuing::CardService::CreateParams::Shipping), spending_controls: T.nilable(::Stripe::Issuing::CardService::CreateParams::SpendingControls), status: T.nilable(String), type: String).void
}
def initialize(
cardholder: nil,
@@ -436,7 +436,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Attribute for param field personalization_design
sig { returns(T.nilable(String)) }
@@ -454,7 +454,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :status
sig {
- params(cancellation_reason: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), personalization_design: T.nilable(String), pin: T.nilable(::Stripe::Issuing::CardService::UpdateParams::Pin), shipping: T.nilable(::Stripe::Issuing::CardService::UpdateParams::Shipping), spending_controls: T.nilable(::Stripe::Issuing::CardService::UpdateParams::SpendingControls), status: T.nilable(String)).void
+ params(cancellation_reason: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), personalization_design: T.nilable(String), pin: T.nilable(::Stripe::Issuing::CardService::UpdateParams::Pin), shipping: T.nilable(::Stripe::Issuing::CardService::UpdateParams::Shipping), spending_controls: T.nilable(::Stripe::Issuing::CardService::UpdateParams::SpendingControls), status: T.nilable(String)).void
}
def initialize(
cancellation_reason: nil,
diff --git a/rbi/stripe/services/issuing/cardholder_service.rbi b/rbi/stripe/services/issuing/cardholder_service.rbi
index b5fdfc8ed..9e7607dc0 100644
--- a/rbi/stripe/services/issuing/cardholder_service.rbi
+++ b/rbi/stripe/services/issuing/cardholder_service.rbi
@@ -126,10 +126,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :ip
# The user agent of the browser from which the cardholder accepted the Authorized User Terms.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :user_agent
sig {
- params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
}
def initialize(date: nil, ip: nil, user_agent: nil); end
end
@@ -379,10 +379,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :ip
# The user agent of the browser from which the cardholder accepted the Authorized User Terms.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :user_agent
sig {
- params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
}
def initialize(date: nil, ip: nil, user_agent: nil); end
end
diff --git a/rbi/stripe/services/issuing/dispute_service.rbi b/rbi/stripe/services/issuing/dispute_service.rbi
index 49db78856..ff8ccf465 100644
--- a/rbi/stripe/services/issuing/dispute_service.rbi
+++ b/rbi/stripe/services/issuing/dispute_service.rbi
@@ -64,37 +64,37 @@ module Stripe
class Evidence < Stripe::RequestParams
class Canceled < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Date when order was canceled.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :canceled_at
# Whether the cardholder was provided with a cancellation policy.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Boolean)))) }
+ sig { returns(T.nilable(T.any(String, T::Boolean))) }
attr_accessor :cancellation_policy_provided
# Reason for canceling the order.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :cancellation_reason
# Date when the cardholder expected to receive the product.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expected_at
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Description of the merchandise or service that was purchased.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# Whether the product was a merchandise or service.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :product_type
# Result of cardholder's attempt to return the product.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :return_status
# Date when the product was returned or attempted to be returned.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :returned_at
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), canceled_at: T.nilable(T.nilable(T.any(String, Integer))), cancellation_policy_provided: T.nilable(T.nilable(T.any(String, T::Boolean))), cancellation_reason: T.nilable(T.nilable(String)), expected_at: T.nilable(T.nilable(T.any(String, Integer))), explanation: T.nilable(T.nilable(String)), product_description: T.nilable(T.nilable(String)), product_type: T.nilable(T.nilable(T.any(String, String))), return_status: T.nilable(T.nilable(T.any(String, String))), returned_at: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(additional_documentation: T.nilable(String), canceled_at: T.nilable(T.any(String, Integer)), cancellation_policy_provided: T.nilable(T.any(String, T::Boolean)), cancellation_reason: T.nilable(String), expected_at: T.nilable(T.any(String, Integer)), explanation: T.nilable(String), product_description: T.nilable(String), product_type: T.nilable(T.any(String, String)), return_status: T.nilable(T.any(String, String)), returned_at: T.nilable(T.any(String, Integer))).void
}
def initialize(
additional_documentation: nil,
@@ -111,25 +111,25 @@ module Stripe
end
class Duplicate < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the card statement showing that the product had already been paid for.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :card_statement
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the receipt showing that the product had been paid for in cash.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :cash_receipt
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Image of the front and back of the check that was used to pay for the product.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :check_image
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Transaction (e.g., ipi_...) that the disputed transaction is a duplicate of. Of the two or more transactions that are copies of each other, this is original undisputed one.
sig { returns(T.nilable(String)) }
attr_accessor :original_transaction
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), card_statement: T.nilable(T.nilable(String)), cash_receipt: T.nilable(T.nilable(String)), check_image: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String)), original_transaction: T.nilable(String)).void
+ params(additional_documentation: T.nilable(String), card_statement: T.nilable(String), cash_receipt: T.nilable(String), check_image: T.nilable(String), explanation: T.nilable(String), original_transaction: T.nilable(String)).void
}
def initialize(
additional_documentation: nil,
@@ -142,37 +142,37 @@ module Stripe
end
class Fraudulent < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String))).void
+ params(additional_documentation: T.nilable(String), explanation: T.nilable(String)).void
}
def initialize(additional_documentation: nil, explanation: nil); end
end
class MerchandiseNotAsDescribed < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Date when the product was received.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :received_at
# Description of the cardholder's attempt to return the product.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :return_description
# Result of cardholder's attempt to return the product.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :return_status
# Date when the product was returned or attempted to be returned.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :returned_at
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String)), received_at: T.nilable(T.nilable(T.any(String, Integer))), return_description: T.nilable(T.nilable(String)), return_status: T.nilable(T.nilable(T.any(String, String))), returned_at: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(additional_documentation: T.nilable(String), explanation: T.nilable(String), received_at: T.nilable(T.any(String, Integer)), return_description: T.nilable(String), return_status: T.nilable(T.any(String, String)), returned_at: T.nilable(T.any(String, Integer))).void
}
def initialize(
additional_documentation: nil,
@@ -185,34 +185,34 @@ module Stripe
end
class NoValidAuthorization < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String))).void
+ params(additional_documentation: T.nilable(String), explanation: T.nilable(String)).void
}
def initialize(additional_documentation: nil, explanation: nil); end
end
class NotReceived < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Date when the cardholder expected to receive the product.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expected_at
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Description of the merchandise or service that was purchased.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# Whether the product was a merchandise or service.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :product_type
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), expected_at: T.nilable(T.nilable(T.any(String, Integer))), explanation: T.nilable(T.nilable(String)), product_description: T.nilable(T.nilable(String)), product_type: T.nilable(T.nilable(T.any(String, String)))).void
+ params(additional_documentation: T.nilable(String), expected_at: T.nilable(T.any(String, Integer)), explanation: T.nilable(String), product_description: T.nilable(String), product_type: T.nilable(T.any(String, String))).void
}
def initialize(
additional_documentation: nil,
@@ -224,19 +224,19 @@ module Stripe
end
class Other < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Description of the merchandise or service that was purchased.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# Whether the product was a merchandise or service.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :product_type
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String)), product_description: T.nilable(T.nilable(String)), product_type: T.nilable(T.nilable(T.any(String, String)))).void
+ params(additional_documentation: T.nilable(String), explanation: T.nilable(String), product_description: T.nilable(String), product_type: T.nilable(T.any(String, String))).void
}
def initialize(
additional_documentation: nil,
@@ -247,22 +247,22 @@ module Stripe
end
class ServiceNotAsDescribed < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Date when order was canceled.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :canceled_at
# Reason for canceling the order.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :cancellation_reason
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Date when the product was received.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :received_at
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), canceled_at: T.nilable(T.nilable(T.any(String, Integer))), cancellation_reason: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String)), received_at: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(additional_documentation: T.nilable(String), canceled_at: T.nilable(T.any(String, Integer)), cancellation_reason: T.nilable(String), explanation: T.nilable(String), received_at: T.nilable(T.any(String, Integer))).void
}
def initialize(
additional_documentation: nil,
@@ -274,37 +274,37 @@ module Stripe
end
# Evidence provided when `reason` is 'canceled'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::Canceled))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::Canceled)))
}
attr_accessor :canceled
# Evidence provided when `reason` is 'duplicate'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::Duplicate))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::Duplicate)))
}
attr_accessor :duplicate
# Evidence provided when `reason` is 'fraudulent'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::Fraudulent))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::Fraudulent)))
}
attr_accessor :fraudulent
# Evidence provided when `reason` is 'merchandise_not_as_described'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::MerchandiseNotAsDescribed))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::MerchandiseNotAsDescribed)))
}
attr_accessor :merchandise_not_as_described
# Evidence provided when `reason` is 'no_valid_authorization'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::NoValidAuthorization))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::NoValidAuthorization)))
}
attr_accessor :no_valid_authorization
# Evidence provided when `reason` is 'not_received'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::NotReceived))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::NotReceived)))
}
attr_accessor :not_received
# Evidence provided when `reason` is 'other'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::Other))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::Other)))
}
attr_accessor :other
# The reason for filing the dispute. The evidence should be submitted in the field of the same name.
@@ -312,11 +312,11 @@ module Stripe
attr_accessor :reason
# Evidence provided when `reason` is 'service_not_as_described'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::ServiceNotAsDescribed))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::ServiceNotAsDescribed)))
}
attr_accessor :service_not_as_described
sig {
- params(canceled: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::Canceled))), duplicate: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::Duplicate))), fraudulent: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::Fraudulent))), merchandise_not_as_described: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::MerchandiseNotAsDescribed))), no_valid_authorization: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::NoValidAuthorization))), not_received: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::NotReceived))), other: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::Other))), reason: T.nilable(String), service_not_as_described: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::ServiceNotAsDescribed)))).void
+ params(canceled: T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::Canceled)), duplicate: T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::Duplicate)), fraudulent: T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::Fraudulent)), merchandise_not_as_described: T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::MerchandiseNotAsDescribed)), no_valid_authorization: T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::NoValidAuthorization)), not_received: T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::NotReceived)), other: T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::Other)), reason: T.nilable(String), service_not_as_described: T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::CreateParams::Evidence::ServiceNotAsDescribed))).void
}
def initialize(
canceled: nil,
@@ -378,37 +378,37 @@ module Stripe
class Evidence < Stripe::RequestParams
class Canceled < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Date when order was canceled.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :canceled_at
# Whether the cardholder was provided with a cancellation policy.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Boolean)))) }
+ sig { returns(T.nilable(T.any(String, T::Boolean))) }
attr_accessor :cancellation_policy_provided
# Reason for canceling the order.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :cancellation_reason
# Date when the cardholder expected to receive the product.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expected_at
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Description of the merchandise or service that was purchased.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# Whether the product was a merchandise or service.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :product_type
# Result of cardholder's attempt to return the product.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :return_status
# Date when the product was returned or attempted to be returned.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :returned_at
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), canceled_at: T.nilable(T.nilable(T.any(String, Integer))), cancellation_policy_provided: T.nilable(T.nilable(T.any(String, T::Boolean))), cancellation_reason: T.nilable(T.nilable(String)), expected_at: T.nilable(T.nilable(T.any(String, Integer))), explanation: T.nilable(T.nilable(String)), product_description: T.nilable(T.nilable(String)), product_type: T.nilable(T.nilable(T.any(String, String))), return_status: T.nilable(T.nilable(T.any(String, String))), returned_at: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(additional_documentation: T.nilable(String), canceled_at: T.nilable(T.any(String, Integer)), cancellation_policy_provided: T.nilable(T.any(String, T::Boolean)), cancellation_reason: T.nilable(String), expected_at: T.nilable(T.any(String, Integer)), explanation: T.nilable(String), product_description: T.nilable(String), product_type: T.nilable(T.any(String, String)), return_status: T.nilable(T.any(String, String)), returned_at: T.nilable(T.any(String, Integer))).void
}
def initialize(
additional_documentation: nil,
@@ -425,25 +425,25 @@ module Stripe
end
class Duplicate < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the card statement showing that the product had already been paid for.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :card_statement
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the receipt showing that the product had been paid for in cash.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :cash_receipt
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Image of the front and back of the check that was used to pay for the product.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :check_image
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Transaction (e.g., ipi_...) that the disputed transaction is a duplicate of. Of the two or more transactions that are copies of each other, this is original undisputed one.
sig { returns(T.nilable(String)) }
attr_accessor :original_transaction
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), card_statement: T.nilable(T.nilable(String)), cash_receipt: T.nilable(T.nilable(String)), check_image: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String)), original_transaction: T.nilable(String)).void
+ params(additional_documentation: T.nilable(String), card_statement: T.nilable(String), cash_receipt: T.nilable(String), check_image: T.nilable(String), explanation: T.nilable(String), original_transaction: T.nilable(String)).void
}
def initialize(
additional_documentation: nil,
@@ -456,37 +456,37 @@ module Stripe
end
class Fraudulent < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String))).void
+ params(additional_documentation: T.nilable(String), explanation: T.nilable(String)).void
}
def initialize(additional_documentation: nil, explanation: nil); end
end
class MerchandiseNotAsDescribed < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Date when the product was received.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :received_at
# Description of the cardholder's attempt to return the product.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :return_description
# Result of cardholder's attempt to return the product.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :return_status
# Date when the product was returned or attempted to be returned.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :returned_at
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String)), received_at: T.nilable(T.nilable(T.any(String, Integer))), return_description: T.nilable(T.nilable(String)), return_status: T.nilable(T.nilable(T.any(String, String))), returned_at: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(additional_documentation: T.nilable(String), explanation: T.nilable(String), received_at: T.nilable(T.any(String, Integer)), return_description: T.nilable(String), return_status: T.nilable(T.any(String, String)), returned_at: T.nilable(T.any(String, Integer))).void
}
def initialize(
additional_documentation: nil,
@@ -499,34 +499,34 @@ module Stripe
end
class NoValidAuthorization < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String))).void
+ params(additional_documentation: T.nilable(String), explanation: T.nilable(String)).void
}
def initialize(additional_documentation: nil, explanation: nil); end
end
class NotReceived < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Date when the cardholder expected to receive the product.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expected_at
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Description of the merchandise or service that was purchased.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# Whether the product was a merchandise or service.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :product_type
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), expected_at: T.nilable(T.nilable(T.any(String, Integer))), explanation: T.nilable(T.nilable(String)), product_description: T.nilable(T.nilable(String)), product_type: T.nilable(T.nilable(T.any(String, String)))).void
+ params(additional_documentation: T.nilable(String), expected_at: T.nilable(T.any(String, Integer)), explanation: T.nilable(String), product_description: T.nilable(String), product_type: T.nilable(T.any(String, String))).void
}
def initialize(
additional_documentation: nil,
@@ -538,19 +538,19 @@ module Stripe
end
class Other < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Description of the merchandise or service that was purchased.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# Whether the product was a merchandise or service.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :product_type
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String)), product_description: T.nilable(T.nilable(String)), product_type: T.nilable(T.nilable(T.any(String, String)))).void
+ params(additional_documentation: T.nilable(String), explanation: T.nilable(String), product_description: T.nilable(String), product_type: T.nilable(T.any(String, String))).void
}
def initialize(
additional_documentation: nil,
@@ -561,22 +561,22 @@ module Stripe
end
class ServiceNotAsDescribed < Stripe::RequestParams
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :additional_documentation
# Date when order was canceled.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :canceled_at
# Reason for canceling the order.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :cancellation_reason
# Explanation of why the cardholder is disputing this transaction.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :explanation
# Date when the product was received.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :received_at
sig {
- params(additional_documentation: T.nilable(T.nilable(String)), canceled_at: T.nilable(T.nilable(T.any(String, Integer))), cancellation_reason: T.nilable(T.nilable(String)), explanation: T.nilable(T.nilable(String)), received_at: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(additional_documentation: T.nilable(String), canceled_at: T.nilable(T.any(String, Integer)), cancellation_reason: T.nilable(String), explanation: T.nilable(String), received_at: T.nilable(T.any(String, Integer))).void
}
def initialize(
additional_documentation: nil,
@@ -588,37 +588,37 @@ module Stripe
end
# Evidence provided when `reason` is 'canceled'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::Canceled))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::Canceled)))
}
attr_accessor :canceled
# Evidence provided when `reason` is 'duplicate'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::Duplicate))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::Duplicate)))
}
attr_accessor :duplicate
# Evidence provided when `reason` is 'fraudulent'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::Fraudulent))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::Fraudulent)))
}
attr_accessor :fraudulent
# Evidence provided when `reason` is 'merchandise_not_as_described'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::MerchandiseNotAsDescribed))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::MerchandiseNotAsDescribed)))
}
attr_accessor :merchandise_not_as_described
# Evidence provided when `reason` is 'no_valid_authorization'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::NoValidAuthorization))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::NoValidAuthorization)))
}
attr_accessor :no_valid_authorization
# Evidence provided when `reason` is 'not_received'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::NotReceived))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::NotReceived)))
}
attr_accessor :not_received
# Evidence provided when `reason` is 'other'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::Other))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::Other)))
}
attr_accessor :other
# The reason for filing the dispute. The evidence should be submitted in the field of the same name.
@@ -626,11 +626,11 @@ module Stripe
attr_accessor :reason
# Evidence provided when `reason` is 'service_not_as_described'.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::ServiceNotAsDescribed))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::ServiceNotAsDescribed)))
}
attr_accessor :service_not_as_described
sig {
- params(canceled: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::Canceled))), duplicate: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::Duplicate))), fraudulent: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::Fraudulent))), merchandise_not_as_described: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::MerchandiseNotAsDescribed))), no_valid_authorization: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::NoValidAuthorization))), not_received: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::NotReceived))), other: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::Other))), reason: T.nilable(String), service_not_as_described: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::ServiceNotAsDescribed)))).void
+ params(canceled: T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::Canceled)), duplicate: T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::Duplicate)), fraudulent: T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::Fraudulent)), merchandise_not_as_described: T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::MerchandiseNotAsDescribed)), no_valid_authorization: T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::NoValidAuthorization)), not_received: T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::NotReceived)), other: T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::Other)), reason: T.nilable(String), service_not_as_described: T.nilable(T.any(String, ::Stripe::Issuing::DisputeService::UpdateParams::Evidence::ServiceNotAsDescribed))).void
}
def initialize(
canceled: nil,
@@ -654,10 +654,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(amount: T.nilable(Integer), evidence: T.nilable(::Stripe::Issuing::DisputeService::UpdateParams::Evidence), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(amount: T.nilable(Integer), evidence: T.nilable(::Stripe::Issuing::DisputeService::UpdateParams::Evidence), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(amount: nil, evidence: nil, expand: nil, metadata: nil); end
end
@@ -666,10 +666,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/services/issuing/personalization_design_service.rbi b/rbi/stripe/services/issuing/personalization_design_service.rbi
index ae13114ff..0ac640c22 100644
--- a/rbi/stripe/services/issuing/personalization_design_service.rbi
+++ b/rbi/stripe/services/issuing/personalization_design_service.rbi
@@ -57,19 +57,19 @@ module Stripe
class CreateParams < Stripe::RequestParams
class CarrierText < Stripe::RequestParams
# The footer body text of the carrier letter.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :footer_body
# The footer title text of the carrier letter.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :footer_title
# The header body text of the carrier letter.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :header_body
# The header title text of the carrier letter.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :header_title
sig {
- params(footer_body: T.nilable(T.nilable(String)), footer_title: T.nilable(T.nilable(String)), header_body: T.nilable(T.nilable(String)), header_title: T.nilable(T.nilable(String))).void
+ params(footer_body: T.nilable(String), footer_title: T.nilable(String), header_body: T.nilable(String), header_title: T.nilable(String)).void
}
def initialize(
footer_body: nil,
@@ -141,19 +141,19 @@ module Stripe
class UpdateParams < Stripe::RequestParams
class CarrierText < Stripe::RequestParams
# The footer body text of the carrier letter.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :footer_body
# The footer title text of the carrier letter.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :footer_title
# The header body text of the carrier letter.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :header_body
# The header title text of the carrier letter.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :header_title
sig {
- params(footer_body: T.nilable(T.nilable(String)), footer_title: T.nilable(T.nilable(String)), header_body: T.nilable(T.nilable(String)), header_title: T.nilable(T.nilable(String))).void
+ params(footer_body: T.nilable(String), footer_title: T.nilable(String), header_body: T.nilable(String), header_title: T.nilable(String)).void
}
def initialize(
footer_body: nil,
@@ -170,24 +170,24 @@ module Stripe
def initialize(is_default: nil); end
end
# The file for the card logo, for use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :card_logo
# Hash containing carrier text, for use with physical bundles that support carrier text.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::PersonalizationDesignService::UpdateParams::CarrierText))))
+ returns(T.nilable(T.any(String, ::Stripe::Issuing::PersonalizationDesignService::UpdateParams::CarrierText)))
}
attr_accessor :carrier_text
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :lookup_key
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
# Friendly display name. Providing an empty string will set the field to null.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# The physical bundle object belonging to this personalization design.
sig { returns(T.nilable(String)) }
@@ -201,7 +201,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :transfer_lookup_key
sig {
- params(card_logo: T.nilable(T.nilable(String)), carrier_text: T.nilable(T.nilable(T.any(String, ::Stripe::Issuing::PersonalizationDesignService::UpdateParams::CarrierText))), expand: T.nilable(T::Array[String]), lookup_key: T.nilable(T.nilable(String)), metadata: T.nilable(T::Hash[String, String]), name: T.nilable(T.nilable(String)), physical_bundle: T.nilable(String), preferences: T.nilable(::Stripe::Issuing::PersonalizationDesignService::UpdateParams::Preferences), transfer_lookup_key: T.nilable(T::Boolean)).void
+ params(card_logo: T.nilable(String), carrier_text: T.nilable(T.any(String, ::Stripe::Issuing::PersonalizationDesignService::UpdateParams::CarrierText)), expand: T.nilable(T::Array[String]), lookup_key: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), name: T.nilable(String), physical_bundle: T.nilable(String), preferences: T.nilable(::Stripe::Issuing::PersonalizationDesignService::UpdateParams::Preferences), transfer_lookup_key: T.nilable(T::Boolean)).void
}
def initialize(
card_logo: nil,
diff --git a/rbi/stripe/services/issuing/transaction_service.rbi b/rbi/stripe/services/issuing/transaction_service.rbi
index aa56fd3a6..9c1f959c0 100644
--- a/rbi/stripe/services/issuing/transaction_service.rbi
+++ b/rbi/stripe/services/issuing/transaction_service.rbi
@@ -76,10 +76,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/services/payment_intent_service.rbi b/rbi/stripe/services/payment_intent_service.rbi
index f1d0e23c2..10c3f70f1 100644
--- a/rbi/stripe/services/payment_intent_service.rbi
+++ b/rbi/stripe/services/payment_intent_service.rbi
@@ -189,23 +189,23 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
sig { returns(T.nilable(String)) }
attr_accessor :tax_id
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
+ params(address: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), tax_id: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
end
@@ -708,7 +708,7 @@ module Stripe
# A URL for custom mandate text to render during confirmation step.
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :custom_mandate_url
# Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
sig { returns(T.nilable(String)) }
@@ -720,7 +720,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transaction_type
sig {
- params(custom_mandate_url: T.nilable(T.nilable(String)), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
+ params(custom_mandate_url: T.nilable(String), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
}
def initialize(
custom_mandate_url: nil,
@@ -743,7 +743,7 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
@@ -752,7 +752,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :verification_method
sig {
- params(mandate_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String), verification_method: T.nilable(String)).void
+ params(mandate_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String), verification_method: T.nilable(String)).void
}
def initialize(
mandate_options: nil,
@@ -767,7 +767,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Preferred language of the Affirm authorization page that the customer is redirected to.
sig { returns(T.nilable(String)) }
@@ -784,7 +784,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String)).void
+ params(capture_method: T.nilable(String), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(capture_method: nil, preferred_locale: nil, setup_future_usage: nil); end
end
@@ -794,7 +794,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes.
# This field differs from the statement descriptor and item name.
@@ -812,7 +812,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), reference: T.nilable(String), setup_future_usage: T.nilable(String)).void
+ params(capture_method: T.nilable(String), reference: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(capture_method: nil, reference: nil, setup_future_usage: nil); end
end
@@ -826,9 +826,9 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
- sig { params(setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void }
+ sig { params(setup_future_usage: T.nilable(T.any(String, String))).void }
def initialize(setup_future_usage: nil); end
end
class Alma < Stripe::RequestParams
@@ -837,9 +837,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class AmazonPay < Stripe::RequestParams
@@ -848,7 +848,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -857,10 +857,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -874,22 +874,22 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(setup_future_usage: nil, target_date: nil); end
end
class BacsDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -906,13 +906,13 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(mandate_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(mandate_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
end
@@ -929,10 +929,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(preferred_language: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(preferred_language: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(preferred_language: nil, setup_future_usage: nil); end
end
@@ -942,9 +942,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class Blik < Stripe::RequestParams
@@ -960,11 +960,9 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
- sig {
- params(code: T.nilable(String), setup_future_usage: T.nilable(T.nilable(String))).void
- }
+ sig { params(code: T.nilable(String), setup_future_usage: T.nilable(String)).void }
def initialize(code: nil, setup_future_usage: nil); end
end
class Boleto < Stripe::RequestParams
@@ -980,10 +978,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(expires_after_days: T.nilable(Integer), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(expires_after_days: T.nilable(Integer), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(expires_after_days: nil, setup_future_usage: nil); end
end
@@ -1013,11 +1011,11 @@ module Stripe
# The selected installment plan to use for this payment attempt.
# This parameter can only be provided during confirmation.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Card::Installments::Plan))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Card::Installments::Plan)))
}
attr_accessor :plan
sig {
- params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Card::Installments::Plan)))).void
+ params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Card::Installments::Plan))).void
}
def initialize(enabled: nil, plan: nil); end
end
@@ -1150,7 +1148,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
sig { returns(T.nilable(String)) }
@@ -1202,13 +1200,13 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_suffix_kana
# Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_suffix_kanji
# If 3D Secure authentication was performed with a third-party provider,
# the authentication details to use for this payment.
@@ -1217,7 +1215,7 @@ module Stripe
}
attr_accessor :three_d_secure
sig {
- params(capture_method: T.nilable(T.nilable(String)), cvc_token: T.nilable(String), installments: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Card::Installments), mandate_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Card::MandateOptions), moto: T.nilable(T::Boolean), network: T.nilable(String), request_extended_authorization: T.nilable(String), request_incremental_authorization: T.nilable(String), request_multicapture: T.nilable(String), request_overcapture: T.nilable(String), request_three_d_secure: T.nilable(String), require_cvc_recollection: T.nilable(T::Boolean), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), statement_descriptor_suffix_kana: T.nilable(T.nilable(String)), statement_descriptor_suffix_kanji: T.nilable(T.nilable(String)), three_d_secure: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure)).void
+ params(capture_method: T.nilable(String), cvc_token: T.nilable(String), installments: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Card::Installments), mandate_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Card::MandateOptions), moto: T.nilable(T::Boolean), network: T.nilable(String), request_extended_authorization: T.nilable(String), request_incremental_authorization: T.nilable(String), request_multicapture: T.nilable(String), request_overcapture: T.nilable(String), request_three_d_secure: T.nilable(String), require_cvc_recollection: T.nilable(T::Boolean), setup_future_usage: T.nilable(T.any(String, String)), statement_descriptor_suffix_kana: T.nilable(String), statement_descriptor_suffix_kanji: T.nilable(String), three_d_secure: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure)).void
}
def initialize(
capture_method: nil,
@@ -1272,7 +1270,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -1283,10 +1281,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -1426,9 +1424,9 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
- sig { params(setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void }
+ sig { params(setup_future_usage: T.nilable(T.any(String, String))).void }
def initialize(setup_future_usage: nil); end
end
class InteracPresent < Stripe::RequestParams; end
@@ -1438,7 +1436,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -1447,10 +1445,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -1526,7 +1524,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# On-demand details if setting up or charging an on-demand payment.
sig {
@@ -1549,11 +1547,11 @@ module Stripe
attr_accessor :setup_future_usage
# Subscription details if setting up or charging a subscription.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna::Subscription]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna::Subscription])))
}
attr_accessor :subscriptions
sig {
- params(capture_method: T.nilable(T.nilable(String)), on_demand: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna::Subscription])))).void
+ params(capture_method: T.nilable(String), on_demand: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna::Subscription]))).void
}
def initialize(
capture_method: nil,
@@ -1565,16 +1563,16 @@ module Stripe
end
class Konbini < Stripe::RequestParams
# An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :confirmation_number
# The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expires_after_days
# The timestamp at which the Konbini payment instructions will expire. Only one of `expires_after_days` or `expires_at` may be set.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expires_at
# A product descriptor of up to 22 characters, which will appear to customers at the convenience store.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -1588,7 +1586,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(confirmation_number: T.nilable(T.nilable(String)), expires_after_days: T.nilable(T.nilable(T.any(String, Integer))), expires_at: T.nilable(T.nilable(T.any(String, Integer))), product_description: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(String)).void
+ params(confirmation_number: T.nilable(String), expires_after_days: T.nilable(T.any(String, Integer)), expires_at: T.nilable(T.any(String, Integer)), product_description: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(
confirmation_number: nil,
@@ -1604,7 +1602,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -1613,10 +1611,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -1626,7 +1624,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# [Deprecated] This is a legacy parameter that no longer has any function.
sig { returns(T.nilable(String)) }
@@ -1640,10 +1638,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), persistent_token: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), persistent_token: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, persistent_token: nil, setup_future_usage: nil); end
end
@@ -1653,7 +1651,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -1667,7 +1665,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(String)).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -1692,7 +1690,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -1701,10 +1699,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -1718,13 +1716,13 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(setup_future_usage: nil, target_date: nil); end
end
@@ -1775,9 +1773,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class Paynow < Stripe::RequestParams
@@ -1797,7 +1795,7 @@ module Stripe
end
class Paypal < Stripe::RequestParams
# Controls when the funds will be captured from the customer's account.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
sig { returns(T.nilable(String)) }
@@ -1817,10 +1815,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), preferred_locale: T.nilable(String), reference: T.nilable(String), risk_correlation_id: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), preferred_locale: T.nilable(String), reference: T.nilable(String), risk_correlation_id: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(
capture_method: nil,
@@ -1874,7 +1872,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -1883,10 +1881,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -1896,9 +1894,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class Satispay < Stripe::RequestParams
@@ -1907,17 +1905,17 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class SepaDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -1934,19 +1932,19 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(mandate_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(mandate_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
end
class Sofort < Stripe::RequestParams
# Language shown to the payer on redirect.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :preferred_language
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -1957,16 +1955,16 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(preferred_language: T.nilable(T.nilable(T.any(String, String))), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(preferred_language: T.nilable(T.any(String, String)), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(preferred_language: nil, setup_future_usage: nil); end
end
class Swish < Stripe::RequestParams
# A reference for this payment to be displayed in the Swish app.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -1979,9 +1977,7 @@ module Stripe
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
- sig {
- params(reference: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(String)).void
- }
+ sig { params(reference: T.nilable(String), setup_future_usage: T.nilable(String)).void }
def initialize(reference: nil, setup_future_usage: nil); end
end
class Twint < Stripe::RequestParams
@@ -2029,9 +2025,9 @@ module Stripe
end
class MandateOptions < Stripe::RequestParams
# The method used to collect offline mandate customer acceptance.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :collection_method
- sig { params(collection_method: T.nilable(T.nilable(String))).void }
+ sig { params(collection_method: T.nilable(String)).void }
def initialize(collection_method: nil); end
end
class Networks < Stripe::RequestParams
@@ -2057,7 +2053,7 @@ module Stripe
}
attr_accessor :networks
# Preferred transaction settlement speed
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :preferred_settlement_speed
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -2068,7 +2064,7 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
@@ -2077,7 +2073,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :verification_method
sig {
- params(financial_connections: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), mandate_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::MandateOptions), networks: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::Networks), preferred_settlement_speed: T.nilable(T.nilable(T.any(String, String))), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String), verification_method: T.nilable(String)).void
+ params(financial_connections: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), mandate_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::MandateOptions), networks: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::Networks), preferred_settlement_speed: T.nilable(T.any(String, String)), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String), verification_method: T.nilable(String)).void
}
def initialize(
financial_connections: nil,
@@ -2129,256 +2125,256 @@ module Stripe
end
# If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AcssDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AcssDebit)))
}
attr_accessor :acss_debit
# If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Affirm))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Affirm)))
}
attr_accessor :affirm
# If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AfterpayClearpay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AfterpayClearpay)))
}
attr_accessor :afterpay_clearpay
# If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Alipay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Alipay)))
}
attr_accessor :alipay
# If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Alma))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Alma)))
}
attr_accessor :alma
# If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AmazonPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AmazonPay)))
}
attr_accessor :amazon_pay
# If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AuBecsDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AuBecsDebit)))
}
attr_accessor :au_becs_debit
# If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::BacsDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::BacsDebit)))
}
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Bancontact))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Bancontact)))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Billie))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Billie)))
}
attr_accessor :billie
# If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Blik))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Blik)))
}
attr_accessor :blik
# If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Boleto))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Boleto)))
}
attr_accessor :boleto
# Configuration for any card payments attempted on this PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Card))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Card)))
}
attr_accessor :card
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::CardPresent))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::CardPresent)))
}
attr_accessor :card_present
# If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Cashapp))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Cashapp)))
}
attr_accessor :cashapp
# If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Crypto))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Crypto)))
}
attr_accessor :crypto
# If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::CustomerBalance))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::CustomerBalance)))
}
attr_accessor :customer_balance
# If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Eps))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Eps)))
}
attr_accessor :eps
# If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Fpx))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Fpx)))
}
attr_accessor :fpx
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Giropay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Giropay)))
}
attr_accessor :giropay
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Grabpay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Grabpay)))
}
attr_accessor :grabpay
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Ideal))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Ideal)))
}
attr_accessor :ideal
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::InteracPresent))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::InteracPresent)))
}
attr_accessor :interac_present
# If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::KakaoPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::KakaoPay)))
}
attr_accessor :kakao_pay
# If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna)))
}
attr_accessor :klarna
# If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Konbini))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Konbini)))
}
attr_accessor :konbini
# If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::KrCard))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::KrCard)))
}
attr_accessor :kr_card
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Link))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Link)))
}
attr_accessor :link
# If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Mobilepay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Mobilepay)))
}
attr_accessor :mobilepay
# If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Multibanco))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Multibanco)))
}
attr_accessor :multibanco
# If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::NaverPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::NaverPay)))
}
attr_accessor :naver_pay
# If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::NzBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::NzBankAccount)))
}
attr_accessor :nz_bank_account
# If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Oxxo))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Oxxo)))
}
attr_accessor :oxxo
# If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::P24))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::P24)))
}
attr_accessor :p24
# If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::PayByBank))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::PayByBank)))
}
attr_accessor :pay_by_bank
# If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Payco))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Payco)))
}
attr_accessor :payco
# If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Paynow))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Paynow)))
}
attr_accessor :paynow
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Paypal))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Paypal)))
}
attr_accessor :paypal
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Pix))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Pix)))
}
attr_accessor :pix
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Promptpay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Promptpay)))
}
attr_accessor :promptpay
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::RevolutPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::RevolutPay)))
}
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SamsungPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SamsungPay)))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Satispay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Satispay)))
}
attr_accessor :satispay
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SepaDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SepaDebit)))
}
attr_accessor :sepa_debit
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Sofort))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Sofort)))
}
attr_accessor :sofort
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Swish))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Swish)))
}
attr_accessor :swish
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Twint))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Twint)))
}
attr_accessor :twint
# If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount)))
}
attr_accessor :us_bank_account
# If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::WechatPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::WechatPay)))
}
attr_accessor :wechat_pay
# If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Zip))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Zip)))
}
attr_accessor :zip
sig {
- params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AcssDebit))), affirm: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Affirm))), afterpay_clearpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AfterpayClearpay))), alipay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Alipay))), alma: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Alma))), amazon_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AmazonPay))), au_becs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AuBecsDebit))), bacs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::BacsDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Bancontact))), billie: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Billie))), blik: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Blik))), boleto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Boleto))), card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Card))), card_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::CardPresent))), cashapp: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Cashapp))), crypto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Crypto))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::CustomerBalance))), eps: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Eps))), fpx: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Fpx))), giropay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Giropay))), grabpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Grabpay))), ideal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Ideal))), interac_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::InteracPresent))), kakao_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::KakaoPay))), klarna: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Konbini))), kr_card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::KrCard))), link: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Link))), mobilepay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Mobilepay))), multibanco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Multibanco))), naver_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::NaverPay))), nz_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::NzBankAccount))), oxxo: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Oxxo))), p24: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::P24))), pay_by_bank: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::PayByBank))), payco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Payco))), paynow: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Paynow))), paypal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Paypal))), pix: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Pix))), promptpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Promptpay))), revolut_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::RevolutPay))), samsung_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SamsungPay))), satispay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Satispay))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SepaDebit))), sofort: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Sofort))), swish: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Swish))), twint: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Twint))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount))), wechat_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::WechatPay))), zip: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Zip)))).void
+ params(acss_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AcssDebit)), affirm: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Affirm)), afterpay_clearpay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AfterpayClearpay)), alipay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Alipay)), alma: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Alma)), amazon_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AmazonPay)), au_becs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AuBecsDebit)), bacs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::BacsDebit)), bancontact: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Bancontact)), billie: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Billie)), blik: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Blik)), boleto: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Boleto)), card: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Card)), card_present: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::CardPresent)), cashapp: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Cashapp)), crypto: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Crypto)), customer_balance: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::CustomerBalance)), eps: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Eps)), fpx: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Fpx)), giropay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Giropay)), grabpay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Grabpay)), ideal: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Ideal)), interac_present: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::InteracPresent)), kakao_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::KakaoPay)), klarna: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Klarna)), konbini: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Konbini)), kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::KrCard)), link: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Link)), mobilepay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Mobilepay)), multibanco: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Multibanco)), naver_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::NaverPay)), nz_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::NzBankAccount)), oxxo: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Oxxo)), p24: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::P24)), pay_by_bank: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::PayByBank)), payco: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Payco)), paynow: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Paynow)), paypal: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Paypal)), pix: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Pix)), promptpay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Promptpay)), revolut_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::RevolutPay)), samsung_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SamsungPay)), satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Satispay)), sepa_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SepaDebit)), sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Sofort)), swish: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Swish)), twint: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Twint)), us_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount)), wechat_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::WechatPay)), zip: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::Zip))).void
}
def initialize(
acss_debit: nil,
@@ -2560,7 +2556,7 @@ module Stripe
attr_accessor :mandate
# This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::MandateData))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::MandateData)))
}
attr_accessor :mandate_data
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -2633,7 +2629,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :use_stripe_sdk
sig {
- params(amount: Integer, application_fee_amount: T.nilable(Integer), automatic_payment_methods: T.nilable(::Stripe::PaymentIntentService::CreateParams::AutomaticPaymentMethods), capture_method: T.nilable(String), confirm: T.nilable(T::Boolean), confirmation_method: T.nilable(String), confirmation_token: T.nilable(String), currency: String, customer: T.nilable(String), description: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::MandateData))), metadata: T.nilable(T::Hash[String, String]), off_session: T.nilable(T.any(T::Boolean, String)), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), setup_future_usage: T.nilable(String), shipping: T.nilable(::Stripe::PaymentIntentService::CreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::CreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void
+ params(amount: Integer, application_fee_amount: T.nilable(Integer), automatic_payment_methods: T.nilable(::Stripe::PaymentIntentService::CreateParams::AutomaticPaymentMethods), capture_method: T.nilable(String), confirm: T.nilable(T::Boolean), confirmation_method: T.nilable(String), confirmation_token: T.nilable(String), currency: String, customer: T.nilable(String), description: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, ::Stripe::PaymentIntentService::CreateParams::MandateData)), metadata: T.nilable(T::Hash[String, String]), off_session: T.nilable(T.any(T::Boolean, String)), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntentService::CreateParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), setup_future_usage: T.nilable(String), shipping: T.nilable(::Stripe::PaymentIntentService::CreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::CreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void
}
def initialize(
amount: nil,
@@ -2758,23 +2754,23 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
sig { returns(T.nilable(String)) }
attr_accessor :tax_id
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
+ params(address: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), tax_id: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
end
@@ -3277,7 +3273,7 @@ module Stripe
# A URL for custom mandate text to render during confirmation step.
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :custom_mandate_url
# Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
sig { returns(T.nilable(String)) }
@@ -3289,7 +3285,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transaction_type
sig {
- params(custom_mandate_url: T.nilable(T.nilable(String)), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
+ params(custom_mandate_url: T.nilable(String), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
}
def initialize(
custom_mandate_url: nil,
@@ -3312,7 +3308,7 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
@@ -3321,7 +3317,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :verification_method
sig {
- params(mandate_options: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AcssDebit::MandateOptions), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String), verification_method: T.nilable(String)).void
+ params(mandate_options: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AcssDebit::MandateOptions), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String), verification_method: T.nilable(String)).void
}
def initialize(
mandate_options: nil,
@@ -3336,7 +3332,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Preferred language of the Affirm authorization page that the customer is redirected to.
sig { returns(T.nilable(String)) }
@@ -3353,7 +3349,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String)).void
+ params(capture_method: T.nilable(String), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(capture_method: nil, preferred_locale: nil, setup_future_usage: nil); end
end
@@ -3363,7 +3359,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes.
# This field differs from the statement descriptor and item name.
@@ -3381,7 +3377,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), reference: T.nilable(String), setup_future_usage: T.nilable(String)).void
+ params(capture_method: T.nilable(String), reference: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(capture_method: nil, reference: nil, setup_future_usage: nil); end
end
@@ -3395,9 +3391,9 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
- sig { params(setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void }
+ sig { params(setup_future_usage: T.nilable(T.any(String, String))).void }
def initialize(setup_future_usage: nil); end
end
class Alma < Stripe::RequestParams
@@ -3406,9 +3402,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class AmazonPay < Stripe::RequestParams
@@ -3417,7 +3413,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -3426,10 +3422,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -3443,22 +3439,22 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(setup_future_usage: nil, target_date: nil); end
end
class BacsDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -3475,13 +3471,13 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(mandate_options: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::BacsDebit::MandateOptions), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(mandate_options: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::BacsDebit::MandateOptions), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
end
@@ -3498,10 +3494,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(preferred_language: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(preferred_language: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(preferred_language: nil, setup_future_usage: nil); end
end
@@ -3511,9 +3507,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class Blik < Stripe::RequestParams
@@ -3529,11 +3525,9 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
- sig {
- params(code: T.nilable(String), setup_future_usage: T.nilable(T.nilable(String))).void
- }
+ sig { params(code: T.nilable(String), setup_future_usage: T.nilable(String)).void }
def initialize(code: nil, setup_future_usage: nil); end
end
class Boleto < Stripe::RequestParams
@@ -3549,10 +3543,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(expires_after_days: T.nilable(Integer), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(expires_after_days: T.nilable(Integer), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(expires_after_days: nil, setup_future_usage: nil); end
end
@@ -3582,11 +3576,11 @@ module Stripe
# The selected installment plan to use for this payment attempt.
# This parameter can only be provided during confirmation.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Card::Installments::Plan))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Card::Installments::Plan)))
}
attr_accessor :plan
sig {
- params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Card::Installments::Plan)))).void
+ params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Card::Installments::Plan))).void
}
def initialize(enabled: nil, plan: nil); end
end
@@ -3719,7 +3713,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
sig { returns(T.nilable(String)) }
@@ -3771,13 +3765,13 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_suffix_kana
# Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_suffix_kanji
# If 3D Secure authentication was performed with a third-party provider,
# the authentication details to use for this payment.
@@ -3786,7 +3780,7 @@ module Stripe
}
attr_accessor :three_d_secure
sig {
- params(capture_method: T.nilable(T.nilable(String)), cvc_token: T.nilable(String), installments: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Card::Installments), mandate_options: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Card::MandateOptions), moto: T.nilable(T::Boolean), network: T.nilable(String), request_extended_authorization: T.nilable(String), request_incremental_authorization: T.nilable(String), request_multicapture: T.nilable(String), request_overcapture: T.nilable(String), request_three_d_secure: T.nilable(String), require_cvc_recollection: T.nilable(T::Boolean), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), statement_descriptor_suffix_kana: T.nilable(T.nilable(String)), statement_descriptor_suffix_kanji: T.nilable(T.nilable(String)), three_d_secure: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure)).void
+ params(capture_method: T.nilable(String), cvc_token: T.nilable(String), installments: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Card::Installments), mandate_options: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Card::MandateOptions), moto: T.nilable(T::Boolean), network: T.nilable(String), request_extended_authorization: T.nilable(String), request_incremental_authorization: T.nilable(String), request_multicapture: T.nilable(String), request_overcapture: T.nilable(String), request_three_d_secure: T.nilable(String), require_cvc_recollection: T.nilable(T::Boolean), setup_future_usage: T.nilable(T.any(String, String)), statement_descriptor_suffix_kana: T.nilable(String), statement_descriptor_suffix_kanji: T.nilable(String), three_d_secure: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure)).void
}
def initialize(
capture_method: nil,
@@ -3841,7 +3835,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -3852,10 +3846,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -3995,9 +3989,9 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
- sig { params(setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void }
+ sig { params(setup_future_usage: T.nilable(T.any(String, String))).void }
def initialize(setup_future_usage: nil); end
end
class InteracPresent < Stripe::RequestParams; end
@@ -4007,7 +4001,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -4016,10 +4010,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -4095,7 +4089,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# On-demand details if setting up or charging an on-demand payment.
sig {
@@ -4118,11 +4112,11 @@ module Stripe
attr_accessor :setup_future_usage
# Subscription details if setting up or charging a subscription.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna::Subscription]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna::Subscription])))
}
attr_accessor :subscriptions
sig {
- params(capture_method: T.nilable(T.nilable(String)), on_demand: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna::Subscription])))).void
+ params(capture_method: T.nilable(String), on_demand: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna::Subscription]))).void
}
def initialize(
capture_method: nil,
@@ -4134,16 +4128,16 @@ module Stripe
end
class Konbini < Stripe::RequestParams
# An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :confirmation_number
# The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expires_after_days
# The timestamp at which the Konbini payment instructions will expire. Only one of `expires_after_days` or `expires_at` may be set.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expires_at
# A product descriptor of up to 22 characters, which will appear to customers at the convenience store.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -4157,7 +4151,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(confirmation_number: T.nilable(T.nilable(String)), expires_after_days: T.nilable(T.nilable(T.any(String, Integer))), expires_at: T.nilable(T.nilable(T.any(String, Integer))), product_description: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(String)).void
+ params(confirmation_number: T.nilable(String), expires_after_days: T.nilable(T.any(String, Integer)), expires_at: T.nilable(T.any(String, Integer)), product_description: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(
confirmation_number: nil,
@@ -4173,7 +4167,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -4182,10 +4176,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -4195,7 +4189,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# [Deprecated] This is a legacy parameter that no longer has any function.
sig { returns(T.nilable(String)) }
@@ -4209,10 +4203,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), persistent_token: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), persistent_token: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, persistent_token: nil, setup_future_usage: nil); end
end
@@ -4222,7 +4216,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -4236,7 +4230,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(String)).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -4261,7 +4255,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -4270,10 +4264,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -4287,13 +4281,13 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(setup_future_usage: nil, target_date: nil); end
end
@@ -4344,9 +4338,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class Paynow < Stripe::RequestParams
@@ -4366,7 +4360,7 @@ module Stripe
end
class Paypal < Stripe::RequestParams
# Controls when the funds will be captured from the customer's account.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
sig { returns(T.nilable(String)) }
@@ -4386,10 +4380,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), preferred_locale: T.nilable(String), reference: T.nilable(String), risk_correlation_id: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), preferred_locale: T.nilable(String), reference: T.nilable(String), risk_correlation_id: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(
capture_method: nil,
@@ -4443,7 +4437,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -4452,10 +4446,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -4465,9 +4459,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class Satispay < Stripe::RequestParams
@@ -4476,17 +4470,17 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class SepaDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -4503,19 +4497,19 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(mandate_options: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SepaDebit::MandateOptions), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(mandate_options: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SepaDebit::MandateOptions), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
end
class Sofort < Stripe::RequestParams
# Language shown to the payer on redirect.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :preferred_language
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -4526,16 +4520,16 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(preferred_language: T.nilable(T.nilable(T.any(String, String))), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(preferred_language: T.nilable(T.any(String, String)), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(preferred_language: nil, setup_future_usage: nil); end
end
class Swish < Stripe::RequestParams
# A reference for this payment to be displayed in the Swish app.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -4548,9 +4542,7 @@ module Stripe
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
- sig {
- params(reference: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(String)).void
- }
+ sig { params(reference: T.nilable(String), setup_future_usage: T.nilable(String)).void }
def initialize(reference: nil, setup_future_usage: nil); end
end
class Twint < Stripe::RequestParams
@@ -4598,9 +4590,9 @@ module Stripe
end
class MandateOptions < Stripe::RequestParams
# The method used to collect offline mandate customer acceptance.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :collection_method
- sig { params(collection_method: T.nilable(T.nilable(String))).void }
+ sig { params(collection_method: T.nilable(String)).void }
def initialize(collection_method: nil); end
end
class Networks < Stripe::RequestParams
@@ -4626,7 +4618,7 @@ module Stripe
}
attr_accessor :networks
# Preferred transaction settlement speed
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :preferred_settlement_speed
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -4637,7 +4629,7 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
@@ -4646,7 +4638,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :verification_method
sig {
- params(financial_connections: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), mandate_options: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::MandateOptions), networks: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::Networks), preferred_settlement_speed: T.nilable(T.nilable(T.any(String, String))), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String), verification_method: T.nilable(String)).void
+ params(financial_connections: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), mandate_options: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::MandateOptions), networks: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::Networks), preferred_settlement_speed: T.nilable(T.any(String, String)), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String), verification_method: T.nilable(String)).void
}
def initialize(
financial_connections: nil,
@@ -4698,256 +4690,256 @@ module Stripe
end
# If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AcssDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AcssDebit)))
}
attr_accessor :acss_debit
# If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Affirm))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Affirm)))
}
attr_accessor :affirm
# If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AfterpayClearpay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AfterpayClearpay)))
}
attr_accessor :afterpay_clearpay
# If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Alipay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Alipay)))
}
attr_accessor :alipay
# If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Alma))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Alma)))
}
attr_accessor :alma
# If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AmazonPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AmazonPay)))
}
attr_accessor :amazon_pay
# If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AuBecsDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AuBecsDebit)))
}
attr_accessor :au_becs_debit
# If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::BacsDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::BacsDebit)))
}
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Bancontact))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Bancontact)))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Billie))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Billie)))
}
attr_accessor :billie
# If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Blik))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Blik)))
}
attr_accessor :blik
# If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Boleto))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Boleto)))
}
attr_accessor :boleto
# Configuration for any card payments attempted on this PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Card))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Card)))
}
attr_accessor :card
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::CardPresent))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::CardPresent)))
}
attr_accessor :card_present
# If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Cashapp))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Cashapp)))
}
attr_accessor :cashapp
# If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Crypto))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Crypto)))
}
attr_accessor :crypto
# If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::CustomerBalance))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::CustomerBalance)))
}
attr_accessor :customer_balance
# If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Eps))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Eps)))
}
attr_accessor :eps
# If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Fpx))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Fpx)))
}
attr_accessor :fpx
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Giropay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Giropay)))
}
attr_accessor :giropay
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Grabpay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Grabpay)))
}
attr_accessor :grabpay
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Ideal))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Ideal)))
}
attr_accessor :ideal
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::InteracPresent))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::InteracPresent)))
}
attr_accessor :interac_present
# If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::KakaoPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::KakaoPay)))
}
attr_accessor :kakao_pay
# If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna)))
}
attr_accessor :klarna
# If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Konbini))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Konbini)))
}
attr_accessor :konbini
# If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::KrCard))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::KrCard)))
}
attr_accessor :kr_card
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Link))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Link)))
}
attr_accessor :link
# If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Mobilepay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Mobilepay)))
}
attr_accessor :mobilepay
# If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Multibanco))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Multibanco)))
}
attr_accessor :multibanco
# If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::NaverPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::NaverPay)))
}
attr_accessor :naver_pay
# If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::NzBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::NzBankAccount)))
}
attr_accessor :nz_bank_account
# If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Oxxo))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Oxxo)))
}
attr_accessor :oxxo
# If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::P24))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::P24)))
}
attr_accessor :p24
# If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::PayByBank))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::PayByBank)))
}
attr_accessor :pay_by_bank
# If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Payco))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Payco)))
}
attr_accessor :payco
# If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Paynow))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Paynow)))
}
attr_accessor :paynow
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Paypal))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Paypal)))
}
attr_accessor :paypal
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Pix))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Pix)))
}
attr_accessor :pix
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Promptpay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Promptpay)))
}
attr_accessor :promptpay
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::RevolutPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::RevolutPay)))
}
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SamsungPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SamsungPay)))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Satispay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Satispay)))
}
attr_accessor :satispay
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SepaDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SepaDebit)))
}
attr_accessor :sepa_debit
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Sofort))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Sofort)))
}
attr_accessor :sofort
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Swish))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Swish)))
}
attr_accessor :swish
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Twint))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Twint)))
}
attr_accessor :twint
# If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount)))
}
attr_accessor :us_bank_account
# If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::WechatPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::WechatPay)))
}
attr_accessor :wechat_pay
# If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Zip))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Zip)))
}
attr_accessor :zip
sig {
- params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AcssDebit))), affirm: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Affirm))), afterpay_clearpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AfterpayClearpay))), alipay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Alipay))), alma: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Alma))), amazon_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AmazonPay))), au_becs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AuBecsDebit))), bacs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::BacsDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Bancontact))), billie: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Billie))), blik: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Blik))), boleto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Boleto))), card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Card))), card_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::CardPresent))), cashapp: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Cashapp))), crypto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Crypto))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::CustomerBalance))), eps: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Eps))), fpx: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Fpx))), giropay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Giropay))), grabpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Grabpay))), ideal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Ideal))), interac_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::InteracPresent))), kakao_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::KakaoPay))), klarna: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Konbini))), kr_card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::KrCard))), link: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Link))), mobilepay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Mobilepay))), multibanco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Multibanco))), naver_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::NaverPay))), nz_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::NzBankAccount))), oxxo: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Oxxo))), p24: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::P24))), pay_by_bank: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::PayByBank))), payco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Payco))), paynow: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Paynow))), paypal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Paypal))), pix: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Pix))), promptpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Promptpay))), revolut_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::RevolutPay))), samsung_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SamsungPay))), satispay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Satispay))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SepaDebit))), sofort: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Sofort))), swish: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Swish))), twint: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Twint))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount))), wechat_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::WechatPay))), zip: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Zip)))).void
+ params(acss_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AcssDebit)), affirm: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Affirm)), afterpay_clearpay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AfterpayClearpay)), alipay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Alipay)), alma: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Alma)), amazon_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AmazonPay)), au_becs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AuBecsDebit)), bacs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::BacsDebit)), bancontact: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Bancontact)), billie: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Billie)), blik: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Blik)), boleto: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Boleto)), card: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Card)), card_present: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::CardPresent)), cashapp: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Cashapp)), crypto: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Crypto)), customer_balance: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::CustomerBalance)), eps: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Eps)), fpx: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Fpx)), giropay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Giropay)), grabpay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Grabpay)), ideal: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Ideal)), interac_present: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::InteracPresent)), kakao_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::KakaoPay)), klarna: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Klarna)), konbini: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Konbini)), kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::KrCard)), link: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Link)), mobilepay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Mobilepay)), multibanco: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Multibanco)), naver_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::NaverPay)), nz_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::NzBankAccount)), oxxo: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Oxxo)), p24: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::P24)), pay_by_bank: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::PayByBank)), payco: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Payco)), paynow: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Paynow)), paypal: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Paypal)), pix: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Pix)), promptpay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Promptpay)), revolut_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::RevolutPay)), samsung_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SamsungPay)), satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Satispay)), sepa_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SepaDebit)), sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Sofort)), swish: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Swish)), twint: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Twint)), us_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount)), wechat_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::WechatPay)), zip: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::Zip))).void
}
def initialize(
acss_debit: nil,
@@ -5065,7 +5057,7 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :amount
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :application_fee_amount
# Controls when the funds will be captured from the customer's account.
sig { returns(T.nilable(String)) }
@@ -5087,7 +5079,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent. To unset this field to null, pass in an empty string.
sig { returns(T.nilable(String)) }
@@ -5107,7 +5099,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :payment_method_types
# Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :receipt_email
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -5118,11 +5110,11 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Shipping information for this PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::Shipping))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::Shipping)))
}
attr_accessor :shipping
# Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
@@ -5140,7 +5132,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transfer_group
sig {
- params(amount: T.nilable(Integer), application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), capture_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::Shipping))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::UpdateParams::TransferData), transfer_group: T.nilable(String)).void
+ params(amount: T.nilable(Integer), application_fee_amount: T.nilable(T.any(String, Integer)), capture_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, ::Stripe::PaymentIntentService::UpdateParams::Shipping)), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::UpdateParams::TransferData), transfer_group: T.nilable(String)).void
}
def initialize(
amount: nil,
@@ -5235,7 +5227,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :final_capture
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
#
@@ -5250,7 +5242,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::PaymentIntentService::CaptureParams::TransferData)) }
attr_accessor :transfer_data
sig {
- params(amount_to_capture: T.nilable(Integer), application_fee_amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), final_capture: T.nilable(T::Boolean), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::CaptureParams::TransferData)).void
+ params(amount_to_capture: T.nilable(Integer), application_fee_amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), final_capture: T.nilable(T::Boolean), metadata: T.nilable(T.any(String, T::Hash[String, String])), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::CaptureParams::TransferData)).void
}
def initialize(
amount_to_capture: nil,
@@ -5385,23 +5377,23 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
sig { returns(T.nilable(String)) }
attr_accessor :tax_id
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
+ params(address: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), tax_id: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
end
@@ -5904,7 +5896,7 @@ module Stripe
# A URL for custom mandate text to render during confirmation step.
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :custom_mandate_url
# Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
sig { returns(T.nilable(String)) }
@@ -5916,7 +5908,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transaction_type
sig {
- params(custom_mandate_url: T.nilable(T.nilable(String)), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
+ params(custom_mandate_url: T.nilable(String), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
}
def initialize(
custom_mandate_url: nil,
@@ -5939,7 +5931,7 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
@@ -5948,7 +5940,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :verification_method
sig {
- params(mandate_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit::MandateOptions), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String), verification_method: T.nilable(String)).void
+ params(mandate_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit::MandateOptions), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String), verification_method: T.nilable(String)).void
}
def initialize(
mandate_options: nil,
@@ -5963,7 +5955,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Preferred language of the Affirm authorization page that the customer is redirected to.
sig { returns(T.nilable(String)) }
@@ -5980,7 +5972,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String)).void
+ params(capture_method: T.nilable(String), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(capture_method: nil, preferred_locale: nil, setup_future_usage: nil); end
end
@@ -5990,7 +5982,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes.
# This field differs from the statement descriptor and item name.
@@ -6008,7 +6000,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), reference: T.nilable(String), setup_future_usage: T.nilable(String)).void
+ params(capture_method: T.nilable(String), reference: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(capture_method: nil, reference: nil, setup_future_usage: nil); end
end
@@ -6022,9 +6014,9 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
- sig { params(setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void }
+ sig { params(setup_future_usage: T.nilable(T.any(String, String))).void }
def initialize(setup_future_usage: nil); end
end
class Alma < Stripe::RequestParams
@@ -6033,9 +6025,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class AmazonPay < Stripe::RequestParams
@@ -6044,7 +6036,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -6053,10 +6045,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -6070,22 +6062,22 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(setup_future_usage: nil, target_date: nil); end
end
class BacsDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -6102,13 +6094,13 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(mandate_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit::MandateOptions), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(mandate_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit::MandateOptions), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
end
@@ -6125,10 +6117,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(preferred_language: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(preferred_language: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(preferred_language: nil, setup_future_usage: nil); end
end
@@ -6138,9 +6130,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class Blik < Stripe::RequestParams
@@ -6156,11 +6148,9 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
- sig {
- params(code: T.nilable(String), setup_future_usage: T.nilable(T.nilable(String))).void
- }
+ sig { params(code: T.nilable(String), setup_future_usage: T.nilable(String)).void }
def initialize(code: nil, setup_future_usage: nil); end
end
class Boleto < Stripe::RequestParams
@@ -6176,10 +6166,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(expires_after_days: T.nilable(Integer), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(expires_after_days: T.nilable(Integer), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(expires_after_days: nil, setup_future_usage: nil); end
end
@@ -6209,11 +6199,11 @@ module Stripe
# The selected installment plan to use for this payment attempt.
# This parameter can only be provided during confirmation.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Card::Installments::Plan))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Card::Installments::Plan)))
}
attr_accessor :plan
sig {
- params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Card::Installments::Plan)))).void
+ params(enabled: T.nilable(T::Boolean), plan: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Card::Installments::Plan))).void
}
def initialize(enabled: nil, plan: nil); end
end
@@ -6346,7 +6336,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
sig { returns(T.nilable(String)) }
@@ -6398,13 +6388,13 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_suffix_kana
# Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_suffix_kanji
# If 3D Secure authentication was performed with a third-party provider,
# the authentication details to use for this payment.
@@ -6413,7 +6403,7 @@ module Stripe
}
attr_accessor :three_d_secure
sig {
- params(capture_method: T.nilable(T.nilable(String)), cvc_token: T.nilable(String), installments: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Card::Installments), mandate_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Card::MandateOptions), moto: T.nilable(T::Boolean), network: T.nilable(String), request_extended_authorization: T.nilable(String), request_incremental_authorization: T.nilable(String), request_multicapture: T.nilable(String), request_overcapture: T.nilable(String), request_three_d_secure: T.nilable(String), require_cvc_recollection: T.nilable(T::Boolean), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), statement_descriptor_suffix_kana: T.nilable(T.nilable(String)), statement_descriptor_suffix_kanji: T.nilable(T.nilable(String)), three_d_secure: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure)).void
+ params(capture_method: T.nilable(String), cvc_token: T.nilable(String), installments: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Card::Installments), mandate_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Card::MandateOptions), moto: T.nilable(T::Boolean), network: T.nilable(String), request_extended_authorization: T.nilable(String), request_incremental_authorization: T.nilable(String), request_multicapture: T.nilable(String), request_overcapture: T.nilable(String), request_three_d_secure: T.nilable(String), require_cvc_recollection: T.nilable(T::Boolean), setup_future_usage: T.nilable(T.any(String, String)), statement_descriptor_suffix_kana: T.nilable(String), statement_descriptor_suffix_kanji: T.nilable(String), three_d_secure: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure)).void
}
def initialize(
capture_method: nil,
@@ -6468,7 +6458,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -6479,10 +6469,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -6622,9 +6612,9 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
- sig { params(setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void }
+ sig { params(setup_future_usage: T.nilable(T.any(String, String))).void }
def initialize(setup_future_usage: nil); end
end
class InteracPresent < Stripe::RequestParams; end
@@ -6634,7 +6624,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -6643,10 +6633,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -6722,7 +6712,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# On-demand details if setting up or charging an on-demand payment.
sig {
@@ -6745,11 +6735,11 @@ module Stripe
attr_accessor :setup_future_usage
# Subscription details if setting up or charging a subscription.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna::Subscription]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna::Subscription])))
}
attr_accessor :subscriptions
sig {
- params(capture_method: T.nilable(T.nilable(String)), on_demand: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna::Subscription])))).void
+ params(capture_method: T.nilable(String), on_demand: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna::Subscription]))).void
}
def initialize(
capture_method: nil,
@@ -6761,16 +6751,16 @@ module Stripe
end
class Konbini < Stripe::RequestParams
# An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :confirmation_number
# The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expires_after_days
# The timestamp at which the Konbini payment instructions will expire. Only one of `expires_after_days` or `expires_at` may be set.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :expires_at
# A product descriptor of up to 22 characters, which will appear to customers at the convenience store.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :product_description
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -6784,7 +6774,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(confirmation_number: T.nilable(T.nilable(String)), expires_after_days: T.nilable(T.nilable(T.any(String, Integer))), expires_at: T.nilable(T.nilable(T.any(String, Integer))), product_description: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(String)).void
+ params(confirmation_number: T.nilable(String), expires_after_days: T.nilable(T.any(String, Integer)), expires_at: T.nilable(T.any(String, Integer)), product_description: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(
confirmation_number: nil,
@@ -6800,7 +6790,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -6809,10 +6799,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -6822,7 +6812,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# [Deprecated] This is a legacy parameter that no longer has any function.
sig { returns(T.nilable(String)) }
@@ -6836,10 +6826,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), persistent_token: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), persistent_token: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, persistent_token: nil, setup_future_usage: nil); end
end
@@ -6849,7 +6839,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -6863,7 +6853,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(String)).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(String)).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -6888,7 +6878,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -6897,10 +6887,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -6914,13 +6904,13 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(setup_future_usage: nil, target_date: nil); end
end
@@ -6971,9 +6961,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class Paynow < Stripe::RequestParams
@@ -6993,7 +6983,7 @@ module Stripe
end
class Paypal < Stripe::RequestParams
# Controls when the funds will be captured from the customer's account.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
sig { returns(T.nilable(String)) }
@@ -7013,10 +7003,10 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), preferred_locale: T.nilable(String), reference: T.nilable(String), risk_correlation_id: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), preferred_locale: T.nilable(String), reference: T.nilable(String), risk_correlation_id: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(
capture_method: nil,
@@ -7070,7 +7060,7 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -7079,10 +7069,10 @@ module Stripe
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(capture_method: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(capture_method: nil, setup_future_usage: nil); end
end
@@ -7092,9 +7082,9 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class Satispay < Stripe::RequestParams
@@ -7103,17 +7093,17 @@ module Stripe
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
#
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :capture_method
- sig { params(capture_method: T.nilable(T.nilable(String))).void }
+ sig { params(capture_method: T.nilable(String)).void }
def initialize(capture_method: nil); end
end
class SepaDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -7130,19 +7120,19 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
attr_accessor :target_date
sig {
- params(mandate_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit::MandateOptions), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String)).void
+ params(mandate_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit::MandateOptions), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String)).void
}
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
end
class Sofort < Stripe::RequestParams
# Language shown to the payer on redirect.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :preferred_language
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -7153,16 +7143,16 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
sig {
- params(preferred_language: T.nilable(T.nilable(T.any(String, String))), setup_future_usage: T.nilable(T.nilable(T.any(String, String)))).void
+ params(preferred_language: T.nilable(T.any(String, String)), setup_future_usage: T.nilable(T.any(String, String))).void
}
def initialize(preferred_language: nil, setup_future_usage: nil); end
end
class Swish < Stripe::RequestParams
# A reference for this payment to be displayed in the Swish app.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -7175,9 +7165,7 @@ module Stripe
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
sig { returns(T.nilable(String)) }
attr_accessor :setup_future_usage
- sig {
- params(reference: T.nilable(T.nilable(String)), setup_future_usage: T.nilable(String)).void
- }
+ sig { params(reference: T.nilable(String), setup_future_usage: T.nilable(String)).void }
def initialize(reference: nil, setup_future_usage: nil); end
end
class Twint < Stripe::RequestParams
@@ -7225,9 +7213,9 @@ module Stripe
end
class MandateOptions < Stripe::RequestParams
# The method used to collect offline mandate customer acceptance.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :collection_method
- sig { params(collection_method: T.nilable(T.nilable(String))).void }
+ sig { params(collection_method: T.nilable(String)).void }
def initialize(collection_method: nil); end
end
class Networks < Stripe::RequestParams
@@ -7253,7 +7241,7 @@ module Stripe
}
attr_accessor :networks
# Preferred transaction settlement speed
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :preferred_settlement_speed
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
@@ -7264,7 +7252,7 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
sig { returns(T.nilable(String)) }
@@ -7273,7 +7261,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :verification_method
sig {
- params(financial_connections: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), mandate_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::MandateOptions), networks: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::Networks), preferred_settlement_speed: T.nilable(T.nilable(T.any(String, String))), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), target_date: T.nilable(String), verification_method: T.nilable(String)).void
+ params(financial_connections: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), mandate_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::MandateOptions), networks: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::Networks), preferred_settlement_speed: T.nilable(T.any(String, String)), setup_future_usage: T.nilable(T.any(String, String)), target_date: T.nilable(String), verification_method: T.nilable(String)).void
}
def initialize(
financial_connections: nil,
@@ -7325,256 +7313,256 @@ module Stripe
end
# If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit)))
}
attr_accessor :acss_debit
# If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Affirm))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Affirm)))
}
attr_accessor :affirm
# If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AfterpayClearpay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AfterpayClearpay)))
}
attr_accessor :afterpay_clearpay
# If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Alipay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Alipay)))
}
attr_accessor :alipay
# If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Alma))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Alma)))
}
attr_accessor :alma
# If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AmazonPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AmazonPay)))
}
attr_accessor :amazon_pay
# If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AuBecsDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AuBecsDebit)))
}
attr_accessor :au_becs_debit
# If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit)))
}
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Bancontact))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Bancontact)))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Billie))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Billie)))
}
attr_accessor :billie
# If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Blik))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Blik)))
}
attr_accessor :blik
# If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Boleto))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Boleto)))
}
attr_accessor :boleto
# Configuration for any card payments attempted on this PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Card))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Card)))
}
attr_accessor :card
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::CardPresent))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::CardPresent)))
}
attr_accessor :card_present
# If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Cashapp))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Cashapp)))
}
attr_accessor :cashapp
# If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Crypto))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Crypto)))
}
attr_accessor :crypto
# If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::CustomerBalance))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::CustomerBalance)))
}
attr_accessor :customer_balance
# If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Eps))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Eps)))
}
attr_accessor :eps
# If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Fpx))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Fpx)))
}
attr_accessor :fpx
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Giropay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Giropay)))
}
attr_accessor :giropay
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Grabpay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Grabpay)))
}
attr_accessor :grabpay
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Ideal))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Ideal)))
}
attr_accessor :ideal
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::InteracPresent))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::InteracPresent)))
}
attr_accessor :interac_present
# If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::KakaoPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::KakaoPay)))
}
attr_accessor :kakao_pay
# If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna)))
}
attr_accessor :klarna
# If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Konbini))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Konbini)))
}
attr_accessor :konbini
# If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::KrCard))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::KrCard)))
}
attr_accessor :kr_card
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Link))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Link)))
}
attr_accessor :link
# If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Mobilepay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Mobilepay)))
}
attr_accessor :mobilepay
# If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Multibanco))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Multibanco)))
}
attr_accessor :multibanco
# If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::NaverPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::NaverPay)))
}
attr_accessor :naver_pay
# If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::NzBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::NzBankAccount)))
}
attr_accessor :nz_bank_account
# If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Oxxo))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Oxxo)))
}
attr_accessor :oxxo
# If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::P24))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::P24)))
}
attr_accessor :p24
# If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::PayByBank))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::PayByBank)))
}
attr_accessor :pay_by_bank
# If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Payco))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Payco)))
}
attr_accessor :payco
# If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Paynow))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Paynow)))
}
attr_accessor :paynow
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Paypal))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Paypal)))
}
attr_accessor :paypal
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Pix))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Pix)))
}
attr_accessor :pix
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Promptpay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Promptpay)))
}
attr_accessor :promptpay
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::RevolutPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::RevolutPay)))
}
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SamsungPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SamsungPay)))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Satispay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Satispay)))
}
attr_accessor :satispay
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit)))
}
attr_accessor :sepa_debit
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Sofort))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Sofort)))
}
attr_accessor :sofort
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Swish))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Swish)))
}
attr_accessor :swish
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Twint))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Twint)))
}
attr_accessor :twint
# If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount)))
}
attr_accessor :us_bank_account
# If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::WechatPay))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::WechatPay)))
}
attr_accessor :wechat_pay
# If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Zip))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Zip)))
}
attr_accessor :zip
sig {
- params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit))), affirm: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Affirm))), afterpay_clearpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AfterpayClearpay))), alipay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Alipay))), alma: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Alma))), amazon_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AmazonPay))), au_becs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AuBecsDebit))), bacs_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Bancontact))), billie: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Billie))), blik: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Blik))), boleto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Boleto))), card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Card))), card_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::CardPresent))), cashapp: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Cashapp))), crypto: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Crypto))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::CustomerBalance))), eps: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Eps))), fpx: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Fpx))), giropay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Giropay))), grabpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Grabpay))), ideal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Ideal))), interac_present: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::InteracPresent))), kakao_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::KakaoPay))), klarna: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Konbini))), kr_card: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::KrCard))), link: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Link))), mobilepay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Mobilepay))), multibanco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Multibanco))), naver_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::NaverPay))), nz_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::NzBankAccount))), oxxo: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Oxxo))), p24: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::P24))), pay_by_bank: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::PayByBank))), payco: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Payco))), paynow: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Paynow))), paypal: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Paypal))), pix: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Pix))), promptpay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Promptpay))), revolut_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::RevolutPay))), samsung_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SamsungPay))), satispay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Satispay))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit))), sofort: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Sofort))), swish: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Swish))), twint: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Twint))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount))), wechat_pay: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::WechatPay))), zip: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Zip)))).void
+ params(acss_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit)), affirm: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Affirm)), afterpay_clearpay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AfterpayClearpay)), alipay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Alipay)), alma: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Alma)), amazon_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AmazonPay)), au_becs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AuBecsDebit)), bacs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit)), bancontact: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Bancontact)), billie: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Billie)), blik: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Blik)), boleto: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Boleto)), card: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Card)), card_present: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::CardPresent)), cashapp: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Cashapp)), crypto: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Crypto)), customer_balance: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::CustomerBalance)), eps: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Eps)), fpx: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Fpx)), giropay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Giropay)), grabpay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Grabpay)), ideal: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Ideal)), interac_present: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::InteracPresent)), kakao_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::KakaoPay)), klarna: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Klarna)), konbini: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Konbini)), kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::KrCard)), link: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Link)), mobilepay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Mobilepay)), multibanco: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Multibanco)), naver_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::NaverPay)), nz_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::NzBankAccount)), oxxo: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Oxxo)), p24: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::P24)), pay_by_bank: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::PayByBank)), payco: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Payco)), paynow: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Paynow)), paypal: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Paypal)), pix: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Pix)), promptpay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Promptpay)), revolut_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::RevolutPay)), samsung_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SamsungPay)), satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Satispay)), sepa_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit)), sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Sofort)), swish: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Swish)), twint: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Twint)), us_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount)), wechat_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::WechatPay)), zip: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::Zip))).void
}
def initialize(
acss_debit: nil,
@@ -7707,7 +7695,7 @@ module Stripe
attr_accessor :mandate
# Attribute for param field mandate_data
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::MandateData))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::MandateData)))
}
attr_accessor :mandate_data
# Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards).
@@ -7734,7 +7722,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::RadarOptions)) }
attr_accessor :radar_options
# Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :receipt_email
# The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
# If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme.
@@ -7750,18 +7738,18 @@ module Stripe
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
#
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :setup_future_usage
# Shipping information for this PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::Shipping))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::Shipping)))
}
attr_accessor :shipping
# Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :use_stripe_sdk
sig {
- params(capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), mandate: T.nilable(String), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::MandateData))), off_session: T.nilable(T.any(T::Boolean, String)), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::RadarOptions), receipt_email: T.nilable(T.nilable(String)), return_url: T.nilable(String), setup_future_usage: T.nilable(T.nilable(T.any(String, String))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::Shipping))), use_stripe_sdk: T.nilable(T::Boolean)).void
+ params(capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::MandateData)), off_session: T.nilable(T.any(T::Boolean, String)), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(::Stripe::PaymentIntentService::ConfirmParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, ::Stripe::PaymentIntentService::ConfirmParams::Shipping)), use_stripe_sdk: T.nilable(T::Boolean)).void
}
def initialize(
capture_method: nil,
diff --git a/rbi/stripe/services/payment_link_service.rbi b/rbi/stripe/services/payment_link_service.rbi
index 771feb5b5..9bf137c1d 100644
--- a/rbi/stripe/services/payment_link_service.rbi
+++ b/rbi/stripe/services/payment_link_service.rbi
@@ -256,26 +256,26 @@ module Stripe
end
# Custom text that should be displayed after the payment confirmation button.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::CustomText::AfterSubmit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::CustomText::AfterSubmit)))
}
attr_accessor :after_submit
# Custom text that should be displayed alongside shipping address collection.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::CustomText::ShippingAddress))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::CustomText::ShippingAddress)))
}
attr_accessor :shipping_address
# Custom text that should be displayed alongside the payment confirmation button.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::CustomText::Submit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::CustomText::Submit)))
}
attr_accessor :submit
# Custom text that should be displayed in place of the default terms of service agreement text.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::CustomText::TermsOfServiceAcceptance))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::CustomText::TermsOfServiceAcceptance)))
}
attr_accessor :terms_of_service_acceptance
sig {
- params(after_submit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::CustomText::AfterSubmit))), shipping_address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::CustomText::ShippingAddress))), submit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::CustomText::Submit))), terms_of_service_acceptance: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::CustomText::TermsOfServiceAcceptance)))).void
+ params(after_submit: T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::CustomText::AfterSubmit)), shipping_address: T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::CustomText::ShippingAddress)), submit: T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::CustomText::Submit)), terms_of_service_acceptance: T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::CustomText::TermsOfServiceAcceptance))).void
}
def initialize(
after_submit: nil,
@@ -308,22 +308,22 @@ module Stripe
end
class RenderingOptions < Stripe::RequestParams
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :amount_tax_display
# ID of the invoice rendering template to use for this invoice.
sig { returns(T.nilable(String)) }
attr_accessor :template
sig {
- params(amount_tax_display: T.nilable(T.nilable(T.any(String, String))), template: T.nilable(String)).void
+ params(amount_tax_display: T.nilable(T.any(String, String)), template: T.nilable(String)).void
}
def initialize(amount_tax_display: nil, template: nil); end
end
# The account tax IDs associated with the invoice.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# Default custom fields to be displayed on invoices for this customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkService::CreateParams::InvoiceCreation::InvoiceData::CustomField]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkService::CreateParams::InvoiceCreation::InvoiceData::CustomField])))
}
attr_accessor :custom_fields
# An arbitrary string attached to the object. Often useful for displaying to users.
@@ -338,15 +338,15 @@ module Stripe
}
attr_accessor :issuer
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Default options for invoice PDF rendering for this customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions)))
}
attr_accessor :rendering_options
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), custom_fields: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkService::CreateParams::InvoiceCreation::InvoiceData::CustomField]))), description: T.nilable(String), footer: T.nilable(String), issuer: T.nilable(::Stripe::PaymentLinkService::CreateParams::InvoiceCreation::InvoiceData::Issuer), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), rendering_options: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions)))).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkService::CreateParams::InvoiceCreation::InvoiceData::CustomField])), description: T.nilable(String), footer: T.nilable(String), issuer: T.nilable(::Stripe::PaymentLinkService::CreateParams::InvoiceCreation::InvoiceData::Issuer), metadata: T.nilable(T.any(String, T::Hash[String, String])), rendering_options: T.nilable(T.any(String, ::Stripe::PaymentLinkService::CreateParams::InvoiceCreation::InvoiceData::RenderingOptions))).void
}
def initialize(
account_tax_ids: nil,
@@ -1025,26 +1025,26 @@ module Stripe
end
# Custom text that should be displayed after the payment confirmation button.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::CustomText::AfterSubmit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::CustomText::AfterSubmit)))
}
attr_accessor :after_submit
# Custom text that should be displayed alongside shipping address collection.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::CustomText::ShippingAddress))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::CustomText::ShippingAddress)))
}
attr_accessor :shipping_address
# Custom text that should be displayed alongside the payment confirmation button.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::CustomText::Submit))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::CustomText::Submit)))
}
attr_accessor :submit
# Custom text that should be displayed in place of the default terms of service agreement text.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::CustomText::TermsOfServiceAcceptance))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::CustomText::TermsOfServiceAcceptance)))
}
attr_accessor :terms_of_service_acceptance
sig {
- params(after_submit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::CustomText::AfterSubmit))), shipping_address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::CustomText::ShippingAddress))), submit: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::CustomText::Submit))), terms_of_service_acceptance: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::CustomText::TermsOfServiceAcceptance)))).void
+ params(after_submit: T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::CustomText::AfterSubmit)), shipping_address: T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::CustomText::ShippingAddress)), submit: T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::CustomText::Submit)), terms_of_service_acceptance: T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::CustomText::TermsOfServiceAcceptance))).void
}
def initialize(
after_submit: nil,
@@ -1077,22 +1077,22 @@ module Stripe
end
class RenderingOptions < Stripe::RequestParams
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :amount_tax_display
# ID of the invoice rendering template to use for this invoice.
sig { returns(T.nilable(String)) }
attr_accessor :template
sig {
- params(amount_tax_display: T.nilable(T.nilable(T.any(String, String))), template: T.nilable(String)).void
+ params(amount_tax_display: T.nilable(T.any(String, String)), template: T.nilable(String)).void
}
def initialize(amount_tax_display: nil, template: nil); end
end
# The account tax IDs associated with the invoice.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# Default custom fields to be displayed on invoices for this customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkService::UpdateParams::InvoiceCreation::InvoiceData::CustomField]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkService::UpdateParams::InvoiceCreation::InvoiceData::CustomField])))
}
attr_accessor :custom_fields
# An arbitrary string attached to the object. Often useful for displaying to users.
@@ -1107,15 +1107,15 @@ module Stripe
}
attr_accessor :issuer
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Default options for invoice PDF rendering for this customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::InvoiceCreation::InvoiceData::RenderingOptions))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::InvoiceCreation::InvoiceData::RenderingOptions)))
}
attr_accessor :rendering_options
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), custom_fields: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkService::UpdateParams::InvoiceCreation::InvoiceData::CustomField]))), description: T.nilable(String), footer: T.nilable(String), issuer: T.nilable(::Stripe::PaymentLinkService::UpdateParams::InvoiceCreation::InvoiceData::Issuer), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), rendering_options: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::InvoiceCreation::InvoiceData::RenderingOptions)))).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkService::UpdateParams::InvoiceCreation::InvoiceData::CustomField])), description: T.nilable(String), footer: T.nilable(String), issuer: T.nilable(::Stripe::PaymentLinkService::UpdateParams::InvoiceCreation::InvoiceData::Issuer), metadata: T.nilable(T.any(String, T::Hash[String, String])), rendering_options: T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::InvoiceCreation::InvoiceData::RenderingOptions))).void
}
def initialize(
account_tax_ids: nil,
@@ -1174,24 +1174,24 @@ module Stripe
end
class PaymentIntentData < Stripe::RequestParams
# An arbitrary string attached to the object. Often useful for displaying to users.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will declaratively set metadata on [Payment Intents](https://stripe.com/docs/api/payment_intents) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
#
# Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor
# Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor_suffix
# A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers) for details.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :transfer_group
sig {
- params(description: T.nilable(T.nilable(String)), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), statement_descriptor: T.nilable(T.nilable(String)), statement_descriptor_suffix: T.nilable(T.nilable(String)), transfer_group: T.nilable(T.nilable(String))).void
+ params(description: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_group: T.nilable(String)).void
}
def initialize(
description: nil,
@@ -1278,18 +1278,18 @@ module Stripe
}
attr_accessor :invoice_settings
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will declaratively set metadata on [Subscriptions](https://stripe.com/docs/api/subscriptions) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :trial_period_days
# Settings related to subscription trials.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::SubscriptionData::TrialSettings))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::SubscriptionData::TrialSettings)))
}
attr_accessor :trial_settings
sig {
- params(invoice_settings: T.nilable(::Stripe::PaymentLinkService::UpdateParams::SubscriptionData::InvoiceSettings), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), trial_period_days: T.nilable(T.nilable(T.any(String, Integer))), trial_settings: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::SubscriptionData::TrialSettings)))).void
+ params(invoice_settings: T.nilable(::Stripe::PaymentLinkService::UpdateParams::SubscriptionData::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), trial_period_days: T.nilable(T.any(String, Integer)), trial_settings: T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::SubscriptionData::TrialSettings))).void
}
def initialize(
invoice_settings: nil,
@@ -1325,7 +1325,7 @@ module Stripe
attr_accessor :billing_address_collection
# Collect additional information from your customer using custom fields. Up to 3 fields are supported.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkService::UpdateParams::CustomField]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkService::UpdateParams::CustomField])))
}
attr_accessor :custom_fields
# Display additional text for your customers using custom text.
@@ -1338,7 +1338,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# The custom message to be displayed to a customer when a payment link is no longer active.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :inactive_message
# Generate a post-purchase Invoice for one-time payments.
sig { returns(T.nilable(::Stripe::PaymentLinkService::UpdateParams::InvoiceCreation)) }
@@ -1360,7 +1360,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :payment_method_collection
# The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :payment_method_types
# Controls phone number collection settings during checkout.
#
@@ -1369,12 +1369,12 @@ module Stripe
attr_accessor :phone_number_collection
# Settings that restrict the usage of a payment link.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::Restrictions))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::Restrictions)))
}
attr_accessor :restrictions
# Configuration for collecting the customer's shipping address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::ShippingAddressCollection))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::ShippingAddressCollection)))
}
attr_accessor :shipping_address_collection
# Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button. Changing this value will also affect the hostname in the [url](https://stripe.com/docs/api/payment_links/payment_links/object#url) property (example: `donate.stripe.com`).
@@ -1387,7 +1387,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::PaymentLinkService::UpdateParams::TaxIdCollection)) }
attr_accessor :tax_id_collection
sig {
- params(active: T.nilable(T::Boolean), after_completion: T.nilable(::Stripe::PaymentLinkService::UpdateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::PaymentLinkService::UpdateParams::AutomaticTax), billing_address_collection: T.nilable(String), custom_fields: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkService::UpdateParams::CustomField]))), custom_text: T.nilable(::Stripe::PaymentLinkService::UpdateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(T.nilable(String)), invoice_creation: T.nilable(::Stripe::PaymentLinkService::UpdateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::PaymentLinkService::UpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), payment_intent_data: T.nilable(::Stripe::PaymentLinkService::UpdateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T.nilable(T.any(String, T::Array[String]))), phone_number_collection: T.nilable(::Stripe::PaymentLinkService::UpdateParams::PhoneNumberCollection), restrictions: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::Restrictions))), shipping_address_collection: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::ShippingAddressCollection))), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::PaymentLinkService::UpdateParams::SubscriptionData), tax_id_collection: T.nilable(::Stripe::PaymentLinkService::UpdateParams::TaxIdCollection)).void
+ params(active: T.nilable(T::Boolean), after_completion: T.nilable(::Stripe::PaymentLinkService::UpdateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::PaymentLinkService::UpdateParams::AutomaticTax), billing_address_collection: T.nilable(String), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkService::UpdateParams::CustomField])), custom_text: T.nilable(::Stripe::PaymentLinkService::UpdateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(::Stripe::PaymentLinkService::UpdateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::PaymentLinkService::UpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), payment_intent_data: T.nilable(::Stripe::PaymentLinkService::UpdateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T.any(String, T::Array[String])), phone_number_collection: T.nilable(::Stripe::PaymentLinkService::UpdateParams::PhoneNumberCollection), restrictions: T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::Restrictions)), shipping_address_collection: T.nilable(T.any(String, ::Stripe::PaymentLinkService::UpdateParams::ShippingAddressCollection)), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::PaymentLinkService::UpdateParams::SubscriptionData), tax_id_collection: T.nilable(::Stripe::PaymentLinkService::UpdateParams::TaxIdCollection)).void
}
def initialize(
active: nil,
diff --git a/rbi/stripe/services/payment_method_configuration_service.rbi b/rbi/stripe/services/payment_method_configuration_service.rbi
index 2d1caae97..a14734eae 100644
--- a/rbi/stripe/services/payment_method_configuration_service.rbi
+++ b/rbi/stripe/services/payment_method_configuration_service.rbi
@@ -6,7 +6,7 @@ module Stripe
class PaymentMethodConfigurationService < StripeService
class ListParams < Stripe::RequestParams
# The Connect application to filter by.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :application
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
sig { returns(T.nilable(String)) }
@@ -21,7 +21,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :starting_after
sig {
- params(application: T.nilable(T.nilable(String)), ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String)).void
+ params(application: T.nilable(String), ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String)).void
}
def initialize(
application: nil,
diff --git a/rbi/stripe/services/payment_method_service.rbi b/rbi/stripe/services/payment_method_service.rbi
index 50046cff5..191937b2f 100644
--- a/rbi/stripe/services/payment_method_service.rbi
+++ b/rbi/stripe/services/payment_method_service.rbi
@@ -112,23 +112,23 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethodService::CreateParams::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentMethodService::CreateParams::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
sig { returns(T.nilable(String)) }
attr_accessor :tax_id
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethodService::CreateParams::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
+ params(address: T.nilable(T.any(String, ::Stripe::PaymentMethodService::CreateParams::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), tax_id: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
end
@@ -619,32 +619,32 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethodService::UpdateParams::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::PaymentMethodService::UpdateParams::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
sig { returns(T.nilable(String)) }
attr_accessor :tax_id
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethodService::UpdateParams::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
+ params(address: T.nilable(T.any(String, ::Stripe::PaymentMethodService::UpdateParams::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), tax_id: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
end
class Card < Stripe::RequestParams
class Networks < Stripe::RequestParams
# The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :preferred
- sig { params(preferred: T.nilable(T.nilable(T.any(String, String)))).void }
+ sig { params(preferred: T.nilable(T.any(String, String))).void }
def initialize(preferred: nil); end
end
# Two-digit number representing the card's expiration month.
@@ -689,7 +689,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::PaymentMethodService::UpdateParams::Link)) }
attr_accessor :link
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
sig { returns(T.nilable(::Stripe::PaymentMethodService::UpdateParams::PayByBank)) }
@@ -698,7 +698,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::PaymentMethodService::UpdateParams::UsBankAccount)) }
attr_accessor :us_bank_account
sig {
- params(allow_redisplay: T.nilable(String), billing_details: T.nilable(::Stripe::PaymentMethodService::UpdateParams::BillingDetails), card: T.nilable(::Stripe::PaymentMethodService::UpdateParams::Card), expand: T.nilable(T::Array[String]), link: T.nilable(::Stripe::PaymentMethodService::UpdateParams::Link), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), pay_by_bank: T.nilable(::Stripe::PaymentMethodService::UpdateParams::PayByBank), us_bank_account: T.nilable(::Stripe::PaymentMethodService::UpdateParams::UsBankAccount)).void
+ params(allow_redisplay: T.nilable(String), billing_details: T.nilable(::Stripe::PaymentMethodService::UpdateParams::BillingDetails), card: T.nilable(::Stripe::PaymentMethodService::UpdateParams::Card), expand: T.nilable(T::Array[String]), link: T.nilable(::Stripe::PaymentMethodService::UpdateParams::Link), metadata: T.nilable(T.any(String, T::Hash[String, String])), pay_by_bank: T.nilable(::Stripe::PaymentMethodService::UpdateParams::PayByBank), us_bank_account: T.nilable(::Stripe::PaymentMethodService::UpdateParams::UsBankAccount)).void
}
def initialize(
allow_redisplay: nil,
diff --git a/rbi/stripe/services/payout_service.rbi b/rbi/stripe/services/payout_service.rbi
index cf15387e2..3d829d294 100644
--- a/rbi/stripe/services/payout_service.rbi
+++ b/rbi/stripe/services/payout_service.rbi
@@ -134,10 +134,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/services/plan_service.rbi b/rbi/stripe/services/plan_service.rbi
index 2959c73dd..5e4514c74 100644
--- a/rbi/stripe/services/plan_service.rbi
+++ b/rbi/stripe/services/plan_service.rbi
@@ -20,7 +20,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# A brief description of the plan, hidden from customers.
sig { returns(T.nilable(String)) }
@@ -32,7 +32,7 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :trial_period_days
sig {
- params(active: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), nickname: T.nilable(String), product: T.nilable(String), trial_period_days: T.nilable(Integer)).void
+ params(active: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), nickname: T.nilable(String), product: T.nilable(String), trial_period_days: T.nilable(Integer)).void
}
def initialize(
active: nil,
@@ -199,7 +199,7 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :interval_count
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The meter tracking the usage of a metered price
sig { returns(T.nilable(String)) }
@@ -226,7 +226,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :usage_type
sig {
- params(active: T.nilable(T::Boolean), amount: T.nilable(Integer), amount_decimal: T.nilable(String), billing_scheme: T.nilable(String), currency: String, expand: T.nilable(T::Array[String]), id: T.nilable(String), interval: String, interval_count: T.nilable(Integer), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), meter: T.nilable(String), nickname: T.nilable(String), product: T.nilable(T.any(::Stripe::PlanService::CreateParams::Product, String)), tiers: T.nilable(T::Array[::Stripe::PlanService::CreateParams::Tier]), tiers_mode: T.nilable(String), transform_usage: T.nilable(::Stripe::PlanService::CreateParams::TransformUsage), trial_period_days: T.nilable(Integer), usage_type: T.nilable(String)).void
+ params(active: T.nilable(T::Boolean), amount: T.nilable(Integer), amount_decimal: T.nilable(String), billing_scheme: T.nilable(String), currency: String, expand: T.nilable(T::Array[String]), id: T.nilable(String), interval: String, interval_count: T.nilable(Integer), metadata: T.nilable(T.any(String, T::Hash[String, String])), meter: T.nilable(String), nickname: T.nilable(String), product: T.nilable(T.any(::Stripe::PlanService::CreateParams::Product, String)), tiers: T.nilable(T::Array[::Stripe::PlanService::CreateParams::Tier]), tiers_mode: T.nilable(String), transform_usage: T.nilable(::Stripe::PlanService::CreateParams::TransformUsage), trial_period_days: T.nilable(Integer), usage_type: T.nilable(String)).void
}
def initialize(
active: nil,
diff --git a/rbi/stripe/services/price_service.rbi b/rbi/stripe/services/price_service.rbi
index b33f25afe..f92cb384a 100644
--- a/rbi/stripe/services/price_service.rbi
+++ b/rbi/stripe/services/price_service.rbi
@@ -457,7 +457,7 @@ module Stripe
attr_accessor :active
# Prices defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Hash[String, ::Stripe::PriceService::UpdateParams::CurrencyOptions]))))
+ returns(T.nilable(T.any(String, T::Hash[String, ::Stripe::PriceService::UpdateParams::CurrencyOptions])))
}
attr_accessor :currency_options
# Specifies which fields in the response should be expanded.
@@ -467,7 +467,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :lookup_key
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# A brief description of the price, hidden from customers.
sig { returns(T.nilable(String)) }
@@ -479,7 +479,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :transfer_lookup_key
sig {
- params(active: T.nilable(T::Boolean), currency_options: T.nilable(T.nilable(T.any(String, T::Hash[String, ::Stripe::PriceService::UpdateParams::CurrencyOptions]))), expand: T.nilable(T::Array[String]), lookup_key: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), nickname: T.nilable(String), tax_behavior: T.nilable(String), transfer_lookup_key: T.nilable(T::Boolean)).void
+ params(active: T.nilable(T::Boolean), currency_options: T.nilable(T.any(String, T::Hash[String, ::Stripe::PriceService::UpdateParams::CurrencyOptions])), expand: T.nilable(T::Array[String]), lookup_key: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), nickname: T.nilable(String), tax_behavior: T.nilable(String), transfer_lookup_key: T.nilable(T::Boolean)).void
}
def initialize(
active: nil,
diff --git a/rbi/stripe/services/product_service.rbi b/rbi/stripe/services/product_service.rbi
index df26b5684..17a0b1024 100644
--- a/rbi/stripe/services/product_service.rbi
+++ b/rbi/stripe/services/product_service.rbi
@@ -44,28 +44,28 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :default_price
# The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :images
# A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table).
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::ProductService::UpdateParams::MarketingFeature]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::ProductService::UpdateParams::MarketingFeature])))
}
attr_accessor :marketing_features
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The product's name, meant to be displayable to the customer.
sig { returns(T.nilable(String)) }
attr_accessor :name
# The dimensions of this product for shipping purposes.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::ProductService::UpdateParams::PackageDimensions))))
+ returns(T.nilable(T.any(String, ::Stripe::ProductService::UpdateParams::PackageDimensions)))
}
attr_accessor :package_dimensions
# Whether this product is shipped (i.e., physical goods).
@@ -78,16 +78,16 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :statement_descriptor
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :tax_code
# A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. May only be set if `type=service`.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :unit_label
# A URL of a publicly-accessible webpage for this product.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :url
sig {
- params(active: T.nilable(T::Boolean), default_price: T.nilable(String), description: T.nilable(T.nilable(String)), expand: T.nilable(T::Array[String]), images: T.nilable(T.nilable(T.any(String, T::Array[String]))), marketing_features: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::ProductService::UpdateParams::MarketingFeature]))), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), name: T.nilable(String), package_dimensions: T.nilable(T.nilable(T.any(String, ::Stripe::ProductService::UpdateParams::PackageDimensions))), shippable: T.nilable(T::Boolean), statement_descriptor: T.nilable(String), tax_code: T.nilable(T.nilable(String)), unit_label: T.nilable(T.nilable(String)), url: T.nilable(T.nilable(String))).void
+ params(active: T.nilable(T::Boolean), default_price: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), images: T.nilable(T.any(String, T::Array[String])), marketing_features: T.nilable(T.any(String, T::Array[::Stripe::ProductService::UpdateParams::MarketingFeature])), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), package_dimensions: T.nilable(T.any(String, ::Stripe::ProductService::UpdateParams::PackageDimensions)), shippable: T.nilable(T::Boolean), statement_descriptor: T.nilable(String), tax_code: T.nilable(String), unit_label: T.nilable(String), url: T.nilable(String)).void
}
def initialize(
active: nil,
diff --git a/rbi/stripe/services/promotion_code_service.rbi b/rbi/stripe/services/promotion_code_service.rbi
index 97ad15e6f..92dbd0a12 100644
--- a/rbi/stripe/services/promotion_code_service.rbi
+++ b/rbi/stripe/services/promotion_code_service.rbi
@@ -177,13 +177,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Settings that restrict the redemption of the promotion code.
sig { returns(T.nilable(::Stripe::PromotionCodeService::UpdateParams::Restrictions)) }
attr_accessor :restrictions
sig {
- params(active: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), restrictions: T.nilable(::Stripe::PromotionCodeService::UpdateParams::Restrictions)).void
+ params(active: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), restrictions: T.nilable(::Stripe::PromotionCodeService::UpdateParams::Restrictions)).void
}
def initialize(active: nil, expand: nil, metadata: nil, restrictions: nil); end
end
diff --git a/rbi/stripe/services/quote_service.rbi b/rbi/stripe/services/quote_service.rbi
index 674bcecfc..f5c7e7e22 100644
--- a/rbi/stripe/services/quote_service.rbi
+++ b/rbi/stripe/services/quote_service.rbi
@@ -172,7 +172,7 @@ module Stripe
end
# The discounts applied to this line item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::QuoteService::CreateParams::LineItem::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::QuoteService::CreateParams::LineItem::Discount])))
}
attr_accessor :discounts
# The ID of the price object. One of `price` or `price_data` is required.
@@ -185,10 +185,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# The tax rates which apply to the line item. When set, the `default_tax_rates` on the quote do not apply to this line item.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::QuoteService::CreateParams::LineItem::Discount]))), price: T.nilable(String), price_data: T.nilable(::Stripe::QuoteService::CreateParams::LineItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(discounts: T.nilable(T.any(String, T::Array[::Stripe::QuoteService::CreateParams::LineItem::Discount])), price: T.nilable(String), price_data: T.nilable(::Stripe::QuoteService::CreateParams::LineItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
discounts: nil,
@@ -215,16 +215,16 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :description
# When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. The `effective_date` is ignored if it is in the past when the quote is accepted.
- sig { returns(T.nilable(T.nilable(T.any(String, T.any(String, Integer))))) }
+ sig { returns(T.nilable(T.any(String, T.any(String, Integer)))) }
attr_accessor :effective_date
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
# Integer representing the number of trial period days before the customer is charged for the first time.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :trial_period_days
sig {
- params(billing_mode: T.nilable(::Stripe::QuoteService::CreateParams::SubscriptionData::BillingMode), description: T.nilable(String), effective_date: T.nilable(T.nilable(T.any(String, T.any(String, Integer)))), metadata: T.nilable(T::Hash[String, String]), trial_period_days: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(billing_mode: T.nilable(::Stripe::QuoteService::CreateParams::SubscriptionData::BillingMode), description: T.nilable(String), effective_date: T.nilable(T.any(String, T.any(String, Integer))), metadata: T.nilable(T::Hash[String, String]), trial_period_days: T.nilable(T.any(String, Integer))).void
}
def initialize(
billing_mode: nil,
@@ -250,10 +250,10 @@ module Stripe
def initialize(amount: nil, amount_percent: nil, destination: nil); end
end
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. There cannot be any line items with recurring prices when using this field.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :application_fee_amount
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field.
- sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
+ sig { returns(T.nilable(T.any(String, Float))) }
attr_accessor :application_fee_percent
# Settings for automatic tax lookup for this quote and resulting invoices and subscriptions.
sig { returns(T.nilable(::Stripe::QuoteService::CreateParams::AutomaticTax)) }
@@ -265,14 +265,14 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :customer
# The tax rates that will apply to any line item that does not have `tax_rates` set.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_tax_rates
# A description that will be displayed on the quote PDF. If no value is passed, the default description configured in your [quote template settings](https://dashboard.stripe.com/settings/billing/quote) will be used.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# The discounts applied to the quote.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::QuoteService::CreateParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::QuoteService::CreateParams::Discount])))
}
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
@@ -282,13 +282,13 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :expires_at
# A footer that will be displayed on the quote PDF. If no value is passed, the default footer configured in your [quote template settings](https://dashboard.stripe.com/settings/billing/quote) will be used.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :footer
# Clone an existing quote. The new quote will be created in `status=draft`. When using this parameter, you cannot specify any other parameters except for `expires_at`.
sig { returns(T.nilable(::Stripe::QuoteService::CreateParams::FromQuote)) }
attr_accessor :from_quote
# A header that will be displayed on the quote PDF. If no value is passed, the default header configured in your [quote template settings](https://dashboard.stripe.com/settings/billing/quote) will be used.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :header
# All invoices will be billed using the specified settings.
sig { returns(T.nilable(::Stripe::QuoteService::CreateParams::InvoiceSettings)) }
@@ -300,7 +300,7 @@ module Stripe
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
# The account on behalf of which to charge.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :on_behalf_of
# When creating a subscription or subscription schedule, the specified configuration data will be used. There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. A subscription schedule is created if `subscription_data[effective_date]` is present and in the future, otherwise a subscription is created.
sig { returns(T.nilable(::Stripe::QuoteService::CreateParams::SubscriptionData)) }
@@ -309,12 +309,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :test_clock
# The data with which to automatically create a Transfer for each of the invoices.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::QuoteService::CreateParams::TransferData))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::QuoteService::CreateParams::TransferData))) }
attr_accessor :transfer_data
sig {
- params(application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), application_fee_percent: T.nilable(T.nilable(T.any(String, Float))), automatic_tax: T.nilable(::Stripe::QuoteService::CreateParams::AutomaticTax), collection_method: T.nilable(String), customer: T.nilable(String), default_tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), description: T.nilable(T.nilable(String)), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::QuoteService::CreateParams::Discount]))), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), footer: T.nilable(T.nilable(String)), from_quote: T.nilable(::Stripe::QuoteService::CreateParams::FromQuote), header: T.nilable(T.nilable(String)), invoice_settings: T.nilable(::Stripe::QuoteService::CreateParams::InvoiceSettings), line_items: T.nilable(T::Array[::Stripe::QuoteService::CreateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(T.nilable(String)), subscription_data: T.nilable(::Stripe::QuoteService::CreateParams::SubscriptionData), test_clock: T.nilable(String), transfer_data: T.nilable(T.nilable(T.any(String, ::Stripe::QuoteService::CreateParams::TransferData)))).void
+ params(application_fee_amount: T.nilable(T.any(String, Integer)), application_fee_percent: T.nilable(T.any(String, Float)), automatic_tax: T.nilable(::Stripe::QuoteService::CreateParams::AutomaticTax), collection_method: T.nilable(String), customer: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::QuoteService::CreateParams::Discount])), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), footer: T.nilable(String), from_quote: T.nilable(::Stripe::QuoteService::CreateParams::FromQuote), header: T.nilable(String), invoice_settings: T.nilable(::Stripe::QuoteService::CreateParams::InvoiceSettings), line_items: T.nilable(T::Array[::Stripe::QuoteService::CreateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), subscription_data: T.nilable(::Stripe::QuoteService::CreateParams::SubscriptionData), test_clock: T.nilable(String), transfer_data: T.nilable(T.any(String, ::Stripe::QuoteService::CreateParams::TransferData))).void
}
def initialize(
application_fee_amount: nil,
@@ -467,7 +465,7 @@ module Stripe
end
# The discounts applied to this line item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::QuoteService::UpdateParams::LineItem::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::QuoteService::UpdateParams::LineItem::Discount])))
}
attr_accessor :discounts
# The ID of an existing line item on the quote.
@@ -483,10 +481,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# The tax rates which apply to the line item. When set, the `default_tax_rates` on the quote do not apply to this line item.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::QuoteService::UpdateParams::LineItem::Discount]))), id: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::QuoteService::UpdateParams::LineItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(discounts: T.nilable(T.any(String, T::Array[::Stripe::QuoteService::UpdateParams::LineItem::Discount])), id: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::QuoteService::UpdateParams::LineItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
discounts: nil,
@@ -499,19 +497,19 @@ module Stripe
end
class SubscriptionData < Stripe::RequestParams
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. The `effective_date` is ignored if it is in the past when the quote is accepted.
- sig { returns(T.nilable(T.nilable(T.any(String, T.any(String, Integer))))) }
+ sig { returns(T.nilable(T.any(String, T.any(String, Integer)))) }
attr_accessor :effective_date
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
# Integer representing the number of trial period days before the customer is charged for the first time.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :trial_period_days
sig {
- params(description: T.nilable(T.nilable(String)), effective_date: T.nilable(T.nilable(T.any(String, T.any(String, Integer)))), metadata: T.nilable(T::Hash[String, String]), trial_period_days: T.nilable(T.nilable(T.any(String, Integer)))).void
+ params(description: T.nilable(String), effective_date: T.nilable(T.any(String, T.any(String, Integer))), metadata: T.nilable(T::Hash[String, String]), trial_period_days: T.nilable(T.any(String, Integer))).void
}
def initialize(
description: nil,
@@ -536,10 +534,10 @@ module Stripe
def initialize(amount: nil, amount_percent: nil, destination: nil); end
end
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. There cannot be any line items with recurring prices when using this field.
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :application_fee_amount
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field.
- sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
+ sig { returns(T.nilable(T.any(String, Float))) }
attr_accessor :application_fee_percent
# Settings for automatic tax lookup for this quote and resulting invoices and subscriptions.
sig { returns(T.nilable(::Stripe::QuoteService::UpdateParams::AutomaticTax)) }
@@ -551,14 +549,14 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :customer
# The tax rates that will apply to any line item that does not have `tax_rates` set.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_tax_rates
# A description that will be displayed on the quote PDF.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# The discounts applied to the quote.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::QuoteService::UpdateParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::QuoteService::UpdateParams::Discount])))
}
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
@@ -568,10 +566,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :expires_at
# A footer that will be displayed on the quote PDF.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :footer
# A header that will be displayed on the quote PDF.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :header
# All invoices will be billed using the specified settings.
sig { returns(T.nilable(::Stripe::QuoteService::UpdateParams::InvoiceSettings)) }
@@ -583,18 +581,16 @@ module Stripe
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
# The account on behalf of which to charge.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :on_behalf_of
# When creating a subscription or subscription schedule, the specified configuration data will be used. There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. A subscription schedule is created if `subscription_data[effective_date]` is present and in the future, otherwise a subscription is created.
sig { returns(T.nilable(::Stripe::QuoteService::UpdateParams::SubscriptionData)) }
attr_accessor :subscription_data
# The data with which to automatically create a Transfer for each of the invoices.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::QuoteService::UpdateParams::TransferData))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::QuoteService::UpdateParams::TransferData))) }
attr_accessor :transfer_data
sig {
- params(application_fee_amount: T.nilable(T.nilable(T.any(String, Integer))), application_fee_percent: T.nilable(T.nilable(T.any(String, Float))), automatic_tax: T.nilable(::Stripe::QuoteService::UpdateParams::AutomaticTax), collection_method: T.nilable(String), customer: T.nilable(String), default_tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), description: T.nilable(T.nilable(String)), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::QuoteService::UpdateParams::Discount]))), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), footer: T.nilable(T.nilable(String)), header: T.nilable(T.nilable(String)), invoice_settings: T.nilable(::Stripe::QuoteService::UpdateParams::InvoiceSettings), line_items: T.nilable(T::Array[::Stripe::QuoteService::UpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(T.nilable(String)), subscription_data: T.nilable(::Stripe::QuoteService::UpdateParams::SubscriptionData), transfer_data: T.nilable(T.nilable(T.any(String, ::Stripe::QuoteService::UpdateParams::TransferData)))).void
+ params(application_fee_amount: T.nilable(T.any(String, Integer)), application_fee_percent: T.nilable(T.any(String, Float)), automatic_tax: T.nilable(::Stripe::QuoteService::UpdateParams::AutomaticTax), collection_method: T.nilable(String), customer: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::QuoteService::UpdateParams::Discount])), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), footer: T.nilable(String), header: T.nilable(String), invoice_settings: T.nilable(::Stripe::QuoteService::UpdateParams::InvoiceSettings), line_items: T.nilable(T::Array[::Stripe::QuoteService::UpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), subscription_data: T.nilable(::Stripe::QuoteService::UpdateParams::SubscriptionData), transfer_data: T.nilable(T.any(String, ::Stripe::QuoteService::UpdateParams::TransferData))).void
}
def initialize(
application_fee_amount: nil,
diff --git a/rbi/stripe/services/refund_service.rbi b/rbi/stripe/services/refund_service.rbi
index 167b19f13..383d43ac7 100644
--- a/rbi/stripe/services/refund_service.rbi
+++ b/rbi/stripe/services/refund_service.rbi
@@ -77,7 +77,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :instructions_email
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Origin of the refund
sig { returns(T.nilable(String)) }
@@ -95,7 +95,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :reverse_transfer
sig {
- params(amount: T.nilable(Integer), charge: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), expand: T.nilable(T::Array[String]), instructions_email: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), origin: T.nilable(String), payment_intent: T.nilable(String), reason: T.nilable(String), refund_application_fee: T.nilable(T::Boolean), reverse_transfer: T.nilable(T::Boolean)).void
+ params(amount: T.nilable(Integer), charge: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), expand: T.nilable(T::Array[String]), instructions_email: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), origin: T.nilable(String), payment_intent: T.nilable(String), reason: T.nilable(String), refund_application_fee: T.nilable(T::Boolean), reverse_transfer: T.nilable(T::Boolean)).void
}
def initialize(
amount: nil,
@@ -124,10 +124,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/services/setup_intent_service.rbi b/rbi/stripe/services/setup_intent_service.rbi
index 6203a7708..0cf456f38 100644
--- a/rbi/stripe/services/setup_intent_service.rbi
+++ b/rbi/stripe/services/setup_intent_service.rbi
@@ -195,23 +195,23 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
sig { returns(T.nilable(String)) }
attr_accessor :tax_id
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
+ params(address: T.nilable(T.any(String, ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), tax_id: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
end
@@ -714,7 +714,7 @@ module Stripe
# A URL for custom mandate text to render during confirmation step.
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :custom_mandate_url
# List of Stripe products where this mandate can be selected automatically.
sig { returns(T.nilable(T::Array[String])) }
@@ -729,7 +729,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transaction_type
sig {
- params(custom_mandate_url: T.nilable(T.nilable(String)), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
+ params(custom_mandate_url: T.nilable(String), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
}
def initialize(
custom_mandate_url: nil,
@@ -759,9 +759,9 @@ module Stripe
class BacsDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -1013,11 +1013,11 @@ module Stripe
attr_accessor :preferred_locale
# Subscription details if setting up or charging a subscription
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Klarna::Subscription]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Klarna::Subscription])))
}
attr_accessor :subscriptions
sig {
- params(currency: T.nilable(String), on_demand: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), subscriptions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Klarna::Subscription])))).void
+ params(currency: T.nilable(String), on_demand: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), subscriptions: T.nilable(T.any(String, T::Array[::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Klarna::Subscription]))).void
}
def initialize(
currency: nil,
@@ -1043,9 +1043,9 @@ module Stripe
class SepaDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -1088,9 +1088,9 @@ module Stripe
end
class MandateOptions < Stripe::RequestParams
# The method used to collect offline mandate customer acceptance.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :collection_method
- sig { params(collection_method: T.nilable(T.nilable(String))).void }
+ sig { params(collection_method: T.nilable(String)).void }
def initialize(collection_method: nil); end
end
class Networks < Stripe::RequestParams
@@ -1240,7 +1240,7 @@ module Stripe
attr_accessor :flow_directions
# This hash contains details about the mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm).
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::CreateParams::MandateData))))
+ returns(T.nilable(T.any(String, ::Stripe::SetupIntentService::CreateParams::MandateData)))
}
attr_accessor :mandate_data
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -1280,7 +1280,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :use_stripe_sdk
sig {
- params(attach_to_self: T.nilable(T::Boolean), automatic_payment_methods: T.nilable(::Stripe::SetupIntentService::CreateParams::AutomaticPaymentMethods), confirm: T.nilable(T::Boolean), confirmation_token: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::CreateParams::MandateData))), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), return_url: T.nilable(String), single_use: T.nilable(::Stripe::SetupIntentService::CreateParams::SingleUse), usage: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void
+ params(attach_to_self: T.nilable(T::Boolean), automatic_payment_methods: T.nilable(::Stripe::SetupIntentService::CreateParams::AutomaticPaymentMethods), confirm: T.nilable(T::Boolean), confirmation_token: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), mandate_data: T.nilable(T.any(String, ::Stripe::SetupIntentService::CreateParams::MandateData)), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), return_url: T.nilable(String), single_use: T.nilable(::Stripe::SetupIntentService::CreateParams::SingleUse), usage: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void
}
def initialize(
attach_to_self: nil,
@@ -1393,23 +1393,23 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
sig { returns(T.nilable(String)) }
attr_accessor :tax_id
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
+ params(address: T.nilable(T.any(String, ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), tax_id: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
end
@@ -1912,7 +1912,7 @@ module Stripe
# A URL for custom mandate text to render during confirmation step.
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :custom_mandate_url
# List of Stripe products where this mandate can be selected automatically.
sig { returns(T.nilable(T::Array[String])) }
@@ -1927,7 +1927,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transaction_type
sig {
- params(custom_mandate_url: T.nilable(T.nilable(String)), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
+ params(custom_mandate_url: T.nilable(String), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
}
def initialize(
custom_mandate_url: nil,
@@ -1957,9 +1957,9 @@ module Stripe
class BacsDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -2211,11 +2211,11 @@ module Stripe
attr_accessor :preferred_locale
# Subscription details if setting up or charging a subscription
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Klarna::Subscription]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Klarna::Subscription])))
}
attr_accessor :subscriptions
sig {
- params(currency: T.nilable(String), on_demand: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), subscriptions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Klarna::Subscription])))).void
+ params(currency: T.nilable(String), on_demand: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), subscriptions: T.nilable(T.any(String, T::Array[::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Klarna::Subscription]))).void
}
def initialize(
currency: nil,
@@ -2241,9 +2241,9 @@ module Stripe
class SepaDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -2286,9 +2286,9 @@ module Stripe
end
class MandateOptions < Stripe::RequestParams
# The method used to collect offline mandate customer acceptance.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :collection_method
- sig { params(collection_method: T.nilable(T.nilable(String))).void }
+ sig { params(collection_method: T.nilable(String)).void }
def initialize(collection_method: nil); end
end
class Networks < Stripe::RequestParams
@@ -2414,7 +2414,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :flow_directions
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent. To unset this field to null, pass in an empty string.
sig { returns(T.nilable(String)) }
@@ -2433,7 +2433,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :payment_method_types
sig {
- params(attach_to_self: T.nilable(T::Boolean), customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String])).void
+ params(attach_to_self: T.nilable(T::Boolean), customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String])).void
}
def initialize(
attach_to_self: nil,
@@ -2583,23 +2583,23 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
sig { returns(T.nilable(String)) }
attr_accessor :tax_id
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
+ params(address: T.nilable(T.any(String, ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), tax_id: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
end
@@ -3102,7 +3102,7 @@ module Stripe
# A URL for custom mandate text to render during confirmation step.
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :custom_mandate_url
# List of Stripe products where this mandate can be selected automatically.
sig { returns(T.nilable(T::Array[String])) }
@@ -3117,7 +3117,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transaction_type
sig {
- params(custom_mandate_url: T.nilable(T.nilable(String)), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
+ params(custom_mandate_url: T.nilable(String), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
}
def initialize(
custom_mandate_url: nil,
@@ -3147,9 +3147,9 @@ module Stripe
class BacsDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -3401,11 +3401,11 @@ module Stripe
attr_accessor :preferred_locale
# Subscription details if setting up or charging a subscription
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Klarna::Subscription]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Klarna::Subscription])))
}
attr_accessor :subscriptions
sig {
- params(currency: T.nilable(String), on_demand: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), subscriptions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Klarna::Subscription])))).void
+ params(currency: T.nilable(String), on_demand: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Klarna::OnDemand), preferred_locale: T.nilable(String), subscriptions: T.nilable(T.any(String, T::Array[::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Klarna::Subscription]))).void
}
def initialize(
currency: nil,
@@ -3431,9 +3431,9 @@ module Stripe
class SepaDebit < Stripe::RequestParams
class MandateOptions < Stripe::RequestParams
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :reference_prefix
- sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
+ sig { params(reference_prefix: T.nilable(String)).void }
def initialize(reference_prefix: nil); end
end
# Additional fields for Mandate creation
@@ -3476,9 +3476,9 @@ module Stripe
end
class MandateOptions < Stripe::RequestParams
# The method used to collect offline mandate customer acceptance.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :collection_method
- sig { params(collection_method: T.nilable(T.nilable(String))).void }
+ sig { params(collection_method: T.nilable(String)).void }
def initialize(collection_method: nil); end
end
class Networks < Stripe::RequestParams
@@ -3592,7 +3592,7 @@ module Stripe
attr_accessor :expand
# Attribute for param field mandate_data
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::ConfirmParams::MandateData))))
+ returns(T.nilable(T.any(String, ::Stripe::SetupIntentService::ConfirmParams::MandateData)))
}
attr_accessor :mandate_data
# ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent.
@@ -3614,7 +3614,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :use_stripe_sdk
sig {
- params(confirmation_token: T.nilable(String), expand: T.nilable(T::Array[String]), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::ConfirmParams::MandateData))), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions), return_url: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void
+ params(confirmation_token: T.nilable(String), expand: T.nilable(T::Array[String]), mandate_data: T.nilable(T.any(String, ::Stripe::SetupIntentService::ConfirmParams::MandateData)), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions), return_url: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void
}
def initialize(
confirmation_token: nil,
diff --git a/rbi/stripe/services/shipping_rate_service.rbi b/rbi/stripe/services/shipping_rate_service.rbi
index fc3176db9..74ecb48b6 100644
--- a/rbi/stripe/services/shipping_rate_service.rbi
+++ b/rbi/stripe/services/shipping_rate_service.rbi
@@ -198,13 +198,13 @@ module Stripe
sig { returns(T.nilable(::Stripe::ShippingRateService::UpdateParams::FixedAmount)) }
attr_accessor :fixed_amount
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
sig { returns(T.nilable(String)) }
attr_accessor :tax_behavior
sig {
- params(active: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fixed_amount: T.nilable(::Stripe::ShippingRateService::UpdateParams::FixedAmount), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), tax_behavior: T.nilable(String)).void
+ params(active: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), fixed_amount: T.nilable(::Stripe::ShippingRateService::UpdateParams::FixedAmount), metadata: T.nilable(T.any(String, T::Hash[String, String])), tax_behavior: T.nilable(String)).void
}
def initialize(
active: nil,
diff --git a/rbi/stripe/services/source_service.rbi b/rbi/stripe/services/source_service.rbi
index 4b52a5baa..3c78957db 100644
--- a/rbi/stripe/services/source_service.rbi
+++ b/rbi/stripe/services/source_service.rbi
@@ -89,7 +89,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::SourceService::UpdateParams::Mandate::Acceptance)) }
attr_accessor :acceptance
# The amount specified by the mandate. (Leave null for a mandate covering all amounts)
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :amount
# The currency specified by the mandate. (Must match `currency` of the source)
sig { returns(T.nilable(String)) }
@@ -101,7 +101,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :notification_method
sig {
- params(acceptance: T.nilable(::Stripe::SourceService::UpdateParams::Mandate::Acceptance), amount: T.nilable(T.nilable(T.any(String, Integer))), currency: T.nilable(String), interval: T.nilable(String), notification_method: T.nilable(String)).void
+ params(acceptance: T.nilable(::Stripe::SourceService::UpdateParams::Mandate::Acceptance), amount: T.nilable(T.any(String, Integer)), currency: T.nilable(String), interval: T.nilable(String), notification_method: T.nilable(String)).void
}
def initialize(
acceptance: nil,
@@ -273,7 +273,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::SourceService::UpdateParams::Mandate)) }
attr_accessor :mandate
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Information about the owner of the payment instrument that may be used or required by particular source types.
sig { returns(T.nilable(::Stripe::SourceService::UpdateParams::Owner)) }
@@ -282,7 +282,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::SourceService::UpdateParams::SourceOrder)) }
attr_accessor :source_order
sig {
- params(amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), mandate: T.nilable(::Stripe::SourceService::UpdateParams::Mandate), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), owner: T.nilable(::Stripe::SourceService::UpdateParams::Owner), source_order: T.nilable(::Stripe::SourceService::UpdateParams::SourceOrder)).void
+ params(amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), mandate: T.nilable(::Stripe::SourceService::UpdateParams::Mandate), metadata: T.nilable(T.any(String, T::Hash[String, String])), owner: T.nilable(::Stripe::SourceService::UpdateParams::Owner), source_order: T.nilable(::Stripe::SourceService::UpdateParams::SourceOrder)).void
}
def initialize(
amount: nil,
@@ -360,7 +360,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::SourceService::CreateParams::Mandate::Acceptance)) }
attr_accessor :acceptance
# The amount specified by the mandate. (Leave null for a mandate covering all amounts)
- sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
+ sig { returns(T.nilable(T.any(String, Integer))) }
attr_accessor :amount
# The currency specified by the mandate. (Must match `currency` of the source)
sig { returns(T.nilable(String)) }
@@ -372,7 +372,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :notification_method
sig {
- params(acceptance: T.nilable(::Stripe::SourceService::CreateParams::Mandate::Acceptance), amount: T.nilable(T.nilable(T.any(String, Integer))), currency: T.nilable(String), interval: T.nilable(String), notification_method: T.nilable(String)).void
+ params(acceptance: T.nilable(::Stripe::SourceService::CreateParams::Mandate::Acceptance), amount: T.nilable(T.any(String, Integer)), currency: T.nilable(String), interval: T.nilable(String), notification_method: T.nilable(String)).void
}
def initialize(
acceptance: nil,
diff --git a/rbi/stripe/services/subscription_item_service.rbi b/rbi/stripe/services/subscription_item_service.rbi
index b14d4eb7c..2460647ad 100644
--- a/rbi/stripe/services/subscription_item_service.rbi
+++ b/rbi/stripe/services/subscription_item_service.rbi
@@ -92,19 +92,19 @@ module Stripe
end
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionItemService::UpdateParams::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionItemService::UpdateParams::BillingThresholds)))
}
attr_accessor :billing_thresholds
# The coupons to redeem into discounts for the subscription item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionItemService::UpdateParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionItemService::UpdateParams::Discount])))
}
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `false` (on-session).
sig { returns(T.nilable(T::Boolean)) }
@@ -137,10 +137,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionItemService::UpdateParams::BillingThresholds))), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionItemService::UpdateParams::Discount]))), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), off_session: T.nilable(T::Boolean), payment_behavior: T.nilable(String), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionItemService::UpdateParams::PriceData), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionItemService::UpdateParams::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionItemService::UpdateParams::Discount])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), off_session: T.nilable(T::Boolean), payment_behavior: T.nilable(String), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionItemService::UpdateParams::PriceData), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
billing_thresholds: nil,
@@ -251,12 +251,12 @@ module Stripe
end
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionItemService::CreateParams::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionItemService::CreateParams::BillingThresholds)))
}
attr_accessor :billing_thresholds
# The coupons to redeem into discounts for the subscription item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionItemService::CreateParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionItemService::CreateParams::Discount])))
}
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
@@ -296,10 +296,10 @@ module Stripe
sig { returns(String) }
attr_accessor :subscription
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionItemService::CreateParams::BillingThresholds))), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionItemService::CreateParams::Discount]))), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), payment_behavior: T.nilable(String), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionItemService::CreateParams::PriceData), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), quantity: T.nilable(Integer), subscription: String, tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionItemService::CreateParams::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionItemService::CreateParams::Discount])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), payment_behavior: T.nilable(String), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionItemService::CreateParams::PriceData), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), quantity: T.nilable(Integer), subscription: String, tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
billing_thresholds: nil,
diff --git a/rbi/stripe/services/subscription_schedule_service.rbi b/rbi/stripe/services/subscription_schedule_service.rbi
index 7a6196c82..04d6b001d 100644
--- a/rbi/stripe/services/subscription_schedule_service.rbi
+++ b/rbi/stripe/services/subscription_schedule_service.rbi
@@ -188,7 +188,7 @@ module Stripe
def initialize(account: nil, type: nil); end
end
# The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`.
sig { returns(T.nilable(Integer)) }
@@ -199,7 +199,7 @@ module Stripe
}
attr_accessor :issuer
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::DefaultSettings::InvoiceSettings::Issuer)).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::DefaultSettings::InvoiceSettings::Issuer)).void
}
def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end
end
@@ -226,7 +226,7 @@ module Stripe
attr_accessor :billing_cycle_anchor
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::CreateParams::DefaultSettings::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::CreateParams::DefaultSettings::BillingThresholds)))
}
attr_accessor :billing_thresholds
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
@@ -236,7 +236,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :default_payment_method
# Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# All invoices will be billed using the specified settings.
sig {
@@ -244,15 +244,15 @@ module Stripe
}
attr_accessor :invoice_settings
# The account on behalf of which to charge, for each of the associated subscription's invoices.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :on_behalf_of
# The data with which to automatically create a Transfer for each of the associated subscription's invoices.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::CreateParams::DefaultSettings::TransferData))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::CreateParams::DefaultSettings::TransferData)))
}
attr_accessor :transfer_data
sig {
- params(application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::DefaultSettings::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::CreateParams::DefaultSettings::BillingThresholds))), collection_method: T.nilable(String), default_payment_method: T.nilable(String), description: T.nilable(T.nilable(String)), invoice_settings: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::DefaultSettings::InvoiceSettings), on_behalf_of: T.nilable(T.nilable(String)), transfer_data: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::CreateParams::DefaultSettings::TransferData)))).void
+ params(application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::DefaultSettings::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::CreateParams::DefaultSettings::BillingThresholds)), collection_method: T.nilable(String), default_payment_method: T.nilable(String), description: T.nilable(String), invoice_settings: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::DefaultSettings::InvoiceSettings), on_behalf_of: T.nilable(String), transfer_data: T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::CreateParams::DefaultSettings::TransferData))).void
}
def initialize(
application_fee_percent: nil,
@@ -328,10 +328,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(discounts: T.nilable(T::Array[::Stripe::SubscriptionScheduleService::CreateParams::Phase::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(discounts: T.nilable(T::Array[::Stripe::SubscriptionScheduleService::CreateParams::Phase::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
discounts: nil,
@@ -414,7 +414,7 @@ module Stripe
def initialize(account: nil, type: nil); end
end
# The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
sig { returns(T.nilable(Integer)) }
@@ -425,7 +425,7 @@ module Stripe
}
attr_accessor :issuer
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::Phase::InvoiceSettings::Issuer)).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::Phase::InvoiceSettings::Issuer)).void
}
def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end
end
@@ -497,12 +497,12 @@ module Stripe
end
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::CreateParams::Phase::Item::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::CreateParams::Phase::Item::BillingThresholds)))
}
attr_accessor :billing_thresholds
# The coupons to redeem into discounts for the subscription item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionScheduleService::CreateParams::Phase::Item::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionScheduleService::CreateParams::Phase::Item::Discount])))
}
attr_accessor :discounts
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a configuration item. Metadata on a configuration item will update the underlying subscription item's `metadata` when the phase is entered, adding new keys and replacing existing keys. Individual keys in the subscription item's `metadata` can be unset by posting an empty value to them in the configuration item's `metadata`. To unset all keys in the subscription item's `metadata`, update the subscription item directly or unset every key individually from the configuration item's `metadata`.
@@ -523,10 +523,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::CreateParams::Phase::Item::BillingThresholds))), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionScheduleService::CreateParams::Phase::Item::Discount]))), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::CreateParams::Phase::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionScheduleService::CreateParams::Phase::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
billing_thresholds: nil,
@@ -567,7 +567,7 @@ module Stripe
attr_accessor :billing_cycle_anchor
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::CreateParams::Phase::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::CreateParams::Phase::BillingThresholds)))
}
attr_accessor :billing_thresholds
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
@@ -580,14 +580,14 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :default_payment_method
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://stripe.com/docs/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_tax_rates
# Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionScheduleService::CreateParams::Phase::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionScheduleService::CreateParams::Phase::Discount])))
}
attr_accessor :discounts
# The number of intervals the phase should last. If set, `end_date` must not be set.
@@ -630,7 +630,7 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :trial_end
sig {
- params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionScheduleService::CreateParams::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::CreateParams::Phase::BillingThresholds))), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), description: T.nilable(T.nilable(String)), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionScheduleService::CreateParams::Phase::Discount]))), duration: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::Phase::Duration), end_date: T.nilable(Integer), invoice_settings: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::Phase::InvoiceSettings), items: T::Array[::Stripe::SubscriptionScheduleService::CreateParams::Phase::Item], iterations: T.nilable(Integer), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::Phase::TransferData), trial: T.nilable(T::Boolean), trial_end: T.nilable(Integer)).void
+ params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionScheduleService::CreateParams::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::CreateParams::Phase::BillingThresholds)), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionScheduleService::CreateParams::Phase::Discount])), duration: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::Phase::Duration), end_date: T.nilable(Integer), invoice_settings: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::Phase::InvoiceSettings), items: T::Array[::Stripe::SubscriptionScheduleService::CreateParams::Phase::Item], iterations: T.nilable(Integer), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::Phase::TransferData), trial: T.nilable(T::Boolean), trial_end: T.nilable(Integer)).void
}
def initialize(
add_invoice_items: nil,
@@ -678,7 +678,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :from_subscription
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.
sig {
@@ -689,7 +689,7 @@ module Stripe
sig { returns(T.nilable(T.any(Integer, String))) }
attr_accessor :start_date
sig {
- params(billing_mode: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::BillingMode), customer: T.nilable(String), default_settings: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::DefaultSettings), end_behavior: T.nilable(String), expand: T.nilable(T::Array[String]), from_subscription: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), phases: T.nilable(T::Array[::Stripe::SubscriptionScheduleService::CreateParams::Phase]), start_date: T.nilable(T.any(Integer, String))).void
+ params(billing_mode: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::BillingMode), customer: T.nilable(String), default_settings: T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::DefaultSettings), end_behavior: T.nilable(String), expand: T.nilable(T::Array[String]), from_subscription: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), phases: T.nilable(T::Array[::Stripe::SubscriptionScheduleService::CreateParams::Phase]), start_date: T.nilable(T.any(Integer, String))).void
}
def initialize(
billing_mode: nil,
@@ -760,7 +760,7 @@ module Stripe
def initialize(account: nil, type: nil); end
end
# The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `collection_method=charge_automatically`.
sig { returns(T.nilable(Integer)) }
@@ -771,7 +771,7 @@ module Stripe
}
attr_accessor :issuer
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::DefaultSettings::InvoiceSettings::Issuer)).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::DefaultSettings::InvoiceSettings::Issuer)).void
}
def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end
end
@@ -798,7 +798,7 @@ module Stripe
attr_accessor :billing_cycle_anchor
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::UpdateParams::DefaultSettings::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::UpdateParams::DefaultSettings::BillingThresholds)))
}
attr_accessor :billing_thresholds
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
@@ -808,7 +808,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :default_payment_method
# Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# All invoices will be billed using the specified settings.
sig {
@@ -816,15 +816,15 @@ module Stripe
}
attr_accessor :invoice_settings
# The account on behalf of which to charge, for each of the associated subscription's invoices.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :on_behalf_of
# The data with which to automatically create a Transfer for each of the associated subscription's invoices.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::UpdateParams::DefaultSettings::TransferData))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::UpdateParams::DefaultSettings::TransferData)))
}
attr_accessor :transfer_data
sig {
- params(application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::DefaultSettings::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::UpdateParams::DefaultSettings::BillingThresholds))), collection_method: T.nilable(String), default_payment_method: T.nilable(String), description: T.nilable(T.nilable(String)), invoice_settings: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::DefaultSettings::InvoiceSettings), on_behalf_of: T.nilable(T.nilable(String)), transfer_data: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::UpdateParams::DefaultSettings::TransferData)))).void
+ params(application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::DefaultSettings::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::UpdateParams::DefaultSettings::BillingThresholds)), collection_method: T.nilable(String), default_payment_method: T.nilable(String), description: T.nilable(String), invoice_settings: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::DefaultSettings::InvoiceSettings), on_behalf_of: T.nilable(String), transfer_data: T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::UpdateParams::DefaultSettings::TransferData))).void
}
def initialize(
application_fee_percent: nil,
@@ -900,10 +900,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(discounts: T.nilable(T::Array[::Stripe::SubscriptionScheduleService::UpdateParams::Phase::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(discounts: T.nilable(T::Array[::Stripe::SubscriptionScheduleService::UpdateParams::Phase::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
discounts: nil,
@@ -986,7 +986,7 @@ module Stripe
def initialize(account: nil, type: nil); end
end
# The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
sig { returns(T.nilable(Integer)) }
@@ -997,7 +997,7 @@ module Stripe
}
attr_accessor :issuer
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::Phase::InvoiceSettings::Issuer)).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), days_until_due: T.nilable(Integer), issuer: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::Phase::InvoiceSettings::Issuer)).void
}
def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end
end
@@ -1069,12 +1069,12 @@ module Stripe
end
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Item::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Item::BillingThresholds)))
}
attr_accessor :billing_thresholds
# The coupons to redeem into discounts for the subscription item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Item::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Item::Discount])))
}
attr_accessor :discounts
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a configuration item. Metadata on a configuration item will update the underlying subscription item's `metadata` when the phase is entered, adding new keys and replacing existing keys. Individual keys in the subscription item's `metadata` can be unset by posting an empty value to them in the configuration item's `metadata`. To unset all keys in the subscription item's `metadata`, update the subscription item directly or unset every key individually from the configuration item's `metadata`.
@@ -1095,10 +1095,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Item::BillingThresholds))), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Item::Discount]))), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
billing_thresholds: nil,
@@ -1139,7 +1139,7 @@ module Stripe
attr_accessor :billing_cycle_anchor
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::UpdateParams::Phase::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::UpdateParams::Phase::BillingThresholds)))
}
attr_accessor :billing_thresholds
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
@@ -1152,14 +1152,14 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :default_payment_method
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://stripe.com/docs/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_tax_rates
# Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Discount])))
}
attr_accessor :discounts
# The number of intervals the phase should last. If set, `end_date` must not be set.
@@ -1205,7 +1205,7 @@ module Stripe
sig { returns(T.nilable(T.any(Integer, String))) }
attr_accessor :trial_end
sig {
- params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionScheduleService::UpdateParams::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::UpdateParams::Phase::BillingThresholds))), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), description: T.nilable(T.nilable(String)), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Discount]))), duration: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Duration), end_date: T.nilable(T.any(Integer, String)), invoice_settings: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::Phase::InvoiceSettings), items: T::Array[::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Item], iterations: T.nilable(Integer), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), proration_behavior: T.nilable(String), start_date: T.nilable(T.any(Integer, String)), transfer_data: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::Phase::TransferData), trial: T.nilable(T::Boolean), trial_end: T.nilable(T.any(Integer, String))).void
+ params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionScheduleService::UpdateParams::Phase::AddInvoiceItem]), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::Phase::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionScheduleService::UpdateParams::Phase::BillingThresholds)), collection_method: T.nilable(String), currency: T.nilable(String), default_payment_method: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Discount])), duration: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Duration), end_date: T.nilable(T.any(Integer, String)), invoice_settings: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::Phase::InvoiceSettings), items: T::Array[::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Item], iterations: T.nilable(Integer), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), proration_behavior: T.nilable(String), start_date: T.nilable(T.any(Integer, String)), transfer_data: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::Phase::TransferData), trial: T.nilable(T::Boolean), trial_end: T.nilable(T.any(Integer, String))).void
}
def initialize(
add_invoice_items: nil,
@@ -1245,7 +1245,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. Note that past phases can be omitted.
sig {
@@ -1256,7 +1256,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :proration_behavior
sig {
- params(default_settings: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::DefaultSettings), end_behavior: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), phases: T.nilable(T::Array[::Stripe::SubscriptionScheduleService::UpdateParams::Phase]), proration_behavior: T.nilable(String)).void
+ params(default_settings: T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::DefaultSettings), end_behavior: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), phases: T.nilable(T::Array[::Stripe::SubscriptionScheduleService::UpdateParams::Phase]), proration_behavior: T.nilable(String)).void
}
def initialize(
default_settings: nil,
diff --git a/rbi/stripe/services/subscription_service.rbi b/rbi/stripe/services/subscription_service.rbi
index 01419e7b7..bf3a186bc 100644
--- a/rbi/stripe/services/subscription_service.rbi
+++ b/rbi/stripe/services/subscription_service.rbi
@@ -7,14 +7,12 @@ module Stripe
class CancelParams < Stripe::RequestParams
class CancellationDetails < Stripe::RequestParams
# Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :comment
# The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :feedback
- sig {
- params(comment: T.nilable(T.nilable(String)), feedback: T.nilable(T.nilable(T.any(String, String)))).void
- }
+ sig { params(comment: T.nilable(String), feedback: T.nilable(T.any(String, String))).void }
def initialize(comment: nil, feedback: nil); end
end
# Details about why this subscription was cancelled
@@ -102,10 +100,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(discounts: T.nilable(T::Array[::Stripe::SubscriptionService::UpdateParams::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionService::UpdateParams::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(discounts: T.nilable(T::Array[::Stripe::SubscriptionService::UpdateParams::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionService::UpdateParams::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
discounts: nil,
@@ -153,14 +151,12 @@ module Stripe
end
class CancellationDetails < Stripe::RequestParams
# Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :comment
# The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :feedback
- sig {
- params(comment: T.nilable(T.nilable(String)), feedback: T.nilable(T.nilable(T.any(String, String)))).void
- }
+ sig { params(comment: T.nilable(String), feedback: T.nilable(T.any(String, String))).void }
def initialize(comment: nil, feedback: nil); end
end
class Discount < Stripe::RequestParams
@@ -190,7 +186,7 @@ module Stripe
def initialize(account: nil, type: nil); end
end
# The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
sig {
@@ -198,7 +194,7 @@ module Stripe
}
attr_accessor :issuer
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), issuer: T.nilable(::Stripe::SubscriptionService::UpdateParams::InvoiceSettings::Issuer)).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), issuer: T.nilable(::Stripe::SubscriptionService::UpdateParams::InvoiceSettings::Issuer)).void
}
def initialize(account_tax_ids: nil, issuer: nil); end
end
@@ -268,7 +264,7 @@ module Stripe
end
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::Item::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::Item::BillingThresholds)))
}
attr_accessor :billing_thresholds
# Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
@@ -279,14 +275,14 @@ module Stripe
attr_accessor :deleted
# The coupons to redeem into discounts for the subscription item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionService::UpdateParams::Item::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionService::UpdateParams::Item::Discount])))
}
attr_accessor :discounts
# Subscription item to update.
sig { returns(T.nilable(String)) }
attr_accessor :id
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Plan ID for this item, as a string.
sig { returns(T.nilable(String)) }
@@ -301,10 +297,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::Item::BillingThresholds))), clear_usage: T.nilable(T::Boolean), deleted: T.nilable(T::Boolean), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionService::UpdateParams::Item::Discount]))), id: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionService::UpdateParams::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::Item::BillingThresholds)), clear_usage: T.nilable(T::Boolean), deleted: T.nilable(T::Boolean), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionService::UpdateParams::Item::Discount])), id: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionService::UpdateParams::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
billing_thresholds: nil,
@@ -469,41 +465,41 @@ module Stripe
end
# This sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::AcssDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::AcssDebit)))
}
attr_accessor :acss_debit
# This sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::Bancontact))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::Bancontact)))
}
attr_accessor :bancontact
# This sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::Card))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::Card)))
}
attr_accessor :card
# This sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance)))
}
attr_accessor :customer_balance
# This sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::Konbini))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::Konbini)))
}
attr_accessor :konbini
# This sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::SepaDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::SepaDebit)))
}
attr_accessor :sepa_debit
# This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount)))
}
attr_accessor :us_bank_account
sig {
- params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::AcssDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::Bancontact))), card: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::Card))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::Konbini))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::SepaDebit))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount)))).void
+ params(acss_debit: T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::AcssDebit)), bancontact: T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::Bancontact)), card: T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::Card)), customer_balance: T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance)), konbini: T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::Konbini)), sepa_debit: T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::SepaDebit)), us_bank_account: T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount))).void
}
def initialize(
acss_debit: nil,
@@ -521,13 +517,13 @@ module Stripe
}
attr_accessor :payment_method_options
# The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :payment_method_types
# Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off` if unspecified.
sig { returns(T.nilable(String)) }
attr_accessor :save_default_payment_method
sig {
- params(payment_method_options: T.nilable(::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions), payment_method_types: T.nilable(T.nilable(T.any(String, T::Array[String]))), save_default_payment_method: T.nilable(String)).void
+ params(payment_method_options: T.nilable(::Stripe::SubscriptionService::UpdateParams::PaymentSettings::PaymentMethodOptions), payment_method_types: T.nilable(T.any(String, T::Array[String])), save_default_payment_method: T.nilable(String)).void
}
def initialize(
payment_method_options: nil,
@@ -577,7 +573,7 @@ module Stripe
}
attr_accessor :add_invoice_items
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
- sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
+ sig { returns(T.nilable(T.any(String, Float))) }
attr_accessor :application_fee_percent
# Automatic tax settings for this subscription. We recommend you only include this parameter when the existing value is being changed.
sig { returns(T.nilable(::Stripe::SubscriptionService::UpdateParams::AutomaticTax)) }
@@ -587,11 +583,11 @@ module Stripe
attr_accessor :billing_cycle_anchor
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::BillingThresholds)))
}
attr_accessor :billing_thresholds
# A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
- sig { returns(T.nilable(T.nilable(T.any(String, T.any(Integer, String))))) }
+ sig { returns(T.nilable(T.any(String, T.any(Integer, String)))) }
attr_accessor :cancel_at
# Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`.
sig { returns(T.nilable(T::Boolean)) }
@@ -609,17 +605,17 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :default_payment_method
# ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If `default_payment_method` is also set, `default_payment_method` will take precedence. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :default_source
# The tax rates that will apply to any subscription item that does not have `tax_rates` set. Invoices created will have their `default_tax_rates` populated from the subscription. Pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_tax_rates
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# The coupons to redeem into discounts for the subscription. If not specified or empty, inherits the discount from the subscription's customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionService::UpdateParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionService::UpdateParams::Discount])))
}
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
@@ -632,17 +628,17 @@ module Stripe
sig { returns(T.nilable(T::Array[::Stripe::SubscriptionService::UpdateParams::Item])) }
attr_accessor :items
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `false` (on-session).
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :off_session
# The account on behalf of which to charge, for each of the subscription's invoices.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :on_behalf_of
# If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PauseCollection))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PauseCollection)))
}
attr_accessor :pause_collection
# Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://stripe.com/docs/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior.
@@ -659,7 +655,7 @@ module Stripe
attr_accessor :payment_settings
# Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://stripe.com/docs/api#create_invoice) for the given subscription at the specified interval.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PendingInvoiceItemInterval))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PendingInvoiceItemInterval)))
}
attr_accessor :pending_invoice_item_interval
# Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
@@ -670,7 +666,7 @@ module Stripe
attr_accessor :proration_date
# If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges. This will be unset if you POST an empty value.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::TransferData))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::TransferData)))
}
attr_accessor :transfer_data
# Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. If set, `trial_end` will override the default trial period of the plan the customer is being subscribed to. The `billing_cycle_anchor` will be updated to the `trial_end` value. The special value `now` can be provided to end the customer's trial immediately. Can be at most two years from `billing_cycle_anchor`.
@@ -683,7 +679,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::SubscriptionService::UpdateParams::TrialSettings)) }
attr_accessor :trial_settings
sig {
- params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionService::UpdateParams::AddInvoiceItem]), application_fee_percent: T.nilable(T.nilable(T.any(String, Float))), automatic_tax: T.nilable(::Stripe::SubscriptionService::UpdateParams::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::BillingThresholds))), cancel_at: T.nilable(T.nilable(T.any(String, T.any(Integer, String)))), cancel_at_period_end: T.nilable(T::Boolean), cancellation_details: T.nilable(::Stripe::SubscriptionService::UpdateParams::CancellationDetails), collection_method: T.nilable(String), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(T.nilable(String)), default_tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), description: T.nilable(T.nilable(String)), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionService::UpdateParams::Discount]))), expand: T.nilable(T::Array[String]), invoice_settings: T.nilable(::Stripe::SubscriptionService::UpdateParams::InvoiceSettings), items: T.nilable(T::Array[::Stripe::SubscriptionService::UpdateParams::Item]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), off_session: T.nilable(T::Boolean), on_behalf_of: T.nilable(T.nilable(String)), pause_collection: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PauseCollection))), payment_behavior: T.nilable(String), payment_settings: T.nilable(::Stripe::SubscriptionService::UpdateParams::PaymentSettings), pending_invoice_item_interval: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PendingInvoiceItemInterval))), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), transfer_data: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::TransferData))), trial_end: T.nilable(T.any(String, Integer)), trial_from_plan: T.nilable(T::Boolean), trial_settings: T.nilable(::Stripe::SubscriptionService::UpdateParams::TrialSettings)).void
+ params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionService::UpdateParams::AddInvoiceItem]), application_fee_percent: T.nilable(T.any(String, Float)), automatic_tax: T.nilable(::Stripe::SubscriptionService::UpdateParams::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::BillingThresholds)), cancel_at: T.nilable(T.any(String, T.any(Integer, String))), cancel_at_period_end: T.nilable(T::Boolean), cancellation_details: T.nilable(::Stripe::SubscriptionService::UpdateParams::CancellationDetails), collection_method: T.nilable(String), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionService::UpdateParams::Discount])), expand: T.nilable(T::Array[String]), invoice_settings: T.nilable(::Stripe::SubscriptionService::UpdateParams::InvoiceSettings), items: T.nilable(T::Array[::Stripe::SubscriptionService::UpdateParams::Item]), metadata: T.nilable(T.any(String, T::Hash[String, String])), off_session: T.nilable(T::Boolean), on_behalf_of: T.nilable(String), pause_collection: T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PauseCollection)), payment_behavior: T.nilable(String), payment_settings: T.nilable(::Stripe::SubscriptionService::UpdateParams::PaymentSettings), pending_invoice_item_interval: T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::PendingInvoiceItemInterval)), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), transfer_data: T.nilable(T.any(String, ::Stripe::SubscriptionService::UpdateParams::TransferData)), trial_end: T.nilable(T.any(String, Integer)), trial_from_plan: T.nilable(T::Boolean), trial_settings: T.nilable(::Stripe::SubscriptionService::UpdateParams::TrialSettings)).void
}
def initialize(
add_invoice_items: nil,
@@ -909,10 +905,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(discounts: T.nilable(T::Array[::Stripe::SubscriptionService::CreateParams::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionService::CreateParams::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(discounts: T.nilable(T::Array[::Stripe::SubscriptionService::CreateParams::AddInvoiceItem::Discount]), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionService::CreateParams::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
discounts: nil,
@@ -1013,7 +1009,7 @@ module Stripe
def initialize(account: nil, type: nil); end
end
# The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :account_tax_ids
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
sig {
@@ -1021,7 +1017,7 @@ module Stripe
}
attr_accessor :issuer
sig {
- params(account_tax_ids: T.nilable(T.nilable(T.any(String, T::Array[String]))), issuer: T.nilable(::Stripe::SubscriptionService::CreateParams::InvoiceSettings::Issuer)).void
+ params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), issuer: T.nilable(::Stripe::SubscriptionService::CreateParams::InvoiceSettings::Issuer)).void
}
def initialize(account_tax_ids: nil, issuer: nil); end
end
@@ -1091,12 +1087,12 @@ module Stripe
end
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::Item::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::Item::BillingThresholds)))
}
attr_accessor :billing_thresholds
# The coupons to redeem into discounts for the subscription item.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionService::CreateParams::Item::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionService::CreateParams::Item::Discount])))
}
attr_accessor :discounts
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -1115,10 +1111,10 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :quantity
# A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :tax_rates
sig {
- params(billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::Item::BillingThresholds))), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionService::CreateParams::Item::Discount]))), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionService::CreateParams::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String])))).void
+ params(billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::Item::BillingThresholds)), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionService::CreateParams::Item::Discount])), metadata: T.nilable(T::Hash[String, String]), plan: T.nilable(String), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionService::CreateParams::Item::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void
}
def initialize(
billing_thresholds: nil,
@@ -1270,41 +1266,41 @@ module Stripe
end
# This sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::AcssDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::AcssDebit)))
}
attr_accessor :acss_debit
# This sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::Bancontact))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::Bancontact)))
}
attr_accessor :bancontact
# This sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::Card))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::Card)))
}
attr_accessor :card
# This sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance)))
}
attr_accessor :customer_balance
# This sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::Konbini))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::Konbini)))
}
attr_accessor :konbini
# This sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::SepaDebit))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::SepaDebit)))
}
attr_accessor :sepa_debit
# This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount)))
}
attr_accessor :us_bank_account
sig {
- params(acss_debit: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::AcssDebit))), bancontact: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::Bancontact))), card: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::Card))), customer_balance: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance))), konbini: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::Konbini))), sepa_debit: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::SepaDebit))), us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount)))).void
+ params(acss_debit: T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::AcssDebit)), bancontact: T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::Bancontact)), card: T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::Card)), customer_balance: T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::CustomerBalance)), konbini: T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::Konbini)), sepa_debit: T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::SepaDebit)), us_bank_account: T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions::UsBankAccount))).void
}
def initialize(
acss_debit: nil,
@@ -1322,13 +1318,13 @@ module Stripe
}
attr_accessor :payment_method_options
# The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :payment_method_types
# Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off` if unspecified.
sig { returns(T.nilable(String)) }
attr_accessor :save_default_payment_method
sig {
- params(payment_method_options: T.nilable(::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions), payment_method_types: T.nilable(T.nilable(T.any(String, T::Array[String]))), save_default_payment_method: T.nilable(String)).void
+ params(payment_method_options: T.nilable(::Stripe::SubscriptionService::CreateParams::PaymentSettings::PaymentMethodOptions), payment_method_types: T.nilable(T.any(String, T::Array[String])), save_default_payment_method: T.nilable(String)).void
}
def initialize(
payment_method_options: nil,
@@ -1378,7 +1374,7 @@ module Stripe
}
attr_accessor :add_invoice_items
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
- sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
+ sig { returns(T.nilable(T.any(String, Float))) }
attr_accessor :application_fee_percent
# Automatic tax settings for this subscription.
sig { returns(T.nilable(::Stripe::SubscriptionService::CreateParams::AutomaticTax)) }
@@ -1399,7 +1395,7 @@ module Stripe
attr_accessor :billing_mode
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::BillingThresholds))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::BillingThresholds)))
}
attr_accessor :billing_thresholds
# A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
@@ -1427,14 +1423,14 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :default_source
# The tax rates that will apply to any subscription item that does not have `tax_rates` set. Invoices created will have their `default_tax_rates` populated from the subscription.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :default_tax_rates
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
sig { returns(T.nilable(String)) }
attr_accessor :description
# The coupons to redeem into discounts for the subscription. If not specified or empty, inherits the discount from the subscription's customer.
sig {
- returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionService::CreateParams::Discount]))))
+ returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionService::CreateParams::Discount])))
}
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
@@ -1447,13 +1443,13 @@ module Stripe
sig { returns(T.nilable(T::Array[::Stripe::SubscriptionService::CreateParams::Item])) }
attr_accessor :items
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `false` (on-session).
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :off_session
# The account on behalf of which to charge, for each of the subscription's invoices.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :on_behalf_of
# Only applies to subscriptions with `collection_method=charge_automatically`.
#
@@ -1473,7 +1469,7 @@ module Stripe
attr_accessor :payment_settings
# Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://stripe.com/docs/api#create_invoice) for the given subscription at the specified interval.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PendingInvoiceItemInterval))))
+ returns(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PendingInvoiceItemInterval)))
}
attr_accessor :pending_invoice_item_interval
# Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
@@ -1495,7 +1491,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::SubscriptionService::CreateParams::TrialSettings)) }
attr_accessor :trial_settings
sig {
- params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionService::CreateParams::AddInvoiceItem]), application_fee_percent: T.nilable(T.nilable(T.any(String, Float))), automatic_tax: T.nilable(::Stripe::SubscriptionService::CreateParams::AutomaticTax), backdate_start_date: T.nilable(Integer), billing_cycle_anchor: T.nilable(Integer), billing_cycle_anchor_config: T.nilable(::Stripe::SubscriptionService::CreateParams::BillingCycleAnchorConfig), billing_mode: T.nilable(::Stripe::SubscriptionService::CreateParams::BillingMode), billing_thresholds: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::BillingThresholds))), cancel_at: T.nilable(T.any(Integer, String)), cancel_at_period_end: T.nilable(T::Boolean), collection_method: T.nilable(String), currency: T.nilable(String), customer: String, days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T.nilable(T.any(String, T::Array[String]))), description: T.nilable(String), discounts: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionService::CreateParams::Discount]))), expand: T.nilable(T::Array[String]), invoice_settings: T.nilable(::Stripe::SubscriptionService::CreateParams::InvoiceSettings), items: T.nilable(T::Array[::Stripe::SubscriptionService::CreateParams::Item]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), off_session: T.nilable(T::Boolean), on_behalf_of: T.nilable(T.nilable(String)), payment_behavior: T.nilable(String), payment_settings: T.nilable(::Stripe::SubscriptionService::CreateParams::PaymentSettings), pending_invoice_item_interval: T.nilable(T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PendingInvoiceItemInterval))), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::SubscriptionService::CreateParams::TransferData), trial_end: T.nilable(T.any(String, Integer)), trial_from_plan: T.nilable(T::Boolean), trial_period_days: T.nilable(Integer), trial_settings: T.nilable(::Stripe::SubscriptionService::CreateParams::TrialSettings)).void
+ params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionService::CreateParams::AddInvoiceItem]), application_fee_percent: T.nilable(T.any(String, Float)), automatic_tax: T.nilable(::Stripe::SubscriptionService::CreateParams::AutomaticTax), backdate_start_date: T.nilable(Integer), billing_cycle_anchor: T.nilable(Integer), billing_cycle_anchor_config: T.nilable(::Stripe::SubscriptionService::CreateParams::BillingCycleAnchorConfig), billing_mode: T.nilable(::Stripe::SubscriptionService::CreateParams::BillingMode), billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::BillingThresholds)), cancel_at: T.nilable(T.any(Integer, String)), cancel_at_period_end: T.nilable(T::Boolean), collection_method: T.nilable(String), currency: T.nilable(String), customer: String, days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionService::CreateParams::Discount])), expand: T.nilable(T::Array[String]), invoice_settings: T.nilable(::Stripe::SubscriptionService::CreateParams::InvoiceSettings), items: T.nilable(T::Array[::Stripe::SubscriptionService::CreateParams::Item]), metadata: T.nilable(T.any(String, T::Hash[String, String])), off_session: T.nilable(T::Boolean), on_behalf_of: T.nilable(String), payment_behavior: T.nilable(String), payment_settings: T.nilable(::Stripe::SubscriptionService::CreateParams::PaymentSettings), pending_invoice_item_interval: T.nilable(T.any(String, ::Stripe::SubscriptionService::CreateParams::PendingInvoiceItemInterval)), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::SubscriptionService::CreateParams::TransferData), trial_end: T.nilable(T.any(String, Integer)), trial_from_plan: T.nilable(T::Boolean), trial_period_days: T.nilable(Integer), trial_settings: T.nilable(::Stripe::SubscriptionService::CreateParams::TrialSettings)).void
}
def initialize(
add_invoice_items: nil,
diff --git a/rbi/stripe/services/tax/calculation_service.rbi b/rbi/stripe/services/tax/calculation_service.rbi
index 53584e73e..759f3c1a0 100644
--- a/rbi/stripe/services/tax/calculation_service.rbi
+++ b/rbi/stripe/services/tax/calculation_service.rbi
@@ -17,25 +17,25 @@ module Stripe
class CustomerDetails < Stripe::RequestParams
class Address < Stripe::RequestParams
# City, district, suburb, town, or village.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :city
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
sig { returns(String) }
attr_accessor :country
# Address line 1 (e.g., street, PO Box, or company name).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :line1
# Address line 2 (e.g., apartment, suite, unit, or building).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :line2
# ZIP or postal code.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :postal_code
# State, county, province, or region. We recommend sending [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code value when possible.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :state
sig {
- params(city: T.nilable(T.nilable(String)), country: String, line1: T.nilable(T.nilable(String)), line2: T.nilable(T.nilable(String)), postal_code: T.nilable(T.nilable(String)), state: T.nilable(T.nilable(String))).void
+ params(city: T.nilable(String), country: String, line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
}
def initialize(
city: nil,
@@ -125,25 +125,25 @@ module Stripe
class ShipFromDetails < Stripe::RequestParams
class Address < Stripe::RequestParams
# City, district, suburb, town, or village.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :city
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
sig { returns(String) }
attr_accessor :country
# Address line 1 (e.g., street, PO Box, or company name).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :line1
# Address line 2 (e.g., apartment, suite, unit, or building).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :line2
# ZIP or postal code.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :postal_code
# State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix. Example: "NY" or "TX".
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :state
sig {
- params(city: T.nilable(T.nilable(String)), country: String, line1: T.nilable(T.nilable(String)), line2: T.nilable(T.nilable(String)), postal_code: T.nilable(T.nilable(String)), state: T.nilable(T.nilable(String))).void
+ params(city: T.nilable(String), country: String, line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
}
def initialize(
city: nil,
diff --git a/rbi/stripe/services/tax/registration_service.rbi b/rbi/stripe/services/tax/registration_service.rbi
index 0550bf785..2da684319 100644
--- a/rbi/stripe/services/tax/registration_service.rbi
+++ b/rbi/stripe/services/tax/registration_service.rbi
@@ -2241,10 +2241,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# If set, the registration stops being active at this time. If not set, the registration will be active indefinitely. It can be either `now` to indicate the current time, or a timestamp measured in seconds since the Unix epoch.
- sig { returns(T.nilable(T.nilable(T.any(String, T.any(String, Integer))))) }
+ sig { returns(T.nilable(T.any(String, T.any(String, Integer)))) }
attr_accessor :expires_at
sig {
- params(active_from: T.nilable(T.any(String, Integer)), expand: T.nilable(T::Array[String]), expires_at: T.nilable(T.nilable(T.any(String, T.any(String, Integer))))).void
+ params(active_from: T.nilable(T.any(String, Integer)), expand: T.nilable(T::Array[String]), expires_at: T.nilable(T.any(String, T.any(String, Integer)))).void
}
def initialize(active_from: nil, expand: nil, expires_at: nil); end
end
diff --git a/rbi/stripe/services/tax_rate_service.rbi b/rbi/stripe/services/tax_rate_service.rbi
index a9ace1ebe..fa21c68e0 100644
--- a/rbi/stripe/services/tax_rate_service.rbi
+++ b/rbi/stripe/services/tax_rate_service.rbi
@@ -135,7 +135,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :jurisdiction
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States.
sig { returns(T.nilable(String)) }
@@ -144,7 +144,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :tax_type
sig {
- params(active: T.nilable(T::Boolean), country: T.nilable(String), description: T.nilable(String), display_name: T.nilable(String), expand: T.nilable(T::Array[String]), jurisdiction: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), state: T.nilable(String), tax_type: T.nilable(String)).void
+ params(active: T.nilable(T::Boolean), country: T.nilable(String), description: T.nilable(String), display_name: T.nilable(String), expand: T.nilable(T::Array[String]), jurisdiction: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), state: T.nilable(String), tax_type: T.nilable(String)).void
}
def initialize(
active: nil,
diff --git a/rbi/stripe/services/terminal/configuration_service.rbi b/rbi/stripe/services/terminal/configuration_service.rbi
index b53d92b7e..9c3d314f2 100644
--- a/rbi/stripe/services/terminal/configuration_service.rbi
+++ b/rbi/stripe/services/terminal/configuration_service.rbi
@@ -16,9 +16,9 @@ module Stripe
class UpdateParams < Stripe::RequestParams
class BbposWiseposE < Stripe::RequestParams
# A File ID representing an image to display on the reader
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :splashscreen
- sig { params(splashscreen: T.nilable(T.nilable(String))).void }
+ sig { params(splashscreen: T.nilable(String)).void }
def initialize(splashscreen: nil); end
end
class Offline < Stripe::RequestParams
@@ -40,9 +40,9 @@ module Stripe
end
class StripeS700 < Stripe::RequestParams
# A File ID representing an image you would like displayed on the reader.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :splashscreen
- sig { params(splashscreen: T.nilable(T.nilable(String))).void }
+ sig { params(splashscreen: T.nilable(String)).void }
def initialize(splashscreen: nil); end
end
class Tipping < Stripe::RequestParams
@@ -474,9 +474,9 @@ module Stripe
end
class VerifoneP400 < Stripe::RequestParams
# A File ID representing an image you would like displayed on the reader.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :splashscreen
- sig { params(splashscreen: T.nilable(T.nilable(String))).void }
+ sig { params(splashscreen: T.nilable(String)).void }
def initialize(splashscreen: nil); end
end
class Wifi < Stripe::RequestParams
@@ -565,7 +565,7 @@ module Stripe
end
# An object containing device type specific settings for BBPOS WisePOS E readers
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::BbposWiseposE))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::BbposWiseposE)))
}
attr_accessor :bbpos_wisepos_e
# Specifies which fields in the response should be expanded.
@@ -576,36 +576,36 @@ module Stripe
attr_accessor :name
# Configurations for collecting transactions offline.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::Offline))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::Offline)))
}
attr_accessor :offline
# Reboot time settings for readers that support customized reboot time configuration.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::RebootWindow))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::RebootWindow)))
}
attr_accessor :reboot_window
# An object containing device type specific settings for Stripe S700 readers
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::StripeS700))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::StripeS700)))
}
attr_accessor :stripe_s700
# Tipping configurations for readers supporting on-reader tips
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping)))
}
attr_accessor :tipping
# An object containing device type specific settings for Verifone P400 readers
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::VerifoneP400))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::VerifoneP400)))
}
attr_accessor :verifone_p400
# Configurations for connecting to a WiFi network.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::Wifi))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::Wifi)))
}
attr_accessor :wifi
sig {
- params(bbpos_wisepos_e: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::BbposWiseposE))), expand: T.nilable(T::Array[String]), name: T.nilable(String), offline: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::Offline))), reboot_window: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::RebootWindow))), stripe_s700: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::StripeS700))), tipping: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping))), verifone_p400: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::VerifoneP400))), wifi: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::Wifi)))).void
+ params(bbpos_wisepos_e: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::BbposWiseposE)), expand: T.nilable(T::Array[String]), name: T.nilable(String), offline: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::Offline)), reboot_window: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::RebootWindow)), stripe_s700: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::StripeS700)), tipping: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping)), verifone_p400: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::VerifoneP400)), wifi: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::UpdateParams::Wifi))).void
}
def initialize(
bbpos_wisepos_e: nil,
@@ -649,9 +649,9 @@ module Stripe
class CreateParams < Stripe::RequestParams
class BbposWiseposE < Stripe::RequestParams
# A File ID representing an image to display on the reader
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :splashscreen
- sig { params(splashscreen: T.nilable(T.nilable(String))).void }
+ sig { params(splashscreen: T.nilable(String)).void }
def initialize(splashscreen: nil); end
end
class Offline < Stripe::RequestParams
@@ -673,9 +673,9 @@ module Stripe
end
class StripeS700 < Stripe::RequestParams
# A File ID representing an image you would like displayed on the reader.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :splashscreen
- sig { params(splashscreen: T.nilable(T.nilable(String))).void }
+ sig { params(splashscreen: T.nilable(String)).void }
def initialize(splashscreen: nil); end
end
class Tipping < Stripe::RequestParams
@@ -1107,9 +1107,9 @@ module Stripe
end
class VerifoneP400 < Stripe::RequestParams
# A File ID representing an image you would like displayed on the reader.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :splashscreen
- sig { params(splashscreen: T.nilable(T.nilable(String))).void }
+ sig { params(splashscreen: T.nilable(String)).void }
def initialize(splashscreen: nil); end
end
class Wifi < Stripe::RequestParams
@@ -1209,7 +1209,7 @@ module Stripe
attr_accessor :name
# Configurations for collecting transactions offline.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::CreateParams::Offline))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::CreateParams::Offline)))
}
attr_accessor :offline
# Reboot time settings for readers that support customized reboot time configuration.
@@ -1224,7 +1224,7 @@ module Stripe
attr_accessor :stripe_s700
# Tipping configurations for readers supporting on-reader tips
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping)))
}
attr_accessor :tipping
# An object containing device type specific settings for Verifone P400 readers
@@ -1234,11 +1234,11 @@ module Stripe
attr_accessor :verifone_p400
# Configurations for connecting to a WiFi network.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::CreateParams::Wifi))))
+ returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::CreateParams::Wifi)))
}
attr_accessor :wifi
sig {
- params(bbpos_wisepos_e: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::BbposWiseposE), expand: T.nilable(T::Array[String]), name: T.nilable(String), offline: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::CreateParams::Offline))), reboot_window: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::RebootWindow), stripe_s700: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::StripeS700), tipping: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping))), verifone_p400: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::VerifoneP400), wifi: T.nilable(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::CreateParams::Wifi)))).void
+ params(bbpos_wisepos_e: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::BbposWiseposE), expand: T.nilable(T::Array[String]), name: T.nilable(String), offline: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::CreateParams::Offline)), reboot_window: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::RebootWindow), stripe_s700: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::StripeS700), tipping: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::CreateParams::Tipping)), verifone_p400: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::VerifoneP400), wifi: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationService::CreateParams::Wifi))).void
}
def initialize(
bbpos_wisepos_e: nil,
diff --git a/rbi/stripe/services/terminal/location_service.rbi b/rbi/stripe/services/terminal/location_service.rbi
index 1b61d5332..d37770b0c 100644
--- a/rbi/stripe/services/terminal/location_service.rbi
+++ b/rbi/stripe/services/terminal/location_service.rbi
@@ -49,19 +49,19 @@ module Stripe
sig { returns(T.nilable(::Stripe::Terminal::LocationService::UpdateParams::Address)) }
attr_accessor :address
# The ID of a configuration that will be used to customize all readers in this location.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :configuration_overrides
# A name for the location.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :display_name
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(address: T.nilable(::Stripe::Terminal::LocationService::UpdateParams::Address), configuration_overrides: T.nilable(T.nilable(String)), display_name: T.nilable(T.nilable(String)), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(address: T.nilable(::Stripe::Terminal::LocationService::UpdateParams::Address), configuration_overrides: T.nilable(String), display_name: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(
address: nil,
@@ -134,10 +134,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(address: ::Stripe::Terminal::LocationService::CreateParams::Address, configuration_overrides: T.nilable(String), display_name: String, expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(address: ::Stripe::Terminal::LocationService::CreateParams::Address, configuration_overrides: T.nilable(String), display_name: String, expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(
address: nil,
diff --git a/rbi/stripe/services/terminal/reader_service.rbi b/rbi/stripe/services/terminal/reader_service.rbi
index 409cd7af1..e4c3761e1 100644
--- a/rbi/stripe/services/terminal/reader_service.rbi
+++ b/rbi/stripe/services/terminal/reader_service.rbi
@@ -18,13 +18,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# The new label of the reader.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :label
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), label: T.nilable(T.nilable(String)), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), label: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, label: nil, metadata: nil); end
end
@@ -78,13 +78,13 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :location
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# A code generated by the reader used for registering to an account.
sig { returns(String) }
attr_accessor :registration_code
sig {
- params(expand: T.nilable(T::Array[String]), label: T.nilable(String), location: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), registration_code: String).void
+ params(expand: T.nilable(T::Array[String]), label: T.nilable(String), location: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), registration_code: String).void
}
def initialize(
expand: nil,
diff --git a/rbi/stripe/services/test_helpers/confirmation_token_service.rbi b/rbi/stripe/services/test_helpers/confirmation_token_service.rbi
index 7089b1fd2..8ca0b4e06 100644
--- a/rbi/stripe/services/test_helpers/confirmation_token_service.rbi
+++ b/rbi/stripe/services/test_helpers/confirmation_token_service.rbi
@@ -83,23 +83,23 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
sig { returns(T.nilable(String)) }
attr_accessor :tax_id
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
+ params(address: T.nilable(T.any(String, ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), tax_id: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
end
@@ -687,10 +687,10 @@ module Stripe
sig { returns(String) }
attr_accessor :name
# Recipient phone (including extension)
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
sig {
- params(address: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::Shipping::Address, name: String, phone: T.nilable(T.nilable(String))).void
+ params(address: ::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::Shipping::Address, name: String, phone: T.nilable(String)).void
}
def initialize(address: nil, name: nil, phone: nil); end
end
diff --git a/rbi/stripe/services/token_service.rbi b/rbi/stripe/services/token_service.rbi
index 3198f26b3..f0e3b03cb 100644
--- a/rbi/stripe/services/token_service.rbi
+++ b/rbi/stripe/services/token_service.rbi
@@ -232,21 +232,21 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :ownership_declaration_shown_and_signed
# 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.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :ownership_exemption_reason
# The company's phone number (used for verification).
sig { returns(T.nilable(String)) }
attr_accessor :phone
# When the business was incorporated or registered.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Account::Company::RegistrationDate))))
+ returns(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Account::Company::RegistrationDate)))
}
attr_accessor :registration_date
# The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
sig { returns(T.nilable(String)) }
attr_accessor :registration_number
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
- sig { returns(T.nilable(T.nilable(T.any(String, String)))) }
+ sig { returns(T.nilable(T.any(String, String))) }
attr_accessor :structure
# The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
sig { returns(T.nilable(String)) }
@@ -263,7 +263,7 @@ module Stripe
}
attr_accessor :verification
sig {
- params(address: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::Address), address_kana: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::AddressKana), address_kanji: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.nilable(T.any(String, String))), phone: T.nilable(String), registration_date: T.nilable(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Account::Company::RegistrationDate))), registration_number: T.nilable(String), structure: T.nilable(T.nilable(T.any(String, String))), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::Verification)).void
+ params(address: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::Address), address_kana: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::AddressKana), address_kanji: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Account::Company::RegistrationDate)), registration_number: T.nilable(String), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::TokenService::CreateParams::Account::Company::Verification)).void
}
def initialize(
address: nil,
@@ -448,13 +448,13 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :owner
# The percent owned by the person of the account's legal entity.
- sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
+ sig { returns(T.nilable(T.any(String, Float))) }
attr_accessor :percent_ownership
# The person's title (e.g., CEO, Support Engineer).
sig { returns(T.nilable(String)) }
attr_accessor :title
sig {
- params(director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.nilable(T.any(String, Float))), title: T.nilable(String)).void
+ params(director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.any(String, Float)), title: T.nilable(String)).void
}
def initialize(
director: nil,
@@ -517,7 +517,7 @@ module Stripe
attr_accessor :address_kanji
# The individual's date of birth.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Account::Individual::Dob))))
+ returns(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Account::Individual::Dob)))
}
attr_accessor :dob
# The individual's email address.
@@ -533,7 +533,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :first_name_kanji
# A list of alternate names or aliases that the individual is known by.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :full_name_aliases
# The individual's gender
sig { returns(T.nilable(String)) }
@@ -557,7 +557,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :maiden_name
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The individual's phone number.
sig { returns(T.nilable(String)) }
@@ -584,7 +584,7 @@ module Stripe
}
attr_accessor :verification
sig {
- params(address: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::Address), address_kana: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::AddressKana), address_kanji: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::AddressKanji), dob: T.nilable(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Account::Individual::Dob))), email: T.nilable(String), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.nilable(T.any(String, T::Array[String]))), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::RegisteredAddress), relationship: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::Relationship), ssn_last_4: T.nilable(String), verification: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::Verification)).void
+ params(address: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::Address), address_kana: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::AddressKana), address_kanji: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::AddressKanji), dob: T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Account::Individual::Dob)), email: T.nilable(String), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.any(String, T::Array[String])), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::RegisteredAddress), relationship: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::Relationship), ssn_last_4: T.nilable(String), verification: T.nilable(::Stripe::TokenService::CreateParams::Account::Individual::Verification)).void
}
def initialize(
address: nil,
@@ -756,10 +756,10 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :ip
# The user agent of the browser from which the account representative accepted the service agreement.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :user_agent
sig {
- params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
+ params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
}
def initialize(date: nil, ip: nil, user_agent: nil); end
end
@@ -975,7 +975,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :owner
# The percent owned by the person of the account's legal entity.
- sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
+ sig { returns(T.nilable(T.any(String, Float))) }
attr_accessor :percent_ownership
# Whether the person is authorized as the primary representative of the account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account.
sig { returns(T.nilable(T::Boolean)) }
@@ -984,7 +984,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :title
sig {
- params(authorizer: T.nilable(T::Boolean), director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), legal_guardian: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.nilable(T.any(String, Float))), representative: T.nilable(T::Boolean), title: T.nilable(String)).void
+ params(authorizer: T.nilable(T::Boolean), director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), legal_guardian: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.any(String, Float)), representative: T.nilable(T::Boolean), title: T.nilable(String)).void
}
def initialize(
authorizer: nil,
@@ -1093,9 +1093,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::TokenService::CreateParams::Person::AddressKanji)) }
attr_accessor :address_kanji
# The person's date of birth.
- sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Person::Dob))))
- }
+ sig { returns(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Person::Dob))) }
attr_accessor :dob
# Documents that may be submitted to satisfy various informational requests.
sig { returns(T.nilable(::Stripe::TokenService::CreateParams::Person::Documents)) }
@@ -1113,7 +1111,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :first_name_kanji
# A list of alternate names or aliases that the person is known by.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
+ sig { returns(T.nilable(T.any(String, T::Array[String]))) }
attr_accessor :full_name_aliases
# The person's gender (International regulations require either "male" or "female").
sig { returns(T.nilable(String)) }
@@ -1137,7 +1135,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :maiden_name
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The country where the person is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)), or "XX" if unavailable.
sig { returns(T.nilable(String)) }
@@ -1164,7 +1162,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::TokenService::CreateParams::Person::Verification)) }
attr_accessor :verification
sig {
- params(additional_tos_acceptances: T.nilable(::Stripe::TokenService::CreateParams::Person::AdditionalTosAcceptances), address: T.nilable(::Stripe::TokenService::CreateParams::Person::Address), address_kana: T.nilable(::Stripe::TokenService::CreateParams::Person::AddressKana), address_kanji: T.nilable(::Stripe::TokenService::CreateParams::Person::AddressKanji), dob: T.nilable(T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Person::Dob))), documents: T.nilable(::Stripe::TokenService::CreateParams::Person::Documents), email: T.nilable(String), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.nilable(T.any(String, T::Array[String]))), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), nationality: T.nilable(String), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::TokenService::CreateParams::Person::RegisteredAddress), relationship: T.nilable(::Stripe::TokenService::CreateParams::Person::Relationship), ssn_last_4: T.nilable(String), us_cfpb_data: T.nilable(::Stripe::TokenService::CreateParams::Person::UsCfpbData), verification: T.nilable(::Stripe::TokenService::CreateParams::Person::Verification)).void
+ params(additional_tos_acceptances: T.nilable(::Stripe::TokenService::CreateParams::Person::AdditionalTosAcceptances), address: T.nilable(::Stripe::TokenService::CreateParams::Person::Address), address_kana: T.nilable(::Stripe::TokenService::CreateParams::Person::AddressKana), address_kanji: T.nilable(::Stripe::TokenService::CreateParams::Person::AddressKanji), dob: T.nilable(T.any(String, ::Stripe::TokenService::CreateParams::Person::Dob)), documents: T.nilable(::Stripe::TokenService::CreateParams::Person::Documents), email: T.nilable(String), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.any(String, T::Array[String])), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), nationality: T.nilable(String), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::TokenService::CreateParams::Person::RegisteredAddress), relationship: T.nilable(::Stripe::TokenService::CreateParams::Person::Relationship), ssn_last_4: T.nilable(String), us_cfpb_data: T.nilable(::Stripe::TokenService::CreateParams::Person::UsCfpbData), verification: T.nilable(::Stripe::TokenService::CreateParams::Person::Verification)).void
}
def initialize(
additional_tos_acceptances: nil,
diff --git a/rbi/stripe/services/topup_service.rbi b/rbi/stripe/services/topup_service.rbi
index abc548342..54452b563 100644
--- a/rbi/stripe/services/topup_service.rbi
+++ b/rbi/stripe/services/topup_service.rbi
@@ -89,7 +89,7 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The ID of a source to transfer funds from. For most users, this should be left unspecified which will use the bank account that was set up in the dashboard for the specified currency. In test mode, this can be a test bank token (see [Testing Top-ups](https://stripe.com/docs/connect/testing#testing-top-ups)).
sig { returns(T.nilable(String)) }
@@ -101,7 +101,7 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :transfer_group
sig {
- params(amount: Integer, currency: String, description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), source: T.nilable(String), statement_descriptor: T.nilable(String), transfer_group: T.nilable(String)).void
+ params(amount: Integer, currency: String, description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), source: T.nilable(String), statement_descriptor: T.nilable(String), transfer_group: T.nilable(String)).void
}
def initialize(
amount: nil,
@@ -129,10 +129,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(description: nil, expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/services/transfer_reversal_service.rbi b/rbi/stripe/services/transfer_reversal_service.rbi
index aedb38269..eb6992abe 100644
--- a/rbi/stripe/services/transfer_reversal_service.rbi
+++ b/rbi/stripe/services/transfer_reversal_service.rbi
@@ -33,13 +33,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# Boolean indicating whether the application fee should be refunded when reversing this transfer. If a full transfer reversal is given, the full application fee will be refunded. Otherwise, the application fee will be refunded with an amount proportional to the amount of the transfer reversed.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :refund_application_fee
sig {
- params(amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), refund_application_fee: T.nilable(T::Boolean)).void
+ params(amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), refund_application_fee: T.nilable(T::Boolean)).void
}
def initialize(
amount: nil,
@@ -61,10 +61,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/services/transfer_service.rbi b/rbi/stripe/services/transfer_service.rbi
index a50ea2b05..37c2c4153 100644
--- a/rbi/stripe/services/transfer_service.rbi
+++ b/rbi/stripe/services/transfer_service.rbi
@@ -116,10 +116,10 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
sig {
- params(description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
+ params(description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void
}
def initialize(description: nil, expand: nil, metadata: nil); end
end
diff --git a/rbi/stripe/services/treasury/financial_account_service.rbi b/rbi/stripe/services/treasury/financial_account_service.rbi
index 5e82fd93c..a211f7777 100644
--- a/rbi/stripe/services/treasury/financial_account_service.rbi
+++ b/rbi/stripe/services/treasury/financial_account_service.rbi
@@ -246,7 +246,7 @@ module Stripe
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
# The nickname for the FinancialAccount.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :nickname
# The set of functionalities that the platform can restrict on the FinancialAccount.
sig {
@@ -257,7 +257,7 @@ module Stripe
sig { returns(T::Array[String]) }
attr_accessor :supported_currencies
sig {
- params(expand: T.nilable(T::Array[String]), features: T.nilable(::Stripe::Treasury::FinancialAccountService::CreateParams::Features), metadata: T.nilable(T::Hash[String, String]), nickname: T.nilable(T.nilable(String)), platform_restrictions: T.nilable(::Stripe::Treasury::FinancialAccountService::CreateParams::PlatformRestrictions), supported_currencies: T::Array[String]).void
+ params(expand: T.nilable(T::Array[String]), features: T.nilable(::Stripe::Treasury::FinancialAccountService::CreateParams::Features), metadata: T.nilable(T::Hash[String, String]), nickname: T.nilable(String), platform_restrictions: T.nilable(::Stripe::Treasury::FinancialAccountService::CreateParams::PlatformRestrictions), supported_currencies: T::Array[String]).void
}
def initialize(
expand: nil,
@@ -484,7 +484,7 @@ module Stripe
sig { returns(T.nilable(T::Hash[String, String])) }
attr_accessor :metadata
# The nickname for the FinancialAccount.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :nickname
# The set of functionalities that the platform can restrict on the FinancialAccount.
sig {
@@ -492,7 +492,7 @@ module Stripe
}
attr_accessor :platform_restrictions
sig {
- params(expand: T.nilable(T::Array[String]), features: T.nilable(::Stripe::Treasury::FinancialAccountService::UpdateParams::Features), forwarding_settings: T.nilable(::Stripe::Treasury::FinancialAccountService::UpdateParams::ForwardingSettings), metadata: T.nilable(T::Hash[String, String]), nickname: T.nilable(T.nilable(String)), platform_restrictions: T.nilable(::Stripe::Treasury::FinancialAccountService::UpdateParams::PlatformRestrictions)).void
+ params(expand: T.nilable(T::Array[String]), features: T.nilable(::Stripe::Treasury::FinancialAccountService::UpdateParams::Features), forwarding_settings: T.nilable(::Stripe::Treasury::FinancialAccountService::UpdateParams::ForwardingSettings), metadata: T.nilable(T::Hash[String, String]), nickname: T.nilable(String), platform_restrictions: T.nilable(::Stripe::Treasury::FinancialAccountService::UpdateParams::PlatformRestrictions)).void
}
def initialize(
expand: nil,
diff --git a/rbi/stripe/services/treasury/outbound_payment_service.rbi b/rbi/stripe/services/treasury/outbound_payment_service.rbi
index 08c4d629f..12971ee74 100644
--- a/rbi/stripe/services/treasury/outbound_payment_service.rbi
+++ b/rbi/stripe/services/treasury/outbound_payment_service.rbi
@@ -100,20 +100,20 @@ module Stripe
end
# Billing address.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Treasury::OutboundPaymentService::CreateParams::DestinationPaymentMethodData::BillingDetails::Address))))
+ returns(T.nilable(T.any(String, ::Stripe::Treasury::OutboundPaymentService::CreateParams::DestinationPaymentMethodData::BillingDetails::Address)))
}
attr_accessor :address
# Email address.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :email
# Full name.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :name
# Billing phone number (including extension).
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :phone
sig {
- params(address: T.nilable(T.nilable(T.any(String, ::Stripe::Treasury::OutboundPaymentService::CreateParams::DestinationPaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String))).void
+ params(address: T.nilable(T.any(String, ::Stripe::Treasury::OutboundPaymentService::CreateParams::DestinationPaymentMethodData::BillingDetails::Address)), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void
}
def initialize(address: nil, email: nil, name: nil, phone: nil); end
end
@@ -184,11 +184,11 @@ module Stripe
end
# Optional fields for `us_bank_account`.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Treasury::OutboundPaymentService::CreateParams::DestinationPaymentMethodOptions::UsBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::Treasury::OutboundPaymentService::CreateParams::DestinationPaymentMethodOptions::UsBankAccount)))
}
attr_accessor :us_bank_account
sig {
- params(us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::Treasury::OutboundPaymentService::CreateParams::DestinationPaymentMethodOptions::UsBankAccount)))).void
+ params(us_bank_account: T.nilable(T.any(String, ::Stripe::Treasury::OutboundPaymentService::CreateParams::DestinationPaymentMethodOptions::UsBankAccount))).void
}
def initialize(us_bank_account: nil); end
end
diff --git a/rbi/stripe/services/treasury/outbound_transfer_service.rbi b/rbi/stripe/services/treasury/outbound_transfer_service.rbi
index 85cce2ef6..2ea34f802 100644
--- a/rbi/stripe/services/treasury/outbound_transfer_service.rbi
+++ b/rbi/stripe/services/treasury/outbound_transfer_service.rbi
@@ -57,11 +57,11 @@ module Stripe
end
# Optional fields for `us_bank_account`.
sig {
- returns(T.nilable(T.nilable(T.any(String, ::Stripe::Treasury::OutboundTransferService::CreateParams::DestinationPaymentMethodOptions::UsBankAccount))))
+ returns(T.nilable(T.any(String, ::Stripe::Treasury::OutboundTransferService::CreateParams::DestinationPaymentMethodOptions::UsBankAccount)))
}
attr_accessor :us_bank_account
sig {
- params(us_bank_account: T.nilable(T.nilable(T.any(String, ::Stripe::Treasury::OutboundTransferService::CreateParams::DestinationPaymentMethodOptions::UsBankAccount)))).void
+ params(us_bank_account: T.nilable(T.any(String, ::Stripe::Treasury::OutboundTransferService::CreateParams::DestinationPaymentMethodOptions::UsBankAccount))).void
}
def initialize(us_bank_account: nil); end
end
diff --git a/rbi/stripe/services/webhook_endpoint_service.rbi b/rbi/stripe/services/webhook_endpoint_service.rbi
index 5a89badc5..b26cc4a92 100644
--- a/rbi/stripe/services/webhook_endpoint_service.rbi
+++ b/rbi/stripe/services/webhook_endpoint_service.rbi
@@ -14,7 +14,7 @@ module Stripe
end
class UpdateParams < Stripe::RequestParams
# An optional description of what the webhook is used for.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# Disable the webhook endpoint if set to true.
sig { returns(T.nilable(T::Boolean)) }
@@ -26,13 +26,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The URL of the webhook endpoint.
sig { returns(T.nilable(String)) }
attr_accessor :url
sig {
- params(description: T.nilable(T.nilable(String)), disabled: T.nilable(T::Boolean), enabled_events: T.nilable(T::Array[String]), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), url: T.nilable(String)).void
+ params(description: T.nilable(String), disabled: T.nilable(T::Boolean), enabled_events: T.nilable(T::Array[String]), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), url: T.nilable(String)).void
}
def initialize(
description: nil,
@@ -69,7 +69,7 @@ module Stripe
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :connect
# An optional description of what the webhook is used for.
- sig { returns(T.nilable(T.nilable(String))) }
+ sig { returns(T.nilable(String)) }
attr_accessor :description
# The list of events to enable for this endpoint. You may specify `['*']` to enable all events, except those that require explicit selection.
sig { returns(T::Array[String]) }
@@ -78,13 +78,13 @@ module Stripe
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
- sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
+ sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) }
attr_accessor :metadata
# The URL of the webhook endpoint.
sig { returns(String) }
attr_accessor :url
sig {
- params(api_version: T.nilable(String), connect: T.nilable(T::Boolean), description: T.nilable(T.nilable(String)), enabled_events: T::Array[String], expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), url: String).void
+ params(api_version: T.nilable(String), connect: T.nilable(T::Boolean), description: T.nilable(String), enabled_events: T::Array[String], expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), url: String).void
}
def initialize(
api_version: nil,