diff --git a/.vscode/settings.json b/.vscode/settings.json index 1553da29..b8b9e5f6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,5 +8,5 @@ // Rubocop settings "ruby.rubocop.configFilePath": ".rubocop.yml", - "ruby.rubocop.onSave": true + "ruby.rubocop.onSave": false } diff --git a/API_VERSION b/API_VERSION index 7fa3a2d3..66718b6c 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -577fcb57736b925392ea563c0284df9002c75ac9 \ No newline at end of file +847d2ef0de9626eec25973097d37b61f67e343ee \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 8a7edbe6..76d911f4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2100 \ No newline at end of file +v2104 \ No newline at end of file diff --git a/lib/stripe/params.rb b/lib/stripe/params.rb index 687b2a3e..284d97c8 100644 --- a/lib/stripe/params.rb +++ b/lib/stripe/params.rb @@ -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" diff --git a/lib/stripe/params/account_create_params.rb b/lib/stripe/params/account_create_params.rb index 89646a21..dced7913 100644 --- a/lib/stripe/params/account_create_params.rb +++ b/lib/stripe/params/account_create_params.rb @@ -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 company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.) @@ -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 diff --git a/lib/stripe/params/account_update_params.rb b/lib/stripe/params/account_update_params.rb index 02145238..ae7d05d6 100644 --- a/lib/stripe/params/account_update_params.rb +++ b/lib/stripe/params/account_update_params.rb @@ -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 company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.) @@ -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 diff --git a/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb b/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb index df019fbf..0743f9d7 100644 --- a/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +++ b/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb @@ -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. diff --git a/lib/stripe/params/billing/credit_grant_create_params.rb b/lib/stripe/params/billing/credit_grant_create_params.rb index 2c9a362e..0ef0beab 100644 --- a/lib/stripe/params/billing/credit_grant_create_params.rb +++ b/lib/stripe/params/billing/credit_grant_create_params.rb @@ -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 diff --git a/lib/stripe/params/billing/meter_create_params.rb b/lib/stripe/params/billing/meter_create_params.rb index c6b83eaf..74bea50d 100644 --- a/lib/stripe/params/billing/meter_create_params.rb +++ b/lib/stripe/params/billing/meter_create_params.rb @@ -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 meter’s 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 diff --git a/lib/stripe/params/billing_portal/configuration_create_params.rb b/lib/stripe/params/billing_portal/configuration_create_params.rb index c0b15b21..e4bc3820 100644 --- a/lib/stripe/params/billing_portal/configuration_create_params.rb +++ b/lib/stripe/params/billing_portal/configuration_create_params.rb @@ -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 diff --git a/lib/stripe/params/billing_portal/configuration_update_params.rb b/lib/stripe/params/billing_portal/configuration_update_params.rb index 3afee7b3..0a28ddca 100644 --- a/lib/stripe/params/billing_portal/configuration_update_params.rb +++ b/lib/stripe/params/billing_portal/configuration_update_params.rb @@ -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 diff --git a/lib/stripe/params/checkout/session_create_params.rb b/lib/stripe/params/checkout/session_create_params.rb index 17a79c95..cd67ce52 100644 --- a/lib/stripe/params/checkout/session_create_params.rb +++ b/lib/stripe/params/checkout/session_create_params.rb @@ -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 diff --git a/lib/stripe/params/customer_session_create_params.rb b/lib/stripe/params/customer_session_create_params.rb index 157dceea..3d921a5a 100644 --- a/lib/stripe/params/customer_session_create_params.rb +++ b/lib/stripe/params/customer_session_create_params.rb @@ -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. diff --git a/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb b/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb index a9541895..09c57d5c 100644 --- a/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +++ b/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb @@ -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 diff --git a/lib/stripe/params/delegated_checkout/requested_session_create_params.rb b/lib/stripe/params/delegated_checkout/requested_session_create_params.rb index 215b250c..35d8479f 100644 --- a/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +++ b/lib/stripe/params/delegated_checkout/requested_session_create_params.rb @@ -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 diff --git a/lib/stripe/params/payment_attempt_record_list_params.rb b/lib/stripe/params/payment_attempt_record_list_params.rb index ef79e496..0806a65c 100644 --- a/lib/stripe/params/payment_attempt_record_list_params.rb +++ b/lib/stripe/params/payment_attempt_record_list_params.rb @@ -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 diff --git a/lib/stripe/params/payment_intent_capture_params.rb b/lib/stripe/params/payment_intent_capture_params.rb index 55725995..4044cfa4 100644 --- a/lib/stripe/params/payment_intent_capture_params.rb +++ b/lib/stripe/params/payment_intent_capture_params.rb @@ -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 system’s 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 diff --git a/lib/stripe/params/payment_intent_confirm_params.rb b/lib/stripe/params/payment_intent_confirm_params.rb index 5a0d73aa..49fe5124 100644 --- a/lib/stripe/params/payment_intent_confirm_params.rb +++ b/lib/stripe/params/payment_intent_confirm_params.rb @@ -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 system’s 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 diff --git a/lib/stripe/params/payment_intent_create_params.rb b/lib/stripe/params/payment_intent_create_params.rb index 4b36f74b..19026bb5 100644 --- a/lib/stripe/params/payment_intent_create_params.rb +++ b/lib/stripe/params/payment_intent_create_params.rb @@ -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 system’s 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 diff --git a/lib/stripe/params/payment_intent_increment_authorization_params.rb b/lib/stripe/params/payment_intent_increment_authorization_params.rb index a8062d60..27fb6d2f 100644 --- a/lib/stripe/params/payment_intent_increment_authorization_params.rb +++ b/lib/stripe/params/payment_intent_increment_authorization_params.rb @@ -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 system’s 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 diff --git a/lib/stripe/params/payment_intent_update_params.rb b/lib/stripe/params/payment_intent_update_params.rb index ca2ac6fa..4f77f26d 100644 --- a/lib/stripe/params/payment_intent_update_params.rb +++ b/lib/stripe/params/payment_intent_update_params.rb @@ -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 system’s 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 diff --git a/lib/stripe/params/payment_link_create_params.rb b/lib/stripe/params/payment_link_create_params.rb index 5ad8189e..116a5873 100644 --- a/lib/stripe/params/payment_link_create_params.rb +++ b/lib/stripe/params/payment_link_create_params.rb @@ -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 diff --git a/lib/stripe/params/payment_link_update_params.rb b/lib/stripe/params/payment_link_update_params.rb index 0173b094..ceed51bd 100644 --- a/lib/stripe/params/payment_link_update_params.rb +++ b/lib/stripe/params/payment_link_update_params.rb @@ -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 diff --git a/lib/stripe/params/payment_method_configuration_create_params.rb b/lib/stripe/params/payment_method_configuration_create_params.rb index 6fec12d8..0089a818 100644 --- a/lib/stripe/params/payment_method_configuration_create_params.rb +++ b/lib/stripe/params/payment_method_configuration_create_params.rb @@ -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 customer’s [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 diff --git a/lib/stripe/params/payment_method_configuration_update_params.rb b/lib/stripe/params/payment_method_configuration_update_params.rb index 263fd898..f08a2746 100644 --- a/lib/stripe/params/payment_method_configuration_update_params.rb +++ b/lib/stripe/params/payment_method_configuration_update_params.rb @@ -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 customer’s [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 diff --git a/lib/stripe/params/payment_method_create_params.rb b/lib/stripe/params/payment_method_create_params.rb index 83f86bdd..a308c3e1 100644 --- a/lib/stripe/params/payment_method_create_params.rb +++ b/lib/stripe/params/payment_method_create_params.rb @@ -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 diff --git a/lib/stripe/params/payment_method_list_params.rb b/lib/stripe/params/payment_method_list_params.rb index 9c08be13..b81e5be3 100644 --- a/lib/stripe/params/payment_method_list_params.rb +++ b/lib/stripe/params/payment_method_list_params.rb @@ -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( diff --git a/lib/stripe/params/payment_record_report_refund_params.rb b/lib/stripe/params/payment_record_report_refund_params.rb new file mode 100644 index 00000000..814aa918 --- /dev/null +++ b/lib/stripe/params/payment_record_report_refund_params.rb @@ -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 diff --git a/lib/stripe/params/setup_intent_confirm_params.rb b/lib/stripe/params/setup_intent_confirm_params.rb index 17ff8c06..a5bf1737 100644 --- a/lib/stripe/params/setup_intent_confirm_params.rb +++ b/lib/stripe/params/setup_intent_confirm_params.rb @@ -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 diff --git a/lib/stripe/params/setup_intent_create_params.rb b/lib/stripe/params/setup_intent_create_params.rb index d97618a2..793b53f5 100644 --- a/lib/stripe/params/setup_intent_create_params.rb +++ b/lib/stripe/params/setup_intent_create_params.rb @@ -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 diff --git a/lib/stripe/params/setup_intent_update_params.rb b/lib/stripe/params/setup_intent_update_params.rb index 305bf252..415b77c5 100644 --- a/lib/stripe/params/setup_intent_update_params.rb +++ b/lib/stripe/params/setup_intent_update_params.rb @@ -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 diff --git a/lib/stripe/params/tax/registration_create_params.rb b/lib/stripe/params/tax/registration_create_params.rb index cbd18880..5274d629 100644 --- a/lib/stripe/params/tax/registration_create_params.rb +++ b/lib/stripe/params/tax/registration_create_params.rb @@ -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 diff --git a/lib/stripe/params/terminal/configuration_create_params.rb b/lib/stripe/params/terminal/configuration_create_params.rb index b3a4e4a5..3150e628 100644 --- a/lib/stripe/params/terminal/configuration_create_params.rb +++ b/lib/stripe/params/terminal/configuration_create_params.rb @@ -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 diff --git a/lib/stripe/params/terminal/configuration_update_params.rb b/lib/stripe/params/terminal/configuration_update_params.rb index 7001ff46..553d4d96 100644 --- a/lib/stripe/params/terminal/configuration_update_params.rb +++ b/lib/stripe/params/terminal/configuration_update_params.rb @@ -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 diff --git a/lib/stripe/params/terminal/reader_collect_inputs_params.rb b/lib/stripe/params/terminal/reader_collect_inputs_params.rb index cfda3c2a..098f28ad 100644 --- a/lib/stripe/params/terminal/reader_collect_inputs_params.rb +++ b/lib/stripe/params/terminal/reader_collect_inputs_params.rb @@ -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 diff --git a/lib/stripe/params/terminal/reader_collect_payment_method_params.rb b/lib/stripe/params/terminal/reader_collect_payment_method_params.rb index ada527f6..7b83d18d 100644 --- a/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +++ b/lib/stripe/params/terminal/reader_collect_payment_method_params.rb @@ -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) diff --git a/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb b/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb index fa692e61..026c267b 100644 --- a/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +++ b/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb @@ -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) diff --git a/lib/stripe/params/terminal/reader_present_payment_method_params.rb b/lib/stripe/params/terminal/reader_present_payment_method_params.rb index 7e271d0b..a184c076 100644 --- a/lib/stripe/params/terminal/reader_present_payment_method_params.rb +++ b/lib/stripe/params/terminal/reader_present_payment_method_params.rb @@ -32,7 +32,7 @@ module Stripe end class InteracPresent < ::Stripe::RequestParams - # Card Number + # The Interac card number. attr_accessor :number def initialize(number: nil) diff --git a/lib/stripe/params/terminal/reader_process_payment_intent_params.rb b/lib/stripe/params/terminal/reader_process_payment_intent_params.rb index af1a8e23..d3814d33 100644 --- a/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +++ b/lib/stripe/params/terminal/reader_process_payment_intent_params.rb @@ -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) diff --git a/lib/stripe/params/terminal/reader_process_setup_intent_params.rb b/lib/stripe/params/terminal/reader_process_setup_intent_params.rb index 09a0e482..ad6825bb 100644 --- a/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +++ b/lib/stripe/params/terminal/reader_process_setup_intent_params.rb @@ -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) diff --git a/lib/stripe/params/terminal/reader_refund_payment_params.rb b/lib/stripe/params/terminal/reader_refund_payment_params.rb index 70ed2b24..1113aedc 100644 --- a/lib/stripe/params/terminal/reader_refund_payment_params.rb +++ b/lib/stripe/params/terminal/reader_refund_payment_params.rb @@ -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 diff --git a/lib/stripe/params/terminal/reader_set_reader_display_params.rb b/lib/stripe/params/terminal/reader_set_reader_display_params.rb index 97721974..cb76fe61 100644 --- a/lib/stripe/params/terminal/reader_set_reader_display_params.rb +++ b/lib/stripe/params/terminal/reader_set_reader_display_params.rb @@ -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) diff --git a/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb b/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb index 57b111f2..bbb4fae3 100644 --- a/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +++ b/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb @@ -33,7 +33,7 @@ module Stripe end class InteracPresent < ::Stripe::RequestParams - # Card Number + # The Interac card number. attr_accessor :number def initialize(number: nil) diff --git a/lib/stripe/params/token_create_params.rb b/lib/stripe/params/token_create_params.rb index f687aa3f..9b921059 100644 --- a/lib/stripe/params/token_create_params.rb +++ b/lib/stripe/params/token_create_params.rb @@ -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 company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.) @@ -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 diff --git a/lib/stripe/params/transfer_create_params.rb b/lib/stripe/params/transfer_create_params.rb index 69d4dbae..3f2d6d09 100644 --- a/lib/stripe/params/transfer_create_params.rb +++ b/lib/stripe/params/transfer_create_params.rb @@ -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 diff --git a/lib/stripe/params/v2/core/account_create_params.rb b/lib/stripe/params/v2/core/account_create_params.rb index 0b7b74d4..4ab2eda5 100644 --- a/lib/stripe/params/v2/core/account_create_params.rb +++ b/lib/stripe/params/v2/core/account_create_params.rb @@ -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 diff --git a/lib/stripe/params/v2/core/account_update_params.rb b/lib/stripe/params/v2/core/account_update_params.rb index d7f224f5..3e5eb112 100644 --- a/lib/stripe/params/v2/core/account_update_params.rb +++ b/lib/stripe/params/v2/core/account_update_params.rb @@ -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 diff --git a/lib/stripe/resources/account.rb b/lib/stripe/resources/account.rb index 9b7c54b4..9885f621 100644 --- a/lib/stripe/resources/account.rb +++ b/lib/stripe/resources/account.rb @@ -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 diff --git a/lib/stripe/resources/application_fee.rb b/lib/stripe/resources/application_fee.rb index eed96ccf..5a0ad07a 100644 --- a/lib/stripe/resources/application_fee.rb +++ b/lib/stripe/resources/application_fee.rb @@ -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 = {} diff --git a/lib/stripe/resources/balance.rb b/lib/stripe/resources/balance.rb index 9803273d..a9f5d473 100644 --- a/lib/stripe/resources/balance.rb +++ b/lib/stripe/resources/balance.rb @@ -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 diff --git a/lib/stripe/resources/billing/analytics/meter_usage_row.rb b/lib/stripe/resources/billing/analytics/meter_usage_row.rb index 09fef5d2..330d834a 100644 --- a/lib/stripe/resources/billing/analytics/meter_usage_row.rb +++ b/lib/stripe/resources/billing/analytics/meter_usage_row.rb @@ -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 = {} diff --git a/lib/stripe/resources/billing/meter.rb b/lib/stripe/resources/billing/meter.rb index ce3aeac2..124a79e8 100644 --- a/lib/stripe/resources/billing/meter.rb +++ b/lib/stripe/resources/billing/meter.rb @@ -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 = {}) diff --git a/lib/stripe/resources/billing/meter_event_summary.rb b/lib/stripe/resources/billing/meter_event_summary.rb index d22d36a9..8e42dea3 100644 --- a/lib/stripe/resources/billing/meter_event_summary.rb +++ b/lib/stripe/resources/billing/meter_event_summary.rb @@ -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 = {} diff --git a/lib/stripe/resources/billing_portal/configuration.rb b/lib/stripe/resources/billing_portal/configuration.rb index 6d4c90cc..1b41a728 100644 --- a/lib/stripe/resources/billing_portal/configuration.rb +++ b/lib/stripe/resources/billing_portal/configuration.rb @@ -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 diff --git a/lib/stripe/resources/card.rb b/lib/stripe/resources/card.rb index 77f0a8eb..c8b26811 100644 --- a/lib/stripe/resources/card.rb +++ b/lib/stripe/resources/card.rb @@ -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 diff --git a/lib/stripe/resources/charge.rb b/lib/stripe/resources/charge.rb index dc815e8a..3126e5a7 100644 --- a/lib/stripe/resources/charge.rb +++ b/lib/stripe/resources/charge.rb @@ -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 diff --git a/lib/stripe/resources/checkout/session.rb b/lib/stripe/resources/checkout/session.rb index 67ba0220..4307a1d2 100644 --- a/lib/stripe/resources/checkout/session.rb +++ b/lib/stripe/resources/checkout/session.rb @@ -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 diff --git a/lib/stripe/resources/confirmation_token.rb b/lib/stripe/resources/confirmation_token.rb index 74ff060b..a4f04c5d 100644 --- a/lib/stripe/resources/confirmation_token.rb +++ b/lib/stripe/resources/confirmation_token.rb @@ -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 diff --git a/lib/stripe/resources/customer.rb b/lib/stripe/resources/customer.rb index b1342641..71a19041 100644 --- a/lib/stripe/resources/customer.rb +++ b/lib/stripe/resources/customer.rb @@ -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 } diff --git a/lib/stripe/resources/customer_session.rb b/lib/stripe/resources/customer_session.rb index d500e2a2..a7d7fafc 100644 --- a/lib/stripe/resources/customer_session.rb +++ b/lib/stripe/resources/customer_session.rb @@ -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 diff --git a/lib/stripe/resources/financial_connections/account.rb b/lib/stripe/resources/financial_connections/account.rb index 71d29e89..784144d8 100644 --- a/lib/stripe/resources/financial_connections/account.rb +++ b/lib/stripe/resources/financial_connections/account.rb @@ -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, diff --git a/lib/stripe/resources/identity/verification_report.rb b/lib/stripe/resources/identity/verification_report.rb index b75310ec..583ea02b 100644 --- a/lib/stripe/resources/identity/verification_report.rb +++ b/lib/stripe/resources/identity/verification_report.rb @@ -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 } diff --git a/lib/stripe/resources/payment_attempt_record.rb b/lib/stripe/resources/payment_attempt_record.rb index 63be0838..b8c4b3ba 100644 --- a/lib/stripe/resources/payment_attempt_record.rb +++ b/lib/stripe/resources/payment_attempt_record.rb @@ -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 diff --git a/lib/stripe/resources/payment_intent.rb b/lib/stripe/resources/payment_intent.rb index e73fec30..cec4d0cb 100644 --- a/lib/stripe/resources/payment_intent.rb +++ b/lib/stripe/resources/payment_intent.rb @@ -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 diff --git a/lib/stripe/resources/payment_intent_amount_details_line_item.rb b/lib/stripe/resources/payment_intent_amount_details_line_item.rb index c313937b..659606c4 100644 --- a/lib/stripe/resources/payment_intent_amount_details_line_item.rb +++ b/lib/stripe/resources/payment_intent_amount_details_line_item.rb @@ -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 = {} diff --git a/lib/stripe/resources/payment_link.rb b/lib/stripe/resources/payment_link.rb index 49555b4c..888751f7 100644 --- a/lib/stripe/resources/payment_link.rb +++ b/lib/stripe/resources/payment_link.rb @@ -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, diff --git a/lib/stripe/resources/payment_method.rb b/lib/stripe/resources/payment_method.rb index dd5b1c33..6c4dba3c 100644 --- a/lib/stripe/resources/payment_method.rb +++ b/lib/stripe/resources/payment_method.rb @@ -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, diff --git a/lib/stripe/resources/payment_method_configuration.rb b/lib/stripe/resources/payment_method_configuration.rb index fc013639..5c1c0bfa 100644 --- a/lib/stripe/resources/payment_method_configuration.rb +++ b/lib/stripe/resources/payment_method_configuration.rb @@ -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, diff --git a/lib/stripe/resources/payment_record.rb b/lib/stripe/resources/payment_record.rb index 745df94a..6399ebbd 100644 --- a/lib/stripe/resources/payment_record.rb +++ b/lib/stripe/resources/payment_record.rb @@ -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/%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/%s/report_refund", { id: CGI.escape(id) }), + params: params, + opts: opts + ) + end + def self.inner_class_types @inner_class_types = { amount: Amount, diff --git a/lib/stripe/resources/payout.rb b/lib/stripe/resources/payout.rb index d443cf86..1f8fd6a1 100644 --- a/lib/stripe/resources/payout.rb +++ b/lib/stripe/resources/payout.rb @@ -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 = {}) diff --git a/lib/stripe/resources/refund.rb b/lib/stripe/resources/refund.rb index 99ccf672..3c8f461e 100644 --- a/lib/stripe/resources/refund.rb +++ b/lib/stripe/resources/refund.rb @@ -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, diff --git a/lib/stripe/resources/setup_intent.rb b/lib/stripe/resources/setup_intent.rb index 5be74cae..4596fdfc 100644 --- a/lib/stripe/resources/setup_intent.rb +++ b/lib/stripe/resources/setup_intent.rb @@ -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. # diff --git a/lib/stripe/resources/tax/registration.rb b/lib/stripe/resources/tax/registration.rb index ae35a0fa..aa162cf5 100644 --- a/lib/stripe/resources/tax/registration.rb +++ b/lib/stripe/resources/tax/registration.rb @@ -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, diff --git a/lib/stripe/resources/terminal/configuration.rb b/lib/stripe/resources/terminal/configuration.rb index 33d8b443..7182a845 100644 --- a/lib/stripe/resources/terminal/configuration.rb +++ b/lib/stripe/resources/terminal/configuration.rb @@ -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, diff --git a/lib/stripe/resources/terminal/reader.rb b/lib/stripe/resources/terminal/reader.rb index a99f0125..cb4308da 100644 --- a/lib/stripe/resources/terminal/reader.rb +++ b/lib/stripe/resources/terminal/reader.rb @@ -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, diff --git a/lib/stripe/resources/transfer.rb b/lib/stripe/resources/transfer.rb index 9856e6b7..85c0734f 100644 --- a/lib/stripe/resources/transfer.rb +++ b/lib/stripe/resources/transfer.rb @@ -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 = {}) diff --git a/lib/stripe/resources/v2/core/account.rb b/lib/stripe/resources/v2/core/account.rb index 28b81df7..48d87cdf 100644 --- a/lib/stripe/resources/v2/core/account.rb +++ b/lib/stripe/resources/v2/core/account.rb @@ -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. diff --git a/lib/stripe/resources/v2/money_management/received_credit.rb b/lib/stripe/resources/v2/money_management/received_credit.rb index 5366e8c0..3da4eff3 100644 --- a/lib/stripe/resources/v2/money_management/received_credit.rb +++ b/lib/stripe/resources/v2/money_management/received_credit.rb @@ -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. diff --git a/lib/stripe/resources/v2/money_management/received_debit.rb b/lib/stripe/resources/v2/money_management/received_debit.rb index e1a0bedf..e1c5f47c 100644 --- a/lib/stripe/resources/v2/money_management/received_debit.rb +++ b/lib/stripe/resources/v2/money_management/received_debit.rb @@ -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. diff --git a/lib/stripe/services/financial_connections/account_service.rb b/lib/stripe/services/financial_connections/account_service.rb index eb8431f0..8728d8f6 100644 --- a/lib/stripe/services/financial_connections/account_service.rb +++ b/lib/stripe/services/financial_connections/account_service.rb @@ -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, diff --git a/lib/stripe/services/payment_record_service.rb b/lib/stripe/services/payment_record_service.rb index d4d2083f..82ba0618 100644 --- a/lib/stripe/services/payment_record_service.rb +++ b/lib/stripe/services/payment_record_service.rb @@ -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/%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( diff --git a/lib/stripe/services/payout_service.rb b/lib/stripe/services/payout_service.rb index 78596c7d..9687082d 100644 --- a/lib/stripe/services/payout_service.rb +++ b/lib/stripe/services/payout_service.rb @@ -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 = {}) diff --git a/lib/stripe/services/terminal/reader_service.rb b/lib/stripe/services/terminal/reader_service.rb index 25e2effb..17dc73bb 100644 --- a/lib/stripe/services/terminal/reader_service.rb +++ b/lib/stripe/services/terminal/reader_service.rb @@ -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, diff --git a/rbi/stripe.rbi b/rbi/stripe.rbi index 77d15e20..80e1e647 100644 --- a/rbi/stripe.rbi +++ b/rbi/stripe.rbi @@ -456,17 +456,6 @@ module Stripe # # Related guide: [Card payments with Sources](https://stripe.com/docs/sources/cards) class Card < APIResource - 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. - sig { returns(T.nilable(String)) } - def preferred; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end class Benefits < ::Stripe::StripeObject # Issuer of this benefit card sig { returns(T.nilable(String)) } @@ -481,6 +470,17 @@ module Stripe @field_remappings = {} end 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. + sig { returns(T.nilable(String)) } + def preferred; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # Attribute for field account sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end @@ -514,6 +514,9 @@ module Stripe # A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout. sig { returns(T.nilable(T::Array[String])) } def available_payout_methods; end + # Attribute for field benefits + sig { returns(T.nilable(Benefits)) } + def benefits; end # Card brand. Can be `American Express`, `Cartes Bancaires`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`. sig { returns(String) } def brand; end @@ -588,9 +591,6 @@ module Stripe # 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. sig { returns(T.nilable(String)) } def tokenization_method; end - # Attribute for field benefits - sig { returns(T.nilable(Benefits)) } - def benefits; end # Always true for a deleted object sig { returns(T.nilable(T::Boolean)) } def deleted; end @@ -1875,6 +1875,9 @@ module Stripe # The aggregated meter usage value for the specified bucket. sig { returns(Float) } def value; end + # A set of key-value pairs representing the tenants of the meter usage. + sig { returns(T.nilable(T::Hash[String, String])) } + def tenants; end end end end @@ -4069,6 +4072,23 @@ module Stripe @field_remappings = {} end end + class RepresentativeDeclaration < ::Stripe::StripeObject + # The Unix timestamp marking when the representative declaration attestation was made. + sig { returns(T.nilable(Integer)) } + def date; end + # The IP address from which the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def ip; end + # The user-agent string from the browser where the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def user_agent; end + 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). @@ -4148,6 +4168,9 @@ module Stripe # Attribute for field registration_date sig { returns(T.nilable(RegistrationDate)) } def registration_date; 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(RepresentativeDeclaration)) } + def representative_declaration; end # 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. sig { returns(T.nilable(String)) } def structure; end @@ -4171,6 +4194,7 @@ module Stripe directorship_declaration: DirectorshipDeclaration, ownership_declaration: OwnershipDeclaration, registration_date: RegistrationDate, + representative_declaration: RepresentativeDeclaration, verification: Verification, } end @@ -5721,6 +5745,9 @@ module Stripe # Type of object that created the application fee. sig { returns(String) } def type; end + # Transfer ID that created this application fee. + sig { returns(T.nilable(String)) } + def transfer; end def self.inner_class_types @inner_class_types = {} end @@ -6203,6 +6230,88 @@ 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). + sig { returns(T.nilable(Integer)) } + def bank_account; end + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). + sig { returns(T.nilable(Integer)) } + def card; end + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. + sig { returns(T.nilable(Integer)) } + def fpx; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Balance amount. + sig { returns(Integer) } + def amount; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # Attribute for field source_types + sig { returns(T.nilable(SourceTypes)) } + def source_types; end + 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). + sig { returns(T.nilable(Integer)) } + def bank_account; end + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). + sig { returns(T.nilable(Integer)) } + def card; end + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. + sig { returns(T.nilable(Integer)) } + def fpx; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Balance amount. + sig { returns(Integer) } + def amount; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # Attribute for field source_types + sig { returns(T.nilable(SourceTypes)) } + def source_types; end + 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. + sig { returns(T::Array[Available]) } + def available; end + # Funds that are pending + sig { returns(T::Array[Pending]) } + def pending; end + 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. sig { returns(T::Array[Available]) } def available; end @@ -6227,6 +6336,9 @@ module Stripe # Attribute for field refund_and_dispute_prefunding sig { returns(T.nilable(RefundAndDisputePrefunding)) } def refund_and_dispute_prefunding; end + # Attribute for field transit_balances_total + sig { returns(T.nilable(TransitBalancesTotal)) } + def transit_balances_total; end end end # typed: true @@ -7492,6 +7604,9 @@ module Stripe # Attribute for field default_aggregation sig { returns(DefaultAggregation) } def default_aggregation; end + # Set of keys that will be used to group meter events by. + sig { returns(T.nilable(T::Array[String])) } + def dimension_payload_keys; end # The meter's name. sig { returns(String) } def display_name; end @@ -7522,9 +7637,6 @@ module Stripe # Attribute for field value_settings sig { returns(ValueSettings) } def value_settings; end - # Set of keys that will be used to group meter events by. - sig { returns(T.nilable(T::Array[String])) } - def dimension_payload_keys; end # Creates a billing meter. sig { params(params: T.any(::Stripe::Billing::MeterCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) @@ -7580,6 +7692,9 @@ 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`. sig { returns(Float) } def aggregated_value; end + # Key-value pairs of dimension values for event summaries with grouping on dimensions. + sig { returns(T.nilable(T::Hash[String, String])) } + def dimensions; end # End timestamp for this event summary (exclusive). Must be aligned with minute boundaries. sig { returns(Integer) } def end_time; end @@ -7598,16 +7713,13 @@ module Stripe # Start timestamp for this event summary (inclusive). Must be aligned with minute boundaries. sig { returns(Integer) } def start_time; end - # Key-value pairs of dimension values for event summaries with grouping on dimensions. - sig { returns(T.nilable(T::Hash[String, String])) } - def dimensions; end end end end # typed: true 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 class BusinessProfile < ::Stripe::StripeObject # The messaging shown to customers in the portal. @@ -9318,6 +9430,9 @@ module Stripe # Authorization code on the charge. sig { returns(T.nilable(String)) } def authorization_code; end + # Attribute for field benefits + sig { returns(T.nilable(Benefits)) } + def benefits; end # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. sig { returns(T.nilable(String)) } def brand; end @@ -9403,11 +9518,9 @@ module Stripe # If this Card is part of a card wallet, this contains the details of the card wallet. sig { returns(T.nilable(Wallet)) } def wallet; end - # Attribute for field benefits - sig { returns(T.nilable(Benefits)) } - def benefits; end def self.inner_class_types @inner_class_types = { + benefits: Benefits, checks: Checks, decremental_authorization: DecrementalAuthorization, extended_authorization: ExtendedAuthorization, @@ -9419,7 +9532,6 @@ module Stripe partial_authorization: PartialAuthorization, three_d_secure: ThreeDSecure, wallet: Wallet, - benefits: Benefits, } end def self.field_remappings @@ -10291,6 +10403,9 @@ module Stripe end end class Rechnung < ::Stripe::StripeObject + # Payment portal URL. + sig { returns(T.nilable(String)) } + def payment_portal_url; end def self.inner_class_types @inner_class_types = {} end @@ -12829,6 +12944,23 @@ module Stripe @field_remappings = {} 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). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + 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 @@ -13023,6 +13155,9 @@ module Stripe # Attribute for field swish sig { returns(T.nilable(Swish)) } def swish; end + # Attribute for field twint + sig { returns(T.nilable(Twint)) } + def twint; end # Attribute for field us_bank_account sig { returns(T.nilable(UsBankAccount)) } def us_bank_account; end @@ -13068,6 +13203,7 @@ module Stripe sepa_debit: SepaDebit, sofort: Sofort, swish: Swish, + twint: Twint, us_bank_account: UsBankAccount, } end @@ -14748,6 +14884,9 @@ module Stripe @field_remappings = {} end end + # Attribute for field benefits + sig { returns(T.nilable(Benefits)) } + def benefits; end # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. sig { returns(String) } def brand; end @@ -14801,17 +14940,14 @@ module Stripe # If this Card is part of a card wallet, this contains the details of the card wallet. sig { returns(T.nilable(Wallet)) } def wallet; end - # Attribute for field benefits - sig { returns(T.nilable(Benefits)) } - def benefits; end 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 def self.field_remappings @@ -16626,6 +16762,83 @@ module Stripe @field_remappings = {} 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"]. + sig { returns(T.nilable(T::Array[String])) } + def 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 + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the customer sheet is enabled. + sig { returns(T::Boolean) } + def enabled; end + # This hash defines whether the customer sheet supports certain features. + sig { returns(T.nilable(Features)) } + def features; end + 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"]. + sig { returns(T.nilable(T::Array[String])) } + def 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 + # 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 + # 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 + # 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 + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the mobile payment element is enabled. + sig { returns(T::Boolean) } + def enabled; end + # This hash defines whether the mobile payment element supports certain features. + sig { returns(T.nilable(Features)) } + def features; end + 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. @@ -16685,20 +16898,64 @@ 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. + sig { returns(String) } + def 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(String) } + def tax_id_save; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Tax ID Element is enabled. + sig { returns(T::Boolean) } + def enabled; end + # This hash defines whether the Tax ID Element supports certain features. + sig { returns(T.nilable(Features)) } + def features; end + 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. sig { returns(BuyButton) } def buy_button; end + # This hash contains whether the customer sheet is enabled and the features it supports. + sig { returns(CustomerSheet) } + def customer_sheet; end + # This hash contains whether the mobile payment element is enabled and the features it supports. + sig { returns(MobilePaymentElement) } + def mobile_payment_element; end # This hash contains whether the Payment Element is enabled and the features it supports. sig { returns(PaymentElement) } def payment_element; end # This hash contains whether the pricing table is enabled. sig { returns(PricingTable) } def pricing_table; end + # This hash contains whether the Tax ID Element is enabled and the features it supports. + sig { returns(T.nilable(TaxIdElement)) } + def tax_id_element; end 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 def self.field_remappings @@ -16893,6 +17150,9 @@ module Stripe # The identified tax location of the customer. sig { returns(T.nilable(Location)) } def location; end + # The tax calculation provider used for location resolution. Defaults to `stripe` when not using a [third-party provider](/tax/third-party-apps). + sig { returns(String) } + def provider; end def self.inner_class_types @inner_class_types = {location: Location} end @@ -18934,13 +19194,13 @@ module Stripe } def self.refresh_account(account, params = {}, opts = {}); 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. sig { params(params: T.any(::Stripe::FinancialConnections::AccountSubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def subscribe(params = {}, opts = {}); 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. sig { params(account: String, params: T.any(::Stripe::FinancialConnections::AccountSubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } @@ -19773,6 +20033,9 @@ module Stripe # Address as it appears in the document. sig { returns(T.nilable(Address)) } def address; end + # If document was not verified due to extracted data being on the blocklist, this is the token of the BlocklistEntry that blocked it + sig { returns(T.nilable(T.any(String, ::Stripe::Identity::BlocklistEntry))) } + def blocked_by_entry; end # Date of birth as it appears in the document. sig { returns(T.nilable(Dob)) } def dob; end @@ -19815,9 +20078,6 @@ module Stripe # Sex as it appears in the document. sig { returns(T.nilable(String)) } def unparsed_sex; end - # If document was not verified due to extracted data being on the blocklist, this is the token of the BlocklistEntry that blocked it - sig { returns(T.nilable(T.any(String, ::Stripe::Identity::BlocklistEntry))) } - def blocked_by_entry; end def self.inner_class_types @inner_class_types = { address: Address, @@ -20010,6 +20270,9 @@ 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 + sig { returns(T.nilable(T.any(String, ::Stripe::Identity::BlocklistEntry))) } + def blocked_by_entry; end # ID of the [File](https://stripe.com/docs/api/files) holding the image of the identity document used in this check. sig { returns(T.nilable(String)) } def document; end @@ -20022,9 +20285,6 @@ module Stripe # Status of this `selfie` check. sig { returns(String) } def status; end - # If selfie was not verified due to being on the blocklist, this is the token of the BlocklistEntry that blocked it - sig { returns(T.nilable(T.any(String, ::Stripe::Identity::BlocklistEntry))) } - def blocked_by_entry; end def self.inner_class_types @inner_class_types = {error: Error} end @@ -28239,6 +28499,9 @@ module Stripe end end class Rechnung < ::Stripe::StripeObject + # Payment portal URL. + sig { returns(T.nilable(String)) } + def payment_portal_url; end def self.inner_class_types @inner_class_types = {} end @@ -30619,6 +30882,9 @@ module Stripe @field_remappings = {} end end + # Attribute for field benefit + sig { returns(T.nilable(Benefit)) } + def benefit; end # Attribute for field car_rental sig { returns(T.nilable(CarRental)) } def car_rental; end @@ -30634,15 +30900,12 @@ module Stripe # Attribute for field subscription sig { returns(T.nilable(Subscription)) } def subscription; end - # Attribute for field benefit - sig { returns(T.nilable(Benefit)) } - def benefit; end def self.inner_class_types @inner_class_types = { + benefit: Benefit, car_rental: CarRental, event_details: EventDetails, subscription: Subscription, - benefit: Benefit, } end def self.field_remappings @@ -32557,6 +32820,17 @@ module Stripe @field_remappings = {} end end + class AllocatedFunds < ::Stripe::StripeObject + # Allocated Funds configuration for this PaymentIntent. + sig { returns(T.nilable(T::Boolean)) } + def enabled; end + 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). sig { returns(Integer) } def amount; end @@ -32717,6 +32991,9 @@ module Stripe # 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). sig { returns(T.nilable(String)) } def transfer_group; end + # Allocated Funds configuration for this PaymentIntent. + sig { returns(T.nilable(AllocatedFunds)) } + def allocated_funds; end # Manually reconcile the remaining amount for a customer_balance PaymentIntent. sig { params(params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) @@ -33040,6 +33317,12 @@ module Stripe # Attribute for field product_url sig { returns(T.nilable(String)) } def product_url; end + # Attribute for field reference + sig { returns(T.nilable(String)) } + def reference; end + # Attribute for field subscription_reference + sig { returns(T.nilable(String)) } + def subscription_reference; end def self.inner_class_types @inner_class_types = {} end @@ -33494,6 +33777,48 @@ module Stripe @field_remappings = {} end end + class NameCollection < ::Stripe::StripeObject + class Business < ::Stripe::StripeObject + # Indicates whether business name collection is enabled for the payment link. + sig { returns(T::Boolean) } + def enabled; end + # Whether the customer is required to complete the field before checking out. Defaults to `false`. + sig { returns(T::Boolean) } + def optional; end + 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. + sig { returns(T::Boolean) } + def enabled; end + # Whether the customer is required to complete the field before checking out. Defaults to `false`. + sig { returns(T::Boolean) } + def optional; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field business + sig { returns(T.nilable(Business)) } + def business; end + # Attribute for field individual + sig { returns(T.nilable(Individual)) } + def individual; end + 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. @@ -33773,6 +34098,9 @@ module Stripe # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. sig { returns(T::Hash[String, String]) } def metadata; end + # Attribute for field name_collection + sig { returns(T.nilable(NameCollection)) } + def name_collection; end # String representing the object's type. Objects of the same type share the same value. sig { returns(String) } def object; end @@ -34362,6 +34690,37 @@ module Stripe @field_remappings = {} 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. + sig { returns(T.nilable(T::Boolean)) } + def overridable; end + # The account's display preference. + sig { returns(String) } + def preference; end + # The effective display preference value. + sig { returns(String) } + def value; end + 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. + sig { returns(T::Boolean) } + def available; end + # Attribute for field display_preference + sig { returns(DisplayPreference) } + def display_preference; end + 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. @@ -34827,6 +35186,37 @@ module Stripe @field_remappings = {} 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. + sig { returns(T.nilable(T::Boolean)) } + def overridable; end + # The account's display preference. + sig { returns(String) } + def preference; end + # The effective display preference value. + sig { returns(String) } + def value; end + 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. + sig { returns(T::Boolean) } + def available; end + # Attribute for field display_preference + sig { returns(DisplayPreference) } + def display_preference; end + 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. @@ -35687,6 +36077,9 @@ module Stripe # Attribute for field cashapp sig { returns(T.nilable(Cashapp)) } def cashapp; end + # Attribute for field crypto + sig { returns(T.nilable(Crypto)) } + def crypto; end # Attribute for field customer_balance sig { returns(T.nilable(CustomerBalance)) } def customer_balance; end @@ -35741,6 +36134,9 @@ module Stripe # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } def livemode; end + # Attribute for field mb_way + sig { returns(T.nilable(MbWay)) } + def mb_way; end # Attribute for field mobilepay sig { returns(T.nilable(Mobilepay)) } def mobilepay; end @@ -36739,6 +37135,9 @@ module Stripe @field_remappings = {} end end + # Attribute for field benefits + sig { returns(T.nilable(Benefits)) } + def benefits; end # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. sig { returns(String) } def brand; end @@ -36792,17 +37191,14 @@ module Stripe # If this Card is part of a card wallet, this contains the details of the card wallet. sig { returns(T.nilable(Wallet)) } def wallet; end - # Attribute for field benefits - sig { returns(T.nilable(Benefits)) } - def benefits; end 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 def self.field_remappings @@ -36931,6 +37327,37 @@ module Stripe @field_remappings = {} end end + class Custom < ::Stripe::StripeObject + class Logo < ::Stripe::StripeObject + # Content type of the Dashboard-only CustomPaymentMethodType logo. + sig { returns(T.nilable(String)) } + def content_type; end + # URL of the Dashboard-only CustomPaymentMethodType logo. + sig { returns(String) } + def url; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Display name of the Dashboard-only CustomPaymentMethodType. + sig { returns(T.nilable(String)) } + def display_name; end + # Contains information about the Dashboard-only CustomPaymentMethodType logo. + sig { returns(T.nilable(Logo)) } + def logo; end + # ID of the Dashboard-only CustomPaymentMethodType. Not expandable. + sig { returns(String) } + def type; end + 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 = {} @@ -37643,6 +38070,9 @@ module Stripe # Attribute for field crypto sig { returns(T.nilable(Crypto)) } def crypto; end + # Attribute for field custom + sig { returns(T.nilable(Custom)) } + def custom; end # 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. sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end @@ -39387,6 +39817,9 @@ module Stripe end end class Rechnung < ::Stripe::StripeObject + # Payment portal URL. + sig { returns(T.nilable(String)) } + def payment_portal_url; end def self.inner_class_types @inner_class_types = {} end @@ -40166,6 +40599,20 @@ module Stripe params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptInformationalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) } def self.report_payment_attempt_informational(id, params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was refunded. + sig { + params(params: T.any(::Stripe::PaymentRecordReportRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_refund(params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was refunded. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def self.report_refund(id, params = {}, opts = {}); end end end # typed: true @@ -40302,7 +40749,7 @@ module Stripe } def self.list(params = {}, 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. sig { @@ -40310,7 +40757,7 @@ module Stripe } def reverse(params = {}, 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. sig { @@ -44640,6 +45087,17 @@ module Stripe @field_remappings = {} end end + class Crypto < ::Stripe::StripeObject + # The transaction hash of the refund. + sig { returns(T.nilable(String)) } + def reference; end + 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 = {} @@ -44920,6 +45378,9 @@ module Stripe # Attribute for field cashapp sig { returns(T.nilable(Cashapp)) } def cashapp; end + # Attribute for field crypto + sig { returns(T.nilable(Crypto)) } + def crypto; end # Attribute for field customer_cash_balance sig { returns(T.nilable(CustomerCashBalance)) } def customer_cash_balance; end @@ -45004,6 +45465,7 @@ module Stripe br_bank_transfer: BrBankTransfer, card: Card, cashapp: Cashapp, + crypto: Crypto, customer_cash_balance: CustomerCashBalance, eps: Eps, eu_bank_transfer: EuBankTransfer, @@ -46902,6 +47364,9 @@ module Stripe # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } def description; end + # Payment method types that are excluded from this SetupIntent. + sig { returns(T.nilable(T::Array[String])) } + def excluded_payment_method_types; end # 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. @@ -46946,6 +47411,9 @@ module Stripe # 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). sig { returns(T::Array[String]) } def payment_method_types; end + # Attribute for field setup_details + sig { returns(T.nilable(SetupDetails)) } + def setup_details; end # ID of the single_use Mandate generated by the SetupIntent. sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def single_use_mandate; end @@ -46957,9 +47425,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`. sig { returns(String) } def usage; end - # Attribute for field setup_details - sig { returns(T.nilable(SetupDetails)) } - def setup_details; end # You can cancel a SetupIntent object when it's in one of these statuses: requires_payment_method, requires_confirmation, or requires_action. # # After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can't cancel the SetupIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead. @@ -52420,6 +52885,17 @@ module Stripe @field_remappings = {} end end + class Tw < ::Stripe::StripeObject + # Type of registration in `country`. + sig { returns(String) } + def type; end + 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`. sig { returns(String) } @@ -52860,6 +53336,9 @@ module Stripe # Attribute for field tr sig { returns(T.nilable(Tr)) } def tr; end + # Attribute for field tw + sig { returns(T.nilable(Tw)) } + def tw; end # Attribute for field tz sig { returns(T.nilable(Tz)) } def tz; end @@ -52981,6 +53460,7 @@ module Stripe th: Th, tj: Tj, tr: Tr, + tw: Tw, tz: Tz, ua: Ua, ug: Ug, @@ -53897,6 +54377,23 @@ module Stripe @field_remappings = {} end end + class Gip < ::Stripe::StripeObject + # Fixed amounts displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def fixed_amounts; end + # Percentages displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def percentages; end + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + sig { returns(T.nilable(Integer)) } + def smart_tip_threshold; end + 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 sig { returns(T.nilable(T::Array[Integer])) } @@ -54128,6 +54625,9 @@ module Stripe # Attribute for field gbp sig { returns(T.nilable(Gbp)) } def gbp; end + # Attribute for field gip + sig { returns(T.nilable(Gip)) } + def gip; end # Attribute for field hkd sig { returns(T.nilable(Hkd)) } def hkd; end @@ -54175,6 +54675,7 @@ module Stripe dkk: Dkk, eur: Eur, gbp: Gbp, + gip: Gip, hkd: Hkd, huf: Huf, jpy: Jpy, @@ -54704,13 +55205,13 @@ module Stripe end class Selection < ::Stripe::StripeObject class Choice < ::Stripe::StripeObject - # The id to be selected + # The identifier for the selected choice. Maximum 50 characters. sig { returns(T.nilable(String)) } def id; end - # The button style for the choice + # The button style for the choice. Can be `primary` or `secondary`. sig { returns(T.nilable(String)) } def style; end - # The text to be selected + # The text to be selected. Maximum 30 characters. sig { returns(String) } def text; end def self.inner_class_types @@ -54759,16 +55260,16 @@ module Stripe end end class Toggle < ::Stripe::StripeObject - # The toggle's default value + # The toggle's default value. Can be `enabled` or `disabled`. sig { returns(T.nilable(String)) } def default_value; end - # The toggle's description text + # The toggle's description text. Maximum 50 characters. sig { returns(T.nilable(String)) } def description; end - # The toggle's title text + # The toggle's title text. Maximum 50 characters. sig { returns(T.nilable(String)) } def title; end - # The toggle's collected value + # The toggle's collected value. Can be `enabled` or `disabled`. sig { returns(T.nilable(String)) } def value; end def self.inner_class_types @@ -55083,10 +55584,10 @@ 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. sig { returns(T.nilable(Cart)) } def cart; end - # Type of information to be displayed by the reader. + # Type of information to be displayed by the reader. Only `cart` is currently supported. sig { returns(String) } def type; end def self.inner_class_types @@ -55162,6 +55663,9 @@ module Stripe # Custom label given to the reader for easier identification. sig { returns(String) } def label; end + # The last time this reader reported to Stripe backend. + sig { returns(T.nilable(Integer)) } + def last_seen_at; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } def livemode; end @@ -55183,49 +55687,49 @@ module Stripe # Always true for a deleted object sig { returns(T.nilable(T::Boolean)) } def deleted; 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. sig { params(params: T.any(::Stripe::Terminal::ReaderCancelActionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def cancel_action(params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderCancelActionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.cancel_action(reader, params = {}, opts = {}); 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. sig { params(params: T.any(::Stripe::Terminal::ReaderCollectInputsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def collect_inputs(params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectInputsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.collect_inputs(reader, params = {}, opts = {}); 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. sig { params(params: T.any(::Stripe::Terminal::ReaderCollectPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def collect_payment_method(params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.collect_payment_method(reader, params = {}, opts = {}); 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. sig { params(params: T.any(::Stripe::Terminal::ReaderConfirmPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def confirm_payment_intent(params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderConfirmPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } @@ -55255,49 +55759,49 @@ module Stripe } def self.list(params = {}, opts = {}); 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. sig { params(params: T.any(::Stripe::Terminal::ReaderProcessPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def process_payment_intent(params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.process_payment_intent(reader, params = {}, opts = {}); 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. sig { params(params: T.any(::Stripe::Terminal::ReaderProcessSetupIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def process_setup_intent(params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessSetupIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.process_setup_intent(reader, params = {}, opts = {}); 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. sig { params(params: T.any(::Stripe::Terminal::ReaderRefundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def refund_payment(params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderRefundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.refund_payment(reader, params = {}, opts = {}); end - # Sets reader display to show cart details. + # Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display). sig { params(params: T.any(::Stripe::Terminal::ReaderSetReaderDisplayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def set_reader_display(params = {}, opts = {}); end - # Sets reader display to show cart details. + # Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display). sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderSetReaderDisplayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } @@ -55630,6 +56134,12 @@ module Stripe # 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. sig { returns(T.nilable(String)) } def transfer_group; end + # Attribute for field application_fee + sig { returns(T.nilable(T.any(String, ::Stripe::ApplicationFee))) } + def application_fee; end + # Attribute for field application_fee_amount + sig { returns(T.nilable(Integer)) } + def application_fee_amount; end # 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. sig { params(params: T.any(::Stripe::TransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Transfer) @@ -63605,11 +64115,45 @@ 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. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + sig { returns(T::Boolean) } + def requested; end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + 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. sig { returns(T.nilable(BankAccounts)) } def bank_accounts; end + # Can provision a crypto wallet like financial address to credit a FinancialAccount. + sig { returns(T.nilable(CryptoWallets)) } + def crypto_wallets; end 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 @field_remappings = {} @@ -63678,14 +64222,48 @@ 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. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + sig { returns(T::Boolean) } + def requested; end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + 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. sig { returns(T.nilable(Gbp)) } def gbp; end # Can hold storage-type funds on Stripe in USD. sig { returns(T.nilable(Usd)) } def usd; end + # Can hold storage-type funds on Stripe in USDC. + sig { returns(T.nilable(Usdc)) } + def usdc; end 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 @field_remappings = {} @@ -63796,6 +64374,37 @@ 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. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + sig { returns(T::Boolean) } + def requested; end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + 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. @@ -63833,6 +64442,9 @@ module Stripe # Can send funds from a FinancialAccount to a debit card, owned by someone else. sig { returns(T.nilable(Cards)) } def cards; end + # Can send funds from a FinancialAccount to a crypto wallet, owned by someone else. + sig { returns(T.nilable(CryptoWallets)) } + def crypto_wallets; end # Can send funds from a FinancialAccount to another FinancialAccount, owned by someone else. sig { returns(T.nilable(FinancialAccounts)) } def financial_accounts; end @@ -63840,6 +64452,7 @@ module Stripe @inner_class_types = { bank_accounts: BankAccounts, cards: Cards, + crypto_wallets: CryptoWallets, financial_accounts: FinancialAccounts, } end @@ -63879,6 +64492,37 @@ 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. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + sig { returns(T::Boolean) } + def requested; end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + 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. @@ -63913,12 +64557,16 @@ module Stripe # Can send funds from a FinancialAccount, to a bank account, owned by yourself. sig { returns(T.nilable(BankAccounts)) } def bank_accounts; end + # Can send funds from a FinancialAccount to a crypto wallet, owned by yourself. + sig { returns(T.nilable(CryptoWallets)) } + def crypto_wallets; end # Can send funds from a FinancialAccount to another FinancialAccount, owned by yourself. sig { returns(T.nilable(FinancialAccounts)) } def financial_accounts; end def self.inner_class_types @inner_class_types = { bank_accounts: BankAccounts, + crypto_wallets: CryptoWallets, financial_accounts: FinancialAccounts, } end @@ -63954,14 +64602,67 @@ module Stripe @field_remappings = {} end end + class RegulatedActivity < ::Stripe::StripeObject + # A detailed description of the regulated activities the business is licensed to conduct. + sig { returns(T.nilable(String)) } + def description; end + # The license number or registration number assigned by the business's primary regulator. + sig { returns(T.nilable(String)) } + def license_number; end + # The country of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_country; end + # The name of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_name; end + 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. sig { returns(T::Boolean) } def applied; end # Capabilities that have been requested on the Storer Configuration. sig { returns(T.nilable(Capabilities)) } def capabilities; end + # List of high-risk activities the business is involved in. + sig { returns(T.nilable(T::Array[String])) } + def high_risk_activities; end + # An explanation of the high risk activities that the business performs. + sig { returns(T.nilable(String)) } + def high_risk_activities_description; end + # Description of the money services offered by the business. + sig { returns(T.nilable(String)) } + def money_services_description; end + # Does the business operate in any prohibited countries. + sig { returns(T.nilable(T::Boolean)) } + def operates_in_prohibited_countries; end + # Does the business participate in any regulated activity. + sig { returns(T.nilable(T::Boolean)) } + def participates_in_regulated_activity; end + # Primary purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds; end + # Description of the purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds_description; end + # Details of the regulated activity if the business participates in one. + sig { returns(T.nilable(RegulatedActivity)) } + def regulated_activity; end + # The source of funds for the business, e.g. profits, income, venture capital, etc. + sig { returns(T.nilable(String)) } + def source_of_funds; end + # Description of the source of funds for the business' account. + sig { returns(T.nilable(String)) } + def source_of_funds_description; end def self.inner_class_types - @inner_class_types = {capabilities: Capabilities} + @inner_class_types = { + capabilities: Capabilities, + regulated_activity: RegulatedActivity, + } end def self.field_remappings @field_remappings = {} @@ -64544,6 +65245,23 @@ module Stripe @field_remappings = {} 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. + sig { returns(T.nilable(String)) } + def date; end + # The IP address from which the Account's representative accepted the terms of service. + sig { returns(T.nilable(String)) } + def ip; end + # The user agent of the browser from which the Account's representative accepted the terms of service. + sig { returns(T.nilable(String)) } + def user_agent; end + 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. sig { returns(T.nilable(String)) } @@ -64567,11 +65285,19 @@ module Stripe # Details on the Account's acceptance of Issuing-specific terms of service. sig { returns(T.nilable(CardCreator)) } def card_creator; end + # Details on the Account's acceptance of Crypto-storer-specific terms of service. + sig { returns(T.nilable(CryptoStorer)) } + def crypto_storer; end # Details on the Account's acceptance of Treasury-specific terms of service. sig { returns(T.nilable(Storer)) } def storer; end 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 @field_remappings = {} @@ -64991,6 +65717,9 @@ module Stripe # The business gross annual revenue for its preceding fiscal year. sig { returns(T.nilable(AnnualRevenue)) } def annual_revenue; end + # A detailed description of the business's compliance and anti-money laundering controls and practices. + sig { returns(T.nilable(String)) } + def compliance_screening_description; end # Documents that may be submitted to satisfy various informational requests. sig { returns(T.nilable(Documents)) } def documents; end @@ -68201,6 +68930,9 @@ module Stripe # Freeform string set by originator of the ReceivedCredit. sig { returns(T.nilable(String)) } def description; end + # The amount and currency of the original/external credit request. + sig { returns(T.nilable(::Stripe::V2::Amount)) } + def external_amount; end # Financial Account ID on which funds for ReceivedCredit were received. sig { returns(String) } def financial_account; end @@ -68337,6 +69069,9 @@ module Stripe # Freeform string sent by the originator of the ReceivedDebit. sig { returns(T.nilable(String)) } def description; end + # The amount and currency of the original/external debit request. + sig { returns(T.nilable(::Stripe::V2::Amount)) } + def external_amount; end # Financial Account on which funds for ReceivedDebit were debited. sig { returns(String) } def financial_account; end @@ -70630,7 +71365,7 @@ module Stripe } def retrieve(account, params = {}, opts = {}); 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. sig { params(account: String, params: T.any(::Stripe::FinancialConnections::AccountSubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } @@ -71992,6 +72727,13 @@ module Stripe } def report_payment_attempt_informational(id, params = {}, opts = {}); end + # Report that the most recent payment attempt on the specified Payment Record + # was refunded. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_refund(id, params = {}, opts = {}); end + # Retrieves a Payment Record with the given ID sig { params(id: String, params: T.any(::Stripe::PaymentRecordRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) @@ -72030,7 +72772,7 @@ module Stripe } def retrieve(payout, params = {}, 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. sig { @@ -73342,25 +74084,25 @@ end 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderCancelActionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def cancel_action(reader, params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectInputsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def collect_inputs(reader, params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def collect_payment_method(reader, params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderConfirmPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } @@ -73384,19 +74126,19 @@ module Stripe } def list(params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def process_payment_intent(reader, params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessSetupIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def process_setup_intent(reader, params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderRefundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } @@ -73408,7 +74150,7 @@ module Stripe } def retrieve(reader, params = {}, opts = {}); end - # Sets reader display to show cart details. + # Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display). sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderSetReaderDisplayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } @@ -79345,6 +80087,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. @@ -79471,6 +80234,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 @@ -79501,7 +80271,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, @@ -79521,6 +80291,7 @@ module Stripe phone: nil, registration_date: nil, registration_number: nil, + representative_declaration: nil, structure: nil, tax_id: nil, tax_id_registrar: nil, @@ -82636,6 +83407,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. @@ -82762,6 +83554,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 @@ -82792,7 +83591,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, @@ -82812,6 +83611,7 @@ module Stripe phone: nil, registration_date: nil, registration_number: nil, + representative_declaration: nil, structure: nil, tax_id: nil, tax_id_registrar: nil, @@ -85405,10 +86205,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)) } @@ -85453,7 +86253,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, @@ -85812,6 +86612,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 meter’s name. Not visible to the customer. sig { returns(String) } def display_name; end @@ -85839,25 +86646,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 @@ -86016,8 +86816,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 @@ -86375,8 +87182,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 @@ -90092,7 +90906,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)) } @@ -90104,14 +90918,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 { @@ -92474,6 +93288,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`. @@ -92860,6 +93689,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)) @@ -92877,7 +93713,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, @@ -92922,6 +93758,7 @@ module Stripe sepa_debit: nil, sofort: nil, swish: nil, + twint: nil, us_bank_account: nil, wechat_pay: nil ); end @@ -97148,6 +97985,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. @@ -97232,6 +98183,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 @@ -97239,6 +98226,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 @@ -97253,10 +98254,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) } @@ -98883,58 +99898,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) } @@ -98994,13 +99957,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 @@ -99021,7 +99977,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, @@ -99032,7 +99988,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 @@ -99044,6 +99999,58 @@ end 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 @@ -99054,8 +100061,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 @@ -118911,10 +119927,15 @@ 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 # typed: true @@ -119032,15 +120053,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 system’s 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. @@ -120386,6 +121417,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 @@ -120431,25 +121469,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 @@ -124804,15 +125835,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 system’s 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. @@ -126125,6 +127166,13 @@ module Stripe starts_at: nil ); end end + # Benefit details for this PaymentIntent + sig { returns(T.nilable(PaymentIntentUpdateParams::PaymentDetails::Benefit)) } + def benefit; end + sig { + params(_benefit: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Benefit)).returns(T.nilable(PaymentIntentUpdateParams::PaymentDetails::Benefit)) + } + def benefit=(_benefit); end # Car rental details for this PaymentIntent. sig { returns(T.nilable(PaymentIntentUpdateParams::PaymentDetails::CarRental)) } def car_rental; end @@ -126170,25 +127218,18 @@ module Stripe params(_subscription: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Subscription)).returns(T.nilable(PaymentIntentUpdateParams::PaymentDetails::Subscription)) } def subscription=(_subscription); end - # Benefit details for this PaymentIntent - sig { returns(T.nilable(PaymentIntentUpdateParams::PaymentDetails::Benefit)) } - def benefit; end sig { - params(_benefit: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Benefit)).returns(T.nilable(PaymentIntentUpdateParams::PaymentDetails::Benefit)) - } - def benefit=(_benefit); end - sig { - params(car_rental: T.nilable(PaymentIntentUpdateParams::PaymentDetails::CarRental), customer_reference: T.nilable(String), event_details: T.nilable(PaymentIntentUpdateParams::PaymentDetails::EventDetails), flight: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Flight), lodging: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Lodging), order_reference: T.nilable(String), subscription: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Subscription), benefit: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Benefit)).void + params(benefit: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Benefit), car_rental: T.nilable(PaymentIntentUpdateParams::PaymentDetails::CarRental), customer_reference: T.nilable(String), event_details: T.nilable(PaymentIntentUpdateParams::PaymentDetails::EventDetails), flight: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Flight), lodging: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Lodging), order_reference: T.nilable(String), subscription: T.nilable(PaymentIntentUpdateParams::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 @@ -130515,15 +131556,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 system’s 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. @@ -131957,15 +133008,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 system’s 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. @@ -133297,6 +134358,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 @@ -133342,25 +134410,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 @@ -137687,15 +138748,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 system’s 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. @@ -138804,6 +139875,54 @@ module Stripe } def initialize(adjustable_quantity: nil, price: nil, price_data: nil, quantity: nil); end end + class NameCollection < ::Stripe::RequestParams + class Business < ::Stripe::RequestParams + # Enable business name collection on the payment link. Defaults to `false`. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # Whether the customer is required to provide their business name before checking out. Defaults to `false`. + sig { returns(T.nilable(T::Boolean)) } + def optional; end + sig { params(_optional: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def optional=(_optional); end + sig { params(enabled: T::Boolean, optional: T.nilable(T::Boolean)).void } + def initialize(enabled: nil, optional: nil); end + end + class Individual < ::Stripe::RequestParams + # Enable individual name collection on the payment link. Defaults to `false`. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # Whether the customer is required to provide their full name before checking out. Defaults to `false`. + sig { returns(T.nilable(T::Boolean)) } + def optional; end + sig { params(_optional: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def optional=(_optional); end + sig { params(enabled: T::Boolean, optional: T.nilable(T::Boolean)).void } + def initialize(enabled: nil, optional: nil); end + end + # Controls settings applied for collecting the customer's business name. + sig { returns(T.nilable(PaymentLinkCreateParams::NameCollection::Business)) } + def business; end + sig { + params(_business: T.nilable(PaymentLinkCreateParams::NameCollection::Business)).returns(T.nilable(PaymentLinkCreateParams::NameCollection::Business)) + } + def business=(_business); end + # Controls settings applied for collecting the customer's individual name. + sig { returns(T.nilable(PaymentLinkCreateParams::NameCollection::Individual)) } + def individual; end + sig { + params(_individual: T.nilable(PaymentLinkCreateParams::NameCollection::Individual)).returns(T.nilable(PaymentLinkCreateParams::NameCollection::Individual)) + } + def individual=(_individual); end + sig { + params(business: T.nilable(PaymentLinkCreateParams::NameCollection::Business), individual: T.nilable(PaymentLinkCreateParams::NameCollection::Individual)).void + } + def initialize(business: nil, individual: nil); end + end class OptionalItem < ::Stripe::RequestParams class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative integer. @@ -139182,6 +140301,13 @@ module Stripe params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) } def metadata=(_metadata); end + # Controls settings applied for collecting the customer's name. + sig { returns(T.nilable(PaymentLinkCreateParams::NameCollection)) } + def name_collection; end + sig { + params(_name_collection: T.nilable(PaymentLinkCreateParams::NameCollection)).returns(T.nilable(PaymentLinkCreateParams::NameCollection)) + } + def name_collection=(_name_collection); end # The account on behalf of which to charge. sig { returns(T.nilable(String)) } def on_behalf_of; end @@ -139276,7 +140402,7 @@ module Stripe } def transfer_data=(_transfer_data); end sig { - params(after_completion: T.nilable(PaymentLinkCreateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), application_fee_amount: T.nilable(Integer), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(PaymentLinkCreateParams::AutomaticTax), billing_address_collection: T.nilable(String), consent_collection: T.nilable(PaymentLinkCreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[PaymentLinkCreateParams::CustomField]), custom_text: T.nilable(PaymentLinkCreateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(PaymentLinkCreateParams::InvoiceCreation), line_items: T::Array[PaymentLinkCreateParams::LineItem], metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), optional_items: T.nilable(T::Array[PaymentLinkCreateParams::OptionalItem]), payment_intent_data: T.nilable(PaymentLinkCreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T::Array[String]), phone_number_collection: T.nilable(PaymentLinkCreateParams::PhoneNumberCollection), restrictions: T.nilable(PaymentLinkCreateParams::Restrictions), shipping_address_collection: T.nilable(PaymentLinkCreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[PaymentLinkCreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(PaymentLinkCreateParams::SubscriptionData), tax_id_collection: T.nilable(PaymentLinkCreateParams::TaxIdCollection), transfer_data: T.nilable(PaymentLinkCreateParams::TransferData)).void + params(after_completion: T.nilable(PaymentLinkCreateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), application_fee_amount: T.nilable(Integer), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(PaymentLinkCreateParams::AutomaticTax), billing_address_collection: T.nilable(String), consent_collection: T.nilable(PaymentLinkCreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[PaymentLinkCreateParams::CustomField]), custom_text: T.nilable(PaymentLinkCreateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(PaymentLinkCreateParams::InvoiceCreation), line_items: T::Array[PaymentLinkCreateParams::LineItem], metadata: T.nilable(T::Hash[String, String]), name_collection: T.nilable(PaymentLinkCreateParams::NameCollection), on_behalf_of: T.nilable(String), optional_items: T.nilable(T::Array[PaymentLinkCreateParams::OptionalItem]), payment_intent_data: T.nilable(PaymentLinkCreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T::Array[String]), phone_number_collection: T.nilable(PaymentLinkCreateParams::PhoneNumberCollection), restrictions: T.nilable(PaymentLinkCreateParams::Restrictions), shipping_address_collection: T.nilable(PaymentLinkCreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[PaymentLinkCreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(PaymentLinkCreateParams::SubscriptionData), tax_id_collection: T.nilable(PaymentLinkCreateParams::TaxIdCollection), transfer_data: T.nilable(PaymentLinkCreateParams::TransferData)).void } def initialize( after_completion: nil, @@ -139295,6 +140421,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, @@ -139786,6 +140913,54 @@ module Stripe } def initialize(adjustable_quantity: nil, id: nil, quantity: nil); end end + class NameCollection < ::Stripe::RequestParams + class Business < ::Stripe::RequestParams + # Enable business name collection on the payment link. Defaults to `false`. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # Whether the customer is required to provide their business name before checking out. Defaults to `false`. + sig { returns(T.nilable(T::Boolean)) } + def optional; end + sig { params(_optional: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def optional=(_optional); end + sig { params(enabled: T::Boolean, optional: T.nilable(T::Boolean)).void } + def initialize(enabled: nil, optional: nil); end + end + class Individual < ::Stripe::RequestParams + # Enable individual name collection on the payment link. Defaults to `false`. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # Whether the customer is required to provide their full name before checking out. Defaults to `false`. + sig { returns(T.nilable(T::Boolean)) } + def optional; end + sig { params(_optional: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def optional=(_optional); end + sig { params(enabled: T::Boolean, optional: T.nilable(T::Boolean)).void } + def initialize(enabled: nil, optional: nil); end + end + # Controls settings applied for collecting the customer's business name. + sig { returns(T.nilable(PaymentLinkUpdateParams::NameCollection::Business)) } + def business; end + sig { + params(_business: T.nilable(PaymentLinkUpdateParams::NameCollection::Business)).returns(T.nilable(PaymentLinkUpdateParams::NameCollection::Business)) + } + def business=(_business); end + # Controls settings applied for collecting the customer's individual name. + sig { returns(T.nilable(PaymentLinkUpdateParams::NameCollection::Individual)) } + def individual; end + sig { + params(_individual: T.nilable(PaymentLinkUpdateParams::NameCollection::Individual)).returns(T.nilable(PaymentLinkUpdateParams::NameCollection::Individual)) + } + def individual=(_individual); end + sig { + params(business: T.nilable(PaymentLinkUpdateParams::NameCollection::Business), individual: T.nilable(PaymentLinkUpdateParams::NameCollection::Individual)).void + } + def initialize(business: nil, individual: nil); end + end class PaymentIntentData < ::Stripe::RequestParams # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } @@ -140053,6 +141228,13 @@ module Stripe params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) } def metadata=(_metadata); end + # Controls settings applied for collecting the customer's name. + sig { returns(T.nilable(T.any(String, PaymentLinkUpdateParams::NameCollection))) } + def name_collection; end + sig { + params(_name_collection: T.nilable(T.any(String, PaymentLinkUpdateParams::NameCollection))).returns(T.nilable(T.any(String, PaymentLinkUpdateParams::NameCollection))) + } + def name_collection=(_name_collection); end # A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode. sig { returns(T.nilable(PaymentLinkUpdateParams::PaymentIntentData)) } def payment_intent_data; end @@ -140119,7 +141301,7 @@ module Stripe } def tax_id_collection=(_tax_id_collection); end sig { - params(active: T.nilable(T::Boolean), after_completion: T.nilable(PaymentLinkUpdateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(PaymentLinkUpdateParams::AutomaticTax), billing_address_collection: T.nilable(String), custom_fields: T.nilable(T.any(String, T::Array[PaymentLinkUpdateParams::CustomField])), custom_text: T.nilable(PaymentLinkUpdateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(PaymentLinkUpdateParams::InvoiceCreation), line_items: T.nilable(T::Array[PaymentLinkUpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), payment_intent_data: T.nilable(PaymentLinkUpdateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T.any(String, T::Array[String])), phone_number_collection: T.nilable(PaymentLinkUpdateParams::PhoneNumberCollection), restrictions: T.nilable(T.any(String, PaymentLinkUpdateParams::Restrictions)), shipping_address_collection: T.nilable(T.any(String, PaymentLinkUpdateParams::ShippingAddressCollection)), submit_type: T.nilable(String), subscription_data: T.nilable(PaymentLinkUpdateParams::SubscriptionData), tax_id_collection: T.nilable(PaymentLinkUpdateParams::TaxIdCollection)).void + params(active: T.nilable(T::Boolean), after_completion: T.nilable(PaymentLinkUpdateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(PaymentLinkUpdateParams::AutomaticTax), billing_address_collection: T.nilable(String), custom_fields: T.nilable(T.any(String, T::Array[PaymentLinkUpdateParams::CustomField])), custom_text: T.nilable(PaymentLinkUpdateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(PaymentLinkUpdateParams::InvoiceCreation), line_items: T.nilable(T::Array[PaymentLinkUpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), name_collection: T.nilable(T.any(String, PaymentLinkUpdateParams::NameCollection)), payment_intent_data: T.nilable(PaymentLinkUpdateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T.any(String, T::Array[String])), phone_number_collection: T.nilable(PaymentLinkUpdateParams::PhoneNumberCollection), restrictions: T.nilable(T.any(String, PaymentLinkUpdateParams::Restrictions)), shipping_address_collection: T.nilable(T.any(String, PaymentLinkUpdateParams::ShippingAddressCollection)), submit_type: T.nilable(String), subscription_data: T.nilable(PaymentLinkUpdateParams::SubscriptionData), tax_id_collection: T.nilable(PaymentLinkUpdateParams::TaxIdCollection)).void } def initialize( active: nil, @@ -140135,6 +141317,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, @@ -140611,6 +141794,28 @@ module Stripe } def initialize(display_preference: nil); end end + class Crypto < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::Crypto::DisplayPreference)) } + def display_preference; end + sig { + params(_display_preference: T.nilable(PaymentMethodConfigurationCreateParams::Crypto::DisplayPreference)).returns(T.nilable(PaymentMethodConfigurationCreateParams::Crypto::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(PaymentMethodConfigurationCreateParams::Crypto::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end class CustomerBalance < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -140973,6 +142178,28 @@ module Stripe } def initialize(display_preference: nil); end end + class MbWay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::MbWay::DisplayPreference)) } + def display_preference; end + sig { + params(_display_preference: T.nilable(PaymentMethodConfigurationCreateParams::MbWay::DisplayPreference)).returns(T.nilable(PaymentMethodConfigurationCreateParams::MbWay::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(PaymentMethodConfigurationCreateParams::MbWay::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end class Mobilepay < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -141690,6 +142917,13 @@ module Stripe params(_cashapp: T.nilable(PaymentMethodConfigurationCreateParams::Cashapp)).returns(T.nilable(PaymentMethodConfigurationCreateParams::Cashapp)) } def cashapp=(_cashapp); end + # [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. + sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::Crypto)) } + def crypto; end + sig { + params(_crypto: T.nilable(PaymentMethodConfigurationCreateParams::Crypto)).returns(T.nilable(PaymentMethodConfigurationCreateParams::Crypto)) + } + def crypto=(_crypto); end # Uses a customer’s [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. sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::CustomerBalance)) } def customer_balance; end @@ -141807,6 +143041,13 @@ module Stripe params(_link: T.nilable(PaymentMethodConfigurationCreateParams::Link)).returns(T.nilable(PaymentMethodConfigurationCreateParams::Link)) } def link=(_link); end + # 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. + sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::MbWay)) } + def mb_way; end + sig { + params(_mb_way: T.nilable(PaymentMethodConfigurationCreateParams::MbWay)).returns(T.nilable(PaymentMethodConfigurationCreateParams::MbWay)) + } + def mb_way=(_mb_way); end # 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. sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::Mobilepay)) } def mobilepay; end @@ -142000,7 +143241,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(PaymentMethodConfigurationCreateParams::AcssDebit), affirm: T.nilable(PaymentMethodConfigurationCreateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodConfigurationCreateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodConfigurationCreateParams::Alipay), alma: T.nilable(PaymentMethodConfigurationCreateParams::Alma), amazon_pay: T.nilable(PaymentMethodConfigurationCreateParams::AmazonPay), apple_pay: T.nilable(PaymentMethodConfigurationCreateParams::ApplePay), apple_pay_later: T.nilable(PaymentMethodConfigurationCreateParams::ApplePayLater), au_becs_debit: T.nilable(PaymentMethodConfigurationCreateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodConfigurationCreateParams::BacsDebit), bancontact: T.nilable(PaymentMethodConfigurationCreateParams::Bancontact), billie: T.nilable(PaymentMethodConfigurationCreateParams::Billie), blik: T.nilable(PaymentMethodConfigurationCreateParams::Blik), boleto: T.nilable(PaymentMethodConfigurationCreateParams::Boleto), card: T.nilable(PaymentMethodConfigurationCreateParams::Card), cartes_bancaires: T.nilable(PaymentMethodConfigurationCreateParams::CartesBancaires), cashapp: T.nilable(PaymentMethodConfigurationCreateParams::Cashapp), customer_balance: T.nilable(PaymentMethodConfigurationCreateParams::CustomerBalance), eps: T.nilable(PaymentMethodConfigurationCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodConfigurationCreateParams::Fpx), fr_meal_voucher_conecs: T.nilable(PaymentMethodConfigurationCreateParams::FrMealVoucherConecs), giropay: T.nilable(PaymentMethodConfigurationCreateParams::Giropay), google_pay: T.nilable(PaymentMethodConfigurationCreateParams::GooglePay), gopay: T.nilable(PaymentMethodConfigurationCreateParams::Gopay), grabpay: T.nilable(PaymentMethodConfigurationCreateParams::Grabpay), id_bank_transfer: T.nilable(PaymentMethodConfigurationCreateParams::IdBankTransfer), ideal: T.nilable(PaymentMethodConfigurationCreateParams::Ideal), jcb: T.nilable(PaymentMethodConfigurationCreateParams::Jcb), kakao_pay: T.nilable(PaymentMethodConfigurationCreateParams::KakaoPay), klarna: T.nilable(PaymentMethodConfigurationCreateParams::Klarna), konbini: T.nilable(PaymentMethodConfigurationCreateParams::Konbini), kr_card: T.nilable(PaymentMethodConfigurationCreateParams::KrCard), link: T.nilable(PaymentMethodConfigurationCreateParams::Link), mobilepay: T.nilable(PaymentMethodConfigurationCreateParams::Mobilepay), multibanco: T.nilable(PaymentMethodConfigurationCreateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(PaymentMethodConfigurationCreateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodConfigurationCreateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodConfigurationCreateParams::Oxxo), p24: T.nilable(PaymentMethodConfigurationCreateParams::P24), parent: T.nilable(String), pay_by_bank: T.nilable(PaymentMethodConfigurationCreateParams::PayByBank), payco: T.nilable(PaymentMethodConfigurationCreateParams::Payco), paynow: T.nilable(PaymentMethodConfigurationCreateParams::Paynow), paypal: T.nilable(PaymentMethodConfigurationCreateParams::Paypal), paypay: T.nilable(PaymentMethodConfigurationCreateParams::Paypay), payto: T.nilable(PaymentMethodConfigurationCreateParams::Payto), pix: T.nilable(PaymentMethodConfigurationCreateParams::Pix), promptpay: T.nilable(PaymentMethodConfigurationCreateParams::Promptpay), qris: T.nilable(PaymentMethodConfigurationCreateParams::Qris), revolut_pay: T.nilable(PaymentMethodConfigurationCreateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodConfigurationCreateParams::SamsungPay), satispay: T.nilable(PaymentMethodConfigurationCreateParams::Satispay), sepa_debit: T.nilable(PaymentMethodConfigurationCreateParams::SepaDebit), shopeepay: T.nilable(PaymentMethodConfigurationCreateParams::Shopeepay), sofort: T.nilable(PaymentMethodConfigurationCreateParams::Sofort), swish: T.nilable(PaymentMethodConfigurationCreateParams::Swish), twint: T.nilable(PaymentMethodConfigurationCreateParams::Twint), us_bank_account: T.nilable(PaymentMethodConfigurationCreateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodConfigurationCreateParams::WechatPay), zip: T.nilable(PaymentMethodConfigurationCreateParams::Zip)).void + params(acss_debit: T.nilable(PaymentMethodConfigurationCreateParams::AcssDebit), affirm: T.nilable(PaymentMethodConfigurationCreateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodConfigurationCreateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodConfigurationCreateParams::Alipay), alma: T.nilable(PaymentMethodConfigurationCreateParams::Alma), amazon_pay: T.nilable(PaymentMethodConfigurationCreateParams::AmazonPay), apple_pay: T.nilable(PaymentMethodConfigurationCreateParams::ApplePay), apple_pay_later: T.nilable(PaymentMethodConfigurationCreateParams::ApplePayLater), au_becs_debit: T.nilable(PaymentMethodConfigurationCreateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodConfigurationCreateParams::BacsDebit), bancontact: T.nilable(PaymentMethodConfigurationCreateParams::Bancontact), billie: T.nilable(PaymentMethodConfigurationCreateParams::Billie), blik: T.nilable(PaymentMethodConfigurationCreateParams::Blik), boleto: T.nilable(PaymentMethodConfigurationCreateParams::Boleto), card: T.nilable(PaymentMethodConfigurationCreateParams::Card), cartes_bancaires: T.nilable(PaymentMethodConfigurationCreateParams::CartesBancaires), cashapp: T.nilable(PaymentMethodConfigurationCreateParams::Cashapp), crypto: T.nilable(PaymentMethodConfigurationCreateParams::Crypto), customer_balance: T.nilable(PaymentMethodConfigurationCreateParams::CustomerBalance), eps: T.nilable(PaymentMethodConfigurationCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodConfigurationCreateParams::Fpx), fr_meal_voucher_conecs: T.nilable(PaymentMethodConfigurationCreateParams::FrMealVoucherConecs), giropay: T.nilable(PaymentMethodConfigurationCreateParams::Giropay), google_pay: T.nilable(PaymentMethodConfigurationCreateParams::GooglePay), gopay: T.nilable(PaymentMethodConfigurationCreateParams::Gopay), grabpay: T.nilable(PaymentMethodConfigurationCreateParams::Grabpay), id_bank_transfer: T.nilable(PaymentMethodConfigurationCreateParams::IdBankTransfer), ideal: T.nilable(PaymentMethodConfigurationCreateParams::Ideal), jcb: T.nilable(PaymentMethodConfigurationCreateParams::Jcb), kakao_pay: T.nilable(PaymentMethodConfigurationCreateParams::KakaoPay), klarna: T.nilable(PaymentMethodConfigurationCreateParams::Klarna), konbini: T.nilable(PaymentMethodConfigurationCreateParams::Konbini), kr_card: T.nilable(PaymentMethodConfigurationCreateParams::KrCard), link: T.nilable(PaymentMethodConfigurationCreateParams::Link), mb_way: T.nilable(PaymentMethodConfigurationCreateParams::MbWay), mobilepay: T.nilable(PaymentMethodConfigurationCreateParams::Mobilepay), multibanco: T.nilable(PaymentMethodConfigurationCreateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(PaymentMethodConfigurationCreateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodConfigurationCreateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodConfigurationCreateParams::Oxxo), p24: T.nilable(PaymentMethodConfigurationCreateParams::P24), parent: T.nilable(String), pay_by_bank: T.nilable(PaymentMethodConfigurationCreateParams::PayByBank), payco: T.nilable(PaymentMethodConfigurationCreateParams::Payco), paynow: T.nilable(PaymentMethodConfigurationCreateParams::Paynow), paypal: T.nilable(PaymentMethodConfigurationCreateParams::Paypal), paypay: T.nilable(PaymentMethodConfigurationCreateParams::Paypay), payto: T.nilable(PaymentMethodConfigurationCreateParams::Payto), pix: T.nilable(PaymentMethodConfigurationCreateParams::Pix), promptpay: T.nilable(PaymentMethodConfigurationCreateParams::Promptpay), qris: T.nilable(PaymentMethodConfigurationCreateParams::Qris), revolut_pay: T.nilable(PaymentMethodConfigurationCreateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodConfigurationCreateParams::SamsungPay), satispay: T.nilable(PaymentMethodConfigurationCreateParams::Satispay), sepa_debit: T.nilable(PaymentMethodConfigurationCreateParams::SepaDebit), shopeepay: T.nilable(PaymentMethodConfigurationCreateParams::Shopeepay), sofort: T.nilable(PaymentMethodConfigurationCreateParams::Sofort), swish: T.nilable(PaymentMethodConfigurationCreateParams::Swish), twint: T.nilable(PaymentMethodConfigurationCreateParams::Twint), us_bank_account: T.nilable(PaymentMethodConfigurationCreateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodConfigurationCreateParams::WechatPay), zip: T.nilable(PaymentMethodConfigurationCreateParams::Zip)).void } def initialize( acss_debit: nil, @@ -142020,6 +143261,7 @@ module Stripe card: nil, cartes_bancaires: nil, cashapp: nil, + crypto: nil, customer_balance: nil, eps: nil, expand: nil, @@ -142037,6 +143279,7 @@ module Stripe konbini: nil, kr_card: nil, link: nil, + mb_way: nil, mobilepay: nil, multibanco: nil, name: nil, @@ -142463,6 +143706,28 @@ module Stripe } def initialize(display_preference: nil); end end + class Crypto < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::Crypto::DisplayPreference)) } + def display_preference; end + sig { + params(_display_preference: T.nilable(PaymentMethodConfigurationUpdateParams::Crypto::DisplayPreference)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::Crypto::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(PaymentMethodConfigurationUpdateParams::Crypto::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end class CustomerBalance < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -142825,6 +144090,28 @@ module Stripe } def initialize(display_preference: nil); end end + class MbWay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::MbWay::DisplayPreference)) } + def display_preference; end + sig { + params(_display_preference: T.nilable(PaymentMethodConfigurationUpdateParams::MbWay::DisplayPreference)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::MbWay::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(PaymentMethodConfigurationUpdateParams::MbWay::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end class Mobilepay < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -143547,6 +144834,13 @@ module Stripe params(_cashapp: T.nilable(PaymentMethodConfigurationUpdateParams::Cashapp)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::Cashapp)) } def cashapp=(_cashapp); end + # [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. + sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::Crypto)) } + def crypto; end + sig { + params(_crypto: T.nilable(PaymentMethodConfigurationUpdateParams::Crypto)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::Crypto)) + } + def crypto=(_crypto); end # Uses a customer’s [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. sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::CustomerBalance)) } def customer_balance; end @@ -143664,6 +144958,13 @@ module Stripe params(_link: T.nilable(PaymentMethodConfigurationUpdateParams::Link)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::Link)) } def link=(_link); end + # 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. + sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::MbWay)) } + def mb_way; end + sig { + params(_mb_way: T.nilable(PaymentMethodConfigurationUpdateParams::MbWay)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::MbWay)) + } + def mb_way=(_mb_way); end # 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. sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::Mobilepay)) } def mobilepay; end @@ -143852,7 +145153,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(PaymentMethodConfigurationUpdateParams::AcssDebit), active: T.nilable(T::Boolean), affirm: T.nilable(PaymentMethodConfigurationUpdateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodConfigurationUpdateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodConfigurationUpdateParams::Alipay), alma: T.nilable(PaymentMethodConfigurationUpdateParams::Alma), amazon_pay: T.nilable(PaymentMethodConfigurationUpdateParams::AmazonPay), apple_pay: T.nilable(PaymentMethodConfigurationUpdateParams::ApplePay), apple_pay_later: T.nilable(PaymentMethodConfigurationUpdateParams::ApplePayLater), au_becs_debit: T.nilable(PaymentMethodConfigurationUpdateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodConfigurationUpdateParams::BacsDebit), bancontact: T.nilable(PaymentMethodConfigurationUpdateParams::Bancontact), billie: T.nilable(PaymentMethodConfigurationUpdateParams::Billie), blik: T.nilable(PaymentMethodConfigurationUpdateParams::Blik), boleto: T.nilable(PaymentMethodConfigurationUpdateParams::Boleto), card: T.nilable(PaymentMethodConfigurationUpdateParams::Card), cartes_bancaires: T.nilable(PaymentMethodConfigurationUpdateParams::CartesBancaires), cashapp: T.nilable(PaymentMethodConfigurationUpdateParams::Cashapp), customer_balance: T.nilable(PaymentMethodConfigurationUpdateParams::CustomerBalance), eps: T.nilable(PaymentMethodConfigurationUpdateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodConfigurationUpdateParams::Fpx), fr_meal_voucher_conecs: T.nilable(PaymentMethodConfigurationUpdateParams::FrMealVoucherConecs), giropay: T.nilable(PaymentMethodConfigurationUpdateParams::Giropay), google_pay: T.nilable(PaymentMethodConfigurationUpdateParams::GooglePay), gopay: T.nilable(PaymentMethodConfigurationUpdateParams::Gopay), grabpay: T.nilable(PaymentMethodConfigurationUpdateParams::Grabpay), id_bank_transfer: T.nilable(PaymentMethodConfigurationUpdateParams::IdBankTransfer), ideal: T.nilable(PaymentMethodConfigurationUpdateParams::Ideal), jcb: T.nilable(PaymentMethodConfigurationUpdateParams::Jcb), kakao_pay: T.nilable(PaymentMethodConfigurationUpdateParams::KakaoPay), klarna: T.nilable(PaymentMethodConfigurationUpdateParams::Klarna), konbini: T.nilable(PaymentMethodConfigurationUpdateParams::Konbini), kr_card: T.nilable(PaymentMethodConfigurationUpdateParams::KrCard), link: T.nilable(PaymentMethodConfigurationUpdateParams::Link), mobilepay: T.nilable(PaymentMethodConfigurationUpdateParams::Mobilepay), multibanco: T.nilable(PaymentMethodConfigurationUpdateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(PaymentMethodConfigurationUpdateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodConfigurationUpdateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodConfigurationUpdateParams::Oxxo), p24: T.nilable(PaymentMethodConfigurationUpdateParams::P24), pay_by_bank: T.nilable(PaymentMethodConfigurationUpdateParams::PayByBank), payco: T.nilable(PaymentMethodConfigurationUpdateParams::Payco), paynow: T.nilable(PaymentMethodConfigurationUpdateParams::Paynow), paypal: T.nilable(PaymentMethodConfigurationUpdateParams::Paypal), paypay: T.nilable(PaymentMethodConfigurationUpdateParams::Paypay), payto: T.nilable(PaymentMethodConfigurationUpdateParams::Payto), pix: T.nilable(PaymentMethodConfigurationUpdateParams::Pix), promptpay: T.nilable(PaymentMethodConfigurationUpdateParams::Promptpay), qris: T.nilable(PaymentMethodConfigurationUpdateParams::Qris), revolut_pay: T.nilable(PaymentMethodConfigurationUpdateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodConfigurationUpdateParams::SamsungPay), satispay: T.nilable(PaymentMethodConfigurationUpdateParams::Satispay), sepa_debit: T.nilable(PaymentMethodConfigurationUpdateParams::SepaDebit), shopeepay: T.nilable(PaymentMethodConfigurationUpdateParams::Shopeepay), sofort: T.nilable(PaymentMethodConfigurationUpdateParams::Sofort), swish: T.nilable(PaymentMethodConfigurationUpdateParams::Swish), twint: T.nilable(PaymentMethodConfigurationUpdateParams::Twint), us_bank_account: T.nilable(PaymentMethodConfigurationUpdateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodConfigurationUpdateParams::WechatPay), zip: T.nilable(PaymentMethodConfigurationUpdateParams::Zip)).void + params(acss_debit: T.nilable(PaymentMethodConfigurationUpdateParams::AcssDebit), active: T.nilable(T::Boolean), affirm: T.nilable(PaymentMethodConfigurationUpdateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodConfigurationUpdateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodConfigurationUpdateParams::Alipay), alma: T.nilable(PaymentMethodConfigurationUpdateParams::Alma), amazon_pay: T.nilable(PaymentMethodConfigurationUpdateParams::AmazonPay), apple_pay: T.nilable(PaymentMethodConfigurationUpdateParams::ApplePay), apple_pay_later: T.nilable(PaymentMethodConfigurationUpdateParams::ApplePayLater), au_becs_debit: T.nilable(PaymentMethodConfigurationUpdateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodConfigurationUpdateParams::BacsDebit), bancontact: T.nilable(PaymentMethodConfigurationUpdateParams::Bancontact), billie: T.nilable(PaymentMethodConfigurationUpdateParams::Billie), blik: T.nilable(PaymentMethodConfigurationUpdateParams::Blik), boleto: T.nilable(PaymentMethodConfigurationUpdateParams::Boleto), card: T.nilable(PaymentMethodConfigurationUpdateParams::Card), cartes_bancaires: T.nilable(PaymentMethodConfigurationUpdateParams::CartesBancaires), cashapp: T.nilable(PaymentMethodConfigurationUpdateParams::Cashapp), crypto: T.nilable(PaymentMethodConfigurationUpdateParams::Crypto), customer_balance: T.nilable(PaymentMethodConfigurationUpdateParams::CustomerBalance), eps: T.nilable(PaymentMethodConfigurationUpdateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodConfigurationUpdateParams::Fpx), fr_meal_voucher_conecs: T.nilable(PaymentMethodConfigurationUpdateParams::FrMealVoucherConecs), giropay: T.nilable(PaymentMethodConfigurationUpdateParams::Giropay), google_pay: T.nilable(PaymentMethodConfigurationUpdateParams::GooglePay), gopay: T.nilable(PaymentMethodConfigurationUpdateParams::Gopay), grabpay: T.nilable(PaymentMethodConfigurationUpdateParams::Grabpay), id_bank_transfer: T.nilable(PaymentMethodConfigurationUpdateParams::IdBankTransfer), ideal: T.nilable(PaymentMethodConfigurationUpdateParams::Ideal), jcb: T.nilable(PaymentMethodConfigurationUpdateParams::Jcb), kakao_pay: T.nilable(PaymentMethodConfigurationUpdateParams::KakaoPay), klarna: T.nilable(PaymentMethodConfigurationUpdateParams::Klarna), konbini: T.nilable(PaymentMethodConfigurationUpdateParams::Konbini), kr_card: T.nilable(PaymentMethodConfigurationUpdateParams::KrCard), link: T.nilable(PaymentMethodConfigurationUpdateParams::Link), mb_way: T.nilable(PaymentMethodConfigurationUpdateParams::MbWay), mobilepay: T.nilable(PaymentMethodConfigurationUpdateParams::Mobilepay), multibanco: T.nilable(PaymentMethodConfigurationUpdateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(PaymentMethodConfigurationUpdateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodConfigurationUpdateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodConfigurationUpdateParams::Oxxo), p24: T.nilable(PaymentMethodConfigurationUpdateParams::P24), pay_by_bank: T.nilable(PaymentMethodConfigurationUpdateParams::PayByBank), payco: T.nilable(PaymentMethodConfigurationUpdateParams::Payco), paynow: T.nilable(PaymentMethodConfigurationUpdateParams::Paynow), paypal: T.nilable(PaymentMethodConfigurationUpdateParams::Paypal), paypay: T.nilable(PaymentMethodConfigurationUpdateParams::Paypay), payto: T.nilable(PaymentMethodConfigurationUpdateParams::Payto), pix: T.nilable(PaymentMethodConfigurationUpdateParams::Pix), promptpay: T.nilable(PaymentMethodConfigurationUpdateParams::Promptpay), qris: T.nilable(PaymentMethodConfigurationUpdateParams::Qris), revolut_pay: T.nilable(PaymentMethodConfigurationUpdateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodConfigurationUpdateParams::SamsungPay), satispay: T.nilable(PaymentMethodConfigurationUpdateParams::Satispay), sepa_debit: T.nilable(PaymentMethodConfigurationUpdateParams::SepaDebit), shopeepay: T.nilable(PaymentMethodConfigurationUpdateParams::Shopeepay), sofort: T.nilable(PaymentMethodConfigurationUpdateParams::Sofort), swish: T.nilable(PaymentMethodConfigurationUpdateParams::Swish), twint: T.nilable(PaymentMethodConfigurationUpdateParams::Twint), us_bank_account: T.nilable(PaymentMethodConfigurationUpdateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodConfigurationUpdateParams::WechatPay), zip: T.nilable(PaymentMethodConfigurationUpdateParams::Zip)).void } def initialize( acss_debit: nil, @@ -143873,6 +145174,7 @@ module Stripe card: nil, cartes_bancaires: nil, cashapp: nil, + crypto: nil, customer_balance: nil, eps: nil, expand: nil, @@ -143890,6 +145192,7 @@ module Stripe konbini: nil, kr_card: nil, link: nil, + mb_way: nil, mobilepay: nil, multibanco: nil, name: nil, @@ -144047,7 +145350,7 @@ module Stripe def starting_after; end sig { params(_starting_after: T.nilable(String)).returns(T.nilable(String)) } def starting_after=(_starting_after); end - # 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. sig { returns(T.nilable(String)) } def type; end sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } @@ -144266,6 +145569,15 @@ module Stripe end 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. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(type: String).void } + def initialize(type: nil); end + end class CustomerBalance < ::Stripe::RequestParams; end class Eps < ::Stripe::RequestParams # The customer's bank. @@ -144673,6 +145985,13 @@ module Stripe params(_crypto: T.nilable(PaymentMethodCreateParams::Crypto)).returns(T.nilable(PaymentMethodCreateParams::Crypto)) } def crypto=(_crypto); end + # If this is a `custom` PaymentMethod, this hash contains details about the Custom payment method. + sig { returns(T.nilable(PaymentMethodCreateParams::Custom)) } + def custom; end + sig { + params(_custom: T.nilable(PaymentMethodCreateParams::Custom)).returns(T.nilable(PaymentMethodCreateParams::Custom)) + } + def custom=(_custom); end # The `Customer` to whom the original PaymentMethod is attached. sig { returns(T.nilable(String)) } def customer; end @@ -145009,7 +146328,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(PaymentMethodCreateParams::AcssDebit), affirm: T.nilable(PaymentMethodCreateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodCreateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodCreateParams::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(PaymentMethodCreateParams::Alma), amazon_pay: T.nilable(PaymentMethodCreateParams::AmazonPay), au_becs_debit: T.nilable(PaymentMethodCreateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodCreateParams::BacsDebit), bancontact: T.nilable(PaymentMethodCreateParams::Bancontact), billie: T.nilable(PaymentMethodCreateParams::Billie), billing_details: T.nilable(PaymentMethodCreateParams::BillingDetails), blik: T.nilable(PaymentMethodCreateParams::Blik), boleto: T.nilable(PaymentMethodCreateParams::Boleto), card: T.nilable(PaymentMethodCreateParams::Card), cashapp: T.nilable(PaymentMethodCreateParams::Cashapp), crypto: T.nilable(PaymentMethodCreateParams::Crypto), customer: T.nilable(String), customer_balance: T.nilable(PaymentMethodCreateParams::CustomerBalance), eps: T.nilable(PaymentMethodCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodCreateParams::Fpx), giropay: T.nilable(PaymentMethodCreateParams::Giropay), gopay: T.nilable(PaymentMethodCreateParams::Gopay), grabpay: T.nilable(PaymentMethodCreateParams::Grabpay), id_bank_transfer: T.nilable(PaymentMethodCreateParams::IdBankTransfer), ideal: T.nilable(PaymentMethodCreateParams::Ideal), interac_present: T.nilable(PaymentMethodCreateParams::InteracPresent), kakao_pay: T.nilable(PaymentMethodCreateParams::KakaoPay), klarna: T.nilable(PaymentMethodCreateParams::Klarna), konbini: T.nilable(PaymentMethodCreateParams::Konbini), kr_card: T.nilable(PaymentMethodCreateParams::KrCard), link: T.nilable(PaymentMethodCreateParams::Link), mb_way: T.nilable(PaymentMethodCreateParams::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(PaymentMethodCreateParams::Mobilepay), multibanco: T.nilable(PaymentMethodCreateParams::Multibanco), naver_pay: T.nilable(PaymentMethodCreateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodCreateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodCreateParams::Oxxo), p24: T.nilable(PaymentMethodCreateParams::P24), pay_by_bank: T.nilable(PaymentMethodCreateParams::PayByBank), payco: T.nilable(PaymentMethodCreateParams::Payco), payment_method: T.nilable(String), paynow: T.nilable(PaymentMethodCreateParams::Paynow), paypal: T.nilable(PaymentMethodCreateParams::Paypal), paypay: T.nilable(PaymentMethodCreateParams::Paypay), payto: T.nilable(PaymentMethodCreateParams::Payto), pix: T.nilable(PaymentMethodCreateParams::Pix), promptpay: T.nilable(PaymentMethodCreateParams::Promptpay), qris: T.nilable(PaymentMethodCreateParams::Qris), radar_options: T.nilable(PaymentMethodCreateParams::RadarOptions), rechnung: T.nilable(PaymentMethodCreateParams::Rechnung), revolut_pay: T.nilable(PaymentMethodCreateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodCreateParams::SamsungPay), satispay: T.nilable(PaymentMethodCreateParams::Satispay), sepa_debit: T.nilable(PaymentMethodCreateParams::SepaDebit), shopeepay: T.nilable(PaymentMethodCreateParams::Shopeepay), sofort: T.nilable(PaymentMethodCreateParams::Sofort), stripe_balance: T.nilable(PaymentMethodCreateParams::StripeBalance), swish: T.nilable(PaymentMethodCreateParams::Swish), twint: T.nilable(PaymentMethodCreateParams::Twint), type: T.nilable(String), us_bank_account: T.nilable(PaymentMethodCreateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodCreateParams::WechatPay), zip: T.nilable(PaymentMethodCreateParams::Zip)).void + params(acss_debit: T.nilable(PaymentMethodCreateParams::AcssDebit), affirm: T.nilable(PaymentMethodCreateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodCreateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodCreateParams::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(PaymentMethodCreateParams::Alma), amazon_pay: T.nilable(PaymentMethodCreateParams::AmazonPay), au_becs_debit: T.nilable(PaymentMethodCreateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodCreateParams::BacsDebit), bancontact: T.nilable(PaymentMethodCreateParams::Bancontact), billie: T.nilable(PaymentMethodCreateParams::Billie), billing_details: T.nilable(PaymentMethodCreateParams::BillingDetails), blik: T.nilable(PaymentMethodCreateParams::Blik), boleto: T.nilable(PaymentMethodCreateParams::Boleto), card: T.nilable(PaymentMethodCreateParams::Card), cashapp: T.nilable(PaymentMethodCreateParams::Cashapp), crypto: T.nilable(PaymentMethodCreateParams::Crypto), custom: T.nilable(PaymentMethodCreateParams::Custom), customer: T.nilable(String), customer_balance: T.nilable(PaymentMethodCreateParams::CustomerBalance), eps: T.nilable(PaymentMethodCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodCreateParams::Fpx), giropay: T.nilable(PaymentMethodCreateParams::Giropay), gopay: T.nilable(PaymentMethodCreateParams::Gopay), grabpay: T.nilable(PaymentMethodCreateParams::Grabpay), id_bank_transfer: T.nilable(PaymentMethodCreateParams::IdBankTransfer), ideal: T.nilable(PaymentMethodCreateParams::Ideal), interac_present: T.nilable(PaymentMethodCreateParams::InteracPresent), kakao_pay: T.nilable(PaymentMethodCreateParams::KakaoPay), klarna: T.nilable(PaymentMethodCreateParams::Klarna), konbini: T.nilable(PaymentMethodCreateParams::Konbini), kr_card: T.nilable(PaymentMethodCreateParams::KrCard), link: T.nilable(PaymentMethodCreateParams::Link), mb_way: T.nilable(PaymentMethodCreateParams::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(PaymentMethodCreateParams::Mobilepay), multibanco: T.nilable(PaymentMethodCreateParams::Multibanco), naver_pay: T.nilable(PaymentMethodCreateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodCreateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodCreateParams::Oxxo), p24: T.nilable(PaymentMethodCreateParams::P24), pay_by_bank: T.nilable(PaymentMethodCreateParams::PayByBank), payco: T.nilable(PaymentMethodCreateParams::Payco), payment_method: T.nilable(String), paynow: T.nilable(PaymentMethodCreateParams::Paynow), paypal: T.nilable(PaymentMethodCreateParams::Paypal), paypay: T.nilable(PaymentMethodCreateParams::Paypay), payto: T.nilable(PaymentMethodCreateParams::Payto), pix: T.nilable(PaymentMethodCreateParams::Pix), promptpay: T.nilable(PaymentMethodCreateParams::Promptpay), qris: T.nilable(PaymentMethodCreateParams::Qris), radar_options: T.nilable(PaymentMethodCreateParams::RadarOptions), rechnung: T.nilable(PaymentMethodCreateParams::Rechnung), revolut_pay: T.nilable(PaymentMethodCreateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodCreateParams::SamsungPay), satispay: T.nilable(PaymentMethodCreateParams::Satispay), sepa_debit: T.nilable(PaymentMethodCreateParams::SepaDebit), shopeepay: T.nilable(PaymentMethodCreateParams::Shopeepay), sofort: T.nilable(PaymentMethodCreateParams::Sofort), stripe_balance: T.nilable(PaymentMethodCreateParams::StripeBalance), swish: T.nilable(PaymentMethodCreateParams::Swish), twint: T.nilable(PaymentMethodCreateParams::Twint), type: T.nilable(String), us_bank_account: T.nilable(PaymentMethodCreateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodCreateParams::WechatPay), zip: T.nilable(PaymentMethodCreateParams::Zip)).void } def initialize( acss_debit: nil, @@ -145029,6 +146348,7 @@ module Stripe card: nil, cashapp: nil, crypto: nil, + custom: nil, customer: nil, customer_balance: nil, eps: nil, @@ -145838,6 +147158,116 @@ module Stripe end end # typed: 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). + sig { returns(String) } + def currency; end + sig { params(_currency: String).returns(String) } + def currency=(_currency); end + # 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. + sig { returns(Integer) } + def value; end + sig { params(_value: Integer).returns(Integer) } + def value=(_value); end + sig { params(currency: String, value: Integer).void } + def initialize(currency: nil, value: nil); end + end + class ProcessorDetails < ::Stripe::RequestParams + class Custom < ::Stripe::RequestParams + # A reference to the external refund. This field must be unique across all refunds. + sig { returns(String) } + def refund_reference; end + sig { params(_refund_reference: String).returns(String) } + def refund_reference=(_refund_reference); end + sig { params(refund_reference: String).void } + def initialize(refund_reference: nil); end + end + # Information about the custom processor used to make this refund. + sig { returns(T.nilable(PaymentRecordReportRefundParams::ProcessorDetails::Custom)) } + def custom; end + sig { + params(_custom: T.nilable(PaymentRecordReportRefundParams::ProcessorDetails::Custom)).returns(T.nilable(PaymentRecordReportRefundParams::ProcessorDetails::Custom)) + } + def custom=(_custom); end + # 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. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(custom: T.nilable(PaymentRecordReportRefundParams::ProcessorDetails::Custom), type: String).void + } + def initialize(custom: nil, type: nil); end + end + class Refunded < ::Stripe::RequestParams + # When the reported refund completed. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def refunded_at; end + sig { params(_refunded_at: Integer).returns(Integer) } + def refunded_at=(_refunded_at); end + sig { params(refunded_at: Integer).void } + def initialize(refunded_at: nil); 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. + sig { returns(T.nilable(PaymentRecordReportRefundParams::Amount)) } + def amount; end + sig { + params(_amount: T.nilable(PaymentRecordReportRefundParams::Amount)).returns(T.nilable(PaymentRecordReportRefundParams::Amount)) + } + def amount=(_amount); end + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # When the reported refund was initiated. Measured in seconds since the Unix epoch. + sig { returns(T.nilable(Integer)) } + def initiated_at; end + sig { params(_initiated_at: T.nilable(Integer)).returns(T.nilable(Integer)) } + def initiated_at=(_initiated_at); end + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + # The outcome of the reported refund. + sig { returns(String) } + def outcome; end + sig { params(_outcome: String).returns(String) } + def outcome=(_outcome); end + # Processor information for this refund. + sig { returns(PaymentRecordReportRefundParams::ProcessorDetails) } + def processor_details; end + sig { + params(_processor_details: PaymentRecordReportRefundParams::ProcessorDetails).returns(PaymentRecordReportRefundParams::ProcessorDetails) + } + def processor_details=(_processor_details); end + # Information about the payment attempt refund. + sig { returns(PaymentRecordReportRefundParams::Refunded) } + def refunded; end + sig { + params(_refunded: PaymentRecordReportRefundParams::Refunded).returns(PaymentRecordReportRefundParams::Refunded) + } + def refunded=(_refunded); end + sig { + params(amount: T.nilable(PaymentRecordReportRefundParams::Amount), expand: T.nilable(T::Array[String]), initiated_at: T.nilable(Integer), metadata: T.nilable(T.any(String, T::Hash[String, String])), outcome: String, processor_details: PaymentRecordReportRefundParams::ProcessorDetails, refunded: PaymentRecordReportRefundParams::Refunded).void + } + def initialize( + amount: nil, + expand: nil, + initiated_at: nil, + metadata: nil, + outcome: nil, + processor_details: nil, + refunded: nil + ); end + end +end +# typed: true module Stripe class PaymentRecordReportPaymentParams < ::Stripe::RequestParams class AmountRequested < ::Stripe::RequestParams @@ -155295,6 +156725,13 @@ module Stripe def description; end sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } def description=(_description); end + # The list of payment method types to exclude from use with this SetupIntent. + sig { returns(T.nilable(T::Array[String])) } + def excluded_payment_method_types; end + sig { + params(_excluded_payment_method_types: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) + } + def excluded_payment_method_types=(_excluded_payment_method_types); end # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -155365,6 +156802,13 @@ module Stripe def return_url; end sig { params(_return_url: T.nilable(String)).returns(T.nilable(String)) } def return_url=(_return_url); end + # Provides industry-specific information about the SetupIntent. + sig { returns(T.nilable(SetupIntentCreateParams::SetupDetails)) } + def setup_details; end + sig { + params(_setup_details: T.nilable(SetupIntentCreateParams::SetupDetails)).returns(T.nilable(SetupIntentCreateParams::SetupDetails)) + } + def setup_details=(_setup_details); end # 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`. @@ -155384,15 +156828,8 @@ module Stripe def use_stripe_sdk; end sig { params(_use_stripe_sdk: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } def use_stripe_sdk=(_use_stripe_sdk); end - # Provides industry-specific information about the SetupIntent. - sig { returns(T.nilable(SetupIntentCreateParams::SetupDetails)) } - def setup_details; end sig { - params(_setup_details: T.nilable(SetupIntentCreateParams::SetupDetails)).returns(T.nilable(SetupIntentCreateParams::SetupDetails)) - } - def setup_details=(_setup_details); end - sig { - params(attach_to_self: T.nilable(T::Boolean), automatic_payment_methods: T.nilable(SetupIntentCreateParams::AutomaticPaymentMethods), confirm: T.nilable(T::Boolean), confirmation_token: T.nilable(String), customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), mandate_data: T.nilable(T.any(String, SetupIntentCreateParams::MandateData)), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(SetupIntentCreateParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentCreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), return_url: T.nilable(String), single_use: T.nilable(SetupIntentCreateParams::SingleUse), usage: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean), setup_details: T.nilable(SetupIntentCreateParams::SetupDetails)).void + params(attach_to_self: T.nilable(T::Boolean), automatic_payment_methods: T.nilable(SetupIntentCreateParams::AutomaticPaymentMethods), confirm: T.nilable(T::Boolean), confirmation_token: T.nilable(String), customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), excluded_payment_method_types: T.nilable(T::Array[String]), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), mandate_data: T.nilable(T.any(String, SetupIntentCreateParams::MandateData)), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(SetupIntentCreateParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentCreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), return_url: T.nilable(String), setup_details: T.nilable(SetupIntentCreateParams::SetupDetails), single_use: T.nilable(SetupIntentCreateParams::SingleUse), usage: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void } def initialize( attach_to_self: nil, @@ -155402,6 +156839,7 @@ module Stripe customer: nil, customer_account: nil, description: nil, + excluded_payment_method_types: nil, expand: nil, flow_directions: nil, mandate_data: nil, @@ -155413,10 +156851,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 ); end end end @@ -157294,6 +158732,13 @@ module Stripe def description; end sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } def description=(_description); end + # The list of payment method types to exclude from use with this SetupIntent. + sig { returns(T.nilable(T.any(String, T::Array[String]))) } + def excluded_payment_method_types; end + sig { + params(_excluded_payment_method_types: T.nilable(T.any(String, T::Array[String]))).returns(T.nilable(T.any(String, T::Array[String]))) + } + def excluded_payment_method_types=(_excluded_payment_method_types); end # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -157355,13 +158800,14 @@ module Stripe } def setup_details=(_setup_details); end sig { - params(attach_to_self: T.nilable(T::Boolean), customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(SetupIntentUpdateParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentUpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), setup_details: T.nilable(SetupIntentUpdateParams::SetupDetails)).void + params(attach_to_self: T.nilable(T::Boolean), customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(SetupIntentUpdateParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentUpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), setup_details: T.nilable(SetupIntentUpdateParams::SetupDetails)).void } def initialize( attach_to_self: nil, customer: nil, customer_account: nil, description: nil, + excluded_payment_method_types: nil, expand: nil, flow_directions: nil, metadata: nil, @@ -159349,11 +160795,6 @@ module Stripe def return_url; end sig { params(_return_url: T.nilable(String)).returns(T.nilable(String)) } def return_url=(_return_url); end - # Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions. - sig { returns(T.nilable(T::Boolean)) } - def use_stripe_sdk; end - sig { params(_use_stripe_sdk: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def use_stripe_sdk=(_use_stripe_sdk); end # Provides industry-specific information about the SetupIntent. sig { returns(T.nilable(SetupIntentConfirmParams::SetupDetails)) } def setup_details; end @@ -159361,8 +160802,13 @@ module Stripe params(_setup_details: T.nilable(SetupIntentConfirmParams::SetupDetails)).returns(T.nilable(SetupIntentConfirmParams::SetupDetails)) } def setup_details=(_setup_details); end + # Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions. + sig { returns(T.nilable(T::Boolean)) } + def use_stripe_sdk; end + sig { params(_use_stripe_sdk: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def use_stripe_sdk=(_use_stripe_sdk); end sig { - params(confirmation_token: T.nilable(String), expand: T.nilable(T::Array[String]), mandate_data: T.nilable(T.any(String, SetupIntentConfirmParams::MandateData)), payment_method: T.nilable(String), payment_method_data: T.nilable(SetupIntentConfirmParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentConfirmParams::PaymentMethodOptions), return_url: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean), setup_details: T.nilable(SetupIntentConfirmParams::SetupDetails)).void + params(confirmation_token: T.nilable(String), expand: T.nilable(T::Array[String]), mandate_data: T.nilable(T.any(String, SetupIntentConfirmParams::MandateData)), payment_method: T.nilable(String), payment_method_data: T.nilable(SetupIntentConfirmParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentConfirmParams::PaymentMethodOptions), return_url: T.nilable(String), setup_details: T.nilable(SetupIntentConfirmParams::SetupDetails), use_stripe_sdk: T.nilable(T::Boolean)).void } def initialize( confirmation_token: nil, @@ -159372,8 +160818,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 ); end end end @@ -170134,6 +171580,15 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end + class Tw < ::Stripe::RequestParams + # Type of registration to be created in `country`. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(type: String).void } + def initialize(type: nil); end + end class Tz < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } @@ -170988,6 +172443,13 @@ module Stripe params(_tr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tr)).returns(T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tr)) } def tr=(_tr); end + # Options for the registration in TW. + sig { returns(T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tw)) } + def tw; end + sig { + params(_tw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tw)).returns(T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tw)) + } + def tw=(_tw); end # Options for the registration in TZ. sig { returns(T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tz)) } def tz; end @@ -171059,7 +172521,7 @@ module Stripe } def zw=(_zw); end sig { - params(ae: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ae), al: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Al), am: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Am), ao: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ao), at: T.nilable(Tax::RegistrationCreateParams::CountryOptions::At), au: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Au), aw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Aw), az: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Az), ba: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ba), bb: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bb), bd: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bd), be: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Be), bf: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bf), bg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bg), bh: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bh), bj: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bj), bs: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bs), by: T.nilable(Tax::RegistrationCreateParams::CountryOptions::By), ca: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ca), cd: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cd), ch: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ch), cl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cl), cm: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cm), co: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Co), cr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cr), cv: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cv), cy: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cy), cz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cz), de: T.nilable(Tax::RegistrationCreateParams::CountryOptions::De), dk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Dk), ec: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ec), ee: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ee), eg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Eg), es: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Es), et: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Et), fi: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Fi), fr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Fr), gb: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gb), ge: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ge), gn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gn), gr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gr), hr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Hr), hu: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Hu), id: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Id), ie: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ie), in_: T.nilable(Tax::RegistrationCreateParams::CountryOptions::In), is: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Is), it: T.nilable(Tax::RegistrationCreateParams::CountryOptions::It), jp: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Jp), ke: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ke), kg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kg), kh: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kh), kr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kr), kz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kz), la: T.nilable(Tax::RegistrationCreateParams::CountryOptions::La), lt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lt), lu: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lu), lv: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lv), ma: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ma), md: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Md), me: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Me), mk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mk), mr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mr), mt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mt), mx: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mx), my: T.nilable(Tax::RegistrationCreateParams::CountryOptions::My), ng: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ng), nl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Nl), no: T.nilable(Tax::RegistrationCreateParams::CountryOptions::No), np: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Np), nz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Nz), om: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Om), pe: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pe), ph: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ph), pl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pl), pt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pt), ro: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ro), rs: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Rs), ru: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ru), sa: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sa), se: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Se), sg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sg), si: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Si), sk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sk), sn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sn), sr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sr), th: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Th), tj: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tj), tr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tr), tz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tz), ua: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ua), ug: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ug), us: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Us), uy: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Uy), uz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Uz), vn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Vn), za: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Za), zm: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Zm), zw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Zw)).void + params(ae: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ae), al: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Al), am: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Am), ao: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ao), at: T.nilable(Tax::RegistrationCreateParams::CountryOptions::At), au: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Au), aw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Aw), az: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Az), ba: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ba), bb: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bb), bd: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bd), be: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Be), bf: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bf), bg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bg), bh: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bh), bj: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bj), bs: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bs), by: T.nilable(Tax::RegistrationCreateParams::CountryOptions::By), ca: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ca), cd: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cd), ch: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ch), cl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cl), cm: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cm), co: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Co), cr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cr), cv: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cv), cy: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cy), cz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cz), de: T.nilable(Tax::RegistrationCreateParams::CountryOptions::De), dk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Dk), ec: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ec), ee: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ee), eg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Eg), es: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Es), et: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Et), fi: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Fi), fr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Fr), gb: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gb), ge: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ge), gn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gn), gr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gr), hr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Hr), hu: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Hu), id: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Id), ie: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ie), in_: T.nilable(Tax::RegistrationCreateParams::CountryOptions::In), is: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Is), it: T.nilable(Tax::RegistrationCreateParams::CountryOptions::It), jp: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Jp), ke: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ke), kg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kg), kh: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kh), kr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kr), kz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kz), la: T.nilable(Tax::RegistrationCreateParams::CountryOptions::La), lt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lt), lu: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lu), lv: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lv), ma: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ma), md: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Md), me: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Me), mk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mk), mr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mr), mt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mt), mx: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mx), my: T.nilable(Tax::RegistrationCreateParams::CountryOptions::My), ng: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ng), nl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Nl), no: T.nilable(Tax::RegistrationCreateParams::CountryOptions::No), np: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Np), nz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Nz), om: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Om), pe: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pe), ph: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ph), pl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pl), pt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pt), ro: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ro), rs: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Rs), ru: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ru), sa: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sa), se: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Se), sg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sg), si: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Si), sk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sk), sn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sn), sr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sr), th: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Th), tj: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tj), tr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tr), tw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tw), tz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tz), ua: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ua), ug: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ug), us: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Us), uy: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Uy), uz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Uz), vn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Vn), za: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Za), zm: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Zm), zw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Zw)).void } def initialize( ae: nil, @@ -171151,6 +172613,7 @@ module Stripe th: nil, tj: nil, tr: nil, + tw: nil, tz: nil, ua: nil, ug: nil, @@ -172208,6 +173671,31 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end + class Gip < ::Stripe::RequestParams + # Fixed amounts displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def fixed_amounts; end + sig { + params(_fixed_amounts: T.nilable(T::Array[Integer])).returns(T.nilable(T::Array[Integer])) + } + def fixed_amounts=(_fixed_amounts); end + # Percentages displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def percentages; end + sig { + params(_percentages: T.nilable(T::Array[Integer])).returns(T.nilable(T::Array[Integer])) + } + def percentages=(_percentages); end + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + sig { returns(T.nilable(Integer)) } + def smart_tip_threshold; end + sig { params(_smart_tip_threshold: T.nilable(Integer)).returns(T.nilable(Integer)) } + def smart_tip_threshold=(_smart_tip_threshold); end + sig { + params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void + } + def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end + end class Hkd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } @@ -172571,6 +174059,13 @@ module Stripe params(_gbp: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gbp)).returns(T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gbp)) } def gbp=(_gbp); end + # Tipping configuration for GIP + sig { returns(T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gip)) } + def gip; end + sig { + params(_gip: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gip)).returns(T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gip)) + } + def gip=(_gip); end # Tipping configuration for HKD sig { returns(T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Hkd)) } def hkd; end @@ -172656,7 +174151,7 @@ module Stripe } def usd=(_usd); end sig { - params(aed: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Aed), aud: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Aud), bgn: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Bgn), cad: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Cad), chf: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Chf), czk: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Czk), dkk: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Dkk), eur: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Eur), gbp: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gbp), hkd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Hkd), huf: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Huf), jpy: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Jpy), mxn: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Mxn), myr: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Myr), nok: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Nok), nzd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Nzd), pln: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Pln), ron: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Ron), sek: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Sek), sgd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Sgd), usd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Usd)).void + params(aed: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Aed), aud: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Aud), bgn: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Bgn), cad: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Cad), chf: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Chf), czk: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Czk), dkk: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Dkk), eur: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Eur), gbp: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gbp), gip: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gip), hkd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Hkd), huf: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Huf), jpy: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Jpy), mxn: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Mxn), myr: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Myr), nok: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Nok), nzd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Nzd), pln: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Pln), ron: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Ron), sek: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Sek), sgd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Sgd), usd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Usd)).void } def initialize( aed: nil, @@ -172668,6 +174163,7 @@ module Stripe dkk: nil, eur: nil, gbp: nil, + gip: nil, hkd: nil, huf: nil, jpy: nil, @@ -173228,6 +174724,31 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end + class Gip < ::Stripe::RequestParams + # Fixed amounts displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def fixed_amounts; end + sig { + params(_fixed_amounts: T.nilable(T::Array[Integer])).returns(T.nilable(T::Array[Integer])) + } + def fixed_amounts=(_fixed_amounts); end + # Percentages displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def percentages; end + sig { + params(_percentages: T.nilable(T::Array[Integer])).returns(T.nilable(T::Array[Integer])) + } + def percentages=(_percentages); end + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + sig { returns(T.nilable(Integer)) } + def smart_tip_threshold; end + sig { params(_smart_tip_threshold: T.nilable(Integer)).returns(T.nilable(Integer)) } + def smart_tip_threshold=(_smart_tip_threshold); end + sig { + params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void + } + def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end + end class Hkd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } @@ -173591,6 +175112,13 @@ module Stripe params(_gbp: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gbp)).returns(T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gbp)) } def gbp=(_gbp); end + # Tipping configuration for GIP + sig { returns(T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gip)) } + def gip; end + sig { + params(_gip: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gip)).returns(T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gip)) + } + def gip=(_gip); end # Tipping configuration for HKD sig { returns(T.nilable(Terminal::ConfigurationCreateParams::Tipping::Hkd)) } def hkd; end @@ -173676,7 +175204,7 @@ module Stripe } def usd=(_usd); end sig { - params(aed: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Aed), aud: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Aud), bgn: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Bgn), cad: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Cad), chf: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Chf), czk: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Czk), dkk: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Dkk), eur: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Eur), gbp: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gbp), hkd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Hkd), huf: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Huf), jpy: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Jpy), mxn: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Mxn), myr: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Myr), nok: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Nok), nzd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Nzd), pln: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Pln), ron: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Ron), sek: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Sek), sgd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Sgd), usd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Usd)).void + params(aed: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Aed), aud: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Aud), bgn: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Bgn), cad: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Cad), chf: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Chf), czk: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Czk), dkk: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Dkk), eur: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Eur), gbp: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gbp), gip: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gip), hkd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Hkd), huf: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Huf), jpy: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Jpy), mxn: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Mxn), myr: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Myr), nok: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Nok), nzd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Nzd), pln: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Pln), ron: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Ron), sek: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Sek), sgd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Sgd), usd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Usd)).void } def initialize( aed: nil, @@ -173688,6 +175216,7 @@ module Stripe dkk: nil, eur: nil, gbp: nil, + gip: nil, hkd: nil, huf: nil, jpy: nil, @@ -174640,12 +176169,12 @@ module Stripe def description; end sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } def description=(_description); end - # The skip button text + # Custom text for the skip button. Maximum 14 characters. sig { returns(T.nilable(String)) } def skip_button; end sig { params(_skip_button: T.nilable(String)).returns(T.nilable(String)) } def skip_button=(_skip_button); end - # The submit button text + # Custom text for the submit button. Maximum 30 characters. sig { returns(T.nilable(String)) } def submit_button; end sig { params(_submit_button: T.nilable(String)).returns(T.nilable(String)) } @@ -174667,7 +176196,7 @@ module Stripe def id; end sig { params(_id: String).returns(String) } def id=(_id); end - # 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`. sig { returns(T.nilable(String)) } def style; end sig { params(_style: T.nilable(String)).returns(T.nilable(String)) } @@ -174693,17 +176222,17 @@ module Stripe def initialize(choices: nil); end end class Toggle < ::Stripe::RequestParams - # The default value of the toggle + # The default value of the toggle. Can be `enabled` or `disabled`. sig { returns(T.nilable(String)) } def default_value; end sig { params(_default_value: T.nilable(String)).returns(T.nilable(String)) } def default_value=(_default_value); end - # 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. sig { returns(T.nilable(String)) } def description; end sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } def description=(_description); end - # 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. sig { returns(T.nilable(String)) } def title; end sig { params(_title: T.nilable(String)).returns(T.nilable(String)) } @@ -174760,7 +176289,7 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # List of inputs to be collected using the Reader + # List of inputs to be collected from the customer using the Reader. Maximum 5 inputs. sig { returns(T::Array[Terminal::ReaderCollectInputsParams::Input]) } def inputs; end sig { @@ -174831,7 +176360,7 @@ module Stripe tipping: nil ); end end - # Configuration overrides. + # Configuration overrides for this collection, such as tipping, surcharging, and customer cancellation settings. sig { returns(T.nilable(Terminal::ReaderCollectPaymentMethodParams::CollectConfig)) } def collect_config; end sig { @@ -174843,7 +176372,7 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # PaymentIntent ID. + # The ID of the PaymentIntent to collect a payment method for. sig { returns(String) } def payment_intent; end sig { params(_payment_intent: String).returns(String) } @@ -174868,7 +176397,7 @@ module Stripe sig { params(return_url: T.nilable(String)).void } def initialize(return_url: nil); end end - # Configuration overrides. + # Configuration overrides for this confirmation, such as surcharge settings and return URL. sig { returns(T.nilable(Terminal::ReaderConfirmPaymentIntentParams::ConfirmConfig)) } def confirm_config; end sig { @@ -174880,7 +176409,7 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # PaymentIntent ID. + # The ID of the PaymentIntent to confirm. sig { returns(String) } def payment_intent; end sig { params(_payment_intent: String).returns(String) } @@ -174953,12 +176482,12 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # PaymentIntent ID + # The ID of the PaymentIntent to process on the reader. sig { returns(String) } def payment_intent; end sig { params(_payment_intent: String).returns(String) } def payment_intent=(_payment_intent); end - # Configuration overrides + # Configuration overrides for this transaction, such as tipping and customer cancellation settings. sig { returns(T.nilable(Terminal::ReaderProcessPaymentIntentParams::ProcessConfig)) } def process_config; end sig { @@ -174997,14 +176526,14 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # Configuration overrides + # Configuration overrides for this setup, such as MOTO and customer cancellation settings. sig { returns(T.nilable(Terminal::ReaderProcessSetupIntentParams::ProcessConfig)) } def process_config; end sig { params(_process_config: T.nilable(Terminal::ReaderProcessSetupIntentParams::ProcessConfig)).returns(T.nilable(Terminal::ReaderProcessSetupIntentParams::ProcessConfig)) } def process_config=(_process_config); end - # SetupIntent ID + # The ID of the SetupIntent to process on the reader. sig { returns(String) } def setup_intent; end sig { params(_setup_intent: String).returns(String) } @@ -175063,7 +176592,7 @@ module Stripe def refund_application_fee; end sig { params(_refund_application_fee: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } def refund_application_fee=(_refund_application_fee); end - # Configuration overrides + # Configuration overrides for this refund, such as customer cancellation settings. sig { returns(T.nilable(Terminal::ReaderRefundPaymentParams::RefundPaymentConfig)) } def refund_payment_config; end sig { @@ -175097,7 +176626,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). sig { returns(Integer) } def amount; end sig { params(_amount: Integer).returns(Integer) } @@ -175120,19 +176649,19 @@ module Stripe def currency; end sig { params(_currency: String).returns(String) } def currency=(_currency); end - # Array of line items that were purchased. + # Array of line items to display. sig { returns(T::Array[Terminal::ReaderSetReaderDisplayParams::Cart::LineItem]) } def line_items; end sig { params(_line_items: T::Array[Terminal::ReaderSetReaderDisplayParams::Cart::LineItem]).returns(T::Array[Terminal::ReaderSetReaderDisplayParams::Cart::LineItem]) } def line_items=(_line_items); end - # The amount of tax in cents. + # The amount of tax in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). sig { returns(T.nilable(Integer)) } def tax; end sig { params(_tax: T.nilable(Integer)).returns(T.nilable(Integer)) } def tax=(_tax); end - # Total balance of cart due in cents. + # Total balance of cart due in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). sig { returns(Integer) } def total; end sig { params(_total: Integer).returns(Integer) } @@ -175142,7 +176671,7 @@ module Stripe } def initialize(currency: nil, line_items: nil, tax: nil, total: nil); end end - # Cart + # Cart details to display on the reader screen, including line items, amounts, and currency. sig { returns(T.nilable(Terminal::ReaderSetReaderDisplayParams::Cart)) } def cart; end sig { @@ -175154,7 +176683,7 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # Type + # Type of information to display. Only `cart` is currently supported. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } @@ -175206,7 +176735,7 @@ module Stripe def initialize(number: nil); end end class InteracPresent < ::Stripe::RequestParams - # Card Number + # The Interac card number. sig { returns(T.nilable(String)) } def number; end sig { params(_number: T.nilable(String)).returns(T.nilable(String)) } @@ -175588,6 +177117,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. @@ -175723,6 +177273,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(TokenCreateParams::Account::Company::RepresentativeDeclaration)) } + def representative_declaration; end + sig { + params(_representative_declaration: T.nilable(TokenCreateParams::Account::Company::RepresentativeDeclaration)).returns(T.nilable(TokenCreateParams::Account::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 @@ -175753,7 +177310,7 @@ module Stripe } def verification=(_verification); end sig { - params(address: T.nilable(TokenCreateParams::Account::Company::Address), address_kana: T.nilable(TokenCreateParams::Account::Company::AddressKana), address_kanji: T.nilable(TokenCreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(TokenCreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(TokenCreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, TokenCreateParams::Account::Company::RegistrationDate)), registration_number: T.nilable(String), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(TokenCreateParams::Account::Company::Verification)).void + params(address: T.nilable(TokenCreateParams::Account::Company::Address), address_kana: T.nilable(TokenCreateParams::Account::Company::AddressKana), address_kanji: T.nilable(TokenCreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(TokenCreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(TokenCreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, TokenCreateParams::Account::Company::RegistrationDate)), registration_number: T.nilable(String), representative_declaration: T.nilable(TokenCreateParams::Account::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(TokenCreateParams::Account::Company::Verification)).void } def initialize( address: nil, @@ -175774,6 +177331,7 @@ module Stripe phone: nil, registration_date: nil, registration_number: nil, + representative_declaration: nil, structure: nil, tax_id: nil, tax_id_registrar: nil, @@ -177493,8 +179051,13 @@ module Stripe def transfer_group; end sig { params(_transfer_group: T.nilable(String)).returns(T.nilable(String)) } def transfer_group=(_transfer_group); end + # Attribute for param field application_fee_amount + sig { returns(T.nilable(Integer)) } + def application_fee_amount; end + sig { params(_application_fee_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } + def application_fee_amount=(_application_fee_amount); end sig { - params(amount: T.nilable(Integer), currency: String, description: T.nilable(String), destination: String, expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), source_transaction: T.nilable(String), source_type: T.nilable(String), transfer_group: T.nilable(String)).void + params(amount: T.nilable(Integer), currency: String, description: T.nilable(String), destination: String, expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), source_transaction: T.nilable(String), source_type: T.nilable(String), transfer_group: T.nilable(String), application_fee_amount: T.nilable(Integer)).void } def initialize( amount: nil, @@ -177506,7 +179069,8 @@ module Stripe metadata: nil, source_transaction: nil, source_type: nil, - transfer_group: nil + transfer_group: nil, + application_fee_amount: nil ); end end end @@ -182681,14 +184245,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. @@ -189861,7 +191433,7 @@ module Stripe def initialize(number: nil); end end class InteracPresent < ::Stripe::RequestParams - # Card Number + # The Interac card number. sig { returns(T.nilable(String)) } def number; end sig { params(_number: T.nilable(String)).returns(T.nilable(String)) } @@ -197655,6 +199227,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); 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. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)) @@ -197664,10 +199245,19 @@ module Stripe params(_bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)) } def bank_accounts=(_bank_accounts); end + # Can provision a crypto wallet like financial address to credit a FinancialAccount. sig { - params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)).void + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)) } - def initialize(bank_accounts: nil); end + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end + sig { + params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts), crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)).void + } + def initialize(bank_accounts: nil, crypto_wallets: nil); end end class HoldsCurrencies < ::Stripe::RequestParams class Gbp < ::Stripe::RequestParams @@ -197688,6 +199278,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); 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. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end # Can hold storage-type funds on Stripe in GBP. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)) @@ -197706,10 +199305,19 @@ module Stripe params(_usd: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)) } def usd=(_usd); end + # Can hold storage-type funds on Stripe in USDC. sig { - params(gbp: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)).void + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)) } - def initialize(gbp: nil, usd: nil); end + def usdc; end + sig { + params(_usdc: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)) + } + def usdc=(_usdc); end + sig { + params(gbp: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd), usdc: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).void + } + def initialize(gbp: nil, usd: nil, usdc: nil); end end class InboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -197754,6 +199362,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); 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. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); 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. sig { returns(T::Boolean) } @@ -197781,6 +199398,15 @@ module Stripe params(_cards: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards)) } def cards=(_cards); end + # Can send funds from a FinancialAccount to a crypto wallet owned by someone else. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)) + } + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)) @@ -197791,9 +199417,14 @@ module Stripe } def financial_accounts=(_financial_accounts); end sig { - params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts), cards: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards), financial_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)).void + params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts), cards: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards), crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets), financial_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)).void } - def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil); end + def initialize( + bank_accounts: nil, + cards: nil, + crypto_wallets: nil, + financial_accounts: nil + ); end end class OutboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -197805,6 +199436,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); 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. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); 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. sig { returns(T::Boolean) } @@ -197823,6 +199463,15 @@ module Stripe params(_bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts)) } def bank_accounts=(_bank_accounts); end + # Can send funds from a FinancialAccount to a crypto wallet owned by yourself. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)) + } + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)) @@ -197833,9 +199482,13 @@ module Stripe } def financial_accounts=(_financial_accounts); end sig { - params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts), financial_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)).void + params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts), crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets), financial_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)).void } - def initialize(bank_accounts: nil, financial_accounts: nil); end + def initialize( + bank_accounts: nil, + crypto_wallets: nil, + financial_accounts: nil + ); end end # Can provision a financial address to credit/debit a FinancialAccount. sig { @@ -197893,6 +199546,41 @@ module Stripe outbound_transfers: nil ); end end + class RegulatedActivity < ::Stripe::RequestParams + # A detailed description of the regulated activities the business is licensed to conduct. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # The license number or registration number assigned by the business's primary regulator. + sig { returns(T.nilable(String)) } + def license_number; end + sig { params(_license_number: T.nilable(String)).returns(T.nilable(String)) } + def license_number=(_license_number); end + # The country of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_country; end + sig { + params(_primary_regulatory_authority_country: T.nilable(String)).returns(T.nilable(String)) + } + def primary_regulatory_authority_country=(_primary_regulatory_authority_country); end + # The name of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_name; end + sig { + params(_primary_regulatory_authority_name: T.nilable(String)).returns(T.nilable(String)) + } + def primary_regulatory_authority_name=(_primary_regulatory_authority_name); end + sig { + params(description: T.nilable(String), license_number: T.nilable(String), primary_regulatory_authority_country: T.nilable(String), primary_regulatory_authority_name: T.nilable(String)).void + } + def initialize( + description: nil, + license_number: nil, + primary_regulatory_authority_country: nil, + primary_regulatory_authority_name: nil + ); end + end # Capabilities to request on the Storer Configuration. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities)) @@ -197902,10 +199590,90 @@ module Stripe params(_capabilities: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities)) } def capabilities=(_capabilities); end + # List of high-risk activities the business is involved in. + sig { returns(T.nilable(T::Array[String])) } + def high_risk_activities; end sig { - params(capabilities: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities)).void + params(_high_risk_activities: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def initialize(capabilities: nil); end + def high_risk_activities=(_high_risk_activities); end + # An explanation of the high risk activities that the business performs. + sig { returns(T.nilable(String)) } + def high_risk_activities_description; end + sig { + params(_high_risk_activities_description: T.nilable(String)).returns(T.nilable(String)) + } + def high_risk_activities_description=(_high_risk_activities_description); end + # Description of the money services offered by the business. + sig { returns(T.nilable(String)) } + def money_services_description; end + sig { + params(_money_services_description: T.nilable(String)).returns(T.nilable(String)) + } + def money_services_description=(_money_services_description); end + # Does the business operate in any prohibited countries. + sig { returns(T.nilable(T::Boolean)) } + def operates_in_prohibited_countries; end + sig { + params(_operates_in_prohibited_countries: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def operates_in_prohibited_countries=(_operates_in_prohibited_countries); end + # Does the business participate in any regulated activity. + sig { returns(T.nilable(T::Boolean)) } + def participates_in_regulated_activity; end + sig { + params(_participates_in_regulated_activity: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def participates_in_regulated_activity=(_participates_in_regulated_activity); end + # Primary purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds; end + sig { params(_purpose_of_funds: T.nilable(String)).returns(T.nilable(String)) } + def purpose_of_funds=(_purpose_of_funds); end + # Description of the purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds_description; end + sig { + params(_purpose_of_funds_description: T.nilable(String)).returns(T.nilable(String)) + } + def purpose_of_funds_description=(_purpose_of_funds_description); end + # Details of the regulated activity if the business participates in one. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::RegulatedActivity)) + } + def regulated_activity; end + sig { + params(_regulated_activity: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::RegulatedActivity)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::RegulatedActivity)) + } + def regulated_activity=(_regulated_activity); end + # The source of funds for the business, e.g. profits, income, venture capital, etc. + sig { returns(T.nilable(String)) } + def source_of_funds; end + sig { params(_source_of_funds: T.nilable(String)).returns(T.nilable(String)) } + def source_of_funds=(_source_of_funds); end + # Description of the source of funds for the business' account. + sig { returns(T.nilable(String)) } + def source_of_funds_description; end + sig { + params(_source_of_funds_description: T.nilable(String)).returns(T.nilable(String)) + } + def source_of_funds_description=(_source_of_funds_description); end + sig { + params(capabilities: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities), high_risk_activities: T.nilable(T::Array[String]), high_risk_activities_description: T.nilable(String), money_services_description: T.nilable(String), operates_in_prohibited_countries: T.nilable(T::Boolean), participates_in_regulated_activity: T.nilable(T::Boolean), purpose_of_funds: T.nilable(String), purpose_of_funds_description: T.nilable(String), regulated_activity: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::RegulatedActivity), source_of_funds: T.nilable(String), source_of_funds_description: T.nilable(String)).void + } + 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 + ); end end # The CardCreator Configuration allows the Account to create and issue cards to users. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::CardCreator)) } @@ -198619,6 +200387,25 @@ module Stripe } def initialize(commercial: nil); 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. + sig { returns(String) } + def date; end + sig { params(_date: String).returns(String) } + def date=(_date); end + # The IP address from which the Account's representative accepted the terms of service. + sig { returns(String) } + def ip; end + sig { params(_ip: String).returns(String) } + def ip=(_ip); end + # The user agent of the browser from which the Account's representative accepted the terms of service. + 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: String, ip: String, user_agent: T.nilable(String)).void } + def initialize(date: nil, ip: nil, user_agent: nil); 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. sig { returns(String) } @@ -198656,6 +200443,15 @@ module Stripe params(_card_creator: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CardCreator)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CardCreator)) } def card_creator=(_card_creator); end + # Details on the Account's acceptance of Crypto-storer-specific terms of service. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer; end + sig { + params(_crypto_storer: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CryptoStorer)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer=(_crypto_storer); end # Details on the Account's acceptance of Treasury-specific terms of service. sig { returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Storer)) @@ -198666,9 +200462,9 @@ module Stripe } def storer=(_storer); end sig { - params(account: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Account), card_creator: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CardCreator), storer: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Storer)).void + params(account: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Account), card_creator: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CardCreator), crypto_storer: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CryptoStorer), storer: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Storer)).void } - def initialize(account: nil, card_creator: nil, storer: nil); end + def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil); end end # This hash is used to attest that the directors information provided to Stripe is both current and correct. sig { @@ -199275,6 +201071,13 @@ module Stripe params(_annual_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue)) } def annual_revenue=(_annual_revenue); end + # A detailed description of the business's compliance and anti-money laundering controls and practices. + sig { returns(T.nilable(String)) } + def compliance_screening_description; end + sig { + params(_compliance_screening_description: T.nilable(String)).returns(T.nilable(String)) + } + def compliance_screening_description=(_compliance_screening_description); end # A document verifying the business. sig { returns(T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents)) @@ -199341,11 +201144,12 @@ module Stripe sig { params(_structure: T.nilable(String)).returns(T.nilable(String)) } def structure=(_structure); end sig { - params(address: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue), documents: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountCreateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void + params(address: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue), compliance_screening_description: T.nilable(String), documents: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountCreateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void } def initialize( address: nil, annual_revenue: nil, + compliance_screening_description: nil, documents: nil, estimated_worker_count: nil, id_numbers: nil, @@ -201896,6 +203700,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); 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. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)) @@ -201905,10 +203718,19 @@ module Stripe params(_bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)) } def bank_accounts=(_bank_accounts); end + # Can provision a crypto wallet like financial address to credit a FinancialAccount. sig { - params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)).void + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)) } - def initialize(bank_accounts: nil); end + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end + sig { + params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts), crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)).void + } + def initialize(bank_accounts: nil, crypto_wallets: nil); end end class HoldsCurrencies < ::Stripe::RequestParams class Gbp < ::Stripe::RequestParams @@ -201929,6 +203751,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); 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. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end # Can hold storage-type funds on Stripe in GBP. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)) @@ -201947,10 +203778,19 @@ module Stripe params(_usd: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)) } def usd=(_usd); end + # Can hold storage-type funds on Stripe in USDC. sig { - params(gbp: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)).void + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)) } - def initialize(gbp: nil, usd: nil); end + def usdc; end + sig { + params(_usdc: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)) + } + def usdc=(_usdc); end + sig { + params(gbp: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd), usdc: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).void + } + def initialize(gbp: nil, usd: nil, usdc: nil); end end class InboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -201995,6 +203835,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); 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. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); 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. sig { returns(T.nilable(T::Boolean)) } @@ -202022,6 +203871,15 @@ module Stripe params(_cards: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards)) } def cards=(_cards); end + # Can send funds from a FinancialAccount to a crypto wallet owned by someone else. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)) + } + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)) @@ -202032,9 +203890,14 @@ module Stripe } def financial_accounts=(_financial_accounts); end sig { - params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts), cards: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards), financial_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)).void + params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts), cards: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards), crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets), financial_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)).void } - def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil); end + def initialize( + bank_accounts: nil, + cards: nil, + crypto_wallets: nil, + financial_accounts: nil + ); end end class OutboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -202046,6 +203909,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); 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. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); 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. sig { returns(T.nilable(T::Boolean)) } @@ -202064,6 +203936,15 @@ module Stripe params(_bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts)) } def bank_accounts=(_bank_accounts); end + # Can send funds from a FinancialAccount to a crypto wallet owned by yourself. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)) + } + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)) @@ -202074,9 +203955,13 @@ module Stripe } def financial_accounts=(_financial_accounts); end sig { - params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts), financial_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)).void + params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts), crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets), financial_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)).void } - def initialize(bank_accounts: nil, financial_accounts: nil); end + def initialize( + bank_accounts: nil, + crypto_wallets: nil, + financial_accounts: nil + ); end end # Can provision a financial address to credit/debit a FinancialAccount. sig { @@ -202134,6 +204019,41 @@ module Stripe outbound_transfers: nil ); end end + class RegulatedActivity < ::Stripe::RequestParams + # A detailed description of the regulated activities the business is licensed to conduct. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # The license number or registration number assigned by the business's primary regulator. + sig { returns(T.nilable(String)) } + def license_number; end + sig { params(_license_number: T.nilable(String)).returns(T.nilable(String)) } + def license_number=(_license_number); end + # The country of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_country; end + sig { + params(_primary_regulatory_authority_country: T.nilable(String)).returns(T.nilable(String)) + } + def primary_regulatory_authority_country=(_primary_regulatory_authority_country); end + # The name of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_name; end + sig { + params(_primary_regulatory_authority_name: T.nilable(String)).returns(T.nilable(String)) + } + def primary_regulatory_authority_name=(_primary_regulatory_authority_name); end + sig { + params(description: T.nilable(String), license_number: T.nilable(String), primary_regulatory_authority_country: T.nilable(String), primary_regulatory_authority_name: T.nilable(String)).void + } + def initialize( + description: nil, + license_number: nil, + primary_regulatory_authority_country: nil, + primary_regulatory_authority_name: nil + ); end + end # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration. sig { returns(T.nilable(T::Boolean)) } def applied; end @@ -202148,10 +204068,91 @@ module Stripe params(_capabilities: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities)) } def capabilities=(_capabilities); end + # List of high-risk activities the business is involved in. + sig { returns(T.nilable(T::Array[String])) } + def high_risk_activities; end sig { - params(applied: T.nilable(T::Boolean), capabilities: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities)).void + params(_high_risk_activities: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def initialize(applied: nil, capabilities: nil); end + def high_risk_activities=(_high_risk_activities); end + # An explanation of the high risk activities that the business performs. + sig { returns(T.nilable(String)) } + def high_risk_activities_description; end + sig { + params(_high_risk_activities_description: T.nilable(String)).returns(T.nilable(String)) + } + def high_risk_activities_description=(_high_risk_activities_description); end + # Description of the money services offered by the business. + sig { returns(T.nilable(String)) } + def money_services_description; end + sig { + params(_money_services_description: T.nilable(String)).returns(T.nilable(String)) + } + def money_services_description=(_money_services_description); end + # Does the business operate in any prohibited countries. + sig { returns(T.nilable(T::Boolean)) } + def operates_in_prohibited_countries; end + sig { + params(_operates_in_prohibited_countries: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def operates_in_prohibited_countries=(_operates_in_prohibited_countries); end + # Does the business participate in any regulated activity. + sig { returns(T.nilable(T::Boolean)) } + def participates_in_regulated_activity; end + sig { + params(_participates_in_regulated_activity: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def participates_in_regulated_activity=(_participates_in_regulated_activity); end + # Primary purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds; end + sig { params(_purpose_of_funds: T.nilable(String)).returns(T.nilable(String)) } + def purpose_of_funds=(_purpose_of_funds); end + # Description of the purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds_description; end + sig { + params(_purpose_of_funds_description: T.nilable(String)).returns(T.nilable(String)) + } + def purpose_of_funds_description=(_purpose_of_funds_description); end + # Details of the regulated activity if the business participates in one. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::RegulatedActivity)) + } + def regulated_activity; end + sig { + params(_regulated_activity: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::RegulatedActivity)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::RegulatedActivity)) + } + def regulated_activity=(_regulated_activity); end + # The source of funds for the business, e.g. profits, income, venture capital, etc. + sig { returns(T.nilable(String)) } + def source_of_funds; end + sig { params(_source_of_funds: T.nilable(String)).returns(T.nilable(String)) } + def source_of_funds=(_source_of_funds); end + # Description of the source of funds for the business' account. + sig { returns(T.nilable(String)) } + def source_of_funds_description; end + sig { + params(_source_of_funds_description: T.nilable(String)).returns(T.nilable(String)) + } + def source_of_funds_description=(_source_of_funds_description); end + sig { + params(applied: T.nilable(T::Boolean), capabilities: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities), high_risk_activities: T.nilable(T::Array[String]), high_risk_activities_description: T.nilable(String), money_services_description: T.nilable(String), operates_in_prohibited_countries: T.nilable(T::Boolean), participates_in_regulated_activity: T.nilable(T::Boolean), purpose_of_funds: T.nilable(String), purpose_of_funds_description: T.nilable(String), regulated_activity: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::RegulatedActivity), source_of_funds: T.nilable(String), source_of_funds_description: T.nilable(String)).void + } + 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 + ); end end # The CardCreator Configuration allows the Account to create and issue cards to users. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::CardCreator)) } @@ -202893,6 +204894,27 @@ module Stripe } def initialize(commercial: nil); 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. + sig { returns(T.nilable(String)) } + def date; end + sig { params(_date: T.nilable(String)).returns(T.nilable(String)) } + def date=(_date); end + # The IP address from which the Account's representative accepted the terms of service. + 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 Account's representative accepted the terms of service. + 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(String), ip: T.nilable(String), user_agent: T.nilable(String)).void + } + def initialize(date: nil, ip: nil, user_agent: nil); 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. sig { returns(T.nilable(String)) } @@ -202932,6 +204954,15 @@ module Stripe params(_card_creator: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CardCreator)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CardCreator)) } def card_creator=(_card_creator); end + # Details on the Account's acceptance of Crypto-storer-specific terms of service. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer; end + sig { + params(_crypto_storer: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer=(_crypto_storer); end # Details on the Account's acceptance of Treasury-specific terms of service. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)) @@ -202942,9 +204973,9 @@ module Stripe } def storer=(_storer); end sig { - params(account: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Account), card_creator: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CardCreator), storer: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)).void + params(account: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Account), card_creator: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CardCreator), crypto_storer: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer), storer: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)).void } - def initialize(account: nil, card_creator: nil, storer: nil); end + def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil); end end # This hash is used to attest that the directors information provided to Stripe is both current and correct. sig { @@ -203551,6 +205582,13 @@ module Stripe params(_annual_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue)) } def annual_revenue=(_annual_revenue); end + # A detailed description of the business's compliance and anti-money laundering controls and practices. + sig { returns(T.nilable(String)) } + def compliance_screening_description; end + sig { + params(_compliance_screening_description: T.nilable(String)).returns(T.nilable(String)) + } + def compliance_screening_description=(_compliance_screening_description); end # A document verifying the business. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents)) @@ -203617,11 +205655,12 @@ module Stripe sig { params(_structure: T.nilable(String)).returns(T.nilable(String)) } def structure=(_structure); end sig { - params(address: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue), documents: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountUpdateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void + params(address: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue), compliance_screening_description: T.nilable(String), documents: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountUpdateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void } def initialize( address: nil, annual_revenue: nil, + compliance_screening_description: nil, documents: nil, estimated_worker_count: nil, id_numbers: nil, diff --git a/rbi/stripe/params/account_create_params.rbi b/rbi/stripe/params/account_create_params.rbi index 9029e1dc..dac8efb7 100644 --- a/rbi/stripe/params/account_create_params.rbi +++ b/rbi/stripe/params/account_create_params.rbi @@ -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, diff --git a/rbi/stripe/params/account_update_params.rbi b/rbi/stripe/params/account_update_params.rbi index d8495805..a841ff4c 100644 --- a/rbi/stripe/params/account_update_params.rbi +++ b/rbi/stripe/params/account_update_params.rbi @@ -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, diff --git a/rbi/stripe/params/billing/analytics/meter_usage_retrieve_params.rbi b/rbi/stripe/params/billing/analytics/meter_usage_retrieve_params.rbi index 82967287..45a7e10f 100644 --- a/rbi/stripe/params/billing/analytics/meter_usage_retrieve_params.rbi +++ b/rbi/stripe/params/billing/analytics/meter_usage_retrieve_params.rbi @@ -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. diff --git a/rbi/stripe/params/billing/credit_grant_create_params.rbi b/rbi/stripe/params/billing/credit_grant_create_params.rbi index 8aac3f3d..67f5e716 100644 --- a/rbi/stripe/params/billing/credit_grant_create_params.rbi +++ b/rbi/stripe/params/billing/credit_grant_create_params.rbi @@ -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, diff --git a/rbi/stripe/params/billing/meter_create_params.rbi b/rbi/stripe/params/billing/meter_create_params.rbi index 05465545..cd234c96 100644 --- a/rbi/stripe/params/billing/meter_create_params.rbi +++ b/rbi/stripe/params/billing/meter_create_params.rbi @@ -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 meter’s 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 diff --git a/rbi/stripe/params/billing_portal/configuration_create_params.rbi b/rbi/stripe/params/billing_portal/configuration_create_params.rbi index ad11856b..2910190e 100644 --- a/rbi/stripe/params/billing_portal/configuration_create_params.rbi +++ b/rbi/stripe/params/billing_portal/configuration_create_params.rbi @@ -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 diff --git a/rbi/stripe/params/billing_portal/configuration_update_params.rbi b/rbi/stripe/params/billing_portal/configuration_update_params.rbi index 81dd15e4..41b3b7f5 100644 --- a/rbi/stripe/params/billing_portal/configuration_update_params.rbi +++ b/rbi/stripe/params/billing_portal/configuration_update_params.rbi @@ -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 diff --git a/rbi/stripe/params/checkout/session_create_params.rbi b/rbi/stripe/params/checkout/session_create_params.rbi index 3ae0beb4..27b653fc 100644 --- a/rbi/stripe/params/checkout/session_create_params.rbi +++ b/rbi/stripe/params/checkout/session_create_params.rbi @@ -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 diff --git a/rbi/stripe/params/customer_session_create_params.rbi b/rbi/stripe/params/customer_session_create_params.rbi index 485279a7..d39d2789 100644 --- a/rbi/stripe/params/customer_session_create_params.rbi +++ b/rbi/stripe/params/customer_session_create_params.rbi @@ -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) } diff --git a/rbi/stripe/params/delegated_checkout/requested_session_confirm_params.rbi b/rbi/stripe/params/delegated_checkout/requested_session_confirm_params.rbi index bce5d11d..76f2ef77 100644 --- a/rbi/stripe/params/delegated_checkout/requested_session_confirm_params.rbi +++ b/rbi/stripe/params/delegated_checkout/requested_session_confirm_params.rbi @@ -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 \ No newline at end of file diff --git a/rbi/stripe/params/delegated_checkout/requested_session_create_params.rbi b/rbi/stripe/params/delegated_checkout/requested_session_create_params.rbi index a049ad6f..dbe50ac3 100644 --- a/rbi/stripe/params/delegated_checkout/requested_session_create_params.rbi +++ b/rbi/stripe/params/delegated_checkout/requested_session_create_params.rbi @@ -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 diff --git a/rbi/stripe/params/payment_attempt_record_list_params.rbi b/rbi/stripe/params/payment_attempt_record_list_params.rbi index e093505b..a9d84fd4 100644 --- a/rbi/stripe/params/payment_attempt_record_list_params.rbi +++ b/rbi/stripe/params/payment_attempt_record_list_params.rbi @@ -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 \ No newline at end of file diff --git a/rbi/stripe/params/payment_intent_capture_params.rbi b/rbi/stripe/params/payment_intent_capture_params.rbi index 2a2bbcf2..2acb07e9 100644 --- a/rbi/stripe/params/payment_intent_capture_params.rbi +++ b/rbi/stripe/params/payment_intent_capture_params.rbi @@ -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 system’s 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. diff --git a/rbi/stripe/params/payment_intent_confirm_params.rbi b/rbi/stripe/params/payment_intent_confirm_params.rbi index 16bb43de..fe2a66c4 100644 --- a/rbi/stripe/params/payment_intent_confirm_params.rbi +++ b/rbi/stripe/params/payment_intent_confirm_params.rbi @@ -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 system’s 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 diff --git a/rbi/stripe/params/payment_intent_create_params.rbi b/rbi/stripe/params/payment_intent_create_params.rbi index ce50de51..e848da7f 100644 --- a/rbi/stripe/params/payment_intent_create_params.rbi +++ b/rbi/stripe/params/payment_intent_create_params.rbi @@ -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 system’s 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 diff --git a/rbi/stripe/params/payment_intent_increment_authorization_params.rbi b/rbi/stripe/params/payment_intent_increment_authorization_params.rbi index 175a41ad..87d68bc1 100644 --- a/rbi/stripe/params/payment_intent_increment_authorization_params.rbi +++ b/rbi/stripe/params/payment_intent_increment_authorization_params.rbi @@ -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 system’s 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. diff --git a/rbi/stripe/params/payment_intent_update_params.rbi b/rbi/stripe/params/payment_intent_update_params.rbi index e372b2d1..93e545d1 100644 --- a/rbi/stripe/params/payment_intent_update_params.rbi +++ b/rbi/stripe/params/payment_intent_update_params.rbi @@ -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 system’s 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. @@ -1357,6 +1367,13 @@ module Stripe starts_at: nil ); end end + # Benefit details for this PaymentIntent + sig { returns(T.nilable(PaymentIntentUpdateParams::PaymentDetails::Benefit)) } + def benefit; end + sig { + params(_benefit: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Benefit)).returns(T.nilable(PaymentIntentUpdateParams::PaymentDetails::Benefit)) + } + def benefit=(_benefit); end # Car rental details for this PaymentIntent. sig { returns(T.nilable(PaymentIntentUpdateParams::PaymentDetails::CarRental)) } def car_rental; end @@ -1402,25 +1419,18 @@ module Stripe params(_subscription: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Subscription)).returns(T.nilable(PaymentIntentUpdateParams::PaymentDetails::Subscription)) } def subscription=(_subscription); end - # Benefit details for this PaymentIntent - sig { returns(T.nilable(PaymentIntentUpdateParams::PaymentDetails::Benefit)) } - def benefit; end sig { - params(_benefit: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Benefit)).returns(T.nilable(PaymentIntentUpdateParams::PaymentDetails::Benefit)) - } - def benefit=(_benefit); end - sig { - params(car_rental: T.nilable(PaymentIntentUpdateParams::PaymentDetails::CarRental), customer_reference: T.nilable(String), event_details: T.nilable(PaymentIntentUpdateParams::PaymentDetails::EventDetails), flight: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Flight), lodging: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Lodging), order_reference: T.nilable(String), subscription: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Subscription), benefit: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Benefit)).void + params(benefit: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Benefit), car_rental: T.nilable(PaymentIntentUpdateParams::PaymentDetails::CarRental), customer_reference: T.nilable(String), event_details: T.nilable(PaymentIntentUpdateParams::PaymentDetails::EventDetails), flight: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Flight), lodging: T.nilable(PaymentIntentUpdateParams::PaymentDetails::Lodging), order_reference: T.nilable(String), subscription: T.nilable(PaymentIntentUpdateParams::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 diff --git a/rbi/stripe/params/payment_link_create_params.rbi b/rbi/stripe/params/payment_link_create_params.rbi index 27c94db6..c12e14f6 100644 --- a/rbi/stripe/params/payment_link_create_params.rbi +++ b/rbi/stripe/params/payment_link_create_params.rbi @@ -637,6 +637,54 @@ module Stripe } def initialize(adjustable_quantity: nil, price: nil, price_data: nil, quantity: nil); end end + class NameCollection < ::Stripe::RequestParams + class Business < ::Stripe::RequestParams + # Enable business name collection on the payment link. Defaults to `false`. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # Whether the customer is required to provide their business name before checking out. Defaults to `false`. + sig { returns(T.nilable(T::Boolean)) } + def optional; end + sig { params(_optional: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def optional=(_optional); end + sig { params(enabled: T::Boolean, optional: T.nilable(T::Boolean)).void } + def initialize(enabled: nil, optional: nil); end + end + class Individual < ::Stripe::RequestParams + # Enable individual name collection on the payment link. Defaults to `false`. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # Whether the customer is required to provide their full name before checking out. Defaults to `false`. + sig { returns(T.nilable(T::Boolean)) } + def optional; end + sig { params(_optional: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def optional=(_optional); end + sig { params(enabled: T::Boolean, optional: T.nilable(T::Boolean)).void } + def initialize(enabled: nil, optional: nil); end + end + # Controls settings applied for collecting the customer's business name. + sig { returns(T.nilable(PaymentLinkCreateParams::NameCollection::Business)) } + def business; end + sig { + params(_business: T.nilable(PaymentLinkCreateParams::NameCollection::Business)).returns(T.nilable(PaymentLinkCreateParams::NameCollection::Business)) + } + def business=(_business); end + # Controls settings applied for collecting the customer's individual name. + sig { returns(T.nilable(PaymentLinkCreateParams::NameCollection::Individual)) } + def individual; end + sig { + params(_individual: T.nilable(PaymentLinkCreateParams::NameCollection::Individual)).returns(T.nilable(PaymentLinkCreateParams::NameCollection::Individual)) + } + def individual=(_individual); end + sig { + params(business: T.nilable(PaymentLinkCreateParams::NameCollection::Business), individual: T.nilable(PaymentLinkCreateParams::NameCollection::Individual)).void + } + def initialize(business: nil, individual: nil); end + end class OptionalItem < ::Stripe::RequestParams class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative integer. @@ -1015,6 +1063,13 @@ module Stripe params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) } def metadata=(_metadata); end + # Controls settings applied for collecting the customer's name. + sig { returns(T.nilable(PaymentLinkCreateParams::NameCollection)) } + def name_collection; end + sig { + params(_name_collection: T.nilable(PaymentLinkCreateParams::NameCollection)).returns(T.nilable(PaymentLinkCreateParams::NameCollection)) + } + def name_collection=(_name_collection); end # The account on behalf of which to charge. sig { returns(T.nilable(String)) } def on_behalf_of; end @@ -1109,7 +1164,7 @@ module Stripe } def transfer_data=(_transfer_data); end sig { - params(after_completion: T.nilable(PaymentLinkCreateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), application_fee_amount: T.nilable(Integer), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(PaymentLinkCreateParams::AutomaticTax), billing_address_collection: T.nilable(String), consent_collection: T.nilable(PaymentLinkCreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[PaymentLinkCreateParams::CustomField]), custom_text: T.nilable(PaymentLinkCreateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(PaymentLinkCreateParams::InvoiceCreation), line_items: T::Array[PaymentLinkCreateParams::LineItem], metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), optional_items: T.nilable(T::Array[PaymentLinkCreateParams::OptionalItem]), payment_intent_data: T.nilable(PaymentLinkCreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T::Array[String]), phone_number_collection: T.nilable(PaymentLinkCreateParams::PhoneNumberCollection), restrictions: T.nilable(PaymentLinkCreateParams::Restrictions), shipping_address_collection: T.nilable(PaymentLinkCreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[PaymentLinkCreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(PaymentLinkCreateParams::SubscriptionData), tax_id_collection: T.nilable(PaymentLinkCreateParams::TaxIdCollection), transfer_data: T.nilable(PaymentLinkCreateParams::TransferData)).void + params(after_completion: T.nilable(PaymentLinkCreateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), application_fee_amount: T.nilable(Integer), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(PaymentLinkCreateParams::AutomaticTax), billing_address_collection: T.nilable(String), consent_collection: T.nilable(PaymentLinkCreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[PaymentLinkCreateParams::CustomField]), custom_text: T.nilable(PaymentLinkCreateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(PaymentLinkCreateParams::InvoiceCreation), line_items: T::Array[PaymentLinkCreateParams::LineItem], metadata: T.nilable(T::Hash[String, String]), name_collection: T.nilable(PaymentLinkCreateParams::NameCollection), on_behalf_of: T.nilable(String), optional_items: T.nilable(T::Array[PaymentLinkCreateParams::OptionalItem]), payment_intent_data: T.nilable(PaymentLinkCreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T::Array[String]), phone_number_collection: T.nilable(PaymentLinkCreateParams::PhoneNumberCollection), restrictions: T.nilable(PaymentLinkCreateParams::Restrictions), shipping_address_collection: T.nilable(PaymentLinkCreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[PaymentLinkCreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(PaymentLinkCreateParams::SubscriptionData), tax_id_collection: T.nilable(PaymentLinkCreateParams::TaxIdCollection), transfer_data: T.nilable(PaymentLinkCreateParams::TransferData)).void } def initialize( after_completion: nil, @@ -1128,6 +1183,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, diff --git a/rbi/stripe/params/payment_link_update_params.rbi b/rbi/stripe/params/payment_link_update_params.rbi index 77fed5d5..9f1bd2d0 100644 --- a/rbi/stripe/params/payment_link_update_params.rbi +++ b/rbi/stripe/params/payment_link_update_params.rbi @@ -476,6 +476,54 @@ module Stripe } def initialize(adjustable_quantity: nil, id: nil, quantity: nil); end end + class NameCollection < ::Stripe::RequestParams + class Business < ::Stripe::RequestParams + # Enable business name collection on the payment link. Defaults to `false`. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # Whether the customer is required to provide their business name before checking out. Defaults to `false`. + sig { returns(T.nilable(T::Boolean)) } + def optional; end + sig { params(_optional: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def optional=(_optional); end + sig { params(enabled: T::Boolean, optional: T.nilable(T::Boolean)).void } + def initialize(enabled: nil, optional: nil); end + end + class Individual < ::Stripe::RequestParams + # Enable individual name collection on the payment link. Defaults to `false`. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # Whether the customer is required to provide their full name before checking out. Defaults to `false`. + sig { returns(T.nilable(T::Boolean)) } + def optional; end + sig { params(_optional: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def optional=(_optional); end + sig { params(enabled: T::Boolean, optional: T.nilable(T::Boolean)).void } + def initialize(enabled: nil, optional: nil); end + end + # Controls settings applied for collecting the customer's business name. + sig { returns(T.nilable(PaymentLinkUpdateParams::NameCollection::Business)) } + def business; end + sig { + params(_business: T.nilable(PaymentLinkUpdateParams::NameCollection::Business)).returns(T.nilable(PaymentLinkUpdateParams::NameCollection::Business)) + } + def business=(_business); end + # Controls settings applied for collecting the customer's individual name. + sig { returns(T.nilable(PaymentLinkUpdateParams::NameCollection::Individual)) } + def individual; end + sig { + params(_individual: T.nilable(PaymentLinkUpdateParams::NameCollection::Individual)).returns(T.nilable(PaymentLinkUpdateParams::NameCollection::Individual)) + } + def individual=(_individual); end + sig { + params(business: T.nilable(PaymentLinkUpdateParams::NameCollection::Business), individual: T.nilable(PaymentLinkUpdateParams::NameCollection::Individual)).void + } + def initialize(business: nil, individual: nil); end + end class PaymentIntentData < ::Stripe::RequestParams # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } @@ -743,6 +791,13 @@ module Stripe params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) } def metadata=(_metadata); end + # Controls settings applied for collecting the customer's name. + sig { returns(T.nilable(T.any(String, PaymentLinkUpdateParams::NameCollection))) } + def name_collection; end + sig { + params(_name_collection: T.nilable(T.any(String, PaymentLinkUpdateParams::NameCollection))).returns(T.nilable(T.any(String, PaymentLinkUpdateParams::NameCollection))) + } + def name_collection=(_name_collection); end # A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode. sig { returns(T.nilable(PaymentLinkUpdateParams::PaymentIntentData)) } def payment_intent_data; end @@ -809,7 +864,7 @@ module Stripe } def tax_id_collection=(_tax_id_collection); end sig { - params(active: T.nilable(T::Boolean), after_completion: T.nilable(PaymentLinkUpdateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(PaymentLinkUpdateParams::AutomaticTax), billing_address_collection: T.nilable(String), custom_fields: T.nilable(T.any(String, T::Array[PaymentLinkUpdateParams::CustomField])), custom_text: T.nilable(PaymentLinkUpdateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(PaymentLinkUpdateParams::InvoiceCreation), line_items: T.nilable(T::Array[PaymentLinkUpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), payment_intent_data: T.nilable(PaymentLinkUpdateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T.any(String, T::Array[String])), phone_number_collection: T.nilable(PaymentLinkUpdateParams::PhoneNumberCollection), restrictions: T.nilable(T.any(String, PaymentLinkUpdateParams::Restrictions)), shipping_address_collection: T.nilable(T.any(String, PaymentLinkUpdateParams::ShippingAddressCollection)), submit_type: T.nilable(String), subscription_data: T.nilable(PaymentLinkUpdateParams::SubscriptionData), tax_id_collection: T.nilable(PaymentLinkUpdateParams::TaxIdCollection)).void + params(active: T.nilable(T::Boolean), after_completion: T.nilable(PaymentLinkUpdateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(PaymentLinkUpdateParams::AutomaticTax), billing_address_collection: T.nilable(String), custom_fields: T.nilable(T.any(String, T::Array[PaymentLinkUpdateParams::CustomField])), custom_text: T.nilable(PaymentLinkUpdateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(PaymentLinkUpdateParams::InvoiceCreation), line_items: T.nilable(T::Array[PaymentLinkUpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), name_collection: T.nilable(T.any(String, PaymentLinkUpdateParams::NameCollection)), payment_intent_data: T.nilable(PaymentLinkUpdateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T.any(String, T::Array[String])), phone_number_collection: T.nilable(PaymentLinkUpdateParams::PhoneNumberCollection), restrictions: T.nilable(T.any(String, PaymentLinkUpdateParams::Restrictions)), shipping_address_collection: T.nilable(T.any(String, PaymentLinkUpdateParams::ShippingAddressCollection)), submit_type: T.nilable(String), subscription_data: T.nilable(PaymentLinkUpdateParams::SubscriptionData), tax_id_collection: T.nilable(PaymentLinkUpdateParams::TaxIdCollection)).void } def initialize( active: nil, @@ -825,6 +880,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, diff --git a/rbi/stripe/params/payment_method_configuration_create_params.rbi b/rbi/stripe/params/payment_method_configuration_create_params.rbi index 54112957..0862ad3c 100644 --- a/rbi/stripe/params/payment_method_configuration_create_params.rbi +++ b/rbi/stripe/params/payment_method_configuration_create_params.rbi @@ -396,6 +396,28 @@ module Stripe } def initialize(display_preference: nil); end end + class Crypto < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::Crypto::DisplayPreference)) } + def display_preference; end + sig { + params(_display_preference: T.nilable(PaymentMethodConfigurationCreateParams::Crypto::DisplayPreference)).returns(T.nilable(PaymentMethodConfigurationCreateParams::Crypto::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(PaymentMethodConfigurationCreateParams::Crypto::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end class CustomerBalance < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -758,6 +780,28 @@ module Stripe } def initialize(display_preference: nil); end end + class MbWay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::MbWay::DisplayPreference)) } + def display_preference; end + sig { + params(_display_preference: T.nilable(PaymentMethodConfigurationCreateParams::MbWay::DisplayPreference)).returns(T.nilable(PaymentMethodConfigurationCreateParams::MbWay::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(PaymentMethodConfigurationCreateParams::MbWay::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end class Mobilepay < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -1475,6 +1519,13 @@ module Stripe params(_cashapp: T.nilable(PaymentMethodConfigurationCreateParams::Cashapp)).returns(T.nilable(PaymentMethodConfigurationCreateParams::Cashapp)) } def cashapp=(_cashapp); end + # [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. + sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::Crypto)) } + def crypto; end + sig { + params(_crypto: T.nilable(PaymentMethodConfigurationCreateParams::Crypto)).returns(T.nilable(PaymentMethodConfigurationCreateParams::Crypto)) + } + def crypto=(_crypto); end # Uses a customer’s [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. sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::CustomerBalance)) } def customer_balance; end @@ -1592,6 +1643,13 @@ module Stripe params(_link: T.nilable(PaymentMethodConfigurationCreateParams::Link)).returns(T.nilable(PaymentMethodConfigurationCreateParams::Link)) } def link=(_link); end + # 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. + sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::MbWay)) } + def mb_way; end + sig { + params(_mb_way: T.nilable(PaymentMethodConfigurationCreateParams::MbWay)).returns(T.nilable(PaymentMethodConfigurationCreateParams::MbWay)) + } + def mb_way=(_mb_way); end # 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. sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::Mobilepay)) } def mobilepay; end @@ -1785,7 +1843,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(PaymentMethodConfigurationCreateParams::AcssDebit), affirm: T.nilable(PaymentMethodConfigurationCreateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodConfigurationCreateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodConfigurationCreateParams::Alipay), alma: T.nilable(PaymentMethodConfigurationCreateParams::Alma), amazon_pay: T.nilable(PaymentMethodConfigurationCreateParams::AmazonPay), apple_pay: T.nilable(PaymentMethodConfigurationCreateParams::ApplePay), apple_pay_later: T.nilable(PaymentMethodConfigurationCreateParams::ApplePayLater), au_becs_debit: T.nilable(PaymentMethodConfigurationCreateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodConfigurationCreateParams::BacsDebit), bancontact: T.nilable(PaymentMethodConfigurationCreateParams::Bancontact), billie: T.nilable(PaymentMethodConfigurationCreateParams::Billie), blik: T.nilable(PaymentMethodConfigurationCreateParams::Blik), boleto: T.nilable(PaymentMethodConfigurationCreateParams::Boleto), card: T.nilable(PaymentMethodConfigurationCreateParams::Card), cartes_bancaires: T.nilable(PaymentMethodConfigurationCreateParams::CartesBancaires), cashapp: T.nilable(PaymentMethodConfigurationCreateParams::Cashapp), customer_balance: T.nilable(PaymentMethodConfigurationCreateParams::CustomerBalance), eps: T.nilable(PaymentMethodConfigurationCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodConfigurationCreateParams::Fpx), fr_meal_voucher_conecs: T.nilable(PaymentMethodConfigurationCreateParams::FrMealVoucherConecs), giropay: T.nilable(PaymentMethodConfigurationCreateParams::Giropay), google_pay: T.nilable(PaymentMethodConfigurationCreateParams::GooglePay), gopay: T.nilable(PaymentMethodConfigurationCreateParams::Gopay), grabpay: T.nilable(PaymentMethodConfigurationCreateParams::Grabpay), id_bank_transfer: T.nilable(PaymentMethodConfigurationCreateParams::IdBankTransfer), ideal: T.nilable(PaymentMethodConfigurationCreateParams::Ideal), jcb: T.nilable(PaymentMethodConfigurationCreateParams::Jcb), kakao_pay: T.nilable(PaymentMethodConfigurationCreateParams::KakaoPay), klarna: T.nilable(PaymentMethodConfigurationCreateParams::Klarna), konbini: T.nilable(PaymentMethodConfigurationCreateParams::Konbini), kr_card: T.nilable(PaymentMethodConfigurationCreateParams::KrCard), link: T.nilable(PaymentMethodConfigurationCreateParams::Link), mobilepay: T.nilable(PaymentMethodConfigurationCreateParams::Mobilepay), multibanco: T.nilable(PaymentMethodConfigurationCreateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(PaymentMethodConfigurationCreateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodConfigurationCreateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodConfigurationCreateParams::Oxxo), p24: T.nilable(PaymentMethodConfigurationCreateParams::P24), parent: T.nilable(String), pay_by_bank: T.nilable(PaymentMethodConfigurationCreateParams::PayByBank), payco: T.nilable(PaymentMethodConfigurationCreateParams::Payco), paynow: T.nilable(PaymentMethodConfigurationCreateParams::Paynow), paypal: T.nilable(PaymentMethodConfigurationCreateParams::Paypal), paypay: T.nilable(PaymentMethodConfigurationCreateParams::Paypay), payto: T.nilable(PaymentMethodConfigurationCreateParams::Payto), pix: T.nilable(PaymentMethodConfigurationCreateParams::Pix), promptpay: T.nilable(PaymentMethodConfigurationCreateParams::Promptpay), qris: T.nilable(PaymentMethodConfigurationCreateParams::Qris), revolut_pay: T.nilable(PaymentMethodConfigurationCreateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodConfigurationCreateParams::SamsungPay), satispay: T.nilable(PaymentMethodConfigurationCreateParams::Satispay), sepa_debit: T.nilable(PaymentMethodConfigurationCreateParams::SepaDebit), shopeepay: T.nilable(PaymentMethodConfigurationCreateParams::Shopeepay), sofort: T.nilable(PaymentMethodConfigurationCreateParams::Sofort), swish: T.nilable(PaymentMethodConfigurationCreateParams::Swish), twint: T.nilable(PaymentMethodConfigurationCreateParams::Twint), us_bank_account: T.nilable(PaymentMethodConfigurationCreateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodConfigurationCreateParams::WechatPay), zip: T.nilable(PaymentMethodConfigurationCreateParams::Zip)).void + params(acss_debit: T.nilable(PaymentMethodConfigurationCreateParams::AcssDebit), affirm: T.nilable(PaymentMethodConfigurationCreateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodConfigurationCreateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodConfigurationCreateParams::Alipay), alma: T.nilable(PaymentMethodConfigurationCreateParams::Alma), amazon_pay: T.nilable(PaymentMethodConfigurationCreateParams::AmazonPay), apple_pay: T.nilable(PaymentMethodConfigurationCreateParams::ApplePay), apple_pay_later: T.nilable(PaymentMethodConfigurationCreateParams::ApplePayLater), au_becs_debit: T.nilable(PaymentMethodConfigurationCreateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodConfigurationCreateParams::BacsDebit), bancontact: T.nilable(PaymentMethodConfigurationCreateParams::Bancontact), billie: T.nilable(PaymentMethodConfigurationCreateParams::Billie), blik: T.nilable(PaymentMethodConfigurationCreateParams::Blik), boleto: T.nilable(PaymentMethodConfigurationCreateParams::Boleto), card: T.nilable(PaymentMethodConfigurationCreateParams::Card), cartes_bancaires: T.nilable(PaymentMethodConfigurationCreateParams::CartesBancaires), cashapp: T.nilable(PaymentMethodConfigurationCreateParams::Cashapp), crypto: T.nilable(PaymentMethodConfigurationCreateParams::Crypto), customer_balance: T.nilable(PaymentMethodConfigurationCreateParams::CustomerBalance), eps: T.nilable(PaymentMethodConfigurationCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodConfigurationCreateParams::Fpx), fr_meal_voucher_conecs: T.nilable(PaymentMethodConfigurationCreateParams::FrMealVoucherConecs), giropay: T.nilable(PaymentMethodConfigurationCreateParams::Giropay), google_pay: T.nilable(PaymentMethodConfigurationCreateParams::GooglePay), gopay: T.nilable(PaymentMethodConfigurationCreateParams::Gopay), grabpay: T.nilable(PaymentMethodConfigurationCreateParams::Grabpay), id_bank_transfer: T.nilable(PaymentMethodConfigurationCreateParams::IdBankTransfer), ideal: T.nilable(PaymentMethodConfigurationCreateParams::Ideal), jcb: T.nilable(PaymentMethodConfigurationCreateParams::Jcb), kakao_pay: T.nilable(PaymentMethodConfigurationCreateParams::KakaoPay), klarna: T.nilable(PaymentMethodConfigurationCreateParams::Klarna), konbini: T.nilable(PaymentMethodConfigurationCreateParams::Konbini), kr_card: T.nilable(PaymentMethodConfigurationCreateParams::KrCard), link: T.nilable(PaymentMethodConfigurationCreateParams::Link), mb_way: T.nilable(PaymentMethodConfigurationCreateParams::MbWay), mobilepay: T.nilable(PaymentMethodConfigurationCreateParams::Mobilepay), multibanco: T.nilable(PaymentMethodConfigurationCreateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(PaymentMethodConfigurationCreateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodConfigurationCreateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodConfigurationCreateParams::Oxxo), p24: T.nilable(PaymentMethodConfigurationCreateParams::P24), parent: T.nilable(String), pay_by_bank: T.nilable(PaymentMethodConfigurationCreateParams::PayByBank), payco: T.nilable(PaymentMethodConfigurationCreateParams::Payco), paynow: T.nilable(PaymentMethodConfigurationCreateParams::Paynow), paypal: T.nilable(PaymentMethodConfigurationCreateParams::Paypal), paypay: T.nilable(PaymentMethodConfigurationCreateParams::Paypay), payto: T.nilable(PaymentMethodConfigurationCreateParams::Payto), pix: T.nilable(PaymentMethodConfigurationCreateParams::Pix), promptpay: T.nilable(PaymentMethodConfigurationCreateParams::Promptpay), qris: T.nilable(PaymentMethodConfigurationCreateParams::Qris), revolut_pay: T.nilable(PaymentMethodConfigurationCreateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodConfigurationCreateParams::SamsungPay), satispay: T.nilable(PaymentMethodConfigurationCreateParams::Satispay), sepa_debit: T.nilable(PaymentMethodConfigurationCreateParams::SepaDebit), shopeepay: T.nilable(PaymentMethodConfigurationCreateParams::Shopeepay), sofort: T.nilable(PaymentMethodConfigurationCreateParams::Sofort), swish: T.nilable(PaymentMethodConfigurationCreateParams::Swish), twint: T.nilable(PaymentMethodConfigurationCreateParams::Twint), us_bank_account: T.nilable(PaymentMethodConfigurationCreateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodConfigurationCreateParams::WechatPay), zip: T.nilable(PaymentMethodConfigurationCreateParams::Zip)).void } def initialize( acss_debit: nil, @@ -1805,6 +1863,7 @@ module Stripe card: nil, cartes_bancaires: nil, cashapp: nil, + crypto: nil, customer_balance: nil, eps: nil, expand: nil, @@ -1822,6 +1881,7 @@ module Stripe konbini: nil, kr_card: nil, link: nil, + mb_way: nil, mobilepay: nil, multibanco: nil, name: nil, diff --git a/rbi/stripe/params/payment_method_configuration_update_params.rbi b/rbi/stripe/params/payment_method_configuration_update_params.rbi index d6f1f9bd..16a57de9 100644 --- a/rbi/stripe/params/payment_method_configuration_update_params.rbi +++ b/rbi/stripe/params/payment_method_configuration_update_params.rbi @@ -396,6 +396,28 @@ module Stripe } def initialize(display_preference: nil); end end + class Crypto < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::Crypto::DisplayPreference)) } + def display_preference; end + sig { + params(_display_preference: T.nilable(PaymentMethodConfigurationUpdateParams::Crypto::DisplayPreference)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::Crypto::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(PaymentMethodConfigurationUpdateParams::Crypto::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end class CustomerBalance < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -758,6 +780,28 @@ module Stripe } def initialize(display_preference: nil); end end + class MbWay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::MbWay::DisplayPreference)) } + def display_preference; end + sig { + params(_display_preference: T.nilable(PaymentMethodConfigurationUpdateParams::MbWay::DisplayPreference)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::MbWay::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(PaymentMethodConfigurationUpdateParams::MbWay::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end class Mobilepay < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -1480,6 +1524,13 @@ module Stripe params(_cashapp: T.nilable(PaymentMethodConfigurationUpdateParams::Cashapp)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::Cashapp)) } def cashapp=(_cashapp); end + # [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. + sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::Crypto)) } + def crypto; end + sig { + params(_crypto: T.nilable(PaymentMethodConfigurationUpdateParams::Crypto)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::Crypto)) + } + def crypto=(_crypto); end # Uses a customer’s [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. sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::CustomerBalance)) } def customer_balance; end @@ -1597,6 +1648,13 @@ module Stripe params(_link: T.nilable(PaymentMethodConfigurationUpdateParams::Link)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::Link)) } def link=(_link); end + # 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. + sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::MbWay)) } + def mb_way; end + sig { + params(_mb_way: T.nilable(PaymentMethodConfigurationUpdateParams::MbWay)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::MbWay)) + } + def mb_way=(_mb_way); end # 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. sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::Mobilepay)) } def mobilepay; end @@ -1785,7 +1843,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(PaymentMethodConfigurationUpdateParams::AcssDebit), active: T.nilable(T::Boolean), affirm: T.nilable(PaymentMethodConfigurationUpdateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodConfigurationUpdateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodConfigurationUpdateParams::Alipay), alma: T.nilable(PaymentMethodConfigurationUpdateParams::Alma), amazon_pay: T.nilable(PaymentMethodConfigurationUpdateParams::AmazonPay), apple_pay: T.nilable(PaymentMethodConfigurationUpdateParams::ApplePay), apple_pay_later: T.nilable(PaymentMethodConfigurationUpdateParams::ApplePayLater), au_becs_debit: T.nilable(PaymentMethodConfigurationUpdateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodConfigurationUpdateParams::BacsDebit), bancontact: T.nilable(PaymentMethodConfigurationUpdateParams::Bancontact), billie: T.nilable(PaymentMethodConfigurationUpdateParams::Billie), blik: T.nilable(PaymentMethodConfigurationUpdateParams::Blik), boleto: T.nilable(PaymentMethodConfigurationUpdateParams::Boleto), card: T.nilable(PaymentMethodConfigurationUpdateParams::Card), cartes_bancaires: T.nilable(PaymentMethodConfigurationUpdateParams::CartesBancaires), cashapp: T.nilable(PaymentMethodConfigurationUpdateParams::Cashapp), customer_balance: T.nilable(PaymentMethodConfigurationUpdateParams::CustomerBalance), eps: T.nilable(PaymentMethodConfigurationUpdateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodConfigurationUpdateParams::Fpx), fr_meal_voucher_conecs: T.nilable(PaymentMethodConfigurationUpdateParams::FrMealVoucherConecs), giropay: T.nilable(PaymentMethodConfigurationUpdateParams::Giropay), google_pay: T.nilable(PaymentMethodConfigurationUpdateParams::GooglePay), gopay: T.nilable(PaymentMethodConfigurationUpdateParams::Gopay), grabpay: T.nilable(PaymentMethodConfigurationUpdateParams::Grabpay), id_bank_transfer: T.nilable(PaymentMethodConfigurationUpdateParams::IdBankTransfer), ideal: T.nilable(PaymentMethodConfigurationUpdateParams::Ideal), jcb: T.nilable(PaymentMethodConfigurationUpdateParams::Jcb), kakao_pay: T.nilable(PaymentMethodConfigurationUpdateParams::KakaoPay), klarna: T.nilable(PaymentMethodConfigurationUpdateParams::Klarna), konbini: T.nilable(PaymentMethodConfigurationUpdateParams::Konbini), kr_card: T.nilable(PaymentMethodConfigurationUpdateParams::KrCard), link: T.nilable(PaymentMethodConfigurationUpdateParams::Link), mobilepay: T.nilable(PaymentMethodConfigurationUpdateParams::Mobilepay), multibanco: T.nilable(PaymentMethodConfigurationUpdateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(PaymentMethodConfigurationUpdateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodConfigurationUpdateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodConfigurationUpdateParams::Oxxo), p24: T.nilable(PaymentMethodConfigurationUpdateParams::P24), pay_by_bank: T.nilable(PaymentMethodConfigurationUpdateParams::PayByBank), payco: T.nilable(PaymentMethodConfigurationUpdateParams::Payco), paynow: T.nilable(PaymentMethodConfigurationUpdateParams::Paynow), paypal: T.nilable(PaymentMethodConfigurationUpdateParams::Paypal), paypay: T.nilable(PaymentMethodConfigurationUpdateParams::Paypay), payto: T.nilable(PaymentMethodConfigurationUpdateParams::Payto), pix: T.nilable(PaymentMethodConfigurationUpdateParams::Pix), promptpay: T.nilable(PaymentMethodConfigurationUpdateParams::Promptpay), qris: T.nilable(PaymentMethodConfigurationUpdateParams::Qris), revolut_pay: T.nilable(PaymentMethodConfigurationUpdateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodConfigurationUpdateParams::SamsungPay), satispay: T.nilable(PaymentMethodConfigurationUpdateParams::Satispay), sepa_debit: T.nilable(PaymentMethodConfigurationUpdateParams::SepaDebit), shopeepay: T.nilable(PaymentMethodConfigurationUpdateParams::Shopeepay), sofort: T.nilable(PaymentMethodConfigurationUpdateParams::Sofort), swish: T.nilable(PaymentMethodConfigurationUpdateParams::Swish), twint: T.nilable(PaymentMethodConfigurationUpdateParams::Twint), us_bank_account: T.nilable(PaymentMethodConfigurationUpdateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodConfigurationUpdateParams::WechatPay), zip: T.nilable(PaymentMethodConfigurationUpdateParams::Zip)).void + params(acss_debit: T.nilable(PaymentMethodConfigurationUpdateParams::AcssDebit), active: T.nilable(T::Boolean), affirm: T.nilable(PaymentMethodConfigurationUpdateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodConfigurationUpdateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodConfigurationUpdateParams::Alipay), alma: T.nilable(PaymentMethodConfigurationUpdateParams::Alma), amazon_pay: T.nilable(PaymentMethodConfigurationUpdateParams::AmazonPay), apple_pay: T.nilable(PaymentMethodConfigurationUpdateParams::ApplePay), apple_pay_later: T.nilable(PaymentMethodConfigurationUpdateParams::ApplePayLater), au_becs_debit: T.nilable(PaymentMethodConfigurationUpdateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodConfigurationUpdateParams::BacsDebit), bancontact: T.nilable(PaymentMethodConfigurationUpdateParams::Bancontact), billie: T.nilable(PaymentMethodConfigurationUpdateParams::Billie), blik: T.nilable(PaymentMethodConfigurationUpdateParams::Blik), boleto: T.nilable(PaymentMethodConfigurationUpdateParams::Boleto), card: T.nilable(PaymentMethodConfigurationUpdateParams::Card), cartes_bancaires: T.nilable(PaymentMethodConfigurationUpdateParams::CartesBancaires), cashapp: T.nilable(PaymentMethodConfigurationUpdateParams::Cashapp), crypto: T.nilable(PaymentMethodConfigurationUpdateParams::Crypto), customer_balance: T.nilable(PaymentMethodConfigurationUpdateParams::CustomerBalance), eps: T.nilable(PaymentMethodConfigurationUpdateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodConfigurationUpdateParams::Fpx), fr_meal_voucher_conecs: T.nilable(PaymentMethodConfigurationUpdateParams::FrMealVoucherConecs), giropay: T.nilable(PaymentMethodConfigurationUpdateParams::Giropay), google_pay: T.nilable(PaymentMethodConfigurationUpdateParams::GooglePay), gopay: T.nilable(PaymentMethodConfigurationUpdateParams::Gopay), grabpay: T.nilable(PaymentMethodConfigurationUpdateParams::Grabpay), id_bank_transfer: T.nilable(PaymentMethodConfigurationUpdateParams::IdBankTransfer), ideal: T.nilable(PaymentMethodConfigurationUpdateParams::Ideal), jcb: T.nilable(PaymentMethodConfigurationUpdateParams::Jcb), kakao_pay: T.nilable(PaymentMethodConfigurationUpdateParams::KakaoPay), klarna: T.nilable(PaymentMethodConfigurationUpdateParams::Klarna), konbini: T.nilable(PaymentMethodConfigurationUpdateParams::Konbini), kr_card: T.nilable(PaymentMethodConfigurationUpdateParams::KrCard), link: T.nilable(PaymentMethodConfigurationUpdateParams::Link), mb_way: T.nilable(PaymentMethodConfigurationUpdateParams::MbWay), mobilepay: T.nilable(PaymentMethodConfigurationUpdateParams::Mobilepay), multibanco: T.nilable(PaymentMethodConfigurationUpdateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(PaymentMethodConfigurationUpdateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodConfigurationUpdateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodConfigurationUpdateParams::Oxxo), p24: T.nilable(PaymentMethodConfigurationUpdateParams::P24), pay_by_bank: T.nilable(PaymentMethodConfigurationUpdateParams::PayByBank), payco: T.nilable(PaymentMethodConfigurationUpdateParams::Payco), paynow: T.nilable(PaymentMethodConfigurationUpdateParams::Paynow), paypal: T.nilable(PaymentMethodConfigurationUpdateParams::Paypal), paypay: T.nilable(PaymentMethodConfigurationUpdateParams::Paypay), payto: T.nilable(PaymentMethodConfigurationUpdateParams::Payto), pix: T.nilable(PaymentMethodConfigurationUpdateParams::Pix), promptpay: T.nilable(PaymentMethodConfigurationUpdateParams::Promptpay), qris: T.nilable(PaymentMethodConfigurationUpdateParams::Qris), revolut_pay: T.nilable(PaymentMethodConfigurationUpdateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodConfigurationUpdateParams::SamsungPay), satispay: T.nilable(PaymentMethodConfigurationUpdateParams::Satispay), sepa_debit: T.nilable(PaymentMethodConfigurationUpdateParams::SepaDebit), shopeepay: T.nilable(PaymentMethodConfigurationUpdateParams::Shopeepay), sofort: T.nilable(PaymentMethodConfigurationUpdateParams::Sofort), swish: T.nilable(PaymentMethodConfigurationUpdateParams::Swish), twint: T.nilable(PaymentMethodConfigurationUpdateParams::Twint), us_bank_account: T.nilable(PaymentMethodConfigurationUpdateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodConfigurationUpdateParams::WechatPay), zip: T.nilable(PaymentMethodConfigurationUpdateParams::Zip)).void } def initialize( acss_debit: nil, @@ -1806,6 +1864,7 @@ module Stripe card: nil, cartes_bancaires: nil, cashapp: nil, + crypto: nil, customer_balance: nil, eps: nil, expand: nil, @@ -1823,6 +1882,7 @@ module Stripe konbini: nil, kr_card: nil, link: nil, + mb_way: nil, mobilepay: nil, multibanco: nil, name: nil, diff --git a/rbi/stripe/params/payment_method_create_params.rbi b/rbi/stripe/params/payment_method_create_params.rbi index bce54ec5..edb4121c 100644 --- a/rbi/stripe/params/payment_method_create_params.rbi +++ b/rbi/stripe/params/payment_method_create_params.rbi @@ -202,6 +202,15 @@ module Stripe end 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. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(type: String).void } + def initialize(type: nil); end + end class CustomerBalance < ::Stripe::RequestParams; end class Eps < ::Stripe::RequestParams # The customer's bank. @@ -609,6 +618,13 @@ module Stripe params(_crypto: T.nilable(PaymentMethodCreateParams::Crypto)).returns(T.nilable(PaymentMethodCreateParams::Crypto)) } def crypto=(_crypto); end + # If this is a `custom` PaymentMethod, this hash contains details about the Custom payment method. + sig { returns(T.nilable(PaymentMethodCreateParams::Custom)) } + def custom; end + sig { + params(_custom: T.nilable(PaymentMethodCreateParams::Custom)).returns(T.nilable(PaymentMethodCreateParams::Custom)) + } + def custom=(_custom); end # The `Customer` to whom the original PaymentMethod is attached. sig { returns(T.nilable(String)) } def customer; end @@ -945,7 +961,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(PaymentMethodCreateParams::AcssDebit), affirm: T.nilable(PaymentMethodCreateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodCreateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodCreateParams::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(PaymentMethodCreateParams::Alma), amazon_pay: T.nilable(PaymentMethodCreateParams::AmazonPay), au_becs_debit: T.nilable(PaymentMethodCreateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodCreateParams::BacsDebit), bancontact: T.nilable(PaymentMethodCreateParams::Bancontact), billie: T.nilable(PaymentMethodCreateParams::Billie), billing_details: T.nilable(PaymentMethodCreateParams::BillingDetails), blik: T.nilable(PaymentMethodCreateParams::Blik), boleto: T.nilable(PaymentMethodCreateParams::Boleto), card: T.nilable(PaymentMethodCreateParams::Card), cashapp: T.nilable(PaymentMethodCreateParams::Cashapp), crypto: T.nilable(PaymentMethodCreateParams::Crypto), customer: T.nilable(String), customer_balance: T.nilable(PaymentMethodCreateParams::CustomerBalance), eps: T.nilable(PaymentMethodCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodCreateParams::Fpx), giropay: T.nilable(PaymentMethodCreateParams::Giropay), gopay: T.nilable(PaymentMethodCreateParams::Gopay), grabpay: T.nilable(PaymentMethodCreateParams::Grabpay), id_bank_transfer: T.nilable(PaymentMethodCreateParams::IdBankTransfer), ideal: T.nilable(PaymentMethodCreateParams::Ideal), interac_present: T.nilable(PaymentMethodCreateParams::InteracPresent), kakao_pay: T.nilable(PaymentMethodCreateParams::KakaoPay), klarna: T.nilable(PaymentMethodCreateParams::Klarna), konbini: T.nilable(PaymentMethodCreateParams::Konbini), kr_card: T.nilable(PaymentMethodCreateParams::KrCard), link: T.nilable(PaymentMethodCreateParams::Link), mb_way: T.nilable(PaymentMethodCreateParams::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(PaymentMethodCreateParams::Mobilepay), multibanco: T.nilable(PaymentMethodCreateParams::Multibanco), naver_pay: T.nilable(PaymentMethodCreateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodCreateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodCreateParams::Oxxo), p24: T.nilable(PaymentMethodCreateParams::P24), pay_by_bank: T.nilable(PaymentMethodCreateParams::PayByBank), payco: T.nilable(PaymentMethodCreateParams::Payco), payment_method: T.nilable(String), paynow: T.nilable(PaymentMethodCreateParams::Paynow), paypal: T.nilable(PaymentMethodCreateParams::Paypal), paypay: T.nilable(PaymentMethodCreateParams::Paypay), payto: T.nilable(PaymentMethodCreateParams::Payto), pix: T.nilable(PaymentMethodCreateParams::Pix), promptpay: T.nilable(PaymentMethodCreateParams::Promptpay), qris: T.nilable(PaymentMethodCreateParams::Qris), radar_options: T.nilable(PaymentMethodCreateParams::RadarOptions), rechnung: T.nilable(PaymentMethodCreateParams::Rechnung), revolut_pay: T.nilable(PaymentMethodCreateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodCreateParams::SamsungPay), satispay: T.nilable(PaymentMethodCreateParams::Satispay), sepa_debit: T.nilable(PaymentMethodCreateParams::SepaDebit), shopeepay: T.nilable(PaymentMethodCreateParams::Shopeepay), sofort: T.nilable(PaymentMethodCreateParams::Sofort), stripe_balance: T.nilable(PaymentMethodCreateParams::StripeBalance), swish: T.nilable(PaymentMethodCreateParams::Swish), twint: T.nilable(PaymentMethodCreateParams::Twint), type: T.nilable(String), us_bank_account: T.nilable(PaymentMethodCreateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodCreateParams::WechatPay), zip: T.nilable(PaymentMethodCreateParams::Zip)).void + params(acss_debit: T.nilable(PaymentMethodCreateParams::AcssDebit), affirm: T.nilable(PaymentMethodCreateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodCreateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodCreateParams::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(PaymentMethodCreateParams::Alma), amazon_pay: T.nilable(PaymentMethodCreateParams::AmazonPay), au_becs_debit: T.nilable(PaymentMethodCreateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodCreateParams::BacsDebit), bancontact: T.nilable(PaymentMethodCreateParams::Bancontact), billie: T.nilable(PaymentMethodCreateParams::Billie), billing_details: T.nilable(PaymentMethodCreateParams::BillingDetails), blik: T.nilable(PaymentMethodCreateParams::Blik), boleto: T.nilable(PaymentMethodCreateParams::Boleto), card: T.nilable(PaymentMethodCreateParams::Card), cashapp: T.nilable(PaymentMethodCreateParams::Cashapp), crypto: T.nilable(PaymentMethodCreateParams::Crypto), custom: T.nilable(PaymentMethodCreateParams::Custom), customer: T.nilable(String), customer_balance: T.nilable(PaymentMethodCreateParams::CustomerBalance), eps: T.nilable(PaymentMethodCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodCreateParams::Fpx), giropay: T.nilable(PaymentMethodCreateParams::Giropay), gopay: T.nilable(PaymentMethodCreateParams::Gopay), grabpay: T.nilable(PaymentMethodCreateParams::Grabpay), id_bank_transfer: T.nilable(PaymentMethodCreateParams::IdBankTransfer), ideal: T.nilable(PaymentMethodCreateParams::Ideal), interac_present: T.nilable(PaymentMethodCreateParams::InteracPresent), kakao_pay: T.nilable(PaymentMethodCreateParams::KakaoPay), klarna: T.nilable(PaymentMethodCreateParams::Klarna), konbini: T.nilable(PaymentMethodCreateParams::Konbini), kr_card: T.nilable(PaymentMethodCreateParams::KrCard), link: T.nilable(PaymentMethodCreateParams::Link), mb_way: T.nilable(PaymentMethodCreateParams::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(PaymentMethodCreateParams::Mobilepay), multibanco: T.nilable(PaymentMethodCreateParams::Multibanco), naver_pay: T.nilable(PaymentMethodCreateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodCreateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodCreateParams::Oxxo), p24: T.nilable(PaymentMethodCreateParams::P24), pay_by_bank: T.nilable(PaymentMethodCreateParams::PayByBank), payco: T.nilable(PaymentMethodCreateParams::Payco), payment_method: T.nilable(String), paynow: T.nilable(PaymentMethodCreateParams::Paynow), paypal: T.nilable(PaymentMethodCreateParams::Paypal), paypay: T.nilable(PaymentMethodCreateParams::Paypay), payto: T.nilable(PaymentMethodCreateParams::Payto), pix: T.nilable(PaymentMethodCreateParams::Pix), promptpay: T.nilable(PaymentMethodCreateParams::Promptpay), qris: T.nilable(PaymentMethodCreateParams::Qris), radar_options: T.nilable(PaymentMethodCreateParams::RadarOptions), rechnung: T.nilable(PaymentMethodCreateParams::Rechnung), revolut_pay: T.nilable(PaymentMethodCreateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodCreateParams::SamsungPay), satispay: T.nilable(PaymentMethodCreateParams::Satispay), sepa_debit: T.nilable(PaymentMethodCreateParams::SepaDebit), shopeepay: T.nilable(PaymentMethodCreateParams::Shopeepay), sofort: T.nilable(PaymentMethodCreateParams::Sofort), stripe_balance: T.nilable(PaymentMethodCreateParams::StripeBalance), swish: T.nilable(PaymentMethodCreateParams::Swish), twint: T.nilable(PaymentMethodCreateParams::Twint), type: T.nilable(String), us_bank_account: T.nilable(PaymentMethodCreateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodCreateParams::WechatPay), zip: T.nilable(PaymentMethodCreateParams::Zip)).void } def initialize( acss_debit: nil, @@ -965,6 +981,7 @@ module Stripe card: nil, cashapp: nil, crypto: nil, + custom: nil, customer: nil, customer_balance: nil, eps: nil, diff --git a/rbi/stripe/params/payment_method_list_params.rbi b/rbi/stripe/params/payment_method_list_params.rbi index faedfe25..369d5431 100644 --- a/rbi/stripe/params/payment_method_list_params.rbi +++ b/rbi/stripe/params/payment_method_list_params.rbi @@ -29,7 +29,7 @@ module Stripe def starting_after; end sig { params(_starting_after: T.nilable(String)).returns(T.nilable(String)) } def starting_after=(_starting_after); end - # 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. sig { returns(T.nilable(String)) } def type; end sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/payment_record_report_refund_params.rbi b/rbi/stripe/params/payment_record_report_refund_params.rbi new file mode 100644 index 00000000..0e4592f1 --- /dev/null +++ b/rbi/stripe/params/payment_record_report_refund_params.rbi @@ -0,0 +1,113 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: 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). + sig { returns(String) } + def currency; end + sig { params(_currency: String).returns(String) } + def currency=(_currency); end + # 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. + sig { returns(Integer) } + def value; end + sig { params(_value: Integer).returns(Integer) } + def value=(_value); end + sig { params(currency: String, value: Integer).void } + def initialize(currency: nil, value: nil); end + end + class ProcessorDetails < ::Stripe::RequestParams + class Custom < ::Stripe::RequestParams + # A reference to the external refund. This field must be unique across all refunds. + sig { returns(String) } + def refund_reference; end + sig { params(_refund_reference: String).returns(String) } + def refund_reference=(_refund_reference); end + sig { params(refund_reference: String).void } + def initialize(refund_reference: nil); end + end + # Information about the custom processor used to make this refund. + sig { returns(T.nilable(PaymentRecordReportRefundParams::ProcessorDetails::Custom)) } + def custom; end + sig { + params(_custom: T.nilable(PaymentRecordReportRefundParams::ProcessorDetails::Custom)).returns(T.nilable(PaymentRecordReportRefundParams::ProcessorDetails::Custom)) + } + def custom=(_custom); end + # 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. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(custom: T.nilable(PaymentRecordReportRefundParams::ProcessorDetails::Custom), type: String).void + } + def initialize(custom: nil, type: nil); end + end + class Refunded < ::Stripe::RequestParams + # When the reported refund completed. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def refunded_at; end + sig { params(_refunded_at: Integer).returns(Integer) } + def refunded_at=(_refunded_at); end + sig { params(refunded_at: Integer).void } + def initialize(refunded_at: nil); 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. + sig { returns(T.nilable(PaymentRecordReportRefundParams::Amount)) } + def amount; end + sig { + params(_amount: T.nilable(PaymentRecordReportRefundParams::Amount)).returns(T.nilable(PaymentRecordReportRefundParams::Amount)) + } + def amount=(_amount); end + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # When the reported refund was initiated. Measured in seconds since the Unix epoch. + sig { returns(T.nilable(Integer)) } + def initiated_at; end + sig { params(_initiated_at: T.nilable(Integer)).returns(T.nilable(Integer)) } + def initiated_at=(_initiated_at); end + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + # The outcome of the reported refund. + sig { returns(String) } + def outcome; end + sig { params(_outcome: String).returns(String) } + def outcome=(_outcome); end + # Processor information for this refund. + sig { returns(PaymentRecordReportRefundParams::ProcessorDetails) } + def processor_details; end + sig { + params(_processor_details: PaymentRecordReportRefundParams::ProcessorDetails).returns(PaymentRecordReportRefundParams::ProcessorDetails) + } + def processor_details=(_processor_details); end + # Information about the payment attempt refund. + sig { returns(PaymentRecordReportRefundParams::Refunded) } + def refunded; end + sig { + params(_refunded: PaymentRecordReportRefundParams::Refunded).returns(PaymentRecordReportRefundParams::Refunded) + } + def refunded=(_refunded); end + sig { + params(amount: T.nilable(PaymentRecordReportRefundParams::Amount), expand: T.nilable(T::Array[String]), initiated_at: T.nilable(Integer), metadata: T.nilable(T.any(String, T::Hash[String, String])), outcome: String, processor_details: PaymentRecordReportRefundParams::ProcessorDetails, refunded: PaymentRecordReportRefundParams::Refunded).void + } + def initialize( + amount: nil, + expand: nil, + initiated_at: nil, + metadata: nil, + outcome: nil, + processor_details: nil, + refunded: nil + ); end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/setup_intent_confirm_params.rbi b/rbi/stripe/params/setup_intent_confirm_params.rbi index 81876c6b..76b33946 100644 --- a/rbi/stripe/params/setup_intent_confirm_params.rbi +++ b/rbi/stripe/params/setup_intent_confirm_params.rbi @@ -1959,11 +1959,6 @@ module Stripe def return_url; end sig { params(_return_url: T.nilable(String)).returns(T.nilable(String)) } def return_url=(_return_url); end - # Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions. - sig { returns(T.nilable(T::Boolean)) } - def use_stripe_sdk; end - sig { params(_use_stripe_sdk: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def use_stripe_sdk=(_use_stripe_sdk); end # Provides industry-specific information about the SetupIntent. sig { returns(T.nilable(SetupIntentConfirmParams::SetupDetails)) } def setup_details; end @@ -1971,8 +1966,13 @@ module Stripe params(_setup_details: T.nilable(SetupIntentConfirmParams::SetupDetails)).returns(T.nilable(SetupIntentConfirmParams::SetupDetails)) } def setup_details=(_setup_details); end + # Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions. + sig { returns(T.nilable(T::Boolean)) } + def use_stripe_sdk; end + sig { params(_use_stripe_sdk: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def use_stripe_sdk=(_use_stripe_sdk); end sig { - params(confirmation_token: T.nilable(String), expand: T.nilable(T::Array[String]), mandate_data: T.nilable(T.any(String, SetupIntentConfirmParams::MandateData)), payment_method: T.nilable(String), payment_method_data: T.nilable(SetupIntentConfirmParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentConfirmParams::PaymentMethodOptions), return_url: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean), setup_details: T.nilable(SetupIntentConfirmParams::SetupDetails)).void + params(confirmation_token: T.nilable(String), expand: T.nilable(T::Array[String]), mandate_data: T.nilable(T.any(String, SetupIntentConfirmParams::MandateData)), payment_method: T.nilable(String), payment_method_data: T.nilable(SetupIntentConfirmParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentConfirmParams::PaymentMethodOptions), return_url: T.nilable(String), setup_details: T.nilable(SetupIntentConfirmParams::SetupDetails), use_stripe_sdk: T.nilable(T::Boolean)).void } def initialize( confirmation_token: nil, @@ -1982,8 +1982,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 ); end end end \ No newline at end of file diff --git a/rbi/stripe/params/setup_intent_create_params.rbi b/rbi/stripe/params/setup_intent_create_params.rbi index 0ede5bf9..b25375ef 100644 --- a/rbi/stripe/params/setup_intent_create_params.rbi +++ b/rbi/stripe/params/setup_intent_create_params.rbi @@ -1984,6 +1984,13 @@ module Stripe def description; end sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } def description=(_description); end + # The list of payment method types to exclude from use with this SetupIntent. + sig { returns(T.nilable(T::Array[String])) } + def excluded_payment_method_types; end + sig { + params(_excluded_payment_method_types: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) + } + def excluded_payment_method_types=(_excluded_payment_method_types); end # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -2054,6 +2061,13 @@ module Stripe def return_url; end sig { params(_return_url: T.nilable(String)).returns(T.nilable(String)) } def return_url=(_return_url); end + # Provides industry-specific information about the SetupIntent. + sig { returns(T.nilable(SetupIntentCreateParams::SetupDetails)) } + def setup_details; end + sig { + params(_setup_details: T.nilable(SetupIntentCreateParams::SetupDetails)).returns(T.nilable(SetupIntentCreateParams::SetupDetails)) + } + def setup_details=(_setup_details); end # 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`. @@ -2073,15 +2087,8 @@ module Stripe def use_stripe_sdk; end sig { params(_use_stripe_sdk: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } def use_stripe_sdk=(_use_stripe_sdk); end - # Provides industry-specific information about the SetupIntent. - sig { returns(T.nilable(SetupIntentCreateParams::SetupDetails)) } - def setup_details; end sig { - params(_setup_details: T.nilable(SetupIntentCreateParams::SetupDetails)).returns(T.nilable(SetupIntentCreateParams::SetupDetails)) - } - def setup_details=(_setup_details); end - sig { - params(attach_to_self: T.nilable(T::Boolean), automatic_payment_methods: T.nilable(SetupIntentCreateParams::AutomaticPaymentMethods), confirm: T.nilable(T::Boolean), confirmation_token: T.nilable(String), customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), mandate_data: T.nilable(T.any(String, SetupIntentCreateParams::MandateData)), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(SetupIntentCreateParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentCreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), return_url: T.nilable(String), single_use: T.nilable(SetupIntentCreateParams::SingleUse), usage: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean), setup_details: T.nilable(SetupIntentCreateParams::SetupDetails)).void + params(attach_to_self: T.nilable(T::Boolean), automatic_payment_methods: T.nilable(SetupIntentCreateParams::AutomaticPaymentMethods), confirm: T.nilable(T::Boolean), confirmation_token: T.nilable(String), customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), excluded_payment_method_types: T.nilable(T::Array[String]), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), mandate_data: T.nilable(T.any(String, SetupIntentCreateParams::MandateData)), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(SetupIntentCreateParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentCreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), return_url: T.nilable(String), setup_details: T.nilable(SetupIntentCreateParams::SetupDetails), single_use: T.nilable(SetupIntentCreateParams::SingleUse), usage: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void } def initialize( attach_to_self: nil, @@ -2091,6 +2098,7 @@ module Stripe customer: nil, customer_account: nil, description: nil, + excluded_payment_method_types: nil, expand: nil, flow_directions: nil, mandate_data: nil, @@ -2102,10 +2110,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 ); end end end \ No newline at end of file diff --git a/rbi/stripe/params/setup_intent_update_params.rbi b/rbi/stripe/params/setup_intent_update_params.rbi index b97d72d5..0a6f2011 100644 --- a/rbi/stripe/params/setup_intent_update_params.rbi +++ b/rbi/stripe/params/setup_intent_update_params.rbi @@ -1875,6 +1875,13 @@ module Stripe def description; end sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } def description=(_description); end + # The list of payment method types to exclude from use with this SetupIntent. + sig { returns(T.nilable(T.any(String, T::Array[String]))) } + def excluded_payment_method_types; end + sig { + params(_excluded_payment_method_types: T.nilable(T.any(String, T::Array[String]))).returns(T.nilable(T.any(String, T::Array[String]))) + } + def excluded_payment_method_types=(_excluded_payment_method_types); end # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -1936,13 +1943,14 @@ module Stripe } def setup_details=(_setup_details); end sig { - params(attach_to_self: T.nilable(T::Boolean), customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(SetupIntentUpdateParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentUpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), setup_details: T.nilable(SetupIntentUpdateParams::SetupDetails)).void + params(attach_to_self: T.nilable(T::Boolean), customer: T.nilable(String), customer_account: T.nilable(String), description: T.nilable(String), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(SetupIntentUpdateParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentUpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), setup_details: T.nilable(SetupIntentUpdateParams::SetupDetails)).void } def initialize( attach_to_self: nil, customer: nil, customer_account: nil, description: nil, + excluded_payment_method_types: nil, expand: nil, flow_directions: nil, metadata: nil, diff --git a/rbi/stripe/params/tax/registration_create_params.rbi b/rbi/stripe/params/tax/registration_create_params.rbi index 8cbef25a..2a546c40 100644 --- a/rbi/stripe/params/tax/registration_create_params.rbi +++ b/rbi/stripe/params/tax/registration_create_params.rbi @@ -1799,6 +1799,15 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end + class Tw < ::Stripe::RequestParams + # Type of registration to be created in `country`. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(type: String).void } + def initialize(type: nil); end + end class Tz < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } @@ -2653,6 +2662,13 @@ module Stripe params(_tr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tr)).returns(T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tr)) } def tr=(_tr); end + # Options for the registration in TW. + sig { returns(T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tw)) } + def tw; end + sig { + params(_tw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tw)).returns(T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tw)) + } + def tw=(_tw); end # Options for the registration in TZ. sig { returns(T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tz)) } def tz; end @@ -2724,7 +2740,7 @@ module Stripe } def zw=(_zw); end sig { - params(ae: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ae), al: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Al), am: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Am), ao: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ao), at: T.nilable(Tax::RegistrationCreateParams::CountryOptions::At), au: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Au), aw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Aw), az: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Az), ba: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ba), bb: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bb), bd: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bd), be: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Be), bf: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bf), bg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bg), bh: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bh), bj: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bj), bs: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bs), by: T.nilable(Tax::RegistrationCreateParams::CountryOptions::By), ca: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ca), cd: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cd), ch: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ch), cl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cl), cm: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cm), co: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Co), cr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cr), cv: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cv), cy: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cy), cz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cz), de: T.nilable(Tax::RegistrationCreateParams::CountryOptions::De), dk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Dk), ec: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ec), ee: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ee), eg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Eg), es: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Es), et: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Et), fi: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Fi), fr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Fr), gb: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gb), ge: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ge), gn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gn), gr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gr), hr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Hr), hu: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Hu), id: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Id), ie: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ie), in_: T.nilable(Tax::RegistrationCreateParams::CountryOptions::In), is: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Is), it: T.nilable(Tax::RegistrationCreateParams::CountryOptions::It), jp: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Jp), ke: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ke), kg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kg), kh: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kh), kr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kr), kz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kz), la: T.nilable(Tax::RegistrationCreateParams::CountryOptions::La), lt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lt), lu: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lu), lv: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lv), ma: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ma), md: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Md), me: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Me), mk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mk), mr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mr), mt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mt), mx: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mx), my: T.nilable(Tax::RegistrationCreateParams::CountryOptions::My), ng: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ng), nl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Nl), no: T.nilable(Tax::RegistrationCreateParams::CountryOptions::No), np: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Np), nz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Nz), om: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Om), pe: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pe), ph: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ph), pl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pl), pt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pt), ro: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ro), rs: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Rs), ru: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ru), sa: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sa), se: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Se), sg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sg), si: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Si), sk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sk), sn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sn), sr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sr), th: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Th), tj: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tj), tr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tr), tz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tz), ua: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ua), ug: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ug), us: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Us), uy: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Uy), uz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Uz), vn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Vn), za: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Za), zm: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Zm), zw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Zw)).void + params(ae: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ae), al: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Al), am: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Am), ao: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ao), at: T.nilable(Tax::RegistrationCreateParams::CountryOptions::At), au: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Au), aw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Aw), az: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Az), ba: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ba), bb: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bb), bd: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bd), be: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Be), bf: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bf), bg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bg), bh: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bh), bj: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bj), bs: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bs), by: T.nilable(Tax::RegistrationCreateParams::CountryOptions::By), ca: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ca), cd: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cd), ch: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ch), cl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cl), cm: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cm), co: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Co), cr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cr), cv: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cv), cy: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cy), cz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cz), de: T.nilable(Tax::RegistrationCreateParams::CountryOptions::De), dk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Dk), ec: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ec), ee: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ee), eg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Eg), es: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Es), et: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Et), fi: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Fi), fr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Fr), gb: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gb), ge: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ge), gn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gn), gr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gr), hr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Hr), hu: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Hu), id: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Id), ie: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ie), in_: T.nilable(Tax::RegistrationCreateParams::CountryOptions::In), is: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Is), it: T.nilable(Tax::RegistrationCreateParams::CountryOptions::It), jp: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Jp), ke: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ke), kg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kg), kh: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kh), kr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kr), kz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kz), la: T.nilable(Tax::RegistrationCreateParams::CountryOptions::La), lt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lt), lu: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lu), lv: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lv), ma: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ma), md: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Md), me: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Me), mk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mk), mr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mr), mt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mt), mx: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mx), my: T.nilable(Tax::RegistrationCreateParams::CountryOptions::My), ng: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ng), nl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Nl), no: T.nilable(Tax::RegistrationCreateParams::CountryOptions::No), np: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Np), nz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Nz), om: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Om), pe: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pe), ph: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ph), pl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pl), pt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pt), ro: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ro), rs: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Rs), ru: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ru), sa: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sa), se: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Se), sg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sg), si: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Si), sk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sk), sn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sn), sr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sr), th: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Th), tj: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tj), tr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tr), tw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tw), tz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tz), ua: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ua), ug: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ug), us: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Us), uy: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Uy), uz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Uz), vn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Vn), za: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Za), zm: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Zm), zw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Zw)).void } def initialize( ae: nil, @@ -2816,6 +2832,7 @@ module Stripe th: nil, tj: nil, tr: nil, + tw: nil, tz: nil, ua: nil, ug: nil, diff --git a/rbi/stripe/params/terminal/configuration_create_params.rbi b/rbi/stripe/params/terminal/configuration_create_params.rbi index fcf30a5f..21b6d2ba 100644 --- a/rbi/stripe/params/terminal/configuration_create_params.rbi +++ b/rbi/stripe/params/terminal/configuration_create_params.rbi @@ -290,6 +290,31 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end + class Gip < ::Stripe::RequestParams + # Fixed amounts displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def fixed_amounts; end + sig { + params(_fixed_amounts: T.nilable(T::Array[Integer])).returns(T.nilable(T::Array[Integer])) + } + def fixed_amounts=(_fixed_amounts); end + # Percentages displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def percentages; end + sig { + params(_percentages: T.nilable(T::Array[Integer])).returns(T.nilable(T::Array[Integer])) + } + def percentages=(_percentages); end + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + sig { returns(T.nilable(Integer)) } + def smart_tip_threshold; end + sig { params(_smart_tip_threshold: T.nilable(Integer)).returns(T.nilable(Integer)) } + def smart_tip_threshold=(_smart_tip_threshold); end + sig { + params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void + } + def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end + end class Hkd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } @@ -653,6 +678,13 @@ module Stripe params(_gbp: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gbp)).returns(T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gbp)) } def gbp=(_gbp); end + # Tipping configuration for GIP + sig { returns(T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gip)) } + def gip; end + sig { + params(_gip: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gip)).returns(T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gip)) + } + def gip=(_gip); end # Tipping configuration for HKD sig { returns(T.nilable(Terminal::ConfigurationCreateParams::Tipping::Hkd)) } def hkd; end @@ -738,7 +770,7 @@ module Stripe } def usd=(_usd); end sig { - params(aed: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Aed), aud: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Aud), bgn: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Bgn), cad: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Cad), chf: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Chf), czk: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Czk), dkk: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Dkk), eur: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Eur), gbp: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gbp), hkd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Hkd), huf: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Huf), jpy: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Jpy), mxn: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Mxn), myr: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Myr), nok: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Nok), nzd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Nzd), pln: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Pln), ron: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Ron), sek: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Sek), sgd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Sgd), usd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Usd)).void + params(aed: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Aed), aud: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Aud), bgn: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Bgn), cad: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Cad), chf: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Chf), czk: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Czk), dkk: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Dkk), eur: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Eur), gbp: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gbp), gip: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gip), hkd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Hkd), huf: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Huf), jpy: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Jpy), mxn: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Mxn), myr: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Myr), nok: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Nok), nzd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Nzd), pln: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Pln), ron: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Ron), sek: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Sek), sgd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Sgd), usd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Usd)).void } def initialize( aed: nil, @@ -750,6 +782,7 @@ module Stripe dkk: nil, eur: nil, gbp: nil, + gip: nil, hkd: nil, huf: nil, jpy: nil, diff --git a/rbi/stripe/params/terminal/configuration_update_params.rbi b/rbi/stripe/params/terminal/configuration_update_params.rbi index 072f8b3b..4f74bbdb 100644 --- a/rbi/stripe/params/terminal/configuration_update_params.rbi +++ b/rbi/stripe/params/terminal/configuration_update_params.rbi @@ -290,6 +290,31 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end + class Gip < ::Stripe::RequestParams + # Fixed amounts displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def fixed_amounts; end + sig { + params(_fixed_amounts: T.nilable(T::Array[Integer])).returns(T.nilable(T::Array[Integer])) + } + def fixed_amounts=(_fixed_amounts); end + # Percentages displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def percentages; end + sig { + params(_percentages: T.nilable(T::Array[Integer])).returns(T.nilable(T::Array[Integer])) + } + def percentages=(_percentages); end + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + sig { returns(T.nilable(Integer)) } + def smart_tip_threshold; end + sig { params(_smart_tip_threshold: T.nilable(Integer)).returns(T.nilable(Integer)) } + def smart_tip_threshold=(_smart_tip_threshold); end + sig { + params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void + } + def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end + end class Hkd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } @@ -653,6 +678,13 @@ module Stripe params(_gbp: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gbp)).returns(T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gbp)) } def gbp=(_gbp); end + # Tipping configuration for GIP + sig { returns(T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gip)) } + def gip; end + sig { + params(_gip: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gip)).returns(T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gip)) + } + def gip=(_gip); end # Tipping configuration for HKD sig { returns(T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Hkd)) } def hkd; end @@ -738,7 +770,7 @@ module Stripe } def usd=(_usd); end sig { - params(aed: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Aed), aud: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Aud), bgn: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Bgn), cad: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Cad), chf: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Chf), czk: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Czk), dkk: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Dkk), eur: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Eur), gbp: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gbp), hkd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Hkd), huf: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Huf), jpy: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Jpy), mxn: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Mxn), myr: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Myr), nok: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Nok), nzd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Nzd), pln: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Pln), ron: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Ron), sek: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Sek), sgd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Sgd), usd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Usd)).void + params(aed: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Aed), aud: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Aud), bgn: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Bgn), cad: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Cad), chf: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Chf), czk: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Czk), dkk: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Dkk), eur: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Eur), gbp: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gbp), gip: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gip), hkd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Hkd), huf: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Huf), jpy: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Jpy), mxn: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Mxn), myr: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Myr), nok: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Nok), nzd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Nzd), pln: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Pln), ron: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Ron), sek: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Sek), sgd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Sgd), usd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Usd)).void } def initialize( aed: nil, @@ -750,6 +782,7 @@ module Stripe dkk: nil, eur: nil, gbp: nil, + gip: nil, hkd: nil, huf: nil, jpy: nil, diff --git a/rbi/stripe/params/terminal/reader_collect_inputs_params.rbi b/rbi/stripe/params/terminal/reader_collect_inputs_params.rbi index 007d815e..2a36caa9 100644 --- a/rbi/stripe/params/terminal/reader_collect_inputs_params.rbi +++ b/rbi/stripe/params/terminal/reader_collect_inputs_params.rbi @@ -12,12 +12,12 @@ module Stripe def description; end sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } def description=(_description); end - # The skip button text + # Custom text for the skip button. Maximum 14 characters. sig { returns(T.nilable(String)) } def skip_button; end sig { params(_skip_button: T.nilable(String)).returns(T.nilable(String)) } def skip_button=(_skip_button); end - # The submit button text + # Custom text for the submit button. Maximum 30 characters. sig { returns(T.nilable(String)) } def submit_button; end sig { params(_submit_button: T.nilable(String)).returns(T.nilable(String)) } @@ -39,7 +39,7 @@ module Stripe def id; end sig { params(_id: String).returns(String) } def id=(_id); end - # 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`. sig { returns(T.nilable(String)) } def style; end sig { params(_style: T.nilable(String)).returns(T.nilable(String)) } @@ -65,17 +65,17 @@ module Stripe def initialize(choices: nil); end end class Toggle < ::Stripe::RequestParams - # The default value of the toggle + # The default value of the toggle. Can be `enabled` or `disabled`. sig { returns(T.nilable(String)) } def default_value; end sig { params(_default_value: T.nilable(String)).returns(T.nilable(String)) } def default_value=(_default_value); end - # 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. sig { returns(T.nilable(String)) } def description; end sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } def description=(_description); end - # 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. sig { returns(T.nilable(String)) } def title; end sig { params(_title: T.nilable(String)).returns(T.nilable(String)) } @@ -132,7 +132,7 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # List of inputs to be collected using the Reader + # List of inputs to be collected from the customer using the Reader. Maximum 5 inputs. sig { returns(T::Array[Terminal::ReaderCollectInputsParams::Input]) } def inputs; end sig { diff --git a/rbi/stripe/params/terminal/reader_collect_payment_method_params.rbi b/rbi/stripe/params/terminal/reader_collect_payment_method_params.rbi index 65b512c6..f69f924f 100644 --- a/rbi/stripe/params/terminal/reader_collect_payment_method_params.rbi +++ b/rbi/stripe/params/terminal/reader_collect_payment_method_params.rbi @@ -51,7 +51,7 @@ module Stripe tipping: nil ); end end - # Configuration overrides. + # Configuration overrides for this collection, such as tipping, surcharging, and customer cancellation settings. sig { returns(T.nilable(Terminal::ReaderCollectPaymentMethodParams::CollectConfig)) } def collect_config; end sig { @@ -63,7 +63,7 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # PaymentIntent ID. + # The ID of the PaymentIntent to collect a payment method for. sig { returns(String) } def payment_intent; end sig { params(_payment_intent: String).returns(String) } diff --git a/rbi/stripe/params/terminal/reader_confirm_payment_intent_params.rbi b/rbi/stripe/params/terminal/reader_confirm_payment_intent_params.rbi index 8da09cd7..f09fac44 100644 --- a/rbi/stripe/params/terminal/reader_confirm_payment_intent_params.rbi +++ b/rbi/stripe/params/terminal/reader_confirm_payment_intent_params.rbi @@ -14,7 +14,7 @@ module Stripe sig { params(return_url: T.nilable(String)).void } def initialize(return_url: nil); end end - # Configuration overrides. + # Configuration overrides for this confirmation, such as surcharge settings and return URL. sig { returns(T.nilable(Terminal::ReaderConfirmPaymentIntentParams::ConfirmConfig)) } def confirm_config; end sig { @@ -26,7 +26,7 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # PaymentIntent ID. + # The ID of the PaymentIntent to confirm. sig { returns(String) } def payment_intent; end sig { params(_payment_intent: String).returns(String) } diff --git a/rbi/stripe/params/terminal/reader_present_payment_method_params.rbi b/rbi/stripe/params/terminal/reader_present_payment_method_params.rbi index f19b859b..07236256 100644 --- a/rbi/stripe/params/terminal/reader_present_payment_method_params.rbi +++ b/rbi/stripe/params/terminal/reader_present_payment_method_params.rbi @@ -41,7 +41,7 @@ module Stripe def initialize(number: nil); end end class InteracPresent < ::Stripe::RequestParams - # Card Number + # The Interac card number. sig { returns(T.nilable(String)) } def number; end sig { params(_number: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/terminal/reader_process_payment_intent_params.rbi b/rbi/stripe/params/terminal/reader_process_payment_intent_params.rbi index 69134199..877de8e9 100644 --- a/rbi/stripe/params/terminal/reader_process_payment_intent_params.rbi +++ b/rbi/stripe/params/terminal/reader_process_payment_intent_params.rbi @@ -62,12 +62,12 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # PaymentIntent ID + # The ID of the PaymentIntent to process on the reader. sig { returns(String) } def payment_intent; end sig { params(_payment_intent: String).returns(String) } def payment_intent=(_payment_intent); end - # Configuration overrides + # Configuration overrides for this transaction, such as tipping and customer cancellation settings. sig { returns(T.nilable(Terminal::ReaderProcessPaymentIntentParams::ProcessConfig)) } def process_config; end sig { diff --git a/rbi/stripe/params/terminal/reader_process_setup_intent_params.rbi b/rbi/stripe/params/terminal/reader_process_setup_intent_params.rbi index ff9689a4..a52d55db 100644 --- a/rbi/stripe/params/terminal/reader_process_setup_intent_params.rbi +++ b/rbi/stripe/params/terminal/reader_process_setup_intent_params.rbi @@ -26,14 +26,14 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # Configuration overrides + # Configuration overrides for this setup, such as MOTO and customer cancellation settings. sig { returns(T.nilable(Terminal::ReaderProcessSetupIntentParams::ProcessConfig)) } def process_config; end sig { params(_process_config: T.nilable(Terminal::ReaderProcessSetupIntentParams::ProcessConfig)).returns(T.nilable(Terminal::ReaderProcessSetupIntentParams::ProcessConfig)) } def process_config=(_process_config); end - # SetupIntent ID + # The ID of the SetupIntent to process on the reader. sig { returns(String) } def setup_intent; end sig { params(_setup_intent: String).returns(String) } diff --git a/rbi/stripe/params/terminal/reader_refund_payment_params.rbi b/rbi/stripe/params/terminal/reader_refund_payment_params.rbi index 6b5243ab..0855432d 100644 --- a/rbi/stripe/params/terminal/reader_refund_payment_params.rbi +++ b/rbi/stripe/params/terminal/reader_refund_payment_params.rbi @@ -48,7 +48,7 @@ module Stripe def refund_application_fee; end sig { params(_refund_application_fee: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } def refund_application_fee=(_refund_application_fee); end - # Configuration overrides + # Configuration overrides for this refund, such as customer cancellation settings. sig { returns(T.nilable(Terminal::ReaderRefundPaymentParams::RefundPaymentConfig)) } def refund_payment_config; end sig { diff --git a/rbi/stripe/params/terminal/reader_set_reader_display_params.rbi b/rbi/stripe/params/terminal/reader_set_reader_display_params.rbi index 41d003d1..b8cb5e2e 100644 --- a/rbi/stripe/params/terminal/reader_set_reader_display_params.rbi +++ b/rbi/stripe/params/terminal/reader_set_reader_display_params.rbi @@ -7,7 +7,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). sig { returns(Integer) } def amount; end sig { params(_amount: Integer).returns(Integer) } @@ -30,19 +30,19 @@ module Stripe def currency; end sig { params(_currency: String).returns(String) } def currency=(_currency); end - # Array of line items that were purchased. + # Array of line items to display. sig { returns(T::Array[Terminal::ReaderSetReaderDisplayParams::Cart::LineItem]) } def line_items; end sig { params(_line_items: T::Array[Terminal::ReaderSetReaderDisplayParams::Cart::LineItem]).returns(T::Array[Terminal::ReaderSetReaderDisplayParams::Cart::LineItem]) } def line_items=(_line_items); end - # The amount of tax in cents. + # The amount of tax in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). sig { returns(T.nilable(Integer)) } def tax; end sig { params(_tax: T.nilable(Integer)).returns(T.nilable(Integer)) } def tax=(_tax); end - # Total balance of cart due in cents. + # Total balance of cart due in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). sig { returns(Integer) } def total; end sig { params(_total: Integer).returns(Integer) } @@ -52,7 +52,7 @@ module Stripe } def initialize(currency: nil, line_items: nil, tax: nil, total: nil); end end - # Cart + # Cart details to display on the reader screen, including line items, amounts, and currency. sig { returns(T.nilable(Terminal::ReaderSetReaderDisplayParams::Cart)) } def cart; end sig { @@ -64,7 +64,7 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # Type + # Type of information to display. Only `cart` is currently supported. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } diff --git a/rbi/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rbi b/rbi/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rbi index 2a03d874..5afb7572 100644 --- a/rbi/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rbi +++ b/rbi/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rbi @@ -42,7 +42,7 @@ module Stripe def initialize(number: nil); end end class InteracPresent < ::Stripe::RequestParams - # Card Number + # The Interac card number. sig { returns(T.nilable(String)) } def number; end sig { params(_number: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/token_create_params.rbi b/rbi/stripe/params/token_create_params.rbi index cc0f792f..a1c8b05a 100644 --- a/rbi/stripe/params/token_create_params.rbi +++ b/rbi/stripe/params/token_create_params.rbi @@ -208,6 +208,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. @@ -343,6 +364,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(TokenCreateParams::Account::Company::RepresentativeDeclaration)) } + def representative_declaration; end + sig { + params(_representative_declaration: T.nilable(TokenCreateParams::Account::Company::RepresentativeDeclaration)).returns(T.nilable(TokenCreateParams::Account::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 @@ -373,7 +401,7 @@ module Stripe } def verification=(_verification); end sig { - params(address: T.nilable(TokenCreateParams::Account::Company::Address), address_kana: T.nilable(TokenCreateParams::Account::Company::AddressKana), address_kanji: T.nilable(TokenCreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(TokenCreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(TokenCreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, TokenCreateParams::Account::Company::RegistrationDate)), registration_number: T.nilable(String), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(TokenCreateParams::Account::Company::Verification)).void + params(address: T.nilable(TokenCreateParams::Account::Company::Address), address_kana: T.nilable(TokenCreateParams::Account::Company::AddressKana), address_kanji: T.nilable(TokenCreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(TokenCreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(TokenCreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, TokenCreateParams::Account::Company::RegistrationDate)), registration_number: T.nilable(String), representative_declaration: T.nilable(TokenCreateParams::Account::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(TokenCreateParams::Account::Company::Verification)).void } def initialize( address: nil, @@ -394,6 +422,7 @@ module Stripe phone: nil, registration_date: nil, registration_number: nil, + representative_declaration: nil, structure: nil, tax_id: nil, tax_id_registrar: nil, diff --git a/rbi/stripe/params/transfer_create_params.rbi b/rbi/stripe/params/transfer_create_params.rbi index 054602dc..2e92b384 100644 --- a/rbi/stripe/params/transfer_create_params.rbi +++ b/rbi/stripe/params/transfer_create_params.rbi @@ -56,8 +56,13 @@ module Stripe def transfer_group; end sig { params(_transfer_group: T.nilable(String)).returns(T.nilable(String)) } def transfer_group=(_transfer_group); end + # Attribute for param field application_fee_amount + sig { returns(T.nilable(Integer)) } + def application_fee_amount; end + sig { params(_application_fee_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } + def application_fee_amount=(_application_fee_amount); end sig { - params(amount: T.nilable(Integer), currency: String, description: T.nilable(String), destination: String, expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), source_transaction: T.nilable(String), source_type: T.nilable(String), transfer_group: T.nilable(String)).void + params(amount: T.nilable(Integer), currency: String, description: T.nilable(String), destination: String, expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), source_transaction: T.nilable(String), source_type: T.nilable(String), transfer_group: T.nilable(String), application_fee_amount: T.nilable(Integer)).void } def initialize( amount: nil, @@ -69,7 +74,8 @@ module Stripe metadata: nil, source_transaction: nil, source_type: nil, - transfer_group: nil + transfer_group: nil, + application_fee_amount: nil ); end end end \ No newline at end of file diff --git a/rbi/stripe/params/v2/core/account_create_params.rbi b/rbi/stripe/params/v2/core/account_create_params.rbi index 32fe4779..ce106169 100644 --- a/rbi/stripe/params/v2/core/account_create_params.rbi +++ b/rbi/stripe/params/v2/core/account_create_params.rbi @@ -1685,6 +1685,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); 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. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)) @@ -1694,10 +1703,19 @@ module Stripe params(_bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)) } def bank_accounts=(_bank_accounts); end + # Can provision a crypto wallet like financial address to credit a FinancialAccount. sig { - params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)).void + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)) } - def initialize(bank_accounts: nil); end + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end + sig { + params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts), crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)).void + } + def initialize(bank_accounts: nil, crypto_wallets: nil); end end class HoldsCurrencies < ::Stripe::RequestParams class Gbp < ::Stripe::RequestParams @@ -1718,6 +1736,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); 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. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end # Can hold storage-type funds on Stripe in GBP. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)) @@ -1736,10 +1763,19 @@ module Stripe params(_usd: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)) } def usd=(_usd); end + # Can hold storage-type funds on Stripe in USDC. sig { - params(gbp: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)).void + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)) } - def initialize(gbp: nil, usd: nil); end + def usdc; end + sig { + params(_usdc: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)) + } + def usdc=(_usdc); end + sig { + params(gbp: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd), usdc: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).void + } + def initialize(gbp: nil, usd: nil, usdc: nil); end end class InboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -1784,6 +1820,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); 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. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); 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. sig { returns(T::Boolean) } @@ -1811,6 +1856,15 @@ module Stripe params(_cards: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards)) } def cards=(_cards); end + # Can send funds from a FinancialAccount to a crypto wallet owned by someone else. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)) + } + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)) @@ -1821,9 +1875,14 @@ module Stripe } def financial_accounts=(_financial_accounts); end sig { - params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts), cards: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards), financial_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)).void + params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts), cards: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards), crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets), financial_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)).void } - def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil); end + def initialize( + bank_accounts: nil, + cards: nil, + crypto_wallets: nil, + financial_accounts: nil + ); end end class OutboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -1835,6 +1894,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); 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. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); 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. sig { returns(T::Boolean) } @@ -1853,6 +1921,15 @@ module Stripe params(_bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts)) } def bank_accounts=(_bank_accounts); end + # Can send funds from a FinancialAccount to a crypto wallet owned by yourself. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)) + } + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)) @@ -1863,9 +1940,13 @@ module Stripe } def financial_accounts=(_financial_accounts); end sig { - params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts), financial_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)).void + params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts), crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets), financial_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)).void } - def initialize(bank_accounts: nil, financial_accounts: nil); end + def initialize( + bank_accounts: nil, + crypto_wallets: nil, + financial_accounts: nil + ); end end # Can provision a financial address to credit/debit a FinancialAccount. sig { @@ -1923,6 +2004,41 @@ module Stripe outbound_transfers: nil ); end end + class RegulatedActivity < ::Stripe::RequestParams + # A detailed description of the regulated activities the business is licensed to conduct. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # The license number or registration number assigned by the business's primary regulator. + sig { returns(T.nilable(String)) } + def license_number; end + sig { params(_license_number: T.nilable(String)).returns(T.nilable(String)) } + def license_number=(_license_number); end + # The country of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_country; end + sig { + params(_primary_regulatory_authority_country: T.nilable(String)).returns(T.nilable(String)) + } + def primary_regulatory_authority_country=(_primary_regulatory_authority_country); end + # The name of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_name; end + sig { + params(_primary_regulatory_authority_name: T.nilable(String)).returns(T.nilable(String)) + } + def primary_regulatory_authority_name=(_primary_regulatory_authority_name); end + sig { + params(description: T.nilable(String), license_number: T.nilable(String), primary_regulatory_authority_country: T.nilable(String), primary_regulatory_authority_name: T.nilable(String)).void + } + def initialize( + description: nil, + license_number: nil, + primary_regulatory_authority_country: nil, + primary_regulatory_authority_name: nil + ); end + end # Capabilities to request on the Storer Configuration. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities)) @@ -1932,10 +2048,90 @@ module Stripe params(_capabilities: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities)) } def capabilities=(_capabilities); end + # List of high-risk activities the business is involved in. + sig { returns(T.nilable(T::Array[String])) } + def high_risk_activities; end sig { - params(capabilities: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities)).void + params(_high_risk_activities: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def initialize(capabilities: nil); end + def high_risk_activities=(_high_risk_activities); end + # An explanation of the high risk activities that the business performs. + sig { returns(T.nilable(String)) } + def high_risk_activities_description; end + sig { + params(_high_risk_activities_description: T.nilable(String)).returns(T.nilable(String)) + } + def high_risk_activities_description=(_high_risk_activities_description); end + # Description of the money services offered by the business. + sig { returns(T.nilable(String)) } + def money_services_description; end + sig { + params(_money_services_description: T.nilable(String)).returns(T.nilable(String)) + } + def money_services_description=(_money_services_description); end + # Does the business operate in any prohibited countries. + sig { returns(T.nilable(T::Boolean)) } + def operates_in_prohibited_countries; end + sig { + params(_operates_in_prohibited_countries: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def operates_in_prohibited_countries=(_operates_in_prohibited_countries); end + # Does the business participate in any regulated activity. + sig { returns(T.nilable(T::Boolean)) } + def participates_in_regulated_activity; end + sig { + params(_participates_in_regulated_activity: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def participates_in_regulated_activity=(_participates_in_regulated_activity); end + # Primary purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds; end + sig { params(_purpose_of_funds: T.nilable(String)).returns(T.nilable(String)) } + def purpose_of_funds=(_purpose_of_funds); end + # Description of the purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds_description; end + sig { + params(_purpose_of_funds_description: T.nilable(String)).returns(T.nilable(String)) + } + def purpose_of_funds_description=(_purpose_of_funds_description); end + # Details of the regulated activity if the business participates in one. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::RegulatedActivity)) + } + def regulated_activity; end + sig { + params(_regulated_activity: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::RegulatedActivity)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::RegulatedActivity)) + } + def regulated_activity=(_regulated_activity); end + # The source of funds for the business, e.g. profits, income, venture capital, etc. + sig { returns(T.nilable(String)) } + def source_of_funds; end + sig { params(_source_of_funds: T.nilable(String)).returns(T.nilable(String)) } + def source_of_funds=(_source_of_funds); end + # Description of the source of funds for the business' account. + sig { returns(T.nilable(String)) } + def source_of_funds_description; end + sig { + params(_source_of_funds_description: T.nilable(String)).returns(T.nilable(String)) + } + def source_of_funds_description=(_source_of_funds_description); end + sig { + params(capabilities: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities), high_risk_activities: T.nilable(T::Array[String]), high_risk_activities_description: T.nilable(String), money_services_description: T.nilable(String), operates_in_prohibited_countries: T.nilable(T::Boolean), participates_in_regulated_activity: T.nilable(T::Boolean), purpose_of_funds: T.nilable(String), purpose_of_funds_description: T.nilable(String), regulated_activity: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::RegulatedActivity), source_of_funds: T.nilable(String), source_of_funds_description: T.nilable(String)).void + } + 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 + ); end end # The CardCreator Configuration allows the Account to create and issue cards to users. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::CardCreator)) } @@ -2649,6 +2845,25 @@ module Stripe } def initialize(commercial: nil); 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. + sig { returns(String) } + def date; end + sig { params(_date: String).returns(String) } + def date=(_date); end + # The IP address from which the Account's representative accepted the terms of service. + sig { returns(String) } + def ip; end + sig { params(_ip: String).returns(String) } + def ip=(_ip); end + # The user agent of the browser from which the Account's representative accepted the terms of service. + 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: String, ip: String, user_agent: T.nilable(String)).void } + def initialize(date: nil, ip: nil, user_agent: nil); 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. sig { returns(String) } @@ -2686,6 +2901,15 @@ module Stripe params(_card_creator: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CardCreator)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CardCreator)) } def card_creator=(_card_creator); end + # Details on the Account's acceptance of Crypto-storer-specific terms of service. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer; end + sig { + params(_crypto_storer: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CryptoStorer)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer=(_crypto_storer); end # Details on the Account's acceptance of Treasury-specific terms of service. sig { returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Storer)) @@ -2696,9 +2920,9 @@ module Stripe } def storer=(_storer); end sig { - params(account: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Account), card_creator: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CardCreator), storer: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Storer)).void + params(account: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Account), card_creator: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CardCreator), crypto_storer: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CryptoStorer), storer: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Storer)).void } - def initialize(account: nil, card_creator: nil, storer: nil); end + def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil); end end # This hash is used to attest that the directors information provided to Stripe is both current and correct. sig { @@ -3305,6 +3529,13 @@ module Stripe params(_annual_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue)) } def annual_revenue=(_annual_revenue); end + # A detailed description of the business's compliance and anti-money laundering controls and practices. + sig { returns(T.nilable(String)) } + def compliance_screening_description; end + sig { + params(_compliance_screening_description: T.nilable(String)).returns(T.nilable(String)) + } + def compliance_screening_description=(_compliance_screening_description); end # A document verifying the business. sig { returns(T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents)) @@ -3371,11 +3602,12 @@ module Stripe sig { params(_structure: T.nilable(String)).returns(T.nilable(String)) } def structure=(_structure); end sig { - params(address: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue), documents: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountCreateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void + params(address: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue), compliance_screening_description: T.nilable(String), documents: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountCreateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void } def initialize( address: nil, annual_revenue: nil, + compliance_screening_description: nil, documents: nil, estimated_worker_count: nil, id_numbers: nil, diff --git a/rbi/stripe/params/v2/core/account_update_params.rbi b/rbi/stripe/params/v2/core/account_update_params.rbi index 824e8b61..feebc382 100644 --- a/rbi/stripe/params/v2/core/account_update_params.rbi +++ b/rbi/stripe/params/v2/core/account_update_params.rbi @@ -1729,6 +1729,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); 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. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)) @@ -1738,10 +1747,19 @@ module Stripe params(_bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)) } def bank_accounts=(_bank_accounts); end + # Can provision a crypto wallet like financial address to credit a FinancialAccount. sig { - params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)).void + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)) } - def initialize(bank_accounts: nil); end + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end + sig { + params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts), crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)).void + } + def initialize(bank_accounts: nil, crypto_wallets: nil); end end class HoldsCurrencies < ::Stripe::RequestParams class Gbp < ::Stripe::RequestParams @@ -1762,6 +1780,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); 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. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end # Can hold storage-type funds on Stripe in GBP. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)) @@ -1780,10 +1807,19 @@ module Stripe params(_usd: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)) } def usd=(_usd); end + # Can hold storage-type funds on Stripe in USDC. sig { - params(gbp: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)).void + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)) } - def initialize(gbp: nil, usd: nil); end + def usdc; end + sig { + params(_usdc: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)) + } + def usdc=(_usdc); end + sig { + params(gbp: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd), usdc: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).void + } + def initialize(gbp: nil, usd: nil, usdc: nil); end end class InboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -1828,6 +1864,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); 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. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); 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. sig { returns(T.nilable(T::Boolean)) } @@ -1855,6 +1900,15 @@ module Stripe params(_cards: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards)) } def cards=(_cards); end + # Can send funds from a FinancialAccount to a crypto wallet owned by someone else. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)) + } + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)) @@ -1865,9 +1919,14 @@ module Stripe } def financial_accounts=(_financial_accounts); end sig { - params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts), cards: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards), financial_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)).void + params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts), cards: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards), crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets), financial_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)).void } - def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil); end + def initialize( + bank_accounts: nil, + cards: nil, + crypto_wallets: nil, + financial_accounts: nil + ); end end class OutboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -1879,6 +1938,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); 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. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); 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. sig { returns(T.nilable(T::Boolean)) } @@ -1897,6 +1965,15 @@ module Stripe params(_bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts)) } def bank_accounts=(_bank_accounts); end + # Can send funds from a FinancialAccount to a crypto wallet owned by yourself. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)) + } + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)) @@ -1907,9 +1984,13 @@ module Stripe } def financial_accounts=(_financial_accounts); end sig { - params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts), financial_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)).void + params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts), crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets), financial_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)).void } - def initialize(bank_accounts: nil, financial_accounts: nil); end + def initialize( + bank_accounts: nil, + crypto_wallets: nil, + financial_accounts: nil + ); end end # Can provision a financial address to credit/debit a FinancialAccount. sig { @@ -1967,6 +2048,41 @@ module Stripe outbound_transfers: nil ); end end + class RegulatedActivity < ::Stripe::RequestParams + # A detailed description of the regulated activities the business is licensed to conduct. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # The license number or registration number assigned by the business's primary regulator. + sig { returns(T.nilable(String)) } + def license_number; end + sig { params(_license_number: T.nilable(String)).returns(T.nilable(String)) } + def license_number=(_license_number); end + # The country of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_country; end + sig { + params(_primary_regulatory_authority_country: T.nilable(String)).returns(T.nilable(String)) + } + def primary_regulatory_authority_country=(_primary_regulatory_authority_country); end + # The name of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_name; end + sig { + params(_primary_regulatory_authority_name: T.nilable(String)).returns(T.nilable(String)) + } + def primary_regulatory_authority_name=(_primary_regulatory_authority_name); end + sig { + params(description: T.nilable(String), license_number: T.nilable(String), primary_regulatory_authority_country: T.nilable(String), primary_regulatory_authority_name: T.nilable(String)).void + } + def initialize( + description: nil, + license_number: nil, + primary_regulatory_authority_country: nil, + primary_regulatory_authority_name: nil + ); end + end # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration. sig { returns(T.nilable(T::Boolean)) } def applied; end @@ -1981,10 +2097,91 @@ module Stripe params(_capabilities: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities)) } def capabilities=(_capabilities); end + # List of high-risk activities the business is involved in. + sig { returns(T.nilable(T::Array[String])) } + def high_risk_activities; end sig { - params(applied: T.nilable(T::Boolean), capabilities: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities)).void + params(_high_risk_activities: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def initialize(applied: nil, capabilities: nil); end + def high_risk_activities=(_high_risk_activities); end + # An explanation of the high risk activities that the business performs. + sig { returns(T.nilable(String)) } + def high_risk_activities_description; end + sig { + params(_high_risk_activities_description: T.nilable(String)).returns(T.nilable(String)) + } + def high_risk_activities_description=(_high_risk_activities_description); end + # Description of the money services offered by the business. + sig { returns(T.nilable(String)) } + def money_services_description; end + sig { + params(_money_services_description: T.nilable(String)).returns(T.nilable(String)) + } + def money_services_description=(_money_services_description); end + # Does the business operate in any prohibited countries. + sig { returns(T.nilable(T::Boolean)) } + def operates_in_prohibited_countries; end + sig { + params(_operates_in_prohibited_countries: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def operates_in_prohibited_countries=(_operates_in_prohibited_countries); end + # Does the business participate in any regulated activity. + sig { returns(T.nilable(T::Boolean)) } + def participates_in_regulated_activity; end + sig { + params(_participates_in_regulated_activity: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def participates_in_regulated_activity=(_participates_in_regulated_activity); end + # Primary purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds; end + sig { params(_purpose_of_funds: T.nilable(String)).returns(T.nilable(String)) } + def purpose_of_funds=(_purpose_of_funds); end + # Description of the purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds_description; end + sig { + params(_purpose_of_funds_description: T.nilable(String)).returns(T.nilable(String)) + } + def purpose_of_funds_description=(_purpose_of_funds_description); end + # Details of the regulated activity if the business participates in one. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::RegulatedActivity)) + } + def regulated_activity; end + sig { + params(_regulated_activity: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::RegulatedActivity)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::RegulatedActivity)) + } + def regulated_activity=(_regulated_activity); end + # The source of funds for the business, e.g. profits, income, venture capital, etc. + sig { returns(T.nilable(String)) } + def source_of_funds; end + sig { params(_source_of_funds: T.nilable(String)).returns(T.nilable(String)) } + def source_of_funds=(_source_of_funds); end + # Description of the source of funds for the business' account. + sig { returns(T.nilable(String)) } + def source_of_funds_description; end + sig { + params(_source_of_funds_description: T.nilable(String)).returns(T.nilable(String)) + } + def source_of_funds_description=(_source_of_funds_description); end + sig { + params(applied: T.nilable(T::Boolean), capabilities: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities), high_risk_activities: T.nilable(T::Array[String]), high_risk_activities_description: T.nilable(String), money_services_description: T.nilable(String), operates_in_prohibited_countries: T.nilable(T::Boolean), participates_in_regulated_activity: T.nilable(T::Boolean), purpose_of_funds: T.nilable(String), purpose_of_funds_description: T.nilable(String), regulated_activity: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::RegulatedActivity), source_of_funds: T.nilable(String), source_of_funds_description: T.nilable(String)).void + } + 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 + ); end end # The CardCreator Configuration allows the Account to create and issue cards to users. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::CardCreator)) } @@ -2726,6 +2923,27 @@ module Stripe } def initialize(commercial: nil); 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. + sig { returns(T.nilable(String)) } + def date; end + sig { params(_date: T.nilable(String)).returns(T.nilable(String)) } + def date=(_date); end + # The IP address from which the Account's representative accepted the terms of service. + 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 Account's representative accepted the terms of service. + 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(String), ip: T.nilable(String), user_agent: T.nilable(String)).void + } + def initialize(date: nil, ip: nil, user_agent: nil); 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. sig { returns(T.nilable(String)) } @@ -2765,6 +2983,15 @@ module Stripe params(_card_creator: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CardCreator)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CardCreator)) } def card_creator=(_card_creator); end + # Details on the Account's acceptance of Crypto-storer-specific terms of service. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer; end + sig { + params(_crypto_storer: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer=(_crypto_storer); end # Details on the Account's acceptance of Treasury-specific terms of service. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)) @@ -2775,9 +3002,9 @@ module Stripe } def storer=(_storer); end sig { - params(account: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Account), card_creator: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CardCreator), storer: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)).void + params(account: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Account), card_creator: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CardCreator), crypto_storer: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer), storer: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)).void } - def initialize(account: nil, card_creator: nil, storer: nil); end + def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil); end end # This hash is used to attest that the directors information provided to Stripe is both current and correct. sig { @@ -3384,6 +3611,13 @@ module Stripe params(_annual_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue)) } def annual_revenue=(_annual_revenue); end + # A detailed description of the business's compliance and anti-money laundering controls and practices. + sig { returns(T.nilable(String)) } + def compliance_screening_description; end + sig { + params(_compliance_screening_description: T.nilable(String)).returns(T.nilable(String)) + } + def compliance_screening_description=(_compliance_screening_description); end # A document verifying the business. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents)) @@ -3450,11 +3684,12 @@ module Stripe sig { params(_structure: T.nilable(String)).returns(T.nilable(String)) } def structure=(_structure); end sig { - params(address: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue), documents: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountUpdateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void + params(address: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue), compliance_screening_description: T.nilable(String), documents: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountUpdateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void } def initialize( address: nil, annual_revenue: nil, + compliance_screening_description: nil, documents: nil, estimated_worker_count: nil, id_numbers: nil, diff --git a/rbi/stripe/resources/account.rbi b/rbi/stripe/resources/account.rbi index a39e3052..e707c41a 100644 --- a/rbi/stripe/resources/account.rbi +++ b/rbi/stripe/resources/account.rbi @@ -487,6 +487,23 @@ module Stripe @field_remappings = {} end end + class RepresentativeDeclaration < ::Stripe::StripeObject + # The Unix timestamp marking when the representative declaration attestation was made. + sig { returns(T.nilable(Integer)) } + def date; end + # The IP address from which the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def ip; end + # The user-agent string from the browser where the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def user_agent; end + 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). @@ -566,6 +583,9 @@ module Stripe # Attribute for field registration_date sig { returns(T.nilable(RegistrationDate)) } def registration_date; 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(RepresentativeDeclaration)) } + def representative_declaration; end # 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. sig { returns(T.nilable(String)) } def structure; end @@ -589,6 +609,7 @@ module Stripe directorship_declaration: DirectorshipDeclaration, ownership_declaration: OwnershipDeclaration, registration_date: RegistrationDate, + representative_declaration: RepresentativeDeclaration, verification: Verification, } end diff --git a/rbi/stripe/resources/application_fee.rbi b/rbi/stripe/resources/application_fee.rbi index b7165ed9..48fa8b6a 100644 --- a/rbi/stripe/resources/application_fee.rbi +++ b/rbi/stripe/resources/application_fee.rbi @@ -14,6 +14,9 @@ module Stripe # Type of object that created the application fee. sig { returns(String) } def type; end + # Transfer ID that created this application fee. + sig { returns(T.nilable(String)) } + def transfer; end def self.inner_class_types @inner_class_types = {} end diff --git a/rbi/stripe/resources/balance.rbi b/rbi/stripe/resources/balance.rbi index 124562fb..87ad9a50 100644 --- a/rbi/stripe/resources/balance.rbi +++ b/rbi/stripe/resources/balance.rbi @@ -310,6 +310,88 @@ 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). + sig { returns(T.nilable(Integer)) } + def bank_account; end + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). + sig { returns(T.nilable(Integer)) } + def card; end + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. + sig { returns(T.nilable(Integer)) } + def fpx; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Balance amount. + sig { returns(Integer) } + def amount; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # Attribute for field source_types + sig { returns(T.nilable(SourceTypes)) } + def source_types; end + 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). + sig { returns(T.nilable(Integer)) } + def bank_account; end + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). + sig { returns(T.nilable(Integer)) } + def card; end + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. + sig { returns(T.nilable(Integer)) } + def fpx; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Balance amount. + sig { returns(Integer) } + def amount; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # Attribute for field source_types + sig { returns(T.nilable(SourceTypes)) } + def source_types; end + 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. + sig { returns(T::Array[Available]) } + def available; end + # Funds that are pending + sig { returns(T::Array[Pending]) } + def pending; end + 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. sig { returns(T::Array[Available]) } def available; end @@ -334,5 +416,8 @@ module Stripe # Attribute for field refund_and_dispute_prefunding sig { returns(T.nilable(RefundAndDisputePrefunding)) } def refund_and_dispute_prefunding; end + # Attribute for field transit_balances_total + sig { returns(T.nilable(TransitBalancesTotal)) } + def transit_balances_total; end end end \ No newline at end of file diff --git a/rbi/stripe/resources/billing/analytics/meter_usage_row.rbi b/rbi/stripe/resources/billing/analytics/meter_usage_row.rbi index 6daf2e8c..47b16389 100644 --- a/rbi/stripe/resources/billing/analytics/meter_usage_row.rbi +++ b/rbi/stripe/resources/billing/analytics/meter_usage_row.rbi @@ -27,6 +27,9 @@ module Stripe # The aggregated meter usage value for the specified bucket. sig { returns(Float) } def value; end + # A set of key-value pairs representing the tenants of the meter usage. + sig { returns(T.nilable(T::Hash[String, String])) } + def tenants; end end end end diff --git a/rbi/stripe/resources/billing/meter.rbi b/rbi/stripe/resources/billing/meter.rbi index 25555032..2f3a8960 100644 --- a/rbi/stripe/resources/billing/meter.rbi +++ b/rbi/stripe/resources/billing/meter.rbi @@ -64,6 +64,9 @@ module Stripe # Attribute for field default_aggregation sig { returns(DefaultAggregation) } def default_aggregation; end + # Set of keys that will be used to group meter events by. + sig { returns(T.nilable(T::Array[String])) } + def dimension_payload_keys; end # The meter's name. sig { returns(String) } def display_name; end @@ -94,9 +97,6 @@ module Stripe # Attribute for field value_settings sig { returns(ValueSettings) } def value_settings; end - # Set of keys that will be used to group meter events by. - sig { returns(T.nilable(T::Array[String])) } - def dimension_payload_keys; end # Creates a billing meter. sig { params(params: T.any(::Stripe::Billing::MeterCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) diff --git a/rbi/stripe/resources/billing/meter_event_summary.rbi b/rbi/stripe/resources/billing/meter_event_summary.rbi index 7e8d0c27..13ded34d 100644 --- a/rbi/stripe/resources/billing/meter_event_summary.rbi +++ b/rbi/stripe/resources/billing/meter_event_summary.rbi @@ -12,6 +12,9 @@ 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`. sig { returns(Float) } def aggregated_value; end + # Key-value pairs of dimension values for event summaries with grouping on dimensions. + sig { returns(T.nilable(T::Hash[String, String])) } + def dimensions; end # End timestamp for this event summary (exclusive). Must be aligned with minute boundaries. sig { returns(Integer) } def end_time; end @@ -30,9 +33,6 @@ module Stripe # Start timestamp for this event summary (inclusive). Must be aligned with minute boundaries. sig { returns(Integer) } def start_time; end - # Key-value pairs of dimension values for event summaries with grouping on dimensions. - sig { returns(T.nilable(T::Hash[String, String])) } - def dimensions; end end end end \ No newline at end of file diff --git a/rbi/stripe/resources/billing_portal/configuration.rbi b/rbi/stripe/resources/billing_portal/configuration.rbi index a9079b2a..b0f0d552 100644 --- a/rbi/stripe/resources/billing_portal/configuration.rbi +++ b/rbi/stripe/resources/billing_portal/configuration.rbi @@ -4,7 +4,7 @@ # typed: true 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 class BusinessProfile < ::Stripe::StripeObject # The messaging shown to customers in the portal. diff --git a/rbi/stripe/resources/card.rbi b/rbi/stripe/resources/card.rbi index ad494ba9..8d6b7c97 100644 --- a/rbi/stripe/resources/card.rbi +++ b/rbi/stripe/resources/card.rbi @@ -9,17 +9,6 @@ module Stripe # # Related guide: [Card payments with Sources](https://stripe.com/docs/sources/cards) class Card < APIResource - 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. - sig { returns(T.nilable(String)) } - def preferred; end - def self.inner_class_types - @inner_class_types = {} - end - def self.field_remappings - @field_remappings = {} - end - end class Benefits < ::Stripe::StripeObject # Issuer of this benefit card sig { returns(T.nilable(String)) } @@ -34,6 +23,17 @@ module Stripe @field_remappings = {} end 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. + sig { returns(T.nilable(String)) } + def preferred; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # Attribute for field account sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end @@ -67,6 +67,9 @@ module Stripe # A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout. sig { returns(T.nilable(T::Array[String])) } def available_payout_methods; end + # Attribute for field benefits + sig { returns(T.nilable(Benefits)) } + def benefits; end # Card brand. Can be `American Express`, `Cartes Bancaires`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`. sig { returns(String) } def brand; end @@ -141,9 +144,6 @@ module Stripe # 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. sig { returns(T.nilable(String)) } def tokenization_method; end - # Attribute for field benefits - sig { returns(T.nilable(Benefits)) } - def benefits; end # Always true for a deleted object sig { returns(T.nilable(T::Boolean)) } def deleted; end diff --git a/rbi/stripe/resources/charge.rbi b/rbi/stripe/resources/charge.rbi index a133e76f..446ee1a7 100644 --- a/rbi/stripe/resources/charge.rbi +++ b/rbi/stripe/resources/charge.rbi @@ -904,6 +904,9 @@ module Stripe # Authorization code on the charge. sig { returns(T.nilable(String)) } def authorization_code; end + # Attribute for field benefits + sig { returns(T.nilable(Benefits)) } + def benefits; end # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. sig { returns(T.nilable(String)) } def brand; end @@ -989,11 +992,9 @@ module Stripe # If this Card is part of a card wallet, this contains the details of the card wallet. sig { returns(T.nilable(Wallet)) } def wallet; end - # Attribute for field benefits - sig { returns(T.nilable(Benefits)) } - def benefits; end def self.inner_class_types @inner_class_types = { + benefits: Benefits, checks: Checks, decremental_authorization: DecrementalAuthorization, extended_authorization: ExtendedAuthorization, @@ -1005,7 +1006,6 @@ module Stripe partial_authorization: PartialAuthorization, three_d_secure: ThreeDSecure, wallet: Wallet, - benefits: Benefits, } end def self.field_remappings @@ -1877,6 +1877,9 @@ module Stripe end end class Rechnung < ::Stripe::StripeObject + # Payment portal URL. + sig { returns(T.nilable(String)) } + def payment_portal_url; end def self.inner_class_types @inner_class_types = {} end diff --git a/rbi/stripe/resources/checkout/session.rbi b/rbi/stripe/resources/checkout/session.rbi index 8d7979c0..96947d6b 100644 --- a/rbi/stripe/resources/checkout/session.rbi +++ b/rbi/stripe/resources/checkout/session.rbi @@ -1691,6 +1691,23 @@ module Stripe @field_remappings = {} 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). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + 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 @@ -1885,6 +1902,9 @@ module Stripe # Attribute for field swish sig { returns(T.nilable(Swish)) } def swish; end + # Attribute for field twint + sig { returns(T.nilable(Twint)) } + def twint; end # Attribute for field us_bank_account sig { returns(T.nilable(UsBankAccount)) } def us_bank_account; end @@ -1930,6 +1950,7 @@ module Stripe sepa_debit: SepaDebit, sofort: Sofort, swish: Swish, + twint: Twint, us_bank_account: UsBankAccount, } end diff --git a/rbi/stripe/resources/confirmation_token.rbi b/rbi/stripe/resources/confirmation_token.rbi index 4dc16c2d..4def1d60 100644 --- a/rbi/stripe/resources/confirmation_token.rbi +++ b/rbi/stripe/resources/confirmation_token.rbi @@ -755,6 +755,9 @@ module Stripe @field_remappings = {} end end + # Attribute for field benefits + sig { returns(T.nilable(Benefits)) } + def benefits; end # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. sig { returns(String) } def brand; end @@ -808,17 +811,14 @@ module Stripe # If this Card is part of a card wallet, this contains the details of the card wallet. sig { returns(T.nilable(Wallet)) } def wallet; end - # Attribute for field benefits - sig { returns(T.nilable(Benefits)) } - def benefits; end 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 def self.field_remappings diff --git a/rbi/stripe/resources/customer.rbi b/rbi/stripe/resources/customer.rbi index 2f7b4d05..31be733f 100644 --- a/rbi/stripe/resources/customer.rbi +++ b/rbi/stripe/resources/customer.rbi @@ -156,6 +156,9 @@ module Stripe # The identified tax location of the customer. sig { returns(T.nilable(Location)) } def location; end + # The tax calculation provider used for location resolution. Defaults to `stripe` when not using a [third-party provider](/tax/third-party-apps). + sig { returns(String) } + def provider; end def self.inner_class_types @inner_class_types = {location: Location} end diff --git a/rbi/stripe/resources/customer_session.rbi b/rbi/stripe/resources/customer_session.rbi index 4a9fafa3..a14e1567 100644 --- a/rbi/stripe/resources/customer_session.rbi +++ b/rbi/stripe/resources/customer_session.rbi @@ -22,6 +22,83 @@ module Stripe @field_remappings = {} 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"]. + sig { returns(T.nilable(T::Array[String])) } + def 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 + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the customer sheet is enabled. + sig { returns(T::Boolean) } + def enabled; end + # This hash defines whether the customer sheet supports certain features. + sig { returns(T.nilable(Features)) } + def features; end + 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"]. + sig { returns(T.nilable(T::Array[String])) } + def 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 + # 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 + # 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 + # 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 + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the mobile payment element is enabled. + sig { returns(T::Boolean) } + def enabled; end + # This hash defines whether the mobile payment element supports certain features. + sig { returns(T.nilable(Features)) } + def features; end + 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. @@ -81,20 +158,64 @@ 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. + sig { returns(String) } + def 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(String) } + def tax_id_save; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Tax ID Element is enabled. + sig { returns(T::Boolean) } + def enabled; end + # This hash defines whether the Tax ID Element supports certain features. + sig { returns(T.nilable(Features)) } + def features; end + 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. sig { returns(BuyButton) } def buy_button; end + # This hash contains whether the customer sheet is enabled and the features it supports. + sig { returns(CustomerSheet) } + def customer_sheet; end + # This hash contains whether the mobile payment element is enabled and the features it supports. + sig { returns(MobilePaymentElement) } + def mobile_payment_element; end # This hash contains whether the Payment Element is enabled and the features it supports. sig { returns(PaymentElement) } def payment_element; end # This hash contains whether the pricing table is enabled. sig { returns(PricingTable) } def pricing_table; end + # This hash contains whether the Tax ID Element is enabled and the features it supports. + sig { returns(T.nilable(TaxIdElement)) } + def tax_id_element; end 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 def self.field_remappings diff --git a/rbi/stripe/resources/financial_connections/account.rbi b/rbi/stripe/resources/financial_connections/account.rbi index c0d90b3a..7f95d5a9 100644 --- a/rbi/stripe/resources/financial_connections/account.rbi +++ b/rbi/stripe/resources/financial_connections/account.rbi @@ -272,13 +272,13 @@ module Stripe } def self.refresh_account(account, params = {}, opts = {}); 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. sig { params(params: T.any(::Stripe::FinancialConnections::AccountSubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def subscribe(params = {}, opts = {}); 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. sig { params(account: String, params: T.any(::Stripe::FinancialConnections::AccountSubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } diff --git a/rbi/stripe/resources/identity/verification_report.rbi b/rbi/stripe/resources/identity/verification_report.rbi index a9bf4af7..2ce578d1 100644 --- a/rbi/stripe/resources/identity/verification_report.rbi +++ b/rbi/stripe/resources/identity/verification_report.rbi @@ -111,6 +111,9 @@ module Stripe # Address as it appears in the document. sig { returns(T.nilable(Address)) } def address; end + # If document was not verified due to extracted data being on the blocklist, this is the token of the BlocklistEntry that blocked it + sig { returns(T.nilable(T.any(String, ::Stripe::Identity::BlocklistEntry))) } + def blocked_by_entry; end # Date of birth as it appears in the document. sig { returns(T.nilable(Dob)) } def dob; end @@ -153,9 +156,6 @@ module Stripe # Sex as it appears in the document. sig { returns(T.nilable(String)) } def unparsed_sex; end - # If document was not verified due to extracted data being on the blocklist, this is the token of the BlocklistEntry that blocked it - sig { returns(T.nilable(T.any(String, ::Stripe::Identity::BlocklistEntry))) } - def blocked_by_entry; end def self.inner_class_types @inner_class_types = { address: Address, @@ -348,6 +348,9 @@ 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 + sig { returns(T.nilable(T.any(String, ::Stripe::Identity::BlocklistEntry))) } + def blocked_by_entry; end # ID of the [File](https://stripe.com/docs/api/files) holding the image of the identity document used in this check. sig { returns(T.nilable(String)) } def document; end @@ -360,9 +363,6 @@ module Stripe # Status of this `selfie` check. sig { returns(String) } def status; end - # If selfie was not verified due to being on the blocklist, this is the token of the BlocklistEntry that blocked it - sig { returns(T.nilable(T.any(String, ::Stripe::Identity::BlocklistEntry))) } - def blocked_by_entry; end def self.inner_class_types @inner_class_types = {error: Error} end diff --git a/rbi/stripe/resources/payment_attempt_record.rbi b/rbi/stripe/resources/payment_attempt_record.rbi index d62ddec6..d7611842 100644 --- a/rbi/stripe/resources/payment_attempt_record.rbi +++ b/rbi/stripe/resources/payment_attempt_record.rbi @@ -1508,6 +1508,9 @@ module Stripe end end class Rechnung < ::Stripe::StripeObject + # Payment portal URL. + sig { returns(T.nilable(String)) } + def payment_portal_url; end def self.inner_class_types @inner_class_types = {} end diff --git a/rbi/stripe/resources/payment_intent.rbi b/rbi/stripe/resources/payment_intent.rbi index 38bea942..130bc878 100644 --- a/rbi/stripe/resources/payment_intent.rbi +++ b/rbi/stripe/resources/payment_intent.rbi @@ -1667,6 +1667,9 @@ module Stripe @field_remappings = {} end end + # Attribute for field benefit + sig { returns(T.nilable(Benefit)) } + def benefit; end # Attribute for field car_rental sig { returns(T.nilable(CarRental)) } def car_rental; end @@ -1682,15 +1685,12 @@ module Stripe # Attribute for field subscription sig { returns(T.nilable(Subscription)) } def subscription; end - # Attribute for field benefit - sig { returns(T.nilable(Benefit)) } - def benefit; end def self.inner_class_types @inner_class_types = { + benefit: Benefit, car_rental: CarRental, event_details: EventDetails, subscription: Subscription, - benefit: Benefit, } end def self.field_remappings @@ -3605,6 +3605,17 @@ module Stripe @field_remappings = {} end end + class AllocatedFunds < ::Stripe::StripeObject + # Allocated Funds configuration for this PaymentIntent. + sig { returns(T.nilable(T::Boolean)) } + def enabled; end + 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). sig { returns(Integer) } def amount; end @@ -3765,6 +3776,9 @@ module Stripe # 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). sig { returns(T.nilable(String)) } def transfer_group; end + # Allocated Funds configuration for this PaymentIntent. + sig { returns(T.nilable(AllocatedFunds)) } + def allocated_funds; end # Manually reconcile the remaining amount for a customer_balance PaymentIntent. sig { params(params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) diff --git a/rbi/stripe/resources/payment_intent_amount_details_line_item.rbi b/rbi/stripe/resources/payment_intent_amount_details_line_item.rbi index 1233250b..8ff3747d 100644 --- a/rbi/stripe/resources/payment_intent_amount_details_line_item.rbi +++ b/rbi/stripe/resources/payment_intent_amount_details_line_item.rbi @@ -34,6 +34,12 @@ module Stripe # Attribute for field product_url sig { returns(T.nilable(String)) } def product_url; end + # Attribute for field reference + sig { returns(T.nilable(String)) } + def reference; end + # Attribute for field subscription_reference + sig { returns(T.nilable(String)) } + def subscription_reference; end def self.inner_class_types @inner_class_types = {} end diff --git a/rbi/stripe/resources/payment_link.rbi b/rbi/stripe/resources/payment_link.rbi index 867ec2fb..d7320811 100644 --- a/rbi/stripe/resources/payment_link.rbi +++ b/rbi/stripe/resources/payment_link.rbi @@ -369,6 +369,48 @@ module Stripe @field_remappings = {} end end + class NameCollection < ::Stripe::StripeObject + class Business < ::Stripe::StripeObject + # Indicates whether business name collection is enabled for the payment link. + sig { returns(T::Boolean) } + def enabled; end + # Whether the customer is required to complete the field before checking out. Defaults to `false`. + sig { returns(T::Boolean) } + def optional; end + 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. + sig { returns(T::Boolean) } + def enabled; end + # Whether the customer is required to complete the field before checking out. Defaults to `false`. + sig { returns(T::Boolean) } + def optional; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field business + sig { returns(T.nilable(Business)) } + def business; end + # Attribute for field individual + sig { returns(T.nilable(Individual)) } + def individual; end + 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 +690,9 @@ module Stripe # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. sig { returns(T::Hash[String, String]) } def metadata; end + # Attribute for field name_collection + sig { returns(T.nilable(NameCollection)) } + def name_collection; end # String representing the object's type. Objects of the same type share the same value. sig { returns(String) } def object; end diff --git a/rbi/stripe/resources/payment_method.rbi b/rbi/stripe/resources/payment_method.rbi index bb718147..a132790a 100644 --- a/rbi/stripe/resources/payment_method.rbi +++ b/rbi/stripe/resources/payment_method.rbi @@ -659,6 +659,9 @@ module Stripe @field_remappings = {} end end + # Attribute for field benefits + sig { returns(T.nilable(Benefits)) } + def benefits; end # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. sig { returns(String) } def brand; end @@ -712,17 +715,14 @@ module Stripe # If this Card is part of a card wallet, this contains the details of the card wallet. sig { returns(T.nilable(Wallet)) } def wallet; end - # Attribute for field benefits - sig { returns(T.nilable(Benefits)) } - def benefits; end 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 def self.field_remappings @@ -851,6 +851,37 @@ module Stripe @field_remappings = {} end end + class Custom < ::Stripe::StripeObject + class Logo < ::Stripe::StripeObject + # Content type of the Dashboard-only CustomPaymentMethodType logo. + sig { returns(T.nilable(String)) } + def content_type; end + # URL of the Dashboard-only CustomPaymentMethodType logo. + sig { returns(String) } + def url; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Display name of the Dashboard-only CustomPaymentMethodType. + sig { returns(T.nilable(String)) } + def display_name; end + # Contains information about the Dashboard-only CustomPaymentMethodType logo. + sig { returns(T.nilable(Logo)) } + def logo; end + # ID of the Dashboard-only CustomPaymentMethodType. Not expandable. + sig { returns(String) } + def type; end + 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 = {} @@ -1563,6 +1594,9 @@ module Stripe # Attribute for field crypto sig { returns(T.nilable(Crypto)) } def crypto; end + # Attribute for field custom + sig { returns(T.nilable(Custom)) } + def custom; end # 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. sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end diff --git a/rbi/stripe/resources/payment_method_configuration.rbi b/rbi/stripe/resources/payment_method_configuration.rbi index 1cc27c04..fecd14b8 100644 --- a/rbi/stripe/resources/payment_method_configuration.rbi +++ b/rbi/stripe/resources/payment_method_configuration.rbi @@ -514,6 +514,37 @@ module Stripe @field_remappings = {} 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. + sig { returns(T.nilable(T::Boolean)) } + def overridable; end + # The account's display preference. + sig { returns(String) } + def preference; end + # The effective display preference value. + sig { returns(String) } + def value; end + 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. + sig { returns(T::Boolean) } + def available; end + # Attribute for field display_preference + sig { returns(DisplayPreference) } + def display_preference; end + 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. @@ -979,6 +1010,37 @@ module Stripe @field_remappings = {} 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. + sig { returns(T.nilable(T::Boolean)) } + def overridable; end + # The account's display preference. + sig { returns(String) } + def preference; end + # The effective display preference value. + sig { returns(String) } + def value; end + 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. + sig { returns(T::Boolean) } + def available; end + # Attribute for field display_preference + sig { returns(DisplayPreference) } + def display_preference; end + 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. @@ -1839,6 +1901,9 @@ module Stripe # Attribute for field cashapp sig { returns(T.nilable(Cashapp)) } def cashapp; end + # Attribute for field crypto + sig { returns(T.nilable(Crypto)) } + def crypto; end # Attribute for field customer_balance sig { returns(T.nilable(CustomerBalance)) } def customer_balance; end @@ -1893,6 +1958,9 @@ module Stripe # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } def livemode; end + # Attribute for field mb_way + sig { returns(T.nilable(MbWay)) } + def mb_way; end # Attribute for field mobilepay sig { returns(T.nilable(Mobilepay)) } def mobilepay; end diff --git a/rbi/stripe/resources/payment_record.rbi b/rbi/stripe/resources/payment_record.rbi index bb39379b..d85d5f01 100644 --- a/rbi/stripe/resources/payment_record.rbi +++ b/rbi/stripe/resources/payment_record.rbi @@ -1508,6 +1508,9 @@ module Stripe end end class Rechnung < ::Stripe::StripeObject + # Payment portal URL. + sig { returns(T.nilable(String)) } + def payment_portal_url; end def self.inner_class_types @inner_class_types = {} end @@ -2287,5 +2290,19 @@ module Stripe params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptInformationalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) } def self.report_payment_attempt_informational(id, params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was refunded. + sig { + params(params: T.any(::Stripe::PaymentRecordReportRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_refund(params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was refunded. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def self.report_refund(id, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/payout.rbi b/rbi/stripe/resources/payout.rbi index 441bb757..5b8cde9f 100644 --- a/rbi/stripe/resources/payout.rbi +++ b/rbi/stripe/resources/payout.rbi @@ -135,7 +135,7 @@ module Stripe } def self.list(params = {}, 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. sig { @@ -143,7 +143,7 @@ module Stripe } def reverse(params = {}, 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. sig { diff --git a/rbi/stripe/resources/refund.rbi b/rbi/stripe/resources/refund.rbi index 38ab068f..b0aadd30 100644 --- a/rbi/stripe/resources/refund.rbi +++ b/rbi/stripe/resources/refund.rbi @@ -117,6 +117,17 @@ module Stripe @field_remappings = {} end end + class Crypto < ::Stripe::StripeObject + # The transaction hash of the refund. + sig { returns(T.nilable(String)) } + def reference; end + 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 = {} @@ -397,6 +408,9 @@ module Stripe # Attribute for field cashapp sig { returns(T.nilable(Cashapp)) } def cashapp; end + # Attribute for field crypto + sig { returns(T.nilable(Crypto)) } + def crypto; end # Attribute for field customer_cash_balance sig { returns(T.nilable(CustomerCashBalance)) } def customer_cash_balance; end @@ -481,6 +495,7 @@ module Stripe br_bank_transfer: BrBankTransfer, card: Card, cashapp: Cashapp, + crypto: Crypto, customer_cash_balance: CustomerCashBalance, eps: Eps, eu_bank_transfer: EuBankTransfer, diff --git a/rbi/stripe/resources/setup_intent.rbi b/rbi/stripe/resources/setup_intent.rbi index 1526f640..3cd2b85b 100644 --- a/rbi/stripe/resources/setup_intent.rbi +++ b/rbi/stripe/resources/setup_intent.rbi @@ -750,6 +750,9 @@ module Stripe # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } def description; end + # Payment method types that are excluded from this SetupIntent. + sig { returns(T.nilable(T::Array[String])) } + def excluded_payment_method_types; end # 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. @@ -794,6 +797,9 @@ module Stripe # 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). sig { returns(T::Array[String]) } def payment_method_types; end + # Attribute for field setup_details + sig { returns(T.nilable(SetupDetails)) } + def setup_details; end # ID of the single_use Mandate generated by the SetupIntent. sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def single_use_mandate; end @@ -805,9 +811,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`. sig { returns(String) } def usage; end - # Attribute for field setup_details - sig { returns(T.nilable(SetupDetails)) } - def setup_details; end # You can cancel a SetupIntent object when it's in one of these statuses: requires_payment_method, requires_confirmation, or requires_action. # # After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can't cancel the SetupIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead. diff --git a/rbi/stripe/resources/tax/registration.rbi b/rbi/stripe/resources/tax/registration.rbi index f2cb14a2..7b0aa6b9 100644 --- a/rbi/stripe/resources/tax/registration.rbi +++ b/rbi/stripe/resources/tax/registration.rbi @@ -1494,6 +1494,17 @@ module Stripe @field_remappings = {} end end + class Tw < ::Stripe::StripeObject + # Type of registration in `country`. + sig { returns(String) } + def type; end + 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`. sig { returns(String) } @@ -1934,6 +1945,9 @@ module Stripe # Attribute for field tr sig { returns(T.nilable(Tr)) } def tr; end + # Attribute for field tw + sig { returns(T.nilable(Tw)) } + def tw; end # Attribute for field tz sig { returns(T.nilable(Tz)) } def tz; end @@ -2055,6 +2069,7 @@ module Stripe th: Th, tj: Tj, tr: Tr, + tw: Tw, tz: Tz, ua: Ua, ug: Ug, diff --git a/rbi/stripe/resources/terminal/configuration.rbi b/rbi/stripe/resources/terminal/configuration.rbi index a1842494..94175c25 100644 --- a/rbi/stripe/resources/terminal/configuration.rbi +++ b/rbi/stripe/resources/terminal/configuration.rbi @@ -230,6 +230,23 @@ module Stripe @field_remappings = {} end end + class Gip < ::Stripe::StripeObject + # Fixed amounts displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def fixed_amounts; end + # Percentages displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def percentages; end + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + sig { returns(T.nilable(Integer)) } + def smart_tip_threshold; end + 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 sig { returns(T.nilable(T::Array[Integer])) } @@ -461,6 +478,9 @@ module Stripe # Attribute for field gbp sig { returns(T.nilable(Gbp)) } def gbp; end + # Attribute for field gip + sig { returns(T.nilable(Gip)) } + def gip; end # Attribute for field hkd sig { returns(T.nilable(Hkd)) } def hkd; end @@ -508,6 +528,7 @@ module Stripe dkk: Dkk, eur: Eur, gbp: Gbp, + gip: Gip, hkd: Hkd, huf: Huf, jpy: Jpy, diff --git a/rbi/stripe/resources/terminal/reader.rbi b/rbi/stripe/resources/terminal/reader.rbi index c79fe015..f4f2b8ab 100644 --- a/rbi/stripe/resources/terminal/reader.rbi +++ b/rbi/stripe/resources/terminal/reader.rbi @@ -66,13 +66,13 @@ module Stripe end class Selection < ::Stripe::StripeObject class Choice < ::Stripe::StripeObject - # The id to be selected + # The identifier for the selected choice. Maximum 50 characters. sig { returns(T.nilable(String)) } def id; end - # The button style for the choice + # The button style for the choice. Can be `primary` or `secondary`. sig { returns(T.nilable(String)) } def style; end - # The text to be selected + # The text to be selected. Maximum 30 characters. sig { returns(String) } def text; end def self.inner_class_types @@ -121,16 +121,16 @@ module Stripe end end class Toggle < ::Stripe::StripeObject - # The toggle's default value + # The toggle's default value. Can be `enabled` or `disabled`. sig { returns(T.nilable(String)) } def default_value; end - # The toggle's description text + # The toggle's description text. Maximum 50 characters. sig { returns(T.nilable(String)) } def description; end - # The toggle's title text + # The toggle's title text. Maximum 50 characters. sig { returns(T.nilable(String)) } def title; end - # The toggle's collected value + # The toggle's collected value. Can be `enabled` or `disabled`. sig { returns(T.nilable(String)) } def value; end def self.inner_class_types @@ -445,10 +445,10 @@ 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. sig { returns(T.nilable(Cart)) } def cart; end - # Type of information to be displayed by the reader. + # Type of information to be displayed by the reader. Only `cart` is currently supported. sig { returns(String) } def type; end def self.inner_class_types @@ -524,6 +524,9 @@ module Stripe # Custom label given to the reader for easier identification. sig { returns(String) } def label; end + # The last time this reader reported to Stripe backend. + sig { returns(T.nilable(Integer)) } + def last_seen_at; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } def livemode; end @@ -545,49 +548,49 @@ module Stripe # Always true for a deleted object sig { returns(T.nilable(T::Boolean)) } def deleted; 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. sig { params(params: T.any(::Stripe::Terminal::ReaderCancelActionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def cancel_action(params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderCancelActionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.cancel_action(reader, params = {}, opts = {}); 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. sig { params(params: T.any(::Stripe::Terminal::ReaderCollectInputsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def collect_inputs(params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectInputsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.collect_inputs(reader, params = {}, opts = {}); 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. sig { params(params: T.any(::Stripe::Terminal::ReaderCollectPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def collect_payment_method(params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.collect_payment_method(reader, params = {}, opts = {}); 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. sig { params(params: T.any(::Stripe::Terminal::ReaderConfirmPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def confirm_payment_intent(params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderConfirmPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } @@ -617,49 +620,49 @@ module Stripe } def self.list(params = {}, opts = {}); 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. sig { params(params: T.any(::Stripe::Terminal::ReaderProcessPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def process_payment_intent(params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.process_payment_intent(reader, params = {}, opts = {}); 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. sig { params(params: T.any(::Stripe::Terminal::ReaderProcessSetupIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def process_setup_intent(params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessSetupIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.process_setup_intent(reader, params = {}, opts = {}); 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. sig { params(params: T.any(::Stripe::Terminal::ReaderRefundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def refund_payment(params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderRefundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.refund_payment(reader, params = {}, opts = {}); end - # Sets reader display to show cart details. + # Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display). sig { params(params: T.any(::Stripe::Terminal::ReaderSetReaderDisplayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def set_reader_display(params = {}, opts = {}); end - # Sets reader display to show cart details. + # Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display). sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderSetReaderDisplayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } diff --git a/rbi/stripe/resources/transfer.rbi b/rbi/stripe/resources/transfer.rbi index 8ca60b33..90b55196 100644 --- a/rbi/stripe/resources/transfer.rbi +++ b/rbi/stripe/resources/transfer.rbi @@ -68,6 +68,12 @@ module Stripe # 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. sig { returns(T.nilable(String)) } def transfer_group; end + # Attribute for field application_fee + sig { returns(T.nilable(T.any(String, ::Stripe::ApplicationFee))) } + def application_fee; end + # Attribute for field application_fee_amount + sig { returns(T.nilable(Integer)) } + def application_fee_amount; end # 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. sig { params(params: T.any(::Stripe::TransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Transfer) diff --git a/rbi/stripe/resources/v2/core/account.rbi b/rbi/stripe/resources/v2/core/account.rbi index b04ad130..c9307b34 100644 --- a/rbi/stripe/resources/v2/core/account.rbi +++ b/rbi/stripe/resources/v2/core/account.rbi @@ -2575,11 +2575,45 @@ 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. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + sig { returns(T::Boolean) } + def requested; end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + 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. sig { returns(T.nilable(BankAccounts)) } def bank_accounts; end + # Can provision a crypto wallet like financial address to credit a FinancialAccount. + sig { returns(T.nilable(CryptoWallets)) } + def crypto_wallets; end 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 @field_remappings = {} @@ -2648,14 +2682,48 @@ 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. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + sig { returns(T::Boolean) } + def requested; end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + 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. sig { returns(T.nilable(Gbp)) } def gbp; end # Can hold storage-type funds on Stripe in USD. sig { returns(T.nilable(Usd)) } def usd; end + # Can hold storage-type funds on Stripe in USDC. + sig { returns(T.nilable(Usdc)) } + def usdc; end 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 @field_remappings = {} @@ -2766,6 +2834,37 @@ 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. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + sig { returns(T::Boolean) } + def requested; end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + 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. @@ -2803,6 +2902,9 @@ module Stripe # Can send funds from a FinancialAccount to a debit card, owned by someone else. sig { returns(T.nilable(Cards)) } def cards; end + # Can send funds from a FinancialAccount to a crypto wallet, owned by someone else. + sig { returns(T.nilable(CryptoWallets)) } + def crypto_wallets; end # Can send funds from a FinancialAccount to another FinancialAccount, owned by someone else. sig { returns(T.nilable(FinancialAccounts)) } def financial_accounts; end @@ -2810,6 +2912,7 @@ module Stripe @inner_class_types = { bank_accounts: BankAccounts, cards: Cards, + crypto_wallets: CryptoWallets, financial_accounts: FinancialAccounts, } end @@ -2849,6 +2952,37 @@ 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. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + sig { returns(T::Boolean) } + def requested; end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + 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. @@ -2883,12 +3017,16 @@ module Stripe # Can send funds from a FinancialAccount, to a bank account, owned by yourself. sig { returns(T.nilable(BankAccounts)) } def bank_accounts; end + # Can send funds from a FinancialAccount to a crypto wallet, owned by yourself. + sig { returns(T.nilable(CryptoWallets)) } + def crypto_wallets; end # Can send funds from a FinancialAccount to another FinancialAccount, owned by yourself. sig { returns(T.nilable(FinancialAccounts)) } def financial_accounts; end def self.inner_class_types @inner_class_types = { bank_accounts: BankAccounts, + crypto_wallets: CryptoWallets, financial_accounts: FinancialAccounts, } end @@ -2924,14 +3062,67 @@ module Stripe @field_remappings = {} end end + class RegulatedActivity < ::Stripe::StripeObject + # A detailed description of the regulated activities the business is licensed to conduct. + sig { returns(T.nilable(String)) } + def description; end + # The license number or registration number assigned by the business's primary regulator. + sig { returns(T.nilable(String)) } + def license_number; end + # The country of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_country; end + # The name of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_name; end + 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. sig { returns(T::Boolean) } def applied; end # Capabilities that have been requested on the Storer Configuration. sig { returns(T.nilable(Capabilities)) } def capabilities; end + # List of high-risk activities the business is involved in. + sig { returns(T.nilable(T::Array[String])) } + def high_risk_activities; end + # An explanation of the high risk activities that the business performs. + sig { returns(T.nilable(String)) } + def high_risk_activities_description; end + # Description of the money services offered by the business. + sig { returns(T.nilable(String)) } + def money_services_description; end + # Does the business operate in any prohibited countries. + sig { returns(T.nilable(T::Boolean)) } + def operates_in_prohibited_countries; end + # Does the business participate in any regulated activity. + sig { returns(T.nilable(T::Boolean)) } + def participates_in_regulated_activity; end + # Primary purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds; end + # Description of the purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds_description; end + # Details of the regulated activity if the business participates in one. + sig { returns(T.nilable(RegulatedActivity)) } + def regulated_activity; end + # The source of funds for the business, e.g. profits, income, venture capital, etc. + sig { returns(T.nilable(String)) } + def source_of_funds; end + # Description of the source of funds for the business' account. + sig { returns(T.nilable(String)) } + def source_of_funds_description; end def self.inner_class_types - @inner_class_types = {capabilities: Capabilities} + @inner_class_types = { + capabilities: Capabilities, + regulated_activity: RegulatedActivity, + } end def self.field_remappings @field_remappings = {} @@ -3514,6 +3705,23 @@ module Stripe @field_remappings = {} 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. + sig { returns(T.nilable(String)) } + def date; end + # The IP address from which the Account's representative accepted the terms of service. + sig { returns(T.nilable(String)) } + def ip; end + # The user agent of the browser from which the Account's representative accepted the terms of service. + sig { returns(T.nilable(String)) } + def user_agent; end + 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. sig { returns(T.nilable(String)) } @@ -3537,11 +3745,19 @@ module Stripe # Details on the Account's acceptance of Issuing-specific terms of service. sig { returns(T.nilable(CardCreator)) } def card_creator; end + # Details on the Account's acceptance of Crypto-storer-specific terms of service. + sig { returns(T.nilable(CryptoStorer)) } + def crypto_storer; end # Details on the Account's acceptance of Treasury-specific terms of service. sig { returns(T.nilable(Storer)) } def storer; end 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 @field_remappings = {} @@ -3961,6 +4177,9 @@ module Stripe # The business gross annual revenue for its preceding fiscal year. sig { returns(T.nilable(AnnualRevenue)) } def annual_revenue; end + # A detailed description of the business's compliance and anti-money laundering controls and practices. + sig { returns(T.nilable(String)) } + def compliance_screening_description; end # Documents that may be submitted to satisfy various informational requests. sig { returns(T.nilable(Documents)) } def documents; end diff --git a/rbi/stripe/resources/v2/money_management/received_credit.rbi b/rbi/stripe/resources/v2/money_management/received_credit.rbi index 6b2d1829..5b578e2a 100644 --- a/rbi/stripe/resources/v2/money_management/received_credit.rbi +++ b/rbi/stripe/resources/v2/money_management/received_credit.rbi @@ -195,6 +195,9 @@ module Stripe # Freeform string set by originator of the ReceivedCredit. sig { returns(T.nilable(String)) } def description; end + # The amount and currency of the original/external credit request. + sig { returns(T.nilable(::Stripe::V2::Amount)) } + def external_amount; end # Financial Account ID on which funds for ReceivedCredit were received. sig { returns(String) } def financial_account; end diff --git a/rbi/stripe/resources/v2/money_management/received_debit.rbi b/rbi/stripe/resources/v2/money_management/received_debit.rbi index 3e735fcd..42bc8e57 100644 --- a/rbi/stripe/resources/v2/money_management/received_debit.rbi +++ b/rbi/stripe/resources/v2/money_management/received_debit.rbi @@ -100,6 +100,9 @@ module Stripe # Freeform string sent by the originator of the ReceivedDebit. sig { returns(T.nilable(String)) } def description; end + # The amount and currency of the original/external debit request. + sig { returns(T.nilable(::Stripe::V2::Amount)) } + def external_amount; end # Financial Account on which funds for ReceivedDebit were debited. sig { returns(String) } def financial_account; end diff --git a/rbi/stripe/services/financial_connections/account_service.rbi b/rbi/stripe/services/financial_connections/account_service.rbi index 975463d7..d4aa54b6 100644 --- a/rbi/stripe/services/financial_connections/account_service.rbi +++ b/rbi/stripe/services/financial_connections/account_service.rbi @@ -31,7 +31,7 @@ module Stripe } def retrieve(account, params = {}, opts = {}); 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. sig { params(account: String, params: T.any(::Stripe::FinancialConnections::AccountSubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } diff --git a/rbi/stripe/services/payment_record_service.rbi b/rbi/stripe/services/payment_record_service.rbi index 8c37d0de..d1df017d 100644 --- a/rbi/stripe/services/payment_record_service.rbi +++ b/rbi/stripe/services/payment_record_service.rbi @@ -46,6 +46,13 @@ module Stripe } def report_payment_attempt_informational(id, params = {}, opts = {}); end + # Report that the most recent payment attempt on the specified Payment Record + # was refunded. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_refund(id, params = {}, opts = {}); end + # Retrieves a Payment Record with the given ID sig { params(id: String, params: T.any(::Stripe::PaymentRecordRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) diff --git a/rbi/stripe/services/payout_service.rbi b/rbi/stripe/services/payout_service.rbi index 0abb7ca8..dab41274 100644 --- a/rbi/stripe/services/payout_service.rbi +++ b/rbi/stripe/services/payout_service.rbi @@ -32,7 +32,7 @@ module Stripe } def retrieve(payout, params = {}, 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. sig { diff --git a/rbi/stripe/services/terminal/reader_service.rbi b/rbi/stripe/services/terminal/reader_service.rbi index 31b135aa..bb31bb7a 100644 --- a/rbi/stripe/services/terminal/reader_service.rbi +++ b/rbi/stripe/services/terminal/reader_service.rbi @@ -5,25 +5,25 @@ 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderCancelActionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def cancel_action(reader, params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectInputsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def collect_inputs(reader, params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def collect_payment_method(reader, params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderConfirmPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } @@ -47,19 +47,19 @@ module Stripe } def list(params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def process_payment_intent(reader, params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessSetupIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def process_setup_intent(reader, params = {}, opts = {}); 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. sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderRefundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } @@ -71,7 +71,7 @@ module Stripe } def retrieve(reader, params = {}, opts = {}); end - # Sets reader display to show cart details. + # Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display). sig { params(reader: String, params: T.any(::Stripe::Terminal::ReaderSetReaderDisplayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) }