Compare commits

...

2 Commits

Author SHA1 Message Date
Ramya Rao
31dbce8464 Bump version to 15.4.0 2025-07-30 10:16:16 -07:00
stripe-openapi[bot]
fb0436b611
Update generated code for v1868 and 2025-07-30.basil (#1627)
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
2025-07-30 09:21:32 -07:00
94 changed files with 3834 additions and 472 deletions

View File

@ -1 +1 @@
2025-06-30.basil
2025-07-30.basil

View File

@ -1,5 +1,26 @@
# Changelog
## 15.4.0 - 2025-07-30
This release changes the pinned API version to `2025-07-30.basil`.
* [#1627](https://github.com/stripe/stripe-ruby/pull/1627) Update generated code
* Add support for `instant_payouts_promotion` on `AccountSession::Component` and `AccountSession::CreateParams::Component`
* Add support for `adjustable_quantity` on `BillingPortal::Configuration::CreateParams::Feature::SubscriptionUpdate::Product`, `BillingPortal::Configuration::Feature::SubscriptionUpdate::Product`, and `BillingPortal::Configuration::UpdateParams::Feature::SubscriptionUpdate::Product`
* Add support for `transaction_id` on `Charge::PaymentMethodDetail::Cashapp`
* Add support for `origin_context` on `Checkout::Session::CreateParams` and `Checkout::Session`
* Add support for `template` on `Checkout::Session::CreateParams::InvoiceCreation::InvoiceDatum::RenderingOption`, `Checkout::Session::InvoiceCreation::InvoiceDatum::RenderingOption`, `PaymentLink::CreateParams::InvoiceCreation::InvoiceDatum::RenderingOption`, `PaymentLink::InvoiceCreation::InvoiceDatum::RenderingOption`, and `PaymentLink::UpdateParams::InvoiceCreation::InvoiceDatum::RenderingOption`
* Add support for `setup_future_usage` on `Checkout::Session::CreateParams::PaymentMethodOption::Pix` and `Checkout::Session::PaymentMethodOption::Pix`
* Change `Identity::VerificationSession::RelatedPerson.account` to be required
* Change `Identity::VerificationSession::RelatedPerson.person` to be required
* Add support for `duration` on `Invoice::CreatePreviewParams::ScheduleDetail::Phase`, `SubscriptionSchedule::CreateParams::Phase`, and `SubscriptionSchedule::UpdateParams::Phase`
* Change type of `Invoice::CreatePreviewParams::SubscriptionDetail.cancel_at`, `Subscription::CreateParams.cancel_at`, and `Subscription::UpdateParams.cancel_at` from `DateTime` to `DateTime | enum('max_period_end'|'min_period_end')`
* Add support for `price_data` on `PaymentLink::CreateParams::LineItem`
* Change `PaymentLink::CreateParams::LineItem.price` to be optional
* Add support for `standard` on `Tax::Registration::CountryOption::Ae`, `Tax::Registration::CountryOption::Au`, `Tax::Registration::CountryOption::Ch`, `Tax::Registration::CountryOption::Gb`, `Tax::Registration::CountryOption::Jp`, `Tax::Registration::CountryOption::No`, `Tax::Registration::CountryOption::Nz`, `Tax::Registration::CountryOption::Sg`, `Tax::Registration::CreateParams::CountryOption::Ae`, `Tax::Registration::CreateParams::CountryOption::Al`, `Tax::Registration::CreateParams::CountryOption::Ao`, `Tax::Registration::CreateParams::CountryOption::Au`, `Tax::Registration::CreateParams::CountryOption::Aw`, `Tax::Registration::CreateParams::CountryOption::B`, `Tax::Registration::CreateParams::CountryOption::Ba`, `Tax::Registration::CreateParams::CountryOption::Bb`, `Tax::Registration::CreateParams::CountryOption::Bd`, `Tax::Registration::CreateParams::CountryOption::Bf`, `Tax::Registration::CreateParams::CountryOption::Bh`, `Tax::Registration::CreateParams::CountryOption::Cd`, `Tax::Registration::CreateParams::CountryOption::Ch`, `Tax::Registration::CreateParams::CountryOption::Et`, `Tax::Registration::CreateParams::CountryOption::Gb`, `Tax::Registration::CreateParams::CountryOption::Gn`, `Tax::Registration::CreateParams::CountryOption::Is`, `Tax::Registration::CreateParams::CountryOption::Jp`, `Tax::Registration::CreateParams::CountryOption::Me`, `Tax::Registration::CreateParams::CountryOption::Mk`, `Tax::Registration::CreateParams::CountryOption::Mr`, `Tax::Registration::CreateParams::CountryOption::No`, `Tax::Registration::CreateParams::CountryOption::Nz`, `Tax::Registration::CreateParams::CountryOption::Om`, `Tax::Registration::CreateParams::CountryOption::R`, `Tax::Registration::CreateParams::CountryOption::Sg`, `Tax::Registration::CreateParams::CountryOption::Sr`, `Tax::Registration::CreateParams::CountryOption::Uy`, `Tax::Registration::CreateParams::CountryOption::Za`, and `Tax::Registration::CreateParams::CountryOption::Zw`
* Add support for `aed`, `bgn`, `huf`, and `ron` on `Terminal::Configuration::CreateParams::Tipping`, `Terminal::Configuration::Tipping`, and `Terminal::Configuration::UpdateParams::Tipping`
## 15.3.0 - 2025-07-01
This release changes the pinned API version to `2025-06-30.basil`.
* [#1618](https://github.com/stripe/stripe-ruby/pull/1618) Update generated code
* Add support for `migrate` method on resource `Subscription`
* Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal::Reader`
@ -23,7 +44,6 @@
* Add support for `status` on `Treasury::FinancialAccount::ListParams`
* [#1615](https://github.com/stripe/stripe-ruby/pull/1615) Update README to mention that APIResource.request was removed
* [#1619](https://github.com/stripe/stripe-ruby/pull/1619) Updated StripeClient snippets in README
* [#1621](https://github.com/stripe/stripe-ruby/pull/1621) Disable flaky test in jruby/truffleruby
* [#1620](https://github.com/stripe/stripe-ruby/pull/1620) Fix `raw_request` example in README
## 15.2.1 - 2025-06-04

View File

@ -1 +1 @@
v1819
v1868

View File

@ -1 +1 @@
15.3.0
15.4.0

View File

@ -3,7 +3,7 @@
module Stripe
module ApiVersion
CURRENT = "2025-06-30.basil"
CURRENT = "2025-07-30.basil"
CURRENT_MAJOR = "basil"
end
end

View File

@ -71,7 +71,7 @@ module Stripe
attr_reader :estimated_worker_count
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
attr_reader :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
attr_reader :minority_owned_business_designation
# Attribute for field monthly_estimated_revenue
attr_reader :monthly_estimated_revenue
@ -700,7 +700,7 @@ module Stripe
attr_accessor :estimated_worker_count
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
attr_accessor :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
attr_accessor :minority_owned_business_designation
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
attr_accessor :monthly_estimated_revenue
@ -2751,7 +2751,7 @@ module Stripe
attr_accessor :estimated_worker_count
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
attr_accessor :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
attr_accessor :minority_owned_business_designation
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
attr_accessor :monthly_estimated_revenue
@ -4852,7 +4852,7 @@ module Stripe
#
# Test-mode accounts can be deleted at any time.
#
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
# Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
#
# If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
def self.delete(account, params = {}, opts = {})
@ -4868,7 +4868,7 @@ module Stripe
#
# Test-mode accounts can be deleted at any time.
#
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
# Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
#
# If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
def delete(params = {}, opts = {})

View File

@ -38,7 +38,9 @@ module Stripe
attr_accessor :refresh_url
# The URL that the user will be redirected to upon leaving or completing the linked flow.
attr_accessor :return_url
# The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`.
# The type of account link the user is requesting.
#
# You can create Account Links of type `account_update` only for connected accounts where your platform is responsible for collecting requirements, including Custom accounts. You can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use [Connect embedded components](/connect/get-started-connect-embedded-components), you can include components that allow your connected accounts to update their own information. For an account without Stripe-hosted Dashboard access where Stripe is liable for negative balances, you must use embedded components.
attr_accessor :type
def initialize(

View File

@ -116,6 +116,21 @@ module Stripe
attr_reader :features
end
class InstantPayoutsPromotion < Stripe::StripeObject
class Features < Stripe::StripeObject
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
attr_reader :disable_stripe_user_authentication
# Whether external account collection is enabled. This feature can only be `false` for accounts where youre responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
attr_reader :external_account_collection
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
attr_reader :instant_payouts
end
# Whether the embedded component is enabled.
attr_reader :enabled
# Attribute for field features
attr_reader :features
end
class IssuingCard < Stripe::StripeObject
class Features < Stripe::StripeObject
# Whether to allow card management features.
@ -270,6 +285,8 @@ module Stripe
attr_reader :financial_account
# Attribute for field financial_account_transactions
attr_reader :financial_account_transactions
# Attribute for field instant_payouts_promotion
attr_reader :instant_payouts_promotion
# Attribute for field issuing_card
attr_reader :issuing_card
# Attribute for field issuing_cards_list
@ -485,6 +502,36 @@ module Stripe
end
end
class InstantPayoutsPromotion < Stripe::RequestParams
class Features < Stripe::RequestParams
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
attr_accessor :disable_stripe_user_authentication
# Whether external account collection is enabled. This feature can only be `false` for accounts where youre responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
attr_accessor :external_account_collection
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
attr_accessor :instant_payouts
def initialize(
disable_stripe_user_authentication: nil,
external_account_collection: nil,
instant_payouts: nil
)
@disable_stripe_user_authentication = disable_stripe_user_authentication
@external_account_collection = external_account_collection
@instant_payouts = instant_payouts
end
end
# Whether the embedded component is enabled.
attr_accessor :enabled
# The list of features enabled in the embedded component.
attr_accessor :features
def initialize(enabled: nil, features: nil)
@enabled = enabled
@features = features
end
end
class IssuingCard < Stripe::RequestParams
class Features < Stripe::RequestParams
# Whether to allow card management features.
@ -771,6 +818,8 @@ module Stripe
attr_accessor :financial_account
# Configuration for the [financial account transactions](/connect/supported-embedded-components/financial-account-transactions/) embedded component.
attr_accessor :financial_account_transactions
# Configuration for the [instant payouts promotion](/connect/supported-embedded-components/instant-payouts-promotion/) embedded component.
attr_accessor :instant_payouts_promotion
# Configuration for the [issuing card](/connect/supported-embedded-components/issuing-card/) embedded component.
attr_accessor :issuing_card
# Configuration for the [issuing cards list](/connect/supported-embedded-components/issuing-cards-list/) embedded component.
@ -800,6 +849,7 @@ module Stripe
documents: nil,
financial_account: nil,
financial_account_transactions: nil,
instant_payouts_promotion: nil,
issuing_card: nil,
issuing_cards_list: nil,
notification_banner: nil,
@ -818,6 +868,7 @@ module Stripe
@documents = documents
@financial_account = financial_account
@financial_account_transactions = financial_account_transactions
@instant_payouts_promotion = instant_payouts_promotion
@issuing_card = issuing_card
@issuing_cards_list = issuing_cards_list
@notification_banner = notification_banner

View File

@ -86,7 +86,7 @@ module Stripe
end
# The monetary amount.
attr_accessor :monetary
# Specify the type of this amount. We currently only support `monetary` billing credits.
# The type of this amount. We currently only support `monetary` billing credits.
attr_accessor :type
def initialize(monetary: nil, type: nil)

View File

@ -60,6 +60,16 @@ module Stripe
class SubscriptionUpdate < Stripe::StripeObject
class Product < Stripe::StripeObject
class AdjustableQuantity < Stripe::StripeObject
# If true, the quantity can be adjusted to any non-negative integer.
attr_reader :enabled
# The maximum quantity that can be set for the product.
attr_reader :maximum
# The minimum quantity that can be set for the product.
attr_reader :minimum
end
# Attribute for field adjustable_quantity
attr_reader :adjustable_quantity
# The list of price IDs which, when subscribed to, a subscription can be updated.
attr_reader :prices
# The product ID.
@ -220,12 +230,29 @@ module Stripe
class SubscriptionUpdate < Stripe::RequestParams
class Product < Stripe::RequestParams
class AdjustableQuantity < Stripe::RequestParams
# Set to true if the quantity can be adjusted to any non-negative integer.
attr_accessor :enabled
# The maximum quantity that can be set for the product.
attr_accessor :maximum
# The minimum quantity that can be set for the product.
attr_accessor :minimum
def initialize(enabled: nil, maximum: nil, minimum: nil)
@enabled = enabled
@maximum = maximum
@minimum = minimum
end
end
# Control whether the quantity of the product can be adjusted.
attr_accessor :adjustable_quantity
# The list of price IDs for the product that a subscription can be updated to.
attr_accessor :prices
# The product id.
attr_accessor :product
def initialize(prices: nil, product: nil)
def initialize(adjustable_quantity: nil, prices: nil, product: nil)
@adjustable_quantity = adjustable_quantity
@prices = prices
@product = product
end
@ -419,12 +446,29 @@ module Stripe
class SubscriptionUpdate < Stripe::RequestParams
class Product < Stripe::RequestParams
class AdjustableQuantity < Stripe::RequestParams
# Set to true if the quantity can be adjusted to any non-negative integer.
attr_accessor :enabled
# The maximum quantity that can be set for the product.
attr_accessor :maximum
# The minimum quantity that can be set for the product.
attr_accessor :minimum
def initialize(enabled: nil, maximum: nil, minimum: nil)
@enabled = enabled
@maximum = maximum
@minimum = minimum
end
end
# Control whether the quantity of the product can be adjusted.
attr_accessor :adjustable_quantity
# The list of price IDs for the product that a subscription can be updated to.
attr_accessor :prices
# The product id.
attr_accessor :product
def initialize(prices: nil, product: nil)
def initialize(adjustable_quantity: nil, prices: nil, product: nil)
@adjustable_quantity = adjustable_quantity
@prices = prices
@product = product
end

View File

@ -186,7 +186,7 @@ module Stripe
class AmazonPay < Stripe::StripeObject
class Funding < Stripe::StripeObject
class Card < Stripe::StripeObject
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
attr_reader :brand
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
attr_reader :country
@ -448,7 +448,7 @@ module Stripe
attr_reader :amount_authorized
# Authorization code on the charge.
attr_reader :authorization_code
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
attr_reader :brand
# When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured.
attr_reader :capture_before
@ -539,7 +539,7 @@ module Stripe
end
# The authorized amount
attr_reader :amount_authorized
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
attr_reader :brand
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
attr_reader :brand_product
@ -596,6 +596,8 @@ module Stripe
attr_reader :buyer_id
# A public identifier for buyers using Cash App.
attr_reader :cashtag
# A unique and immutable identifier of payments assigned by Cash App
attr_reader :transaction_id
end
class Crypto < Stripe::StripeObject
@ -880,7 +882,7 @@ module Stripe
class RevolutPay < Stripe::StripeObject
class Funding < Stripe::StripeObject
class Card < Stripe::StripeObject
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
attr_reader :brand
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
attr_reader :country
@ -1119,7 +1121,7 @@ module Stripe
end
class PresentmentDetails < Stripe::StripeObject
# Amount intended to be collected by this payment, denominated in presentment_currency.
# Amount intended to be collected by this payment, denominated in `presentment_currency`.
attr_reader :presentment_amount
# Currency presented to the customer during payment.
attr_reader :presentment_currency

View File

@ -280,6 +280,8 @@ module Stripe
class RenderingOptions < Stripe::StripeObject
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
attr_reader :amount_tax_display
# ID of the invoice rendering template to be used for the generated invoice.
attr_reader :template
end
# The account tax IDs associated with the invoice.
attr_reader :account_tax_ids
@ -747,6 +749,14 @@ module Stripe
class Pix < Stripe::StripeObject
# The number of seconds after which Pix payment will expire.
attr_reader :expires_after_seconds
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
#
# 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).
attr_reader :setup_future_usage
end
class RevolutPay < Stripe::StripeObject
@ -921,7 +931,7 @@ module Stripe
end
class PresentmentDetails < Stripe::StripeObject
# Amount intended to be collected by this payment, denominated in presentment_currency.
# Amount intended to be collected by this payment, denominated in `presentment_currency`.
attr_reader :presentment_amount
# Currency presented to the customer during payment.
attr_reader :presentment_currency
@ -1409,9 +1419,12 @@ module Stripe
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.
attr_accessor :amount_tax_display
# ID of the invoice rendering template to use for this invoice.
attr_accessor :template
def initialize(amount_tax_display: nil)
def initialize(amount_tax_display: nil, template: nil)
@amount_tax_display = amount_tax_display
@template = template
end
end
# The account tax IDs associated with the invoice.
@ -2432,9 +2445,18 @@ module Stripe
class Pix < Stripe::RequestParams
# The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
attr_accessor :expires_after_seconds
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
#
# 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).
attr_accessor :setup_future_usage
def initialize(expires_after_seconds: nil)
def initialize(expires_after_seconds: nil, setup_future_usage: nil)
@expires_after_seconds = expires_after_seconds
@setup_future_usage = setup_future_usage
end
end
@ -2913,7 +2935,7 @@ module Stripe
class SubscriptionData < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
attr_accessor :type
def initialize(type: nil)
@ -3141,6 +3163,8 @@ module Stripe
#
# For `subscription` mode, there is a maximum of 20 line items and optional items with recurring Prices and 20 line items and optional items with one-time Prices.
attr_accessor :optional_items
# Where the user is coming from. This informs the optimizations that are applied to the session. For example, a session originating from a mobile app may behave more like a native app, depending on the platform. This parameter is currently not allowed if `ui_mode` is `custom`.
attr_accessor :origin_context
# A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
attr_accessor :payment_intent_data
# Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.
@ -3236,6 +3260,7 @@ module Stripe
metadata: nil,
mode: nil,
optional_items: nil,
origin_context: nil,
payment_intent_data: nil,
payment_method_collection: nil,
payment_method_configuration: nil,
@ -3281,6 +3306,7 @@ module Stripe
@metadata = metadata
@mode = mode
@optional_items = optional_items
@origin_context = origin_context
@payment_intent_data = payment_intent_data
@payment_method_collection = payment_method_collection
@payment_method_configuration = payment_method_configuration
@ -3587,6 +3613,8 @@ module Stripe
attr_reader :object
# The optional items presented to the customer at checkout.
attr_reader :optional_items
# Where the user is coming from. This informs the optimizations that are applied to the session.
attr_reader :origin_context
# The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
attr_reader :payment_intent
# The ID of the Payment Link that created this Session.

View File

@ -178,7 +178,7 @@ module Stripe
end
# The authorized amount
attr_reader :amount_authorized
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
attr_reader :brand
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
attr_reader :brand_product
@ -360,7 +360,7 @@ module Stripe
# Attribute for field visa_checkout
attr_reader :visa_checkout
end
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
attr_reader :brand
# Checks on Card address and CVC if provided.
attr_reader :checks
@ -417,7 +417,7 @@ module Stripe
# The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
attr_reader :type
end
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
attr_reader :brand
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
attr_reader :brand_product

View File

@ -781,7 +781,7 @@ module Stripe
end
# The customer's address.
attr_reader :address
# The current balance, if any, that's stored on the customer. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize.
# The current balance, if any, that's stored on the customer in their default currency. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize. For multi-currency balances, see [invoice_credit_balance](https://stripe.com/docs/api/customers/object#customer_object-invoice_credit_balance).
attr_reader :balance
# The current funds being held by Stripe on behalf of the customer. You can apply these funds towards payment intents when the source is "cash_balance". The `settings[reconciliation_mode]` field describes if these funds apply to these payment intents manually or automatically.
attr_reader :cash_balance

View File

@ -194,7 +194,7 @@ module Stripe
end
class Card < Stripe::StripeObject
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
attr_reader :brand
# The type of dispute opened. Different case types may have varying fees and financial impact.
attr_reader :case_type

View File

@ -2,35 +2,23 @@
# frozen_string_literal: true
module Stripe
# Events are our way of letting you know when something interesting happens in
# your account. When an interesting event occurs, we create a new `Event`
# object. For example, when a charge succeeds, we create a `charge.succeeded`
# event, and when an invoice payment attempt fails, we create an
# `invoice.payment_failed` event. Certain API requests might create multiple
# events. For example, if you create a new subscription for a
# customer, you receive both a `customer.subscription.created` event and a
# `charge.succeeded` event.
# Snapshot events allow you to track and react to activity in your Stripe integration. When
# the state of another API resource changes, Stripe creates an `Event` object that contains
# all the relevant information associated with that action, including the affected API
# resource. For example, a successful payment triggers a `charge.succeeded` event, which
# contains the `Charge` in the event's data property. Some actions trigger multiple events.
# For example, if you create a new subscription for a customer, it triggers both a
# `customer.subscription.created` event and a `charge.succeeded` event.
#
# Events occur when the state of another API resource changes. The event's data
# field embeds the resource's state at the time of the change. For
# example, a `charge.succeeded` event contains a charge, and an
# `invoice.payment_failed` event contains an invoice.
# Configure an event destination in your account to listen for events that represent actions
# your integration needs to respond to. Additionally, you can retrieve an individual event or
# a list of events from the API.
#
# As with other API resources, you can use endpoints to retrieve an
# [individual event](https://stripe.com/docs/api#retrieve_event) or a [list of events](https://stripe.com/docs/api#list_events)
# from the API. We also have a separate
# [webhooks](http://en.wikipedia.org/wiki/Webhook) system for sending the
# `Event` objects directly to an endpoint on your server. You can manage
# webhooks in your
# [account settings](https://dashboard.stripe.com/account/webhooks). Learn how
# to [listen for events](https://docs.stripe.com/webhooks)
# so that your integration can automatically trigger reactions.
# [Connect](https://docs.stripe.com/connect) platforms can also receive event notifications
# that occur in their connected accounts. These events include an account attribute that
# identifies the relevant connected account.
#
# When using [Connect](https://docs.stripe.com/connect), you can also receive event notifications
# that occur in connected accounts. For these events, there's an
# additional `account` attribute in the received `Event` object.
#
# We only guarantee access to events through the [Retrieve Event API](https://stripe.com/docs/api#retrieve_event)
# You can access events through the [Retrieve Event API](https://docs.stripe.com/api/events#retrieve_event)
# for 30 days.
class Event < APIResource
extend Stripe::APIOperations::List

View File

@ -579,7 +579,7 @@ module Stripe
@plan = plan
end
end
# Installment configuration for payments attempted on this invoice (Mexico Only).
# Installment configuration for payments attempted on this invoice.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
attr_accessor :installments
@ -904,7 +904,7 @@ module Stripe
attr_accessor :auto_advance
# Settings for automatic tax lookup for this invoice.
attr_accessor :automatic_tax
# The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. To turn off automatic finalization, set `auto_advance` to false.
# The time when this invoice should be scheduled to finalize (up to 5 years in the future). The invoice is finalized at this time if it's still in draft state. To turn off automatic finalization, set `auto_advance` to false.
attr_accessor :automatically_finalizes_at
# Either `charge_automatically` or `send_invoice`. This field can be updated only on `draft` invoices.
attr_accessor :collection_method
@ -1226,7 +1226,7 @@ module Stripe
@plan = plan
end
end
# Installment configuration for payments attempted on this invoice (Mexico Only).
# Installment configuration for payments attempted on this invoice.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
attr_accessor :installments
@ -1547,11 +1547,11 @@ module Stripe
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).
attr_accessor :application_fee_amount
# Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action.
# Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action. Defaults to false.
attr_accessor :auto_advance
# Settings for automatic tax lookup for this invoice.
attr_accessor :automatic_tax
# The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state.
# The time when this invoice should be scheduled to finalize (up to 5 years in the future). The invoice is finalized at this time if it's still in draft state.
attr_accessor :automatically_finalizes_at
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions. Defaults to `charge_automatically`.
attr_accessor :collection_method
@ -2547,7 +2547,7 @@ module Stripe
class ScheduleDetails < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
attr_accessor :type
def initialize(type: nil)
@ -2674,6 +2674,18 @@ module Stripe
end
end
class Duration < Stripe::RequestParams
# Specifies phase duration. Either `day`, `week`, `month` or `year`.
attr_accessor :interval
# The multiplier applied to the interval.
attr_accessor :interval_count
def initialize(interval: nil, interval_count: nil)
@interval = interval
@interval_count = interval_count
end
end
class InvoiceSettings < Stripe::RequestParams
class Issuer < Stripe::RequestParams
# The connected account being referenced when `type` is `account`.
@ -2837,13 +2849,15 @@ module Stripe
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.
attr_accessor :discounts
# The number of intervals the phase should last. If set, `end_date` must not be set.
attr_accessor :duration
# The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
attr_accessor :end_date
# All invoices will be billed using the specified settings.
attr_accessor :invoice_settings
# List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
attr_accessor :items
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set.
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead.
attr_accessor :iterations
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
attr_accessor :metadata
@ -2872,6 +2886,7 @@ module Stripe
default_tax_rates: nil,
description: nil,
discounts: nil,
duration: nil,
end_date: nil,
invoice_settings: nil,
items: nil,
@ -2895,6 +2910,7 @@ module Stripe
@default_tax_rates = default_tax_rates
@description = description
@discounts = discounts
@duration = duration
@end_date = end_date
@invoice_settings = invoice_settings
@items = items
@ -2927,7 +2943,7 @@ module Stripe
class SubscriptionDetails < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
attr_accessor :type
def initialize(type: nil)

View File

@ -316,7 +316,7 @@ module Stripe
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# The ID of an existing invoice to add this invoice item to. When left blank, the invoice item will be added to the next upcoming scheduled invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice.
# The ID of an existing invoice to add this invoice item to. For subscription invoices, when left blank, the invoice item will be added to the next upcoming scheduled invoice. For standalone invoices, the invoice item won't be automatically added unless you pass `pending_invoice_item_behavior: 'include'` when creating the invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice.
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`.
attr_accessor :metadata

View File

@ -1504,7 +1504,7 @@ module Stripe
end
class PresentmentDetails < Stripe::StripeObject
# Amount intended to be collected by this payment, denominated in presentment_currency.
# Amount intended to be collected by this payment, denominated in `presentment_currency`.
attr_reader :presentment_amount
# Currency presented to the customer during payment.
attr_reader :presentment_currency
@ -2627,7 +2627,7 @@ module Stripe
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.
attr_accessor :cvc_token
# Installment configuration for payments attempted on this PaymentIntent (Mexico Only).
# Installment configuration for payments attempted on this PaymentIntent.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
attr_accessor :installments
@ -5012,7 +5012,7 @@ module Stripe
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.
attr_accessor :cvc_token
# Installment configuration for payments attempted on this PaymentIntent (Mexico Only).
# Installment configuration for payments attempted on this PaymentIntent.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
attr_accessor :installments
@ -7461,7 +7461,7 @@ module Stripe
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.
attr_accessor :cvc_token
# Installment configuration for payments attempted on this PaymentIntent (Mexico Only).
# Installment configuration for payments attempted on this PaymentIntent.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
attr_accessor :installments
@ -9030,6 +9030,7 @@ module Stripe
# Confirm that your customer intends to pay with current or provided
# payment method. Upon confirmation, the PaymentIntent will attempt to initiate
# a payment.
#
# If the selected payment method requires additional authentication steps, the
# PaymentIntent will transition to the requires_action status and
# suggest additional actions via next_action. If payment fails,
@ -9037,18 +9038,22 @@ module Stripe
# canceled status if the confirmation limit is reached. If
# payment succeeds, the PaymentIntent will transition to the succeeded
# status (or requires_capture, if capture_method is set to manual).
#
# If the confirmation_method is automatic, payment may be attempted
# using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
# and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
# After next_actions are handled by the client, no additional
# confirmation is required to complete the payment.
#
# If the confirmation_method is manual, all payment attempts must be
# initiated using a secret key.
#
# If any actions are required for the payment, the PaymentIntent will
# return to the requires_confirmation state
# after those actions are completed. Your server needs to then
# explicitly re-confirm the PaymentIntent to initiate the next payment
# attempt.
#
# There is a variable upper limit on how many times a PaymentIntent can be confirmed.
# After this limit is reached, any further calls to this endpoint will
# transition the PaymentIntent to the canceled state.
@ -9064,6 +9069,7 @@ module Stripe
# Confirm that your customer intends to pay with current or provided
# payment method. Upon confirmation, the PaymentIntent will attempt to initiate
# a payment.
#
# If the selected payment method requires additional authentication steps, the
# PaymentIntent will transition to the requires_action status and
# suggest additional actions via next_action. If payment fails,
@ -9071,18 +9077,22 @@ module Stripe
# canceled status if the confirmation limit is reached. If
# payment succeeds, the PaymentIntent will transition to the succeeded
# status (or requires_capture, if capture_method is set to manual).
#
# If the confirmation_method is automatic, payment may be attempted
# using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
# and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
# After next_actions are handled by the client, no additional
# confirmation is required to complete the payment.
#
# If the confirmation_method is manual, all payment attempts must be
# initiated using a secret key.
#
# If any actions are required for the payment, the PaymentIntent will
# return to the requires_confirmation state
# after those actions are completed. Your server needs to then
# explicitly re-confirm the PaymentIntent to initiate the next payment
# attempt.
#
# There is a variable upper limit on how many times a PaymentIntent can be confirmed.
# After this limit is reached, any further calls to this endpoint will
# transition the PaymentIntent to the canceled state.

View File

@ -166,6 +166,8 @@ module Stripe
class RenderingOptions < Stripe::StripeObject
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
attr_reader :amount_tax_display
# ID of the invoice rendering template to be used for the generated invoice.
attr_reader :template
end
# The account tax IDs associated with the invoice.
attr_reader :account_tax_ids
@ -588,9 +590,12 @@ module Stripe
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.
attr_accessor :amount_tax_display
# ID of the invoice rendering template to use for this invoice.
attr_accessor :template
def initialize(amount_tax_display: nil)
def initialize(amount_tax_display: nil, template: nil)
@amount_tax_display = amount_tax_display
@template = template
end
end
# The account tax IDs associated with the invoice.
@ -641,7 +646,7 @@ module Stripe
class AdjustableQuantity < Stripe::RequestParams
# Set to true if the quantity can be adjusted to any non-negative Integer.
attr_accessor :enabled
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999.
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999.
attr_accessor :maximum
# The minimum quantity the customer can purchase. By default this value is 0. If there is only one item in the cart then that item's quantity cannot go down to 0.
attr_accessor :minimum
@ -652,16 +657,86 @@ module Stripe
@minimum = minimum
end
end
class PriceData < Stripe::RequestParams
class ProductData < Stripe::RequestParams
# 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.
attr_accessor :description
# A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
attr_accessor :images
# 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`.
attr_accessor :metadata
# The product's name, meant to be displayable to the customer.
attr_accessor :name
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
attr_accessor :tax_code
def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil)
@description = description
@images = images
@metadata = metadata
@name = name
@tax_code = tax_code
end
end
class Recurring < Stripe::RequestParams
# Specifies billing frequency. Either `day`, `week`, `month` or `year`.
attr_accessor :interval
# The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
attr_accessor :interval_count
def initialize(interval: nil, interval_count: nil)
@interval = interval
@interval_count = interval_count
end
end
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
attr_accessor :currency
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required.
attr_accessor :product
# Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
attr_accessor :product_data
# The recurring components of a price such as `interval` and `interval_count`.
attr_accessor :recurring
# Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
attr_accessor :tax_behavior
# A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
attr_accessor :unit_amount
# Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
attr_accessor :unit_amount_decimal
def initialize(
currency: nil,
product: nil,
product_data: nil,
recurring: nil,
tax_behavior: nil,
unit_amount: nil,
unit_amount_decimal: nil
)
@currency = currency
@product = product
@product_data = product_data
@recurring = recurring
@tax_behavior = tax_behavior
@unit_amount = unit_amount
@unit_amount_decimal = unit_amount_decimal
end
end
# When set, provides configuration for this items quantity to be adjusted by the customer during checkout.
attr_accessor :adjustable_quantity
# The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object.
attr_accessor :price
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
attr_accessor :price_data
# The quantity of the line item being purchased.
attr_accessor :quantity
def initialize(adjustable_quantity: nil, price: nil, quantity: nil)
def initialize(adjustable_quantity: nil, price: nil, price_data: nil, quantity: nil)
@adjustable_quantity = adjustable_quantity
@price = price
@price_data = price_data
@quantity = quantity
end
end
@ -1250,9 +1325,12 @@ module Stripe
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.
attr_accessor :amount_tax_display
# ID of the invoice rendering template to use for this invoice.
attr_accessor :template
def initialize(amount_tax_display: nil)
def initialize(amount_tax_display: nil, template: nil)
@amount_tax_display = amount_tax_display
@template = template
end
end
# The account tax IDs associated with the invoice.
@ -1303,7 +1381,7 @@ module Stripe
class AdjustableQuantity < Stripe::RequestParams
# Set to true if the quantity can be adjusted to any non-negative Integer.
attr_accessor :enabled
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999.
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999.
attr_accessor :maximum
# The minimum quantity the customer can purchase. By default this value is 0. If there is only one item in the cart then that item's quantity cannot go down to 0.
attr_accessor :minimum

View File

@ -138,7 +138,7 @@ module Stripe
end
# The authorized amount
attr_reader :amount_authorized
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
attr_reader :brand
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
attr_reader :brand_product
@ -320,7 +320,7 @@ module Stripe
# Attribute for field visa_checkout
attr_reader :visa_checkout
end
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
attr_reader :brand
# Checks on Card address and CVC if provided.
attr_reader :checks
@ -377,7 +377,7 @@ module Stripe
# The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
attr_reader :type
end
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
attr_reader :brand
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
attr_reader :brand_product
@ -1594,7 +1594,7 @@ module Stripe
request_stripe_object(method: :get, path: "/v1/payment_methods", params: params, opts: opts)
end
# Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated.
# Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated.
def self.update(payment_method, params = {}, opts = {})
request_stripe_object(
method: :post,

View File

@ -419,7 +419,7 @@ module Stripe
class SubscriptionData < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
attr_accessor :type
def initialize(type: nil)

View File

@ -94,7 +94,7 @@ module Stripe
attr_accessor :alias
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# Type of the items in the value list. One of `card_fingerprint`, `us_bank_account_fingerprint`, `sepa_debit_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, or `customer_id`. Use `string` if the item type is unknown or mixed.
# Type of the items in the value list. One of `card_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`. Use `string` if the item type is unknown or mixed.
attr_accessor :item_type
# 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`.
attr_accessor :metadata
@ -117,7 +117,7 @@ module Stripe
attr_reader :created_by
# Unique identifier for the object.
attr_reader :id
# The type of items in the value list. One of `card_fingerprint`, `us_bank_account_fingerprint`, `sepa_debit_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, or `customer_id`.
# The type of items in the value list. One of `card_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`.
attr_reader :item_type
# List of items contained within this value list.
attr_reader :list_items

View File

@ -229,7 +229,7 @@ module Stripe
end
class PresentmentDetails < Stripe::StripeObject
# Amount intended to be collected by this payment, denominated in presentment_currency.
# Amount intended to be collected by this payment, denominated in `presentment_currency`.
attr_reader :presentment_amount
# Currency presented to the customer during payment.
attr_reader :presentment_currency

View File

@ -88,7 +88,7 @@ module Stripe
attr_reader :billing_zip
# The charge associated with this review.
attr_reader :charge
# The reason the review was closed, or null if it has not yet been closed. One of `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, or `canceled`.
# The reason the review was closed, or null if it has not yet been closed. One of `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, `canceled`, `payment_never_settled`, or `acknowledged`.
attr_reader :closed_reason
# Time at which the object was created. Measured in seconds since the Unix epoch.
attr_reader :created
@ -108,7 +108,7 @@ module Stripe
attr_reader :opened_reason
# The PaymentIntent ID associated with this review, if one exists.
attr_reader :payment_intent
# The reason the review is currently open or closed. One of `rule`, `manual`, `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, or `canceled`.
# The reason the review is currently open or closed. One of `rule`, `manual`, `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, `canceled`, `payment_never_settled`, or `acknowledged`.
attr_reader :reason
# Information related to the browsing session of the user who initiated the payment.
attr_reader :session

View File

@ -82,7 +82,7 @@ module Stripe
# The type of the card wallet, one of `apple_pay`, `google_pay`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
attr_reader :type
end
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
attr_reader :brand
# Check results by Card networks on Card address and CVC at the time of authorization
attr_reader :checks

View File

@ -792,7 +792,7 @@ module Stripe
#
# Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes).
#
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.
attr_accessor :payment_behavior
# Payment settings to pass to invoices created by the subscription.
attr_accessor :payment_settings
@ -1113,7 +1113,7 @@ module Stripe
end
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
attr_accessor :type
def initialize(type: nil)

View File

@ -117,7 +117,7 @@ module Stripe
#
# Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes).
#
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.
attr_accessor :payment_behavior
# The identifier of the new plan for this subscription item.
attr_accessor :plan
@ -272,7 +272,7 @@ module Stripe
#
# Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes).
#
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.
attr_accessor :payment_behavior
# The identifier of the plan to add to the subscription.
attr_accessor :plan

View File

@ -359,7 +359,7 @@ module Stripe
class CreateParams < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
attr_accessor :type
def initialize(type: nil)
@ -599,6 +599,18 @@ module Stripe
end
end
class Duration < Stripe::RequestParams
# Specifies phase duration. Either `day`, `week`, `month` or `year`.
attr_accessor :interval
# The multiplier applied to the interval.
attr_accessor :interval_count
def initialize(interval: nil, interval_count: nil)
@interval = interval
@interval_count = interval_count
end
end
class InvoiceSettings < Stripe::RequestParams
class Issuer < Stripe::RequestParams
# The connected account being referenced when `type` is `account`.
@ -762,13 +774,15 @@ module Stripe
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.
attr_accessor :discounts
# The number of intervals the phase should last. If set, `end_date` must not be set.
attr_accessor :duration
# The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
attr_accessor :end_date
# All invoices will be billed using the specified settings.
attr_accessor :invoice_settings
# List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
attr_accessor :items
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set.
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead.
attr_accessor :iterations
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
attr_accessor :metadata
@ -795,6 +809,7 @@ module Stripe
default_tax_rates: nil,
description: nil,
discounts: nil,
duration: nil,
end_date: nil,
invoice_settings: nil,
items: nil,
@ -817,6 +832,7 @@ module Stripe
@default_tax_rates = default_tax_rates
@description = description
@discounts = discounts
@duration = duration
@end_date = end_date
@invoice_settings = invoice_settings
@items = items
@ -1104,6 +1120,18 @@ module Stripe
end
end
class Duration < Stripe::RequestParams
# Specifies phase duration. Either `day`, `week`, `month` or `year`.
attr_accessor :interval
# The multiplier applied to the interval.
attr_accessor :interval_count
def initialize(interval: nil, interval_count: nil)
@interval = interval
@interval_count = interval_count
end
end
class InvoiceSettings < Stripe::RequestParams
class Issuer < Stripe::RequestParams
# The connected account being referenced when `type` is `account`.
@ -1267,13 +1295,15 @@ module Stripe
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.
attr_accessor :discounts
# The number of intervals the phase should last. If set, `end_date` must not be set.
attr_accessor :duration
# The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
attr_accessor :end_date
# All invoices will be billed using the specified settings.
attr_accessor :invoice_settings
# List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
attr_accessor :items
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set.
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead.
attr_accessor :iterations
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
attr_accessor :metadata
@ -1302,6 +1332,7 @@ module Stripe
default_tax_rates: nil,
description: nil,
discounts: nil,
duration: nil,
end_date: nil,
invoice_settings: nil,
items: nil,
@ -1325,6 +1356,7 @@ module Stripe
@default_tax_rates = default_tax_rates
@description = description
@discounts = discounts
@duration = duration
@end_date = end_date
@invoice_settings = invoice_settings
@items = items

View File

@ -20,6 +20,12 @@ module Stripe
class CountryOptions < Stripe::StripeObject
class Ae < Stripe::StripeObject
class Standard < Stripe::StripeObject
# Place of supply scheme used in an Default standard registration.
attr_reader :place_of_supply_scheme
end
# Attribute for field standard
attr_reader :standard
# Type of registration in `country`.
attr_reader :type
end
@ -51,6 +57,12 @@ module Stripe
end
class Au < Stripe::StripeObject
class Standard < Stripe::StripeObject
# Place of supply scheme used in an Default standard registration.
attr_reader :place_of_supply_scheme
end
# Attribute for field standard
attr_reader :standard
# Type of registration in `country`.
attr_reader :type
end
@ -144,6 +156,12 @@ module Stripe
end
class Ch < Stripe::StripeObject
class Standard < Stripe::StripeObject
# Place of supply scheme used in an Default standard registration.
attr_reader :place_of_supply_scheme
end
# Attribute for field standard
attr_reader :standard
# Type of registration in `country`.
attr_reader :type
end
@ -277,6 +295,12 @@ module Stripe
end
class Gb < Stripe::StripeObject
class Standard < Stripe::StripeObject
# Place of supply scheme used in an Default standard registration.
attr_reader :place_of_supply_scheme
end
# Attribute for field standard
attr_reader :standard
# Type of registration in `country`.
attr_reader :type
end
@ -362,6 +386,12 @@ module Stripe
end
class Jp < Stripe::StripeObject
class Standard < Stripe::StripeObject
# Place of supply scheme used in an Default standard registration.
attr_reader :place_of_supply_scheme
end
# Attribute for field standard
attr_reader :standard
# Type of registration in `country`.
attr_reader :type
end
@ -492,6 +522,12 @@ module Stripe
end
class No < Stripe::StripeObject
class Standard < Stripe::StripeObject
# Place of supply scheme used in an Default standard registration.
attr_reader :place_of_supply_scheme
end
# Attribute for field standard
attr_reader :standard
# Type of registration in `country`.
attr_reader :type
end
@ -502,6 +538,12 @@ module Stripe
end
class Nz < Stripe::StripeObject
class Standard < Stripe::StripeObject
# Place of supply scheme used in an Default standard registration.
attr_reader :place_of_supply_scheme
end
# Attribute for field standard
attr_reader :standard
# Type of registration in `country`.
attr_reader :type
end
@ -581,6 +623,12 @@ module Stripe
end
class Sg < Stripe::StripeObject
class Standard < Stripe::StripeObject
# Place of supply scheme used in an Default standard registration.
attr_reader :place_of_supply_scheme
end
# Attribute for field standard
attr_reader :standard
# Type of registration in `country`.
attr_reader :type
end
@ -939,19 +987,41 @@ module Stripe
class CreateParams < Stripe::RequestParams
class CountryOptions < Stripe::RequestParams
class Ae < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
class Al < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -966,10 +1036,21 @@ module Stripe
end
class Ao < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -995,19 +1076,41 @@ module Stripe
end
class Au < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
class Aw < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1022,28 +1125,61 @@ module Stripe
end
class Ba < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
class Bb < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
class Bd < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1069,10 +1205,21 @@ module Stripe
end
class Bf < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1098,10 +1245,21 @@ module Stripe
end
class Bh < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1116,10 +1274,21 @@ module Stripe
end
class Bs < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1154,19 +1323,41 @@ module Stripe
end
class Cd < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
class Ch < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1355,10 +1546,21 @@ module Stripe
end
class Et < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1404,10 +1606,21 @@ module Stripe
end
class Gb < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1422,10 +1635,21 @@ module Stripe
end
class Gn < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1529,10 +1753,21 @@ module Stripe
end
class Is < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1558,10 +1793,21 @@ module Stripe
end
class Jp < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1699,28 +1945,61 @@ module Stripe
end
class Me < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
class Mk < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
class Mr < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1793,10 +2072,21 @@ module Stripe
end
class No < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1811,19 +2101,41 @@ module Stripe
end
class Nz < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
class Om < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1907,10 +2219,21 @@ module Stripe
end
class Rs < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1954,10 +2277,21 @@ module Stripe
end
class Sg < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -2012,10 +2346,21 @@ module Stripe
end
class Sr < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -2139,10 +2484,21 @@ module Stripe
end
class Uy < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -2166,10 +2522,21 @@ module Stripe
end
class Za < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -2184,10 +2551,21 @@ module Stripe
end
class Zw < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end

View File

@ -39,6 +39,15 @@ module Stripe
end
class Tipping < Stripe::StripeObject
class Aed < Stripe::StripeObject
# Fixed amounts displayed when collecting a tip
attr_reader :fixed_amounts
# Percentages displayed when collecting a tip
attr_reader :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_reader :smart_tip_threshold
end
class Aud < Stripe::StripeObject
# Fixed amounts displayed when collecting a tip
attr_reader :fixed_amounts
@ -48,6 +57,15 @@ module Stripe
attr_reader :smart_tip_threshold
end
class Bgn < Stripe::StripeObject
# Fixed amounts displayed when collecting a tip
attr_reader :fixed_amounts
# Percentages displayed when collecting a tip
attr_reader :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_reader :smart_tip_threshold
end
class Cad < Stripe::StripeObject
# Fixed amounts displayed when collecting a tip
attr_reader :fixed_amounts
@ -111,6 +129,15 @@ module Stripe
attr_reader :smart_tip_threshold
end
class Huf < Stripe::StripeObject
# Fixed amounts displayed when collecting a tip
attr_reader :fixed_amounts
# Percentages displayed when collecting a tip
attr_reader :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_reader :smart_tip_threshold
end
class Jpy < Stripe::StripeObject
# Fixed amounts displayed when collecting a tip
attr_reader :fixed_amounts
@ -156,6 +183,15 @@ module Stripe
attr_reader :smart_tip_threshold
end
class Ron < Stripe::StripeObject
# Fixed amounts displayed when collecting a tip
attr_reader :fixed_amounts
# Percentages displayed when collecting a tip
attr_reader :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_reader :smart_tip_threshold
end
class Sek < Stripe::StripeObject
# Fixed amounts displayed when collecting a tip
attr_reader :fixed_amounts
@ -182,8 +218,12 @@ module Stripe
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_reader :smart_tip_threshold
end
# Attribute for field aed
attr_reader :aed
# Attribute for field aud
attr_reader :aud
# Attribute for field bgn
attr_reader :bgn
# Attribute for field cad
attr_reader :cad
# Attribute for field chf
@ -198,6 +238,8 @@ module Stripe
attr_reader :gbp
# Attribute for field hkd
attr_reader :hkd
# Attribute for field huf
attr_reader :huf
# Attribute for field jpy
attr_reader :jpy
# Attribute for field myr
@ -208,6 +250,8 @@ module Stripe
attr_reader :nzd
# Attribute for field pln
attr_reader :pln
# Attribute for field ron
attr_reader :ron
# Attribute for field sek
attr_reader :sek
# Attribute for field sgd
@ -305,6 +349,21 @@ module Stripe
end
class Tipping < Stripe::RequestParams
class Aed < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_accessor :smart_tip_threshold
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
@fixed_amounts = fixed_amounts
@percentages = percentages
@smart_tip_threshold = smart_tip_threshold
end
end
class Aud < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
@ -320,6 +379,21 @@ module Stripe
end
end
class Bgn < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_accessor :smart_tip_threshold
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
@fixed_amounts = fixed_amounts
@percentages = percentages
@smart_tip_threshold = smart_tip_threshold
end
end
class Cad < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
@ -425,6 +499,21 @@ module Stripe
end
end
class Huf < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_accessor :smart_tip_threshold
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
@fixed_amounts = fixed_amounts
@percentages = percentages
@smart_tip_threshold = smart_tip_threshold
end
end
class Jpy < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
@ -500,6 +589,21 @@ module Stripe
end
end
class Ron < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_accessor :smart_tip_threshold
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
@fixed_amounts = fixed_amounts
@percentages = percentages
@smart_tip_threshold = smart_tip_threshold
end
end
class Sek < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
@ -544,8 +648,12 @@ module Stripe
@smart_tip_threshold = smart_tip_threshold
end
end
# Tipping configuration for AED
attr_accessor :aed
# Tipping configuration for AUD
attr_accessor :aud
# Tipping configuration for BGN
attr_accessor :bgn
# Tipping configuration for CAD
attr_accessor :cad
# Tipping configuration for CHF
@ -560,6 +668,8 @@ module Stripe
attr_accessor :gbp
# Tipping configuration for HKD
attr_accessor :hkd
# Tipping configuration for HUF
attr_accessor :huf
# Tipping configuration for JPY
attr_accessor :jpy
# Tipping configuration for MYR
@ -570,6 +680,8 @@ module Stripe
attr_accessor :nzd
# Tipping configuration for PLN
attr_accessor :pln
# Tipping configuration for RON
attr_accessor :ron
# Tipping configuration for SEK
attr_accessor :sek
# Tipping configuration for SGD
@ -578,7 +690,9 @@ module Stripe
attr_accessor :usd
def initialize(
aed: nil,
aud: nil,
bgn: nil,
cad: nil,
chf: nil,
czk: nil,
@ -586,16 +700,20 @@ module Stripe
eur: nil,
gbp: nil,
hkd: nil,
huf: nil,
jpy: nil,
myr: nil,
nok: nil,
nzd: nil,
pln: nil,
ron: nil,
sek: nil,
sgd: nil,
usd: nil
)
@aed = aed
@aud = aud
@bgn = bgn
@cad = cad
@chf = chf
@czk = czk
@ -603,11 +721,13 @@ module Stripe
@eur = eur
@gbp = gbp
@hkd = hkd
@huf = huf
@jpy = jpy
@myr = myr
@nok = nok
@nzd = nzd
@pln = pln
@ron = ron
@sek = sek
@sgd = sgd
@usd = usd
@ -811,6 +931,21 @@ module Stripe
end
class Tipping < Stripe::RequestParams
class Aed < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_accessor :smart_tip_threshold
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
@fixed_amounts = fixed_amounts
@percentages = percentages
@smart_tip_threshold = smart_tip_threshold
end
end
class Aud < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
@ -826,6 +961,21 @@ module Stripe
end
end
class Bgn < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_accessor :smart_tip_threshold
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
@fixed_amounts = fixed_amounts
@percentages = percentages
@smart_tip_threshold = smart_tip_threshold
end
end
class Cad < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
@ -931,6 +1081,21 @@ module Stripe
end
end
class Huf < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_accessor :smart_tip_threshold
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
@fixed_amounts = fixed_amounts
@percentages = percentages
@smart_tip_threshold = smart_tip_threshold
end
end
class Jpy < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
@ -1006,6 +1171,21 @@ module Stripe
end
end
class Ron < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_accessor :smart_tip_threshold
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
@fixed_amounts = fixed_amounts
@percentages = percentages
@smart_tip_threshold = smart_tip_threshold
end
end
class Sek < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
@ -1050,8 +1230,12 @@ module Stripe
@smart_tip_threshold = smart_tip_threshold
end
end
# Tipping configuration for AED
attr_accessor :aed
# Tipping configuration for AUD
attr_accessor :aud
# Tipping configuration for BGN
attr_accessor :bgn
# Tipping configuration for CAD
attr_accessor :cad
# Tipping configuration for CHF
@ -1066,6 +1250,8 @@ module Stripe
attr_accessor :gbp
# Tipping configuration for HKD
attr_accessor :hkd
# Tipping configuration for HUF
attr_accessor :huf
# Tipping configuration for JPY
attr_accessor :jpy
# Tipping configuration for MYR
@ -1076,6 +1262,8 @@ module Stripe
attr_accessor :nzd
# Tipping configuration for PLN
attr_accessor :pln
# Tipping configuration for RON
attr_accessor :ron
# Tipping configuration for SEK
attr_accessor :sek
# Tipping configuration for SGD
@ -1084,7 +1272,9 @@ module Stripe
attr_accessor :usd
def initialize(
aed: nil,
aud: nil,
bgn: nil,
cad: nil,
chf: nil,
czk: nil,
@ -1092,16 +1282,20 @@ module Stripe
eur: nil,
gbp: nil,
hkd: nil,
huf: nil,
jpy: nil,
myr: nil,
nok: nil,
nzd: nil,
pln: nil,
ron: nil,
sek: nil,
sgd: nil,
usd: nil
)
@aed = aed
@aud = aud
@bgn = bgn
@cad = cad
@chf = chf
@czk = czk
@ -1109,11 +1303,13 @@ module Stripe
@eur = eur
@gbp = gbp
@hkd = hkd
@huf = huf
@jpy = jpy
@myr = myr
@nok = nok
@nzd = nzd
@pln = pln
@ron = ron
@sek = sek
@sgd = sgd
@usd = usd

View File

@ -27,7 +27,9 @@ module Stripe
attr_accessor :refresh_url
# The URL that the user will be redirected to upon leaving or completing the linked flow.
attr_accessor :return_url
# The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`.
# The type of account link the user is requesting.
#
# You can create Account Links of type `account_update` only for connected accounts where your platform is responsible for collecting requirements, including Custom accounts. You can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use [Connect embedded components](/connect/get-started-connect-embedded-components), you can include components that allow your connected accounts to update their own information. For an account without Stripe-hosted Dashboard access where Stripe is liable for negative balances, you must use embedded components.
attr_accessor :type
def initialize(

View File

@ -124,7 +124,7 @@ module Stripe
attr_accessor :estimated_worker_count
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
attr_accessor :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
attr_accessor :minority_owned_business_designation
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
attr_accessor :monthly_estimated_revenue
@ -2184,7 +2184,7 @@ module Stripe
attr_accessor :estimated_worker_count
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
attr_accessor :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
attr_accessor :minority_owned_business_designation
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
attr_accessor :monthly_estimated_revenue
@ -4176,7 +4176,7 @@ module Stripe
#
# Test-mode accounts can be deleted at any time.
#
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
# Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
#
# If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
def delete(account, params = {}, opts = {})

View File

@ -196,6 +196,36 @@ module Stripe
end
end
class InstantPayoutsPromotion < Stripe::RequestParams
class Features < Stripe::RequestParams
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
attr_accessor :disable_stripe_user_authentication
# Whether external account collection is enabled. This feature can only be `false` for accounts where youre responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
attr_accessor :external_account_collection
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
attr_accessor :instant_payouts
def initialize(
disable_stripe_user_authentication: nil,
external_account_collection: nil,
instant_payouts: nil
)
@disable_stripe_user_authentication = disable_stripe_user_authentication
@external_account_collection = external_account_collection
@instant_payouts = instant_payouts
end
end
# Whether the embedded component is enabled.
attr_accessor :enabled
# The list of features enabled in the embedded component.
attr_accessor :features
def initialize(enabled: nil, features: nil)
@enabled = enabled
@features = features
end
end
class IssuingCard < Stripe::RequestParams
class Features < Stripe::RequestParams
# Whether to allow card management features.
@ -482,6 +512,8 @@ module Stripe
attr_accessor :financial_account
# Configuration for the [financial account transactions](/connect/supported-embedded-components/financial-account-transactions/) embedded component.
attr_accessor :financial_account_transactions
# Configuration for the [instant payouts promotion](/connect/supported-embedded-components/instant-payouts-promotion/) embedded component.
attr_accessor :instant_payouts_promotion
# Configuration for the [issuing card](/connect/supported-embedded-components/issuing-card/) embedded component.
attr_accessor :issuing_card
# Configuration for the [issuing cards list](/connect/supported-embedded-components/issuing-cards-list/) embedded component.
@ -511,6 +543,7 @@ module Stripe
documents: nil,
financial_account: nil,
financial_account_transactions: nil,
instant_payouts_promotion: nil,
issuing_card: nil,
issuing_cards_list: nil,
notification_banner: nil,
@ -529,6 +562,7 @@ module Stripe
@documents = documents
@financial_account = financial_account
@financial_account_transactions = financial_account_transactions
@instant_payouts_promotion = instant_payouts_promotion
@issuing_card = issuing_card
@issuing_cards_list = issuing_cards_list
@notification_banner = notification_banner

View File

@ -46,7 +46,7 @@ module Stripe
end
# The monetary amount.
attr_accessor :monetary
# Specify the type of this amount. We currently only support `monetary` billing credits.
# The type of this amount. We currently only support `monetary` billing credits.
attr_accessor :type
def initialize(monetary: nil, type: nil)

View File

@ -118,12 +118,29 @@ module Stripe
class SubscriptionUpdate < Stripe::RequestParams
class Product < Stripe::RequestParams
class AdjustableQuantity < Stripe::RequestParams
# Set to true if the quantity can be adjusted to any non-negative integer.
attr_accessor :enabled
# The maximum quantity that can be set for the product.
attr_accessor :maximum
# The minimum quantity that can be set for the product.
attr_accessor :minimum
def initialize(enabled: nil, maximum: nil, minimum: nil)
@enabled = enabled
@maximum = maximum
@minimum = minimum
end
end
# Control whether the quantity of the product can be adjusted.
attr_accessor :adjustable_quantity
# The list of price IDs for the product that a subscription can be updated to.
attr_accessor :prices
# The product id.
attr_accessor :product
def initialize(prices: nil, product: nil)
def initialize(adjustable_quantity: nil, prices: nil, product: nil)
@adjustable_quantity = adjustable_quantity
@prices = prices
@product = product
end
@ -326,12 +343,29 @@ module Stripe
class SubscriptionUpdate < Stripe::RequestParams
class Product < Stripe::RequestParams
class AdjustableQuantity < Stripe::RequestParams
# Set to true if the quantity can be adjusted to any non-negative integer.
attr_accessor :enabled
# The maximum quantity that can be set for the product.
attr_accessor :maximum
# The minimum quantity that can be set for the product.
attr_accessor :minimum
def initialize(enabled: nil, maximum: nil, minimum: nil)
@enabled = enabled
@maximum = maximum
@minimum = minimum
end
end
# Control whether the quantity of the product can be adjusted.
attr_accessor :adjustable_quantity
# The list of price IDs for the product that a subscription can be updated to.
attr_accessor :prices
# The product id.
attr_accessor :product
def initialize(prices: nil, product: nil)
def initialize(adjustable_quantity: nil, prices: nil, product: nil)
@adjustable_quantity = adjustable_quantity
@prices = prices
@product = product
end

View File

@ -391,9 +391,12 @@ module Stripe
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.
attr_accessor :amount_tax_display
# ID of the invoice rendering template to use for this invoice.
attr_accessor :template
def initialize(amount_tax_display: nil)
def initialize(amount_tax_display: nil, template: nil)
@amount_tax_display = amount_tax_display
@template = template
end
end
# The account tax IDs associated with the invoice.
@ -1414,9 +1417,18 @@ module Stripe
class Pix < Stripe::RequestParams
# The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
attr_accessor :expires_after_seconds
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
#
# 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).
attr_accessor :setup_future_usage
def initialize(expires_after_seconds: nil)
def initialize(expires_after_seconds: nil, setup_future_usage: nil)
@expires_after_seconds = expires_after_seconds
@setup_future_usage = setup_future_usage
end
end
@ -1895,7 +1907,7 @@ module Stripe
class SubscriptionData < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
attr_accessor :type
def initialize(type: nil)
@ -2123,6 +2135,8 @@ module Stripe
#
# For `subscription` mode, there is a maximum of 20 line items and optional items with recurring Prices and 20 line items and optional items with one-time Prices.
attr_accessor :optional_items
# Where the user is coming from. This informs the optimizations that are applied to the session. For example, a session originating from a mobile app may behave more like a native app, depending on the platform. This parameter is currently not allowed if `ui_mode` is `custom`.
attr_accessor :origin_context
# A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
attr_accessor :payment_intent_data
# Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.
@ -2218,6 +2232,7 @@ module Stripe
metadata: nil,
mode: nil,
optional_items: nil,
origin_context: nil,
payment_intent_data: nil,
payment_method_collection: nil,
payment_method_configuration: nil,
@ -2263,6 +2278,7 @@ module Stripe
@metadata = metadata
@mode = mode
@optional_items = optional_items
@origin_context = origin_context
@payment_intent_data = payment_intent_data
@payment_method_collection = payment_method_collection
@payment_method_configuration = payment_method_configuration

View File

@ -272,7 +272,7 @@ module Stripe
attr_accessor :discounts
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# The ID of an existing invoice to add this invoice item to. When left blank, the invoice item will be added to the next upcoming scheduled invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice.
# The ID of an existing invoice to add this invoice item to. For subscription invoices, when left blank, the invoice item will be added to the next upcoming scheduled invoice. For standalone invoices, the invoice item won't be automatically added unless you pass `pending_invoice_item_behavior: 'include'` when creating the invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice.
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`.
attr_accessor :metadata

View File

@ -143,7 +143,7 @@ module Stripe
@plan = plan
end
end
# Installment configuration for payments attempted on this invoice (Mexico Only).
# Installment configuration for payments attempted on this invoice.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
attr_accessor :installments
@ -468,7 +468,7 @@ module Stripe
attr_accessor :auto_advance
# Settings for automatic tax lookup for this invoice.
attr_accessor :automatic_tax
# The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. To turn off automatic finalization, set `auto_advance` to false.
# The time when this invoice should be scheduled to finalize (up to 5 years in the future). The invoice is finalized at this time if it's still in draft state. To turn off automatic finalization, set `auto_advance` to false.
attr_accessor :automatically_finalizes_at
# Either `charge_automatically` or `send_invoice`. This field can be updated only on `draft` invoices.
attr_accessor :collection_method
@ -790,7 +790,7 @@ module Stripe
@plan = plan
end
end
# Installment configuration for payments attempted on this invoice (Mexico Only).
# Installment configuration for payments attempted on this invoice.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
attr_accessor :installments
@ -1111,11 +1111,11 @@ module Stripe
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).
attr_accessor :application_fee_amount
# Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action.
# Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action. Defaults to false.
attr_accessor :auto_advance
# Settings for automatic tax lookup for this invoice.
attr_accessor :automatic_tax
# The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state.
# The time when this invoice should be scheduled to finalize (up to 5 years in the future). The invoice is finalized at this time if it's still in draft state.
attr_accessor :automatically_finalizes_at
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions. Defaults to `charge_automatically`.
attr_accessor :collection_method
@ -2111,7 +2111,7 @@ module Stripe
class ScheduleDetails < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
attr_accessor :type
def initialize(type: nil)
@ -2238,6 +2238,18 @@ module Stripe
end
end
class Duration < Stripe::RequestParams
# Specifies phase duration. Either `day`, `week`, `month` or `year`.
attr_accessor :interval
# The multiplier applied to the interval.
attr_accessor :interval_count
def initialize(interval: nil, interval_count: nil)
@interval = interval
@interval_count = interval_count
end
end
class InvoiceSettings < Stripe::RequestParams
class Issuer < Stripe::RequestParams
# The connected account being referenced when `type` is `account`.
@ -2401,13 +2413,15 @@ module Stripe
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.
attr_accessor :discounts
# The number of intervals the phase should last. If set, `end_date` must not be set.
attr_accessor :duration
# The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
attr_accessor :end_date
# All invoices will be billed using the specified settings.
attr_accessor :invoice_settings
# List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
attr_accessor :items
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set.
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead.
attr_accessor :iterations
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
attr_accessor :metadata
@ -2436,6 +2450,7 @@ module Stripe
default_tax_rates: nil,
description: nil,
discounts: nil,
duration: nil,
end_date: nil,
invoice_settings: nil,
items: nil,
@ -2459,6 +2474,7 @@ module Stripe
@default_tax_rates = default_tax_rates
@description = description
@discounts = discounts
@duration = duration
@end_date = end_date
@invoice_settings = invoice_settings
@items = items
@ -2491,7 +2507,7 @@ module Stripe
class SubscriptionDetails < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
attr_accessor :type
def initialize(type: nil)

View File

@ -1067,7 +1067,7 @@ module Stripe
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.
attr_accessor :cvc_token
# Installment configuration for payments attempted on this PaymentIntent (Mexico Only).
# Installment configuration for payments attempted on this PaymentIntent.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
attr_accessor :installments
@ -3464,7 +3464,7 @@ module Stripe
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.
attr_accessor :cvc_token
# Installment configuration for payments attempted on this PaymentIntent (Mexico Only).
# Installment configuration for payments attempted on this PaymentIntent.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
attr_accessor :installments
@ -5913,7 +5913,7 @@ module Stripe
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.
attr_accessor :cvc_token
# Installment configuration for payments attempted on this PaymentIntent (Mexico Only).
# Installment configuration for payments attempted on this PaymentIntent.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
attr_accessor :installments
@ -7351,6 +7351,7 @@ module Stripe
# Confirm that your customer intends to pay with current or provided
# payment method. Upon confirmation, the PaymentIntent will attempt to initiate
# a payment.
#
# If the selected payment method requires additional authentication steps, the
# PaymentIntent will transition to the requires_action status and
# suggest additional actions via next_action. If payment fails,
@ -7358,18 +7359,22 @@ module Stripe
# canceled status if the confirmation limit is reached. If
# payment succeeds, the PaymentIntent will transition to the succeeded
# status (or requires_capture, if capture_method is set to manual).
#
# If the confirmation_method is automatic, payment may be attempted
# using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
# and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
# After next_actions are handled by the client, no additional
# confirmation is required to complete the payment.
#
# If the confirmation_method is manual, all payment attempts must be
# initiated using a secret key.
#
# If any actions are required for the payment, the PaymentIntent will
# return to the requires_confirmation state
# after those actions are completed. Your server needs to then
# explicitly re-confirm the PaymentIntent to initiate the next payment
# attempt.
#
# There is a variable upper limit on how many times a PaymentIntent can be confirmed.
# After this limit is reached, any further calls to this endpoint will
# transition the PaymentIntent to the canceled state.

View File

@ -302,9 +302,12 @@ module Stripe
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.
attr_accessor :amount_tax_display
# ID of the invoice rendering template to use for this invoice.
attr_accessor :template
def initialize(amount_tax_display: nil)
def initialize(amount_tax_display: nil, template: nil)
@amount_tax_display = amount_tax_display
@template = template
end
end
# The account tax IDs associated with the invoice.
@ -355,7 +358,7 @@ module Stripe
class AdjustableQuantity < Stripe::RequestParams
# Set to true if the quantity can be adjusted to any non-negative Integer.
attr_accessor :enabled
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999.
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999.
attr_accessor :maximum
# The minimum quantity the customer can purchase. By default this value is 0. If there is only one item in the cart then that item's quantity cannot go down to 0.
attr_accessor :minimum
@ -366,16 +369,86 @@ module Stripe
@minimum = minimum
end
end
class PriceData < Stripe::RequestParams
class ProductData < Stripe::RequestParams
# 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.
attr_accessor :description
# A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
attr_accessor :images
# 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`.
attr_accessor :metadata
# The product's name, meant to be displayable to the customer.
attr_accessor :name
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
attr_accessor :tax_code
def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil)
@description = description
@images = images
@metadata = metadata
@name = name
@tax_code = tax_code
end
end
class Recurring < Stripe::RequestParams
# Specifies billing frequency. Either `day`, `week`, `month` or `year`.
attr_accessor :interval
# The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
attr_accessor :interval_count
def initialize(interval: nil, interval_count: nil)
@interval = interval
@interval_count = interval_count
end
end
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
attr_accessor :currency
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required.
attr_accessor :product
# Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
attr_accessor :product_data
# The recurring components of a price such as `interval` and `interval_count`.
attr_accessor :recurring
# Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
attr_accessor :tax_behavior
# A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
attr_accessor :unit_amount
# Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
attr_accessor :unit_amount_decimal
def initialize(
currency: nil,
product: nil,
product_data: nil,
recurring: nil,
tax_behavior: nil,
unit_amount: nil,
unit_amount_decimal: nil
)
@currency = currency
@product = product
@product_data = product_data
@recurring = recurring
@tax_behavior = tax_behavior
@unit_amount = unit_amount
@unit_amount_decimal = unit_amount_decimal
end
end
# When set, provides configuration for this items quantity to be adjusted by the customer during checkout.
attr_accessor :adjustable_quantity
# The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object.
attr_accessor :price
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
attr_accessor :price_data
# The quantity of the line item being purchased.
attr_accessor :quantity
def initialize(adjustable_quantity: nil, price: nil, quantity: nil)
def initialize(adjustable_quantity: nil, price: nil, price_data: nil, quantity: nil)
@adjustable_quantity = adjustable_quantity
@price = price
@price_data = price_data
@quantity = quantity
end
end
@ -973,9 +1046,12 @@ module Stripe
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.
attr_accessor :amount_tax_display
# ID of the invoice rendering template to use for this invoice.
attr_accessor :template
def initialize(amount_tax_display: nil)
def initialize(amount_tax_display: nil, template: nil)
@amount_tax_display = amount_tax_display
@template = template
end
end
# The account tax IDs associated with the invoice.
@ -1026,7 +1102,7 @@ module Stripe
class AdjustableQuantity < Stripe::RequestParams
# Set to true if the quantity can be adjusted to any non-negative Integer.
attr_accessor :enabled
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999.
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999.
attr_accessor :maximum
# The minimum quantity the customer can purchase. By default this value is 0. If there is only one item in the cart then that item's quantity cannot go down to 0.
attr_accessor :minimum

View File

@ -834,7 +834,7 @@ module Stripe
)
end
# Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated.
# Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated.
def update(payment_method, params = {}, opts = {})
request(
method: :post,

View File

@ -199,7 +199,7 @@ module Stripe
class SubscriptionData < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
attr_accessor :type
def initialize(type: nil)

View File

@ -90,7 +90,7 @@ module Stripe
attr_accessor :alias
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# Type of the items in the value list. One of `card_fingerprint`, `us_bank_account_fingerprint`, `sepa_debit_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, or `customer_id`. Use `string` if the item type is unknown or mixed.
# Type of the items in the value list. One of `card_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`. Use `string` if the item type is unknown or mixed.
attr_accessor :item_type
# 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`.
attr_accessor :metadata

View File

@ -109,7 +109,7 @@ module Stripe
#
# Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes).
#
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.
attr_accessor :payment_behavior
# The identifier of the new plan for this subscription item.
attr_accessor :plan
@ -264,7 +264,7 @@ module Stripe
#
# Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes).
#
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.
attr_accessor :payment_behavior
# The identifier of the plan to add to the subscription.
attr_accessor :plan

View File

@ -123,7 +123,7 @@ module Stripe
class CreateParams < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
attr_accessor :type
def initialize(type: nil)
@ -363,6 +363,18 @@ module Stripe
end
end
class Duration < Stripe::RequestParams
# Specifies phase duration. Either `day`, `week`, `month` or `year`.
attr_accessor :interval
# The multiplier applied to the interval.
attr_accessor :interval_count
def initialize(interval: nil, interval_count: nil)
@interval = interval
@interval_count = interval_count
end
end
class InvoiceSettings < Stripe::RequestParams
class Issuer < Stripe::RequestParams
# The connected account being referenced when `type` is `account`.
@ -526,13 +538,15 @@ module Stripe
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.
attr_accessor :discounts
# The number of intervals the phase should last. If set, `end_date` must not be set.
attr_accessor :duration
# The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
attr_accessor :end_date
# All invoices will be billed using the specified settings.
attr_accessor :invoice_settings
# List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
attr_accessor :items
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set.
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead.
attr_accessor :iterations
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
attr_accessor :metadata
@ -559,6 +573,7 @@ module Stripe
default_tax_rates: nil,
description: nil,
discounts: nil,
duration: nil,
end_date: nil,
invoice_settings: nil,
items: nil,
@ -581,6 +596,7 @@ module Stripe
@default_tax_rates = default_tax_rates
@description = description
@discounts = discounts
@duration = duration
@end_date = end_date
@invoice_settings = invoice_settings
@items = items
@ -877,6 +893,18 @@ module Stripe
end
end
class Duration < Stripe::RequestParams
# Specifies phase duration. Either `day`, `week`, `month` or `year`.
attr_accessor :interval
# The multiplier applied to the interval.
attr_accessor :interval_count
def initialize(interval: nil, interval_count: nil)
@interval = interval
@interval_count = interval_count
end
end
class InvoiceSettings < Stripe::RequestParams
class Issuer < Stripe::RequestParams
# The connected account being referenced when `type` is `account`.
@ -1040,13 +1068,15 @@ module Stripe
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.
attr_accessor :discounts
# The number of intervals the phase should last. If set, `end_date` must not be set.
attr_accessor :duration
# The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
attr_accessor :end_date
# All invoices will be billed using the specified settings.
attr_accessor :invoice_settings
# List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
attr_accessor :items
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set.
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead.
attr_accessor :iterations
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
attr_accessor :metadata
@ -1075,6 +1105,7 @@ module Stripe
default_tax_rates: nil,
description: nil,
discounts: nil,
duration: nil,
end_date: nil,
invoice_settings: nil,
items: nil,
@ -1098,6 +1129,7 @@ module Stripe
@default_tax_rates = default_tax_rates
@description = description
@discounts = discounts
@duration = duration
@end_date = end_date
@invoice_settings = invoice_settings
@items = items

View File

@ -585,7 +585,7 @@ module Stripe
#
# Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes).
#
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.
attr_accessor :payment_behavior
# Payment settings to pass to invoices created by the subscription.
attr_accessor :payment_settings
@ -906,7 +906,7 @@ module Stripe
end
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
attr_accessor :type
def initialize(type: nil)

View File

@ -34,19 +34,41 @@ module Stripe
class CreateParams < Stripe::RequestParams
class CountryOptions < Stripe::RequestParams
class Ae < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
class Al < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -61,10 +83,21 @@ module Stripe
end
class Ao < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -90,19 +123,41 @@ module Stripe
end
class Au < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
class Aw < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -117,28 +172,61 @@ module Stripe
end
class Ba < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
class Bb < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
class Bd < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -164,10 +252,21 @@ module Stripe
end
class Bf < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -193,10 +292,21 @@ module Stripe
end
class Bh < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -211,10 +321,21 @@ module Stripe
end
class Bs < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -249,19 +370,41 @@ module Stripe
end
class Cd < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
class Ch < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -450,10 +593,21 @@ module Stripe
end
class Et < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -499,10 +653,21 @@ module Stripe
end
class Gb < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -517,10 +682,21 @@ module Stripe
end
class Gn < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -624,10 +800,21 @@ module Stripe
end
class Is < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -653,10 +840,21 @@ module Stripe
end
class Jp < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -794,28 +992,61 @@ module Stripe
end
class Me < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
class Mk < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
class Mr < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -888,10 +1119,21 @@ module Stripe
end
class No < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -906,19 +1148,41 @@ module Stripe
end
class Nz < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
class Om < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1002,10 +1266,21 @@ module Stripe
end
class Rs < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1049,10 +1324,21 @@ module Stripe
end
class Sg < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1107,10 +1393,21 @@ module Stripe
end
class Sr < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1234,10 +1531,21 @@ module Stripe
end
class Uy < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1261,10 +1569,21 @@ module Stripe
end
class Za < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end
@ -1279,10 +1598,21 @@ module Stripe
end
class Zw < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
attr_accessor :place_of_supply_scheme
def initialize(place_of_supply_scheme: nil)
@place_of_supply_scheme = place_of_supply_scheme
end
end
# Options for the standard registration.
attr_accessor :standard
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
def initialize(standard: nil, type: nil)
@standard = standard
@type = type
end
end

View File

@ -56,6 +56,21 @@ module Stripe
end
class Tipping < Stripe::RequestParams
class Aed < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_accessor :smart_tip_threshold
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
@fixed_amounts = fixed_amounts
@percentages = percentages
@smart_tip_threshold = smart_tip_threshold
end
end
class Aud < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
@ -71,6 +86,21 @@ module Stripe
end
end
class Bgn < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_accessor :smart_tip_threshold
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
@fixed_amounts = fixed_amounts
@percentages = percentages
@smart_tip_threshold = smart_tip_threshold
end
end
class Cad < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
@ -176,6 +206,21 @@ module Stripe
end
end
class Huf < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_accessor :smart_tip_threshold
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
@fixed_amounts = fixed_amounts
@percentages = percentages
@smart_tip_threshold = smart_tip_threshold
end
end
class Jpy < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
@ -251,6 +296,21 @@ module Stripe
end
end
class Ron < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_accessor :smart_tip_threshold
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
@fixed_amounts = fixed_amounts
@percentages = percentages
@smart_tip_threshold = smart_tip_threshold
end
end
class Sek < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
@ -295,8 +355,12 @@ module Stripe
@smart_tip_threshold = smart_tip_threshold
end
end
# Tipping configuration for AED
attr_accessor :aed
# Tipping configuration for AUD
attr_accessor :aud
# Tipping configuration for BGN
attr_accessor :bgn
# Tipping configuration for CAD
attr_accessor :cad
# Tipping configuration for CHF
@ -311,6 +375,8 @@ module Stripe
attr_accessor :gbp
# Tipping configuration for HKD
attr_accessor :hkd
# Tipping configuration for HUF
attr_accessor :huf
# Tipping configuration for JPY
attr_accessor :jpy
# Tipping configuration for MYR
@ -321,6 +387,8 @@ module Stripe
attr_accessor :nzd
# Tipping configuration for PLN
attr_accessor :pln
# Tipping configuration for RON
attr_accessor :ron
# Tipping configuration for SEK
attr_accessor :sek
# Tipping configuration for SGD
@ -329,7 +397,9 @@ module Stripe
attr_accessor :usd
def initialize(
aed: nil,
aud: nil,
bgn: nil,
cad: nil,
chf: nil,
czk: nil,
@ -337,16 +407,20 @@ module Stripe
eur: nil,
gbp: nil,
hkd: nil,
huf: nil,
jpy: nil,
myr: nil,
nok: nil,
nzd: nil,
pln: nil,
ron: nil,
sek: nil,
sgd: nil,
usd: nil
)
@aed = aed
@aud = aud
@bgn = bgn
@cad = cad
@chf = chf
@czk = czk
@ -354,11 +428,13 @@ module Stripe
@eur = eur
@gbp = gbp
@hkd = hkd
@huf = huf
@jpy = jpy
@myr = myr
@nok = nok
@nzd = nzd
@pln = pln
@ron = ron
@sek = sek
@sgd = sgd
@usd = usd
@ -562,6 +638,21 @@ module Stripe
end
class Tipping < Stripe::RequestParams
class Aed < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_accessor :smart_tip_threshold
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
@fixed_amounts = fixed_amounts
@percentages = percentages
@smart_tip_threshold = smart_tip_threshold
end
end
class Aud < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
@ -577,6 +668,21 @@ module Stripe
end
end
class Bgn < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_accessor :smart_tip_threshold
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
@fixed_amounts = fixed_amounts
@percentages = percentages
@smart_tip_threshold = smart_tip_threshold
end
end
class Cad < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
@ -682,6 +788,21 @@ module Stripe
end
end
class Huf < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_accessor :smart_tip_threshold
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
@fixed_amounts = fixed_amounts
@percentages = percentages
@smart_tip_threshold = smart_tip_threshold
end
end
class Jpy < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
@ -757,6 +878,21 @@ module Stripe
end
end
class Ron < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_accessor :smart_tip_threshold
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
@fixed_amounts = fixed_amounts
@percentages = percentages
@smart_tip_threshold = smart_tip_threshold
end
end
class Sek < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
@ -801,8 +937,12 @@ module Stripe
@smart_tip_threshold = smart_tip_threshold
end
end
# Tipping configuration for AED
attr_accessor :aed
# Tipping configuration for AUD
attr_accessor :aud
# Tipping configuration for BGN
attr_accessor :bgn
# Tipping configuration for CAD
attr_accessor :cad
# Tipping configuration for CHF
@ -817,6 +957,8 @@ module Stripe
attr_accessor :gbp
# Tipping configuration for HKD
attr_accessor :hkd
# Tipping configuration for HUF
attr_accessor :huf
# Tipping configuration for JPY
attr_accessor :jpy
# Tipping configuration for MYR
@ -827,6 +969,8 @@ module Stripe
attr_accessor :nzd
# Tipping configuration for PLN
attr_accessor :pln
# Tipping configuration for RON
attr_accessor :ron
# Tipping configuration for SEK
attr_accessor :sek
# Tipping configuration for SGD
@ -835,7 +979,9 @@ module Stripe
attr_accessor :usd
def initialize(
aed: nil,
aud: nil,
bgn: nil,
cad: nil,
chf: nil,
czk: nil,
@ -843,16 +989,20 @@ module Stripe
eur: nil,
gbp: nil,
hkd: nil,
huf: nil,
jpy: nil,
myr: nil,
nok: nil,
nzd: nil,
pln: nil,
ron: nil,
sek: nil,
sgd: nil,
usd: nil
)
@aed = aed
@aud = aud
@bgn = bgn
@cad = cad
@chf = chf
@czk = czk
@ -860,11 +1010,13 @@ module Stripe
@eur = eur
@gbp = gbp
@hkd = hkd
@huf = huf
@jpy = jpy
@myr = myr
@nok = nok
@nzd = nzd
@pln = pln
@ron = ron
@sek = sek
@sgd = sgd
@usd = usd

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true
module Stripe
VERSION = "15.3.0"
VERSION = "15.4.0"
end

View File

@ -65,7 +65,7 @@ module Stripe
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
sig { returns(T.nilable(String)) }
attr_reader :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
sig { returns(T.nilable(T::Array[String])) }
attr_reader :minority_owned_business_designation
# Attribute for field monthly_estimated_revenue
@ -953,7 +953,7 @@ module Stripe
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
sig { returns(T.nilable(String)) }
attr_accessor :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :minority_owned_business_designation
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
@ -2942,7 +2942,7 @@ module Stripe
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
sig { returns(T.nilable(String)) }
attr_accessor :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :minority_owned_business_designation
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
@ -4920,7 +4920,7 @@ module Stripe
#
# Test-mode accounts can be deleted at any time.
#
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
# Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
#
# If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
sig {
@ -4932,7 +4932,7 @@ module Stripe
#
# Test-mode accounts can be deleted at any time.
#
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
# Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
#
# If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
sig {

View File

@ -49,7 +49,9 @@ module Stripe
# The URL that the user will be redirected to upon leaving or completing the linked flow.
sig { returns(T.nilable(String)) }
attr_accessor :return_url
# The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`.
# The type of account link the user is requesting.
#
# You can create Account Links of type `account_update` only for connected accounts where your platform is responsible for collecting requirements, including Custom accounts. You can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use [Connect embedded components](/connect/get-started-connect-embedded-components), you can include components that allow your connected accounts to update their own information. For an account without Stripe-hosted Dashboard access where Stripe is liable for negative balances, you must use embedded components.
sig { returns(String) }
attr_accessor :type
sig {

View File

@ -135,6 +135,25 @@ module Stripe
sig { returns(Features) }
attr_reader :features
end
class InstantPayoutsPromotion < Stripe::StripeObject
class Features < Stripe::StripeObject
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
sig { returns(T::Boolean) }
attr_reader :disable_stripe_user_authentication
# Whether external account collection is enabled. This feature can only be `false` for accounts where youre responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
sig { returns(T::Boolean) }
attr_reader :external_account_collection
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
sig { returns(T::Boolean) }
attr_reader :instant_payouts
end
# Whether the embedded component is enabled.
sig { returns(T::Boolean) }
attr_reader :enabled
# Attribute for field features
sig { returns(Features) }
attr_reader :features
end
class IssuingCard < Stripe::StripeObject
class Features < Stripe::StripeObject
# Whether to allow card management features.
@ -334,6 +353,9 @@ module Stripe
# Attribute for field financial_account_transactions
sig { returns(FinancialAccountTransactions) }
attr_reader :financial_account_transactions
# Attribute for field instant_payouts_promotion
sig { returns(InstantPayoutsPromotion) }
attr_reader :instant_payouts_promotion
# Attribute for field issuing_card
sig { returns(IssuingCard) }
attr_reader :issuing_card
@ -598,6 +620,39 @@ module Stripe
}
def initialize(enabled: nil, features: nil); end
end
class InstantPayoutsPromotion < Stripe::RequestParams
class Features < Stripe::RequestParams
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :disable_stripe_user_authentication
# Whether external account collection is enabled. This feature can only be `false` for accounts where youre responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :external_account_collection
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :instant_payouts
sig {
params(disable_stripe_user_authentication: T.nilable(T::Boolean), external_account_collection: T.nilable(T::Boolean), instant_payouts: T.nilable(T::Boolean)).void
}
def initialize(
disable_stripe_user_authentication: nil,
external_account_collection: nil,
instant_payouts: nil
); end
end
# Whether the embedded component is enabled.
sig { returns(T::Boolean) }
attr_accessor :enabled
# The list of features enabled in the embedded component.
sig {
returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::InstantPayoutsPromotion::Features))
}
attr_accessor :features
sig {
params(enabled: T::Boolean, features: T.nilable(::Stripe::AccountSession::CreateParams::Components::InstantPayoutsPromotion::Features)).void
}
def initialize(enabled: nil, features: nil); end
end
class IssuingCard < Stripe::RequestParams
class Features < Stripe::RequestParams
# Whether to allow card management features.
@ -927,6 +982,11 @@ module Stripe
returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccountTransactions))
}
attr_accessor :financial_account_transactions
# Configuration for the [instant payouts promotion](/connect/supported-embedded-components/instant-payouts-promotion/) embedded component.
sig {
returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::InstantPayoutsPromotion))
}
attr_accessor :instant_payouts_promotion
# Configuration for the [issuing card](/connect/supported-embedded-components/issuing-card/) embedded component.
sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCard)) }
attr_accessor :issuing_card
@ -968,7 +1028,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxSettings)) }
attr_accessor :tax_settings
sig {
params(account_management: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountOnboarding), balances: T.nilable(::Stripe::AccountSession::CreateParams::Components::Balances), disputes_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::DisputesList), documents: T.nilable(::Stripe::AccountSession::CreateParams::Components::Documents), financial_account: T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccount), financial_account_transactions: T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccountTransactions), issuing_card: T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCard), issuing_cards_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCardsList), notification_banner: T.nilable(::Stripe::AccountSession::CreateParams::Components::NotificationBanner), payment_details: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDetails), payment_disputes: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDisputes), payments: T.nilable(::Stripe::AccountSession::CreateParams::Components::Payments), payouts: T.nilable(::Stripe::AccountSession::CreateParams::Components::Payouts), payouts_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::PayoutsList), tax_registrations: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxSettings)).void
params(account_management: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountOnboarding), balances: T.nilable(::Stripe::AccountSession::CreateParams::Components::Balances), disputes_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::DisputesList), documents: T.nilable(::Stripe::AccountSession::CreateParams::Components::Documents), financial_account: T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccount), financial_account_transactions: T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccountTransactions), instant_payouts_promotion: T.nilable(::Stripe::AccountSession::CreateParams::Components::InstantPayoutsPromotion), issuing_card: T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCard), issuing_cards_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCardsList), notification_banner: T.nilable(::Stripe::AccountSession::CreateParams::Components::NotificationBanner), payment_details: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDetails), payment_disputes: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDisputes), payments: T.nilable(::Stripe::AccountSession::CreateParams::Components::Payments), payouts: T.nilable(::Stripe::AccountSession::CreateParams::Components::Payouts), payouts_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::PayoutsList), tax_registrations: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxSettings)).void
}
def initialize(
account_management: nil,
@ -978,6 +1038,7 @@ module Stripe
documents: nil,
financial_account: nil,
financial_account_transactions: nil,
instant_payouts_promotion: nil,
issuing_card: nil,
issuing_cards_list: nil,
notification_banner: nil,

View File

@ -132,7 +132,7 @@ module Stripe
# The monetary amount.
sig { returns(T.nilable(::Stripe::Billing::CreditGrant::CreateParams::Amount::Monetary)) }
attr_accessor :monetary
# Specify the type of this amount. We currently only support `monetary` billing credits.
# The type of this amount. We currently only support `monetary` billing credits.
sig { returns(String) }
attr_accessor :type
sig {

View File

@ -60,6 +60,20 @@ module Stripe
end
class SubscriptionUpdate < Stripe::StripeObject
class Product < Stripe::StripeObject
class AdjustableQuantity < Stripe::StripeObject
# If true, the quantity can be adjusted to any non-negative integer.
sig { returns(T::Boolean) }
attr_reader :enabled
# The maximum quantity that can be set for the product.
sig { returns(T.nilable(Integer)) }
attr_reader :maximum
# The minimum quantity that can be set for the product.
sig { returns(Integer) }
attr_reader :minimum
end
# Attribute for field adjustable_quantity
sig { returns(AdjustableQuantity) }
attr_reader :adjustable_quantity
# The list of price IDs which, when subscribed to, a subscription can be updated.
sig { returns(T::Array[String]) }
attr_reader :prices
@ -271,14 +285,36 @@ module Stripe
end
class SubscriptionUpdate < Stripe::RequestParams
class Product < Stripe::RequestParams
class AdjustableQuantity < Stripe::RequestParams
# Set to true if the quantity can be adjusted to any non-negative integer.
sig { returns(T::Boolean) }
attr_accessor :enabled
# The maximum quantity that can be set for the product.
sig { returns(T.nilable(Integer)) }
attr_accessor :maximum
# The minimum quantity that can be set for the product.
sig { returns(T.nilable(Integer)) }
attr_accessor :minimum
sig {
params(enabled: T::Boolean, maximum: T.nilable(Integer), minimum: T.nilable(Integer)).void
}
def initialize(enabled: nil, maximum: nil, minimum: nil); end
end
# Control whether the quantity of the product can be adjusted.
sig {
returns(T.nilable(::Stripe::BillingPortal::Configuration::CreateParams::Features::SubscriptionUpdate::Product::AdjustableQuantity))
}
attr_accessor :adjustable_quantity
# The list of price IDs for the product that a subscription can be updated to.
sig { returns(T::Array[String]) }
attr_accessor :prices
# The product id.
sig { returns(String) }
attr_accessor :product
sig { params(prices: T::Array[String], product: String).void }
def initialize(prices: nil, product: nil); end
sig {
params(adjustable_quantity: T.nilable(::Stripe::BillingPortal::Configuration::CreateParams::Features::SubscriptionUpdate::Product::AdjustableQuantity), prices: T::Array[String], product: String).void
}
def initialize(adjustable_quantity: nil, prices: nil, product: nil); end
end
class ScheduleAtPeriodEnd < Stripe::RequestParams
class Condition < Stripe::RequestParams
@ -485,14 +521,36 @@ module Stripe
end
class SubscriptionUpdate < Stripe::RequestParams
class Product < Stripe::RequestParams
class AdjustableQuantity < Stripe::RequestParams
# Set to true if the quantity can be adjusted to any non-negative integer.
sig { returns(T::Boolean) }
attr_accessor :enabled
# The maximum quantity that can be set for the product.
sig { returns(T.nilable(Integer)) }
attr_accessor :maximum
# The minimum quantity that can be set for the product.
sig { returns(T.nilable(Integer)) }
attr_accessor :minimum
sig {
params(enabled: T::Boolean, maximum: T.nilable(Integer), minimum: T.nilable(Integer)).void
}
def initialize(enabled: nil, maximum: nil, minimum: nil); end
end
# Control whether the quantity of the product can be adjusted.
sig {
returns(T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::Product::AdjustableQuantity))
}
attr_accessor :adjustable_quantity
# The list of price IDs for the product that a subscription can be updated to.
sig { returns(T::Array[String]) }
attr_accessor :prices
# The product id.
sig { returns(String) }
attr_accessor :product
sig { params(prices: T::Array[String], product: String).void }
def initialize(prices: nil, product: nil); end
sig {
params(adjustable_quantity: T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::Product::AdjustableQuantity), prices: T::Array[String], product: String).void
}
def initialize(adjustable_quantity: nil, prices: nil, product: nil); end
end
class ScheduleAtPeriodEnd < Stripe::RequestParams
class Condition < Stripe::RequestParams

View File

@ -225,7 +225,7 @@ module Stripe
class AmazonPay < Stripe::StripeObject
class Funding < Stripe::StripeObject
class Card < Stripe::StripeObject
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
sig { returns(T.nilable(String)) }
attr_reader :brand
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
@ -558,7 +558,7 @@ module Stripe
# Authorization code on the charge.
sig { returns(T.nilable(String)) }
attr_reader :authorization_code
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
sig { returns(T.nilable(String)) }
attr_reader :brand
# When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured.
@ -684,7 +684,7 @@ module Stripe
# The authorized amount
sig { returns(T.nilable(Integer)) }
attr_reader :amount_authorized
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
sig { returns(T.nilable(String)) }
attr_reader :brand
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
@ -766,6 +766,9 @@ module Stripe
# A public identifier for buyers using Cash App.
sig { returns(T.nilable(String)) }
attr_reader :cashtag
# A unique and immutable identifier of payments assigned by Cash App
sig { returns(T.nilable(String)) }
attr_reader :transaction_id
end
class Crypto < Stripe::StripeObject
# The wallet address of the customer.
@ -1114,7 +1117,7 @@ module Stripe
class RevolutPay < Stripe::StripeObject
class Funding < Stripe::StripeObject
class Card < Stripe::StripeObject
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
sig { returns(T.nilable(String)) }
attr_reader :brand
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
@ -1439,7 +1442,7 @@ module Stripe
attr_reader :zip
end
class PresentmentDetails < Stripe::StripeObject
# Amount intended to be collected by this payment, denominated in presentment_currency.
# Amount intended to be collected by this payment, denominated in `presentment_currency`.
sig { returns(Integer) }
attr_reader :presentment_amount
# Currency presented to the customer during payment.

View File

@ -334,6 +334,9 @@ module Stripe
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
sig { returns(T.nilable(String)) }
attr_reader :amount_tax_display
# ID of the invoice rendering template to be used for the generated invoice.
sig { returns(T.nilable(String)) }
attr_reader :template
end
# The account tax IDs associated with the invoice.
sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) }
@ -854,6 +857,15 @@ module Stripe
# The number of seconds after which Pix payment will expire.
sig { returns(T.nilable(Integer)) }
attr_reader :expires_after_seconds
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
#
# 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(String) }
attr_reader :setup_future_usage
end
class RevolutPay < Stripe::StripeObject
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
@ -1075,7 +1087,7 @@ module Stripe
attr_reader :enabled
end
class PresentmentDetails < Stripe::StripeObject
# Amount intended to be collected by this payment, denominated in presentment_currency.
# Amount intended to be collected by this payment, denominated in `presentment_currency`.
sig { returns(Integer) }
attr_reader :presentment_amount
# Currency presented to the customer during payment.
@ -1320,6 +1332,9 @@ module Stripe
# The optional items presented to the customer at checkout.
sig { returns(T.nilable(T::Array[OptionalItem])) }
attr_reader :optional_items
# Where the user is coming from. This informs the optimizations that are applied to the session.
sig { returns(T.nilable(String)) }
attr_reader :origin_context
# The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) }
attr_reader :payment_intent
@ -1789,8 +1804,13 @@ module Stripe
# 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)))) }
attr_accessor :amount_tax_display
sig { params(amount_tax_display: T.nilable(T.nilable(T.any(String, String)))).void }
def initialize(amount_tax_display: nil); end
# 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
}
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])))) }
@ -2825,8 +2845,19 @@ module Stripe
# The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
sig { returns(T.nilable(Integer)) }
attr_accessor :expires_after_seconds
sig { params(expires_after_seconds: T.nilable(Integer)).void }
def initialize(expires_after_seconds: nil); end
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
#
# 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(String)) }
attr_accessor :setup_future_usage
sig {
params(expires_after_seconds: T.nilable(Integer), setup_future_usage: T.nilable(String)).void
}
def initialize(expires_after_seconds: nil, setup_future_usage: nil); end
end
class RevolutPay < Stripe::RequestParams
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
@ -3382,7 +3413,7 @@ module Stripe
end
class SubscriptionData < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
@ -3641,6 +3672,9 @@ module Stripe
returns(T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::OptionalItem]))
}
attr_accessor :optional_items
# Where the user is coming from. This informs the optimizations that are applied to the session. For example, a session originating from a mobile app may behave more like a native app, depending on the platform. This parameter is currently not allowed if `ui_mode` is `custom`.
sig { returns(T.nilable(String)) }
attr_accessor :origin_context
# A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
sig { returns(T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentIntentData)) }
attr_accessor :payment_intent_data
@ -3737,7 +3771,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Checkout::Session::CreateParams::WalletOptions)) }
attr_accessor :wallet_options
sig {
params(adaptive_pricing: T.nilable(::Stripe::Checkout::Session::CreateParams::AdaptivePricing), after_expiration: T.nilable(::Stripe::Checkout::Session::CreateParams::AfterExpiration), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::Checkout::Session::CreateParams::AutomaticTax), billing_address_collection: T.nilable(String), cancel_url: T.nilable(String), client_reference_id: T.nilable(String), consent_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::CustomField]), custom_text: T.nilable(::Stripe::Checkout::Session::CreateParams::CustomText), customer: T.nilable(String), customer_creation: T.nilable(String), customer_email: T.nilable(String), customer_update: T.nilable(::Stripe::Checkout::Session::CreateParams::CustomerUpdate), discounts: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::Discount]), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), invoice_creation: T.nilable(::Stripe::Checkout::Session::CreateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::LineItem]), locale: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), mode: T.nilable(String), optional_items: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::OptionalItem]), payment_intent_data: T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), permissions: T.nilable(::Stripe::Checkout::Session::CreateParams::Permissions), phone_number_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::PhoneNumberCollection), redirect_on_completion: T.nilable(String), return_url: T.nilable(String), saved_payment_method_options: T.nilable(::Stripe::Checkout::Session::CreateParams::SavedPaymentMethodOptions), setup_intent_data: T.nilable(::Stripe::Checkout::Session::CreateParams::SetupIntentData), shipping_address_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::Checkout::Session::CreateParams::SubscriptionData), success_url: T.nilable(String), tax_id_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::TaxIdCollection), ui_mode: T.nilable(String), wallet_options: T.nilable(::Stripe::Checkout::Session::CreateParams::WalletOptions)).void
params(adaptive_pricing: T.nilable(::Stripe::Checkout::Session::CreateParams::AdaptivePricing), after_expiration: T.nilable(::Stripe::Checkout::Session::CreateParams::AfterExpiration), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::Checkout::Session::CreateParams::AutomaticTax), billing_address_collection: T.nilable(String), cancel_url: T.nilable(String), client_reference_id: T.nilable(String), consent_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::CustomField]), custom_text: T.nilable(::Stripe::Checkout::Session::CreateParams::CustomText), customer: T.nilable(String), customer_creation: T.nilable(String), customer_email: T.nilable(String), customer_update: T.nilable(::Stripe::Checkout::Session::CreateParams::CustomerUpdate), discounts: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::Discount]), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), invoice_creation: T.nilable(::Stripe::Checkout::Session::CreateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::LineItem]), locale: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), mode: T.nilable(String), optional_items: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::OptionalItem]), origin_context: T.nilable(String), payment_intent_data: T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), permissions: T.nilable(::Stripe::Checkout::Session::CreateParams::Permissions), phone_number_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::PhoneNumberCollection), redirect_on_completion: T.nilable(String), return_url: T.nilable(String), saved_payment_method_options: T.nilable(::Stripe::Checkout::Session::CreateParams::SavedPaymentMethodOptions), setup_intent_data: T.nilable(::Stripe::Checkout::Session::CreateParams::SetupIntentData), shipping_address_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::Checkout::Session::CreateParams::SubscriptionData), success_url: T.nilable(String), tax_id_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::TaxIdCollection), ui_mode: T.nilable(String), wallet_options: T.nilable(::Stripe::Checkout::Session::CreateParams::WalletOptions)).void
}
def initialize(
adaptive_pricing: nil,
@ -3764,6 +3798,7 @@ module Stripe
metadata: nil,
mode: nil,
optional_items: nil,
origin_context: nil,
payment_intent_data: nil,
payment_method_collection: nil,
payment_method_configuration: nil,

View File

@ -212,7 +212,7 @@ module Stripe
# The authorized amount
sig { returns(T.nilable(Integer)) }
attr_reader :amount_authorized
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
sig { returns(T.nilable(String)) }
attr_reader :brand
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
@ -459,7 +459,7 @@ module Stripe
sig { returns(VisaCheckout) }
attr_reader :visa_checkout
end
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
sig { returns(String) }
attr_reader :brand
# Checks on Card address and CVC if provided.
@ -535,7 +535,7 @@ module Stripe
sig { returns(String) }
attr_reader :type
end
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
sig { returns(T.nilable(String)) }
attr_reader :brand
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.

View File

@ -118,7 +118,7 @@ module Stripe
# The customer's address.
sig { returns(T.nilable(Address)) }
attr_reader :address
# The current balance, if any, that's stored on the customer. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize.
# The current balance, if any, that's stored on the customer in their default currency. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize. For multi-currency balances, see [invoice_credit_balance](https://stripe.com/docs/api/customers/object#customer_object-invoice_credit_balance).
sig { returns(Integer) }
attr_reader :balance
# The current funds being held by Stripe on behalf of the customer. You can apply these funds towards payment intents when the source is "cash_balance". The `settings[reconciliation_mode]` field describes if these funds apply to these payment intents manually or automatically.

View File

@ -253,7 +253,7 @@ module Stripe
attr_reader :dispute_type
end
class Card < Stripe::StripeObject
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
sig { returns(String) }
attr_reader :brand
# The type of dispute opened. Different case types may have varying fees and financial impact.

View File

@ -3,35 +3,23 @@
# typed: true
module Stripe
# Events are our way of letting you know when something interesting happens in
# your account. When an interesting event occurs, we create a new `Event`
# object. For example, when a charge succeeds, we create a `charge.succeeded`
# event, and when an invoice payment attempt fails, we create an
# `invoice.payment_failed` event. Certain API requests might create multiple
# events. For example, if you create a new subscription for a
# customer, you receive both a `customer.subscription.created` event and a
# `charge.succeeded` event.
# Snapshot events allow you to track and react to activity in your Stripe integration. When
# the state of another API resource changes, Stripe creates an `Event` object that contains
# all the relevant information associated with that action, including the affected API
# resource. For example, a successful payment triggers a `charge.succeeded` event, which
# contains the `Charge` in the event's data property. Some actions trigger multiple events.
# For example, if you create a new subscription for a customer, it triggers both a
# `customer.subscription.created` event and a `charge.succeeded` event.
#
# Events occur when the state of another API resource changes. The event's data
# field embeds the resource's state at the time of the change. For
# example, a `charge.succeeded` event contains a charge, and an
# `invoice.payment_failed` event contains an invoice.
# Configure an event destination in your account to listen for events that represent actions
# your integration needs to respond to. Additionally, you can retrieve an individual event or
# a list of events from the API.
#
# As with other API resources, you can use endpoints to retrieve an
# [individual event](https://stripe.com/docs/api#retrieve_event) or a [list of events](https://stripe.com/docs/api#list_events)
# from the API. We also have a separate
# [webhooks](http://en.wikipedia.org/wiki/Webhook) system for sending the
# `Event` objects directly to an endpoint on your server. You can manage
# webhooks in your
# [account settings](https://dashboard.stripe.com/account/webhooks). Learn how
# to [listen for events](https://docs.stripe.com/webhooks)
# so that your integration can automatically trigger reactions.
# [Connect](https://docs.stripe.com/connect) platforms can also receive event notifications
# that occur in their connected accounts. These events include an account attribute that
# identifies the relevant connected account.
#
# When using [Connect](https://docs.stripe.com/connect), you can also receive event notifications
# that occur in connected accounts. For these events, there's an
# additional `account` attribute in the received `Event` object.
#
# We only guarantee access to events through the [Retrieve Event API](https://stripe.com/docs/api#retrieve_event)
# You can access events through the [Retrieve Event API](https://docs.stripe.com/api/events#retrieve_event)
# for 30 days.
class Event < APIResource
class Data < Stripe::StripeObject

View File

@ -910,7 +910,7 @@ module Stripe
}
def initialize(enabled: nil, plan: nil); end
end
# Installment configuration for payments attempted on this invoice (Mexico Only).
# Installment configuration for payments attempted on this invoice.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
sig {
@ -1277,7 +1277,7 @@ module Stripe
# Settings for automatic tax lookup for this invoice.
sig { returns(T.nilable(::Stripe::Invoice::UpdateParams::AutomaticTax)) }
attr_accessor :automatic_tax
# The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. To turn off automatic finalization, set `auto_advance` to false.
# The time when this invoice should be scheduled to finalize (up to 5 years in the future). The invoice is finalized at this time if it's still in draft state. To turn off automatic finalization, set `auto_advance` to false.
sig { returns(T.nilable(Integer)) }
attr_accessor :automatically_finalizes_at
# Either `charge_automatically` or `send_invoice`. This field can be updated only on `draft` invoices.
@ -1602,7 +1602,7 @@ module Stripe
}
def initialize(enabled: nil, plan: nil); end
end
# Installment configuration for payments attempted on this invoice (Mexico Only).
# Installment configuration for payments attempted on this invoice.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
sig {
@ -1963,13 +1963,13 @@ module Stripe
# 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)) }
attr_accessor :application_fee_amount
# Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action.
# Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action. Defaults to false.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :auto_advance
# Settings for automatic tax lookup for this invoice.
sig { returns(T.nilable(::Stripe::Invoice::CreateParams::AutomaticTax)) }
attr_accessor :automatic_tax
# The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state.
# The time when this invoice should be scheduled to finalize (up to 5 years in the future). The invoice is finalized at this time if it's still in draft state.
sig { returns(T.nilable(Integer)) }
attr_accessor :automatically_finalizes_at
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions. Defaults to `charge_automatically`.
@ -2982,7 +2982,7 @@ module Stripe
end
class ScheduleDetails < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
@ -3113,6 +3113,16 @@ module Stripe
}
def initialize(coupon: nil, discount: nil, promotion_code: nil); end
end
class Duration < Stripe::RequestParams
# Specifies phase duration. Either `day`, `week`, `month` or `year`.
sig { returns(String) }
attr_accessor :interval
# The multiplier applied to the interval.
sig { returns(T.nilable(Integer)) }
attr_accessor :interval_count
sig { params(interval: String, interval_count: T.nilable(Integer)).void }
def initialize(interval: nil, interval_count: nil); end
end
class InvoiceSettings < Stripe::RequestParams
class Issuer < Stripe::RequestParams
# The connected account being referenced when `type` is `account`.
@ -3301,6 +3311,11 @@ module Stripe
returns(T.nilable(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.
sig {
returns(T.nilable(::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Duration))
}
attr_accessor :duration
# The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
sig { returns(T.nilable(T.any(Integer, String))) }
attr_accessor :end_date
@ -3314,7 +3329,7 @@ module Stripe
returns(T::Array[::Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Phase::Item])
}
attr_accessor :items
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set.
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead.
sig { returns(T.nilable(Integer)) }
attr_accessor :iterations
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
@ -3341,7 +3356,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]))), 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.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
}
def initialize(
add_invoice_items: nil,
@ -3355,6 +3370,7 @@ module Stripe
default_tax_rates: nil,
description: nil,
discounts: nil,
duration: nil,
end_date: nil,
invoice_settings: nil,
items: nil,
@ -3396,7 +3412,7 @@ module Stripe
end
class SubscriptionDetails < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
@ -3533,7 +3549,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, Integer)))) }
sig { returns(T.nilable(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)) }
@ -3565,7 +3581,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, Integer))), 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.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
}
def initialize(
billing_cycle_anchor: nil,

View File

@ -380,7 +380,7 @@ module Stripe
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# The ID of an existing invoice to add this invoice item to. When left blank, the invoice item will be added to the next upcoming scheduled invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice.
# The ID of an existing invoice to add this invoice item to. For subscription invoices, when left blank, the invoice item will be added to the next upcoming scheduled invoice. For standalone invoices, the invoice item won't be automatically added unless you pass `pending_invoice_item_behavior: 'include'` when creating the invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice.
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`.

View File

@ -1843,7 +1843,7 @@ module Stripe
attr_reader :zip
end
class PresentmentDetails < Stripe::StripeObject
# Amount intended to be collected by this payment, denominated in presentment_currency.
# Amount intended to be collected by this payment, denominated in `presentment_currency`.
sig { returns(Integer) }
attr_reader :presentment_amount
# Currency presented to the customer during payment.
@ -3157,7 +3157,7 @@ module Stripe
# 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)) }
attr_accessor :cvc_token
# Installment configuration for payments attempted on this PaymentIntent (Mexico Only).
# Installment configuration for payments attempted on this PaymentIntent.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
sig {
@ -5668,7 +5668,7 @@ module Stripe
# 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)) }
attr_accessor :cvc_token
# Installment configuration for payments attempted on this PaymentIntent (Mexico Only).
# Installment configuration for payments attempted on this PaymentIntent.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
sig {
@ -8269,7 +8269,7 @@ module Stripe
# 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)) }
attr_accessor :cvc_token
# Installment configuration for payments attempted on this PaymentIntent (Mexico Only).
# Installment configuration for payments attempted on this PaymentIntent.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
sig {
@ -9814,6 +9814,7 @@ module Stripe
# Confirm that your customer intends to pay with current or provided
# payment method. Upon confirmation, the PaymentIntent will attempt to initiate
# a payment.
#
# If the selected payment method requires additional authentication steps, the
# PaymentIntent will transition to the requires_action status and
# suggest additional actions via next_action. If payment fails,
@ -9821,18 +9822,22 @@ module Stripe
# canceled status if the confirmation limit is reached. If
# payment succeeds, the PaymentIntent will transition to the succeeded
# status (or requires_capture, if capture_method is set to manual).
#
# If the confirmation_method is automatic, payment may be attempted
# using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
# and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
# After next_actions are handled by the client, no additional
# confirmation is required to complete the payment.
#
# If the confirmation_method is manual, all payment attempts must be
# initiated using a secret key.
#
# If any actions are required for the payment, the PaymentIntent will
# return to the requires_confirmation state
# after those actions are completed. Your server needs to then
# explicitly re-confirm the PaymentIntent to initiate the next payment
# attempt.
#
# There is a variable upper limit on how many times a PaymentIntent can be confirmed.
# After this limit is reached, any further calls to this endpoint will
# transition the PaymentIntent to the canceled state.
@ -9844,6 +9849,7 @@ module Stripe
# Confirm that your customer intends to pay with current or provided
# payment method. Upon confirmation, the PaymentIntent will attempt to initiate
# a payment.
#
# If the selected payment method requires additional authentication steps, the
# PaymentIntent will transition to the requires_action status and
# suggest additional actions via next_action. If payment fails,
@ -9851,18 +9857,22 @@ module Stripe
# canceled status if the confirmation limit is reached. If
# payment succeeds, the PaymentIntent will transition to the succeeded
# status (or requires_capture, if capture_method is set to manual).
#
# If the confirmation_method is automatic, payment may be attempted
# using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
# and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
# After next_actions are handled by the client, no additional
# confirmation is required to complete the payment.
#
# If the confirmation_method is manual, all payment attempts must be
# initiated using a secret key.
#
# If any actions are required for the payment, the PaymentIntent will
# return to the requires_confirmation state
# after those actions are completed. Your server needs to then
# explicitly re-confirm the PaymentIntent to initiate the next payment
# attempt.
#
# There is a variable upper limit on how many times a PaymentIntent can be confirmed.
# After this limit is reached, any further calls to this endpoint will
# transition the PaymentIntent to the canceled state.

View File

@ -189,6 +189,9 @@ module Stripe
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
sig { returns(T.nilable(String)) }
attr_reader :amount_tax_display
# ID of the invoice rendering template to be used for the generated invoice.
sig { returns(T.nilable(String)) }
attr_reader :template
end
# The account tax IDs associated with the invoice.
sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) }
@ -752,8 +755,13 @@ module Stripe
# 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)))) }
attr_accessor :amount_tax_display
sig { params(amount_tax_display: T.nilable(T.nilable(T.any(String, String)))).void }
def initialize(amount_tax_display: nil); end
# 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
}
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])))) }
@ -813,7 +821,7 @@ module Stripe
# Set to true if the quantity can be adjusted to any non-negative Integer.
sig { returns(T::Boolean) }
attr_accessor :enabled
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999.
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999.
sig { returns(T.nilable(Integer)) }
attr_accessor :maximum
# The minimum quantity the customer can purchase. By default this value is 0. If there is only one item in the cart then that item's quantity cannot go down to 0.
@ -824,21 +832,100 @@ module Stripe
}
def initialize(enabled: nil, maximum: nil, minimum: nil); end
end
class PriceData < Stripe::RequestParams
class ProductData < Stripe::RequestParams
# 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(String)) }
attr_accessor :description
# A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :images
# 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
# The product's name, meant to be displayable to the customer.
sig { returns(String) }
attr_accessor :name
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
sig { returns(T.nilable(String)) }
attr_accessor :tax_code
sig {
params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void
}
def initialize(
description: nil,
images: nil,
metadata: nil,
name: nil,
tax_code: nil
); end
end
class Recurring < Stripe::RequestParams
# Specifies billing frequency. Either `day`, `week`, `month` or `year`.
sig { returns(String) }
attr_accessor :interval
# The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
sig { returns(T.nilable(Integer)) }
attr_accessor :interval_count
sig { params(interval: String, interval_count: T.nilable(Integer)).void }
def initialize(interval: nil, interval_count: nil); end
end
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
sig { returns(String) }
attr_accessor :currency
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required.
sig { returns(T.nilable(String)) }
attr_accessor :product
# Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
sig {
returns(T.nilable(::Stripe::PaymentLink::CreateParams::LineItem::PriceData::ProductData))
}
attr_accessor :product_data
# The recurring components of a price such as `interval` and `interval_count`.
sig {
returns(T.nilable(::Stripe::PaymentLink::CreateParams::LineItem::PriceData::Recurring))
}
attr_accessor :recurring
# Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
sig { returns(T.nilable(String)) }
attr_accessor :tax_behavior
# A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
sig { returns(T.nilable(Integer)) }
attr_accessor :unit_amount
# Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
sig { returns(T.nilable(String)) }
attr_accessor :unit_amount_decimal
sig {
params(currency: String, product: T.nilable(String), product_data: T.nilable(::Stripe::PaymentLink::CreateParams::LineItem::PriceData::ProductData), recurring: T.nilable(::Stripe::PaymentLink::CreateParams::LineItem::PriceData::Recurring), tax_behavior: T.nilable(String), unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
}
def initialize(
currency: nil,
product: nil,
product_data: nil,
recurring: nil,
tax_behavior: nil,
unit_amount: nil,
unit_amount_decimal: nil
); end
end
# When set, provides configuration for this items quantity to be adjusted by the customer during checkout.
sig {
returns(T.nilable(::Stripe::PaymentLink::CreateParams::LineItem::AdjustableQuantity))
}
attr_accessor :adjustable_quantity
# The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object.
sig { returns(String) }
sig { returns(T.nilable(String)) }
attr_accessor :price
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
sig { returns(T.nilable(::Stripe::PaymentLink::CreateParams::LineItem::PriceData)) }
attr_accessor :price_data
# The quantity of the line item being purchased.
sig { returns(Integer) }
attr_accessor :quantity
sig {
params(adjustable_quantity: T.nilable(::Stripe::PaymentLink::CreateParams::LineItem::AdjustableQuantity), price: String, quantity: Integer).void
params(adjustable_quantity: T.nilable(::Stripe::PaymentLink::CreateParams::LineItem::AdjustableQuantity), price: T.nilable(String), price_data: T.nilable(::Stripe::PaymentLink::CreateParams::LineItem::PriceData), quantity: Integer).void
}
def initialize(adjustable_quantity: nil, price: nil, quantity: nil); end
def initialize(adjustable_quantity: nil, price: nil, price_data: nil, quantity: nil); end
end
class OptionalItem < Stripe::RequestParams
class AdjustableQuantity < Stripe::RequestParams
@ -1420,8 +1507,13 @@ module Stripe
# 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)))) }
attr_accessor :amount_tax_display
sig { params(amount_tax_display: T.nilable(T.nilable(T.any(String, String)))).void }
def initialize(amount_tax_display: nil); end
# 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
}
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])))) }
@ -1481,7 +1573,7 @@ module Stripe
# Set to true if the quantity can be adjusted to any non-negative Integer.
sig { returns(T::Boolean) }
attr_accessor :enabled
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999.
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999.
sig { returns(T.nilable(Integer)) }
attr_accessor :maximum
# The minimum quantity the customer can purchase. By default this value is 0. If there is only one item in the cart then that item's quantity cannot go down to 0.

View File

@ -158,7 +158,7 @@ module Stripe
# The authorized amount
sig { returns(T.nilable(Integer)) }
attr_reader :amount_authorized
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
sig { returns(T.nilable(String)) }
attr_reader :brand
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
@ -405,7 +405,7 @@ module Stripe
sig { returns(VisaCheckout) }
attr_reader :visa_checkout
end
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
sig { returns(String) }
attr_reader :brand
# Checks on Card address and CVC if provided.
@ -481,7 +481,7 @@ module Stripe
sig { returns(String) }
attr_reader :type
end
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
sig { returns(T.nilable(String)) }
attr_reader :brand
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
@ -1761,7 +1761,7 @@ module Stripe
}
def self.list(params = {}, opts = {}); end
# Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated.
# Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated.
sig {
params(payment_method: String, params: T.any(::Stripe::PaymentMethod::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
}

View File

@ -579,7 +579,7 @@ module Stripe
end
class SubscriptionData < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }

View File

@ -20,7 +20,7 @@ module Stripe
# Unique identifier for the object.
sig { returns(String) }
attr_reader :id
# The type of items in the value list. One of `card_fingerprint`, `us_bank_account_fingerprint`, `sepa_debit_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, or `customer_id`.
# The type of items in the value list. One of `card_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`.
sig { returns(String) }
attr_reader :item_type
# List of items contained within this value list.
@ -120,7 +120,7 @@ module Stripe
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Type of the items in the value list. One of `card_fingerprint`, `us_bank_account_fingerprint`, `sepa_debit_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, or `customer_id`. Use `string` if the item type is unknown or mixed.
# Type of the items in the value list. One of `card_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`. Use `string` if the item type is unknown or mixed.
sig { returns(T.nilable(String)) }
attr_accessor :item_type
# 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`.

View File

@ -267,7 +267,7 @@ module Stripe
attr_reader :type
end
class PresentmentDetails < Stripe::StripeObject
# Amount intended to be collected by this payment, denominated in presentment_currency.
# Amount intended to be collected by this payment, denominated in `presentment_currency`.
sig { returns(Integer) }
attr_reader :presentment_amount
# Currency presented to the customer during payment.

View File

@ -45,7 +45,7 @@ module Stripe
# The charge associated with this review.
sig { returns(T.nilable(T.any(String, Stripe::Charge))) }
attr_reader :charge
# The reason the review was closed, or null if it has not yet been closed. One of `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, or `canceled`.
# The reason the review was closed, or null if it has not yet been closed. One of `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, `canceled`, `payment_never_settled`, or `acknowledged`.
sig { returns(T.nilable(String)) }
attr_reader :closed_reason
# Time at which the object was created. Measured in seconds since the Unix epoch.
@ -75,7 +75,7 @@ module Stripe
# The PaymentIntent ID associated with this review, if one exists.
sig { returns(T.any(String, Stripe::PaymentIntent)) }
attr_reader :payment_intent
# The reason the review is currently open or closed. One of `rule`, `manual`, `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, or `canceled`.
# The reason the review is currently open or closed. One of `rule`, `manual`, `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, `canceled`, `payment_never_settled`, or `acknowledged`.
sig { returns(String) }
attr_reader :reason
# Information related to the browsing session of the user who initiated the payment.

View File

@ -91,7 +91,7 @@ module Stripe
sig { returns(String) }
attr_reader :type
end
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
sig { returns(T.nilable(String)) }
attr_reader :brand
# Check results by Card networks on Card address and CVC at the time of authorization

View File

@ -974,7 +974,7 @@ module Stripe
}
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, Integer)))) }
sig { returns(T.nilable(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)) }
@ -1034,7 +1034,7 @@ module Stripe
#
# Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes).
#
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.
sig { returns(T.nilable(String)) }
attr_accessor :payment_behavior
# Payment settings to pass to invoices created by the subscription.
@ -1066,7 +1066,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, Integer))), 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.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
}
def initialize(
add_invoice_items: nil,
@ -1347,7 +1347,7 @@ module Stripe
def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil); end
end
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
@ -1776,7 +1776,7 @@ module Stripe
}
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(Integer)) }
sig { returns(T.nilable(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)) }
@ -1868,7 +1868,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(Integer), 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.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
}
def initialize(
add_invoice_items: nil,

View File

@ -169,7 +169,7 @@ module Stripe
#
# Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes).
#
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.
sig { returns(T.nilable(String)) }
attr_accessor :payment_behavior
# The identifier of the new plan for this subscription item.
@ -325,7 +325,7 @@ module Stripe
#
# Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes).
#
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.
sig { returns(T.nilable(String)) }
attr_accessor :payment_behavior
# The identifier of the plan to add to the subscription.

View File

@ -486,7 +486,7 @@ module Stripe
end
class CreateParams < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
@ -745,6 +745,16 @@ module Stripe
}
def initialize(coupon: nil, discount: nil, promotion_code: nil); end
end
class Duration < Stripe::RequestParams
# Specifies phase duration. Either `day`, `week`, `month` or `year`.
sig { returns(String) }
attr_accessor :interval
# The multiplier applied to the interval.
sig { returns(T.nilable(Integer)) }
attr_accessor :interval_count
sig { params(interval: String, interval_count: T.nilable(Integer)).void }
def initialize(interval: nil, interval_count: nil); end
end
class InvoiceSettings < Stripe::RequestParams
class Issuer < Stripe::RequestParams
# The connected account being referenced when `type` is `account`.
@ -933,6 +943,9 @@ module Stripe
returns(T.nilable(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.
sig { returns(T.nilable(::Stripe::SubscriptionSchedule::CreateParams::Phase::Duration)) }
attr_accessor :duration
# The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
sig { returns(T.nilable(Integer)) }
attr_accessor :end_date
@ -944,7 +957,7 @@ module Stripe
# List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
sig { returns(T::Array[::Stripe::SubscriptionSchedule::CreateParams::Phase::Item]) }
attr_accessor :items
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set.
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead.
sig { returns(T.nilable(Integer)) }
attr_accessor :iterations
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
@ -968,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]))), 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.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
}
def initialize(
add_invoice_items: nil,
@ -982,6 +995,7 @@ module Stripe
default_tax_rates: nil,
description: nil,
discounts: nil,
duration: nil,
end_date: nil,
invoice_settings: nil,
items: nil,
@ -1290,6 +1304,16 @@ module Stripe
}
def initialize(coupon: nil, discount: nil, promotion_code: nil); end
end
class Duration < Stripe::RequestParams
# Specifies phase duration. Either `day`, `week`, `month` or `year`.
sig { returns(String) }
attr_accessor :interval
# The multiplier applied to the interval.
sig { returns(T.nilable(Integer)) }
attr_accessor :interval_count
sig { params(interval: String, interval_count: T.nilable(Integer)).void }
def initialize(interval: nil, interval_count: nil); end
end
class InvoiceSettings < Stripe::RequestParams
class Issuer < Stripe::RequestParams
# The connected account being referenced when `type` is `account`.
@ -1478,6 +1502,9 @@ module Stripe
returns(T.nilable(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.
sig { returns(T.nilable(::Stripe::SubscriptionSchedule::UpdateParams::Phase::Duration)) }
attr_accessor :duration
# The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
sig { returns(T.nilable(T.any(Integer, String))) }
attr_accessor :end_date
@ -1489,7 +1516,7 @@ module Stripe
# List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
sig { returns(T::Array[::Stripe::SubscriptionSchedule::UpdateParams::Phase::Item]) }
attr_accessor :items
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set.
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead.
sig { returns(T.nilable(Integer)) }
attr_accessor :iterations
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
@ -1516,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]))), 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.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
}
def initialize(
add_invoice_items: nil,
@ -1530,6 +1557,7 @@ module Stripe
default_tax_rates: nil,
description: nil,
discounts: nil,
duration: nil,
end_date: nil,
invoice_settings: nil,
items: nil,

View File

@ -12,6 +12,14 @@ module Stripe
class Registration < APIResource
class CountryOptions < Stripe::StripeObject
class Ae < Stripe::StripeObject
class Standard < Stripe::StripeObject
# Place of supply scheme used in an Default standard registration.
sig { returns(String) }
attr_reader :place_of_supply_scheme
end
# Attribute for field standard
sig { returns(Standard) }
attr_reader :standard
# Type of registration in `country`.
sig { returns(String) }
attr_reader :type
@ -45,6 +53,14 @@ module Stripe
attr_reader :type
end
class Au < Stripe::StripeObject
class Standard < Stripe::StripeObject
# Place of supply scheme used in an Default standard registration.
sig { returns(String) }
attr_reader :place_of_supply_scheme
end
# Attribute for field standard
sig { returns(Standard) }
attr_reader :standard
# Type of registration in `country`.
sig { returns(String) }
attr_reader :type
@ -144,6 +160,14 @@ module Stripe
attr_reader :type
end
class Ch < Stripe::StripeObject
class Standard < Stripe::StripeObject
# Place of supply scheme used in an Default standard registration.
sig { returns(String) }
attr_reader :place_of_supply_scheme
end
# Attribute for field standard
sig { returns(Standard) }
attr_reader :standard
# Type of registration in `country`.
sig { returns(String) }
attr_reader :type
@ -293,6 +317,14 @@ module Stripe
attr_reader :type
end
class Gb < Stripe::StripeObject
class Standard < Stripe::StripeObject
# Place of supply scheme used in an Default standard registration.
sig { returns(String) }
attr_reader :place_of_supply_scheme
end
# Attribute for field standard
sig { returns(Standard) }
attr_reader :standard
# Type of registration in `country`.
sig { returns(String) }
attr_reader :type
@ -388,6 +420,14 @@ module Stripe
attr_reader :type
end
class Jp < Stripe::StripeObject
class Standard < Stripe::StripeObject
# Place of supply scheme used in an Default standard registration.
sig { returns(String) }
attr_reader :place_of_supply_scheme
end
# Attribute for field standard
sig { returns(Standard) }
attr_reader :standard
# Type of registration in `country`.
sig { returns(String) }
attr_reader :type
@ -528,6 +568,14 @@ module Stripe
attr_reader :type
end
class No < Stripe::StripeObject
class Standard < Stripe::StripeObject
# Place of supply scheme used in an Default standard registration.
sig { returns(String) }
attr_reader :place_of_supply_scheme
end
# Attribute for field standard
sig { returns(Standard) }
attr_reader :standard
# Type of registration in `country`.
sig { returns(String) }
attr_reader :type
@ -538,6 +586,14 @@ module Stripe
attr_reader :type
end
class Nz < Stripe::StripeObject
class Standard < Stripe::StripeObject
# Place of supply scheme used in an Default standard registration.
sig { returns(String) }
attr_reader :place_of_supply_scheme
end
# Attribute for field standard
sig { returns(Standard) }
attr_reader :standard
# Type of registration in `country`.
sig { returns(String) }
attr_reader :type
@ -625,6 +681,14 @@ module Stripe
attr_reader :type
end
class Sg < Stripe::StripeObject
class Standard < Stripe::StripeObject
# Place of supply scheme used in an Default standard registration.
sig { returns(String) }
attr_reader :place_of_supply_scheme
end
# Attribute for field standard
sig { returns(Standard) }
attr_reader :standard
# Type of registration in `country`.
sig { returns(String) }
attr_reader :type
@ -1120,18 +1184,46 @@ module Stripe
class CreateParams < Stripe::RequestParams
class CountryOptions < Stripe::RequestParams
class Ae < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Ae::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Ae::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Al < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Al::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Al::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Am < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -1141,11 +1233,25 @@ module Stripe
def initialize(type: nil); end
end
class Ao < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Ao::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Ao::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class At < Stripe::RequestParams
class Standard < Stripe::RequestParams
@ -1169,18 +1275,46 @@ module Stripe
def initialize(standard: nil, type: nil); end
end
class Au < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Au::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Au::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Aw < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Aw::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Aw::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Az < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -1190,25 +1324,67 @@ module Stripe
def initialize(type: nil); end
end
class Ba < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Ba::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Ba::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Bb < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Bb::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Bb::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Bd < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Bd::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Bd::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Be < Stripe::RequestParams
class Standard < Stripe::RequestParams
@ -1232,11 +1408,25 @@ module Stripe
def initialize(standard: nil, type: nil); end
end
class Bf < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Bf::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Bf::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Bg < Stripe::RequestParams
class Standard < Stripe::RequestParams
@ -1260,11 +1450,25 @@ module Stripe
def initialize(standard: nil, type: nil); end
end
class Bh < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Bh::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Bh::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Bj < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -1274,11 +1478,25 @@ module Stripe
def initialize(type: nil); end
end
class Bs < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Bs::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Bs::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class By < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -1309,18 +1527,46 @@ module Stripe
def initialize(province_standard: nil, type: nil); end
end
class Cd < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Cd::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Cd::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Ch < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Ch::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Ch::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Cl < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -1498,11 +1744,25 @@ module Stripe
def initialize(standard: nil, type: nil); end
end
class Et < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Et::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Et::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Fi < Stripe::RequestParams
class Standard < Stripe::RequestParams
@ -1547,11 +1807,25 @@ module Stripe
def initialize(standard: nil, type: nil); end
end
class Gb < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Gb::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Gb::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Ge < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -1561,11 +1835,25 @@ module Stripe
def initialize(type: nil); end
end
class Gn < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Gn::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Gn::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Gr < Stripe::RequestParams
class Standard < Stripe::RequestParams
@ -1666,11 +1954,25 @@ module Stripe
def initialize(type: nil); end
end
class Is < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Is::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Is::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class It < Stripe::RequestParams
class Standard < Stripe::RequestParams
@ -1694,11 +1996,25 @@ module Stripe
def initialize(standard: nil, type: nil); end
end
class Jp < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Jp::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Jp::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Ke < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -1820,25 +2136,67 @@ module Stripe
def initialize(type: nil); end
end
class Me < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Me::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Me::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Mk < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Mk::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Mk::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Mr < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Mr::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Mr::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Mt < Stripe::RequestParams
class Standard < Stripe::RequestParams
@ -1904,11 +2262,25 @@ module Stripe
def initialize(standard: nil, type: nil); end
end
class No < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::No::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::No::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Np < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -1918,18 +2290,46 @@ module Stripe
def initialize(type: nil); end
end
class Nz < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Nz::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Nz::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Om < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Om::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Om::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Pe < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -2009,11 +2409,25 @@ module Stripe
def initialize(standard: nil, type: nil); end
end
class Rs < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Rs::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Rs::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Ru < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -2051,11 +2465,25 @@ module Stripe
def initialize(standard: nil, type: nil); end
end
class Sg < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Sg::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Sg::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Si < Stripe::RequestParams
class Standard < Stripe::RequestParams
@ -2107,11 +2535,25 @@ module Stripe
def initialize(type: nil); end
end
class Sr < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Sr::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Sr::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Th < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -2224,11 +2666,25 @@ module Stripe
); end
end
class Uy < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Uy::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Uy::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Uz < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -2245,11 +2701,25 @@ module Stripe
def initialize(type: nil); end
end
class Za < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Za::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Za::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Zm < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -2259,11 +2729,25 @@ module Stripe
def initialize(type: nil); end
end
class Zw < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Zw::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Zw::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
# Options for the registration in AE.
sig { returns(T.nilable(::Stripe::Tax::Registration::CreateParams::CountryOptions::Ae)) }

View File

@ -31,6 +31,17 @@ module Stripe
attr_reader :splashscreen
end
class Tipping < Stripe::StripeObject
class Aed < Stripe::StripeObject
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_reader :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_reader :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(Integer) }
attr_reader :smart_tip_threshold
end
class Aud < Stripe::StripeObject
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -42,6 +53,17 @@ module Stripe
sig { returns(Integer) }
attr_reader :smart_tip_threshold
end
class Bgn < Stripe::StripeObject
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_reader :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_reader :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(Integer) }
attr_reader :smart_tip_threshold
end
class Cad < Stripe::StripeObject
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -119,6 +141,17 @@ module Stripe
sig { returns(Integer) }
attr_reader :smart_tip_threshold
end
class Huf < Stripe::StripeObject
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_reader :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_reader :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(Integer) }
attr_reader :smart_tip_threshold
end
class Jpy < Stripe::StripeObject
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -174,6 +207,17 @@ module Stripe
sig { returns(Integer) }
attr_reader :smart_tip_threshold
end
class Ron < Stripe::StripeObject
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_reader :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_reader :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(Integer) }
attr_reader :smart_tip_threshold
end
class Sek < Stripe::StripeObject
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -207,9 +251,15 @@ module Stripe
sig { returns(Integer) }
attr_reader :smart_tip_threshold
end
# Attribute for field aed
sig { returns(Aed) }
attr_reader :aed
# Attribute for field aud
sig { returns(Aud) }
attr_reader :aud
# Attribute for field bgn
sig { returns(Bgn) }
attr_reader :bgn
# Attribute for field cad
sig { returns(Cad) }
attr_reader :cad
@ -231,6 +281,9 @@ module Stripe
# Attribute for field hkd
sig { returns(Hkd) }
attr_reader :hkd
# Attribute for field huf
sig { returns(Huf) }
attr_reader :huf
# Attribute for field jpy
sig { returns(Jpy) }
attr_reader :jpy
@ -246,6 +299,9 @@ module Stripe
# Attribute for field pln
sig { returns(Pln) }
attr_reader :pln
# Attribute for field ron
sig { returns(Ron) }
attr_reader :ron
# Attribute for field sek
sig { returns(Sek) }
attr_reader :sek
@ -387,6 +443,21 @@ module Stripe
def initialize(splashscreen: nil); end
end
class Tipping < Stripe::RequestParams
class Aed < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(T.nilable(Integer)) }
attr_accessor :smart_tip_threshold
sig {
params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Aud < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -402,6 +473,21 @@ module Stripe
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Bgn < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(T.nilable(Integer)) }
attr_accessor :smart_tip_threshold
sig {
params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Cad < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -507,6 +593,21 @@ module Stripe
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Huf < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(T.nilable(Integer)) }
attr_accessor :smart_tip_threshold
sig {
params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Jpy < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -582,6 +683,21 @@ module Stripe
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Ron < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(T.nilable(Integer)) }
attr_accessor :smart_tip_threshold
sig {
params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Sek < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -627,9 +743,15 @@ module Stripe
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
# Tipping configuration for AED
sig { returns(T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Aed)) }
attr_accessor :aed
# Tipping configuration for AUD
sig { returns(T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Aud)) }
attr_accessor :aud
# Tipping configuration for BGN
sig { returns(T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Bgn)) }
attr_accessor :bgn
# Tipping configuration for CAD
sig { returns(T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Cad)) }
attr_accessor :cad
@ -651,6 +773,9 @@ module Stripe
# Tipping configuration for HKD
sig { returns(T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Hkd)) }
attr_accessor :hkd
# Tipping configuration for HUF
sig { returns(T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Huf)) }
attr_accessor :huf
# Tipping configuration for JPY
sig { returns(T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Jpy)) }
attr_accessor :jpy
@ -666,6 +791,9 @@ module Stripe
# Tipping configuration for PLN
sig { returns(T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Pln)) }
attr_accessor :pln
# Tipping configuration for RON
sig { returns(T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Ron)) }
attr_accessor :ron
# Tipping configuration for SEK
sig { returns(T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Sek)) }
attr_accessor :sek
@ -676,10 +804,12 @@ module Stripe
sig { returns(T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Usd)) }
attr_accessor :usd
sig {
params(aud: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Aud), cad: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Cad), chf: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Chf), czk: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Czk), dkk: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Dkk), eur: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Eur), gbp: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Gbp), hkd: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Hkd), jpy: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Jpy), myr: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Myr), nok: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Nok), nzd: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Nzd), pln: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Pln), sek: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Sek), sgd: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Sgd), usd: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Usd)).void
params(aed: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Aed), aud: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Aud), bgn: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Bgn), cad: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Cad), chf: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Chf), czk: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Czk), dkk: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Dkk), eur: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Eur), gbp: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Gbp), hkd: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Hkd), huf: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Huf), jpy: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Jpy), myr: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Myr), nok: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Nok), nzd: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Nzd), pln: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Pln), ron: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Ron), sek: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Sek), sgd: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Sgd), usd: T.nilable(::Stripe::Terminal::Configuration::UpdateParams::Tipping::Usd)).void
}
def initialize(
aed: nil,
aud: nil,
bgn: nil,
cad: nil,
chf: nil,
czk: nil,
@ -687,11 +817,13 @@ module Stripe
eur: nil,
gbp: nil,
hkd: nil,
huf: nil,
jpy: nil,
myr: nil,
nok: nil,
nzd: nil,
pln: nil,
ron: nil,
sek: nil,
sgd: nil,
usd: nil
@ -904,6 +1036,21 @@ module Stripe
def initialize(splashscreen: nil); end
end
class Tipping < Stripe::RequestParams
class Aed < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(T.nilable(Integer)) }
attr_accessor :smart_tip_threshold
sig {
params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Aud < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -919,6 +1066,21 @@ module Stripe
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Bgn < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(T.nilable(Integer)) }
attr_accessor :smart_tip_threshold
sig {
params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Cad < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -1024,6 +1186,21 @@ module Stripe
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Huf < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(T.nilable(Integer)) }
attr_accessor :smart_tip_threshold
sig {
params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Jpy < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -1099,6 +1276,21 @@ module Stripe
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Ron < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(T.nilable(Integer)) }
attr_accessor :smart_tip_threshold
sig {
params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Sek < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -1144,9 +1336,15 @@ module Stripe
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
# Tipping configuration for AED
sig { returns(T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Aed)) }
attr_accessor :aed
# Tipping configuration for AUD
sig { returns(T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Aud)) }
attr_accessor :aud
# Tipping configuration for BGN
sig { returns(T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Bgn)) }
attr_accessor :bgn
# Tipping configuration for CAD
sig { returns(T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Cad)) }
attr_accessor :cad
@ -1168,6 +1366,9 @@ module Stripe
# Tipping configuration for HKD
sig { returns(T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Hkd)) }
attr_accessor :hkd
# Tipping configuration for HUF
sig { returns(T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Huf)) }
attr_accessor :huf
# Tipping configuration for JPY
sig { returns(T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Jpy)) }
attr_accessor :jpy
@ -1183,6 +1384,9 @@ module Stripe
# Tipping configuration for PLN
sig { returns(T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Pln)) }
attr_accessor :pln
# Tipping configuration for RON
sig { returns(T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Ron)) }
attr_accessor :ron
# Tipping configuration for SEK
sig { returns(T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Sek)) }
attr_accessor :sek
@ -1193,10 +1397,12 @@ module Stripe
sig { returns(T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Usd)) }
attr_accessor :usd
sig {
params(aud: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Aud), cad: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Cad), chf: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Chf), czk: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Czk), dkk: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Dkk), eur: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Eur), gbp: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Gbp), hkd: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Hkd), jpy: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Jpy), myr: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Myr), nok: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Nok), nzd: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Nzd), pln: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Pln), sek: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Sek), sgd: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Sgd), usd: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Usd)).void
params(aed: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Aed), aud: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Aud), bgn: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Bgn), cad: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Cad), chf: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Chf), czk: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Czk), dkk: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Dkk), eur: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Eur), gbp: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Gbp), hkd: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Hkd), huf: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Huf), jpy: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Jpy), myr: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Myr), nok: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Nok), nzd: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Nzd), pln: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Pln), ron: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Ron), sek: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Sek), sgd: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Sgd), usd: T.nilable(::Stripe::Terminal::Configuration::CreateParams::Tipping::Usd)).void
}
def initialize(
aed: nil,
aud: nil,
bgn: nil,
cad: nil,
chf: nil,
czk: nil,
@ -1204,11 +1410,13 @@ module Stripe
eur: nil,
gbp: nil,
hkd: nil,
huf: nil,
jpy: nil,
myr: nil,
nok: nil,
nzd: nil,
pln: nil,
ron: nil,
sek: nil,
sgd: nil,
usd: nil

View File

@ -33,7 +33,9 @@ module Stripe
# The URL that the user will be redirected to upon leaving or completing the linked flow.
sig { returns(T.nilable(String)) }
attr_accessor :return_url
# The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`.
# The type of account link the user is requesting.
#
# You can create Account Links of type `account_update` only for connected accounts where your platform is responsible for collecting requirements, including Custom accounts. You can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use [Connect embedded components](/connect/get-started-connect-embedded-components), you can include components that allow your connected accounts to update their own information. For an account without Stripe-hosted Dashboard access where Stripe is liable for negative balances, you must use embedded components.
sig { returns(String) }
attr_accessor :type
sig {

View File

@ -118,7 +118,7 @@ module Stripe
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
sig { returns(T.nilable(String)) }
attr_accessor :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :minority_owned_business_designation
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
@ -2210,7 +2210,7 @@ module Stripe
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
sig { returns(T.nilable(String)) }
attr_accessor :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :minority_owned_business_designation
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
@ -4226,7 +4226,7 @@ module Stripe
#
# Test-mode accounts can be deleted at any time.
#
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
# Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
#
# If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
sig {

View File

@ -215,6 +215,39 @@ module Stripe
}
def initialize(enabled: nil, features: nil); end
end
class InstantPayoutsPromotion < Stripe::RequestParams
class Features < Stripe::RequestParams
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :disable_stripe_user_authentication
# Whether external account collection is enabled. This feature can only be `false` for accounts where youre responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :external_account_collection
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :instant_payouts
sig {
params(disable_stripe_user_authentication: T.nilable(T::Boolean), external_account_collection: T.nilable(T::Boolean), instant_payouts: T.nilable(T::Boolean)).void
}
def initialize(
disable_stripe_user_authentication: nil,
external_account_collection: nil,
instant_payouts: nil
); end
end
# Whether the embedded component is enabled.
sig { returns(T::Boolean) }
attr_accessor :enabled
# The list of features enabled in the embedded component.
sig {
returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::InstantPayoutsPromotion::Features))
}
attr_accessor :features
sig {
params(enabled: T::Boolean, features: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::InstantPayoutsPromotion::Features)).void
}
def initialize(enabled: nil, features: nil); end
end
class IssuingCard < Stripe::RequestParams
class Features < Stripe::RequestParams
# Whether to allow card management features.
@ -550,6 +583,11 @@ module Stripe
returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::FinancialAccountTransactions))
}
attr_accessor :financial_account_transactions
# Configuration for the [instant payouts promotion](/connect/supported-embedded-components/instant-payouts-promotion/) embedded component.
sig {
returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::InstantPayoutsPromotion))
}
attr_accessor :instant_payouts_promotion
# Configuration for the [issuing card](/connect/supported-embedded-components/issuing-card/) embedded component.
sig {
returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::IssuingCard))
@ -601,7 +639,7 @@ module Stripe
}
attr_accessor :tax_settings
sig {
params(account_management: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountOnboarding), balances: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Balances), disputes_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::DisputesList), documents: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Documents), financial_account: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::FinancialAccount), financial_account_transactions: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::FinancialAccountTransactions), issuing_card: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::IssuingCard), issuing_cards_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::IssuingCardsList), notification_banner: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::NotificationBanner), payment_details: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentDetails), payment_disputes: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentDisputes), payments: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Payments), payouts: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Payouts), payouts_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PayoutsList), tax_registrations: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxSettings)).void
params(account_management: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountOnboarding), balances: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Balances), disputes_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::DisputesList), documents: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Documents), financial_account: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::FinancialAccount), financial_account_transactions: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::FinancialAccountTransactions), instant_payouts_promotion: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::InstantPayoutsPromotion), issuing_card: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::IssuingCard), issuing_cards_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::IssuingCardsList), notification_banner: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::NotificationBanner), payment_details: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentDetails), payment_disputes: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentDisputes), payments: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Payments), payouts: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Payouts), payouts_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PayoutsList), tax_registrations: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxSettings)).void
}
def initialize(
account_management: nil,
@ -611,6 +649,7 @@ module Stripe
documents: nil,
financial_account: nil,
financial_account_transactions: nil,
instant_payouts_promotion: nil,
issuing_card: nil,
issuing_cards_list: nil,
notification_banner: nil,

View File

@ -49,7 +49,7 @@ module Stripe
returns(T.nilable(::Stripe::Billing::CreditGrantService::CreateParams::Amount::Monetary))
}
attr_accessor :monetary
# Specify the type of this amount. We currently only support `monetary` billing credits.
# The type of this amount. We currently only support `monetary` billing credits.
sig { returns(String) }
attr_accessor :type
sig {

View File

@ -118,14 +118,36 @@ module Stripe
end
class SubscriptionUpdate < Stripe::RequestParams
class Product < Stripe::RequestParams
class AdjustableQuantity < Stripe::RequestParams
# Set to true if the quantity can be adjusted to any non-negative integer.
sig { returns(T::Boolean) }
attr_accessor :enabled
# The maximum quantity that can be set for the product.
sig { returns(T.nilable(Integer)) }
attr_accessor :maximum
# The minimum quantity that can be set for the product.
sig { returns(T.nilable(Integer)) }
attr_accessor :minimum
sig {
params(enabled: T::Boolean, maximum: T.nilable(Integer), minimum: T.nilable(Integer)).void
}
def initialize(enabled: nil, maximum: nil, minimum: nil); end
end
# Control whether the quantity of the product can be adjusted.
sig {
returns(T.nilable(::Stripe::BillingPortal::ConfigurationService::CreateParams::Features::SubscriptionUpdate::Product::AdjustableQuantity))
}
attr_accessor :adjustable_quantity
# The list of price IDs for the product that a subscription can be updated to.
sig { returns(T::Array[String]) }
attr_accessor :prices
# The product id.
sig { returns(String) }
attr_accessor :product
sig { params(prices: T::Array[String], product: String).void }
def initialize(prices: nil, product: nil); end
sig {
params(adjustable_quantity: T.nilable(::Stripe::BillingPortal::ConfigurationService::CreateParams::Features::SubscriptionUpdate::Product::AdjustableQuantity), prices: T::Array[String], product: String).void
}
def initialize(adjustable_quantity: nil, prices: nil, product: nil); end
end
class ScheduleAtPeriodEnd < Stripe::RequestParams
class Condition < Stripe::RequestParams
@ -341,14 +363,36 @@ module Stripe
end
class SubscriptionUpdate < Stripe::RequestParams
class Product < Stripe::RequestParams
class AdjustableQuantity < Stripe::RequestParams
# Set to true if the quantity can be adjusted to any non-negative integer.
sig { returns(T::Boolean) }
attr_accessor :enabled
# The maximum quantity that can be set for the product.
sig { returns(T.nilable(Integer)) }
attr_accessor :maximum
# The minimum quantity that can be set for the product.
sig { returns(T.nilable(Integer)) }
attr_accessor :minimum
sig {
params(enabled: T::Boolean, maximum: T.nilable(Integer), minimum: T.nilable(Integer)).void
}
def initialize(enabled: nil, maximum: nil, minimum: nil); end
end
# Control whether the quantity of the product can be adjusted.
sig {
returns(T.nilable(::Stripe::BillingPortal::ConfigurationService::UpdateParams::Features::SubscriptionUpdate::Product::AdjustableQuantity))
}
attr_accessor :adjustable_quantity
# The list of price IDs for the product that a subscription can be updated to.
sig { returns(T::Array[String]) }
attr_accessor :prices
# The product id.
sig { returns(String) }
attr_accessor :product
sig { params(prices: T::Array[String], product: String).void }
def initialize(prices: nil, product: nil); end
sig {
params(adjustable_quantity: T.nilable(::Stripe::BillingPortal::ConfigurationService::UpdateParams::Features::SubscriptionUpdate::Product::AdjustableQuantity), prices: T::Array[String], product: String).void
}
def initialize(adjustable_quantity: nil, prices: nil, product: nil); end
end
class ScheduleAtPeriodEnd < Stripe::RequestParams
class Condition < Stripe::RequestParams

View File

@ -390,8 +390,13 @@ module Stripe
# 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)))) }
attr_accessor :amount_tax_display
sig { params(amount_tax_display: T.nilable(T.nilable(T.any(String, String)))).void }
def initialize(amount_tax_display: nil); end
# 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
}
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])))) }
@ -1428,8 +1433,19 @@ module Stripe
# The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
sig { returns(T.nilable(Integer)) }
attr_accessor :expires_after_seconds
sig { params(expires_after_seconds: T.nilable(Integer)).void }
def initialize(expires_after_seconds: nil); end
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
#
# 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(String)) }
attr_accessor :setup_future_usage
sig {
params(expires_after_seconds: T.nilable(Integer), setup_future_usage: T.nilable(String)).void
}
def initialize(expires_after_seconds: nil, setup_future_usage: nil); end
end
class RevolutPay < Stripe::RequestParams
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
@ -1985,7 +2001,7 @@ module Stripe
end
class SubscriptionData < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
@ -2260,6 +2276,9 @@ module Stripe
returns(T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::OptionalItem]))
}
attr_accessor :optional_items
# Where the user is coming from. This informs the optimizations that are applied to the session. For example, a session originating from a mobile app may behave more like a native app, depending on the platform. This parameter is currently not allowed if `ui_mode` is `custom`.
sig { returns(T.nilable(String)) }
attr_accessor :origin_context
# A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
sig {
returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentIntentData))
@ -2370,7 +2389,7 @@ module Stripe
sig { returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::WalletOptions)) }
attr_accessor :wallet_options
sig {
params(adaptive_pricing: T.nilable(::Stripe::Checkout::SessionService::CreateParams::AdaptivePricing), after_expiration: T.nilable(::Stripe::Checkout::SessionService::CreateParams::AfterExpiration), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::Checkout::SessionService::CreateParams::AutomaticTax), billing_address_collection: T.nilable(String), cancel_url: T.nilable(String), client_reference_id: T.nilable(String), consent_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::CustomField]), custom_text: T.nilable(::Stripe::Checkout::SessionService::CreateParams::CustomText), customer: T.nilable(String), customer_creation: T.nilable(String), customer_email: T.nilable(String), customer_update: T.nilable(::Stripe::Checkout::SessionService::CreateParams::CustomerUpdate), discounts: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::Discount]), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), invoice_creation: T.nilable(::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::LineItem]), locale: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), mode: T.nilable(String), optional_items: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::OptionalItem]), payment_intent_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), permissions: T.nilable(::Stripe::Checkout::SessionService::CreateParams::Permissions), phone_number_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PhoneNumberCollection), redirect_on_completion: T.nilable(String), return_url: T.nilable(String), saved_payment_method_options: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SavedPaymentMethodOptions), setup_intent_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SetupIntentData), shipping_address_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SubscriptionData), success_url: T.nilable(String), tax_id_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::TaxIdCollection), ui_mode: T.nilable(String), wallet_options: T.nilable(::Stripe::Checkout::SessionService::CreateParams::WalletOptions)).void
params(adaptive_pricing: T.nilable(::Stripe::Checkout::SessionService::CreateParams::AdaptivePricing), after_expiration: T.nilable(::Stripe::Checkout::SessionService::CreateParams::AfterExpiration), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::Checkout::SessionService::CreateParams::AutomaticTax), billing_address_collection: T.nilable(String), cancel_url: T.nilable(String), client_reference_id: T.nilable(String), consent_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::CustomField]), custom_text: T.nilable(::Stripe::Checkout::SessionService::CreateParams::CustomText), customer: T.nilable(String), customer_creation: T.nilable(String), customer_email: T.nilable(String), customer_update: T.nilable(::Stripe::Checkout::SessionService::CreateParams::CustomerUpdate), discounts: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::Discount]), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), invoice_creation: T.nilable(::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::LineItem]), locale: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), mode: T.nilable(String), optional_items: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::OptionalItem]), origin_context: T.nilable(String), payment_intent_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), permissions: T.nilable(::Stripe::Checkout::SessionService::CreateParams::Permissions), phone_number_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PhoneNumberCollection), redirect_on_completion: T.nilable(String), return_url: T.nilable(String), saved_payment_method_options: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SavedPaymentMethodOptions), setup_intent_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SetupIntentData), shipping_address_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SubscriptionData), success_url: T.nilable(String), tax_id_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::TaxIdCollection), ui_mode: T.nilable(String), wallet_options: T.nilable(::Stripe::Checkout::SessionService::CreateParams::WalletOptions)).void
}
def initialize(
adaptive_pricing: nil,
@ -2397,6 +2416,7 @@ module Stripe
metadata: nil,
mode: nil,
optional_items: nil,
origin_context: nil,
payment_intent_data: nil,
payment_method_collection: nil,
payment_method_configuration: nil,

View File

@ -276,7 +276,7 @@ module Stripe
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# The ID of an existing invoice to add this invoice item to. When left blank, the invoice item will be added to the next upcoming scheduled invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice.
# The ID of an existing invoice to add this invoice item to. For subscription invoices, when left blank, the invoice item will be added to the next upcoming scheduled invoice. For standalone invoices, the invoice item won't be automatically added unless you pass `pending_invoice_item_behavior: 'include'` when creating the invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice.
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`.

View File

@ -133,7 +133,7 @@ module Stripe
}
def initialize(enabled: nil, plan: nil); end
end
# Installment configuration for payments attempted on this invoice (Mexico Only).
# Installment configuration for payments attempted on this invoice.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
sig {
@ -502,7 +502,7 @@ module Stripe
# Settings for automatic tax lookup for this invoice.
sig { returns(T.nilable(::Stripe::InvoiceService::UpdateParams::AutomaticTax)) }
attr_accessor :automatic_tax
# The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. To turn off automatic finalization, set `auto_advance` to false.
# The time when this invoice should be scheduled to finalize (up to 5 years in the future). The invoice is finalized at this time if it's still in draft state. To turn off automatic finalization, set `auto_advance` to false.
sig { returns(T.nilable(Integer)) }
attr_accessor :automatically_finalizes_at
# Either `charge_automatically` or `send_invoice`. This field can be updated only on `draft` invoices.
@ -827,7 +827,7 @@ module Stripe
}
def initialize(enabled: nil, plan: nil); end
end
# Installment configuration for payments attempted on this invoice (Mexico Only).
# Installment configuration for payments attempted on this invoice.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
sig {
@ -1190,13 +1190,13 @@ module Stripe
# 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)) }
attr_accessor :application_fee_amount
# Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action.
# Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action. Defaults to false.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :auto_advance
# Settings for automatic tax lookup for this invoice.
sig { returns(T.nilable(::Stripe::InvoiceService::CreateParams::AutomaticTax)) }
attr_accessor :automatic_tax
# The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state.
# The time when this invoice should be scheduled to finalize (up to 5 years in the future). The invoice is finalized at this time if it's still in draft state.
sig { returns(T.nilable(Integer)) }
attr_accessor :automatically_finalizes_at
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions. Defaults to `charge_automatically`.
@ -2217,7 +2217,7 @@ module Stripe
end
class ScheduleDetails < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
@ -2348,6 +2348,16 @@ module Stripe
}
def initialize(coupon: nil, discount: nil, promotion_code: nil); end
end
class Duration < Stripe::RequestParams
# Specifies phase duration. Either `day`, `week`, `month` or `year`.
sig { returns(String) }
attr_accessor :interval
# The multiplier applied to the interval.
sig { returns(T.nilable(Integer)) }
attr_accessor :interval_count
sig { params(interval: String, interval_count: T.nilable(Integer)).void }
def initialize(interval: nil, interval_count: nil); end
end
class InvoiceSettings < Stripe::RequestParams
class Issuer < Stripe::RequestParams
# The connected account being referenced when `type` is `account`.
@ -2536,6 +2546,11 @@ module Stripe
returns(T.nilable(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.
sig {
returns(T.nilable(::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Duration))
}
attr_accessor :duration
# The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
sig { returns(T.nilable(T.any(Integer, String))) }
attr_accessor :end_date
@ -2549,7 +2564,7 @@ module Stripe
returns(T::Array[::Stripe::InvoiceService::CreatePreviewParams::ScheduleDetails::Phase::Item])
}
attr_accessor :items
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set.
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead.
sig { returns(T.nilable(Integer)) }
attr_accessor :iterations
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
@ -2576,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]))), 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.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
}
def initialize(
add_invoice_items: nil,
@ -2590,6 +2605,7 @@ module Stripe
default_tax_rates: nil,
description: nil,
discounts: nil,
duration: nil,
end_date: nil,
invoice_settings: nil,
items: nil,
@ -2631,7 +2647,7 @@ module Stripe
end
class SubscriptionDetails < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
@ -2768,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, Integer)))) }
sig { returns(T.nilable(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)) }
@ -2800,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, Integer))), 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.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
}
def initialize(
billing_cycle_anchor: nil,

View File

@ -1155,7 +1155,7 @@ module Stripe
# 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)) }
attr_accessor :cvc_token
# Installment configuration for payments attempted on this PaymentIntent (Mexico Only).
# Installment configuration for payments attempted on this PaymentIntent.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
sig {
@ -3724,7 +3724,7 @@ module Stripe
# 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)) }
attr_accessor :cvc_token
# Installment configuration for payments attempted on this PaymentIntent (Mexico Only).
# Installment configuration for payments attempted on this PaymentIntent.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
sig {
@ -6351,7 +6351,7 @@ module Stripe
# 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)) }
attr_accessor :cvc_token
# Installment configuration for payments attempted on this PaymentIntent (Mexico Only).
# Installment configuration for payments attempted on this PaymentIntent.
#
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
sig {
@ -7872,6 +7872,7 @@ module Stripe
# Confirm that your customer intends to pay with current or provided
# payment method. Upon confirmation, the PaymentIntent will attempt to initiate
# a payment.
#
# If the selected payment method requires additional authentication steps, the
# PaymentIntent will transition to the requires_action status and
# suggest additional actions via next_action. If payment fails,
@ -7879,18 +7880,22 @@ module Stripe
# canceled status if the confirmation limit is reached. If
# payment succeeds, the PaymentIntent will transition to the succeeded
# status (or requires_capture, if capture_method is set to manual).
#
# If the confirmation_method is automatic, payment may be attempted
# using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
# and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
# After next_actions are handled by the client, no additional
# confirmation is required to complete the payment.
#
# If the confirmation_method is manual, all payment attempts must be
# initiated using a secret key.
#
# If any actions are required for the payment, the PaymentIntent will
# return to the requires_confirmation state
# after those actions are completed. Your server needs to then
# explicitly re-confirm the PaymentIntent to initiate the next payment
# attempt.
#
# There is a variable upper limit on how many times a PaymentIntent can be confirmed.
# After this limit is reached, any further calls to this endpoint will
# transition the PaymentIntent to the canceled state.

View File

@ -310,8 +310,13 @@ module Stripe
# 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)))) }
attr_accessor :amount_tax_display
sig { params(amount_tax_display: T.nilable(T.nilable(T.any(String, String)))).void }
def initialize(amount_tax_display: nil); end
# 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
}
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])))) }
@ -371,7 +376,7 @@ module Stripe
# Set to true if the quantity can be adjusted to any non-negative Integer.
sig { returns(T::Boolean) }
attr_accessor :enabled
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999.
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999.
sig { returns(T.nilable(Integer)) }
attr_accessor :maximum
# The minimum quantity the customer can purchase. By default this value is 0. If there is only one item in the cart then that item's quantity cannot go down to 0.
@ -382,21 +387,100 @@ module Stripe
}
def initialize(enabled: nil, maximum: nil, minimum: nil); end
end
class PriceData < Stripe::RequestParams
class ProductData < Stripe::RequestParams
# 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(String)) }
attr_accessor :description
# A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :images
# 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
# The product's name, meant to be displayable to the customer.
sig { returns(String) }
attr_accessor :name
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
sig { returns(T.nilable(String)) }
attr_accessor :tax_code
sig {
params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void
}
def initialize(
description: nil,
images: nil,
metadata: nil,
name: nil,
tax_code: nil
); end
end
class Recurring < Stripe::RequestParams
# Specifies billing frequency. Either `day`, `week`, `month` or `year`.
sig { returns(String) }
attr_accessor :interval
# The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
sig { returns(T.nilable(Integer)) }
attr_accessor :interval_count
sig { params(interval: String, interval_count: T.nilable(Integer)).void }
def initialize(interval: nil, interval_count: nil); end
end
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
sig { returns(String) }
attr_accessor :currency
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required.
sig { returns(T.nilable(String)) }
attr_accessor :product
# Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
sig {
returns(T.nilable(::Stripe::PaymentLinkService::CreateParams::LineItem::PriceData::ProductData))
}
attr_accessor :product_data
# The recurring components of a price such as `interval` and `interval_count`.
sig {
returns(T.nilable(::Stripe::PaymentLinkService::CreateParams::LineItem::PriceData::Recurring))
}
attr_accessor :recurring
# Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
sig { returns(T.nilable(String)) }
attr_accessor :tax_behavior
# A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
sig { returns(T.nilable(Integer)) }
attr_accessor :unit_amount
# Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
sig { returns(T.nilable(String)) }
attr_accessor :unit_amount_decimal
sig {
params(currency: String, product: T.nilable(String), product_data: T.nilable(::Stripe::PaymentLinkService::CreateParams::LineItem::PriceData::ProductData), recurring: T.nilable(::Stripe::PaymentLinkService::CreateParams::LineItem::PriceData::Recurring), tax_behavior: T.nilable(String), unit_amount: T.nilable(Integer), unit_amount_decimal: T.nilable(String)).void
}
def initialize(
currency: nil,
product: nil,
product_data: nil,
recurring: nil,
tax_behavior: nil,
unit_amount: nil,
unit_amount_decimal: nil
); end
end
# When set, provides configuration for this items quantity to be adjusted by the customer during checkout.
sig {
returns(T.nilable(::Stripe::PaymentLinkService::CreateParams::LineItem::AdjustableQuantity))
}
attr_accessor :adjustable_quantity
# The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object.
sig { returns(String) }
sig { returns(T.nilable(String)) }
attr_accessor :price
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
sig { returns(T.nilable(::Stripe::PaymentLinkService::CreateParams::LineItem::PriceData)) }
attr_accessor :price_data
# The quantity of the line item being purchased.
sig { returns(Integer) }
attr_accessor :quantity
sig {
params(adjustable_quantity: T.nilable(::Stripe::PaymentLinkService::CreateParams::LineItem::AdjustableQuantity), price: String, quantity: Integer).void
params(adjustable_quantity: T.nilable(::Stripe::PaymentLinkService::CreateParams::LineItem::AdjustableQuantity), price: T.nilable(String), price_data: T.nilable(::Stripe::PaymentLinkService::CreateParams::LineItem::PriceData), quantity: Integer).void
}
def initialize(adjustable_quantity: nil, price: nil, quantity: nil); end
def initialize(adjustable_quantity: nil, price: nil, price_data: nil, quantity: nil); end
end
class OptionalItem < Stripe::RequestParams
class AdjustableQuantity < Stripe::RequestParams
@ -995,8 +1079,13 @@ module Stripe
# 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)))) }
attr_accessor :amount_tax_display
sig { params(amount_tax_display: T.nilable(T.nilable(T.any(String, String)))).void }
def initialize(amount_tax_display: nil); end
# 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
}
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])))) }
@ -1056,7 +1145,7 @@ module Stripe
# Set to true if the quantity can be adjusted to any non-negative Integer.
sig { returns(T::Boolean) }
attr_accessor :enabled
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999.
# The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999.
sig { returns(T.nilable(Integer)) }
attr_accessor :maximum
# The minimum quantity the customer can purchase. By default this value is 0. If there is only one item in the cart then that item's quantity cannot go down to 0.

View File

@ -772,7 +772,7 @@ module Stripe
}
def retrieve(payment_method, params = {}, opts = {}); end
# Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated.
# Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated.
sig {
params(payment_method: String, params: T.any(::Stripe::PaymentMethodService::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
}

View File

@ -200,7 +200,7 @@ module Stripe
end
class SubscriptionData < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }

View File

@ -93,7 +93,7 @@ module Stripe
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Type of the items in the value list. One of `card_fingerprint`, `us_bank_account_fingerprint`, `sepa_debit_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, or `customer_id`. Use `string` if the item type is unknown or mixed.
# Type of the items in the value list. One of `card_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`. Use `string` if the item type is unknown or mixed.
sig { returns(T.nilable(String)) }
attr_accessor :item_type
# 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`.

View File

@ -115,7 +115,7 @@ module Stripe
#
# Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes).
#
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.
sig { returns(T.nilable(String)) }
attr_accessor :payment_behavior
# The identifier of the new plan for this subscription item.
@ -271,7 +271,7 @@ module Stripe
#
# Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes).
#
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.
sig { returns(T.nilable(String)) }
attr_accessor :payment_behavior
# The identifier of the plan to add to the subscription.

View File

@ -133,7 +133,7 @@ module Stripe
end
class CreateParams < Stripe::RequestParams
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
@ -392,6 +392,16 @@ module Stripe
}
def initialize(coupon: nil, discount: nil, promotion_code: nil); end
end
class Duration < Stripe::RequestParams
# Specifies phase duration. Either `day`, `week`, `month` or `year`.
sig { returns(String) }
attr_accessor :interval
# The multiplier applied to the interval.
sig { returns(T.nilable(Integer)) }
attr_accessor :interval_count
sig { params(interval: String, interval_count: T.nilable(Integer)).void }
def initialize(interval: nil, interval_count: nil); end
end
class InvoiceSettings < Stripe::RequestParams
class Issuer < Stripe::RequestParams
# The connected account being referenced when `type` is `account`.
@ -580,6 +590,11 @@ module Stripe
returns(T.nilable(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.
sig {
returns(T.nilable(::Stripe::SubscriptionScheduleService::CreateParams::Phase::Duration))
}
attr_accessor :duration
# The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
sig { returns(T.nilable(Integer)) }
attr_accessor :end_date
@ -591,7 +606,7 @@ module Stripe
# List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
sig { returns(T::Array[::Stripe::SubscriptionScheduleService::CreateParams::Phase::Item]) }
attr_accessor :items
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set.
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead.
sig { returns(T.nilable(Integer)) }
attr_accessor :iterations
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
@ -615,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]))), 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.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
}
def initialize(
add_invoice_items: nil,
@ -629,6 +644,7 @@ module Stripe
default_tax_rates: nil,
description: nil,
discounts: nil,
duration: nil,
end_date: nil,
invoice_settings: nil,
items: nil,
@ -948,6 +964,16 @@ module Stripe
}
def initialize(coupon: nil, discount: nil, promotion_code: nil); end
end
class Duration < Stripe::RequestParams
# Specifies phase duration. Either `day`, `week`, `month` or `year`.
sig { returns(String) }
attr_accessor :interval
# The multiplier applied to the interval.
sig { returns(T.nilable(Integer)) }
attr_accessor :interval_count
sig { params(interval: String, interval_count: T.nilable(Integer)).void }
def initialize(interval: nil, interval_count: nil); end
end
class InvoiceSettings < Stripe::RequestParams
class Issuer < Stripe::RequestParams
# The connected account being referenced when `type` is `account`.
@ -1136,6 +1162,11 @@ module Stripe
returns(T.nilable(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.
sig {
returns(T.nilable(::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Duration))
}
attr_accessor :duration
# The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
sig { returns(T.nilable(T.any(Integer, String))) }
attr_accessor :end_date
@ -1147,7 +1178,7 @@ module Stripe
# List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
sig { returns(T::Array[::Stripe::SubscriptionScheduleService::UpdateParams::Phase::Item]) }
attr_accessor :items
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set.
# Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set. This parameter is deprecated and will be removed in a future version. Use `duration` instead.
sig { returns(T.nilable(Integer)) }
attr_accessor :iterations
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
@ -1174,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]))), 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.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
}
def initialize(
add_invoice_items: nil,
@ -1188,6 +1219,7 @@ module Stripe
default_tax_rates: nil,
description: nil,
discounts: nil,
duration: nil,
end_date: nil,
invoice_settings: nil,
items: nil,

View File

@ -591,7 +591,7 @@ module Stripe
}
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, Integer)))) }
sig { returns(T.nilable(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)) }
@ -651,7 +651,7 @@ module Stripe
#
# Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes).
#
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
# Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more.
sig { returns(T.nilable(String)) }
attr_accessor :payment_behavior
# Payment settings to pass to invoices created by the subscription.
@ -683,7 +683,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, Integer))), 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.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
}
def initialize(
add_invoice_items: nil,
@ -968,7 +968,7 @@ module Stripe
def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil); end
end
class BillingMode < Stripe::RequestParams
# Attribute for param field type
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
@ -1403,7 +1403,7 @@ module Stripe
}
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(Integer)) }
sig { returns(T.nilable(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)) }
@ -1495,7 +1495,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(Integer), 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.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
}
def initialize(
add_invoice_items: nil,

View File

@ -35,18 +35,46 @@ module Stripe
class CreateParams < Stripe::RequestParams
class CountryOptions < Stripe::RequestParams
class Ae < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Ae::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Ae::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Al < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Al::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Al::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Am < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -56,11 +84,25 @@ module Stripe
def initialize(type: nil); end
end
class Ao < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Ao::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Ao::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class At < Stripe::RequestParams
class Standard < Stripe::RequestParams
@ -84,18 +126,46 @@ module Stripe
def initialize(standard: nil, type: nil); end
end
class Au < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Au::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Au::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Aw < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Aw::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Aw::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Az < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -105,25 +175,67 @@ module Stripe
def initialize(type: nil); end
end
class Ba < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Ba::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Ba::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Bb < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Bb::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Bb::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Bd < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Bd::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Bd::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Be < Stripe::RequestParams
class Standard < Stripe::RequestParams
@ -147,11 +259,25 @@ module Stripe
def initialize(standard: nil, type: nil); end
end
class Bf < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Bf::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Bf::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Bg < Stripe::RequestParams
class Standard < Stripe::RequestParams
@ -175,11 +301,25 @@ module Stripe
def initialize(standard: nil, type: nil); end
end
class Bh < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Bh::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Bh::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Bj < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -189,11 +329,25 @@ module Stripe
def initialize(type: nil); end
end
class Bs < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Bs::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Bs::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class By < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -224,18 +378,46 @@ module Stripe
def initialize(province_standard: nil, type: nil); end
end
class Cd < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Cd::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Cd::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Ch < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Ch::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Ch::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Cl < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -413,11 +595,25 @@ module Stripe
def initialize(standard: nil, type: nil); end
end
class Et < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Et::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Et::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Fi < Stripe::RequestParams
class Standard < Stripe::RequestParams
@ -462,11 +658,25 @@ module Stripe
def initialize(standard: nil, type: nil); end
end
class Gb < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Gb::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Gb::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Ge < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -476,11 +686,25 @@ module Stripe
def initialize(type: nil); end
end
class Gn < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Gn::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Gn::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Gr < Stripe::RequestParams
class Standard < Stripe::RequestParams
@ -581,11 +805,25 @@ module Stripe
def initialize(type: nil); end
end
class Is < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Is::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Is::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class It < Stripe::RequestParams
class Standard < Stripe::RequestParams
@ -609,11 +847,25 @@ module Stripe
def initialize(standard: nil, type: nil); end
end
class Jp < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Jp::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Jp::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Ke < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -735,25 +987,67 @@ module Stripe
def initialize(type: nil); end
end
class Me < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Me::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Me::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Mk < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Mk::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Mk::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Mr < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Mr::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Mr::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Mt < Stripe::RequestParams
class Standard < Stripe::RequestParams
@ -819,11 +1113,25 @@ module Stripe
def initialize(standard: nil, type: nil); end
end
class No < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::No::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::No::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Np < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -833,18 +1141,46 @@ module Stripe
def initialize(type: nil); end
end
class Nz < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Nz::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Nz::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Om < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Om::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Om::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Pe < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -924,11 +1260,25 @@ module Stripe
def initialize(standard: nil, type: nil); end
end
class Rs < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Rs::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Rs::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Ru < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -966,11 +1316,25 @@ module Stripe
def initialize(standard: nil, type: nil); end
end
class Sg < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Sg::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Sg::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Si < Stripe::RequestParams
class Standard < Stripe::RequestParams
@ -1022,11 +1386,25 @@ module Stripe
def initialize(type: nil); end
end
class Sr < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Sr::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Sr::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Th < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -1139,11 +1517,25 @@ module Stripe
); end
end
class Uy < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Uy::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Uy::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Uz < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -1160,11 +1552,25 @@ module Stripe
def initialize(type: nil); end
end
class Za < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Za::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Za::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
class Zm < Stripe::RequestParams
# Type of registration to be created in `country`.
@ -1174,11 +1580,25 @@ module Stripe
def initialize(type: nil); end
end
class Zw < Stripe::RequestParams
class Standard < Stripe::RequestParams
# Place of supply scheme used in an standard registration.
sig { returns(T.nilable(String)) }
attr_accessor :place_of_supply_scheme
sig { params(place_of_supply_scheme: T.nilable(String)).void }
def initialize(place_of_supply_scheme: nil); end
end
# Options for the standard registration.
sig {
returns(T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Zw::Standard))
}
attr_accessor :standard
# Type of registration to be created in `country`.
sig { returns(String) }
attr_accessor :type
sig { params(type: String).void }
def initialize(type: nil); end
sig {
params(standard: T.nilable(::Stripe::Tax::RegistrationService::CreateParams::CountryOptions::Zw::Standard), type: String).void
}
def initialize(standard: nil, type: nil); end
end
# Options for the registration in AE.
sig {

View File

@ -46,6 +46,21 @@ module Stripe
def initialize(splashscreen: nil); end
end
class Tipping < Stripe::RequestParams
class Aed < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(T.nilable(Integer)) }
attr_accessor :smart_tip_threshold
sig {
params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Aud < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -61,6 +76,21 @@ module Stripe
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Bgn < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(T.nilable(Integer)) }
attr_accessor :smart_tip_threshold
sig {
params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Cad < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -166,6 +196,21 @@ module Stripe
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Huf < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(T.nilable(Integer)) }
attr_accessor :smart_tip_threshold
sig {
params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Jpy < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -241,6 +286,21 @@ module Stripe
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Ron < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(T.nilable(Integer)) }
attr_accessor :smart_tip_threshold
sig {
params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Sek < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -286,11 +346,21 @@ module Stripe
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
# Tipping configuration for AED
sig {
returns(T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Aed))
}
attr_accessor :aed
# Tipping configuration for AUD
sig {
returns(T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Aud))
}
attr_accessor :aud
# Tipping configuration for BGN
sig {
returns(T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Bgn))
}
attr_accessor :bgn
# Tipping configuration for CAD
sig {
returns(T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Cad))
@ -326,6 +396,11 @@ module Stripe
returns(T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Hkd))
}
attr_accessor :hkd
# Tipping configuration for HUF
sig {
returns(T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Huf))
}
attr_accessor :huf
# Tipping configuration for JPY
sig {
returns(T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Jpy))
@ -351,6 +426,11 @@ module Stripe
returns(T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Pln))
}
attr_accessor :pln
# Tipping configuration for RON
sig {
returns(T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Ron))
}
attr_accessor :ron
# Tipping configuration for SEK
sig {
returns(T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Sek))
@ -367,10 +447,12 @@ module Stripe
}
attr_accessor :usd
sig {
params(aud: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Aud), cad: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Cad), chf: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Chf), czk: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Czk), dkk: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Dkk), eur: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Eur), gbp: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Gbp), hkd: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Hkd), jpy: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Jpy), myr: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Myr), nok: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Nok), nzd: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Nzd), pln: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Pln), sek: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Sek), sgd: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Sgd), usd: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Usd)).void
params(aed: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Aed), aud: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Aud), bgn: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Bgn), cad: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Cad), chf: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Chf), czk: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Czk), dkk: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Dkk), eur: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Eur), gbp: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Gbp), hkd: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Hkd), huf: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Huf), jpy: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Jpy), myr: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Myr), nok: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Nok), nzd: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Nzd), pln: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Pln), ron: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Ron), sek: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Sek), sgd: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Sgd), usd: T.nilable(::Stripe::Terminal::ConfigurationService::UpdateParams::Tipping::Usd)).void
}
def initialize(
aed: nil,
aud: nil,
bgn: nil,
cad: nil,
chf: nil,
czk: nil,
@ -378,11 +460,13 @@ module Stripe
eur: nil,
gbp: nil,
hkd: nil,
huf: nil,
jpy: nil,
myr: nil,
nok: nil,
nzd: nil,
pln: nil,
ron: nil,
sek: nil,
sgd: nil,
usd: nil
@ -595,6 +679,21 @@ module Stripe
def initialize(splashscreen: nil); end
end
class Tipping < Stripe::RequestParams
class Aed < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(T.nilable(Integer)) }
attr_accessor :smart_tip_threshold
sig {
params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Aud < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -610,6 +709,21 @@ module Stripe
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Bgn < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(T.nilable(Integer)) }
attr_accessor :smart_tip_threshold
sig {
params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Cad < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -715,6 +829,21 @@ module Stripe
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Huf < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(T.nilable(Integer)) }
attr_accessor :smart_tip_threshold
sig {
params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Jpy < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -790,6 +919,21 @@ module Stripe
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Ron < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
sig { returns(T.nilable(Integer)) }
attr_accessor :smart_tip_threshold
sig {
params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
class Sek < Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
sig { returns(T.nilable(T::Array[Integer])) }
@ -835,11 +979,21 @@ module Stripe
}
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end
end
# Tipping configuration for AED
sig {
returns(T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Aed))
}
attr_accessor :aed
# Tipping configuration for AUD
sig {
returns(T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Aud))
}
attr_accessor :aud
# Tipping configuration for BGN
sig {
returns(T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Bgn))
}
attr_accessor :bgn
# Tipping configuration for CAD
sig {
returns(T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Cad))
@ -875,6 +1029,11 @@ module Stripe
returns(T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Hkd))
}
attr_accessor :hkd
# Tipping configuration for HUF
sig {
returns(T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Huf))
}
attr_accessor :huf
# Tipping configuration for JPY
sig {
returns(T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Jpy))
@ -900,6 +1059,11 @@ module Stripe
returns(T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Pln))
}
attr_accessor :pln
# Tipping configuration for RON
sig {
returns(T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Ron))
}
attr_accessor :ron
# Tipping configuration for SEK
sig {
returns(T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Sek))
@ -916,10 +1080,12 @@ module Stripe
}
attr_accessor :usd
sig {
params(aud: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Aud), cad: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Cad), chf: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Chf), czk: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Czk), dkk: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Dkk), eur: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Eur), gbp: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Gbp), hkd: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Hkd), jpy: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Jpy), myr: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Myr), nok: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Nok), nzd: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Nzd), pln: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Pln), sek: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Sek), sgd: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Sgd), usd: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Usd)).void
params(aed: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Aed), aud: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Aud), bgn: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Bgn), cad: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Cad), chf: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Chf), czk: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Czk), dkk: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Dkk), eur: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Eur), gbp: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Gbp), hkd: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Hkd), huf: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Huf), jpy: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Jpy), myr: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Myr), nok: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Nok), nzd: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Nzd), pln: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Pln), ron: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Ron), sek: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Sek), sgd: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Sgd), usd: T.nilable(::Stripe::Terminal::ConfigurationService::CreateParams::Tipping::Usd)).void
}
def initialize(
aed: nil,
aud: nil,
bgn: nil,
cad: nil,
chf: nil,
czk: nil,
@ -927,11 +1093,13 @@ module Stripe
eur: nil,
gbp: nil,
hkd: nil,
huf: nil,
jpy: nil,
myr: nil,
nok: nil,
nzd: nil,
pln: nil,
ron: nil,
sek: nil,
sgd: nil,
usd: nil