From 118875ba31d5a9a936f985ffdff7295d50915a82 Mon Sep 17 00:00:00 2001 From: Prathmesh Ranaut <165320323+prathmesh-stripe@users.noreply.github.com> Date: Fri, 17 Oct 2025 13:02:24 -0400 Subject: [PATCH 1/3] Updated Sorbet wiki link in README.md (#1709) This PR fixes the broken sorbet wiki link in the README.md. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 99cadaf7b..0b8f6d9f8 100644 --- a/README.md +++ b/README.md @@ -292,7 +292,7 @@ Stripe.enable_telemetry = false ### Types In [v14.0.0](https://github.com/stripe/stripe-python/releases/tag/v7.1.0) and newer, the library provides RBI -static type annotations. See [the wiki](https://github.com/stripe/stripe-ruby/wiki/Static-Type-Annotations) +static type annotations. See [the wiki](https://github.com/stripe/stripe-ruby/wiki/Static-Type-Annotations-(with-Sorbet)) for an detailed guide. Please note that these types are available only for static analysis and we only support RBIs at the moment. From 80d08a82d063fd6dd66b38825d3495d650e41d81 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 20 Oct 2025 21:53:15 +0000 Subject: [PATCH 2/3] Update generated code for v2090 and --- API_VERSION | 2 +- OPENAPI_VERSION | 2 +- .../params/billing/meter_create_params.rb | 6 +++- .../meter_event_summary_list_params.rb | 8 +++++ lib/stripe/resources/billing/meter.rb | 2 ++ .../resources/billing/meter_event_summary.rb | 2 ++ rbi/stripe.rbi | 36 +++++++++++++++++-- .../params/billing/meter_create_params.rbi | 12 +++++-- .../meter_event_summary_list_params.rbi | 18 +++++++++- rbi/stripe/resources/billing/meter.rbi | 3 ++ .../resources/billing/meter_event_summary.rbi | 3 ++ 11 files changed, 85 insertions(+), 9 deletions(-) diff --git a/API_VERSION b/API_VERSION index 48e18d3b3..5864f9439 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -ac068455633f71bd46af44a2029f3a7353bc474e \ No newline at end of file +563ac1cd28e814b537e2f46a58f9d90cf654aa2c \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index a5571f29c..0c0cf0dff 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2083 \ No newline at end of file +v2090 \ No newline at end of file diff --git a/lib/stripe/params/billing/meter_create_params.rb b/lib/stripe/params/billing/meter_create_params.rb index a329de014..c6b83eafd 100644 --- a/lib/stripe/params/billing/meter_create_params.rb +++ b/lib/stripe/params/billing/meter_create_params.rb @@ -47,6 +47,8 @@ def initialize(event_payload_key: nil) 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, @@ -55,7 +57,8 @@ def initialize( event_name: nil, event_time_window: nil, expand: nil, - value_settings: nil + value_settings: nil, + dimension_payload_keys: nil ) @customer_mapping = customer_mapping @default_aggregation = default_aggregation @@ -64,6 +67,7 @@ def initialize( @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/meter_event_summary_list_params.rb b/lib/stripe/params/billing/meter_event_summary_list_params.rb index 250cb55bb..bed589fa8 100644 --- a/lib/stripe/params/billing/meter_event_summary_list_params.rb +++ b/lib/stripe/params/billing/meter_event_summary_list_params.rb @@ -6,6 +6,10 @@ module Billing class MeterEventSummaryListParams < ::Stripe::RequestParams # The customer for which to fetch event summaries. attr_accessor :customer + # Key-value pairs used to filter meter events by dimension values. If specified, event summaries will be generated with only matching meter events. + attr_accessor :dimension_filters + # List of dimension payload keys to group by. If specified, event summaries will be grouped by the given dimension payload key values. + attr_accessor :dimension_group_by_keys # The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries. attr_accessor :end_time # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. @@ -23,6 +27,8 @@ class MeterEventSummaryListParams < ::Stripe::RequestParams def initialize( customer: nil, + dimension_filters: nil, + dimension_group_by_keys: nil, end_time: nil, ending_before: nil, expand: nil, @@ -32,6 +38,8 @@ def initialize( value_grouping_window: nil ) @customer = customer + @dimension_filters = dimension_filters + @dimension_group_by_keys = dimension_group_by_keys @end_time = end_time @ending_before = ending_before @expand = expand diff --git a/lib/stripe/resources/billing/meter.rb b/lib/stripe/resources/billing/meter.rb index ffcf29d40..ce3aeac25 100644 --- a/lib/stripe/resources/billing/meter.rb +++ b/lib/stripe/resources/billing/meter.rb @@ -100,6 +100,8 @@ def self.field_remappings 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 8ea0a0e02..d22d36a9d 100644 --- a/lib/stripe/resources/billing/meter_event_summary.rb +++ b/lib/stripe/resources/billing/meter_event_summary.rb @@ -27,6 +27,8 @@ def self.object_name 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/rbi/stripe.rbi b/rbi/stripe.rbi index 026d89036..a8a7ecfd2 100644 --- a/rbi/stripe.rbi +++ b/rbi/stripe.rbi @@ -7522,6 +7522,9 @@ 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) @@ -7595,6 +7598,9 @@ 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 @@ -85419,8 +85425,15 @@ 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(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)).void + 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 } def initialize( customer_mapping: nil, @@ -85429,7 +85442,8 @@ module Stripe event_name: nil, event_time_window: nil, expand: nil, - value_settings: nil + value_settings: nil, + dimension_payload_keys: nil ); end end end @@ -181797,6 +181811,20 @@ module Stripe def customer; end sig { params(_customer: String).returns(String) } def customer=(_customer); end + # Key-value pairs used to filter meter events by dimension values. If specified, event summaries will be generated with only matching meter events. + sig { returns(T.nilable(T::Hash[String, String])) } + def dimension_filters; end + sig { + params(_dimension_filters: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) + } + def dimension_filters=(_dimension_filters); end + # List of dimension payload keys to group by. If specified, event summaries will be grouped by the given dimension payload key values. + sig { returns(T.nilable(T::Array[String])) } + def dimension_group_by_keys; end + sig { + params(_dimension_group_by_keys: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) + } + def dimension_group_by_keys=(_dimension_group_by_keys); end # The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries. sig { returns(Integer) } def end_time; end @@ -181833,10 +181861,12 @@ module Stripe sig { params(_value_grouping_window: T.nilable(String)).returns(T.nilable(String)) } def value_grouping_window=(_value_grouping_window); end sig { - params(customer: String, end_time: Integer, ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), start_time: Integer, starting_after: T.nilable(String), value_grouping_window: T.nilable(String)).void + params(customer: String, dimension_filters: T.nilable(T::Hash[String, String]), dimension_group_by_keys: T.nilable(T::Array[String]), end_time: Integer, ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), start_time: Integer, starting_after: T.nilable(String), value_grouping_window: T.nilable(String)).void } def initialize( customer: nil, + dimension_filters: nil, + dimension_group_by_keys: nil, end_time: nil, ending_before: nil, expand: nil, diff --git a/rbi/stripe/params/billing/meter_create_params.rbi b/rbi/stripe/params/billing/meter_create_params.rbi index e825800d0..054655459 100644 --- a/rbi/stripe/params/billing/meter_create_params.rbi +++ b/rbi/stripe/params/billing/meter_create_params.rbi @@ -78,8 +78,15 @@ 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)).void + 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 } def initialize( customer_mapping: nil, @@ -88,7 +95,8 @@ module Stripe event_name: nil, event_time_window: nil, expand: nil, - value_settings: nil + value_settings: nil, + dimension_payload_keys: nil ); end end end diff --git a/rbi/stripe/params/billing/meter_event_summary_list_params.rbi b/rbi/stripe/params/billing/meter_event_summary_list_params.rbi index 803389a4c..60dab90cd 100644 --- a/rbi/stripe/params/billing/meter_event_summary_list_params.rbi +++ b/rbi/stripe/params/billing/meter_event_summary_list_params.rbi @@ -10,6 +10,20 @@ module Stripe def customer; end sig { params(_customer: String).returns(String) } def customer=(_customer); end + # Key-value pairs used to filter meter events by dimension values. If specified, event summaries will be generated with only matching meter events. + sig { returns(T.nilable(T::Hash[String, String])) } + def dimension_filters; end + sig { + params(_dimension_filters: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) + } + def dimension_filters=(_dimension_filters); end + # List of dimension payload keys to group by. If specified, event summaries will be grouped by the given dimension payload key values. + sig { returns(T.nilable(T::Array[String])) } + def dimension_group_by_keys; end + sig { + params(_dimension_group_by_keys: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) + } + def dimension_group_by_keys=(_dimension_group_by_keys); end # The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries. sig { returns(Integer) } def end_time; end @@ -46,10 +60,12 @@ module Stripe sig { params(_value_grouping_window: T.nilable(String)).returns(T.nilable(String)) } def value_grouping_window=(_value_grouping_window); end sig { - params(customer: String, end_time: Integer, ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), start_time: Integer, starting_after: T.nilable(String), value_grouping_window: T.nilable(String)).void + params(customer: String, dimension_filters: T.nilable(T::Hash[String, String]), dimension_group_by_keys: T.nilable(T::Array[String]), end_time: Integer, ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), start_time: Integer, starting_after: T.nilable(String), value_grouping_window: T.nilable(String)).void } def initialize( customer: nil, + dimension_filters: nil, + dimension_group_by_keys: nil, end_time: nil, ending_before: nil, expand: nil, diff --git a/rbi/stripe/resources/billing/meter.rbi b/rbi/stripe/resources/billing/meter.rbi index 4bbee0163..255550320 100644 --- a/rbi/stripe/resources/billing/meter.rbi +++ b/rbi/stripe/resources/billing/meter.rbi @@ -94,6 +94,9 @@ 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 bce65cac8..7e8d0c27c 100644 --- a/rbi/stripe/resources/billing/meter_event_summary.rbi +++ b/rbi/stripe/resources/billing/meter_event_summary.rbi @@ -30,6 +30,9 @@ 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 From f253d1ff54a40ab7088202c66cf3f97c3b987d32 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 22 Oct 2025 23:32:31 +0000 Subject: [PATCH 3/3] Update generated code for v2100 and --- API_VERSION | 2 +- OPENAPI_VERSION | 2 +- ...ey_management_transaction_created_event.rb | 19 +- lib/stripe/object_types.rb | 2 + lib/stripe/params.rb | 6 + .../requested_session_create_params.rb | 231 ++- .../requested_session_update_params.rb | 196 ++- .../collection_setting_create_params.rb | 4 +- .../collection_setting_update_params.rb | 4 +- .../component_retrieve_params.rb | 12 + .../params/v2/core/account_create_params.rb | 35 +- .../params/v2/core/account_list_params.rb | 5 +- .../params/v2/core/account_update_params.rb | 35 +- .../params/v2/core/event_list_params.rb | 25 +- .../core/vault/gb_bank_account_list_params.rb | 19 + ...nk_account_confirm_microdeposits_params.rb | 22 + .../core/vault/us_bank_account_list_params.rb | 22 + ..._bank_account_send_microdeposits_params.rb | 12 + .../financial_account_update_params.rb | 20 + ...nagement_recipient_verifications_params.rb | 1 + lib/stripe/resources.rb | 1 + .../delegated_checkout/requested_session.rb | 220 ++- lib/stripe/resources/v2/billing/cadence.rb | 4 +- .../v2/billing/collection_setting.rb | 4 +- .../v2/billing/collection_setting_version.rb | 4 +- .../pricing_plan_subscription_components.rb | 49 + lib/stripe/resources/v2/core/account.rb | 59 +- .../v2/core/vault/us_bank_account.rb | 36 +- lib/stripe/services.rb | 1 + .../pricing_plan_subscription_service.rb | 8 + .../component_service.rb | 23 + .../services/v2/core/account_service.rb | 2 +- .../v2/core/vault/gb_bank_account_service.rb | 11 + .../v2/core/vault/us_bank_account_service.rb | 33 + .../financial_account_service.rb | 11 + .../outbound_payment_service.rb | 2 +- rbi/stripe.rbi | 1407 ++++++++++++++++- .../requested_session_create_params.rbi | 366 ++++- .../requested_session_update_params.rbi | 317 +++- .../collection_setting_create_params.rbi | 4 +- .../collection_setting_update_params.rbi | 4 +- .../component_retrieve_params.rbi | 13 + .../params/v2/core/account_create_params.rbi | 57 +- .../params/v2/core/account_list_params.rbi | 9 +- .../params/v2/core/account_update_params.rbi | 57 +- .../params/v2/core/event_list_params.rbi | 43 +- .../vault/gb_bank_account_list_params.rbi | 21 + ...k_account_confirm_microdeposits_params.rbi | 30 + .../vault/us_bank_account_list_params.rbi | 26 + ...bank_account_send_microdeposits_params.rbi | 13 + .../financial_account_update_params.rbi | 28 + ...agement_recipient_verifications_params.rbi | 1 + .../delegated_checkout/requested_session.rbi | 236 ++- rbi/stripe/resources/v2/billing/cadence.rbi | 4 +- .../v2/billing/collection_setting.rbi | 4 +- .../v2/billing/collection_setting_version.rbi | 4 +- .../pricing_plan_subscription_components.rbi | 42 + rbi/stripe/resources/v2/core/account.rbi | 62 +- .../v2/core/vault/us_bank_account.rbi | 36 + .../pricing_plan_subscription_service.rbi | 1 + .../component_service.rbi | 19 + .../services/v2/core/account_service.rbi | 2 +- .../v2/core/vault/gb_bank_account_service.rbi | 6 + .../v2/core/vault/us_bank_account_service.rbi | 18 + .../financial_account_service.rbi | 6 + .../outbound_payment_service.rbi | 2 +- test/stripe/generated_examples_test.rb | 95 +- 67 files changed, 3968 insertions(+), 107 deletions(-) create mode 100644 lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb create mode 100644 lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb create mode 100644 lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb create mode 100644 lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb create mode 100644 lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb create mode 100644 lib/stripe/params/v2/money_management/financial_account_update_params.rb create mode 100644 lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb create mode 100644 lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb create mode 100644 rbi/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rbi create mode 100644 rbi/stripe/params/v2/core/vault/gb_bank_account_list_params.rbi create mode 100644 rbi/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rbi create mode 100644 rbi/stripe/params/v2/core/vault/us_bank_account_list_params.rbi create mode 100644 rbi/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rbi create mode 100644 rbi/stripe/params/v2/money_management/financial_account_update_params.rbi create mode 100644 rbi/stripe/resources/v2/billing/pricing_plan_subscription_components.rbi create mode 100644 rbi/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rbi diff --git a/API_VERSION b/API_VERSION index 5864f9439..7fa3a2d3c 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -563ac1cd28e814b537e2f46a58f9d90cf654aa2c \ No newline at end of file +577fcb57736b925392ea563c0284df9002c75ac9 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 0c0cf0dff..8a7edbe68 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2090 \ No newline at end of file +v2100 \ No newline at end of file diff --git a/lib/stripe/events/v2_money_management_transaction_created_event.rb b/lib/stripe/events/v2_money_management_transaction_created_event.rb index bd9b8804d..b8209089a 100644 --- a/lib/stripe/events/v2_money_management_transaction_created_event.rb +++ b/lib/stripe/events/v2_money_management_transaction_created_event.rb @@ -9,6 +9,24 @@ def self.lookup_type "v2.money_management.transaction.created" end + class V2MoneyManagementTransactionCreatedEventData < ::Stripe::StripeObject + # Id of the v1 Transaction corresponding to this Transaction. + attr_reader :v1_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + def self.inner_class_types + @inner_class_types = { data: V2MoneyManagementTransactionCreatedEventData } + end + attr_reader :data, :related_object + # Retrieves the related object from the API. Makes an API request on every call. def fetch_related_object _request( @@ -18,7 +36,6 @@ def fetch_related_object opts: { stripe_context: context } ) end - attr_reader :related_object end # Occurs when a Transaction is created. diff --git a/lib/stripe/object_types.rb b/lib/stripe/object_types.rb index 27946d9c4..13fb0901a 100644 --- a/lib/stripe/object_types.rb +++ b/lib/stripe/object_types.rb @@ -209,6 +209,8 @@ def self.v2_object_names_to_classes V2::Billing::PricingPlan.object_name => V2::Billing::PricingPlan, V2::Billing::PricingPlanComponent.object_name => V2::Billing::PricingPlanComponent, V2::Billing::PricingPlanSubscription.object_name => V2::Billing::PricingPlanSubscription, + V2::Billing::PricingPlanSubscriptionComponents.object_name => + V2::Billing::PricingPlanSubscriptionComponents, V2::Billing::PricingPlanVersion.object_name => V2::Billing::PricingPlanVersion, V2::Billing::Profile.object_name => V2::Billing::Profile, V2::Billing::RateCard.object_name => V2::Billing::RateCard, diff --git a/lib/stripe/params.rb b/lib/stripe/params.rb index dbfddab6d..687b2a3e4 100644 --- a/lib/stripe/params.rb +++ b/lib/stripe/params.rb @@ -713,6 +713,7 @@ require "stripe/params/v2/billing/pricing_plan_subscription_list_params" require "stripe/params/v2/billing/pricing_plan_subscription_retrieve_params" require "stripe/params/v2/billing/pricing_plan_subscription_update_params" +require "stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params" require "stripe/params/v2/billing/pricing_plan_update_params" require "stripe/params/v2/billing/pricing_plans/component_create_params" require "stripe/params/v2/billing/pricing_plans/component_delete_params" @@ -770,10 +771,14 @@ require "stripe/params/v2/core/vault/gb_bank_account_archive_params" require "stripe/params/v2/core/vault/gb_bank_account_create_params" require "stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params" +require "stripe/params/v2/core/vault/gb_bank_account_list_params" require "stripe/params/v2/core/vault/gb_bank_account_retrieve_params" require "stripe/params/v2/core/vault/us_bank_account_archive_params" +require "stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params" require "stripe/params/v2/core/vault/us_bank_account_create_params" +require "stripe/params/v2/core/vault/us_bank_account_list_params" require "stripe/params/v2/core/vault/us_bank_account_retrieve_params" +require "stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params" require "stripe/params/v2/core/vault/us_bank_account_update_params" require "stripe/params/v2/money_management/adjustment_list_params" require "stripe/params/v2/money_management/adjustment_retrieve_params" @@ -781,6 +786,7 @@ require "stripe/params/v2/money_management/financial_account_create_params" require "stripe/params/v2/money_management/financial_account_list_params" require "stripe/params/v2/money_management/financial_account_retrieve_params" +require "stripe/params/v2/money_management/financial_account_update_params" require "stripe/params/v2/money_management/financial_address_create_params" require "stripe/params/v2/money_management/financial_address_list_params" require "stripe/params/v2/money_management/financial_address_retrieve_params" 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 7408c466f..215b250ce 100644 --- a/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +++ b/lib/stripe/params/delegated_checkout/requested_session_create_params.rb @@ -4,11 +4,240 @@ module Stripe module DelegatedCheckout class RequestedSessionCreateParams < ::Stripe::RequestParams + class FulfillmentDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1, such as the street, PO Box, or company name. + attr_accessor :line1 + # Address line 2, such as the apartment, suite, unit, or building. + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # State, county, province, or region. + attr_accessor :state + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @state = state + end + end + # Attribute for param field address + attr_accessor :address + # The customer's email address. + attr_accessor :email + # The customer's name. + attr_accessor :name + # The customer's phone number. + attr_accessor :phone + + def initialize(address: nil, email: nil, name: nil, phone: nil) + @address = address + @email = email + @name = name + @phone = phone + end + end + + class LineItemDetail < ::Stripe::RequestParams + # The quantity of the line item. + attr_accessor :quantity + # The SKU ID of the line item. + attr_accessor :sku_id + + def initialize(quantity: nil, sku_id: nil) + @quantity = quantity + @sku_id = sku_id + end + end + + class PaymentMethodData < ::Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1, such as the street, PO Box, or company name. + attr_accessor :line1 + # Address line 2, such as the apartment, suite, unit, or building. + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # State, county, province, or region. + attr_accessor :state + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @state = state + end + end + # The address for the billing details. + attr_accessor :address + # The email for the billing details. + attr_accessor :email + # The name for the billing details. + attr_accessor :name + # The phone for the billing details. + attr_accessor :phone + + def initialize(address: nil, email: nil, name: nil, phone: nil) + @address = address + @email = email + @name = name + @phone = phone + end + end + + class Card < ::Stripe::RequestParams + # The CVC of the card. + attr_accessor :cvc + # The expiration month of the card. + attr_accessor :exp_month + # The expiration year of the card. + attr_accessor :exp_year + # The number of the card. + attr_accessor :number + + def initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil) + @cvc = cvc + @exp_month = exp_month + @exp_year = exp_year + @number = number + end + end + # The billing details for the payment method data. + attr_accessor :billing_details + # The card for the payment method data. + attr_accessor :card + # The type of the payment method data. + attr_accessor :type + + def initialize(billing_details: nil, card: nil, type: nil) + @billing_details = billing_details + @card = card + @type = type + 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 + + def initialize(network_profile: nil) + @network_profile = network_profile + end + end + # The currency for this requested session. + attr_accessor :currency + # The customer for this requested session. + attr_accessor :customer # Specifies which fields in the response should be expanded. attr_accessor :expand + # The details of the fulfillment. + attr_accessor :fulfillment_details + # The details of the line items. + attr_accessor :line_item_details + # The metadata for this requested session. + attr_accessor :metadata + # The payment method for this requested session. + 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. + attr_accessor :setup_future_usage + # The shared metadata for this requested session. + attr_accessor :shared_metadata - def initialize(expand: nil) + def initialize( + currency: nil, + customer: nil, + expand: nil, + fulfillment_details: nil, + line_item_details: nil, + metadata: nil, + payment_method: nil, + payment_method_data: nil, + risk_details: nil, + seller_details: nil, + setup_future_usage: nil, + shared_metadata: nil + ) + @currency = currency + @customer = customer @expand = expand + @fulfillment_details = fulfillment_details + @line_item_details = line_item_details + @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 end end end diff --git a/lib/stripe/params/delegated_checkout/requested_session_update_params.rb b/lib/stripe/params/delegated_checkout/requested_session_update_params.rb index 9288f0ef2..a173175b3 100644 --- a/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +++ b/lib/stripe/params/delegated_checkout/requested_session_update_params.rb @@ -4,11 +4,205 @@ module Stripe module DelegatedCheckout class RequestedSessionUpdateParams < ::Stripe::RequestParams + class FulfillmentDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1, such as the street, PO Box, or company name. + attr_accessor :line1 + # Address line 2, such as the apartment, suite, unit, or building. + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # State, county, province, or region. + attr_accessor :state + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @state = state + end + end + + class SelectedFulfillmentOption < ::Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + # The shipping option identifer. + attr_accessor :shipping_option + + def initialize(shipping_option: nil) + @shipping_option = shipping_option + end + end + # The shipping fulfillment option. + attr_accessor :shipping + # The type of fulfillment option. + attr_accessor :type + + def initialize(shipping: nil, type: nil) + @shipping = shipping + @type = type + end + end + # Attribute for param field address + attr_accessor :address + # The customer's email address. + attr_accessor :email + # The customer's name. + attr_accessor :name + # The customer's phone number. + attr_accessor :phone + # The fulfillment option to select. + attr_accessor :selected_fulfillment_option + + def initialize( + address: nil, + email: nil, + name: nil, + phone: nil, + selected_fulfillment_option: nil + ) + @address = address + @email = email + @name = name + @phone = phone + @selected_fulfillment_option = selected_fulfillment_option + end + end + + class LineItemDetail < ::Stripe::RequestParams + # The key of the line item. + attr_accessor :key + # The quantity of the line item. + attr_accessor :quantity + + def initialize(key: nil, quantity: nil) + @key = key + @quantity = quantity + end + end + + class PaymentMethodData < ::Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1, such as the street, PO Box, or company name. + attr_accessor :line1 + # Address line 2, such as the apartment, suite, unit, or building. + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # State, county, province, or region. + attr_accessor :state + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @state = state + end + end + # The address for the billing details. + attr_accessor :address + # The email for the billing details. + attr_accessor :email + # The name for the billing details. + attr_accessor :name + # The phone for the billing details. + attr_accessor :phone + + def initialize(address: nil, email: nil, name: nil, phone: nil) + @address = address + @email = email + @name = name + @phone = phone + end + end + + class Card < ::Stripe::RequestParams + # The CVC of the card. + attr_accessor :cvc + # The expiration month of the card. + attr_accessor :exp_month + # The expiration year of the card. + attr_accessor :exp_year + # The number of the card. + attr_accessor :number + + def initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil) + @cvc = cvc + @exp_month = exp_month + @exp_year = exp_year + @number = number + end + end + # The billing details for the payment method data. + attr_accessor :billing_details + # The card for the payment method data. + attr_accessor :card + # The type of the payment method data. + attr_accessor :type + + def initialize(billing_details: nil, card: nil, type: nil) + @billing_details = billing_details + @card = card + @type = type + end + end # Specifies which fields in the response should be expanded. attr_accessor :expand + # The details of the fulfillment. + attr_accessor :fulfillment_details + # The details of the line items. + attr_accessor :line_item_details + # The metadata for this requested session. + attr_accessor :metadata + # The payment method for this requested session. + attr_accessor :payment_method + # The payment method data for this requested session. + attr_accessor :payment_method_data + # The shared metadata for this requested session. + attr_accessor :shared_metadata - def initialize(expand: nil) + def initialize( + expand: nil, + fulfillment_details: nil, + line_item_details: nil, + metadata: nil, + payment_method: nil, + payment_method_data: nil, + shared_metadata: nil + ) @expand = expand + @fulfillment_details = fulfillment_details + @line_item_details = line_item_details + @metadata = metadata + @payment_method = payment_method + @payment_method_data = payment_method_data + @shared_metadata = shared_metadata end end end diff --git a/lib/stripe/params/v2/billing/collection_setting_create_params.rb b/lib/stripe/params/v2/billing/collection_setting_create_params.rb index 5c8912a63..04ab5017b 100644 --- a/lib/stripe/params/v2/billing/collection_setting_create_params.rb +++ b/lib/stripe/params/v2/billing/collection_setting_create_params.rb @@ -9,7 +9,7 @@ class EmailDelivery < ::Stripe::RequestParams class PaymentDue < ::Stripe::RequestParams # If true an email for the invoice would be generated and sent out. attr_accessor :enabled - # If true the payment link to hosted invocie page would be included in email and PDF of the invoice. + # If true the payment link to hosted invoice page would be included in email and PDF of the invoice. attr_accessor :include_payment_link def initialize(enabled: nil, include_payment_link: nil) @@ -17,7 +17,7 @@ def initialize(enabled: nil, include_payment_link: nil) @include_payment_link = include_payment_link end end - # Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state. + # Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. attr_accessor :payment_due def initialize(payment_due: nil) diff --git a/lib/stripe/params/v2/billing/collection_setting_update_params.rb b/lib/stripe/params/v2/billing/collection_setting_update_params.rb index a3fed60c2..b86ee02b3 100644 --- a/lib/stripe/params/v2/billing/collection_setting_update_params.rb +++ b/lib/stripe/params/v2/billing/collection_setting_update_params.rb @@ -9,7 +9,7 @@ class EmailDelivery < ::Stripe::RequestParams class PaymentDue < ::Stripe::RequestParams # If true an email for the invoice would be generated and sent out. attr_accessor :enabled - # If true the payment link to hosted invocie page would be included in email and PDF of the invoice. + # If true the payment link to hosted invoice page would be included in email and PDF of the invoice. attr_accessor :include_payment_link def initialize(enabled: nil, include_payment_link: nil) @@ -17,7 +17,7 @@ def initialize(enabled: nil, include_payment_link: nil) @include_payment_link = include_payment_link end end - # Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state. + # Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. attr_accessor :payment_due def initialize(payment_due: nil) diff --git a/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb b/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb new file mode 100644 index 000000000..594c45b4e --- /dev/null +++ b/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb @@ -0,0 +1,12 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Billing + module PricingPlanSubscriptions + class ComponentRetrieveParams < ::Stripe::RequestParams; end + end + 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 574cf761d..0b7b74d41 100644 --- a/lib/stripe/params/v2/core/account_create_params.rb +++ b/lib/stripe/params/v2/core/account_create_params.rb @@ -1129,11 +1129,23 @@ def initialize(requested: nil) @requested = requested end end + + class Usd < ::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 - def initialize(gbp: nil) + def initialize(gbp: nil, usd: nil) @gbp = gbp + @usd = usd end end @@ -1380,6 +1392,21 @@ def initialize( end end + class RepresentativeDeclaration < ::Stripe::RequestParams + # The time marking when the representative attestation was made. 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 representative attestation was made. + attr_accessor :ip + # The user agent of the browser from which the representative 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 TermsOfService < ::Stripe::RequestParams class Account < ::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. @@ -1724,6 +1751,8 @@ def initialize(account: nil, card_creator: nil, storer: nil) attr_accessor :ownership_declaration # Attestation that all Persons with a specific Relationship value have been provided. attr_accessor :persons_provided + # This hash is used to attest that the representative is authorized to act as the representative of their legal entity. + attr_accessor :representative_declaration # Attestations of accepted terms of service agreements. attr_accessor :terms_of_service @@ -1731,11 +1760,13 @@ def initialize( directorship_declaration: nil, ownership_declaration: nil, persons_provided: nil, + representative_declaration: nil, terms_of_service: nil ) @directorship_declaration = directorship_declaration @ownership_declaration = ownership_declaration @persons_provided = persons_provided + @representative_declaration = representative_declaration @terms_of_service = terms_of_service end end @@ -2591,7 +2622,7 @@ def initialize( @surname = surname end end - # Attestations from the identity's key people, e.g. owners, executives, directors. + # Attestations from the identity's key people, e.g. owners, executives, directors, representatives. attr_accessor :attestations # Information about the company or business. attr_accessor :business_details diff --git a/lib/stripe/params/v2/core/account_list_params.rb b/lib/stripe/params/v2/core/account_list_params.rb index 035a8a318..569ad7674 100644 --- a/lib/stripe/params/v2/core/account_list_params.rb +++ b/lib/stripe/params/v2/core/account_list_params.rb @@ -7,11 +7,14 @@ module Core class AccountListParams < ::Stripe::RequestParams # Filter only accounts that have all of the configurations specified. If omitted, returns all accounts regardless of which configurations they have. attr_accessor :applied_configurations + # Filter by whether the account is closed. If omitted, returns only Accounts that are not closed. + attr_accessor :closed # The upper limit on the number of accounts returned by the List Account request. attr_accessor :limit - def initialize(applied_configurations: nil, limit: nil) + def initialize(applied_configurations: nil, closed: nil, limit: nil) @applied_configurations = applied_configurations + @closed = closed @limit = limit end end diff --git a/lib/stripe/params/v2/core/account_update_params.rb b/lib/stripe/params/v2/core/account_update_params.rb index 8e4465871..d7f224f55 100644 --- a/lib/stripe/params/v2/core/account_update_params.rb +++ b/lib/stripe/params/v2/core/account_update_params.rb @@ -1157,11 +1157,23 @@ def initialize(requested: nil) @requested = requested end end + + class Usd < ::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 - def initialize(gbp: nil) + def initialize(gbp: nil, usd: nil) @gbp = gbp + @usd = usd end end @@ -1411,6 +1423,21 @@ def initialize( end end + class RepresentativeDeclaration < ::Stripe::RequestParams + # The time marking when the representative attestation was made. 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 representative attestation was made. + attr_accessor :ip + # The user agent of the browser from which the representative 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 TermsOfService < ::Stripe::RequestParams class Account < ::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. @@ -1755,6 +1782,8 @@ def initialize(account: nil, card_creator: nil, storer: nil) attr_accessor :ownership_declaration # Attestation that all Persons with a specific Relationship value have been provided. attr_accessor :persons_provided + # This hash is used to attest that the representative is authorized to act as the representative of their legal entity. + attr_accessor :representative_declaration # Attestations of accepted terms of service agreements. attr_accessor :terms_of_service @@ -1762,11 +1791,13 @@ def initialize( directorship_declaration: nil, ownership_declaration: nil, persons_provided: nil, + representative_declaration: nil, terms_of_service: nil ) @directorship_declaration = directorship_declaration @ownership_declaration = ownership_declaration @persons_provided = persons_provided + @representative_declaration = representative_declaration @terms_of_service = terms_of_service end end @@ -2622,7 +2653,7 @@ def initialize( @surname = surname end end - # Attestations from the identity's key people, e.g. owners, executives, directors. + # Attestations from the identity's key people, e.g. owners, executives, directors, representatives. attr_accessor :attestations # Information about the company or business. attr_accessor :business_details diff --git a/lib/stripe/params/v2/core/event_list_params.rb b/lib/stripe/params/v2/core/event_list_params.rb index 3181b3e44..51289b329 100644 --- a/lib/stripe/params/v2/core/event_list_params.rb +++ b/lib/stripe/params/v2/core/event_list_params.rb @@ -5,16 +5,39 @@ module Stripe module V2 module Core class EventListParams < ::Stripe::RequestParams + # Filter for events created after the specified timestamp. + attr_accessor :gt + # Filter for events created at or after the specified timestamp. + attr_accessor :gte # The page size. attr_accessor :limit + # Filter for events created before the specified timestamp. + attr_accessor :lt + # Filter for events created at or before the specified timestamp. + attr_accessor :lte # Primary object ID used to retrieve related events. # # To avoid conflict with Ruby's ':object_id', this attribute has been renamed. If using a hash parameter map instead, please use the original name ':object_id' with NO trailing underscore as the provided param key. attr_accessor :object_id_ + # An array of up to 20 strings containing specific event names. + attr_accessor :types - def initialize(limit: nil, object_id_: nil) + def initialize( + gt: nil, + gte: nil, + limit: nil, + lt: nil, + lte: nil, + object_id_: nil, + types: nil + ) + @gt = gt + @gte = gte @limit = limit + @lt = lt + @lte = lte @object_id_ = object_id_ + @types = types end end end diff --git a/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb b/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb new file mode 100644 index 000000000..5cc0a20d8 --- /dev/null +++ b/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Core + module Vault + class GbBankAccountListParams < ::Stripe::RequestParams + # Optionally set the maximum number of results per page. Defaults to 10. + attr_accessor :limit + + def initialize(limit: nil) + @limit = limit + end + end + end + end + end +end diff --git a/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb b/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb new file mode 100644 index 000000000..ac3c8105e --- /dev/null +++ b/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Core + module Vault + class UsBankAccountConfirmMicrodepositsParams < ::Stripe::RequestParams + # Two amounts received through Send Microdeposits must match the input to Confirm Microdeposits to verify US Bank Account. + attr_accessor :amounts + # Descriptor code received through Send Microdeposits must match the input to Confirm Microdeposits to verify US Bank Account. + attr_accessor :descriptor_code + + def initialize(amounts: nil, descriptor_code: nil) + @amounts = amounts + @descriptor_code = descriptor_code + end + end + end + end + end +end diff --git a/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb b/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb new file mode 100644 index 000000000..d7e38e86e --- /dev/null +++ b/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Core + module Vault + class UsBankAccountListParams < ::Stripe::RequestParams + # Optionally set the maximum number of results per page. Defaults to 10. + attr_accessor :limit + # Optionally filter by verification status. Mutually exclusive with `unverified`, `verified`, `awaiting_verification`, and `verification_failed`. + attr_accessor :verification_status + + def initialize(limit: nil, verification_status: nil) + @limit = limit + @verification_status = verification_status + end + end + end + end + end +end diff --git a/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb b/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb new file mode 100644 index 000000000..f36cb44b8 --- /dev/null +++ b/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb @@ -0,0 +1,12 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Core + module Vault + class UsBankAccountSendMicrodepositsParams < ::Stripe::RequestParams; end + end + end + end +end diff --git a/lib/stripe/params/v2/money_management/financial_account_update_params.rb b/lib/stripe/params/v2/money_management/financial_account_update_params.rb new file mode 100644 index 000000000..b94043b76 --- /dev/null +++ b/lib/stripe/params/v2/money_management/financial_account_update_params.rb @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module MoneyManagement + class FinancialAccountUpdateParams < ::Stripe::RequestParams + # A descriptive name for the FinancialAccount, up to 50 characters long. This name will be used in the Stripe Dashboard and embedded components. + attr_accessor :display_name + # Metadata associated with the FinancialAccount. + attr_accessor :metadata + + def initialize(display_name: nil, metadata: nil) + @display_name = display_name + @metadata = metadata + end + end + end + end +end diff --git a/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb b/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb index 1e812a3aa..58ebfbcbe 100644 --- a/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +++ b/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb @@ -6,6 +6,7 @@ module V2 module TestHelpers class MoneyManagementRecipientVerificationsParams < ::Stripe::RequestParams # Expected match level of the RecipientVerification to be created: `match`, `close_match`, `no_match`, `unavailable`. + # For `close_match`, the simulated response appends "close_match" to the provided name in match_result_details.matched_name. attr_accessor :match_result # ID of the payout method. attr_accessor :payout_method diff --git a/lib/stripe/resources.rb b/lib/stripe/resources.rb index 3be86d437..62acdda1c 100644 --- a/lib/stripe/resources.rb +++ b/lib/stripe/resources.rb @@ -187,6 +187,7 @@ require "stripe/resources/v2/billing/pricing_plan" require "stripe/resources/v2/billing/pricing_plan_component" require "stripe/resources/v2/billing/pricing_plan_subscription" +require "stripe/resources/v2/billing/pricing_plan_subscription_components" require "stripe/resources/v2/billing/pricing_plan_version" require "stripe/resources/v2/billing/profile" require "stripe/resources/v2/billing/rate_card" diff --git a/lib/stripe/resources/delegated_checkout/requested_session.rb b/lib/stripe/resources/delegated_checkout/requested_session.rb index a2a63e386..4ba0ab1b4 100644 --- a/lib/stripe/resources/delegated_checkout/requested_session.rb +++ b/lib/stripe/resources/delegated_checkout/requested_session.rb @@ -14,6 +14,186 @@ def self.object_name end class FulfillmentDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # City, district, suburb, town, or village. + attr_reader :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_reader :country + # Address line 1, such as the street, PO Box, or company name. + attr_reader :line1 + # Address line 2, such as the apartment, suite, unit, or building. + attr_reader :line2 + # ZIP or postal code. + attr_reader :postal_code + # State, county, province, or region. + attr_reader :state + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class FulfillmentOption < ::Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class ShippingOption < ::Stripe::StripeObject + # The description of the shipping option. + attr_reader :description + # The display name of the shipping option. + attr_reader :display_name + # The earliest delivery time of the shipping option. + attr_reader :earliest_delivery_time + # The key of the shipping option. + attr_reader :key + # The latest delivery time of the shipping option. + attr_reader :latest_delivery_time + # The shipping amount of the shipping option. + attr_reader :shipping_amount + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # The shipping options. + attr_reader :shipping_options + + def self.inner_class_types + @inner_class_types = { shipping_options: ShippingOption } + end + + def self.field_remappings + @field_remappings = {} + end + end + # The shipping option. + attr_reader :shipping + # The type of the fulfillment option. + attr_reader :type + + def self.inner_class_types + @inner_class_types = { shipping: Shipping } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class SelectedFulfillmentOption < ::Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + # The shipping option. + attr_reader :shipping_option + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # The shipping option. + attr_reader :shipping + # The type of the selected fulfillment option. + attr_reader :type + + def self.inner_class_types + @inner_class_types = { shipping: Shipping } + end + + def self.field_remappings + @field_remappings = {} + end + end + # The fulfillment address. + attr_reader :address + # The email address for the fulfillment details. + attr_reader :email + # The fulfillment options. + attr_reader :fulfillment_options + # The name for the fulfillment details. + attr_reader :name + # The phone number for the fulfillment details. + attr_reader :phone + # The fulfillment option. + attr_reader :selected_fulfillment_option + + def self.inner_class_types + @inner_class_types = { + address: Address, + fulfillment_options: FulfillmentOption, + selected_fulfillment_option: SelectedFulfillmentOption, + } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class LineItemDetail < ::Stripe::StripeObject + # The description of the line item. + attr_reader :description + # The images of the line item. + attr_reader :images + # The key of the line item. + attr_reader :key + # The name of the line item. + attr_reader :name + # The quantity of the line item. + attr_reader :quantity + # The SKU ID of the line item. + attr_reader :sku_id + # The unit amount of the line item. + attr_reader :unit_amount + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class OrderDetails < ::Stripe::StripeObject + # The URL to the order status. + attr_reader :order_status_url + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class SellerDetails < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class TotalDetails < ::Stripe::StripeObject + # The amount discount of the total details. + attr_reader :amount_discount + # The amount fulfillment of the total details. + attr_reader :amount_fulfillment + # The amount tax of the total details. + attr_reader :amount_tax + def self.inner_class_types @inner_class_types = {} end @@ -22,18 +202,48 @@ def self.field_remappings @field_remappings = {} end end + # The subtotal amount of the requested session. + attr_reader :amount_subtotal + # The total amount of the requested session. + attr_reader :amount_total + # Time at which the object was created. Measured in seconds since the Unix epoch. + attr_reader :created_at # 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 # The customer for this requested session. attr_reader :customer - # Attribute for field fulfillment_details + # Time at which the requested session expires. Measured in seconds since the Unix epoch. + attr_reader :expires_at + # The details of the fulfillment. attr_reader :fulfillment_details # Unique identifier for the object. attr_reader :id + # The line items to be purchased. + attr_reader :line_item_details # 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 + # 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 # String representing the object's type. Objects of the same type share the same value. attr_reader :object + # The details of the order. + attr_reader :order_details + # The payment method used for the requested session. + attr_reader :payment_method + # Attribute for field seller_details + attr_reader :seller_details + # Whether or not the payment method should be saved for future use. + attr_reader :setup_future_usage + # The metadata shared with the seller. + attr_reader :shared_metadata + # The SPT used for payment. + attr_reader :shared_payment_issued_token + # The status of the requested session. + attr_reader :status + # Attribute for field total_details + attr_reader :total_details + # Time at which the object was last updated. Measured in seconds since the Unix epoch. + attr_reader :updated_at # Confirms a requested session def confirm(params = {}, opts = {}) @@ -96,7 +306,13 @@ def self.update(requested_session, params = {}, opts = {}) end def self.inner_class_types - @inner_class_types = { fulfillment_details: FulfillmentDetails } + @inner_class_types = { + fulfillment_details: FulfillmentDetails, + line_item_details: LineItemDetail, + order_details: OrderDetails, + seller_details: SellerDetails, + total_details: TotalDetails, + } end def self.field_remappings diff --git a/lib/stripe/resources/v2/billing/cadence.rb b/lib/stripe/resources/v2/billing/cadence.rb index 5cf7a7654..833ad0b49 100644 --- a/lib/stripe/resources/v2/billing/cadence.rb +++ b/lib/stripe/resources/v2/billing/cadence.rb @@ -359,7 +359,7 @@ class EmailDelivery < ::Stripe::StripeObject class PaymentDue < ::Stripe::StripeObject # If true an email for the invoice would be generated and sent out. attr_reader :enabled - # If true the payment link to hosted invocie page would be included in email and PDF of the invoice. + # If true the payment link to hosted invoice page would be included in email and PDF of the invoice. attr_reader :include_payment_link def self.inner_class_types @@ -370,7 +370,7 @@ def self.field_remappings @field_remappings = {} end end - # Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state. + # Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. attr_reader :payment_due def self.inner_class_types diff --git a/lib/stripe/resources/v2/billing/collection_setting.rb b/lib/stripe/resources/v2/billing/collection_setting.rb index e9b1280a4..6a7b57232 100644 --- a/lib/stripe/resources/v2/billing/collection_setting.rb +++ b/lib/stripe/resources/v2/billing/collection_setting.rb @@ -15,7 +15,7 @@ class EmailDelivery < ::Stripe::StripeObject class PaymentDue < ::Stripe::StripeObject # If true an email for the invoice would be generated and sent out. attr_reader :enabled - # If true the payment link to hosted invocie page would be included in email and PDF of the invoice. + # If true the payment link to hosted invoice page would be included in email and PDF of the invoice. attr_reader :include_payment_link def self.inner_class_types @@ -26,7 +26,7 @@ def self.field_remappings @field_remappings = {} end end - # Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state. + # Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. attr_reader :payment_due def self.inner_class_types diff --git a/lib/stripe/resources/v2/billing/collection_setting_version.rb b/lib/stripe/resources/v2/billing/collection_setting_version.rb index cee6dd8b7..0b69c08c2 100644 --- a/lib/stripe/resources/v2/billing/collection_setting_version.rb +++ b/lib/stripe/resources/v2/billing/collection_setting_version.rb @@ -14,7 +14,7 @@ class EmailDelivery < ::Stripe::StripeObject class PaymentDue < ::Stripe::StripeObject # If true an email for the invoice would be generated and sent out. attr_reader :enabled - # If true the payment link to hosted invocie page would be included in email and PDF of the invoice. + # If true the payment link to hosted invoice page would be included in email and PDF of the invoice. attr_reader :include_payment_link def self.inner_class_types @@ -25,7 +25,7 @@ def self.field_remappings @field_remappings = {} end end - # Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state. + # Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. attr_reader :payment_due def self.inner_class_types diff --git a/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb b/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb new file mode 100644 index 000000000..c9ebce1f7 --- /dev/null +++ b/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb @@ -0,0 +1,49 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Billing + # A set of component subscriptions for a Pricing Plan Subscription. + class PricingPlanSubscriptionComponents < APIResource + OBJECT_NAME = "v2.billing.pricing_plan_subscription_components" + def self.object_name + "v2.billing.pricing_plan_subscription_components" + end + + class Component < ::Stripe::StripeObject + # The Pricing Plan Component associated with this component subscription. + attr_reader :pricing_plan_component + # The type of subscription. + attr_reader :type + # The ID of the License Fee Subscription. + attr_reader :license_fee_subscription + # The ID of the Rate Card Subscription. + attr_reader :rate_card_subscription + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # The component subscriptions of the Pricing Plan Subscription. + attr_reader :components + # String representing the object's type. Objects of the same type share the same value of the object field. + attr_reader :object + # 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 + + def self.inner_class_types + @inner_class_types = { components: Component } + end + + def self.field_remappings + @field_remappings = {} + end + end + end + end +end diff --git a/lib/stripe/resources/v2/core/account.rb b/lib/stripe/resources/v2/core/account.rb index e280f3222..28b81df72 100644 --- a/lib/stripe/resources/v2/core/account.rb +++ b/lib/stripe/resources/v2/core/account.rb @@ -2560,11 +2560,44 @@ def self.field_remappings @field_remappings = {} end end + + class Usd < ::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 def self.inner_class_types - @inner_class_types = { gbp: Gbp } + @inner_class_types = { gbp: Gbp, usd: Usd } end def self.field_remappings @@ -2975,6 +3008,23 @@ def self.field_remappings end end + class RepresentativeDeclaration < ::Stripe::StripeObject + # The time marking when the representative attestation was made. 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 representative attestation was made. + attr_reader :ip + # The user agent of the browser from which the representative 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 TermsOfService < ::Stripe::StripeObject class Account < ::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. @@ -3420,6 +3470,8 @@ def self.field_remappings attr_reader :ownership_declaration # Attestation that all Persons with a specific Relationship value have been provided. attr_reader :persons_provided + # This hash is used to attest that the representative is authorized to act as the representative of their legal entity. + attr_reader :representative_declaration # Attestations of accepted terms of service agreements. attr_reader :terms_of_service @@ -3428,6 +3480,7 @@ def self.inner_class_types directorship_declaration: DirectorshipDeclaration, ownership_declaration: OwnershipDeclaration, persons_provided: PersonsProvided, + representative_declaration: RepresentativeDeclaration, terms_of_service: TermsOfService, } end @@ -4314,7 +4367,7 @@ def self.field_remappings @field_remappings = {} end end - # Attestations from the identity's key people, e.g. owners, executives, directors. + # Attestations from the identity's key people, e.g. owners, executives, directors, representatives. attr_reader :attestations # Information about the company or business. attr_reader :business_details @@ -4511,6 +4564,8 @@ def self.field_remappings end # Filter only accounts that have all of the configurations specified. If omitted, returns all accounts regardless of which configurations they have. attr_reader :applied_configurations + # A value indicating if the Account has been closed. + attr_reader :closed # An Account Configuration which allows the Account to take on a key persona across Stripe products. attr_reader :configuration # The default contact email address for the Account. Required when configuring the account as a merchant or recipient. diff --git a/lib/stripe/resources/v2/core/vault/us_bank_account.rb b/lib/stripe/resources/v2/core/vault/us_bank_account.rb index 30cfa3851..b8e7f6d45 100644 --- a/lib/stripe/resources/v2/core/vault/us_bank_account.rb +++ b/lib/stripe/resources/v2/core/vault/us_bank_account.rb @@ -12,6 +12,38 @@ def self.object_name "v2.core.vault.us_bank_account" end + class Verification < ::Stripe::StripeObject + class MicrodepositVerificationDetails < ::Stripe::StripeObject + # Time when microdeposits will expire and have to be re-sent. + attr_reader :expires + # Microdeposit type can be amounts or descriptor_type. + attr_reader :microdeposit_type + # Time when microdeposits were sent. + attr_reader :sent + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # The microdeposit verification details if the status is awaiting verification. + attr_reader :microdeposit_verification_details + # The bank account verification status. + attr_reader :status + + def self.inner_class_types + @inner_class_types = { + microdeposit_verification_details: MicrodepositVerificationDetails, + } + end + + def self.field_remappings + @field_remappings = {} + end + end # Whether this USBankAccount object was archived. attr_reader :archived # Closed Enum. The type of bank account (checking or savings). @@ -30,11 +62,13 @@ def self.object_name attr_reader :object # The ACH routing number of the bank account. attr_reader :routing_number + # The bank account verification details. + attr_reader :verification # 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 def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { verification: Verification } end def self.field_remappings diff --git a/lib/stripe/services.rb b/lib/stripe/services.rb index 70dbfe1fa..d41abf0e3 100644 --- a/lib/stripe/services.rb +++ b/lib/stripe/services.rb @@ -221,6 +221,7 @@ require "stripe/services/v2/billing/metered_item_service" require "stripe/services/v2/billing/pricing_plan_service" require "stripe/services/v2/billing/pricing_plan_subscription_service" +require "stripe/services/v2/billing/pricing_plan_subscriptions/component_service" require "stripe/services/v2/billing/pricing_plans/component_service" require "stripe/services/v2/billing/pricing_plans/version_service" require "stripe/services/v2/billing/profile_service" diff --git a/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb b/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb index 6ea6bfad8..b45edb761 100644 --- a/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +++ b/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb @@ -5,6 +5,14 @@ module Stripe module V2 module Billing class PricingPlanSubscriptionService < StripeService + attr_reader :components + + def initialize(requestor) + super + @components = Stripe::V2::Billing::PricingPlanSubscriptions::ComponentService + .new(@requestor) + end + # List all Pricing Plan Subscription objects. def list(params = {}, opts = {}) request( diff --git a/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb b/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb new file mode 100644 index 000000000..837338cea --- /dev/null +++ b/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb @@ -0,0 +1,23 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Billing + module PricingPlanSubscriptions + class ComponentService < StripeService + # Retrieve a Pricing Plan Subscription's components. + def retrieve(id, params = {}, opts = {}) + request( + method: :get, + path: format("/v2/billing/pricing_plan_subscriptions/%s/components", { id: CGI.escape(id) }), + params: params, + opts: opts, + base_address: :api + ) + end + end + end + end + end +end diff --git a/lib/stripe/services/v2/core/account_service.rb b/lib/stripe/services/v2/core/account_service.rb index 5805f1f2e..a2110bbbc 100644 --- a/lib/stripe/services/v2/core/account_service.rb +++ b/lib/stripe/services/v2/core/account_service.rb @@ -12,7 +12,7 @@ def initialize(requestor) @persons = Stripe::V2::Core::Accounts::PersonService.new(@requestor) end - # Removes access to the Account and its associated resources. + # Removes access to the Account and its associated resources. Closed Accounts can no longer be operated on, but limited information can still be retrieved through the API in order to be able to track their history. def close(id, params = {}, opts = {}) request( method: :post, diff --git a/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb b/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb index bc8a6190e..1c3e9440a 100644 --- a/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +++ b/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb @@ -57,6 +57,17 @@ def initiate_confirmation_of_payee(id, params = {}, opts = {}) ) end + # List objects that can be used as destinations for outbound money movement via OutboundPayment. + def list(params = {}, opts = {}) + request( + method: :get, + path: "/v2/core/vault/gb_bank_accounts", + params: params, + opts: opts, + base_address: :api + ) + end + # Retrieve a GB bank account. def retrieve(id, params = {}, opts = {}) request( diff --git a/lib/stripe/services/v2/core/vault/us_bank_account_service.rb b/lib/stripe/services/v2/core/vault/us_bank_account_service.rb index e6ea28f28..e61216a01 100644 --- a/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +++ b/lib/stripe/services/v2/core/vault/us_bank_account_service.rb @@ -21,6 +21,17 @@ def archive(id, params = {}, opts = {}) ) end + # Confirm microdeposits amounts or descriptor code that you have received from the Send Microdeposits request. Once you correctly confirm this, this US Bank Account will be verified and eligible to transfer funds with. + def confirm_microdeposits(id, params = {}, opts = {}) + request( + method: :post, + path: format("/v2/core/vault/us_bank_accounts/%s/confirm_microdeposits", { id: CGI.escape(id) }), + params: params, + opts: opts, + base_address: :api + ) + end + # Create a USBankAccount object. # # ** raises BlockedByStripeError @@ -36,6 +47,17 @@ def create(params = {}, opts = {}) ) end + # List USBankAccount objects. Optionally filter by verification status. + def list(params = {}, opts = {}) + request( + method: :get, + path: "/v2/core/vault/us_bank_accounts", + params: params, + opts: opts, + base_address: :api + ) + end + # Retrieve a USBankAccount object. def retrieve(id, params = {}, opts = {}) request( @@ -47,6 +69,17 @@ def retrieve(id, params = {}, opts = {}) ) end + # Send microdeposits in order to verify your US Bank Account so it is eligible to transfer funds. This will start the verification process and you must Confirm Microdeposits to successfully verify your US Bank Account. + def send_microdeposits(id, params = {}, opts = {}) + request( + method: :post, + path: format("/v2/core/vault/us_bank_accounts/%s/send_microdeposits", { id: CGI.escape(id) }), + params: params, + opts: opts, + base_address: :api + ) + end + # Update a USBankAccount object. This is limited to supplying a previously empty routing_number field. # # ** raises BlockedByStripeError diff --git a/lib/stripe/services/v2/money_management/financial_account_service.rb b/lib/stripe/services/v2/money_management/financial_account_service.rb index 761561a87..0be3bc722 100644 --- a/lib/stripe/services/v2/money_management/financial_account_service.rb +++ b/lib/stripe/services/v2/money_management/financial_account_service.rb @@ -53,6 +53,17 @@ def retrieve(id, params = {}, opts = {}) base_address: :api ) end + + # Updates an existing FinancialAccount. + def update(id, params = {}, opts = {}) + request( + method: :post, + path: format("/v2/money_management/financial_accounts/%s", { id: CGI.escape(id) }), + params: params, + opts: opts, + base_address: :api + ) + end end end end diff --git a/lib/stripe/services/v2/money_management/outbound_payment_service.rb b/lib/stripe/services/v2/money_management/outbound_payment_service.rb index 07bc874c7..a841f1060 100644 --- a/lib/stripe/services/v2/money_management/outbound_payment_service.rb +++ b/lib/stripe/services/v2/money_management/outbound_payment_service.rb @@ -22,9 +22,9 @@ def cancel(id, params = {}, opts = {}) # Creates an OutboundPayment. # # ** raises InsufficientFundsError + # ** raises FeatureNotEnabledError # ** raises QuotaExceededError # ** raises RecipientNotNotifiableError - # ** raises FeatureNotEnabledError def create(params = {}, opts = {}) request( method: :post, diff --git a/rbi/stripe.rbi b/rbi/stripe.rbi index a8a7ecfd2..77d15e20c 100644 --- a/rbi/stripe.rbi +++ b/rbi/stripe.rbi @@ -17433,6 +17433,159 @@ module Stripe # A requested session is a session that has been requested by a customer. class RequestedSession < APIResource class FulfillmentDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class FulfillmentOption < ::Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class ShippingOption < ::Stripe::StripeObject + # The description of the shipping option. + sig { returns(T.nilable(String)) } + def description; end + # The display name of the shipping option. + sig { returns(String) } + def display_name; end + # The earliest delivery time of the shipping option. + sig { returns(T.nilable(Integer)) } + def earliest_delivery_time; end + # The key of the shipping option. + sig { returns(String) } + def key; end + # The latest delivery time of the shipping option. + sig { returns(T.nilable(Integer)) } + def latest_delivery_time; end + # The shipping amount of the shipping option. + sig { returns(Integer) } + def shipping_amount; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The shipping options. + sig { returns(T.nilable(T::Array[ShippingOption])) } + def shipping_options; end + def self.inner_class_types + @inner_class_types = {shipping_options: ShippingOption} + end + def self.field_remappings + @field_remappings = {} + end + end + # The shipping option. + sig { returns(T.nilable(Shipping)) } + def shipping; end + # The type of the fulfillment option. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {shipping: Shipping} + end + def self.field_remappings + @field_remappings = {} + end + end + class SelectedFulfillmentOption < ::Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + # The shipping option. + sig { returns(T.nilable(String)) } + def shipping_option; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The shipping option. + sig { returns(T.nilable(Shipping)) } + def shipping; end + # The type of the selected fulfillment option. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {shipping: Shipping} + end + def self.field_remappings + @field_remappings = {} + end + end + # The fulfillment address. + sig { returns(T.nilable(Address)) } + def address; end + # The email address for the fulfillment details. + sig { returns(T.nilable(String)) } + def email; end + # The fulfillment options. + sig { returns(T.nilable(T::Array[FulfillmentOption])) } + def fulfillment_options; end + # The name for the fulfillment details. + sig { returns(T.nilable(String)) } + def name; end + # The phone number for the fulfillment details. + sig { returns(T.nilable(String)) } + def phone; end + # The fulfillment option. + sig { returns(T.nilable(SelectedFulfillmentOption)) } + def selected_fulfillment_option; end + def self.inner_class_types + @inner_class_types = { + address: Address, + fulfillment_options: FulfillmentOption, + selected_fulfillment_option: SelectedFulfillmentOption, + } + end + def self.field_remappings + @field_remappings = {} + end + end + class LineItemDetail < ::Stripe::StripeObject + # The description of the line item. + sig { returns(T.nilable(String)) } + def description; end + # The images of the line item. + sig { returns(T.nilable(T::Array[String])) } + def images; end + # The key of the line item. + sig { returns(String) } + def key; end + # The name of the line item. + sig { returns(String) } + def name; end + # The quantity of the line item. + sig { returns(Integer) } + def quantity; end + # The SKU ID of the line item. + sig { returns(String) } + def sku_id; end + # The unit amount of the line item. + sig { returns(Integer) } + def unit_amount; end def self.inner_class_types @inner_class_types = {} end @@ -17440,24 +17593,105 @@ module Stripe @field_remappings = {} end end + class OrderDetails < ::Stripe::StripeObject + # The URL to the order status. + sig { returns(T.nilable(String)) } + def order_status_url; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class SellerDetails < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class TotalDetails < ::Stripe::StripeObject + # The amount discount of the total details. + sig { returns(T.nilable(Integer)) } + def amount_discount; end + # The amount fulfillment of the total details. + sig { returns(T.nilable(Integer)) } + def amount_fulfillment; end + # The amount tax of the total details. + sig { returns(T.nilable(Integer)) } + def amount_tax; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The subtotal amount of the requested session. + sig { returns(Integer) } + def amount_subtotal; end + # The total amount of the requested session. + sig { returns(Integer) } + def amount_total; end + # Time at which the object was created. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def created_at; 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 # The customer for this requested session. sig { returns(T.nilable(String)) } def customer; end - # Attribute for field fulfillment_details + # Time at which the requested session expires. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def expires_at; end + # The details of the fulfillment. sig { returns(T.nilable(FulfillmentDetails)) } def fulfillment_details; end # Unique identifier for the object. sig { returns(String) } def id; end + # The line items to be purchased. + sig { returns(T::Array[LineItemDetail]) } + def line_item_details; 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 + # 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.nilable(T::Hash[String, String])) } + def metadata; end # String representing the object's type. Objects of the same type share the same value. sig { returns(String) } def object; end + # The details of the order. + sig { returns(T.nilable(OrderDetails)) } + def order_details; end + # The payment method used for the requested session. + sig { returns(T.nilable(String)) } + def payment_method; end + # Attribute for field seller_details + sig { returns(SellerDetails) } + def seller_details; end + # Whether or not the payment method should be saved for future use. + sig { returns(T.nilable(String)) } + def setup_future_usage; end + # The metadata shared with the seller. + sig { returns(T.nilable(T::Hash[String, String])) } + def shared_metadata; end + # The SPT used for payment. + sig { returns(T.nilable(String)) } + def shared_payment_issued_token; end + # The status of the requested session. + sig { returns(String) } + def status; end + # Attribute for field total_details + sig { returns(TotalDetails) } + def total_details; end + # Time at which the object was last updated. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def updated_at; end # Confirms a requested session sig { params(params: T.any(::Stripe::DelegatedCheckout::RequestedSessionConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::DelegatedCheckout::RequestedSession) @@ -58047,7 +58281,7 @@ module Stripe # If true an email for the invoice would be generated and sent out. sig { returns(T::Boolean) } def enabled; end - # If true the payment link to hosted invocie page would be included in email and PDF of the invoice. + # If true the payment link to hosted invoice page would be included in email and PDF of the invoice. sig { returns(T::Boolean) } def include_payment_link; end def self.inner_class_types @@ -58057,7 +58291,7 @@ module Stripe @field_remappings = {} end end - # Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state. + # Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. sig { returns(T.nilable(PaymentDue)) } def payment_due; end def self.inner_class_types @@ -58351,7 +58585,7 @@ module Stripe # If true an email for the invoice would be generated and sent out. sig { returns(T::Boolean) } def enabled; end - # If true the payment link to hosted invocie page would be included in email and PDF of the invoice. + # If true the payment link to hosted invoice page would be included in email and PDF of the invoice. sig { returns(T::Boolean) } def include_payment_link; end def self.inner_class_types @@ -58361,7 +58595,7 @@ module Stripe @field_remappings = {} end end - # Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state. + # Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. sig { returns(T.nilable(PaymentDue)) } def payment_due; end def self.inner_class_types @@ -58616,7 +58850,7 @@ module Stripe # If true an email for the invoice would be generated and sent out. sig { returns(T::Boolean) } def enabled; end - # If true the payment link to hosted invocie page would be included in email and PDF of the invoice. + # If true the payment link to hosted invoice page would be included in email and PDF of the invoice. sig { returns(T::Boolean) } def include_payment_link; end def self.inner_class_types @@ -58626,7 +58860,7 @@ module Stripe @field_remappings = {} end end - # Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state. + # Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. sig { returns(T.nilable(PaymentDue)) } def payment_due; end def self.inner_class_types @@ -59914,6 +60148,45 @@ module Stripe end end # typed: true +module Stripe + module V2 + module Billing + # A set of component subscriptions for a Pricing Plan Subscription. + class PricingPlanSubscriptionComponents < APIResource + class Component < ::Stripe::StripeObject + # The Pricing Plan Component associated with this component subscription. + sig { returns(String) } + def pricing_plan_component; end + # The type of subscription. + sig { returns(String) } + def type; end + # The ID of the License Fee Subscription. + sig { returns(T.nilable(String)) } + def license_fee_subscription; end + # The ID of the Rate Card Subscription. + sig { returns(T.nilable(String)) } + def rate_card_subscription; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The component subscriptions of the Pricing Plan Subscription. + sig { returns(T::Array[Component]) } + def components; end + # String representing the object's type. Objects of the same type share the same value of the object field. + sig { returns(String) } + def object; 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 + end + end + end +end +# typed: true module Stripe module V2 module Billing @@ -63374,11 +63647,45 @@ module Stripe @field_remappings = {} end end + class Usd < ::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 def self.inner_class_types - @inner_class_types = {gbp: Gbp} + @inner_class_types = {gbp: Gbp, usd: Usd} end def self.field_remappings @field_remappings = {} @@ -63795,6 +64102,23 @@ module Stripe @field_remappings = {} end end + class RepresentativeDeclaration < ::Stripe::StripeObject + # The time marking when the representative attestation was made. 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 representative attestation was made. + sig { returns(T.nilable(String)) } + def ip; end + # The user agent of the browser from which the representative 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 TermsOfService < ::Stripe::StripeObject class Account < ::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. @@ -64262,6 +64586,9 @@ module Stripe # Attestation that all Persons with a specific Relationship value have been provided. sig { returns(T.nilable(PersonsProvided)) } def persons_provided; 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 # Attestations of accepted terms of service agreements. sig { returns(T.nilable(TermsOfService)) } def terms_of_service; end @@ -64270,6 +64597,7 @@ module Stripe directorship_declaration: DirectorshipDeclaration, ownership_declaration: OwnershipDeclaration, persons_provided: PersonsProvided, + representative_declaration: RepresentativeDeclaration, terms_of_service: TermsOfService, } end @@ -65203,7 +65531,7 @@ module Stripe @field_remappings = {} end end - # Attestations from the identity's key people, e.g. owners, executives, directors. + # Attestations from the identity's key people, e.g. owners, executives, directors, representatives. sig { returns(T.nilable(Attestations)) } def attestations; end # Information about the company or business. @@ -65401,6 +65729,9 @@ module Stripe # Filter only accounts that have all of the configurations specified. If omitted, returns all accounts regardless of which configurations they have. sig { returns(T::Array[String]) } def applied_configurations; end + # A value indicating if the Account has been closed. + sig { returns(T.nilable(T::Boolean)) } + def closed; end # An Account Configuration which allows the Account to take on a key persona across Stripe products. sig { returns(T.nilable(Configuration)) } def configuration; end @@ -66332,6 +66663,39 @@ module Stripe module Vault # Use the USBankAccounts API to create and manage US bank accounts objects that you can use to receive funds. Note that these are not interchangeable with v1 Tokens. class UsBankAccount < APIResource + class Verification < ::Stripe::StripeObject + class MicrodepositVerificationDetails < ::Stripe::StripeObject + # Time when microdeposits will expire and have to be re-sent. + sig { returns(String) } + def expires; end + # Microdeposit type can be amounts or descriptor_type. + sig { returns(String) } + def microdeposit_type; end + # Time when microdeposits were sent. + sig { returns(String) } + def sent; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The microdeposit verification details if the status is awaiting verification. + sig { returns(T.nilable(MicrodepositVerificationDetails)) } + def microdeposit_verification_details; end + # The bank account verification status. + sig { returns(String) } + def status; end + def self.inner_class_types + @inner_class_types = { + microdeposit_verification_details: MicrodepositVerificationDetails, + } + end + def self.field_remappings + @field_remappings = {} + end + end # Whether this USBankAccount object was archived. sig { returns(T::Boolean) } def archived; end @@ -66359,6 +66723,9 @@ module Stripe # The ACH routing number of the bank account. sig { returns(T.nilable(String)) } def routing_number; end + # The bank account verification details. + sig { returns(Verification) } + def verification; 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 @@ -74478,6 +74845,7 @@ module Stripe module V2 module Billing class PricingPlanSubscriptionService < StripeService + attr_reader :components # List all Pricing Plan Subscription objects. sig { params(params: T.any(::Stripe::V2::Billing::PricingPlanSubscriptionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject) @@ -74500,6 +74868,22 @@ module Stripe end end # typed: true +module Stripe + module V2 + module Billing + module PricingPlanSubscriptions + class ComponentService < StripeService + # Retrieve a Pricing Plan Subscription's components. + sig { + params(id: String, params: T.any(::Stripe::V2::Billing::PricingPlanSubscriptions::ComponentRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Billing::PricingPlanSubscriptionComponents) + } + def retrieve(id, params = {}, opts = {}); end + end + end + end + end +end +# typed: true module Stripe module V2 module Billing @@ -74705,7 +75089,7 @@ module Stripe module Core class AccountService < StripeService attr_reader :persons - # Removes access to the Account and its associated resources. + # Removes access to the Account and its associated resources. Closed Accounts can no longer be operated on, but limited information can still be retrieved through the API in order to be able to track their history. sig { params(id: String, params: T.any(::Stripe::V2::Core::AccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account) } @@ -74943,6 +75327,12 @@ module Stripe } def initiate_confirmation_of_payee(id, params = {}, opts = {}); end + # List objects that can be used as destinations for outbound money movement via OutboundPayment. + sig { + params(params: T.any(::Stripe::V2::Core::Vault::GbBankAccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject) + } + def list(params = {}, opts = {}); end + # Retrieve a GB bank account. sig { params(id: String, params: T.any(::Stripe::V2::Core::Vault::GbBankAccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Vault::GbBankAccount) @@ -74969,6 +75359,12 @@ module Stripe } def archive(id, params = {}, opts = {}); end + # Confirm microdeposits amounts or descriptor code that you have received from the Send Microdeposits request. Once you correctly confirm this, this US Bank Account will be verified and eligible to transfer funds with. + sig { + params(id: String, params: T.any(::Stripe::V2::Core::Vault::UsBankAccountConfirmMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Vault::UsBankAccount) + } + def confirm_microdeposits(id, params = {}, opts = {}); end + # Create a USBankAccount object. # # ** raises BlockedByStripeError @@ -74979,12 +75375,24 @@ module Stripe } def create(params = {}, opts = {}); end + # List USBankAccount objects. Optionally filter by verification status. + sig { + params(params: T.any(::Stripe::V2::Core::Vault::UsBankAccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject) + } + def list(params = {}, opts = {}); end + # Retrieve a USBankAccount object. sig { params(id: String, params: T.any(::Stripe::V2::Core::Vault::UsBankAccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Vault::UsBankAccount) } def retrieve(id, params = {}, opts = {}); end + # Send microdeposits in order to verify your US Bank Account so it is eligible to transfer funds. This will start the verification process and you must Confirm Microdeposits to successfully verify your US Bank Account. + sig { + params(id: String, params: T.any(::Stripe::V2::Core::Vault::UsBankAccountSendMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Vault::UsBankAccount) + } + def send_microdeposits(id, params = {}, opts = {}); end + # Update a USBankAccount object. This is limited to supplying a previously empty routing_number field. # # ** raises BlockedByStripeError @@ -75074,6 +75482,12 @@ module Stripe params(id: String, params: T.any(::Stripe::V2::MoneyManagement::FinancialAccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::MoneyManagement::FinancialAccount) } def retrieve(id, params = {}, opts = {}); end + + # Updates an existing FinancialAccount. + sig { + params(id: String, params: T.any(::Stripe::V2::MoneyManagement::FinancialAccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::MoneyManagement::FinancialAccount) + } + def update(id, params = {}, opts = {}); end end end end @@ -75152,9 +75566,9 @@ module Stripe # Creates an OutboundPayment. # # ** raises InsufficientFundsError + # ** raises FeatureNotEnabledError # ** raises QuotaExceededError # ** raises RecipientNotNotifiableError - # ** raises FeatureNotEnabledError sig { params(params: T.any(::Stripe::V2::MoneyManagement::OutboundPaymentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::MoneyManagement::OutboundPayment) } @@ -97927,13 +98341,326 @@ end module Stripe module DelegatedCheckout class RequestedSessionUpdateParams < ::Stripe::RequestParams + class FulfillmentDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(String) } + def city; end + sig { params(_city: String).returns(String) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(String) } + def country; end + sig { params(_country: String).returns(String) } + def country=(_country); end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(String) } + def line1; end + sig { params(_line1: String).returns(String) } + def line1=(_line1); end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(String) } + def postal_code; end + sig { params(_postal_code: String).returns(String) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(String) } + def state; end + sig { params(_state: String).returns(String) } + def state=(_state); end + sig { + params(city: String, country: String, line1: String, line2: T.nilable(String), postal_code: String, state: String).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ); end + end + class SelectedFulfillmentOption < ::Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + # The shipping option identifer. + sig { returns(String) } + def shipping_option; end + sig { params(_shipping_option: String).returns(String) } + def shipping_option=(_shipping_option); end + sig { params(shipping_option: String).void } + def initialize(shipping_option: nil); end + end + # The shipping fulfillment option. + sig { + returns(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::SelectedFulfillmentOption::Shipping) + } + def shipping; end + sig { + params(_shipping: DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::SelectedFulfillmentOption::Shipping).returns(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::SelectedFulfillmentOption::Shipping) + } + def shipping=(_shipping); end + # The type of fulfillment option. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(shipping: DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::SelectedFulfillmentOption::Shipping, type: String).void + } + def initialize(shipping: nil, type: nil); end + end + # Attribute for param field address + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::Address)) + } + def address; end + sig { + params(_address: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::Address)).returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::Address)) + } + def address=(_address); end + # The customer's email address. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The customer's name. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The customer's phone number. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + # The fulfillment option to select. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::SelectedFulfillmentOption)) + } + def selected_fulfillment_option; end + sig { + params(_selected_fulfillment_option: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::SelectedFulfillmentOption)).returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::SelectedFulfillmentOption)) + } + def selected_fulfillment_option=(_selected_fulfillment_option); end + sig { + params(address: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), selected_fulfillment_option: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::SelectedFulfillmentOption)).void + } + def initialize( + address: nil, + email: nil, + name: nil, + phone: nil, + selected_fulfillment_option: nil + ); end + end + class LineItemDetail < ::Stripe::RequestParams + # The key of the line item. + sig { returns(String) } + def key; end + sig { params(_key: String).returns(String) } + def key=(_key); end + # The quantity of the line item. + sig { returns(T.nilable(Integer)) } + def quantity; end + sig { params(_quantity: T.nilable(Integer)).returns(T.nilable(Integer)) } + def quantity=(_quantity); end + sig { params(key: String, quantity: T.nilable(Integer)).void } + def initialize(key: nil, quantity: nil); end + end + class PaymentMethodData < ::Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(String) } + def city; end + sig { params(_city: String).returns(String) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(String) } + def country; end + sig { params(_country: String).returns(String) } + def country=(_country); end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(String) } + def line1; end + sig { params(_line1: String).returns(String) } + def line1=(_line1); end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(String) } + def postal_code; end + sig { params(_postal_code: String).returns(String) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(String) } + def state; end + sig { params(_state: String).returns(String) } + def state=(_state); end + sig { + params(city: String, country: String, line1: String, line2: T.nilable(String), postal_code: String, state: String).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ); end + end + # The address for the billing details. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::BillingDetails::Address)) + } + def address; end + sig { + params(_address: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::BillingDetails::Address)).returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::BillingDetails::Address)) + } + def address=(_address); end + # The email for the billing details. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The name for the billing details. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The phone for the billing details. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(address: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(address: nil, email: nil, name: nil, phone: nil); end + end + class Card < ::Stripe::RequestParams + # The CVC of the card. + sig { returns(T.nilable(String)) } + def cvc; end + sig { params(_cvc: T.nilable(String)).returns(T.nilable(String)) } + def cvc=(_cvc); end + # The expiration month of the card. + sig { returns(Integer) } + def exp_month; end + sig { params(_exp_month: Integer).returns(Integer) } + def exp_month=(_exp_month); end + # The expiration year of the card. + sig { returns(Integer) } + def exp_year; end + sig { params(_exp_year: Integer).returns(Integer) } + def exp_year=(_exp_year); end + # The number of the card. + sig { returns(String) } + def number; end + sig { params(_number: String).returns(String) } + def number=(_number); end + sig { + params(cvc: T.nilable(String), exp_month: Integer, exp_year: Integer, number: String).void + } + def initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil); end + end + # The billing details for the payment method data. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::BillingDetails)) + } + def billing_details; end + sig { + params(_billing_details: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::BillingDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::BillingDetails)) + } + def billing_details=(_billing_details); end + # The card for the payment method data. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::Card)) + } + def card; end + sig { + params(_card: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::Card)).returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::Card)) + } + def card=(_card); end + # The type of the payment method data. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { + params(billing_details: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::BillingDetails), card: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::Card), type: T.nilable(String)).void + } + def initialize(billing_details: nil, card: nil, type: nil); end + 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 - sig { params(expand: T.nilable(T::Array[String])).void } - def initialize(expand: nil); end + # The details of the fulfillment. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails)) + } + def fulfillment_details; end + sig { + params(_fulfillment_details: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails)) + } + def fulfillment_details=(_fulfillment_details); end + # The details of the line items. + sig { + returns(T.nilable(T::Array[DelegatedCheckout::RequestedSessionUpdateParams::LineItemDetail])) + } + def line_item_details; end + sig { + params(_line_item_details: T.nilable(T::Array[DelegatedCheckout::RequestedSessionUpdateParams::LineItemDetail])).returns(T.nilable(T::Array[DelegatedCheckout::RequestedSessionUpdateParams::LineItemDetail])) + } + def line_item_details=(_line_item_details); end + # The metadata for this requested session. + sig { returns(T.nilable(T::Hash[String, String])) } + def metadata; end + sig { + params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) + } + def metadata=(_metadata); end + # The payment method for this requested session. + sig { returns(T.nilable(String)) } + def payment_method; end + sig { params(_payment_method: T.nilable(String)).returns(T.nilable(String)) } + def payment_method=(_payment_method); end + # The payment method data for this requested session. + sig { returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData)) } + def payment_method_data; end + sig { + params(_payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData)).returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData)) + } + def payment_method_data=(_payment_method_data); end + # The shared metadata for this requested session. + sig { returns(T.nilable(T::Hash[String, String])) } + def shared_metadata; end + sig { + params(_shared_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) + } + def shared_metadata=(_shared_metadata); end + sig { + params(expand: T.nilable(T::Array[String]), fulfillment_details: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails), line_item_details: T.nilable(T::Array[DelegatedCheckout::RequestedSessionUpdateParams::LineItemDetail]), metadata: T.nilable(T::Hash[String, String]), payment_method: T.nilable(String), payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData), shared_metadata: T.nilable(T::Hash[String, String])).void + } + def initialize( + expand: nil, + fulfillment_details: nil, + line_item_details: nil, + metadata: nil, + payment_method: nil, + payment_method_data: nil, + shared_metadata: nil + ); end end end end @@ -97941,13 +98668,375 @@ end module Stripe module DelegatedCheckout class RequestedSessionCreateParams < ::Stripe::RequestParams + class FulfillmentDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(String) } + def city; end + sig { params(_city: String).returns(String) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(String) } + def country; end + sig { params(_country: String).returns(String) } + def country=(_country); end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(String) } + def line1; end + sig { params(_line1: String).returns(String) } + def line1=(_line1); end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(String) } + def postal_code; end + sig { params(_postal_code: String).returns(String) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(String) } + def state; end + sig { params(_state: String).returns(String) } + def state=(_state); end + sig { + params(city: String, country: String, line1: String, line2: T.nilable(String), postal_code: String, state: String).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ); end + end + # Attribute for param field address + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails::Address)) + } + def address; end + sig { + params(_address: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails::Address)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails::Address)) + } + def address=(_address); end + # The customer's email address. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The customer's name. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The customer's phone number. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(address: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(address: nil, email: nil, name: nil, phone: nil); end + end + class LineItemDetail < ::Stripe::RequestParams + # The quantity of the line item. + sig { returns(Integer) } + def quantity; end + sig { params(_quantity: Integer).returns(Integer) } + def quantity=(_quantity); end + # The SKU ID of the line item. + sig { returns(String) } + def sku_id; end + sig { params(_sku_id: String).returns(String) } + def sku_id=(_sku_id); end + sig { params(quantity: Integer, sku_id: String).void } + def initialize(quantity: nil, sku_id: nil); end + end + class PaymentMethodData < ::Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(String) } + def city; end + sig { params(_city: String).returns(String) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(String) } + def country; end + sig { params(_country: String).returns(String) } + def country=(_country); end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(String) } + def line1; end + sig { params(_line1: String).returns(String) } + def line1=(_line1); end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(String) } + def postal_code; end + sig { params(_postal_code: String).returns(String) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(String) } + def state; end + sig { params(_state: String).returns(String) } + def state=(_state); end + sig { + params(city: String, country: String, line1: String, line2: T.nilable(String), postal_code: String, state: String).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ); end + end + # The address for the billing details. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::BillingDetails::Address)) + } + def address; end + sig { + params(_address: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::BillingDetails::Address)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::BillingDetails::Address)) + } + def address=(_address); end + # The email for the billing details. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The name for the billing details. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The phone for the billing details. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(address: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(address: nil, email: nil, name: nil, phone: nil); end + end + class Card < ::Stripe::RequestParams + # The CVC of the card. + sig { returns(T.nilable(String)) } + def cvc; end + sig { params(_cvc: T.nilable(String)).returns(T.nilable(String)) } + def cvc=(_cvc); end + # The expiration month of the card. + sig { returns(Integer) } + def exp_month; end + sig { params(_exp_month: Integer).returns(Integer) } + def exp_month=(_exp_month); end + # The expiration year of the card. + sig { returns(Integer) } + def exp_year; end + sig { params(_exp_year: Integer).returns(Integer) } + def exp_year=(_exp_year); end + # The number of the card. + sig { returns(String) } + def number; end + sig { params(_number: String).returns(String) } + def number=(_number); end + sig { + params(cvc: T.nilable(String), exp_month: Integer, exp_year: Integer, number: String).void + } + def initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil); end + end + # The billing details for the payment method data. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::BillingDetails)) + } + def billing_details; end + sig { + params(_billing_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::BillingDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::BillingDetails)) + } + def billing_details=(_billing_details); end + # The card for the payment method data. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::Card)) + } + def card; end + sig { + params(_card: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::Card)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::Card)) + } + def card=(_card); end + # The type of the payment method data. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { + params(billing_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::BillingDetails), card: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::Card), type: T.nilable(String)).void + } + 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) } + def network_profile; end + sig { params(_network_profile: String).returns(String) } + def network_profile=(_network_profile); end + sig { params(network_profile: String).void } + def initialize(network_profile: nil); end + end + # The currency for this requested session. + sig { returns(String) } + def currency; end + sig { params(_currency: String).returns(String) } + def currency=(_currency); end + # The customer for this requested session. + sig { returns(T.nilable(String)) } + def customer; end + sig { params(_customer: T.nilable(String)).returns(T.nilable(String)) } + def customer=(_customer); 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 - sig { params(expand: T.nilable(T::Array[String])).void } - def initialize(expand: nil); end + # The details of the fulfillment. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails)) + } + def fulfillment_details; end + sig { + params(_fulfillment_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails)) + } + def fulfillment_details=(_fulfillment_details); end + # The details of the line items. + sig { returns(T::Array[DelegatedCheckout::RequestedSessionCreateParams::LineItemDetail]) } + def line_item_details; end + sig { + params(_line_item_details: T::Array[DelegatedCheckout::RequestedSessionCreateParams::LineItemDetail]).returns(T::Array[DelegatedCheckout::RequestedSessionCreateParams::LineItemDetail]) + } + def line_item_details=(_line_item_details); end + # The metadata for this requested session. + sig { returns(T.nilable(T::Hash[String, String])) } + def metadata; end + sig { + params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) + } + def metadata=(_metadata); end + # The payment method for this requested session. + sig { returns(T.nilable(String)) } + def payment_method; end + sig { params(_payment_method: T.nilable(String)).returns(T.nilable(String)) } + def payment_method=(_payment_method); end + # The payment method data for this requested session. + sig { returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData)) } + def payment_method_data; end + sig { + 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 + sig { + params(_seller_details: DelegatedCheckout::RequestedSessionCreateParams::SellerDetails).returns(DelegatedCheckout::RequestedSessionCreateParams::SellerDetails) + } + def seller_details=(_seller_details); end + # The setup future usage for this requested session. + 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 + # The shared metadata for this requested session. + sig { returns(T.nilable(T::Hash[String, String])) } + def shared_metadata; end + sig { + params(_shared_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) + } + 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 + } + def initialize( + currency: nil, + customer: nil, + expand: nil, + fulfillment_details: nil, + line_item_details: nil, + metadata: nil, + payment_method: nil, + payment_method_data: nil, + risk_details: nil, + seller_details: nil, + setup_future_usage: nil, + shared_metadata: nil + ); end end end end @@ -190946,7 +192035,7 @@ module Stripe def enabled; end sig { params(_enabled: T::Boolean).returns(T::Boolean) } def enabled=(_enabled); end - # If true the payment link to hosted invocie page would be included in email and PDF of the invoice. + # If true the payment link to hosted invoice page would be included in email and PDF of the invoice. sig { returns(T::Boolean) } def include_payment_link; end sig { params(_include_payment_link: T::Boolean).returns(T::Boolean) } @@ -190954,7 +192043,7 @@ module Stripe sig { params(enabled: T::Boolean, include_payment_link: T::Boolean).void } def initialize(enabled: nil, include_payment_link: nil); end end - # Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state. + # Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. sig { returns(T.nilable(V2::Billing::CollectionSettingCreateParams::EmailDelivery::PaymentDue)) } @@ -191311,7 +192400,7 @@ module Stripe def enabled; end sig { params(_enabled: T::Boolean).returns(T::Boolean) } def enabled=(_enabled); end - # If true the payment link to hosted invocie page would be included in email and PDF of the invoice. + # If true the payment link to hosted invoice page would be included in email and PDF of the invoice. sig { returns(T::Boolean) } def include_payment_link; end sig { params(_include_payment_link: T::Boolean).returns(T::Boolean) } @@ -191319,7 +192408,7 @@ module Stripe sig { params(enabled: T::Boolean, include_payment_link: T::Boolean).void } def initialize(enabled: nil, include_payment_link: nil); end end - # Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state. + # Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. sig { returns(T.nilable(V2::Billing::CollectionSettingUpdateParams::EmailDelivery::PaymentDue)) } @@ -193732,6 +194821,16 @@ module Stripe end end # typed: true +module Stripe + module V2 + module Billing + module PricingPlanSubscriptions + class ComponentRetrieveParams < ::Stripe::RequestParams; end + end + end + end +end +# typed: true module Stripe module V2 module Billing @@ -194854,15 +195953,20 @@ module Stripe params(_applied_configurations: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def applied_configurations=(_applied_configurations); end + # Filter by whether the account is closed. If omitted, returns only Accounts that are not closed. + sig { returns(T.nilable(T::Boolean)) } + def closed; end + sig { params(_closed: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def closed=(_closed); end # The upper limit on the number of accounts returned by the List Account request. sig { returns(T.nilable(Integer)) } def limit; end sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } def limit=(_limit); end sig { - params(applied_configurations: T.nilable(T::Array[String]), limit: T.nilable(Integer)).void + params(applied_configurations: T.nilable(T::Array[String]), closed: T.nilable(T::Boolean), limit: T.nilable(Integer)).void } - def initialize(applied_configurations: nil, limit: nil); end + def initialize(applied_configurations: nil, closed: nil, limit: nil); end end end end @@ -196575,6 +197679,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end + class Usd < ::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)) @@ -196584,10 +197697,19 @@ module Stripe params(_gbp: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)) } def gbp=(_gbp); end + # Can hold storage-type funds on Stripe in USD. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)) + } + def usd; end sig { - params(gbp: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)).void + params(_usd: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)) } - def initialize(gbp: nil); end + def usd=(_usd); 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)).void + } + def initialize(gbp: nil, usd: nil); end end class InboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -196973,6 +198095,27 @@ module Stripe ownership_exemption_reason: nil ); end end + class RepresentativeDeclaration < ::Stripe::RequestParams + # The time marking when the representative attestation was made. 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 representative 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 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(String), ip: T.nilable(String), user_agent: T.nilable(String)).void + } + def initialize(date: nil, ip: nil, user_agent: nil); end + end class TermsOfService < ::Stripe::RequestParams class Account < ::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. @@ -197554,6 +198697,15 @@ module Stripe params(_persons_provided: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::PersonsProvided)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::PersonsProvided)) } def persons_provided=(_persons_provided); 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(V2::Core::AccountCreateParams::Identity::Attestations::RepresentativeDeclaration)) + } + def representative_declaration; end + sig { + params(_representative_declaration: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::RepresentativeDeclaration)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::RepresentativeDeclaration)) + } + def representative_declaration=(_representative_declaration); end # Attestations of accepted terms of service agreements. sig { returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService)) @@ -197564,12 +198716,13 @@ module Stripe } def terms_of_service=(_terms_of_service); end sig { - params(directorship_declaration: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::DirectorshipDeclaration), ownership_declaration: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::OwnershipDeclaration), persons_provided: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::PersonsProvided), terms_of_service: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService)).void + params(directorship_declaration: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::DirectorshipDeclaration), ownership_declaration: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::OwnershipDeclaration), persons_provided: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::PersonsProvided), representative_declaration: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::RepresentativeDeclaration), terms_of_service: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService)).void } def initialize( directorship_declaration: nil, ownership_declaration: nil, persons_provided: nil, + representative_declaration: nil, terms_of_service: nil ); end end @@ -198892,7 +200045,7 @@ module Stripe surname: nil ); end end - # Attestations from the identity's key people, e.g. owners, executives, directors. + # Attestations from the identity's key people, e.g. owners, executives, directors, representatives. sig { returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations)) } def attestations; end sig { @@ -200767,6 +201920,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class Usd < ::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)) @@ -200776,10 +201938,19 @@ module Stripe params(_gbp: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)) } def gbp=(_gbp); end + # Can hold storage-type funds on Stripe in USD. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)) + } + def usd; end + sig { + 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 sig { - params(gbp: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)).void + params(gbp: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)).void } - def initialize(gbp: nil); end + def initialize(gbp: nil, usd: nil); end end class InboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -201170,6 +202341,27 @@ module Stripe ownership_exemption_reason: nil ); end end + class RepresentativeDeclaration < ::Stripe::RequestParams + # The time marking when the representative attestation was made. 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 representative 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 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(String), ip: T.nilable(String), user_agent: T.nilable(String)).void + } + def initialize(date: nil, ip: nil, user_agent: nil); end + end class TermsOfService < ::Stripe::RequestParams class Account < ::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. @@ -201781,6 +202973,15 @@ module Stripe params(_persons_provided: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::PersonsProvided)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::PersonsProvided)) } def persons_provided=(_persons_provided); 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(V2::Core::AccountUpdateParams::Identity::Attestations::RepresentativeDeclaration)) + } + def representative_declaration; end + sig { + params(_representative_declaration: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::RepresentativeDeclaration)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::RepresentativeDeclaration)) + } + def representative_declaration=(_representative_declaration); end # Attestations of accepted terms of service agreements. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService)) @@ -201791,12 +202992,13 @@ module Stripe } def terms_of_service=(_terms_of_service); end sig { - params(directorship_declaration: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::DirectorshipDeclaration), ownership_declaration: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::OwnershipDeclaration), persons_provided: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::PersonsProvided), terms_of_service: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService)).void + params(directorship_declaration: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::DirectorshipDeclaration), ownership_declaration: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::OwnershipDeclaration), persons_provided: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::PersonsProvided), representative_declaration: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::RepresentativeDeclaration), terms_of_service: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService)).void } def initialize( directorship_declaration: nil, ownership_declaration: nil, persons_provided: nil, + representative_declaration: nil, terms_of_service: nil ); end end @@ -203119,7 +204321,7 @@ module Stripe surname: nil ); end end - # Attestations from the identity's key people, e.g. owners, executives, directors. + # Attestations from the identity's key people, e.g. owners, executives, directors, representatives. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations)) } def attestations; end sig { @@ -204967,20 +206169,55 @@ module Stripe module V2 module Core class EventListParams < ::Stripe::RequestParams + # Filter for events created after the specified timestamp. + sig { returns(T.nilable(String)) } + def gt; end + sig { params(_gt: T.nilable(String)).returns(T.nilable(String)) } + def gt=(_gt); end + # Filter for events created at or after the specified timestamp. + sig { returns(T.nilable(String)) } + def gte; end + sig { params(_gte: T.nilable(String)).returns(T.nilable(String)) } + def gte=(_gte); end # The page size. sig { returns(T.nilable(Integer)) } def limit; end sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } def limit=(_limit); end + # Filter for events created before the specified timestamp. + sig { returns(T.nilable(String)) } + def lt; end + sig { params(_lt: T.nilable(String)).returns(T.nilable(String)) } + def lt=(_lt); end + # Filter for events created at or before the specified timestamp. + sig { returns(T.nilable(String)) } + def lte; end + sig { params(_lte: T.nilable(String)).returns(T.nilable(String)) } + def lte=(_lte); end # Primary object ID used to retrieve related events. # # To avoid conflict with Ruby's ':object_id', this attribute has been renamed. If using a hash parameter map instead, please use the original name ':object_id' with NO trailing underscore as the provided param key. - sig { returns(String) } + sig { returns(T.nilable(String)) } def object_id_; end - sig { params(_object_id_: String).returns(String) } + sig { params(_object_id_: T.nilable(String)).returns(T.nilable(String)) } def object_id_=(_object_id_); end - sig { params(limit: T.nilable(Integer), object_id_: String).void } - def initialize(limit: nil, object_id_: nil); end + # An array of up to 20 strings containing specific event names. + sig { returns(T.nilable(T::Array[String])) } + def types; end + sig { params(_types: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def types=(_types); end + sig { + params(gt: T.nilable(String), gte: T.nilable(String), limit: T.nilable(Integer), lt: T.nilable(String), lte: T.nilable(String), object_id_: T.nilable(String), types: T.nilable(T::Array[String])).void + } + def initialize( + gt: nil, + gte: nil, + limit: nil, + lt: nil, + lte: nil, + object_id_: nil, + types: nil + ); end end end end @@ -205239,6 +206476,24 @@ module Stripe end end # typed: true +module Stripe + module V2 + module Core + module Vault + class GbBankAccountListParams < ::Stripe::RequestParams + # Optionally set the maximum number of results per page. Defaults to 10. + sig { returns(T.nilable(Integer)) } + def limit; end + sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } + def limit=(_limit); end + sig { params(limit: T.nilable(Integer)).void } + def initialize(limit: nil); end + end + end + end + end +end +# typed: true module Stripe module V2 module Core @@ -205360,6 +206615,29 @@ module Stripe end end # typed: true +module Stripe + module V2 + module Core + module Vault + class UsBankAccountListParams < ::Stripe::RequestParams + # Optionally set the maximum number of results per page. Defaults to 10. + sig { returns(T.nilable(Integer)) } + def limit; end + sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } + def limit=(_limit); end + # Optionally filter by verification status. Mutually exclusive with `unverified`, `verified`, `awaiting_verification`, and `verification_failed`. + sig { returns(T.nilable(String)) } + def verification_status; end + sig { params(_verification_status: T.nilable(String)).returns(T.nilable(String)) } + def verification_status=(_verification_status); end + sig { params(limit: T.nilable(Integer), verification_status: T.nilable(String)).void } + def initialize(limit: nil, verification_status: nil); end + end + end + end + end +end +# typed: true module Stripe module V2 module Core @@ -205445,6 +206723,43 @@ module Stripe end end # typed: true +module Stripe + module V2 + module Core + module Vault + class UsBankAccountConfirmMicrodepositsParams < ::Stripe::RequestParams + # Two amounts received through Send Microdeposits must match the input to Confirm Microdeposits to verify US Bank Account. + sig { returns(T.nilable(T::Array[Integer])) } + def amounts; end + sig { + params(_amounts: T.nilable(T::Array[Integer])).returns(T.nilable(T::Array[Integer])) + } + def amounts=(_amounts); end + # Descriptor code received through Send Microdeposits must match the input to Confirm Microdeposits to verify US Bank Account. + sig { returns(T.nilable(String)) } + def descriptor_code; end + sig { params(_descriptor_code: T.nilable(String)).returns(T.nilable(String)) } + def descriptor_code=(_descriptor_code); end + sig { + params(amounts: T.nilable(T::Array[Integer]), descriptor_code: T.nilable(String)).void + } + def initialize(amounts: nil, descriptor_code: nil); end + end + end + end + end +end +# typed: true +module Stripe + module V2 + module Core + module Vault + class UsBankAccountSendMicrodepositsParams < ::Stripe::RequestParams; end + end + end + end +end +# typed: true module Stripe module V2 module MoneyManagement @@ -205589,6 +206904,31 @@ module Stripe end end # typed: true +module Stripe + module V2 + module MoneyManagement + class FinancialAccountUpdateParams < ::Stripe::RequestParams + # A descriptive name for the FinancialAccount, up to 50 characters long. This name will be used in the Stripe Dashboard and embedded components. + sig { returns(T.nilable(String)) } + def display_name; end + sig { params(_display_name: T.nilable(String)).returns(T.nilable(String)) } + def display_name=(_display_name); end + # Metadata associated with the FinancialAccount. + sig { returns(T.nilable(T::Hash[String, T.nilable(String)])) } + def metadata; end + sig { + params(_metadata: T.nilable(T::Hash[String, T.nilable(String)])).returns(T.nilable(T::Hash[String, T.nilable(String)])) + } + def metadata=(_metadata); end + sig { + params(display_name: T.nilable(String), metadata: T.nilable(T::Hash[String, T.nilable(String)])).void + } + def initialize(display_name: nil, metadata: nil); end + end + end + end +end +# typed: true module Stripe module V2 module MoneyManagement @@ -207556,6 +208896,7 @@ module Stripe module TestHelpers class MoneyManagementRecipientVerificationsParams < ::Stripe::RequestParams # Expected match level of the RecipientVerification to be created: `match`, `close_match`, `no_match`, `unavailable`. + # For `close_match`, the simulated response appends "close_match" to the provided name in match_result_details.matched_name. sig { returns(String) } def match_result; end sig { params(_match_result: String).returns(String) } 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 41732ea79..a049ad6f9 100644 --- a/rbi/stripe/params/delegated_checkout/requested_session_create_params.rbi +++ b/rbi/stripe/params/delegated_checkout/requested_session_create_params.rbi @@ -5,13 +5,375 @@ module Stripe module DelegatedCheckout class RequestedSessionCreateParams < ::Stripe::RequestParams + class FulfillmentDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(String) } + def city; end + sig { params(_city: String).returns(String) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(String) } + def country; end + sig { params(_country: String).returns(String) } + def country=(_country); end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(String) } + def line1; end + sig { params(_line1: String).returns(String) } + def line1=(_line1); end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(String) } + def postal_code; end + sig { params(_postal_code: String).returns(String) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(String) } + def state; end + sig { params(_state: String).returns(String) } + def state=(_state); end + sig { + params(city: String, country: String, line1: String, line2: T.nilable(String), postal_code: String, state: String).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ); end + end + # Attribute for param field address + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails::Address)) + } + def address; end + sig { + params(_address: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails::Address)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails::Address)) + } + def address=(_address); end + # The customer's email address. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The customer's name. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The customer's phone number. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(address: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(address: nil, email: nil, name: nil, phone: nil); end + end + class LineItemDetail < ::Stripe::RequestParams + # The quantity of the line item. + sig { returns(Integer) } + def quantity; end + sig { params(_quantity: Integer).returns(Integer) } + def quantity=(_quantity); end + # The SKU ID of the line item. + sig { returns(String) } + def sku_id; end + sig { params(_sku_id: String).returns(String) } + def sku_id=(_sku_id); end + sig { params(quantity: Integer, sku_id: String).void } + def initialize(quantity: nil, sku_id: nil); end + end + class PaymentMethodData < ::Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(String) } + def city; end + sig { params(_city: String).returns(String) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(String) } + def country; end + sig { params(_country: String).returns(String) } + def country=(_country); end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(String) } + def line1; end + sig { params(_line1: String).returns(String) } + def line1=(_line1); end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(String) } + def postal_code; end + sig { params(_postal_code: String).returns(String) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(String) } + def state; end + sig { params(_state: String).returns(String) } + def state=(_state); end + sig { + params(city: String, country: String, line1: String, line2: T.nilable(String), postal_code: String, state: String).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ); end + end + # The address for the billing details. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::BillingDetails::Address)) + } + def address; end + sig { + params(_address: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::BillingDetails::Address)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::BillingDetails::Address)) + } + def address=(_address); end + # The email for the billing details. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The name for the billing details. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The phone for the billing details. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(address: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(address: nil, email: nil, name: nil, phone: nil); end + end + class Card < ::Stripe::RequestParams + # The CVC of the card. + sig { returns(T.nilable(String)) } + def cvc; end + sig { params(_cvc: T.nilable(String)).returns(T.nilable(String)) } + def cvc=(_cvc); end + # The expiration month of the card. + sig { returns(Integer) } + def exp_month; end + sig { params(_exp_month: Integer).returns(Integer) } + def exp_month=(_exp_month); end + # The expiration year of the card. + sig { returns(Integer) } + def exp_year; end + sig { params(_exp_year: Integer).returns(Integer) } + def exp_year=(_exp_year); end + # The number of the card. + sig { returns(String) } + def number; end + sig { params(_number: String).returns(String) } + def number=(_number); end + sig { + params(cvc: T.nilable(String), exp_month: Integer, exp_year: Integer, number: String).void + } + def initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil); end + end + # The billing details for the payment method data. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::BillingDetails)) + } + def billing_details; end + sig { + params(_billing_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::BillingDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::BillingDetails)) + } + def billing_details=(_billing_details); end + # The card for the payment method data. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::Card)) + } + def card; end + sig { + params(_card: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::Card)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::Card)) + } + def card=(_card); end + # The type of the payment method data. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { + params(billing_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::BillingDetails), card: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::Card), type: T.nilable(String)).void + } + 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) } + def network_profile; end + sig { params(_network_profile: String).returns(String) } + def network_profile=(_network_profile); end + sig { params(network_profile: String).void } + def initialize(network_profile: nil); end + end + # The currency for this requested session. + sig { returns(String) } + def currency; end + sig { params(_currency: String).returns(String) } + def currency=(_currency); end + # The customer for this requested session. + sig { returns(T.nilable(String)) } + def customer; end + sig { params(_customer: T.nilable(String)).returns(T.nilable(String)) } + def customer=(_customer); 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 - sig { params(expand: T.nilable(T::Array[String])).void } - def initialize(expand: nil); end + # The details of the fulfillment. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails)) + } + def fulfillment_details; end + sig { + params(_fulfillment_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails)) + } + def fulfillment_details=(_fulfillment_details); end + # The details of the line items. + sig { returns(T::Array[DelegatedCheckout::RequestedSessionCreateParams::LineItemDetail]) } + def line_item_details; end + sig { + params(_line_item_details: T::Array[DelegatedCheckout::RequestedSessionCreateParams::LineItemDetail]).returns(T::Array[DelegatedCheckout::RequestedSessionCreateParams::LineItemDetail]) + } + def line_item_details=(_line_item_details); end + # The metadata for this requested session. + sig { returns(T.nilable(T::Hash[String, String])) } + def metadata; end + sig { + params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) + } + def metadata=(_metadata); end + # The payment method for this requested session. + sig { returns(T.nilable(String)) } + def payment_method; end + sig { params(_payment_method: T.nilable(String)).returns(T.nilable(String)) } + def payment_method=(_payment_method); end + # The payment method data for this requested session. + sig { returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData)) } + def payment_method_data; end + sig { + 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 + sig { + params(_seller_details: DelegatedCheckout::RequestedSessionCreateParams::SellerDetails).returns(DelegatedCheckout::RequestedSessionCreateParams::SellerDetails) + } + def seller_details=(_seller_details); end + # The setup future usage for this requested session. + 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 + # The shared metadata for this requested session. + sig { returns(T.nilable(T::Hash[String, String])) } + def shared_metadata; end + sig { + params(_shared_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) + } + 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 + } + def initialize( + currency: nil, + customer: nil, + expand: nil, + fulfillment_details: nil, + line_item_details: nil, + metadata: nil, + payment_method: nil, + payment_method_data: nil, + risk_details: nil, + seller_details: nil, + setup_future_usage: nil, + shared_metadata: nil + ); end end end end \ No newline at end of file diff --git a/rbi/stripe/params/delegated_checkout/requested_session_update_params.rbi b/rbi/stripe/params/delegated_checkout/requested_session_update_params.rbi index c06b88b72..df6563d97 100644 --- a/rbi/stripe/params/delegated_checkout/requested_session_update_params.rbi +++ b/rbi/stripe/params/delegated_checkout/requested_session_update_params.rbi @@ -5,13 +5,326 @@ module Stripe module DelegatedCheckout class RequestedSessionUpdateParams < ::Stripe::RequestParams + class FulfillmentDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(String) } + def city; end + sig { params(_city: String).returns(String) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(String) } + def country; end + sig { params(_country: String).returns(String) } + def country=(_country); end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(String) } + def line1; end + sig { params(_line1: String).returns(String) } + def line1=(_line1); end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(String) } + def postal_code; end + sig { params(_postal_code: String).returns(String) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(String) } + def state; end + sig { params(_state: String).returns(String) } + def state=(_state); end + sig { + params(city: String, country: String, line1: String, line2: T.nilable(String), postal_code: String, state: String).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ); end + end + class SelectedFulfillmentOption < ::Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + # The shipping option identifer. + sig { returns(String) } + def shipping_option; end + sig { params(_shipping_option: String).returns(String) } + def shipping_option=(_shipping_option); end + sig { params(shipping_option: String).void } + def initialize(shipping_option: nil); end + end + # The shipping fulfillment option. + sig { + returns(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::SelectedFulfillmentOption::Shipping) + } + def shipping; end + sig { + params(_shipping: DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::SelectedFulfillmentOption::Shipping).returns(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::SelectedFulfillmentOption::Shipping) + } + def shipping=(_shipping); end + # The type of fulfillment option. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(shipping: DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::SelectedFulfillmentOption::Shipping, type: String).void + } + def initialize(shipping: nil, type: nil); end + end + # Attribute for param field address + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::Address)) + } + def address; end + sig { + params(_address: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::Address)).returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::Address)) + } + def address=(_address); end + # The customer's email address. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The customer's name. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The customer's phone number. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + # The fulfillment option to select. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::SelectedFulfillmentOption)) + } + def selected_fulfillment_option; end + sig { + params(_selected_fulfillment_option: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::SelectedFulfillmentOption)).returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::SelectedFulfillmentOption)) + } + def selected_fulfillment_option=(_selected_fulfillment_option); end + sig { + params(address: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String), selected_fulfillment_option: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails::SelectedFulfillmentOption)).void + } + def initialize( + address: nil, + email: nil, + name: nil, + phone: nil, + selected_fulfillment_option: nil + ); end + end + class LineItemDetail < ::Stripe::RequestParams + # The key of the line item. + sig { returns(String) } + def key; end + sig { params(_key: String).returns(String) } + def key=(_key); end + # The quantity of the line item. + sig { returns(T.nilable(Integer)) } + def quantity; end + sig { params(_quantity: T.nilable(Integer)).returns(T.nilable(Integer)) } + def quantity=(_quantity); end + sig { params(key: String, quantity: T.nilable(Integer)).void } + def initialize(key: nil, quantity: nil); end + end + class PaymentMethodData < ::Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(String) } + def city; end + sig { params(_city: String).returns(String) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(String) } + def country; end + sig { params(_country: String).returns(String) } + def country=(_country); end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(String) } + def line1; end + sig { params(_line1: String).returns(String) } + def line1=(_line1); end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(String) } + def postal_code; end + sig { params(_postal_code: String).returns(String) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(String) } + def state; end + sig { params(_state: String).returns(String) } + def state=(_state); end + sig { + params(city: String, country: String, line1: String, line2: T.nilable(String), postal_code: String, state: String).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ); end + end + # The address for the billing details. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::BillingDetails::Address)) + } + def address; end + sig { + params(_address: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::BillingDetails::Address)).returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::BillingDetails::Address)) + } + def address=(_address); end + # The email for the billing details. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The name for the billing details. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The phone for the billing details. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(address: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(address: nil, email: nil, name: nil, phone: nil); end + end + class Card < ::Stripe::RequestParams + # The CVC of the card. + sig { returns(T.nilable(String)) } + def cvc; end + sig { params(_cvc: T.nilable(String)).returns(T.nilable(String)) } + def cvc=(_cvc); end + # The expiration month of the card. + sig { returns(Integer) } + def exp_month; end + sig { params(_exp_month: Integer).returns(Integer) } + def exp_month=(_exp_month); end + # The expiration year of the card. + sig { returns(Integer) } + def exp_year; end + sig { params(_exp_year: Integer).returns(Integer) } + def exp_year=(_exp_year); end + # The number of the card. + sig { returns(String) } + def number; end + sig { params(_number: String).returns(String) } + def number=(_number); end + sig { + params(cvc: T.nilable(String), exp_month: Integer, exp_year: Integer, number: String).void + } + def initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil); end + end + # The billing details for the payment method data. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::BillingDetails)) + } + def billing_details; end + sig { + params(_billing_details: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::BillingDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::BillingDetails)) + } + def billing_details=(_billing_details); end + # The card for the payment method data. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::Card)) + } + def card; end + sig { + params(_card: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::Card)).returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::Card)) + } + def card=(_card); end + # The type of the payment method data. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { + params(billing_details: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::BillingDetails), card: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::Card), type: T.nilable(String)).void + } + def initialize(billing_details: nil, card: nil, type: nil); end + 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 - sig { params(expand: T.nilable(T::Array[String])).void } - def initialize(expand: nil); end + # The details of the fulfillment. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails)) + } + def fulfillment_details; end + sig { + params(_fulfillment_details: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails)) + } + def fulfillment_details=(_fulfillment_details); end + # The details of the line items. + sig { + returns(T.nilable(T::Array[DelegatedCheckout::RequestedSessionUpdateParams::LineItemDetail])) + } + def line_item_details; end + sig { + params(_line_item_details: T.nilable(T::Array[DelegatedCheckout::RequestedSessionUpdateParams::LineItemDetail])).returns(T.nilable(T::Array[DelegatedCheckout::RequestedSessionUpdateParams::LineItemDetail])) + } + def line_item_details=(_line_item_details); end + # The metadata for this requested session. + sig { returns(T.nilable(T::Hash[String, String])) } + def metadata; end + sig { + params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) + } + def metadata=(_metadata); end + # The payment method for this requested session. + sig { returns(T.nilable(String)) } + def payment_method; end + sig { params(_payment_method: T.nilable(String)).returns(T.nilable(String)) } + def payment_method=(_payment_method); end + # The payment method data for this requested session. + sig { returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData)) } + def payment_method_data; end + sig { + params(_payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData)).returns(T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData)) + } + def payment_method_data=(_payment_method_data); end + # The shared metadata for this requested session. + sig { returns(T.nilable(T::Hash[String, String])) } + def shared_metadata; end + sig { + params(_shared_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) + } + def shared_metadata=(_shared_metadata); end + sig { + params(expand: T.nilable(T::Array[String]), fulfillment_details: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::FulfillmentDetails), line_item_details: T.nilable(T::Array[DelegatedCheckout::RequestedSessionUpdateParams::LineItemDetail]), metadata: T.nilable(T::Hash[String, String]), payment_method: T.nilable(String), payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData), shared_metadata: T.nilable(T::Hash[String, String])).void + } + def initialize( + expand: nil, + fulfillment_details: nil, + line_item_details: nil, + metadata: nil, + payment_method: nil, + payment_method_data: nil, + shared_metadata: nil + ); end end end end \ No newline at end of file diff --git a/rbi/stripe/params/v2/billing/collection_setting_create_params.rbi b/rbi/stripe/params/v2/billing/collection_setting_create_params.rbi index ca2463420..437f239a8 100644 --- a/rbi/stripe/params/v2/billing/collection_setting_create_params.rbi +++ b/rbi/stripe/params/v2/billing/collection_setting_create_params.rbi @@ -13,7 +13,7 @@ module Stripe def enabled; end sig { params(_enabled: T::Boolean).returns(T::Boolean) } def enabled=(_enabled); end - # If true the payment link to hosted invocie page would be included in email and PDF of the invoice. + # If true the payment link to hosted invoice page would be included in email and PDF of the invoice. sig { returns(T::Boolean) } def include_payment_link; end sig { params(_include_payment_link: T::Boolean).returns(T::Boolean) } @@ -21,7 +21,7 @@ module Stripe sig { params(enabled: T::Boolean, include_payment_link: T::Boolean).void } def initialize(enabled: nil, include_payment_link: nil); end end - # Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state. + # Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. sig { returns(T.nilable(V2::Billing::CollectionSettingCreateParams::EmailDelivery::PaymentDue)) } diff --git a/rbi/stripe/params/v2/billing/collection_setting_update_params.rbi b/rbi/stripe/params/v2/billing/collection_setting_update_params.rbi index 842e366a7..86c5c218c 100644 --- a/rbi/stripe/params/v2/billing/collection_setting_update_params.rbi +++ b/rbi/stripe/params/v2/billing/collection_setting_update_params.rbi @@ -13,7 +13,7 @@ module Stripe def enabled; end sig { params(_enabled: T::Boolean).returns(T::Boolean) } def enabled=(_enabled); end - # If true the payment link to hosted invocie page would be included in email and PDF of the invoice. + # If true the payment link to hosted invoice page would be included in email and PDF of the invoice. sig { returns(T::Boolean) } def include_payment_link; end sig { params(_include_payment_link: T::Boolean).returns(T::Boolean) } @@ -21,7 +21,7 @@ module Stripe sig { params(enabled: T::Boolean, include_payment_link: T::Boolean).void } def initialize(enabled: nil, include_payment_link: nil); end end - # Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state. + # Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. sig { returns(T.nilable(V2::Billing::CollectionSettingUpdateParams::EmailDelivery::PaymentDue)) } diff --git a/rbi/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rbi b/rbi/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rbi new file mode 100644 index 000000000..ca9a3827e --- /dev/null +++ b/rbi/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rbi @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Billing + module PricingPlanSubscriptions + class ComponentRetrieveParams < ::Stripe::RequestParams; end + end + 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 6252caed7..32fe4779d 100644 --- a/rbi/stripe/params/v2/core/account_create_params.rbi +++ b/rbi/stripe/params/v2/core/account_create_params.rbi @@ -1709,6 +1709,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end + class Usd < ::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)) @@ -1718,10 +1727,19 @@ module Stripe params(_gbp: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)) } def gbp=(_gbp); end + # Can hold storage-type funds on Stripe in USD. sig { - params(gbp: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)).void + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)) } - def initialize(gbp: nil); end + def usd; end + sig { + 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 + 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 + } + def initialize(gbp: nil, usd: nil); end end class InboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -2107,6 +2125,27 @@ module Stripe ownership_exemption_reason: nil ); end end + class RepresentativeDeclaration < ::Stripe::RequestParams + # The time marking when the representative attestation was made. 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 representative 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 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(String), ip: T.nilable(String), user_agent: T.nilable(String)).void + } + def initialize(date: nil, ip: nil, user_agent: nil); end + end class TermsOfService < ::Stripe::RequestParams class Account < ::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. @@ -2688,6 +2727,15 @@ module Stripe params(_persons_provided: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::PersonsProvided)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::PersonsProvided)) } def persons_provided=(_persons_provided); 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(V2::Core::AccountCreateParams::Identity::Attestations::RepresentativeDeclaration)) + } + def representative_declaration; end + sig { + params(_representative_declaration: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::RepresentativeDeclaration)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::RepresentativeDeclaration)) + } + def representative_declaration=(_representative_declaration); end # Attestations of accepted terms of service agreements. sig { returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService)) @@ -2698,12 +2746,13 @@ module Stripe } def terms_of_service=(_terms_of_service); end sig { - params(directorship_declaration: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::DirectorshipDeclaration), ownership_declaration: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::OwnershipDeclaration), persons_provided: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::PersonsProvided), terms_of_service: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService)).void + params(directorship_declaration: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::DirectorshipDeclaration), ownership_declaration: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::OwnershipDeclaration), persons_provided: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::PersonsProvided), representative_declaration: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::RepresentativeDeclaration), terms_of_service: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService)).void } def initialize( directorship_declaration: nil, ownership_declaration: nil, persons_provided: nil, + representative_declaration: nil, terms_of_service: nil ); end end @@ -4026,7 +4075,7 @@ module Stripe surname: nil ); end end - # Attestations from the identity's key people, e.g. owners, executives, directors. + # Attestations from the identity's key people, e.g. owners, executives, directors, representatives. sig { returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations)) } def attestations; end sig { diff --git a/rbi/stripe/params/v2/core/account_list_params.rbi b/rbi/stripe/params/v2/core/account_list_params.rbi index eed0bfa82..9216b00ad 100644 --- a/rbi/stripe/params/v2/core/account_list_params.rbi +++ b/rbi/stripe/params/v2/core/account_list_params.rbi @@ -13,15 +13,20 @@ module Stripe params(_applied_configurations: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def applied_configurations=(_applied_configurations); end + # Filter by whether the account is closed. If omitted, returns only Accounts that are not closed. + sig { returns(T.nilable(T::Boolean)) } + def closed; end + sig { params(_closed: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def closed=(_closed); end # The upper limit on the number of accounts returned by the List Account request. sig { returns(T.nilable(Integer)) } def limit; end sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } def limit=(_limit); end sig { - params(applied_configurations: T.nilable(T::Array[String]), limit: T.nilable(Integer)).void + params(applied_configurations: T.nilable(T::Array[String]), closed: T.nilable(T::Boolean), limit: T.nilable(Integer)).void } - def initialize(applied_configurations: nil, limit: nil); end + def initialize(applied_configurations: nil, closed: nil, limit: nil); end end end end diff --git a/rbi/stripe/params/v2/core/account_update_params.rbi b/rbi/stripe/params/v2/core/account_update_params.rbi index 365762370..824e8b613 100644 --- a/rbi/stripe/params/v2/core/account_update_params.rbi +++ b/rbi/stripe/params/v2/core/account_update_params.rbi @@ -1753,6 +1753,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class Usd < ::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)) @@ -1762,10 +1771,19 @@ module Stripe params(_gbp: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)) } def gbp=(_gbp); end + # Can hold storage-type funds on Stripe in USD. sig { - params(gbp: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)).void + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)) } - def initialize(gbp: nil); end + def usd; end + sig { + 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 + 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 + } + def initialize(gbp: nil, usd: nil); end end class InboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -2156,6 +2174,27 @@ module Stripe ownership_exemption_reason: nil ); end end + class RepresentativeDeclaration < ::Stripe::RequestParams + # The time marking when the representative attestation was made. 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 representative 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 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(String), ip: T.nilable(String), user_agent: T.nilable(String)).void + } + def initialize(date: nil, ip: nil, user_agent: nil); end + end class TermsOfService < ::Stripe::RequestParams class Account < ::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. @@ -2767,6 +2806,15 @@ module Stripe params(_persons_provided: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::PersonsProvided)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::PersonsProvided)) } def persons_provided=(_persons_provided); 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(V2::Core::AccountUpdateParams::Identity::Attestations::RepresentativeDeclaration)) + } + def representative_declaration; end + sig { + params(_representative_declaration: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::RepresentativeDeclaration)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::RepresentativeDeclaration)) + } + def representative_declaration=(_representative_declaration); end # Attestations of accepted terms of service agreements. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService)) @@ -2777,12 +2825,13 @@ module Stripe } def terms_of_service=(_terms_of_service); end sig { - params(directorship_declaration: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::DirectorshipDeclaration), ownership_declaration: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::OwnershipDeclaration), persons_provided: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::PersonsProvided), terms_of_service: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService)).void + params(directorship_declaration: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::DirectorshipDeclaration), ownership_declaration: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::OwnershipDeclaration), persons_provided: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::PersonsProvided), representative_declaration: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::RepresentativeDeclaration), terms_of_service: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService)).void } def initialize( directorship_declaration: nil, ownership_declaration: nil, persons_provided: nil, + representative_declaration: nil, terms_of_service: nil ); end end @@ -4105,7 +4154,7 @@ module Stripe surname: nil ); end end - # Attestations from the identity's key people, e.g. owners, executives, directors. + # Attestations from the identity's key people, e.g. owners, executives, directors, representatives. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations)) } def attestations; end sig { diff --git a/rbi/stripe/params/v2/core/event_list_params.rbi b/rbi/stripe/params/v2/core/event_list_params.rbi index ad451e407..050cab4fa 100644 --- a/rbi/stripe/params/v2/core/event_list_params.rbi +++ b/rbi/stripe/params/v2/core/event_list_params.rbi @@ -6,20 +6,55 @@ module Stripe module V2 module Core class EventListParams < ::Stripe::RequestParams + # Filter for events created after the specified timestamp. + sig { returns(T.nilable(String)) } + def gt; end + sig { params(_gt: T.nilable(String)).returns(T.nilable(String)) } + def gt=(_gt); end + # Filter for events created at or after the specified timestamp. + sig { returns(T.nilable(String)) } + def gte; end + sig { params(_gte: T.nilable(String)).returns(T.nilable(String)) } + def gte=(_gte); end # The page size. sig { returns(T.nilable(Integer)) } def limit; end sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } def limit=(_limit); end + # Filter for events created before the specified timestamp. + sig { returns(T.nilable(String)) } + def lt; end + sig { params(_lt: T.nilable(String)).returns(T.nilable(String)) } + def lt=(_lt); end + # Filter for events created at or before the specified timestamp. + sig { returns(T.nilable(String)) } + def lte; end + sig { params(_lte: T.nilable(String)).returns(T.nilable(String)) } + def lte=(_lte); end # Primary object ID used to retrieve related events. # # To avoid conflict with Ruby's ':object_id', this attribute has been renamed. If using a hash parameter map instead, please use the original name ':object_id' with NO trailing underscore as the provided param key. - sig { returns(String) } + sig { returns(T.nilable(String)) } def object_id_; end - sig { params(_object_id_: String).returns(String) } + sig { params(_object_id_: T.nilable(String)).returns(T.nilable(String)) } def object_id_=(_object_id_); end - sig { params(limit: T.nilable(Integer), object_id_: String).void } - def initialize(limit: nil, object_id_: nil); end + # An array of up to 20 strings containing specific event names. + sig { returns(T.nilable(T::Array[String])) } + def types; end + sig { params(_types: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def types=(_types); end + sig { + params(gt: T.nilable(String), gte: T.nilable(String), limit: T.nilable(Integer), lt: T.nilable(String), lte: T.nilable(String), object_id_: T.nilable(String), types: T.nilable(T::Array[String])).void + } + def initialize( + gt: nil, + gte: nil, + limit: nil, + lt: nil, + lte: nil, + object_id_: nil, + types: nil + ); end end end end diff --git a/rbi/stripe/params/v2/core/vault/gb_bank_account_list_params.rbi b/rbi/stripe/params/v2/core/vault/gb_bank_account_list_params.rbi new file mode 100644 index 000000000..1de80646a --- /dev/null +++ b/rbi/stripe/params/v2/core/vault/gb_bank_account_list_params.rbi @@ -0,0 +1,21 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Core + module Vault + class GbBankAccountListParams < ::Stripe::RequestParams + # Optionally set the maximum number of results per page. Defaults to 10. + sig { returns(T.nilable(Integer)) } + def limit; end + sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } + def limit=(_limit); end + sig { params(limit: T.nilable(Integer)).void } + def initialize(limit: nil); end + end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rbi b/rbi/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rbi new file mode 100644 index 000000000..1c7ee24a7 --- /dev/null +++ b/rbi/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rbi @@ -0,0 +1,30 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Core + module Vault + class UsBankAccountConfirmMicrodepositsParams < ::Stripe::RequestParams + # Two amounts received through Send Microdeposits must match the input to Confirm Microdeposits to verify US Bank Account. + sig { returns(T.nilable(T::Array[Integer])) } + def amounts; end + sig { + params(_amounts: T.nilable(T::Array[Integer])).returns(T.nilable(T::Array[Integer])) + } + def amounts=(_amounts); end + # Descriptor code received through Send Microdeposits must match the input to Confirm Microdeposits to verify US Bank Account. + sig { returns(T.nilable(String)) } + def descriptor_code; end + sig { params(_descriptor_code: T.nilable(String)).returns(T.nilable(String)) } + def descriptor_code=(_descriptor_code); end + sig { + params(amounts: T.nilable(T::Array[Integer]), descriptor_code: T.nilable(String)).void + } + def initialize(amounts: nil, descriptor_code: nil); end + end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/v2/core/vault/us_bank_account_list_params.rbi b/rbi/stripe/params/v2/core/vault/us_bank_account_list_params.rbi new file mode 100644 index 000000000..9ca9b14f7 --- /dev/null +++ b/rbi/stripe/params/v2/core/vault/us_bank_account_list_params.rbi @@ -0,0 +1,26 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Core + module Vault + class UsBankAccountListParams < ::Stripe::RequestParams + # Optionally set the maximum number of results per page. Defaults to 10. + sig { returns(T.nilable(Integer)) } + def limit; end + sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } + def limit=(_limit); end + # Optionally filter by verification status. Mutually exclusive with `unverified`, `verified`, `awaiting_verification`, and `verification_failed`. + sig { returns(T.nilable(String)) } + def verification_status; end + sig { params(_verification_status: T.nilable(String)).returns(T.nilable(String)) } + def verification_status=(_verification_status); end + sig { params(limit: T.nilable(Integer), verification_status: T.nilable(String)).void } + def initialize(limit: nil, verification_status: nil); end + end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rbi b/rbi/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rbi new file mode 100644 index 000000000..ea20e1d75 --- /dev/null +++ b/rbi/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rbi @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Core + module Vault + class UsBankAccountSendMicrodepositsParams < ::Stripe::RequestParams; end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/v2/money_management/financial_account_update_params.rbi b/rbi/stripe/params/v2/money_management/financial_account_update_params.rbi new file mode 100644 index 000000000..971fd3ba1 --- /dev/null +++ b/rbi/stripe/params/v2/money_management/financial_account_update_params.rbi @@ -0,0 +1,28 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module MoneyManagement + class FinancialAccountUpdateParams < ::Stripe::RequestParams + # A descriptive name for the FinancialAccount, up to 50 characters long. This name will be used in the Stripe Dashboard and embedded components. + sig { returns(T.nilable(String)) } + def display_name; end + sig { params(_display_name: T.nilable(String)).returns(T.nilable(String)) } + def display_name=(_display_name); end + # Metadata associated with the FinancialAccount. + sig { returns(T.nilable(T::Hash[String, T.nilable(String)])) } + def metadata; end + sig { + params(_metadata: T.nilable(T::Hash[String, T.nilable(String)])).returns(T.nilable(T::Hash[String, T.nilable(String)])) + } + def metadata=(_metadata); end + sig { + params(display_name: T.nilable(String), metadata: T.nilable(T::Hash[String, T.nilable(String)])).void + } + def initialize(display_name: nil, metadata: nil); end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rbi b/rbi/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rbi index 2d0ebd680..5aa398bdf 100644 --- a/rbi/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rbi +++ b/rbi/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rbi @@ -7,6 +7,7 @@ module Stripe module TestHelpers class MoneyManagementRecipientVerificationsParams < ::Stripe::RequestParams # Expected match level of the RecipientVerification to be created: `match`, `close_match`, `no_match`, `unavailable`. + # For `close_match`, the simulated response appends "close_match" to the provided name in match_result_details.matched_name. sig { returns(String) } def match_result; end sig { params(_match_result: String).returns(String) } diff --git a/rbi/stripe/resources/delegated_checkout/requested_session.rbi b/rbi/stripe/resources/delegated_checkout/requested_session.rbi index c15bfd99a..bf729eea7 100644 --- a/rbi/stripe/resources/delegated_checkout/requested_session.rbi +++ b/rbi/stripe/resources/delegated_checkout/requested_session.rbi @@ -7,6 +7,178 @@ module Stripe # A requested session is a session that has been requested by a customer. class RequestedSession < APIResource class FulfillmentDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class FulfillmentOption < ::Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class ShippingOption < ::Stripe::StripeObject + # The description of the shipping option. + sig { returns(T.nilable(String)) } + def description; end + # The display name of the shipping option. + sig { returns(String) } + def display_name; end + # The earliest delivery time of the shipping option. + sig { returns(T.nilable(Integer)) } + def earliest_delivery_time; end + # The key of the shipping option. + sig { returns(String) } + def key; end + # The latest delivery time of the shipping option. + sig { returns(T.nilable(Integer)) } + def latest_delivery_time; end + # The shipping amount of the shipping option. + sig { returns(Integer) } + def shipping_amount; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The shipping options. + sig { returns(T.nilable(T::Array[ShippingOption])) } + def shipping_options; end + def self.inner_class_types + @inner_class_types = {shipping_options: ShippingOption} + end + def self.field_remappings + @field_remappings = {} + end + end + # The shipping option. + sig { returns(T.nilable(Shipping)) } + def shipping; end + # The type of the fulfillment option. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {shipping: Shipping} + end + def self.field_remappings + @field_remappings = {} + end + end + class SelectedFulfillmentOption < ::Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + # The shipping option. + sig { returns(T.nilable(String)) } + def shipping_option; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The shipping option. + sig { returns(T.nilable(Shipping)) } + def shipping; end + # The type of the selected fulfillment option. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {shipping: Shipping} + end + def self.field_remappings + @field_remappings = {} + end + end + # The fulfillment address. + sig { returns(T.nilable(Address)) } + def address; end + # The email address for the fulfillment details. + sig { returns(T.nilable(String)) } + def email; end + # The fulfillment options. + sig { returns(T.nilable(T::Array[FulfillmentOption])) } + def fulfillment_options; end + # The name for the fulfillment details. + sig { returns(T.nilable(String)) } + def name; end + # The phone number for the fulfillment details. + sig { returns(T.nilable(String)) } + def phone; end + # The fulfillment option. + sig { returns(T.nilable(SelectedFulfillmentOption)) } + def selected_fulfillment_option; end + def self.inner_class_types + @inner_class_types = { + address: Address, + fulfillment_options: FulfillmentOption, + selected_fulfillment_option: SelectedFulfillmentOption, + } + end + def self.field_remappings + @field_remappings = {} + end + end + class LineItemDetail < ::Stripe::StripeObject + # The description of the line item. + sig { returns(T.nilable(String)) } + def description; end + # The images of the line item. + sig { returns(T.nilable(T::Array[String])) } + def images; end + # The key of the line item. + sig { returns(String) } + def key; end + # The name of the line item. + sig { returns(String) } + def name; end + # The quantity of the line item. + sig { returns(Integer) } + def quantity; end + # The SKU ID of the line item. + sig { returns(String) } + def sku_id; end + # The unit amount of the line item. + sig { returns(Integer) } + def unit_amount; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class OrderDetails < ::Stripe::StripeObject + # The URL to the order status. + sig { returns(T.nilable(String)) } + def order_status_url; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class SellerDetails < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -14,24 +186,86 @@ module Stripe @field_remappings = {} end end + class TotalDetails < ::Stripe::StripeObject + # The amount discount of the total details. + sig { returns(T.nilable(Integer)) } + def amount_discount; end + # The amount fulfillment of the total details. + sig { returns(T.nilable(Integer)) } + def amount_fulfillment; end + # The amount tax of the total details. + sig { returns(T.nilable(Integer)) } + def amount_tax; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The subtotal amount of the requested session. + sig { returns(Integer) } + def amount_subtotal; end + # The total amount of the requested session. + sig { returns(Integer) } + def amount_total; end + # Time at which the object was created. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def created_at; 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 # The customer for this requested session. sig { returns(T.nilable(String)) } def customer; end - # Attribute for field fulfillment_details + # Time at which the requested session expires. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def expires_at; end + # The details of the fulfillment. sig { returns(T.nilable(FulfillmentDetails)) } def fulfillment_details; end # Unique identifier for the object. sig { returns(String) } def id; end + # The line items to be purchased. + sig { returns(T::Array[LineItemDetail]) } + def line_item_details; 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 + # 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.nilable(T::Hash[String, String])) } + def metadata; end # String representing the object's type. Objects of the same type share the same value. sig { returns(String) } def object; end + # The details of the order. + sig { returns(T.nilable(OrderDetails)) } + def order_details; end + # The payment method used for the requested session. + sig { returns(T.nilable(String)) } + def payment_method; end + # Attribute for field seller_details + sig { returns(SellerDetails) } + def seller_details; end + # Whether or not the payment method should be saved for future use. + sig { returns(T.nilable(String)) } + def setup_future_usage; end + # The metadata shared with the seller. + sig { returns(T.nilable(T::Hash[String, String])) } + def shared_metadata; end + # The SPT used for payment. + sig { returns(T.nilable(String)) } + def shared_payment_issued_token; end + # The status of the requested session. + sig { returns(String) } + def status; end + # Attribute for field total_details + sig { returns(TotalDetails) } + def total_details; end + # Time at which the object was last updated. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def updated_at; end # Confirms a requested session sig { params(params: T.any(::Stripe::DelegatedCheckout::RequestedSessionConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::DelegatedCheckout::RequestedSession) diff --git a/rbi/stripe/resources/v2/billing/cadence.rbi b/rbi/stripe/resources/v2/billing/cadence.rbi index 86036275b..25f03651f 100644 --- a/rbi/stripe/resources/v2/billing/cadence.rbi +++ b/rbi/stripe/resources/v2/billing/cadence.rbi @@ -354,7 +354,7 @@ module Stripe # If true an email for the invoice would be generated and sent out. sig { returns(T::Boolean) } def enabled; end - # If true the payment link to hosted invocie page would be included in email and PDF of the invoice. + # If true the payment link to hosted invoice page would be included in email and PDF of the invoice. sig { returns(T::Boolean) } def include_payment_link; end def self.inner_class_types @@ -364,7 +364,7 @@ module Stripe @field_remappings = {} end end - # Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state. + # Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. sig { returns(T.nilable(PaymentDue)) } def payment_due; end def self.inner_class_types diff --git a/rbi/stripe/resources/v2/billing/collection_setting.rbi b/rbi/stripe/resources/v2/billing/collection_setting.rbi index 71fd61add..286e1ede9 100644 --- a/rbi/stripe/resources/v2/billing/collection_setting.rbi +++ b/rbi/stripe/resources/v2/billing/collection_setting.rbi @@ -12,7 +12,7 @@ module Stripe # If true an email for the invoice would be generated and sent out. sig { returns(T::Boolean) } def enabled; end - # If true the payment link to hosted invocie page would be included in email and PDF of the invoice. + # If true the payment link to hosted invoice page would be included in email and PDF of the invoice. sig { returns(T::Boolean) } def include_payment_link; end def self.inner_class_types @@ -22,7 +22,7 @@ module Stripe @field_remappings = {} end end - # Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state. + # Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. sig { returns(T.nilable(PaymentDue)) } def payment_due; end def self.inner_class_types diff --git a/rbi/stripe/resources/v2/billing/collection_setting_version.rbi b/rbi/stripe/resources/v2/billing/collection_setting_version.rbi index 19dd7fead..125c6f256 100644 --- a/rbi/stripe/resources/v2/billing/collection_setting_version.rbi +++ b/rbi/stripe/resources/v2/billing/collection_setting_version.rbi @@ -11,7 +11,7 @@ module Stripe # If true an email for the invoice would be generated and sent out. sig { returns(T::Boolean) } def enabled; end - # If true the payment link to hosted invocie page would be included in email and PDF of the invoice. + # If true the payment link to hosted invoice page would be included in email and PDF of the invoice. sig { returns(T::Boolean) } def include_payment_link; end def self.inner_class_types @@ -21,7 +21,7 @@ module Stripe @field_remappings = {} end end - # Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state. + # Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. sig { returns(T.nilable(PaymentDue)) } def payment_due; end def self.inner_class_types diff --git a/rbi/stripe/resources/v2/billing/pricing_plan_subscription_components.rbi b/rbi/stripe/resources/v2/billing/pricing_plan_subscription_components.rbi new file mode 100644 index 000000000..35f1c3fae --- /dev/null +++ b/rbi/stripe/resources/v2/billing/pricing_plan_subscription_components.rbi @@ -0,0 +1,42 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Billing + # A set of component subscriptions for a Pricing Plan Subscription. + class PricingPlanSubscriptionComponents < APIResource + class Component < ::Stripe::StripeObject + # The Pricing Plan Component associated with this component subscription. + sig { returns(String) } + def pricing_plan_component; end + # The type of subscription. + sig { returns(String) } + def type; end + # The ID of the License Fee Subscription. + sig { returns(T.nilable(String)) } + def license_fee_subscription; end + # The ID of the Rate Card Subscription. + sig { returns(T.nilable(String)) } + def rate_card_subscription; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The component subscriptions of the Pricing Plan Subscription. + sig { returns(T::Array[Component]) } + def components; end + # String representing the object's type. Objects of the same type share the same value of the object field. + sig { returns(String) } + def object; 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 + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/resources/v2/core/account.rbi b/rbi/stripe/resources/v2/core/account.rbi index 3b16f5b03..b04ad1308 100644 --- a/rbi/stripe/resources/v2/core/account.rbi +++ b/rbi/stripe/resources/v2/core/account.rbi @@ -2617,11 +2617,45 @@ module Stripe @field_remappings = {} end end + class Usd < ::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 def self.inner_class_types - @inner_class_types = {gbp: Gbp} + @inner_class_types = {gbp: Gbp, usd: Usd} end def self.field_remappings @field_remappings = {} @@ -3038,6 +3072,23 @@ module Stripe @field_remappings = {} end end + class RepresentativeDeclaration < ::Stripe::StripeObject + # The time marking when the representative attestation was made. 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 representative attestation was made. + sig { returns(T.nilable(String)) } + def ip; end + # The user agent of the browser from which the representative 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 TermsOfService < ::Stripe::StripeObject class Account < ::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. @@ -3505,6 +3556,9 @@ module Stripe # Attestation that all Persons with a specific Relationship value have been provided. sig { returns(T.nilable(PersonsProvided)) } def persons_provided; 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 # Attestations of accepted terms of service agreements. sig { returns(T.nilable(TermsOfService)) } def terms_of_service; end @@ -3513,6 +3567,7 @@ module Stripe directorship_declaration: DirectorshipDeclaration, ownership_declaration: OwnershipDeclaration, persons_provided: PersonsProvided, + representative_declaration: RepresentativeDeclaration, terms_of_service: TermsOfService, } end @@ -4446,7 +4501,7 @@ module Stripe @field_remappings = {} end end - # Attestations from the identity's key people, e.g. owners, executives, directors. + # Attestations from the identity's key people, e.g. owners, executives, directors, representatives. sig { returns(T.nilable(Attestations)) } def attestations; end # Information about the company or business. @@ -4644,6 +4699,9 @@ module Stripe # Filter only accounts that have all of the configurations specified. If omitted, returns all accounts regardless of which configurations they have. sig { returns(T::Array[String]) } def applied_configurations; end + # A value indicating if the Account has been closed. + sig { returns(T.nilable(T::Boolean)) } + def closed; end # An Account Configuration which allows the Account to take on a key persona across Stripe products. sig { returns(T.nilable(Configuration)) } def configuration; end diff --git a/rbi/stripe/resources/v2/core/vault/us_bank_account.rbi b/rbi/stripe/resources/v2/core/vault/us_bank_account.rbi index f66d4c848..81593122b 100644 --- a/rbi/stripe/resources/v2/core/vault/us_bank_account.rbi +++ b/rbi/stripe/resources/v2/core/vault/us_bank_account.rbi @@ -8,6 +8,39 @@ module Stripe module Vault # Use the USBankAccounts API to create and manage US bank accounts objects that you can use to receive funds. Note that these are not interchangeable with v1 Tokens. class UsBankAccount < APIResource + class Verification < ::Stripe::StripeObject + class MicrodepositVerificationDetails < ::Stripe::StripeObject + # Time when microdeposits will expire and have to be re-sent. + sig { returns(String) } + def expires; end + # Microdeposit type can be amounts or descriptor_type. + sig { returns(String) } + def microdeposit_type; end + # Time when microdeposits were sent. + sig { returns(String) } + def sent; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The microdeposit verification details if the status is awaiting verification. + sig { returns(T.nilable(MicrodepositVerificationDetails)) } + def microdeposit_verification_details; end + # The bank account verification status. + sig { returns(String) } + def status; end + def self.inner_class_types + @inner_class_types = { + microdeposit_verification_details: MicrodepositVerificationDetails, + } + end + def self.field_remappings + @field_remappings = {} + end + end # Whether this USBankAccount object was archived. sig { returns(T::Boolean) } def archived; end @@ -35,6 +68,9 @@ module Stripe # The ACH routing number of the bank account. sig { returns(T.nilable(String)) } def routing_number; end + # The bank account verification details. + sig { returns(Verification) } + def verification; 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 diff --git a/rbi/stripe/services/v2/billing/pricing_plan_subscription_service.rbi b/rbi/stripe/services/v2/billing/pricing_plan_subscription_service.rbi index 11ab8f456..951ffc7bc 100644 --- a/rbi/stripe/services/v2/billing/pricing_plan_subscription_service.rbi +++ b/rbi/stripe/services/v2/billing/pricing_plan_subscription_service.rbi @@ -6,6 +6,7 @@ module Stripe module V2 module Billing class PricingPlanSubscriptionService < StripeService + attr_reader :components # List all Pricing Plan Subscription objects. sig { params(params: T.any(::Stripe::V2::Billing::PricingPlanSubscriptionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject) diff --git a/rbi/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rbi b/rbi/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rbi new file mode 100644 index 000000000..e17fceeee --- /dev/null +++ b/rbi/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rbi @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Billing + module PricingPlanSubscriptions + class ComponentService < StripeService + # Retrieve a Pricing Plan Subscription's components. + sig { + params(id: String, params: T.any(::Stripe::V2::Billing::PricingPlanSubscriptions::ComponentRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Billing::PricingPlanSubscriptionComponents) + } + def retrieve(id, params = {}, opts = {}); end + end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/services/v2/core/account_service.rbi b/rbi/stripe/services/v2/core/account_service.rbi index 1e95f05e4..24f9aee14 100644 --- a/rbi/stripe/services/v2/core/account_service.rbi +++ b/rbi/stripe/services/v2/core/account_service.rbi @@ -7,7 +7,7 @@ module Stripe module Core class AccountService < StripeService attr_reader :persons - # Removes access to the Account and its associated resources. + # Removes access to the Account and its associated resources. Closed Accounts can no longer be operated on, but limited information can still be retrieved through the API in order to be able to track their history. sig { params(id: String, params: T.any(::Stripe::V2::Core::AccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account) } diff --git a/rbi/stripe/services/v2/core/vault/gb_bank_account_service.rbi b/rbi/stripe/services/v2/core/vault/gb_bank_account_service.rbi index dc6ea67a3..1db06c18c 100644 --- a/rbi/stripe/services/v2/core/vault/gb_bank_account_service.rbi +++ b/rbi/stripe/services/v2/core/vault/gb_bank_account_service.rbi @@ -38,6 +38,12 @@ module Stripe } def initiate_confirmation_of_payee(id, params = {}, opts = {}); end + # List objects that can be used as destinations for outbound money movement via OutboundPayment. + sig { + params(params: T.any(::Stripe::V2::Core::Vault::GbBankAccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject) + } + def list(params = {}, opts = {}); end + # Retrieve a GB bank account. sig { params(id: String, params: T.any(::Stripe::V2::Core::Vault::GbBankAccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Vault::GbBankAccount) diff --git a/rbi/stripe/services/v2/core/vault/us_bank_account_service.rbi b/rbi/stripe/services/v2/core/vault/us_bank_account_service.rbi index cae93945d..69db839e4 100644 --- a/rbi/stripe/services/v2/core/vault/us_bank_account_service.rbi +++ b/rbi/stripe/services/v2/core/vault/us_bank_account_service.rbi @@ -17,6 +17,12 @@ module Stripe } def archive(id, params = {}, opts = {}); end + # Confirm microdeposits amounts or descriptor code that you have received from the Send Microdeposits request. Once you correctly confirm this, this US Bank Account will be verified and eligible to transfer funds with. + sig { + params(id: String, params: T.any(::Stripe::V2::Core::Vault::UsBankAccountConfirmMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Vault::UsBankAccount) + } + def confirm_microdeposits(id, params = {}, opts = {}); end + # Create a USBankAccount object. # # ** raises BlockedByStripeError @@ -27,12 +33,24 @@ module Stripe } def create(params = {}, opts = {}); end + # List USBankAccount objects. Optionally filter by verification status. + sig { + params(params: T.any(::Stripe::V2::Core::Vault::UsBankAccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject) + } + def list(params = {}, opts = {}); end + # Retrieve a USBankAccount object. sig { params(id: String, params: T.any(::Stripe::V2::Core::Vault::UsBankAccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Vault::UsBankAccount) } def retrieve(id, params = {}, opts = {}); end + # Send microdeposits in order to verify your US Bank Account so it is eligible to transfer funds. This will start the verification process and you must Confirm Microdeposits to successfully verify your US Bank Account. + sig { + params(id: String, params: T.any(::Stripe::V2::Core::Vault::UsBankAccountSendMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Vault::UsBankAccount) + } + def send_microdeposits(id, params = {}, opts = {}); end + # Update a USBankAccount object. This is limited to supplying a previously empty routing_number field. # # ** raises BlockedByStripeError diff --git a/rbi/stripe/services/v2/money_management/financial_account_service.rbi b/rbi/stripe/services/v2/money_management/financial_account_service.rbi index 7356d0ee8..5a993fb05 100644 --- a/rbi/stripe/services/v2/money_management/financial_account_service.rbi +++ b/rbi/stripe/services/v2/money_management/financial_account_service.rbi @@ -34,6 +34,12 @@ module Stripe params(id: String, params: T.any(::Stripe::V2::MoneyManagement::FinancialAccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::MoneyManagement::FinancialAccount) } def retrieve(id, params = {}, opts = {}); end + + # Updates an existing FinancialAccount. + sig { + params(id: String, params: T.any(::Stripe::V2::MoneyManagement::FinancialAccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::MoneyManagement::FinancialAccount) + } + def update(id, params = {}, opts = {}); end end end end diff --git a/rbi/stripe/services/v2/money_management/outbound_payment_service.rbi b/rbi/stripe/services/v2/money_management/outbound_payment_service.rbi index d540fa9ab..2dcbbce2a 100644 --- a/rbi/stripe/services/v2/money_management/outbound_payment_service.rbi +++ b/rbi/stripe/services/v2/money_management/outbound_payment_service.rbi @@ -18,9 +18,9 @@ module Stripe # Creates an OutboundPayment. # # ** raises InsufficientFundsError + # ** raises FeatureNotEnabledError # ** raises QuotaExceededError # ** raises RecipientNotNotifiableError - # ** raises FeatureNotEnabledError sig { params(params: T.any(::Stripe::V2::MoneyManagement::OutboundPaymentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::MoneyManagement::OutboundPayment) } diff --git a/test/stripe/generated_examples_test.rb b/test/stripe/generated_examples_test.rb index ce98eb09d..05eb5c786 100644 --- a/test/stripe/generated_examples_test.rb +++ b/test/stripe/generated_examples_test.rb @@ -8399,6 +8399,19 @@ class CodegennedExampleTest < Test::Unit::TestCase pricing_plan_subscription = client.v2.billing.pricing_plan_subscriptions.update("id_123") assert_requested :post, "#{Stripe::DEFAULT_API_BASE}/v2/billing/pricing_plan_subscriptions/id_123" end + should "Test v2 billing pricing plan subscriptions component get (service)" do + stub_request( + :get, + "#{Stripe::DEFAULT_API_BASE}/v2/billing/pricing_plan_subscriptions/id_123/components" + ).to_return( + body: '{"components":[{"pricing_plan_component":"pricing_plan_component","type":"license_fee_subscription"}],"object":"v2.billing.pricing_plan_subscription_components","livemode":true}', + status: 200 + ) + client = Stripe::StripeClient.new("sk_test_123") + + pricing_plan_subscription_components = client.v2.billing.pricing_plan_subscriptions.components.retrieve("id_123") + assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/billing/pricing_plan_subscriptions/id_123/components" + end should "Test v2 billing profile get (service)" do stub_request( :get, @@ -8847,17 +8860,14 @@ class CodegennedExampleTest < Test::Unit::TestCase assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/core/claimable_sandboxes/id_123" end should "Test v2 core event get (service)" do - stub_request( - :get, - "#{Stripe::DEFAULT_API_BASE}/v2/core/events?object_id=object_id" - ).to_return( + stub_request(:get, "#{Stripe::DEFAULT_API_BASE}/v2/core/events").to_return( body: '{"data":[{"created":"1970-01-12T21:42:34.472Z","id":"obj_123","object":"v2.core.event","type":"type","livemode":true}],"next_page_url":null,"previous_page_url":null}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") - events = client.v2.core.events.list({ object_id: "object_id" }) - assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/core/events?object_id=object_id" + events = client.v2.core.events.list + assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/core/events" end should "Test v2 core event get 2 (service)" do stub_request(:get, "#{Stripe::DEFAULT_API_BASE}/v2/core/events/id_123").to_return( @@ -8966,6 +8976,16 @@ class CodegennedExampleTest < Test::Unit::TestCase event = client.v2.core.event_destinations.ping("id_123") assert_requested :post, "#{Stripe::DEFAULT_API_BASE}/v2/core/event_destinations/id_123/ping" end + should "Test v2 core vault gb bank account get (service)" do + stub_request(:get, "#{Stripe::DEFAULT_API_BASE}/v2/core/vault/gb_bank_accounts").to_return( + body: '{"data":[{"archived":true,"bank_account_type":"savings","bank_name":"bank_name","confirmation_of_payee":{"result":{"created":"1970-01-12T21:42:34.472Z","match_result":"unavailable","matched":{},"message":"message","provided":{"business_type":"personal","name":"name"}},"status":"awaiting_acknowledgement"},"created":"1970-01-12T21:42:34.472Z","id":"obj_123","last4":"last4","object":"v2.core.vault.gb_bank_account","sort_code":"sort_code","livemode":true}],"next_page_url":null,"previous_page_url":null}', + status: 200 + ) + client = Stripe::StripeClient.new("sk_test_123") + + gb_bank_accounts = client.v2.core.vault.gb_bank_accounts.list + assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/core/vault/gb_bank_accounts" + end should "Test v2 core vault gb bank account post (service)" do stub_request(:post, "#{Stripe::DEFAULT_API_BASE}/v2/core/vault/gb_bank_accounts").to_return( body: '{"archived":true,"bank_account_type":"savings","bank_name":"bank_name","confirmation_of_payee":{"result":{"created":"1970-01-12T21:42:34.472Z","match_result":"unavailable","matched":{},"message":"message","provided":{"business_type":"personal","name":"name"}},"status":"awaiting_acknowledgement"},"created":"1970-01-12T21:42:34.472Z","id":"obj_123","last4":"last4","object":"v2.core.vault.gb_bank_account","sort_code":"sort_code","livemode":true}', @@ -8979,7 +8999,7 @@ class CodegennedExampleTest < Test::Unit::TestCase }) assert_requested :post, "#{Stripe::DEFAULT_API_BASE}/v2/core/vault/gb_bank_accounts" end - should "Test v2 core vault gb bank account get (service)" do + should "Test v2 core vault gb bank account get 2 (service)" do stub_request( :get, "#{Stripe::DEFAULT_API_BASE}/v2/core/vault/gb_bank_accounts/id_123" @@ -9031,9 +9051,19 @@ class CodegennedExampleTest < Test::Unit::TestCase gb_bank_account = client.v2.core.vault.gb_bank_accounts.initiate_confirmation_of_payee("id_123") assert_requested :post, "#{Stripe::DEFAULT_API_BASE}/v2/core/vault/gb_bank_accounts/id_123/initiate_confirmation_of_payee" end + should "Test v2 core vault us bank account get (service)" do + stub_request(:get, "#{Stripe::DEFAULT_API_BASE}/v2/core/vault/us_bank_accounts").to_return( + body: '{"data":[{"archived":true,"bank_account_type":"savings","bank_name":"bank_name","created":"1970-01-12T21:42:34.472Z","id":"obj_123","last4":"last4","object":"v2.core.vault.us_bank_account","verification":{"status":"verification_failed"},"livemode":true}],"next_page_url":null,"previous_page_url":null}', + status: 200 + ) + client = Stripe::StripeClient.new("sk_test_123") + + us_bank_accounts = client.v2.core.vault.us_bank_accounts.list + assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/core/vault/us_bank_accounts" + end should "Test v2 core vault us bank account post (service)" do stub_request(:post, "#{Stripe::DEFAULT_API_BASE}/v2/core/vault/us_bank_accounts").to_return( - body: '{"archived":true,"bank_account_type":"savings","bank_name":"bank_name","created":"1970-01-12T21:42:34.472Z","id":"obj_123","last4":"last4","object":"v2.core.vault.us_bank_account","livemode":true}', + body: '{"archived":true,"bank_account_type":"savings","bank_name":"bank_name","created":"1970-01-12T21:42:34.472Z","id":"obj_123","last4":"last4","object":"v2.core.vault.us_bank_account","verification":{"status":"verification_failed"},"livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9043,12 +9073,12 @@ class CodegennedExampleTest < Test::Unit::TestCase }) assert_requested :post, "#{Stripe::DEFAULT_API_BASE}/v2/core/vault/us_bank_accounts" end - should "Test v2 core vault us bank account get (service)" do + should "Test v2 core vault us bank account get 2 (service)" do stub_request( :get, "#{Stripe::DEFAULT_API_BASE}/v2/core/vault/us_bank_accounts/id_123" ).to_return( - body: '{"archived":true,"bank_account_type":"savings","bank_name":"bank_name","created":"1970-01-12T21:42:34.472Z","id":"obj_123","last4":"last4","object":"v2.core.vault.us_bank_account","livemode":true}', + body: '{"archived":true,"bank_account_type":"savings","bank_name":"bank_name","created":"1970-01-12T21:42:34.472Z","id":"obj_123","last4":"last4","object":"v2.core.vault.us_bank_account","verification":{"status":"verification_failed"},"livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9061,7 +9091,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :post, "#{Stripe::DEFAULT_API_BASE}/v2/core/vault/us_bank_accounts/id_123" ).to_return( - body: '{"archived":true,"bank_account_type":"savings","bank_name":"bank_name","created":"1970-01-12T21:42:34.472Z","id":"obj_123","last4":"last4","object":"v2.core.vault.us_bank_account","livemode":true}', + body: '{"archived":true,"bank_account_type":"savings","bank_name":"bank_name","created":"1970-01-12T21:42:34.472Z","id":"obj_123","last4":"last4","object":"v2.core.vault.us_bank_account","verification":{"status":"verification_failed"},"livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9074,7 +9104,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :post, "#{Stripe::DEFAULT_API_BASE}/v2/core/vault/us_bank_accounts/id_123/archive" ).to_return( - body: '{"archived":true,"bank_account_type":"savings","bank_name":"bank_name","created":"1970-01-12T21:42:34.472Z","id":"obj_123","last4":"last4","object":"v2.core.vault.us_bank_account","livemode":true}', + body: '{"archived":true,"bank_account_type":"savings","bank_name":"bank_name","created":"1970-01-12T21:42:34.472Z","id":"obj_123","last4":"last4","object":"v2.core.vault.us_bank_account","verification":{"status":"verification_failed"},"livemode":true}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -9082,6 +9112,32 @@ class CodegennedExampleTest < Test::Unit::TestCase us_bank_account = client.v2.core.vault.us_bank_accounts.archive("id_123") assert_requested :post, "#{Stripe::DEFAULT_API_BASE}/v2/core/vault/us_bank_accounts/id_123/archive" end + should "Test v2 core vault us bank account post 4 (service)" do + stub_request( + :post, + "#{Stripe::DEFAULT_API_BASE}/v2/core/vault/us_bank_accounts/id_123/confirm_microdeposits" + ).to_return( + body: '{"archived":true,"bank_account_type":"savings","bank_name":"bank_name","created":"1970-01-12T21:42:34.472Z","id":"obj_123","last4":"last4","object":"v2.core.vault.us_bank_account","verification":{"status":"verification_failed"},"livemode":true}', + status: 200 + ) + client = Stripe::StripeClient.new("sk_test_123") + + us_bank_account = client.v2.core.vault.us_bank_accounts.confirm_microdeposits("id_123") + assert_requested :post, "#{Stripe::DEFAULT_API_BASE}/v2/core/vault/us_bank_accounts/id_123/confirm_microdeposits" + end + should "Test v2 core vault us bank account post 5 (service)" do + stub_request( + :post, + "#{Stripe::DEFAULT_API_BASE}/v2/core/vault/us_bank_accounts/id_123/send_microdeposits" + ).to_return( + body: '{"archived":true,"bank_account_type":"savings","bank_name":"bank_name","created":"1970-01-12T21:42:34.472Z","id":"obj_123","last4":"last4","object":"v2.core.vault.us_bank_account","verification":{"status":"verification_failed"},"livemode":true}', + status: 200 + ) + client = Stripe::StripeClient.new("sk_test_123") + + us_bank_account = client.v2.core.vault.us_bank_accounts.send_microdeposits("id_123") + assert_requested :post, "#{Stripe::DEFAULT_API_BASE}/v2/core/vault/us_bank_accounts/id_123/send_microdeposits" + end should "Test v2 money management adjustment get (service)" do stub_request(:get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/adjustments").to_return( body: '{"data":[{"amount":{"currency":"USD","value":96},"created":"1970-01-12T21:42:34.472Z","financial_account":"financial_account","id":"obj_123","object":"v2.money_management.adjustment","livemode":true}],"next_page_url":null,"previous_page_url":null}', @@ -9145,6 +9201,19 @@ class CodegennedExampleTest < Test::Unit::TestCase assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/financial_accounts/id_123" end should "Test v2 money management financial account post 2 (service)" do + stub_request( + :post, + "#{Stripe::DEFAULT_API_BASE}/v2/money_management/financial_accounts/id_123" + ).to_return( + body: '{"balance":{"available":{"key":{"currency":"USD","value":35}},"inbound_pending":{"key":{"currency":"USD","value":11}},"outbound_pending":{"key":{"currency":"USD","value":60}}},"country":"country","created":"1970-01-12T21:42:34.472Z","id":"obj_123","object":"v2.money_management.financial_account","status":"closed","type":"other","livemode":true}', + status: 200 + ) + client = Stripe::StripeClient.new("sk_test_123") + + financial_account = client.v2.money_management.financial_accounts.update("id_123") + assert_requested :post, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/financial_accounts/id_123" + end + should "Test v2 money management financial account post 3 (service)" do stub_request( :post, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/financial_accounts/id_123/close" @@ -9939,7 +10008,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :post, "#{Stripe::DEFAULT_API_BASE}/v2/money_management/financial_accounts" ).to_return( - body: '{"error":{"type":"feature_not_enabled","code":"recipient_feature_not_active"}}', + body: '{"error":{"type":"feature_not_enabled","code":"outbound_flow_from_closed_financial_account_unsupported"}}', status: 400 ) client = Stripe::StripeClient.new("sk_test_123")