Merge pull request #1713 from stripe/latest-codegen-private-preview

Update generated code for private-preview
This commit is contained in:
stripe-openapi[bot] 2025-10-28 22:00:26 -07:00 committed by GitHub
commit fe49dc4437
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
163 changed files with 6459 additions and 808 deletions

View File

@ -8,5 +8,5 @@
// Rubocop settings
"ruby.rubocop.configFilePath": ".rubocop.yml",
"ruby.rubocop.onSave": true
"ruby.rubocop.onSave": false
}

View File

@ -1 +1 @@
577fcb57736b925392ea563c0284df9002c75ac9
847d2ef0de9626eec25973097d37b61f67e343ee

View File

@ -1 +1 @@
v2100
v2104

View File

@ -369,6 +369,7 @@ require "stripe/params/payment_record_report_payment_attempt_guaranteed_params"
require "stripe/params/payment_record_report_payment_attempt_informational_params"
require "stripe/params/payment_record_report_payment_attempt_params"
require "stripe/params/payment_record_report_payment_params"
require "stripe/params/payment_record_report_refund_params"
require "stripe/params/payment_record_retrieve_params"
require "stripe/params/payout_cancel_params"
require "stripe/params/payout_create_params"

View File

@ -1347,6 +1347,21 @@ module Stripe
end
end
class RepresentativeDeclaration < ::Stripe::RequestParams
# The Unix timestamp marking when the representative declaration attestation was made.
attr_accessor :date
# The IP address from which the representative declaration attestation was made.
attr_accessor :ip
# The user agent of the browser from which the representative declaration attestation was made.
attr_accessor :user_agent
def initialize(date: nil, ip: nil, user_agent: nil)
@date = date
@ip = ip
@user_agent = user_agent
end
end
class Verification < ::Stripe::RequestParams
class Document < ::Stripe::RequestParams
# The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
@ -1400,6 +1415,8 @@ module Stripe
attr_accessor :registration_date
# The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
attr_accessor :registration_number
# This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
attr_accessor :representative_declaration
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
attr_accessor :structure
# The business ID number of the company, as appropriate for the companys country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
@ -1429,6 +1446,7 @@ module Stripe
phone: nil,
registration_date: nil,
registration_number: nil,
representative_declaration: nil,
structure: nil,
tax_id: nil,
tax_id_registrar: nil,
@ -1452,6 +1470,7 @@ module Stripe
@phone = phone
@registration_date = registration_date
@registration_number = registration_number
@representative_declaration = representative_declaration
@structure = structure
@tax_id = tax_id
@tax_id_registrar = tax_id_registrar

View File

@ -1347,6 +1347,21 @@ module Stripe
end
end
class RepresentativeDeclaration < ::Stripe::RequestParams
# The Unix timestamp marking when the representative declaration attestation was made.
attr_accessor :date
# The IP address from which the representative declaration attestation was made.
attr_accessor :ip
# The user agent of the browser from which the representative declaration attestation was made.
attr_accessor :user_agent
def initialize(date: nil, ip: nil, user_agent: nil)
@date = date
@ip = ip
@user_agent = user_agent
end
end
class Verification < ::Stripe::RequestParams
class Document < ::Stripe::RequestParams
# The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
@ -1400,6 +1415,8 @@ module Stripe
attr_accessor :registration_date
# The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
attr_accessor :registration_number
# This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
attr_accessor :representative_declaration
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
attr_accessor :structure
# The business ID number of the company, as appropriate for the companys country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
@ -1429,6 +1446,7 @@ module Stripe
phone: nil,
registration_date: nil,
registration_number: nil,
representative_declaration: nil,
structure: nil,
tax_id: nil,
tax_id_registrar: nil,
@ -1452,6 +1470,7 @@ module Stripe
@phone = phone
@registration_date = registration_date
@registration_number = registration_number
@representative_declaration = representative_declaration
@structure = structure
@tax_id = tax_id
@tax_id_registrar = tax_id_registrar

View File

@ -14,17 +14,21 @@ module Stripe
attr_accessor :meter
# Key-value pairs used to filter usage events by high cardinality tenant dimension values. If specified, usage will be filtered for matching usage events.
attr_accessor :tenant_filters
# List of high cardinality tenant dimension keys to group by. If specified, usage events will be grouped by the given tenant dimension key's values.
attr_accessor :tenant_group_by_keys
def initialize(
dimension_filters: nil,
dimension_group_by_keys: nil,
meter: nil,
tenant_filters: nil
tenant_filters: nil,
tenant_group_by_keys: nil
)
@dimension_filters = dimension_filters
@dimension_group_by_keys = dimension_group_by_keys
@meter = meter
@tenant_filters = tenant_filters
@tenant_group_by_keys = tenant_group_by_keys
end
end
# The customer id to fetch meter usage data for.

View File

@ -85,7 +85,7 @@ module Stripe
attr_accessor :amount
# Configuration specifying what this credit grant applies to. We currently only support `metered` prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
attr_accessor :applicability_config
# The category of this credit grant.
# The category of this credit grant. It defaults to `paid` if not specified.
attr_accessor :category
# ID of the customer to receive the billing credits.
attr_accessor :customer

View File

@ -37,6 +37,8 @@ module Stripe
attr_accessor :customer_mapping
# The default settings to aggregate a meter's events with.
attr_accessor :default_aggregation
# Set of keys that will be used to group meter events by. Each key must be present in the event payload.
attr_accessor :dimension_payload_keys
# The meters name. Not visible to the customer.
attr_accessor :display_name
# The name of the meter event to record usage for. Corresponds with the `event_name` field on meter events.
@ -47,27 +49,25 @@ module Stripe
attr_accessor :expand
# Fields that specify how to calculate a meter event's value.
attr_accessor :value_settings
# Set of keys that will be used to group meter events by. Each key must be present in the event payload.
attr_accessor :dimension_payload_keys
def initialize(
customer_mapping: nil,
default_aggregation: nil,
dimension_payload_keys: nil,
display_name: nil,
event_name: nil,
event_time_window: nil,
expand: nil,
value_settings: nil,
dimension_payload_keys: nil
value_settings: nil
)
@customer_mapping = customer_mapping
@default_aggregation = default_aggregation
@dimension_payload_keys = dimension_payload_keys
@display_name = display_name
@event_name = event_name
@event_time_window = event_time_window
@expand = expand
@value_settings = value_settings
@dimension_payload_keys = dimension_payload_keys
end
end
end

View File

@ -44,9 +44,12 @@ module Stripe
class PaymentMethodUpdate < ::Stripe::RequestParams
# Whether the feature is enabled.
attr_accessor :enabled
# The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used.
attr_accessor :payment_method_configuration
def initialize(enabled: nil)
def initialize(enabled: nil, payment_method_configuration: nil)
@enabled = enabled
@payment_method_configuration = payment_method_configuration
end
end

View File

@ -44,9 +44,12 @@ module Stripe
class PaymentMethodUpdate < ::Stripe::RequestParams
# Whether the feature is enabled.
attr_accessor :enabled
# The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used.
attr_accessor :payment_method_configuration
def initialize(enabled: nil)
def initialize(enabled: nil, payment_method_configuration: nil)
@enabled = enabled
@payment_method_configuration = payment_method_configuration
end
end

View File

@ -96,13 +96,13 @@ module Stripe
attr_accessor :border_style
# A hex color value starting with `#` representing the button color for the Checkout Session.
attr_accessor :button_color
# A string to override the business name shown on the Checkout Session.
# A string to override the business name shown on the Checkout Session. This only shows at the top of the Checkout page, and your business name still appears in terms, receipts, and other places.
attr_accessor :display_name
# The font family for the Checkout Session corresponding to one of the [supported font families](https://docs.stripe.com/payments/checkout/customization/appearance?payment-ui=stripe-hosted#font-compatibility).
attr_accessor :font_family
# The icon for the Checkout Session. You cannot set both `logo` and `icon`.
# The icon for the Checkout Session. For best results, use a square image.
attr_accessor :icon
# The logo for the Checkout Session. You cannot set both `logo` and `icon`.
# The logo for the Checkout Session.
attr_accessor :logo
def initialize(
@ -1824,6 +1824,21 @@ module Stripe
end
end
class Twint < ::Stripe::RequestParams
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
#
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
attr_accessor :setup_future_usage
def initialize(setup_future_usage: nil)
@setup_future_usage = setup_future_usage
end
end
class UsBankAccount < ::Stripe::RequestParams
class FinancialConnections < ::Stripe::RequestParams
# The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
@ -1968,6 +1983,8 @@ module Stripe
attr_accessor :sofort
# contains details about the Swish payment method options.
attr_accessor :swish
# contains details about the TWINT payment method options.
attr_accessor :twint
# contains details about the Us Bank Account payment method options.
attr_accessor :us_bank_account
# contains details about the WeChat Pay payment method options.
@ -2016,6 +2033,7 @@ module Stripe
sepa_debit: nil,
sofort: nil,
swish: nil,
twint: nil,
us_bank_account: nil,
wechat_pay: nil
)
@ -2061,6 +2079,7 @@ module Stripe
@sepa_debit = sepa_debit
@sofort = sofort
@swish = swish
@twint = twint
@us_bank_account = us_bank_account
@wechat_pay = wechat_pay
end

View File

@ -13,6 +13,79 @@ module Stripe
end
end
class CustomerSheet < ::Stripe::RequestParams
class Features < ::Stripe::RequestParams
# A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
#
# If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
attr_accessor :payment_method_allow_redisplay_filters
# Controls whether the customer sheet displays the option to remove a saved payment method."
#
# Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
attr_accessor :payment_method_remove
def initialize(payment_method_allow_redisplay_filters: nil, payment_method_remove: nil)
@payment_method_allow_redisplay_filters = payment_method_allow_redisplay_filters
@payment_method_remove = payment_method_remove
end
end
# Whether the customer sheet is enabled.
attr_accessor :enabled
# This hash defines whether the customer sheet supports certain features.
attr_accessor :features
def initialize(enabled: nil, features: nil)
@enabled = enabled
@features = features
end
end
class MobilePaymentElement < ::Stripe::RequestParams
class Features < ::Stripe::RequestParams
# A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the mobile payment element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
#
# If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
attr_accessor :payment_method_allow_redisplay_filters
# Controls whether or not the mobile payment element shows saved payment methods.
attr_accessor :payment_method_redisplay
# Controls whether the mobile payment element displays the option to remove a saved payment method."
#
# Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
attr_accessor :payment_method_remove
# Controls whether the mobile payment element displays a checkbox offering to save a new payment method.
#
# If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
attr_accessor :payment_method_save
# Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled. Use values: "always", "limited", or "unspecified".
#
# If not specified, defaults to `nil` (no override value).
attr_accessor :payment_method_save_allow_redisplay_override
def initialize(
payment_method_allow_redisplay_filters: nil,
payment_method_redisplay: nil,
payment_method_remove: nil,
payment_method_save: nil,
payment_method_save_allow_redisplay_override: nil
)
@payment_method_allow_redisplay_filters = payment_method_allow_redisplay_filters
@payment_method_redisplay = payment_method_redisplay
@payment_method_remove = payment_method_remove
@payment_method_save = payment_method_save
@payment_method_save_allow_redisplay_override = payment_method_save_allow_redisplay_override
end
end
# Whether the mobile payment element is enabled.
attr_accessor :enabled
# This hash defines whether the mobile payment element supports certain features.
attr_accessor :features
def initialize(enabled: nil, features: nil)
@enabled = enabled
@features = features
end
end
class PaymentElement < ::Stripe::RequestParams
class Features < ::Stripe::RequestParams
# A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
@ -71,17 +144,60 @@ module Stripe
@enabled = enabled
end
end
class TaxIdElement < ::Stripe::RequestParams
class Features < ::Stripe::RequestParams
# Controls whether the Tax ID Element displays saved tax IDs for the customer. This parameter defaults to `disabled`.
#
# When enabled, the Tax ID Element will show existing tax IDs associated with the customer, allowing them to select from previously saved tax identification numbers.
attr_accessor :tax_id_redisplay
# Controls whether the Tax ID Element allows merchants to save new tax IDs for their customer. This parameter defaults to `disabled`.
#
# When enabled, customers can enter and save new tax identification numbers during the payment flow, which will be stored securely and associated with their customer object for future use.
attr_accessor :tax_id_save
def initialize(tax_id_redisplay: nil, tax_id_save: nil)
@tax_id_redisplay = tax_id_redisplay
@tax_id_save = tax_id_save
end
end
# Whether the Tax ID Element is enabled.
attr_accessor :enabled
# This hash defines whether the Tax ID Element supports certain features.
attr_accessor :features
def initialize(enabled: nil, features: nil)
@enabled = enabled
@features = features
end
end
# Configuration for buy button.
attr_accessor :buy_button
# Configuration for the customer sheet.
attr_accessor :customer_sheet
# Configuration for the mobile payment element.
attr_accessor :mobile_payment_element
# Configuration for the Payment Element.
attr_accessor :payment_element
# Configuration for the pricing table.
attr_accessor :pricing_table
# Configuration for the Tax ID Element.
attr_accessor :tax_id_element
def initialize(buy_button: nil, payment_element: nil, pricing_table: nil)
def initialize(
buy_button: nil,
customer_sheet: nil,
mobile_payment_element: nil,
payment_element: nil,
pricing_table: nil,
tax_id_element: nil
)
@buy_button = buy_button
@customer_sheet = customer_sheet
@mobile_payment_element = mobile_payment_element
@payment_element = payment_element
@pricing_table = pricing_table
@tax_id_element = tax_id_element
end
end
# Configuration for each component. Exactly 1 component must be enabled.

View File

@ -4,14 +4,51 @@
module Stripe
module DelegatedCheckout
class RequestedSessionConfirmParams < ::Stripe::RequestParams
class RiskDetails < ::Stripe::RequestParams
class ClientDeviceMetadataDetails < ::Stripe::RequestParams
# The radar session.
attr_accessor :radar_session
# The referrer of the client device.
attr_accessor :referrer
# The remote IP address of the client device.
attr_accessor :remote_ip
# The time on page in milliseconds.
attr_accessor :time_on_page_ms
# The user agent of the client device.
attr_accessor :user_agent
def initialize(
radar_session: nil,
referrer: nil,
remote_ip: nil,
time_on_page_ms: nil,
user_agent: nil
)
@radar_session = radar_session
@referrer = referrer
@remote_ip = remote_ip
@time_on_page_ms = time_on_page_ms
@user_agent = user_agent
end
end
# The client device metadata details for this requested session.
attr_accessor :client_device_metadata_details
def initialize(client_device_metadata_details: nil)
@client_device_metadata_details = client_device_metadata_details
end
end
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# The PaymentMethod to use with the requested session.
attr_accessor :payment_method
# Risk details/signals associated with the requested session
attr_accessor :risk_details
def initialize(expand: nil, payment_method: nil)
def initialize(expand: nil, payment_method: nil, risk_details: nil)
@expand = expand
@payment_method = payment_method
@risk_details = risk_details
end
end
end

View File

@ -144,41 +144,6 @@ module Stripe
end
end
class RiskDetails < ::Stripe::RequestParams
class ClientDeviceMetadataDetails < ::Stripe::RequestParams
# The radar session.
attr_accessor :radar_session
# The referrer of the client device.
attr_accessor :referrer
# The remote IP address of the client device.
attr_accessor :remote_ip
# The time on page in seconds.
attr_accessor :time_on_page
# The user agent of the client device.
attr_accessor :user_agent
def initialize(
radar_session: nil,
referrer: nil,
remote_ip: nil,
time_on_page: nil,
user_agent: nil
)
@radar_session = radar_session
@referrer = referrer
@remote_ip = remote_ip
@time_on_page = time_on_page
@user_agent = user_agent
end
end
# The client device metadata details for this requested session.
attr_accessor :client_device_metadata_details
def initialize(client_device_metadata_details: nil)
@client_device_metadata_details = client_device_metadata_details
end
end
class SellerDetails < ::Stripe::RequestParams
# The network profile for the seller.
attr_accessor :network_profile
@ -203,8 +168,6 @@ module Stripe
attr_accessor :payment_method
# The payment method data for this requested session.
attr_accessor :payment_method_data
# The risk details for this requested session.
attr_accessor :risk_details
# The details of the seller.
attr_accessor :seller_details
# The setup future usage for this requested session.
@ -221,7 +184,6 @@ module Stripe
metadata: nil,
payment_method: nil,
payment_method_data: nil,
risk_details: nil,
seller_details: nil,
setup_future_usage: nil,
shared_metadata: nil
@ -234,7 +196,6 @@ module Stripe
@metadata = metadata
@payment_method = payment_method
@payment_method_data = payment_method_data
@risk_details = risk_details
@seller_details = seller_details
@setup_future_usage = setup_future_usage
@shared_metadata = shared_metadata

View File

@ -9,11 +9,14 @@ module Stripe
attr_accessor :limit
# The ID of the Payment Record.
attr_accessor :payment_record
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
attr_accessor :starting_after
def initialize(expand: nil, limit: nil, payment_record: nil)
def initialize(expand: nil, limit: nil, payment_record: nil, starting_after: nil)
@expand = expand
@limit = limit
@payment_record = payment_record
@starting_after = starting_after
end
end
end

View File

@ -29,12 +29,20 @@ module Stripe
attr_accessor :image_url
# URL to the product page. Max length, 4096 characters.
attr_accessor :product_url
# Unique reference for this line item to correlate it with your systems internal records. The field is displayed in the Klarna Consumer App if passed.
attr_accessor :reference
# Reference for the subscription this line item is for.
attr_accessor :subscription_reference
def initialize(image_url: nil, product_url: nil, subscription_reference: nil)
def initialize(
image_url: nil,
product_url: nil,
reference: nil,
subscription_reference: nil
)
@image_url = image_url
@product_url = product_url
@reference = reference
@subscription_reference = subscription_reference
end
end

View File

@ -29,12 +29,20 @@ module Stripe
attr_accessor :image_url
# URL to the product page. Max length, 4096 characters.
attr_accessor :product_url
# Unique reference for this line item to correlate it with your systems internal records. The field is displayed in the Klarna Consumer App if passed.
attr_accessor :reference
# Reference for the subscription this line item is for.
attr_accessor :subscription_reference
def initialize(image_url: nil, product_url: nil, subscription_reference: nil)
def initialize(
image_url: nil,
product_url: nil,
reference: nil,
subscription_reference: nil
)
@image_url = image_url
@product_url = product_url
@reference = reference
@subscription_reference = subscription_reference
end
end
@ -908,6 +916,8 @@ module Stripe
@starts_at = starts_at
end
end
# Benefit details for this PaymentIntent
attr_accessor :benefit
# Car rental details for this PaymentIntent.
attr_accessor :car_rental
# 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.
@ -922,19 +932,18 @@ module Stripe
attr_accessor :order_reference
# Subscription details for this PaymentIntent
attr_accessor :subscription
# Benefit details for this PaymentIntent
attr_accessor :benefit
def initialize(
benefit: nil,
car_rental: nil,
customer_reference: nil,
event_details: nil,
flight: nil,
lodging: nil,
order_reference: nil,
subscription: nil,
benefit: nil
subscription: nil
)
@benefit = benefit
@car_rental = car_rental
@customer_reference = customer_reference
@event_details = event_details
@ -942,7 +951,6 @@ module Stripe
@lodging = lodging
@order_reference = order_reference
@subscription = subscription
@benefit = benefit
end
end

View File

@ -29,12 +29,20 @@ module Stripe
attr_accessor :image_url
# URL to the product page. Max length, 4096 characters.
attr_accessor :product_url
# Unique reference for this line item to correlate it with your systems internal records. The field is displayed in the Klarna Consumer App if passed.
attr_accessor :reference
# Reference for the subscription this line item is for.
attr_accessor :subscription_reference
def initialize(image_url: nil, product_url: nil, subscription_reference: nil)
def initialize(
image_url: nil,
product_url: nil,
reference: nil,
subscription_reference: nil
)
@image_url = image_url
@product_url = product_url
@reference = reference
@subscription_reference = subscription_reference
end
end
@ -922,6 +930,8 @@ module Stripe
@starts_at = starts_at
end
end
# Benefit details for this PaymentIntent
attr_accessor :benefit
# Car rental details for this PaymentIntent.
attr_accessor :car_rental
# 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.
@ -936,19 +946,18 @@ module Stripe
attr_accessor :order_reference
# Subscription details for this PaymentIntent
attr_accessor :subscription
# Benefit details for this PaymentIntent
attr_accessor :benefit
def initialize(
benefit: nil,
car_rental: nil,
customer_reference: nil,
event_details: nil,
flight: nil,
lodging: nil,
order_reference: nil,
subscription: nil,
benefit: nil
subscription: nil
)
@benefit = benefit
@car_rental = car_rental
@customer_reference = customer_reference
@event_details = event_details
@ -956,7 +965,6 @@ module Stripe
@lodging = lodging
@order_reference = order_reference
@subscription = subscription
@benefit = benefit
end
end

View File

@ -29,12 +29,20 @@ module Stripe
attr_accessor :image_url
# URL to the product page. Max length, 4096 characters.
attr_accessor :product_url
# Unique reference for this line item to correlate it with your systems internal records. The field is displayed in the Klarna Consumer App if passed.
attr_accessor :reference
# Reference for the subscription this line item is for.
attr_accessor :subscription_reference
def initialize(image_url: nil, product_url: nil, subscription_reference: nil)
def initialize(
image_url: nil,
product_url: nil,
reference: nil,
subscription_reference: nil
)
@image_url = image_url
@product_url = product_url
@reference = reference
@subscription_reference = subscription_reference
end
end

View File

@ -29,12 +29,20 @@ module Stripe
attr_accessor :image_url
# URL to the product page. Max length, 4096 characters.
attr_accessor :product_url
# Unique reference for this line item to correlate it with your systems internal records. The field is displayed in the Klarna Consumer App if passed.
attr_accessor :reference
# Reference for the subscription this line item is for.
attr_accessor :subscription_reference
def initialize(image_url: nil, product_url: nil, subscription_reference: nil)
def initialize(
image_url: nil,
product_url: nil,
reference: nil,
subscription_reference: nil
)
@image_url = image_url
@product_url = product_url
@reference = reference
@subscription_reference = subscription_reference
end
end
@ -900,6 +908,8 @@ module Stripe
@starts_at = starts_at
end
end
# Benefit details for this PaymentIntent
attr_accessor :benefit
# Car rental details for this PaymentIntent.
attr_accessor :car_rental
# 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.
@ -914,19 +924,18 @@ module Stripe
attr_accessor :order_reference
# Subscription details for this PaymentIntent
attr_accessor :subscription
# Benefit details for this PaymentIntent
attr_accessor :benefit
def initialize(
benefit: nil,
car_rental: nil,
customer_reference: nil,
event_details: nil,
flight: nil,
lodging: nil,
order_reference: nil,
subscription: nil,
benefit: nil
subscription: nil
)
@benefit = benefit
@car_rental = car_rental
@customer_reference = customer_reference
@event_details = event_details
@ -934,7 +943,6 @@ module Stripe
@lodging = lodging
@order_reference = order_reference
@subscription = subscription
@benefit = benefit
end
end

View File

@ -434,6 +434,41 @@ module Stripe
end
end
class NameCollection < ::Stripe::RequestParams
class Business < ::Stripe::RequestParams
# Enable business name collection on the payment link. Defaults to `false`.
attr_accessor :enabled
# Whether the customer is required to provide their business name before checking out. Defaults to `false`.
attr_accessor :optional
def initialize(enabled: nil, optional: nil)
@enabled = enabled
@optional = optional
end
end
class Individual < ::Stripe::RequestParams
# Enable individual name collection on the payment link. Defaults to `false`.
attr_accessor :enabled
# Whether the customer is required to provide their full name before checking out. Defaults to `false`.
attr_accessor :optional
def initialize(enabled: nil, optional: nil)
@enabled = enabled
@optional = optional
end
end
# Controls settings applied for collecting the customer's business name.
attr_accessor :business
# Controls settings applied for collecting the customer's individual name.
attr_accessor :individual
def initialize(business: nil, individual: nil)
@business = business
@individual = individual
end
end
class OptionalItem < ::Stripe::RequestParams
class AdjustableQuantity < ::Stripe::RequestParams
# Set to true if the quantity can be adjusted to any non-negative integer.
@ -676,6 +711,8 @@ module Stripe
attr_accessor :line_items
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. Metadata associated with this Payment Link will automatically be copied to [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link.
attr_accessor :metadata
# Controls settings applied for collecting the customer's name.
attr_accessor :name_collection
# The account on behalf of which to charge.
attr_accessor :on_behalf_of
# A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices).
@ -728,6 +765,7 @@ module Stripe
invoice_creation: nil,
line_items: nil,
metadata: nil,
name_collection: nil,
on_behalf_of: nil,
optional_items: nil,
payment_intent_data: nil,
@ -758,6 +796,7 @@ module Stripe
@invoice_creation = invoice_creation
@line_items = line_items
@metadata = metadata
@name_collection = name_collection
@on_behalf_of = on_behalf_of
@optional_items = optional_items
@payment_intent_data = payment_intent_data

View File

@ -327,6 +327,41 @@ module Stripe
end
end
class NameCollection < ::Stripe::RequestParams
class Business < ::Stripe::RequestParams
# Enable business name collection on the payment link. Defaults to `false`.
attr_accessor :enabled
# Whether the customer is required to provide their business name before checking out. Defaults to `false`.
attr_accessor :optional
def initialize(enabled: nil, optional: nil)
@enabled = enabled
@optional = optional
end
end
class Individual < ::Stripe::RequestParams
# Enable individual name collection on the payment link. Defaults to `false`.
attr_accessor :enabled
# Whether the customer is required to provide their full name before checking out. Defaults to `false`.
attr_accessor :optional
def initialize(enabled: nil, optional: nil)
@enabled = enabled
@optional = optional
end
end
# Controls settings applied for collecting the customer's business name.
attr_accessor :business
# Controls settings applied for collecting the customer's individual name.
attr_accessor :individual
def initialize(business: nil, individual: nil)
@business = business
@individual = individual
end
end
class PaymentIntentData < ::Stripe::RequestParams
# An arbitrary string attached to the object. Often useful for displaying to users.
attr_accessor :description
@ -488,6 +523,8 @@ module Stripe
attr_accessor :line_items
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. Metadata associated with this Payment Link will automatically be copied to [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link.
attr_accessor :metadata
# Controls settings applied for collecting the customer's name.
attr_accessor :name_collection
# A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
attr_accessor :payment_intent_data
# Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.This may occur if the Checkout Session includes a free trial or a discount.
@ -527,6 +564,7 @@ module Stripe
invoice_creation: nil,
line_items: nil,
metadata: nil,
name_collection: nil,
payment_intent_data: nil,
payment_method_collection: nil,
payment_method_types: nil,
@ -550,6 +588,7 @@ module Stripe
@invoice_creation = invoice_creation
@line_items = line_items
@metadata = metadata
@name_collection = name_collection
@payment_intent_data = payment_intent_data
@payment_method_collection = payment_method_collection
@payment_method_types = payment_method_types

View File

@ -292,6 +292,23 @@ module Stripe
end
end
class Crypto < ::Stripe::RequestParams
class DisplayPreference < ::Stripe::RequestParams
# The account's preference for whether or not to display this payment method.
attr_accessor :preference
def initialize(preference: nil)
@preference = preference
end
end
# Whether or not the payment method should be displayed.
attr_accessor :display_preference
def initialize(display_preference: nil)
@display_preference = display_preference
end
end
class CustomerBalance < ::Stripe::RequestParams
class DisplayPreference < ::Stripe::RequestParams
# The account's preference for whether or not to display this payment method.
@ -564,6 +581,23 @@ module Stripe
end
end
class MbWay < ::Stripe::RequestParams
class DisplayPreference < ::Stripe::RequestParams
# The account's preference for whether or not to display this payment method.
attr_accessor :preference
def initialize(preference: nil)
@preference = preference
end
end
# Whether or not the payment method should be displayed.
attr_accessor :display_preference
def initialize(display_preference: nil)
@display_preference = display_preference
end
end
class Mobilepay < ::Stripe::RequestParams
class DisplayPreference < ::Stripe::RequestParams
# The account's preference for whether or not to display this payment method.
@ -1039,6 +1073,8 @@ module Stripe
attr_accessor :cartes_bancaires
# Cash App is a popular consumer app in the US that allows customers to bank, invest, send, and receive money using their digital wallet. Check this [page](https://stripe.com/docs/payments/cash-app-pay) for more details.
attr_accessor :cashapp
# [Stablecoin payments](https://stripe.com/docs/payments/stablecoin-payments) enable customers to pay in stablecoins like USDC from 100s of wallets including Phantom and Metamask.
attr_accessor :crypto
# Uses a customers [cash balance](https://stripe.com/docs/payments/customer-balance) for the payment. The cash balance can be funded via a bank transfer. Check this [page](https://stripe.com/docs/payments/bank-transfers) for more details.
attr_accessor :customer_balance
# EPS is an Austria-based payment method that allows customers to complete transactions online using their bank credentials. EPS is supported by all Austrian banks and is accepted by over 80% of Austrian online retailers. Check this [page](https://stripe.com/docs/payments/eps) for more details.
@ -1073,6 +1109,8 @@ module Stripe
attr_accessor :kr_card
# [Link](https://stripe.com/docs/payments/link) is a payment method network. With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network.
attr_accessor :link
# MB WAY is the most popular wallet in Portugal. After entering their phone number in your checkout, customers approve the payment directly in their MB WAY app. Check this [page](https://stripe.com/docs/payments/mb-way) for more details.
attr_accessor :mb_way
# MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details.
attr_accessor :mobilepay
# Stripe users in Europe and the United States can accept Multibanco payments from customers in Portugal using [Sources](https://stripe.com/docs/sources)—a single integration path for creating payments using any supported method.
@ -1148,6 +1186,7 @@ module Stripe
card: nil,
cartes_bancaires: nil,
cashapp: nil,
crypto: nil,
customer_balance: nil,
eps: nil,
expand: nil,
@ -1165,6 +1204,7 @@ module Stripe
konbini: nil,
kr_card: nil,
link: nil,
mb_way: nil,
mobilepay: nil,
multibanco: nil,
name: nil,
@ -1211,6 +1251,7 @@ module Stripe
@card = card
@cartes_bancaires = cartes_bancaires
@cashapp = cashapp
@crypto = crypto
@customer_balance = customer_balance
@eps = eps
@expand = expand
@ -1228,6 +1269,7 @@ module Stripe
@konbini = konbini
@kr_card = kr_card
@link = link
@mb_way = mb_way
@mobilepay = mobilepay
@multibanco = multibanco
@name = name

View File

@ -292,6 +292,23 @@ module Stripe
end
end
class Crypto < ::Stripe::RequestParams
class DisplayPreference < ::Stripe::RequestParams
# The account's preference for whether or not to display this payment method.
attr_accessor :preference
def initialize(preference: nil)
@preference = preference
end
end
# Whether or not the payment method should be displayed.
attr_accessor :display_preference
def initialize(display_preference: nil)
@display_preference = display_preference
end
end
class CustomerBalance < ::Stripe::RequestParams
class DisplayPreference < ::Stripe::RequestParams
# The account's preference for whether or not to display this payment method.
@ -564,6 +581,23 @@ module Stripe
end
end
class MbWay < ::Stripe::RequestParams
class DisplayPreference < ::Stripe::RequestParams
# The account's preference for whether or not to display this payment method.
attr_accessor :preference
def initialize(preference: nil)
@preference = preference
end
end
# Whether or not the payment method should be displayed.
attr_accessor :display_preference
def initialize(display_preference: nil)
@display_preference = display_preference
end
end
class Mobilepay < ::Stripe::RequestParams
class DisplayPreference < ::Stripe::RequestParams
# The account's preference for whether or not to display this payment method.
@ -1041,6 +1075,8 @@ module Stripe
attr_accessor :cartes_bancaires
# Cash App is a popular consumer app in the US that allows customers to bank, invest, send, and receive money using their digital wallet. Check this [page](https://stripe.com/docs/payments/cash-app-pay) for more details.
attr_accessor :cashapp
# [Stablecoin payments](https://stripe.com/docs/payments/stablecoin-payments) enable customers to pay in stablecoins like USDC from 100s of wallets including Phantom and Metamask.
attr_accessor :crypto
# Uses a customers [cash balance](https://stripe.com/docs/payments/customer-balance) for the payment. The cash balance can be funded via a bank transfer. Check this [page](https://stripe.com/docs/payments/bank-transfers) for more details.
attr_accessor :customer_balance
# EPS is an Austria-based payment method that allows customers to complete transactions online using their bank credentials. EPS is supported by all Austrian banks and is accepted by over 80% of Austrian online retailers. Check this [page](https://stripe.com/docs/payments/eps) for more details.
@ -1075,6 +1111,8 @@ module Stripe
attr_accessor :kr_card
# [Link](https://stripe.com/docs/payments/link) is a payment method network. With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network.
attr_accessor :link
# MB WAY is the most popular wallet in Portugal. After entering their phone number in your checkout, customers approve the payment directly in their MB WAY app. Check this [page](https://stripe.com/docs/payments/mb-way) for more details.
attr_accessor :mb_way
# MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details.
attr_accessor :mobilepay
# Stripe users in Europe and the United States can accept Multibanco payments from customers in Portugal using [Sources](https://stripe.com/docs/sources)—a single integration path for creating payments using any supported method.
@ -1149,6 +1187,7 @@ module Stripe
card: nil,
cartes_bancaires: nil,
cashapp: nil,
crypto: nil,
customer_balance: nil,
eps: nil,
expand: nil,
@ -1166,6 +1205,7 @@ module Stripe
konbini: nil,
kr_card: nil,
link: nil,
mb_way: nil,
mobilepay: nil,
multibanco: nil,
name: nil,
@ -1212,6 +1252,7 @@ module Stripe
@card = card
@cartes_bancaires = cartes_bancaires
@cashapp = cashapp
@crypto = crypto
@customer_balance = customer_balance
@eps = eps
@expand = expand
@ -1229,6 +1270,7 @@ module Stripe
@konbini = konbini
@kr_card = kr_card
@link = link
@mb_way = mb_way
@mobilepay = mobilepay
@multibanco = multibanco
@name = name

View File

@ -154,6 +154,16 @@ module Stripe
class Cashapp < ::Stripe::RequestParams; end
class Crypto < ::Stripe::RequestParams; end
class Custom < ::Stripe::RequestParams
# ID of the Dashboard-only CustomPaymentMethodType. This field is used by Stripe products' internal code to support CPMs.
attr_accessor :type
def initialize(type: nil)
@type = type
end
end
class CustomerBalance < ::Stripe::RequestParams; end
class Eps < ::Stripe::RequestParams
@ -442,6 +452,8 @@ module Stripe
attr_accessor :cashapp
# If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
attr_accessor :crypto
# If this is a `custom` PaymentMethod, this hash contains details about the Custom payment method.
attr_accessor :custom
# The `Customer` to whom the original PaymentMethod is attached.
attr_accessor :customer
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
@ -559,6 +571,7 @@ module Stripe
card: nil,
cashapp: nil,
crypto: nil,
custom: nil,
customer: nil,
customer_balance: nil,
eps: nil,
@ -626,6 +639,7 @@ module Stripe
@card = card
@cashapp = cashapp
@crypto = crypto
@custom = custom
@customer = customer
@customer_balance = customer_balance
@eps = eps

View File

@ -13,7 +13,7 @@ module Stripe
attr_accessor :limit
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
attr_accessor :starting_after
# An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request.
# Filters the list by the object `type` field. Unfiltered, the list returns all payment method types except `custom`. If your integration expects only one type of payment method in the response, specify that type value in the request to reduce your payload.
attr_accessor :type
def initialize(

View File

@ -0,0 +1,79 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
class PaymentRecordReportRefundParams < ::Stripe::RequestParams
class Amount < ::Stripe::RequestParams
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
attr_accessor :currency
# A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
attr_accessor :value
def initialize(currency: nil, value: nil)
@currency = currency
@value = value
end
end
class ProcessorDetails < ::Stripe::RequestParams
class Custom < ::Stripe::RequestParams
# A reference to the external refund. This field must be unique across all refunds.
attr_accessor :refund_reference
def initialize(refund_reference: nil)
@refund_reference = refund_reference
end
end
# Information about the custom processor used to make this refund.
attr_accessor :custom
# The type of the processor details. An additional hash is included on processor_details with a name matching this value. It contains additional information specific to the processor.
attr_accessor :type
def initialize(custom: nil, type: nil)
@custom = custom
@type = type
end
end
class Refunded < ::Stripe::RequestParams
# When the reported refund completed. Measured in seconds since the Unix epoch.
attr_accessor :refunded_at
def initialize(refunded_at: nil)
@refunded_at = refunded_at
end
end
# A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) representing how much of this payment to refund. Can refund only up to the remaining, unrefunded amount of the payment.
attr_accessor :amount
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# When the reported refund was initiated. Measured in seconds since the Unix epoch.
attr_accessor :initiated_at
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
attr_accessor :metadata
# The outcome of the reported refund.
attr_accessor :outcome
# Processor information for this refund.
attr_accessor :processor_details
# Information about the payment attempt refund.
attr_accessor :refunded
def initialize(
amount: nil,
expand: nil,
initiated_at: nil,
metadata: nil,
outcome: nil,
processor_details: nil,
refunded: nil
)
@amount = amount
@expand = expand
@initiated_at = initiated_at
@metadata = metadata
@outcome = outcome
@processor_details = processor_details
@refunded = refunded
end
end
end

View File

@ -1271,10 +1271,10 @@ module Stripe
# If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme.
# This parameter is only used for cards and other redirect-based payment methods.
attr_accessor :return_url
# Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
attr_accessor :use_stripe_sdk
# Provides industry-specific information about the SetupIntent.
attr_accessor :setup_details
# Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
attr_accessor :use_stripe_sdk
def initialize(
confirmation_token: nil,
@ -1284,8 +1284,8 @@ module Stripe
payment_method_data: nil,
payment_method_options: nil,
return_url: nil,
use_stripe_sdk: nil,
setup_details: nil
setup_details: nil,
use_stripe_sdk: nil
)
@confirmation_token = confirmation_token
@expand = expand
@ -1294,8 +1294,8 @@ module Stripe
@payment_method_data = payment_method_data
@payment_method_options = payment_method_options
@return_url = return_url
@use_stripe_sdk = use_stripe_sdk
@setup_details = setup_details
@use_stripe_sdk = use_stripe_sdk
end
end
end

View File

@ -1300,6 +1300,8 @@ module Stripe
attr_accessor :customer_account
# An arbitrary string attached to the object. Often useful for displaying to users.
attr_accessor :description
# The list of payment method types to exclude from use with this SetupIntent.
attr_accessor :excluded_payment_method_types
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# Indicates the directions of money movement for which this payment method is intended to be used.
@ -1325,6 +1327,8 @@ module Stripe
attr_accessor :payment_method_types
# The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. To redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm).
attr_accessor :return_url
# Provides industry-specific information about the SetupIntent.
attr_accessor :setup_details
# If you populate this hash, this SetupIntent generates a `single_use` mandate after successful completion.
#
# Single-use mandates are only valid for the following payment methods: `acss_debit`, `alipay`, `au_becs_debit`, `bacs_debit`, `bancontact`, `boleto`, `ideal`, `link`, `sepa_debit`, and `us_bank_account`.
@ -1333,8 +1337,6 @@ module Stripe
attr_accessor :usage
# Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
attr_accessor :use_stripe_sdk
# Provides industry-specific information about the SetupIntent.
attr_accessor :setup_details
def initialize(
attach_to_self: nil,
@ -1344,6 +1346,7 @@ module Stripe
customer: nil,
customer_account: nil,
description: nil,
excluded_payment_method_types: nil,
expand: nil,
flow_directions: nil,
mandate_data: nil,
@ -1355,10 +1358,10 @@ module Stripe
payment_method_options: nil,
payment_method_types: nil,
return_url: nil,
setup_details: nil,
single_use: nil,
usage: nil,
use_stripe_sdk: nil,
setup_details: nil
use_stripe_sdk: nil
)
@attach_to_self = attach_to_self
@automatic_payment_methods = automatic_payment_methods
@ -1367,6 +1370,7 @@ module Stripe
@customer = customer
@customer_account = customer_account
@description = description
@excluded_payment_method_types = excluded_payment_method_types
@expand = expand
@flow_directions = flow_directions
@mandate_data = mandate_data
@ -1378,10 +1382,10 @@ module Stripe
@payment_method_options = payment_method_options
@payment_method_types = payment_method_types
@return_url = return_url
@setup_details = setup_details
@single_use = single_use
@usage = usage
@use_stripe_sdk = use_stripe_sdk
@setup_details = setup_details
end
end
end

View File

@ -1227,6 +1227,8 @@ module Stripe
attr_accessor :customer_account
# An arbitrary string attached to the object. Often useful for displaying to users.
attr_accessor :description
# The list of payment method types to exclude from use with this SetupIntent.
attr_accessor :excluded_payment_method_types
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# Indicates the directions of money movement for which this payment method is intended to be used.
@ -1254,6 +1256,7 @@ module Stripe
customer: nil,
customer_account: nil,
description: nil,
excluded_payment_method_types: nil,
expand: nil,
flow_directions: nil,
metadata: nil,
@ -1268,6 +1271,7 @@ module Stripe
@customer = customer
@customer_account = customer_account
@description = description
@excluded_payment_method_types = excluded_payment_method_types
@expand = expand
@flow_directions = flow_directions
@metadata = metadata

View File

@ -1411,6 +1411,15 @@ module Stripe
end
end
class Tw < ::Stripe::RequestParams
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
@type = type
end
end
class Tz < ::Stripe::RequestParams
# Type of registration to be created in `country`.
attr_accessor :type
@ -1766,6 +1775,8 @@ module Stripe
attr_accessor :tj
# Options for the registration in TR.
attr_accessor :tr
# Options for the registration in TW.
attr_accessor :tw
# Options for the registration in TZ.
attr_accessor :tz
# Options for the registration in UA.
@ -1877,6 +1888,7 @@ module Stripe
th: nil,
tj: nil,
tr: nil,
tw: nil,
tz: nil,
ua: nil,
ug: nil,
@ -1977,6 +1989,7 @@ module Stripe
@th = th
@tj = tj
@tr = tr
@tw = tw
@tz = tz
@ua = ua
@ug = ug

View File

@ -197,6 +197,21 @@ module Stripe
end
end
class Gip < ::Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_accessor :smart_tip_threshold
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
@fixed_amounts = fixed_amounts
@percentages = percentages
@smart_tip_threshold = smart_tip_threshold
end
end
class Hkd < ::Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
@ -394,6 +409,8 @@ module Stripe
attr_accessor :eur
# Tipping configuration for GBP
attr_accessor :gbp
# Tipping configuration for GIP
attr_accessor :gip
# Tipping configuration for HKD
attr_accessor :hkd
# Tipping configuration for HUF
@ -429,6 +446,7 @@ module Stripe
dkk: nil,
eur: nil,
gbp: nil,
gip: nil,
hkd: nil,
huf: nil,
jpy: nil,
@ -451,6 +469,7 @@ module Stripe
@dkk = dkk
@eur = eur
@gbp = gbp
@gip = gip
@hkd = hkd
@huf = huf
@jpy = jpy

View File

@ -197,6 +197,21 @@ module Stripe
end
end
class Gip < ::Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
# Percentages displayed when collecting a tip
attr_accessor :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_accessor :smart_tip_threshold
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
@fixed_amounts = fixed_amounts
@percentages = percentages
@smart_tip_threshold = smart_tip_threshold
end
end
class Hkd < ::Stripe::RequestParams
# Fixed amounts displayed when collecting a tip
attr_accessor :fixed_amounts
@ -394,6 +409,8 @@ module Stripe
attr_accessor :eur
# Tipping configuration for GBP
attr_accessor :gbp
# Tipping configuration for GIP
attr_accessor :gip
# Tipping configuration for HKD
attr_accessor :hkd
# Tipping configuration for HUF
@ -429,6 +446,7 @@ module Stripe
dkk: nil,
eur: nil,
gbp: nil,
gip: nil,
hkd: nil,
huf: nil,
jpy: nil,
@ -451,6 +469,7 @@ module Stripe
@dkk = dkk
@eur = eur
@gbp = gbp
@gip = gip
@hkd = hkd
@huf = huf
@jpy = jpy

View File

@ -8,9 +8,9 @@ module Stripe
class CustomText < ::Stripe::RequestParams
# The description which will be displayed when collecting this input
attr_accessor :description
# The skip button text
# Custom text for the skip button. Maximum 14 characters.
attr_accessor :skip_button
# The submit button text
# Custom text for the submit button. Maximum 30 characters.
attr_accessor :submit_button
# The title which will be displayed when collecting this input
attr_accessor :title
@ -27,7 +27,7 @@ module Stripe
class Choice < ::Stripe::RequestParams
# The unique identifier for this choice
attr_accessor :id
# The style of the button which will be shown for this choice
# The style of the button which will be shown for this choice. Can be `primary` or `secondary`.
attr_accessor :style
# The text which will be shown on the button for this choice
attr_accessor :text
@ -47,11 +47,11 @@ module Stripe
end
class Toggle < ::Stripe::RequestParams
# The default value of the toggle
# The default value of the toggle. Can be `enabled` or `disabled`.
attr_accessor :default_value
# The description which will be displayed for the toggle
# The description which will be displayed for the toggle. Maximum 50 characters. At least one of title or description must be provided.
attr_accessor :description
# The title which will be displayed for the toggle
# The title which will be displayed for the toggle. Maximum 50 characters. At least one of title or description must be provided.
attr_accessor :title
def initialize(default_value: nil, description: nil, title: nil)
@ -81,7 +81,7 @@ module Stripe
end
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# List of inputs to be collected using the Reader
# List of inputs to be collected from the customer using the Reader. Maximum 5 inputs.
attr_accessor :inputs
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
attr_accessor :metadata

View File

@ -34,11 +34,11 @@ module Stripe
@tipping = tipping
end
end
# Configuration overrides.
# Configuration overrides for this collection, such as tipping, surcharging, and customer cancellation settings.
attr_accessor :collect_config
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# PaymentIntent ID.
# The ID of the PaymentIntent to collect a payment method for.
attr_accessor :payment_intent
def initialize(collect_config: nil, expand: nil, payment_intent: nil)

View File

@ -12,11 +12,11 @@ module Stripe
@return_url = return_url
end
end
# Configuration overrides.
# Configuration overrides for this confirmation, such as surcharge settings and return URL.
attr_accessor :confirm_config
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# PaymentIntent ID.
# The ID of the PaymentIntent to confirm.
attr_accessor :payment_intent
def initialize(confirm_config: nil, expand: nil, payment_intent: nil)

View File

@ -32,7 +32,7 @@ module Stripe
end
class InteracPresent < ::Stripe::RequestParams
# Card Number
# The Interac card number.
attr_accessor :number
def initialize(number: nil)

View File

@ -40,9 +40,9 @@ module Stripe
end
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# PaymentIntent ID
# The ID of the PaymentIntent to process on the reader.
attr_accessor :payment_intent
# Configuration overrides
# Configuration overrides for this transaction, such as tipping and customer cancellation settings.
attr_accessor :process_config
def initialize(expand: nil, payment_intent: nil, process_config: nil)

View File

@ -16,9 +16,9 @@ module Stripe
attr_accessor :allow_redisplay
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# Configuration overrides
# Configuration overrides for this setup, such as MOTO and customer cancellation settings.
attr_accessor :process_config
# SetupIntent ID
# The ID of the SetupIntent to process on the reader.
attr_accessor :setup_intent
def initialize(allow_redisplay: nil, expand: nil, process_config: nil, setup_intent: nil)

View File

@ -24,7 +24,7 @@ module Stripe
attr_accessor :payment_intent
# Boolean indicating whether the application fee should be refunded when refunding this charge. If a full charge refund is given, the full application fee will be refunded. Otherwise, the application fee will be refunded in an amount proportional to the amount of the charge refunded. An application fee can be refunded only by the application that created the charge.
attr_accessor :refund_application_fee
# Configuration overrides
# Configuration overrides for this refund, such as customer cancellation settings.
attr_accessor :refund_payment_config
# Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount). A transfer can be reversed only by the application that created the charge.
attr_accessor :reverse_transfer

View File

@ -6,7 +6,7 @@ module Stripe
class ReaderSetReaderDisplayParams < ::Stripe::RequestParams
class Cart < ::Stripe::RequestParams
class LineItem < ::Stripe::RequestParams
# The price of the item in cents.
# The price of the item in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
attr_accessor :amount
# The description or name of the item.
attr_accessor :description
@ -21,11 +21,11 @@ module Stripe
end
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
attr_accessor :currency
# Array of line items that were purchased.
# Array of line items to display.
attr_accessor :line_items
# The amount of tax in cents.
# The amount of tax in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
attr_accessor :tax
# Total balance of cart due in cents.
# Total balance of cart due in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
attr_accessor :total
def initialize(currency: nil, line_items: nil, tax: nil, total: nil)
@ -35,11 +35,11 @@ module Stripe
@total = total
end
end
# Cart
# Cart details to display on the reader screen, including line items, amounts, and currency.
attr_accessor :cart
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# Type
# Type of information to display. Only `cart` is currently supported.
attr_accessor :type
def initialize(cart: nil, expand: nil, type: nil)

View File

@ -33,7 +33,7 @@ module Stripe
end
class InteracPresent < ::Stripe::RequestParams
# Card Number
# The Interac card number.
attr_accessor :number
def initialize(number: nil)

View File

@ -151,6 +151,21 @@ module Stripe
end
end
class RepresentativeDeclaration < ::Stripe::RequestParams
# The Unix timestamp marking when the representative declaration attestation was made.
attr_accessor :date
# The IP address from which the representative declaration attestation was made.
attr_accessor :ip
# The user agent of the browser from which the representative declaration attestation was made.
attr_accessor :user_agent
def initialize(date: nil, ip: nil, user_agent: nil)
@date = date
@ip = ip
@user_agent = user_agent
end
end
class Verification < ::Stripe::RequestParams
class Document < ::Stripe::RequestParams
# The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
@ -206,6 +221,8 @@ module Stripe
attr_accessor :registration_date
# The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
attr_accessor :registration_number
# This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
attr_accessor :representative_declaration
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
attr_accessor :structure
# The business ID number of the company, as appropriate for the companys country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
@ -236,6 +253,7 @@ module Stripe
phone: nil,
registration_date: nil,
registration_number: nil,
representative_declaration: nil,
structure: nil,
tax_id: nil,
tax_id_registrar: nil,
@ -260,6 +278,7 @@ module Stripe
@phone = phone
@registration_date = registration_date
@registration_number = registration_number
@representative_declaration = representative_declaration
@structure = structure
@tax_id = tax_id
@tax_id_registrar = tax_id_registrar

View File

@ -23,6 +23,8 @@ module Stripe
attr_accessor :source_type
# A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
attr_accessor :transfer_group
# Attribute for param field application_fee_amount
attr_accessor :application_fee_amount
def initialize(
amount: nil,
@ -34,7 +36,8 @@ module Stripe
metadata: nil,
source_transaction: nil,
source_type: nil,
transfer_group: nil
transfer_group: nil,
application_fee_amount: nil
)
@amount = amount
@currency = currency
@ -46,6 +49,7 @@ module Stripe
@source_transaction = source_transaction
@source_type = source_type
@transfer_group = transfer_group
@application_fee_amount = application_fee_amount
end
end
end

View File

@ -1112,11 +1112,23 @@ module Stripe
@requested = requested
end
end
class CryptoWallets < ::Stripe::RequestParams
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
attr_accessor :requested
def initialize(requested: nil)
@requested = requested
end
end
# Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
attr_accessor :bank_accounts
# Can provision a crypto wallet like financial address to credit a FinancialAccount.
attr_accessor :crypto_wallets
def initialize(bank_accounts: nil)
def initialize(bank_accounts: nil, crypto_wallets: nil)
@bank_accounts = bank_accounts
@crypto_wallets = crypto_wallets
end
end
@ -1138,14 +1150,26 @@ module Stripe
@requested = requested
end
end
class Usdc < ::Stripe::RequestParams
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
attr_accessor :requested
def initialize(requested: nil)
@requested = requested
end
end
# Can hold storage-type funds on Stripe in GBP.
attr_accessor :gbp
# Can hold storage-type funds on Stripe in USD.
attr_accessor :usd
# Can hold storage-type funds on Stripe in USDC.
attr_accessor :usdc
def initialize(gbp: nil, usd: nil)
def initialize(gbp: nil, usd: nil, usdc: nil)
@gbp = gbp
@usd = usd
@usdc = usdc
end
end
@ -1185,6 +1209,15 @@ module Stripe
end
end
class CryptoWallets < ::Stripe::RequestParams
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
attr_accessor :requested
def initialize(requested: nil)
@requested = requested
end
end
class FinancialAccounts < ::Stripe::RequestParams
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
attr_accessor :requested
@ -1197,12 +1230,20 @@ module Stripe
attr_accessor :bank_accounts
# Can send funds from a FinancialAccount to a debit card owned by someone else.
attr_accessor :cards
# Can send funds from a FinancialAccount to a crypto wallet owned by someone else.
attr_accessor :crypto_wallets
# Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
attr_accessor :financial_accounts
def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil)
def initialize(
bank_accounts: nil,
cards: nil,
crypto_wallets: nil,
financial_accounts: nil
)
@bank_accounts = bank_accounts
@cards = cards
@crypto_wallets = crypto_wallets
@financial_accounts = financial_accounts
end
end
@ -1217,6 +1258,15 @@ module Stripe
end
end
class CryptoWallets < ::Stripe::RequestParams
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
attr_accessor :requested
def initialize(requested: nil)
@requested = requested
end
end
class FinancialAccounts < ::Stripe::RequestParams
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
attr_accessor :requested
@ -1227,11 +1277,14 @@ module Stripe
end
# Can send funds from a FinancialAccount to a bank account owned by yourself.
attr_accessor :bank_accounts
# Can send funds from a FinancialAccount to a crypto wallet owned by yourself.
attr_accessor :crypto_wallets
# Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
attr_accessor :financial_accounts
def initialize(bank_accounts: nil, financial_accounts: nil)
def initialize(bank_accounts: nil, crypto_wallets: nil, financial_accounts: nil)
@bank_accounts = bank_accounts
@crypto_wallets = crypto_wallets
@financial_accounts = financial_accounts
end
end
@ -1260,11 +1313,76 @@ module Stripe
@outbound_transfers = outbound_transfers
end
end
class RegulatedActivity < ::Stripe::RequestParams
# A detailed description of the regulated activities the business is licensed to conduct.
attr_accessor :description
# The license number or registration number assigned by the business's primary regulator.
attr_accessor :license_number
# The country of the primary regulatory authority that oversees the business's regulated activities.
attr_accessor :primary_regulatory_authority_country
# The name of the primary regulatory authority that oversees the business's regulated activities.
attr_accessor :primary_regulatory_authority_name
def initialize(
description: nil,
license_number: nil,
primary_regulatory_authority_country: nil,
primary_regulatory_authority_name: nil
)
@description = description
@license_number = license_number
@primary_regulatory_authority_country = primary_regulatory_authority_country
@primary_regulatory_authority_name = primary_regulatory_authority_name
end
end
# Capabilities to request on the Storer Configuration.
attr_accessor :capabilities
# List of high-risk activities the business is involved in.
attr_accessor :high_risk_activities
# An explanation of the high risk activities that the business performs.
attr_accessor :high_risk_activities_description
# Description of the money services offered by the business.
attr_accessor :money_services_description
# Does the business operate in any prohibited countries.
attr_accessor :operates_in_prohibited_countries
# Does the business participate in any regulated activity.
attr_accessor :participates_in_regulated_activity
# Primary purpose of the stored funds.
attr_accessor :purpose_of_funds
# Description of the purpose of the stored funds.
attr_accessor :purpose_of_funds_description
# Details of the regulated activity if the business participates in one.
attr_accessor :regulated_activity
# The source of funds for the business, e.g. profits, income, venture capital, etc.
attr_accessor :source_of_funds
# Description of the source of funds for the business' account.
attr_accessor :source_of_funds_description
def initialize(capabilities: nil)
def initialize(
capabilities: nil,
high_risk_activities: nil,
high_risk_activities_description: nil,
money_services_description: nil,
operates_in_prohibited_countries: nil,
participates_in_regulated_activity: nil,
purpose_of_funds: nil,
purpose_of_funds_description: nil,
regulated_activity: nil,
source_of_funds: nil,
source_of_funds_description: nil
)
@capabilities = capabilities
@high_risk_activities = high_risk_activities
@high_risk_activities_description = high_risk_activities_description
@money_services_description = money_services_description
@operates_in_prohibited_countries = operates_in_prohibited_countries
@participates_in_regulated_activity = participates_in_regulated_activity
@purpose_of_funds = purpose_of_funds
@purpose_of_funds_description = purpose_of_funds_description
@regulated_activity = regulated_activity
@source_of_funds = source_of_funds
@source_of_funds_description = source_of_funds_description
end
end
# The CardCreator Configuration allows the Account to create and issue cards to users.
@ -1718,6 +1836,21 @@ module Stripe
end
end
class CryptoStorer < ::Stripe::RequestParams
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
attr_accessor :date
# The IP address from which the Account's representative accepted the terms of service.
attr_accessor :ip
# The user agent of the browser from which the Account's representative accepted the terms of service.
attr_accessor :user_agent
def initialize(date: nil, ip: nil, user_agent: nil)
@date = date
@ip = ip
@user_agent = user_agent
end
end
class Storer < ::Stripe::RequestParams
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
attr_accessor :date
@ -1736,12 +1869,15 @@ module Stripe
attr_accessor :account
# Details on the Account's acceptance of Issuing-specific terms of service.
attr_accessor :card_creator
# Details on the Account's acceptance of Crypto-storer-specific terms of service.
attr_accessor :crypto_storer
# Details on the Account's acceptance of Treasury-specific terms of service.
attr_accessor :storer
def initialize(account: nil, card_creator: nil, storer: nil)
def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil)
@account = account
@card_creator = card_creator
@crypto_storer = crypto_storer
@storer = storer
end
end
@ -2133,6 +2269,8 @@ module Stripe
attr_accessor :address
# The business gross annual revenue for its preceding fiscal year.
attr_accessor :annual_revenue
# A detailed description of the business's compliance and anti-money laundering controls and practices.
attr_accessor :compliance_screening_description
# A document verifying the business.
attr_accessor :documents
# An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
@ -2155,6 +2293,7 @@ module Stripe
def initialize(
address: nil,
annual_revenue: nil,
compliance_screening_description: nil,
documents: nil,
estimated_worker_count: nil,
id_numbers: nil,
@ -2167,6 +2306,7 @@ module Stripe
)
@address = address
@annual_revenue = annual_revenue
@compliance_screening_description = compliance_screening_description
@documents = documents
@estimated_worker_count = estimated_worker_count
@id_numbers = id_numbers

View File

@ -1140,11 +1140,23 @@ module Stripe
@requested = requested
end
end
class CryptoWallets < ::Stripe::RequestParams
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
attr_accessor :requested
def initialize(requested: nil)
@requested = requested
end
end
# Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
attr_accessor :bank_accounts
# Can provision a crypto wallet like financial address to credit a FinancialAccount.
attr_accessor :crypto_wallets
def initialize(bank_accounts: nil)
def initialize(bank_accounts: nil, crypto_wallets: nil)
@bank_accounts = bank_accounts
@crypto_wallets = crypto_wallets
end
end
@ -1166,14 +1178,26 @@ module Stripe
@requested = requested
end
end
class Usdc < ::Stripe::RequestParams
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
attr_accessor :requested
def initialize(requested: nil)
@requested = requested
end
end
# Can hold storage-type funds on Stripe in GBP.
attr_accessor :gbp
# Can hold storage-type funds on Stripe in USD.
attr_accessor :usd
# Can hold storage-type funds on Stripe in USDC.
attr_accessor :usdc
def initialize(gbp: nil, usd: nil)
def initialize(gbp: nil, usd: nil, usdc: nil)
@gbp = gbp
@usd = usd
@usdc = usdc
end
end
@ -1213,6 +1237,15 @@ module Stripe
end
end
class CryptoWallets < ::Stripe::RequestParams
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
attr_accessor :requested
def initialize(requested: nil)
@requested = requested
end
end
class FinancialAccounts < ::Stripe::RequestParams
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
attr_accessor :requested
@ -1225,12 +1258,20 @@ module Stripe
attr_accessor :bank_accounts
# Can send funds from a FinancialAccount to a debit card owned by someone else.
attr_accessor :cards
# Can send funds from a FinancialAccount to a crypto wallet owned by someone else.
attr_accessor :crypto_wallets
# Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
attr_accessor :financial_accounts
def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil)
def initialize(
bank_accounts: nil,
cards: nil,
crypto_wallets: nil,
financial_accounts: nil
)
@bank_accounts = bank_accounts
@cards = cards
@crypto_wallets = crypto_wallets
@financial_accounts = financial_accounts
end
end
@ -1245,6 +1286,15 @@ module Stripe
end
end
class CryptoWallets < ::Stripe::RequestParams
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
attr_accessor :requested
def initialize(requested: nil)
@requested = requested
end
end
class FinancialAccounts < ::Stripe::RequestParams
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
attr_accessor :requested
@ -1255,11 +1305,14 @@ module Stripe
end
# Can send funds from a FinancialAccount to a bank account owned by yourself.
attr_accessor :bank_accounts
# Can send funds from a FinancialAccount to a crypto wallet owned by yourself.
attr_accessor :crypto_wallets
# Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
attr_accessor :financial_accounts
def initialize(bank_accounts: nil, financial_accounts: nil)
def initialize(bank_accounts: nil, crypto_wallets: nil, financial_accounts: nil)
@bank_accounts = bank_accounts
@crypto_wallets = crypto_wallets
@financial_accounts = financial_accounts
end
end
@ -1288,14 +1341,80 @@ module Stripe
@outbound_transfers = outbound_transfers
end
end
class RegulatedActivity < ::Stripe::RequestParams
# A detailed description of the regulated activities the business is licensed to conduct.
attr_accessor :description
# The license number or registration number assigned by the business's primary regulator.
attr_accessor :license_number
# The country of the primary regulatory authority that oversees the business's regulated activities.
attr_accessor :primary_regulatory_authority_country
# The name of the primary regulatory authority that oversees the business's regulated activities.
attr_accessor :primary_regulatory_authority_name
def initialize(
description: nil,
license_number: nil,
primary_regulatory_authority_country: nil,
primary_regulatory_authority_name: nil
)
@description = description
@license_number = license_number
@primary_regulatory_authority_country = primary_regulatory_authority_country
@primary_regulatory_authority_name = primary_regulatory_authority_name
end
end
# Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
attr_accessor :applied
# Capabilities to request on the Storer Configuration.
attr_accessor :capabilities
# List of high-risk activities the business is involved in.
attr_accessor :high_risk_activities
# An explanation of the high risk activities that the business performs.
attr_accessor :high_risk_activities_description
# Description of the money services offered by the business.
attr_accessor :money_services_description
# Does the business operate in any prohibited countries.
attr_accessor :operates_in_prohibited_countries
# Does the business participate in any regulated activity.
attr_accessor :participates_in_regulated_activity
# Primary purpose of the stored funds.
attr_accessor :purpose_of_funds
# Description of the purpose of the stored funds.
attr_accessor :purpose_of_funds_description
# Details of the regulated activity if the business participates in one.
attr_accessor :regulated_activity
# The source of funds for the business, e.g. profits, income, venture capital, etc.
attr_accessor :source_of_funds
# Description of the source of funds for the business' account.
attr_accessor :source_of_funds_description
def initialize(applied: nil, capabilities: nil)
def initialize(
applied: nil,
capabilities: nil,
high_risk_activities: nil,
high_risk_activities_description: nil,
money_services_description: nil,
operates_in_prohibited_countries: nil,
participates_in_regulated_activity: nil,
purpose_of_funds: nil,
purpose_of_funds_description: nil,
regulated_activity: nil,
source_of_funds: nil,
source_of_funds_description: nil
)
@applied = applied
@capabilities = capabilities
@high_risk_activities = high_risk_activities
@high_risk_activities_description = high_risk_activities_description
@money_services_description = money_services_description
@operates_in_prohibited_countries = operates_in_prohibited_countries
@participates_in_regulated_activity = participates_in_regulated_activity
@purpose_of_funds = purpose_of_funds
@purpose_of_funds_description = purpose_of_funds_description
@regulated_activity = regulated_activity
@source_of_funds = source_of_funds
@source_of_funds_description = source_of_funds_description
end
end
# The CardCreator Configuration allows the Account to create and issue cards to users.
@ -1749,6 +1868,21 @@ module Stripe
end
end
class CryptoStorer < ::Stripe::RequestParams
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
attr_accessor :date
# The IP address from which the Account's representative accepted the terms of service.
attr_accessor :ip
# The user agent of the browser from which the Account's representative accepted the terms of service.
attr_accessor :user_agent
def initialize(date: nil, ip: nil, user_agent: nil)
@date = date
@ip = ip
@user_agent = user_agent
end
end
class Storer < ::Stripe::RequestParams
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
attr_accessor :date
@ -1767,12 +1901,15 @@ module Stripe
attr_accessor :account
# Details on the Account's acceptance of Issuing-specific terms of service.
attr_accessor :card_creator
# Details on the Account's acceptance of Crypto-storer-specific terms of service.
attr_accessor :crypto_storer
# Details on the Account's acceptance of Treasury-specific terms of service.
attr_accessor :storer
def initialize(account: nil, card_creator: nil, storer: nil)
def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil)
@account = account
@card_creator = card_creator
@crypto_storer = crypto_storer
@storer = storer
end
end
@ -2164,6 +2301,8 @@ module Stripe
attr_accessor :address
# The business gross annual revenue for its preceding fiscal year.
attr_accessor :annual_revenue
# A detailed description of the business's compliance and anti-money laundering controls and practices.
attr_accessor :compliance_screening_description
# A document verifying the business.
attr_accessor :documents
# An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
@ -2186,6 +2325,7 @@ module Stripe
def initialize(
address: nil,
annual_revenue: nil,
compliance_screening_description: nil,
documents: nil,
estimated_worker_count: nil,
id_numbers: nil,
@ -2198,6 +2338,7 @@ module Stripe
)
@address = address
@annual_revenue = annual_revenue
@compliance_screening_description = compliance_screening_description
@documents = documents
@estimated_worker_count = estimated_worker_count
@id_numbers = id_numbers

View File

@ -411,6 +411,23 @@ module Stripe
end
end
class RepresentativeDeclaration < ::Stripe::StripeObject
# The Unix timestamp marking when the representative declaration attestation was made.
attr_reader :date
# The IP address from which the representative declaration attestation was made.
attr_reader :ip
# The user-agent string from the browser where the representative declaration attestation was made.
attr_reader :user_agent
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
class Verification < ::Stripe::StripeObject
class Document < ::Stripe::StripeObject
# The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](/file-upload#uploading-a-file).
@ -473,6 +490,8 @@ module Stripe
attr_reader :phone
# Attribute for field registration_date
attr_reader :registration_date
# This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
attr_reader :representative_declaration
# The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details.
attr_reader :structure
# Whether the company's business ID number was provided.
@ -492,6 +511,7 @@ module Stripe
directorship_declaration: DirectorshipDeclaration,
ownership_declaration: OwnershipDeclaration,
registration_date: RegistrationDate,
representative_declaration: RepresentativeDeclaration,
verification: Verification,
}
end

View File

@ -20,6 +20,8 @@ module Stripe
attr_reader :payout
# Type of object that created the application fee.
attr_reader :type
# Transfer ID that created this application fee.
attr_reader :transfer
def self.inner_class_types
@inner_class_types = {}

View File

@ -305,6 +305,86 @@ module Stripe
@field_remappings = {}
end
end
class TransitBalancesTotal < ::Stripe::StripeObject
class Available < ::Stripe::StripeObject
class SourceTypes < ::Stripe::StripeObject
# Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
attr_reader :bank_account
# Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
attr_reader :card
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
attr_reader :fpx
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
# Balance amount.
attr_reader :amount
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
attr_reader :currency
# Attribute for field source_types
attr_reader :source_types
def self.inner_class_types
@inner_class_types = { source_types: SourceTypes }
end
def self.field_remappings
@field_remappings = {}
end
end
class Pending < ::Stripe::StripeObject
class SourceTypes < ::Stripe::StripeObject
# Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
attr_reader :bank_account
# Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
attr_reader :card
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
attr_reader :fpx
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
# Balance amount.
attr_reader :amount
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
attr_reader :currency
# Attribute for field source_types
attr_reader :source_types
def self.inner_class_types
@inner_class_types = { source_types: SourceTypes }
end
def self.field_remappings
@field_remappings = {}
end
end
# Funds that are available for use.
attr_reader :available
# Funds that are pending
attr_reader :pending
def self.inner_class_types
@inner_class_types = { available: Available, pending: Pending }
end
def self.field_remappings
@field_remappings = {}
end
end
# Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
attr_reader :available
# Funds held due to negative balances on connected accounts where [account.controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. You can find the connect reserve balance for each currency and payment type in the `source_types` property.
@ -321,6 +401,8 @@ module Stripe
attr_reader :pending
# Attribute for field refund_and_dispute_prefunding
attr_reader :refund_and_dispute_prefunding
# Attribute for field transit_balances_total
attr_reader :transit_balances_total
def self.inner_class_types
@inner_class_types = {
@ -330,6 +412,7 @@ module Stripe
issuing: Issuing,
pending: Pending,
refund_and_dispute_prefunding: RefundAndDisputePrefunding,
transit_balances_total: TransitBalancesTotal,
}
end

View File

@ -24,6 +24,8 @@ module Stripe
attr_reader :starts_at
# The aggregated meter usage value for the specified bucket.
attr_reader :value
# A set of key-value pairs representing the tenants of the meter usage.
attr_reader :tenants
def self.inner_class_types
@inner_class_types = {}

View File

@ -80,6 +80,8 @@ module Stripe
attr_reader :customer_mapping
# Attribute for field default_aggregation
attr_reader :default_aggregation
# Set of keys that will be used to group meter events by.
attr_reader :dimension_payload_keys
# The meter's name.
attr_reader :display_name
# The name of the meter event to record usage for. Corresponds with the `event_name` field on meter events.
@ -100,8 +102,6 @@ module Stripe
attr_reader :updated
# Attribute for field value_settings
attr_reader :value_settings
# Set of keys that will be used to group meter events by.
attr_reader :dimension_payload_keys
# Creates a billing meter.
def self.create(params = {}, opts = {})

View File

@ -15,6 +15,8 @@ module Stripe
# Aggregated value of all the events within `start_time` (inclusive) and `end_time` (inclusive). The aggregation strategy is defined on meter via `default_aggregation`.
attr_reader :aggregated_value
# Key-value pairs of dimension values for event summaries with grouping on dimensions.
attr_reader :dimensions
# End timestamp for this event summary (exclusive). Must be aligned with minute boundaries.
attr_reader :end_time
# Unique identifier for the object.
@ -27,8 +29,6 @@ module Stripe
attr_reader :object
# Start timestamp for this event summary (inclusive). Must be aligned with minute boundaries.
attr_reader :start_time
# Key-value pairs of dimension values for event summaries with grouping on dimensions.
attr_reader :dimensions
def self.inner_class_types
@inner_class_types = {}

View File

@ -3,7 +3,7 @@
module Stripe
module BillingPortal
# A portal configuration describes the functionality and behavior of a portal session.
# A portal configuration describes the functionality and behavior you embed in a portal session. Related guide: [Configure the customer portal](https://docs.stripe.com/customer-management/configure-portal).
class Configuration < APIResource
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List

View File

@ -17,9 +17,11 @@ module Stripe
"card"
end
class Networks < ::Stripe::StripeObject
# The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
attr_reader :preferred
class Benefits < ::Stripe::StripeObject
# Issuer of this benefit card
attr_reader :issuer
# Available benefit programs for this card
attr_reader :programs
def self.inner_class_types
@inner_class_types = {}
@ -30,11 +32,9 @@ module Stripe
end
end
class Benefits < ::Stripe::StripeObject
# Issuer of this benefit card
attr_reader :issuer
# Available benefit programs for this card
attr_reader :programs
class Networks < ::Stripe::StripeObject
# The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
attr_reader :preferred
def self.inner_class_types
@inner_class_types = {}
@ -66,6 +66,8 @@ module Stripe
attr_reader :allow_redisplay
# A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout.
attr_reader :available_payout_methods
# Attribute for field benefits
attr_reader :benefits
# Card brand. Can be `American Express`, `Cartes Bancaires`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
attr_reader :brand
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
@ -116,8 +118,6 @@ module Stripe
attr_reader :status
# If the card number is tokenized, this is the method that was used. Can be `android_pay` (includes Google Pay), `apple_pay`, `masterpass`, `visa_checkout`, or null.
attr_reader :tokenization_method
# Attribute for field benefits
attr_reader :benefits
# Always true for a deleted object
attr_reader :deleted
@ -171,7 +171,7 @@ module Stripe
end
def self.inner_class_types
@inner_class_types = { networks: Networks, benefits: Benefits }
@inner_class_types = { benefits: Benefits, networks: Networks }
end
def self.field_remappings

View File

@ -881,6 +881,8 @@ module Stripe
attr_reader :amount_requested
# Authorization code on the charge.
attr_reader :authorization_code
# Attribute for field benefits
attr_reader :benefits
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
attr_reader :brand
# When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured.
@ -939,11 +941,10 @@ module Stripe
attr_reader :three_d_secure
# If this Card is part of a card wallet, this contains the details of the card wallet.
attr_reader :wallet
# Attribute for field benefits
attr_reader :benefits
def self.inner_class_types
@inner_class_types = {
benefits: Benefits,
checks: Checks,
decremental_authorization: DecrementalAuthorization,
extended_authorization: ExtendedAuthorization,
@ -955,7 +956,6 @@ module Stripe
partial_authorization: PartialAuthorization,
three_d_secure: ThreeDSecure,
wallet: Wallet,
benefits: Benefits,
}
end
@ -1786,6 +1786,9 @@ module Stripe
end
class Rechnung < ::Stripe::StripeObject
# Payment portal URL.
attr_reader :payment_portal_url
def self.inner_class_types
@inner_class_types = {}
end

View File

@ -1710,6 +1710,25 @@ module Stripe
end
end
class Twint < ::Stripe::StripeObject
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
#
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
attr_reader :setup_future_usage
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
class UsBankAccount < ::Stripe::StripeObject
class FinancialConnections < ::Stripe::StripeObject
class Filters < ::Stripe::StripeObject
@ -1861,6 +1880,8 @@ module Stripe
attr_reader :sofort
# Attribute for field swish
attr_reader :swish
# Attribute for field twint
attr_reader :twint
# Attribute for field us_bank_account
attr_reader :us_bank_account
@ -1906,6 +1927,7 @@ module Stripe
sepa_debit: SepaDebit,
sofort: Sofort,
swish: Swish,
twint: Twint,
us_bank_account: UsBankAccount,
}
end

View File

@ -735,6 +735,8 @@ module Stripe
@field_remappings = {}
end
end
# Attribute for field benefits
attr_reader :benefits
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
attr_reader :brand
# Checks on Card address and CVC if provided.
@ -771,17 +773,15 @@ module Stripe
attr_reader :three_d_secure_usage
# If this Card is part of a card wallet, this contains the details of the card wallet.
attr_reader :wallet
# Attribute for field benefits
attr_reader :benefits
def self.inner_class_types
@inner_class_types = {
benefits: Benefits,
checks: Checks,
generated_from: GeneratedFrom,
networks: Networks,
three_d_secure_usage: ThreeDSecureUsage,
wallet: Wallet,
benefits: Benefits,
}
end

View File

@ -159,6 +159,8 @@ module Stripe
attr_reader :ip_address
# The identified tax location of the customer.
attr_reader :location
# The tax calculation provider used for location resolution. Defaults to `stripe` when not using a [third-party provider](/tax/third-party-apps).
attr_reader :provider
def self.inner_class_types
@inner_class_types = { location: Location }

View File

@ -30,6 +30,82 @@ module Stripe
end
end
class CustomerSheet < ::Stripe::StripeObject
class Features < ::Stripe::StripeObject
# A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
#
# If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
attr_reader :payment_method_allow_redisplay_filters
# Controls whether the customer sheet displays the option to remove a saved payment method."
#
# Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
attr_reader :payment_method_remove
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
# Whether the customer sheet is enabled.
attr_reader :enabled
# This hash defines whether the customer sheet supports certain features.
attr_reader :features
def self.inner_class_types
@inner_class_types = { features: Features }
end
def self.field_remappings
@field_remappings = {}
end
end
class MobilePaymentElement < ::Stripe::StripeObject
class Features < ::Stripe::StripeObject
# A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the mobile payment element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
#
# If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
attr_reader :payment_method_allow_redisplay_filters
# Controls whether or not the mobile payment element shows saved payment methods.
attr_reader :payment_method_redisplay
# Controls whether the mobile payment element displays the option to remove a saved payment method."
#
# Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
attr_reader :payment_method_remove
# Controls whether the mobile payment element displays a checkbox offering to save a new payment method.
#
# If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
attr_reader :payment_method_save
# Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled. Use values: "always", "limited", or "unspecified".
#
# If not specified, defaults to `nil` (no override value).
attr_reader :payment_method_save_allow_redisplay_override
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
# Whether the mobile payment element is enabled.
attr_reader :enabled
# This hash defines whether the mobile payment element supports certain features.
attr_reader :features
def self.inner_class_types
@inner_class_types = { features: Features }
end
def self.field_remappings
@field_remappings = {}
end
end
class PaymentElement < ::Stripe::StripeObject
class Features < ::Stripe::StripeObject
# A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
@ -87,18 +163,60 @@ module Stripe
@field_remappings = {}
end
end
class TaxIdElement < ::Stripe::StripeObject
class Features < ::Stripe::StripeObject
# Controls whether the Tax ID Element displays saved tax IDs for the customer. This parameter defaults to `disabled`.
#
# When enabled, the Tax ID Element will show existing tax IDs associated with the customer, allowing them to select from previously saved tax identification numbers.
attr_reader :tax_id_redisplay
# Controls whether the Tax ID Element allows merchants to save new tax IDs for their customer. This parameter defaults to `disabled`.
#
# When enabled, customers can enter and save new tax identification numbers during the payment flow, which will be stored securely and associated with their customer object for future use.
attr_reader :tax_id_save
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
# Whether the Tax ID Element is enabled.
attr_reader :enabled
# This hash defines whether the Tax ID Element supports certain features.
attr_reader :features
def self.inner_class_types
@inner_class_types = { features: Features }
end
def self.field_remappings
@field_remappings = {}
end
end
# This hash contains whether the buy button is enabled.
attr_reader :buy_button
# This hash contains whether the customer sheet is enabled and the features it supports.
attr_reader :customer_sheet
# This hash contains whether the mobile payment element is enabled and the features it supports.
attr_reader :mobile_payment_element
# This hash contains whether the Payment Element is enabled and the features it supports.
attr_reader :payment_element
# This hash contains whether the pricing table is enabled.
attr_reader :pricing_table
# This hash contains whether the Tax ID Element is enabled and the features it supports.
attr_reader :tax_id_element
def self.inner_class_types
@inner_class_types = {
buy_button: BuyButton,
customer_sheet: CustomerSheet,
mobile_payment_element: MobilePaymentElement,
payment_element: PaymentElement,
pricing_table: PricingTable,
tax_id_element: TaxIdElement,
}
end

View File

@ -287,7 +287,7 @@ module Stripe
)
end
# Subscribes to periodic refreshes of data associated with a Financial Connections Account.
# Subscribes to periodic refreshes of data associated with a Financial Connections Account. When the account status is active, data is typically refreshed once a day.
def subscribe(params = {}, opts = {})
request_stripe_object(
method: :post,
@ -297,7 +297,7 @@ module Stripe
)
end
# Subscribes to periodic refreshes of data associated with a Financial Connections Account.
# Subscribes to periodic refreshes of data associated with a Financial Connections Account. When the account status is active, data is typically refreshed once a day.
def self.subscribe(account, params = {}, opts = {})
request_stripe_object(
method: :post,

View File

@ -113,6 +113,8 @@ module Stripe
end
# Address as it appears in the document.
attr_reader :address
# If document was not verified due to extracted data being on the blocklist, this is the token of the BlocklistEntry that blocked it
attr_reader :blocked_by_entry
# Date of birth as it appears in the document.
attr_reader :dob
# Details on the verification error. Present when status is `unverified`.
@ -141,8 +143,6 @@ module Stripe
attr_reader :unparsed_place_of_birth
# Sex as it appears in the document.
attr_reader :unparsed_sex
# If document was not verified due to extracted data being on the blocklist, this is the token of the BlocklistEntry that blocked it
attr_reader :blocked_by_entry
def self.inner_class_types
@inner_class_types = {
@ -335,6 +335,8 @@ module Stripe
@field_remappings = {}
end
end
# If selfie was not verified due to being on the blocklist, this is the token of the BlocklistEntry that blocked it
attr_reader :blocked_by_entry
# ID of the [File](https://stripe.com/docs/api/files) holding the image of the identity document used in this check.
attr_reader :document
# Details on the verification error. Present when status is `unverified`.
@ -343,8 +345,6 @@ module Stripe
attr_reader :selfie
# Status of this `selfie` check.
attr_reader :status
# If selfie was not verified due to being on the blocklist, this is the token of the BlocklistEntry that blocked it
attr_reader :blocked_by_entry
def self.inner_class_types
@inner_class_types = { error: Error }

View File

@ -1454,6 +1454,9 @@ module Stripe
end
class Rechnung < ::Stripe::StripeObject
# Payment portal URL.
attr_reader :payment_portal_url
def self.inner_class_types
@inner_class_types = {}
end

View File

@ -1537,6 +1537,8 @@ module Stripe
@field_remappings = {}
end
end
# Attribute for field benefit
attr_reader :benefit
# Attribute for field car_rental
attr_reader :car_rental
# 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.
@ -1547,15 +1549,13 @@ module Stripe
attr_reader :order_reference
# Attribute for field subscription
attr_reader :subscription
# Attribute for field benefit
attr_reader :benefit
def self.inner_class_types
@inner_class_types = {
benefit: Benefit,
car_rental: CarRental,
event_details: EventDetails,
subscription: Subscription,
benefit: Benefit,
}
end
@ -3434,6 +3434,19 @@ module Stripe
@field_remappings = {}
end
end
class AllocatedFunds < ::Stripe::StripeObject
# Allocated Funds configuration for this PaymentIntent.
attr_reader :enabled
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
attr_reader :amount
# Amount that can be captured from this PaymentIntent.
@ -3546,6 +3559,8 @@ module Stripe
attr_reader :transfer_data
# A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers).
attr_reader :transfer_group
# Allocated Funds configuration for this PaymentIntent.
attr_reader :allocated_funds
# Manually reconcile the remaining amount for a customer_balance PaymentIntent.
def apply_customer_balance(params = {}, opts = {})
@ -3919,6 +3934,7 @@ module Stripe
processing: Processing,
shipping: Shipping,
transfer_data: TransferData,
allocated_funds: AllocatedFunds,
}
end

View File

@ -40,6 +40,10 @@ module Stripe
attr_reader :image_url
# Attribute for field product_url
attr_reader :product_url
# Attribute for field reference
attr_reader :reference
# Attribute for field subscription_reference
attr_reader :subscription_reference
def self.inner_class_types
@inner_class_types = {}

View File

@ -383,6 +383,50 @@ module Stripe
end
end
class NameCollection < ::Stripe::StripeObject
class Business < ::Stripe::StripeObject
# Indicates whether business name collection is enabled for the payment link.
attr_reader :enabled
# Whether the customer is required to complete the field before checking out. Defaults to `false`.
attr_reader :optional
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
class Individual < ::Stripe::StripeObject
# Indicates whether individual name collection is enabled for the payment link.
attr_reader :enabled
# Whether the customer is required to complete the field before checking out. Defaults to `false`.
attr_reader :optional
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
# Attribute for field business
attr_reader :business
# Attribute for field individual
attr_reader :individual
def self.inner_class_types
@inner_class_types = { business: Business, individual: Individual }
end
def self.field_remappings
@field_remappings = {}
end
end
class OptionalItem < ::Stripe::StripeObject
class AdjustableQuantity < ::Stripe::StripeObject
# Set to true if the quantity can be adjusted to any non-negative integer.
@ -648,6 +692,8 @@ module Stripe
attr_reader :livemode
# 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.
attr_reader :metadata
# Attribute for field name_collection
attr_reader :name_collection
# String representing the object's type. Objects of the same type share the same value.
attr_reader :object
# The account on behalf of which to charge. See the [Connect documentation](https://support.stripe.com/questions/sending-invoices-on-behalf-of-connected-accounts) for details.
@ -727,6 +773,7 @@ module Stripe
custom_fields: CustomField,
custom_text: CustomText,
invoice_creation: InvoiceCreation,
name_collection: NameCollection,
optional_items: OptionalItem,
payment_intent_data: PaymentIntentData,
phone_number_collection: PhoneNumberCollection,

View File

@ -639,6 +639,8 @@ module Stripe
@field_remappings = {}
end
end
# Attribute for field benefits
attr_reader :benefits
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
attr_reader :brand
# Checks on Card address and CVC if provided.
@ -675,17 +677,15 @@ module Stripe
attr_reader :three_d_secure_usage
# If this Card is part of a card wallet, this contains the details of the card wallet.
attr_reader :wallet
# Attribute for field benefits
attr_reader :benefits
def self.inner_class_types
@inner_class_types = {
benefits: Benefits,
checks: Checks,
generated_from: GeneratedFrom,
networks: Networks,
three_d_secure_usage: ThreeDSecureUsage,
wallet: Wallet,
benefits: Benefits,
}
end
@ -808,6 +808,37 @@ module Stripe
end
end
class Custom < ::Stripe::StripeObject
class Logo < ::Stripe::StripeObject
# Content type of the Dashboard-only CustomPaymentMethodType logo.
attr_reader :content_type
# URL of the Dashboard-only CustomPaymentMethodType logo.
attr_reader :url
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
# Display name of the Dashboard-only CustomPaymentMethodType.
attr_reader :display_name
# Contains information about the Dashboard-only CustomPaymentMethodType logo.
attr_reader :logo
# ID of the Dashboard-only CustomPaymentMethodType. Not expandable.
attr_reader :type
def self.inner_class_types
@inner_class_types = { logo: Logo }
end
def self.field_remappings
@field_remappings = {}
end
end
class CustomerBalance < ::Stripe::StripeObject
def self.inner_class_types
@inner_class_types = {}
@ -1541,6 +1572,8 @@ module Stripe
attr_reader :created
# Attribute for field crypto
attr_reader :crypto
# Attribute for field custom
attr_reader :custom
# The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
attr_reader :customer
# Attribute for field customer_account
@ -1771,6 +1804,7 @@ module Stripe
card_present: CardPresent,
cashapp: Cashapp,
crypto: Crypto,
custom: Custom,
customer_balance: CustomerBalance,
eps: Eps,
fpx: Fpx,

View File

@ -522,6 +522,37 @@ module Stripe
end
end
class Crypto < ::Stripe::StripeObject
class DisplayPreference < ::Stripe::StripeObject
# For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
attr_reader :overridable
# The account's display preference.
attr_reader :preference
# The effective display preference value.
attr_reader :value
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
# Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
attr_reader :available
# Attribute for field display_preference
attr_reader :display_preference
def self.inner_class_types
@inner_class_types = { display_preference: DisplayPreference }
end
def self.field_remappings
@field_remappings = {}
end
end
class CustomerBalance < ::Stripe::StripeObject
class DisplayPreference < ::Stripe::StripeObject
# For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
@ -987,6 +1018,37 @@ module Stripe
end
end
class MbWay < ::Stripe::StripeObject
class DisplayPreference < ::Stripe::StripeObject
# For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
attr_reader :overridable
# The account's display preference.
attr_reader :preference
# The effective display preference value.
attr_reader :value
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
# Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
attr_reader :available
# Attribute for field display_preference
attr_reader :display_preference
def self.inner_class_types
@inner_class_types = { display_preference: DisplayPreference }
end
def self.field_remappings
@field_remappings = {}
end
end
class Mobilepay < ::Stripe::StripeObject
class DisplayPreference < ::Stripe::StripeObject
# For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
@ -1828,6 +1890,8 @@ module Stripe
attr_reader :cartes_bancaires
# Attribute for field cashapp
attr_reader :cashapp
# Attribute for field crypto
attr_reader :crypto
# Attribute for field customer_balance
attr_reader :customer_balance
# Attribute for field eps
@ -1864,6 +1928,8 @@ module Stripe
attr_reader :link
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
attr_reader :livemode
# Attribute for field mb_way
attr_reader :mb_way
# Attribute for field mobilepay
attr_reader :mobilepay
# Attribute for field multibanco
@ -1971,6 +2037,7 @@ module Stripe
card: Card,
cartes_bancaires: CartesBancaires,
cashapp: Cashapp,
crypto: Crypto,
customer_balance: CustomerBalance,
eps: Eps,
fpx: Fpx,
@ -1986,6 +2053,7 @@ module Stripe
konbini: Konbini,
kr_card: KrCard,
link: Link,
mb_way: MbWay,
mobilepay: Mobilepay,
multibanco: Multibanco,
naver_pay: NaverPay,

View File

@ -1452,6 +1452,9 @@ module Stripe
end
class Rechnung < ::Stripe::StripeObject
# Payment portal URL.
attr_reader :payment_portal_url
def self.inner_class_types
@inner_class_types = {}
end
@ -2185,6 +2188,28 @@ module Stripe
)
end
# Report that the most recent payment attempt on the specified Payment Record
# was refunded.
def report_refund(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/payment_records/%<id>s/report_refund", { id: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
# Report that the most recent payment attempt on the specified Payment Record
# was refunded.
def self.report_refund(id, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/payment_records/%<id>s/report_refund", { id: CGI.escape(id) }),
params: params,
opts: opts
)
end
def self.inner_class_types
@inner_class_types = {
amount: Amount,

View File

@ -123,7 +123,7 @@ module Stripe
request_stripe_object(method: :get, path: "/v1/payouts", params: params, opts: opts)
end
# Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead.
# Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead.
#
# By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required.
def reverse(params = {}, opts = {})
@ -135,7 +135,7 @@ module Stripe
)
end
# Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead.
# Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead.
#
# By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required.
def self.reverse(payout, params = {}, opts = {})

View File

@ -139,6 +139,19 @@ module Stripe
end
end
class Crypto < ::Stripe::StripeObject
# The transaction hash of the refund.
attr_reader :reference
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
class CustomerCashBalance < ::Stripe::StripeObject
def self.inner_class_types
@inner_class_types = {}
@ -443,6 +456,8 @@ module Stripe
attr_reader :card
# Attribute for field cashapp
attr_reader :cashapp
# Attribute for field crypto
attr_reader :crypto
# Attribute for field customer_cash_balance
attr_reader :customer_cash_balance
# Attribute for field eps
@ -504,6 +519,7 @@ module Stripe
br_bank_transfer: BrBankTransfer,
card: Card,
cashapp: Cashapp,
crypto: Crypto,
customer_cash_balance: CustomerCashBalance,
eps: Eps,
eu_bank_transfer: EuBankTransfer,

View File

@ -719,6 +719,8 @@ module Stripe
attr_reader :customer_account
# An arbitrary string attached to the object. Often useful for displaying to users.
attr_reader :description
# Payment method types that are excluded from this SetupIntent.
attr_reader :excluded_payment_method_types
# Indicates the directions of money movement for which this payment method is intended to be used.
#
# Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes.
@ -749,6 +751,8 @@ module Stripe
attr_reader :payment_method_options
# The list of payment method types (e.g. card) that this SetupIntent is allowed to set up. A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
attr_reader :payment_method_types
# Attribute for field setup_details
attr_reader :setup_details
# ID of the single_use Mandate generated by the SetupIntent.
attr_reader :single_use_mandate
# [Status](https://stripe.com/docs/payments/intents#intent-statuses) of this SetupIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `canceled`, or `succeeded`.
@ -757,8 +761,6 @@ module Stripe
#
# Use `on_session` if you intend to only reuse the payment method when the customer is in your checkout flow. Use `off_session` if your customer may or may not be in your checkout flow. If not provided, this value defaults to `off_session`.
attr_reader :usage
# Attribute for field setup_details
attr_reader :setup_details
# You can cancel a SetupIntent object when it's in one of these statuses: requires_payment_method, requires_confirmation, or requires_action.
#

View File

@ -1680,6 +1680,19 @@ module Stripe
end
end
class Tw < ::Stripe::StripeObject
# Type of registration in `country`.
attr_reader :type
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
class Tz < ::Stripe::StripeObject
# Type of registration in `country`.
attr_reader :type
@ -2051,6 +2064,8 @@ module Stripe
attr_reader :tj
# Attribute for field tr
attr_reader :tr
# Attribute for field tw
attr_reader :tw
# Attribute for field tz
attr_reader :tz
# Attribute for field ua
@ -2163,6 +2178,7 @@ module Stripe
th: Th,
tj: Tj,
tr: Tr,
tw: Tw,
tz: Tz,
ua: Ua,
ug: Ug,

View File

@ -250,6 +250,23 @@ module Stripe
end
end
class Gip < ::Stripe::StripeObject
# Fixed amounts displayed when collecting a tip
attr_reader :fixed_amounts
# Percentages displayed when collecting a tip
attr_reader :percentages
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
attr_reader :smart_tip_threshold
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
class Hkd < ::Stripe::StripeObject
# Fixed amounts displayed when collecting a tip
attr_reader :fixed_amounts
@ -471,6 +488,8 @@ module Stripe
attr_reader :eur
# Attribute for field gbp
attr_reader :gbp
# Attribute for field gip
attr_reader :gip
# Attribute for field hkd
attr_reader :hkd
# Attribute for field huf
@ -507,6 +526,7 @@ module Stripe
dkk: Dkk,
eur: Eur,
gbp: Gbp,
gip: Gip,
hkd: Hkd,
huf: Huf,
jpy: Jpy,

View File

@ -80,11 +80,11 @@ module Stripe
class Selection < ::Stripe::StripeObject
class Choice < ::Stripe::StripeObject
# The id to be selected
# The identifier for the selected choice. Maximum 50 characters.
attr_reader :id
# The button style for the choice
# The button style for the choice. Can be `primary` or `secondary`.
attr_reader :style
# The text to be selected
# The text to be selected. Maximum 30 characters.
attr_reader :text
def self.inner_class_types
@ -138,13 +138,13 @@ module Stripe
end
class Toggle < ::Stripe::StripeObject
# The toggle's default value
# The toggle's default value. Can be `enabled` or `disabled`.
attr_reader :default_value
# The toggle's description text
# The toggle's description text. Maximum 50 characters.
attr_reader :description
# The toggle's title text
# The toggle's title text. Maximum 50 characters.
attr_reader :title
# The toggle's collected value
# The toggle's collected value. Can be `enabled` or `disabled`.
attr_reader :value
def self.inner_class_types
@ -443,9 +443,9 @@ module Stripe
@field_remappings = {}
end
end
# Cart object to be displayed by the reader.
# Cart object to be displayed by the reader, including line items, amounts, and currency.
attr_reader :cart
# Type of information to be displayed by the reader.
# Type of information to be displayed by the reader. Only `cart` is currently supported.
attr_reader :type
def self.inner_class_types
@ -507,6 +507,8 @@ module Stripe
attr_reader :ip_address
# Custom label given to the reader for easier identification.
attr_reader :label
# The last time this reader reported to Stripe backend.
attr_reader :last_seen_at
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
attr_reader :livemode
# The location identifier of the reader.
@ -522,7 +524,7 @@ module Stripe
# Always true for a deleted object
attr_reader :deleted
# Cancels the current reader action.
# Cancels the current reader action. See [Programmatic Cancellation](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven#programmatic-cancellation) for more details.
def cancel_action(params = {}, opts = {})
request_stripe_object(
method: :post,
@ -532,7 +534,7 @@ module Stripe
)
end
# Cancels the current reader action.
# Cancels the current reader action. See [Programmatic Cancellation](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven#programmatic-cancellation) for more details.
def self.cancel_action(reader, params = {}, opts = {})
request_stripe_object(
method: :post,
@ -542,7 +544,7 @@ module Stripe
)
end
# Initiates an input collection flow on a Reader.
# Initiates an [input collection flow](https://docs.stripe.com/docs/terminal/features/collect-inputs) on a Reader to display input forms and collect information from your customers.
def collect_inputs(params = {}, opts = {})
request_stripe_object(
method: :post,
@ -552,7 +554,7 @@ module Stripe
)
end
# Initiates an input collection flow on a Reader.
# Initiates an [input collection flow](https://docs.stripe.com/docs/terminal/features/collect-inputs) on a Reader to display input forms and collect information from your customers.
def self.collect_inputs(reader, params = {}, opts = {})
request_stripe_object(
method: :post,
@ -562,7 +564,7 @@ module Stripe
)
end
# Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation.
# Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See [Collecting a Payment method](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#collect-a-paymentmethod) for more details.
def collect_payment_method(params = {}, opts = {})
request_stripe_object(
method: :post,
@ -572,7 +574,7 @@ module Stripe
)
end
# Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation.
# Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See [Collecting a Payment method](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#collect-a-paymentmethod) for more details.
def self.collect_payment_method(reader, params = {}, opts = {})
request_stripe_object(
method: :post,
@ -582,7 +584,7 @@ module Stripe
)
end
# Finalizes a payment on a Reader.
# Finalizes a payment on a Reader. See [Confirming a Payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#confirm-the-paymentintent) for more details.
def confirm_payment_intent(params = {}, opts = {})
request_stripe_object(
method: :post,
@ -592,7 +594,7 @@ module Stripe
)
end
# Finalizes a payment on a Reader.
# Finalizes a payment on a Reader. See [Confirming a Payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#confirm-the-paymentintent) for more details.
def self.confirm_payment_intent(reader, params = {}, opts = {})
request_stripe_object(
method: :post,
@ -642,7 +644,7 @@ module Stripe
)
end
# Initiates a payment flow on a Reader.
# Initiates a payment flow on a Reader. See [process the payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=immediately#process-payment) for more details.
def process_payment_intent(params = {}, opts = {})
request_stripe_object(
method: :post,
@ -652,7 +654,7 @@ module Stripe
)
end
# Initiates a payment flow on a Reader.
# Initiates a payment flow on a Reader. See [process the payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=immediately#process-payment) for more details.
def self.process_payment_intent(reader, params = {}, opts = {})
request_stripe_object(
method: :post,
@ -662,7 +664,7 @@ module Stripe
)
end
# Initiates a setup intent flow on a Reader.
# Initiates a SetupIntent flow on a Reader. See [Save directly without charging](https://docs.stripe.com/docs/terminal/features/saving-payment-details/save-directly) for more details.
def process_setup_intent(params = {}, opts = {})
request_stripe_object(
method: :post,
@ -672,7 +674,7 @@ module Stripe
)
end
# Initiates a setup intent flow on a Reader.
# Initiates a SetupIntent flow on a Reader. See [Save directly without charging](https://docs.stripe.com/docs/terminal/features/saving-payment-details/save-directly) for more details.
def self.process_setup_intent(reader, params = {}, opts = {})
request_stripe_object(
method: :post,
@ -682,7 +684,7 @@ module Stripe
)
end
# Initiates a refund on a Reader
# Initiates an in-person refund on a Reader. See [Refund an Interac Payment](https://docs.stripe.com/docs/terminal/payments/regional?integration-country=CA#refund-an-interac-payment) for more details.
def refund_payment(params = {}, opts = {})
request_stripe_object(
method: :post,
@ -692,7 +694,7 @@ module Stripe
)
end
# Initiates a refund on a Reader
# Initiates an in-person refund on a Reader. See [Refund an Interac Payment](https://docs.stripe.com/docs/terminal/payments/regional?integration-country=CA#refund-an-interac-payment) for more details.
def self.refund_payment(reader, params = {}, opts = {})
request_stripe_object(
method: :post,
@ -702,7 +704,7 @@ module Stripe
)
end
# Sets reader display to show cart details.
# Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display).
def set_reader_display(params = {}, opts = {})
request_stripe_object(
method: :post,
@ -712,7 +714,7 @@ module Stripe
)
end
# Sets reader display to show cart details.
# Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display).
def self.set_reader_display(reader, params = {}, opts = {})
request_stripe_object(
method: :post,

View File

@ -61,6 +61,10 @@ module Stripe
attr_reader :source_type
# A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
attr_reader :transfer_group
# Attribute for field application_fee
attr_reader :application_fee
# Attribute for field application_fee_amount
attr_reader :application_fee_amount
# To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://docs.stripe.com/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error.
def self.create(params = {}, opts = {})

View File

@ -2517,11 +2517,44 @@ module Stripe
@field_remappings = {}
end
end
class CryptoWallets < ::Stripe::StripeObject
class StatusDetail < ::Stripe::StripeObject
# Machine-readable code explaining the reason for the Capability to be in its current status.
attr_reader :code
# Machine-readable code explaining how to make the Capability active.
attr_reader :resolution
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
# Whether the Capability has been requested.
attr_reader :requested
# The status of the Capability.
attr_reader :status
# Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
attr_reader :status_details
def self.inner_class_types
@inner_class_types = { status_details: StatusDetail }
end
def self.field_remappings
@field_remappings = {}
end
end
# Can provision a bank-account like financial address (VBAN) to credit/debit a FinancialAccount.
attr_reader :bank_accounts
# Can provision a crypto wallet like financial address to credit a FinancialAccount.
attr_reader :crypto_wallets
def self.inner_class_types
@inner_class_types = { bank_accounts: BankAccounts }
@inner_class_types = { bank_accounts: BankAccounts, crypto_wallets: CryptoWallets }
end
def self.field_remappings
@ -2591,13 +2624,46 @@ module Stripe
@field_remappings = {}
end
end
class Usdc < ::Stripe::StripeObject
class StatusDetail < ::Stripe::StripeObject
# Machine-readable code explaining the reason for the Capability to be in its current status.
attr_reader :code
# Machine-readable code explaining how to make the Capability active.
attr_reader :resolution
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
# Whether the Capability has been requested.
attr_reader :requested
# The status of the Capability.
attr_reader :status
# Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
attr_reader :status_details
def self.inner_class_types
@inner_class_types = { status_details: StatusDetail }
end
def self.field_remappings
@field_remappings = {}
end
end
# Can hold storage-type funds on Stripe in GBP.
attr_reader :gbp
# Can hold storage-type funds on Stripe in USD.
attr_reader :usd
# Can hold storage-type funds on Stripe in USDC.
attr_reader :usdc
def self.inner_class_types
@inner_class_types = { gbp: Gbp, usd: Usd }
@inner_class_types = { gbp: Gbp, usd: Usd, usdc: Usdc }
end
def self.field_remappings
@ -2711,6 +2777,37 @@ module Stripe
end
end
class CryptoWallets < ::Stripe::StripeObject
class StatusDetail < ::Stripe::StripeObject
# Machine-readable code explaining the reason for the Capability to be in its current status.
attr_reader :code
# Machine-readable code explaining how to make the Capability active.
attr_reader :resolution
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
# Whether the Capability has been requested.
attr_reader :requested
# The status of the Capability.
attr_reader :status
# Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
attr_reader :status_details
def self.inner_class_types
@inner_class_types = { status_details: StatusDetail }
end
def self.field_remappings
@field_remappings = {}
end
end
class FinancialAccounts < ::Stripe::StripeObject
class StatusDetail < ::Stripe::StripeObject
# Machine-readable code explaining the reason for the Capability to be in its current status.
@ -2745,6 +2842,8 @@ module Stripe
attr_reader :bank_accounts
# Can send funds from a FinancialAccount to a debit card, owned by someone else.
attr_reader :cards
# Can send funds from a FinancialAccount to a crypto wallet, owned by someone else.
attr_reader :crypto_wallets
# Can send funds from a FinancialAccount to another FinancialAccount, owned by someone else.
attr_reader :financial_accounts
@ -2752,6 +2851,7 @@ module Stripe
@inner_class_types = {
bank_accounts: BankAccounts,
cards: Cards,
crypto_wallets: CryptoWallets,
financial_accounts: FinancialAccounts,
}
end
@ -2793,6 +2893,37 @@ module Stripe
end
end
class CryptoWallets < ::Stripe::StripeObject
class StatusDetail < ::Stripe::StripeObject
# Machine-readable code explaining the reason for the Capability to be in its current status.
attr_reader :code
# Machine-readable code explaining how to make the Capability active.
attr_reader :resolution
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
# Whether the Capability has been requested.
attr_reader :requested
# The status of the Capability.
attr_reader :status
# Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
attr_reader :status_details
def self.inner_class_types
@inner_class_types = { status_details: StatusDetail }
end
def self.field_remappings
@field_remappings = {}
end
end
class FinancialAccounts < ::Stripe::StripeObject
class StatusDetail < ::Stripe::StripeObject
# Machine-readable code explaining the reason for the Capability to be in its current status.
@ -2825,12 +2956,15 @@ module Stripe
end
# Can send funds from a FinancialAccount, to a bank account, owned by yourself.
attr_reader :bank_accounts
# Can send funds from a FinancialAccount to a crypto wallet, owned by yourself.
attr_reader :crypto_wallets
# Can send funds from a FinancialAccount to another FinancialAccount, owned by yourself.
attr_reader :financial_accounts
def self.inner_class_types
@inner_class_types = {
bank_accounts: BankAccounts,
crypto_wallets: CryptoWallets,
financial_accounts: FinancialAccounts,
}
end
@ -2864,13 +2998,55 @@ module Stripe
@field_remappings = {}
end
end
class RegulatedActivity < ::Stripe::StripeObject
# A detailed description of the regulated activities the business is licensed to conduct.
attr_reader :description
# The license number or registration number assigned by the business's primary regulator.
attr_reader :license_number
# The country of the primary regulatory authority that oversees the business's regulated activities.
attr_reader :primary_regulatory_authority_country
# The name of the primary regulatory authority that oversees the business's regulated activities.
attr_reader :primary_regulatory_authority_name
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
# Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
attr_reader :applied
# Capabilities that have been requested on the Storer Configuration.
attr_reader :capabilities
# List of high-risk activities the business is involved in.
attr_reader :high_risk_activities
# An explanation of the high risk activities that the business performs.
attr_reader :high_risk_activities_description
# Description of the money services offered by the business.
attr_reader :money_services_description
# Does the business operate in any prohibited countries.
attr_reader :operates_in_prohibited_countries
# Does the business participate in any regulated activity.
attr_reader :participates_in_regulated_activity
# Primary purpose of the stored funds.
attr_reader :purpose_of_funds
# Description of the purpose of the stored funds.
attr_reader :purpose_of_funds_description
# Details of the regulated activity if the business participates in one.
attr_reader :regulated_activity
# The source of funds for the business, e.g. profits, income, venture capital, etc.
attr_reader :source_of_funds
# Description of the source of funds for the business' account.
attr_reader :source_of_funds_description
def self.inner_class_types
@inner_class_types = { capabilities: Capabilities }
@inner_class_types = {
capabilities: Capabilities,
regulated_activity: RegulatedActivity,
}
end
def self.field_remappings
@ -3433,6 +3609,23 @@ module Stripe
end
end
class CryptoStorer < ::Stripe::StripeObject
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
attr_reader :date
# The IP address from which the Account's representative accepted the terms of service.
attr_reader :ip
# The user agent of the browser from which the Account's representative accepted the terms of service.
attr_reader :user_agent
def self.inner_class_types
@inner_class_types = {}
end
def self.field_remappings
@field_remappings = {}
end
end
class Storer < ::Stripe::StripeObject
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
attr_reader :date
@ -3453,11 +3646,18 @@ module Stripe
attr_reader :account
# Details on the Account's acceptance of Issuing-specific terms of service.
attr_reader :card_creator
# Details on the Account's acceptance of Crypto-storer-specific terms of service.
attr_reader :crypto_storer
# Details on the Account's acceptance of Treasury-specific terms of service.
attr_reader :storer
def self.inner_class_types
@inner_class_types = { account: Account, card_creator: CardCreator, storer: Storer }
@inner_class_types = {
account: Account,
card_creator: CardCreator,
crypto_storer: CryptoStorer,
storer: Storer,
}
end
def self.field_remappings
@ -3871,6 +4071,8 @@ module Stripe
attr_reader :address
# The business gross annual revenue for its preceding fiscal year.
attr_reader :annual_revenue
# A detailed description of the business's compliance and anti-money laundering controls and practices.
attr_reader :compliance_screening_description
# Documents that may be submitted to satisfy various informational requests.
attr_reader :documents
# An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.

View File

@ -187,6 +187,8 @@ module Stripe
attr_reader :created
# Freeform string set by originator of the ReceivedCredit.
attr_reader :description
# The amount and currency of the original/external credit request.
attr_reader :external_amount
# Financial Account ID on which funds for ReceivedCredit were received.
attr_reader :financial_account
# Unique identifier for the ReceivedCredit.

View File

@ -100,6 +100,8 @@ module Stripe
attr_reader :created
# Freeform string sent by the originator of the ReceivedDebit.
attr_reader :description
# The amount and currency of the original/external debit request.
attr_reader :external_amount
# Financial Account on which funds for ReceivedDebit were debited.
attr_reader :financial_account
# Unique identifier for the ReceivedDebit.

View File

@ -57,7 +57,7 @@ module Stripe
)
end
# Subscribes to periodic refreshes of data associated with a Financial Connections Account.
# Subscribes to periodic refreshes of data associated with a Financial Connections Account. When the account status is active, data is typically refreshed once a day.
def subscribe(account, params = {}, opts = {})
request(
method: :post,

View File

@ -75,6 +75,18 @@ module Stripe
)
end
# Report that the most recent payment attempt on the specified Payment Record
# was refunded.
def report_refund(id, params = {}, opts = {})
request(
method: :post,
path: format("/v1/payment_records/%<id>s/report_refund", { id: CGI.escape(id) }),
params: params,
opts: opts,
base_address: :api
)
end
# Retrieves a Payment Record with the given ID
def retrieve(id, params = {}, opts = {})
request(

View File

@ -39,7 +39,7 @@ module Stripe
)
end
# Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead.
# Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead.
#
# By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required.
def reverse(payout, params = {}, opts = {})

View File

@ -4,7 +4,7 @@
module Stripe
module Terminal
class ReaderService < StripeService
# Cancels the current reader action.
# Cancels the current reader action. See [Programmatic Cancellation](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven#programmatic-cancellation) for more details.
def cancel_action(reader, params = {}, opts = {})
request(
method: :post,
@ -15,7 +15,7 @@ module Stripe
)
end
# Initiates an input collection flow on a Reader.
# Initiates an [input collection flow](https://docs.stripe.com/docs/terminal/features/collect-inputs) on a Reader to display input forms and collect information from your customers.
def collect_inputs(reader, params = {}, opts = {})
request(
method: :post,
@ -26,7 +26,7 @@ module Stripe
)
end
# Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation.
# Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See [Collecting a Payment method](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#collect-a-paymentmethod) for more details.
def collect_payment_method(reader, params = {}, opts = {})
request(
method: :post,
@ -37,7 +37,7 @@ module Stripe
)
end
# Finalizes a payment on a Reader.
# Finalizes a payment on a Reader. See [Confirming a Payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#confirm-the-paymentintent) for more details.
def confirm_payment_intent(reader, params = {}, opts = {})
request(
method: :post,
@ -81,7 +81,7 @@ module Stripe
)
end
# Initiates a payment flow on a Reader.
# Initiates a payment flow on a Reader. See [process the payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=immediately#process-payment) for more details.
def process_payment_intent(reader, params = {}, opts = {})
request(
method: :post,
@ -92,7 +92,7 @@ module Stripe
)
end
# Initiates a setup intent flow on a Reader.
# Initiates a SetupIntent flow on a Reader. See [Save directly without charging](https://docs.stripe.com/docs/terminal/features/saving-payment-details/save-directly) for more details.
def process_setup_intent(reader, params = {}, opts = {})
request(
method: :post,
@ -103,7 +103,7 @@ module Stripe
)
end
# Initiates a refund on a Reader
# Initiates an in-person refund on a Reader. See [Refund an Interac Payment](https://docs.stripe.com/docs/terminal/payments/regional?integration-country=CA#refund-an-interac-payment) for more details.
def refund_payment(reader, params = {}, opts = {})
request(
method: :post,
@ -125,7 +125,7 @@ module Stripe
)
end
# Sets reader display to show cart details.
# Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display).
def set_reader_display(reader, params = {}, opts = {})
request(
method: :post,

File diff suppressed because one or more lines are too long

View File

@ -1802,6 +1802,27 @@ module Stripe
sig { params(day: Integer, month: Integer, year: Integer).void }
def initialize(day: nil, month: nil, year: nil); end
end
class RepresentativeDeclaration < ::Stripe::RequestParams
# The Unix timestamp marking when the representative declaration attestation was made.
sig { returns(T.nilable(Integer)) }
def date; end
sig { params(_date: T.nilable(Integer)).returns(T.nilable(Integer)) }
def date=(_date); end
# The IP address from which the representative declaration attestation was made.
sig { returns(T.nilable(String)) }
def ip; end
sig { params(_ip: T.nilable(String)).returns(T.nilable(String)) }
def ip=(_ip); end
# The user agent of the browser from which the representative declaration attestation was made.
sig { returns(T.nilable(String)) }
def user_agent; end
sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) }
def user_agent=(_user_agent); end
sig {
params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
}
def initialize(date: nil, ip: nil, user_agent: nil); end
end
class Verification < ::Stripe::RequestParams
class Document < ::Stripe::RequestParams
# The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
@ -1928,6 +1949,13 @@ module Stripe
def registration_number; end
sig { params(_registration_number: T.nilable(String)).returns(T.nilable(String)) }
def registration_number=(_registration_number); end
# This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
sig { returns(T.nilable(AccountCreateParams::Company::RepresentativeDeclaration)) }
def representative_declaration; end
sig {
params(_representative_declaration: T.nilable(AccountCreateParams::Company::RepresentativeDeclaration)).returns(T.nilable(AccountCreateParams::Company::RepresentativeDeclaration))
}
def representative_declaration=(_representative_declaration); end
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
sig { returns(T.nilable(T.any(String, String))) }
def structure; end
@ -1958,7 +1986,7 @@ module Stripe
}
def verification=(_verification); end
sig {
params(address: T.nilable(AccountCreateParams::Company::Address), address_kana: T.nilable(AccountCreateParams::Company::AddressKana), address_kanji: T.nilable(AccountCreateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(AccountCreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(AccountCreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, AccountCreateParams::Company::RegistrationDate)), registration_number: T.nilable(String), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(AccountCreateParams::Company::Verification)).void
params(address: T.nilable(AccountCreateParams::Company::Address), address_kana: T.nilable(AccountCreateParams::Company::AddressKana), address_kanji: T.nilable(AccountCreateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(AccountCreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(AccountCreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, AccountCreateParams::Company::RegistrationDate)), registration_number: T.nilable(String), representative_declaration: T.nilable(AccountCreateParams::Company::RepresentativeDeclaration), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(AccountCreateParams::Company::Verification)).void
}
def initialize(
address: nil,
@ -1978,6 +2006,7 @@ module Stripe
phone: nil,
registration_date: nil,
registration_number: nil,
representative_declaration: nil,
structure: nil,
tax_id: nil,
tax_id_registrar: nil,

View File

@ -1802,6 +1802,27 @@ module Stripe
sig { params(day: Integer, month: Integer, year: Integer).void }
def initialize(day: nil, month: nil, year: nil); end
end
class RepresentativeDeclaration < ::Stripe::RequestParams
# The Unix timestamp marking when the representative declaration attestation was made.
sig { returns(T.nilable(Integer)) }
def date; end
sig { params(_date: T.nilable(Integer)).returns(T.nilable(Integer)) }
def date=(_date); end
# The IP address from which the representative declaration attestation was made.
sig { returns(T.nilable(String)) }
def ip; end
sig { params(_ip: T.nilable(String)).returns(T.nilable(String)) }
def ip=(_ip); end
# The user agent of the browser from which the representative declaration attestation was made.
sig { returns(T.nilable(String)) }
def user_agent; end
sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) }
def user_agent=(_user_agent); end
sig {
params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void
}
def initialize(date: nil, ip: nil, user_agent: nil); end
end
class Verification < ::Stripe::RequestParams
class Document < ::Stripe::RequestParams
# The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
@ -1928,6 +1949,13 @@ module Stripe
def registration_number; end
sig { params(_registration_number: T.nilable(String)).returns(T.nilable(String)) }
def registration_number=(_registration_number); end
# This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
sig { returns(T.nilable(AccountUpdateParams::Company::RepresentativeDeclaration)) }
def representative_declaration; end
sig {
params(_representative_declaration: T.nilable(AccountUpdateParams::Company::RepresentativeDeclaration)).returns(T.nilable(AccountUpdateParams::Company::RepresentativeDeclaration))
}
def representative_declaration=(_representative_declaration); end
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
sig { returns(T.nilable(T.any(String, String))) }
def structure; end
@ -1958,7 +1986,7 @@ module Stripe
}
def verification=(_verification); end
sig {
params(address: T.nilable(AccountUpdateParams::Company::Address), address_kana: T.nilable(AccountUpdateParams::Company::AddressKana), address_kanji: T.nilable(AccountUpdateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(AccountUpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(AccountUpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, AccountUpdateParams::Company::RegistrationDate)), registration_number: T.nilable(String), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(AccountUpdateParams::Company::Verification)).void
params(address: T.nilable(AccountUpdateParams::Company::Address), address_kana: T.nilable(AccountUpdateParams::Company::AddressKana), address_kanji: T.nilable(AccountUpdateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(AccountUpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(AccountUpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, AccountUpdateParams::Company::RegistrationDate)), registration_number: T.nilable(String), representative_declaration: T.nilable(AccountUpdateParams::Company::RepresentativeDeclaration), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(AccountUpdateParams::Company::Verification)).void
}
def initialize(
address: nil,
@ -1978,6 +2006,7 @@ module Stripe
phone: nil,
registration_date: nil,
registration_number: nil,
representative_declaration: nil,
structure: nil,
tax_id: nil,
tax_id_registrar: nil,

View File

@ -33,14 +33,22 @@ module Stripe
params(_tenant_filters: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String]))
}
def tenant_filters=(_tenant_filters); end
# List of high cardinality tenant dimension keys to group by. If specified, usage events will be grouped by the given tenant dimension key's values.
sig { returns(T.nilable(T::Array[String])) }
def tenant_group_by_keys; end
sig {
params(dimension_filters: T.nilable(T::Hash[String, String]), dimension_group_by_keys: T.nilable(T::Array[String]), meter: String, tenant_filters: T.nilable(T::Hash[String, String])).void
params(_tenant_group_by_keys: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String]))
}
def tenant_group_by_keys=(_tenant_group_by_keys); end
sig {
params(dimension_filters: T.nilable(T::Hash[String, String]), dimension_group_by_keys: T.nilable(T::Array[String]), meter: String, tenant_filters: T.nilable(T::Hash[String, String]), tenant_group_by_keys: T.nilable(T::Array[String])).void
}
def initialize(
dimension_filters: nil,
dimension_group_by_keys: nil,
meter: nil,
tenant_filters: nil
tenant_filters: nil,
tenant_group_by_keys: nil
); end
end
# The customer id to fetch meter usage data for.

View File

@ -130,10 +130,10 @@ module Stripe
params(_applicability_config: Billing::CreditGrantCreateParams::ApplicabilityConfig).returns(Billing::CreditGrantCreateParams::ApplicabilityConfig)
}
def applicability_config=(_applicability_config); end
# The category of this credit grant.
sig { returns(String) }
# The category of this credit grant. It defaults to `paid` if not specified.
sig { returns(T.nilable(String)) }
def category; end
sig { params(_category: String).returns(String) }
sig { params(_category: T.nilable(String)).returns(T.nilable(String)) }
def category=(_category); end
# ID of the customer to receive the billing credits.
sig { returns(T.nilable(String)) }
@ -178,7 +178,7 @@ module Stripe
sig { params(_priority: T.nilable(Integer)).returns(T.nilable(Integer)) }
def priority=(_priority); end
sig {
params(amount: Billing::CreditGrantCreateParams::Amount, applicability_config: Billing::CreditGrantCreateParams::ApplicabilityConfig, category: String, customer: T.nilable(String), customer_account: T.nilable(String), effective_at: T.nilable(Integer), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), metadata: T.nilable(T::Hash[String, String]), name: T.nilable(String), priority: T.nilable(Integer)).void
params(amount: Billing::CreditGrantCreateParams::Amount, applicability_config: Billing::CreditGrantCreateParams::ApplicabilityConfig, category: T.nilable(String), customer: T.nilable(String), customer_account: T.nilable(String), effective_at: T.nilable(Integer), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), metadata: T.nilable(T::Hash[String, String]), name: T.nilable(String), priority: T.nilable(Integer)).void
}
def initialize(
amount: nil,

View File

@ -51,6 +51,13 @@ module Stripe
params(_default_aggregation: Billing::MeterCreateParams::DefaultAggregation).returns(Billing::MeterCreateParams::DefaultAggregation)
}
def default_aggregation=(_default_aggregation); end
# Set of keys that will be used to group meter events by. Each key must be present in the event payload.
sig { returns(T.nilable(T::Array[String])) }
def dimension_payload_keys; end
sig {
params(_dimension_payload_keys: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String]))
}
def dimension_payload_keys=(_dimension_payload_keys); end
# The meters name. Not visible to the customer.
sig { returns(String) }
def display_name; end
@ -78,25 +85,18 @@ module Stripe
params(_value_settings: T.nilable(Billing::MeterCreateParams::ValueSettings)).returns(T.nilable(Billing::MeterCreateParams::ValueSettings))
}
def value_settings=(_value_settings); end
# Set of keys that will be used to group meter events by. Each key must be present in the event payload.
sig { returns(T.nilable(T::Array[String])) }
def dimension_payload_keys; end
sig {
params(_dimension_payload_keys: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String]))
}
def dimension_payload_keys=(_dimension_payload_keys); end
sig {
params(customer_mapping: T.nilable(Billing::MeterCreateParams::CustomerMapping), default_aggregation: Billing::MeterCreateParams::DefaultAggregation, display_name: String, event_name: String, event_time_window: T.nilable(String), expand: T.nilable(T::Array[String]), value_settings: T.nilable(Billing::MeterCreateParams::ValueSettings), dimension_payload_keys: T.nilable(T::Array[String])).void
params(customer_mapping: T.nilable(Billing::MeterCreateParams::CustomerMapping), default_aggregation: Billing::MeterCreateParams::DefaultAggregation, dimension_payload_keys: T.nilable(T::Array[String]), display_name: String, event_name: String, event_time_window: T.nilable(String), expand: T.nilable(T::Array[String]), value_settings: T.nilable(Billing::MeterCreateParams::ValueSettings)).void
}
def initialize(
customer_mapping: nil,
default_aggregation: nil,
dimension_payload_keys: nil,
display_name: nil,
event_name: nil,
event_time_window: nil,
expand: nil,
value_settings: nil,
dimension_payload_keys: nil
value_settings: nil
); end
end
end

View File

@ -60,8 +60,15 @@ module Stripe
def enabled; end
sig { params(_enabled: T::Boolean).returns(T::Boolean) }
def enabled=(_enabled); end
sig { params(enabled: T::Boolean).void }
def initialize(enabled: nil); end
# The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used.
sig { returns(T.nilable(String)) }
def payment_method_configuration; end
sig {
params(_payment_method_configuration: T.nilable(String)).returns(T.nilable(String))
}
def payment_method_configuration=(_payment_method_configuration); end
sig { params(enabled: T::Boolean, payment_method_configuration: T.nilable(String)).void }
def initialize(enabled: nil, payment_method_configuration: nil); end
end
class SubscriptionCancel < ::Stripe::RequestParams
class CancellationReason < ::Stripe::RequestParams

View File

@ -60,8 +60,15 @@ module Stripe
def enabled; end
sig { params(_enabled: T::Boolean).returns(T::Boolean) }
def enabled=(_enabled); end
sig { params(enabled: T::Boolean).void }
def initialize(enabled: nil); end
# The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used.
sig { returns(T.nilable(String)) }
def payment_method_configuration; end
sig {
params(_payment_method_configuration: T.nilable(String)).returns(T.nilable(String))
}
def payment_method_configuration=(_payment_method_configuration); end
sig { params(enabled: T::Boolean, payment_method_configuration: T.nilable(String)).void }
def initialize(enabled: nil, payment_method_configuration: nil); end
end
class SubscriptionCancel < ::Stripe::RequestParams
class CancellationReason < ::Stripe::RequestParams

View File

@ -135,7 +135,7 @@ module Stripe
def button_color; end
sig { params(_button_color: T.nilable(String)).returns(T.nilable(String)) }
def button_color=(_button_color); end
# A string to override the business name shown on the Checkout Session.
# A string to override the business name shown on the Checkout Session. This only shows at the top of the Checkout page, and your business name still appears in terms, receipts, and other places.
sig { returns(T.nilable(String)) }
def display_name; end
sig { params(_display_name: T.nilable(String)).returns(T.nilable(String)) }
@ -147,14 +147,14 @@ module Stripe
params(_font_family: T.nilable(T.any(String, String))).returns(T.nilable(T.any(String, String)))
}
def font_family=(_font_family); end
# The icon for the Checkout Session. You cannot set both `logo` and `icon`.
# The icon for the Checkout Session. For best results, use a square image.
sig { returns(T.nilable(Checkout::SessionCreateParams::BrandingSettings::Icon)) }
def icon; end
sig {
params(_icon: T.nilable(Checkout::SessionCreateParams::BrandingSettings::Icon)).returns(T.nilable(Checkout::SessionCreateParams::BrandingSettings::Icon))
}
def icon=(_icon); end
# The logo for the Checkout Session. You cannot set both `logo` and `icon`.
# The logo for the Checkout Session.
sig { returns(T.nilable(Checkout::SessionCreateParams::BrandingSettings::Logo)) }
def logo; end
sig {
@ -2517,6 +2517,21 @@ module Stripe
sig { params(reference: T.nilable(String)).void }
def initialize(reference: nil); end
end
class Twint < ::Stripe::RequestParams
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
#
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
#
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
#
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
sig { returns(T.nilable(String)) }
def setup_future_usage; end
sig { params(_setup_future_usage: T.nilable(String)).returns(T.nilable(String)) }
def setup_future_usage=(_setup_future_usage); end
sig { params(setup_future_usage: T.nilable(String)).void }
def initialize(setup_future_usage: nil); end
end
class UsBankAccount < ::Stripe::RequestParams
class FinancialConnections < ::Stripe::RequestParams
# The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
@ -2903,6 +2918,13 @@ module Stripe
params(_swish: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Swish)).returns(T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Swish))
}
def swish=(_swish); end
# contains details about the TWINT payment method options.
sig { returns(T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Twint)) }
def twint; end
sig {
params(_twint: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Twint)).returns(T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Twint))
}
def twint=(_twint); end
# contains details about the Us Bank Account payment method options.
sig {
returns(T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::UsBankAccount))
@ -2920,7 +2942,7 @@ module Stripe
}
def wechat_pay=(_wechat_pay); end
sig {
params(acss_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Alipay), alma: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Bancontact), billie: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Billie), boleto: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Boleto), card: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Card), cashapp: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::CustomerBalance), demo_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::DemoPay), eps: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Eps), fpx: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Giropay), grabpay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Grabpay), ideal: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Ideal), kakao_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::KrCard), link: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Link), mobilepay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::P24), pay_by_bank: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::PayByBank), payco: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Payco), paynow: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Paypal), payto: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Payto), pix: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Pix), revolut_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::SamsungPay), satispay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Satispay), sepa_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::SepaDebit), sofort: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Sofort), swish: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Swish), us_bank_account: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::WechatPay)).void
params(acss_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Alipay), alma: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Bancontact), billie: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Billie), boleto: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Boleto), card: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Card), cashapp: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::CustomerBalance), demo_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::DemoPay), eps: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Eps), fpx: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Giropay), grabpay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Grabpay), ideal: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Ideal), kakao_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::KrCard), link: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Link), mobilepay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::P24), pay_by_bank: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::PayByBank), payco: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Payco), paynow: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Paypal), payto: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Payto), pix: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Pix), revolut_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::SamsungPay), satispay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Satispay), sepa_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::SepaDebit), sofort: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Sofort), swish: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Swish), twint: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Twint), us_bank_account: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::WechatPay)).void
}
def initialize(
acss_debit: nil,
@ -2965,6 +2987,7 @@ module Stripe
sepa_debit: nil,
sofort: nil,
swish: nil,
twint: nil,
us_bank_account: nil,
wechat_pay: nil
); end

View File

@ -14,6 +14,120 @@ module Stripe
sig { params(enabled: T::Boolean).void }
def initialize(enabled: nil); end
end
class CustomerSheet < ::Stripe::RequestParams
class Features < ::Stripe::RequestParams
# A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
#
# If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
sig { returns(T.nilable(T::Array[String])) }
def payment_method_allow_redisplay_filters; end
sig {
params(_payment_method_allow_redisplay_filters: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String]))
}
def payment_method_allow_redisplay_filters=(_payment_method_allow_redisplay_filters); end
# Controls whether the customer sheet displays the option to remove a saved payment method."
#
# Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
sig { returns(T.nilable(String)) }
def payment_method_remove; end
sig { params(_payment_method_remove: T.nilable(String)).returns(T.nilable(String)) }
def payment_method_remove=(_payment_method_remove); end
sig {
params(payment_method_allow_redisplay_filters: T.nilable(T::Array[String]), payment_method_remove: T.nilable(String)).void
}
def initialize(
payment_method_allow_redisplay_filters: nil,
payment_method_remove: nil
); end
end
# Whether the customer sheet is enabled.
sig { returns(T::Boolean) }
def enabled; end
sig { params(_enabled: T::Boolean).returns(T::Boolean) }
def enabled=(_enabled); end
# This hash defines whether the customer sheet supports certain features.
sig { returns(T.nilable(CustomerSessionCreateParams::Components::CustomerSheet::Features)) }
def features; end
sig {
params(_features: T.nilable(CustomerSessionCreateParams::Components::CustomerSheet::Features)).returns(T.nilable(CustomerSessionCreateParams::Components::CustomerSheet::Features))
}
def features=(_features); end
sig {
params(enabled: T::Boolean, features: T.nilable(CustomerSessionCreateParams::Components::CustomerSheet::Features)).void
}
def initialize(enabled: nil, features: nil); end
end
class MobilePaymentElement < ::Stripe::RequestParams
class Features < ::Stripe::RequestParams
# A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the mobile payment element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
#
# If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
sig { returns(T.nilable(T::Array[String])) }
def payment_method_allow_redisplay_filters; end
sig {
params(_payment_method_allow_redisplay_filters: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String]))
}
def payment_method_allow_redisplay_filters=(_payment_method_allow_redisplay_filters); end
# Controls whether or not the mobile payment element shows saved payment methods.
sig { returns(T.nilable(String)) }
def payment_method_redisplay; end
sig { params(_payment_method_redisplay: T.nilable(String)).returns(T.nilable(String)) }
def payment_method_redisplay=(_payment_method_redisplay); end
# Controls whether the mobile payment element displays the option to remove a saved payment method."
#
# Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
sig { returns(T.nilable(String)) }
def payment_method_remove; end
sig { params(_payment_method_remove: T.nilable(String)).returns(T.nilable(String)) }
def payment_method_remove=(_payment_method_remove); end
# Controls whether the mobile payment element displays a checkbox offering to save a new payment method.
#
# If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
sig { returns(T.nilable(String)) }
def payment_method_save; end
sig { params(_payment_method_save: T.nilable(String)).returns(T.nilable(String)) }
def payment_method_save=(_payment_method_save); end
# Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled. Use values: "always", "limited", or "unspecified".
#
# If not specified, defaults to `nil` (no override value).
sig { returns(T.nilable(String)) }
def payment_method_save_allow_redisplay_override; end
sig {
params(_payment_method_save_allow_redisplay_override: T.nilable(String)).returns(T.nilable(String))
}
def payment_method_save_allow_redisplay_override=(
_payment_method_save_allow_redisplay_override
); end
sig {
params(payment_method_allow_redisplay_filters: T.nilable(T::Array[String]), payment_method_redisplay: T.nilable(String), payment_method_remove: T.nilable(String), payment_method_save: T.nilable(String), payment_method_save_allow_redisplay_override: T.nilable(String)).void
}
def initialize(
payment_method_allow_redisplay_filters: nil,
payment_method_redisplay: nil,
payment_method_remove: nil,
payment_method_save: nil,
payment_method_save_allow_redisplay_override: nil
); end
end
# Whether the mobile payment element is enabled.
sig { returns(T::Boolean) }
def enabled; end
sig { params(_enabled: T::Boolean).returns(T::Boolean) }
def enabled=(_enabled); end
# This hash defines whether the mobile payment element supports certain features.
sig {
returns(T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement::Features))
}
def features; end
sig {
params(_features: T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement::Features)).returns(T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement::Features))
}
def features=(_features); end
sig {
params(enabled: T::Boolean, features: T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement::Features)).void
}
def initialize(enabled: nil, features: nil); end
end
class PaymentElement < ::Stripe::RequestParams
class Features < ::Stripe::RequestParams
# A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
@ -98,6 +212,42 @@ module Stripe
sig { params(enabled: T::Boolean).void }
def initialize(enabled: nil); end
end
class TaxIdElement < ::Stripe::RequestParams
class Features < ::Stripe::RequestParams
# Controls whether the Tax ID Element displays saved tax IDs for the customer. This parameter defaults to `disabled`.
#
# When enabled, the Tax ID Element will show existing tax IDs associated with the customer, allowing them to select from previously saved tax identification numbers.
sig { returns(T.nilable(String)) }
def tax_id_redisplay; end
sig { params(_tax_id_redisplay: T.nilable(String)).returns(T.nilable(String)) }
def tax_id_redisplay=(_tax_id_redisplay); end
# Controls whether the Tax ID Element allows merchants to save new tax IDs for their customer. This parameter defaults to `disabled`.
#
# When enabled, customers can enter and save new tax identification numbers during the payment flow, which will be stored securely and associated with their customer object for future use.
sig { returns(T.nilable(String)) }
def tax_id_save; end
sig { params(_tax_id_save: T.nilable(String)).returns(T.nilable(String)) }
def tax_id_save=(_tax_id_save); end
sig { params(tax_id_redisplay: T.nilable(String), tax_id_save: T.nilable(String)).void }
def initialize(tax_id_redisplay: nil, tax_id_save: nil); end
end
# Whether the Tax ID Element is enabled.
sig { returns(T::Boolean) }
def enabled; end
sig { params(_enabled: T::Boolean).returns(T::Boolean) }
def enabled=(_enabled); end
# This hash defines whether the Tax ID Element supports certain features.
sig { returns(T.nilable(CustomerSessionCreateParams::Components::TaxIdElement::Features)) }
def features; end
sig {
params(_features: T.nilable(CustomerSessionCreateParams::Components::TaxIdElement::Features)).returns(T.nilable(CustomerSessionCreateParams::Components::TaxIdElement::Features))
}
def features=(_features); end
sig {
params(enabled: T::Boolean, features: T.nilable(CustomerSessionCreateParams::Components::TaxIdElement::Features)).void
}
def initialize(enabled: nil, features: nil); end
end
# Configuration for buy button.
sig { returns(T.nilable(CustomerSessionCreateParams::Components::BuyButton)) }
def buy_button; end
@ -105,6 +255,20 @@ module Stripe
params(_buy_button: T.nilable(CustomerSessionCreateParams::Components::BuyButton)).returns(T.nilable(CustomerSessionCreateParams::Components::BuyButton))
}
def buy_button=(_buy_button); end
# Configuration for the customer sheet.
sig { returns(T.nilable(CustomerSessionCreateParams::Components::CustomerSheet)) }
def customer_sheet; end
sig {
params(_customer_sheet: T.nilable(CustomerSessionCreateParams::Components::CustomerSheet)).returns(T.nilable(CustomerSessionCreateParams::Components::CustomerSheet))
}
def customer_sheet=(_customer_sheet); end
# Configuration for the mobile payment element.
sig { returns(T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement)) }
def mobile_payment_element; end
sig {
params(_mobile_payment_element: T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement)).returns(T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement))
}
def mobile_payment_element=(_mobile_payment_element); end
# Configuration for the Payment Element.
sig { returns(T.nilable(CustomerSessionCreateParams::Components::PaymentElement)) }
def payment_element; end
@ -119,10 +283,24 @@ module Stripe
params(_pricing_table: T.nilable(CustomerSessionCreateParams::Components::PricingTable)).returns(T.nilable(CustomerSessionCreateParams::Components::PricingTable))
}
def pricing_table=(_pricing_table); end
# Configuration for the Tax ID Element.
sig { returns(T.nilable(CustomerSessionCreateParams::Components::TaxIdElement)) }
def tax_id_element; end
sig {
params(buy_button: T.nilable(CustomerSessionCreateParams::Components::BuyButton), payment_element: T.nilable(CustomerSessionCreateParams::Components::PaymentElement), pricing_table: T.nilable(CustomerSessionCreateParams::Components::PricingTable)).void
params(_tax_id_element: T.nilable(CustomerSessionCreateParams::Components::TaxIdElement)).returns(T.nilable(CustomerSessionCreateParams::Components::TaxIdElement))
}
def initialize(buy_button: nil, payment_element: nil, pricing_table: nil); end
def tax_id_element=(_tax_id_element); end
sig {
params(buy_button: T.nilable(CustomerSessionCreateParams::Components::BuyButton), customer_sheet: T.nilable(CustomerSessionCreateParams::Components::CustomerSheet), mobile_payment_element: T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement), payment_element: T.nilable(CustomerSessionCreateParams::Components::PaymentElement), pricing_table: T.nilable(CustomerSessionCreateParams::Components::PricingTable), tax_id_element: T.nilable(CustomerSessionCreateParams::Components::TaxIdElement)).void
}
def initialize(
buy_button: nil,
customer_sheet: nil,
mobile_payment_element: nil,
payment_element: nil,
pricing_table: nil,
tax_id_element: nil
); end
end
# Configuration for each component. Exactly 1 component must be enabled.
sig { returns(CustomerSessionCreateParams::Components) }

View File

@ -5,6 +5,58 @@
module Stripe
module DelegatedCheckout
class RequestedSessionConfirmParams < ::Stripe::RequestParams
class RiskDetails < ::Stripe::RequestParams
class ClientDeviceMetadataDetails < ::Stripe::RequestParams
# The radar session.
sig { returns(T.nilable(String)) }
def radar_session; end
sig { params(_radar_session: T.nilable(String)).returns(T.nilable(String)) }
def radar_session=(_radar_session); end
# The referrer of the client device.
sig { returns(T.nilable(String)) }
def referrer; end
sig { params(_referrer: T.nilable(String)).returns(T.nilable(String)) }
def referrer=(_referrer); end
# The remote IP address of the client device.
sig { returns(T.nilable(String)) }
def remote_ip; end
sig { params(_remote_ip: T.nilable(String)).returns(T.nilable(String)) }
def remote_ip=(_remote_ip); end
# The time on page in milliseconds.
sig { returns(T.nilable(Integer)) }
def time_on_page_ms; end
sig { params(_time_on_page_ms: T.nilable(Integer)).returns(T.nilable(Integer)) }
def time_on_page_ms=(_time_on_page_ms); end
# The user agent of the client device.
sig { returns(T.nilable(String)) }
def user_agent; end
sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) }
def user_agent=(_user_agent); end
sig {
params(radar_session: T.nilable(String), referrer: T.nilable(String), remote_ip: T.nilable(String), time_on_page_ms: T.nilable(Integer), user_agent: T.nilable(String)).void
}
def initialize(
radar_session: nil,
referrer: nil,
remote_ip: nil,
time_on_page_ms: nil,
user_agent: nil
); end
end
# The client device metadata details for this requested session.
sig {
returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails))
}
def client_device_metadata_details; end
sig {
params(_client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails))
}
def client_device_metadata_details=(_client_device_metadata_details); end
sig {
params(client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails)).void
}
def initialize(client_device_metadata_details: nil); end
end
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
def expand; end
@ -15,8 +67,17 @@ module Stripe
def payment_method; end
sig { params(_payment_method: T.nilable(String)).returns(T.nilable(String)) }
def payment_method=(_payment_method); end
sig { params(expand: T.nilable(T::Array[String]), payment_method: T.nilable(String)).void }
def initialize(expand: nil, payment_method: nil); end
# Risk details/signals associated with the requested session
sig { returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails)) }
def risk_details; end
sig {
params(_risk_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails))
}
def risk_details=(_risk_details); end
sig {
params(expand: T.nilable(T::Array[String]), payment_method: T.nilable(String), risk_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails)).void
}
def initialize(expand: nil, payment_method: nil, risk_details: nil); end
end
end
end

View File

@ -220,58 +220,6 @@ module Stripe
}
def initialize(billing_details: nil, card: nil, type: nil); end
end
class RiskDetails < ::Stripe::RequestParams
class ClientDeviceMetadataDetails < ::Stripe::RequestParams
# The radar session.
sig { returns(T.nilable(String)) }
def radar_session; end
sig { params(_radar_session: T.nilable(String)).returns(T.nilable(String)) }
def radar_session=(_radar_session); end
# The referrer of the client device.
sig { returns(T.nilable(String)) }
def referrer; end
sig { params(_referrer: T.nilable(String)).returns(T.nilable(String)) }
def referrer=(_referrer); end
# The remote IP address of the client device.
sig { returns(T.nilable(String)) }
def remote_ip; end
sig { params(_remote_ip: T.nilable(String)).returns(T.nilable(String)) }
def remote_ip=(_remote_ip); end
# The time on page in seconds.
sig { returns(T.nilable(Integer)) }
def time_on_page; end
sig { params(_time_on_page: T.nilable(Integer)).returns(T.nilable(Integer)) }
def time_on_page=(_time_on_page); end
# The user agent of the client device.
sig { returns(T.nilable(String)) }
def user_agent; end
sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) }
def user_agent=(_user_agent); end
sig {
params(radar_session: T.nilable(String), referrer: T.nilable(String), remote_ip: T.nilable(String), time_on_page: T.nilable(Integer), user_agent: T.nilable(String)).void
}
def initialize(
radar_session: nil,
referrer: nil,
remote_ip: nil,
time_on_page: nil,
user_agent: nil
); end
end
# The client device metadata details for this requested session.
sig {
returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails))
}
def client_device_metadata_details; end
sig {
params(_client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails))
}
def client_device_metadata_details=(_client_device_metadata_details); end
sig {
params(client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails)).void
}
def initialize(client_device_metadata_details: nil); end
end
class SellerDetails < ::Stripe::RequestParams
# The network profile for the seller.
sig { returns(String) }
@ -331,13 +279,6 @@ module Stripe
params(_payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData))
}
def payment_method_data=(_payment_method_data); end
# The risk details for this requested session.
sig { returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails)) }
def risk_details; end
sig {
params(_risk_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails))
}
def risk_details=(_risk_details); end
# The details of the seller.
sig { returns(DelegatedCheckout::RequestedSessionCreateParams::SellerDetails) }
def seller_details; end
@ -358,7 +299,7 @@ module Stripe
}
def shared_metadata=(_shared_metadata); end
sig {
params(currency: String, customer: T.nilable(String), expand: T.nilable(T::Array[String]), fulfillment_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails), line_item_details: T::Array[DelegatedCheckout::RequestedSessionCreateParams::LineItemDetail], metadata: T.nilable(T::Hash[String, String]), payment_method: T.nilable(String), payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData), risk_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails), seller_details: DelegatedCheckout::RequestedSessionCreateParams::SellerDetails, setup_future_usage: T.nilable(String), shared_metadata: T.nilable(T::Hash[String, String])).void
params(currency: String, customer: T.nilable(String), expand: T.nilable(T::Array[String]), fulfillment_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails), line_item_details: T::Array[DelegatedCheckout::RequestedSessionCreateParams::LineItemDetail], metadata: T.nilable(T::Hash[String, String]), payment_method: T.nilable(String), payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData), seller_details: DelegatedCheckout::RequestedSessionCreateParams::SellerDetails, setup_future_usage: T.nilable(String), shared_metadata: T.nilable(T::Hash[String, String])).void
}
def initialize(
currency: nil,
@ -369,7 +310,6 @@ module Stripe
metadata: nil,
payment_method: nil,
payment_method_data: nil,
risk_details: nil,
seller_details: nil,
setup_future_usage: nil,
shared_metadata: nil

View File

@ -19,9 +19,14 @@ module Stripe
def payment_record; end
sig { params(_payment_record: String).returns(String) }
def payment_record=(_payment_record); end
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
sig { returns(T.nilable(String)) }
def starting_after; end
sig { params(_starting_after: T.nilable(String)).returns(T.nilable(String)) }
def starting_after=(_starting_after); end
sig {
params(expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), payment_record: String).void
params(expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), payment_record: String, starting_after: T.nilable(String)).void
}
def initialize(expand: nil, limit: nil, payment_record: nil); end
def initialize(expand: nil, limit: nil, payment_record: nil, starting_after: nil); end
end
end

View File

@ -36,15 +36,25 @@ module Stripe
def product_url; end
sig { params(_product_url: T.nilable(String)).returns(T.nilable(String)) }
def product_url=(_product_url); end
# Unique reference for this line item to correlate it with your systems internal records. The field is displayed in the Klarna Consumer App if passed.
sig { returns(T.nilable(String)) }
def reference; end
sig { params(_reference: T.nilable(String)).returns(T.nilable(String)) }
def reference=(_reference); end
# Reference for the subscription this line item is for.
sig { returns(T.nilable(String)) }
def subscription_reference; end
sig { params(_subscription_reference: T.nilable(String)).returns(T.nilable(String)) }
def subscription_reference=(_subscription_reference); end
sig {
params(image_url: T.nilable(String), product_url: T.nilable(String), subscription_reference: T.nilable(String)).void
params(image_url: T.nilable(String), product_url: T.nilable(String), reference: T.nilable(String), subscription_reference: T.nilable(String)).void
}
def initialize(image_url: nil, product_url: nil, subscription_reference: nil); end
def initialize(
image_url: nil,
product_url: nil,
reference: nil,
subscription_reference: nil
); end
end
class Paypal < ::Stripe::RequestParams
# Type of the line item.

View File

@ -36,15 +36,25 @@ module Stripe
def product_url; end
sig { params(_product_url: T.nilable(String)).returns(T.nilable(String)) }
def product_url=(_product_url); end
# Unique reference for this line item to correlate it with your systems internal records. The field is displayed in the Klarna Consumer App if passed.
sig { returns(T.nilable(String)) }
def reference; end
sig { params(_reference: T.nilable(String)).returns(T.nilable(String)) }
def reference=(_reference); end
# Reference for the subscription this line item is for.
sig { returns(T.nilable(String)) }
def subscription_reference; end
sig { params(_subscription_reference: T.nilable(String)).returns(T.nilable(String)) }
def subscription_reference=(_subscription_reference); end
sig {
params(image_url: T.nilable(String), product_url: T.nilable(String), subscription_reference: T.nilable(String)).void
params(image_url: T.nilable(String), product_url: T.nilable(String), reference: T.nilable(String), subscription_reference: T.nilable(String)).void
}
def initialize(image_url: nil, product_url: nil, subscription_reference: nil); end
def initialize(
image_url: nil,
product_url: nil,
reference: nil,
subscription_reference: nil
); end
end
class Paypal < ::Stripe::RequestParams
# Type of the line item.
@ -1376,6 +1386,13 @@ module Stripe
starts_at: nil
); end
end
# Benefit details for this PaymentIntent
sig { returns(T.nilable(PaymentIntentConfirmParams::PaymentDetails::Benefit)) }
def benefit; end
sig {
params(_benefit: T.nilable(PaymentIntentConfirmParams::PaymentDetails::Benefit)).returns(T.nilable(PaymentIntentConfirmParams::PaymentDetails::Benefit))
}
def benefit=(_benefit); end
# Car rental details for this PaymentIntent.
sig { returns(T.nilable(PaymentIntentConfirmParams::PaymentDetails::CarRental)) }
def car_rental; end
@ -1421,25 +1438,18 @@ module Stripe
params(_subscription: T.nilable(PaymentIntentConfirmParams::PaymentDetails::Subscription)).returns(T.nilable(PaymentIntentConfirmParams::PaymentDetails::Subscription))
}
def subscription=(_subscription); end
# Benefit details for this PaymentIntent
sig { returns(T.nilable(PaymentIntentConfirmParams::PaymentDetails::Benefit)) }
def benefit; end
sig {
params(_benefit: T.nilable(PaymentIntentConfirmParams::PaymentDetails::Benefit)).returns(T.nilable(PaymentIntentConfirmParams::PaymentDetails::Benefit))
}
def benefit=(_benefit); end
sig {
params(car_rental: T.nilable(PaymentIntentConfirmParams::PaymentDetails::CarRental), customer_reference: T.nilable(String), event_details: T.nilable(PaymentIntentConfirmParams::PaymentDetails::EventDetails), flight: T.nilable(PaymentIntentConfirmParams::PaymentDetails::Flight), lodging: T.nilable(PaymentIntentConfirmParams::PaymentDetails::Lodging), order_reference: T.nilable(String), subscription: T.nilable(PaymentIntentConfirmParams::PaymentDetails::Subscription), benefit: T.nilable(PaymentIntentConfirmParams::PaymentDetails::Benefit)).void
params(benefit: T.nilable(PaymentIntentConfirmParams::PaymentDetails::Benefit), car_rental: T.nilable(PaymentIntentConfirmParams::PaymentDetails::CarRental), customer_reference: T.nilable(String), event_details: T.nilable(PaymentIntentConfirmParams::PaymentDetails::EventDetails), flight: T.nilable(PaymentIntentConfirmParams::PaymentDetails::Flight), lodging: T.nilable(PaymentIntentConfirmParams::PaymentDetails::Lodging), order_reference: T.nilable(String), subscription: T.nilable(PaymentIntentConfirmParams::PaymentDetails::Subscription)).void
}
def initialize(
benefit: nil,
car_rental: nil,
customer_reference: nil,
event_details: nil,
flight: nil,
lodging: nil,
order_reference: nil,
subscription: nil,
benefit: nil
subscription: nil
); end
end
class PaymentMethodData < ::Stripe::RequestParams

View File

@ -36,15 +36,25 @@ module Stripe
def product_url; end
sig { params(_product_url: T.nilable(String)).returns(T.nilable(String)) }
def product_url=(_product_url); end
# Unique reference for this line item to correlate it with your systems internal records. The field is displayed in the Klarna Consumer App if passed.
sig { returns(T.nilable(String)) }
def reference; end
sig { params(_reference: T.nilable(String)).returns(T.nilable(String)) }
def reference=(_reference); end
# Reference for the subscription this line item is for.
sig { returns(T.nilable(String)) }
def subscription_reference; end
sig { params(_subscription_reference: T.nilable(String)).returns(T.nilable(String)) }
def subscription_reference=(_subscription_reference); end
sig {
params(image_url: T.nilable(String), product_url: T.nilable(String), subscription_reference: T.nilable(String)).void
params(image_url: T.nilable(String), product_url: T.nilable(String), reference: T.nilable(String), subscription_reference: T.nilable(String)).void
}
def initialize(image_url: nil, product_url: nil, subscription_reference: nil); end
def initialize(
image_url: nil,
product_url: nil,
reference: nil,
subscription_reference: nil
); end
end
class Paypal < ::Stripe::RequestParams
# Type of the line item.
@ -1390,6 +1400,13 @@ module Stripe
starts_at: nil
); end
end
# Benefit details for this PaymentIntent
sig { returns(T.nilable(PaymentIntentCreateParams::PaymentDetails::Benefit)) }
def benefit; end
sig {
params(_benefit: T.nilable(PaymentIntentCreateParams::PaymentDetails::Benefit)).returns(T.nilable(PaymentIntentCreateParams::PaymentDetails::Benefit))
}
def benefit=(_benefit); end
# Car rental details for this PaymentIntent.
sig { returns(T.nilable(PaymentIntentCreateParams::PaymentDetails::CarRental)) }
def car_rental; end
@ -1435,25 +1452,18 @@ module Stripe
params(_subscription: T.nilable(PaymentIntentCreateParams::PaymentDetails::Subscription)).returns(T.nilable(PaymentIntentCreateParams::PaymentDetails::Subscription))
}
def subscription=(_subscription); end
# Benefit details for this PaymentIntent
sig { returns(T.nilable(PaymentIntentCreateParams::PaymentDetails::Benefit)) }
def benefit; end
sig {
params(_benefit: T.nilable(PaymentIntentCreateParams::PaymentDetails::Benefit)).returns(T.nilable(PaymentIntentCreateParams::PaymentDetails::Benefit))
}
def benefit=(_benefit); end
sig {
params(car_rental: T.nilable(PaymentIntentCreateParams::PaymentDetails::CarRental), customer_reference: T.nilable(String), event_details: T.nilable(PaymentIntentCreateParams::PaymentDetails::EventDetails), flight: T.nilable(PaymentIntentCreateParams::PaymentDetails::Flight), lodging: T.nilable(PaymentIntentCreateParams::PaymentDetails::Lodging), order_reference: T.nilable(String), subscription: T.nilable(PaymentIntentCreateParams::PaymentDetails::Subscription), benefit: T.nilable(PaymentIntentCreateParams::PaymentDetails::Benefit)).void
params(benefit: T.nilable(PaymentIntentCreateParams::PaymentDetails::Benefit), car_rental: T.nilable(PaymentIntentCreateParams::PaymentDetails::CarRental), customer_reference: T.nilable(String), event_details: T.nilable(PaymentIntentCreateParams::PaymentDetails::EventDetails), flight: T.nilable(PaymentIntentCreateParams::PaymentDetails::Flight), lodging: T.nilable(PaymentIntentCreateParams::PaymentDetails::Lodging), order_reference: T.nilable(String), subscription: T.nilable(PaymentIntentCreateParams::PaymentDetails::Subscription)).void
}
def initialize(
benefit: nil,
car_rental: nil,
customer_reference: nil,
event_details: nil,
flight: nil,
lodging: nil,
order_reference: nil,
subscription: nil,
benefit: nil
subscription: nil
); end
end
class PaymentMethodData < ::Stripe::RequestParams

View File

@ -36,15 +36,25 @@ module Stripe
def product_url; end
sig { params(_product_url: T.nilable(String)).returns(T.nilable(String)) }
def product_url=(_product_url); end
# Unique reference for this line item to correlate it with your systems internal records. The field is displayed in the Klarna Consumer App if passed.
sig { returns(T.nilable(String)) }
def reference; end
sig { params(_reference: T.nilable(String)).returns(T.nilable(String)) }
def reference=(_reference); end
# Reference for the subscription this line item is for.
sig { returns(T.nilable(String)) }
def subscription_reference; end
sig { params(_subscription_reference: T.nilable(String)).returns(T.nilable(String)) }
def subscription_reference=(_subscription_reference); end
sig {
params(image_url: T.nilable(String), product_url: T.nilable(String), subscription_reference: T.nilable(String)).void
params(image_url: T.nilable(String), product_url: T.nilable(String), reference: T.nilable(String), subscription_reference: T.nilable(String)).void
}
def initialize(image_url: nil, product_url: nil, subscription_reference: nil); end
def initialize(
image_url: nil,
product_url: nil,
reference: nil,
subscription_reference: nil
); end
end
class Paypal < ::Stripe::RequestParams
# Type of the line item.

Some files were not shown because too many files have changed in this diff Show More