Update generated code for v1864 and 2025-07-30.preview

This commit is contained in:
Stripe OpenAPI 2025-07-21 18:31:32 +00:00
parent e15b83baff
commit 48800da8ce
36 changed files with 1597 additions and 387 deletions

View File

@ -1 +1 @@
v1855
v1864

View File

@ -3,6 +3,6 @@
module Stripe
module ApiVersion
CURRENT = "2025-06-30.preview"
CURRENT = "2025-07-30.preview"
end
end

View File

@ -138,7 +138,6 @@ module Stripe
SetupIntent.object_name => SetupIntent,
ShippingRate.object_name => ShippingRate,
Sigma::ScheduledQueryRun.object_name => Sigma::ScheduledQueryRun,
Sigma::Schema.object_name => Sigma::Schema,
Source.object_name => Source,
SourceMandateNotification.object_name => SourceMandateNotification,
SourceTransaction.object_name => SourceTransaction,

View File

@ -126,7 +126,6 @@ require "stripe/resources/setup_attempt"
require "stripe/resources/setup_intent"
require "stripe/resources/shipping_rate"
require "stripe/resources/sigma/scheduled_query_run"
require "stripe/resources/sigma/schema"
require "stripe/resources/source"
require "stripe/resources/source_mandate_notification"
require "stripe/resources/source_transaction"

View File

@ -140,6 +140,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.
@ -300,6 +315,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
@ -620,6 +637,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.
@ -992,6 +1039,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.
@ -1038,6 +1087,7 @@ module Stripe
export_tax_transactions: nil,
financial_account: nil,
financial_account_transactions: nil,
instant_payouts_promotion: nil,
issuing_card: nil,
issuing_cards_list: nil,
notification_banner: nil,
@ -1068,6 +1118,7 @@ module Stripe
@export_tax_transactions = export_tax_transactions
@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

@ -20,9 +20,9 @@ module Stripe
# How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`.
attr_reader :interval
# The day of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
attr_reader :monthly_anchor
# The day of the week funds will be paid out, of the style 'monday', 'tuesday', etc. Only shown if `interval` is weekly.
attr_reader :weekly_anchor
attr_reader :monthly_payout_days
# The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
attr_reader :weekly_payout_days
end
# Details on when funds from charges are available, and when they are paid out to an external account. See our [Setting Bank and Debit Card Payouts](https://stripe.com/docs/connect/bank-transfers#payout-information) documentation for details.
attr_reader :schedule
@ -42,15 +42,15 @@ module Stripe
class Schedule < Stripe::RequestParams
# How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
attr_accessor :interval
# The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
attr_accessor :monthly_anchor
# The day of the week when available funds are paid out (required and applicable only if `interval` is `weekly`.)
attr_accessor :weekly_anchor
# The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
attr_accessor :monthly_payout_days
# The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly`.)
attr_accessor :weekly_payout_days
def initialize(interval: nil, monthly_anchor: nil, weekly_anchor: nil)
def initialize(interval: nil, monthly_payout_days: nil, weekly_payout_days: nil)
@interval = interval
@monthly_anchor = monthly_anchor
@weekly_anchor = weekly_anchor
@monthly_payout_days = monthly_payout_days
@weekly_payout_days = weekly_payout_days
end
end
# Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.

View File

@ -1241,7 +1241,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

@ -295,6 +295,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
@ -1010,7 +1012,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
@ -1502,9 +1504,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.

View File

@ -1932,7 +1932,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
@ -14224,6 +14224,159 @@ module Stripe
end
class IncrementAuthorizationParams < Stripe::RequestParams
class AmountDetails < Stripe::RequestParams
class LineItem < Stripe::RequestParams
class PaymentMethodOptions < Stripe::RequestParams
class Card < Stripe::RequestParams
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
attr_accessor :commodity_code
def initialize(commodity_code: nil)
@commodity_code = commodity_code
end
end
class CardPresent < Stripe::RequestParams
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
attr_accessor :commodity_code
def initialize(commodity_code: nil)
@commodity_code = commodity_code
end
end
class Klarna < Stripe::RequestParams
# URL to an image for the product. Max length, 4096 characters.
attr_accessor :image_url
# URL to the product page. Max length, 4096 characters.
attr_accessor :product_url
# Reference for the subscription this line item is for.
attr_accessor :subscription_reference
def initialize(image_url: nil, product_url: nil, subscription_reference: nil)
@image_url = image_url
@product_url = product_url
@subscription_reference = subscription_reference
end
end
class Paypal < Stripe::RequestParams
# Type of the line item.
attr_accessor :category
# Description of the line item.
attr_accessor :description
# The Stripe account ID of the connected account that sells the item.
attr_accessor :sold_by
def initialize(category: nil, description: nil, sold_by: nil)
@category = category
@description = description
@sold_by = sold_by
end
end
# This sub-hash contains line item details that are specific to `card` payment method."
attr_accessor :card
# This sub-hash contains line item details that are specific to `card_present` payment method."
attr_accessor :card_present
# This sub-hash contains line item details that are specific to `klarna` payment method."
attr_accessor :klarna
# This sub-hash contains line item details that are specific to `paypal` payment method."
attr_accessor :paypal
def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil)
@card = card
@card_present = card_present
@klarna = klarna
@paypal = paypal
end
end
class Tax < Stripe::RequestParams
# The total tax on an item. Non-negative integer.
attr_accessor :total_tax_amount
def initialize(total_tax_amount: nil)
@total_tax_amount = total_tax_amount
end
end
# The amount an item was discounted for. Positive integer.
attr_accessor :discount_amount
# Payment method-specific information for line items.
attr_accessor :payment_method_options
# Unique identifier of the product. At most 12 characters long.
attr_accessor :product_code
# Name of the product. At most 100 characters long.
attr_accessor :product_name
# Number of items of the product. Positive integer.
attr_accessor :quantity
# Contains information about the tax on the item.
attr_accessor :tax
# Cost of the product. Non-negative integer.
attr_accessor :unit_cost
# A unit of measure for the line item, such as gallons, feet, meters, etc.
attr_accessor :unit_of_measure
def initialize(
discount_amount: nil,
payment_method_options: nil,
product_code: nil,
product_name: nil,
quantity: nil,
tax: nil,
unit_cost: nil,
unit_of_measure: nil
)
@discount_amount = discount_amount
@payment_method_options = payment_method_options
@product_code = product_code
@product_name = product_name
@quantity = quantity
@tax = tax
@unit_cost = unit_cost
@unit_of_measure = unit_of_measure
end
end
class Shipping < Stripe::RequestParams
# Portion of the amount that is for shipping.
attr_accessor :amount
# The postal code that represents the shipping source.
attr_accessor :from_postal_code
# The postal code that represents the shipping destination.
attr_accessor :to_postal_code
def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
@amount = amount
@from_postal_code = from_postal_code
@to_postal_code = to_postal_code
end
end
class Tax < Stripe::RequestParams
# Total portion of the amount that is for tax.
attr_accessor :total_tax_amount
def initialize(total_tax_amount: nil)
@total_tax_amount = total_tax_amount
end
end
# The amount an item was discounted for.
attr_accessor :discount_amount
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
attr_accessor :line_items
# Contains information about the shipping portion of the amount.
attr_accessor :shipping
# Contains information about the tax portion of the amount.
attr_accessor :tax
def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil)
@discount_amount = discount_amount
@line_items = line_items
@shipping = shipping
@tax = tax
end
end
class Hooks < Stripe::RequestParams
class Inputs < Stripe::RequestParams
class Tax < Stripe::RequestParams
@ -14249,6 +14402,18 @@ module Stripe
end
end
class PaymentDetails < Stripe::RequestParams
# Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
attr_accessor :customer_reference
# A unique value assigned by the business to identify the transaction.
attr_accessor :order_reference
def initialize(customer_reference: nil, order_reference: nil)
@customer_reference = customer_reference
@order_reference = order_reference
end
end
class PaymentMethodOptions < Stripe::RequestParams
class Card < Stripe::RequestParams
# Request partial authorization on this PaymentIntent.
@ -14276,6 +14441,8 @@ module Stripe
end
# The updated total amount that you intend to collect from the cardholder. This amount must be greater than the currently authorized amount.
attr_accessor :amount
# Provides industry-specific information about the amount.
attr_accessor :amount_details
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
attr_accessor :application_fee_amount
# An arbitrary string attached to the object. Often useful for displaying to users.
@ -14286,6 +14453,8 @@ module Stripe
attr_accessor :hooks
# 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
# Provides industry-specific information about the charge.
attr_accessor :payment_details
# Payment method-specific configuration for this PaymentIntent.
attr_accessor :payment_method_options
# Text that appears on the customer's statement as the statement descriptor for a non-card or card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
@ -14296,21 +14465,25 @@ module Stripe
def initialize(
amount: nil,
amount_details: nil,
application_fee_amount: nil,
description: nil,
expand: nil,
hooks: nil,
metadata: nil,
payment_details: nil,
payment_method_options: nil,
statement_descriptor: nil,
transfer_data: nil
)
@amount = amount
@amount_details = amount_details
@application_fee_amount = application_fee_amount
@description = description
@expand = expand
@hooks = hooks
@metadata = metadata
@payment_details = payment_details
@payment_method_options = payment_method_options
@statement_descriptor = statement_descriptor
@transfer_data = transfer_data

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.
@ -1320,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.

View File

@ -238,7 +238,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

@ -1,62 +0,0 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Sigma
# Contains information about the tables in a reporting Schema.
class Schema < APIResource
extend Stripe::APIOperations::List
OBJECT_NAME = "sigma.schema"
def self.object_name
"sigma.schema"
end
class Table < Stripe::StripeObject
class Column < Stripe::StripeObject
# Attribute for field comment
attr_reader :comment
# Attribute for field foreign_key
attr_reader :foreign_key
# Attribute for field name
attr_reader :name
# Attribute for field primary_key
attr_reader :primary_key
# Attribute for field type
attr_reader :type
end
# Attribute for field columns
attr_reader :columns
# Attribute for field comment
attr_reader :comment
# Attribute for field name
attr_reader :name
# Attribute for field section
attr_reader :section
end
class ListParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# Attribute for param field product
attr_accessor :product
def initialize(expand: nil, product: nil)
@expand = expand
@product = product
end
end
# Attribute for field name
attr_reader :name
# String representing the object's type. Objects of the same type share the same value.
attr_reader :object
# Attribute for field tables
attr_reader :tables
# Lists the schemas available to the authorized merchant in Stripe's data products
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/sigma/schemas", params: params, opts: opts)
end
end
end
end

View File

@ -137,7 +137,6 @@ require "stripe/services/setup_attempt_service"
require "stripe/services/setup_intent_service"
require "stripe/services/shipping_rate_service"
require "stripe/services/sigma/scheduled_query_run_service"
require "stripe/services/sigma/schema_service"
require "stripe/services/sigma_service"
require "stripe/services/source_service"
require "stripe/services/source_transaction_service"

View File

@ -301,6 +301,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.
@ -673,6 +703,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.
@ -719,6 +751,7 @@ module Stripe
export_tax_transactions: nil,
financial_account: nil,
financial_account_transactions: nil,
instant_payouts_promotion: nil,
issuing_card: nil,
issuing_cards_list: nil,
notification_banner: nil,
@ -749,6 +782,7 @@ module Stripe
@export_tax_transactions = export_tax_transactions
@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

@ -17,15 +17,15 @@ module Stripe
class Schedule < Stripe::RequestParams
# How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
attr_accessor :interval
# The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
attr_accessor :monthly_anchor
# The day of the week when available funds are paid out (required and applicable only if `interval` is `weekly`.)
attr_accessor :weekly_anchor
# The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
attr_accessor :monthly_payout_days
# The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly`.)
attr_accessor :weekly_payout_days
def initialize(interval: nil, monthly_anchor: nil, weekly_anchor: nil)
def initialize(interval: nil, monthly_payout_days: nil, weekly_payout_days: nil)
@interval = interval
@monthly_anchor = monthly_anchor
@weekly_anchor = weekly_anchor
@monthly_payout_days = monthly_payout_days
@weekly_payout_days = weekly_payout_days
end
end
# Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.

View File

@ -395,9 +395,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.

View File

@ -12255,6 +12255,159 @@ module Stripe
end
class IncrementAuthorizationParams < Stripe::RequestParams
class AmountDetails < Stripe::RequestParams
class LineItem < Stripe::RequestParams
class PaymentMethodOptions < Stripe::RequestParams
class Card < Stripe::RequestParams
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
attr_accessor :commodity_code
def initialize(commodity_code: nil)
@commodity_code = commodity_code
end
end
class CardPresent < Stripe::RequestParams
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
attr_accessor :commodity_code
def initialize(commodity_code: nil)
@commodity_code = commodity_code
end
end
class Klarna < Stripe::RequestParams
# URL to an image for the product. Max length, 4096 characters.
attr_accessor :image_url
# URL to the product page. Max length, 4096 characters.
attr_accessor :product_url
# Reference for the subscription this line item is for.
attr_accessor :subscription_reference
def initialize(image_url: nil, product_url: nil, subscription_reference: nil)
@image_url = image_url
@product_url = product_url
@subscription_reference = subscription_reference
end
end
class Paypal < Stripe::RequestParams
# Type of the line item.
attr_accessor :category
# Description of the line item.
attr_accessor :description
# The Stripe account ID of the connected account that sells the item.
attr_accessor :sold_by
def initialize(category: nil, description: nil, sold_by: nil)
@category = category
@description = description
@sold_by = sold_by
end
end
# This sub-hash contains line item details that are specific to `card` payment method."
attr_accessor :card
# This sub-hash contains line item details that are specific to `card_present` payment method."
attr_accessor :card_present
# This sub-hash contains line item details that are specific to `klarna` payment method."
attr_accessor :klarna
# This sub-hash contains line item details that are specific to `paypal` payment method."
attr_accessor :paypal
def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil)
@card = card
@card_present = card_present
@klarna = klarna
@paypal = paypal
end
end
class Tax < Stripe::RequestParams
# The total tax on an item. Non-negative integer.
attr_accessor :total_tax_amount
def initialize(total_tax_amount: nil)
@total_tax_amount = total_tax_amount
end
end
# The amount an item was discounted for. Positive integer.
attr_accessor :discount_amount
# Payment method-specific information for line items.
attr_accessor :payment_method_options
# Unique identifier of the product. At most 12 characters long.
attr_accessor :product_code
# Name of the product. At most 100 characters long.
attr_accessor :product_name
# Number of items of the product. Positive integer.
attr_accessor :quantity
# Contains information about the tax on the item.
attr_accessor :tax
# Cost of the product. Non-negative integer.
attr_accessor :unit_cost
# A unit of measure for the line item, such as gallons, feet, meters, etc.
attr_accessor :unit_of_measure
def initialize(
discount_amount: nil,
payment_method_options: nil,
product_code: nil,
product_name: nil,
quantity: nil,
tax: nil,
unit_cost: nil,
unit_of_measure: nil
)
@discount_amount = discount_amount
@payment_method_options = payment_method_options
@product_code = product_code
@product_name = product_name
@quantity = quantity
@tax = tax
@unit_cost = unit_cost
@unit_of_measure = unit_of_measure
end
end
class Shipping < Stripe::RequestParams
# Portion of the amount that is for shipping.
attr_accessor :amount
# The postal code that represents the shipping source.
attr_accessor :from_postal_code
# The postal code that represents the shipping destination.
attr_accessor :to_postal_code
def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
@amount = amount
@from_postal_code = from_postal_code
@to_postal_code = to_postal_code
end
end
class Tax < Stripe::RequestParams
# Total portion of the amount that is for tax.
attr_accessor :total_tax_amount
def initialize(total_tax_amount: nil)
@total_tax_amount = total_tax_amount
end
end
# The amount an item was discounted for.
attr_accessor :discount_amount
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
attr_accessor :line_items
# Contains information about the shipping portion of the amount.
attr_accessor :shipping
# Contains information about the tax portion of the amount.
attr_accessor :tax
def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil)
@discount_amount = discount_amount
@line_items = line_items
@shipping = shipping
@tax = tax
end
end
class Hooks < Stripe::RequestParams
class Inputs < Stripe::RequestParams
class Tax < Stripe::RequestParams
@ -12280,6 +12433,18 @@ module Stripe
end
end
class PaymentDetails < Stripe::RequestParams
# Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
attr_accessor :customer_reference
# A unique value assigned by the business to identify the transaction.
attr_accessor :order_reference
def initialize(customer_reference: nil, order_reference: nil)
@customer_reference = customer_reference
@order_reference = order_reference
end
end
class PaymentMethodOptions < Stripe::RequestParams
class Card < Stripe::RequestParams
# Request partial authorization on this PaymentIntent.
@ -12307,6 +12472,8 @@ module Stripe
end
# The updated total amount that you intend to collect from the cardholder. This amount must be greater than the currently authorized amount.
attr_accessor :amount
# Provides industry-specific information about the amount.
attr_accessor :amount_details
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
attr_accessor :application_fee_amount
# An arbitrary string attached to the object. Often useful for displaying to users.
@ -12317,6 +12484,8 @@ module Stripe
attr_accessor :hooks
# 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
# Provides industry-specific information about the charge.
attr_accessor :payment_details
# Payment method-specific configuration for this PaymentIntent.
attr_accessor :payment_method_options
# Text that appears on the customer's statement as the statement descriptor for a non-card or card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
@ -12327,21 +12496,25 @@ module Stripe
def initialize(
amount: nil,
amount_details: nil,
application_fee_amount: nil,
description: nil,
expand: nil,
hooks: nil,
metadata: nil,
payment_details: nil,
payment_method_options: nil,
statement_descriptor: nil,
transfer_data: nil
)
@amount = amount
@amount_details = amount_details
@application_fee_amount = application_fee_amount
@description = description
@expand = expand
@hooks = hooks
@metadata = metadata
@payment_details = payment_details
@payment_method_options = payment_method_options
@statement_descriptor = statement_descriptor
@transfer_data = transfer_data

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.
@ -1043,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.

View File

@ -1,31 +0,0 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Sigma
class SchemaService < StripeService
class ListParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# Attribute for param field product
attr_accessor :product
def initialize(expand: nil, product: nil)
@expand = expand
@product = product
end
end
# Lists the schemas available to the authorized merchant in Stripe's data products
def list(params = {}, opts = {})
request(
method: :get,
path: "/v1/sigma/schemas",
params: params,
opts: opts,
base_address: :api
)
end
end
end
end

View File

@ -3,12 +3,11 @@
module Stripe
class SigmaService < StripeService
attr_reader :scheduled_query_runs, :schemas
attr_reader :scheduled_query_runs
def initialize(requestor)
super
@scheduled_query_runs = Stripe::Sigma::ScheduledQueryRunService.new(@requestor)
@schemas = Stripe::Sigma::SchemaService.new(@requestor)
end
end
end

View File

@ -5986,6 +5986,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.
@ -6194,6 +6213,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
@ -6575,6 +6597,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.
@ -7016,6 +7071,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
@ -7080,7 +7140,7 @@ module Stripe
}
attr_accessor :tax_threshold_monitoring
sig {
params(account_management: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountOnboarding), app_install: T.nilable(::Stripe::AccountSession::CreateParams::Components::AppInstall), app_viewport: T.nilable(::Stripe::AccountSession::CreateParams::Components::AppViewport), balances: T.nilable(::Stripe::AccountSession::CreateParams::Components::Balances), capital_financing: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalFinancing), capital_financing_application: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalFinancingApplication), capital_financing_promotion: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalFinancingPromotion), capital_overview: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalOverview), disputes_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::DisputesList), documents: T.nilable(::Stripe::AccountSession::CreateParams::Components::Documents), export_tax_transactions: T.nilable(::Stripe::AccountSession::CreateParams::Components::ExportTaxTransactions), 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), payment_method_settings: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentMethodSettings), 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), product_tax_code_selector: T.nilable(::Stripe::AccountSession::CreateParams::Components::ProductTaxCodeSelector), recipients: T.nilable(::Stripe::AccountSession::CreateParams::Components::Recipients), reporting_chart: T.nilable(::Stripe::AccountSession::CreateParams::Components::ReportingChart), tax_registrations: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxSettings), tax_threshold_monitoring: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxThresholdMonitoring)).void
params(account_management: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountOnboarding), app_install: T.nilable(::Stripe::AccountSession::CreateParams::Components::AppInstall), app_viewport: T.nilable(::Stripe::AccountSession::CreateParams::Components::AppViewport), balances: T.nilable(::Stripe::AccountSession::CreateParams::Components::Balances), capital_financing: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalFinancing), capital_financing_application: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalFinancingApplication), capital_financing_promotion: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalFinancingPromotion), capital_overview: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalOverview), disputes_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::DisputesList), documents: T.nilable(::Stripe::AccountSession::CreateParams::Components::Documents), export_tax_transactions: T.nilable(::Stripe::AccountSession::CreateParams::Components::ExportTaxTransactions), 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), payment_method_settings: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentMethodSettings), 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), product_tax_code_selector: T.nilable(::Stripe::AccountSession::CreateParams::Components::ProductTaxCodeSelector), recipients: T.nilable(::Stripe::AccountSession::CreateParams::Components::Recipients), reporting_chart: T.nilable(::Stripe::AccountSession::CreateParams::Components::ReportingChart), tax_registrations: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxSettings), tax_threshold_monitoring: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxThresholdMonitoring)).void
}
def initialize(
account_management: nil,
@ -7097,6 +7157,7 @@ module Stripe
export_tax_transactions: nil,
financial_account: nil,
financial_account_transactions: nil,
instant_payouts_promotion: nil,
issuing_card: nil,
issuing_cards_list: nil,
notification_banner: nil,
@ -7790,11 +7851,11 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_reader :interval
# The day of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
sig { returns(Integer) }
attr_reader :monthly_anchor
# The day of the week funds will be paid out, of the style 'monday', 'tuesday', etc. Only shown if `interval` is weekly.
sig { returns(String) }
attr_reader :weekly_anchor
sig { returns(T::Array[Integer]) }
attr_reader :monthly_payout_days
# The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
sig { returns(T::Array[String]) }
attr_reader :weekly_payout_days
end
# Details on when funds from charges are available, and when they are paid out to an external account. See our [Setting Bank and Debit Card Payouts](https://stripe.com/docs/connect/bank-transfers#payout-information) documentation for details.
sig { returns(T.nilable(Schedule)) }
@ -7829,16 +7890,16 @@ module Stripe
# How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
sig { returns(T.nilable(String)) }
attr_accessor :interval
# The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
sig { returns(T.nilable(Integer)) }
attr_accessor :monthly_anchor
# The day of the week when available funds are paid out (required and applicable only if `interval` is `weekly`.)
sig { returns(T.nilable(String)) }
attr_accessor :weekly_anchor
# The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :monthly_payout_days
# The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly`.)
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :weekly_payout_days
sig {
params(interval: T.nilable(String), monthly_anchor: T.nilable(Integer), weekly_anchor: T.nilable(String)).void
params(interval: T.nilable(String), monthly_payout_days: T.nilable(T::Array[Integer]), weekly_payout_days: T.nilable(T::Array[String])).void
}
def initialize(interval: nil, monthly_anchor: nil, weekly_anchor: nil); end
def initialize(interval: nil, monthly_payout_days: nil, weekly_payout_days: nil); end
end
# Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.
sig { returns(T.nilable(::Stripe::BalanceSettings::UpdateParams::Payouts::Schedule)) }
@ -12538,7 +12599,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.
@ -15036,6 +15097,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)])) }
@ -15869,7 +15933,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.
@ -16593,8 +16657,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])))) }
@ -48488,7 +48557,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.
@ -61676,6 +61745,172 @@ module Stripe
); end
end
class IncrementAuthorizationParams < Stripe::RequestParams
class AmountDetails < Stripe::RequestParams
class LineItem < Stripe::RequestParams
class PaymentMethodOptions < Stripe::RequestParams
class Card < Stripe::RequestParams
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
sig { returns(T.nilable(String)) }
attr_accessor :commodity_code
sig { params(commodity_code: T.nilable(String)).void }
def initialize(commodity_code: nil); end
end
class CardPresent < Stripe::RequestParams
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
sig { returns(T.nilable(String)) }
attr_accessor :commodity_code
sig { params(commodity_code: T.nilable(String)).void }
def initialize(commodity_code: nil); end
end
class Klarna < Stripe::RequestParams
# URL to an image for the product. Max length, 4096 characters.
sig { returns(T.nilable(String)) }
attr_accessor :image_url
# URL to the product page. Max length, 4096 characters.
sig { returns(T.nilable(String)) }
attr_accessor :product_url
# Reference for the subscription this line item is for.
sig { returns(T.nilable(String)) }
attr_accessor :subscription_reference
sig {
params(image_url: T.nilable(String), product_url: T.nilable(String), subscription_reference: T.nilable(String)).void
}
def initialize(image_url: nil, product_url: nil, subscription_reference: nil); end
end
class Paypal < Stripe::RequestParams
# Type of the line item.
sig { returns(T.nilable(String)) }
attr_accessor :category
# Description of the line item.
sig { returns(T.nilable(String)) }
attr_accessor :description
# The Stripe account ID of the connected account that sells the item.
sig { returns(T.nilable(String)) }
attr_accessor :sold_by
sig {
params(category: T.nilable(String), description: T.nilable(String), sold_by: T.nilable(String)).void
}
def initialize(category: nil, description: nil, sold_by: nil); end
end
# This sub-hash contains line item details that are specific to `card` payment method."
sig {
returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Card))
}
attr_accessor :card
# This sub-hash contains line item details that are specific to `card_present` payment method."
sig {
returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent))
}
attr_accessor :card_present
# This sub-hash contains line item details that are specific to `klarna` payment method."
sig {
returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna))
}
attr_accessor :klarna
# This sub-hash contains line item details that are specific to `paypal` payment method."
sig {
returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal))
}
attr_accessor :paypal
sig {
params(card: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent), klarna: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna), paypal: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).void
}
def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end
end
class Tax < Stripe::RequestParams
# The total tax on an item. Non-negative integer.
sig { returns(Integer) }
attr_accessor :total_tax_amount
sig { params(total_tax_amount: Integer).void }
def initialize(total_tax_amount: nil); end
end
# The amount an item was discounted for. Positive integer.
sig { returns(T.nilable(Integer)) }
attr_accessor :discount_amount
# Payment method-specific information for line items.
sig {
returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions))
}
attr_accessor :payment_method_options
# Unique identifier of the product. At most 12 characters long.
sig { returns(T.nilable(String)) }
attr_accessor :product_code
# Name of the product. At most 100 characters long.
sig { returns(String) }
attr_accessor :product_name
# Number of items of the product. Positive integer.
sig { returns(Integer) }
attr_accessor :quantity
# Contains information about the tax on the item.
sig {
returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::Tax))
}
attr_accessor :tax
# Cost of the product. Non-negative integer.
sig { returns(Integer) }
attr_accessor :unit_cost
# A unit of measure for the line item, such as gallons, feet, meters, etc.
sig { returns(T.nilable(String)) }
attr_accessor :unit_of_measure
sig {
params(discount_amount: T.nilable(Integer), payment_method_options: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions), product_code: T.nilable(String), product_name: String, quantity: Integer, tax: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::Tax), unit_cost: Integer, unit_of_measure: T.nilable(String)).void
}
def initialize(
discount_amount: nil,
payment_method_options: nil,
product_code: nil,
product_name: nil,
quantity: nil,
tax: nil,
unit_cost: nil,
unit_of_measure: nil
); end
end
class Shipping < Stripe::RequestParams
# Portion of the amount that is for shipping.
sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
attr_accessor :amount
# The postal code that represents the shipping source.
sig { returns(T.nilable(T.nilable(String))) }
attr_accessor :from_postal_code
# The postal code that represents the shipping destination.
sig { returns(T.nilable(T.nilable(String))) }
attr_accessor :to_postal_code
sig {
params(amount: T.nilable(T.nilable(T.any(String, Integer))), from_postal_code: T.nilable(T.nilable(String)), to_postal_code: T.nilable(T.nilable(String))).void
}
def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end
end
class Tax < Stripe::RequestParams
# Total portion of the amount that is for tax.
sig { returns(Integer) }
attr_accessor :total_tax_amount
sig { params(total_tax_amount: Integer).void }
def initialize(total_tax_amount: nil); end
end
# The amount an item was discounted for.
sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
attr_accessor :discount_amount
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
sig {
returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem]))))
}
attr_accessor :line_items
# Contains information about the shipping portion of the amount.
sig {
returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::Shipping))))
}
attr_accessor :shipping
# Contains information about the tax portion of the amount.
sig {
returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::Tax))))
}
attr_accessor :tax
sig {
params(discount_amount: T.nilable(T.nilable(T.any(String, Integer))), line_items: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem]))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::Shipping))), tax: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::Tax)))).void
}
def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end
end
class Hooks < Stripe::RequestParams
class Inputs < Stripe::RequestParams
class Tax < Stripe::RequestParams
@ -61705,6 +61940,18 @@ module Stripe
}
def initialize(inputs: nil); end
end
class PaymentDetails < Stripe::RequestParams
# Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
sig { returns(T.nilable(T.nilable(String))) }
attr_accessor :customer_reference
# A unique value assigned by the business to identify the transaction.
sig { returns(T.nilable(T.nilable(String))) }
attr_accessor :order_reference
sig {
params(customer_reference: T.nilable(T.nilable(String)), order_reference: T.nilable(T.nilable(String))).void
}
def initialize(customer_reference: nil, order_reference: nil); end
end
class PaymentMethodOptions < Stripe::RequestParams
class Card < Stripe::RequestParams
# Request partial authorization on this PaymentIntent.
@ -61733,6 +61980,11 @@ module Stripe
# The updated total amount that you intend to collect from the cardholder. This amount must be greater than the currently authorized amount.
sig { returns(Integer) }
attr_accessor :amount
# Provides industry-specific information about the amount.
sig {
returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails))
}
attr_accessor :amount_details
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
sig { returns(T.nilable(Integer)) }
attr_accessor :application_fee_amount
@ -61748,6 +62000,11 @@ module Stripe
# 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
# Provides industry-specific information about the charge.
sig {
returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::PaymentDetails))
}
attr_accessor :payment_details
# Payment method-specific configuration for this PaymentIntent.
sig {
returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::PaymentMethodOptions))
@ -61763,15 +62020,17 @@ module Stripe
}
attr_accessor :transfer_data
sig {
params(amount: Integer, application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), hooks: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::Hooks), metadata: T.nilable(T::Hash[String, String]), payment_method_options: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::PaymentMethodOptions), statement_descriptor: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::TransferData)).void
params(amount: Integer, amount_details: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails), application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), hooks: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::Hooks), metadata: T.nilable(T::Hash[String, String]), payment_details: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::PaymentDetails), payment_method_options: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::PaymentMethodOptions), statement_descriptor: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::TransferData)).void
}
def initialize(
amount: nil,
amount_details: nil,
application_fee_amount: nil,
description: nil,
expand: nil,
hooks: nil,
metadata: nil,
payment_details: nil,
payment_method_options: nil,
statement_descriptor: nil,
transfer_data: nil
@ -62375,6 +62634,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)])) }
@ -62938,8 +63200,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])))) }
@ -63685,8 +63952,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])))) }
@ -80625,7 +80897,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.
@ -86748,69 +87020,6 @@ module Stripe
end
end
# typed: true
module Stripe
module Sigma
# Contains information about the tables in a reporting Schema.
class Schema < APIResource
class Table < Stripe::StripeObject
class Column < Stripe::StripeObject
# Attribute for field comment
sig { returns(String) }
attr_reader :comment
# Attribute for field foreign_key
sig { returns(T.nilable(String)) }
attr_reader :foreign_key
# Attribute for field name
sig { returns(String) }
attr_reader :name
# Attribute for field primary_key
sig { returns(T::Boolean) }
attr_reader :primary_key
# Attribute for field type
sig { returns(String) }
attr_reader :type
end
# Attribute for field columns
sig { returns(T::Array[Column]) }
attr_reader :columns
# Attribute for field comment
sig { returns(String) }
attr_reader :comment
# Attribute for field name
sig { returns(String) }
attr_reader :name
# Attribute for field section
sig { returns(String) }
attr_reader :section
end
# Attribute for field name
sig { returns(String) }
attr_reader :name
# String representing the object's type. Objects of the same type share the same value.
sig { returns(String) }
attr_reader :object
# Attribute for field tables
sig { returns(T::Array[Table]) }
attr_reader :tables
class ListParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Attribute for param field product
sig { returns(T.nilable(String)) }
attr_accessor :product
sig { params(expand: T.nilable(T::Array[String]), product: T.nilable(String)).void }
def initialize(expand: nil, product: nil); end
end
# Lists the schemas available to the authorized merchant in Stripe's data products
sig {
params(params: T.any(::Stripe::Sigma::Schema::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
}
def self.list(params = {}, opts = {}); end
end
end
end
# typed: true
module Stripe
# `Source` objects allow you to accept a variety of payment methods. They
# represent a customer's payment instrument, and can be used with the Stripe API
@ -119427,6 +119636,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.
@ -119878,6 +120120,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))
@ -119954,7 +120201,7 @@ module Stripe
}
attr_accessor :tax_threshold_monitoring
sig {
params(account_management: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountOnboarding), app_install: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AppInstall), app_viewport: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AppViewport), balances: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Balances), capital_financing: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancing), capital_financing_application: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingApplication), capital_financing_promotion: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingPromotion), capital_overview: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalOverview), disputes_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::DisputesList), documents: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Documents), export_tax_transactions: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ExportTaxTransactions), 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), payment_method_settings: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentMethodSettings), 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), product_tax_code_selector: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ProductTaxCodeSelector), recipients: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Recipients), reporting_chart: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ReportingChart), tax_registrations: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxSettings), tax_threshold_monitoring: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxThresholdMonitoring)).void
params(account_management: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountOnboarding), app_install: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AppInstall), app_viewport: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AppViewport), balances: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Balances), capital_financing: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancing), capital_financing_application: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingApplication), capital_financing_promotion: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingPromotion), capital_overview: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalOverview), disputes_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::DisputesList), documents: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Documents), export_tax_transactions: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ExportTaxTransactions), 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), payment_method_settings: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentMethodSettings), 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), product_tax_code_selector: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ProductTaxCodeSelector), recipients: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Recipients), reporting_chart: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ReportingChart), tax_registrations: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxSettings), tax_threshold_monitoring: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxThresholdMonitoring)).void
}
def initialize(
account_management: nil,
@ -119971,6 +120218,7 @@ module Stripe
export_tax_transactions: nil,
financial_account: nil,
financial_account_transactions: nil,
instant_payouts_promotion: nil,
issuing_card: nil,
issuing_cards_list: nil,
notification_banner: nil,
@ -120435,16 +120683,16 @@ module Stripe
# How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
sig { returns(T.nilable(String)) }
attr_accessor :interval
# The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
sig { returns(T.nilable(Integer)) }
attr_accessor :monthly_anchor
# The day of the week when available funds are paid out (required and applicable only if `interval` is `weekly`.)
sig { returns(T.nilable(String)) }
attr_accessor :weekly_anchor
# The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :monthly_payout_days
# The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly`.)
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :weekly_payout_days
sig {
params(interval: T.nilable(String), monthly_anchor: T.nilable(Integer), weekly_anchor: T.nilable(String)).void
params(interval: T.nilable(String), monthly_payout_days: T.nilable(T::Array[Integer]), weekly_payout_days: T.nilable(T::Array[String])).void
}
def initialize(interval: nil, monthly_anchor: nil, weekly_anchor: nil); end
def initialize(interval: nil, monthly_payout_days: nil, weekly_payout_days: nil); end
end
# Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.
sig {
@ -124722,8 +124970,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])))) }
@ -159242,6 +159495,172 @@ module Stripe
); end
end
class IncrementAuthorizationParams < Stripe::RequestParams
class AmountDetails < Stripe::RequestParams
class LineItem < Stripe::RequestParams
class PaymentMethodOptions < Stripe::RequestParams
class Card < Stripe::RequestParams
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
sig { returns(T.nilable(String)) }
attr_accessor :commodity_code
sig { params(commodity_code: T.nilable(String)).void }
def initialize(commodity_code: nil); end
end
class CardPresent < Stripe::RequestParams
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
sig { returns(T.nilable(String)) }
attr_accessor :commodity_code
sig { params(commodity_code: T.nilable(String)).void }
def initialize(commodity_code: nil); end
end
class Klarna < Stripe::RequestParams
# URL to an image for the product. Max length, 4096 characters.
sig { returns(T.nilable(String)) }
attr_accessor :image_url
# URL to the product page. Max length, 4096 characters.
sig { returns(T.nilable(String)) }
attr_accessor :product_url
# Reference for the subscription this line item is for.
sig { returns(T.nilable(String)) }
attr_accessor :subscription_reference
sig {
params(image_url: T.nilable(String), product_url: T.nilable(String), subscription_reference: T.nilable(String)).void
}
def initialize(image_url: nil, product_url: nil, subscription_reference: nil); end
end
class Paypal < Stripe::RequestParams
# Type of the line item.
sig { returns(T.nilable(String)) }
attr_accessor :category
# Description of the line item.
sig { returns(T.nilable(String)) }
attr_accessor :description
# The Stripe account ID of the connected account that sells the item.
sig { returns(T.nilable(String)) }
attr_accessor :sold_by
sig {
params(category: T.nilable(String), description: T.nilable(String), sold_by: T.nilable(String)).void
}
def initialize(category: nil, description: nil, sold_by: nil); end
end
# This sub-hash contains line item details that are specific to `card` payment method."
sig {
returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Card))
}
attr_accessor :card
# This sub-hash contains line item details that are specific to `card_present` payment method."
sig {
returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent))
}
attr_accessor :card_present
# This sub-hash contains line item details that are specific to `klarna` payment method."
sig {
returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna))
}
attr_accessor :klarna
# This sub-hash contains line item details that are specific to `paypal` payment method."
sig {
returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal))
}
attr_accessor :paypal
sig {
params(card: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent), klarna: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna), paypal: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).void
}
def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end
end
class Tax < Stripe::RequestParams
# The total tax on an item. Non-negative integer.
sig { returns(Integer) }
attr_accessor :total_tax_amount
sig { params(total_tax_amount: Integer).void }
def initialize(total_tax_amount: nil); end
end
# The amount an item was discounted for. Positive integer.
sig { returns(T.nilable(Integer)) }
attr_accessor :discount_amount
# Payment method-specific information for line items.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions))
}
attr_accessor :payment_method_options
# Unique identifier of the product. At most 12 characters long.
sig { returns(T.nilable(String)) }
attr_accessor :product_code
# Name of the product. At most 100 characters long.
sig { returns(String) }
attr_accessor :product_name
# Number of items of the product. Positive integer.
sig { returns(Integer) }
attr_accessor :quantity
# Contains information about the tax on the item.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::Tax))
}
attr_accessor :tax
# Cost of the product. Non-negative integer.
sig { returns(Integer) }
attr_accessor :unit_cost
# A unit of measure for the line item, such as gallons, feet, meters, etc.
sig { returns(T.nilable(String)) }
attr_accessor :unit_of_measure
sig {
params(discount_amount: T.nilable(Integer), payment_method_options: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions), product_code: T.nilable(String), product_name: String, quantity: Integer, tax: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::Tax), unit_cost: Integer, unit_of_measure: T.nilable(String)).void
}
def initialize(
discount_amount: nil,
payment_method_options: nil,
product_code: nil,
product_name: nil,
quantity: nil,
tax: nil,
unit_cost: nil,
unit_of_measure: nil
); end
end
class Shipping < Stripe::RequestParams
# Portion of the amount that is for shipping.
sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
attr_accessor :amount
# The postal code that represents the shipping source.
sig { returns(T.nilable(T.nilable(String))) }
attr_accessor :from_postal_code
# The postal code that represents the shipping destination.
sig { returns(T.nilable(T.nilable(String))) }
attr_accessor :to_postal_code
sig {
params(amount: T.nilable(T.nilable(T.any(String, Integer))), from_postal_code: T.nilable(T.nilable(String)), to_postal_code: T.nilable(T.nilable(String))).void
}
def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end
end
class Tax < Stripe::RequestParams
# Total portion of the amount that is for tax.
sig { returns(Integer) }
attr_accessor :total_tax_amount
sig { params(total_tax_amount: Integer).void }
def initialize(total_tax_amount: nil); end
end
# The amount an item was discounted for.
sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
attr_accessor :discount_amount
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
sig {
returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem]))))
}
attr_accessor :line_items
# Contains information about the shipping portion of the amount.
sig {
returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::Shipping))))
}
attr_accessor :shipping
# Contains information about the tax portion of the amount.
sig {
returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::Tax))))
}
attr_accessor :tax
sig {
params(discount_amount: T.nilable(T.nilable(T.any(String, Integer))), line_items: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem]))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::Shipping))), tax: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::Tax)))).void
}
def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end
end
class Hooks < Stripe::RequestParams
class Inputs < Stripe::RequestParams
class Tax < Stripe::RequestParams
@ -159271,6 +159690,18 @@ module Stripe
}
def initialize(inputs: nil); end
end
class PaymentDetails < Stripe::RequestParams
# Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
sig { returns(T.nilable(T.nilable(String))) }
attr_accessor :customer_reference
# A unique value assigned by the business to identify the transaction.
sig { returns(T.nilable(T.nilable(String))) }
attr_accessor :order_reference
sig {
params(customer_reference: T.nilable(T.nilable(String)), order_reference: T.nilable(T.nilable(String))).void
}
def initialize(customer_reference: nil, order_reference: nil); end
end
class PaymentMethodOptions < Stripe::RequestParams
class Card < Stripe::RequestParams
# Request partial authorization on this PaymentIntent.
@ -159299,6 +159730,11 @@ module Stripe
# The updated total amount that you intend to collect from the cardholder. This amount must be greater than the currently authorized amount.
sig { returns(Integer) }
attr_accessor :amount
# Provides industry-specific information about the amount.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails))
}
attr_accessor :amount_details
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
sig { returns(T.nilable(Integer)) }
attr_accessor :application_fee_amount
@ -159316,6 +159752,11 @@ module Stripe
# 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
# Provides industry-specific information about the charge.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::PaymentDetails))
}
attr_accessor :payment_details
# Payment method-specific configuration for this PaymentIntent.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::PaymentMethodOptions))
@ -159331,15 +159772,17 @@ module Stripe
}
attr_accessor :transfer_data
sig {
params(amount: Integer, application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), hooks: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::Hooks), metadata: T.nilable(T::Hash[String, String]), payment_method_options: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::PaymentMethodOptions), statement_descriptor: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::TransferData)).void
params(amount: Integer, amount_details: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails), application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), hooks: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::Hooks), metadata: T.nilable(T::Hash[String, String]), payment_details: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::PaymentDetails), payment_method_options: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::PaymentMethodOptions), statement_descriptor: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::TransferData)).void
}
def initialize(
amount: nil,
amount_details: nil,
application_fee_amount: nil,
description: nil,
expand: nil,
hooks: nil,
metadata: nil,
payment_details: nil,
payment_method_options: nil,
statement_descriptor: nil,
transfer_data: nil
@ -159895,8 +160338,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])))) }
@ -160659,8 +161107,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])))) }
@ -170731,7 +171184,6 @@ end
module Stripe
class SigmaService < StripeService
attr_reader :scheduled_query_runs
attr_reader :schemas
end
end
# typed: true
@ -170778,28 +171230,6 @@ module Stripe
end
end
# typed: true
module Stripe
module Sigma
class SchemaService < StripeService
class ListParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Attribute for param field product
sig { returns(T.nilable(String)) }
attr_accessor :product
sig { params(expand: T.nilable(T::Array[String]), product: T.nilable(String)).void }
def initialize(expand: nil, product: nil); end
end
# Lists the schemas available to the authorized merchant in Stripe's data products
sig {
params(params: T.any(::Stripe::Sigma::SchemaService::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
}
def list(params = {}, opts = {}); end
end
end
end
# typed: true
module Stripe
class SetupAttemptService < StripeService
class ListParams < Stripe::RequestParams

View File

@ -162,6 +162,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.
@ -370,6 +389,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
@ -751,6 +773,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.
@ -1192,6 +1247,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
@ -1256,7 +1316,7 @@ module Stripe
}
attr_accessor :tax_threshold_monitoring
sig {
params(account_management: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountOnboarding), app_install: T.nilable(::Stripe::AccountSession::CreateParams::Components::AppInstall), app_viewport: T.nilable(::Stripe::AccountSession::CreateParams::Components::AppViewport), balances: T.nilable(::Stripe::AccountSession::CreateParams::Components::Balances), capital_financing: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalFinancing), capital_financing_application: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalFinancingApplication), capital_financing_promotion: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalFinancingPromotion), capital_overview: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalOverview), disputes_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::DisputesList), documents: T.nilable(::Stripe::AccountSession::CreateParams::Components::Documents), export_tax_transactions: T.nilable(::Stripe::AccountSession::CreateParams::Components::ExportTaxTransactions), 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), payment_method_settings: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentMethodSettings), 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), product_tax_code_selector: T.nilable(::Stripe::AccountSession::CreateParams::Components::ProductTaxCodeSelector), recipients: T.nilable(::Stripe::AccountSession::CreateParams::Components::Recipients), reporting_chart: T.nilable(::Stripe::AccountSession::CreateParams::Components::ReportingChart), tax_registrations: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxSettings), tax_threshold_monitoring: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxThresholdMonitoring)).void
params(account_management: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountOnboarding), app_install: T.nilable(::Stripe::AccountSession::CreateParams::Components::AppInstall), app_viewport: T.nilable(::Stripe::AccountSession::CreateParams::Components::AppViewport), balances: T.nilable(::Stripe::AccountSession::CreateParams::Components::Balances), capital_financing: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalFinancing), capital_financing_application: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalFinancingApplication), capital_financing_promotion: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalFinancingPromotion), capital_overview: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalOverview), disputes_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::DisputesList), documents: T.nilable(::Stripe::AccountSession::CreateParams::Components::Documents), export_tax_transactions: T.nilable(::Stripe::AccountSession::CreateParams::Components::ExportTaxTransactions), 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), payment_method_settings: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentMethodSettings), 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), product_tax_code_selector: T.nilable(::Stripe::AccountSession::CreateParams::Components::ProductTaxCodeSelector), recipients: T.nilable(::Stripe::AccountSession::CreateParams::Components::Recipients), reporting_chart: T.nilable(::Stripe::AccountSession::CreateParams::Components::ReportingChart), tax_registrations: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxSettings), tax_threshold_monitoring: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxThresholdMonitoring)).void
}
def initialize(
account_management: nil,
@ -1273,6 +1333,7 @@ module Stripe
export_tax_transactions: nil,
financial_account: nil,
financial_account_transactions: nil,
instant_payouts_promotion: nil,
issuing_card: nil,
issuing_cards_list: nil,
notification_banner: nil,

View File

@ -15,11 +15,11 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_reader :interval
# The day of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
sig { returns(Integer) }
attr_reader :monthly_anchor
# The day of the week funds will be paid out, of the style 'monday', 'tuesday', etc. Only shown if `interval` is weekly.
sig { returns(String) }
attr_reader :weekly_anchor
sig { returns(T::Array[Integer]) }
attr_reader :monthly_payout_days
# The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
sig { returns(T::Array[String]) }
attr_reader :weekly_payout_days
end
# Details on when funds from charges are available, and when they are paid out to an external account. See our [Setting Bank and Debit Card Payouts](https://stripe.com/docs/connect/bank-transfers#payout-information) documentation for details.
sig { returns(T.nilable(Schedule)) }
@ -54,16 +54,16 @@ module Stripe
# How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
sig { returns(T.nilable(String)) }
attr_accessor :interval
# The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
sig { returns(T.nilable(Integer)) }
attr_accessor :monthly_anchor
# The day of the week when available funds are paid out (required and applicable only if `interval` is `weekly`.)
sig { returns(T.nilable(String)) }
attr_accessor :weekly_anchor
# The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :monthly_payout_days
# The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly`.)
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :weekly_payout_days
sig {
params(interval: T.nilable(String), monthly_anchor: T.nilable(Integer), weekly_anchor: T.nilable(String)).void
params(interval: T.nilable(String), monthly_payout_days: T.nilable(T::Array[Integer]), weekly_payout_days: T.nilable(T::Array[String])).void
}
def initialize(interval: nil, monthly_anchor: nil, weekly_anchor: nil); end
def initialize(interval: nil, monthly_payout_days: nil, weekly_payout_days: nil); end
end
# Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.
sig { returns(T.nilable(::Stripe::BalanceSettings::UpdateParams::Payouts::Schedule)) }

View File

@ -1593,7 +1593,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

@ -354,6 +354,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)])) }
@ -1187,7 +1190,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.
@ -1911,8 +1914,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])))) }

View File

@ -2388,7 +2388,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.
@ -15576,6 +15576,172 @@ module Stripe
); end
end
class IncrementAuthorizationParams < Stripe::RequestParams
class AmountDetails < Stripe::RequestParams
class LineItem < Stripe::RequestParams
class PaymentMethodOptions < Stripe::RequestParams
class Card < Stripe::RequestParams
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
sig { returns(T.nilable(String)) }
attr_accessor :commodity_code
sig { params(commodity_code: T.nilable(String)).void }
def initialize(commodity_code: nil); end
end
class CardPresent < Stripe::RequestParams
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
sig { returns(T.nilable(String)) }
attr_accessor :commodity_code
sig { params(commodity_code: T.nilable(String)).void }
def initialize(commodity_code: nil); end
end
class Klarna < Stripe::RequestParams
# URL to an image for the product. Max length, 4096 characters.
sig { returns(T.nilable(String)) }
attr_accessor :image_url
# URL to the product page. Max length, 4096 characters.
sig { returns(T.nilable(String)) }
attr_accessor :product_url
# Reference for the subscription this line item is for.
sig { returns(T.nilable(String)) }
attr_accessor :subscription_reference
sig {
params(image_url: T.nilable(String), product_url: T.nilable(String), subscription_reference: T.nilable(String)).void
}
def initialize(image_url: nil, product_url: nil, subscription_reference: nil); end
end
class Paypal < Stripe::RequestParams
# Type of the line item.
sig { returns(T.nilable(String)) }
attr_accessor :category
# Description of the line item.
sig { returns(T.nilable(String)) }
attr_accessor :description
# The Stripe account ID of the connected account that sells the item.
sig { returns(T.nilable(String)) }
attr_accessor :sold_by
sig {
params(category: T.nilable(String), description: T.nilable(String), sold_by: T.nilable(String)).void
}
def initialize(category: nil, description: nil, sold_by: nil); end
end
# This sub-hash contains line item details that are specific to `card` payment method."
sig {
returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Card))
}
attr_accessor :card
# This sub-hash contains line item details that are specific to `card_present` payment method."
sig {
returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent))
}
attr_accessor :card_present
# This sub-hash contains line item details that are specific to `klarna` payment method."
sig {
returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna))
}
attr_accessor :klarna
# This sub-hash contains line item details that are specific to `paypal` payment method."
sig {
returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal))
}
attr_accessor :paypal
sig {
params(card: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent), klarna: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna), paypal: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).void
}
def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end
end
class Tax < Stripe::RequestParams
# The total tax on an item. Non-negative integer.
sig { returns(Integer) }
attr_accessor :total_tax_amount
sig { params(total_tax_amount: Integer).void }
def initialize(total_tax_amount: nil); end
end
# The amount an item was discounted for. Positive integer.
sig { returns(T.nilable(Integer)) }
attr_accessor :discount_amount
# Payment method-specific information for line items.
sig {
returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions))
}
attr_accessor :payment_method_options
# Unique identifier of the product. At most 12 characters long.
sig { returns(T.nilable(String)) }
attr_accessor :product_code
# Name of the product. At most 100 characters long.
sig { returns(String) }
attr_accessor :product_name
# Number of items of the product. Positive integer.
sig { returns(Integer) }
attr_accessor :quantity
# Contains information about the tax on the item.
sig {
returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::Tax))
}
attr_accessor :tax
# Cost of the product. Non-negative integer.
sig { returns(Integer) }
attr_accessor :unit_cost
# A unit of measure for the line item, such as gallons, feet, meters, etc.
sig { returns(T.nilable(String)) }
attr_accessor :unit_of_measure
sig {
params(discount_amount: T.nilable(Integer), payment_method_options: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions), product_code: T.nilable(String), product_name: String, quantity: Integer, tax: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem::Tax), unit_cost: Integer, unit_of_measure: T.nilable(String)).void
}
def initialize(
discount_amount: nil,
payment_method_options: nil,
product_code: nil,
product_name: nil,
quantity: nil,
tax: nil,
unit_cost: nil,
unit_of_measure: nil
); end
end
class Shipping < Stripe::RequestParams
# Portion of the amount that is for shipping.
sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
attr_accessor :amount
# The postal code that represents the shipping source.
sig { returns(T.nilable(T.nilable(String))) }
attr_accessor :from_postal_code
# The postal code that represents the shipping destination.
sig { returns(T.nilable(T.nilable(String))) }
attr_accessor :to_postal_code
sig {
params(amount: T.nilable(T.nilable(T.any(String, Integer))), from_postal_code: T.nilable(T.nilable(String)), to_postal_code: T.nilable(T.nilable(String))).void
}
def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end
end
class Tax < Stripe::RequestParams
# Total portion of the amount that is for tax.
sig { returns(Integer) }
attr_accessor :total_tax_amount
sig { params(total_tax_amount: Integer).void }
def initialize(total_tax_amount: nil); end
end
# The amount an item was discounted for.
sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
attr_accessor :discount_amount
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
sig {
returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem]))))
}
attr_accessor :line_items
# Contains information about the shipping portion of the amount.
sig {
returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::Shipping))))
}
attr_accessor :shipping
# Contains information about the tax portion of the amount.
sig {
returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::Tax))))
}
attr_accessor :tax
sig {
params(discount_amount: T.nilable(T.nilable(T.any(String, Integer))), line_items: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::LineItem]))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::Shipping))), tax: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails::Tax)))).void
}
def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end
end
class Hooks < Stripe::RequestParams
class Inputs < Stripe::RequestParams
class Tax < Stripe::RequestParams
@ -15605,6 +15771,18 @@ module Stripe
}
def initialize(inputs: nil); end
end
class PaymentDetails < Stripe::RequestParams
# Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
sig { returns(T.nilable(T.nilable(String))) }
attr_accessor :customer_reference
# A unique value assigned by the business to identify the transaction.
sig { returns(T.nilable(T.nilable(String))) }
attr_accessor :order_reference
sig {
params(customer_reference: T.nilable(T.nilable(String)), order_reference: T.nilable(T.nilable(String))).void
}
def initialize(customer_reference: nil, order_reference: nil); end
end
class PaymentMethodOptions < Stripe::RequestParams
class Card < Stripe::RequestParams
# Request partial authorization on this PaymentIntent.
@ -15633,6 +15811,11 @@ module Stripe
# The updated total amount that you intend to collect from the cardholder. This amount must be greater than the currently authorized amount.
sig { returns(Integer) }
attr_accessor :amount
# Provides industry-specific information about the amount.
sig {
returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails))
}
attr_accessor :amount_details
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
sig { returns(T.nilable(Integer)) }
attr_accessor :application_fee_amount
@ -15648,6 +15831,11 @@ module Stripe
# 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
# Provides industry-specific information about the charge.
sig {
returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::PaymentDetails))
}
attr_accessor :payment_details
# Payment method-specific configuration for this PaymentIntent.
sig {
returns(T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::PaymentMethodOptions))
@ -15663,15 +15851,17 @@ module Stripe
}
attr_accessor :transfer_data
sig {
params(amount: Integer, application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), hooks: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::Hooks), metadata: T.nilable(T::Hash[String, String]), payment_method_options: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::PaymentMethodOptions), statement_descriptor: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::TransferData)).void
params(amount: Integer, amount_details: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::AmountDetails), application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), hooks: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::Hooks), metadata: T.nilable(T::Hash[String, String]), payment_details: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::PaymentDetails), payment_method_options: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::PaymentMethodOptions), statement_descriptor: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntent::IncrementAuthorizationParams::TransferData)).void
}
def initialize(
amount: nil,
amount_details: nil,
application_fee_amount: nil,
description: nil,
expand: nil,
hooks: nil,
metadata: nil,
payment_details: nil,
payment_method_options: nil,
statement_descriptor: nil,
transfer_data: nil

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])))) }
@ -1499,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])))) }

View File

@ -278,7 +278,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

@ -1,66 +0,0 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
# typed: true
module Stripe
module Sigma
# Contains information about the tables in a reporting Schema.
class Schema < APIResource
class Table < Stripe::StripeObject
class Column < Stripe::StripeObject
# Attribute for field comment
sig { returns(String) }
attr_reader :comment
# Attribute for field foreign_key
sig { returns(T.nilable(String)) }
attr_reader :foreign_key
# Attribute for field name
sig { returns(String) }
attr_reader :name
# Attribute for field primary_key
sig { returns(T::Boolean) }
attr_reader :primary_key
# Attribute for field type
sig { returns(String) }
attr_reader :type
end
# Attribute for field columns
sig { returns(T::Array[Column]) }
attr_reader :columns
# Attribute for field comment
sig { returns(String) }
attr_reader :comment
# Attribute for field name
sig { returns(String) }
attr_reader :name
# Attribute for field section
sig { returns(String) }
attr_reader :section
end
# Attribute for field name
sig { returns(String) }
attr_reader :name
# String representing the object's type. Objects of the same type share the same value.
sig { returns(String) }
attr_reader :object
# Attribute for field tables
sig { returns(T::Array[Table]) }
attr_reader :tables
class ListParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Attribute for param field product
sig { returns(T.nilable(String)) }
attr_accessor :product
sig { params(expand: T.nilable(T::Array[String]), product: T.nilable(String)).void }
def initialize(expand: nil, product: nil); end
end
# Lists the schemas available to the authorized merchant in Stripe's data products
sig {
params(params: T.any(::Stripe::Sigma::Schema::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
}
def self.list(params = {}, opts = {}); end
end
end
end

View File

@ -332,6 +332,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.
@ -783,6 +816,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))
@ -859,7 +897,7 @@ module Stripe
}
attr_accessor :tax_threshold_monitoring
sig {
params(account_management: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountOnboarding), app_install: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AppInstall), app_viewport: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AppViewport), balances: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Balances), capital_financing: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancing), capital_financing_application: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingApplication), capital_financing_promotion: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingPromotion), capital_overview: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalOverview), disputes_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::DisputesList), documents: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Documents), export_tax_transactions: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ExportTaxTransactions), 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), payment_method_settings: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentMethodSettings), 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), product_tax_code_selector: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ProductTaxCodeSelector), recipients: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Recipients), reporting_chart: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ReportingChart), tax_registrations: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxSettings), tax_threshold_monitoring: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxThresholdMonitoring)).void
params(account_management: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountOnboarding), app_install: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AppInstall), app_viewport: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AppViewport), balances: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Balances), capital_financing: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancing), capital_financing_application: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingApplication), capital_financing_promotion: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingPromotion), capital_overview: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalOverview), disputes_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::DisputesList), documents: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Documents), export_tax_transactions: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ExportTaxTransactions), 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), payment_method_settings: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentMethodSettings), 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), product_tax_code_selector: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ProductTaxCodeSelector), recipients: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Recipients), reporting_chart: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ReportingChart), tax_registrations: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxSettings), tax_threshold_monitoring: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxThresholdMonitoring)).void
}
def initialize(
account_management: nil,
@ -876,6 +914,7 @@ module Stripe
export_tax_transactions: nil,
financial_account: nil,
financial_account_transactions: nil,
instant_payouts_promotion: nil,
issuing_card: nil,
issuing_cards_list: nil,
notification_banner: nil,

View File

@ -17,16 +17,16 @@ module Stripe
# How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
sig { returns(T.nilable(String)) }
attr_accessor :interval
# The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
sig { returns(T.nilable(Integer)) }
attr_accessor :monthly_anchor
# The day of the week when available funds are paid out (required and applicable only if `interval` is `weekly`.)
sig { returns(T.nilable(String)) }
attr_accessor :weekly_anchor
# The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
sig { returns(T.nilable(T::Array[Integer])) }
attr_accessor :monthly_payout_days
# The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly`.)
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :weekly_payout_days
sig {
params(interval: T.nilable(String), monthly_anchor: T.nilable(Integer), weekly_anchor: T.nilable(String)).void
params(interval: T.nilable(String), monthly_payout_days: T.nilable(T::Array[Integer]), weekly_payout_days: T.nilable(T::Array[String])).void
}
def initialize(interval: nil, monthly_anchor: nil, weekly_anchor: nil); end
def initialize(interval: nil, monthly_payout_days: nil, weekly_payout_days: nil); end
end
# Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.
sig {

View File

@ -394,8 +394,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])))) }

View File

@ -13163,6 +13163,172 @@ module Stripe
); end
end
class IncrementAuthorizationParams < Stripe::RequestParams
class AmountDetails < Stripe::RequestParams
class LineItem < Stripe::RequestParams
class PaymentMethodOptions < Stripe::RequestParams
class Card < Stripe::RequestParams
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
sig { returns(T.nilable(String)) }
attr_accessor :commodity_code
sig { params(commodity_code: T.nilable(String)).void }
def initialize(commodity_code: nil); end
end
class CardPresent < Stripe::RequestParams
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
sig { returns(T.nilable(String)) }
attr_accessor :commodity_code
sig { params(commodity_code: T.nilable(String)).void }
def initialize(commodity_code: nil); end
end
class Klarna < Stripe::RequestParams
# URL to an image for the product. Max length, 4096 characters.
sig { returns(T.nilable(String)) }
attr_accessor :image_url
# URL to the product page. Max length, 4096 characters.
sig { returns(T.nilable(String)) }
attr_accessor :product_url
# Reference for the subscription this line item is for.
sig { returns(T.nilable(String)) }
attr_accessor :subscription_reference
sig {
params(image_url: T.nilable(String), product_url: T.nilable(String), subscription_reference: T.nilable(String)).void
}
def initialize(image_url: nil, product_url: nil, subscription_reference: nil); end
end
class Paypal < Stripe::RequestParams
# Type of the line item.
sig { returns(T.nilable(String)) }
attr_accessor :category
# Description of the line item.
sig { returns(T.nilable(String)) }
attr_accessor :description
# The Stripe account ID of the connected account that sells the item.
sig { returns(T.nilable(String)) }
attr_accessor :sold_by
sig {
params(category: T.nilable(String), description: T.nilable(String), sold_by: T.nilable(String)).void
}
def initialize(category: nil, description: nil, sold_by: nil); end
end
# This sub-hash contains line item details that are specific to `card` payment method."
sig {
returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Card))
}
attr_accessor :card
# This sub-hash contains line item details that are specific to `card_present` payment method."
sig {
returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent))
}
attr_accessor :card_present
# This sub-hash contains line item details that are specific to `klarna` payment method."
sig {
returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna))
}
attr_accessor :klarna
# This sub-hash contains line item details that are specific to `paypal` payment method."
sig {
returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal))
}
attr_accessor :paypal
sig {
params(card: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent), klarna: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna), paypal: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).void
}
def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end
end
class Tax < Stripe::RequestParams
# The total tax on an item. Non-negative integer.
sig { returns(Integer) }
attr_accessor :total_tax_amount
sig { params(total_tax_amount: Integer).void }
def initialize(total_tax_amount: nil); end
end
# The amount an item was discounted for. Positive integer.
sig { returns(T.nilable(Integer)) }
attr_accessor :discount_amount
# Payment method-specific information for line items.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions))
}
attr_accessor :payment_method_options
# Unique identifier of the product. At most 12 characters long.
sig { returns(T.nilable(String)) }
attr_accessor :product_code
# Name of the product. At most 100 characters long.
sig { returns(String) }
attr_accessor :product_name
# Number of items of the product. Positive integer.
sig { returns(Integer) }
attr_accessor :quantity
# Contains information about the tax on the item.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::Tax))
}
attr_accessor :tax
# Cost of the product. Non-negative integer.
sig { returns(Integer) }
attr_accessor :unit_cost
# A unit of measure for the line item, such as gallons, feet, meters, etc.
sig { returns(T.nilable(String)) }
attr_accessor :unit_of_measure
sig {
params(discount_amount: T.nilable(Integer), payment_method_options: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions), product_code: T.nilable(String), product_name: String, quantity: Integer, tax: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem::Tax), unit_cost: Integer, unit_of_measure: T.nilable(String)).void
}
def initialize(
discount_amount: nil,
payment_method_options: nil,
product_code: nil,
product_name: nil,
quantity: nil,
tax: nil,
unit_cost: nil,
unit_of_measure: nil
); end
end
class Shipping < Stripe::RequestParams
# Portion of the amount that is for shipping.
sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
attr_accessor :amount
# The postal code that represents the shipping source.
sig { returns(T.nilable(T.nilable(String))) }
attr_accessor :from_postal_code
# The postal code that represents the shipping destination.
sig { returns(T.nilable(T.nilable(String))) }
attr_accessor :to_postal_code
sig {
params(amount: T.nilable(T.nilable(T.any(String, Integer))), from_postal_code: T.nilable(T.nilable(String)), to_postal_code: T.nilable(T.nilable(String))).void
}
def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end
end
class Tax < Stripe::RequestParams
# Total portion of the amount that is for tax.
sig { returns(Integer) }
attr_accessor :total_tax_amount
sig { params(total_tax_amount: Integer).void }
def initialize(total_tax_amount: nil); end
end
# The amount an item was discounted for.
sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
attr_accessor :discount_amount
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
sig {
returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem]))))
}
attr_accessor :line_items
# Contains information about the shipping portion of the amount.
sig {
returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::Shipping))))
}
attr_accessor :shipping
# Contains information about the tax portion of the amount.
sig {
returns(T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::Tax))))
}
attr_accessor :tax
sig {
params(discount_amount: T.nilable(T.nilable(T.any(String, Integer))), line_items: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::LineItem]))), shipping: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::Shipping))), tax: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails::Tax)))).void
}
def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end
end
class Hooks < Stripe::RequestParams
class Inputs < Stripe::RequestParams
class Tax < Stripe::RequestParams
@ -13192,6 +13358,18 @@ module Stripe
}
def initialize(inputs: nil); end
end
class PaymentDetails < Stripe::RequestParams
# Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
sig { returns(T.nilable(T.nilable(String))) }
attr_accessor :customer_reference
# A unique value assigned by the business to identify the transaction.
sig { returns(T.nilable(T.nilable(String))) }
attr_accessor :order_reference
sig {
params(customer_reference: T.nilable(T.nilable(String)), order_reference: T.nilable(T.nilable(String))).void
}
def initialize(customer_reference: nil, order_reference: nil); end
end
class PaymentMethodOptions < Stripe::RequestParams
class Card < Stripe::RequestParams
# Request partial authorization on this PaymentIntent.
@ -13220,6 +13398,11 @@ module Stripe
# The updated total amount that you intend to collect from the cardholder. This amount must be greater than the currently authorized amount.
sig { returns(Integer) }
attr_accessor :amount
# Provides industry-specific information about the amount.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails))
}
attr_accessor :amount_details
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
sig { returns(T.nilable(Integer)) }
attr_accessor :application_fee_amount
@ -13237,6 +13420,11 @@ module Stripe
# 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
# Provides industry-specific information about the charge.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::PaymentDetails))
}
attr_accessor :payment_details
# Payment method-specific configuration for this PaymentIntent.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::PaymentMethodOptions))
@ -13252,15 +13440,17 @@ module Stripe
}
attr_accessor :transfer_data
sig {
params(amount: Integer, application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), hooks: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::Hooks), metadata: T.nilable(T::Hash[String, String]), payment_method_options: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::PaymentMethodOptions), statement_descriptor: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::TransferData)).void
params(amount: Integer, amount_details: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::AmountDetails), application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), hooks: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::Hooks), metadata: T.nilable(T::Hash[String, String]), payment_details: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::PaymentDetails), payment_method_options: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::PaymentMethodOptions), statement_descriptor: T.nilable(String), transfer_data: T.nilable(::Stripe::PaymentIntentService::IncrementAuthorizationParams::TransferData)).void
}
def initialize(
amount: nil,
amount_details: nil,
application_fee_amount: nil,
description: nil,
expand: nil,
hooks: nil,
metadata: nil,
payment_details: nil,
payment_method_options: nil,
statement_descriptor: nil,
transfer_data: nil

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])))) }
@ -1074,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])))) }

View File

@ -1,25 +0,0 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
# typed: true
module Stripe
module Sigma
class SchemaService < StripeService
class ListParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Attribute for param field product
sig { returns(T.nilable(String)) }
attr_accessor :product
sig { params(expand: T.nilable(T::Array[String]), product: T.nilable(String)).void }
def initialize(expand: nil, product: nil); end
end
# Lists the schemas available to the authorized merchant in Stripe's data products
sig {
params(params: T.any(::Stripe::Sigma::SchemaService::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
}
def list(params = {}, opts = {}); end
end
end
end

View File

@ -5,6 +5,5 @@
module Stripe
class SigmaService < StripeService
attr_reader :scheduled_query_runs
attr_reader :schemas
end
end