From 6b49e5a7c9e50b44c8f4aefd20aae2b8313873f9 Mon Sep 17 00:00:00 2001 From: David Brownman Date: Wed, 27 May 2026 11:06:27 -0700 Subject: [PATCH 1/3] Warn when stripe-notify header is present (#1866) --- lib/stripe/api_requestor.rb | 3 +++ test/stripe/api_requestor_test.rb | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/lib/stripe/api_requestor.rb b/lib/stripe/api_requestor.rb index 753c580c1..28ff62d80 100644 --- a/lib/stripe/api_requestor.rb +++ b/lib/stripe/api_requestor.rb @@ -201,6 +201,9 @@ def execute_request(method, path, base_address, ) req_opts = RequestOptions.extract_opts_from_hash(req_opts) + notice = http_resp["stripe-notice"] + warn("WARNING: #{notice}") if notice + resp = interpret_response(http_resp) # If being called from `APIRequestor#request`, put the last response in diff --git a/test/stripe/api_requestor_test.rb b/test/stripe/api_requestor_test.rb index 3d0620081..d240397ee 100644 --- a/test/stripe/api_requestor_test.rb +++ b/test/stripe/api_requestor_test.rb @@ -1312,6 +1312,29 @@ class RequestorTest < Test::Unit::TestCase end context "#execute_request" do + context "Stripe-Notice header" do + should "emit a warning when the header is present" do + stub_request(:post, "#{Stripe::DEFAULT_API_BASE}/v1/charges") + .to_return( + body: JSON.generate(object: "charge"), + headers: { "Stripe-Notice" => "This is a notice" } + ) + + requestor = APIRequestor.new("sk_test_123") + requestor.expects(:warn).with("WARNING: This is a notice") + requestor.execute_request(:post, "/v1/charges", :api) + end + + should "not emit a warning when the header is absent" do + stub_request(:post, "#{Stripe::DEFAULT_API_BASE}/v1/charges") + .to_return(body: JSON.generate(object: "charge")) + + requestor = APIRequestor.new("sk_test_123") + requestor.expects(:warn).never + requestor.execute_request(:post, "/v1/charges", :api) + end + end + should "handle success response with empty body" do stub_request(:post, "#{Stripe::DEFAULT_API_BASE}/v1/charges") .to_return(body: "", status: 200) From 92e654ad1c85920e44504ddaf4ea3fea850ecb86 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 19:35:10 +0000 Subject: [PATCH 2/3] Update generated code for v2277 and 081f4305a2d6baea93b13ba5fa64f42d7c6b1633 (#1864) Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Michael Broshi <94012587+mbroshi-stripe@users.noreply.github.com> --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- lib/stripe/api_version.rb | 2 +- lib/stripe/event_types.rb | 16 + ...ce_product_catalog_imports_failed_event.rb | 44 + ...roduct_catalog_imports_processing_event.rb | 44 + ...product_catalog_imports_succeeded_event.rb | 44 + ...log_imports_succeeded_with_errors_event.rb | 44 + lib/stripe/object_types.rb | 1 + lib/stripe/params.rb | 11 + lib/stripe/params/account_create_params.rb | 26 + lib/stripe/params/account_update_params.rb | 26 + .../params/balance_settings_update_params.rb | 44 +- lib/stripe/params/charge_create_params.rb | 5 +- .../params/checkout/session_create_params.rb | 43 +- .../confirmation_token_create_params.rb | 12 +- .../params/invoice_create_preview_params.rb | 60 + .../params/payment_intent_capture_params.rb | 4 +- .../params/payment_intent_confirm_params.rb | 43 +- .../params/payment_intent_create_params.rb | 71 +- ...t_intent_increment_authorization_params.rb | 4 +- .../params/payment_intent_update_params.rb | 63 +- .../params/payment_link_create_params.rb | 31 +- .../params/payment_link_update_params.rb | 29 + ...ment_method_configuration_create_params.rb | 44 +- ...ayment_method_configuration_list_params.rb | 4 + ...ment_method_configuration_update_params.rb | 44 +- .../params/payment_method_create_params.rb | 12 +- lib/stripe/params/payout_create_params.rb | 2 +- .../params/setup_intent_confirm_params.rb | 20 +- .../params/setup_intent_create_params.rb | 20 +- .../params/setup_intent_update_params.rb | 20 +- .../params/subscription_create_params.rb | 72 +- .../params/subscription_item_create_params.rb | 8 +- .../params/subscription_item_delete_params.rb | 8 +- .../params/subscription_item_update_params.rb | 8 +- .../subscription_schedule_create_params.rb | 4 + .../subscription_schedule_update_params.rb | 4 + .../params/subscription_update_params.rb | 70 +- .../terminal/configuration_create_params.rb | 52 + .../terminal/configuration_update_params.rb | 52 + .../confirmation_token_create_params.rb | 12 +- .../test_helpers/test_clock_create_params.rb | 5 +- .../meter_event_adjustment_create_params.rb | 4 +- .../product_catalog/import_create_params.rb | 25 + .../product_catalog/import_list_params.rb | 54 + .../product_catalog/import_retrieve_params.rb | 12 + .../params/v2/core/account_create_params.rb | 34 +- .../v2/core/account_token_create_params.rb | 32 +- .../params/v2/core/account_update_params.rb | 36 +- .../core/event_destination_create_params.rb | 23 + lib/stripe/resources.rb | 25 + lib/stripe/resources/account.rb | 4 + lib/stripe/resources/balance_settings.rb | 44 +- lib/stripe/resources/charge.rb | 35 + lib/stripe/resources/checkout/session.rb | 30 +- lib/stripe/resources/confirmation_token.rb | 26 + lib/stripe/resources/discount.rb | 4 +- lib/stripe/resources/invoice.rb | 2 + lib/stripe/resources/invoice_item.rb | 35 +- lib/stripe/resources/issuing/dispute.rb | 2 +- .../issuing/personalization_design.rb | 2 +- lib/stripe/resources/mandate.rb | 13 + .../resources/payment_attempt_record.rb | 50 +- lib/stripe/resources/payment_intent.rb | 76 +- lib/stripe/resources/payment_link.rb | 40 + lib/stripe/resources/payment_method.rb | 26 + .../resources/payment_method_configuration.rb | 68 + lib/stripe/resources/payment_record.rb | 50 +- .../resources/radar/payment_evaluation.rb | 2 +- lib/stripe/resources/refund.rb | 13 + lib/stripe/resources/setup_attempt.rb | 13 + lib/stripe/resources/setup_intent.rb | 26 + lib/stripe/resources/subscription.rb | 81 +- lib/stripe/resources/subscription_item.rb | 2 + lib/stripe/resources/subscription_schedule.rb | 2 + .../resources/terminal/configuration.rb | 64 + lib/stripe/resources/terminal/reader.rb | 116 + .../v2/billing/meter_event_adjustment.rb | 6 +- .../v2/billing/meter_event_session.rb | 6 +- .../v2/commerce/product_catalog_import.rb | 274 ++ lib/stripe/resources/v2/core/account.rb | 47 +- lib/stripe/resources/v2/core/account_token.rb | 2 +- lib/stripe/resources/v2/core/event.rb | 1 + .../resources/v2/core/event_destination.rb | 24 + lib/stripe/services.rb | 12 + lib/stripe/services/payment_intent_service.rb | 4 +- lib/stripe/services/subscription_service.rb | 4 +- .../v2/billing/meter_event_session_service.rb | 2 +- .../product_catalog/import_service.rb | 45 + .../v2/commerce/product_catalog_service.rb | 17 + lib/stripe/services/v2/commerce_service.rb | 15 + .../services/v2/core/account_service.rb | 2 +- .../services/v2/core/account_token_service.rb | 6 +- .../v2/core/accounts/person_token_service.rb | 3 +- lib/stripe/services/v2/core/event_service.rb | 3 +- lib/stripe/services/v2_services.rb | 3 +- rbi/stripe.rbi | 3038 +++++++++++++++-- rbi/stripe/params/account_create_params.rbi | 36 +- rbi/stripe/params/account_update_params.rbi | 36 +- .../params/balance_settings_update_params.rbi | 69 +- rbi/stripe/params/charge_create_params.rbi | 11 +- .../params/checkout/session_create_params.rbi | 51 +- .../confirmation_token_create_params.rbi | 24 +- .../params/invoice_create_preview_params.rbi | 102 +- .../params/payment_intent_capture_params.rbi | 4 +- .../params/payment_intent_confirm_params.rbi | 66 +- .../params/payment_intent_create_params.rbi | 115 +- ..._intent_increment_authorization_params.rbi | 4 +- .../params/payment_intent_update_params.rbi | 107 +- .../params/payment_link_create_params.rbi | 51 +- .../params/payment_link_update_params.rbi | 53 +- ...ent_method_configuration_create_params.rbi | 68 +- ...yment_method_configuration_list_params.rbi | 8 +- ...ent_method_configuration_update_params.rbi | 68 +- .../params/payment_method_create_params.rbi | 22 +- rbi/stripe/params/payout_create_params.rbi | 2 +- .../params/setup_intent_confirm_params.rbi | 35 +- .../params/setup_intent_create_params.rbi | 35 +- .../params/setup_intent_update_params.rbi | 35 +- .../params/subscription_create_params.rbi | 110 +- .../subscription_item_create_params.rbi | 8 +- .../subscription_item_delete_params.rbi | 8 +- .../subscription_item_update_params.rbi | 8 +- .../subscription_schedule_create_params.rbi | 8 +- .../subscription_schedule_update_params.rbi | 8 +- .../params/subscription_update_params.rbi | 110 +- .../terminal/configuration_create_params.rbi | 70 +- .../terminal/configuration_update_params.rbi | 78 +- .../confirmation_token_create_params.rbi | 26 +- .../test_helpers/test_clock_create_params.rbi | 9 +- .../meter_event_adjustment_create_params.rbi | 4 +- .../product_catalog/import_create_params.rbi | 31 + .../product_catalog/import_list_params.rbi | 72 + .../import_retrieve_params.rbi | 13 + .../params/v2/core/account_create_params.rbi | 56 +- .../v2/core/account_token_create_params.rbi | 54 +- .../params/v2/core/account_update_params.rbi | 58 +- .../core/event_destination_create_params.rbi | 35 +- rbi/stripe/resources/account.rbi | 6 + rbi/stripe/resources/balance_settings.rbi | 47 +- rbi/stripe/resources/charge.rbi | 33 + rbi/stripe/resources/checkout/session.rbi | 29 +- rbi/stripe/resources/confirmation_token.rbi | 24 + rbi/stripe/resources/discount.rbi | 4 +- rbi/stripe/resources/invoice.rbi | 3 + rbi/stripe/resources/invoice_item.rbi | 36 +- rbi/stripe/resources/issuing/dispute.rbi | 2 +- .../issuing/personalization_design.rbi | 2 +- rbi/stripe/resources/mandate.rbi | 12 + .../resources/payment_attempt_record.rbi | 48 +- rbi/stripe/resources/payment_intent.rbi | 76 +- rbi/stripe/resources/payment_link.rbi | 36 + rbi/stripe/resources/payment_method.rbi | 22 + .../payment_method_configuration.rbi | 68 + rbi/stripe/resources/payment_record.rbi | 48 +- .../resources/radar/payment_evaluation.rbi | 2 +- rbi/stripe/resources/refund.rbi | 12 + rbi/stripe/resources/setup_attempt.rbi | 12 + rbi/stripe/resources/setup_intent.rbi | 24 + rbi/stripe/resources/subscription.rbi | 85 +- rbi/stripe/resources/subscription_item.rbi | 3 + .../resources/subscription_schedule.rbi | 3 + .../resources/terminal/configuration.rbi | 56 + rbi/stripe/resources/terminal/reader.rbi | 134 + .../v2/billing/meter_event_adjustment.rbi | 6 +- .../v2/billing/meter_event_session.rbi | 6 +- .../v2/commerce/product_catalog_import.rbi | 242 ++ rbi/stripe/resources/v2/core/account.rbi | 47 +- .../resources/v2/core/account_token.rbi | 2 +- rbi/stripe/resources/v2/core/event.rbi | 1 + .../resources/v2/core/event_destination.rbi | 26 + .../services/payment_intent_service.rbi | 4 +- rbi/stripe/services/subscription_service.rbi | 4 +- .../billing/meter_event_session_service.rbi | 2 +- .../product_catalog/import_service.rbi | 31 + .../v2/commerce/product_catalog_service.rbi | 13 + rbi/stripe/services/v2/commerce_service.rbi | 11 + .../services/v2/core/account_service.rbi | 2 +- .../v2/core/account_token_service.rbi | 6 +- .../v2/core/accounts/person_token_service.rbi | 3 +- rbi/stripe/services/v2/core/event_service.rbi | 3 +- rbi/stripe/services/v2_services.rbi | 1 + test/stripe/generated_examples_test.rb | 43 + 184 files changed, 8101 insertions(+), 664 deletions(-) create mode 100644 lib/stripe/events/v2_commerce_product_catalog_imports_failed_event.rb create mode 100644 lib/stripe/events/v2_commerce_product_catalog_imports_processing_event.rb create mode 100644 lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_event.rb create mode 100644 lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_with_errors_event.rb create mode 100644 lib/stripe/params/v2/commerce/product_catalog/import_create_params.rb create mode 100644 lib/stripe/params/v2/commerce/product_catalog/import_list_params.rb create mode 100644 lib/stripe/params/v2/commerce/product_catalog/import_retrieve_params.rb create mode 100644 lib/stripe/resources/v2/commerce/product_catalog_import.rb create mode 100644 lib/stripe/services/v2/commerce/product_catalog/import_service.rb create mode 100644 lib/stripe/services/v2/commerce/product_catalog_service.rb create mode 100644 lib/stripe/services/v2/commerce_service.rb create mode 100644 rbi/stripe/params/v2/commerce/product_catalog/import_create_params.rbi create mode 100644 rbi/stripe/params/v2/commerce/product_catalog/import_list_params.rbi create mode 100644 rbi/stripe/params/v2/commerce/product_catalog/import_retrieve_params.rbi create mode 100644 rbi/stripe/resources/v2/commerce/product_catalog_import.rbi create mode 100644 rbi/stripe/services/v2/commerce/product_catalog/import_service.rbi create mode 100644 rbi/stripe/services/v2/commerce/product_catalog_service.rbi create mode 100644 rbi/stripe/services/v2/commerce_service.rbi diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index da5c58a23..ea98017b1 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -9aa5ee4ed2b929f65b7fbf7c341f938682888500 \ No newline at end of file +081f4305a2d6baea93b13ba5fa64f42d7c6b1633 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 048a4fc1a..30723023b 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2252 \ No newline at end of file +v2277 \ No newline at end of file diff --git a/lib/stripe/api_version.rb b/lib/stripe/api_version.rb index 410dfeefd..125f509b1 100644 --- a/lib/stripe/api_version.rb +++ b/lib/stripe/api_version.rb @@ -3,7 +3,7 @@ module Stripe module ApiVersion - CURRENT = "2026-04-22.dahlia" + CURRENT = "2026-05-27.dahlia" CURRENT_MAJOR = "dahlia" end end diff --git a/lib/stripe/event_types.rb b/lib/stripe/event_types.rb index 6fb3dd86d..387b138da 100644 --- a/lib/stripe/event_types.rb +++ b/lib/stripe/event_types.rb @@ -8,6 +8,14 @@ def self.v2_event_types_to_classes Events::V1BillingMeterErrorReportTriggeredEvent.lookup_type => Events::V1BillingMeterErrorReportTriggeredEvent, Events::V1BillingMeterNoMeterFoundEvent.lookup_type => Events::V1BillingMeterNoMeterFoundEvent, + Events::V2CommerceProductCatalogImportsFailedEvent.lookup_type => + Events::V2CommerceProductCatalogImportsFailedEvent, + Events::V2CommerceProductCatalogImportsProcessingEvent.lookup_type => + Events::V2CommerceProductCatalogImportsProcessingEvent, + Events::V2CommerceProductCatalogImportsSucceededEvent.lookup_type => + Events::V2CommerceProductCatalogImportsSucceededEvent, + Events::V2CommerceProductCatalogImportsSucceededWithErrorsEvent.lookup_type => + Events::V2CommerceProductCatalogImportsSucceededWithErrorsEvent, Events::V2CoreAccountClosedEvent.lookup_type => Events::V2CoreAccountClosedEvent, Events::V2CoreAccountCreatedEvent.lookup_type => Events::V2CoreAccountCreatedEvent, Events::V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.lookup_type => @@ -47,6 +55,14 @@ def self.event_notification_types_to_classes Events::V1BillingMeterErrorReportTriggeredEventNotification, Events::V1BillingMeterNoMeterFoundEventNotification.lookup_type => Events::V1BillingMeterNoMeterFoundEventNotification, + Events::V2CommerceProductCatalogImportsFailedEventNotification.lookup_type => + Events::V2CommerceProductCatalogImportsFailedEventNotification, + Events::V2CommerceProductCatalogImportsProcessingEventNotification.lookup_type => + Events::V2CommerceProductCatalogImportsProcessingEventNotification, + Events::V2CommerceProductCatalogImportsSucceededEventNotification.lookup_type => + Events::V2CommerceProductCatalogImportsSucceededEventNotification, + Events::V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification.lookup_type => + Events::V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification, Events::V2CoreAccountClosedEventNotification.lookup_type => Events::V2CoreAccountClosedEventNotification, Events::V2CoreAccountCreatedEventNotification.lookup_type => diff --git a/lib/stripe/events/v2_commerce_product_catalog_imports_failed_event.rb b/lib/stripe/events/v2_commerce_product_catalog_imports_failed_event.rb new file mode 100644 index 000000000..f29788875 --- /dev/null +++ b/lib/stripe/events/v2_commerce_product_catalog_imports_failed_event.rb @@ -0,0 +1,44 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module Events + # Occurs when a product catalog import cannot be processed or if processing fails unexpectedly. + class V2CommerceProductCatalogImportsFailedEvent < Stripe::V2::Core::Event + def self.lookup_type + "v2.commerce.product_catalog.imports.failed" + end + + # Retrieves the related object from the API. Makes an API request on every call. + def fetch_related_object + _request( + method: :get, + path: related_object.url, + base_address: :api, + opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" } + ) + end + attr_reader :related_object + end + + # Occurs when a product catalog import cannot be processed or if processing fails unexpectedly. + class V2CommerceProductCatalogImportsFailedEventNotification < Stripe::V2::Core::EventNotification + def self.lookup_type + "v2.commerce.product_catalog.imports.failed" + end + + attr_reader :related_object + + # Retrieves the ProductCatalogImport related to this EventNotification from the Stripe API. Makes an API request on every call. + def fetch_related_object + resp = @client.raw_request( + :get, + related_object.url, + opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }, + usage: ["fetch_related_object"] + ) + @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) + end + end + end +end diff --git a/lib/stripe/events/v2_commerce_product_catalog_imports_processing_event.rb b/lib/stripe/events/v2_commerce_product_catalog_imports_processing_event.rb new file mode 100644 index 000000000..931bd9106 --- /dev/null +++ b/lib/stripe/events/v2_commerce_product_catalog_imports_processing_event.rb @@ -0,0 +1,44 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module Events + # Occurs when a product catalog import file has been uploaded and has started processing. + class V2CommerceProductCatalogImportsProcessingEvent < Stripe::V2::Core::Event + def self.lookup_type + "v2.commerce.product_catalog.imports.processing" + end + + # Retrieves the related object from the API. Makes an API request on every call. + def fetch_related_object + _request( + method: :get, + path: related_object.url, + base_address: :api, + opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" } + ) + end + attr_reader :related_object + end + + # Occurs when a product catalog import file has been uploaded and has started processing. + class V2CommerceProductCatalogImportsProcessingEventNotification < Stripe::V2::Core::EventNotification + def self.lookup_type + "v2.commerce.product_catalog.imports.processing" + end + + attr_reader :related_object + + # Retrieves the ProductCatalogImport related to this EventNotification from the Stripe API. Makes an API request on every call. + def fetch_related_object + resp = @client.raw_request( + :get, + related_object.url, + opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }, + usage: ["fetch_related_object"] + ) + @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) + end + end + end +end diff --git a/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_event.rb b/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_event.rb new file mode 100644 index 000000000..cddc0645b --- /dev/null +++ b/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_event.rb @@ -0,0 +1,44 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module Events + # Occurs when a product catalog file has been uploaded successfully and passed validation. + class V2CommerceProductCatalogImportsSucceededEvent < Stripe::V2::Core::Event + def self.lookup_type + "v2.commerce.product_catalog.imports.succeeded" + end + + # Retrieves the related object from the API. Makes an API request on every call. + def fetch_related_object + _request( + method: :get, + path: related_object.url, + base_address: :api, + opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" } + ) + end + attr_reader :related_object + end + + # Occurs when a product catalog file has been uploaded successfully and passed validation. + class V2CommerceProductCatalogImportsSucceededEventNotification < Stripe::V2::Core::EventNotification + def self.lookup_type + "v2.commerce.product_catalog.imports.succeeded" + end + + attr_reader :related_object + + # Retrieves the ProductCatalogImport related to this EventNotification from the Stripe API. Makes an API request on every call. + def fetch_related_object + resp = @client.raw_request( + :get, + related_object.url, + opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }, + usage: ["fetch_related_object"] + ) + @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) + end + end + end +end diff --git a/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_with_errors_event.rb b/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_with_errors_event.rb new file mode 100644 index 000000000..006e6b122 --- /dev/null +++ b/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_with_errors_event.rb @@ -0,0 +1,44 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module Events + # Occurs when a product catalog file has been successfully processed but some rows failed validation. + class V2CommerceProductCatalogImportsSucceededWithErrorsEvent < Stripe::V2::Core::Event + def self.lookup_type + "v2.commerce.product_catalog.imports.succeeded_with_errors" + end + + # Retrieves the related object from the API. Makes an API request on every call. + def fetch_related_object + _request( + method: :get, + path: related_object.url, + base_address: :api, + opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" } + ) + end + attr_reader :related_object + end + + # Occurs when a product catalog file has been successfully processed but some rows failed validation. + class V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification < Stripe::V2::Core::EventNotification + def self.lookup_type + "v2.commerce.product_catalog.imports.succeeded_with_errors" + end + + attr_reader :related_object + + # Retrieves the ProductCatalogImport related to this EventNotification from the Stripe API. Makes an API request on every call. + def fetch_related_object + resp = @client.raw_request( + :get, + related_object.url, + opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }, + usage: ["fetch_related_object"] + ) + @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url)) + end + end + end +end diff --git a/lib/stripe/object_types.rb b/lib/stripe/object_types.rb index beb7e756b..cf8741f9e 100644 --- a/lib/stripe/object_types.rb +++ b/lib/stripe/object_types.rb @@ -171,6 +171,7 @@ def self.v2_object_names_to_classes V2::Billing::MeterEvent.object_name => V2::Billing::MeterEvent, V2::Billing::MeterEventAdjustment.object_name => V2::Billing::MeterEventAdjustment, V2::Billing::MeterEventSession.object_name => V2::Billing::MeterEventSession, + V2::Commerce::ProductCatalogImport.object_name => V2::Commerce::ProductCatalogImport, V2::Core::Account.object_name => V2::Core::Account, V2::Core::AccountLink.object_name => V2::Core::AccountLink, V2::Core::AccountPerson.object_name => V2::Core::AccountPerson, diff --git a/lib/stripe/params.rb b/lib/stripe/params.rb index 91b614b41..bf2d568fd 100644 --- a/lib/stripe/params.rb +++ b/lib/stripe/params.rb @@ -679,6 +679,14 @@ module Billing autoload :MeterEventStreamCreateParams, "stripe/params/v2/billing/meter_event_stream_create_params" end + module Commerce + module ProductCatalog + autoload :ImportCreateParams, "stripe/params/v2/commerce/product_catalog/import_create_params" + autoload :ImportListParams, "stripe/params/v2/commerce/product_catalog/import_list_params" + autoload :ImportRetrieveParams, "stripe/params/v2/commerce/product_catalog/import_retrieve_params" + end + end + module Core autoload :AccountCloseParams, "stripe/params/v2/core/account_close_params" autoload :AccountCreateParams, "stripe/params/v2/core/account_create_params" @@ -1299,6 +1307,9 @@ module Stripe stripe/params/v2/billing/meter_event_create_params stripe/params/v2/billing/meter_event_session_create_params stripe/params/v2/billing/meter_event_stream_create_params + stripe/params/v2/commerce/product_catalog/import_create_params + stripe/params/v2/commerce/product_catalog/import_list_params + stripe/params/v2/commerce/product_catalog/import_retrieve_params stripe/params/v2/core/account_close_params stripe/params/v2/core/account_create_params stripe/params/v2/core/account_link_create_params diff --git a/lib/stripe/params/account_create_params.rb b/lib/stripe/params/account_create_params.rb index d094552d6..ac9e4ce26 100644 --- a/lib/stripe/params/account_create_params.rb +++ b/lib/stripe/params/account_create_params.rb @@ -250,6 +250,15 @@ def initialize(requested: nil) end end + class BizumPayments < ::Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end + class BlikPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -601,6 +610,15 @@ def initialize(requested: nil) end end + class ScalapayPayments < ::Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end + class SepaBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -748,6 +766,8 @@ def initialize(requested: nil) attr_accessor :bank_transfer_payments # The billie_payments capability. attr_accessor :billie_payments + # The bizum_payments capability. + attr_accessor :bizum_payments # The blik_payments capability. attr_accessor :blik_payments # The boleto_payments capability. @@ -826,6 +846,8 @@ def initialize(requested: nil) attr_accessor :samsung_pay_payments # The satispay_payments capability. attr_accessor :satispay_payments + # The scalapay_payments capability. + attr_accessor :scalapay_payments # The sepa_bank_transfer_payments capability. attr_accessor :sepa_bank_transfer_payments # The sepa_debit_payments capability. @@ -867,6 +889,7 @@ def initialize( bancontact_payments: nil, bank_transfer_payments: nil, billie_payments: nil, + bizum_payments: nil, blik_payments: nil, boleto_payments: nil, card_issuing: nil, @@ -906,6 +929,7 @@ def initialize( revolut_pay_payments: nil, samsung_pay_payments: nil, satispay_payments: nil, + scalapay_payments: nil, sepa_bank_transfer_payments: nil, sepa_debit_payments: nil, sofort_payments: nil, @@ -932,6 +956,7 @@ def initialize( @bancontact_payments = bancontact_payments @bank_transfer_payments = bank_transfer_payments @billie_payments = billie_payments + @bizum_payments = bizum_payments @blik_payments = blik_payments @boleto_payments = boleto_payments @card_issuing = card_issuing @@ -971,6 +996,7 @@ def initialize( @revolut_pay_payments = revolut_pay_payments @samsung_pay_payments = samsung_pay_payments @satispay_payments = satispay_payments + @scalapay_payments = scalapay_payments @sepa_bank_transfer_payments = sepa_bank_transfer_payments @sepa_debit_payments = sepa_debit_payments @sofort_payments = sofort_payments diff --git a/lib/stripe/params/account_update_params.rb b/lib/stripe/params/account_update_params.rb index a118502e8..12b670e15 100644 --- a/lib/stripe/params/account_update_params.rb +++ b/lib/stripe/params/account_update_params.rb @@ -250,6 +250,15 @@ def initialize(requested: nil) end end + class BizumPayments < ::Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end + class BlikPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -601,6 +610,15 @@ def initialize(requested: nil) end end + class ScalapayPayments < ::Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end + class SepaBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -748,6 +766,8 @@ def initialize(requested: nil) attr_accessor :bank_transfer_payments # The billie_payments capability. attr_accessor :billie_payments + # The bizum_payments capability. + attr_accessor :bizum_payments # The blik_payments capability. attr_accessor :blik_payments # The boleto_payments capability. @@ -826,6 +846,8 @@ def initialize(requested: nil) attr_accessor :samsung_pay_payments # The satispay_payments capability. attr_accessor :satispay_payments + # The scalapay_payments capability. + attr_accessor :scalapay_payments # The sepa_bank_transfer_payments capability. attr_accessor :sepa_bank_transfer_payments # The sepa_debit_payments capability. @@ -867,6 +889,7 @@ def initialize( bancontact_payments: nil, bank_transfer_payments: nil, billie_payments: nil, + bizum_payments: nil, blik_payments: nil, boleto_payments: nil, card_issuing: nil, @@ -906,6 +929,7 @@ def initialize( revolut_pay_payments: nil, samsung_pay_payments: nil, satispay_payments: nil, + scalapay_payments: nil, sepa_bank_transfer_payments: nil, sepa_debit_payments: nil, sofort_payments: nil, @@ -932,6 +956,7 @@ def initialize( @bancontact_payments = bancontact_payments @bank_transfer_payments = bank_transfer_payments @billie_payments = billie_payments + @bizum_payments = bizum_payments @blik_payments = blik_payments @boleto_payments = boleto_payments @card_issuing = card_issuing @@ -971,6 +996,7 @@ def initialize( @revolut_pay_payments = revolut_pay_payments @samsung_pay_payments = samsung_pay_payments @satispay_payments = satispay_payments + @scalapay_payments = scalapay_payments @sepa_bank_transfer_payments = sepa_bank_transfer_payments @sepa_debit_payments = sepa_debit_payments @sofort_payments = sofort_payments diff --git a/lib/stripe/params/balance_settings_update_params.rb b/lib/stripe/params/balance_settings_update_params.rb index 9ed21810b..a4e069663 100644 --- a/lib/stripe/params/balance_settings_update_params.rb +++ b/lib/stripe/params/balance_settings_update_params.rb @@ -5,6 +5,21 @@ module Stripe class BalanceSettingsUpdateParams < ::Stripe::RequestParams class Payments < ::Stripe::RequestParams class Payouts < ::Stripe::RequestParams + class AutomaticTransferRulesByCurrency < ::Stripe::RequestParams + # The ID of the FinancialAccount that funds will be transferred to during automatic transfers. + attr_accessor :payout_method + # The maximum amount in minor units to transfer to the FinancialAccount. Required and only applicable when `type` is `transfer_up_to_amount`. + attr_accessor :transfer_up_to_amount + # The type of automatic transfer rule. + attr_accessor :type + + def initialize(payout_method: nil, transfer_up_to_amount: nil, type: nil) + @payout_method = payout_method + @transfer_up_to_amount = transfer_up_to_amount + @type = type + end + end + class Schedule < ::Stripe::RequestParams # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`. attr_accessor :interval @@ -19,6 +34,8 @@ def initialize(interval: nil, monthly_payout_days: nil, weekly_payout_days: nil) @weekly_payout_days = weekly_payout_days end end + # Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount. + attr_accessor :automatic_transfer_rules_by_currency # The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](/payouts/minimum-balances-for-automatic-payouts). attr_accessor :minimum_balance_by_currency # Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation. @@ -26,7 +43,13 @@ def initialize(interval: nil, monthly_payout_days: nil, weekly_payout_days: nil) # The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard. attr_accessor :statement_descriptor - def initialize(minimum_balance_by_currency: nil, schedule: nil, statement_descriptor: nil) + def initialize( + automatic_transfer_rules_by_currency: nil, + minimum_balance_by_currency: nil, + schedule: nil, + statement_descriptor: nil + ) + @automatic_transfer_rules_by_currency = automatic_transfer_rules_by_currency @minimum_balance_by_currency = minimum_balance_by_currency @schedule = schedule @statement_descriptor = statement_descriptor @@ -34,11 +57,28 @@ def initialize(minimum_balance_by_currency: nil, schedule: nil, statement_descri end class SettlementTiming < ::Stripe::RequestParams + class StartOfDay < ::Stripe::RequestParams + # Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](/connect/customized-start-of-day#available-timezones-and-cutoffs). + attr_accessor :hour + # Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30. + attr_accessor :minutes + # Timezone for the customized start of day. Must be a [supported customized start of day timezone](/connect/customized-start-of-day#available-timezones-and-cutoffs). + attr_accessor :timezone + + def initialize(hour: nil, minutes: nil, timezone: nil) + @hour = hour + @minutes = minutes + @timezone = timezone + end + end # Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available. The maximum value is 31. Passing an empty string to `delay_days_override` will return `delay_days` to the default, which is the lowest available value for the account. [Learn more about controlling delay days](/connect/manage-payout-schedule). attr_accessor :delay_days_override + # Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](/connect/customized-start-of-day) documentation. + attr_accessor :start_of_day - def initialize(delay_days_override: nil) + def initialize(delay_days_override: nil, start_of_day: nil) @delay_days_override = delay_days_override + @start_of_day = start_of_day end end # A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances). diff --git a/lib/stripe/params/charge_create_params.rb b/lib/stripe/params/charge_create_params.rb index 574e57c61..a5dbb4525 100644 --- a/lib/stripe/params/charge_create_params.rb +++ b/lib/stripe/params/charge_create_params.rb @@ -78,11 +78,14 @@ def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_numbe class TransferData < ::Stripe::RequestParams # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account. attr_accessor :amount + # An arbitrary string attached to the transfer. Often useful for displaying to users. + attr_accessor :description # ID of an existing, connected Stripe account. attr_accessor :destination - def initialize(amount: nil, destination: nil) + def initialize(amount: nil, description: nil, destination: nil) @amount = amount + @description = description @destination = destination end end diff --git a/lib/stripe/params/checkout/session_create_params.rb b/lib/stripe/params/checkout/session_create_params.rb index b738419c0..be95a86a0 100644 --- a/lib/stripe/params/checkout/session_create_params.rb +++ b/lib/stripe/params/checkout/session_create_params.rb @@ -138,7 +138,7 @@ def initialize(position: nil) attr_accessor :payment_method_reuse_agreement # If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout # Session will determine whether to display an option to opt into promotional communication - # from the merchant depending on the customer's locale. Only available to US merchants. + # from the merchant depending on the customer's locale. Only available to US merchants and US customers. attr_accessor :promotions # If set to `required`, it requires customers to check a terms of service checkbox before being able to pay. # There must be a valid terms of service URL set in your [Dashboard settings](https://dashboard.stripe.com/settings/public). @@ -1021,7 +1021,7 @@ def initialize(enabled: nil) end class Restrictions < ::Stripe::RequestParams - # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. + # The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. attr_accessor :brands_blocked def initialize(brands_blocked: nil) @@ -1685,6 +1685,15 @@ def initialize(capture_method: nil) end end + class Scalapay < ::Stripe::RequestParams + # Controls when the funds will be captured from the customer's account. + attr_accessor :capture_method + + def initialize(capture_method: nil) + @capture_method = capture_method + end + end + class SepaDebit < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. @@ -1842,7 +1851,7 @@ def initialize(app_id: nil, client: nil, setup_future_usage: nil) @setup_future_usage = setup_future_usage end end - # contains details about the ACSS Debit payment method options. You can't set this parameter if `ui_mode` is `custom`. + # contains details about the ACSS Debit payment method options. You can't set this parameter if `ui_mode` is `elements`. attr_accessor :acss_debit # contains details about the Affirm payment method options. attr_accessor :affirm @@ -1892,7 +1901,7 @@ def initialize(app_id: nil, client: nil, setup_future_usage: nil) attr_accessor :konbini # contains details about the Korean card payment method options. attr_accessor :kr_card - # contains details about the Link payment method options. + # contains details about the Link payment method options (Link is also known as Onelink in the UK). attr_accessor :link # contains details about the Mobilepay payment method options. attr_accessor :mobilepay @@ -1922,6 +1931,8 @@ def initialize(app_id: nil, client: nil, setup_future_usage: nil) attr_accessor :samsung_pay # contains details about the Satispay payment method options. attr_accessor :satispay + # contains details about the Scalapay payment method options. + attr_accessor :scalapay # contains details about the Sepa Debit payment method options. attr_accessor :sepa_debit # contains details about the Sofort payment method options. @@ -1978,6 +1989,7 @@ def initialize( revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, swish: nil, @@ -2026,6 +2038,7 @@ def initialize( @revolut_pay = revolut_pay @samsung_pay = samsung_pay @satispay = satispay + @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort @swish = swish @@ -2293,7 +2306,7 @@ def initialize(end_behavior: nil) end # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. To use an application fee percent, the request must be made on behalf of another account, using the `Stripe-Account` header or an OAuth key. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions). attr_accessor :application_fee_percent - # A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `custom`. + # A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `elements`. attr_accessor :billing_cycle_anchor # Controls how prorations and invoices for subscriptions are calculated and orchestrated. attr_accessor :billing_mode @@ -2378,7 +2391,7 @@ def initialize(display: nil) @display = display end end - # contains details about the Link wallet options. + # contains details about the Link wallet options (Link is also known as Onelink in the UK). attr_accessor :link def initialize(link: nil) @@ -2387,7 +2400,7 @@ def initialize(link: nil) end # Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing). attr_accessor :adaptive_pricing - # Configure actions after a Checkout Session has expired. You can't set this parameter if `ui_mode` is `custom`. + # Configure actions after a Checkout Session has expired. You can't set this parameter if `ui_mode` is `elements`. attr_accessor :after_expiration # Enables user redeemable promotion codes. attr_accessor :allow_promotion_codes @@ -2395,9 +2408,9 @@ def initialize(link: nil) attr_accessor :automatic_tax # Specify whether Checkout should collect the customer's billing address. Defaults to `auto`. attr_accessor :billing_address_collection - # The branding settings for the Checkout Session. This parameter is not allowed if ui_mode is `custom`. + # The branding settings for the Checkout Session. This parameter is not allowed if ui_mode is `elements`. attr_accessor :branding_settings - # If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded` or `custom`. + # If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded_page` or `elements`. attr_accessor :cancel_url # A unique string to reference the Checkout Session. This can be a # customer ID, a cart ID, or similar, and can be used to reconcile the @@ -2487,7 +2500,7 @@ def initialize(link: nil) # # You can't set this parameter if `ui_mode` is `custom`. attr_accessor :optional_items - # Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter if `ui_mode` is `custom`. + # Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter if `ui_mode` is `elements`. attr_accessor :origin_context # A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode. attr_accessor :payment_intent_data @@ -2525,10 +2538,10 @@ def initialize(link: nil) # We recommend that you review your privacy policy and check with your legal contacts # before using this feature. Learn more about [collecting phone numbers with Checkout](https://docs.stripe.com/payments/checkout/phone-numbers). attr_accessor :phone_number_collection - # This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. + # This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. attr_accessor :redirect_on_completion # The URL to redirect your customer back to after they authenticate or cancel their payment on the - # payment method's app or site. This parameter is required if `ui_mode` is `embedded` or `custom` + # payment method's app or site. This parameter is required if `ui_mode` is `embedded_page` or `elements` # and redirect-based payment methods are enabled on the session. attr_accessor :return_url # Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode. @@ -2543,19 +2556,19 @@ def initialize(link: nil) # to customize relevant text on the page, such as the submit button. # `submit_type` can only be specified on Checkout Sessions in # `payment` or `subscription` mode. If blank or `auto`, `pay` is used. - # You can't set this parameter if `ui_mode` is `custom`. + # You can't set this parameter if `ui_mode` is `elements`. attr_accessor :submit_type # A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode. attr_accessor :subscription_data # The URL to which Stripe should send customers when payment or setup # is complete. - # This parameter is not allowed if ui_mode is `embedded` or `custom`. If you'd like to use + # This parameter is not allowed if ui_mode is `embedded_page` or `elements`. If you'd like to use # information from the successful Checkout Session on your page, read the # guide on [customizing your success page](https://docs.stripe.com/payments/checkout/custom-success-page). attr_accessor :success_url # Controls tax ID collection during checkout. attr_accessor :tax_id_collection - # The UI mode of the Session. Defaults to `hosted`. + # The UI mode of the Session. Defaults to `hosted_page`. attr_accessor :ui_mode # Wallet-specific configuration. attr_accessor :wallet_options diff --git a/lib/stripe/params/confirmation_token_create_params.rb b/lib/stripe/params/confirmation_token_create_params.rb index bf7f541fa..971ed1cb7 100644 --- a/lib/stripe/params/confirmation_token_create_params.rb +++ b/lib/stripe/params/confirmation_token_create_params.rb @@ -103,6 +103,7 @@ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil) end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams @@ -270,6 +271,7 @@ def initialize(session: nil) class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. @@ -372,6 +374,8 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :billie # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. attr_accessor :billing_details + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + attr_accessor :bizum # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. attr_accessor :blik # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. @@ -402,7 +406,7 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :konbini # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. attr_accessor :kr_card - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). attr_accessor :link # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. attr_accessor :mb_way @@ -442,6 +446,8 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :samsung_pay # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. attr_accessor :satispay + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + attr_accessor :scalapay # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -476,6 +482,7 @@ def initialize( bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -511,6 +518,7 @@ def initialize( revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -534,6 +542,7 @@ def initialize( @bancontact = bancontact @billie = billie @billing_details = billing_details + @bizum = bizum @blik = blik @boleto = boleto @cashapp = cashapp @@ -569,6 +578,7 @@ def initialize( @revolut_pay = revolut_pay @samsung_pay = samsung_pay @satispay = satispay + @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort @sunbit = sunbit diff --git a/lib/stripe/params/invoice_create_preview_params.rb b/lib/stripe/params/invoice_create_preview_params.rb index 069139cbc..f21ed9c97 100644 --- a/lib/stripe/params/invoice_create_preview_params.rb +++ b/lib/stripe/params/invoice_create_preview_params.rb @@ -413,6 +413,8 @@ def self.field_encodings @field_encodings = { unit_amount_decimal: :decimal_string } end end + # Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + attr_accessor :discountable # The coupons to redeem into discounts for the item. attr_accessor :discounts # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -429,6 +431,7 @@ def self.field_encodings attr_accessor :tax_rates def initialize( + discountable: nil, discounts: nil, metadata: nil, period: nil, @@ -437,6 +440,7 @@ def initialize( quantity: nil, tax_rates: nil ) + @discountable = discountable @discounts = discounts @metadata = metadata @period = period @@ -851,6 +855,58 @@ def initialize(flexible: nil, type: nil) end end + class BillingSchedule < ::Stripe::RequestParams + class AppliesTo < ::Stripe::RequestParams + # The ID of the price object. + attr_accessor :price + # Controls which subscription items the billing schedule applies to. + attr_accessor :type + + def initialize(price: nil, type: nil) + @price = price + @type = type + end + end + + class BillUntil < ::Stripe::RequestParams + class Duration < ::Stripe::RequestParams + # Specifies billing duration. Either `day`, `week`, `month` or `year`. + attr_accessor :interval + # The multiplier applied to the interval. + attr_accessor :interval_count + + def initialize(interval: nil, interval_count: nil) + @interval = interval + @interval_count = interval_count + end + end + # Specifies the billing period. + attr_accessor :duration + # The end date of the billing schedule. + attr_accessor :timestamp + # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + attr_accessor :type + + def initialize(duration: nil, timestamp: nil, type: nil) + @duration = duration + @timestamp = timestamp + @type = type + end + end + # Configure billing schedule differently for individual subscription items. + attr_accessor :applies_to + # The end date for the billing schedule. + attr_accessor :bill_until + # Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + attr_accessor :key + + def initialize(applies_to: nil, bill_until: nil, key: nil) + @applies_to = applies_to + @bill_until = bill_until + @key = key + end + end + class Item < ::Stripe::RequestParams class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) @@ -980,6 +1036,8 @@ def self.field_encodings attr_accessor :billing_cycle_anchor # Controls how prorations and invoices for subscriptions are calculated and orchestrated. attr_accessor :billing_mode + # Sets the billing schedules for the subscription. + attr_accessor :billing_schedules # A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. attr_accessor :cancel_at # Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`. @@ -1004,6 +1062,7 @@ def self.field_encodings def initialize( billing_cycle_anchor: nil, billing_mode: nil, + billing_schedules: nil, cancel_at: nil, cancel_at_period_end: nil, cancel_now: nil, @@ -1017,6 +1076,7 @@ def initialize( ) @billing_cycle_anchor = billing_cycle_anchor @billing_mode = billing_mode + @billing_schedules = billing_schedules @cancel_at = cancel_at @cancel_at_period_end = cancel_at_period_end @cancel_now = cancel_now diff --git a/lib/stripe/params/payment_intent_capture_params.rb b/lib/stripe/params/payment_intent_capture_params.rb index 12080c0e2..f0587965d 100644 --- a/lib/stripe/params/payment_intent_capture_params.rb +++ b/lib/stripe/params/payment_intent_capture_params.rb @@ -133,9 +133,9 @@ def initialize( class Shipping < ::Stripe::RequestParams # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0. attr_accessor :amount - # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. attr_accessor :from_postal_code - # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. attr_accessor :to_postal_code def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) diff --git a/lib/stripe/params/payment_intent_confirm_params.rb b/lib/stripe/params/payment_intent_confirm_params.rb index 04422aa36..6d5b8a363 100644 --- a/lib/stripe/params/payment_intent_confirm_params.rb +++ b/lib/stripe/params/payment_intent_confirm_params.rb @@ -133,9 +133,9 @@ def initialize( class Shipping < ::Stripe::RequestParams # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0. attr_accessor :amount - # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. attr_accessor :from_postal_code - # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. attr_accessor :to_postal_code def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) @@ -367,6 +367,7 @@ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil) end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams @@ -534,6 +535,7 @@ def initialize(session: nil) class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. @@ -636,6 +638,8 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :billie # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. attr_accessor :billing_details + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + attr_accessor :bizum # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. attr_accessor :blik # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. @@ -666,7 +670,7 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :konbini # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. attr_accessor :kr_card - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). attr_accessor :link # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. attr_accessor :mb_way @@ -706,6 +710,8 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :samsung_pay # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. attr_accessor :satispay + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + attr_accessor :scalapay # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -740,6 +746,7 @@ def initialize( bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -775,6 +782,7 @@ def initialize( revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -798,6 +806,7 @@ def initialize( @bancontact = bancontact @billie = billie @billing_details = billing_details + @bizum = bizum @blik = blik @boleto = boleto @cashapp = cashapp @@ -833,6 +842,7 @@ def initialize( @revolut_pay = revolut_pay @samsung_pay = samsung_pay @satispay = satispay + @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort @sunbit = sunbit @@ -1093,6 +1103,8 @@ def initialize(capture_method: nil) end end + class Bizum < ::Stripe::RequestParams; end + class Blik < ::Stripe::RequestParams # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. attr_accessor :code @@ -2180,6 +2192,19 @@ def initialize(capture_method: nil) end end + class Scalapay < ::Stripe::RequestParams + # Controls when the funds are captured from the customer's account. + # + # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + # + # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + attr_accessor :capture_method + + def initialize(capture_method: nil) + @capture_method = capture_method + end + end + class SepaDebit < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. @@ -2442,6 +2467,8 @@ def initialize(setup_future_usage: nil) attr_accessor :bancontact # If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. attr_accessor :billie + # If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + attr_accessor :bizum # If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options. attr_accessor :blik # If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options. @@ -2476,7 +2503,7 @@ def initialize(setup_future_usage: nil) attr_accessor :konbini # If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. attr_accessor :kr_card - # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). attr_accessor :link # If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options. attr_accessor :mb_way @@ -2512,6 +2539,8 @@ def initialize(setup_future_usage: nil) attr_accessor :samsung_pay # If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. attr_accessor :satispay + # If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + attr_accessor :scalapay # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. @@ -2540,6 +2569,7 @@ def initialize( bacs_debit: nil, bancontact: nil, billie: nil, + bizum: nil, blik: nil, boleto: nil, card: nil, @@ -2575,6 +2605,7 @@ def initialize( revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, swish: nil, @@ -2594,6 +2625,7 @@ def initialize( @bacs_debit = bacs_debit @bancontact = bancontact @billie = billie + @bizum = bizum @blik = blik @boleto = boleto @card = card @@ -2629,6 +2661,7 @@ def initialize( @revolut_pay = revolut_pay @samsung_pay = samsung_pay @satispay = satispay + @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort @swish = swish @@ -2721,7 +2754,7 @@ def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_numbe attr_accessor :mandate # Attribute for param field mandate_data attr_accessor :mandate_data - # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards). + # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect payment method details and [charge them later](https://docs.stripe.com/payments/save-during-payment). attr_accessor :off_session # Provides industry-specific information about the charge. attr_accessor :payment_details diff --git a/lib/stripe/params/payment_intent_create_params.rb b/lib/stripe/params/payment_intent_create_params.rb index 94c790f65..755879429 100644 --- a/lib/stripe/params/payment_intent_create_params.rb +++ b/lib/stripe/params/payment_intent_create_params.rb @@ -133,9 +133,9 @@ def initialize( class Shipping < ::Stripe::RequestParams # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0. attr_accessor :amount - # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. attr_accessor :from_postal_code - # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. attr_accessor :to_postal_code def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) @@ -381,6 +381,7 @@ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil) end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams @@ -548,6 +549,7 @@ def initialize(session: nil) class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. @@ -650,6 +652,8 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :billie # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. attr_accessor :billing_details + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + attr_accessor :bizum # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. attr_accessor :blik # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. @@ -680,7 +684,7 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :konbini # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. attr_accessor :kr_card - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). attr_accessor :link # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. attr_accessor :mb_way @@ -720,6 +724,8 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :samsung_pay # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. attr_accessor :satispay + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + attr_accessor :scalapay # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -754,6 +760,7 @@ def initialize( bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -789,6 +796,7 @@ def initialize( revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -812,6 +820,7 @@ def initialize( @bancontact = bancontact @billie = billie @billing_details = billing_details + @bizum = bizum @blik = blik @boleto = boleto @cashapp = cashapp @@ -847,6 +856,7 @@ def initialize( @revolut_pay = revolut_pay @samsung_pay = samsung_pay @satispay = satispay + @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort @sunbit = sunbit @@ -1107,6 +1117,8 @@ def initialize(capture_method: nil) end end + class Bizum < ::Stripe::RequestParams; end + class Blik < ::Stripe::RequestParams # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. attr_accessor :code @@ -2194,6 +2206,19 @@ def initialize(capture_method: nil) end end + class Scalapay < ::Stripe::RequestParams + # Controls when the funds are captured from the customer's account. + # + # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + # + # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + attr_accessor :capture_method + + def initialize(capture_method: nil) + @capture_method = capture_method + end + end + class SepaDebit < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. @@ -2456,6 +2481,8 @@ def initialize(setup_future_usage: nil) attr_accessor :bancontact # If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. attr_accessor :billie + # If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + attr_accessor :bizum # If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options. attr_accessor :blik # If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options. @@ -2490,7 +2517,7 @@ def initialize(setup_future_usage: nil) attr_accessor :konbini # If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. attr_accessor :kr_card - # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). attr_accessor :link # If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options. attr_accessor :mb_way @@ -2526,6 +2553,8 @@ def initialize(setup_future_usage: nil) attr_accessor :samsung_pay # If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. attr_accessor :satispay + # If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + attr_accessor :scalapay # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. @@ -2554,6 +2583,7 @@ def initialize( bacs_debit: nil, bancontact: nil, billie: nil, + bizum: nil, blik: nil, boleto: nil, card: nil, @@ -2589,6 +2619,7 @@ def initialize( revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, swish: nil, @@ -2608,6 +2639,7 @@ def initialize( @bacs_debit = bacs_debit @bancontact = bancontact @billie = billie + @bizum = bizum @blik = blik @boleto = boleto @card = card @@ -2643,6 +2675,7 @@ def initialize( @revolut_pay = revolut_pay @samsung_pay = samsung_pay @satispay = satispay + @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort @swish = swish @@ -2715,6 +2748,17 @@ def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_numbe end class TransferData < ::Stripe::RequestParams + class PaymentData < ::Stripe::RequestParams + # An arbitrary string attached to the destination payment. Often useful for displaying to users. + attr_accessor :description + # Set of [key-value pairs](https://docs.stripe.com/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_accessor :metadata + + def initialize(description: nil, metadata: nil) + @description = description + @metadata = metadata + end + end # The amount that will be transferred automatically when a charge succeeds. # The amount is capped at the total transaction amount and if no amount is set, # the full amount is transferred. @@ -2723,15 +2767,30 @@ class TransferData < ::Stripe::RequestParams # [application_fee_amount](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-application_fee_amount) # might be a better fit for your integration. attr_accessor :amount + # An arbitrary string attached to the transfer. Often useful for displaying to users. + attr_accessor :description # If specified, successful charges will be attributed to the destination # account for tax reporting, and the funds from charges will be transferred # to the destination account. The ID of the resulting transfer will be # returned on the successful charge's `transfer` field. attr_accessor :destination + # Set of [key-value pairs](https://docs.stripe.com/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_accessor :metadata + # The data with which to populate the destination payment. + attr_accessor :payment_data - def initialize(amount: nil, destination: nil) + def initialize( + amount: nil, + description: nil, + destination: nil, + metadata: nil, + payment_data: nil + ) @amount = amount + @description = description @destination = destination + @metadata = metadata + @payment_data = payment_data end end # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). @@ -2782,7 +2841,7 @@ def initialize(amount: nil, destination: nil) attr_accessor :mandate_data # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. attr_accessor :metadata - # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm). + # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect payment method details and [charge them later](https://docs.stripe.com/payments/save-during-payment). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm). attr_accessor :off_session # The Stripe account ID that these funds are intended for. Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts). attr_accessor :on_behalf_of diff --git a/lib/stripe/params/payment_intent_increment_authorization_params.rb b/lib/stripe/params/payment_intent_increment_authorization_params.rb index 250827fe1..081be00a3 100644 --- a/lib/stripe/params/payment_intent_increment_authorization_params.rb +++ b/lib/stripe/params/payment_intent_increment_authorization_params.rb @@ -133,9 +133,9 @@ def initialize( class Shipping < ::Stripe::RequestParams # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0. attr_accessor :amount - # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. attr_accessor :from_postal_code - # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. attr_accessor :to_postal_code def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) diff --git a/lib/stripe/params/payment_intent_update_params.rb b/lib/stripe/params/payment_intent_update_params.rb index 4e886fb25..dd24a9e88 100644 --- a/lib/stripe/params/payment_intent_update_params.rb +++ b/lib/stripe/params/payment_intent_update_params.rb @@ -133,9 +133,9 @@ def initialize( class Shipping < ::Stripe::RequestParams # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0. attr_accessor :amount - # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. attr_accessor :from_postal_code - # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. attr_accessor :to_postal_code def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) @@ -328,6 +328,7 @@ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil) end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams @@ -495,6 +496,7 @@ def initialize(session: nil) class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. @@ -597,6 +599,8 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :billie # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. attr_accessor :billing_details + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + attr_accessor :bizum # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. attr_accessor :blik # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. @@ -627,7 +631,7 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :konbini # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. attr_accessor :kr_card - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). attr_accessor :link # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. attr_accessor :mb_way @@ -667,6 +671,8 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :samsung_pay # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. attr_accessor :satispay + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + attr_accessor :scalapay # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -701,6 +707,7 @@ def initialize( bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -736,6 +743,7 @@ def initialize( revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -759,6 +767,7 @@ def initialize( @bancontact = bancontact @billie = billie @billing_details = billing_details + @bizum = bizum @blik = blik @boleto = boleto @cashapp = cashapp @@ -794,6 +803,7 @@ def initialize( @revolut_pay = revolut_pay @samsung_pay = samsung_pay @satispay = satispay + @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort @sunbit = sunbit @@ -1054,6 +1064,8 @@ def initialize(capture_method: nil) end end + class Bizum < ::Stripe::RequestParams; end + class Blik < ::Stripe::RequestParams # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. attr_accessor :code @@ -2141,6 +2153,19 @@ def initialize(capture_method: nil) end end + class Scalapay < ::Stripe::RequestParams + # Controls when the funds are captured from the customer's account. + # + # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + # + # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + attr_accessor :capture_method + + def initialize(capture_method: nil) + @capture_method = capture_method + end + end + class SepaDebit < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. @@ -2403,6 +2428,8 @@ def initialize(setup_future_usage: nil) attr_accessor :bancontact # If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options. attr_accessor :billie + # If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + attr_accessor :bizum # If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options. attr_accessor :blik # If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options. @@ -2437,7 +2464,7 @@ def initialize(setup_future_usage: nil) attr_accessor :konbini # If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. attr_accessor :kr_card - # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). attr_accessor :link # If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options. attr_accessor :mb_way @@ -2473,6 +2500,8 @@ def initialize(setup_future_usage: nil) attr_accessor :samsung_pay # If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options. attr_accessor :satispay + # If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + attr_accessor :scalapay # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. @@ -2501,6 +2530,7 @@ def initialize( bacs_debit: nil, bancontact: nil, billie: nil, + bizum: nil, blik: nil, boleto: nil, card: nil, @@ -2536,6 +2566,7 @@ def initialize( revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, swish: nil, @@ -2555,6 +2586,7 @@ def initialize( @bacs_debit = bacs_debit @bancontact = bancontact @billie = billie + @bizum = bizum @blik = blik @boleto = boleto @card = card @@ -2590,6 +2622,7 @@ def initialize( @revolut_pay = revolut_pay @samsung_pay = samsung_pay @satispay = satispay + @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort @swish = swish @@ -2653,11 +2686,31 @@ def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_numbe end class TransferData < ::Stripe::RequestParams + class PaymentData < ::Stripe::RequestParams + # An arbitrary string attached to the destination payment. Often useful for displaying to users. + attr_accessor :description + # Set of [key-value pairs](https://docs.stripe.com/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_accessor :metadata + + def initialize(description: nil, metadata: nil) + @description = description + @metadata = metadata + end + end # The amount that will be transferred automatically when a charge succeeds. attr_accessor :amount + # An arbitrary string attached to the transfer. Often useful for displaying to users. + attr_accessor :description + # Set of [key-value pairs](https://docs.stripe.com/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_accessor :metadata + # The data with which to populate the destination payment. + attr_accessor :payment_data - def initialize(amount: nil) + def initialize(amount: nil, description: nil, metadata: nil, payment_data: nil) @amount = amount + @description = description + @metadata = metadata + @payment_data = payment_data end end # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). diff --git a/lib/stripe/params/payment_link_create_params.rb b/lib/stripe/params/payment_link_create_params.rb index b33c68972..304bd3ba1 100644 --- a/lib/stripe/params/payment_link_create_params.rb +++ b/lib/stripe/params/payment_link_create_params.rb @@ -74,7 +74,7 @@ def initialize(position: nil) attr_accessor :payment_method_reuse_agreement # If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout # Session will determine whether to display an option to opt into promotional communication - # from the merchant depending on the customer's locale. Only available to US merchants. + # from the merchant depending on the customer's locale. Only available to US merchants and US customers. attr_accessor :promotions # If set to `required`, it requires customers to check a terms of service checkbox before being able to pay. # There must be a valid terms of service URL set in your [Dashboard settings](https://dashboard.stripe.com/settings/public). @@ -564,6 +564,31 @@ def initialize( end end + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams + # The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + attr_accessor :brands_blocked + + def initialize(brands_blocked: nil) + @brands_blocked = brands_blocked + end + end + # Restrictions to apply to the card payment method. For example, you can block specific card brands. + attr_accessor :restrictions + + def initialize(restrictions: nil) + @restrictions = restrictions + end + end + # Configuration for `card` payment methods. + attr_accessor :card + + def initialize(card: nil) + @card = card + end + end + class PhoneNumberCollection < ::Stripe::RequestParams # Set to `true` to enable phone number collection. attr_accessor :enabled @@ -748,6 +773,8 @@ def initialize(amount: nil, destination: nil) # # If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials). attr_accessor :payment_method_collection + # Attribute for param field payment_method_options + attr_accessor :payment_method_options # The list of payment method types that customers can use. If no value is passed, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods) (20+ payment methods [supported](https://docs.stripe.com/payments/payment-methods/integration-options#payment-method-product-support)). attr_accessor :payment_method_types # Controls phone number collection settings during checkout. @@ -792,6 +819,7 @@ def initialize( optional_items: nil, payment_intent_data: nil, payment_method_collection: nil, + payment_method_options: nil, payment_method_types: nil, phone_number_collection: nil, restrictions: nil, @@ -824,6 +852,7 @@ def initialize( @optional_items = optional_items @payment_intent_data = payment_intent_data @payment_method_collection = payment_method_collection + @payment_method_options = payment_method_options @payment_method_types = payment_method_types @phone_number_collection = phone_number_collection @restrictions = restrictions diff --git a/lib/stripe/params/payment_link_update_params.rb b/lib/stripe/params/payment_link_update_params.rb index 02cd0daa4..fa9542b0e 100644 --- a/lib/stripe/params/payment_link_update_params.rb +++ b/lib/stripe/params/payment_link_update_params.rb @@ -420,6 +420,31 @@ def initialize( end end + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams + # The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + attr_accessor :brands_blocked + + def initialize(brands_blocked: nil) + @brands_blocked = brands_blocked + end + end + # Restrictions to apply to the card payment method. For example, you can block specific card brands. + attr_accessor :restrictions + + def initialize(restrictions: nil) + @restrictions = restrictions + end + end + # Configuration for `card` payment methods. + attr_accessor :card + + def initialize(card: nil) + @card = card + end + end + class PhoneNumberCollection < ::Stripe::RequestParams # Set to `true` to enable phone number collection. attr_accessor :enabled @@ -566,6 +591,8 @@ def initialize(enabled: nil, required: nil) # # If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials). attr_accessor :payment_method_collection + # Payment-method-specific configuration. + attr_accessor :payment_method_options # The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). attr_accessor :payment_method_types # Controls phone number collection settings during checkout. @@ -601,6 +628,7 @@ def initialize( optional_items: nil, payment_intent_data: nil, payment_method_collection: nil, + payment_method_options: nil, payment_method_types: nil, phone_number_collection: nil, restrictions: nil, @@ -626,6 +654,7 @@ def initialize( @optional_items = optional_items @payment_intent_data = payment_intent_data @payment_method_collection = payment_method_collection + @payment_method_options = payment_method_options @payment_method_types = payment_method_types @phone_number_collection = phone_number_collection @restrictions = restrictions diff --git a/lib/stripe/params/payment_method_configuration_create_params.rb b/lib/stripe/params/payment_method_configuration_create_params.rb index 44c319677..5c61f9830 100644 --- a/lib/stripe/params/payment_method_configuration_create_params.rb +++ b/lib/stripe/params/payment_method_configuration_create_params.rb @@ -207,6 +207,23 @@ def initialize(display_preference: nil) end end + class Bizum < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + attr_accessor :preference + + def initialize(preference: nil) + @preference = preference + end + end + # Whether or not the payment method should be displayed. + attr_accessor :display_preference + + def initialize(display_preference: nil) + @display_preference = display_preference + end + end + class Blik < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -836,6 +853,23 @@ def initialize(display_preference: nil) end end + class Scalapay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + attr_accessor :preference + + def initialize(preference: nil) + @preference = preference + end + end + # Whether or not the payment method should be displayed. + attr_accessor :display_preference + + def initialize(display_preference: nil) + @display_preference = display_preference + end + end + class SepaDebit < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -1012,6 +1046,8 @@ def initialize(display_preference: nil) attr_accessor :bancontact # Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. attr_accessor :billie + # To enable Bizum, buyers need a Spanish IBAN from a bank connected to Bizum. Within their banking app, they can enable Bizum and link their mobile number to their IBAN. + attr_accessor :bizum # BLIK is a [single use](https://docs.stripe.com/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://docs.stripe.com/payments/blik) for more details. attr_accessor :blik # Boleto is an official (regulated by the Central Bank of Brazil) payment method in Brazil. Check this [page](https://docs.stripe.com/payments/boleto) for more details. @@ -1090,8 +1126,10 @@ def initialize(display_preference: nil) attr_accessor :revolut_pay # Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea. attr_accessor :samsung_pay - # Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + # Satispay is a [single-use](/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. attr_accessor :satispay + # Scalapay is a [single-use](/payments/payment-methods#usage) payment method that lets customers pay in 3 or 4 installments. Customers are redirected from your website or app, authorize the payment with Scalapay, then return to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + attr_accessor :scalapay # The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details. attr_accessor :sepa_debit # Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://docs.stripe.com/payments/sofort) for more details. @@ -1124,6 +1162,7 @@ def initialize( bacs_debit: nil, bancontact: nil, billie: nil, + bizum: nil, blik: nil, boleto: nil, card: nil, @@ -1164,6 +1203,7 @@ def initialize( revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -1186,6 +1226,7 @@ def initialize( @bacs_debit = bacs_debit @bancontact = bancontact @billie = billie + @bizum = bizum @blik = blik @boleto = boleto @card = card @@ -1226,6 +1267,7 @@ def initialize( @revolut_pay = revolut_pay @samsung_pay = samsung_pay @satispay = satispay + @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort @sunbit = sunbit diff --git a/lib/stripe/params/payment_method_configuration_list_params.rb b/lib/stripe/params/payment_method_configuration_list_params.rb index 7f33d4716..6fb7924e5 100644 --- a/lib/stripe/params/payment_method_configuration_list_params.rb +++ b/lib/stripe/params/payment_method_configuration_list_params.rb @@ -3,6 +3,8 @@ module Stripe class PaymentMethodConfigurationListParams < ::Stripe::RequestParams + # Whether the configuration is active. + attr_accessor :active # The Connect application to filter by. attr_accessor :application # 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. @@ -15,12 +17,14 @@ class PaymentMethodConfigurationListParams < ::Stripe::RequestParams attr_accessor :starting_after def initialize( + active: nil, application: nil, ending_before: nil, expand: nil, limit: nil, starting_after: nil ) + @active = active @application = application @ending_before = ending_before @expand = expand diff --git a/lib/stripe/params/payment_method_configuration_update_params.rb b/lib/stripe/params/payment_method_configuration_update_params.rb index 0e24f260c..edca15977 100644 --- a/lib/stripe/params/payment_method_configuration_update_params.rb +++ b/lib/stripe/params/payment_method_configuration_update_params.rb @@ -207,6 +207,23 @@ def initialize(display_preference: nil) end end + class Bizum < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + attr_accessor :preference + + def initialize(preference: nil) + @preference = preference + end + end + # Whether or not the payment method should be displayed. + attr_accessor :display_preference + + def initialize(display_preference: nil) + @display_preference = display_preference + end + end + class Blik < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -836,6 +853,23 @@ def initialize(display_preference: nil) end end + class Scalapay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + attr_accessor :preference + + def initialize(preference: nil) + @preference = preference + end + end + # Whether or not the payment method should be displayed. + attr_accessor :display_preference + + def initialize(display_preference: nil) + @display_preference = display_preference + end + end + class SepaDebit < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -1014,6 +1048,8 @@ def initialize(display_preference: nil) attr_accessor :bancontact # Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. attr_accessor :billie + # To enable Bizum, buyers need a Spanish IBAN from a bank connected to Bizum. Within their banking app, they can enable Bizum and link their mobile number to their IBAN. + attr_accessor :bizum # BLIK is a [single use](https://docs.stripe.com/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://docs.stripe.com/payments/blik) for more details. attr_accessor :blik # Boleto is an official (regulated by the Central Bank of Brazil) payment method in Brazil. Check this [page](https://docs.stripe.com/payments/boleto) for more details. @@ -1090,8 +1126,10 @@ def initialize(display_preference: nil) attr_accessor :revolut_pay # Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea. attr_accessor :samsung_pay - # Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + # Satispay is a [single-use](/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. attr_accessor :satispay + # Scalapay is a [single-use](/payments/payment-methods#usage) payment method that lets customers pay in 3 or 4 installments. Customers are redirected from your website or app, authorize the payment with Scalapay, then return to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + attr_accessor :scalapay # The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details. attr_accessor :sepa_debit # Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://docs.stripe.com/payments/sofort) for more details. @@ -1125,6 +1163,7 @@ def initialize( bacs_debit: nil, bancontact: nil, billie: nil, + bizum: nil, blik: nil, boleto: nil, card: nil, @@ -1164,6 +1203,7 @@ def initialize( revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -1187,6 +1227,7 @@ def initialize( @bacs_debit = bacs_debit @bancontact = bancontact @billie = billie + @bizum = bizum @blik = blik @boleto = boleto @card = card @@ -1226,6 +1267,7 @@ def initialize( @revolut_pay = revolut_pay @samsung_pay = samsung_pay @satispay = satispay + @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort @sunbit = sunbit diff --git a/lib/stripe/params/payment_method_create_params.rb b/lib/stripe/params/payment_method_create_params.rb index d1838ede2..23744eec5 100644 --- a/lib/stripe/params/payment_method_create_params.rb +++ b/lib/stripe/params/payment_method_create_params.rb @@ -102,6 +102,7 @@ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil) end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams @@ -318,6 +319,7 @@ def initialize(session: nil) class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. @@ -420,6 +422,8 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :billie # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. attr_accessor :billing_details + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + attr_accessor :bizum # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. attr_accessor :blik # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. @@ -458,7 +462,7 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :konbini # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. attr_accessor :kr_card - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). attr_accessor :link # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. attr_accessor :mb_way @@ -500,6 +504,8 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :samsung_pay # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. attr_accessor :satispay + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + attr_accessor :scalapay # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -534,6 +540,7 @@ def initialize( bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, card: nil, @@ -574,6 +581,7 @@ def initialize( revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -597,6 +605,7 @@ def initialize( @bancontact = bancontact @billie = billie @billing_details = billing_details + @bizum = bizum @blik = blik @boleto = boleto @card = card @@ -637,6 +646,7 @@ def initialize( @revolut_pay = revolut_pay @samsung_pay = samsung_pay @satispay = satispay + @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort @sunbit = sunbit diff --git a/lib/stripe/params/payout_create_params.rb b/lib/stripe/params/payout_create_params.rb index 917caba00..0a411daf0 100644 --- a/lib/stripe/params/payout_create_params.rb +++ b/lib/stripe/params/payout_create_params.rb @@ -21,7 +21,7 @@ class PayoutCreateParams < ::Stripe::RequestParams attr_accessor :payout_method # The balance type of your Stripe balance to draw this payout from. Balances for different payment sources are kept separately. You can find the amounts with the Balances API. One of `bank_account`, `card`, or `fpx`. attr_accessor :source_type - # A string that displays on the recipient's bank or card statement (up to 22 characters). A `statement_descriptor` that's longer than 22 characters return an error. Most banks truncate this information and display it inconsistently. Some banks might not display it at all. + # A string that displays on the recipient's bank or card statement (up to 22 characters). A `statement_descriptor` that's longer than 22 characters return an error. Most banks truncate this information and display it inconsistently. Some banks might not display it at all. For US ACH payouts, this maps to the ACH Company Entry Description field, which the NACHA standard limits to 10 characters. Stripe truncates descriptors longer than 10 characters for US ACH payouts. attr_accessor :statement_descriptor def initialize( diff --git a/lib/stripe/params/setup_intent_confirm_params.rb b/lib/stripe/params/setup_intent_confirm_params.rb index 15bf64b2d..1f8d35973 100644 --- a/lib/stripe/params/setup_intent_confirm_params.rb +++ b/lib/stripe/params/setup_intent_confirm_params.rb @@ -142,6 +142,7 @@ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil) end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams @@ -309,6 +310,7 @@ def initialize(session: nil) class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. @@ -411,6 +413,8 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :billie # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. attr_accessor :billing_details + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + attr_accessor :bizum # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. attr_accessor :blik # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. @@ -441,7 +445,7 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :konbini # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. attr_accessor :kr_card - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). attr_accessor :link # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. attr_accessor :mb_way @@ -481,6 +485,8 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :samsung_pay # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. attr_accessor :satispay + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + attr_accessor :scalapay # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -515,6 +521,7 @@ def initialize( bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -550,6 +557,7 @@ def initialize( revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -573,6 +581,7 @@ def initialize( @bancontact = bancontact @billie = billie @billing_details = billing_details + @bizum = bizum @blik = blik @boleto = boleto @cashapp = cashapp @@ -608,6 +617,7 @@ def initialize( @revolut_pay = revolut_pay @samsung_pay = samsung_pay @satispay = satispay + @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort @sunbit = sunbit @@ -684,6 +694,8 @@ def initialize(mandate_options: nil) end end + class Bizum < ::Stripe::RequestParams; end + class Card < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments, specified in the presentment currency. @@ -1140,13 +1152,15 @@ def initialize( attr_accessor :amazon_pay # If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options. attr_accessor :bacs_debit + # If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + attr_accessor :bizum # Configuration for any card setup attempted on this SetupIntent. attr_accessor :card # If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options. attr_accessor :card_present # If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method options. attr_accessor :klarna - # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). attr_accessor :link # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. attr_accessor :paypal @@ -1165,6 +1179,7 @@ def initialize( acss_debit: nil, amazon_pay: nil, bacs_debit: nil, + bizum: nil, card: nil, card_present: nil, klarna: nil, @@ -1179,6 +1194,7 @@ def initialize( @acss_debit = acss_debit @amazon_pay = amazon_pay @bacs_debit = bacs_debit + @bizum = bizum @card = card @card_present = card_present @klarna = klarna diff --git a/lib/stripe/params/setup_intent_create_params.rb b/lib/stripe/params/setup_intent_create_params.rb index d4bbc4890..67425a544 100644 --- a/lib/stripe/params/setup_intent_create_params.rb +++ b/lib/stripe/params/setup_intent_create_params.rb @@ -156,6 +156,7 @@ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil) end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams @@ -323,6 +324,7 @@ def initialize(session: nil) class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. @@ -425,6 +427,8 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :billie # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. attr_accessor :billing_details + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + attr_accessor :bizum # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. attr_accessor :blik # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. @@ -455,7 +459,7 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :konbini # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. attr_accessor :kr_card - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). attr_accessor :link # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. attr_accessor :mb_way @@ -495,6 +499,8 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :samsung_pay # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. attr_accessor :satispay + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + attr_accessor :scalapay # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -529,6 +535,7 @@ def initialize( bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -564,6 +571,7 @@ def initialize( revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -587,6 +595,7 @@ def initialize( @bancontact = bancontact @billie = billie @billing_details = billing_details + @bizum = bizum @blik = blik @boleto = boleto @cashapp = cashapp @@ -622,6 +631,7 @@ def initialize( @revolut_pay = revolut_pay @samsung_pay = samsung_pay @satispay = satispay + @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort @sunbit = sunbit @@ -698,6 +708,8 @@ def initialize(mandate_options: nil) end end + class Bizum < ::Stripe::RequestParams; end + class Card < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments, specified in the presentment currency. @@ -1154,13 +1166,15 @@ def initialize( attr_accessor :amazon_pay # If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options. attr_accessor :bacs_debit + # If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + attr_accessor :bizum # Configuration for any card setup attempted on this SetupIntent. attr_accessor :card # If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options. attr_accessor :card_present # If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method options. attr_accessor :klarna - # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). attr_accessor :link # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. attr_accessor :paypal @@ -1179,6 +1193,7 @@ def initialize( acss_debit: nil, amazon_pay: nil, bacs_debit: nil, + bizum: nil, card: nil, card_present: nil, klarna: nil, @@ -1193,6 +1208,7 @@ def initialize( @acss_debit = acss_debit @amazon_pay = amazon_pay @bacs_debit = bacs_debit + @bizum = bizum @card = card @card_present = card_present @klarna = klarna diff --git a/lib/stripe/params/setup_intent_update_params.rb b/lib/stripe/params/setup_intent_update_params.rb index ad8ee93d1..59e2a16a0 100644 --- a/lib/stripe/params/setup_intent_update_params.rb +++ b/lib/stripe/params/setup_intent_update_params.rb @@ -103,6 +103,7 @@ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil) end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams @@ -270,6 +271,7 @@ def initialize(session: nil) class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. @@ -372,6 +374,8 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :billie # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. attr_accessor :billing_details + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + attr_accessor :bizum # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. attr_accessor :blik # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. @@ -402,7 +406,7 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :konbini # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. attr_accessor :kr_card - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). attr_accessor :link # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. attr_accessor :mb_way @@ -442,6 +446,8 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :samsung_pay # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. attr_accessor :satispay + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + attr_accessor :scalapay # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -476,6 +482,7 @@ def initialize( bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -511,6 +518,7 @@ def initialize( revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -534,6 +542,7 @@ def initialize( @bancontact = bancontact @billie = billie @billing_details = billing_details + @bizum = bizum @blik = blik @boleto = boleto @cashapp = cashapp @@ -569,6 +578,7 @@ def initialize( @revolut_pay = revolut_pay @samsung_pay = samsung_pay @satispay = satispay + @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort @sunbit = sunbit @@ -645,6 +655,8 @@ def initialize(mandate_options: nil) end end + class Bizum < ::Stripe::RequestParams; end + class Card < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments, specified in the presentment currency. @@ -1101,13 +1113,15 @@ def initialize( attr_accessor :amazon_pay # If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options. attr_accessor :bacs_debit + # If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + attr_accessor :bizum # Configuration for any card setup attempted on this SetupIntent. attr_accessor :card # If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options. attr_accessor :card_present # If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method options. attr_accessor :klarna - # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). attr_accessor :link # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. attr_accessor :paypal @@ -1126,6 +1140,7 @@ def initialize( acss_debit: nil, amazon_pay: nil, bacs_debit: nil, + bizum: nil, card: nil, card_present: nil, klarna: nil, @@ -1140,6 +1155,7 @@ def initialize( @acss_debit = acss_debit @amazon_pay = amazon_pay @bacs_debit = bacs_debit + @bizum = bizum @card = card @card_present = card_present @klarna = klarna diff --git a/lib/stripe/params/subscription_create_params.rb b/lib/stripe/params/subscription_create_params.rb index bb7d372c4..a1ad982c2 100644 --- a/lib/stripe/params/subscription_create_params.rb +++ b/lib/stripe/params/subscription_create_params.rb @@ -84,6 +84,8 @@ def self.field_encodings @field_encodings = { unit_amount_decimal: :decimal_string } end end + # Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + attr_accessor :discountable # The coupons to redeem into discounts for the item. attr_accessor :discounts # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -100,6 +102,7 @@ def self.field_encodings attr_accessor :tax_rates def initialize( + discountable: nil, discounts: nil, metadata: nil, period: nil, @@ -108,6 +111,7 @@ def initialize( quantity: nil, tax_rates: nil ) + @discountable = discountable @discounts = discounts @metadata = metadata @period = period @@ -188,6 +192,58 @@ def initialize(flexible: nil, type: nil) end end + class BillingSchedule < ::Stripe::RequestParams + class AppliesTo < ::Stripe::RequestParams + # The ID of the price object. + attr_accessor :price + # Controls which subscription items the billing schedule applies to. + attr_accessor :type + + def initialize(price: nil, type: nil) + @price = price + @type = type + end + end + + class BillUntil < ::Stripe::RequestParams + class Duration < ::Stripe::RequestParams + # Specifies billing duration. Either `day`, `week`, `month` or `year`. + attr_accessor :interval + # The multiplier applied to the interval. + attr_accessor :interval_count + + def initialize(interval: nil, interval_count: nil) + @interval = interval + @interval_count = interval_count + end + end + # Specifies the billing period. + attr_accessor :duration + # The end date of the billing schedule. + attr_accessor :timestamp + # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + attr_accessor :type + + def initialize(duration: nil, timestamp: nil, type: nil) + @duration = duration + @timestamp = timestamp + @type = type + end + end + # Configure billing schedule differently for individual subscription items. + attr_accessor :applies_to + # The end date for the billing schedule. + attr_accessor :bill_until + # Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + attr_accessor :key + + def initialize(applies_to: nil, bill_until: nil, key: nil) + @applies_to = applies_to + @bill_until = bill_until + @key = key + end + end + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period attr_accessor :amount_gte @@ -677,6 +733,8 @@ def initialize(end_behavior: nil) attr_accessor :billing_cycle_anchor_config # Controls how prorations and invoices for subscriptions are calculated and orchestrated. attr_accessor :billing_mode + # Sets the billing schedules for the subscription. + attr_accessor :billing_schedules # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. attr_accessor :billing_thresholds # A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. @@ -715,17 +773,7 @@ def initialize(end_behavior: nil) attr_accessor :off_session # The account on behalf of which to charge, for each of the subscription's invoices. attr_accessor :on_behalf_of - # Only applies to subscriptions with `collection_method=charge_automatically`. - # - # Use `allow_incomplete` to create Subscriptions with `status=incomplete` if the first invoice can't be paid. Creating Subscriptions with this status allows you to manage scenarios where additional customer actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - # - # Use `default_incomplete` to create Subscriptions with `status=incomplete` when the first invoice requires payment, otherwise start as active. Subscriptions transition to `status=active` when successfully confirming the PaymentIntent on the first invoice. This allows simpler management of scenarios where additional customer actions are needed to pay a subscription’s invoice, such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. If the PaymentIntent is not confirmed within 23 hours Subscriptions transition to `status=incomplete_expired`, which is a terminal state. - # - # Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice can't be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further customer action is needed, this parameter doesn't create a Subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/upgrades#2019-03-14) to learn more. - # - # `pending_if_incomplete` is only used with updates and cannot be passed when creating a Subscription. - # - # Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status. + # Controls how Stripe handles the first invoice when payment is required and `collection_method=charge_automatically`. Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status. attr_accessor :payment_behavior # Payment settings to pass to invoices created by the subscription. attr_accessor :payment_settings @@ -752,6 +800,7 @@ def initialize( billing_cycle_anchor: nil, billing_cycle_anchor_config: nil, billing_mode: nil, + billing_schedules: nil, billing_thresholds: nil, cancel_at: nil, cancel_at_period_end: nil, @@ -788,6 +837,7 @@ def initialize( @billing_cycle_anchor = billing_cycle_anchor @billing_cycle_anchor_config = billing_cycle_anchor_config @billing_mode = billing_mode + @billing_schedules = billing_schedules @billing_thresholds = billing_thresholds @cancel_at = cancel_at @cancel_at_period_end = cancel_at_period_end diff --git a/lib/stripe/params/subscription_item_create_params.rb b/lib/stripe/params/subscription_item_create_params.rb index debc8d87c..bbfb5992a 100644 --- a/lib/stripe/params/subscription_item_create_params.rb +++ b/lib/stripe/params/subscription_item_create_params.rb @@ -80,13 +80,7 @@ def self.field_encodings attr_accessor :expand # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. attr_accessor :metadata - # Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - # - # Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - # - # Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - # - # Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + # Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. attr_accessor :payment_behavior # The identifier of the plan to add to the subscription. attr_accessor :plan diff --git a/lib/stripe/params/subscription_item_delete_params.rb b/lib/stripe/params/subscription_item_delete_params.rb index 9852f0907..fe71c3e0c 100644 --- a/lib/stripe/params/subscription_item_delete_params.rb +++ b/lib/stripe/params/subscription_item_delete_params.rb @@ -5,13 +5,7 @@ module Stripe class SubscriptionItemDeleteParams < ::Stripe::RequestParams # Delete all usage for the given subscription item. Allowed only when the current plan's `usage_type` is `metered`. attr_accessor :clear_usage - # Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - # - # Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - # - # Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - # - # Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + # Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. attr_accessor :payment_behavior # Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`. attr_accessor :proration_behavior diff --git a/lib/stripe/params/subscription_item_update_params.rb b/lib/stripe/params/subscription_item_update_params.rb index 5ec817902..c737e16db 100644 --- a/lib/stripe/params/subscription_item_update_params.rb +++ b/lib/stripe/params/subscription_item_update_params.rb @@ -82,13 +82,7 @@ def self.field_encodings attr_accessor :metadata # Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `false` (on-session). attr_accessor :off_session - # Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - # - # Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - # - # Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - # - # Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + # Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. attr_accessor :payment_behavior # The identifier of the new plan for this subscription item. attr_accessor :plan diff --git a/lib/stripe/params/subscription_schedule_create_params.rb b/lib/stripe/params/subscription_schedule_create_params.rb index 57fd38e7d..9c3b4f19e 100644 --- a/lib/stripe/params/subscription_schedule_create_params.rb +++ b/lib/stripe/params/subscription_schedule_create_params.rb @@ -224,6 +224,8 @@ def self.field_encodings @field_encodings = { unit_amount_decimal: :decimal_string } end end + # Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + attr_accessor :discountable # The coupons to redeem into discounts for the item. attr_accessor :discounts # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -240,6 +242,7 @@ def self.field_encodings attr_accessor :tax_rates def initialize( + discountable: nil, discounts: nil, metadata: nil, period: nil, @@ -248,6 +251,7 @@ def initialize( quantity: nil, tax_rates: nil ) + @discountable = discountable @discounts = discounts @metadata = metadata @period = period diff --git a/lib/stripe/params/subscription_schedule_update_params.rb b/lib/stripe/params/subscription_schedule_update_params.rb index 466605297..49473649a 100644 --- a/lib/stripe/params/subscription_schedule_update_params.rb +++ b/lib/stripe/params/subscription_schedule_update_params.rb @@ -204,6 +204,8 @@ def self.field_encodings @field_encodings = { unit_amount_decimal: :decimal_string } end end + # Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + attr_accessor :discountable # The coupons to redeem into discounts for the item. attr_accessor :discounts # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -220,6 +222,7 @@ def self.field_encodings attr_accessor :tax_rates def initialize( + discountable: nil, discounts: nil, metadata: nil, period: nil, @@ -228,6 +231,7 @@ def initialize( quantity: nil, tax_rates: nil ) + @discountable = discountable @discounts = discounts @metadata = metadata @period = period diff --git a/lib/stripe/params/subscription_update_params.rb b/lib/stripe/params/subscription_update_params.rb index 2e3363bb6..e6911efaf 100644 --- a/lib/stripe/params/subscription_update_params.rb +++ b/lib/stripe/params/subscription_update_params.rb @@ -84,6 +84,8 @@ def self.field_encodings @field_encodings = { unit_amount_decimal: :decimal_string } end end + # Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + attr_accessor :discountable # The coupons to redeem into discounts for the item. attr_accessor :discounts # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -100,6 +102,7 @@ def self.field_encodings attr_accessor :tax_rates def initialize( + discountable: nil, discounts: nil, metadata: nil, period: nil, @@ -108,6 +111,7 @@ def initialize( quantity: nil, tax_rates: nil ) + @discountable = discountable @discounts = discounts @metadata = metadata @period = period @@ -147,6 +151,58 @@ def initialize(enabled: nil, liability: nil) end end + class BillingSchedule < ::Stripe::RequestParams + class AppliesTo < ::Stripe::RequestParams + # The ID of the price object. + attr_accessor :price + # Controls which subscription items the billing schedule applies to. + attr_accessor :type + + def initialize(price: nil, type: nil) + @price = price + @type = type + end + end + + class BillUntil < ::Stripe::RequestParams + class Duration < ::Stripe::RequestParams + # Specifies billing duration. Either `day`, `week`, `month` or `year`. + attr_accessor :interval + # The multiplier applied to the interval. + attr_accessor :interval_count + + def initialize(interval: nil, interval_count: nil) + @interval = interval + @interval_count = interval_count + end + end + # Specifies the billing period. + attr_accessor :duration + # The end date of the billing schedule. + attr_accessor :timestamp + # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + attr_accessor :type + + def initialize(duration: nil, timestamp: nil, type: nil) + @duration = duration + @timestamp = timestamp + @type = type + end + end + # Configure billing schedule differently for individual subscription items. + attr_accessor :applies_to + # The end date for the billing schedule. + attr_accessor :bill_until + # Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + attr_accessor :key + + def initialize(applies_to: nil, bill_until: nil, key: nil) + @applies_to = applies_to + @bill_until = bill_until + @key = key + end + end + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period attr_accessor :amount_gte @@ -666,6 +722,8 @@ def initialize(end_behavior: nil) attr_accessor :automatic_tax # Either `now` or `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle). attr_accessor :billing_cycle_anchor + # Sets the billing schedules for the subscription. + attr_accessor :billing_schedules # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. attr_accessor :billing_thresholds # A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. @@ -686,7 +744,7 @@ def initialize(end_behavior: nil) attr_accessor :default_tax_rates # The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. attr_accessor :description - # The coupons to redeem into discounts for the subscription. If not specified or empty, inherits the discount from the subscription's customer. + # The coupons to redeem into discounts for the subscription. A populated array overwrites the existing discounts on the subscription. If not specified or empty array, it leaves the subscription's discounts unchanged. If empty string, it clears the subscription's discounts. attr_accessor :discounts # Specifies which fields in the response should be expanded. attr_accessor :expand @@ -702,13 +760,7 @@ def initialize(end_behavior: nil) attr_accessor :on_behalf_of # If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment). attr_accessor :pause_collection - # Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - # - # Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - # - # Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - # - # Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + # Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. attr_accessor :payment_behavior # Payment settings to pass to invoices created by the subscription. attr_accessor :payment_settings @@ -732,6 +784,7 @@ def initialize( application_fee_percent: nil, automatic_tax: nil, billing_cycle_anchor: nil, + billing_schedules: nil, billing_thresholds: nil, cancel_at: nil, cancel_at_period_end: nil, @@ -764,6 +817,7 @@ def initialize( @application_fee_percent = application_fee_percent @automatic_tax = automatic_tax @billing_cycle_anchor = billing_cycle_anchor + @billing_schedules = billing_schedules @billing_thresholds = billing_thresholds @cancel_at = cancel_at @cancel_at_period_end = cancel_at_period_end diff --git a/lib/stripe/params/terminal/configuration_create_params.rb b/lib/stripe/params/terminal/configuration_create_params.rb index c78bbc69b..3ccc61104 100644 --- a/lib/stripe/params/terminal/configuration_create_params.rb +++ b/lib/stripe/params/terminal/configuration_create_params.rb @@ -475,6 +475,15 @@ def initialize( end end + class VerifoneM425 < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + attr_accessor :splashscreen + + def initialize(splashscreen: nil) + @splashscreen = splashscreen + end + end + class VerifoneP400 < ::Stripe::RequestParams # A File ID representing an image you want to display on the reader. attr_accessor :splashscreen @@ -484,6 +493,33 @@ def initialize(splashscreen: nil) end end + class VerifoneP630 < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + attr_accessor :splashscreen + + def initialize(splashscreen: nil) + @splashscreen = splashscreen + end + end + + class VerifoneUx700 < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + attr_accessor :splashscreen + + def initialize(splashscreen: nil) + @splashscreen = splashscreen + end + end + + class VerifoneV660p < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + attr_accessor :splashscreen + + def initialize(splashscreen: nil) + @splashscreen = splashscreen + end + end + class Wifi < ::Stripe::RequestParams class EnterpriseEapPeap < ::Stripe::RequestParams # A File ID representing a PEM file containing the server certificate @@ -582,8 +618,16 @@ def initialize( attr_accessor :stripe_s710 # Tipping configurations for readers that support on-reader tips. attr_accessor :tipping + # An object containing device type specific settings for Verifone M425 readers. + attr_accessor :verifone_m425 # An object containing device type specific settings for Verifone P400 readers. attr_accessor :verifone_p400 + # An object containing device type specific settings for Verifone P630 readers. + attr_accessor :verifone_p630 + # An object containing device type specific settings for Verifone UX700 readers. + attr_accessor :verifone_ux700 + # An object containing device type specific settings for Verifone V660p readers. + attr_accessor :verifone_v660p # Configurations for connecting to a WiFi network. attr_accessor :wifi @@ -598,7 +642,11 @@ def initialize( stripe_s700: nil, stripe_s710: nil, tipping: nil, + verifone_m425: nil, verifone_p400: nil, + verifone_p630: nil, + verifone_ux700: nil, + verifone_v660p: nil, wifi: nil ) @bbpos_wisepad3 = bbpos_wisepad3 @@ -611,7 +659,11 @@ def initialize( @stripe_s700 = stripe_s700 @stripe_s710 = stripe_s710 @tipping = tipping + @verifone_m425 = verifone_m425 @verifone_p400 = verifone_p400 + @verifone_p630 = verifone_p630 + @verifone_ux700 = verifone_ux700 + @verifone_v660p = verifone_v660p @wifi = wifi end end diff --git a/lib/stripe/params/terminal/configuration_update_params.rb b/lib/stripe/params/terminal/configuration_update_params.rb index 44ec22f22..e43906156 100644 --- a/lib/stripe/params/terminal/configuration_update_params.rb +++ b/lib/stripe/params/terminal/configuration_update_params.rb @@ -475,6 +475,15 @@ def initialize( end end + class VerifoneM425 < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + attr_accessor :splashscreen + + def initialize(splashscreen: nil) + @splashscreen = splashscreen + end + end + class VerifoneP400 < ::Stripe::RequestParams # A File ID representing an image you want to display on the reader. attr_accessor :splashscreen @@ -484,6 +493,33 @@ def initialize(splashscreen: nil) end end + class VerifoneP630 < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + attr_accessor :splashscreen + + def initialize(splashscreen: nil) + @splashscreen = splashscreen + end + end + + class VerifoneUx700 < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + attr_accessor :splashscreen + + def initialize(splashscreen: nil) + @splashscreen = splashscreen + end + end + + class VerifoneV660p < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + attr_accessor :splashscreen + + def initialize(splashscreen: nil) + @splashscreen = splashscreen + end + end + class Wifi < ::Stripe::RequestParams class EnterpriseEapPeap < ::Stripe::RequestParams # A File ID representing a PEM file containing the server certificate @@ -582,8 +618,16 @@ def initialize( attr_accessor :stripe_s710 # Tipping configurations for readers that support on-reader tips. attr_accessor :tipping + # An object containing device type specific settings for Verifone M425 readers. + attr_accessor :verifone_m425 # An object containing device type specific settings for Verifone P400 readers. attr_accessor :verifone_p400 + # An object containing device type specific settings for Verifone P630 readers. + attr_accessor :verifone_p630 + # An object containing device type specific settings for Verifone UX700 readers. + attr_accessor :verifone_ux700 + # An object containing device type specific settings for Verifone V660p readers. + attr_accessor :verifone_v660p # Configurations for connecting to a WiFi network. attr_accessor :wifi @@ -598,7 +642,11 @@ def initialize( stripe_s700: nil, stripe_s710: nil, tipping: nil, + verifone_m425: nil, verifone_p400: nil, + verifone_p630: nil, + verifone_ux700: nil, + verifone_v660p: nil, wifi: nil ) @bbpos_wisepad3 = bbpos_wisepad3 @@ -611,7 +659,11 @@ def initialize( @stripe_s700 = stripe_s700 @stripe_s710 = stripe_s710 @tipping = tipping + @verifone_m425 = verifone_m425 @verifone_p400 = verifone_p400 + @verifone_p630 = verifone_p630 + @verifone_ux700 = verifone_ux700 + @verifone_v660p = verifone_v660p @wifi = wifi end end diff --git a/lib/stripe/params/test_helpers/confirmation_token_create_params.rb b/lib/stripe/params/test_helpers/confirmation_token_create_params.rb index 41ecdac1d..ca06f6a22 100644 --- a/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +++ b/lib/stripe/params/test_helpers/confirmation_token_create_params.rb @@ -104,6 +104,7 @@ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil) end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams @@ -271,6 +272,7 @@ def initialize(session: nil) class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. @@ -373,6 +375,8 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :billie # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. attr_accessor :billing_details + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + attr_accessor :bizum # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. attr_accessor :blik # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. @@ -403,7 +407,7 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :konbini # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. attr_accessor :kr_card - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). attr_accessor :link # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. attr_accessor :mb_way @@ -443,6 +447,8 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :samsung_pay # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method. attr_accessor :satispay + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + attr_accessor :scalapay # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -477,6 +483,7 @@ def initialize( bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -512,6 +519,7 @@ def initialize( revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -535,6 +543,7 @@ def initialize( @bancontact = bancontact @billie = billie @billing_details = billing_details + @bizum = bizum @blik = blik @boleto = boleto @cashapp = cashapp @@ -570,6 +579,7 @@ def initialize( @revolut_pay = revolut_pay @samsung_pay = samsung_pay @satispay = satispay + @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort @sunbit = sunbit diff --git a/lib/stripe/params/test_helpers/test_clock_create_params.rb b/lib/stripe/params/test_helpers/test_clock_create_params.rb index 0686ceb01..b6006db40 100644 --- a/lib/stripe/params/test_helpers/test_clock_create_params.rb +++ b/lib/stripe/params/test_helpers/test_clock_create_params.rb @@ -4,6 +4,8 @@ module Stripe module TestHelpers class TestClockCreateParams < ::Stripe::RequestParams + # Existing customer this test clock will be attached to. Once attached, customers can't be removed from a test clock. + attr_accessor :customer # Specifies which fields in the response should be expanded. attr_accessor :expand # The initial frozen time for this test clock. @@ -11,7 +13,8 @@ class TestClockCreateParams < ::Stripe::RequestParams # The name for this test clock. attr_accessor :name - def initialize(expand: nil, frozen_time: nil, name: nil) + def initialize(customer: nil, expand: nil, frozen_time: nil, name: nil) + @customer = customer @expand = expand @frozen_time = frozen_time @name = name diff --git a/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb b/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb index 8697343da..e9e2c7fa6 100644 --- a/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +++ b/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb @@ -6,7 +6,7 @@ module V2 module Billing class MeterEventAdjustmentCreateParams < ::Stripe::RequestParams class Cancel < ::Stripe::RequestParams - # Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. + # The identifier that was originally assigned to the meter event. You can only cancel events within 24 hours of Stripe receiving them. attr_accessor :identifier def initialize(identifier: nil) @@ -17,7 +17,7 @@ def initialize(identifier: nil) attr_accessor :cancel # The name of the meter event. Corresponds with the `event_name` field on a meter. attr_accessor :event_name - # Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet. + # Specifies the type of cancellation. Currently supports canceling a single event. attr_accessor :type def initialize(cancel: nil, event_name: nil, type: nil) diff --git a/lib/stripe/params/v2/commerce/product_catalog/import_create_params.rb b/lib/stripe/params/v2/commerce/product_catalog/import_create_params.rb new file mode 100644 index 000000000..181907644 --- /dev/null +++ b/lib/stripe/params/v2/commerce/product_catalog/import_create_params.rb @@ -0,0 +1,25 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Commerce + module ProductCatalog + class ImportCreateParams < ::Stripe::RequestParams + # The type of catalog data to import. + attr_accessor :feed_type + # Additional information about the import in a structured format. + attr_accessor :metadata + # The strategy for handling existing catalog data during import. + attr_accessor :mode + + def initialize(feed_type: nil, metadata: nil, mode: nil) + @feed_type = feed_type + @metadata = metadata + @mode = mode + end + end + end + end + end +end diff --git a/lib/stripe/params/v2/commerce/product_catalog/import_list_params.rb b/lib/stripe/params/v2/commerce/product_catalog/import_list_params.rb new file mode 100644 index 000000000..da1e577ee --- /dev/null +++ b/lib/stripe/params/v2/commerce/product_catalog/import_list_params.rb @@ -0,0 +1,54 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Commerce + module ProductCatalog + class ImportListParams < ::Stripe::RequestParams + # Filter for objects created at the specified timestamp. + # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + attr_accessor :created + # Filter for objects created after the specified timestamp. + # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + attr_accessor :created_gt + # Filter for objects created on or after the specified timestamp. + # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + attr_accessor :created_gte + # Filter for objects created before the specified timestamp. + # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + attr_accessor :created_lt + # Filter for objects created on or before the specified timestamp. + # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + attr_accessor :created_lte + # Filter by the type of feed data being imported. + attr_accessor :feed_type + # The maximum number of results per page. + attr_accessor :limit + # Filter by import status. + attr_accessor :status + + def initialize( + created: nil, + created_gt: nil, + created_gte: nil, + created_lt: nil, + created_lte: nil, + feed_type: nil, + limit: nil, + status: nil + ) + @created = created + @created_gt = created_gt + @created_gte = created_gte + @created_lt = created_lt + @created_lte = created_lte + @feed_type = feed_type + @limit = limit + @status = status + end + end + end + end + end +end diff --git a/lib/stripe/params/v2/commerce/product_catalog/import_retrieve_params.rb b/lib/stripe/params/v2/commerce/product_catalog/import_retrieve_params.rb new file mode 100644 index 000000000..ce829454f --- /dev/null +++ b/lib/stripe/params/v2/commerce/product_catalog/import_retrieve_params.rb @@ -0,0 +1,12 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Commerce + module ProductCatalog + class ImportRetrieveParams < ::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 1c9dd86cd..b90047a2a 100644 --- a/lib/stripe/params/v2/core/account_create_params.rb +++ b/lib/stripe/params/v2/core/account_create_params.rb @@ -996,7 +996,7 @@ def initialize(capabilities: nil) @capabilities = capabilities end end - # The Customer Configuration allows the Account to be used in inbound payment flows. + # The Customer Configuration allows the Account to be used in inbound payment flows (i.e. customer-facing payment and billing flows). attr_accessor :customer # Enables the Account to act as a connected account and collect payments facilitated by a Connect platform. You must onboard your platform to Connect before you can add this configuration to your connected accounts. Utilize this configuration when the Account will be the Merchant of Record, like with Direct charges or Destination Charges with on_behalf_of set. attr_accessor :merchant @@ -1329,25 +1329,47 @@ def initialize(files: nil, type: nil) end class ProofOfRegistration < ::Stripe::RequestParams + class Signer < ::Stripe::RequestParams + # Person signing the document. + attr_accessor :person + + def initialize(person: nil) + @person = person + end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. attr_accessor :files + # Person that is signing the document. + attr_accessor :signer # The format of the document. Currently supports `files` only. attr_accessor :type - def initialize(files: nil, type: nil) + def initialize(files: nil, signer: nil, type: nil) @files = files + @signer = signer @type = type end end class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams + class Signer < ::Stripe::RequestParams + # Person signing the document. + attr_accessor :person + + def initialize(person: nil) + @person = person + end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. attr_accessor :files + # Person that is signing the document. + attr_accessor :signer # The format of the document. Currently supports `files` only. attr_accessor :type - def initialize(files: nil, type: nil) + def initialize(files: nil, signer: nil, type: nil) @files = files + @signer = signer @type = type end end @@ -1983,7 +2005,7 @@ def initialize(kana: nil, kanji: nil) attr_accessor :date_of_birth # Documents that may be submitted to satisfy various informational requests. attr_accessor :documents - # The individual's email address. + # The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account. attr_accessor :email # The individual's first name. attr_accessor :given_name @@ -2058,7 +2080,7 @@ def self.field_encodings attr_accessor :business_details # The country in which the account holder resides, or in which the business is legally established. This should be an [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. attr_accessor :country - # The entity type. + # The entity type represented by the Account. Ensure this field is accurate before adding configurations that rely on identity information, as it determines which identity fields apply and how the Account is validated. attr_accessor :entity_type # Information about the person represented by the account. attr_accessor :individual @@ -2092,7 +2114,7 @@ def self.field_encodings attr_accessor :account_token # An Account Configuration which allows the Account to take on a key persona across Stripe products. attr_accessor :configuration - # The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + # The primary contact email address for the Account. attr_accessor :contact_email # The default contact phone for the Account. attr_accessor :contact_phone diff --git a/lib/stripe/params/v2/core/account_token_create_params.rb b/lib/stripe/params/v2/core/account_token_create_params.rb index d7cdcdc69..83a1722d0 100644 --- a/lib/stripe/params/v2/core/account_token_create_params.rb +++ b/lib/stripe/params/v2/core/account_token_create_params.rb @@ -256,25 +256,47 @@ def initialize(files: nil, type: nil) end class ProofOfRegistration < ::Stripe::RequestParams + class Signer < ::Stripe::RequestParams + # Person signing the document. + attr_accessor :person + + def initialize(person: nil) + @person = person + end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. attr_accessor :files + # Person that is signing the document. + attr_accessor :signer # The format of the document. Currently supports `files` only. attr_accessor :type - def initialize(files: nil, type: nil) + def initialize(files: nil, signer: nil, type: nil) @files = files + @signer = signer @type = type end end class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams + class Signer < ::Stripe::RequestParams + # Person signing the document. + attr_accessor :person + + def initialize(person: nil) + @person = person + end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. attr_accessor :files + # Person that is signing the document. + attr_accessor :signer # The format of the document. Currently supports `files` only. attr_accessor :type - def initialize(files: nil, type: nil) + def initialize(files: nil, signer: nil, type: nil) @files = files + @signer = signer @type = type end end @@ -294,7 +316,7 @@ def initialize(files: nil, type: nil) attr_accessor :primary_verification # One or more documents that demonstrate proof of address. attr_accessor :proof_of_address - # One or more documents showing the company’s proof of registration with the national business registry. + # One or more documents that demonstrate proof of ultimate beneficial ownership. attr_accessor :proof_of_registration # One or more documents that demonstrate proof of ultimate beneficial ownership. attr_accessor :proof_of_ultimate_beneficial_ownership @@ -910,7 +932,7 @@ def initialize(kana: nil, kanji: nil) attr_accessor :date_of_birth # Documents that may be submitted to satisfy various informational requests. attr_accessor :documents - # The individual's email address. + # The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account. attr_accessor :email # The individual's first name. attr_accessor :given_name @@ -1011,7 +1033,7 @@ def self.field_encodings } end end - # The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + # The primary contact email address for the Account. attr_accessor :contact_email # The default contact phone for the Account. attr_accessor :contact_phone diff --git a/lib/stripe/params/v2/core/account_update_params.rb b/lib/stripe/params/v2/core/account_update_params.rb index 7d58ea95b..eff465e2d 100644 --- a/lib/stripe/params/v2/core/account_update_params.rb +++ b/lib/stripe/params/v2/core/account_update_params.rb @@ -72,7 +72,7 @@ def initialize( @rendering = rendering end end - # ID of a PaymentMethod attached to the customer account to use as the default for invoices and subscriptions. + # The ID of a `PaymentMethod` attached to this Account's `customer` configuration, used as the default payment method for invoices and subscriptions. attr_accessor :default_payment_method # Default invoice settings for the customer account. attr_accessor :invoice @@ -1382,25 +1382,47 @@ def initialize(files: nil, type: nil) end class ProofOfRegistration < ::Stripe::RequestParams + class Signer < ::Stripe::RequestParams + # Person signing the document. + attr_accessor :person + + def initialize(person: nil) + @person = person + end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. attr_accessor :files + # Person that is signing the document. + attr_accessor :signer # The format of the document. Currently supports `files` only. attr_accessor :type - def initialize(files: nil, type: nil) + def initialize(files: nil, signer: nil, type: nil) @files = files + @signer = signer @type = type end end class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams + class Signer < ::Stripe::RequestParams + # Person signing the document. + attr_accessor :person + + def initialize(person: nil) + @person = person + end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. attr_accessor :files + # Person that is signing the document. + attr_accessor :signer # The format of the document. Currently supports `files` only. attr_accessor :type - def initialize(files: nil, type: nil) + def initialize(files: nil, signer: nil, type: nil) @files = files + @signer = signer @type = type end end @@ -1420,7 +1442,7 @@ def initialize(files: nil, type: nil) attr_accessor :primary_verification # One or more documents that demonstrate proof of address. attr_accessor :proof_of_address - # One or more documents showing the company’s proof of registration with the national business registry. + # One or more documents that demonstrate proof of ultimate beneficial ownership. attr_accessor :proof_of_registration # One or more documents that demonstrate proof of ultimate beneficial ownership. attr_accessor :proof_of_ultimate_beneficial_ownership @@ -2036,7 +2058,7 @@ def initialize(kana: nil, kanji: nil) attr_accessor :date_of_birth # Documents that may be submitted to satisfy various informational requests. attr_accessor :documents - # The individual's email address. + # The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account. attr_accessor :email # The individual's first name. attr_accessor :given_name @@ -2111,7 +2133,7 @@ def self.field_encodings attr_accessor :business_details # The country in which the account holder resides, or in which the business is legally established. This should be an [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. attr_accessor :country - # The entity type. + # The entity type represented by the Account. Ensure this field is accurate before adding configurations that rely on identity information, as it determines which identity fields apply and how the Account is validated. attr_accessor :entity_type # Information about the individual represented by the Account. This property is `null` unless `entity_type` is set to `individual`. attr_accessor :individual @@ -2145,7 +2167,7 @@ def self.field_encodings attr_accessor :account_token # An Account Configuration which allows the Account to take on a key persona across Stripe products. attr_accessor :configuration - # The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + # The primary contact email address for the Account. attr_accessor :contact_email # The default contact phone for the Account. attr_accessor :contact_phone diff --git a/lib/stripe/params/v2/core/event_destination_create_params.rb b/lib/stripe/params/v2/core/event_destination_create_params.rb index 466aa7562..2fcbafd62 100644 --- a/lib/stripe/params/v2/core/event_destination_create_params.rb +++ b/lib/stripe/params/v2/core/event_destination_create_params.rb @@ -17,6 +17,25 @@ def initialize(aws_account_id: nil, aws_region: nil) end end + class AzureEventGrid < ::Stripe::RequestParams + # The Azure region. + attr_accessor :azure_region + # The name of the Azure resource group. + attr_accessor :azure_resource_group_name + # The Azure subscription ID. + attr_accessor :azure_subscription_id + + def initialize( + azure_region: nil, + azure_resource_group_name: nil, + azure_subscription_id: nil + ) + @azure_region = azure_region + @azure_resource_group_name = azure_resource_group_name + @azure_subscription_id = azure_subscription_id + end + end + class WebhookEndpoint < ::Stripe::RequestParams # The URL of the webhook endpoint. attr_accessor :url @@ -27,6 +46,8 @@ def initialize(url: nil) end # Amazon EventBridge configuration. attr_accessor :amazon_eventbridge + # Azure Event Grid configuration. + attr_accessor :azure_event_grid # An optional description of what the event destination is used for. attr_accessor :description # The list of events to enable for this endpoint. @@ -54,6 +75,7 @@ def initialize(url: nil) def initialize( amazon_eventbridge: nil, + azure_event_grid: nil, description: nil, enabled_events: nil, event_payload: nil, @@ -66,6 +88,7 @@ def initialize( webhook_endpoint: nil ) @amazon_eventbridge = amazon_eventbridge + @azure_event_grid = azure_event_grid @description = description @enabled_events = enabled_events @event_payload = event_payload diff --git a/lib/stripe/resources.rb b/lib/stripe/resources.rb index ceb830b11..287075f7a 100644 --- a/lib/stripe/resources.rb +++ b/lib/stripe/resources.rb @@ -124,6 +124,22 @@ module Events "stripe/events/v1_billing_meter_error_report_triggered_event" autoload :V1BillingMeterNoMeterFoundEvent, "stripe/events/v1_billing_meter_no_meter_found_event" autoload :V1BillingMeterNoMeterFoundEventNotification, "stripe/events/v1_billing_meter_no_meter_found_event" + autoload :V2CommerceProductCatalogImportsFailedEvent, + "stripe/events/v2_commerce_product_catalog_imports_failed_event" + autoload :V2CommerceProductCatalogImportsFailedEventNotification, + "stripe/events/v2_commerce_product_catalog_imports_failed_event" + autoload :V2CommerceProductCatalogImportsProcessingEvent, + "stripe/events/v2_commerce_product_catalog_imports_processing_event" + autoload :V2CommerceProductCatalogImportsProcessingEventNotification, + "stripe/events/v2_commerce_product_catalog_imports_processing_event" + autoload :V2CommerceProductCatalogImportsSucceededEvent, + "stripe/events/v2_commerce_product_catalog_imports_succeeded_event" + autoload :V2CommerceProductCatalogImportsSucceededEventNotification, + "stripe/events/v2_commerce_product_catalog_imports_succeeded_event" + autoload :V2CommerceProductCatalogImportsSucceededWithErrorsEvent, + "stripe/events/v2_commerce_product_catalog_imports_succeeded_with_errors_event" + autoload :V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification, + "stripe/events/v2_commerce_product_catalog_imports_succeeded_with_errors_event" autoload :V2CoreAccountClosedEvent, "stripe/events/v2_core_account_closed_event" autoload :V2CoreAccountClosedEventNotification, "stripe/events/v2_core_account_closed_event" autoload :V2CoreAccountCreatedEvent, "stripe/events/v2_core_account_created_event" @@ -277,6 +293,10 @@ module Billing autoload :MeterEventSession, "stripe/resources/v2/billing/meter_event_session" end + module Commerce + autoload :ProductCatalogImport, "stripe/resources/v2/commerce/product_catalog_import" + end + module Core autoload :Account, "stripe/resources/v2/core/account" autoload :AccountLink, "stripe/resources/v2/core/account_link" @@ -445,6 +465,7 @@ module Stripe stripe/resources/v2/billing/meter_event stripe/resources/v2/billing/meter_event_adjustment stripe/resources/v2/billing/meter_event_session + stripe/resources/v2/commerce/product_catalog_import stripe/resources/v2/core/account stripe/resources/v2/core/account_link stripe/resources/v2/core/account_person @@ -456,6 +477,10 @@ module Stripe stripe/resources/webhook_endpoint stripe/events/v1_billing_meter_error_report_triggered_event stripe/events/v1_billing_meter_no_meter_found_event + stripe/events/v2_commerce_product_catalog_imports_failed_event + stripe/events/v2_commerce_product_catalog_imports_processing_event + stripe/events/v2_commerce_product_catalog_imports_succeeded_event + stripe/events/v2_commerce_product_catalog_imports_succeeded_with_errors_event stripe/events/v2_core_account_closed_event stripe/events/v2_core_account_created_event stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event diff --git a/lib/stripe/resources/account.rb b/lib/stripe/resources/account.rb index ad411973b..873d6a1df 100644 --- a/lib/stripe/resources/account.rb +++ b/lib/stripe/resources/account.rb @@ -152,6 +152,8 @@ class Capabilities < ::Stripe::StripeObject attr_reader :bank_transfer_payments # The status of the Billie capability of the account, or whether the account can directly process Billie payments. attr_reader :billie_payments + # The status of the Bizum capability of the account, or whether the account can directly process Bizum payments. + attr_reader :bizum_payments # The status of the blik payments capability of the account, or whether the account can directly process blik charges. attr_reader :blik_payments # The status of the boleto payments capability of the account, or whether the account can directly process boleto charges. @@ -230,6 +232,8 @@ class Capabilities < ::Stripe::StripeObject attr_reader :samsung_pay_payments # The status of the Satispay capability of the account, or whether the account can directly process Satispay payments. attr_reader :satispay_payments + # The status of the Scalapay capability of the account, or whether the account can directly process Scalapay payments. + attr_reader :scalapay_payments # The status of the SEPA customer_balance payments (EUR currency) capability of the account, or whether the account can directly process SEPA customer_balance charges. attr_reader :sepa_bank_transfer_payments # The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges. diff --git a/lib/stripe/resources/balance_settings.rb b/lib/stripe/resources/balance_settings.rb index dcc507356..e5703bdf5 100644 --- a/lib/stripe/resources/balance_settings.rb +++ b/lib/stripe/resources/balance_settings.rb @@ -13,6 +13,23 @@ def self.object_name class Payments < ::Stripe::StripeObject class Payouts < ::Stripe::StripeObject + class AutomaticTransferRulesByCurrency < ::Stripe::StripeObject + # The ID of the FinancialAccount that funds will be transferred to during automatic transfers. + attr_reader :payout_method + # The maximum amount in minor units to transfer to the FinancialAccount. Only applicable when `type` is `transfer_up_to_amount`. + attr_reader :transfer_up_to_amount + # The type of automatic transfer rule. + attr_reader :type + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class Schedule < ::Stripe::StripeObject # How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`. attr_reader :interval @@ -29,6 +46,8 @@ def self.field_remappings @field_remappings = {} end end + # Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount. + attr_reader :automatic_transfer_rules_by_currency # The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](/payouts/minimum-balances-for-automatic-payouts). attr_reader :minimum_balance_by_currency # Details on when funds from charges are available, and when they are paid out to an external account. See our [Setting Bank and Debit Card Payouts](https://docs.stripe.com/connect/bank-transfers#payout-information) documentation for details. @@ -39,7 +58,10 @@ def self.field_remappings attr_reader :status def self.inner_class_types - @inner_class_types = { schedule: Schedule } + @inner_class_types = { + automatic_transfer_rules_by_currency: AutomaticTransferRulesByCurrency, + schedule: Schedule, + } end def self.field_remappings @@ -48,13 +70,31 @@ def self.field_remappings end class SettlementTiming < ::Stripe::StripeObject + class StartOfDay < ::Stripe::StripeObject + # Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](/connect/customized-start-of-day#available-timezones-and-cutoffs). + attr_reader :hour + # Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30. + attr_reader :minutes + # Timezone for the customized start of day. Must be a [supported customized start of day timezone](/connect/customized-start-of-day#available-timezones-and-cutoffs). + attr_reader :timezone + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # The number of days charge funds are held before becoming available. attr_reader :delay_days # The number of days charge funds are held before becoming available. If present, overrides the default, or minimum available, for the account. attr_reader :delay_days_override + # Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](/connect/customized-start-of-day) documentation. + attr_reader :start_of_day def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { start_of_day: StartOfDay } end def self.field_remappings diff --git a/lib/stripe/resources/charge.rb b/lib/stripe/resources/charge.rb index 07aca98c2..ff0313341 100644 --- a/lib/stripe/resources/charge.rb +++ b/lib/stripe/resources/charge.rb @@ -448,6 +448,19 @@ def self.field_remappings end end + class Bizum < ::Stripe::StripeObject + # The Bizum transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class Blik < ::Stripe::StripeObject # A unique and immutable identifier assigned by BLIK to every buyer. attr_reader :buyer_id @@ -1719,6 +1732,19 @@ def self.field_remappings end end + class Scalapay < ::Stripe::StripeObject + # The Scalapay transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class SepaCreditTransfer < ::Stripe::StripeObject # Name of the bank associated with the bank account. attr_reader :bank_name @@ -1833,6 +1859,9 @@ def self.field_remappings end class Twint < ::Stripe::StripeObject + # ID of the multi use Mandate generated by the PaymentIntent + attr_reader :mandate + def self.inner_class_types @inner_class_types = {} end @@ -1946,6 +1975,8 @@ def self.field_remappings attr_reader :bancontact # Attribute for field billie attr_reader :billie + # Attribute for field bizum + attr_reader :bizum # Attribute for field blik attr_reader :blik # Attribute for field boleto @@ -2016,6 +2047,8 @@ def self.field_remappings attr_reader :samsung_pay # Attribute for field satispay attr_reader :satispay + # Attribute for field scalapay + attr_reader :scalapay # Attribute for field sepa_credit_transfer attr_reader :sepa_credit_transfer # Attribute for field sepa_debit @@ -2059,6 +2092,7 @@ def self.inner_class_types bacs_debit: BacsDebit, bancontact: Bancontact, billie: Billie, + bizum: Bizum, blik: Blik, boleto: Boleto, card: Card, @@ -2094,6 +2128,7 @@ def self.inner_class_types revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_credit_transfer: SepaCreditTransfer, sepa_debit: SepaDebit, sofort: Sofort, diff --git a/lib/stripe/resources/checkout/session.rb b/lib/stripe/resources/checkout/session.rb index d51dc1174..2bf0e6aab 100644 --- a/lib/stripe/resources/checkout/session.rb +++ b/lib/stripe/resources/checkout/session.rb @@ -252,7 +252,7 @@ def self.field_remappings attr_reader :payment_method_reuse_agreement # If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout # Session will determine whether to display an option to opt into promotional communication - # from the merchant depending on the customer's locale. Only available to US merchants. + # from the merchant depending on the customer's locale. Only available to US merchants and US customers. attr_reader :promotions # If set to `required`, it requires customers to accept the terms of service before being able to pay. attr_reader :terms_of_service @@ -1011,7 +1011,7 @@ def self.field_remappings end class Restrictions < ::Stripe::StripeObject - # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. + # The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. attr_reader :brands_blocked def self.inner_class_types @@ -1635,6 +1635,19 @@ def self.field_remappings end end + class Scalapay < ::Stripe::StripeObject + # Controls when the funds will be captured from the customer's account. + attr_reader :capture_method + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class SepaDebit < ::Stripe::StripeObject class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. @@ -1888,6 +1901,8 @@ def self.field_remappings attr_reader :samsung_pay # Attribute for field satispay attr_reader :satispay + # Attribute for field scalapay + attr_reader :scalapay # Attribute for field sepa_debit attr_reader :sepa_debit # Attribute for field sofort @@ -1940,6 +1955,7 @@ def self.inner_class_types revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_debit: SepaDebit, sofort: Sofort, swish: Swish, @@ -2218,8 +2234,8 @@ def self.field_remappings # customer ID, a cart ID, or similar, and can be used to reconcile the # Session with your internal systems. attr_reader :client_reference_id - # The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. For `ui_mode: embedded`, the client secret is to be used when initializing Stripe.js embedded checkout. - # For `ui_mode: custom`, use the client secret with [initCheckout](https://docs.stripe.com/js/custom_checkout/init) on your front end. + # The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded_page` or `ui_mode: elements`. For `ui_mode: embedded_page`, the client secret is to be used when initializing Stripe.js embedded checkout. + # For `ui_mode: elements`, use the client secret with [initCheckout](https://docs.stripe.com/js/custom_checkout/init) on your front end. attr_reader :client_secret # Information about the customer collected within the Checkout Session. attr_reader :collected_information @@ -2315,9 +2331,9 @@ def self.field_remappings attr_reader :presentment_details # The ID of the original expired Checkout Session that triggered the recovery flow. attr_reader :recovered_from - # This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. + # This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. attr_reader :redirect_on_completion - # Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. + # Applies to Checkout Sessions with `ui_mode: embedded_page` or `ui_mode: elements`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. attr_reader :return_url # Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode. attr_reader :saved_payment_method_options @@ -2346,7 +2362,7 @@ def self.field_remappings attr_reader :total_details # The UI mode of the Session. Defaults to `hosted_page`. attr_reader :ui_mode - # The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted`. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://docs.stripe.com/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.` + # The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted_page`. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://docs.stripe.com/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.` # This value is only present when the session is active. attr_reader :url # Wallet-specific configuration for this Checkout Session. diff --git a/lib/stripe/resources/confirmation_token.rb b/lib/stripe/resources/confirmation_token.rb index 2abb8c636..5293ae4bf 100644 --- a/lib/stripe/resources/confirmation_token.rb +++ b/lib/stripe/resources/confirmation_token.rb @@ -281,6 +281,16 @@ def self.field_remappings end end + class Bizum < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class Blik < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} @@ -1301,6 +1311,16 @@ def self.field_remappings end end + class Scalapay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class SepaDebit < ::Stripe::StripeObject class GeneratedFrom < ::Stripe::StripeObject # The ID of the Charge that generated this PaymentMethod, if any. @@ -1507,6 +1527,8 @@ def self.field_remappings attr_reader :billie # Attribute for field billing_details attr_reader :billing_details + # Attribute for field bizum + attr_reader :bizum # Attribute for field blik attr_reader :blik # Attribute for field boleto @@ -1581,6 +1603,8 @@ def self.field_remappings attr_reader :samsung_pay # Attribute for field satispay attr_reader :satispay + # Attribute for field scalapay + attr_reader :scalapay # Attribute for field sepa_debit attr_reader :sepa_debit # Attribute for field sofort @@ -1615,6 +1639,7 @@ def self.inner_class_types bancontact: Bancontact, billie: Billie, billing_details: BillingDetails, + bizum: Bizum, blik: Blik, boleto: Boleto, card: Card, @@ -1650,6 +1675,7 @@ def self.inner_class_types revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_debit: SepaDebit, sofort: Sofort, sunbit: Sunbit, diff --git a/lib/stripe/resources/discount.rb b/lib/stripe/resources/discount.rb index 9f802dbf6..558eb7228 100644 --- a/lib/stripe/resources/discount.rb +++ b/lib/stripe/resources/discount.rb @@ -26,7 +26,7 @@ def self.field_remappings @field_remappings = {} end end - # The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode. + # The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Not present for subscription mode. attr_reader :checkout_session # The ID of the customer associated with this discount. attr_reader :customer @@ -36,7 +36,7 @@ def self.field_remappings attr_reader :deleted # If the coupon has a duration of `repeating`, the date that this discount will end. If the coupon has a duration of `once` or `forever`, this attribute will be null. attr_reader :end - # The ID of the discount object. Discounts cannot be fetched by ID. Use `expand[]=discounts` in API calls to expand discount IDs in an array. + # The ID of the discount object. Discounts can't be fetched by ID. Use `expand[]=discounts` in API calls to expand discount IDs in an array. attr_reader :id # The invoice that the discount's coupon was applied to, if it was applied directly to a particular invoice. attr_reader :invoice diff --git a/lib/stripe/resources/invoice.rb b/lib/stripe/resources/invoice.rb index 8a47decdf..b3c702a24 100644 --- a/lib/stripe/resources/invoice.rb +++ b/lib/stripe/resources/invoice.rb @@ -898,6 +898,8 @@ def self.field_remappings attr_reader :amount_overpaid # The amount, in cents (or local equivalent), that was paid. attr_reader :amount_paid + # Amount, in cents (or local equivalent), that was paid on the invoice outside of Stripe. + attr_reader :amount_paid_off_stripe # The difference between amount_due and amount_paid, in cents (or local equivalent). attr_reader :amount_remaining # This is the sum of all the shipping amounts. diff --git a/lib/stripe/resources/invoice_item.rb b/lib/stripe/resources/invoice_item.rb index 7831cbd5f..21f98bc52 100644 --- a/lib/stripe/resources/invoice_item.rb +++ b/lib/stripe/resources/invoice_item.rb @@ -101,6 +101,37 @@ def self.field_encodings end class ProrationDetails < ::Stripe::StripeObject + class CreditedItems < ::Stripe::StripeObject + class InvoiceLineItemDetails < ::Stripe::StripeObject + # The invoice id for the debited line item(s). + attr_reader :invoice + # IDs of the debited invoice line item(s) on the invoice that correspond to the credit proration. + attr_reader :invoice_line_items + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # When `type` is `invoice_item`, the invoice item id for the debited invoice item corresponding to this credit proration. + attr_reader :invoice_item + # Attribute for field invoice_line_item_details + attr_reader :invoice_line_item_details + # Whether the credit references a pending invoice item or one or more invoice line items on an invoice. + attr_reader :type + + def self.inner_class_types + @inner_class_types = { invoice_line_item_details: InvoiceLineItemDetails } + end + + def self.field_remappings + @field_remappings = {} + end + end + class DiscountAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the discount. attr_reader :amount @@ -115,11 +146,13 @@ def self.field_remappings @field_remappings = {} end end + # For a credit proration, links to the debit invoice line items or invoice item that the credit applies to. + attr_reader :credited_items # Discount amounts applied when the proration was created. attr_reader :discount_amounts def self.inner_class_types - @inner_class_types = { discount_amounts: DiscountAmount } + @inner_class_types = { credited_items: CreditedItems, discount_amounts: DiscountAmount } end def self.field_remappings diff --git a/lib/stripe/resources/issuing/dispute.rb b/lib/stripe/resources/issuing/dispute.rb index 4bb9bd84c..d6c8db7c9 100644 --- a/lib/stripe/resources/issuing/dispute.rb +++ b/lib/stripe/resources/issuing/dispute.rb @@ -259,7 +259,7 @@ def self.field_remappings attr_reader :status # The transaction being disputed. attr_reader :transaction - # [Treasury](https://docs.stripe.com/api/treasury) details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts + # [Treasury](https://docs.stripe.com/api/treasury) details related to this dispute if it was created on a [FinancialAccount](https://docs.stripe.com/api/treasury/financial_accounts) attr_reader :treasury # Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence) for more details about evidence requirements. diff --git a/lib/stripe/resources/issuing/personalization_design.rb b/lib/stripe/resources/issuing/personalization_design.rb index 11c830536..409789b25 100644 --- a/lib/stripe/resources/issuing/personalization_design.rb +++ b/lib/stripe/resources/issuing/personalization_design.rb @@ -62,7 +62,7 @@ def self.field_remappings @field_remappings = {} end end - # The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. + # The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. Image must be in PNG format with dimensions of 1000px by 200px. It must be a binary (black and white) image containing a black logo on a white background. We don't accept grayscale. attr_reader :card_logo # Hash containing carrier text, for use with physical bundles that support carrier text. attr_reader :carrier_text diff --git a/lib/stripe/resources/mandate.rb b/lib/stripe/resources/mandate.rb index ee6d57a80..8a83afb18 100644 --- a/lib/stripe/resources/mandate.rb +++ b/lib/stripe/resources/mandate.rb @@ -301,6 +301,16 @@ def self.field_remappings end end + class Twint < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class Upi < ::Stripe::StripeObject # Amount to be charged for future payments. attr_reader :amount @@ -366,6 +376,8 @@ def self.field_remappings attr_reader :revolut_pay # Attribute for field sepa_debit attr_reader :sepa_debit + # Attribute for field twint + attr_reader :twint # This mandate corresponds with a specific payment method type. The `payment_method_details` includes an additional hash with the same name and contains mandate information that's specific to that payment method. attr_reader :type # Attribute for field upi @@ -392,6 +404,7 @@ def self.inner_class_types pix: Pix, revolut_pay: RevolutPay, sepa_debit: SepaDebit, + twint: Twint, upi: Upi, us_bank_account: UsBankAccount, } diff --git a/lib/stripe/resources/payment_attempt_record.rb b/lib/stripe/resources/payment_attempt_record.rb index 8546354da..f69801f26 100644 --- a/lib/stripe/resources/payment_attempt_record.rb +++ b/lib/stripe/resources/payment_attempt_record.rb @@ -456,6 +456,19 @@ def self.field_remappings end end + class Bizum < ::Stripe::StripeObject + # The Bizum transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class Blik < ::Stripe::StripeObject # A unique and immutable identifier assigned by BLIK to every buyer. attr_reader :buyer_id @@ -1071,11 +1084,9 @@ def self.field_remappings attr_reader :location # The payer details for this transaction. attr_reader :payer_details - # The Klarna payment method used for this transaction. - # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + # The Klarna payment method used for this transaction. Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` attr_reader :payment_method_category - # Preferred language of the Klarna authorization page that the customer is redirected to. - # Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + # Preferred language of the Klarna authorization page that the customer is redirected to. Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` attr_reader :preferred_locale # ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. attr_reader :reader @@ -1134,8 +1145,7 @@ def self.field_remappings end class Link < ::Stripe::StripeObject - # Two-letter ISO code representing the funding source country beneath the Link payment. - # You could use this attribute to get a sense of international fees. + # Two-letter ISO code representing the funding source country beneath the Link payment. You could use this attribute to get a sense of international fees. attr_reader :country def self.inner_class_types @@ -1263,9 +1273,7 @@ class P24 < ::Stripe::StripeObject attr_reader :bank # Unique reference for this Przelewy24 payment. attr_reader :reference - # Owner's verified full name. Values are verified or provided by Przelewy24 directly - # (if supported) at the time of authorization or settlement. They cannot be set or mutated. - # Przelewy24 rarely provides this information so the attribute is usually empty. + # Owner's verified full name. Values are verified or provided by Przelewy24 directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Przelewy24 rarely provides this information so the attribute is usually empty. attr_reader :verified_name def self.inner_class_types @@ -1431,7 +1439,7 @@ def self.field_remappings end # Attribute for field card attr_reader :card - # funding type of the underlying payment method. + # Funding type of the underlying payment method. attr_reader :type def self.inner_class_types @@ -1484,6 +1492,19 @@ def self.field_remappings end end + class Scalapay < ::Stripe::StripeObject + # The Scalapay transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class SepaCreditTransfer < ::Stripe::StripeObject # Name of the bank associated with the bank account. attr_reader :bank_name @@ -1596,6 +1617,9 @@ def self.field_remappings end class Twint < ::Stripe::StripeObject + # ID of the multi use Mandate generated by the PaymentIntent + attr_reader :mandate + def self.inner_class_types @inner_class_types = {} end @@ -1711,6 +1735,8 @@ def self.field_remappings attr_reader :billie # The billing details associated with the method of payment. attr_reader :billing_details + # Attribute for field bizum + attr_reader :bizum # Attribute for field blik attr_reader :blik # Attribute for field boleto @@ -1787,6 +1813,8 @@ def self.field_remappings attr_reader :samsung_pay # Attribute for field satispay attr_reader :satispay + # Attribute for field scalapay + attr_reader :scalapay # Attribute for field sepa_credit_transfer attr_reader :sepa_credit_transfer # Attribute for field sepa_debit @@ -1831,6 +1859,7 @@ def self.inner_class_types bancontact: Bancontact, billie: Billie, billing_details: BillingDetails, + bizum: Bizum, blik: Blik, boleto: Boleto, card: Card, @@ -1867,6 +1896,7 @@ def self.inner_class_types revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_credit_transfer: SepaCreditTransfer, sepa_debit: SepaDebit, sofort: Sofort, diff --git a/lib/stripe/resources/payment_intent.rb b/lib/stripe/resources/payment_intent.rb index 04948ee25..3d5317e7f 100644 --- a/lib/stripe/resources/payment_intent.rb +++ b/lib/stripe/resources/payment_intent.rb @@ -46,9 +46,9 @@ def self.field_remappings class Shipping < ::Stripe::StripeObject # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0. attr_reader :amount - # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. attr_reader :from_postal_code - # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. attr_reader :to_postal_code def self.inner_class_types @@ -275,6 +275,16 @@ def self.field_remappings end end + class BlikAuthorize < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class BoletoDisplayDetails < ::Stripe::StripeObject # The timestamp after which the boleto expires. attr_reader :expires_at @@ -1200,6 +1210,8 @@ def self.field_remappings end # Attribute for field alipay_handle_redirect attr_reader :alipay_handle_redirect + # Attribute for field blik_authorize + attr_reader :blik_authorize # Attribute for field boleto_display_details attr_reader :boleto_display_details # Attribute for field card_await_notification @@ -1244,6 +1256,7 @@ def self.field_remappings def self.inner_class_types @inner_class_types = { alipay_handle_redirect: AlipayHandleRedirect, + blik_authorize: BlikAuthorize, boleto_display_details: BoletoDisplayDetails, card_await_notification: CardAwaitNotification, cashapp_handle_redirect_or_display_qr_code: CashappHandleRedirectOrDisplayQrCode, @@ -1538,6 +1551,16 @@ def self.field_remappings end end + class Bizum < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class Blik < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # @@ -2417,6 +2440,19 @@ def self.field_remappings end end + class Scalapay < ::Stripe::StripeObject + # Controls when the funds will be captured from the customer's account. + attr_reader :capture_method + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class SepaDebit < ::Stripe::StripeObject class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. @@ -2668,6 +2704,8 @@ def self.field_remappings attr_reader :bancontact # Attribute for field billie attr_reader :billie + # Attribute for field bizum + attr_reader :bizum # Attribute for field blik attr_reader :blik # Attribute for field boleto @@ -2738,6 +2776,8 @@ def self.field_remappings attr_reader :samsung_pay # Attribute for field satispay attr_reader :satispay + # Attribute for field scalapay + attr_reader :scalapay # Attribute for field sepa_debit attr_reader :sepa_debit # Attribute for field sofort @@ -2767,6 +2807,7 @@ def self.inner_class_types bacs_debit: BacsDebit, bancontact: Bancontact, billie: Billie, + bizum: Bizum, blik: Blik, boleto: Boleto, card: Card, @@ -2802,6 +2843,7 @@ def self.inner_class_types revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_debit: SepaDebit, sofort: Sofort, swish: Swish, @@ -2918,15 +2960,35 @@ def self.field_remappings end class TransferData < ::Stripe::StripeObject + class PaymentData < ::Stripe::StripeObject + # An arbitrary string attached to the destination payment. Often useful for displaying to users. + attr_reader :description + # Set of [key-value pairs](https://docs.stripe.com/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 + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account. # The amount must be less than or equal to the [amount](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer # representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00). attr_reader :amount + # An arbitrary string attached to the transfer. Often useful for displaying to users. + attr_reader :description # The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success. attr_reader :destination + # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + attr_reader :metadata + # Attribute for field payment_data + attr_reader :payment_data def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { payment_data: PaymentData } end def self.field_remappings @@ -3236,7 +3298,9 @@ def self.create(params = {}, opts = {}) # Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. # After it's captured, a PaymentIntent can no longer be incremented. # - # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + # Learn more about incremental authorizations with + # [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + # [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). def increment_authorization(params = {}, opts = {}) request_stripe_object( method: :post, @@ -3269,7 +3333,9 @@ def increment_authorization(params = {}, opts = {}) # Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. # After it's captured, a PaymentIntent can no longer be incremented. # - # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + # Learn more about incremental authorizations with + # [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + # [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). def self.increment_authorization(intent, params = {}, opts = {}) request_stripe_object( method: :post, diff --git a/lib/stripe/resources/payment_link.rb b/lib/stripe/resources/payment_link.rb index 4192d9aba..f7d1a4358 100644 --- a/lib/stripe/resources/payment_link.rb +++ b/lib/stripe/resources/payment_link.rb @@ -498,6 +498,43 @@ def self.field_remappings end end + class PaymentMethodOptions < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Restrictions < ::Stripe::StripeObject + # The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + attr_reader :brands_blocked + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Restrictions to apply to the card payment method. For example, you can block specific card brands. + attr_reader :restrictions + + def self.inner_class_types + @inner_class_types = { restrictions: Restrictions } + end + + def self.field_remappings + @field_remappings = {} + end + end + # Configuration for `card` payment methods. + attr_reader :card + + def self.inner_class_types + @inner_class_types = { card: Card } + end + + def self.field_remappings + @field_remappings = {} + end + end + class PhoneNumberCollection < ::Stripe::StripeObject # If `true`, a phone number will be collected during checkout. attr_reader :enabled @@ -719,6 +756,8 @@ def self.field_remappings attr_reader :payment_intent_data # Configuration for collecting a payment method during checkout. Defaults to `always`. attr_reader :payment_method_collection + # Payment-method-specific configuration. + attr_reader :payment_method_options # The list of payment method types that customers can use. When `null`, Stripe will dynamically show relevant payment methods you've enabled in your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). attr_reader :payment_method_types # Attribute for field phone_number_collection @@ -792,6 +831,7 @@ def self.inner_class_types name_collection: NameCollection, optional_items: OptionalItem, payment_intent_data: PaymentIntentData, + payment_method_options: PaymentMethodOptions, phone_number_collection: PhoneNumberCollection, restrictions: Restrictions, shipping_address_collection: ShippingAddressCollection, diff --git a/lib/stripe/resources/payment_method.rb b/lib/stripe/resources/payment_method.rb index d9a6ff7b3..29fce2bbe 100644 --- a/lib/stripe/resources/payment_method.rb +++ b/lib/stripe/resources/payment_method.rb @@ -185,6 +185,16 @@ def self.field_remappings end end + class Bizum < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class Blik < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} @@ -1249,6 +1259,16 @@ def self.field_remappings end end + class Scalapay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class SepaDebit < ::Stripe::StripeObject class GeneratedFrom < ::Stripe::StripeObject # The ID of the Charge that generated this PaymentMethod, if any. @@ -1455,6 +1475,8 @@ def self.field_remappings attr_reader :billie # Attribute for field billing_details attr_reader :billing_details + # Attribute for field bizum + attr_reader :bizum # Attribute for field blik attr_reader :blik # Attribute for field boleto @@ -1543,6 +1565,8 @@ def self.field_remappings attr_reader :samsung_pay # Attribute for field satispay attr_reader :satispay + # Attribute for field scalapay + attr_reader :scalapay # Attribute for field sepa_debit attr_reader :sepa_debit # Attribute for field sofort @@ -1663,6 +1687,7 @@ def self.inner_class_types bancontact: Bancontact, billie: Billie, billing_details: BillingDetails, + bizum: Bizum, blik: Blik, boleto: Boleto, card: Card, @@ -1700,6 +1725,7 @@ def self.inner_class_types revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_debit: SepaDebit, sofort: Sofort, sunbit: Sunbit, diff --git a/lib/stripe/resources/payment_method_configuration.rb b/lib/stripe/resources/payment_method_configuration.rb index 4c7d20935..a685c161b 100644 --- a/lib/stripe/resources/payment_method_configuration.rb +++ b/lib/stripe/resources/payment_method_configuration.rb @@ -367,6 +367,37 @@ def self.field_remappings end end + class Bizum < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject + # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + attr_reader :overridable + # The account's display preference. + attr_reader :preference + # The effective display preference value. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + attr_reader :available + # Attribute for field display_preference + attr_reader :display_preference + + def self.inner_class_types + @inner_class_types = { display_preference: DisplayPreference } + end + + def self.field_remappings + @field_remappings = {} + end + end + class Blik < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. @@ -1483,6 +1514,37 @@ def self.field_remappings end end + class Scalapay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject + # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + attr_reader :overridable + # The account's display preference. + attr_reader :preference + # The effective display preference value. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + attr_reader :available + # Attribute for field display_preference + attr_reader :display_preference + + def self.inner_class_types + @inner_class_types = { display_preference: DisplayPreference } + end + + def self.field_remappings + @field_remappings = {} + end + end + class SepaDebit < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. @@ -1787,6 +1849,8 @@ def self.field_remappings attr_reader :bancontact # Attribute for field billie attr_reader :billie + # Attribute for field bizum + attr_reader :bizum # Attribute for field blik attr_reader :blik # Attribute for field boleto @@ -1871,6 +1935,8 @@ def self.field_remappings attr_reader :samsung_pay # Attribute for field satispay attr_reader :satispay + # Attribute for field scalapay + attr_reader :scalapay # Attribute for field sepa_debit attr_reader :sepa_debit # Attribute for field sofort @@ -1933,6 +1999,7 @@ def self.inner_class_types bacs_debit: BacsDebit, bancontact: Bancontact, billie: Billie, + bizum: Bizum, blik: Blik, boleto: Boleto, card: Card, @@ -1969,6 +2036,7 @@ def self.inner_class_types revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_debit: SepaDebit, sofort: Sofort, sunbit: Sunbit, diff --git a/lib/stripe/resources/payment_record.rb b/lib/stripe/resources/payment_record.rb index 7e8cad19d..fb443d5d4 100644 --- a/lib/stripe/resources/payment_record.rb +++ b/lib/stripe/resources/payment_record.rb @@ -454,6 +454,19 @@ def self.field_remappings end end + class Bizum < ::Stripe::StripeObject + # The Bizum transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class Blik < ::Stripe::StripeObject # A unique and immutable identifier assigned by BLIK to every buyer. attr_reader :buyer_id @@ -1069,11 +1082,9 @@ def self.field_remappings attr_reader :location # The payer details for this transaction. attr_reader :payer_details - # The Klarna payment method used for this transaction. - # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + # The Klarna payment method used for this transaction. Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` attr_reader :payment_method_category - # Preferred language of the Klarna authorization page that the customer is redirected to. - # Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + # Preferred language of the Klarna authorization page that the customer is redirected to. Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` attr_reader :preferred_locale # ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. attr_reader :reader @@ -1132,8 +1143,7 @@ def self.field_remappings end class Link < ::Stripe::StripeObject - # Two-letter ISO code representing the funding source country beneath the Link payment. - # You could use this attribute to get a sense of international fees. + # Two-letter ISO code representing the funding source country beneath the Link payment. You could use this attribute to get a sense of international fees. attr_reader :country def self.inner_class_types @@ -1261,9 +1271,7 @@ class P24 < ::Stripe::StripeObject attr_reader :bank # Unique reference for this Przelewy24 payment. attr_reader :reference - # Owner's verified full name. Values are verified or provided by Przelewy24 directly - # (if supported) at the time of authorization or settlement. They cannot be set or mutated. - # Przelewy24 rarely provides this information so the attribute is usually empty. + # Owner's verified full name. Values are verified or provided by Przelewy24 directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Przelewy24 rarely provides this information so the attribute is usually empty. attr_reader :verified_name def self.inner_class_types @@ -1429,7 +1437,7 @@ def self.field_remappings end # Attribute for field card attr_reader :card - # funding type of the underlying payment method. + # Funding type of the underlying payment method. attr_reader :type def self.inner_class_types @@ -1482,6 +1490,19 @@ def self.field_remappings end end + class Scalapay < ::Stripe::StripeObject + # The Scalapay transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class SepaCreditTransfer < ::Stripe::StripeObject # Name of the bank associated with the bank account. attr_reader :bank_name @@ -1594,6 +1615,9 @@ def self.field_remappings end class Twint < ::Stripe::StripeObject + # ID of the multi use Mandate generated by the PaymentIntent + attr_reader :mandate + def self.inner_class_types @inner_class_types = {} end @@ -1709,6 +1733,8 @@ def self.field_remappings attr_reader :billie # The billing details associated with the method of payment. attr_reader :billing_details + # Attribute for field bizum + attr_reader :bizum # Attribute for field blik attr_reader :blik # Attribute for field boleto @@ -1785,6 +1811,8 @@ def self.field_remappings attr_reader :samsung_pay # Attribute for field satispay attr_reader :satispay + # Attribute for field scalapay + attr_reader :scalapay # Attribute for field sepa_credit_transfer attr_reader :sepa_credit_transfer # Attribute for field sepa_debit @@ -1829,6 +1857,7 @@ def self.inner_class_types bancontact: Bancontact, billie: Billie, billing_details: BillingDetails, + bizum: Bizum, blik: Blik, boleto: Boleto, card: Card, @@ -1865,6 +1894,7 @@ def self.inner_class_types revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_credit_transfer: SepaCreditTransfer, sepa_debit: SepaDebit, sofort: Sofort, diff --git a/lib/stripe/resources/radar/payment_evaluation.rb b/lib/stripe/resources/radar/payment_evaluation.rb index 9a22430fb..2b4562d71 100644 --- a/lib/stripe/resources/radar/payment_evaluation.rb +++ b/lib/stripe/resources/radar/payment_evaluation.rb @@ -463,7 +463,7 @@ def self.field_remappings attr_reader :outcome # Payment details attached to this payment evaluation. attr_reader :payment_details - # Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block` and `continue`. + # Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block`, `continue` and `request_three_d_secure`. attr_reader :recommended_action # Collection of signals for this payment evaluation. attr_reader :signals diff --git a/lib/stripe/resources/refund.rb b/lib/stripe/resources/refund.rb index 25f329e9d..c123f0e5d 100644 --- a/lib/stripe/resources/refund.rb +++ b/lib/stripe/resources/refund.rb @@ -360,6 +360,16 @@ def self.field_remappings end end + class Scalapay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class Sofort < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} @@ -502,6 +512,8 @@ def self.field_remappings attr_reader :pix # Attribute for field revolut attr_reader :revolut + # Attribute for field scalapay + attr_reader :scalapay # Attribute for field sofort attr_reader :sofort # Attribute for field swish @@ -549,6 +561,7 @@ def self.inner_class_types paypal: Paypal, pix: Pix, revolut: Revolut, + scalapay: Scalapay, sofort: Sofort, swish: Swish, th_bank_transfer: ThBankTransfer, diff --git a/lib/stripe/resources/setup_attempt.rb b/lib/stripe/resources/setup_attempt.rb index 4f7219864..5cfc3c1c6 100644 --- a/lib/stripe/resources/setup_attempt.rb +++ b/lib/stripe/resources/setup_attempt.rb @@ -421,6 +421,16 @@ def self.field_remappings end end + class Twint < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class Upi < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} @@ -484,6 +494,8 @@ def self.field_remappings attr_reader :sepa_debit # Attribute for field sofort attr_reader :sofort + # Attribute for field twint + attr_reader :twint # The type of the payment method used in the SetupIntent (e.g., `card`). An additional hash is included on `payment_method_details` with a name matching this value. It contains confirmation-specific information for the payment method. attr_reader :type # Attribute for field upi @@ -515,6 +527,7 @@ def self.inner_class_types revolut_pay: RevolutPay, sepa_debit: SepaDebit, sofort: Sofort, + twint: Twint, upi: Upi, us_bank_account: UsBankAccount, } diff --git a/lib/stripe/resources/setup_intent.rb b/lib/stripe/resources/setup_intent.rb index a65b2e328..64be04089 100644 --- a/lib/stripe/resources/setup_intent.rb +++ b/lib/stripe/resources/setup_intent.rb @@ -141,6 +141,16 @@ def self.field_remappings end class NextAction < ::Stripe::StripeObject + class BlikAuthorize < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class CashappHandleRedirectOrDisplayQrCode < ::Stripe::StripeObject class QrCode < ::Stripe::StripeObject # The date (unix timestamp) when the QR code expires. @@ -257,6 +267,8 @@ def self.field_remappings @field_remappings = {} end end + # Attribute for field blik_authorize + attr_reader :blik_authorize # Attribute for field cashapp_handle_redirect_or_display_qr_code attr_reader :cashapp_handle_redirect_or_display_qr_code # Attribute for field pix_display_qr_code @@ -274,6 +286,7 @@ def self.field_remappings def self.inner_class_types @inner_class_types = { + blik_authorize: BlikAuthorize, cashapp_handle_redirect_or_display_qr_code: CashappHandleRedirectOrDisplayQrCode, pix_display_qr_code: PixDisplayQrCode, redirect_to_url: RedirectToUrl, @@ -375,6 +388,16 @@ def self.field_remappings end end + class Bizum < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class Card < ::Stripe::StripeObject class MandateOptions < ::Stripe::StripeObject # Amount to be charged for future payments, specified in the presentment currency. @@ -673,6 +696,8 @@ def self.field_remappings attr_reader :amazon_pay # Attribute for field bacs_debit attr_reader :bacs_debit + # Attribute for field bizum + attr_reader :bizum # Attribute for field card attr_reader :card # Attribute for field card_present @@ -699,6 +724,7 @@ def self.inner_class_types acss_debit: AcssDebit, amazon_pay: AmazonPay, bacs_debit: BacsDebit, + bizum: Bizum, card: Card, card_present: CardPresent, klarna: Klarna, diff --git a/lib/stripe/resources/subscription.rb b/lib/stripe/resources/subscription.rb index 0e3965344..517bc4537 100644 --- a/lib/stripe/resources/subscription.rb +++ b/lib/stripe/resources/subscription.rb @@ -97,6 +97,70 @@ def self.field_remappings end end + class BillingSchedule < ::Stripe::StripeObject + class AppliesTo < ::Stripe::StripeObject + # The billing schedule will apply to the subscription item with the given price ID. + attr_reader :price + # Controls which subscription items the billing schedule applies to. + attr_reader :type + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class BillUntil < ::Stripe::StripeObject + class Duration < ::Stripe::StripeObject + # Specifies billing duration. Either `day`, `week`, `month` or `year`. + attr_reader :interval + # The multiplier applied to the interval. + attr_reader :interval_count + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # The timestamp the billing schedule will apply until. + attr_reader :computed_timestamp + # Specifies the billing period. + attr_reader :duration + # If specified, the billing schedule will apply until the specified timestamp. + attr_reader :timestamp + # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + attr_reader :type + + def self.inner_class_types + @inner_class_types = { duration: Duration } + end + + def self.field_remappings + @field_remappings = {} + end + end + # Specifies which subscription items the billing schedule applies to. + attr_reader :applies_to + # Specifies the end of billing period. + attr_reader :bill_until + # Unique identifier for the billing schedule. + attr_reader :key + + def self.inner_class_types + @inner_class_types = { applies_to: AppliesTo, bill_until: BillUntil } + end + + def self.field_remappings + @field_remappings = {} + end + end + class BillingThresholds < ::Stripe::StripeObject # Monetary threshold that triggers the subscription to create an invoice attr_reader :amount_gte @@ -531,8 +595,14 @@ def self.field_remappings class PendingUpdate < ::Stripe::StripeObject # If the update is applied, determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. The timestamp is in UTC format. attr_reader :billing_cycle_anchor + # The pending subscription-level discount that will be applied when the pending update is applied. + attr_reader :discount + # The discounts that will be applied to the subscription when the pending update is applied. Use `expand[]=discounts` to expand each discount. + attr_reader :discounts # The point after which the changes reflected by this update will be discarded and no longer applied. attr_reader :expires_at + # Set of [key-value pairs](https://docs.stripe.com/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 # List of subscription items, each with an attached plan, that will be set if the update is applied. attr_reader :subscription_items # Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied. @@ -613,6 +683,8 @@ def self.field_remappings attr_reader :billing_cycle_anchor_config # The billing mode of the subscription. attr_reader :billing_mode + # Billing schedules for this subscription. + attr_reader :billing_schedules # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period attr_reader :billing_thresholds # A date in the future at which the subscription will automatically get canceled @@ -706,7 +778,7 @@ def self.field_remappings # If the subscription has a trial, the beginning of that trial. attr_reader :trial_start - # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. # # Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. # @@ -720,7 +792,7 @@ def cancel(params = {}, opts = {}) ) end - # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. # # Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. # @@ -790,7 +862,7 @@ def self.migrate(subscription, params = {}, opts = {}) ) end - # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). def resume(params = {}, opts = {}) request_stripe_object( method: :post, @@ -800,7 +872,7 @@ def resume(params = {}, opts = {}) ) end - # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). def self.resume(subscription, params = {}, opts = {}) request_stripe_object( method: :post, @@ -860,6 +932,7 @@ def self.inner_class_types automatic_tax: AutomaticTax, billing_cycle_anchor_config: BillingCycleAnchorConfig, billing_mode: BillingMode, + billing_schedules: BillingSchedule, billing_thresholds: BillingThresholds, cancellation_details: CancellationDetails, invoice_settings: InvoiceSettings, diff --git a/lib/stripe/resources/subscription_item.rb b/lib/stripe/resources/subscription_item.rb index c5677f285..f5b35e864 100644 --- a/lib/stripe/resources/subscription_item.rb +++ b/lib/stripe/resources/subscription_item.rb @@ -27,6 +27,8 @@ def self.field_remappings @field_remappings = {} end end + # The time period the subscription item has been billed for. + attr_reader :billed_until # Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period attr_reader :billing_thresholds # Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/lib/stripe/resources/subscription_schedule.rb b/lib/stripe/resources/subscription_schedule.rb index 95d240ea2..c659673e7 100644 --- a/lib/stripe/resources/subscription_schedule.rb +++ b/lib/stripe/resources/subscription_schedule.rb @@ -248,6 +248,8 @@ def self.field_remappings @field_remappings = {} end end + # Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + attr_reader :discountable # The stackable discounts that will be applied to the item. attr_reader :discounts # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. diff --git a/lib/stripe/resources/terminal/configuration.rb b/lib/stripe/resources/terminal/configuration.rb index e2977c196..90dc2f4d0 100644 --- a/lib/stripe/resources/terminal/configuration.rb +++ b/lib/stripe/resources/terminal/configuration.rb @@ -540,6 +540,19 @@ def self.field_remappings end end + class VerifoneM425 < ::Stripe::StripeObject + # A File ID representing an image to display on the reader + attr_reader :splashscreen + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class VerifoneP400 < ::Stripe::StripeObject # A File ID representing an image to display on the reader attr_reader :splashscreen @@ -553,6 +566,45 @@ def self.field_remappings end end + class VerifoneP630 < ::Stripe::StripeObject + # A File ID representing an image to display on the reader + attr_reader :splashscreen + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class VerifoneUx700 < ::Stripe::StripeObject + # A File ID representing an image to display on the reader + attr_reader :splashscreen + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class VerifoneV660p < ::Stripe::StripeObject + # A File ID representing an image to display on the reader + attr_reader :splashscreen + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class Wifi < ::Stripe::StripeObject class EnterpriseEapPeap < ::Stripe::StripeObject # A File ID representing a PEM file containing the server certificate @@ -657,8 +709,16 @@ def self.field_remappings attr_reader :stripe_s710 # Attribute for field tipping attr_reader :tipping + # Attribute for field verifone_m425 + attr_reader :verifone_m425 # Attribute for field verifone_p400 attr_reader :verifone_p400 + # Attribute for field verifone_p630 + attr_reader :verifone_p630 + # Attribute for field verifone_ux700 + attr_reader :verifone_ux700 + # Attribute for field verifone_v660p + attr_reader :verifone_v660p # Attribute for field wifi attr_reader :wifi @@ -722,7 +782,11 @@ def self.inner_class_types stripe_s700: StripeS700, stripe_s710: StripeS710, tipping: Tipping, + verifone_m425: VerifoneM425, verifone_p400: VerifoneP400, + verifone_p630: VerifoneP630, + verifone_ux700: VerifoneUx700, + verifone_v660p: VerifoneV660p, wifi: Wifi, } end diff --git a/lib/stripe/resources/terminal/reader.rb b/lib/stripe/resources/terminal/reader.rb index fb8af0951..38c47e741 100644 --- a/lib/stripe/resources/terminal/reader.rb +++ b/lib/stripe/resources/terminal/reader.rb @@ -18,6 +18,83 @@ def self.object_name end class Action < ::Stripe::StripeObject + class ApiError < ::Stripe::StripeObject + # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one. + attr_reader :advice_code + # For card errors, the ID of the failed charge. + attr_reader :charge + # For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported. + attr_reader :code + # For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one. + attr_reader :decline_code + # A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported. + attr_reader :doc_url + # A human-readable message providing more details about the error. For card errors, these messages can be shown to your users. + attr_reader :message + # For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error. + attr_reader :network_advice_code + # For payments declined by the network, an alphanumeric code which indicates the reason the payment failed. + attr_reader :network_decline_code + # If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field. + attr_reader :param + # A PaymentIntent guides you through the process of collecting a payment from your customer. + # We recommend that you create exactly one PaymentIntent for each order or + # customer session in your system. You can reference the PaymentIntent later to + # see the history of payment attempts for a particular session. + # + # A PaymentIntent transitions through + # [multiple statuses](/payments/paymentintents/lifecycle) + # throughout its lifetime as it interfaces with Stripe.js to perform + # authentication flows and ultimately creates at most one successful charge. + # + # Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents) + attr_reader :payment_intent + # PaymentMethod objects represent your customer's payment instruments. + # You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to + # Customer objects to store instrument details for future payments. + # + # Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios). + attr_reader :payment_method + # If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors. + attr_reader :payment_method_type + # A URL to the request log entry in your dashboard. + attr_reader :request_log_url + # A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments. + # For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment. + # Later, you can use [PaymentIntents](https://api.stripe.com#payment_intents) to drive the payment flow. + # + # Create a SetupIntent when you're ready to collect your customer's payment credentials. + # Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid. + # The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides + # you through the setup process. + # + # Successful SetupIntents result in payment credentials that are optimized for future payments. + # For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through + # [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection + # to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents). + # If you use the SetupIntent with a [Customer](https://api.stripe.com#setup_intent_object-customer), + # it automatically attaches the resulting payment method to that Customer after successful setup. + # We recommend using SetupIntents or [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) on + # PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods. + # + # By using SetupIntents, you can reduce friction for your customers, even as regulations change over time. + # + # Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) + attr_reader :setup_intent + # Attribute for field source + attr_reader :source + # The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error` + attr_reader :type + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class CollectInputs < ::Stripe::StripeObject class Input < ::Stripe::StripeObject class CustomText < ::Stripe::StripeObject @@ -285,6 +362,39 @@ def self.field_remappings end end + class PrintContent < ::Stripe::StripeObject + class Image < ::Stripe::StripeObject + # Creation time of the object (in seconds since the Unix epoch). + attr_reader :created_at + # The original name of the uploaded file (e.g. `receipt.png`). + attr_reader :filename + # The size (in bytes) of the uploaded file. + attr_reader :size + # The format of the uploaded file. + attr_reader :type + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Metadata of an uploaded file + attr_reader :image + # The type of content to print. Currently supports `image`. + attr_reader :type + + def self.inner_class_types + @inner_class_types = { image: Image } + end + + def self.field_remappings + @field_remappings = {} + end + end + class ProcessPaymentIntent < ::Stripe::StripeObject class ProcessConfig < ::Stripe::StripeObject class Tipping < ::Stripe::StripeObject @@ -448,6 +558,8 @@ def self.field_remappings @field_remappings = {} end end + # The reader action failed due to an [API error](https://docs.stripe.com/api/errors). Only present when `status` is `failed` and the underlying failure was an API error. Avoid parsing the `message` field for programmatic logic; use `type` or `code` instead. The `message` field is for display to humans only and may be updated at anytime. Requires [reader version](https://docs.stripe.com/terminal/readers/stripe-reader-s700-s710#reader-software-version) 2.42 or later. Readers on older versions always return null. + attr_reader :api_error # Represents a reader action to collect customer inputs attr_reader :collect_inputs # Represents a reader action to collect a payment method @@ -458,6 +570,8 @@ def self.field_remappings attr_reader :failure_code # Detailed failure message, only set if status is `failed`. attr_reader :failure_message + # Represents a reader action to print content + attr_reader :print_content # Represents a reader action to process a payment intent attr_reader :process_payment_intent # Represents a reader action to process a setup intent @@ -473,9 +587,11 @@ def self.field_remappings def self.inner_class_types @inner_class_types = { + api_error: ApiError, collect_inputs: CollectInputs, collect_payment_method: CollectPaymentMethod, confirm_payment_intent: ConfirmPaymentIntent, + print_content: PrintContent, process_payment_intent: ProcessPaymentIntent, process_setup_intent: ProcessSetupIntent, refund_payment: RefundPayment, diff --git a/lib/stripe/resources/v2/billing/meter_event_adjustment.rb b/lib/stripe/resources/v2/billing/meter_event_adjustment.rb index 0f4e7459d..6bb12e72b 100644 --- a/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +++ b/lib/stripe/resources/v2/billing/meter_event_adjustment.rb @@ -12,7 +12,7 @@ def self.object_name end class Cancel < ::Stripe::StripeObject - # Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. + # The identifier that was originally assigned to the meter event. You can only cancel events within 24 hours of Stripe receiving them. attr_reader :identifier def self.inner_class_types @@ -29,7 +29,7 @@ def self.field_remappings attr_reader :created # The name of the meter event. Corresponds with the `event_name` field on a meter. attr_reader :event_name - # The unique id of this meter event adjustment. + # The unique ID of this meter event adjustment. attr_reader :id # 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 @@ -37,7 +37,7 @@ def self.field_remappings attr_reader :object # Open Enum. The meter event adjustment’s status. attr_reader :status - # Open Enum. Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet. + # Open Enum. Specifies the type of cancellation. Currently supports canceling a single event. attr_reader :type def self.inner_class_types diff --git a/lib/stripe/resources/v2/billing/meter_event_session.rb b/lib/stripe/resources/v2/billing/meter_event_session.rb index 2303c2159..b71fbc51f 100644 --- a/lib/stripe/resources/v2/billing/meter_event_session.rb +++ b/lib/stripe/resources/v2/billing/meter_event_session.rb @@ -11,14 +11,14 @@ def self.object_name "v2.billing.meter_event_session" end - # The authentication token for this session. Use this token when calling the + # The authentication token for this session. Use this token when calling the # high-throughput meter event API. attr_reader :authentication_token # The creation time of this session. attr_reader :created - # The time at which this session will expire. + # The time at which this session expires. attr_reader :expires_at - # The unique id of this auth session. + # The unique ID of this auth session. attr_reader :id # 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 diff --git a/lib/stripe/resources/v2/commerce/product_catalog_import.rb b/lib/stripe/resources/v2/commerce/product_catalog_import.rb new file mode 100644 index 000000000..296b5603c --- /dev/null +++ b/lib/stripe/resources/v2/commerce/product_catalog_import.rb @@ -0,0 +1,274 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Commerce + # The ProductCatalogImport object tracks the long-running background process that handles uploading, processing and validation. + class ProductCatalogImport < APIResource + OBJECT_NAME = "v2.commerce.product_catalog_import" + def self.object_name + "v2.commerce.product_catalog_import" + end + + class StatusDetails < ::Stripe::StripeObject + class AwaitingUpload < ::Stripe::StripeObject + class UploadUrl < ::Stripe::StripeObject + # The timestamp when the upload URL expires. + attr_reader :expires_at + # The pre-signed URL for uploading the catalog file. + attr_reader :url + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # The pre-signed URL information for uploading the catalog file. + attr_reader :upload_url + + def self.inner_class_types + @inner_class_types = { upload_url: UploadUrl } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Failed < ::Stripe::StripeObject + # The error code for this product catalog processing failure. + attr_reader :code + # A message explaining why the import failed. + attr_reader :failure_message + # The error type for this product catalog processing failure. + attr_reader :type + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Processing < ::Stripe::StripeObject + # The number of records that failed to process so far. + attr_reader :error_count + # The number of records processed so far. + attr_reader :success_count + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + + def self.field_encodings + @field_encodings = { error_count: :int64_string, success_count: :int64_string } + end + end + + class Succeeded < ::Stripe::StripeObject + # The total number of records processed. + attr_reader :success_count + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + + def self.field_encodings + @field_encodings = { success_count: :int64_string } + end + end + + class SucceededWithErrors < ::Stripe::StripeObject + class ErrorFile < ::Stripe::StripeObject + class DownloadUrl < ::Stripe::StripeObject + # The timestamp when the download URL expires. + attr_reader :expires_at + # The pre-signed URL for downloading the error file. + attr_reader :url + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # The MIME type of the error file. + attr_reader :content_type + # The pre-signed URL information for downloading the error file. + attr_reader :download_url + # The size of the error file in bytes. + attr_reader :size + + def self.inner_class_types + @inner_class_types = { download_url: DownloadUrl } + end + + def self.field_remappings + @field_remappings = {} + end + + def self.field_encodings + @field_encodings = { size: :int64_string } + end + end + + class Sample < ::Stripe::StripeObject + # A description of what went wrong with this record. + attr_reader :error_message + # The name of the field that caused the error. + attr_reader :field + # The identifier of the record that failed to process. + attr_reader :id + # The row number in the import file where the error occurred. + attr_reader :row + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + + def self.field_encodings + @field_encodings = { row: :int64_string } + end + end + # The total number of records that failed to process. + attr_reader :error_count + # A file containing details about all errors that occurred. + attr_reader :error_file + # A sample of errors that occurred during processing. + attr_reader :samples + # The total number of records processed. + attr_reader :success_count + + def self.inner_class_types + @inner_class_types = { error_file: ErrorFile, samples: Sample } + end + + def self.field_remappings + @field_remappings = {} + end + + def self.field_encodings + @field_encodings = { + error_count: :int64_string, + error_file: { kind: :object, fields: { size: :int64_string } }, + samples: { kind: :array, element: { kind: :object, fields: { row: :int64_string } } }, + success_count: :int64_string, + } + end + end + # Details when the import is awaiting file upload. + attr_reader :awaiting_upload + # Details when the import didn't complete. + attr_reader :failed + # Details when the import is processing. + attr_reader :processing + # Details when the import has succeeded. + attr_reader :succeeded + # Details when the import completed but some records failed to process. + attr_reader :succeeded_with_errors + + def self.inner_class_types + @inner_class_types = { + awaiting_upload: AwaitingUpload, + failed: Failed, + processing: Processing, + succeeded: Succeeded, + succeeded_with_errors: SucceededWithErrors, + } + end + + def self.field_remappings + @field_remappings = {} + end + + def self.field_encodings + @field_encodings = { + processing: { + kind: :object, + fields: { error_count: :int64_string, success_count: :int64_string }, + }, + succeeded: { kind: :object, fields: { success_count: :int64_string } }, + succeeded_with_errors: { + kind: :object, + fields: { + error_count: :int64_string, + error_file: { kind: :object, fields: { size: :int64_string } }, + samples: { kind: :array, element: { kind: :object, fields: { row: :int64_string } } }, + success_count: :int64_string, + }, + }, + } + end + end + # The time this ProductCatalogImport was created. + attr_reader :created + # The type of feed data being imported into the product catalog. + attr_reader :feed_type + # The unique identifier for this ProductCatalogImport. + attr_reader :id + # 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 + # 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 of the object field. + attr_reader :object + # The current status of this ProductCatalogImport. + attr_reader :status + # Details about the current import status. + attr_reader :status_details + + def self.inner_class_types + @inner_class_types = { status_details: StatusDetails } + end + + def self.field_remappings + @field_remappings = {} + end + + def self.field_encodings + @field_encodings = { + status_details: { + kind: :object, + fields: { + processing: { + kind: :object, + fields: { error_count: :int64_string, success_count: :int64_string }, + }, + succeeded: { kind: :object, fields: { success_count: :int64_string } }, + succeeded_with_errors: { + kind: :object, + fields: { + error_count: :int64_string, + error_file: { kind: :object, fields: { size: :int64_string } }, + samples: { kind: :array, element: { kind: :object, fields: { row: :int64_string } } }, + success_count: :int64_string, + }, + }, + }, + }, + } + end + end + end + end +end diff --git a/lib/stripe/resources/v2/core/account.rb b/lib/stripe/resources/v2/core/account.rb index 1f7799361..681bcb92e 100644 --- a/lib/stripe/resources/v2/core/account.rb +++ b/lib/stripe/resources/v2/core/account.rb @@ -4,9 +4,8 @@ module Stripe module V2 module Core - # An Account v2 object represents a company, individual, or other entity that interacts with a platform on Stripe. It contains both identifying information and properties that control its behavior and functionality. An Account can have one or more configurations that enable sets of related features, such as allowing it to act as a merchant or customer. - # The Accounts v2 API supports both the Global Payouts preview feature and the Connect-Billing integration preview feature. However, a particular Account can only access one of them. - # The Connect-Billing integration preview feature allows an Account v2 to pay subscription fees to a platform. An Account v1 required a separate Customer object to pay subscription fees. + # An Account v2 object represents a company, individual, or other entity that your Stripe integration interacts with. It contains both identifying information and properties that control its behavior and functionality. An Account can have one or more configurations that enable sets of related features, such as allowing it to act as a merchant or customer. + # The Accounts v2 API is broadly available to Connect platforms, and to other users in preview. The Accounts v2 API also supports the Global Payouts preview feature. class Account < APIResource OBJECT_NAME = "v2.core.account" def self.object_name @@ -98,7 +97,7 @@ def self.field_remappings @field_remappings = {} end end - # ID of a PaymentMethod attached to the customer account to use as the default for invoices and subscriptions. + # The ID of a `PaymentMethod` attached to this Account's `customer` configuration, used as the default payment method for invoices and subscriptions. attr_reader :default_payment_method # Default invoice settings for the customer account. attr_reader :invoice @@ -2039,7 +2038,7 @@ def self.field_remappings @field_remappings = {} end end - # The Customer Configuration allows the Account to be used in inbound payment flows. + # The Customer Configuration allows the Account to be used in inbound payment flows (i.e. customer-facing payment and billing flows). attr_reader :customer # Enables the Account to act as a connected account and collect payments facilitated by a Connect platform. You must onboard your platform to Connect before you can add this configuration to your connected accounts. Utilize this configuration when the Account will be the Merchant of Record, like with Direct charges or Destination Charges with on_behalf_of set. attr_reader :merchant @@ -2583,13 +2582,27 @@ def self.field_remappings end class ProofOfRegistration < ::Stripe::StripeObject + class Signer < ::Stripe::StripeObject + # Person signing the document. + attr_reader :person + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. attr_reader :files + # Person that is signing the document. + attr_reader :signer # The format of the document. Currently supports `files` only. attr_reader :type def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { signer: Signer } end def self.field_remappings @@ -2598,13 +2611,27 @@ def self.field_remappings end class ProofOfUltimateBeneficialOwnership < ::Stripe::StripeObject + class Signer < ::Stripe::StripeObject + # Person signing the document. + attr_reader :person + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. attr_reader :files + # Person that is signing the document. + attr_reader :signer # The format of the document. Currently supports `files` only. attr_reader :type def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { signer: Signer } end def self.field_remappings @@ -3257,7 +3284,7 @@ def self.field_remappings attr_reader :date_of_birth # Documents that may be submitted to satisfy various informational requests. attr_reader :documents - # The individual's email address. + # The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account. attr_reader :email # The individual's first name. attr_reader :given_name @@ -3319,7 +3346,7 @@ def self.field_encodings attr_reader :business_details # The country in which the account holder resides, or in which the business is legally established. This should be an [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. attr_reader :country - # The entity type. + # The entity type represented by the Account. Ensure this field is accurate before adding configurations that rely on identity information, as it determines which identity fields apply and how the Account is validated. attr_reader :entity_type # Information about the individual represented by the Account. This property is `null` unless `entity_type` is set to `individual`. attr_reader :individual @@ -3524,7 +3551,7 @@ def self.field_remappings attr_reader :closed # An Account represents a company, individual, or other entity that a user interacts with. Accounts store identity information and one or more configurations that enable product-specific capabilities. You can assign configurations at creation or add them later. attr_reader :configuration - # The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + # The primary contact email address for the Account. attr_reader :contact_email # The default contact phone for the Account. attr_reader :contact_phone diff --git a/lib/stripe/resources/v2/core/account_token.rb b/lib/stripe/resources/v2/core/account_token.rb index be1d86880..3ea707621 100644 --- a/lib/stripe/resources/v2/core/account_token.rb +++ b/lib/stripe/resources/v2/core/account_token.rb @@ -4,7 +4,7 @@ module Stripe module V2 module Core - # Account tokens are single-use tokens which tokenize company/individual/business information, and are used for creating or updating an Account. + # Account tokens are single-use tokens which tokenize an account's contact_email, display_name, contact_phone, and identity. class AccountToken < APIResource OBJECT_NAME = "v2.core.account_token" def self.object_name diff --git a/lib/stripe/resources/v2/core/event.rb b/lib/stripe/resources/v2/core/event.rb index 367e80aef..578897e1e 100644 --- a/lib/stripe/resources/v2/core/event.rb +++ b/lib/stripe/resources/v2/core/event.rb @@ -5,6 +5,7 @@ module Stripe module V2 module Core # Events are generated to keep you informed of activity in your business account. APIs in the /v2 namespace generate [thin events](https://docs.stripe.com/event-destinations#benefits-of-thin-events) which have small, unversioned payloads that include a reference to the ID of the object that has changed. The Events v2 API returns these new thin events. [Retrieve the event object](https://docs.stripe.com/event-destinations#fetch-data) for additional data about the event. Use the related object ID in the event payload to [fetch the API resource](https://docs.stripe.com/event-destinations#retrieve-the-object-associated-with-thin-events) of the object associated with the event. Comparatively, events generated by most API v1 include a versioned snapshot of an API object in their payload. + # You can access events through the [Retrieve Event API](https://docs.stripe.com/api/v2/core/events/retrieve) for 30 days. class Event < APIResource OBJECT_NAME = "v2.core.event" def self.object_name diff --git a/lib/stripe/resources/v2/core/event_destination.rb b/lib/stripe/resources/v2/core/event_destination.rb index 30172e450..972811d10 100644 --- a/lib/stripe/resources/v2/core/event_destination.rb +++ b/lib/stripe/resources/v2/core/event_destination.rb @@ -28,6 +28,27 @@ def self.field_remappings end end + class AzureEventGrid < ::Stripe::StripeObject + # The name of the Azure partner topic. + attr_reader :azure_partner_topic_name + # The status of the Azure partner topic. + attr_reader :azure_partner_topic_status + # The Azure region. + attr_reader :azure_region + # The name of the Azure resource group. + attr_reader :azure_resource_group_name + # The Azure subscription ID. + attr_reader :azure_subscription_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class StatusDetails < ::Stripe::StripeObject class Disabled < ::Stripe::StripeObject # Reason event destination has been disabled. @@ -69,6 +90,8 @@ def self.field_remappings end # Amazon EventBridge configuration. attr_reader :amazon_eventbridge + # Azure Event Grid configuration. + attr_reader :azure_event_grid # Time at which the object was created. attr_reader :created # An optional description of what the event destination is used for. @@ -109,6 +132,7 @@ def self.field_remappings def self.inner_class_types @inner_class_types = { amazon_eventbridge: AmazonEventbridge, + azure_event_grid: AzureEventGrid, status_details: StatusDetails, webhook_endpoint: WebhookEndpoint, } diff --git a/lib/stripe/services.rb b/lib/stripe/services.rb index 6268ce9b2..22bbd33e3 100644 --- a/lib/stripe/services.rb +++ b/lib/stripe/services.rb @@ -241,6 +241,7 @@ module Treasury module V2 autoload :BillingService, "stripe/services/v2/billing_service" + autoload :CommerceService, "stripe/services/v2/commerce_service" autoload :CoreService, "stripe/services/v2/core_service" module Billing @@ -250,6 +251,14 @@ module Billing autoload :MeterEventStreamService, "stripe/services/v2/billing/meter_event_stream_service" end + module Commerce + autoload :ProductCatalogService, "stripe/services/v2/commerce/product_catalog_service" + + module ProductCatalog + autoload :ImportService, "stripe/services/v2/commerce/product_catalog/import_service" + end + end + module Core autoload :AccountLinkService, "stripe/services/v2/core/account_link_service" autoload :AccountService, "stripe/services/v2/core/account_service" @@ -446,6 +455,9 @@ module Stripe stripe/services/v2/billing/meter_event_session_service stripe/services/v2/billing/meter_event_stream_service stripe/services/v2/billing_service + stripe/services/v2/commerce/product_catalog/import_service + stripe/services/v2/commerce/product_catalog_service + stripe/services/v2/commerce_service stripe/services/v2/core/account_link_service stripe/services/v2/core/account_service stripe/services/v2/core/account_token_service diff --git a/lib/stripe/services/payment_intent_service.rb b/lib/stripe/services/payment_intent_service.rb index 317a1b622..4f8cab541 100644 --- a/lib/stripe/services/payment_intent_service.rb +++ b/lib/stripe/services/payment_intent_service.rb @@ -134,7 +134,9 @@ def create(params = {}, opts = {}) # Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. # After it's captured, a PaymentIntent can no longer be incremented. # - # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + # Learn more about incremental authorizations with + # [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + # [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). def increment_authorization(intent, params = {}, opts = {}) request( method: :post, diff --git a/lib/stripe/services/subscription_service.rb b/lib/stripe/services/subscription_service.rb index 1874cd227..9bc99c934 100644 --- a/lib/stripe/services/subscription_service.rb +++ b/lib/stripe/services/subscription_service.rb @@ -3,7 +3,7 @@ module Stripe class SubscriptionService < StripeService - # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. # # Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. # @@ -70,7 +70,7 @@ def migrate(subscription, params = {}, opts = {}) ) end - # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). def resume(subscription, params = {}, opts = {}) request( method: :post, diff --git a/lib/stripe/services/v2/billing/meter_event_session_service.rb b/lib/stripe/services/v2/billing/meter_event_session_service.rb index 3ab5e3236..ee722421c 100644 --- a/lib/stripe/services/v2/billing/meter_event_session_service.rb +++ b/lib/stripe/services/v2/billing/meter_event_session_service.rb @@ -5,7 +5,7 @@ module Stripe module V2 module Billing class MeterEventSessionService < StripeService - # Creates a meter event session to send usage on the high-throughput meter event stream. Authentication tokens are only valid for 15 minutes, so you will need to create a new meter event session when your token expires. + # Creates a meter event session to send usage on the high-throughput meter event stream. Authentication tokens are only valid for 15 minutes, so you need to create a new meter event session when your token expires. def create(params = {}, opts = {}) request( method: :post, diff --git a/lib/stripe/services/v2/commerce/product_catalog/import_service.rb b/lib/stripe/services/v2/commerce/product_catalog/import_service.rb new file mode 100644 index 000000000..8520d16aa --- /dev/null +++ b/lib/stripe/services/v2/commerce/product_catalog/import_service.rb @@ -0,0 +1,45 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Commerce + module ProductCatalog + class ImportService < StripeService + # Creates a ProductCatalogImport. + def create(params = {}, opts = {}) + request( + method: :post, + path: "/v2/commerce/product_catalog/imports", + params: params, + opts: opts, + base_address: :api + ) + end + + # Returns a list of ProductCatalogImport objects. + def list(params = {}, opts = {}) + request( + method: :get, + path: "/v2/commerce/product_catalog/imports", + params: params, + opts: opts, + base_address: :api + ) + end + + # Retrieves a ProductCatalogImport by ID. + def retrieve(id, params = {}, opts = {}) + request( + method: :get, + path: format("/v2/commerce/product_catalog/imports/%s", { id: CGI.escape(id) }), + params: params, + opts: opts, + base_address: :api + ) + end + end + end + end + end +end diff --git a/lib/stripe/services/v2/commerce/product_catalog_service.rb b/lib/stripe/services/v2/commerce/product_catalog_service.rb new file mode 100644 index 000000000..577d06c3d --- /dev/null +++ b/lib/stripe/services/v2/commerce/product_catalog_service.rb @@ -0,0 +1,17 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + module Commerce + class ProductCatalogService < StripeService + attr_reader :imports + + def initialize(requestor) + super + @imports = Stripe::V2::Commerce::ProductCatalog::ImportService.new(@requestor) + end + end + end + end +end diff --git a/lib/stripe/services/v2/commerce_service.rb b/lib/stripe/services/v2/commerce_service.rb new file mode 100644 index 000000000..16a567400 --- /dev/null +++ b/lib/stripe/services/v2/commerce_service.rb @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module V2 + class CommerceService < StripeService + attr_reader :product_catalog + + def initialize(requestor) + super + @product_catalog = Stripe::V2::Commerce::ProductCatalogService.new(@requestor) + 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 57be5688b..7a87fa99f 100644 --- a/lib/stripe/services/v2/core/account_service.rb +++ b/lib/stripe/services/v2/core/account_service.rb @@ -26,7 +26,7 @@ def close(id, params = {}, opts = {}) ) end - # An Account is a representation of a company, individual or other entity that a user interacts with. Accounts contain identifying information about the entity, and configurations that store the features an account has access to. An account can be configured as any or all of the following configurations: Customer, Merchant and/or Recipient. + # Create an Account that represents a company, individual, or other entity that your business interacts with. Accounts contain identifying information about the entity, and configurations that store the features an account has access to. An account can be configured as any or all of the following configurations: Customer, Merchant and/or Recipient. # # ** raises RateLimitError def create(params = {}, opts = {}) diff --git a/lib/stripe/services/v2/core/account_token_service.rb b/lib/stripe/services/v2/core/account_token_service.rb index 094ef0645..338acd307 100644 --- a/lib/stripe/services/v2/core/account_token_service.rb +++ b/lib/stripe/services/v2/core/account_token_service.rb @@ -5,7 +5,11 @@ module Stripe module V2 module Core class AccountTokenService < StripeService - # Creates an Account Token. + # Create an account token with a publishable key and pass it to the Accounts v2 API to + # create or update an account without its data touching your server. + # Learn more about [account tokens](https://docs.stripe.com/connect/account-tokens). + # In live mode, you can only create account tokens with your application's publishable key. + # In test mode, you can create account tokens with your secret key or publishable key. # # ** raises RateLimitError def create(params = {}, opts = {}) diff --git a/lib/stripe/services/v2/core/accounts/person_token_service.rb b/lib/stripe/services/v2/core/accounts/person_token_service.rb index cdacc9a65..3e67dae76 100644 --- a/lib/stripe/services/v2/core/accounts/person_token_service.rb +++ b/lib/stripe/services/v2/core/accounts/person_token_service.rb @@ -6,7 +6,8 @@ module V2 module Core module Accounts class PersonTokenService < StripeService - # Creates a Person Token associated with an Account. + # Creates a single-use token that represents the details for a person. Use this when you create or update persons associated with an Account v2. Learn more about [account tokens](https://docs.stripe.com/connect/account-tokens). + # You can only create person tokens with your application's publishable key and in live mode. You can use your application's secret key to create person tokens only in test mode. # # ** raises RateLimitError def create(account_id, params = {}, opts = {}) diff --git a/lib/stripe/services/v2/core/event_service.rb b/lib/stripe/services/v2/core/event_service.rb index 86b96bcec..5d6b4a101 100644 --- a/lib/stripe/services/v2/core/event_service.rb +++ b/lib/stripe/services/v2/core/event_service.rb @@ -16,7 +16,8 @@ def list(params = {}, opts = {}) ) end - # Retrieves the details of an event. + # Retrieves the details of an event if it was created in the last 30 days. Supply the unique + # identifier of the event, which might have been delivered to your event destination. def retrieve(id, params = {}, opts = {}) request( method: :get, diff --git a/lib/stripe/services/v2_services.rb b/lib/stripe/services/v2_services.rb index 73c8f50bf..030b97726 100644 --- a/lib/stripe/services/v2_services.rb +++ b/lib/stripe/services/v2_services.rb @@ -3,11 +3,12 @@ module Stripe class V2Services < StripeService - attr_reader :billing, :core + attr_reader :billing, :commerce, :core def initialize(requestor) super @billing = Stripe::V2::BillingService.new(@requestor) + @commerce = Stripe::V2::CommerceService.new(@requestor) @core = Stripe::V2::CoreService.new(@requestor) end end diff --git a/rbi/stripe.rbi b/rbi/stripe.rbi index 7a0d4b456..4a74a8e92 100644 --- a/rbi/stripe.rbi +++ b/rbi/stripe.rbi @@ -624,7 +624,7 @@ module Stripe @field_remappings = {} end end - # The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode. + # The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Not present for subscription mode. sig { returns(T.nilable(String)) } def checkout_session; end # The ID of the customer associated with this discount. @@ -639,7 +639,7 @@ module Stripe # If the coupon has a duration of `repeating`, the date that this discount will end. If the coupon has a duration of `once` or `forever`, this attribute will be null. sig { returns(T.nilable(Integer)) } def end; end - # The ID of the discount object. Discounts cannot be fetched by ID. Use `expand[]=discounts` in API calls to expand discount IDs in an array. + # The ID of the discount object. Discounts can't be fetched by ID. Use `expand[]=discounts` in API calls to expand discount IDs in an array. sig { returns(String) } def id; end # The invoice that the discount's coupon was applied to, if it was applied directly to a particular invoice. @@ -3055,6 +3055,9 @@ module Stripe # The status of the Billie capability of the account, or whether the account can directly process Billie payments. sig { returns(T.nilable(String)) } def billie_payments; end + # The status of the Bizum capability of the account, or whether the account can directly process Bizum payments. + sig { returns(T.nilable(String)) } + def bizum_payments; end # The status of the blik payments capability of the account, or whether the account can directly process blik charges. sig { returns(T.nilable(String)) } def blik_payments; end @@ -3172,6 +3175,9 @@ module Stripe # The status of the Satispay capability of the account, or whether the account can directly process Satispay payments. sig { returns(T.nilable(String)) } def satispay_payments; end + # The status of the Scalapay capability of the account, or whether the account can directly process Scalapay payments. + sig { returns(T.nilable(String)) } + def scalapay_payments; end # The status of the SEPA customer_balance payments (EUR currency) capability of the account, or whether the account can directly process SEPA customer_balance charges. sig { returns(T.nilable(String)) } def sepa_bank_transfer_payments; end @@ -5411,6 +5417,23 @@ module Stripe class BalanceSettings < SingletonAPIResource class Payments < ::Stripe::StripeObject class Payouts < ::Stripe::StripeObject + class AutomaticTransferRulesByCurrency < ::Stripe::StripeObject + # The ID of the FinancialAccount that funds will be transferred to during automatic transfers. + sig { returns(String) } + def payout_method; end + # The maximum amount in minor units to transfer to the FinancialAccount. Only applicable when `type` is `transfer_up_to_amount`. + sig { returns(T.nilable(Integer)) } + def transfer_up_to_amount; end + # The type of automatic transfer rule. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Schedule < ::Stripe::StripeObject # How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`. sig { returns(T.nilable(String)) } @@ -5428,6 +5451,9 @@ module Stripe @field_remappings = {} end end + # Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount. + sig { returns(T.nilable(T::Hash[String, T::Array[AutomaticTransferRulesByCurrency]])) } + def automatic_transfer_rules_by_currency; end # The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](/payouts/minimum-balances-for-automatic-payouts). sig { returns(T.nilable(T::Hash[String, Integer])) } def minimum_balance_by_currency; end @@ -5441,21 +5467,44 @@ module Stripe sig { returns(String) } def status; end def self.inner_class_types - @inner_class_types = {schedule: Schedule} + @inner_class_types = { + automatic_transfer_rules_by_currency: AutomaticTransferRulesByCurrency, + schedule: Schedule, + } end def self.field_remappings @field_remappings = {} end end class SettlementTiming < ::Stripe::StripeObject + class StartOfDay < ::Stripe::StripeObject + # Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](/connect/customized-start-of-day#available-timezones-and-cutoffs). + sig { returns(Integer) } + def hour; end + # Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30. + sig { returns(Integer) } + def minutes; end + # Timezone for the customized start of day. Must be a [supported customized start of day timezone](/connect/customized-start-of-day#available-timezones-and-cutoffs). + sig { returns(String) } + def timezone; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The number of days charge funds are held before becoming available. sig { returns(Integer) } def delay_days; end # The number of days charge funds are held before becoming available. If present, overrides the default, or minimum available, for the account. sig { returns(T.nilable(Integer)) } def delay_days_override; end + # Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](/connect/customized-start-of-day) documentation. + sig { returns(T.nilable(StartOfDay)) } + def start_of_day; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {start_of_day: StartOfDay} end def self.field_remappings @field_remappings = {} @@ -7336,6 +7385,17 @@ module Stripe @field_remappings = {} end end + class Bizum < ::Stripe::StripeObject + # The Bizum transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Blik < ::Stripe::StripeObject # A unique and immutable identifier assigned by BLIK to every buyer. sig { returns(T.nilable(String)) } @@ -8681,6 +8741,17 @@ module Stripe @field_remappings = {} end end + class Scalapay < ::Stripe::StripeObject + # The Scalapay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaCreditTransfer < ::Stripe::StripeObject # Name of the bank associated with the bank account. sig { returns(T.nilable(String)) } @@ -8801,6 +8872,9 @@ module Stripe end end class Twint < ::Stripe::StripeObject + # ID of the multi use Mandate generated by the PaymentIntent + sig { returns(T.nilable(String)) } + def mandate; end def self.inner_class_types @inner_class_types = {} end @@ -8926,6 +9000,9 @@ module Stripe # Attribute for field billie sig { returns(T.nilable(Billie)) } def billie; end + # Attribute for field bizum + sig { returns(T.nilable(Bizum)) } + def bizum; end # Attribute for field blik sig { returns(T.nilable(Blik)) } def blik; end @@ -9031,6 +9108,9 @@ module Stripe # Attribute for field satispay sig { returns(T.nilable(Satispay)) } def satispay; end + # Attribute for field scalapay + sig { returns(T.nilable(Scalapay)) } + def scalapay; end # Attribute for field sepa_credit_transfer sig { returns(T.nilable(SepaCreditTransfer)) } def sepa_credit_transfer; end @@ -9086,6 +9166,7 @@ module Stripe bacs_debit: BacsDebit, bancontact: Bancontact, billie: Billie, + bizum: Bizum, blik: Blik, boleto: Boleto, card: Card, @@ -9121,6 +9202,7 @@ module Stripe revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_credit_transfer: SepaCreditTransfer, sepa_debit: SepaDebit, sofort: Sofort, @@ -9676,7 +9758,7 @@ module Stripe def payment_method_reuse_agreement; end # If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout # Session will determine whether to display an option to opt into promotional communication - # from the merchant depending on the customer's locale. Only available to US merchants. + # from the merchant depending on the customer's locale. Only available to US merchants and US customers. sig { returns(T.nilable(String)) } def promotions; end # If set to `required`, it requires customers to accept the terms of service before being able to pay. @@ -10428,7 +10510,7 @@ module Stripe end end class Restrictions < ::Stripe::StripeObject - # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. + # The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. sig { returns(T.nilable(T::Array[String])) } def brands_blocked; end def self.inner_class_types @@ -11039,6 +11121,17 @@ module Stripe @field_remappings = {} end end + class Scalapay < ::Stripe::StripeObject + # Controls when the funds will be captured from the customer's account. + sig { returns(T.nilable(String)) } + def capture_method; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaDebit < ::Stripe::StripeObject class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. @@ -11326,6 +11419,9 @@ module Stripe # Attribute for field satispay sig { returns(T.nilable(Satispay)) } def satispay; end + # Attribute for field scalapay + sig { returns(T.nilable(Scalapay)) } + def scalapay; end # Attribute for field sepa_debit sig { returns(T.nilable(SepaDebit)) } def sepa_debit; end @@ -11383,6 +11479,7 @@ module Stripe revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_debit: SepaDebit, sofort: Sofort, swish: Swish, @@ -11664,8 +11761,8 @@ module Stripe # Session with your internal systems. sig { returns(T.nilable(String)) } def client_reference_id; end - # The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. For `ui_mode: embedded`, the client secret is to be used when initializing Stripe.js embedded checkout. - # For `ui_mode: custom`, use the client secret with [initCheckout](https://docs.stripe.com/js/custom_checkout/init) on your front end. + # The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded_page` or `ui_mode: elements`. For `ui_mode: embedded_page`, the client secret is to be used when initializing Stripe.js embedded checkout. + # For `ui_mode: elements`, use the client secret with [initCheckout](https://docs.stripe.com/js/custom_checkout/init) on your front end. sig { returns(T.nilable(String)) } def client_secret; end # Information about the customer collected within the Checkout Session. @@ -11803,10 +11900,10 @@ module Stripe # The ID of the original expired Checkout Session that triggered the recovery flow. sig { returns(T.nilable(String)) } def recovered_from; end - # This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. + # This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. sig { returns(T.nilable(String)) } def redirect_on_completion; end - # Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. + # Applies to Checkout Sessions with `ui_mode: embedded_page` or `ui_mode: elements`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. sig { returns(T.nilable(String)) } def return_url; end # Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode. @@ -11848,7 +11945,7 @@ module Stripe # The UI mode of the Session. Defaults to `hosted_page`. sig { returns(T.nilable(String)) } def ui_mode; end - # The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted`. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://docs.stripe.com/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.` + # The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted_page`. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://docs.stripe.com/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.` # This value is only present when the session is active. sig { returns(T.nilable(String)) } def url; end @@ -12457,6 +12554,14 @@ module Stripe @field_remappings = {} end end + class Bizum < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Blik < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} @@ -13505,6 +13610,14 @@ module Stripe @field_remappings = {} end end + class Scalapay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaDebit < ::Stripe::StripeObject class GeneratedFrom < ::Stripe::StripeObject # The ID of the Charge that generated this PaymentMethod, if any. @@ -13717,6 +13830,9 @@ module Stripe # Attribute for field billing_details sig { returns(BillingDetails) } def billing_details; end + # Attribute for field bizum + sig { returns(T.nilable(Bizum)) } + def bizum; end # Attribute for field blik sig { returns(T.nilable(Blik)) } def blik; end @@ -13828,6 +13944,9 @@ module Stripe # Attribute for field satispay sig { returns(T.nilable(Satispay)) } def satispay; end + # Attribute for field scalapay + sig { returns(T.nilable(Scalapay)) } + def scalapay; end # Attribute for field sepa_debit sig { returns(T.nilable(SepaDebit)) } def sepa_debit; end @@ -13871,6 +13990,7 @@ module Stripe bancontact: Bancontact, billie: Billie, billing_details: BillingDetails, + bizum: Bizum, blik: Blik, boleto: Boleto, card: Card, @@ -13906,6 +14026,7 @@ module Stripe revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_debit: SepaDebit, sofort: Sofort, sunbit: Sunbit, @@ -18029,6 +18150,37 @@ module Stripe end end class ProrationDetails < ::Stripe::StripeObject + class CreditedItems < ::Stripe::StripeObject + class InvoiceLineItemDetails < ::Stripe::StripeObject + # The invoice id for the debited line item(s). + sig { returns(String) } + def invoice; end + # IDs of the debited invoice line item(s) on the invoice that correspond to the credit proration. + sig { returns(T::Array[String]) } + def invoice_line_items; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # When `type` is `invoice_item`, the invoice item id for the debited invoice item corresponding to this credit proration. + sig { returns(T.nilable(String)) } + def invoice_item; end + # Attribute for field invoice_line_item_details + sig { returns(T.nilable(InvoiceLineItemDetails)) } + def invoice_line_item_details; end + # Whether the credit references a pending invoice item or one or more invoice line items on an invoice. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {invoice_line_item_details: InvoiceLineItemDetails} + end + def self.field_remappings + @field_remappings = {} + end + end class DiscountAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the discount. sig { returns(Integer) } @@ -18043,11 +18195,14 @@ module Stripe @field_remappings = {} end end + # For a credit proration, links to the debit invoice line items or invoice item that the credit applies to. + sig { returns(T.nilable(CreditedItems)) } + def credited_items; end # Discount amounts applied when the proration was created. sig { returns(T::Array[DiscountAmount]) } def discount_amounts; end def self.inner_class_types - @inner_class_types = {discount_amounts: DiscountAmount} + @inner_class_types = {credited_items: CreditedItems, discount_amounts: DiscountAmount} end def self.field_remappings @field_remappings = {} @@ -19073,6 +19228,9 @@ module Stripe # The amount, in cents (or local equivalent), that was paid. sig { returns(Integer) } def amount_paid; end + # Amount, in cents (or local equivalent), that was paid on the invoice outside of Stripe. + sig { returns(T.nilable(Integer)) } + def amount_paid_off_stripe; end # The difference between amount_due and amount_paid, in cents (or local equivalent). sig { returns(Integer) } def amount_remaining; end @@ -21311,7 +21469,7 @@ module Stripe # The transaction being disputed. sig { returns(T.any(String, ::Stripe::Issuing::Transaction)) } def transaction; end - # [Treasury](https://docs.stripe.com/api/treasury) details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts + # [Treasury](https://docs.stripe.com/api/treasury) details related to this dispute if it was created on a [FinancialAccount](https://docs.stripe.com/api/treasury/financial_accounts) sig { returns(T.nilable(Treasury)) } def treasury; end # Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence) for more details about evidence requirements. @@ -21399,7 +21557,7 @@ module Stripe @field_remappings = {} end end - # The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. + # The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. Image must be in PNG format with dimensions of 1000px by 200px. It must be a binary (black and white) image containing a black logo on a white background. We don't accept grayscale. sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def card_logo; end # Hash containing carrier text, for use with physical bundles that support carrier text. @@ -22479,6 +22637,14 @@ module Stripe @field_remappings = {} end end + class Twint < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Upi < ::Stripe::StripeObject # Amount to be charged for future payments. sig { returns(T.nilable(Integer)) } @@ -22561,6 +22727,9 @@ module Stripe # Attribute for field sepa_debit sig { returns(T.nilable(SepaDebit)) } def sepa_debit; end + # Attribute for field twint + sig { returns(T.nilable(Twint)) } + def twint; end # This mandate corresponds with a specific payment method type. The `payment_method_details` includes an additional hash with the same name and contains mandate information that's specific to that payment method. sig { returns(String) } def type; end @@ -22589,6 +22758,7 @@ module Stripe pix: Pix, revolut_pay: RevolutPay, sepa_debit: SepaDebit, + twint: Twint, upi: Upi, us_bank_account: UsBankAccount, } @@ -23109,6 +23279,17 @@ module Stripe @field_remappings = {} end end + class Bizum < ::Stripe::StripeObject + # The Bizum transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Blik < ::Stripe::StripeObject # A unique and immutable identifier assigned by BLIK to every buyer. sig { returns(T.nilable(String)) } @@ -23792,12 +23973,10 @@ module Stripe # The payer details for this transaction. sig { returns(T.nilable(PayerDetails)) } def payer_details; end - # The Klarna payment method used for this transaction. - # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + # The Klarna payment method used for this transaction. Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` sig { returns(T.nilable(String)) } def payment_method_category; end - # Preferred language of the Klarna authorization page that the customer is redirected to. - # Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + # Preferred language of the Klarna authorization page that the customer is redirected to. Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` sig { returns(T.nilable(String)) } def preferred_locale; end # ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. @@ -23853,8 +24032,7 @@ module Stripe end end class Link < ::Stripe::StripeObject - # Two-letter ISO code representing the funding source country beneath the Link payment. - # You could use this attribute to get a sense of international fees. + # Two-letter ISO code representing the funding source country beneath the Link payment. You could use this attribute to get a sense of international fees. sig { returns(T.nilable(String)) } def country; end def self.inner_class_types @@ -23981,9 +24159,7 @@ module Stripe # Unique reference for this Przelewy24 payment. sig { returns(T.nilable(String)) } def reference; end - # Owner's verified full name. Values are verified or provided by Przelewy24 directly - # (if supported) at the time of authorization or settlement. They cannot be set or mutated. - # Przelewy24 rarely provides this information so the attribute is usually empty. + # Owner's verified full name. Values are verified or provided by Przelewy24 directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Przelewy24 rarely provides this information so the attribute is usually empty. sig { returns(T.nilable(String)) } def verified_name; end def self.inner_class_types @@ -24150,7 +24326,7 @@ module Stripe # Attribute for field card sig { returns(T.nilable(Card)) } def card; end - # funding type of the underlying payment method. + # Funding type of the underlying payment method. sig { returns(T.nilable(String)) } def type; end def self.inner_class_types @@ -24198,6 +24374,17 @@ module Stripe @field_remappings = {} end end + class Scalapay < ::Stripe::StripeObject + # The Scalapay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaCreditTransfer < ::Stripe::StripeObject # Name of the bank associated with the bank account. sig { returns(T.nilable(String)) } @@ -24316,6 +24503,9 @@ module Stripe end end class Twint < ::Stripe::StripeObject + # ID of the multi use Mandate generated by the PaymentIntent + sig { returns(T.nilable(String)) } + def mandate; end def self.inner_class_types @inner_class_types = {} end @@ -24444,6 +24634,9 @@ module Stripe # The billing details associated with the method of payment. sig { returns(T.nilable(BillingDetails)) } def billing_details; end + # Attribute for field bizum + sig { returns(T.nilable(Bizum)) } + def bizum; end # Attribute for field blik sig { returns(T.nilable(Blik)) } def blik; end @@ -24557,6 +24750,9 @@ module Stripe # Attribute for field satispay sig { returns(T.nilable(Satispay)) } def satispay; end + # Attribute for field scalapay + sig { returns(T.nilable(Scalapay)) } + def scalapay; end # Attribute for field sepa_credit_transfer sig { returns(T.nilable(SepaCreditTransfer)) } def sepa_credit_transfer; end @@ -24613,6 +24809,7 @@ module Stripe bancontact: Bancontact, billie: Billie, billing_details: BillingDetails, + bizum: Bizum, blik: Blik, boleto: Boleto, card: Card, @@ -24649,6 +24846,7 @@ module Stripe revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_credit_transfer: SepaCreditTransfer, sepa_debit: SepaDebit, sofort: Sofort, @@ -24840,10 +25038,10 @@ module Stripe # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0. sig { returns(T.nilable(Integer)) } def amount; end - # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end - # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end def self.inner_class_types @@ -25077,6 +25275,14 @@ module Stripe @field_remappings = {} end end + class BlikAuthorize < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class BoletoDisplayDetails < ::Stripe::StripeObject # The timestamp after which the boleto expires. sig { returns(T.nilable(Integer)) } @@ -26088,6 +26294,9 @@ module Stripe # Attribute for field alipay_handle_redirect sig { returns(T.nilable(AlipayHandleRedirect)) } def alipay_handle_redirect; end + # Attribute for field blik_authorize + sig { returns(T.nilable(BlikAuthorize)) } + def blik_authorize; end # Attribute for field boleto_display_details sig { returns(T.nilable(BoletoDisplayDetails)) } def boleto_display_details; end @@ -26151,6 +26360,7 @@ module Stripe def self.inner_class_types @inner_class_types = { alipay_handle_redirect: AlipayHandleRedirect, + blik_authorize: BlikAuthorize, boleto_display_details: BoletoDisplayDetails, card_await_notification: CardAwaitNotification, cashapp_handle_redirect_or_display_qr_code: CashappHandleRedirectOrDisplayQrCode, @@ -26434,6 +26644,14 @@ module Stripe @field_remappings = {} end end + class Bizum < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Blik < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # @@ -27302,6 +27520,17 @@ module Stripe @field_remappings = {} end end + class Scalapay < ::Stripe::StripeObject + # Controls when the funds will be captured from the customer's account. + sig { returns(T.nilable(String)) } + def capture_method; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaDebit < ::Stripe::StripeObject class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. @@ -27557,6 +27786,9 @@ module Stripe # Attribute for field billie sig { returns(T.nilable(Billie)) } def billie; end + # Attribute for field bizum + sig { returns(T.nilable(Bizum)) } + def bizum; end # Attribute for field blik sig { returns(T.nilable(Blik)) } def blik; end @@ -27662,6 +27894,9 @@ module Stripe # Attribute for field satispay sig { returns(T.nilable(Satispay)) } def satispay; end + # Attribute for field scalapay + sig { returns(T.nilable(Scalapay)) } + def scalapay; end # Attribute for field sepa_debit sig { returns(T.nilable(SepaDebit)) } def sepa_debit; end @@ -27698,6 +27933,7 @@ module Stripe bacs_debit: BacsDebit, bancontact: Bancontact, billie: Billie, + bizum: Bizum, blik: Blik, boleto: Boleto, card: Card, @@ -27733,6 +27969,7 @@ module Stripe revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_debit: SepaDebit, sofort: Sofort, swish: Swish, @@ -27850,16 +28087,39 @@ module Stripe end end class TransferData < ::Stripe::StripeObject + class PaymentData < ::Stripe::StripeObject + # An arbitrary string attached to the destination payment. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + # Set of [key-value pairs](https://docs.stripe.com/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 + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account. # The amount must be less than or equal to the [amount](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer # representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00). sig { returns(T.nilable(Integer)) } def amount; end + # An arbitrary string attached to the transfer. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end # The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success. sig { returns(T.any(String, ::Stripe::Account)) } def destination; end + # Set of [key-value pairs](https://docs.stripe.com/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 + # Attribute for field payment_data + sig { returns(T.nilable(PaymentData)) } + def payment_data; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {payment_data: PaymentData} end def self.field_remappings @field_remappings = {} @@ -28183,7 +28443,9 @@ module Stripe # Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. # After it's captured, a PaymentIntent can no longer be incremented. # - # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + # Learn more about incremental authorizations with + # [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + # [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). sig { params(params: T.any(::Stripe::PaymentIntentIncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } @@ -28212,7 +28474,9 @@ module Stripe # Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. # After it's captured, a PaymentIntent can no longer be incremented. # - # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + # Learn more about incremental authorizations with + # [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + # [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). sig { params(intent: String, params: T.any(::Stripe::PaymentIntentIncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } @@ -28874,6 +29138,39 @@ module Stripe @field_remappings = {} end end + class PaymentMethodOptions < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Restrictions < ::Stripe::StripeObject + # The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + sig { returns(T::Array[String]) } + def brands_blocked; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Restrictions to apply to the card payment method. For example, you can block specific card brands. + sig { returns(T.nilable(Restrictions)) } + def restrictions; end + def self.inner_class_types + @inner_class_types = {restrictions: Restrictions} + end + def self.field_remappings + @field_remappings = {} + end + end + # Configuration for `card` payment methods. + sig { returns(T.nilable(Card)) } + def card; end + def self.inner_class_types + @inner_class_types = {card: Card} + end + def self.field_remappings + @field_remappings = {} + end + end class PhoneNumberCollection < ::Stripe::StripeObject # If `true`, a phone number will be collected during checkout. sig { returns(T::Boolean) } @@ -29111,6 +29408,9 @@ module Stripe # Configuration for collecting a payment method during checkout. Defaults to `always`. sig { returns(String) } def payment_method_collection; end + # Payment-method-specific configuration. + sig { returns(T.nilable(PaymentMethodOptions)) } + def payment_method_options; end # The list of payment method types that customers can use. When `null`, Stripe will dynamically show relevant payment methods you've enabled in your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). sig { returns(T.nilable(T::Array[String])) } def payment_method_types; end @@ -29530,7 +29830,7 @@ module Stripe @field_remappings = {} end end - class Blik < ::Stripe::StripeObject + class Bizum < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -29561,7 +29861,7 @@ module Stripe @field_remappings = {} end end - class Boleto < ::Stripe::StripeObject + class Blik < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -29592,7 +29892,7 @@ module Stripe @field_remappings = {} end end - class Card < ::Stripe::StripeObject + class Boleto < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -29623,7 +29923,7 @@ module Stripe @field_remappings = {} end end - class CartesBancaires < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -29654,7 +29954,7 @@ module Stripe @field_remappings = {} end end - class Cashapp < ::Stripe::StripeObject + class CartesBancaires < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -29685,7 +29985,7 @@ module Stripe @field_remappings = {} end end - class Crypto < ::Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -29716,7 +30016,7 @@ module Stripe @field_remappings = {} end end - class CustomerBalance < ::Stripe::StripeObject + class Crypto < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -29747,7 +30047,7 @@ module Stripe @field_remappings = {} end end - class Eps < ::Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -29778,7 +30078,7 @@ module Stripe @field_remappings = {} end end - class Fpx < ::Stripe::StripeObject + class Eps < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -29809,7 +30109,7 @@ module Stripe @field_remappings = {} end end - class Giropay < ::Stripe::StripeObject + class Fpx < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -29840,7 +30140,7 @@ module Stripe @field_remappings = {} end end - class GooglePay < ::Stripe::StripeObject + class Giropay < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -29871,7 +30171,7 @@ module Stripe @field_remappings = {} end end - class Grabpay < ::Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -29902,7 +30202,7 @@ module Stripe @field_remappings = {} end end - class Ideal < ::Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -29933,7 +30233,7 @@ module Stripe @field_remappings = {} end end - class Jcb < ::Stripe::StripeObject + class Ideal < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -29964,7 +30264,7 @@ module Stripe @field_remappings = {} end end - class KakaoPay < ::Stripe::StripeObject + class Jcb < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -29995,7 +30295,7 @@ module Stripe @field_remappings = {} end end - class Klarna < ::Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -30026,7 +30326,7 @@ module Stripe @field_remappings = {} end end - class Konbini < ::Stripe::StripeObject + class Klarna < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -30057,7 +30357,7 @@ module Stripe @field_remappings = {} end end - class KrCard < ::Stripe::StripeObject + class Konbini < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -30088,7 +30388,7 @@ module Stripe @field_remappings = {} end end - class Link < ::Stripe::StripeObject + class KrCard < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -30119,7 +30419,7 @@ module Stripe @field_remappings = {} end end - class MbWay < ::Stripe::StripeObject + class Link < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -30150,7 +30450,7 @@ module Stripe @field_remappings = {} end end - class Mobilepay < ::Stripe::StripeObject + class MbWay < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -30181,7 +30481,7 @@ module Stripe @field_remappings = {} end end - class Multibanco < ::Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -30212,7 +30512,7 @@ module Stripe @field_remappings = {} end end - class NaverPay < ::Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -30243,7 +30543,7 @@ module Stripe @field_remappings = {} end end - class NzBankAccount < ::Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -30274,7 +30574,7 @@ module Stripe @field_remappings = {} end end - class Oxxo < ::Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -30305,7 +30605,7 @@ module Stripe @field_remappings = {} end end - class P24 < ::Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -30336,7 +30636,38 @@ module Stripe @field_remappings = {} end end - class PayByBank < ::Stripe::StripeObject + class P24 < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject + # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + sig { returns(T.nilable(T::Boolean)) } + def overridable; end + # The account's display preference. + sig { returns(String) } + def preference; end + # The effective display preference value. + sig { returns(String) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + sig { returns(T::Boolean) } + def available; end + # Attribute for field display_preference + sig { returns(DisplayPreference) } + def display_preference; end + def self.inner_class_types + @inner_class_types = {display_preference: DisplayPreference} + end + def self.field_remappings + @field_remappings = {} + end + end + class PayByBank < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } @@ -30646,6 +30977,37 @@ module Stripe @field_remappings = {} end end + class Scalapay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject + # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + sig { returns(T.nilable(T::Boolean)) } + def overridable; end + # The account's display preference. + sig { returns(String) } + def preference; end + # The effective display preference value. + sig { returns(String) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + sig { returns(T::Boolean) } + def available; end + # Attribute for field display_preference + sig { returns(DisplayPreference) } + def display_preference; end + def self.inner_class_types + @inner_class_types = {display_preference: DisplayPreference} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaDebit < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. @@ -30964,6 +31326,9 @@ module Stripe # Attribute for field billie sig { returns(T.nilable(Billie)) } def billie; end + # Attribute for field bizum + sig { returns(T.nilable(Bizum)) } + def bizum; end # Attribute for field blik sig { returns(T.nilable(Blik)) } def blik; end @@ -31090,6 +31455,9 @@ module Stripe # Attribute for field satispay sig { returns(T.nilable(Satispay)) } def satispay; end + # Attribute for field scalapay + sig { returns(T.nilable(Scalapay)) } + def scalapay; end # Attribute for field sepa_debit sig { returns(T.nilable(SepaDebit)) } def sepa_debit; end @@ -31540,6 +31908,14 @@ module Stripe @field_remappings = {} end end + class Bizum < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Blik < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} @@ -32630,6 +33006,14 @@ module Stripe @field_remappings = {} end end + class Scalapay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaDebit < ::Stripe::StripeObject class GeneratedFrom < ::Stripe::StripeObject # The ID of the Charge that generated this PaymentMethod, if any. @@ -32842,6 +33226,9 @@ module Stripe # Attribute for field billing_details sig { returns(BillingDetails) } def billing_details; end + # Attribute for field bizum + sig { returns(T.nilable(Bizum)) } + def bizum; end # Attribute for field blik sig { returns(T.nilable(Blik)) } def blik; end @@ -32974,6 +33361,9 @@ module Stripe # Attribute for field satispay sig { returns(T.nilable(Satispay)) } def satispay; end + # Attribute for field scalapay + sig { returns(T.nilable(Scalapay)) } + def scalapay; end # Attribute for field sepa_debit sig { returns(T.nilable(SepaDebit)) } def sepa_debit; end @@ -33536,6 +33926,17 @@ module Stripe @field_remappings = {} end end + class Bizum < ::Stripe::StripeObject + # The Bizum transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Blik < ::Stripe::StripeObject # A unique and immutable identifier assigned by BLIK to every buyer. sig { returns(T.nilable(String)) } @@ -34219,12 +34620,10 @@ module Stripe # The payer details for this transaction. sig { returns(T.nilable(PayerDetails)) } def payer_details; end - # The Klarna payment method used for this transaction. - # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + # The Klarna payment method used for this transaction. Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` sig { returns(T.nilable(String)) } def payment_method_category; end - # Preferred language of the Klarna authorization page that the customer is redirected to. - # Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + # Preferred language of the Klarna authorization page that the customer is redirected to. Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` sig { returns(T.nilable(String)) } def preferred_locale; end # ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. @@ -34280,8 +34679,7 @@ module Stripe end end class Link < ::Stripe::StripeObject - # Two-letter ISO code representing the funding source country beneath the Link payment. - # You could use this attribute to get a sense of international fees. + # Two-letter ISO code representing the funding source country beneath the Link payment. You could use this attribute to get a sense of international fees. sig { returns(T.nilable(String)) } def country; end def self.inner_class_types @@ -34408,9 +34806,7 @@ module Stripe # Unique reference for this Przelewy24 payment. sig { returns(T.nilable(String)) } def reference; end - # Owner's verified full name. Values are verified or provided by Przelewy24 directly - # (if supported) at the time of authorization or settlement. They cannot be set or mutated. - # Przelewy24 rarely provides this information so the attribute is usually empty. + # Owner's verified full name. Values are verified or provided by Przelewy24 directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Przelewy24 rarely provides this information so the attribute is usually empty. sig { returns(T.nilable(String)) } def verified_name; end def self.inner_class_types @@ -34577,7 +34973,7 @@ module Stripe # Attribute for field card sig { returns(T.nilable(Card)) } def card; end - # funding type of the underlying payment method. + # Funding type of the underlying payment method. sig { returns(T.nilable(String)) } def type; end def self.inner_class_types @@ -34625,6 +35021,17 @@ module Stripe @field_remappings = {} end end + class Scalapay < ::Stripe::StripeObject + # The Scalapay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaCreditTransfer < ::Stripe::StripeObject # Name of the bank associated with the bank account. sig { returns(T.nilable(String)) } @@ -34743,6 +35150,9 @@ module Stripe end end class Twint < ::Stripe::StripeObject + # ID of the multi use Mandate generated by the PaymentIntent + sig { returns(T.nilable(String)) } + def mandate; end def self.inner_class_types @inner_class_types = {} end @@ -34871,6 +35281,9 @@ module Stripe # The billing details associated with the method of payment. sig { returns(T.nilable(BillingDetails)) } def billing_details; end + # Attribute for field bizum + sig { returns(T.nilable(Bizum)) } + def bizum; end # Attribute for field blik sig { returns(T.nilable(Blik)) } def blik; end @@ -34984,6 +35397,9 @@ module Stripe # Attribute for field satispay sig { returns(T.nilable(Satispay)) } def satispay; end + # Attribute for field scalapay + sig { returns(T.nilable(Scalapay)) } + def scalapay; end # Attribute for field sepa_credit_transfer sig { returns(T.nilable(SepaCreditTransfer)) } def sepa_credit_transfer; end @@ -35040,6 +35456,7 @@ module Stripe bancontact: Bancontact, billie: Billie, billing_details: BillingDetails, + bizum: Bizum, blik: Blik, boleto: Boleto, card: Card, @@ -35076,6 +35493,7 @@ module Stripe revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_credit_transfer: SepaCreditTransfer, sepa_debit: SepaDebit, sofort: Sofort, @@ -37329,7 +37747,7 @@ module Stripe # Payment details attached to this payment evaluation. sig { returns(T.nilable(PaymentDetails)) } def payment_details; end - # Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block` and `continue`. + # Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block`, `continue` and `request_three_d_secure`. sig { returns(String) } def recommended_action; end # Collection of signals for this payment evaluation. @@ -37780,6 +38198,14 @@ module Stripe @field_remappings = {} end end + class Scalapay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Sofort < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} @@ -37941,6 +38367,9 @@ module Stripe # Attribute for field revolut sig { returns(T.nilable(Revolut)) } def revolut; end + # Attribute for field scalapay + sig { returns(T.nilable(Scalapay)) } + def scalapay; end # Attribute for field sofort sig { returns(T.nilable(Sofort)) } def sofort; end @@ -37995,6 +38424,7 @@ module Stripe paypal: Paypal, pix: Pix, revolut: Revolut, + scalapay: Scalapay, sofort: Sofort, swish: Swish, th_bank_transfer: ThBankTransfer, @@ -38833,6 +39263,14 @@ module Stripe @field_remappings = {} end end + class Twint < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Upi < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} @@ -38915,6 +39353,9 @@ module Stripe # Attribute for field sofort sig { returns(T.nilable(Sofort)) } def sofort; end + # Attribute for field twint + sig { returns(T.nilable(Twint)) } + def twint; end # The type of the payment method used in the SetupIntent (e.g., `card`). An additional hash is included on `payment_method_details` with a name matching this value. It contains confirmation-specific information for the payment method. sig { returns(String) } def type; end @@ -38948,6 +39389,7 @@ module Stripe revolut_pay: RevolutPay, sepa_debit: SepaDebit, sofort: Sofort, + twint: Twint, upi: Upi, us_bank_account: UsBankAccount, } @@ -39251,6 +39693,14 @@ module Stripe end end class NextAction < ::Stripe::StripeObject + class BlikAuthorize < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class CashappHandleRedirectOrDisplayQrCode < ::Stripe::StripeObject class QrCode < ::Stripe::StripeObject # The date (unix timestamp) when the QR code expires. @@ -39370,6 +39820,9 @@ module Stripe @field_remappings = {} end end + # Attribute for field blik_authorize + sig { returns(T.nilable(BlikAuthorize)) } + def blik_authorize; end # Attribute for field cashapp_handle_redirect_or_display_qr_code sig { returns(T.nilable(CashappHandleRedirectOrDisplayQrCode)) } def cashapp_handle_redirect_or_display_qr_code; end @@ -39393,6 +39846,7 @@ module Stripe def verify_with_microdeposits; end def self.inner_class_types @inner_class_types = { + blik_authorize: BlikAuthorize, cashapp_handle_redirect_or_display_qr_code: CashappHandleRedirectOrDisplayQrCode, pix_display_qr_code: PixDisplayQrCode, redirect_to_url: RedirectToUrl, @@ -39489,6 +39943,14 @@ module Stripe @field_remappings = {} end end + class Bizum < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Card < ::Stripe::StripeObject class MandateOptions < ::Stripe::StripeObject # Amount to be charged for future payments, specified in the presentment currency. @@ -39795,6 +40257,9 @@ module Stripe # Attribute for field bacs_debit sig { returns(T.nilable(BacsDebit)) } def bacs_debit; end + # Attribute for field bizum + sig { returns(T.nilable(Bizum)) } + def bizum; end # Attribute for field card sig { returns(T.nilable(Card)) } def card; end @@ -39830,6 +40295,7 @@ module Stripe acss_debit: AcssDebit, amazon_pay: AmazonPay, bacs_debit: BacsDebit, + bizum: Bizum, card: Card, card_present: CardPresent, klarna: Klarna, @@ -41466,6 +41932,9 @@ module Stripe @field_remappings = {} end end + # The time period the subscription item has been billed for. + sig { returns(T.nilable(Integer)) } + def billed_until; end # Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period sig { returns(T.nilable(BillingThresholds)) } def billing_thresholds; end @@ -41793,6 +42262,9 @@ module Stripe @field_remappings = {} end end + # Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + sig { returns(T.nilable(T::Boolean)) } + def discountable; end # The stackable discounts that will be applied to the item. sig { returns(T::Array[Discount]) } def discounts; end @@ -42248,6 +42720,71 @@ module Stripe @field_remappings = {} end end + class BillingSchedule < ::Stripe::StripeObject + class AppliesTo < ::Stripe::StripeObject + # The billing schedule will apply to the subscription item with the given price ID. + sig { returns(T.nilable(T.any(String, ::Stripe::Price))) } + def price; end + # Controls which subscription items the billing schedule applies to. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class BillUntil < ::Stripe::StripeObject + class Duration < ::Stripe::StripeObject + # Specifies billing duration. Either `day`, `week`, `month` or `year`. + sig { returns(String) } + def interval; end + # The multiplier applied to the interval. + sig { returns(T.nilable(Integer)) } + def interval_count; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The timestamp the billing schedule will apply until. + sig { returns(Integer) } + def computed_timestamp; end + # Specifies the billing period. + sig { returns(T.nilable(Duration)) } + def duration; end + # If specified, the billing schedule will apply until the specified timestamp. + sig { returns(T.nilable(Integer)) } + def timestamp; end + # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {duration: Duration} + end + def self.field_remappings + @field_remappings = {} + end + end + # Specifies which subscription items the billing schedule applies to. + sig { returns(T.nilable(T::Array[AppliesTo])) } + def applies_to; end + # Specifies the end of billing period. + sig { returns(BillUntil) } + def bill_until; end + # Unique identifier for the billing schedule. + sig { returns(String) } + def key; end + def self.inner_class_types + @inner_class_types = {applies_to: AppliesTo, bill_until: BillUntil} + end + def self.field_remappings + @field_remappings = {} + end + end class BillingThresholds < ::Stripe::StripeObject # Monetary threshold that triggers the subscription to create an invoice sig { returns(T.nilable(Integer)) } @@ -42676,9 +43213,18 @@ module Stripe # If the update is applied, determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. The timestamp is in UTC format. sig { returns(T.nilable(Integer)) } def billing_cycle_anchor; end + # The pending subscription-level discount that will be applied when the pending update is applied. + sig { returns(T.nilable(::Stripe::Discount)) } + def discount; end + # The discounts that will be applied to the subscription when the pending update is applied. Use `expand[]=discounts` to expand each discount. + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::Discount)])) } + def discounts; end # The point after which the changes reflected by this update will be discarded and no longer applied. sig { returns(Integer) } def expires_at; end + # Set of [key-value pairs](https://docs.stripe.com/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 # List of subscription items, each with an attached plan, that will be set if the update is applied. sig { returns(T.nilable(T::Array[::Stripe::SubscriptionItem])) } def subscription_items; end @@ -42760,6 +43306,9 @@ module Stripe # The billing mode of the subscription. sig { returns(BillingMode) } def billing_mode; end + # Billing schedules for this subscription. + sig { returns(T::Array[BillingSchedule]) } + def billing_schedules; end # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period sig { returns(T.nilable(BillingThresholds)) } def billing_thresholds; end @@ -42895,7 +43444,7 @@ module Stripe # If the subscription has a trial, the beginning of that trial. sig { returns(T.nilable(Integer)) } def trial_start; end - # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. # # Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. # @@ -42905,7 +43454,7 @@ module Stripe } def cancel(params = {}, opts = {}); end - # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. # # Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. # @@ -42957,13 +43506,13 @@ module Stripe } def self.migrate(subscription, params = {}, opts = {}); end - # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). sig { params(params: T.any(::Stripe::SubscriptionResumeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def resume(params = {}, opts = {}); end - # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). sig { params(subscription: String, params: T.any(::Stripe::SubscriptionResumeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } @@ -46637,6 +47186,17 @@ module Stripe @field_remappings = {} end end + class VerifoneM425 < ::Stripe::StripeObject + # A File ID representing an image to display on the reader + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } + def splashscreen; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class VerifoneP400 < ::Stripe::StripeObject # A File ID representing an image to display on the reader sig { returns(T.nilable(T.any(String, ::Stripe::File))) } @@ -46648,6 +47208,39 @@ module Stripe @field_remappings = {} end end + class VerifoneP630 < ::Stripe::StripeObject + # A File ID representing an image to display on the reader + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } + def splashscreen; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class VerifoneUx700 < ::Stripe::StripeObject + # A File ID representing an image to display on the reader + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } + def splashscreen; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class VerifoneV660p < ::Stripe::StripeObject + # A File ID representing an image to display on the reader + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } + def splashscreen; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Wifi < ::Stripe::StripeObject class EnterpriseEapPeap < ::Stripe::StripeObject # A File ID representing a PEM file containing the server certificate @@ -46771,9 +47364,21 @@ module Stripe # Attribute for field tipping sig { returns(T.nilable(Tipping)) } def tipping; end + # Attribute for field verifone_m425 + sig { returns(T.nilable(VerifoneM425)) } + def verifone_m425; end # Attribute for field verifone_p400 sig { returns(T.nilable(VerifoneP400)) } def verifone_p400; end + # Attribute for field verifone_p630 + sig { returns(T.nilable(VerifoneP630)) } + def verifone_p630; end + # Attribute for field verifone_ux700 + sig { returns(T.nilable(VerifoneUx700)) } + def verifone_ux700; end + # Attribute for field verifone_v660p + sig { returns(T.nilable(VerifoneV660p)) } + def verifone_v660p; end # Attribute for field wifi sig { returns(T.nilable(Wifi)) } def wifi; end @@ -47057,6 +47662,98 @@ module Stripe # Related guide: [Connecting to a reader](https://docs.stripe.com/terminal/payments/connect-reader) class Reader < APIResource class Action < ::Stripe::StripeObject + class ApiError < ::Stripe::StripeObject + # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one. + sig { returns(T.nilable(String)) } + def advice_code; end + # For card errors, the ID of the failed charge. + sig { returns(T.nilable(String)) } + def charge; end + # For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported. + sig { returns(T.nilable(String)) } + def code; end + # For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one. + sig { returns(T.nilable(String)) } + def decline_code; end + # A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported. + sig { returns(T.nilable(String)) } + def doc_url; end + # A human-readable message providing more details about the error. For card errors, these messages can be shown to your users. + sig { returns(T.nilable(String)) } + def message; end + # For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error. + sig { returns(T.nilable(String)) } + def network_advice_code; end + # For payments declined by the network, an alphanumeric code which indicates the reason the payment failed. + sig { returns(T.nilable(String)) } + def network_decline_code; end + # If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field. + sig { returns(T.nilable(String)) } + def param; end + # A PaymentIntent guides you through the process of collecting a payment from your customer. + # We recommend that you create exactly one PaymentIntent for each order or + # customer session in your system. You can reference the PaymentIntent later to + # see the history of payment attempts for a particular session. + # + # A PaymentIntent transitions through + # [multiple statuses](/payments/paymentintents/lifecycle) + # throughout its lifetime as it interfaces with Stripe.js to perform + # authentication flows and ultimately creates at most one successful charge. + # + # Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents) + sig { returns(T.nilable(::Stripe::PaymentIntent)) } + def payment_intent; end + # PaymentMethod objects represent your customer's payment instruments. + # You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to + # Customer objects to store instrument details for future payments. + # + # Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios). + sig { returns(T.nilable(::Stripe::PaymentMethod)) } + def payment_method; end + # If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors. + sig { returns(T.nilable(String)) } + def payment_method_type; end + # A URL to the request log entry in your dashboard. + sig { returns(T.nilable(String)) } + def request_log_url; end + # A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments. + # For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment. + # Later, you can use [PaymentIntents](https://api.stripe.com#payment_intents) to drive the payment flow. + # + # Create a SetupIntent when you're ready to collect your customer's payment credentials. + # Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid. + # The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides + # you through the setup process. + # + # Successful SetupIntents result in payment credentials that are optimized for future payments. + # For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through + # [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection + # to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents). + # If you use the SetupIntent with a [Customer](https://api.stripe.com#setup_intent_object-customer), + # it automatically attaches the resulting payment method to that Customer after successful setup. + # We recommend using SetupIntents or [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) on + # PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods. + # + # By using SetupIntents, you can reduce friction for your customers, even as regulations change over time. + # + # Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) + sig { returns(T.nilable(::Stripe::SetupIntent)) } + def setup_intent; end + # Attribute for field source + sig { + returns(T.nilable(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source))) + } + def source; end + # The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error` + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class CollectInputs < ::Stripe::StripeObject class Input < ::Stripe::StripeObject class CustomText < ::Stripe::StripeObject @@ -47324,6 +48021,40 @@ module Stripe @field_remappings = {} end end + class PrintContent < ::Stripe::StripeObject + class Image < ::Stripe::StripeObject + # Creation time of the object (in seconds since the Unix epoch). + sig { returns(Integer) } + def created_at; end + # The original name of the uploaded file (e.g. `receipt.png`). + sig { returns(String) } + def filename; end + # The size (in bytes) of the uploaded file. + sig { returns(Integer) } + def size; end + # The format of the uploaded file. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Metadata of an uploaded file + sig { returns(T.nilable(Image)) } + def image; end + # The type of content to print. Currently supports `image`. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {image: Image} + end + def self.field_remappings + @field_remappings = {} + end + end class ProcessPaymentIntent < ::Stripe::StripeObject class ProcessConfig < ::Stripe::StripeObject class Tipping < ::Stripe::StripeObject @@ -47494,6 +48225,9 @@ module Stripe @field_remappings = {} end end + # The reader action failed due to an [API error](https://docs.stripe.com/api/errors). Only present when `status` is `failed` and the underlying failure was an API error. Avoid parsing the `message` field for programmatic logic; use `type` or `code` instead. The `message` field is for display to humans only and may be updated at anytime. Requires [reader version](https://docs.stripe.com/terminal/readers/stripe-reader-s700-s710#reader-software-version) 2.42 or later. Readers on older versions always return null. + sig { returns(T.nilable(ApiError)) } + def api_error; end # Represents a reader action to collect customer inputs sig { returns(T.nilable(CollectInputs)) } def collect_inputs; end @@ -47509,6 +48243,9 @@ module Stripe # Detailed failure message, only set if status is `failed`. sig { returns(T.nilable(String)) } def failure_message; end + # Represents a reader action to print content + sig { returns(T.nilable(PrintContent)) } + def print_content; end # Represents a reader action to process a payment intent sig { returns(T.nilable(ProcessPaymentIntent)) } def process_payment_intent; end @@ -47529,9 +48266,11 @@ module Stripe def type; end def self.inner_class_types @inner_class_types = { + api_error: ApiError, collect_inputs: CollectInputs, collect_payment_method: CollectPaymentMethod, confirm_payment_intent: ConfirmPaymentIntent, + print_content: PrintContent, process_payment_intent: ProcessPaymentIntent, process_setup_intent: ProcessSetupIntent, refund_payment: RefundPayment, @@ -50074,7 +50813,7 @@ module Stripe # A Meter Event Adjustment is used to cancel or modify previously recorded meter events. Meter Event Adjustments allow you to correct billing data by canceling individual events or event ranges, with tracking of adjustment status and creation time. class MeterEventAdjustment < APIResource class Cancel < ::Stripe::StripeObject - # Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. + # The identifier that was originally assigned to the meter event. You can only cancel events within 24 hours of Stripe receiving them. sig { returns(String) } def identifier; end def self.inner_class_types @@ -50093,7 +50832,7 @@ module Stripe # The name of the meter event. Corresponds with the `event_name` field on a meter. sig { returns(String) } def event_name; end - # The unique id of this meter event adjustment. + # The unique ID of this meter event adjustment. sig { returns(String) } def id; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. @@ -50105,7 +50844,7 @@ module Stripe # Open Enum. The meter event adjustment’s status. sig { returns(String) } def status; end - # Open Enum. Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet. + # Open Enum. Specifies the type of cancellation. Currently supports canceling a single event. sig { returns(String) } def type; end end @@ -50118,17 +50857,17 @@ module Stripe module Billing # A Meter Event Session is an authentication session for the high-throughput meter event API. Meter Event Sessions provide temporary authentication tokens with expiration times, enabling secure and efficient bulk submission of usage events. class MeterEventSession < APIResource - # The authentication token for this session. Use this token when calling the + # The authentication token for this session. Use this token when calling the # high-throughput meter event API. sig { returns(String) } def authentication_token; end # The creation time of this session. sig { returns(String) } def created; end - # The time at which this session will expire. + # The time at which this session expires. sig { returns(String) } def expires_at; end - # The unique id of this auth session. + # The unique ID of this auth session. sig { returns(String) } def id; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. @@ -50177,6 +50916,245 @@ module Stripe end end # typed: true +module Stripe + module V2 + module Commerce + # The ProductCatalogImport object tracks the long-running background process that handles uploading, processing and validation. + class ProductCatalogImport < APIResource + class StatusDetails < ::Stripe::StripeObject + class AwaitingUpload < ::Stripe::StripeObject + class UploadUrl < ::Stripe::StripeObject + # The timestamp when the upload URL expires. + sig { returns(String) } + def expires_at; end + # The pre-signed URL for uploading the catalog file. + sig { returns(String) } + def url; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The pre-signed URL information for uploading the catalog file. + sig { returns(UploadUrl) } + def upload_url; end + def self.inner_class_types + @inner_class_types = {upload_url: UploadUrl} + end + def self.field_remappings + @field_remappings = {} + end + end + class Failed < ::Stripe::StripeObject + # The error code for this product catalog processing failure. + sig { returns(String) } + def code; end + # A message explaining why the import failed. + sig { returns(String) } + def failure_message; end + # The error type for this product catalog processing failure. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Processing < ::Stripe::StripeObject + # The number of records that failed to process so far. + sig { returns(Integer) } + def error_count; end + # The number of records processed so far. + sig { returns(Integer) } + def success_count; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + def self.field_encodings + @field_encodings = {error_count: :int64_string, success_count: :int64_string} + end + end + class Succeeded < ::Stripe::StripeObject + # The total number of records processed. + sig { returns(Integer) } + def success_count; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + def self.field_encodings + @field_encodings = {success_count: :int64_string} + end + end + class SucceededWithErrors < ::Stripe::StripeObject + class ErrorFile < ::Stripe::StripeObject + class DownloadUrl < ::Stripe::StripeObject + # The timestamp when the download URL expires. + sig { returns(String) } + def expires_at; end + # The pre-signed URL for downloading the error file. + sig { returns(String) } + def url; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The MIME type of the error file. + sig { returns(String) } + def content_type; end + # The pre-signed URL information for downloading the error file. + sig { returns(DownloadUrl) } + def download_url; end + # The size of the error file in bytes. + sig { returns(Integer) } + def size; end + def self.inner_class_types + @inner_class_types = {download_url: DownloadUrl} + end + def self.field_remappings + @field_remappings = {} + end + def self.field_encodings + @field_encodings = {size: :int64_string} + end + end + class Sample < ::Stripe::StripeObject + # A description of what went wrong with this record. + sig { returns(String) } + def error_message; end + # The name of the field that caused the error. + sig { returns(String) } + def field; end + # The identifier of the record that failed to process. + sig { returns(String) } + def id; end + # The row number in the import file where the error occurred. + sig { returns(Integer) } + def row; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + def self.field_encodings + @field_encodings = {row: :int64_string} + end + end + # The total number of records that failed to process. + sig { returns(Integer) } + def error_count; end + # A file containing details about all errors that occurred. + sig { returns(ErrorFile) } + def error_file; end + # A sample of errors that occurred during processing. + sig { returns(T::Array[Sample]) } + def samples; end + # The total number of records processed. + sig { returns(Integer) } + def success_count; end + def self.inner_class_types + @inner_class_types = {error_file: ErrorFile, samples: Sample} + end + def self.field_remappings + @field_remappings = {} + end + def self.field_encodings + @field_encodings = { + error_count: :int64_string, + error_file: {kind: :object, fields: {size: :int64_string}}, + samples: {kind: :array, element: {kind: :object, fields: {row: :int64_string}}}, + success_count: :int64_string, + } + end + end + # Details when the import is awaiting file upload. + sig { returns(T.nilable(AwaitingUpload)) } + def awaiting_upload; end + # Details when the import didn't complete. + sig { returns(T.nilable(Failed)) } + def failed; end + # Details when the import is processing. + sig { returns(T.nilable(Processing)) } + def processing; end + # Details when the import has succeeded. + sig { returns(T.nilable(Succeeded)) } + def succeeded; end + # Details when the import completed but some records failed to process. + sig { returns(T.nilable(SucceededWithErrors)) } + def succeeded_with_errors; end + def self.inner_class_types + @inner_class_types = { + awaiting_upload: AwaitingUpload, + failed: Failed, + processing: Processing, + succeeded: Succeeded, + succeeded_with_errors: SucceededWithErrors, + } + end + def self.field_remappings + @field_remappings = {} + end + def self.field_encodings + @field_encodings = { + processing: { + kind: :object, + fields: {error_count: :int64_string, success_count: :int64_string}, + }, + succeeded: {kind: :object, fields: {success_count: :int64_string}}, + succeeded_with_errors: { + kind: :object, + fields: { + error_count: :int64_string, + error_file: {kind: :object, fields: {size: :int64_string}}, + samples: {kind: :array, element: {kind: :object, fields: {row: :int64_string}}}, + success_count: :int64_string, + }, + }, + } + end + end + # The time this ProductCatalogImport was created. + sig { returns(String) } + def created; end + # The type of feed data being imported into the product catalog. + sig { returns(String) } + def feed_type; end + # The unique identifier for this ProductCatalogImport. + sig { returns(String) } + def id; 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 + # Additional information about the object in a structured format. + sig { returns(T::Hash[String, String]) } + def metadata; 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 + # The current status of this ProductCatalogImport. + sig { returns(String) } + def status; end + # Details about the current import status. + sig { returns(T.nilable(StatusDetails)) } + def status_details; end + end + end + end +end +# typed: true module Stripe module V2 module Core @@ -50299,7 +51277,7 @@ end module Stripe module V2 module Core - # Account tokens are single-use tokens which tokenize company/individual/business information, and are used for creating or updating an Account. + # Account tokens are single-use tokens which tokenize an account's contact_email, display_name, contact_phone, and identity. class AccountToken < APIResource # Time at which the token was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. sig { returns(String) } @@ -50327,9 +51305,8 @@ end module Stripe module V2 module Core - # An Account v2 object represents a company, individual, or other entity that interacts with a platform on Stripe. It contains both identifying information and properties that control its behavior and functionality. An Account can have one or more configurations that enable sets of related features, such as allowing it to act as a merchant or customer. - # The Accounts v2 API supports both the Global Payouts preview feature and the Connect-Billing integration preview feature. However, a particular Account can only access one of them. - # The Connect-Billing integration preview feature allows an Account v2 to pay subscription fees to a platform. An Account v1 required a separate Customer object to pay subscription fees. + # An Account v2 object represents a company, individual, or other entity that your Stripe integration interacts with. It contains both identifying information and properties that control its behavior and functionality. An Account can have one or more configurations that enable sets of related features, such as allowing it to act as a merchant or customer. + # The Accounts v2 API is broadly available to Connect platforms, and to other users in preview. The Accounts v2 API also supports the Global Payouts preview feature. class Account < APIResource class Configuration < ::Stripe::StripeObject class Customer < ::Stripe::StripeObject @@ -50419,7 +51396,7 @@ module Stripe @field_remappings = {} end end - # ID of a PaymentMethod attached to the customer account to use as the default for invoices and subscriptions. + # The ID of a `PaymentMethod` attached to this Account's `customer` configuration, used as the default payment method for invoices and subscriptions. sig { returns(T.nilable(String)) } def default_payment_method; end # Default invoice settings for the customer account. @@ -52367,7 +53344,7 @@ module Stripe @field_remappings = {} end end - # The Customer Configuration allows the Account to be used in inbound payment flows. + # The Customer Configuration allows the Account to be used in inbound payment flows (i.e. customer-facing payment and billing flows). sig { returns(T.nilable(Customer)) } def customer; end # Enables the Account to act as a connected account and collect payments facilitated by a Connect platform. You must onboard your platform to Connect before you can add this configuration to your connected accounts. Utilize this configuration when the Account will be the Merchant of Record, like with Direct charges or Destination Charges with on_behalf_of set. @@ -52908,28 +53885,56 @@ module Stripe end end class ProofOfRegistration < ::Stripe::StripeObject + class Signer < ::Stripe::StripeObject + # Person signing the document. + sig { returns(String) } + def person; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. sig { returns(T::Array[String]) } def files; end + # Person that is signing the document. + sig { returns(T.nilable(Signer)) } + def signer; end # The format of the document. Currently supports `files` only. sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {signer: Signer} end def self.field_remappings @field_remappings = {} end end class ProofOfUltimateBeneficialOwnership < ::Stripe::StripeObject + class Signer < ::Stripe::StripeObject + # Person signing the document. + sig { returns(String) } + def person; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. sig { returns(T::Array[String]) } def files; end + # Person that is signing the document. + sig { returns(T.nilable(Signer)) } + def signer; end # The format of the document. Currently supports `files` only. sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {signer: Signer} end def self.field_remappings @field_remappings = {} @@ -53623,7 +54628,7 @@ module Stripe # Documents that may be submitted to satisfy various informational requests. sig { returns(T.nilable(Documents)) } def documents; end - # The individual's email address. + # The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account. sig { returns(T.nilable(String)) } def email; end # The individual's first name. @@ -53700,7 +54705,7 @@ module Stripe # The country in which the account holder resides, or in which the business is legally established. This should be an [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. sig { returns(T.nilable(String)) } def country; end - # The entity type. + # The entity type represented by the Account. Ensure this field is accurate before adding configurations that rely on identity information, as it determines which identity fields apply and how the Account is validated. sig { returns(T.nilable(String)) } def entity_type; end # Information about the individual represented by the Account. This property is `null` unless `entity_type` is set to `individual`. @@ -53903,7 +54908,7 @@ module Stripe # An Account represents a company, individual, or other entity that a user interacts with. Accounts store identity information and one or more configurations that enable product-specific capabilities. You can assign configurations at creation or add them later. sig { returns(T.nilable(Configuration)) } def configuration; end - # The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + # The primary contact email address for the Account. sig { returns(T.nilable(String)) } def contact_email; end # The default contact phone for the Account. @@ -54492,6 +55497,29 @@ module Stripe @field_remappings = {} end end + class AzureEventGrid < ::Stripe::StripeObject + # The name of the Azure partner topic. + sig { returns(String) } + def azure_partner_topic_name; end + # The status of the Azure partner topic. + sig { returns(String) } + def azure_partner_topic_status; end + # The Azure region. + sig { returns(String) } + def azure_region; end + # The name of the Azure resource group. + sig { returns(String) } + def azure_resource_group_name; end + # The Azure subscription ID. + sig { returns(String) } + def azure_subscription_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class StatusDetails < ::Stripe::StripeObject class Disabled < ::Stripe::StripeObject # Reason event destination has been disabled. @@ -54531,6 +55559,9 @@ module Stripe # Amazon EventBridge configuration. sig { returns(T.nilable(AmazonEventbridge)) } def amazon_eventbridge; end + # Azure Event Grid configuration. + sig { returns(T.nilable(AzureEventGrid)) } + def azure_event_grid; end # Time at which the object was created. sig { returns(String) } def created; end @@ -54592,6 +55623,7 @@ module Stripe module V2 module Core # Events are generated to keep you informed of activity in your business account. APIs in the /v2 namespace generate [thin events](https://docs.stripe.com/event-destinations#benefits-of-thin-events) which have small, unversioned payloads that include a reference to the ID of the object that has changed. The Events v2 API returns these new thin events. [Retrieve the event object](https://docs.stripe.com/event-destinations#fetch-data) for additional data about the event. Use the related object ID in the event payload to [fetch the API resource](https://docs.stripe.com/event-destinations#retrieve-the-object-associated-with-thin-events) of the object associated with the event. Comparatively, events generated by most API v1 include a versioned snapshot of an API object in their payload. + # You can access events through the [Retrieve Event API](https://docs.stripe.com/api/v2/core/events/retrieve) for 30 days. class Event < APIResource class Reason < ::Stripe::StripeObject class Request < ::Stripe::StripeObject @@ -56927,7 +57959,9 @@ module Stripe # Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. # After it's captured, a PaymentIntent can no longer be incremented. # - # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + # Learn more about incremental authorizations with + # [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + # [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). sig { params(intent: String, params: T.any(::Stripe::PaymentIntentIncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } @@ -57903,7 +58937,7 @@ end # typed: true module Stripe class SubscriptionService < StripeService - # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. # # Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. # @@ -57943,7 +58977,7 @@ module Stripe } def migrate(subscription, params = {}, opts = {}); end - # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). sig { params(subscription: String, params: T.any(::Stripe::SubscriptionResumeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } @@ -59301,6 +60335,7 @@ end module Stripe class V2Services < StripeService attr_reader :billing + attr_reader :commerce attr_reader :core end end @@ -59348,7 +60383,7 @@ module Stripe module V2 module Billing class MeterEventSessionService < StripeService - # Creates a meter event session to send usage on the high-throughput meter event stream. Authentication tokens are only valid for 15 minutes, so you will need to create a new meter event session when your token expires. + # Creates a meter event session to send usage on the high-throughput meter event stream. Authentication tokens are only valid for 15 minutes, so you need to create a new meter event session when your token expires. sig { params(params: T.any(::Stripe::V2::Billing::MeterEventSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Billing::MeterEventSession) } @@ -59374,6 +60409,52 @@ module Stripe end end # typed: true +module Stripe + module V2 + class CommerceService < StripeService + attr_reader :product_catalog + end + end +end +# typed: true +module Stripe + module V2 + module Commerce + class ProductCatalogService < StripeService + attr_reader :imports + end + end + end +end +# typed: true +module Stripe + module V2 + module Commerce + module ProductCatalog + class ImportService < StripeService + # Creates a ProductCatalogImport. + sig { + params(params: T.any(::Stripe::V2::Commerce::ProductCatalog::ImportCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Commerce::ProductCatalogImport) + } + def create(params = {}, opts = {}); end + + # Returns a list of ProductCatalogImport objects. + sig { + params(params: T.any(::Stripe::V2::Commerce::ProductCatalog::ImportListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject) + } + def list(params = {}, opts = {}); end + + # Retrieves a ProductCatalogImport by ID. + sig { + params(id: String, params: T.any(::Stripe::V2::Commerce::ProductCatalog::ImportRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Commerce::ProductCatalogImport) + } + def retrieve(id, params = {}, opts = {}); end + end + end + end + end +end +# typed: true module Stripe module V2 class CoreService < StripeService @@ -59400,7 +60481,7 @@ module Stripe } def close(id, params = {}, opts = {}); end - # An Account is a representation of a company, individual or other entity that a user interacts with. Accounts contain identifying information about the entity, and configurations that store the features an account has access to. An account can be configured as any or all of the following configurations: Customer, Merchant and/or Recipient. + # Create an Account that represents a company, individual, or other entity that your business interacts with. Accounts contain identifying information about the entity, and configurations that store the features an account has access to. An account can be configured as any or all of the following configurations: Customer, Merchant and/or Recipient. # # ** raises RateLimitError sig { @@ -59491,7 +60572,8 @@ module Stripe module Core module Accounts class PersonTokenService < StripeService - # Creates a Person Token associated with an Account. + # Creates a single-use token that represents the details for a person. Use this when you create or update persons associated with an Account v2. Learn more about [account tokens](https://docs.stripe.com/connect/account-tokens). + # You can only create person tokens with your application's publishable key and in live mode. You can use your application's secret key to create person tokens only in test mode. # # ** raises RateLimitError sig { @@ -59532,7 +60614,11 @@ module Stripe module V2 module Core class AccountTokenService < StripeService - # Creates an Account Token. + # Create an account token with a publishable key and pass it to the Accounts v2 API to + # create or update an account without its data touching your server. + # Learn more about [account tokens](https://docs.stripe.com/connect/account-tokens). + # In live mode, you can only create account tokens with your application's publishable key. + # In test mode, you can create account tokens with your secret key or publishable key. # # ** raises RateLimitError sig { @@ -59562,7 +60648,8 @@ module Stripe } def list(params = {}, opts = {}); end - # Retrieves the details of an event. + # Retrieves the details of an event if it was created in the last 30 days. Supply the unique + # identifier of the event, which might have been delivered to your event destination. sig { params(id: String, params: T.any(::Stripe::V2::Core::EventRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Event) } @@ -61123,6 +62210,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class BizumPayments < ::Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end class BlikPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } @@ -61474,6 +62570,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class ScalapayPayments < ::Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end class SepaBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } @@ -61679,6 +62784,13 @@ module Stripe params(_billie_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BilliePayments)).returns(T.nilable(::Stripe::AccountUpdateParams::Capabilities::BilliePayments)) } def billie_payments=(_billie_payments); end + # The bizum_payments capability. + sig { returns(T.nilable(::Stripe::AccountUpdateParams::Capabilities::BizumPayments)) } + def bizum_payments; end + sig { + params(_bizum_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BizumPayments)).returns(T.nilable(::Stripe::AccountUpdateParams::Capabilities::BizumPayments)) + } + def bizum_payments=(_bizum_payments); end # The blik_payments capability. sig { returns(T.nilable(::Stripe::AccountUpdateParams::Capabilities::BlikPayments)) } def blik_payments; end @@ -61964,6 +63076,13 @@ module Stripe params(_satispay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SatispayPayments)).returns(T.nilable(::Stripe::AccountUpdateParams::Capabilities::SatispayPayments)) } def satispay_payments=(_satispay_payments); end + # The scalapay_payments capability. + sig { returns(T.nilable(::Stripe::AccountUpdateParams::Capabilities::ScalapayPayments)) } + def scalapay_payments; end + sig { + params(_scalapay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::ScalapayPayments)).returns(T.nilable(::Stripe::AccountUpdateParams::Capabilities::ScalapayPayments)) + } + def scalapay_payments=(_scalapay_payments); end # The sepa_bank_transfer_payments capability. sig { returns(T.nilable(::Stripe::AccountUpdateParams::Capabilities::SepaBankTransferPayments)) @@ -62071,7 +63190,7 @@ module Stripe } def zip_payments=(_zip_payments); end sig { - params(acss_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AcssDebitPayments), affirm_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AffirmPayments), afterpay_clearpay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AfterpayClearpayPayments), alma_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AlmaPayments), amazon_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AmazonPayPayments), app_distribution: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AppDistribution), au_becs_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AuBecsDebitPayments), bacs_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BacsDebitPayments), bancontact_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BancontactPayments), bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BankTransferPayments), billie_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BilliePayments), blik_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BlikPayments), boleto_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BoletoPayments), card_issuing: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CardIssuing), card_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CardPayments), cartes_bancaires_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CartesBancairesPayments), cashapp_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CashappPayments), crypto_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CryptoPayments), eps_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::EpsPayments), fpx_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::FpxPayments), gb_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::GbBankTransferPayments), giropay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::GiropayPayments), grabpay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::GrabpayPayments), ideal_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::IdealPayments), india_international_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::IndiaInternationalPayments), jcb_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::JcbPayments), jp_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::JpBankTransferPayments), kakao_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::KakaoPayPayments), klarna_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::KlarnaPayments), konbini_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::KonbiniPayments), kr_card_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::KrCardPayments), legacy_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::LegacyPayments), link_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::LinkPayments), mb_way_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::MbWayPayments), mobilepay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::MobilepayPayments), multibanco_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::MultibancoPayments), mx_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::MxBankTransferPayments), naver_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::NaverPayPayments), nz_bank_account_becs_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::NzBankAccountBecsDebitPayments), oxxo_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::OxxoPayments), p24_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::P24Payments), pay_by_bank_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PayByBankPayments), payco_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PaycoPayments), paynow_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PaynowPayments), payto_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PaytoPayments), pix_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PixPayments), promptpay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PromptpayPayments), revolut_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::RevolutPayPayments), samsung_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SamsungPayPayments), satispay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SatispayPayments), sepa_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SepaBankTransferPayments), sepa_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SepaDebitPayments), sofort_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SofortPayments), sunbit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SunbitPayments), swish_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SwishPayments), tax_reporting_us_1099_k: T.nilable(::Stripe::AccountUpdateParams::Capabilities::TaxReportingUs1099K), tax_reporting_us_1099_misc: T.nilable(::Stripe::AccountUpdateParams::Capabilities::TaxReportingUs1099Misc), transfers: T.nilable(::Stripe::AccountUpdateParams::Capabilities::Transfers), treasury: T.nilable(::Stripe::AccountUpdateParams::Capabilities::Treasury), twint_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::TwintPayments), upi_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::UpiPayments), us_bank_account_ach_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::UsBankAccountAchPayments), us_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::UsBankTransferPayments), zip_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::ZipPayments)).void + params(acss_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AcssDebitPayments), affirm_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AffirmPayments), afterpay_clearpay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AfterpayClearpayPayments), alma_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AlmaPayments), amazon_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AmazonPayPayments), app_distribution: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AppDistribution), au_becs_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AuBecsDebitPayments), bacs_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BacsDebitPayments), bancontact_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BancontactPayments), bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BankTransferPayments), billie_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BilliePayments), bizum_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BizumPayments), blik_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BlikPayments), boleto_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BoletoPayments), card_issuing: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CardIssuing), card_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CardPayments), cartes_bancaires_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CartesBancairesPayments), cashapp_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CashappPayments), crypto_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CryptoPayments), eps_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::EpsPayments), fpx_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::FpxPayments), gb_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::GbBankTransferPayments), giropay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::GiropayPayments), grabpay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::GrabpayPayments), ideal_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::IdealPayments), india_international_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::IndiaInternationalPayments), jcb_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::JcbPayments), jp_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::JpBankTransferPayments), kakao_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::KakaoPayPayments), klarna_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::KlarnaPayments), konbini_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::KonbiniPayments), kr_card_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::KrCardPayments), legacy_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::LegacyPayments), link_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::LinkPayments), mb_way_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::MbWayPayments), mobilepay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::MobilepayPayments), multibanco_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::MultibancoPayments), mx_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::MxBankTransferPayments), naver_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::NaverPayPayments), nz_bank_account_becs_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::NzBankAccountBecsDebitPayments), oxxo_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::OxxoPayments), p24_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::P24Payments), pay_by_bank_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PayByBankPayments), payco_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PaycoPayments), paynow_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PaynowPayments), payto_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PaytoPayments), pix_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PixPayments), promptpay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PromptpayPayments), revolut_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::RevolutPayPayments), samsung_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SamsungPayPayments), satispay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SatispayPayments), scalapay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::ScalapayPayments), sepa_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SepaBankTransferPayments), sepa_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SepaDebitPayments), sofort_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SofortPayments), sunbit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SunbitPayments), swish_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SwishPayments), tax_reporting_us_1099_k: T.nilable(::Stripe::AccountUpdateParams::Capabilities::TaxReportingUs1099K), tax_reporting_us_1099_misc: T.nilable(::Stripe::AccountUpdateParams::Capabilities::TaxReportingUs1099Misc), transfers: T.nilable(::Stripe::AccountUpdateParams::Capabilities::Transfers), treasury: T.nilable(::Stripe::AccountUpdateParams::Capabilities::Treasury), twint_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::TwintPayments), upi_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::UpiPayments), us_bank_account_ach_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::UsBankAccountAchPayments), us_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::UsBankTransferPayments), zip_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::ZipPayments)).void } def initialize( acss_debit_payments: nil, @@ -62085,6 +63204,7 @@ module Stripe bancontact_payments: nil, bank_transfer_payments: nil, billie_payments: nil, + bizum_payments: nil, blik_payments: nil, boleto_payments: nil, card_issuing: nil, @@ -62124,6 +63244,7 @@ module Stripe revolut_pay_payments: nil, samsung_pay_payments: nil, satispay_payments: nil, + scalapay_payments: nil, sepa_bank_transfer_payments: nil, sepa_debit_payments: nil, sofort_payments: nil, @@ -64232,6 +65353,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class BizumPayments < ::Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end class BlikPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } @@ -64583,6 +65713,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class ScalapayPayments < ::Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end class SepaBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } @@ -64788,6 +65927,13 @@ module Stripe params(_billie_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BilliePayments)).returns(T.nilable(::Stripe::AccountCreateParams::Capabilities::BilliePayments)) } def billie_payments=(_billie_payments); end + # The bizum_payments capability. + sig { returns(T.nilable(::Stripe::AccountCreateParams::Capabilities::BizumPayments)) } + def bizum_payments; end + sig { + params(_bizum_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BizumPayments)).returns(T.nilable(::Stripe::AccountCreateParams::Capabilities::BizumPayments)) + } + def bizum_payments=(_bizum_payments); end # The blik_payments capability. sig { returns(T.nilable(::Stripe::AccountCreateParams::Capabilities::BlikPayments)) } def blik_payments; end @@ -65073,6 +66219,13 @@ module Stripe params(_satispay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SatispayPayments)).returns(T.nilable(::Stripe::AccountCreateParams::Capabilities::SatispayPayments)) } def satispay_payments=(_satispay_payments); end + # The scalapay_payments capability. + sig { returns(T.nilable(::Stripe::AccountCreateParams::Capabilities::ScalapayPayments)) } + def scalapay_payments; end + sig { + params(_scalapay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::ScalapayPayments)).returns(T.nilable(::Stripe::AccountCreateParams::Capabilities::ScalapayPayments)) + } + def scalapay_payments=(_scalapay_payments); end # The sepa_bank_transfer_payments capability. sig { returns(T.nilable(::Stripe::AccountCreateParams::Capabilities::SepaBankTransferPayments)) @@ -65180,7 +66333,7 @@ module Stripe } def zip_payments=(_zip_payments); end sig { - params(acss_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AcssDebitPayments), affirm_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AffirmPayments), afterpay_clearpay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AfterpayClearpayPayments), alma_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AlmaPayments), amazon_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AmazonPayPayments), app_distribution: T.nilable(::Stripe::AccountCreateParams::Capabilities::AppDistribution), au_becs_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AuBecsDebitPayments), bacs_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BacsDebitPayments), bancontact_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BancontactPayments), bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BankTransferPayments), billie_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BilliePayments), blik_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BlikPayments), boleto_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BoletoPayments), card_issuing: T.nilable(::Stripe::AccountCreateParams::Capabilities::CardIssuing), card_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::CardPayments), cartes_bancaires_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::CartesBancairesPayments), cashapp_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::CashappPayments), crypto_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::CryptoPayments), eps_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::EpsPayments), fpx_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::FpxPayments), gb_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::GbBankTransferPayments), giropay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::GiropayPayments), grabpay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::GrabpayPayments), ideal_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::IdealPayments), india_international_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::IndiaInternationalPayments), jcb_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::JcbPayments), jp_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::JpBankTransferPayments), kakao_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::KakaoPayPayments), klarna_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::KlarnaPayments), konbini_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::KonbiniPayments), kr_card_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::KrCardPayments), legacy_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::LegacyPayments), link_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::LinkPayments), mb_way_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::MbWayPayments), mobilepay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::MobilepayPayments), multibanco_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::MultibancoPayments), mx_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::MxBankTransferPayments), naver_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::NaverPayPayments), nz_bank_account_becs_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::NzBankAccountBecsDebitPayments), oxxo_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::OxxoPayments), p24_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::P24Payments), pay_by_bank_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PayByBankPayments), payco_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PaycoPayments), paynow_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PaynowPayments), payto_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PaytoPayments), pix_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PixPayments), promptpay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PromptpayPayments), revolut_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::RevolutPayPayments), samsung_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SamsungPayPayments), satispay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SatispayPayments), sepa_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SepaBankTransferPayments), sepa_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SepaDebitPayments), sofort_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SofortPayments), sunbit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SunbitPayments), swish_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SwishPayments), tax_reporting_us_1099_k: T.nilable(::Stripe::AccountCreateParams::Capabilities::TaxReportingUs1099K), tax_reporting_us_1099_misc: T.nilable(::Stripe::AccountCreateParams::Capabilities::TaxReportingUs1099Misc), transfers: T.nilable(::Stripe::AccountCreateParams::Capabilities::Transfers), treasury: T.nilable(::Stripe::AccountCreateParams::Capabilities::Treasury), twint_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::TwintPayments), upi_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::UpiPayments), us_bank_account_ach_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::UsBankAccountAchPayments), us_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::UsBankTransferPayments), zip_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::ZipPayments)).void + params(acss_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AcssDebitPayments), affirm_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AffirmPayments), afterpay_clearpay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AfterpayClearpayPayments), alma_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AlmaPayments), amazon_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AmazonPayPayments), app_distribution: T.nilable(::Stripe::AccountCreateParams::Capabilities::AppDistribution), au_becs_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AuBecsDebitPayments), bacs_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BacsDebitPayments), bancontact_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BancontactPayments), bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BankTransferPayments), billie_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BilliePayments), bizum_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BizumPayments), blik_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BlikPayments), boleto_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BoletoPayments), card_issuing: T.nilable(::Stripe::AccountCreateParams::Capabilities::CardIssuing), card_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::CardPayments), cartes_bancaires_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::CartesBancairesPayments), cashapp_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::CashappPayments), crypto_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::CryptoPayments), eps_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::EpsPayments), fpx_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::FpxPayments), gb_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::GbBankTransferPayments), giropay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::GiropayPayments), grabpay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::GrabpayPayments), ideal_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::IdealPayments), india_international_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::IndiaInternationalPayments), jcb_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::JcbPayments), jp_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::JpBankTransferPayments), kakao_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::KakaoPayPayments), klarna_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::KlarnaPayments), konbini_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::KonbiniPayments), kr_card_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::KrCardPayments), legacy_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::LegacyPayments), link_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::LinkPayments), mb_way_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::MbWayPayments), mobilepay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::MobilepayPayments), multibanco_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::MultibancoPayments), mx_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::MxBankTransferPayments), naver_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::NaverPayPayments), nz_bank_account_becs_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::NzBankAccountBecsDebitPayments), oxxo_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::OxxoPayments), p24_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::P24Payments), pay_by_bank_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PayByBankPayments), payco_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PaycoPayments), paynow_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PaynowPayments), payto_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PaytoPayments), pix_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PixPayments), promptpay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PromptpayPayments), revolut_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::RevolutPayPayments), samsung_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SamsungPayPayments), satispay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SatispayPayments), scalapay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::ScalapayPayments), sepa_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SepaBankTransferPayments), sepa_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SepaDebitPayments), sofort_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SofortPayments), sunbit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SunbitPayments), swish_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SwishPayments), tax_reporting_us_1099_k: T.nilable(::Stripe::AccountCreateParams::Capabilities::TaxReportingUs1099K), tax_reporting_us_1099_misc: T.nilable(::Stripe::AccountCreateParams::Capabilities::TaxReportingUs1099Misc), transfers: T.nilable(::Stripe::AccountCreateParams::Capabilities::Transfers), treasury: T.nilable(::Stripe::AccountCreateParams::Capabilities::Treasury), twint_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::TwintPayments), upi_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::UpiPayments), us_bank_account_ach_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::UsBankAccountAchPayments), us_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::UsBankTransferPayments), zip_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::ZipPayments)).void } def initialize( acss_debit_payments: nil, @@ -65194,6 +66347,7 @@ module Stripe bancontact_payments: nil, bank_transfer_payments: nil, billie_payments: nil, + bizum_payments: nil, blik_payments: nil, boleto_payments: nil, card_issuing: nil, @@ -65233,6 +66387,7 @@ module Stripe revolut_pay_payments: nil, samsung_pay_payments: nil, satispay_payments: nil, + scalapay_payments: nil, sepa_bank_transfer_payments: nil, sepa_debit_payments: nil, sofort_payments: nil, @@ -67467,6 +68622,27 @@ module Stripe class BalanceSettingsUpdateParams < ::Stripe::RequestParams class Payments < ::Stripe::RequestParams class Payouts < ::Stripe::RequestParams + class AutomaticTransferRulesByCurrency < ::Stripe::RequestParams + # The ID of the FinancialAccount that funds will be transferred to during automatic transfers. + sig { returns(String) } + def payout_method; end + sig { params(_payout_method: String).returns(String) } + def payout_method=(_payout_method); end + # The maximum amount in minor units to transfer to the FinancialAccount. Required and only applicable when `type` is `transfer_up_to_amount`. + sig { returns(T.nilable(Integer)) } + def transfer_up_to_amount; end + sig { params(_transfer_up_to_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } + def transfer_up_to_amount=(_transfer_up_to_amount); end + # The type of automatic transfer rule. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(payout_method: String, transfer_up_to_amount: T.nilable(Integer), type: String).void + } + def initialize(payout_method: nil, transfer_up_to_amount: nil, type: nil); end + end class Schedule < ::Stripe::RequestParams # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`. sig { returns(T.nilable(String)) } @@ -67492,6 +68668,15 @@ module Stripe } def initialize(interval: nil, monthly_payout_days: nil, weekly_payout_days: nil); end end + # Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount. + sig { + returns(T.nilable(T.any(String, T::Hash[String, T.any(String, T::Array[::Stripe::BalanceSettingsUpdateParams::Payments::Payouts::AutomaticTransferRulesByCurrency])]))) + } + def automatic_transfer_rules_by_currency; end + sig { + params(_automatic_transfer_rules_by_currency: T.nilable(T.any(String, T::Hash[String, T.any(String, T::Array[::Stripe::BalanceSettingsUpdateParams::Payments::Payouts::AutomaticTransferRulesByCurrency])]))).returns(T.nilable(T.any(String, T::Hash[String, T.any(String, T::Array[::Stripe::BalanceSettingsUpdateParams::Payments::Payouts::AutomaticTransferRulesByCurrency])]))) + } + def automatic_transfer_rules_by_currency=(_automatic_transfer_rules_by_currency); end # The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](/payouts/minimum-balances-for-automatic-payouts). sig { returns(T.nilable(T.any(String, T::Hash[String, T.any(String, Integer)]))) } def minimum_balance_by_currency; end @@ -67514,15 +68699,37 @@ module Stripe sig { params(_statement_descriptor: T.nilable(String)).returns(T.nilable(String)) } def statement_descriptor=(_statement_descriptor); end sig { - params(minimum_balance_by_currency: T.nilable(T.any(String, T::Hash[String, T.any(String, Integer)])), schedule: T.nilable(::Stripe::BalanceSettingsUpdateParams::Payments::Payouts::Schedule), statement_descriptor: T.nilable(String)).void + params(automatic_transfer_rules_by_currency: T.nilable(T.any(String, T::Hash[String, T.any(String, T::Array[::Stripe::BalanceSettingsUpdateParams::Payments::Payouts::AutomaticTransferRulesByCurrency])])), minimum_balance_by_currency: T.nilable(T.any(String, T::Hash[String, T.any(String, Integer)])), schedule: T.nilable(::Stripe::BalanceSettingsUpdateParams::Payments::Payouts::Schedule), statement_descriptor: T.nilable(String)).void } def initialize( + automatic_transfer_rules_by_currency: nil, minimum_balance_by_currency: nil, schedule: nil, statement_descriptor: nil ); end end class SettlementTiming < ::Stripe::RequestParams + class StartOfDay < ::Stripe::RequestParams + # Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](/connect/customized-start-of-day#available-timezones-and-cutoffs). + sig { returns(T.nilable(Integer)) } + def hour; end + sig { params(_hour: T.nilable(Integer)).returns(T.nilable(Integer)) } + def hour=(_hour); end + # Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30. + sig { returns(T.nilable(Integer)) } + def minutes; end + sig { params(_minutes: T.nilable(Integer)).returns(T.nilable(Integer)) } + def minutes=(_minutes); end + # Timezone for the customized start of day. Must be a [supported customized start of day timezone](/connect/customized-start-of-day#available-timezones-and-cutoffs). + sig { returns(T.nilable(String)) } + def timezone; end + sig { params(_timezone: T.nilable(String)).returns(T.nilable(String)) } + def timezone=(_timezone); end + sig { + params(hour: T.nilable(Integer), minutes: T.nilable(Integer), timezone: T.nilable(String)).void + } + def initialize(hour: nil, minutes: nil, timezone: nil); end + end # Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available. The maximum value is 31. Passing an empty string to `delay_days_override` will return `delay_days` to the default, which is the lowest available value for the account. [Learn more about controlling delay days](/connect/manage-payout-schedule). sig { returns(T.nilable(T.any(String, Integer))) } def delay_days_override; end @@ -67530,8 +68737,19 @@ module Stripe params(_delay_days_override: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def delay_days_override=(_delay_days_override); end - sig { params(delay_days_override: T.nilable(T.any(String, Integer))).void } - def initialize(delay_days_override: nil); end + # Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](/connect/customized-start-of-day) documentation. + sig { + returns(T.nilable(T.any(String, ::Stripe::BalanceSettingsUpdateParams::Payments::SettlementTiming::StartOfDay))) + } + def start_of_day; end + sig { + params(_start_of_day: T.nilable(T.any(String, ::Stripe::BalanceSettingsUpdateParams::Payments::SettlementTiming::StartOfDay))).returns(T.nilable(T.any(String, ::Stripe::BalanceSettingsUpdateParams::Payments::SettlementTiming::StartOfDay))) + } + def start_of_day=(_start_of_day); end + sig { + params(delay_days_override: T.nilable(T.any(String, Integer)), start_of_day: T.nilable(T.any(String, ::Stripe::BalanceSettingsUpdateParams::Payments::SettlementTiming::StartOfDay))).void + } + def initialize(delay_days_override: nil, start_of_day: nil); end end # A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances). sig { returns(T.nilable(T::Boolean)) } @@ -69699,13 +70917,20 @@ module Stripe def amount; end sig { params(_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount=(_amount); end + # An arbitrary string attached to the transfer. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end # ID of an existing, connected Stripe account. sig { returns(String) } def destination; end sig { params(_destination: String).returns(String) } def destination=(_destination); end - sig { params(amount: T.nilable(Integer), destination: String).void } - def initialize(amount: nil, destination: nil); end + sig { + params(amount: T.nilable(Integer), description: T.nilable(String), destination: String).void + } + def initialize(amount: nil, description: nil, destination: nil); end end # Amount intended to be collected by this payment. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). sig { returns(T.nilable(Integer)) } @@ -70415,7 +71640,7 @@ module Stripe def payment_method_reuse_agreement=(_payment_method_reuse_agreement); end # If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout # Session will determine whether to display an option to opt into promotional communication - # from the merchant depending on the customer's locale. Only available to US merchants. + # from the merchant depending on the customer's locale. Only available to US merchants and US customers. sig { returns(T.nilable(String)) } def promotions; end sig { params(_promotions: T.nilable(String)).returns(T.nilable(String)) } @@ -71666,7 +72891,7 @@ module Stripe def initialize(enabled: nil); end end class Restrictions < ::Stripe::RequestParams - # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. + # The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. sig { returns(T.nilable(T::Array[String])) } def brands_blocked; end sig { @@ -72538,6 +73763,15 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end + class Scalapay < ::Stripe::RequestParams + # Controls when the funds will be captured from the customer's account. + sig { returns(T.nilable(String)) } + def capture_method; end + sig { params(_capture_method: T.nilable(String)).returns(T.nilable(String)) } + def capture_method=(_capture_method); end + sig { params(capture_method: T.nilable(String)).void } + def initialize(capture_method: nil); end + end class SepaDebit < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. @@ -72753,7 +73987,7 @@ module Stripe } def initialize(app_id: nil, client: nil, setup_future_usage: nil); end end - # contains details about the ACSS Debit payment method options. You can't set this parameter if `ui_mode` is `custom`. + # contains details about the ACSS Debit payment method options. You can't set this parameter if `ui_mode` is `elements`. sig { returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::AcssDebit)) } @@ -72978,7 +74212,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::KrCard)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::KrCard)) } def kr_card=(_kr_card); end - # contains details about the Link payment method options. + # contains details about the Link payment method options (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Link)) } @@ -73113,6 +74347,15 @@ module Stripe params(_satispay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Satispay)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Satispay)) } def satispay=(_satispay); end + # contains details about the Scalapay payment method options. + sig { + returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Scalapay)) + } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Scalapay)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Scalapay)) + } + def scalapay=(_scalapay); end # contains details about the Sepa Debit payment method options. sig { returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::SepaDebit)) @@ -73177,7 +74420,7 @@ module Stripe } def wechat_pay=(_wechat_pay); end sig { - params(acss_debit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Alipay), alma: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Bancontact), billie: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Billie), boleto: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Boleto), card: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Card), cashapp: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Cashapp), crypto: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Crypto), customer_balance: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::CustomerBalance), demo_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::DemoPay), eps: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Eps), fpx: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Giropay), grabpay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Grabpay), ideal: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Ideal), kakao_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::KrCard), link: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Link), mobilepay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::P24), pay_by_bank: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::PayByBank), payco: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Payco), paynow: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Pix), revolut_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::SamsungPay), satispay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Satispay), sepa_debit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::SepaDebit), sofort: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Sofort), swish: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Swish), twint: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Twint), upi: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Upi), us_bank_account: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::WechatPay)).void + params(acss_debit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Alipay), alma: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Bancontact), billie: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Billie), boleto: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Boleto), card: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Card), cashapp: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Cashapp), crypto: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Crypto), customer_balance: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::CustomerBalance), demo_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::DemoPay), eps: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Eps), fpx: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Giropay), grabpay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Grabpay), ideal: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Ideal), kakao_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::KrCard), link: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Link), mobilepay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::P24), pay_by_bank: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::PayByBank), payco: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Payco), paynow: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Pix), revolut_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::SamsungPay), satispay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Satispay), scalapay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Scalapay), sepa_debit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::SepaDebit), sofort: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Sofort), swish: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Swish), twint: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Twint), upi: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Upi), us_bank_account: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::WechatPay)).void } def initialize( acss_debit: nil, @@ -73220,6 +74463,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, swish: nil, @@ -73599,7 +74843,7 @@ module Stripe def application_fee_percent; end sig { params(_application_fee_percent: T.nilable(Float)).returns(T.nilable(Float)) } def application_fee_percent=(_application_fee_percent); end - # A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `custom`. + # A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `elements`. sig { returns(T.nilable(Integer)) } def billing_cycle_anchor; end sig { params(_billing_cycle_anchor: T.nilable(Integer)).returns(T.nilable(Integer)) } @@ -73736,7 +74980,7 @@ module Stripe sig { params(display: T.nilable(String)).void } def initialize(display: nil); end end - # contains details about the Link wallet options. + # contains details about the Link wallet options (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::Checkout::SessionCreateParams::WalletOptions::Link)) } def link; end sig { @@ -73755,7 +74999,7 @@ module Stripe params(_adaptive_pricing: T.nilable(::Stripe::Checkout::SessionCreateParams::AdaptivePricing)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::AdaptivePricing)) } def adaptive_pricing=(_adaptive_pricing); end - # Configure actions after a Checkout Session has expired. You can't set this parameter if `ui_mode` is `custom`. + # Configure actions after a Checkout Session has expired. You can't set this parameter if `ui_mode` is `elements`. sig { returns(T.nilable(::Stripe::Checkout::SessionCreateParams::AfterExpiration)) } def after_expiration; end sig { @@ -73779,14 +75023,14 @@ module Stripe def billing_address_collection; end sig { params(_billing_address_collection: T.nilable(String)).returns(T.nilable(String)) } def billing_address_collection=(_billing_address_collection); end - # The branding settings for the Checkout Session. This parameter is not allowed if ui_mode is `custom`. + # The branding settings for the Checkout Session. This parameter is not allowed if ui_mode is `elements`. sig { returns(T.nilable(::Stripe::Checkout::SessionCreateParams::BrandingSettings)) } def branding_settings; end sig { params(_branding_settings: T.nilable(::Stripe::Checkout::SessionCreateParams::BrandingSettings)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::BrandingSettings)) } def branding_settings=(_branding_settings); end - # If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded` or `custom`. + # If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded_page` or `elements`. sig { returns(T.nilable(String)) } def cancel_url; end sig { params(_cancel_url: T.nilable(String)).returns(T.nilable(String)) } @@ -73972,7 +75216,7 @@ module Stripe params(_optional_items: T.nilable(T::Array[::Stripe::Checkout::SessionCreateParams::OptionalItem])).returns(T.nilable(T::Array[::Stripe::Checkout::SessionCreateParams::OptionalItem])) } def optional_items=(_optional_items); end - # Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter if `ui_mode` is `custom`. + # Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter if `ui_mode` is `elements`. sig { returns(T.nilable(String)) } def origin_context; end sig { params(_origin_context: T.nilable(String)).returns(T.nilable(String)) } @@ -74049,13 +75293,13 @@ module Stripe params(_phone_number_collection: T.nilable(::Stripe::Checkout::SessionCreateParams::PhoneNumberCollection)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PhoneNumberCollection)) } def phone_number_collection=(_phone_number_collection); end - # This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. + # This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. sig { returns(T.nilable(String)) } def redirect_on_completion; end sig { params(_redirect_on_completion: T.nilable(String)).returns(T.nilable(String)) } def redirect_on_completion=(_redirect_on_completion); end # The URL to redirect your customer back to after they authenticate or cancel their payment on the - # payment method's app or site. This parameter is required if `ui_mode` is `embedded` or `custom` + # payment method's app or site. This parameter is required if `ui_mode` is `embedded_page` or `elements` # and redirect-based payment methods are enabled on the session. sig { returns(T.nilable(String)) } def return_url; end @@ -74093,7 +75337,7 @@ module Stripe # to customize relevant text on the page, such as the submit button. # `submit_type` can only be specified on Checkout Sessions in # `payment` or `subscription` mode. If blank or `auto`, `pay` is used. - # You can't set this parameter if `ui_mode` is `custom`. + # You can't set this parameter if `ui_mode` is `elements`. sig { returns(T.nilable(String)) } def submit_type; end sig { params(_submit_type: T.nilable(String)).returns(T.nilable(String)) } @@ -74107,7 +75351,7 @@ module Stripe def subscription_data=(_subscription_data); end # The URL to which Stripe should send customers when payment or setup # is complete. - # This parameter is not allowed if ui_mode is `embedded` or `custom`. If you'd like to use + # This parameter is not allowed if ui_mode is `embedded_page` or `elements`. If you'd like to use # information from the successful Checkout Session on your page, read the # guide on [customizing your success page](https://docs.stripe.com/payments/checkout/custom-success-page). sig { returns(T.nilable(String)) } @@ -74121,7 +75365,7 @@ module Stripe params(_tax_id_collection: T.nilable(::Stripe::Checkout::SessionCreateParams::TaxIdCollection)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::TaxIdCollection)) } def tax_id_collection=(_tax_id_collection); end - # The UI mode of the Session. Defaults to `hosted`. + # The UI mode of the Session. Defaults to `hosted_page`. sig { returns(T.nilable(String)) } def ui_mode; end sig { params(_ui_mode: T.nilable(String)).returns(T.nilable(String)) } @@ -75131,6 +76375,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) @@ -75321,6 +76566,7 @@ module Stripe class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } @@ -75518,6 +76764,13 @@ module Stripe params(_billing_details: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::BillingDetails)).returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::BillingDetails)) } def billing_details=(_billing_details); end + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + sig { returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Bizum)).returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Bizum)) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. sig { returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Blik)) } def blik; end @@ -75637,7 +76890,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::KrCard)).returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::KrCard)) } def kr_card=(_kr_card); end - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Link)) } def link; end sig { @@ -75797,6 +77050,15 @@ module Stripe params(_satispay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Satispay)).returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Satispay)) } def satispay=(_satispay); end + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + sig { + returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Scalapay)) + } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Scalapay)).returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Scalapay)) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. sig { returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::SepaDebit)) @@ -75872,7 +77134,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Zip)).void + params(acss_debit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::BillingDetails), bizum: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Bizum), blik: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Satispay), scalapay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Scalapay), sepa_debit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Zip)).void } def initialize( acss_debit: nil, @@ -75887,6 +77149,7 @@ module Stripe bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -75922,6 +77185,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -85268,6 +86532,11 @@ module Stripe @field_encodings = {unit_amount_decimal: :decimal_string} end end + # Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + sig { returns(T.nilable(T::Boolean)) } + def discountable; end + sig { params(_discountable: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def discountable=(_discountable); end # The coupons to redeem into discounts for the item. sig { returns(T.nilable(T::Array[::Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::Discount])) @@ -85320,9 +86589,10 @@ module Stripe } def tax_rates=(_tax_rates); end sig { - params(discounts: T.nilable(T::Array[::Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void + params(discountable: T.nilable(T::Boolean), discounts: T.nilable(T::Array[::Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void } def initialize( + discountable: nil, discounts: nil, metadata: nil, period: nil, @@ -85949,6 +87219,88 @@ module Stripe } def initialize(flexible: nil, type: nil); end end + class BillingSchedule < ::Stripe::RequestParams + class AppliesTo < ::Stripe::RequestParams + # The ID of the price object. + sig { returns(T.nilable(String)) } + def price; end + sig { params(_price: T.nilable(String)).returns(T.nilable(String)) } + def price=(_price); end + # Controls which subscription items the billing schedule applies to. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(price: T.nilable(String), type: String).void } + def initialize(price: nil, type: nil); end + end + class BillUntil < ::Stripe::RequestParams + class Duration < ::Stripe::RequestParams + # Specifies billing duration. Either `day`, `week`, `month` or `year`. + sig { returns(String) } + def interval; end + sig { params(_interval: String).returns(String) } + def interval=(_interval); end + # The multiplier applied to the interval. + sig { returns(T.nilable(Integer)) } + def interval_count; end + sig { params(_interval_count: T.nilable(Integer)).returns(T.nilable(Integer)) } + def interval_count=(_interval_count); end + sig { params(interval: String, interval_count: T.nilable(Integer)).void } + def initialize(interval: nil, interval_count: nil); end + end + # Specifies the billing period. + sig { + returns(T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::BillUntil::Duration)) + } + def duration; end + sig { + params(_duration: T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::BillUntil::Duration)).returns(T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::BillUntil::Duration)) + } + def duration=(_duration); end + # The end date of the billing schedule. + sig { returns(T.nilable(Integer)) } + def timestamp; end + sig { params(_timestamp: T.nilable(Integer)).returns(T.nilable(Integer)) } + def timestamp=(_timestamp); end + # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(duration: T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::BillUntil::Duration), timestamp: T.nilable(Integer), type: String).void + } + def initialize(duration: nil, timestamp: nil, type: nil); end + end + # Configure billing schedule differently for individual subscription items. + sig { + returns(T.nilable(T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::AppliesTo])) + } + def applies_to; end + sig { + params(_applies_to: T.nilable(T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::AppliesTo])).returns(T.nilable(T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::AppliesTo])) + } + def applies_to=(_applies_to); end + # The end date for the billing schedule. + sig { + returns(T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::BillUntil)) + } + def bill_until; end + sig { + params(_bill_until: T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::BillUntil)).returns(T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::BillUntil)) + } + def bill_until=(_bill_until); end + # Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + sig { returns(T.nilable(String)) } + def key; end + sig { params(_key: T.nilable(String)).returns(T.nilable(String)) } + def key=(_key); end + sig { + params(applies_to: T.nilable(T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::AppliesTo]), bill_until: T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::BillUntil), key: T.nilable(String)).void + } + def initialize(applies_to: nil, bill_until: nil, key: nil); end + end class Item < ::Stripe::RequestParams class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) @@ -86153,6 +87505,15 @@ module Stripe params(_billing_mode: T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingMode)).returns(T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingMode)) } def billing_mode=(_billing_mode); end + # Sets the billing schedules for the subscription. + sig { + returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule]))) + } + def billing_schedules; end + sig { + params(_billing_schedules: T.nilable(T.any(String, T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule]))).returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule]))) + } + def billing_schedules=(_billing_schedules); end # A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. sig { returns(T.nilable(T.any(String, T.any(Integer, String)))) } def cancel_at; end @@ -86214,11 +87575,12 @@ module Stripe } def trial_end=(_trial_end); end sig { - params(billing_cycle_anchor: T.nilable(T.any(String, Integer)), billing_mode: T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingMode), cancel_at: T.nilable(T.any(String, T.any(Integer, String))), cancel_at_period_end: T.nilable(T::Boolean), cancel_now: T.nilable(T::Boolean), default_tax_rates: T.nilable(T.any(String, T::Array[String])), items: T.nilable(T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::Item]), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), resume_at: T.nilable(String), start_date: T.nilable(Integer), trial_end: T.nilable(T.any(String, Integer))).void + params(billing_cycle_anchor: T.nilable(T.any(String, Integer)), billing_mode: T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingMode), billing_schedules: T.nilable(T.any(String, T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule])), cancel_at: T.nilable(T.any(String, T.any(Integer, String))), cancel_at_period_end: T.nilable(T::Boolean), cancel_now: T.nilable(T::Boolean), default_tax_rates: T.nilable(T.any(String, T::Array[String])), items: T.nilable(T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::Item]), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), resume_at: T.nilable(String), start_date: T.nilable(Integer), trial_end: T.nilable(T.any(String, Integer))).void } def initialize( billing_cycle_anchor: nil, billing_mode: nil, + billing_schedules: nil, cancel_at: nil, cancel_at_period_end: nil, cancel_now: nil, @@ -93352,12 +94714,12 @@ module Stripe params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } @@ -93698,6 +95060,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) @@ -93888,6 +95251,7 @@ module Stripe class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } @@ -94077,6 +95441,13 @@ module Stripe params(_billing_details: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::BillingDetails)).returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::BillingDetails)) } def billing_details=(_billing_details); end + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + sig { returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Bizum)).returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Bizum)) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. sig { returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Blik)) } def blik; end @@ -94186,7 +95557,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::KrCard)).returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::KrCard)) } def kr_card=(_kr_card); end - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Link)) } def link; end sig { @@ -94330,6 +95701,13 @@ module Stripe params(_satispay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Satispay)).returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Satispay)) } def satispay=(_satispay); end + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + sig { returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Scalapay)) } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Scalapay)).returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Scalapay)) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. sig { returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::SepaDebit)) } def sepa_debit; end @@ -94401,7 +95779,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Zip)).void + params(acss_debit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::BillingDetails), bizum: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Bizum), blik: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Satispay), scalapay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Scalapay), sepa_debit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Zip)).void } def initialize( acss_debit: nil, @@ -94416,6 +95794,7 @@ module Stripe bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -94451,6 +95830,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -94778,6 +96158,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. sig { returns(T.nilable(String)) } @@ -96240,6 +97621,19 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end + class Scalapay < ::Stripe::RequestParams + # Controls when the funds are captured from the customer's account. + # + # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + # + # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + sig { returns(T.nilable(String)) } + def capture_method; end + sig { params(_capture_method: T.nilable(String)).returns(T.nilable(String)) } + def capture_method=(_capture_method); end + sig { params(capture_method: T.nilable(String)).void } + def initialize(capture_method: nil); end + end class SepaDebit < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. @@ -96673,6 +98067,15 @@ module Stripe params(_billie: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Billie))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Billie))) } def billie=(_billie); end + # If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Bizum))) + } + def bizum; end + sig { + params(_bizum: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Bizum))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Bizum))) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options. sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Blik))) @@ -96826,7 +98229,7 @@ module Stripe params(_kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::KrCard))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::KrCard))) } def kr_card=(_kr_card); end - # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Link))) } @@ -96988,6 +98391,15 @@ module Stripe params(_satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Satispay))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Satispay))) } def satispay=(_satispay); end + # If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Scalapay))) + } + def scalapay; end + sig { + params(_scalapay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Scalapay))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Scalapay))) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::SepaDebit))) @@ -97061,7 +98473,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::AcssDebit)), affirm: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Affirm)), afterpay_clearpay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::AfterpayClearpay)), alipay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Alipay)), alma: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Alma)), amazon_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::AmazonPay)), au_becs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::AuBecsDebit)), bacs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::BacsDebit)), bancontact: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Bancontact)), billie: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Billie)), blik: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Blik)), boleto: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Boleto)), card: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Card)), card_present: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::CardPresent)), cashapp: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Cashapp)), crypto: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Crypto)), customer_balance: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::CustomerBalance)), eps: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Eps)), fpx: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Fpx)), giropay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Giropay)), grabpay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Grabpay)), ideal: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Ideal)), interac_present: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::InteracPresent)), kakao_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::KakaoPay)), klarna: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Klarna)), konbini: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Konbini)), kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::KrCard)), link: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Link)), mb_way: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::MbWay)), mobilepay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Mobilepay)), multibanco: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Multibanco)), naver_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::NaverPay)), nz_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::NzBankAccount)), oxxo: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Oxxo)), p24: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::P24)), pay_by_bank: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::PayByBank)), payco: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Payco)), paynow: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Paynow)), paypal: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Paypal)), payto: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Payto)), pix: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Pix)), promptpay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Promptpay)), revolut_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::RevolutPay)), samsung_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::SamsungPay)), satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Satispay)), sepa_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::SepaDebit)), sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Sofort)), swish: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Swish)), twint: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Twint)), upi: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Upi)), us_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::UsBankAccount)), wechat_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::WechatPay)), zip: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Zip))).void + params(acss_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::AcssDebit)), affirm: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Affirm)), afterpay_clearpay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::AfterpayClearpay)), alipay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Alipay)), alma: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Alma)), amazon_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::AmazonPay)), au_becs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::AuBecsDebit)), bacs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::BacsDebit)), bancontact: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Bancontact)), billie: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Billie)), bizum: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Bizum)), blik: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Blik)), boleto: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Boleto)), card: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Card)), card_present: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::CardPresent)), cashapp: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Cashapp)), crypto: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Crypto)), customer_balance: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::CustomerBalance)), eps: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Eps)), fpx: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Fpx)), giropay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Giropay)), grabpay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Grabpay)), ideal: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Ideal)), interac_present: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::InteracPresent)), kakao_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::KakaoPay)), klarna: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Klarna)), konbini: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Konbini)), kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::KrCard)), link: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Link)), mb_way: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::MbWay)), mobilepay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Mobilepay)), multibanco: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Multibanco)), naver_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::NaverPay)), nz_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::NzBankAccount)), oxxo: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Oxxo)), p24: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::P24)), pay_by_bank: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::PayByBank)), payco: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Payco)), paynow: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Paynow)), paypal: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Paypal)), payto: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Payto)), pix: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Pix)), promptpay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Promptpay)), revolut_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::RevolutPay)), samsung_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::SamsungPay)), satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Satispay)), scalapay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Scalapay)), sepa_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::SepaDebit)), sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Sofort)), swish: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Swish)), twint: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Twint)), upi: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Upi)), us_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::UsBankAccount)), wechat_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::WechatPay)), zip: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Zip))).void } def initialize( acss_debit: nil, @@ -97074,6 +98486,7 @@ module Stripe bacs_debit: nil, bancontact: nil, billie: nil, + bizum: nil, blik: nil, boleto: nil, card: nil, @@ -97109,6 +98522,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, swish: nil, @@ -97205,6 +98619,24 @@ module Stripe def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil); end end class TransferData < ::Stripe::RequestParams + class PaymentData < ::Stripe::RequestParams + # An arbitrary string attached to the destination payment. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # Set of [key-value pairs](https://docs.stripe.com/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.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + sig { + params(description: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void + } + def initialize(description: nil, metadata: nil); end + end # The amount that will be transferred automatically when a charge succeeds. # The amount is capped at the total transaction amount and if no amount is set, # the full amount is transferred. @@ -97216,6 +98648,11 @@ module Stripe def amount; end sig { params(_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount=(_amount); end + # An arbitrary string attached to the transfer. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end # If specified, successful charges will be attributed to the destination # account for tax reporting, and the funds from charges will be transferred # to the destination account. The ID of the resulting transfer will be @@ -97224,8 +98661,30 @@ module Stripe def destination; end sig { params(_destination: String).returns(String) } def destination=(_destination); end - sig { params(amount: T.nilable(Integer), destination: String).void } - def initialize(amount: nil, destination: nil); end + # Set of [key-value pairs](https://docs.stripe.com/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.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + # The data with which to populate the destination payment. + sig { returns(T.nilable(::Stripe::PaymentIntentCreateParams::TransferData::PaymentData)) } + def payment_data; end + sig { + params(_payment_data: T.nilable(::Stripe::PaymentIntentCreateParams::TransferData::PaymentData)).returns(T.nilable(::Stripe::PaymentIntentCreateParams::TransferData::PaymentData)) + } + def payment_data=(_payment_data); end + sig { + params(amount: T.nilable(Integer), description: T.nilable(String), destination: String, metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_data: T.nilable(::Stripe::PaymentIntentCreateParams::TransferData::PaymentData)).void + } + def initialize( + amount: nil, + description: nil, + destination: nil, + metadata: nil, + payment_data: nil + ); end end # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). sig { returns(Integer) } @@ -97344,7 +98803,7 @@ module Stripe params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) } def metadata=(_metadata); end - # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm). + # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect payment method details and [charge them later](https://docs.stripe.com/payments/save-during-payment). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm). sig { returns(T.nilable(T.any(T::Boolean, String))) } def off_session; end sig { @@ -97711,12 +99170,12 @@ module Stripe params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } @@ -97979,6 +99438,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) @@ -98169,6 +99629,7 @@ module Stripe class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } @@ -98358,6 +99819,13 @@ module Stripe params(_billing_details: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::BillingDetails)).returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::BillingDetails)) } def billing_details=(_billing_details); end + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + sig { returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Bizum)).returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Bizum)) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. sig { returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Blik)) } def blik; end @@ -98467,7 +99935,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::KrCard)).returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::KrCard)) } def kr_card=(_kr_card); end - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Link)) } def link; end sig { @@ -98611,6 +100079,13 @@ module Stripe params(_satispay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Satispay)).returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Satispay)) } def satispay=(_satispay); end + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + sig { returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Scalapay)) } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Scalapay)).returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Scalapay)) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. sig { returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::SepaDebit)) } def sepa_debit; end @@ -98682,7 +100157,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Zip)).void + params(acss_debit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::BillingDetails), bizum: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Bizum), blik: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Satispay), scalapay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Scalapay), sepa_debit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Zip)).void } def initialize( acss_debit: nil, @@ -98697,6 +100172,7 @@ module Stripe bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -98732,6 +100208,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -99059,6 +100536,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. sig { returns(T.nilable(String)) } @@ -100521,6 +101999,19 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end + class Scalapay < ::Stripe::RequestParams + # Controls when the funds are captured from the customer's account. + # + # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + # + # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + sig { returns(T.nilable(String)) } + def capture_method; end + sig { params(_capture_method: T.nilable(String)).returns(T.nilable(String)) } + def capture_method=(_capture_method); end + sig { params(capture_method: T.nilable(String)).void } + def initialize(capture_method: nil); end + end class SepaDebit < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. @@ -100954,6 +102445,15 @@ module Stripe params(_billie: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Billie))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Billie))) } def billie=(_billie); end + # If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Bizum))) + } + def bizum; end + sig { + params(_bizum: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Bizum))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Bizum))) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options. sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Blik))) @@ -101107,7 +102607,7 @@ module Stripe params(_kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::KrCard))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::KrCard))) } def kr_card=(_kr_card); end - # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Link))) } @@ -101269,6 +102769,15 @@ module Stripe params(_satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Satispay))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Satispay))) } def satispay=(_satispay); end + # If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Scalapay))) + } + def scalapay; end + sig { + params(_scalapay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Scalapay))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Scalapay))) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::SepaDebit))) @@ -101342,7 +102851,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::AcssDebit)), affirm: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Affirm)), afterpay_clearpay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::AfterpayClearpay)), alipay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Alipay)), alma: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Alma)), amazon_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::AmazonPay)), au_becs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::AuBecsDebit)), bacs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::BacsDebit)), bancontact: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Bancontact)), billie: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Billie)), blik: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Blik)), boleto: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Boleto)), card: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Card)), card_present: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::CardPresent)), cashapp: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Cashapp)), crypto: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Crypto)), customer_balance: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::CustomerBalance)), eps: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Eps)), fpx: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Fpx)), giropay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Giropay)), grabpay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Grabpay)), ideal: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Ideal)), interac_present: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::InteracPresent)), kakao_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::KakaoPay)), klarna: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Klarna)), konbini: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Konbini)), kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::KrCard)), link: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Link)), mb_way: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::MbWay)), mobilepay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Mobilepay)), multibanco: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Multibanco)), naver_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::NaverPay)), nz_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::NzBankAccount)), oxxo: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Oxxo)), p24: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::P24)), pay_by_bank: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::PayByBank)), payco: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Payco)), paynow: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Paynow)), paypal: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Paypal)), payto: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Payto)), pix: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Pix)), promptpay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Promptpay)), revolut_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::RevolutPay)), samsung_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::SamsungPay)), satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Satispay)), sepa_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::SepaDebit)), sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Sofort)), swish: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Swish)), twint: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Twint)), upi: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Upi)), us_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::UsBankAccount)), wechat_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::WechatPay)), zip: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Zip))).void + params(acss_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::AcssDebit)), affirm: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Affirm)), afterpay_clearpay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::AfterpayClearpay)), alipay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Alipay)), alma: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Alma)), amazon_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::AmazonPay)), au_becs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::AuBecsDebit)), bacs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::BacsDebit)), bancontact: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Bancontact)), billie: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Billie)), bizum: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Bizum)), blik: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Blik)), boleto: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Boleto)), card: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Card)), card_present: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::CardPresent)), cashapp: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Cashapp)), crypto: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Crypto)), customer_balance: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::CustomerBalance)), eps: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Eps)), fpx: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Fpx)), giropay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Giropay)), grabpay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Grabpay)), ideal: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Ideal)), interac_present: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::InteracPresent)), kakao_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::KakaoPay)), klarna: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Klarna)), konbini: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Konbini)), kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::KrCard)), link: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Link)), mb_way: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::MbWay)), mobilepay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Mobilepay)), multibanco: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Multibanco)), naver_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::NaverPay)), nz_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::NzBankAccount)), oxxo: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Oxxo)), p24: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::P24)), pay_by_bank: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::PayByBank)), payco: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Payco)), paynow: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Paynow)), paypal: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Paypal)), payto: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Payto)), pix: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Pix)), promptpay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Promptpay)), revolut_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::RevolutPay)), samsung_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::SamsungPay)), satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Satispay)), scalapay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Scalapay)), sepa_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::SepaDebit)), sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Sofort)), swish: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Swish)), twint: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Twint)), upi: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Upi)), us_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::UsBankAccount)), wechat_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::WechatPay)), zip: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Zip))).void } def initialize( acss_debit: nil, @@ -101355,6 +102864,7 @@ module Stripe bacs_debit: nil, bancontact: nil, billie: nil, + bizum: nil, blik: nil, boleto: nil, card: nil, @@ -101390,6 +102900,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, swish: nil, @@ -101477,13 +102988,52 @@ module Stripe def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil); end end class TransferData < ::Stripe::RequestParams + class PaymentData < ::Stripe::RequestParams + # An arbitrary string attached to the destination payment. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # Set of [key-value pairs](https://docs.stripe.com/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.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + sig { + params(description: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void + } + def initialize(description: nil, metadata: nil); end + end # The amount that will be transferred automatically when a charge succeeds. sig { returns(T.nilable(Integer)) } def amount; end sig { params(_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount=(_amount); end - sig { params(amount: T.nilable(Integer)).void } - def initialize(amount: nil); end + # An arbitrary string attached to the transfer. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # Set of [key-value pairs](https://docs.stripe.com/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.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + # The data with which to populate the destination payment. + sig { returns(T.nilable(::Stripe::PaymentIntentUpdateParams::TransferData::PaymentData)) } + def payment_data; end + sig { + params(_payment_data: T.nilable(::Stripe::PaymentIntentUpdateParams::TransferData::PaymentData)).returns(T.nilable(::Stripe::PaymentIntentUpdateParams::TransferData::PaymentData)) + } + def payment_data=(_payment_data); end + sig { + params(amount: T.nilable(Integer), description: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_data: T.nilable(::Stripe::PaymentIntentUpdateParams::TransferData::PaymentData)).void + } + def initialize(amount: nil, description: nil, metadata: nil, payment_data: nil); end end # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). sig { returns(T.nilable(Integer)) } @@ -101962,12 +103512,12 @@ module Stripe params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } @@ -102394,12 +103944,12 @@ module Stripe params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } @@ -102728,6 +104278,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) @@ -102918,6 +104469,7 @@ module Stripe class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } @@ -103109,6 +104661,13 @@ module Stripe params(_billing_details: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::BillingDetails)).returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::BillingDetails)) } def billing_details=(_billing_details); end + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + sig { returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Bizum)).returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Bizum)) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. sig { returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Blik)) } def blik; end @@ -103218,7 +104777,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::KrCard)).returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::KrCard)) } def kr_card=(_kr_card); end - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Link)) } def link; end sig { @@ -103368,6 +104927,13 @@ module Stripe params(_satispay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Satispay)).returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Satispay)) } def satispay=(_satispay); end + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + sig { returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Scalapay)) } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Scalapay)).returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Scalapay)) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. sig { returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::SepaDebit)) } def sepa_debit; end @@ -103439,7 +105005,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Zip)).void + params(acss_debit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::BillingDetails), bizum: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Bizum), blik: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Satispay), scalapay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Scalapay), sepa_debit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Zip)).void } def initialize( acss_debit: nil, @@ -103454,6 +105020,7 @@ module Stripe bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -103489,6 +105056,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -103816,6 +105384,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. sig { returns(T.nilable(String)) } @@ -105278,6 +106847,19 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end + class Scalapay < ::Stripe::RequestParams + # Controls when the funds are captured from the customer's account. + # + # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + # + # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + sig { returns(T.nilable(String)) } + def capture_method; end + sig { params(_capture_method: T.nilable(String)).returns(T.nilable(String)) } + def capture_method=(_capture_method); end + sig { params(capture_method: T.nilable(String)).void } + def initialize(capture_method: nil); end + end class SepaDebit < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. @@ -105711,6 +107293,15 @@ module Stripe params(_billie: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Billie))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Billie))) } def billie=(_billie); end + # If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Bizum))) + } + def bizum; end + sig { + params(_bizum: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Bizum))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Bizum))) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options. sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Blik))) @@ -105864,7 +107455,7 @@ module Stripe params(_kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::KrCard))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::KrCard))) } def kr_card=(_kr_card); end - # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Link))) } @@ -106026,6 +107617,15 @@ module Stripe params(_satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Satispay))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Satispay))) } def satispay=(_satispay); end + # If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Scalapay))) + } + def scalapay; end + sig { + params(_scalapay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Scalapay))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Scalapay))) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::SepaDebit))) @@ -106099,7 +107699,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::AcssDebit)), affirm: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Affirm)), afterpay_clearpay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::AfterpayClearpay)), alipay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Alipay)), alma: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Alma)), amazon_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::AmazonPay)), au_becs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::AuBecsDebit)), bacs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::BacsDebit)), bancontact: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Bancontact)), billie: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Billie)), blik: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Blik)), boleto: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Boleto)), card: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Card)), card_present: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::CardPresent)), cashapp: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Cashapp)), crypto: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Crypto)), customer_balance: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::CustomerBalance)), eps: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Eps)), fpx: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Fpx)), giropay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Giropay)), grabpay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Grabpay)), ideal: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Ideal)), interac_present: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::InteracPresent)), kakao_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::KakaoPay)), klarna: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Klarna)), konbini: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Konbini)), kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::KrCard)), link: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Link)), mb_way: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::MbWay)), mobilepay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Mobilepay)), multibanco: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Multibanco)), naver_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::NaverPay)), nz_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::NzBankAccount)), oxxo: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Oxxo)), p24: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::P24)), pay_by_bank: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::PayByBank)), payco: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Payco)), paynow: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Paynow)), paypal: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Paypal)), payto: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Payto)), pix: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Pix)), promptpay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Promptpay)), revolut_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::RevolutPay)), samsung_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::SamsungPay)), satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Satispay)), sepa_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::SepaDebit)), sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Sofort)), swish: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Swish)), twint: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Twint)), upi: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Upi)), us_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::UsBankAccount)), wechat_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::WechatPay)), zip: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Zip))).void + params(acss_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::AcssDebit)), affirm: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Affirm)), afterpay_clearpay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::AfterpayClearpay)), alipay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Alipay)), alma: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Alma)), amazon_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::AmazonPay)), au_becs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::AuBecsDebit)), bacs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::BacsDebit)), bancontact: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Bancontact)), billie: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Billie)), bizum: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Bizum)), blik: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Blik)), boleto: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Boleto)), card: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Card)), card_present: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::CardPresent)), cashapp: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Cashapp)), crypto: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Crypto)), customer_balance: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::CustomerBalance)), eps: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Eps)), fpx: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Fpx)), giropay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Giropay)), grabpay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Grabpay)), ideal: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Ideal)), interac_present: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::InteracPresent)), kakao_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::KakaoPay)), klarna: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Klarna)), konbini: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Konbini)), kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::KrCard)), link: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Link)), mb_way: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::MbWay)), mobilepay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Mobilepay)), multibanco: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Multibanco)), naver_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::NaverPay)), nz_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::NzBankAccount)), oxxo: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Oxxo)), p24: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::P24)), pay_by_bank: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::PayByBank)), payco: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Payco)), paynow: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Paynow)), paypal: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Paypal)), payto: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Payto)), pix: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Pix)), promptpay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Promptpay)), revolut_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::RevolutPay)), samsung_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::SamsungPay)), satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Satispay)), scalapay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Scalapay)), sepa_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::SepaDebit)), sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Sofort)), swish: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Swish)), twint: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Twint)), upi: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Upi)), us_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::UsBankAccount)), wechat_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::WechatPay)), zip: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Zip))).void } def initialize( acss_debit: nil, @@ -106112,6 +107712,7 @@ module Stripe bacs_debit: nil, bancontact: nil, billie: nil, + bizum: nil, blik: nil, boleto: nil, card: nil, @@ -106147,6 +107748,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, swish: nil, @@ -106302,7 +107904,7 @@ module Stripe params(_mandate_data: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::MandateData))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::MandateData))) } def mandate_data=(_mandate_data); end - # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards). + # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect payment method details and [charge them later](https://docs.stripe.com/payments/save-during-payment). sig { returns(T.nilable(T.any(T::Boolean, String))) } def off_session; end sig { @@ -106622,12 +108224,12 @@ module Stripe params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } @@ -107016,7 +108618,7 @@ module Stripe def payment_method_reuse_agreement=(_payment_method_reuse_agreement); end # If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout # Session will determine whether to display an option to opt into promotional communication - # from the merchant depending on the customer's locale. Only available to US merchants. + # from the merchant depending on the customer's locale. Only available to US merchants and US customers. sig { returns(T.nilable(String)) } def promotions; end sig { params(_promotions: T.nilable(String)).returns(T.nilable(String)) } @@ -107734,6 +109336,45 @@ module Stripe transfer_group: nil ); end end + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams + # The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + sig { returns(T.nilable(T::Array[String])) } + def brands_blocked; end + sig { + params(_brands_blocked: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) + } + def brands_blocked=(_brands_blocked); end + sig { params(brands_blocked: T.nilable(T::Array[String])).void } + def initialize(brands_blocked: nil); end + end + # Restrictions to apply to the card payment method. For example, you can block specific card brands. + sig { + returns(T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions::Card::Restrictions)) + } + def restrictions; end + sig { + params(_restrictions: T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions::Card::Restrictions)).returns(T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions::Card::Restrictions)) + } + def restrictions=(_restrictions); end + sig { + params(restrictions: T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions::Card::Restrictions)).void + } + def initialize(restrictions: nil); end + end + # Configuration for `card` payment methods. + sig { returns(T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions::Card)) } + def card; end + sig { + params(_card: T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions::Card)).returns(T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions::Card)) + } + def card=(_card); end + sig { + params(card: T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions::Card)).void + } + def initialize(card: nil); end + end class PhoneNumberCollection < ::Stripe::RequestParams # Set to `true` to enable phone number collection. sig { returns(T::Boolean) } @@ -108053,6 +109694,13 @@ module Stripe def payment_method_collection; end sig { params(_payment_method_collection: T.nilable(String)).returns(T.nilable(String)) } def payment_method_collection=(_payment_method_collection); end + # Attribute for param field payment_method_options + sig { returns(T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions)) } + def payment_method_options; end + sig { + params(_payment_method_options: T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions)).returns(T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions)) + } + def payment_method_options=(_payment_method_options); end # The list of payment method types that customers can use. If no value is passed, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods) (20+ payment methods [supported](https://docs.stripe.com/payments/payment-methods/integration-options#payment-method-product-support)). sig { returns(T.nilable(T::Array[String])) } def payment_method_types; end @@ -108117,7 +109765,7 @@ module Stripe } def transfer_data=(_transfer_data); end sig { - params(after_completion: T.nilable(::Stripe::PaymentLinkCreateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), application_fee_amount: T.nilable(Integer), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::PaymentLinkCreateParams::AutomaticTax), billing_address_collection: T.nilable(String), consent_collection: T.nilable(::Stripe::PaymentLinkCreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[::Stripe::PaymentLinkCreateParams::CustomField]), custom_text: T.nilable(::Stripe::PaymentLinkCreateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(::Stripe::PaymentLinkCreateParams::InvoiceCreation), line_items: T::Array[::Stripe::PaymentLinkCreateParams::LineItem], managed_payments: T.nilable(::Stripe::PaymentLinkCreateParams::ManagedPayments), metadata: T.nilable(T::Hash[String, String]), name_collection: T.nilable(::Stripe::PaymentLinkCreateParams::NameCollection), on_behalf_of: T.nilable(String), optional_items: T.nilable(T::Array[::Stripe::PaymentLinkCreateParams::OptionalItem]), payment_intent_data: T.nilable(::Stripe::PaymentLinkCreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T::Array[String]), phone_number_collection: T.nilable(::Stripe::PaymentLinkCreateParams::PhoneNumberCollection), restrictions: T.nilable(::Stripe::PaymentLinkCreateParams::Restrictions), shipping_address_collection: T.nilable(::Stripe::PaymentLinkCreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[::Stripe::PaymentLinkCreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::PaymentLinkCreateParams::SubscriptionData), tax_id_collection: T.nilable(::Stripe::PaymentLinkCreateParams::TaxIdCollection), transfer_data: T.nilable(::Stripe::PaymentLinkCreateParams::TransferData)).void + params(after_completion: T.nilable(::Stripe::PaymentLinkCreateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), application_fee_amount: T.nilable(Integer), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::PaymentLinkCreateParams::AutomaticTax), billing_address_collection: T.nilable(String), consent_collection: T.nilable(::Stripe::PaymentLinkCreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[::Stripe::PaymentLinkCreateParams::CustomField]), custom_text: T.nilable(::Stripe::PaymentLinkCreateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(::Stripe::PaymentLinkCreateParams::InvoiceCreation), line_items: T::Array[::Stripe::PaymentLinkCreateParams::LineItem], managed_payments: T.nilable(::Stripe::PaymentLinkCreateParams::ManagedPayments), metadata: T.nilable(T::Hash[String, String]), name_collection: T.nilable(::Stripe::PaymentLinkCreateParams::NameCollection), on_behalf_of: T.nilable(String), optional_items: T.nilable(T::Array[::Stripe::PaymentLinkCreateParams::OptionalItem]), payment_intent_data: T.nilable(::Stripe::PaymentLinkCreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_options: T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), phone_number_collection: T.nilable(::Stripe::PaymentLinkCreateParams::PhoneNumberCollection), restrictions: T.nilable(::Stripe::PaymentLinkCreateParams::Restrictions), shipping_address_collection: T.nilable(::Stripe::PaymentLinkCreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[::Stripe::PaymentLinkCreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::PaymentLinkCreateParams::SubscriptionData), tax_id_collection: T.nilable(::Stripe::PaymentLinkCreateParams::TaxIdCollection), transfer_data: T.nilable(::Stripe::PaymentLinkCreateParams::TransferData)).void } def initialize( after_completion: nil, @@ -108142,6 +109790,7 @@ module Stripe optional_items: nil, payment_intent_data: nil, payment_method_collection: nil, + payment_method_options: nil, payment_method_types: nil, phone_number_collection: nil, restrictions: nil, @@ -108783,6 +110432,47 @@ module Stripe transfer_group: nil ); end end + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams + # The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + sig { returns(T.nilable(T.any(String, T::Array[String]))) } + def brands_blocked; end + sig { + params(_brands_blocked: T.nilable(T.any(String, T::Array[String]))).returns(T.nilable(T.any(String, T::Array[String]))) + } + def brands_blocked=(_brands_blocked); end + sig { params(brands_blocked: T.nilable(T.any(String, T::Array[String]))).void } + def initialize(brands_blocked: nil); end + end + # Restrictions to apply to the card payment method. For example, you can block specific card brands. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions::Card::Restrictions))) + } + def restrictions; end + sig { + params(_restrictions: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions::Card::Restrictions))).returns(T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions::Card::Restrictions))) + } + def restrictions=(_restrictions); end + sig { + params(restrictions: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions::Card::Restrictions))).void + } + def initialize(restrictions: nil); end + end + # Configuration for `card` payment methods. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions::Card))) + } + def card; end + sig { + params(_card: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions::Card))).returns(T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions::Card))) + } + def card=(_card); end + sig { + params(card: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions::Card))).void + } + def initialize(card: nil); end + end class PhoneNumberCollection < ::Stripe::RequestParams # Set to `true` to enable phone number collection. sig { returns(T::Boolean) } @@ -109049,6 +110739,15 @@ module Stripe def payment_method_collection; end sig { params(_payment_method_collection: T.nilable(String)).returns(T.nilable(String)) } def payment_method_collection=(_payment_method_collection); end + # Payment-method-specific configuration. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions))) + } + def payment_method_options; end + sig { + params(_payment_method_options: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions))).returns(T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions))) + } + def payment_method_options=(_payment_method_options); end # The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). sig { returns(T.nilable(T.any(String, T::Array[String]))) } def payment_method_types; end @@ -109101,7 +110800,7 @@ module Stripe } def tax_id_collection=(_tax_id_collection); end sig { - params(active: T.nilable(T::Boolean), after_completion: T.nilable(::Stripe::PaymentLinkUpdateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::PaymentLinkUpdateParams::AutomaticTax), billing_address_collection: T.nilable(String), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkUpdateParams::CustomField])), custom_text: T.nilable(::Stripe::PaymentLinkUpdateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(::Stripe::PaymentLinkUpdateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::PaymentLinkUpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), name_collection: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::NameCollection)), optional_items: T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkUpdateParams::OptionalItem])), payment_intent_data: T.nilable(::Stripe::PaymentLinkUpdateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T.any(String, T::Array[String])), phone_number_collection: T.nilable(::Stripe::PaymentLinkUpdateParams::PhoneNumberCollection), restrictions: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::Restrictions)), shipping_address_collection: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::ShippingAddressCollection)), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::PaymentLinkUpdateParams::SubscriptionData), tax_id_collection: T.nilable(::Stripe::PaymentLinkUpdateParams::TaxIdCollection)).void + params(active: T.nilable(T::Boolean), after_completion: T.nilable(::Stripe::PaymentLinkUpdateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::PaymentLinkUpdateParams::AutomaticTax), billing_address_collection: T.nilable(String), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkUpdateParams::CustomField])), custom_text: T.nilable(::Stripe::PaymentLinkUpdateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(::Stripe::PaymentLinkUpdateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::PaymentLinkUpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), name_collection: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::NameCollection)), optional_items: T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkUpdateParams::OptionalItem])), payment_intent_data: T.nilable(::Stripe::PaymentLinkUpdateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_options: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions)), payment_method_types: T.nilable(T.any(String, T::Array[String])), phone_number_collection: T.nilable(::Stripe::PaymentLinkUpdateParams::PhoneNumberCollection), restrictions: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::Restrictions)), shipping_address_collection: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::ShippingAddressCollection)), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::PaymentLinkUpdateParams::SubscriptionData), tax_id_collection: T.nilable(::Stripe::PaymentLinkUpdateParams::TaxIdCollection)).void } def initialize( active: nil, @@ -109121,6 +110820,7 @@ module Stripe optional_items: nil, payment_intent_data: nil, payment_method_collection: nil, + payment_method_options: nil, payment_method_types: nil, phone_number_collection: nil, restrictions: nil, @@ -109163,6 +110863,11 @@ end # typed: true module Stripe class PaymentMethodConfigurationListParams < ::Stripe::RequestParams + # Whether the configuration is active. + sig { returns(T.nilable(T::Boolean)) } + def active; end + sig { params(_active: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def active=(_active); end # The Connect application to filter by. sig { returns(T.nilable(String)) } def application; end @@ -109189,9 +110894,10 @@ module Stripe sig { params(_starting_after: T.nilable(String)).returns(T.nilable(String)) } def starting_after=(_starting_after); end sig { - params(application: T.nilable(String), ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String)).void + params(active: T.nilable(T::Boolean), application: T.nilable(String), ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String)).void } def initialize( + active: nil, application: nil, ending_before: nil, expand: nil, @@ -109491,6 +111197,30 @@ module Stripe } def initialize(display_preference: nil); end end + class Bizum < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { + returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bizum::DisplayPreference)) + } + def display_preference; end + sig { + params(_display_preference: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bizum::DisplayPreference)).returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bizum::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bizum::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end class Blik < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -110379,6 +112109,30 @@ module Stripe } def initialize(display_preference: nil); end end + class Scalapay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { + returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Scalapay::DisplayPreference)) + } + def display_preference; end + sig { + params(_display_preference: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Scalapay::DisplayPreference)).returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Scalapay::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Scalapay::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end class SepaDebit < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -110679,6 +112433,13 @@ module Stripe params(_billie: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Billie)).returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Billie)) } def billie=(_billie); end + # To enable Bizum, buyers need a Spanish IBAN from a bank connected to Bizum. Within their banking app, they can enable Bizum and link their mobile number to their IBAN. + sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bizum)).returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bizum)) + } + def bizum=(_bizum); end # BLIK is a [single use](https://docs.stripe.com/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://docs.stripe.com/payments/blik) for more details. sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Blik)) } def blik; end @@ -110948,13 +112709,20 @@ module Stripe params(_samsung_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::SamsungPay)).returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::SamsungPay)) } def samsung_pay=(_samsung_pay); end - # Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + # Satispay is a [single-use](/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Satispay)) } def satispay; end sig { params(_satispay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Satispay)).returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Satispay)) } def satispay=(_satispay); end + # Scalapay is a [single-use](/payments/payment-methods#usage) payment method that lets customers pay in 3 or 4 installments. Customers are redirected from your website or app, authorize the payment with Scalapay, then return to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Scalapay)) } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Scalapay)).returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Scalapay)) + } + def scalapay=(_scalapay); end # The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details. sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::SepaDebit)) } def sepa_debit; end @@ -111019,7 +112787,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::AcssDebit), affirm: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Alipay), alma: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::AmazonPay), apple_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::ApplePay), apple_pay_later: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::ApplePayLater), au_becs_debit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Billie), blik: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Boleto), card: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Card), cartes_bancaires: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::CartesBancaires), cashapp: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Cashapp), crypto: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Crypto), customer_balance: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Fpx), fr_meal_voucher_conecs: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::FrMealVoucherConecs), giropay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Giropay), google_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::GooglePay), grabpay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Ideal), jcb: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Jcb), kakao_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::KakaoPay), klarna: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Konbini), kr_card: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::KrCard), link: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Link), mb_way: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::MbWay), mobilepay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::P24), parent: T.nilable(String), pay_by_bank: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::PayByBank), payco: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Payco), paynow: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Paypal), payto: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Payto), pix: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Pix), promptpay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Promptpay), revolut_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::SamsungPay), satispay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Satispay), sepa_debit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Sofort), sunbit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Sunbit), swish: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Swish), twint: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Twint), upi: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Upi), us_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Zip)).void + params(acss_debit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::AcssDebit), affirm: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Alipay), alma: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::AmazonPay), apple_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::ApplePay), apple_pay_later: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::ApplePayLater), au_becs_debit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Billie), bizum: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bizum), blik: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Boleto), card: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Card), cartes_bancaires: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::CartesBancaires), cashapp: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Cashapp), crypto: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Crypto), customer_balance: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Fpx), fr_meal_voucher_conecs: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::FrMealVoucherConecs), giropay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Giropay), google_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::GooglePay), grabpay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Ideal), jcb: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Jcb), kakao_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::KakaoPay), klarna: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Konbini), kr_card: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::KrCard), link: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Link), mb_way: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::MbWay), mobilepay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::P24), parent: T.nilable(String), pay_by_bank: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::PayByBank), payco: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Payco), paynow: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Paypal), payto: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Payto), pix: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Pix), promptpay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Promptpay), revolut_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::SamsungPay), satispay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Satispay), scalapay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Scalapay), sepa_debit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Sofort), sunbit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Sunbit), swish: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Swish), twint: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Twint), upi: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Upi), us_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Zip)).void } def initialize( acss_debit: nil, @@ -111034,6 +112802,7 @@ module Stripe bacs_debit: nil, bancontact: nil, billie: nil, + bizum: nil, blik: nil, boleto: nil, card: nil, @@ -111074,6 +112843,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -111377,6 +113147,30 @@ module Stripe } def initialize(display_preference: nil); end end + class Bizum < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { + returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bizum::DisplayPreference)) + } + def display_preference; end + sig { + params(_display_preference: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bizum::DisplayPreference)).returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bizum::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bizum::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end class Blik < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -112265,6 +114059,30 @@ module Stripe } def initialize(display_preference: nil); end end + class Scalapay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { + returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Scalapay::DisplayPreference)) + } + def display_preference; end + sig { + params(_display_preference: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Scalapay::DisplayPreference)).returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Scalapay::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Scalapay::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end class SepaDebit < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -112570,6 +114388,13 @@ module Stripe params(_billie: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Billie)).returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Billie)) } def billie=(_billie); end + # To enable Bizum, buyers need a Spanish IBAN from a bank connected to Bizum. Within their banking app, they can enable Bizum and link their mobile number to their IBAN. + sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bizum)).returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bizum)) + } + def bizum=(_bizum); end # BLIK is a [single use](https://docs.stripe.com/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://docs.stripe.com/payments/blik) for more details. sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Blik)) } def blik; end @@ -112834,13 +114659,20 @@ module Stripe params(_samsung_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::SamsungPay)).returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::SamsungPay)) } def samsung_pay=(_samsung_pay); end - # Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + # Satispay is a [single-use](/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Satispay)) } def satispay; end sig { params(_satispay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Satispay)).returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Satispay)) } def satispay=(_satispay); end + # Scalapay is a [single-use](/payments/payment-methods#usage) payment method that lets customers pay in 3 or 4 installments. Customers are redirected from your website or app, authorize the payment with Scalapay, then return to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Scalapay)) } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Scalapay)).returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Scalapay)) + } + def scalapay=(_scalapay); end # The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details. sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::SepaDebit)) } def sepa_debit; end @@ -112905,7 +114737,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::AcssDebit), active: T.nilable(T::Boolean), affirm: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Alipay), alma: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::AmazonPay), apple_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::ApplePay), apple_pay_later: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::ApplePayLater), au_becs_debit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Billie), blik: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Boleto), card: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Card), cartes_bancaires: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::CartesBancaires), cashapp: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Cashapp), crypto: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Crypto), customer_balance: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Fpx), fr_meal_voucher_conecs: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::FrMealVoucherConecs), giropay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Giropay), google_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::GooglePay), grabpay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Ideal), jcb: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Jcb), kakao_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::KakaoPay), klarna: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Konbini), kr_card: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::KrCard), link: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Link), mb_way: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::MbWay), mobilepay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::P24), pay_by_bank: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::PayByBank), payco: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Payco), paynow: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Paypal), payto: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Payto), pix: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Pix), promptpay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Promptpay), revolut_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::SamsungPay), satispay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Satispay), sepa_debit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Sofort), sunbit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Sunbit), swish: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Swish), twint: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Twint), upi: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Upi), us_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Zip)).void + params(acss_debit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::AcssDebit), active: T.nilable(T::Boolean), affirm: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Alipay), alma: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::AmazonPay), apple_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::ApplePay), apple_pay_later: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::ApplePayLater), au_becs_debit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Billie), bizum: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bizum), blik: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Boleto), card: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Card), cartes_bancaires: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::CartesBancaires), cashapp: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Cashapp), crypto: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Crypto), customer_balance: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Fpx), fr_meal_voucher_conecs: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::FrMealVoucherConecs), giropay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Giropay), google_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::GooglePay), grabpay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Ideal), jcb: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Jcb), kakao_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::KakaoPay), klarna: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Konbini), kr_card: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::KrCard), link: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Link), mb_way: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::MbWay), mobilepay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::P24), pay_by_bank: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::PayByBank), payco: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Payco), paynow: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Paypal), payto: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Payto), pix: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Pix), promptpay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Promptpay), revolut_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::SamsungPay), satispay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Satispay), scalapay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Scalapay), sepa_debit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Sofort), sunbit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Sunbit), swish: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Swish), twint: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Twint), upi: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Upi), us_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Zip)).void } def initialize( acss_debit: nil, @@ -112921,6 +114753,7 @@ module Stripe bacs_debit: nil, bancontact: nil, billie: nil, + bizum: nil, blik: nil, boleto: nil, card: nil, @@ -112960,6 +114793,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -113266,6 +115100,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) @@ -113515,6 +115350,7 @@ module Stripe class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } @@ -113696,6 +115532,13 @@ module Stripe params(_billing_details: T.nilable(::Stripe::PaymentMethodCreateParams::BillingDetails)).returns(T.nilable(::Stripe::PaymentMethodCreateParams::BillingDetails)) } def billing_details=(_billing_details); end + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + sig { returns(T.nilable(::Stripe::PaymentMethodCreateParams::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::PaymentMethodCreateParams::Bizum)).returns(T.nilable(::Stripe::PaymentMethodCreateParams::Bizum)) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. sig { returns(T.nilable(::Stripe::PaymentMethodCreateParams::Blik)) } def blik; end @@ -113825,7 +115668,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::PaymentMethodCreateParams::KrCard)).returns(T.nilable(::Stripe::PaymentMethodCreateParams::KrCard)) } def kr_card=(_kr_card); end - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::PaymentMethodCreateParams::Link)) } def link; end sig { @@ -113970,6 +115813,13 @@ module Stripe params(_satispay: T.nilable(::Stripe::PaymentMethodCreateParams::Satispay)).returns(T.nilable(::Stripe::PaymentMethodCreateParams::Satispay)) } def satispay=(_satispay); end + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + sig { returns(T.nilable(::Stripe::PaymentMethodCreateParams::Scalapay)) } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::PaymentMethodCreateParams::Scalapay)).returns(T.nilable(::Stripe::PaymentMethodCreateParams::Scalapay)) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. sig { returns(T.nilable(::Stripe::PaymentMethodCreateParams::SepaDebit)) } def sepa_debit; end @@ -114039,7 +115889,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::PaymentMethodCreateParams::AcssDebit), affirm: T.nilable(::Stripe::PaymentMethodCreateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethodCreateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethodCreateParams::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentMethodCreateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethodCreateParams::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentMethodCreateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethodCreateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethodCreateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethodCreateParams::Billie), billing_details: T.nilable(::Stripe::PaymentMethodCreateParams::BillingDetails), blik: T.nilable(::Stripe::PaymentMethodCreateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethodCreateParams::Boleto), card: T.nilable(::Stripe::PaymentMethodCreateParams::Card), cashapp: T.nilable(::Stripe::PaymentMethodCreateParams::Cashapp), crypto: T.nilable(::Stripe::PaymentMethodCreateParams::Crypto), custom: T.nilable(::Stripe::PaymentMethodCreateParams::Custom), customer: T.nilable(String), customer_balance: T.nilable(::Stripe::PaymentMethodCreateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethodCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethodCreateParams::Fpx), giropay: T.nilable(::Stripe::PaymentMethodCreateParams::Giropay), grabpay: T.nilable(::Stripe::PaymentMethodCreateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethodCreateParams::Ideal), interac_present: T.nilable(::Stripe::PaymentMethodCreateParams::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentMethodCreateParams::KakaoPay), klarna: T.nilable(::Stripe::PaymentMethodCreateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethodCreateParams::Konbini), kr_card: T.nilable(::Stripe::PaymentMethodCreateParams::KrCard), link: T.nilable(::Stripe::PaymentMethodCreateParams::Link), mb_way: T.nilable(::Stripe::PaymentMethodCreateParams::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentMethodCreateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethodCreateParams::Multibanco), naver_pay: T.nilable(::Stripe::PaymentMethodCreateParams::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentMethodCreateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethodCreateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethodCreateParams::P24), pay_by_bank: T.nilable(::Stripe::PaymentMethodCreateParams::PayByBank), payco: T.nilable(::Stripe::PaymentMethodCreateParams::Payco), payment_method: T.nilable(String), paynow: T.nilable(::Stripe::PaymentMethodCreateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethodCreateParams::Paypal), payto: T.nilable(::Stripe::PaymentMethodCreateParams::Payto), pix: T.nilable(::Stripe::PaymentMethodCreateParams::Pix), promptpay: T.nilable(::Stripe::PaymentMethodCreateParams::Promptpay), radar_options: T.nilable(::Stripe::PaymentMethodCreateParams::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentMethodCreateParams::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentMethodCreateParams::SamsungPay), satispay: T.nilable(::Stripe::PaymentMethodCreateParams::Satispay), sepa_debit: T.nilable(::Stripe::PaymentMethodCreateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethodCreateParams::Sofort), sunbit: T.nilable(::Stripe::PaymentMethodCreateParams::Sunbit), swish: T.nilable(::Stripe::PaymentMethodCreateParams::Swish), twint: T.nilable(::Stripe::PaymentMethodCreateParams::Twint), type: T.nilable(String), upi: T.nilable(::Stripe::PaymentMethodCreateParams::Upi), us_bank_account: T.nilable(::Stripe::PaymentMethodCreateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethodCreateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethodCreateParams::Zip)).void + params(acss_debit: T.nilable(::Stripe::PaymentMethodCreateParams::AcssDebit), affirm: T.nilable(::Stripe::PaymentMethodCreateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethodCreateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethodCreateParams::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentMethodCreateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethodCreateParams::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentMethodCreateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethodCreateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethodCreateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethodCreateParams::Billie), billing_details: T.nilable(::Stripe::PaymentMethodCreateParams::BillingDetails), bizum: T.nilable(::Stripe::PaymentMethodCreateParams::Bizum), blik: T.nilable(::Stripe::PaymentMethodCreateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethodCreateParams::Boleto), card: T.nilable(::Stripe::PaymentMethodCreateParams::Card), cashapp: T.nilable(::Stripe::PaymentMethodCreateParams::Cashapp), crypto: T.nilable(::Stripe::PaymentMethodCreateParams::Crypto), custom: T.nilable(::Stripe::PaymentMethodCreateParams::Custom), customer: T.nilable(String), customer_balance: T.nilable(::Stripe::PaymentMethodCreateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethodCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethodCreateParams::Fpx), giropay: T.nilable(::Stripe::PaymentMethodCreateParams::Giropay), grabpay: T.nilable(::Stripe::PaymentMethodCreateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethodCreateParams::Ideal), interac_present: T.nilable(::Stripe::PaymentMethodCreateParams::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentMethodCreateParams::KakaoPay), klarna: T.nilable(::Stripe::PaymentMethodCreateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethodCreateParams::Konbini), kr_card: T.nilable(::Stripe::PaymentMethodCreateParams::KrCard), link: T.nilable(::Stripe::PaymentMethodCreateParams::Link), mb_way: T.nilable(::Stripe::PaymentMethodCreateParams::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentMethodCreateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethodCreateParams::Multibanco), naver_pay: T.nilable(::Stripe::PaymentMethodCreateParams::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentMethodCreateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethodCreateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethodCreateParams::P24), pay_by_bank: T.nilable(::Stripe::PaymentMethodCreateParams::PayByBank), payco: T.nilable(::Stripe::PaymentMethodCreateParams::Payco), payment_method: T.nilable(String), paynow: T.nilable(::Stripe::PaymentMethodCreateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethodCreateParams::Paypal), payto: T.nilable(::Stripe::PaymentMethodCreateParams::Payto), pix: T.nilable(::Stripe::PaymentMethodCreateParams::Pix), promptpay: T.nilable(::Stripe::PaymentMethodCreateParams::Promptpay), radar_options: T.nilable(::Stripe::PaymentMethodCreateParams::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentMethodCreateParams::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentMethodCreateParams::SamsungPay), satispay: T.nilable(::Stripe::PaymentMethodCreateParams::Satispay), scalapay: T.nilable(::Stripe::PaymentMethodCreateParams::Scalapay), sepa_debit: T.nilable(::Stripe::PaymentMethodCreateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethodCreateParams::Sofort), sunbit: T.nilable(::Stripe::PaymentMethodCreateParams::Sunbit), swish: T.nilable(::Stripe::PaymentMethodCreateParams::Swish), twint: T.nilable(::Stripe::PaymentMethodCreateParams::Twint), type: T.nilable(String), upi: T.nilable(::Stripe::PaymentMethodCreateParams::Upi), us_bank_account: T.nilable(::Stripe::PaymentMethodCreateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethodCreateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethodCreateParams::Zip)).void } def initialize( acss_debit: nil, @@ -114054,6 +115904,7 @@ module Stripe bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, card: nil, @@ -114094,6 +115945,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -115513,7 +117365,7 @@ module Stripe def source_type; end sig { params(_source_type: T.nilable(String)).returns(T.nilable(String)) } def source_type=(_source_type); end - # A string that displays on the recipient's bank or card statement (up to 22 characters). A `statement_descriptor` that's longer than 22 characters return an error. Most banks truncate this information and display it inconsistently. Some banks might not display it at all. + # A string that displays on the recipient's bank or card statement (up to 22 characters). A `statement_descriptor` that's longer than 22 characters return an error. Most banks truncate this information and display it inconsistently. Some banks might not display it at all. For US ACH payouts, this maps to the ACH Company Entry Description field, which the NACHA standard limits to 10 characters. Stripe truncates descriptors longer than 10 characters for US ACH payouts. sig { returns(T.nilable(String)) } def statement_descriptor; end sig { params(_statement_descriptor: T.nilable(String)).returns(T.nilable(String)) } @@ -120360,6 +122212,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) @@ -120550,6 +122403,7 @@ module Stripe class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } @@ -120737,6 +122591,13 @@ module Stripe params(_billing_details: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::BillingDetails)).returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::BillingDetails)) } def billing_details=(_billing_details); end + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + sig { returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Bizum)).returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Bizum)) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. sig { returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Blik)) } def blik; end @@ -120846,7 +122707,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::KrCard)).returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::KrCard)) } def kr_card=(_kr_card); end - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Link)) } def link; end sig { @@ -120988,6 +122849,13 @@ module Stripe params(_satispay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Satispay)).returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Satispay)) } def satispay=(_satispay); end + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + sig { returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Scalapay)) } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Scalapay)).returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Scalapay)) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. sig { returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::SepaDebit)) } def sepa_debit; end @@ -121059,7 +122927,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Zip)).void + params(acss_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::BillingDetails), bizum: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Bizum), blik: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Satispay), scalapay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Scalapay), sepa_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Zip)).void } def initialize( acss_debit: nil, @@ -121074,6 +122942,7 @@ module Stripe bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -121109,6 +122978,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -121213,6 +123083,7 @@ module Stripe } def initialize(mandate_options: nil); end end + class Bizum < ::Stripe::RequestParams; end class Card < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments, specified in the presentment currency. @@ -121932,6 +123803,13 @@ module Stripe params(_bacs_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::BacsDebit)).returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::BacsDebit)) } def bacs_debit=(_bacs_debit); end + # If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + sig { returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Bizum)).returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Bizum)) + } + def bizum=(_bizum); end # Configuration for any card setup attempted on this SetupIntent. sig { returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Card)) } def card; end @@ -121955,7 +123833,7 @@ module Stripe params(_klarna: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Klarna)).returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Klarna)) } def klarna=(_klarna); end - # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Link)) } def link; end sig { @@ -122007,12 +123885,13 @@ module Stripe } def us_bank_account=(_us_bank_account); end sig { - params(acss_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::AcssDebit), amazon_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::AmazonPay), bacs_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::BacsDebit), card: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::CardPresent), klarna: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Klarna), link: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Link), paypal: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Pix), sepa_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::SepaDebit), upi: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::UsBankAccount)).void + params(acss_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::AcssDebit), amazon_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::AmazonPay), bacs_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::BacsDebit), bizum: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Bizum), card: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::CardPresent), klarna: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Klarna), link: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Link), paypal: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Pix), sepa_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::SepaDebit), upi: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::UsBankAccount)).void } def initialize( acss_debit: nil, amazon_pay: nil, bacs_debit: nil, + bizum: nil, card: nil, card_present: nil, klarna: nil, @@ -122347,6 +124226,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) @@ -122537,6 +124417,7 @@ module Stripe class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } @@ -122724,6 +124605,13 @@ module Stripe params(_billing_details: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::BillingDetails)).returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::BillingDetails)) } def billing_details=(_billing_details); end + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + sig { returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Bizum)).returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Bizum)) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. sig { returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Blik)) } def blik; end @@ -122833,7 +124721,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::KrCard)).returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::KrCard)) } def kr_card=(_kr_card); end - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Link)) } def link; end sig { @@ -122975,6 +124863,13 @@ module Stripe params(_satispay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Satispay)).returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Satispay)) } def satispay=(_satispay); end + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + sig { returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Scalapay)) } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Scalapay)).returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Scalapay)) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. sig { returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::SepaDebit)) } def sepa_debit; end @@ -123046,7 +124941,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Zip)).void + params(acss_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::BillingDetails), bizum: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Bizum), blik: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Satispay), scalapay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Scalapay), sepa_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Zip)).void } def initialize( acss_debit: nil, @@ -123061,6 +124956,7 @@ module Stripe bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -123096,6 +124992,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -123200,6 +125097,7 @@ module Stripe } def initialize(mandate_options: nil); end end + class Bizum < ::Stripe::RequestParams; end class Card < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments, specified in the presentment currency. @@ -123919,6 +125817,13 @@ module Stripe params(_bacs_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::BacsDebit)).returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::BacsDebit)) } def bacs_debit=(_bacs_debit); end + # If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + sig { returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Bizum)).returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Bizum)) + } + def bizum=(_bizum); end # Configuration for any card setup attempted on this SetupIntent. sig { returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Card)) } def card; end @@ -123942,7 +125847,7 @@ module Stripe params(_klarna: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Klarna)).returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Klarna)) } def klarna=(_klarna); end - # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Link)) } def link; end sig { @@ -123994,12 +125899,13 @@ module Stripe } def us_bank_account=(_us_bank_account); end sig { - params(acss_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::AcssDebit), amazon_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::AmazonPay), bacs_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::BacsDebit), card: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::CardPresent), klarna: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Klarna), link: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Link), paypal: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Pix), sepa_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::SepaDebit), upi: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::UsBankAccount)).void + params(acss_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::AcssDebit), amazon_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::AmazonPay), bacs_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::BacsDebit), bizum: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Bizum), card: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::CardPresent), klarna: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Klarna), link: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Link), paypal: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Pix), sepa_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::SepaDebit), upi: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::UsBankAccount)).void } def initialize( acss_debit: nil, amazon_pay: nil, bacs_debit: nil, + bizum: nil, card: nil, card_present: nil, klarna: nil, @@ -124337,6 +126243,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) @@ -124527,6 +126434,7 @@ module Stripe class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } @@ -124714,6 +126622,13 @@ module Stripe params(_billing_details: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::BillingDetails)).returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::BillingDetails)) } def billing_details=(_billing_details); end + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + sig { returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Bizum)).returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Bizum)) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. sig { returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Blik)) } def blik; end @@ -124823,7 +126738,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::KrCard)).returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::KrCard)) } def kr_card=(_kr_card); end - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Link)) } def link; end sig { @@ -124967,6 +126882,13 @@ module Stripe params(_satispay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Satispay)).returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Satispay)) } def satispay=(_satispay); end + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + sig { returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Scalapay)) } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Scalapay)).returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Scalapay)) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. sig { returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::SepaDebit)) } def sepa_debit; end @@ -125038,7 +126960,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Zip)).void + params(acss_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::BillingDetails), bizum: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Bizum), blik: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Satispay), scalapay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Scalapay), sepa_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Zip)).void } def initialize( acss_debit: nil, @@ -125053,6 +126975,7 @@ module Stripe bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -125088,6 +127011,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -125192,6 +127116,7 @@ module Stripe } def initialize(mandate_options: nil); end end + class Bizum < ::Stripe::RequestParams; end class Card < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments, specified in the presentment currency. @@ -125917,6 +127842,13 @@ module Stripe params(_bacs_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::BacsDebit)).returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::BacsDebit)) } def bacs_debit=(_bacs_debit); end + # If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + sig { returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Bizum)).returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Bizum)) + } + def bizum=(_bizum); end # Configuration for any card setup attempted on this SetupIntent. sig { returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Card)) } def card; end @@ -125940,7 +127872,7 @@ module Stripe params(_klarna: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Klarna)).returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Klarna)) } def klarna=(_klarna); end - # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Link)) } def link; end sig { @@ -125994,12 +127926,13 @@ module Stripe } def us_bank_account=(_us_bank_account); end sig { - params(acss_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::AcssDebit), amazon_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::AmazonPay), bacs_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::BacsDebit), card: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::CardPresent), klarna: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Klarna), link: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Link), paypal: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Pix), sepa_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::SepaDebit), upi: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::UsBankAccount)).void + params(acss_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::AcssDebit), amazon_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::AmazonPay), bacs_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::BacsDebit), bizum: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Bizum), card: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::CardPresent), klarna: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Klarna), link: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Link), paypal: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Pix), sepa_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::SepaDebit), upi: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::UsBankAccount)).void } def initialize( acss_debit: nil, amazon_pay: nil, bacs_debit: nil, + bizum: nil, card: nil, card_present: nil, klarna: nil, @@ -127320,13 +129253,7 @@ module Stripe def clear_usage; end sig { params(_clear_usage: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } def clear_usage=(_clear_usage); end - # Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - # - # Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - # - # Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - # - # Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + # Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. sig { returns(T.nilable(String)) } def payment_behavior; end sig { params(_payment_behavior: T.nilable(String)).returns(T.nilable(String)) } @@ -127482,13 +129409,7 @@ module Stripe def off_session; end sig { params(_off_session: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } def off_session=(_off_session); end - # Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - # - # Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - # - # Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - # - # Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + # Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. sig { returns(T.nilable(String)) } def payment_behavior; end sig { params(_payment_behavior: T.nilable(String)).returns(T.nilable(String)) } @@ -127722,13 +129643,7 @@ module Stripe params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) } def metadata=(_metadata); end - # Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - # - # Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - # - # Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - # - # Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + # Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. sig { returns(T.nilable(String)) } def payment_behavior; end sig { params(_payment_behavior: T.nilable(String)).returns(T.nilable(String)) } @@ -128327,6 +130242,11 @@ module Stripe @field_encodings = {unit_amount_decimal: :decimal_string} end end + # Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + sig { returns(T.nilable(T::Boolean)) } + def discountable; end + sig { params(_discountable: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def discountable=(_discountable); end # The coupons to redeem into discounts for the item. sig { returns(T.nilable(T::Array[::Stripe::SubscriptionScheduleCreateParams::Phase::AddInvoiceItem::Discount])) @@ -128379,9 +130299,10 @@ module Stripe } def tax_rates=(_tax_rates); end sig { - params(discounts: T.nilable(T::Array[::Stripe::SubscriptionScheduleCreateParams::Phase::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::SubscriptionScheduleCreateParams::Phase::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionScheduleCreateParams::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void + params(discountable: T.nilable(T::Boolean), discounts: T.nilable(T::Array[::Stripe::SubscriptionScheduleCreateParams::Phase::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::SubscriptionScheduleCreateParams::Phase::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionScheduleCreateParams::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void } def initialize( + discountable: nil, discounts: nil, metadata: nil, period: nil, @@ -129299,6 +131220,11 @@ module Stripe @field_encodings = {unit_amount_decimal: :decimal_string} end end + # Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + sig { returns(T.nilable(T::Boolean)) } + def discountable; end + sig { params(_discountable: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def discountable=(_discountable); end # The coupons to redeem into discounts for the item. sig { returns(T.nilable(T::Array[::Stripe::SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem::Discount])) @@ -129351,9 +131277,10 @@ module Stripe } def tax_rates=(_tax_rates); end sig { - params(discounts: T.nilable(T::Array[::Stripe::SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void + params(discountable: T.nilable(T::Boolean), discounts: T.nilable(T::Array[::Stripe::SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void } def initialize( + discountable: nil, discounts: nil, metadata: nil, period: nil, @@ -130150,6 +132077,11 @@ module Stripe @field_encodings = {unit_amount_decimal: :decimal_string} end end + # Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + sig { returns(T.nilable(T::Boolean)) } + def discountable; end + sig { params(_discountable: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def discountable=(_discountable); end # The coupons to redeem into discounts for the item. sig { returns(T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::AddInvoiceItem::Discount])) @@ -130198,9 +132130,10 @@ module Stripe } def tax_rates=(_tax_rates); end sig { - params(discounts: T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::SubscriptionUpdateParams::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionUpdateParams::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void + params(discountable: T.nilable(T::Boolean), discounts: T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::SubscriptionUpdateParams::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionUpdateParams::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void } def initialize( + discountable: nil, discounts: nil, metadata: nil, period: nil, @@ -130247,6 +132180,86 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end + class BillingSchedule < ::Stripe::RequestParams + class AppliesTo < ::Stripe::RequestParams + # The ID of the price object. + sig { returns(T.nilable(String)) } + def price; end + sig { params(_price: T.nilable(String)).returns(T.nilable(String)) } + def price=(_price); end + # Controls which subscription items the billing schedule applies to. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(price: T.nilable(String), type: String).void } + def initialize(price: nil, type: nil); end + end + class BillUntil < ::Stripe::RequestParams + class Duration < ::Stripe::RequestParams + # Specifies billing duration. Either `day`, `week`, `month` or `year`. + sig { returns(String) } + def interval; end + sig { params(_interval: String).returns(String) } + def interval=(_interval); end + # The multiplier applied to the interval. + sig { returns(T.nilable(Integer)) } + def interval_count; end + sig { params(_interval_count: T.nilable(Integer)).returns(T.nilable(Integer)) } + def interval_count=(_interval_count); end + sig { params(interval: String, interval_count: T.nilable(Integer)).void } + def initialize(interval: nil, interval_count: nil); end + end + # Specifies the billing period. + sig { + returns(T.nilable(::Stripe::SubscriptionUpdateParams::BillingSchedule::BillUntil::Duration)) + } + def duration; end + sig { + params(_duration: T.nilable(::Stripe::SubscriptionUpdateParams::BillingSchedule::BillUntil::Duration)).returns(T.nilable(::Stripe::SubscriptionUpdateParams::BillingSchedule::BillUntil::Duration)) + } + def duration=(_duration); end + # The end date of the billing schedule. + sig { returns(T.nilable(Integer)) } + def timestamp; end + sig { params(_timestamp: T.nilable(Integer)).returns(T.nilable(Integer)) } + def timestamp=(_timestamp); end + # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(duration: T.nilable(::Stripe::SubscriptionUpdateParams::BillingSchedule::BillUntil::Duration), timestamp: T.nilable(Integer), type: String).void + } + def initialize(duration: nil, timestamp: nil, type: nil); end + end + # Configure billing schedule differently for individual subscription items. + sig { + returns(T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::BillingSchedule::AppliesTo])) + } + def applies_to; end + sig { + params(_applies_to: T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::BillingSchedule::AppliesTo])).returns(T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::BillingSchedule::AppliesTo])) + } + def applies_to=(_applies_to); end + # The end date for the billing schedule. + sig { returns(T.nilable(::Stripe::SubscriptionUpdateParams::BillingSchedule::BillUntil)) } + def bill_until; end + sig { + params(_bill_until: T.nilable(::Stripe::SubscriptionUpdateParams::BillingSchedule::BillUntil)).returns(T.nilable(::Stripe::SubscriptionUpdateParams::BillingSchedule::BillUntil)) + } + def bill_until=(_bill_until); end + # Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + sig { returns(T.nilable(String)) } + def key; end + sig { params(_key: T.nilable(String)).returns(T.nilable(String)) } + def key=(_key); end + sig { + params(applies_to: T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::BillingSchedule::AppliesTo]), bill_until: T.nilable(::Stripe::SubscriptionUpdateParams::BillingSchedule::BillUntil), key: T.nilable(String)).void + } + def initialize(applies_to: nil, bill_until: nil, key: nil); end + end class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period sig { returns(T.nilable(Integer)) } @@ -131064,6 +133077,15 @@ module Stripe def billing_cycle_anchor; end sig { params(_billing_cycle_anchor: T.nilable(String)).returns(T.nilable(String)) } def billing_cycle_anchor=(_billing_cycle_anchor); end + # Sets the billing schedules for the subscription. + sig { + returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::BillingSchedule]))) + } + def billing_schedules; end + sig { + params(_billing_schedules: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::BillingSchedule]))).returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::BillingSchedule]))) + } + def billing_schedules=(_billing_schedules); end # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. sig { returns(T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::BillingThresholds))) } def billing_thresholds; end @@ -131122,7 +133144,7 @@ module Stripe def description; end sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } def description=(_description); end - # The coupons to redeem into discounts for the subscription. If not specified or empty, inherits the discount from the subscription's customer. + # The coupons to redeem into discounts for the subscription. A populated array overwrites the existing discounts on the subscription. If not specified or empty array, it leaves the subscription's discounts unchanged. If empty string, it clears the subscription's discounts. sig { returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::Discount]))) } @@ -131174,13 +133196,7 @@ module Stripe params(_pause_collection: T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::PauseCollection))).returns(T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::PauseCollection))) } def pause_collection=(_pause_collection); end - # Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - # - # Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - # - # Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - # - # Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + # Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. sig { returns(T.nilable(String)) } def payment_behavior; end sig { params(_payment_behavior: T.nilable(String)).returns(T.nilable(String)) } @@ -131238,13 +133254,14 @@ module Stripe } def trial_settings=(_trial_settings); end sig { - params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::AddInvoiceItem]), application_fee_percent: T.nilable(T.any(String, Float)), automatic_tax: T.nilable(::Stripe::SubscriptionUpdateParams::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::BillingThresholds)), cancel_at: T.nilable(T.any(String, T.any(Integer, String))), cancel_at_period_end: T.nilable(T::Boolean), cancellation_details: T.nilable(::Stripe::SubscriptionUpdateParams::CancellationDetails), collection_method: T.nilable(String), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::Discount])), expand: T.nilable(T::Array[String]), invoice_settings: T.nilable(::Stripe::SubscriptionUpdateParams::InvoiceSettings), items: T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::Item]), metadata: T.nilable(T.any(String, T::Hash[String, String])), off_session: T.nilable(T::Boolean), on_behalf_of: T.nilable(String), pause_collection: T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::PauseCollection)), payment_behavior: T.nilable(String), payment_settings: T.nilable(::Stripe::SubscriptionUpdateParams::PaymentSettings), pending_invoice_item_interval: T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::PendingInvoiceItemInterval)), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), transfer_data: T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::TransferData)), trial_end: T.nilable(T.any(String, Integer)), trial_from_plan: T.nilable(T::Boolean), trial_settings: T.nilable(::Stripe::SubscriptionUpdateParams::TrialSettings)).void + params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::AddInvoiceItem]), application_fee_percent: T.nilable(T.any(String, Float)), automatic_tax: T.nilable(::Stripe::SubscriptionUpdateParams::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_schedules: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::BillingSchedule])), billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::BillingThresholds)), cancel_at: T.nilable(T.any(String, T.any(Integer, String))), cancel_at_period_end: T.nilable(T::Boolean), cancellation_details: T.nilable(::Stripe::SubscriptionUpdateParams::CancellationDetails), collection_method: T.nilable(String), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::Discount])), expand: T.nilable(T::Array[String]), invoice_settings: T.nilable(::Stripe::SubscriptionUpdateParams::InvoiceSettings), items: T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::Item]), metadata: T.nilable(T.any(String, T::Hash[String, String])), off_session: T.nilable(T::Boolean), on_behalf_of: T.nilable(String), pause_collection: T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::PauseCollection)), payment_behavior: T.nilable(String), payment_settings: T.nilable(::Stripe::SubscriptionUpdateParams::PaymentSettings), pending_invoice_item_interval: T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::PendingInvoiceItemInterval)), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), transfer_data: T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::TransferData)), trial_end: T.nilable(T.any(String, Integer)), trial_from_plan: T.nilable(T::Boolean), trial_settings: T.nilable(::Stripe::SubscriptionUpdateParams::TrialSettings)).void } def initialize( add_invoice_items: nil, application_fee_percent: nil, automatic_tax: nil, billing_cycle_anchor: nil, + billing_schedules: nil, billing_thresholds: nil, cancel_at: nil, cancel_at_period_end: nil, @@ -131605,6 +133622,11 @@ module Stripe @field_encodings = {unit_amount_decimal: :decimal_string} end end + # Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + sig { returns(T.nilable(T::Boolean)) } + def discountable; end + sig { params(_discountable: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def discountable=(_discountable); end # The coupons to redeem into discounts for the item. sig { returns(T.nilable(T::Array[::Stripe::SubscriptionCreateParams::AddInvoiceItem::Discount])) @@ -131653,9 +133675,10 @@ module Stripe } def tax_rates=(_tax_rates); end sig { - params(discounts: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::SubscriptionCreateParams::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionCreateParams::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void + params(discountable: T.nilable(T::Boolean), discounts: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::SubscriptionCreateParams::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionCreateParams::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void } def initialize( + discountable: nil, discounts: nil, metadata: nil, period: nil, @@ -131760,6 +133783,86 @@ module Stripe } def initialize(flexible: nil, type: nil); end end + class BillingSchedule < ::Stripe::RequestParams + class AppliesTo < ::Stripe::RequestParams + # The ID of the price object. + sig { returns(T.nilable(String)) } + def price; end + sig { params(_price: T.nilable(String)).returns(T.nilable(String)) } + def price=(_price); end + # Controls which subscription items the billing schedule applies to. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(price: T.nilable(String), type: String).void } + def initialize(price: nil, type: nil); end + end + class BillUntil < ::Stripe::RequestParams + class Duration < ::Stripe::RequestParams + # Specifies billing duration. Either `day`, `week`, `month` or `year`. + sig { returns(String) } + def interval; end + sig { params(_interval: String).returns(String) } + def interval=(_interval); end + # The multiplier applied to the interval. + sig { returns(T.nilable(Integer)) } + def interval_count; end + sig { params(_interval_count: T.nilable(Integer)).returns(T.nilable(Integer)) } + def interval_count=(_interval_count); end + sig { params(interval: String, interval_count: T.nilable(Integer)).void } + def initialize(interval: nil, interval_count: nil); end + end + # Specifies the billing period. + sig { + returns(T.nilable(::Stripe::SubscriptionCreateParams::BillingSchedule::BillUntil::Duration)) + } + def duration; end + sig { + params(_duration: T.nilable(::Stripe::SubscriptionCreateParams::BillingSchedule::BillUntil::Duration)).returns(T.nilable(::Stripe::SubscriptionCreateParams::BillingSchedule::BillUntil::Duration)) + } + def duration=(_duration); end + # The end date of the billing schedule. + sig { returns(T.nilable(Integer)) } + def timestamp; end + sig { params(_timestamp: T.nilable(Integer)).returns(T.nilable(Integer)) } + def timestamp=(_timestamp); end + # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(duration: T.nilable(::Stripe::SubscriptionCreateParams::BillingSchedule::BillUntil::Duration), timestamp: T.nilable(Integer), type: String).void + } + def initialize(duration: nil, timestamp: nil, type: nil); end + end + # Configure billing schedule differently for individual subscription items. + sig { + returns(T.nilable(T::Array[::Stripe::SubscriptionCreateParams::BillingSchedule::AppliesTo])) + } + def applies_to; end + sig { + params(_applies_to: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::BillingSchedule::AppliesTo])).returns(T.nilable(T::Array[::Stripe::SubscriptionCreateParams::BillingSchedule::AppliesTo])) + } + def applies_to=(_applies_to); end + # The end date for the billing schedule. + sig { returns(::Stripe::SubscriptionCreateParams::BillingSchedule::BillUntil) } + def bill_until; end + sig { + params(_bill_until: ::Stripe::SubscriptionCreateParams::BillingSchedule::BillUntil).returns(::Stripe::SubscriptionCreateParams::BillingSchedule::BillUntil) + } + def bill_until=(_bill_until); end + # Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + sig { returns(T.nilable(String)) } + def key; end + sig { params(_key: T.nilable(String)).returns(T.nilable(String)) } + def key=(_key); end + sig { + params(applies_to: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::BillingSchedule::AppliesTo]), bill_until: ::Stripe::SubscriptionCreateParams::BillingSchedule::BillUntil, key: T.nilable(String)).void + } + def initialize(applies_to: nil, bill_until: nil, key: nil); end + end class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period sig { returns(T.nilable(Integer)) } @@ -132548,6 +134651,13 @@ module Stripe params(_billing_mode: T.nilable(::Stripe::SubscriptionCreateParams::BillingMode)).returns(T.nilable(::Stripe::SubscriptionCreateParams::BillingMode)) } def billing_mode=(_billing_mode); end + # Sets the billing schedules for the subscription. + sig { returns(T.nilable(T::Array[::Stripe::SubscriptionCreateParams::BillingSchedule])) } + def billing_schedules; end + sig { + params(_billing_schedules: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::BillingSchedule])).returns(T.nilable(T::Array[::Stripe::SubscriptionCreateParams::BillingSchedule])) + } + def billing_schedules=(_billing_schedules); end # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. sig { returns(T.nilable(T.any(String, ::Stripe::SubscriptionCreateParams::BillingThresholds))) } def billing_thresholds; end @@ -132659,17 +134769,7 @@ module Stripe def on_behalf_of; end sig { params(_on_behalf_of: T.nilable(String)).returns(T.nilable(String)) } def on_behalf_of=(_on_behalf_of); end - # Only applies to subscriptions with `collection_method=charge_automatically`. - # - # Use `allow_incomplete` to create Subscriptions with `status=incomplete` if the first invoice can't be paid. Creating Subscriptions with this status allows you to manage scenarios where additional customer actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - # - # Use `default_incomplete` to create Subscriptions with `status=incomplete` when the first invoice requires payment, otherwise start as active. Subscriptions transition to `status=active` when successfully confirming the PaymentIntent on the first invoice. This allows simpler management of scenarios where additional customer actions are needed to pay a subscription’s invoice, such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. If the PaymentIntent is not confirmed within 23 hours Subscriptions transition to `status=incomplete_expired`, which is a terminal state. - # - # Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice can't be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further customer action is needed, this parameter doesn't create a Subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/upgrades#2019-03-14) to learn more. - # - # `pending_if_incomplete` is only used with updates and cannot be passed when creating a Subscription. - # - # Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status. + # Controls how Stripe handles the first invoice when payment is required and `collection_method=charge_automatically`. Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status. sig { returns(T.nilable(String)) } def payment_behavior; end sig { params(_payment_behavior: T.nilable(String)).returns(T.nilable(String)) } @@ -132727,7 +134827,7 @@ module Stripe } def trial_settings=(_trial_settings); end sig { - params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::AddInvoiceItem]), application_fee_percent: T.nilable(T.any(String, Float)), automatic_tax: T.nilable(::Stripe::SubscriptionCreateParams::AutomaticTax), backdate_start_date: T.nilable(Integer), billing_cycle_anchor: T.nilable(Integer), billing_cycle_anchor_config: T.nilable(::Stripe::SubscriptionCreateParams::BillingCycleAnchorConfig), billing_mode: T.nilable(::Stripe::SubscriptionCreateParams::BillingMode), billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionCreateParams::BillingThresholds)), cancel_at: T.nilable(T.any(Integer, String)), cancel_at_period_end: T.nilable(T::Boolean), collection_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), customer_account: T.nilable(String), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionCreateParams::Discount])), expand: T.nilable(T::Array[String]), invoice_settings: T.nilable(::Stripe::SubscriptionCreateParams::InvoiceSettings), items: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::Item]), metadata: T.nilable(T.any(String, T::Hash[String, String])), off_session: T.nilable(T::Boolean), on_behalf_of: T.nilable(String), payment_behavior: T.nilable(String), payment_settings: T.nilable(::Stripe::SubscriptionCreateParams::PaymentSettings), pending_invoice_item_interval: T.nilable(T.any(String, ::Stripe::SubscriptionCreateParams::PendingInvoiceItemInterval)), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::SubscriptionCreateParams::TransferData), trial_end: T.nilable(T.any(String, Integer)), trial_from_plan: T.nilable(T::Boolean), trial_period_days: T.nilable(Integer), trial_settings: T.nilable(::Stripe::SubscriptionCreateParams::TrialSettings)).void + params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::AddInvoiceItem]), application_fee_percent: T.nilable(T.any(String, Float)), automatic_tax: T.nilable(::Stripe::SubscriptionCreateParams::AutomaticTax), backdate_start_date: T.nilable(Integer), billing_cycle_anchor: T.nilable(Integer), billing_cycle_anchor_config: T.nilable(::Stripe::SubscriptionCreateParams::BillingCycleAnchorConfig), billing_mode: T.nilable(::Stripe::SubscriptionCreateParams::BillingMode), billing_schedules: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::BillingSchedule]), billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionCreateParams::BillingThresholds)), cancel_at: T.nilable(T.any(Integer, String)), cancel_at_period_end: T.nilable(T::Boolean), collection_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), customer_account: T.nilable(String), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionCreateParams::Discount])), expand: T.nilable(T::Array[String]), invoice_settings: T.nilable(::Stripe::SubscriptionCreateParams::InvoiceSettings), items: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::Item]), metadata: T.nilable(T.any(String, T::Hash[String, String])), off_session: T.nilable(T::Boolean), on_behalf_of: T.nilable(String), payment_behavior: T.nilable(String), payment_settings: T.nilable(::Stripe::SubscriptionCreateParams::PaymentSettings), pending_invoice_item_interval: T.nilable(T.any(String, ::Stripe::SubscriptionCreateParams::PendingInvoiceItemInterval)), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::SubscriptionCreateParams::TransferData), trial_end: T.nilable(T.any(String, Integer)), trial_from_plan: T.nilable(T::Boolean), trial_period_days: T.nilable(Integer), trial_settings: T.nilable(::Stripe::SubscriptionCreateParams::TrialSettings)).void } def initialize( add_invoice_items: nil, @@ -132737,6 +134837,7 @@ module Stripe billing_cycle_anchor: nil, billing_cycle_anchor_config: nil, billing_mode: nil, + billing_schedules: nil, billing_thresholds: nil, cancel_at: nil, cancel_at_period_end: nil, @@ -137775,6 +139876,15 @@ module Stripe usd: nil ); end end + class VerifoneM425 < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + sig { returns(T.nilable(String)) } + def splashscreen; end + sig { params(_splashscreen: T.nilable(String)).returns(T.nilable(String)) } + def splashscreen=(_splashscreen); end + sig { params(splashscreen: T.nilable(String)).void } + def initialize(splashscreen: nil); end + end class VerifoneP400 < ::Stripe::RequestParams # A File ID representing an image you want to display on the reader. sig { returns(T.nilable(String)) } @@ -137784,6 +139894,33 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end + class VerifoneP630 < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + sig { returns(T.nilable(String)) } + def splashscreen; end + sig { params(_splashscreen: T.nilable(String)).returns(T.nilable(String)) } + def splashscreen=(_splashscreen); end + sig { params(splashscreen: T.nilable(String)).void } + def initialize(splashscreen: nil); end + end + class VerifoneUx700 < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + sig { returns(T.nilable(String)) } + def splashscreen; end + sig { params(_splashscreen: T.nilable(String)).returns(T.nilable(String)) } + def splashscreen=(_splashscreen); end + sig { params(splashscreen: T.nilable(String)).void } + def initialize(splashscreen: nil); end + end + class VerifoneV660p < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + sig { returns(T.nilable(String)) } + def splashscreen; end + sig { params(_splashscreen: T.nilable(String)).returns(T.nilable(String)) } + def splashscreen=(_splashscreen); end + sig { params(splashscreen: T.nilable(String)).void } + def initialize(splashscreen: nil); end + end class Wifi < ::Stripe::RequestParams class EnterpriseEapPeap < ::Stripe::RequestParams # A File ID representing a PEM file containing the server certificate @@ -137984,6 +140121,15 @@ module Stripe params(_tipping: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Tipping))).returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Tipping))) } def tipping=(_tipping); end + # An object containing device type specific settings for Verifone M425 readers. + sig { + returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneM425))) + } + def verifone_m425; end + sig { + params(_verifone_m425: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneM425))).returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneM425))) + } + def verifone_m425=(_verifone_m425); end # An object containing device type specific settings for Verifone P400 readers. sig { returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneP400))) @@ -137993,6 +140139,33 @@ module Stripe params(_verifone_p400: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneP400))).returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneP400))) } def verifone_p400=(_verifone_p400); end + # An object containing device type specific settings for Verifone P630 readers. + sig { + returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneP630))) + } + def verifone_p630; end + sig { + params(_verifone_p630: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneP630))).returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneP630))) + } + def verifone_p630=(_verifone_p630); end + # An object containing device type specific settings for Verifone UX700 readers. + sig { + returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneUx700))) + } + def verifone_ux700; end + sig { + params(_verifone_ux700: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneUx700))).returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneUx700))) + } + def verifone_ux700=(_verifone_ux700); end + # An object containing device type specific settings for Verifone V660p readers. + sig { + returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneV660p))) + } + def verifone_v660p; end + sig { + params(_verifone_v660p: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneV660p))).returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneV660p))) + } + def verifone_v660p=(_verifone_v660p); end # Configurations for connecting to a WiFi network. sig { returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Wifi))) } def wifi; end @@ -138001,7 +140174,7 @@ module Stripe } def wifi=(_wifi); end sig { - params(bbpos_wisepad3: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::BbposWisepad3)), bbpos_wisepos_e: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::BbposWiseposE)), cellular: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Cellular)), expand: T.nilable(T::Array[String]), name: T.nilable(String), offline: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Offline)), reboot_window: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::RebootWindow)), stripe_s700: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::StripeS700)), stripe_s710: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::StripeS710)), tipping: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Tipping)), verifone_p400: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneP400)), wifi: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Wifi))).void + params(bbpos_wisepad3: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::BbposWisepad3)), bbpos_wisepos_e: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::BbposWiseposE)), cellular: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Cellular)), expand: T.nilable(T::Array[String]), name: T.nilable(String), offline: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Offline)), reboot_window: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::RebootWindow)), stripe_s700: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::StripeS700)), stripe_s710: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::StripeS710)), tipping: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Tipping)), verifone_m425: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneM425)), verifone_p400: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneP400)), verifone_p630: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneP630)), verifone_ux700: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneUx700)), verifone_v660p: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneV660p)), wifi: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Wifi))).void } def initialize( bbpos_wisepad3: nil, @@ -138014,7 +140187,11 @@ module Stripe stripe_s700: nil, stripe_s710: nil, tipping: nil, + verifone_m425: nil, verifone_p400: nil, + verifone_p630: nil, + verifone_ux700: nil, + verifone_v660p: nil, wifi: nil ); end end @@ -138834,6 +141011,15 @@ module Stripe usd: nil ); end end + class VerifoneM425 < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + sig { returns(T.nilable(String)) } + def splashscreen; end + sig { params(_splashscreen: T.nilable(String)).returns(T.nilable(String)) } + def splashscreen=(_splashscreen); end + sig { params(splashscreen: T.nilable(String)).void } + def initialize(splashscreen: nil); end + end class VerifoneP400 < ::Stripe::RequestParams # A File ID representing an image you want to display on the reader. sig { returns(T.nilable(String)) } @@ -138843,6 +141029,33 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end + class VerifoneP630 < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + sig { returns(T.nilable(String)) } + def splashscreen; end + sig { params(_splashscreen: T.nilable(String)).returns(T.nilable(String)) } + def splashscreen=(_splashscreen); end + sig { params(splashscreen: T.nilable(String)).void } + def initialize(splashscreen: nil); end + end + class VerifoneUx700 < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + sig { returns(T.nilable(String)) } + def splashscreen; end + sig { params(_splashscreen: T.nilable(String)).returns(T.nilable(String)) } + def splashscreen=(_splashscreen); end + sig { params(splashscreen: T.nilable(String)).void } + def initialize(splashscreen: nil); end + end + class VerifoneV660p < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + sig { returns(T.nilable(String)) } + def splashscreen; end + sig { params(_splashscreen: T.nilable(String)).returns(T.nilable(String)) } + def splashscreen=(_splashscreen); end + sig { params(splashscreen: T.nilable(String)).void } + def initialize(splashscreen: nil); end + end class Wifi < ::Stripe::RequestParams class EnterpriseEapPeap < ::Stripe::RequestParams # A File ID representing a PEM file containing the server certificate @@ -139033,6 +141246,13 @@ module Stripe params(_tipping: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Tipping))).returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Tipping))) } def tipping=(_tipping); end + # An object containing device type specific settings for Verifone M425 readers. + sig { returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneM425)) } + def verifone_m425; end + sig { + params(_verifone_m425: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneM425)).returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneM425)) + } + def verifone_m425=(_verifone_m425); end # An object containing device type specific settings for Verifone P400 readers. sig { returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneP400)) } def verifone_p400; end @@ -139040,6 +141260,27 @@ module Stripe params(_verifone_p400: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneP400)).returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneP400)) } def verifone_p400=(_verifone_p400); end + # An object containing device type specific settings for Verifone P630 readers. + sig { returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneP630)) } + def verifone_p630; end + sig { + params(_verifone_p630: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneP630)).returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneP630)) + } + def verifone_p630=(_verifone_p630); end + # An object containing device type specific settings for Verifone UX700 readers. + sig { returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneUx700)) } + def verifone_ux700; end + sig { + params(_verifone_ux700: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneUx700)).returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneUx700)) + } + def verifone_ux700=(_verifone_ux700); end + # An object containing device type specific settings for Verifone V660p readers. + sig { returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneV660p)) } + def verifone_v660p; end + sig { + params(_verifone_v660p: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneV660p)).returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneV660p)) + } + def verifone_v660p=(_verifone_v660p); end # Configurations for connecting to a WiFi network. sig { returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Wifi))) } def wifi; end @@ -139048,7 +141289,7 @@ module Stripe } def wifi=(_wifi); end sig { - params(bbpos_wisepad3: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::BbposWisepad3), bbpos_wisepos_e: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::BbposWiseposE), cellular: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Cellular)), expand: T.nilable(T::Array[String]), name: T.nilable(String), offline: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Offline)), reboot_window: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::RebootWindow), stripe_s700: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::StripeS700), stripe_s710: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::StripeS710), tipping: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Tipping)), verifone_p400: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneP400), wifi: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Wifi))).void + params(bbpos_wisepad3: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::BbposWisepad3), bbpos_wisepos_e: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::BbposWiseposE), cellular: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Cellular)), expand: T.nilable(T::Array[String]), name: T.nilable(String), offline: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Offline)), reboot_window: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::RebootWindow), stripe_s700: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::StripeS700), stripe_s710: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::StripeS710), tipping: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Tipping)), verifone_m425: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneM425), verifone_p400: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneP400), verifone_p630: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneP630), verifone_ux700: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneUx700), verifone_v660p: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneV660p), wifi: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Wifi))).void } def initialize( bbpos_wisepad3: nil, @@ -139061,7 +141302,11 @@ module Stripe stripe_s700: nil, stripe_s710: nil, tipping: nil, + verifone_m425: nil, verifone_p400: nil, + verifone_p630: nil, + verifone_ux700: nil, + verifone_v660p: nil, wifi: nil ); end end @@ -140502,6 +142747,11 @@ end module Stripe module TestHelpers class TestClockCreateParams < ::Stripe::RequestParams + # Existing customer this test clock will be attached to. Once attached, customers can't be removed from a test clock. + 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 @@ -140518,9 +142768,9 @@ module Stripe sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } def name=(_name); end sig { - params(expand: T.nilable(T::Array[String]), frozen_time: Integer, name: T.nilable(String)).void + params(customer: T.nilable(String), expand: T.nilable(T::Array[String]), frozen_time: Integer, name: T.nilable(String)).void } - def initialize(expand: nil, frozen_time: nil, name: nil); end + def initialize(customer: nil, expand: nil, frozen_time: nil, name: nil); end end end end @@ -150511,6 +152761,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) @@ -150701,6 +152952,7 @@ module Stripe class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } @@ -150908,6 +153160,15 @@ module Stripe params(_billing_details: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::BillingDetails)).returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::BillingDetails)) } def billing_details=(_billing_details); end + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + sig { + returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Bizum)) + } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Bizum)).returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Bizum)) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. sig { returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Blik)) @@ -151043,7 +153304,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::KrCard)).returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::KrCard)) } def kr_card=(_kr_card); end - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Link)) } @@ -151221,6 +153482,15 @@ module Stripe params(_satispay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Satispay)).returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Satispay)) } def satispay=(_satispay); end + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + sig { + returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Scalapay)) + } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Scalapay)).returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Scalapay)) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. sig { returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::SepaDebit)) @@ -151308,7 +153578,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Zip)).void + params(acss_debit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::BillingDetails), bizum: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Bizum), blik: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Satispay), scalapay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Scalapay), sepa_debit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Zip)).void } def initialize( acss_debit: nil, @@ -151323,6 +153593,7 @@ module Stripe bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -151358,6 +153629,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -155948,7 +158220,7 @@ module Stripe module Billing class MeterEventAdjustmentCreateParams < ::Stripe::RequestParams class Cancel < ::Stripe::RequestParams - # Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. + # The identifier that was originally assigned to the meter event. You can only cancel events within 24 hours of Stripe receiving them. sig { returns(String) } def identifier; end sig { params(_identifier: String).returns(String) } @@ -155968,7 +158240,7 @@ module Stripe def event_name; end sig { params(_event_name: String).returns(String) } def event_name=(_event_name); end - # Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet. + # Specifies the type of cancellation. Currently supports canceling a single event. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } @@ -156043,6 +158315,113 @@ module Stripe end end # typed: true +module Stripe + module V2 + module Commerce + module ProductCatalog + class ImportListParams < ::Stripe::RequestParams + # Filter for objects created at the specified timestamp. + # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + sig { returns(T.nilable(String)) } + def created; end + sig { params(_created: T.nilable(String)).returns(T.nilable(String)) } + def created=(_created); end + # Filter for objects created after the specified timestamp. + # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + sig { returns(T.nilable(String)) } + def created_gt; end + sig { params(_created_gt: T.nilable(String)).returns(T.nilable(String)) } + def created_gt=(_created_gt); end + # Filter for objects created on or after the specified timestamp. + # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + sig { returns(T.nilable(String)) } + def created_gte; end + sig { params(_created_gte: T.nilable(String)).returns(T.nilable(String)) } + def created_gte=(_created_gte); end + # Filter for objects created before the specified timestamp. + # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + sig { returns(T.nilable(String)) } + def created_lt; end + sig { params(_created_lt: T.nilable(String)).returns(T.nilable(String)) } + def created_lt=(_created_lt); end + # Filter for objects created on or before the specified timestamp. + # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + sig { returns(T.nilable(String)) } + def created_lte; end + sig { params(_created_lte: T.nilable(String)).returns(T.nilable(String)) } + def created_lte=(_created_lte); end + # Filter by the type of feed data being imported. + sig { returns(T.nilable(String)) } + def feed_type; end + sig { params(_feed_type: T.nilable(String)).returns(T.nilable(String)) } + def feed_type=(_feed_type); end + # The maximum number of results per page. + sig { returns(T.nilable(Integer)) } + def limit; end + sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } + def limit=(_limit); end + # Filter by import status. + sig { returns(T.nilable(String)) } + def status; end + sig { params(_status: T.nilable(String)).returns(T.nilable(String)) } + def status=(_status); end + sig { + params(created: T.nilable(String), created_gt: T.nilable(String), created_gte: T.nilable(String), created_lt: T.nilable(String), created_lte: T.nilable(String), feed_type: T.nilable(String), limit: T.nilable(Integer), status: T.nilable(String)).void + } + def initialize( + created: nil, + created_gt: nil, + created_gte: nil, + created_lt: nil, + created_lte: nil, + feed_type: nil, + limit: nil, + status: nil + ); end + end + end + end + end +end +# typed: true +module Stripe + module V2 + module Commerce + module ProductCatalog + class ImportCreateParams < ::Stripe::RequestParams + # The type of catalog data to import. + sig { returns(String) } + def feed_type; end + sig { params(_feed_type: String).returns(String) } + def feed_type=(_feed_type); end + # Additional information about the import in a structured format. + sig { returns(T::Hash[String, String]) } + def metadata; end + sig { params(_metadata: T::Hash[String, String]).returns(T::Hash[String, String]) } + def metadata=(_metadata); end + # The strategy for handling existing catalog data during import. + sig { returns(String) } + def mode; end + sig { params(_mode: String).returns(String) } + def mode=(_mode); end + sig { params(feed_type: String, metadata: T::Hash[String, String], mode: String).void } + def initialize(feed_type: nil, metadata: nil, mode: nil); end + end + end + end + end +end +# typed: true +module Stripe + module V2 + module Commerce + module ProductCatalog + class ImportRetrieveParams < ::Stripe::RequestParams; end + end + end + end +end +# typed: true module Stripe module V2 module Core @@ -157582,7 +159961,7 @@ module Stripe } def initialize(capabilities: nil); end end - # The Customer Configuration allows the Account to be used in inbound payment flows. + # The Customer Configuration allows the Account to be used in inbound payment flows (i.e. customer-facing payment and billing flows). sig { returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Customer)) } @@ -158071,32 +160450,72 @@ module Stripe def initialize(files: nil, type: nil); end end class ProofOfRegistration < ::Stripe::RequestParams + class Signer < ::Stripe::RequestParams + # Person signing the document. + sig { returns(String) } + def person; end + sig { params(_person: String).returns(String) } + def person=(_person); end + sig { params(person: String).void } + def initialize(person: nil); end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. sig { returns(T::Array[String]) } def files; end sig { params(_files: T::Array[String]).returns(T::Array[String]) } def files=(_files); end + # Person that is signing the document. + sig { + returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer)) + } + def signer; end + sig { + params(_signer: T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer)).returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer)) + } + def signer=(_signer); end # The format of the document. Currently supports `files` only. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } def type=(_type); end - sig { params(files: T::Array[String], type: String).void } - def initialize(files: nil, type: nil); end + sig { + params(files: T::Array[String], signer: T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer), type: String).void + } + def initialize(files: nil, signer: nil, type: nil); end end class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams + class Signer < ::Stripe::RequestParams + # Person signing the document. + sig { returns(String) } + def person; end + sig { params(_person: String).returns(String) } + def person=(_person); end + sig { params(person: String).void } + def initialize(person: nil); end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. sig { returns(T::Array[String]) } def files; end sig { params(_files: T::Array[String]).returns(T::Array[String]) } def files=(_files); end + # Person that is signing the document. + sig { + returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer)) + } + def signer; end + sig { + params(_signer: T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer)).returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer)) + } + def signer=(_signer); end # The format of the document. Currently supports `files` only. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } def type=(_type); end - sig { params(files: T::Array[String], type: String).void } - def initialize(files: nil, type: nil); end + sig { + params(files: T::Array[String], signer: T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer), type: String).void + } + def initialize(files: nil, signer: nil, type: nil); end end # One or more documents that support the bank account ownership verification requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check. sig { @@ -159121,7 +161540,7 @@ module Stripe params(_documents: T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::Individual::Documents)).returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::Individual::Documents)) } def documents=(_documents); end - # The individual's email address. + # The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account. sig { returns(T.nilable(String)) } def email; end sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } @@ -159252,7 +161671,7 @@ module Stripe def country; end sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } def country=(_country); end - # The entity type. + # The entity type represented by the Account. Ensure this field is accurate before adding configurations that rely on identity information, as it determines which identity fields apply and how the Account is validated. sig { returns(T.nilable(String)) } def entity_type; end sig { params(_entity_type: T.nilable(String)).returns(T.nilable(String)) } @@ -159297,7 +161716,7 @@ module Stripe params(_configuration: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration)).returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration)) } def configuration=(_configuration); end - # The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + # The primary contact email address for the Account. sig { returns(T.nilable(String)) } def contact_email; end sig { params(_contact_email: T.nilable(String)).returns(T.nilable(String)) } @@ -159497,7 +161916,7 @@ module Stripe rendering: nil ); end end - # ID of a PaymentMethod attached to the customer account to use as the default for invoices and subscriptions. + # The ID of a `PaymentMethod` attached to this Account's `customer` configuration, used as the default payment method for invoices and subscriptions. sig { returns(T.nilable(String)) } def default_payment_method; end sig { params(_default_payment_method: T.nilable(String)).returns(T.nilable(String)) } @@ -161483,32 +163902,72 @@ module Stripe def initialize(files: nil, type: nil); end end class ProofOfRegistration < ::Stripe::RequestParams + class Signer < ::Stripe::RequestParams + # Person signing the document. + sig { returns(String) } + def person; end + sig { params(_person: String).returns(String) } + def person=(_person); end + sig { params(person: String).void } + def initialize(person: nil); end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. sig { returns(T::Array[String]) } def files; end sig { params(_files: T::Array[String]).returns(T::Array[String]) } def files=(_files); end + # Person that is signing the document. + sig { + returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer)) + } + def signer; end + sig { + params(_signer: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer)) + } + def signer=(_signer); end # The format of the document. Currently supports `files` only. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } def type=(_type); end - sig { params(files: T::Array[String], type: String).void } - def initialize(files: nil, type: nil); end + sig { + params(files: T::Array[String], signer: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer), type: String).void + } + def initialize(files: nil, signer: nil, type: nil); end end class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams + class Signer < ::Stripe::RequestParams + # Person signing the document. + sig { returns(String) } + def person; end + sig { params(_person: String).returns(String) } + def person=(_person); end + sig { params(person: String).void } + def initialize(person: nil); end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. sig { returns(T::Array[String]) } def files; end sig { params(_files: T::Array[String]).returns(T::Array[String]) } def files=(_files); end + # Person that is signing the document. + sig { + returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer)) + } + def signer; end + sig { + params(_signer: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer)) + } + def signer=(_signer); end # The format of the document. Currently supports `files` only. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } def type=(_type); end - sig { params(files: T::Array[String], type: String).void } - def initialize(files: nil, type: nil); end + sig { + params(files: T::Array[String], signer: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer), type: String).void + } + def initialize(files: nil, signer: nil, type: nil); end end # One or more documents that support the bank account ownership verification requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check. sig { @@ -161582,7 +164041,7 @@ module Stripe params(_proof_of_address: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfAddress)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfAddress)) } def proof_of_address=(_proof_of_address); end - # One or more documents showing the company’s proof of registration with the national business registry. + # One or more documents that demonstrate proof of ultimate beneficial ownership. sig { returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfRegistration)) } @@ -162533,7 +164992,7 @@ module Stripe params(_documents: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Individual::Documents)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Individual::Documents)) } def documents=(_documents); end - # The individual's email address. + # The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account. sig { returns(T.nilable(String)) } def email; end sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } @@ -162664,7 +165123,7 @@ module Stripe def country; end sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } def country=(_country); end - # The entity type. + # The entity type represented by the Account. Ensure this field is accurate before adding configurations that rely on identity information, as it determines which identity fields apply and how the Account is validated. sig { returns(T.nilable(String)) } def entity_type; end sig { params(_entity_type: T.nilable(String)).returns(T.nilable(String)) } @@ -162709,7 +165168,7 @@ module Stripe params(_configuration: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration)) } def configuration=(_configuration); end - # The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + # The primary contact email address for the Account. sig { returns(T.nilable(String)) } def contact_email; end sig { params(_contact_email: T.nilable(String)).returns(T.nilable(String)) } @@ -165649,32 +168108,72 @@ module Stripe def initialize(files: nil, type: nil); end end class ProofOfRegistration < ::Stripe::RequestParams + class Signer < ::Stripe::RequestParams + # Person signing the document. + sig { returns(String) } + def person; end + sig { params(_person: String).returns(String) } + def person=(_person); end + sig { params(person: String).void } + def initialize(person: nil); end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. sig { returns(T::Array[String]) } def files; end sig { params(_files: T::Array[String]).returns(T::Array[String]) } def files=(_files); end + # Person that is signing the document. + sig { + returns(T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer)) + } + def signer; end + sig { + params(_signer: T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer)).returns(T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer)) + } + def signer=(_signer); end # The format of the document. Currently supports `files` only. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } def type=(_type); end - sig { params(files: T::Array[String], type: String).void } - def initialize(files: nil, type: nil); end + sig { + params(files: T::Array[String], signer: T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer), type: String).void + } + def initialize(files: nil, signer: nil, type: nil); end end class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams + class Signer < ::Stripe::RequestParams + # Person signing the document. + sig { returns(String) } + def person; end + sig { params(_person: String).returns(String) } + def person=(_person); end + sig { params(person: String).void } + def initialize(person: nil); end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. sig { returns(T::Array[String]) } def files; end sig { params(_files: T::Array[String]).returns(T::Array[String]) } def files=(_files); end + # Person that is signing the document. + sig { + returns(T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer)) + } + def signer; end + sig { + params(_signer: T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer)).returns(T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer)) + } + def signer=(_signer); end # The format of the document. Currently supports `files` only. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } def type=(_type); end - sig { params(files: T::Array[String], type: String).void } - def initialize(files: nil, type: nil); end + sig { + params(files: T::Array[String], signer: T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer), type: String).void + } + def initialize(files: nil, signer: nil, type: nil); end end # One or more documents that support the bank account ownership verification requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check. sig { @@ -165748,7 +168247,7 @@ module Stripe params(_proof_of_address: T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfAddress)).returns(T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfAddress)) } def proof_of_address=(_proof_of_address); end - # One or more documents showing the company’s proof of registration with the national business registry. + # One or more documents that demonstrate proof of ultimate beneficial ownership. sig { returns(T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration)) } @@ -166699,7 +169198,7 @@ module Stripe params(_documents: T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::Individual::Documents)).returns(T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::Individual::Documents)) } def documents=(_documents); end - # The individual's email address. + # The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account. sig { returns(T.nilable(String)) } def email; end sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } @@ -166859,7 +169358,7 @@ module Stripe } end end - # The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + # The primary contact email address for the Account. sig { returns(T.nilable(String)) } def contact_email; end sig { params(_contact_email: T.nilable(String)).returns(T.nilable(String)) } @@ -167028,6 +169527,31 @@ module Stripe sig { params(aws_account_id: String, aws_region: String).void } def initialize(aws_account_id: nil, aws_region: nil); end end + class AzureEventGrid < ::Stripe::RequestParams + # The Azure region. + sig { returns(String) } + def azure_region; end + sig { params(_azure_region: String).returns(String) } + def azure_region=(_azure_region); end + # The name of the Azure resource group. + sig { returns(String) } + def azure_resource_group_name; end + sig { params(_azure_resource_group_name: String).returns(String) } + def azure_resource_group_name=(_azure_resource_group_name); end + # The Azure subscription ID. + sig { returns(String) } + def azure_subscription_id; end + sig { params(_azure_subscription_id: String).returns(String) } + def azure_subscription_id=(_azure_subscription_id); end + sig { + params(azure_region: String, azure_resource_group_name: String, azure_subscription_id: String).void + } + def initialize( + azure_region: nil, + azure_resource_group_name: nil, + azure_subscription_id: nil + ); end + end class WebhookEndpoint < ::Stripe::RequestParams # The URL of the webhook endpoint. sig { returns(String) } @@ -167046,6 +169570,13 @@ module Stripe params(_amazon_eventbridge: T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::AmazonEventbridge)).returns(T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::AmazonEventbridge)) } def amazon_eventbridge=(_amazon_eventbridge); end + # Azure Event Grid configuration. + sig { returns(T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::AzureEventGrid)) } + def azure_event_grid; end + sig { + params(_azure_event_grid: T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::AzureEventGrid)).returns(T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::AzureEventGrid)) + } + def azure_event_grid=(_azure_event_grid); end # An optional description of what the event destination is used for. sig { returns(T.nilable(String)) } def description; end @@ -167109,10 +169640,11 @@ module Stripe } def webhook_endpoint=(_webhook_endpoint); end sig { - params(amazon_eventbridge: T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::AmazonEventbridge), description: T.nilable(String), enabled_events: T::Array[String], event_payload: String, events_from: T.nilable(T::Array[String]), include: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, snapshot_api_version: T.nilable(String), type: String, webhook_endpoint: T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::WebhookEndpoint)).void + params(amazon_eventbridge: T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::AmazonEventbridge), azure_event_grid: T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::AzureEventGrid), description: T.nilable(String), enabled_events: T::Array[String], event_payload: String, events_from: T.nilable(T::Array[String]), include: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, snapshot_api_version: T.nilable(String), type: String, webhook_endpoint: T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::WebhookEndpoint)).void } def initialize( amazon_eventbridge: nil, + azure_event_grid: nil, description: nil, enabled_events: nil, event_payload: nil, diff --git a/rbi/stripe/params/account_create_params.rbi b/rbi/stripe/params/account_create_params.rbi index e08ce224d..cf619cedc 100644 --- a/rbi/stripe/params/account_create_params.rbi +++ b/rbi/stripe/params/account_create_params.rbi @@ -318,6 +318,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class BizumPayments < ::Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end class BlikPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } @@ -669,6 +678,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class ScalapayPayments < ::Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end class SepaBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } @@ -874,6 +892,13 @@ module Stripe params(_billie_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BilliePayments)).returns(T.nilable(::Stripe::AccountCreateParams::Capabilities::BilliePayments)) } def billie_payments=(_billie_payments); end + # The bizum_payments capability. + sig { returns(T.nilable(::Stripe::AccountCreateParams::Capabilities::BizumPayments)) } + def bizum_payments; end + sig { + params(_bizum_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BizumPayments)).returns(T.nilable(::Stripe::AccountCreateParams::Capabilities::BizumPayments)) + } + def bizum_payments=(_bizum_payments); end # The blik_payments capability. sig { returns(T.nilable(::Stripe::AccountCreateParams::Capabilities::BlikPayments)) } def blik_payments; end @@ -1159,6 +1184,13 @@ module Stripe params(_satispay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SatispayPayments)).returns(T.nilable(::Stripe::AccountCreateParams::Capabilities::SatispayPayments)) } def satispay_payments=(_satispay_payments); end + # The scalapay_payments capability. + sig { returns(T.nilable(::Stripe::AccountCreateParams::Capabilities::ScalapayPayments)) } + def scalapay_payments; end + sig { + params(_scalapay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::ScalapayPayments)).returns(T.nilable(::Stripe::AccountCreateParams::Capabilities::ScalapayPayments)) + } + def scalapay_payments=(_scalapay_payments); end # The sepa_bank_transfer_payments capability. sig { returns(T.nilable(::Stripe::AccountCreateParams::Capabilities::SepaBankTransferPayments)) @@ -1266,7 +1298,7 @@ module Stripe } def zip_payments=(_zip_payments); end sig { - params(acss_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AcssDebitPayments), affirm_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AffirmPayments), afterpay_clearpay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AfterpayClearpayPayments), alma_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AlmaPayments), amazon_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AmazonPayPayments), app_distribution: T.nilable(::Stripe::AccountCreateParams::Capabilities::AppDistribution), au_becs_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AuBecsDebitPayments), bacs_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BacsDebitPayments), bancontact_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BancontactPayments), bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BankTransferPayments), billie_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BilliePayments), blik_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BlikPayments), boleto_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BoletoPayments), card_issuing: T.nilable(::Stripe::AccountCreateParams::Capabilities::CardIssuing), card_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::CardPayments), cartes_bancaires_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::CartesBancairesPayments), cashapp_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::CashappPayments), crypto_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::CryptoPayments), eps_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::EpsPayments), fpx_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::FpxPayments), gb_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::GbBankTransferPayments), giropay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::GiropayPayments), grabpay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::GrabpayPayments), ideal_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::IdealPayments), india_international_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::IndiaInternationalPayments), jcb_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::JcbPayments), jp_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::JpBankTransferPayments), kakao_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::KakaoPayPayments), klarna_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::KlarnaPayments), konbini_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::KonbiniPayments), kr_card_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::KrCardPayments), legacy_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::LegacyPayments), link_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::LinkPayments), mb_way_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::MbWayPayments), mobilepay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::MobilepayPayments), multibanco_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::MultibancoPayments), mx_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::MxBankTransferPayments), naver_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::NaverPayPayments), nz_bank_account_becs_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::NzBankAccountBecsDebitPayments), oxxo_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::OxxoPayments), p24_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::P24Payments), pay_by_bank_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PayByBankPayments), payco_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PaycoPayments), paynow_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PaynowPayments), payto_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PaytoPayments), pix_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PixPayments), promptpay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PromptpayPayments), revolut_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::RevolutPayPayments), samsung_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SamsungPayPayments), satispay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SatispayPayments), sepa_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SepaBankTransferPayments), sepa_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SepaDebitPayments), sofort_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SofortPayments), sunbit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SunbitPayments), swish_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SwishPayments), tax_reporting_us_1099_k: T.nilable(::Stripe::AccountCreateParams::Capabilities::TaxReportingUs1099K), tax_reporting_us_1099_misc: T.nilable(::Stripe::AccountCreateParams::Capabilities::TaxReportingUs1099Misc), transfers: T.nilable(::Stripe::AccountCreateParams::Capabilities::Transfers), treasury: T.nilable(::Stripe::AccountCreateParams::Capabilities::Treasury), twint_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::TwintPayments), upi_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::UpiPayments), us_bank_account_ach_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::UsBankAccountAchPayments), us_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::UsBankTransferPayments), zip_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::ZipPayments)).void + params(acss_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AcssDebitPayments), affirm_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AffirmPayments), afterpay_clearpay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AfterpayClearpayPayments), alma_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AlmaPayments), amazon_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AmazonPayPayments), app_distribution: T.nilable(::Stripe::AccountCreateParams::Capabilities::AppDistribution), au_becs_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::AuBecsDebitPayments), bacs_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BacsDebitPayments), bancontact_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BancontactPayments), bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BankTransferPayments), billie_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BilliePayments), bizum_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BizumPayments), blik_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BlikPayments), boleto_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::BoletoPayments), card_issuing: T.nilable(::Stripe::AccountCreateParams::Capabilities::CardIssuing), card_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::CardPayments), cartes_bancaires_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::CartesBancairesPayments), cashapp_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::CashappPayments), crypto_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::CryptoPayments), eps_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::EpsPayments), fpx_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::FpxPayments), gb_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::GbBankTransferPayments), giropay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::GiropayPayments), grabpay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::GrabpayPayments), ideal_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::IdealPayments), india_international_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::IndiaInternationalPayments), jcb_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::JcbPayments), jp_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::JpBankTransferPayments), kakao_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::KakaoPayPayments), klarna_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::KlarnaPayments), konbini_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::KonbiniPayments), kr_card_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::KrCardPayments), legacy_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::LegacyPayments), link_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::LinkPayments), mb_way_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::MbWayPayments), mobilepay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::MobilepayPayments), multibanco_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::MultibancoPayments), mx_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::MxBankTransferPayments), naver_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::NaverPayPayments), nz_bank_account_becs_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::NzBankAccountBecsDebitPayments), oxxo_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::OxxoPayments), p24_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::P24Payments), pay_by_bank_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PayByBankPayments), payco_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PaycoPayments), paynow_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PaynowPayments), payto_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PaytoPayments), pix_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PixPayments), promptpay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::PromptpayPayments), revolut_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::RevolutPayPayments), samsung_pay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SamsungPayPayments), satispay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SatispayPayments), scalapay_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::ScalapayPayments), sepa_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SepaBankTransferPayments), sepa_debit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SepaDebitPayments), sofort_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SofortPayments), sunbit_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SunbitPayments), swish_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::SwishPayments), tax_reporting_us_1099_k: T.nilable(::Stripe::AccountCreateParams::Capabilities::TaxReportingUs1099K), tax_reporting_us_1099_misc: T.nilable(::Stripe::AccountCreateParams::Capabilities::TaxReportingUs1099Misc), transfers: T.nilable(::Stripe::AccountCreateParams::Capabilities::Transfers), treasury: T.nilable(::Stripe::AccountCreateParams::Capabilities::Treasury), twint_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::TwintPayments), upi_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::UpiPayments), us_bank_account_ach_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::UsBankAccountAchPayments), us_bank_transfer_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::UsBankTransferPayments), zip_payments: T.nilable(::Stripe::AccountCreateParams::Capabilities::ZipPayments)).void } def initialize( acss_debit_payments: nil, @@ -1280,6 +1312,7 @@ module Stripe bancontact_payments: nil, bank_transfer_payments: nil, billie_payments: nil, + bizum_payments: nil, blik_payments: nil, boleto_payments: nil, card_issuing: nil, @@ -1319,6 +1352,7 @@ module Stripe revolut_pay_payments: nil, samsung_pay_payments: nil, satispay_payments: nil, + scalapay_payments: nil, sepa_bank_transfer_payments: nil, sepa_debit_payments: nil, sofort_payments: nil, diff --git a/rbi/stripe/params/account_update_params.rbi b/rbi/stripe/params/account_update_params.rbi index a5b2578b1..6c9d69234 100644 --- a/rbi/stripe/params/account_update_params.rbi +++ b/rbi/stripe/params/account_update_params.rbi @@ -318,6 +318,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class BizumPayments < ::Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end class BlikPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } @@ -669,6 +678,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class ScalapayPayments < ::Stripe::RequestParams + # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end class SepaBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } @@ -874,6 +892,13 @@ module Stripe params(_billie_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BilliePayments)).returns(T.nilable(::Stripe::AccountUpdateParams::Capabilities::BilliePayments)) } def billie_payments=(_billie_payments); end + # The bizum_payments capability. + sig { returns(T.nilable(::Stripe::AccountUpdateParams::Capabilities::BizumPayments)) } + def bizum_payments; end + sig { + params(_bizum_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BizumPayments)).returns(T.nilable(::Stripe::AccountUpdateParams::Capabilities::BizumPayments)) + } + def bizum_payments=(_bizum_payments); end # The blik_payments capability. sig { returns(T.nilable(::Stripe::AccountUpdateParams::Capabilities::BlikPayments)) } def blik_payments; end @@ -1159,6 +1184,13 @@ module Stripe params(_satispay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SatispayPayments)).returns(T.nilable(::Stripe::AccountUpdateParams::Capabilities::SatispayPayments)) } def satispay_payments=(_satispay_payments); end + # The scalapay_payments capability. + sig { returns(T.nilable(::Stripe::AccountUpdateParams::Capabilities::ScalapayPayments)) } + def scalapay_payments; end + sig { + params(_scalapay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::ScalapayPayments)).returns(T.nilable(::Stripe::AccountUpdateParams::Capabilities::ScalapayPayments)) + } + def scalapay_payments=(_scalapay_payments); end # The sepa_bank_transfer_payments capability. sig { returns(T.nilable(::Stripe::AccountUpdateParams::Capabilities::SepaBankTransferPayments)) @@ -1266,7 +1298,7 @@ module Stripe } def zip_payments=(_zip_payments); end sig { - params(acss_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AcssDebitPayments), affirm_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AffirmPayments), afterpay_clearpay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AfterpayClearpayPayments), alma_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AlmaPayments), amazon_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AmazonPayPayments), app_distribution: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AppDistribution), au_becs_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AuBecsDebitPayments), bacs_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BacsDebitPayments), bancontact_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BancontactPayments), bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BankTransferPayments), billie_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BilliePayments), blik_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BlikPayments), boleto_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BoletoPayments), card_issuing: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CardIssuing), card_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CardPayments), cartes_bancaires_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CartesBancairesPayments), cashapp_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CashappPayments), crypto_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CryptoPayments), eps_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::EpsPayments), fpx_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::FpxPayments), gb_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::GbBankTransferPayments), giropay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::GiropayPayments), grabpay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::GrabpayPayments), ideal_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::IdealPayments), india_international_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::IndiaInternationalPayments), jcb_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::JcbPayments), jp_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::JpBankTransferPayments), kakao_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::KakaoPayPayments), klarna_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::KlarnaPayments), konbini_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::KonbiniPayments), kr_card_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::KrCardPayments), legacy_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::LegacyPayments), link_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::LinkPayments), mb_way_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::MbWayPayments), mobilepay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::MobilepayPayments), multibanco_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::MultibancoPayments), mx_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::MxBankTransferPayments), naver_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::NaverPayPayments), nz_bank_account_becs_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::NzBankAccountBecsDebitPayments), oxxo_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::OxxoPayments), p24_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::P24Payments), pay_by_bank_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PayByBankPayments), payco_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PaycoPayments), paynow_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PaynowPayments), payto_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PaytoPayments), pix_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PixPayments), promptpay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PromptpayPayments), revolut_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::RevolutPayPayments), samsung_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SamsungPayPayments), satispay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SatispayPayments), sepa_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SepaBankTransferPayments), sepa_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SepaDebitPayments), sofort_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SofortPayments), sunbit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SunbitPayments), swish_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SwishPayments), tax_reporting_us_1099_k: T.nilable(::Stripe::AccountUpdateParams::Capabilities::TaxReportingUs1099K), tax_reporting_us_1099_misc: T.nilable(::Stripe::AccountUpdateParams::Capabilities::TaxReportingUs1099Misc), transfers: T.nilable(::Stripe::AccountUpdateParams::Capabilities::Transfers), treasury: T.nilable(::Stripe::AccountUpdateParams::Capabilities::Treasury), twint_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::TwintPayments), upi_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::UpiPayments), us_bank_account_ach_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::UsBankAccountAchPayments), us_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::UsBankTransferPayments), zip_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::ZipPayments)).void + params(acss_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AcssDebitPayments), affirm_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AffirmPayments), afterpay_clearpay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AfterpayClearpayPayments), alma_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AlmaPayments), amazon_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AmazonPayPayments), app_distribution: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AppDistribution), au_becs_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::AuBecsDebitPayments), bacs_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BacsDebitPayments), bancontact_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BancontactPayments), bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BankTransferPayments), billie_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BilliePayments), bizum_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BizumPayments), blik_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BlikPayments), boleto_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::BoletoPayments), card_issuing: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CardIssuing), card_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CardPayments), cartes_bancaires_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CartesBancairesPayments), cashapp_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CashappPayments), crypto_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::CryptoPayments), eps_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::EpsPayments), fpx_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::FpxPayments), gb_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::GbBankTransferPayments), giropay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::GiropayPayments), grabpay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::GrabpayPayments), ideal_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::IdealPayments), india_international_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::IndiaInternationalPayments), jcb_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::JcbPayments), jp_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::JpBankTransferPayments), kakao_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::KakaoPayPayments), klarna_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::KlarnaPayments), konbini_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::KonbiniPayments), kr_card_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::KrCardPayments), legacy_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::LegacyPayments), link_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::LinkPayments), mb_way_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::MbWayPayments), mobilepay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::MobilepayPayments), multibanco_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::MultibancoPayments), mx_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::MxBankTransferPayments), naver_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::NaverPayPayments), nz_bank_account_becs_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::NzBankAccountBecsDebitPayments), oxxo_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::OxxoPayments), p24_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::P24Payments), pay_by_bank_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PayByBankPayments), payco_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PaycoPayments), paynow_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PaynowPayments), payto_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PaytoPayments), pix_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PixPayments), promptpay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::PromptpayPayments), revolut_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::RevolutPayPayments), samsung_pay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SamsungPayPayments), satispay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SatispayPayments), scalapay_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::ScalapayPayments), sepa_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SepaBankTransferPayments), sepa_debit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SepaDebitPayments), sofort_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SofortPayments), sunbit_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SunbitPayments), swish_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::SwishPayments), tax_reporting_us_1099_k: T.nilable(::Stripe::AccountUpdateParams::Capabilities::TaxReportingUs1099K), tax_reporting_us_1099_misc: T.nilable(::Stripe::AccountUpdateParams::Capabilities::TaxReportingUs1099Misc), transfers: T.nilable(::Stripe::AccountUpdateParams::Capabilities::Transfers), treasury: T.nilable(::Stripe::AccountUpdateParams::Capabilities::Treasury), twint_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::TwintPayments), upi_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::UpiPayments), us_bank_account_ach_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::UsBankAccountAchPayments), us_bank_transfer_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::UsBankTransferPayments), zip_payments: T.nilable(::Stripe::AccountUpdateParams::Capabilities::ZipPayments)).void } def initialize( acss_debit_payments: nil, @@ -1280,6 +1312,7 @@ module Stripe bancontact_payments: nil, bank_transfer_payments: nil, billie_payments: nil, + bizum_payments: nil, blik_payments: nil, boleto_payments: nil, card_issuing: nil, @@ -1319,6 +1352,7 @@ module Stripe revolut_pay_payments: nil, samsung_pay_payments: nil, satispay_payments: nil, + scalapay_payments: nil, sepa_bank_transfer_payments: nil, sepa_debit_payments: nil, sofort_payments: nil, diff --git a/rbi/stripe/params/balance_settings_update_params.rbi b/rbi/stripe/params/balance_settings_update_params.rbi index b6e86ee0b..060ac263f 100644 --- a/rbi/stripe/params/balance_settings_update_params.rbi +++ b/rbi/stripe/params/balance_settings_update_params.rbi @@ -6,6 +6,27 @@ module Stripe class BalanceSettingsUpdateParams < ::Stripe::RequestParams class Payments < ::Stripe::RequestParams class Payouts < ::Stripe::RequestParams + class AutomaticTransferRulesByCurrency < ::Stripe::RequestParams + # The ID of the FinancialAccount that funds will be transferred to during automatic transfers. + sig { returns(String) } + def payout_method; end + sig { params(_payout_method: String).returns(String) } + def payout_method=(_payout_method); end + # The maximum amount in minor units to transfer to the FinancialAccount. Required and only applicable when `type` is `transfer_up_to_amount`. + sig { returns(T.nilable(Integer)) } + def transfer_up_to_amount; end + sig { params(_transfer_up_to_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } + def transfer_up_to_amount=(_transfer_up_to_amount); end + # The type of automatic transfer rule. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(payout_method: String, transfer_up_to_amount: T.nilable(Integer), type: String).void + } + def initialize(payout_method: nil, transfer_up_to_amount: nil, type: nil); end + end class Schedule < ::Stripe::RequestParams # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`. sig { returns(T.nilable(String)) } @@ -31,6 +52,15 @@ module Stripe } def initialize(interval: nil, monthly_payout_days: nil, weekly_payout_days: nil); end end + # Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount. + sig { + returns(T.nilable(T.any(String, T::Hash[String, T.any(String, T::Array[::Stripe::BalanceSettingsUpdateParams::Payments::Payouts::AutomaticTransferRulesByCurrency])]))) + } + def automatic_transfer_rules_by_currency; end + sig { + params(_automatic_transfer_rules_by_currency: T.nilable(T.any(String, T::Hash[String, T.any(String, T::Array[::Stripe::BalanceSettingsUpdateParams::Payments::Payouts::AutomaticTransferRulesByCurrency])]))).returns(T.nilable(T.any(String, T::Hash[String, T.any(String, T::Array[::Stripe::BalanceSettingsUpdateParams::Payments::Payouts::AutomaticTransferRulesByCurrency])]))) + } + def automatic_transfer_rules_by_currency=(_automatic_transfer_rules_by_currency); end # The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](/payouts/minimum-balances-for-automatic-payouts). sig { returns(T.nilable(T.any(String, T::Hash[String, T.any(String, Integer)]))) } def minimum_balance_by_currency; end @@ -53,15 +83,37 @@ module Stripe sig { params(_statement_descriptor: T.nilable(String)).returns(T.nilable(String)) } def statement_descriptor=(_statement_descriptor); end sig { - params(minimum_balance_by_currency: T.nilable(T.any(String, T::Hash[String, T.any(String, Integer)])), schedule: T.nilable(::Stripe::BalanceSettingsUpdateParams::Payments::Payouts::Schedule), statement_descriptor: T.nilable(String)).void + params(automatic_transfer_rules_by_currency: T.nilable(T.any(String, T::Hash[String, T.any(String, T::Array[::Stripe::BalanceSettingsUpdateParams::Payments::Payouts::AutomaticTransferRulesByCurrency])])), minimum_balance_by_currency: T.nilable(T.any(String, T::Hash[String, T.any(String, Integer)])), schedule: T.nilable(::Stripe::BalanceSettingsUpdateParams::Payments::Payouts::Schedule), statement_descriptor: T.nilable(String)).void } def initialize( + automatic_transfer_rules_by_currency: nil, minimum_balance_by_currency: nil, schedule: nil, statement_descriptor: nil ); end end class SettlementTiming < ::Stripe::RequestParams + class StartOfDay < ::Stripe::RequestParams + # Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](/connect/customized-start-of-day#available-timezones-and-cutoffs). + sig { returns(T.nilable(Integer)) } + def hour; end + sig { params(_hour: T.nilable(Integer)).returns(T.nilable(Integer)) } + def hour=(_hour); end + # Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30. + sig { returns(T.nilable(Integer)) } + def minutes; end + sig { params(_minutes: T.nilable(Integer)).returns(T.nilable(Integer)) } + def minutes=(_minutes); end + # Timezone for the customized start of day. Must be a [supported customized start of day timezone](/connect/customized-start-of-day#available-timezones-and-cutoffs). + sig { returns(T.nilable(String)) } + def timezone; end + sig { params(_timezone: T.nilable(String)).returns(T.nilable(String)) } + def timezone=(_timezone); end + sig { + params(hour: T.nilable(Integer), minutes: T.nilable(Integer), timezone: T.nilable(String)).void + } + def initialize(hour: nil, minutes: nil, timezone: nil); end + end # Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available. The maximum value is 31. Passing an empty string to `delay_days_override` will return `delay_days` to the default, which is the lowest available value for the account. [Learn more about controlling delay days](/connect/manage-payout-schedule). sig { returns(T.nilable(T.any(String, Integer))) } def delay_days_override; end @@ -69,8 +121,19 @@ module Stripe params(_delay_days_override: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def delay_days_override=(_delay_days_override); end - sig { params(delay_days_override: T.nilable(T.any(String, Integer))).void } - def initialize(delay_days_override: nil); end + # Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](/connect/customized-start-of-day) documentation. + sig { + returns(T.nilable(T.any(String, ::Stripe::BalanceSettingsUpdateParams::Payments::SettlementTiming::StartOfDay))) + } + def start_of_day; end + sig { + params(_start_of_day: T.nilable(T.any(String, ::Stripe::BalanceSettingsUpdateParams::Payments::SettlementTiming::StartOfDay))).returns(T.nilable(T.any(String, ::Stripe::BalanceSettingsUpdateParams::Payments::SettlementTiming::StartOfDay))) + } + def start_of_day=(_start_of_day); end + sig { + params(delay_days_override: T.nilable(T.any(String, Integer)), start_of_day: T.nilable(T.any(String, ::Stripe::BalanceSettingsUpdateParams::Payments::SettlementTiming::StartOfDay))).void + } + def initialize(delay_days_override: nil, start_of_day: nil); end end # A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances). sig { returns(T.nilable(T::Boolean)) } diff --git a/rbi/stripe/params/charge_create_params.rbi b/rbi/stripe/params/charge_create_params.rbi index d7a972aeb..c443d81e5 100644 --- a/rbi/stripe/params/charge_create_params.rbi +++ b/rbi/stripe/params/charge_create_params.rbi @@ -109,13 +109,20 @@ module Stripe def amount; end sig { params(_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount=(_amount); end + # An arbitrary string attached to the transfer. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end # ID of an existing, connected Stripe account. sig { returns(String) } def destination; end sig { params(_destination: String).returns(String) } def destination=(_destination); end - sig { params(amount: T.nilable(Integer), destination: String).void } - def initialize(amount: nil, destination: nil); end + sig { + params(amount: T.nilable(Integer), description: T.nilable(String), destination: String).void + } + def initialize(amount: nil, description: nil, destination: nil); end end # Amount intended to be collected by this payment. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). sig { returns(T.nilable(Integer)) } diff --git a/rbi/stripe/params/checkout/session_create_params.rbi b/rbi/stripe/params/checkout/session_create_params.rbi index 61ad4152d..5fb8df0f4 100644 --- a/rbi/stripe/params/checkout/session_create_params.rbi +++ b/rbi/stripe/params/checkout/session_create_params.rbi @@ -198,7 +198,7 @@ module Stripe def payment_method_reuse_agreement=(_payment_method_reuse_agreement); end # If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout # Session will determine whether to display an option to opt into promotional communication - # from the merchant depending on the customer's locale. Only available to US merchants. + # from the merchant depending on the customer's locale. Only available to US merchants and US customers. sig { returns(T.nilable(String)) } def promotions; end sig { params(_promotions: T.nilable(String)).returns(T.nilable(String)) } @@ -1449,7 +1449,7 @@ module Stripe def initialize(enabled: nil); end end class Restrictions < ::Stripe::RequestParams - # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. + # The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. sig { returns(T.nilable(T::Array[String])) } def brands_blocked; end sig { @@ -2321,6 +2321,15 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end + class Scalapay < ::Stripe::RequestParams + # Controls when the funds will be captured from the customer's account. + sig { returns(T.nilable(String)) } + def capture_method; end + sig { params(_capture_method: T.nilable(String)).returns(T.nilable(String)) } + def capture_method=(_capture_method); end + sig { params(capture_method: T.nilable(String)).void } + def initialize(capture_method: nil); end + end class SepaDebit < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. @@ -2536,7 +2545,7 @@ module Stripe } def initialize(app_id: nil, client: nil, setup_future_usage: nil); end end - # contains details about the ACSS Debit payment method options. You can't set this parameter if `ui_mode` is `custom`. + # contains details about the ACSS Debit payment method options. You can't set this parameter if `ui_mode` is `elements`. sig { returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::AcssDebit)) } @@ -2761,7 +2770,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::KrCard)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::KrCard)) } def kr_card=(_kr_card); end - # contains details about the Link payment method options. + # contains details about the Link payment method options (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Link)) } @@ -2896,6 +2905,15 @@ module Stripe params(_satispay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Satispay)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Satispay)) } def satispay=(_satispay); end + # contains details about the Scalapay payment method options. + sig { + returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Scalapay)) + } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Scalapay)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Scalapay)) + } + def scalapay=(_scalapay); end # contains details about the Sepa Debit payment method options. sig { returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::SepaDebit)) @@ -2960,7 +2978,7 @@ module Stripe } def wechat_pay=(_wechat_pay); end sig { - params(acss_debit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Alipay), alma: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Bancontact), billie: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Billie), boleto: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Boleto), card: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Card), cashapp: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Cashapp), crypto: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Crypto), customer_balance: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::CustomerBalance), demo_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::DemoPay), eps: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Eps), fpx: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Giropay), grabpay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Grabpay), ideal: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Ideal), kakao_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::KrCard), link: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Link), mobilepay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::P24), pay_by_bank: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::PayByBank), payco: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Payco), paynow: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Pix), revolut_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::SamsungPay), satispay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Satispay), sepa_debit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::SepaDebit), sofort: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Sofort), swish: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Swish), twint: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Twint), upi: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Upi), us_bank_account: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::WechatPay)).void + params(acss_debit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Alipay), alma: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Bancontact), billie: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Billie), boleto: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Boleto), card: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Card), cashapp: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Cashapp), crypto: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Crypto), customer_balance: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::CustomerBalance), demo_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::DemoPay), eps: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Eps), fpx: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Giropay), grabpay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Grabpay), ideal: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Ideal), kakao_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::KrCard), link: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Link), mobilepay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::P24), pay_by_bank: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::PayByBank), payco: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Payco), paynow: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Pix), revolut_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::SamsungPay), satispay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Satispay), scalapay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Scalapay), sepa_debit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::SepaDebit), sofort: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Sofort), swish: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Swish), twint: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Twint), upi: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Upi), us_bank_account: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::WechatPay)).void } def initialize( acss_debit: nil, @@ -3003,6 +3021,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, swish: nil, @@ -3382,7 +3401,7 @@ module Stripe def application_fee_percent; end sig { params(_application_fee_percent: T.nilable(Float)).returns(T.nilable(Float)) } def application_fee_percent=(_application_fee_percent); end - # A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `custom`. + # A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `elements`. sig { returns(T.nilable(Integer)) } def billing_cycle_anchor; end sig { params(_billing_cycle_anchor: T.nilable(Integer)).returns(T.nilable(Integer)) } @@ -3519,7 +3538,7 @@ module Stripe sig { params(display: T.nilable(String)).void } def initialize(display: nil); end end - # contains details about the Link wallet options. + # contains details about the Link wallet options (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::Checkout::SessionCreateParams::WalletOptions::Link)) } def link; end sig { @@ -3538,7 +3557,7 @@ module Stripe params(_adaptive_pricing: T.nilable(::Stripe::Checkout::SessionCreateParams::AdaptivePricing)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::AdaptivePricing)) } def adaptive_pricing=(_adaptive_pricing); end - # Configure actions after a Checkout Session has expired. You can't set this parameter if `ui_mode` is `custom`. + # Configure actions after a Checkout Session has expired. You can't set this parameter if `ui_mode` is `elements`. sig { returns(T.nilable(::Stripe::Checkout::SessionCreateParams::AfterExpiration)) } def after_expiration; end sig { @@ -3562,14 +3581,14 @@ module Stripe def billing_address_collection; end sig { params(_billing_address_collection: T.nilable(String)).returns(T.nilable(String)) } def billing_address_collection=(_billing_address_collection); end - # The branding settings for the Checkout Session. This parameter is not allowed if ui_mode is `custom`. + # The branding settings for the Checkout Session. This parameter is not allowed if ui_mode is `elements`. sig { returns(T.nilable(::Stripe::Checkout::SessionCreateParams::BrandingSettings)) } def branding_settings; end sig { params(_branding_settings: T.nilable(::Stripe::Checkout::SessionCreateParams::BrandingSettings)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::BrandingSettings)) } def branding_settings=(_branding_settings); end - # If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded` or `custom`. + # If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded_page` or `elements`. sig { returns(T.nilable(String)) } def cancel_url; end sig { params(_cancel_url: T.nilable(String)).returns(T.nilable(String)) } @@ -3755,7 +3774,7 @@ module Stripe params(_optional_items: T.nilable(T::Array[::Stripe::Checkout::SessionCreateParams::OptionalItem])).returns(T.nilable(T::Array[::Stripe::Checkout::SessionCreateParams::OptionalItem])) } def optional_items=(_optional_items); end - # Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter if `ui_mode` is `custom`. + # Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter if `ui_mode` is `elements`. sig { returns(T.nilable(String)) } def origin_context; end sig { params(_origin_context: T.nilable(String)).returns(T.nilable(String)) } @@ -3832,13 +3851,13 @@ module Stripe params(_phone_number_collection: T.nilable(::Stripe::Checkout::SessionCreateParams::PhoneNumberCollection)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PhoneNumberCollection)) } def phone_number_collection=(_phone_number_collection); end - # This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. + # This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. sig { returns(T.nilable(String)) } def redirect_on_completion; end sig { params(_redirect_on_completion: T.nilable(String)).returns(T.nilable(String)) } def redirect_on_completion=(_redirect_on_completion); end # The URL to redirect your customer back to after they authenticate or cancel their payment on the - # payment method's app or site. This parameter is required if `ui_mode` is `embedded` or `custom` + # payment method's app or site. This parameter is required if `ui_mode` is `embedded_page` or `elements` # and redirect-based payment methods are enabled on the session. sig { returns(T.nilable(String)) } def return_url; end @@ -3876,7 +3895,7 @@ module Stripe # to customize relevant text on the page, such as the submit button. # `submit_type` can only be specified on Checkout Sessions in # `payment` or `subscription` mode. If blank or `auto`, `pay` is used. - # You can't set this parameter if `ui_mode` is `custom`. + # You can't set this parameter if `ui_mode` is `elements`. sig { returns(T.nilable(String)) } def submit_type; end sig { params(_submit_type: T.nilable(String)).returns(T.nilable(String)) } @@ -3890,7 +3909,7 @@ module Stripe def subscription_data=(_subscription_data); end # The URL to which Stripe should send customers when payment or setup # is complete. - # This parameter is not allowed if ui_mode is `embedded` or `custom`. If you'd like to use + # This parameter is not allowed if ui_mode is `embedded_page` or `elements`. If you'd like to use # information from the successful Checkout Session on your page, read the # guide on [customizing your success page](https://docs.stripe.com/payments/checkout/custom-success-page). sig { returns(T.nilable(String)) } @@ -3904,7 +3923,7 @@ module Stripe params(_tax_id_collection: T.nilable(::Stripe::Checkout::SessionCreateParams::TaxIdCollection)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::TaxIdCollection)) } def tax_id_collection=(_tax_id_collection); end - # The UI mode of the Session. Defaults to `hosted`. + # The UI mode of the Session. Defaults to `hosted_page`. sig { returns(T.nilable(String)) } def ui_mode; end sig { params(_ui_mode: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/confirmation_token_create_params.rbi b/rbi/stripe/params/confirmation_token_create_params.rbi index bfc7a2c80..6090c8fd9 100644 --- a/rbi/stripe/params/confirmation_token_create_params.rbi +++ b/rbi/stripe/params/confirmation_token_create_params.rbi @@ -139,6 +139,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) @@ -329,6 +330,7 @@ module Stripe class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } @@ -526,6 +528,13 @@ module Stripe params(_billing_details: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::BillingDetails)).returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::BillingDetails)) } def billing_details=(_billing_details); end + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + sig { returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Bizum)).returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Bizum)) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. sig { returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Blik)) } def blik; end @@ -645,7 +654,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::KrCard)).returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::KrCard)) } def kr_card=(_kr_card); end - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Link)) } def link; end sig { @@ -805,6 +814,15 @@ module Stripe params(_satispay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Satispay)).returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Satispay)) } def satispay=(_satispay); end + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + sig { + returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Scalapay)) + } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Scalapay)).returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Scalapay)) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. sig { returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::SepaDebit)) @@ -880,7 +898,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Zip)).void + params(acss_debit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::BillingDetails), bizum: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Bizum), blik: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Satispay), scalapay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Scalapay), sepa_debit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Zip)).void } def initialize( acss_debit: nil, @@ -895,6 +913,7 @@ module Stripe bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -930,6 +949,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, diff --git a/rbi/stripe/params/invoice_create_preview_params.rbi b/rbi/stripe/params/invoice_create_preview_params.rbi index 7c91a5704..afc44b046 100644 --- a/rbi/stripe/params/invoice_create_preview_params.rbi +++ b/rbi/stripe/params/invoice_create_preview_params.rbi @@ -600,6 +600,11 @@ module Stripe @field_encodings = {unit_amount_decimal: :decimal_string} end end + # Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + sig { returns(T.nilable(T::Boolean)) } + def discountable; end + sig { params(_discountable: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def discountable=(_discountable); end # The coupons to redeem into discounts for the item. sig { returns(T.nilable(T::Array[::Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::Discount])) @@ -652,9 +657,10 @@ module Stripe } def tax_rates=(_tax_rates); end sig { - params(discounts: T.nilable(T::Array[::Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void + params(discountable: T.nilable(T::Boolean), discounts: T.nilable(T::Array[::Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void } def initialize( + discountable: nil, discounts: nil, metadata: nil, period: nil, @@ -1281,6 +1287,88 @@ module Stripe } def initialize(flexible: nil, type: nil); end end + class BillingSchedule < ::Stripe::RequestParams + class AppliesTo < ::Stripe::RequestParams + # The ID of the price object. + sig { returns(T.nilable(String)) } + def price; end + sig { params(_price: T.nilable(String)).returns(T.nilable(String)) } + def price=(_price); end + # Controls which subscription items the billing schedule applies to. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(price: T.nilable(String), type: String).void } + def initialize(price: nil, type: nil); end + end + class BillUntil < ::Stripe::RequestParams + class Duration < ::Stripe::RequestParams + # Specifies billing duration. Either `day`, `week`, `month` or `year`. + sig { returns(String) } + def interval; end + sig { params(_interval: String).returns(String) } + def interval=(_interval); end + # The multiplier applied to the interval. + sig { returns(T.nilable(Integer)) } + def interval_count; end + sig { params(_interval_count: T.nilable(Integer)).returns(T.nilable(Integer)) } + def interval_count=(_interval_count); end + sig { params(interval: String, interval_count: T.nilable(Integer)).void } + def initialize(interval: nil, interval_count: nil); end + end + # Specifies the billing period. + sig { + returns(T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::BillUntil::Duration)) + } + def duration; end + sig { + params(_duration: T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::BillUntil::Duration)).returns(T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::BillUntil::Duration)) + } + def duration=(_duration); end + # The end date of the billing schedule. + sig { returns(T.nilable(Integer)) } + def timestamp; end + sig { params(_timestamp: T.nilable(Integer)).returns(T.nilable(Integer)) } + def timestamp=(_timestamp); end + # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(duration: T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::BillUntil::Duration), timestamp: T.nilable(Integer), type: String).void + } + def initialize(duration: nil, timestamp: nil, type: nil); end + end + # Configure billing schedule differently for individual subscription items. + sig { + returns(T.nilable(T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::AppliesTo])) + } + def applies_to; end + sig { + params(_applies_to: T.nilable(T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::AppliesTo])).returns(T.nilable(T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::AppliesTo])) + } + def applies_to=(_applies_to); end + # The end date for the billing schedule. + sig { + returns(T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::BillUntil)) + } + def bill_until; end + sig { + params(_bill_until: T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::BillUntil)).returns(T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::BillUntil)) + } + def bill_until=(_bill_until); end + # Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + sig { returns(T.nilable(String)) } + def key; end + sig { params(_key: T.nilable(String)).returns(T.nilable(String)) } + def key=(_key); end + sig { + params(applies_to: T.nilable(T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::AppliesTo]), bill_until: T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::BillUntil), key: T.nilable(String)).void + } + def initialize(applies_to: nil, bill_until: nil, key: nil); end + end class Item < ::Stripe::RequestParams class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) @@ -1485,6 +1573,15 @@ module Stripe params(_billing_mode: T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingMode)).returns(T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingMode)) } def billing_mode=(_billing_mode); end + # Sets the billing schedules for the subscription. + sig { + returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule]))) + } + def billing_schedules; end + sig { + params(_billing_schedules: T.nilable(T.any(String, T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule]))).returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule]))) + } + def billing_schedules=(_billing_schedules); end # A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period. sig { returns(T.nilable(T.any(String, T.any(Integer, String)))) } def cancel_at; end @@ -1546,11 +1643,12 @@ module Stripe } def trial_end=(_trial_end); end sig { - params(billing_cycle_anchor: T.nilable(T.any(String, Integer)), billing_mode: T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingMode), cancel_at: T.nilable(T.any(String, T.any(Integer, String))), cancel_at_period_end: T.nilable(T::Boolean), cancel_now: T.nilable(T::Boolean), default_tax_rates: T.nilable(T.any(String, T::Array[String])), items: T.nilable(T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::Item]), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), resume_at: T.nilable(String), start_date: T.nilable(Integer), trial_end: T.nilable(T.any(String, Integer))).void + params(billing_cycle_anchor: T.nilable(T.any(String, Integer)), billing_mode: T.nilable(::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingMode), billing_schedules: T.nilable(T.any(String, T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule])), cancel_at: T.nilable(T.any(String, T.any(Integer, String))), cancel_at_period_end: T.nilable(T::Boolean), cancel_now: T.nilable(T::Boolean), default_tax_rates: T.nilable(T.any(String, T::Array[String])), items: T.nilable(T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::Item]), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), resume_at: T.nilable(String), start_date: T.nilable(Integer), trial_end: T.nilable(T.any(String, Integer))).void } def initialize( billing_cycle_anchor: nil, billing_mode: nil, + billing_schedules: nil, cancel_at: nil, cancel_at_period_end: nil, cancel_now: nil, diff --git a/rbi/stripe/params/payment_intent_capture_params.rbi b/rbi/stripe/params/payment_intent_capture_params.rbi index 4560c36c5..c3dd45922 100644 --- a/rbi/stripe/params/payment_intent_capture_params.rbi +++ b/rbi/stripe/params/payment_intent_capture_params.rbi @@ -203,12 +203,12 @@ module Stripe params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/payment_intent_confirm_params.rbi b/rbi/stripe/params/payment_intent_confirm_params.rbi index f0ccd1fcb..d9b0764b7 100644 --- a/rbi/stripe/params/payment_intent_confirm_params.rbi +++ b/rbi/stripe/params/payment_intent_confirm_params.rbi @@ -203,12 +203,12 @@ module Stripe params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } @@ -537,6 +537,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) @@ -727,6 +728,7 @@ module Stripe class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } @@ -918,6 +920,13 @@ module Stripe params(_billing_details: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::BillingDetails)).returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::BillingDetails)) } def billing_details=(_billing_details); end + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + sig { returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Bizum)).returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Bizum)) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. sig { returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Blik)) } def blik; end @@ -1027,7 +1036,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::KrCard)).returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::KrCard)) } def kr_card=(_kr_card); end - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Link)) } def link; end sig { @@ -1177,6 +1186,13 @@ module Stripe params(_satispay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Satispay)).returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Satispay)) } def satispay=(_satispay); end + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + sig { returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Scalapay)) } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Scalapay)).returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Scalapay)) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. sig { returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::SepaDebit)) } def sepa_debit; end @@ -1248,7 +1264,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Zip)).void + params(acss_debit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::BillingDetails), bizum: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Bizum), blik: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Satispay), scalapay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Scalapay), sepa_debit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Zip)).void } def initialize( acss_debit: nil, @@ -1263,6 +1279,7 @@ module Stripe bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -1298,6 +1315,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -1625,6 +1643,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. sig { returns(T.nilable(String)) } @@ -3087,6 +3106,19 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end + class Scalapay < ::Stripe::RequestParams + # Controls when the funds are captured from the customer's account. + # + # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + # + # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + sig { returns(T.nilable(String)) } + def capture_method; end + sig { params(_capture_method: T.nilable(String)).returns(T.nilable(String)) } + def capture_method=(_capture_method); end + sig { params(capture_method: T.nilable(String)).void } + def initialize(capture_method: nil); end + end class SepaDebit < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. @@ -3520,6 +3552,15 @@ module Stripe params(_billie: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Billie))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Billie))) } def billie=(_billie); end + # If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Bizum))) + } + def bizum; end + sig { + params(_bizum: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Bizum))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Bizum))) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options. sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Blik))) @@ -3673,7 +3714,7 @@ module Stripe params(_kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::KrCard))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::KrCard))) } def kr_card=(_kr_card); end - # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Link))) } @@ -3835,6 +3876,15 @@ module Stripe params(_satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Satispay))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Satispay))) } def satispay=(_satispay); end + # If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Scalapay))) + } + def scalapay; end + sig { + params(_scalapay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Scalapay))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Scalapay))) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::SepaDebit))) @@ -3908,7 +3958,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::AcssDebit)), affirm: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Affirm)), afterpay_clearpay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::AfterpayClearpay)), alipay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Alipay)), alma: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Alma)), amazon_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::AmazonPay)), au_becs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::AuBecsDebit)), bacs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::BacsDebit)), bancontact: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Bancontact)), billie: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Billie)), blik: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Blik)), boleto: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Boleto)), card: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Card)), card_present: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::CardPresent)), cashapp: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Cashapp)), crypto: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Crypto)), customer_balance: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::CustomerBalance)), eps: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Eps)), fpx: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Fpx)), giropay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Giropay)), grabpay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Grabpay)), ideal: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Ideal)), interac_present: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::InteracPresent)), kakao_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::KakaoPay)), klarna: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Klarna)), konbini: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Konbini)), kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::KrCard)), link: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Link)), mb_way: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::MbWay)), mobilepay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Mobilepay)), multibanco: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Multibanco)), naver_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::NaverPay)), nz_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::NzBankAccount)), oxxo: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Oxxo)), p24: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::P24)), pay_by_bank: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::PayByBank)), payco: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Payco)), paynow: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Paynow)), paypal: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Paypal)), payto: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Payto)), pix: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Pix)), promptpay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Promptpay)), revolut_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::RevolutPay)), samsung_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::SamsungPay)), satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Satispay)), sepa_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::SepaDebit)), sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Sofort)), swish: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Swish)), twint: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Twint)), upi: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Upi)), us_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::UsBankAccount)), wechat_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::WechatPay)), zip: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Zip))).void + params(acss_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::AcssDebit)), affirm: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Affirm)), afterpay_clearpay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::AfterpayClearpay)), alipay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Alipay)), alma: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Alma)), amazon_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::AmazonPay)), au_becs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::AuBecsDebit)), bacs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::BacsDebit)), bancontact: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Bancontact)), billie: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Billie)), bizum: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Bizum)), blik: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Blik)), boleto: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Boleto)), card: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Card)), card_present: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::CardPresent)), cashapp: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Cashapp)), crypto: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Crypto)), customer_balance: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::CustomerBalance)), eps: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Eps)), fpx: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Fpx)), giropay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Giropay)), grabpay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Grabpay)), ideal: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Ideal)), interac_present: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::InteracPresent)), kakao_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::KakaoPay)), klarna: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Klarna)), konbini: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Konbini)), kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::KrCard)), link: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Link)), mb_way: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::MbWay)), mobilepay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Mobilepay)), multibanco: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Multibanco)), naver_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::NaverPay)), nz_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::NzBankAccount)), oxxo: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Oxxo)), p24: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::P24)), pay_by_bank: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::PayByBank)), payco: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Payco)), paynow: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Paynow)), paypal: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Paypal)), payto: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Payto)), pix: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Pix)), promptpay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Promptpay)), revolut_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::RevolutPay)), samsung_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::SamsungPay)), satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Satispay)), scalapay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Scalapay)), sepa_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::SepaDebit)), sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Sofort)), swish: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Swish)), twint: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Twint)), upi: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Upi)), us_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::UsBankAccount)), wechat_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::WechatPay)), zip: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Zip))).void } def initialize( acss_debit: nil, @@ -3921,6 +3971,7 @@ module Stripe bacs_debit: nil, bancontact: nil, billie: nil, + bizum: nil, blik: nil, boleto: nil, card: nil, @@ -3956,6 +4007,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, swish: nil, @@ -4111,7 +4163,7 @@ module Stripe params(_mandate_data: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::MandateData))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::MandateData))) } def mandate_data=(_mandate_data); end - # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards). + # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect payment method details and [charge them later](https://docs.stripe.com/payments/save-during-payment). sig { returns(T.nilable(T.any(T::Boolean, String))) } def off_session; end sig { diff --git a/rbi/stripe/params/payment_intent_create_params.rbi b/rbi/stripe/params/payment_intent_create_params.rbi index 8be99a385..d17fc7452 100644 --- a/rbi/stripe/params/payment_intent_create_params.rbi +++ b/rbi/stripe/params/payment_intent_create_params.rbi @@ -203,12 +203,12 @@ module Stripe params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } @@ -549,6 +549,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) @@ -739,6 +740,7 @@ module Stripe class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } @@ -928,6 +930,13 @@ module Stripe params(_billing_details: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::BillingDetails)).returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::BillingDetails)) } def billing_details=(_billing_details); end + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + sig { returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Bizum)).returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Bizum)) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. sig { returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Blik)) } def blik; end @@ -1037,7 +1046,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::KrCard)).returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::KrCard)) } def kr_card=(_kr_card); end - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Link)) } def link; end sig { @@ -1181,6 +1190,13 @@ module Stripe params(_satispay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Satispay)).returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Satispay)) } def satispay=(_satispay); end + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + sig { returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Scalapay)) } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Scalapay)).returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Scalapay)) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. sig { returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::SepaDebit)) } def sepa_debit; end @@ -1252,7 +1268,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Zip)).void + params(acss_debit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::BillingDetails), bizum: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Bizum), blik: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Satispay), scalapay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Scalapay), sepa_debit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Zip)).void } def initialize( acss_debit: nil, @@ -1267,6 +1283,7 @@ module Stripe bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -1302,6 +1319,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -1629,6 +1647,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. sig { returns(T.nilable(String)) } @@ -3091,6 +3110,19 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end + class Scalapay < ::Stripe::RequestParams + # Controls when the funds are captured from the customer's account. + # + # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + # + # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + sig { returns(T.nilable(String)) } + def capture_method; end + sig { params(_capture_method: T.nilable(String)).returns(T.nilable(String)) } + def capture_method=(_capture_method); end + sig { params(capture_method: T.nilable(String)).void } + def initialize(capture_method: nil); end + end class SepaDebit < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. @@ -3524,6 +3556,15 @@ module Stripe params(_billie: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Billie))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Billie))) } def billie=(_billie); end + # If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Bizum))) + } + def bizum; end + sig { + params(_bizum: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Bizum))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Bizum))) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options. sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Blik))) @@ -3677,7 +3718,7 @@ module Stripe params(_kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::KrCard))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::KrCard))) } def kr_card=(_kr_card); end - # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Link))) } @@ -3839,6 +3880,15 @@ module Stripe params(_satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Satispay))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Satispay))) } def satispay=(_satispay); end + # If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Scalapay))) + } + def scalapay; end + sig { + params(_scalapay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Scalapay))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Scalapay))) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::SepaDebit))) @@ -3912,7 +3962,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::AcssDebit)), affirm: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Affirm)), afterpay_clearpay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::AfterpayClearpay)), alipay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Alipay)), alma: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Alma)), amazon_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::AmazonPay)), au_becs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::AuBecsDebit)), bacs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::BacsDebit)), bancontact: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Bancontact)), billie: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Billie)), blik: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Blik)), boleto: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Boleto)), card: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Card)), card_present: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::CardPresent)), cashapp: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Cashapp)), crypto: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Crypto)), customer_balance: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::CustomerBalance)), eps: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Eps)), fpx: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Fpx)), giropay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Giropay)), grabpay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Grabpay)), ideal: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Ideal)), interac_present: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::InteracPresent)), kakao_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::KakaoPay)), klarna: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Klarna)), konbini: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Konbini)), kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::KrCard)), link: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Link)), mb_way: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::MbWay)), mobilepay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Mobilepay)), multibanco: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Multibanco)), naver_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::NaverPay)), nz_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::NzBankAccount)), oxxo: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Oxxo)), p24: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::P24)), pay_by_bank: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::PayByBank)), payco: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Payco)), paynow: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Paynow)), paypal: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Paypal)), payto: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Payto)), pix: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Pix)), promptpay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Promptpay)), revolut_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::RevolutPay)), samsung_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::SamsungPay)), satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Satispay)), sepa_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::SepaDebit)), sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Sofort)), swish: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Swish)), twint: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Twint)), upi: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Upi)), us_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::UsBankAccount)), wechat_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::WechatPay)), zip: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Zip))).void + params(acss_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::AcssDebit)), affirm: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Affirm)), afterpay_clearpay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::AfterpayClearpay)), alipay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Alipay)), alma: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Alma)), amazon_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::AmazonPay)), au_becs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::AuBecsDebit)), bacs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::BacsDebit)), bancontact: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Bancontact)), billie: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Billie)), bizum: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Bizum)), blik: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Blik)), boleto: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Boleto)), card: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Card)), card_present: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::CardPresent)), cashapp: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Cashapp)), crypto: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Crypto)), customer_balance: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::CustomerBalance)), eps: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Eps)), fpx: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Fpx)), giropay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Giropay)), grabpay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Grabpay)), ideal: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Ideal)), interac_present: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::InteracPresent)), kakao_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::KakaoPay)), klarna: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Klarna)), konbini: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Konbini)), kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::KrCard)), link: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Link)), mb_way: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::MbWay)), mobilepay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Mobilepay)), multibanco: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Multibanco)), naver_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::NaverPay)), nz_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::NzBankAccount)), oxxo: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Oxxo)), p24: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::P24)), pay_by_bank: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::PayByBank)), payco: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Payco)), paynow: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Paynow)), paypal: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Paypal)), payto: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Payto)), pix: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Pix)), promptpay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Promptpay)), revolut_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::RevolutPay)), samsung_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::SamsungPay)), satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Satispay)), scalapay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Scalapay)), sepa_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::SepaDebit)), sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Sofort)), swish: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Swish)), twint: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Twint)), upi: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Upi)), us_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::UsBankAccount)), wechat_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::WechatPay)), zip: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Zip))).void } def initialize( acss_debit: nil, @@ -3925,6 +3975,7 @@ module Stripe bacs_debit: nil, bancontact: nil, billie: nil, + bizum: nil, blik: nil, boleto: nil, card: nil, @@ -3960,6 +4011,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, swish: nil, @@ -4056,6 +4108,24 @@ module Stripe def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil); end end class TransferData < ::Stripe::RequestParams + class PaymentData < ::Stripe::RequestParams + # An arbitrary string attached to the destination payment. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # Set of [key-value pairs](https://docs.stripe.com/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.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + sig { + params(description: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void + } + def initialize(description: nil, metadata: nil); end + end # The amount that will be transferred automatically when a charge succeeds. # The amount is capped at the total transaction amount and if no amount is set, # the full amount is transferred. @@ -4067,6 +4137,11 @@ module Stripe def amount; end sig { params(_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount=(_amount); end + # An arbitrary string attached to the transfer. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end # If specified, successful charges will be attributed to the destination # account for tax reporting, and the funds from charges will be transferred # to the destination account. The ID of the resulting transfer will be @@ -4075,8 +4150,30 @@ module Stripe def destination; end sig { params(_destination: String).returns(String) } def destination=(_destination); end - sig { params(amount: T.nilable(Integer), destination: String).void } - def initialize(amount: nil, destination: nil); end + # Set of [key-value pairs](https://docs.stripe.com/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.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + # The data with which to populate the destination payment. + sig { returns(T.nilable(::Stripe::PaymentIntentCreateParams::TransferData::PaymentData)) } + def payment_data; end + sig { + params(_payment_data: T.nilable(::Stripe::PaymentIntentCreateParams::TransferData::PaymentData)).returns(T.nilable(::Stripe::PaymentIntentCreateParams::TransferData::PaymentData)) + } + def payment_data=(_payment_data); end + sig { + params(amount: T.nilable(Integer), description: T.nilable(String), destination: String, metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_data: T.nilable(::Stripe::PaymentIntentCreateParams::TransferData::PaymentData)).void + } + def initialize( + amount: nil, + description: nil, + destination: nil, + metadata: nil, + payment_data: nil + ); end end # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). sig { returns(Integer) } @@ -4195,7 +4292,7 @@ module Stripe params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) } def metadata=(_metadata); end - # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm). + # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect payment method details and [charge them later](https://docs.stripe.com/payments/save-during-payment). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm). sig { returns(T.nilable(T.any(T::Boolean, String))) } def off_session; end sig { diff --git a/rbi/stripe/params/payment_intent_increment_authorization_params.rbi b/rbi/stripe/params/payment_intent_increment_authorization_params.rbi index 20b94f766..c2cfe1b94 100644 --- a/rbi/stripe/params/payment_intent_increment_authorization_params.rbi +++ b/rbi/stripe/params/payment_intent_increment_authorization_params.rbi @@ -203,12 +203,12 @@ module Stripe params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/payment_intent_update_params.rbi b/rbi/stripe/params/payment_intent_update_params.rbi index 3ac775d86..465a9974b 100644 --- a/rbi/stripe/params/payment_intent_update_params.rbi +++ b/rbi/stripe/params/payment_intent_update_params.rbi @@ -203,12 +203,12 @@ module Stripe params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } @@ -471,6 +471,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) @@ -661,6 +662,7 @@ module Stripe class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } @@ -850,6 +852,13 @@ module Stripe params(_billing_details: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::BillingDetails)).returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::BillingDetails)) } def billing_details=(_billing_details); end + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + sig { returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Bizum)).returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Bizum)) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. sig { returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Blik)) } def blik; end @@ -959,7 +968,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::KrCard)).returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::KrCard)) } def kr_card=(_kr_card); end - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Link)) } def link; end sig { @@ -1103,6 +1112,13 @@ module Stripe params(_satispay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Satispay)).returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Satispay)) } def satispay=(_satispay); end + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + sig { returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Scalapay)) } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Scalapay)).returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Scalapay)) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. sig { returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::SepaDebit)) } def sepa_debit; end @@ -1174,7 +1190,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Zip)).void + params(acss_debit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::BillingDetails), bizum: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Bizum), blik: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Satispay), scalapay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Scalapay), sepa_debit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Zip)).void } def initialize( acss_debit: nil, @@ -1189,6 +1205,7 @@ module Stripe bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -1224,6 +1241,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -1551,6 +1569,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. sig { returns(T.nilable(String)) } @@ -3013,6 +3032,19 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end + class Scalapay < ::Stripe::RequestParams + # Controls when the funds are captured from the customer's account. + # + # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + # + # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + sig { returns(T.nilable(String)) } + def capture_method; end + sig { params(_capture_method: T.nilable(String)).returns(T.nilable(String)) } + def capture_method=(_capture_method); end + sig { params(capture_method: T.nilable(String)).void } + def initialize(capture_method: nil); end + end class SepaDebit < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. @@ -3446,6 +3478,15 @@ module Stripe params(_billie: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Billie))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Billie))) } def billie=(_billie); end + # If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Bizum))) + } + def bizum; end + sig { + params(_bizum: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Bizum))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Bizum))) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options. sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Blik))) @@ -3599,7 +3640,7 @@ module Stripe params(_kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::KrCard))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::KrCard))) } def kr_card=(_kr_card); end - # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Link))) } @@ -3761,6 +3802,15 @@ module Stripe params(_satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Satispay))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Satispay))) } def satispay=(_satispay); end + # If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Scalapay))) + } + def scalapay; end + sig { + params(_scalapay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Scalapay))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Scalapay))) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::SepaDebit))) @@ -3834,7 +3884,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::AcssDebit)), affirm: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Affirm)), afterpay_clearpay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::AfterpayClearpay)), alipay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Alipay)), alma: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Alma)), amazon_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::AmazonPay)), au_becs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::AuBecsDebit)), bacs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::BacsDebit)), bancontact: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Bancontact)), billie: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Billie)), blik: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Blik)), boleto: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Boleto)), card: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Card)), card_present: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::CardPresent)), cashapp: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Cashapp)), crypto: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Crypto)), customer_balance: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::CustomerBalance)), eps: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Eps)), fpx: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Fpx)), giropay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Giropay)), grabpay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Grabpay)), ideal: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Ideal)), interac_present: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::InteracPresent)), kakao_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::KakaoPay)), klarna: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Klarna)), konbini: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Konbini)), kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::KrCard)), link: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Link)), mb_way: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::MbWay)), mobilepay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Mobilepay)), multibanco: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Multibanco)), naver_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::NaverPay)), nz_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::NzBankAccount)), oxxo: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Oxxo)), p24: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::P24)), pay_by_bank: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::PayByBank)), payco: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Payco)), paynow: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Paynow)), paypal: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Paypal)), payto: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Payto)), pix: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Pix)), promptpay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Promptpay)), revolut_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::RevolutPay)), samsung_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::SamsungPay)), satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Satispay)), sepa_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::SepaDebit)), sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Sofort)), swish: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Swish)), twint: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Twint)), upi: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Upi)), us_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::UsBankAccount)), wechat_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::WechatPay)), zip: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Zip))).void + params(acss_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::AcssDebit)), affirm: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Affirm)), afterpay_clearpay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::AfterpayClearpay)), alipay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Alipay)), alma: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Alma)), amazon_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::AmazonPay)), au_becs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::AuBecsDebit)), bacs_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::BacsDebit)), bancontact: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Bancontact)), billie: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Billie)), bizum: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Bizum)), blik: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Blik)), boleto: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Boleto)), card: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Card)), card_present: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::CardPresent)), cashapp: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Cashapp)), crypto: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Crypto)), customer_balance: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::CustomerBalance)), eps: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Eps)), fpx: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Fpx)), giropay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Giropay)), grabpay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Grabpay)), ideal: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Ideal)), interac_present: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::InteracPresent)), kakao_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::KakaoPay)), klarna: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Klarna)), konbini: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Konbini)), kr_card: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::KrCard)), link: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Link)), mb_way: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::MbWay)), mobilepay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Mobilepay)), multibanco: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Multibanco)), naver_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::NaverPay)), nz_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::NzBankAccount)), oxxo: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Oxxo)), p24: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::P24)), pay_by_bank: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::PayByBank)), payco: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Payco)), paynow: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Paynow)), paypal: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Paypal)), payto: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Payto)), pix: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Pix)), promptpay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Promptpay)), revolut_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::RevolutPay)), samsung_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::SamsungPay)), satispay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Satispay)), scalapay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Scalapay)), sepa_debit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::SepaDebit)), sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Sofort)), swish: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Swish)), twint: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Twint)), upi: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Upi)), us_bank_account: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::UsBankAccount)), wechat_pay: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::WechatPay)), zip: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Zip))).void } def initialize( acss_debit: nil, @@ -3847,6 +3897,7 @@ module Stripe bacs_debit: nil, bancontact: nil, billie: nil, + bizum: nil, blik: nil, boleto: nil, card: nil, @@ -3882,6 +3933,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, swish: nil, @@ -3969,13 +4021,52 @@ module Stripe def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil); end end class TransferData < ::Stripe::RequestParams + class PaymentData < ::Stripe::RequestParams + # An arbitrary string attached to the destination payment. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # Set of [key-value pairs](https://docs.stripe.com/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.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + sig { + params(description: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void + } + def initialize(description: nil, metadata: nil); end + end # The amount that will be transferred automatically when a charge succeeds. sig { returns(T.nilable(Integer)) } def amount; end sig { params(_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount=(_amount); end - sig { params(amount: T.nilable(Integer)).void } - def initialize(amount: nil); end + # An arbitrary string attached to the transfer. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # Set of [key-value pairs](https://docs.stripe.com/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.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + # The data with which to populate the destination payment. + sig { returns(T.nilable(::Stripe::PaymentIntentUpdateParams::TransferData::PaymentData)) } + def payment_data; end + sig { + params(_payment_data: T.nilable(::Stripe::PaymentIntentUpdateParams::TransferData::PaymentData)).returns(T.nilable(::Stripe::PaymentIntentUpdateParams::TransferData::PaymentData)) + } + def payment_data=(_payment_data); end + sig { + params(amount: T.nilable(Integer), description: T.nilable(String), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_data: T.nilable(::Stripe::PaymentIntentUpdateParams::TransferData::PaymentData)).void + } + def initialize(amount: nil, description: nil, metadata: nil, payment_data: nil); end end # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). sig { returns(T.nilable(Integer)) } diff --git a/rbi/stripe/params/payment_link_create_params.rbi b/rbi/stripe/params/payment_link_create_params.rbi index 20eb81417..8b349a00b 100644 --- a/rbi/stripe/params/payment_link_create_params.rbi +++ b/rbi/stripe/params/payment_link_create_params.rbi @@ -105,7 +105,7 @@ module Stripe def payment_method_reuse_agreement=(_payment_method_reuse_agreement); end # If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout # Session will determine whether to display an option to opt into promotional communication - # from the merchant depending on the customer's locale. Only available to US merchants. + # from the merchant depending on the customer's locale. Only available to US merchants and US customers. sig { returns(T.nilable(String)) } def promotions; end sig { params(_promotions: T.nilable(String)).returns(T.nilable(String)) } @@ -823,6 +823,45 @@ module Stripe transfer_group: nil ); end end + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams + # The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + sig { returns(T.nilable(T::Array[String])) } + def brands_blocked; end + sig { + params(_brands_blocked: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) + } + def brands_blocked=(_brands_blocked); end + sig { params(brands_blocked: T.nilable(T::Array[String])).void } + def initialize(brands_blocked: nil); end + end + # Restrictions to apply to the card payment method. For example, you can block specific card brands. + sig { + returns(T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions::Card::Restrictions)) + } + def restrictions; end + sig { + params(_restrictions: T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions::Card::Restrictions)).returns(T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions::Card::Restrictions)) + } + def restrictions=(_restrictions); end + sig { + params(restrictions: T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions::Card::Restrictions)).void + } + def initialize(restrictions: nil); end + end + # Configuration for `card` payment methods. + sig { returns(T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions::Card)) } + def card; end + sig { + params(_card: T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions::Card)).returns(T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions::Card)) + } + def card=(_card); end + sig { + params(card: T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions::Card)).void + } + def initialize(card: nil); end + end class PhoneNumberCollection < ::Stripe::RequestParams # Set to `true` to enable phone number collection. sig { returns(T::Boolean) } @@ -1142,6 +1181,13 @@ module Stripe def payment_method_collection; end sig { params(_payment_method_collection: T.nilable(String)).returns(T.nilable(String)) } def payment_method_collection=(_payment_method_collection); end + # Attribute for param field payment_method_options + sig { returns(T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions)) } + def payment_method_options; end + sig { + params(_payment_method_options: T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions)).returns(T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions)) + } + def payment_method_options=(_payment_method_options); end # The list of payment method types that customers can use. If no value is passed, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods) (20+ payment methods [supported](https://docs.stripe.com/payments/payment-methods/integration-options#payment-method-product-support)). sig { returns(T.nilable(T::Array[String])) } def payment_method_types; end @@ -1206,7 +1252,7 @@ module Stripe } def transfer_data=(_transfer_data); end sig { - params(after_completion: T.nilable(::Stripe::PaymentLinkCreateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), application_fee_amount: T.nilable(Integer), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::PaymentLinkCreateParams::AutomaticTax), billing_address_collection: T.nilable(String), consent_collection: T.nilable(::Stripe::PaymentLinkCreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[::Stripe::PaymentLinkCreateParams::CustomField]), custom_text: T.nilable(::Stripe::PaymentLinkCreateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(::Stripe::PaymentLinkCreateParams::InvoiceCreation), line_items: T::Array[::Stripe::PaymentLinkCreateParams::LineItem], managed_payments: T.nilable(::Stripe::PaymentLinkCreateParams::ManagedPayments), metadata: T.nilable(T::Hash[String, String]), name_collection: T.nilable(::Stripe::PaymentLinkCreateParams::NameCollection), on_behalf_of: T.nilable(String), optional_items: T.nilable(T::Array[::Stripe::PaymentLinkCreateParams::OptionalItem]), payment_intent_data: T.nilable(::Stripe::PaymentLinkCreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T::Array[String]), phone_number_collection: T.nilable(::Stripe::PaymentLinkCreateParams::PhoneNumberCollection), restrictions: T.nilable(::Stripe::PaymentLinkCreateParams::Restrictions), shipping_address_collection: T.nilable(::Stripe::PaymentLinkCreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[::Stripe::PaymentLinkCreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::PaymentLinkCreateParams::SubscriptionData), tax_id_collection: T.nilable(::Stripe::PaymentLinkCreateParams::TaxIdCollection), transfer_data: T.nilable(::Stripe::PaymentLinkCreateParams::TransferData)).void + params(after_completion: T.nilable(::Stripe::PaymentLinkCreateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), application_fee_amount: T.nilable(Integer), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(::Stripe::PaymentLinkCreateParams::AutomaticTax), billing_address_collection: T.nilable(String), consent_collection: T.nilable(::Stripe::PaymentLinkCreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[::Stripe::PaymentLinkCreateParams::CustomField]), custom_text: T.nilable(::Stripe::PaymentLinkCreateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(::Stripe::PaymentLinkCreateParams::InvoiceCreation), line_items: T::Array[::Stripe::PaymentLinkCreateParams::LineItem], managed_payments: T.nilable(::Stripe::PaymentLinkCreateParams::ManagedPayments), metadata: T.nilable(T::Hash[String, String]), name_collection: T.nilable(::Stripe::PaymentLinkCreateParams::NameCollection), on_behalf_of: T.nilable(String), optional_items: T.nilable(T::Array[::Stripe::PaymentLinkCreateParams::OptionalItem]), payment_intent_data: T.nilable(::Stripe::PaymentLinkCreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_options: T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), phone_number_collection: T.nilable(::Stripe::PaymentLinkCreateParams::PhoneNumberCollection), restrictions: T.nilable(::Stripe::PaymentLinkCreateParams::Restrictions), shipping_address_collection: T.nilable(::Stripe::PaymentLinkCreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[::Stripe::PaymentLinkCreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::PaymentLinkCreateParams::SubscriptionData), tax_id_collection: T.nilable(::Stripe::PaymentLinkCreateParams::TaxIdCollection), transfer_data: T.nilable(::Stripe::PaymentLinkCreateParams::TransferData)).void } def initialize( after_completion: nil, @@ -1231,6 +1277,7 @@ module Stripe optional_items: nil, payment_intent_data: nil, payment_method_collection: nil, + payment_method_options: nil, payment_method_types: nil, phone_number_collection: nil, restrictions: nil, diff --git a/rbi/stripe/params/payment_link_update_params.rbi b/rbi/stripe/params/payment_link_update_params.rbi index 5e58c30fa..4cbee2a6e 100644 --- a/rbi/stripe/params/payment_link_update_params.rbi +++ b/rbi/stripe/params/payment_link_update_params.rbi @@ -619,6 +619,47 @@ module Stripe transfer_group: nil ); end end + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams + # The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + sig { returns(T.nilable(T.any(String, T::Array[String]))) } + def brands_blocked; end + sig { + params(_brands_blocked: T.nilable(T.any(String, T::Array[String]))).returns(T.nilable(T.any(String, T::Array[String]))) + } + def brands_blocked=(_brands_blocked); end + sig { params(brands_blocked: T.nilable(T.any(String, T::Array[String]))).void } + def initialize(brands_blocked: nil); end + end + # Restrictions to apply to the card payment method. For example, you can block specific card brands. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions::Card::Restrictions))) + } + def restrictions; end + sig { + params(_restrictions: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions::Card::Restrictions))).returns(T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions::Card::Restrictions))) + } + def restrictions=(_restrictions); end + sig { + params(restrictions: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions::Card::Restrictions))).void + } + def initialize(restrictions: nil); end + end + # Configuration for `card` payment methods. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions::Card))) + } + def card; end + sig { + params(_card: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions::Card))).returns(T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions::Card))) + } + def card=(_card); end + sig { + params(card: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions::Card))).void + } + def initialize(card: nil); end + end class PhoneNumberCollection < ::Stripe::RequestParams # Set to `true` to enable phone number collection. sig { returns(T::Boolean) } @@ -885,6 +926,15 @@ module Stripe def payment_method_collection; end sig { params(_payment_method_collection: T.nilable(String)).returns(T.nilable(String)) } def payment_method_collection=(_payment_method_collection); end + # Payment-method-specific configuration. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions))) + } + def payment_method_options; end + sig { + params(_payment_method_options: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions))).returns(T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions))) + } + def payment_method_options=(_payment_method_options); end # The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). sig { returns(T.nilable(T.any(String, T::Array[String]))) } def payment_method_types; end @@ -937,7 +987,7 @@ module Stripe } def tax_id_collection=(_tax_id_collection); end sig { - params(active: T.nilable(T::Boolean), after_completion: T.nilable(::Stripe::PaymentLinkUpdateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::PaymentLinkUpdateParams::AutomaticTax), billing_address_collection: T.nilable(String), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkUpdateParams::CustomField])), custom_text: T.nilable(::Stripe::PaymentLinkUpdateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(::Stripe::PaymentLinkUpdateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::PaymentLinkUpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), name_collection: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::NameCollection)), optional_items: T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkUpdateParams::OptionalItem])), payment_intent_data: T.nilable(::Stripe::PaymentLinkUpdateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T.any(String, T::Array[String])), phone_number_collection: T.nilable(::Stripe::PaymentLinkUpdateParams::PhoneNumberCollection), restrictions: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::Restrictions)), shipping_address_collection: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::ShippingAddressCollection)), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::PaymentLinkUpdateParams::SubscriptionData), tax_id_collection: T.nilable(::Stripe::PaymentLinkUpdateParams::TaxIdCollection)).void + params(active: T.nilable(T::Boolean), after_completion: T.nilable(::Stripe::PaymentLinkUpdateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::PaymentLinkUpdateParams::AutomaticTax), billing_address_collection: T.nilable(String), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkUpdateParams::CustomField])), custom_text: T.nilable(::Stripe::PaymentLinkUpdateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(::Stripe::PaymentLinkUpdateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::PaymentLinkUpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), name_collection: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::NameCollection)), optional_items: T.nilable(T.any(String, T::Array[::Stripe::PaymentLinkUpdateParams::OptionalItem])), payment_intent_data: T.nilable(::Stripe::PaymentLinkUpdateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_options: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::PaymentMethodOptions)), payment_method_types: T.nilable(T.any(String, T::Array[String])), phone_number_collection: T.nilable(::Stripe::PaymentLinkUpdateParams::PhoneNumberCollection), restrictions: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::Restrictions)), shipping_address_collection: T.nilable(T.any(String, ::Stripe::PaymentLinkUpdateParams::ShippingAddressCollection)), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::PaymentLinkUpdateParams::SubscriptionData), tax_id_collection: T.nilable(::Stripe::PaymentLinkUpdateParams::TaxIdCollection)).void } def initialize( active: nil, @@ -957,6 +1007,7 @@ module Stripe optional_items: nil, payment_intent_data: nil, payment_method_collection: nil, + payment_method_options: nil, payment_method_types: nil, phone_number_collection: nil, restrictions: nil, diff --git a/rbi/stripe/params/payment_method_configuration_create_params.rbi b/rbi/stripe/params/payment_method_configuration_create_params.rbi index 5c05066c7..d3c83f9ce 100644 --- a/rbi/stripe/params/payment_method_configuration_create_params.rbi +++ b/rbi/stripe/params/payment_method_configuration_create_params.rbi @@ -292,6 +292,30 @@ module Stripe } def initialize(display_preference: nil); end end + class Bizum < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { + returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bizum::DisplayPreference)) + } + def display_preference; end + sig { + params(_display_preference: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bizum::DisplayPreference)).returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bizum::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bizum::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end class Blik < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -1180,6 +1204,30 @@ module Stripe } def initialize(display_preference: nil); end end + class Scalapay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { + returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Scalapay::DisplayPreference)) + } + def display_preference; end + sig { + params(_display_preference: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Scalapay::DisplayPreference)).returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Scalapay::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Scalapay::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end class SepaDebit < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -1480,6 +1528,13 @@ module Stripe params(_billie: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Billie)).returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Billie)) } def billie=(_billie); end + # To enable Bizum, buyers need a Spanish IBAN from a bank connected to Bizum. Within their banking app, they can enable Bizum and link their mobile number to their IBAN. + sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bizum)).returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bizum)) + } + def bizum=(_bizum); end # BLIK is a [single use](https://docs.stripe.com/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://docs.stripe.com/payments/blik) for more details. sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Blik)) } def blik; end @@ -1749,13 +1804,20 @@ module Stripe params(_samsung_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::SamsungPay)).returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::SamsungPay)) } def samsung_pay=(_samsung_pay); end - # Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + # Satispay is a [single-use](/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Satispay)) } def satispay; end sig { params(_satispay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Satispay)).returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Satispay)) } def satispay=(_satispay); end + # Scalapay is a [single-use](/payments/payment-methods#usage) payment method that lets customers pay in 3 or 4 installments. Customers are redirected from your website or app, authorize the payment with Scalapay, then return to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Scalapay)) } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Scalapay)).returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Scalapay)) + } + def scalapay=(_scalapay); end # The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details. sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::SepaDebit)) } def sepa_debit; end @@ -1820,7 +1882,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::AcssDebit), affirm: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Alipay), alma: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::AmazonPay), apple_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::ApplePay), apple_pay_later: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::ApplePayLater), au_becs_debit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Billie), blik: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Boleto), card: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Card), cartes_bancaires: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::CartesBancaires), cashapp: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Cashapp), crypto: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Crypto), customer_balance: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Fpx), fr_meal_voucher_conecs: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::FrMealVoucherConecs), giropay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Giropay), google_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::GooglePay), grabpay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Ideal), jcb: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Jcb), kakao_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::KakaoPay), klarna: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Konbini), kr_card: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::KrCard), link: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Link), mb_way: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::MbWay), mobilepay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::P24), parent: T.nilable(String), pay_by_bank: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::PayByBank), payco: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Payco), paynow: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Paypal), payto: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Payto), pix: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Pix), promptpay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Promptpay), revolut_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::SamsungPay), satispay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Satispay), sepa_debit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Sofort), sunbit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Sunbit), swish: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Swish), twint: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Twint), upi: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Upi), us_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Zip)).void + params(acss_debit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::AcssDebit), affirm: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Alipay), alma: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::AmazonPay), apple_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::ApplePay), apple_pay_later: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::ApplePayLater), au_becs_debit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Billie), bizum: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Bizum), blik: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Boleto), card: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Card), cartes_bancaires: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::CartesBancaires), cashapp: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Cashapp), crypto: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Crypto), customer_balance: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Fpx), fr_meal_voucher_conecs: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::FrMealVoucherConecs), giropay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Giropay), google_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::GooglePay), grabpay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Ideal), jcb: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Jcb), kakao_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::KakaoPay), klarna: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Konbini), kr_card: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::KrCard), link: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Link), mb_way: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::MbWay), mobilepay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::P24), parent: T.nilable(String), pay_by_bank: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::PayByBank), payco: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Payco), paynow: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Paypal), payto: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Payto), pix: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Pix), promptpay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Promptpay), revolut_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::SamsungPay), satispay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Satispay), scalapay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Scalapay), sepa_debit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Sofort), sunbit: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Sunbit), swish: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Swish), twint: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Twint), upi: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Upi), us_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethodConfigurationCreateParams::Zip)).void } def initialize( acss_debit: nil, @@ -1835,6 +1897,7 @@ module Stripe bacs_debit: nil, bancontact: nil, billie: nil, + bizum: nil, blik: nil, boleto: nil, card: nil, @@ -1875,6 +1938,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, diff --git a/rbi/stripe/params/payment_method_configuration_list_params.rbi b/rbi/stripe/params/payment_method_configuration_list_params.rbi index dade8ae04..4e11e7e91 100644 --- a/rbi/stripe/params/payment_method_configuration_list_params.rbi +++ b/rbi/stripe/params/payment_method_configuration_list_params.rbi @@ -4,6 +4,11 @@ # typed: true module Stripe class PaymentMethodConfigurationListParams < ::Stripe::RequestParams + # Whether the configuration is active. + sig { returns(T.nilable(T::Boolean)) } + def active; end + sig { params(_active: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def active=(_active); end # The Connect application to filter by. sig { returns(T.nilable(String)) } def application; end @@ -30,9 +35,10 @@ module Stripe sig { params(_starting_after: T.nilable(String)).returns(T.nilable(String)) } def starting_after=(_starting_after); end sig { - params(application: T.nilable(String), ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String)).void + params(active: T.nilable(T::Boolean), application: T.nilable(String), ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String)).void } def initialize( + active: nil, application: nil, ending_before: nil, expand: nil, diff --git a/rbi/stripe/params/payment_method_configuration_update_params.rbi b/rbi/stripe/params/payment_method_configuration_update_params.rbi index a7cee310d..adf41b187 100644 --- a/rbi/stripe/params/payment_method_configuration_update_params.rbi +++ b/rbi/stripe/params/payment_method_configuration_update_params.rbi @@ -292,6 +292,30 @@ module Stripe } def initialize(display_preference: nil); end end + class Bizum < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { + returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bizum::DisplayPreference)) + } + def display_preference; end + sig { + params(_display_preference: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bizum::DisplayPreference)).returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bizum::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bizum::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end class Blik < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -1180,6 +1204,30 @@ module Stripe } def initialize(display_preference: nil); end end + class Scalapay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { + returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Scalapay::DisplayPreference)) + } + def display_preference; end + sig { + params(_display_preference: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Scalapay::DisplayPreference)).returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Scalapay::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Scalapay::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end class SepaDebit < ::Stripe::RequestParams class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. @@ -1485,6 +1533,13 @@ module Stripe params(_billie: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Billie)).returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Billie)) } def billie=(_billie); end + # To enable Bizum, buyers need a Spanish IBAN from a bank connected to Bizum. Within their banking app, they can enable Bizum and link their mobile number to their IBAN. + sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bizum)).returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bizum)) + } + def bizum=(_bizum); end # BLIK is a [single use](https://docs.stripe.com/payments/payment-methods#usage) payment method that requires customers to authenticate their payments. When customers want to pay online using BLIK, they request a six-digit code from their banking application and enter it into the payment collection form. Check this [page](https://docs.stripe.com/payments/blik) for more details. sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Blik)) } def blik; end @@ -1749,13 +1804,20 @@ module Stripe params(_samsung_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::SamsungPay)).returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::SamsungPay)) } def samsung_pay=(_samsung_pay); end - # Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + # Satispay is a [single-use](/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Satispay)) } def satispay; end sig { params(_satispay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Satispay)).returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Satispay)) } def satispay=(_satispay); end + # Scalapay is a [single-use](/payments/payment-methods#usage) payment method that lets customers pay in 3 or 4 installments. Customers are redirected from your website or app, authorize the payment with Scalapay, then return to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed. + sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Scalapay)) } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Scalapay)).returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Scalapay)) + } + def scalapay=(_scalapay); end # The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details. sig { returns(T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::SepaDebit)) } def sepa_debit; end @@ -1820,7 +1882,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::AcssDebit), active: T.nilable(T::Boolean), affirm: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Alipay), alma: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::AmazonPay), apple_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::ApplePay), apple_pay_later: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::ApplePayLater), au_becs_debit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Billie), blik: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Boleto), card: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Card), cartes_bancaires: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::CartesBancaires), cashapp: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Cashapp), crypto: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Crypto), customer_balance: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Fpx), fr_meal_voucher_conecs: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::FrMealVoucherConecs), giropay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Giropay), google_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::GooglePay), grabpay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Ideal), jcb: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Jcb), kakao_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::KakaoPay), klarna: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Konbini), kr_card: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::KrCard), link: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Link), mb_way: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::MbWay), mobilepay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::P24), pay_by_bank: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::PayByBank), payco: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Payco), paynow: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Paypal), payto: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Payto), pix: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Pix), promptpay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Promptpay), revolut_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::SamsungPay), satispay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Satispay), sepa_debit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Sofort), sunbit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Sunbit), swish: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Swish), twint: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Twint), upi: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Upi), us_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Zip)).void + params(acss_debit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::AcssDebit), active: T.nilable(T::Boolean), affirm: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Alipay), alma: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::AmazonPay), apple_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::ApplePay), apple_pay_later: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::ApplePayLater), au_becs_debit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Billie), bizum: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Bizum), blik: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Boleto), card: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Card), cartes_bancaires: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::CartesBancaires), cashapp: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Cashapp), crypto: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Crypto), customer_balance: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Fpx), fr_meal_voucher_conecs: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::FrMealVoucherConecs), giropay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Giropay), google_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::GooglePay), grabpay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Ideal), jcb: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Jcb), kakao_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::KakaoPay), klarna: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Konbini), kr_card: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::KrCard), link: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Link), mb_way: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::MbWay), mobilepay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::P24), pay_by_bank: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::PayByBank), payco: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Payco), paynow: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Paypal), payto: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Payto), pix: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Pix), promptpay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Promptpay), revolut_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::SamsungPay), satispay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Satispay), scalapay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Scalapay), sepa_debit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Sofort), sunbit: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Sunbit), swish: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Swish), twint: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Twint), upi: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Upi), us_bank_account: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethodConfigurationUpdateParams::Zip)).void } def initialize( acss_debit: nil, @@ -1836,6 +1898,7 @@ module Stripe bacs_debit: nil, bancontact: nil, billie: nil, + bizum: nil, blik: nil, boleto: nil, card: nil, @@ -1875,6 +1938,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, diff --git a/rbi/stripe/params/payment_method_create_params.rbi b/rbi/stripe/params/payment_method_create_params.rbi index 86e83a287..0e408d907 100644 --- a/rbi/stripe/params/payment_method_create_params.rbi +++ b/rbi/stripe/params/payment_method_create_params.rbi @@ -138,6 +138,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) @@ -387,6 +388,7 @@ module Stripe class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } @@ -568,6 +570,13 @@ module Stripe params(_billing_details: T.nilable(::Stripe::PaymentMethodCreateParams::BillingDetails)).returns(T.nilable(::Stripe::PaymentMethodCreateParams::BillingDetails)) } def billing_details=(_billing_details); end + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + sig { returns(T.nilable(::Stripe::PaymentMethodCreateParams::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::PaymentMethodCreateParams::Bizum)).returns(T.nilable(::Stripe::PaymentMethodCreateParams::Bizum)) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. sig { returns(T.nilable(::Stripe::PaymentMethodCreateParams::Blik)) } def blik; end @@ -697,7 +706,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::PaymentMethodCreateParams::KrCard)).returns(T.nilable(::Stripe::PaymentMethodCreateParams::KrCard)) } def kr_card=(_kr_card); end - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::PaymentMethodCreateParams::Link)) } def link; end sig { @@ -842,6 +851,13 @@ module Stripe params(_satispay: T.nilable(::Stripe::PaymentMethodCreateParams::Satispay)).returns(T.nilable(::Stripe::PaymentMethodCreateParams::Satispay)) } def satispay=(_satispay); end + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + sig { returns(T.nilable(::Stripe::PaymentMethodCreateParams::Scalapay)) } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::PaymentMethodCreateParams::Scalapay)).returns(T.nilable(::Stripe::PaymentMethodCreateParams::Scalapay)) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. sig { returns(T.nilable(::Stripe::PaymentMethodCreateParams::SepaDebit)) } def sepa_debit; end @@ -911,7 +927,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::PaymentMethodCreateParams::AcssDebit), affirm: T.nilable(::Stripe::PaymentMethodCreateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethodCreateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethodCreateParams::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentMethodCreateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethodCreateParams::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentMethodCreateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethodCreateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethodCreateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethodCreateParams::Billie), billing_details: T.nilable(::Stripe::PaymentMethodCreateParams::BillingDetails), blik: T.nilable(::Stripe::PaymentMethodCreateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethodCreateParams::Boleto), card: T.nilable(::Stripe::PaymentMethodCreateParams::Card), cashapp: T.nilable(::Stripe::PaymentMethodCreateParams::Cashapp), crypto: T.nilable(::Stripe::PaymentMethodCreateParams::Crypto), custom: T.nilable(::Stripe::PaymentMethodCreateParams::Custom), customer: T.nilable(String), customer_balance: T.nilable(::Stripe::PaymentMethodCreateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethodCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethodCreateParams::Fpx), giropay: T.nilable(::Stripe::PaymentMethodCreateParams::Giropay), grabpay: T.nilable(::Stripe::PaymentMethodCreateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethodCreateParams::Ideal), interac_present: T.nilable(::Stripe::PaymentMethodCreateParams::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentMethodCreateParams::KakaoPay), klarna: T.nilable(::Stripe::PaymentMethodCreateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethodCreateParams::Konbini), kr_card: T.nilable(::Stripe::PaymentMethodCreateParams::KrCard), link: T.nilable(::Stripe::PaymentMethodCreateParams::Link), mb_way: T.nilable(::Stripe::PaymentMethodCreateParams::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentMethodCreateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethodCreateParams::Multibanco), naver_pay: T.nilable(::Stripe::PaymentMethodCreateParams::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentMethodCreateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethodCreateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethodCreateParams::P24), pay_by_bank: T.nilable(::Stripe::PaymentMethodCreateParams::PayByBank), payco: T.nilable(::Stripe::PaymentMethodCreateParams::Payco), payment_method: T.nilable(String), paynow: T.nilable(::Stripe::PaymentMethodCreateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethodCreateParams::Paypal), payto: T.nilable(::Stripe::PaymentMethodCreateParams::Payto), pix: T.nilable(::Stripe::PaymentMethodCreateParams::Pix), promptpay: T.nilable(::Stripe::PaymentMethodCreateParams::Promptpay), radar_options: T.nilable(::Stripe::PaymentMethodCreateParams::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentMethodCreateParams::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentMethodCreateParams::SamsungPay), satispay: T.nilable(::Stripe::PaymentMethodCreateParams::Satispay), sepa_debit: T.nilable(::Stripe::PaymentMethodCreateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethodCreateParams::Sofort), sunbit: T.nilable(::Stripe::PaymentMethodCreateParams::Sunbit), swish: T.nilable(::Stripe::PaymentMethodCreateParams::Swish), twint: T.nilable(::Stripe::PaymentMethodCreateParams::Twint), type: T.nilable(String), upi: T.nilable(::Stripe::PaymentMethodCreateParams::Upi), us_bank_account: T.nilable(::Stripe::PaymentMethodCreateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethodCreateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethodCreateParams::Zip)).void + params(acss_debit: T.nilable(::Stripe::PaymentMethodCreateParams::AcssDebit), affirm: T.nilable(::Stripe::PaymentMethodCreateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethodCreateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethodCreateParams::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentMethodCreateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethodCreateParams::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentMethodCreateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethodCreateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethodCreateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethodCreateParams::Billie), billing_details: T.nilable(::Stripe::PaymentMethodCreateParams::BillingDetails), bizum: T.nilable(::Stripe::PaymentMethodCreateParams::Bizum), blik: T.nilable(::Stripe::PaymentMethodCreateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethodCreateParams::Boleto), card: T.nilable(::Stripe::PaymentMethodCreateParams::Card), cashapp: T.nilable(::Stripe::PaymentMethodCreateParams::Cashapp), crypto: T.nilable(::Stripe::PaymentMethodCreateParams::Crypto), custom: T.nilable(::Stripe::PaymentMethodCreateParams::Custom), customer: T.nilable(String), customer_balance: T.nilable(::Stripe::PaymentMethodCreateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethodCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethodCreateParams::Fpx), giropay: T.nilable(::Stripe::PaymentMethodCreateParams::Giropay), grabpay: T.nilable(::Stripe::PaymentMethodCreateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethodCreateParams::Ideal), interac_present: T.nilable(::Stripe::PaymentMethodCreateParams::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentMethodCreateParams::KakaoPay), klarna: T.nilable(::Stripe::PaymentMethodCreateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethodCreateParams::Konbini), kr_card: T.nilable(::Stripe::PaymentMethodCreateParams::KrCard), link: T.nilable(::Stripe::PaymentMethodCreateParams::Link), mb_way: T.nilable(::Stripe::PaymentMethodCreateParams::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentMethodCreateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethodCreateParams::Multibanco), naver_pay: T.nilable(::Stripe::PaymentMethodCreateParams::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentMethodCreateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethodCreateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethodCreateParams::P24), pay_by_bank: T.nilable(::Stripe::PaymentMethodCreateParams::PayByBank), payco: T.nilable(::Stripe::PaymentMethodCreateParams::Payco), payment_method: T.nilable(String), paynow: T.nilable(::Stripe::PaymentMethodCreateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethodCreateParams::Paypal), payto: T.nilable(::Stripe::PaymentMethodCreateParams::Payto), pix: T.nilable(::Stripe::PaymentMethodCreateParams::Pix), promptpay: T.nilable(::Stripe::PaymentMethodCreateParams::Promptpay), radar_options: T.nilable(::Stripe::PaymentMethodCreateParams::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentMethodCreateParams::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentMethodCreateParams::SamsungPay), satispay: T.nilable(::Stripe::PaymentMethodCreateParams::Satispay), scalapay: T.nilable(::Stripe::PaymentMethodCreateParams::Scalapay), sepa_debit: T.nilable(::Stripe::PaymentMethodCreateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethodCreateParams::Sofort), sunbit: T.nilable(::Stripe::PaymentMethodCreateParams::Sunbit), swish: T.nilable(::Stripe::PaymentMethodCreateParams::Swish), twint: T.nilable(::Stripe::PaymentMethodCreateParams::Twint), type: T.nilable(String), upi: T.nilable(::Stripe::PaymentMethodCreateParams::Upi), us_bank_account: T.nilable(::Stripe::PaymentMethodCreateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethodCreateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethodCreateParams::Zip)).void } def initialize( acss_debit: nil, @@ -926,6 +942,7 @@ module Stripe bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, card: nil, @@ -966,6 +983,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, diff --git a/rbi/stripe/params/payout_create_params.rbi b/rbi/stripe/params/payout_create_params.rbi index e2c452a32..00bc94c0e 100644 --- a/rbi/stripe/params/payout_create_params.rbi +++ b/rbi/stripe/params/payout_create_params.rbi @@ -51,7 +51,7 @@ module Stripe def source_type; end sig { params(_source_type: T.nilable(String)).returns(T.nilable(String)) } def source_type=(_source_type); end - # A string that displays on the recipient's bank or card statement (up to 22 characters). A `statement_descriptor` that's longer than 22 characters return an error. Most banks truncate this information and display it inconsistently. Some banks might not display it at all. + # A string that displays on the recipient's bank or card statement (up to 22 characters). A `statement_descriptor` that's longer than 22 characters return an error. Most banks truncate this information and display it inconsistently. Some banks might not display it at all. For US ACH payouts, this maps to the ACH Company Entry Description field, which the NACHA standard limits to 10 characters. Stripe truncates descriptors longer than 10 characters for US ACH payouts. sig { returns(T.nilable(String)) } def statement_descriptor; end sig { params(_statement_descriptor: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/setup_intent_confirm_params.rbi b/rbi/stripe/params/setup_intent_confirm_params.rbi index 9563502b5..5fde75ed8 100644 --- a/rbi/stripe/params/setup_intent_confirm_params.rbi +++ b/rbi/stripe/params/setup_intent_confirm_params.rbi @@ -203,6 +203,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) @@ -393,6 +394,7 @@ module Stripe class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } @@ -580,6 +582,13 @@ module Stripe params(_billing_details: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::BillingDetails)).returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::BillingDetails)) } def billing_details=(_billing_details); end + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + sig { returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Bizum)).returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Bizum)) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. sig { returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Blik)) } def blik; end @@ -689,7 +698,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::KrCard)).returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::KrCard)) } def kr_card=(_kr_card); end - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Link)) } def link; end sig { @@ -833,6 +842,13 @@ module Stripe params(_satispay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Satispay)).returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Satispay)) } def satispay=(_satispay); end + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + sig { returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Scalapay)) } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Scalapay)).returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Scalapay)) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. sig { returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::SepaDebit)) } def sepa_debit; end @@ -904,7 +920,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Zip)).void + params(acss_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::BillingDetails), bizum: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Bizum), blik: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Satispay), scalapay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Scalapay), sepa_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Zip)).void } def initialize( acss_debit: nil, @@ -919,6 +935,7 @@ module Stripe bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -954,6 +971,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -1058,6 +1076,7 @@ module Stripe } def initialize(mandate_options: nil); end end + class Bizum < ::Stripe::RequestParams; end class Card < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments, specified in the presentment currency. @@ -1783,6 +1802,13 @@ module Stripe params(_bacs_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::BacsDebit)).returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::BacsDebit)) } def bacs_debit=(_bacs_debit); end + # If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + sig { returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Bizum)).returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Bizum)) + } + def bizum=(_bizum); end # Configuration for any card setup attempted on this SetupIntent. sig { returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Card)) } def card; end @@ -1806,7 +1832,7 @@ module Stripe params(_klarna: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Klarna)).returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Klarna)) } def klarna=(_klarna); end - # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Link)) } def link; end sig { @@ -1860,12 +1886,13 @@ module Stripe } def us_bank_account=(_us_bank_account); end sig { - params(acss_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::AcssDebit), amazon_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::AmazonPay), bacs_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::BacsDebit), card: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::CardPresent), klarna: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Klarna), link: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Link), paypal: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Pix), sepa_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::SepaDebit), upi: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::UsBankAccount)).void + params(acss_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::AcssDebit), amazon_pay: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::AmazonPay), bacs_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::BacsDebit), bizum: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Bizum), card: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::CardPresent), klarna: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Klarna), link: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Link), paypal: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Pix), sepa_debit: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::SepaDebit), upi: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodOptions::UsBankAccount)).void } def initialize( acss_debit: nil, amazon_pay: nil, bacs_debit: nil, + bizum: nil, card: nil, card_present: nil, klarna: nil, diff --git a/rbi/stripe/params/setup_intent_create_params.rbi b/rbi/stripe/params/setup_intent_create_params.rbi index ea08b1ae6..0fa0942f6 100644 --- a/rbi/stripe/params/setup_intent_create_params.rbi +++ b/rbi/stripe/params/setup_intent_create_params.rbi @@ -217,6 +217,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) @@ -407,6 +408,7 @@ module Stripe class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } @@ -594,6 +596,13 @@ module Stripe params(_billing_details: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::BillingDetails)).returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::BillingDetails)) } def billing_details=(_billing_details); end + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + sig { returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Bizum)).returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Bizum)) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. sig { returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Blik)) } def blik; end @@ -703,7 +712,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::KrCard)).returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::KrCard)) } def kr_card=(_kr_card); end - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Link)) } def link; end sig { @@ -845,6 +854,13 @@ module Stripe params(_satispay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Satispay)).returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Satispay)) } def satispay=(_satispay); end + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + sig { returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Scalapay)) } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Scalapay)).returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Scalapay)) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. sig { returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::SepaDebit)) } def sepa_debit; end @@ -916,7 +932,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Zip)).void + params(acss_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::BillingDetails), bizum: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Bizum), blik: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Satispay), scalapay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Scalapay), sepa_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Zip)).void } def initialize( acss_debit: nil, @@ -931,6 +947,7 @@ module Stripe bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -966,6 +983,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -1070,6 +1088,7 @@ module Stripe } def initialize(mandate_options: nil); end end + class Bizum < ::Stripe::RequestParams; end class Card < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments, specified in the presentment currency. @@ -1789,6 +1808,13 @@ module Stripe params(_bacs_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::BacsDebit)).returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::BacsDebit)) } def bacs_debit=(_bacs_debit); end + # If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + sig { returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Bizum)).returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Bizum)) + } + def bizum=(_bizum); end # Configuration for any card setup attempted on this SetupIntent. sig { returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Card)) } def card; end @@ -1812,7 +1838,7 @@ module Stripe params(_klarna: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Klarna)).returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Klarna)) } def klarna=(_klarna); end - # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Link)) } def link; end sig { @@ -1864,12 +1890,13 @@ module Stripe } def us_bank_account=(_us_bank_account); end sig { - params(acss_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::AcssDebit), amazon_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::AmazonPay), bacs_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::BacsDebit), card: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::CardPresent), klarna: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Klarna), link: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Link), paypal: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Pix), sepa_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::SepaDebit), upi: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::UsBankAccount)).void + params(acss_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::AcssDebit), amazon_pay: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::AmazonPay), bacs_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::BacsDebit), bizum: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Bizum), card: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::CardPresent), klarna: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Klarna), link: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Link), paypal: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Pix), sepa_debit: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::SepaDebit), upi: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodOptions::UsBankAccount)).void } def initialize( acss_debit: nil, amazon_pay: nil, bacs_debit: nil, + bizum: nil, card: nil, card_present: nil, klarna: nil, diff --git a/rbi/stripe/params/setup_intent_update_params.rbi b/rbi/stripe/params/setup_intent_update_params.rbi index 19686b982..8e63c2673 100644 --- a/rbi/stripe/params/setup_intent_update_params.rbi +++ b/rbi/stripe/params/setup_intent_update_params.rbi @@ -139,6 +139,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) @@ -329,6 +330,7 @@ module Stripe class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } @@ -516,6 +518,13 @@ module Stripe params(_billing_details: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::BillingDetails)).returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::BillingDetails)) } def billing_details=(_billing_details); end + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + sig { returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Bizum)).returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Bizum)) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. sig { returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Blik)) } def blik; end @@ -625,7 +634,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::KrCard)).returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::KrCard)) } def kr_card=(_kr_card); end - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Link)) } def link; end sig { @@ -767,6 +776,13 @@ module Stripe params(_satispay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Satispay)).returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Satispay)) } def satispay=(_satispay); end + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + sig { returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Scalapay)) } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Scalapay)).returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Scalapay)) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. sig { returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::SepaDebit)) } def sepa_debit; end @@ -838,7 +854,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Zip)).void + params(acss_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::BillingDetails), bizum: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Bizum), blik: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Satispay), scalapay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Scalapay), sepa_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Zip)).void } def initialize( acss_debit: nil, @@ -853,6 +869,7 @@ module Stripe bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -888,6 +905,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, @@ -992,6 +1010,7 @@ module Stripe } def initialize(mandate_options: nil); end end + class Bizum < ::Stripe::RequestParams; end class Card < ::Stripe::RequestParams class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments, specified in the presentment currency. @@ -1711,6 +1730,13 @@ module Stripe params(_bacs_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::BacsDebit)).returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::BacsDebit)) } def bacs_debit=(_bacs_debit); end + # If this is a `bizum` SetupIntent, this sub-hash contains details about the Bizum payment method options. + sig { returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Bizum)) } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Bizum)).returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Bizum)) + } + def bizum=(_bizum); end # Configuration for any card setup attempted on this SetupIntent. sig { returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Card)) } def card; end @@ -1734,7 +1760,7 @@ module Stripe params(_klarna: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Klarna)).returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Klarna)) } def klarna=(_klarna); end - # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. + # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Link)) } def link; end sig { @@ -1786,12 +1812,13 @@ module Stripe } def us_bank_account=(_us_bank_account); end sig { - params(acss_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::AcssDebit), amazon_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::AmazonPay), bacs_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::BacsDebit), card: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::CardPresent), klarna: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Klarna), link: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Link), paypal: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Pix), sepa_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::SepaDebit), upi: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::UsBankAccount)).void + params(acss_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::AcssDebit), amazon_pay: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::AmazonPay), bacs_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::BacsDebit), bizum: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Bizum), card: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::CardPresent), klarna: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Klarna), link: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Link), paypal: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Paypal), payto: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Payto), pix: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Pix), sepa_debit: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::SepaDebit), upi: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Upi), us_bank_account: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodOptions::UsBankAccount)).void } def initialize( acss_debit: nil, amazon_pay: nil, bacs_debit: nil, + bizum: nil, card: nil, card_present: nil, klarna: nil, diff --git a/rbi/stripe/params/subscription_create_params.rbi b/rbi/stripe/params/subscription_create_params.rbi index 423d50b24..2434ee67c 100644 --- a/rbi/stripe/params/subscription_create_params.rbi +++ b/rbi/stripe/params/subscription_create_params.rbi @@ -114,6 +114,11 @@ module Stripe @field_encodings = {unit_amount_decimal: :decimal_string} end end + # Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + sig { returns(T.nilable(T::Boolean)) } + def discountable; end + sig { params(_discountable: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def discountable=(_discountable); end # The coupons to redeem into discounts for the item. sig { returns(T.nilable(T::Array[::Stripe::SubscriptionCreateParams::AddInvoiceItem::Discount])) @@ -162,9 +167,10 @@ module Stripe } def tax_rates=(_tax_rates); end sig { - params(discounts: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::SubscriptionCreateParams::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionCreateParams::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void + params(discountable: T.nilable(T::Boolean), discounts: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::SubscriptionCreateParams::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionCreateParams::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void } def initialize( + discountable: nil, discounts: nil, metadata: nil, period: nil, @@ -269,6 +275,86 @@ module Stripe } def initialize(flexible: nil, type: nil); end end + class BillingSchedule < ::Stripe::RequestParams + class AppliesTo < ::Stripe::RequestParams + # The ID of the price object. + sig { returns(T.nilable(String)) } + def price; end + sig { params(_price: T.nilable(String)).returns(T.nilable(String)) } + def price=(_price); end + # Controls which subscription items the billing schedule applies to. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(price: T.nilable(String), type: String).void } + def initialize(price: nil, type: nil); end + end + class BillUntil < ::Stripe::RequestParams + class Duration < ::Stripe::RequestParams + # Specifies billing duration. Either `day`, `week`, `month` or `year`. + sig { returns(String) } + def interval; end + sig { params(_interval: String).returns(String) } + def interval=(_interval); end + # The multiplier applied to the interval. + sig { returns(T.nilable(Integer)) } + def interval_count; end + sig { params(_interval_count: T.nilable(Integer)).returns(T.nilable(Integer)) } + def interval_count=(_interval_count); end + sig { params(interval: String, interval_count: T.nilable(Integer)).void } + def initialize(interval: nil, interval_count: nil); end + end + # Specifies the billing period. + sig { + returns(T.nilable(::Stripe::SubscriptionCreateParams::BillingSchedule::BillUntil::Duration)) + } + def duration; end + sig { + params(_duration: T.nilable(::Stripe::SubscriptionCreateParams::BillingSchedule::BillUntil::Duration)).returns(T.nilable(::Stripe::SubscriptionCreateParams::BillingSchedule::BillUntil::Duration)) + } + def duration=(_duration); end + # The end date of the billing schedule. + sig { returns(T.nilable(Integer)) } + def timestamp; end + sig { params(_timestamp: T.nilable(Integer)).returns(T.nilable(Integer)) } + def timestamp=(_timestamp); end + # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(duration: T.nilable(::Stripe::SubscriptionCreateParams::BillingSchedule::BillUntil::Duration), timestamp: T.nilable(Integer), type: String).void + } + def initialize(duration: nil, timestamp: nil, type: nil); end + end + # Configure billing schedule differently for individual subscription items. + sig { + returns(T.nilable(T::Array[::Stripe::SubscriptionCreateParams::BillingSchedule::AppliesTo])) + } + def applies_to; end + sig { + params(_applies_to: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::BillingSchedule::AppliesTo])).returns(T.nilable(T::Array[::Stripe::SubscriptionCreateParams::BillingSchedule::AppliesTo])) + } + def applies_to=(_applies_to); end + # The end date for the billing schedule. + sig { returns(::Stripe::SubscriptionCreateParams::BillingSchedule::BillUntil) } + def bill_until; end + sig { + params(_bill_until: ::Stripe::SubscriptionCreateParams::BillingSchedule::BillUntil).returns(::Stripe::SubscriptionCreateParams::BillingSchedule::BillUntil) + } + def bill_until=(_bill_until); end + # Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + sig { returns(T.nilable(String)) } + def key; end + sig { params(_key: T.nilable(String)).returns(T.nilable(String)) } + def key=(_key); end + sig { + params(applies_to: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::BillingSchedule::AppliesTo]), bill_until: ::Stripe::SubscriptionCreateParams::BillingSchedule::BillUntil, key: T.nilable(String)).void + } + def initialize(applies_to: nil, bill_until: nil, key: nil); end + end class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period sig { returns(T.nilable(Integer)) } @@ -1057,6 +1143,13 @@ module Stripe params(_billing_mode: T.nilable(::Stripe::SubscriptionCreateParams::BillingMode)).returns(T.nilable(::Stripe::SubscriptionCreateParams::BillingMode)) } def billing_mode=(_billing_mode); end + # Sets the billing schedules for the subscription. + sig { returns(T.nilable(T::Array[::Stripe::SubscriptionCreateParams::BillingSchedule])) } + def billing_schedules; end + sig { + params(_billing_schedules: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::BillingSchedule])).returns(T.nilable(T::Array[::Stripe::SubscriptionCreateParams::BillingSchedule])) + } + def billing_schedules=(_billing_schedules); end # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. sig { returns(T.nilable(T.any(String, ::Stripe::SubscriptionCreateParams::BillingThresholds))) } def billing_thresholds; end @@ -1168,17 +1261,7 @@ module Stripe def on_behalf_of; end sig { params(_on_behalf_of: T.nilable(String)).returns(T.nilable(String)) } def on_behalf_of=(_on_behalf_of); end - # Only applies to subscriptions with `collection_method=charge_automatically`. - # - # Use `allow_incomplete` to create Subscriptions with `status=incomplete` if the first invoice can't be paid. Creating Subscriptions with this status allows you to manage scenarios where additional customer actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - # - # Use `default_incomplete` to create Subscriptions with `status=incomplete` when the first invoice requires payment, otherwise start as active. Subscriptions transition to `status=active` when successfully confirming the PaymentIntent on the first invoice. This allows simpler management of scenarios where additional customer actions are needed to pay a subscription’s invoice, such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. If the PaymentIntent is not confirmed within 23 hours Subscriptions transition to `status=incomplete_expired`, which is a terminal state. - # - # Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice can't be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further customer action is needed, this parameter doesn't create a Subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/upgrades#2019-03-14) to learn more. - # - # `pending_if_incomplete` is only used with updates and cannot be passed when creating a Subscription. - # - # Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status. + # Controls how Stripe handles the first invoice when payment is required and `collection_method=charge_automatically`. Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status. sig { returns(T.nilable(String)) } def payment_behavior; end sig { params(_payment_behavior: T.nilable(String)).returns(T.nilable(String)) } @@ -1236,7 +1319,7 @@ module Stripe } def trial_settings=(_trial_settings); end sig { - params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::AddInvoiceItem]), application_fee_percent: T.nilable(T.any(String, Float)), automatic_tax: T.nilable(::Stripe::SubscriptionCreateParams::AutomaticTax), backdate_start_date: T.nilable(Integer), billing_cycle_anchor: T.nilable(Integer), billing_cycle_anchor_config: T.nilable(::Stripe::SubscriptionCreateParams::BillingCycleAnchorConfig), billing_mode: T.nilable(::Stripe::SubscriptionCreateParams::BillingMode), billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionCreateParams::BillingThresholds)), cancel_at: T.nilable(T.any(Integer, String)), cancel_at_period_end: T.nilable(T::Boolean), collection_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), customer_account: T.nilable(String), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionCreateParams::Discount])), expand: T.nilable(T::Array[String]), invoice_settings: T.nilable(::Stripe::SubscriptionCreateParams::InvoiceSettings), items: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::Item]), metadata: T.nilable(T.any(String, T::Hash[String, String])), off_session: T.nilable(T::Boolean), on_behalf_of: T.nilable(String), payment_behavior: T.nilable(String), payment_settings: T.nilable(::Stripe::SubscriptionCreateParams::PaymentSettings), pending_invoice_item_interval: T.nilable(T.any(String, ::Stripe::SubscriptionCreateParams::PendingInvoiceItemInterval)), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::SubscriptionCreateParams::TransferData), trial_end: T.nilable(T.any(String, Integer)), trial_from_plan: T.nilable(T::Boolean), trial_period_days: T.nilable(Integer), trial_settings: T.nilable(::Stripe::SubscriptionCreateParams::TrialSettings)).void + params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::AddInvoiceItem]), application_fee_percent: T.nilable(T.any(String, Float)), automatic_tax: T.nilable(::Stripe::SubscriptionCreateParams::AutomaticTax), backdate_start_date: T.nilable(Integer), billing_cycle_anchor: T.nilable(Integer), billing_cycle_anchor_config: T.nilable(::Stripe::SubscriptionCreateParams::BillingCycleAnchorConfig), billing_mode: T.nilable(::Stripe::SubscriptionCreateParams::BillingMode), billing_schedules: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::BillingSchedule]), billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionCreateParams::BillingThresholds)), cancel_at: T.nilable(T.any(Integer, String)), cancel_at_period_end: T.nilable(T::Boolean), collection_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), customer_account: T.nilable(String), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionCreateParams::Discount])), expand: T.nilable(T::Array[String]), invoice_settings: T.nilable(::Stripe::SubscriptionCreateParams::InvoiceSettings), items: T.nilable(T::Array[::Stripe::SubscriptionCreateParams::Item]), metadata: T.nilable(T.any(String, T::Hash[String, String])), off_session: T.nilable(T::Boolean), on_behalf_of: T.nilable(String), payment_behavior: T.nilable(String), payment_settings: T.nilable(::Stripe::SubscriptionCreateParams::PaymentSettings), pending_invoice_item_interval: T.nilable(T.any(String, ::Stripe::SubscriptionCreateParams::PendingInvoiceItemInterval)), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::SubscriptionCreateParams::TransferData), trial_end: T.nilable(T.any(String, Integer)), trial_from_plan: T.nilable(T::Boolean), trial_period_days: T.nilable(Integer), trial_settings: T.nilable(::Stripe::SubscriptionCreateParams::TrialSettings)).void } def initialize( add_invoice_items: nil, @@ -1246,6 +1329,7 @@ module Stripe billing_cycle_anchor: nil, billing_cycle_anchor_config: nil, billing_mode: nil, + billing_schedules: nil, billing_thresholds: nil, cancel_at: nil, cancel_at_period_end: nil, diff --git a/rbi/stripe/params/subscription_item_create_params.rbi b/rbi/stripe/params/subscription_item_create_params.rbi index 27d2f30b2..339003d70 100644 --- a/rbi/stripe/params/subscription_item_create_params.rbi +++ b/rbi/stripe/params/subscription_item_create_params.rbi @@ -126,13 +126,7 @@ module Stripe params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) } def metadata=(_metadata); end - # Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - # - # Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - # - # Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - # - # Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + # Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. sig { returns(T.nilable(String)) } def payment_behavior; end sig { params(_payment_behavior: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/subscription_item_delete_params.rbi b/rbi/stripe/params/subscription_item_delete_params.rbi index d0b1f648b..ce5e5c82f 100644 --- a/rbi/stripe/params/subscription_item_delete_params.rbi +++ b/rbi/stripe/params/subscription_item_delete_params.rbi @@ -9,13 +9,7 @@ module Stripe def clear_usage; end sig { params(_clear_usage: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } def clear_usage=(_clear_usage); end - # Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - # - # Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - # - # Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - # - # Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + # Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. sig { returns(T.nilable(String)) } def payment_behavior; end sig { params(_payment_behavior: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/subscription_item_update_params.rbi b/rbi/stripe/params/subscription_item_update_params.rbi index c7b437256..b43983a4f 100644 --- a/rbi/stripe/params/subscription_item_update_params.rbi +++ b/rbi/stripe/params/subscription_item_update_params.rbi @@ -131,13 +131,7 @@ module Stripe def off_session; end sig { params(_off_session: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } def off_session=(_off_session); end - # Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - # - # Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - # - # Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - # - # Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + # Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. sig { returns(T.nilable(String)) } def payment_behavior; end sig { params(_payment_behavior: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/subscription_schedule_create_params.rbi b/rbi/stripe/params/subscription_schedule_create_params.rbi index 96dc3006f..b6875eaaa 100644 --- a/rbi/stripe/params/subscription_schedule_create_params.rbi +++ b/rbi/stripe/params/subscription_schedule_create_params.rbi @@ -336,6 +336,11 @@ module Stripe @field_encodings = {unit_amount_decimal: :decimal_string} end end + # Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + sig { returns(T.nilable(T::Boolean)) } + def discountable; end + sig { params(_discountable: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def discountable=(_discountable); end # The coupons to redeem into discounts for the item. sig { returns(T.nilable(T::Array[::Stripe::SubscriptionScheduleCreateParams::Phase::AddInvoiceItem::Discount])) @@ -388,9 +393,10 @@ module Stripe } def tax_rates=(_tax_rates); end sig { - params(discounts: T.nilable(T::Array[::Stripe::SubscriptionScheduleCreateParams::Phase::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::SubscriptionScheduleCreateParams::Phase::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionScheduleCreateParams::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void + params(discountable: T.nilable(T::Boolean), discounts: T.nilable(T::Array[::Stripe::SubscriptionScheduleCreateParams::Phase::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::SubscriptionScheduleCreateParams::Phase::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionScheduleCreateParams::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void } def initialize( + discountable: nil, discounts: nil, metadata: nil, period: nil, diff --git a/rbi/stripe/params/subscription_schedule_update_params.rbi b/rbi/stripe/params/subscription_schedule_update_params.rbi index aa51acf81..a63ff93c4 100644 --- a/rbi/stripe/params/subscription_schedule_update_params.rbi +++ b/rbi/stripe/params/subscription_schedule_update_params.rbi @@ -309,6 +309,11 @@ module Stripe @field_encodings = {unit_amount_decimal: :decimal_string} end end + # Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + sig { returns(T.nilable(T::Boolean)) } + def discountable; end + sig { params(_discountable: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def discountable=(_discountable); end # The coupons to redeem into discounts for the item. sig { returns(T.nilable(T::Array[::Stripe::SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem::Discount])) @@ -361,9 +366,10 @@ module Stripe } def tax_rates=(_tax_rates); end sig { - params(discounts: T.nilable(T::Array[::Stripe::SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void + params(discountable: T.nilable(T::Boolean), discounts: T.nilable(T::Array[::Stripe::SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void } def initialize( + discountable: nil, discounts: nil, metadata: nil, period: nil, diff --git a/rbi/stripe/params/subscription_update_params.rbi b/rbi/stripe/params/subscription_update_params.rbi index d8134333a..e2a57ef86 100644 --- a/rbi/stripe/params/subscription_update_params.rbi +++ b/rbi/stripe/params/subscription_update_params.rbi @@ -114,6 +114,11 @@ module Stripe @field_encodings = {unit_amount_decimal: :decimal_string} end end + # Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + sig { returns(T.nilable(T::Boolean)) } + def discountable; end + sig { params(_discountable: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def discountable=(_discountable); end # The coupons to redeem into discounts for the item. sig { returns(T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::AddInvoiceItem::Discount])) @@ -162,9 +167,10 @@ module Stripe } def tax_rates=(_tax_rates); end sig { - params(discounts: T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::SubscriptionUpdateParams::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionUpdateParams::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void + params(discountable: T.nilable(T::Boolean), discounts: T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::AddInvoiceItem::Discount]), metadata: T.nilable(T::Hash[String, String]), period: T.nilable(::Stripe::SubscriptionUpdateParams::AddInvoiceItem::Period), price: T.nilable(String), price_data: T.nilable(::Stripe::SubscriptionUpdateParams::AddInvoiceItem::PriceData), quantity: T.nilable(Integer), tax_rates: T.nilable(T.any(String, T::Array[String]))).void } def initialize( + discountable: nil, discounts: nil, metadata: nil, period: nil, @@ -211,6 +217,86 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end + class BillingSchedule < ::Stripe::RequestParams + class AppliesTo < ::Stripe::RequestParams + # The ID of the price object. + sig { returns(T.nilable(String)) } + def price; end + sig { params(_price: T.nilable(String)).returns(T.nilable(String)) } + def price=(_price); end + # Controls which subscription items the billing schedule applies to. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(price: T.nilable(String), type: String).void } + def initialize(price: nil, type: nil); end + end + class BillUntil < ::Stripe::RequestParams + class Duration < ::Stripe::RequestParams + # Specifies billing duration. Either `day`, `week`, `month` or `year`. + sig { returns(String) } + def interval; end + sig { params(_interval: String).returns(String) } + def interval=(_interval); end + # The multiplier applied to the interval. + sig { returns(T.nilable(Integer)) } + def interval_count; end + sig { params(_interval_count: T.nilable(Integer)).returns(T.nilable(Integer)) } + def interval_count=(_interval_count); end + sig { params(interval: String, interval_count: T.nilable(Integer)).void } + def initialize(interval: nil, interval_count: nil); end + end + # Specifies the billing period. + sig { + returns(T.nilable(::Stripe::SubscriptionUpdateParams::BillingSchedule::BillUntil::Duration)) + } + def duration; end + sig { + params(_duration: T.nilable(::Stripe::SubscriptionUpdateParams::BillingSchedule::BillUntil::Duration)).returns(T.nilable(::Stripe::SubscriptionUpdateParams::BillingSchedule::BillUntil::Duration)) + } + def duration=(_duration); end + # The end date of the billing schedule. + sig { returns(T.nilable(Integer)) } + def timestamp; end + sig { params(_timestamp: T.nilable(Integer)).returns(T.nilable(Integer)) } + def timestamp=(_timestamp); end + # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(duration: T.nilable(::Stripe::SubscriptionUpdateParams::BillingSchedule::BillUntil::Duration), timestamp: T.nilable(Integer), type: String).void + } + def initialize(duration: nil, timestamp: nil, type: nil); end + end + # Configure billing schedule differently for individual subscription items. + sig { + returns(T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::BillingSchedule::AppliesTo])) + } + def applies_to; end + sig { + params(_applies_to: T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::BillingSchedule::AppliesTo])).returns(T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::BillingSchedule::AppliesTo])) + } + def applies_to=(_applies_to); end + # The end date for the billing schedule. + sig { returns(T.nilable(::Stripe::SubscriptionUpdateParams::BillingSchedule::BillUntil)) } + def bill_until; end + sig { + params(_bill_until: T.nilable(::Stripe::SubscriptionUpdateParams::BillingSchedule::BillUntil)).returns(T.nilable(::Stripe::SubscriptionUpdateParams::BillingSchedule::BillUntil)) + } + def bill_until=(_bill_until); end + # Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated. + sig { returns(T.nilable(String)) } + def key; end + sig { params(_key: T.nilable(String)).returns(T.nilable(String)) } + def key=(_key); end + sig { + params(applies_to: T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::BillingSchedule::AppliesTo]), bill_until: T.nilable(::Stripe::SubscriptionUpdateParams::BillingSchedule::BillUntil), key: T.nilable(String)).void + } + def initialize(applies_to: nil, bill_until: nil, key: nil); end + end class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period sig { returns(T.nilable(Integer)) } @@ -1028,6 +1114,15 @@ module Stripe def billing_cycle_anchor; end sig { params(_billing_cycle_anchor: T.nilable(String)).returns(T.nilable(String)) } def billing_cycle_anchor=(_billing_cycle_anchor); end + # Sets the billing schedules for the subscription. + sig { + returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::BillingSchedule]))) + } + def billing_schedules; end + sig { + params(_billing_schedules: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::BillingSchedule]))).returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::BillingSchedule]))) + } + def billing_schedules=(_billing_schedules); end # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds. sig { returns(T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::BillingThresholds))) } def billing_thresholds; end @@ -1086,7 +1181,7 @@ module Stripe def description; end sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } def description=(_description); end - # The coupons to redeem into discounts for the subscription. If not specified or empty, inherits the discount from the subscription's customer. + # The coupons to redeem into discounts for the subscription. A populated array overwrites the existing discounts on the subscription. If not specified or empty array, it leaves the subscription's discounts unchanged. If empty string, it clears the subscription's discounts. sig { returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::Discount]))) } @@ -1138,13 +1233,7 @@ module Stripe params(_pause_collection: T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::PauseCollection))).returns(T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::PauseCollection))) } def pause_collection=(_pause_collection); end - # Use `allow_incomplete` to transition the subscription to `status=past_due` if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. - # - # Use `default_incomplete` to transition the subscription to `status=past_due` when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, [SCA regulation](https://docs.stripe.com/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. - # - # Use `pending_if_incomplete` to update the subscription using [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://docs.stripe.com/billing/pending-updates-reference#supported-attributes). - # - # Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://docs.stripe.com/changelog/2019-03-14) to learn more. + # Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`. sig { returns(T.nilable(String)) } def payment_behavior; end sig { params(_payment_behavior: T.nilable(String)).returns(T.nilable(String)) } @@ -1202,13 +1291,14 @@ module Stripe } def trial_settings=(_trial_settings); end sig { - params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::AddInvoiceItem]), application_fee_percent: T.nilable(T.any(String, Float)), automatic_tax: T.nilable(::Stripe::SubscriptionUpdateParams::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::BillingThresholds)), cancel_at: T.nilable(T.any(String, T.any(Integer, String))), cancel_at_period_end: T.nilable(T::Boolean), cancellation_details: T.nilable(::Stripe::SubscriptionUpdateParams::CancellationDetails), collection_method: T.nilable(String), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::Discount])), expand: T.nilable(T::Array[String]), invoice_settings: T.nilable(::Stripe::SubscriptionUpdateParams::InvoiceSettings), items: T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::Item]), metadata: T.nilable(T.any(String, T::Hash[String, String])), off_session: T.nilable(T::Boolean), on_behalf_of: T.nilable(String), pause_collection: T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::PauseCollection)), payment_behavior: T.nilable(String), payment_settings: T.nilable(::Stripe::SubscriptionUpdateParams::PaymentSettings), pending_invoice_item_interval: T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::PendingInvoiceItemInterval)), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), transfer_data: T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::TransferData)), trial_end: T.nilable(T.any(String, Integer)), trial_from_plan: T.nilable(T::Boolean), trial_settings: T.nilable(::Stripe::SubscriptionUpdateParams::TrialSettings)).void + params(add_invoice_items: T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::AddInvoiceItem]), application_fee_percent: T.nilable(T.any(String, Float)), automatic_tax: T.nilable(::Stripe::SubscriptionUpdateParams::AutomaticTax), billing_cycle_anchor: T.nilable(String), billing_schedules: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::BillingSchedule])), billing_thresholds: T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::BillingThresholds)), cancel_at: T.nilable(T.any(String, T.any(Integer, String))), cancel_at_period_end: T.nilable(T::Boolean), cancellation_details: T.nilable(::Stripe::SubscriptionUpdateParams::CancellationDetails), collection_method: T.nilable(String), days_until_due: T.nilable(Integer), default_payment_method: T.nilable(String), default_source: T.nilable(String), default_tax_rates: T.nilable(T.any(String, T::Array[String])), description: T.nilable(String), discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::Discount])), expand: T.nilable(T::Array[String]), invoice_settings: T.nilable(::Stripe::SubscriptionUpdateParams::InvoiceSettings), items: T.nilable(T::Array[::Stripe::SubscriptionUpdateParams::Item]), metadata: T.nilable(T.any(String, T::Hash[String, String])), off_session: T.nilable(T::Boolean), on_behalf_of: T.nilable(String), pause_collection: T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::PauseCollection)), payment_behavior: T.nilable(String), payment_settings: T.nilable(::Stripe::SubscriptionUpdateParams::PaymentSettings), pending_invoice_item_interval: T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::PendingInvoiceItemInterval)), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), transfer_data: T.nilable(T.any(String, ::Stripe::SubscriptionUpdateParams::TransferData)), trial_end: T.nilable(T.any(String, Integer)), trial_from_plan: T.nilable(T::Boolean), trial_settings: T.nilable(::Stripe::SubscriptionUpdateParams::TrialSettings)).void } def initialize( add_invoice_items: nil, application_fee_percent: nil, automatic_tax: nil, billing_cycle_anchor: nil, + billing_schedules: nil, billing_thresholds: nil, cancel_at: nil, cancel_at_period_end: nil, diff --git a/rbi/stripe/params/terminal/configuration_create_params.rbi b/rbi/stripe/params/terminal/configuration_create_params.rbi index d720eefb7..e454aeb59 100644 --- a/rbi/stripe/params/terminal/configuration_create_params.rbi +++ b/rbi/stripe/params/terminal/configuration_create_params.rbi @@ -773,6 +773,15 @@ module Stripe usd: nil ); end end + class VerifoneM425 < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + sig { returns(T.nilable(String)) } + def splashscreen; end + sig { params(_splashscreen: T.nilable(String)).returns(T.nilable(String)) } + def splashscreen=(_splashscreen); end + sig { params(splashscreen: T.nilable(String)).void } + def initialize(splashscreen: nil); end + end class VerifoneP400 < ::Stripe::RequestParams # A File ID representing an image you want to display on the reader. sig { returns(T.nilable(String)) } @@ -782,6 +791,33 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end + class VerifoneP630 < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + sig { returns(T.nilable(String)) } + def splashscreen; end + sig { params(_splashscreen: T.nilable(String)).returns(T.nilable(String)) } + def splashscreen=(_splashscreen); end + sig { params(splashscreen: T.nilable(String)).void } + def initialize(splashscreen: nil); end + end + class VerifoneUx700 < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + sig { returns(T.nilable(String)) } + def splashscreen; end + sig { params(_splashscreen: T.nilable(String)).returns(T.nilable(String)) } + def splashscreen=(_splashscreen); end + sig { params(splashscreen: T.nilable(String)).void } + def initialize(splashscreen: nil); end + end + class VerifoneV660p < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + sig { returns(T.nilable(String)) } + def splashscreen; end + sig { params(_splashscreen: T.nilable(String)).returns(T.nilable(String)) } + def splashscreen=(_splashscreen); end + sig { params(splashscreen: T.nilable(String)).void } + def initialize(splashscreen: nil); end + end class Wifi < ::Stripe::RequestParams class EnterpriseEapPeap < ::Stripe::RequestParams # A File ID representing a PEM file containing the server certificate @@ -972,6 +1008,13 @@ module Stripe params(_tipping: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Tipping))).returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Tipping))) } def tipping=(_tipping); end + # An object containing device type specific settings for Verifone M425 readers. + sig { returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneM425)) } + def verifone_m425; end + sig { + params(_verifone_m425: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneM425)).returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneM425)) + } + def verifone_m425=(_verifone_m425); end # An object containing device type specific settings for Verifone P400 readers. sig { returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneP400)) } def verifone_p400; end @@ -979,6 +1022,27 @@ module Stripe params(_verifone_p400: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneP400)).returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneP400)) } def verifone_p400=(_verifone_p400); end + # An object containing device type specific settings for Verifone P630 readers. + sig { returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneP630)) } + def verifone_p630; end + sig { + params(_verifone_p630: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneP630)).returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneP630)) + } + def verifone_p630=(_verifone_p630); end + # An object containing device type specific settings for Verifone UX700 readers. + sig { returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneUx700)) } + def verifone_ux700; end + sig { + params(_verifone_ux700: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneUx700)).returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneUx700)) + } + def verifone_ux700=(_verifone_ux700); end + # An object containing device type specific settings for Verifone V660p readers. + sig { returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneV660p)) } + def verifone_v660p; end + sig { + params(_verifone_v660p: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneV660p)).returns(T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneV660p)) + } + def verifone_v660p=(_verifone_v660p); end # Configurations for connecting to a WiFi network. sig { returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Wifi))) } def wifi; end @@ -987,7 +1051,7 @@ module Stripe } def wifi=(_wifi); end sig { - params(bbpos_wisepad3: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::BbposWisepad3), bbpos_wisepos_e: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::BbposWiseposE), cellular: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Cellular)), expand: T.nilable(T::Array[String]), name: T.nilable(String), offline: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Offline)), reboot_window: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::RebootWindow), stripe_s700: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::StripeS700), stripe_s710: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::StripeS710), tipping: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Tipping)), verifone_p400: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneP400), wifi: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Wifi))).void + params(bbpos_wisepad3: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::BbposWisepad3), bbpos_wisepos_e: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::BbposWiseposE), cellular: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Cellular)), expand: T.nilable(T::Array[String]), name: T.nilable(String), offline: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Offline)), reboot_window: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::RebootWindow), stripe_s700: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::StripeS700), stripe_s710: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::StripeS710), tipping: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Tipping)), verifone_m425: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneM425), verifone_p400: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneP400), verifone_p630: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneP630), verifone_ux700: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneUx700), verifone_v660p: T.nilable(::Stripe::Terminal::ConfigurationCreateParams::VerifoneV660p), wifi: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationCreateParams::Wifi))).void } def initialize( bbpos_wisepad3: nil, @@ -1000,7 +1064,11 @@ module Stripe stripe_s700: nil, stripe_s710: nil, tipping: nil, + verifone_m425: nil, verifone_p400: nil, + verifone_p630: nil, + verifone_ux700: nil, + verifone_v660p: nil, wifi: nil ); end end diff --git a/rbi/stripe/params/terminal/configuration_update_params.rbi b/rbi/stripe/params/terminal/configuration_update_params.rbi index 3c6599691..1e781dd0a 100644 --- a/rbi/stripe/params/terminal/configuration_update_params.rbi +++ b/rbi/stripe/params/terminal/configuration_update_params.rbi @@ -773,6 +773,15 @@ module Stripe usd: nil ); end end + class VerifoneM425 < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + sig { returns(T.nilable(String)) } + def splashscreen; end + sig { params(_splashscreen: T.nilable(String)).returns(T.nilable(String)) } + def splashscreen=(_splashscreen); end + sig { params(splashscreen: T.nilable(String)).void } + def initialize(splashscreen: nil); end + end class VerifoneP400 < ::Stripe::RequestParams # A File ID representing an image you want to display on the reader. sig { returns(T.nilable(String)) } @@ -782,6 +791,33 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end + class VerifoneP630 < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + sig { returns(T.nilable(String)) } + def splashscreen; end + sig { params(_splashscreen: T.nilable(String)).returns(T.nilable(String)) } + def splashscreen=(_splashscreen); end + sig { params(splashscreen: T.nilable(String)).void } + def initialize(splashscreen: nil); end + end + class VerifoneUx700 < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + sig { returns(T.nilable(String)) } + def splashscreen; end + sig { params(_splashscreen: T.nilable(String)).returns(T.nilable(String)) } + def splashscreen=(_splashscreen); end + sig { params(splashscreen: T.nilable(String)).void } + def initialize(splashscreen: nil); end + end + class VerifoneV660p < ::Stripe::RequestParams + # A File ID representing an image you want to display on the reader. + sig { returns(T.nilable(String)) } + def splashscreen; end + sig { params(_splashscreen: T.nilable(String)).returns(T.nilable(String)) } + def splashscreen=(_splashscreen); end + sig { params(splashscreen: T.nilable(String)).void } + def initialize(splashscreen: nil); end + end class Wifi < ::Stripe::RequestParams class EnterpriseEapPeap < ::Stripe::RequestParams # A File ID representing a PEM file containing the server certificate @@ -982,6 +1018,15 @@ module Stripe params(_tipping: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Tipping))).returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Tipping))) } def tipping=(_tipping); end + # An object containing device type specific settings for Verifone M425 readers. + sig { + returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneM425))) + } + def verifone_m425; end + sig { + params(_verifone_m425: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneM425))).returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneM425))) + } + def verifone_m425=(_verifone_m425); end # An object containing device type specific settings for Verifone P400 readers. sig { returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneP400))) @@ -991,6 +1036,33 @@ module Stripe params(_verifone_p400: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneP400))).returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneP400))) } def verifone_p400=(_verifone_p400); end + # An object containing device type specific settings for Verifone P630 readers. + sig { + returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneP630))) + } + def verifone_p630; end + sig { + params(_verifone_p630: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneP630))).returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneP630))) + } + def verifone_p630=(_verifone_p630); end + # An object containing device type specific settings for Verifone UX700 readers. + sig { + returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneUx700))) + } + def verifone_ux700; end + sig { + params(_verifone_ux700: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneUx700))).returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneUx700))) + } + def verifone_ux700=(_verifone_ux700); end + # An object containing device type specific settings for Verifone V660p readers. + sig { + returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneV660p))) + } + def verifone_v660p; end + sig { + params(_verifone_v660p: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneV660p))).returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneV660p))) + } + def verifone_v660p=(_verifone_v660p); end # Configurations for connecting to a WiFi network. sig { returns(T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Wifi))) } def wifi; end @@ -999,7 +1071,7 @@ module Stripe } def wifi=(_wifi); end sig { - params(bbpos_wisepad3: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::BbposWisepad3)), bbpos_wisepos_e: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::BbposWiseposE)), cellular: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Cellular)), expand: T.nilable(T::Array[String]), name: T.nilable(String), offline: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Offline)), reboot_window: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::RebootWindow)), stripe_s700: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::StripeS700)), stripe_s710: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::StripeS710)), tipping: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Tipping)), verifone_p400: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneP400)), wifi: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Wifi))).void + params(bbpos_wisepad3: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::BbposWisepad3)), bbpos_wisepos_e: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::BbposWiseposE)), cellular: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Cellular)), expand: T.nilable(T::Array[String]), name: T.nilable(String), offline: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Offline)), reboot_window: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::RebootWindow)), stripe_s700: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::StripeS700)), stripe_s710: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::StripeS710)), tipping: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Tipping)), verifone_m425: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneM425)), verifone_p400: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneP400)), verifone_p630: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneP630)), verifone_ux700: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneUx700)), verifone_v660p: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::VerifoneV660p)), wifi: T.nilable(T.any(String, ::Stripe::Terminal::ConfigurationUpdateParams::Wifi))).void } def initialize( bbpos_wisepad3: nil, @@ -1012,7 +1084,11 @@ module Stripe stripe_s700: nil, stripe_s710: nil, tipping: nil, + verifone_m425: nil, verifone_p400: nil, + verifone_p630: nil, + verifone_ux700: nil, + verifone_v660p: nil, wifi: nil ); end end diff --git a/rbi/stripe/params/test_helpers/confirmation_token_create_params.rbi b/rbi/stripe/params/test_helpers/confirmation_token_create_params.rbi index 9a046bf61..377f1e738 100644 --- a/rbi/stripe/params/test_helpers/confirmation_token_create_params.rbi +++ b/rbi/stripe/params/test_helpers/confirmation_token_create_params.rbi @@ -140,6 +140,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end + class Bizum < ::Stripe::RequestParams; end class Blik < ::Stripe::RequestParams; end class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) @@ -330,6 +331,7 @@ module Stripe class RevolutPay < ::Stripe::RequestParams; end class SamsungPay < ::Stripe::RequestParams; end class Satispay < ::Stripe::RequestParams; end + class Scalapay < ::Stripe::RequestParams; end class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } @@ -537,6 +539,15 @@ module Stripe params(_billing_details: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::BillingDetails)).returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::BillingDetails)) } def billing_details=(_billing_details); end + # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method. + sig { + returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Bizum)) + } + def bizum; end + sig { + params(_bizum: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Bizum)).returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Bizum)) + } + def bizum=(_bizum); end # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method. sig { returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Blik)) @@ -672,7 +683,7 @@ module Stripe params(_kr_card: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::KrCard)).returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::KrCard)) } def kr_card=(_kr_card); end - # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. + # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK). sig { returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Link)) } @@ -850,6 +861,15 @@ module Stripe params(_satispay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Satispay)).returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Satispay)) } def satispay=(_satispay); end + # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method. + sig { + returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Scalapay)) + } + def scalapay; end + sig { + params(_scalapay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Scalapay)).returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Scalapay)) + } + def scalapay=(_scalapay); end # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. sig { returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::SepaDebit)) @@ -937,7 +957,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Zip)).void + params(acss_debit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::BillingDetails), bizum: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Bizum), blik: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Cashapp), crypto: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Crypto), customer_balance: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Link), mb_way: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Paypal), payto: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Payto), pix: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Satispay), scalapay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Scalapay), sepa_debit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Sofort), sunbit: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Sunbit), swish: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Twint), type: String, upi: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Upi), us_bank_account: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Zip)).void } def initialize( acss_debit: nil, @@ -952,6 +972,7 @@ module Stripe bancontact: nil, billie: nil, billing_details: nil, + bizum: nil, blik: nil, boleto: nil, cashapp: nil, @@ -987,6 +1008,7 @@ module Stripe revolut_pay: nil, samsung_pay: nil, satispay: nil, + scalapay: nil, sepa_debit: nil, sofort: nil, sunbit: nil, diff --git a/rbi/stripe/params/test_helpers/test_clock_create_params.rbi b/rbi/stripe/params/test_helpers/test_clock_create_params.rbi index 0f5d155f6..d97645289 100644 --- a/rbi/stripe/params/test_helpers/test_clock_create_params.rbi +++ b/rbi/stripe/params/test_helpers/test_clock_create_params.rbi @@ -5,6 +5,11 @@ module Stripe module TestHelpers class TestClockCreateParams < ::Stripe::RequestParams + # Existing customer this test clock will be attached to. Once attached, customers can't be removed from a test clock. + 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 @@ -21,9 +26,9 @@ module Stripe sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } def name=(_name); end sig { - params(expand: T.nilable(T::Array[String]), frozen_time: Integer, name: T.nilable(String)).void + params(customer: T.nilable(String), expand: T.nilable(T::Array[String]), frozen_time: Integer, name: T.nilable(String)).void } - def initialize(expand: nil, frozen_time: nil, name: nil); end + def initialize(customer: nil, expand: nil, frozen_time: nil, name: nil); end end end end \ No newline at end of file diff --git a/rbi/stripe/params/v2/billing/meter_event_adjustment_create_params.rbi b/rbi/stripe/params/v2/billing/meter_event_adjustment_create_params.rbi index ef2e737b5..07f30c79c 100644 --- a/rbi/stripe/params/v2/billing/meter_event_adjustment_create_params.rbi +++ b/rbi/stripe/params/v2/billing/meter_event_adjustment_create_params.rbi @@ -7,7 +7,7 @@ module Stripe module Billing class MeterEventAdjustmentCreateParams < ::Stripe::RequestParams class Cancel < ::Stripe::RequestParams - # Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. + # The identifier that was originally assigned to the meter event. You can only cancel events within 24 hours of Stripe receiving them. sig { returns(String) } def identifier; end sig { params(_identifier: String).returns(String) } @@ -27,7 +27,7 @@ module Stripe def event_name; end sig { params(_event_name: String).returns(String) } def event_name=(_event_name); end - # Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet. + # Specifies the type of cancellation. Currently supports canceling a single event. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } diff --git a/rbi/stripe/params/v2/commerce/product_catalog/import_create_params.rbi b/rbi/stripe/params/v2/commerce/product_catalog/import_create_params.rbi new file mode 100644 index 000000000..dd6999852 --- /dev/null +++ b/rbi/stripe/params/v2/commerce/product_catalog/import_create_params.rbi @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Commerce + module ProductCatalog + class ImportCreateParams < ::Stripe::RequestParams + # The type of catalog data to import. + sig { returns(String) } + def feed_type; end + sig { params(_feed_type: String).returns(String) } + def feed_type=(_feed_type); end + # Additional information about the import in a structured format. + sig { returns(T::Hash[String, String]) } + def metadata; end + sig { params(_metadata: T::Hash[String, String]).returns(T::Hash[String, String]) } + def metadata=(_metadata); end + # The strategy for handling existing catalog data during import. + sig { returns(String) } + def mode; end + sig { params(_mode: String).returns(String) } + def mode=(_mode); end + sig { params(feed_type: String, metadata: T::Hash[String, String], mode: String).void } + def initialize(feed_type: nil, metadata: nil, mode: nil); end + end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/v2/commerce/product_catalog/import_list_params.rbi b/rbi/stripe/params/v2/commerce/product_catalog/import_list_params.rbi new file mode 100644 index 000000000..5a2ab8de0 --- /dev/null +++ b/rbi/stripe/params/v2/commerce/product_catalog/import_list_params.rbi @@ -0,0 +1,72 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Commerce + module ProductCatalog + class ImportListParams < ::Stripe::RequestParams + # Filter for objects created at the specified timestamp. + # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + sig { returns(T.nilable(String)) } + def created; end + sig { params(_created: T.nilable(String)).returns(T.nilable(String)) } + def created=(_created); end + # Filter for objects created after the specified timestamp. + # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + sig { returns(T.nilable(String)) } + def created_gt; end + sig { params(_created_gt: T.nilable(String)).returns(T.nilable(String)) } + def created_gt=(_created_gt); end + # Filter for objects created on or after the specified timestamp. + # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + sig { returns(T.nilable(String)) } + def created_gte; end + sig { params(_created_gte: T.nilable(String)).returns(T.nilable(String)) } + def created_gte=(_created_gte); end + # Filter for objects created before the specified timestamp. + # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + sig { returns(T.nilable(String)) } + def created_lt; end + sig { params(_created_lt: T.nilable(String)).returns(T.nilable(String)) } + def created_lt=(_created_lt); end + # Filter for objects created on or before the specified timestamp. + # Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z. + sig { returns(T.nilable(String)) } + def created_lte; end + sig { params(_created_lte: T.nilable(String)).returns(T.nilable(String)) } + def created_lte=(_created_lte); end + # Filter by the type of feed data being imported. + sig { returns(T.nilable(String)) } + def feed_type; end + sig { params(_feed_type: T.nilable(String)).returns(T.nilable(String)) } + def feed_type=(_feed_type); end + # The maximum number of results per page. + sig { returns(T.nilable(Integer)) } + def limit; end + sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } + def limit=(_limit); end + # Filter by import status. + sig { returns(T.nilable(String)) } + def status; end + sig { params(_status: T.nilable(String)).returns(T.nilable(String)) } + def status=(_status); end + sig { + params(created: T.nilable(String), created_gt: T.nilable(String), created_gte: T.nilable(String), created_lt: T.nilable(String), created_lte: T.nilable(String), feed_type: T.nilable(String), limit: T.nilable(Integer), status: T.nilable(String)).void + } + def initialize( + created: nil, + created_gt: nil, + created_gte: nil, + created_lt: nil, + created_lte: nil, + feed_type: nil, + limit: nil, + status: nil + ); end + end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/v2/commerce/product_catalog/import_retrieve_params.rbi b/rbi/stripe/params/v2/commerce/product_catalog/import_retrieve_params.rbi new file mode 100644 index 000000000..4ece4c48d --- /dev/null +++ b/rbi/stripe/params/v2/commerce/product_catalog/import_retrieve_params.rbi @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Commerce + module ProductCatalog + class ImportRetrieveParams < ::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 7fc67a5fe..f65dcec34 100644 --- a/rbi/stripe/params/v2/core/account_create_params.rbi +++ b/rbi/stripe/params/v2/core/account_create_params.rbi @@ -1511,7 +1511,7 @@ module Stripe } def initialize(capabilities: nil); end end - # The Customer Configuration allows the Account to be used in inbound payment flows. + # The Customer Configuration allows the Account to be used in inbound payment flows (i.e. customer-facing payment and billing flows). sig { returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Customer)) } @@ -2000,32 +2000,72 @@ module Stripe def initialize(files: nil, type: nil); end end class ProofOfRegistration < ::Stripe::RequestParams + class Signer < ::Stripe::RequestParams + # Person signing the document. + sig { returns(String) } + def person; end + sig { params(_person: String).returns(String) } + def person=(_person); end + sig { params(person: String).void } + def initialize(person: nil); end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. sig { returns(T::Array[String]) } def files; end sig { params(_files: T::Array[String]).returns(T::Array[String]) } def files=(_files); end + # Person that is signing the document. + sig { + returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer)) + } + def signer; end + sig { + params(_signer: T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer)).returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer)) + } + def signer=(_signer); end # The format of the document. Currently supports `files` only. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } def type=(_type); end - sig { params(files: T::Array[String], type: String).void } - def initialize(files: nil, type: nil); end + sig { + params(files: T::Array[String], signer: T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer), type: String).void + } + def initialize(files: nil, signer: nil, type: nil); end end class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams + class Signer < ::Stripe::RequestParams + # Person signing the document. + sig { returns(String) } + def person; end + sig { params(_person: String).returns(String) } + def person=(_person); end + sig { params(person: String).void } + def initialize(person: nil); end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. sig { returns(T::Array[String]) } def files; end sig { params(_files: T::Array[String]).returns(T::Array[String]) } def files=(_files); end + # Person that is signing the document. + sig { + returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer)) + } + def signer; end + sig { + params(_signer: T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer)).returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer)) + } + def signer=(_signer); end # The format of the document. Currently supports `files` only. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } def type=(_type); end - sig { params(files: T::Array[String], type: String).void } - def initialize(files: nil, type: nil); end + sig { + params(files: T::Array[String], signer: T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer), type: String).void + } + def initialize(files: nil, signer: nil, type: nil); end end # One or more documents that support the bank account ownership verification requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check. sig { @@ -3050,7 +3090,7 @@ module Stripe params(_documents: T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::Individual::Documents)).returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Identity::Individual::Documents)) } def documents=(_documents); end - # The individual's email address. + # The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account. sig { returns(T.nilable(String)) } def email; end sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } @@ -3181,7 +3221,7 @@ module Stripe def country; end sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } def country=(_country); end - # The entity type. + # The entity type represented by the Account. Ensure this field is accurate before adding configurations that rely on identity information, as it determines which identity fields apply and how the Account is validated. sig { returns(T.nilable(String)) } def entity_type; end sig { params(_entity_type: T.nilable(String)).returns(T.nilable(String)) } @@ -3226,7 +3266,7 @@ module Stripe params(_configuration: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration)).returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration)) } def configuration=(_configuration); end - # The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + # The primary contact email address for the Account. sig { returns(T.nilable(String)) } def contact_email; end sig { params(_contact_email: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/v2/core/account_token_create_params.rbi b/rbi/stripe/params/v2/core/account_token_create_params.rbi index 7128e0704..31d2a8cfe 100644 --- a/rbi/stripe/params/v2/core/account_token_create_params.rbi +++ b/rbi/stripe/params/v2/core/account_token_create_params.rbi @@ -352,32 +352,72 @@ module Stripe def initialize(files: nil, type: nil); end end class ProofOfRegistration < ::Stripe::RequestParams + class Signer < ::Stripe::RequestParams + # Person signing the document. + sig { returns(String) } + def person; end + sig { params(_person: String).returns(String) } + def person=(_person); end + sig { params(person: String).void } + def initialize(person: nil); end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. sig { returns(T::Array[String]) } def files; end sig { params(_files: T::Array[String]).returns(T::Array[String]) } def files=(_files); end + # Person that is signing the document. + sig { + returns(T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer)) + } + def signer; end + sig { + params(_signer: T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer)).returns(T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer)) + } + def signer=(_signer); end # The format of the document. Currently supports `files` only. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } def type=(_type); end - sig { params(files: T::Array[String], type: String).void } - def initialize(files: nil, type: nil); end + sig { + params(files: T::Array[String], signer: T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer), type: String).void + } + def initialize(files: nil, signer: nil, type: nil); end end class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams + class Signer < ::Stripe::RequestParams + # Person signing the document. + sig { returns(String) } + def person; end + sig { params(_person: String).returns(String) } + def person=(_person); end + sig { params(person: String).void } + def initialize(person: nil); end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. sig { returns(T::Array[String]) } def files; end sig { params(_files: T::Array[String]).returns(T::Array[String]) } def files=(_files); end + # Person that is signing the document. + sig { + returns(T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer)) + } + def signer; end + sig { + params(_signer: T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer)).returns(T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer)) + } + def signer=(_signer); end # The format of the document. Currently supports `files` only. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } def type=(_type); end - sig { params(files: T::Array[String], type: String).void } - def initialize(files: nil, type: nil); end + sig { + params(files: T::Array[String], signer: T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer), type: String).void + } + def initialize(files: nil, signer: nil, type: nil); end end # One or more documents that support the bank account ownership verification requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check. sig { @@ -451,7 +491,7 @@ module Stripe params(_proof_of_address: T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfAddress)).returns(T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfAddress)) } def proof_of_address=(_proof_of_address); end - # One or more documents showing the company’s proof of registration with the national business registry. + # One or more documents that demonstrate proof of ultimate beneficial ownership. sig { returns(T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::BusinessDetails::Documents::ProofOfRegistration)) } @@ -1402,7 +1442,7 @@ module Stripe params(_documents: T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::Individual::Documents)).returns(T.nilable(::Stripe::V2::Core::AccountTokenCreateParams::Identity::Individual::Documents)) } def documents=(_documents); end - # The individual's email address. + # The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account. sig { returns(T.nilable(String)) } def email; end sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } @@ -1562,7 +1602,7 @@ module Stripe } end end - # The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + # The primary contact email address for the Account. sig { returns(T.nilable(String)) } def contact_email; end sig { params(_contact_email: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/v2/core/account_update_params.rbi b/rbi/stripe/params/v2/core/account_update_params.rbi index 27147e52e..93c74c852 100644 --- a/rbi/stripe/params/v2/core/account_update_params.rbi +++ b/rbi/stripe/params/v2/core/account_update_params.rbi @@ -105,7 +105,7 @@ module Stripe rendering: nil ); end end - # ID of a PaymentMethod attached to the customer account to use as the default for invoices and subscriptions. + # The ID of a `PaymentMethod` attached to this Account's `customer` configuration, used as the default payment method for invoices and subscriptions. sig { returns(T.nilable(String)) } def default_payment_method; end sig { params(_default_payment_method: T.nilable(String)).returns(T.nilable(String)) } @@ -2091,32 +2091,72 @@ module Stripe def initialize(files: nil, type: nil); end end class ProofOfRegistration < ::Stripe::RequestParams + class Signer < ::Stripe::RequestParams + # Person signing the document. + sig { returns(String) } + def person; end + sig { params(_person: String).returns(String) } + def person=(_person); end + sig { params(person: String).void } + def initialize(person: nil); end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. sig { returns(T::Array[String]) } def files; end sig { params(_files: T::Array[String]).returns(T::Array[String]) } def files=(_files); end + # Person that is signing the document. + sig { + returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer)) + } + def signer; end + sig { + params(_signer: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer)) + } + def signer=(_signer); end # The format of the document. Currently supports `files` only. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } def type=(_type); end - sig { params(files: T::Array[String], type: String).void } - def initialize(files: nil, type: nil); end + sig { + params(files: T::Array[String], signer: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfRegistration::Signer), type: String).void + } + def initialize(files: nil, signer: nil, type: nil); end end class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams + class Signer < ::Stripe::RequestParams + # Person signing the document. + sig { returns(String) } + def person; end + sig { params(_person: String).returns(String) } + def person=(_person); end + sig { params(person: String).void } + def initialize(person: nil); end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. sig { returns(T::Array[String]) } def files; end sig { params(_files: T::Array[String]).returns(T::Array[String]) } def files=(_files); end + # Person that is signing the document. + sig { + returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer)) + } + def signer; end + sig { + params(_signer: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer)) + } + def signer=(_signer); end # The format of the document. Currently supports `files` only. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } def type=(_type); end - sig { params(files: T::Array[String], type: String).void } - def initialize(files: nil, type: nil); end + sig { + params(files: T::Array[String], signer: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfUltimateBeneficialOwnership::Signer), type: String).void + } + def initialize(files: nil, signer: nil, type: nil); end end # One or more documents that support the bank account ownership verification requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check. sig { @@ -2190,7 +2230,7 @@ module Stripe params(_proof_of_address: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfAddress)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfAddress)) } def proof_of_address=(_proof_of_address); end - # One or more documents showing the company’s proof of registration with the national business registry. + # One or more documents that demonstrate proof of ultimate beneficial ownership. sig { returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents::ProofOfRegistration)) } @@ -3141,7 +3181,7 @@ module Stripe params(_documents: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Individual::Documents)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Individual::Documents)) } def documents=(_documents); end - # The individual's email address. + # The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account. sig { returns(T.nilable(String)) } def email; end sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } @@ -3272,7 +3312,7 @@ module Stripe def country; end sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } def country=(_country); end - # The entity type. + # The entity type represented by the Account. Ensure this field is accurate before adding configurations that rely on identity information, as it determines which identity fields apply and how the Account is validated. sig { returns(T.nilable(String)) } def entity_type; end sig { params(_entity_type: T.nilable(String)).returns(T.nilable(String)) } @@ -3317,7 +3357,7 @@ module Stripe params(_configuration: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration)) } def configuration=(_configuration); end - # The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + # The primary contact email address for the Account. sig { returns(T.nilable(String)) } def contact_email; end sig { params(_contact_email: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/v2/core/event_destination_create_params.rbi b/rbi/stripe/params/v2/core/event_destination_create_params.rbi index 7f5db42e6..18cb32841 100644 --- a/rbi/stripe/params/v2/core/event_destination_create_params.rbi +++ b/rbi/stripe/params/v2/core/event_destination_create_params.rbi @@ -20,6 +20,31 @@ module Stripe sig { params(aws_account_id: String, aws_region: String).void } def initialize(aws_account_id: nil, aws_region: nil); end end + class AzureEventGrid < ::Stripe::RequestParams + # The Azure region. + sig { returns(String) } + def azure_region; end + sig { params(_azure_region: String).returns(String) } + def azure_region=(_azure_region); end + # The name of the Azure resource group. + sig { returns(String) } + def azure_resource_group_name; end + sig { params(_azure_resource_group_name: String).returns(String) } + def azure_resource_group_name=(_azure_resource_group_name); end + # The Azure subscription ID. + sig { returns(String) } + def azure_subscription_id; end + sig { params(_azure_subscription_id: String).returns(String) } + def azure_subscription_id=(_azure_subscription_id); end + sig { + params(azure_region: String, azure_resource_group_name: String, azure_subscription_id: String).void + } + def initialize( + azure_region: nil, + azure_resource_group_name: nil, + azure_subscription_id: nil + ); end + end class WebhookEndpoint < ::Stripe::RequestParams # The URL of the webhook endpoint. sig { returns(String) } @@ -38,6 +63,13 @@ module Stripe params(_amazon_eventbridge: T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::AmazonEventbridge)).returns(T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::AmazonEventbridge)) } def amazon_eventbridge=(_amazon_eventbridge); end + # Azure Event Grid configuration. + sig { returns(T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::AzureEventGrid)) } + def azure_event_grid; end + sig { + params(_azure_event_grid: T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::AzureEventGrid)).returns(T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::AzureEventGrid)) + } + def azure_event_grid=(_azure_event_grid); end # An optional description of what the event destination is used for. sig { returns(T.nilable(String)) } def description; end @@ -101,10 +133,11 @@ module Stripe } def webhook_endpoint=(_webhook_endpoint); end sig { - params(amazon_eventbridge: T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::AmazonEventbridge), description: T.nilable(String), enabled_events: T::Array[String], event_payload: String, events_from: T.nilable(T::Array[String]), include: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, snapshot_api_version: T.nilable(String), type: String, webhook_endpoint: T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::WebhookEndpoint)).void + params(amazon_eventbridge: T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::AmazonEventbridge), azure_event_grid: T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::AzureEventGrid), description: T.nilable(String), enabled_events: T::Array[String], event_payload: String, events_from: T.nilable(T::Array[String]), include: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, snapshot_api_version: T.nilable(String), type: String, webhook_endpoint: T.nilable(::Stripe::V2::Core::EventDestinationCreateParams::WebhookEndpoint)).void } def initialize( amazon_eventbridge: nil, + azure_event_grid: nil, description: nil, enabled_events: nil, event_payload: nil, diff --git a/rbi/stripe/resources/account.rbi b/rbi/stripe/resources/account.rbi index 4d6513d04..f6cb792e0 100644 --- a/rbi/stripe/resources/account.rbi +++ b/rbi/stripe/resources/account.rbi @@ -157,6 +157,9 @@ module Stripe # The status of the Billie capability of the account, or whether the account can directly process Billie payments. sig { returns(T.nilable(String)) } def billie_payments; end + # The status of the Bizum capability of the account, or whether the account can directly process Bizum payments. + sig { returns(T.nilable(String)) } + def bizum_payments; end # The status of the blik payments capability of the account, or whether the account can directly process blik charges. sig { returns(T.nilable(String)) } def blik_payments; end @@ -274,6 +277,9 @@ module Stripe # The status of the Satispay capability of the account, or whether the account can directly process Satispay payments. sig { returns(T.nilable(String)) } def satispay_payments; end + # The status of the Scalapay capability of the account, or whether the account can directly process Scalapay payments. + sig { returns(T.nilable(String)) } + def scalapay_payments; end # The status of the SEPA customer_balance payments (EUR currency) capability of the account, or whether the account can directly process SEPA customer_balance charges. sig { returns(T.nilable(String)) } def sepa_bank_transfer_payments; end diff --git a/rbi/stripe/resources/balance_settings.rbi b/rbi/stripe/resources/balance_settings.rbi index af85c91ac..a894331ef 100644 --- a/rbi/stripe/resources/balance_settings.rbi +++ b/rbi/stripe/resources/balance_settings.rbi @@ -7,6 +7,23 @@ module Stripe class BalanceSettings < SingletonAPIResource class Payments < ::Stripe::StripeObject class Payouts < ::Stripe::StripeObject + class AutomaticTransferRulesByCurrency < ::Stripe::StripeObject + # The ID of the FinancialAccount that funds will be transferred to during automatic transfers. + sig { returns(String) } + def payout_method; end + # The maximum amount in minor units to transfer to the FinancialAccount. Only applicable when `type` is `transfer_up_to_amount`. + sig { returns(T.nilable(Integer)) } + def transfer_up_to_amount; end + # The type of automatic transfer rule. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Schedule < ::Stripe::StripeObject # How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`. sig { returns(T.nilable(String)) } @@ -24,6 +41,9 @@ module Stripe @field_remappings = {} end end + # Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount. + sig { returns(T.nilable(T::Hash[String, T::Array[AutomaticTransferRulesByCurrency]])) } + def automatic_transfer_rules_by_currency; end # The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](/payouts/minimum-balances-for-automatic-payouts). sig { returns(T.nilable(T::Hash[String, Integer])) } def minimum_balance_by_currency; end @@ -37,21 +57,44 @@ module Stripe sig { returns(String) } def status; end def self.inner_class_types - @inner_class_types = {schedule: Schedule} + @inner_class_types = { + automatic_transfer_rules_by_currency: AutomaticTransferRulesByCurrency, + schedule: Schedule, + } end def self.field_remappings @field_remappings = {} end end class SettlementTiming < ::Stripe::StripeObject + class StartOfDay < ::Stripe::StripeObject + # Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](/connect/customized-start-of-day#available-timezones-and-cutoffs). + sig { returns(Integer) } + def hour; end + # Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30. + sig { returns(Integer) } + def minutes; end + # Timezone for the customized start of day. Must be a [supported customized start of day timezone](/connect/customized-start-of-day#available-timezones-and-cutoffs). + sig { returns(String) } + def timezone; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The number of days charge funds are held before becoming available. sig { returns(Integer) } def delay_days; end # The number of days charge funds are held before becoming available. If present, overrides the default, or minimum available, for the account. sig { returns(T.nilable(Integer)) } def delay_days_override; end + # Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](/connect/customized-start-of-day) documentation. + sig { returns(T.nilable(StartOfDay)) } + def start_of_day; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {start_of_day: StartOfDay} end def self.field_remappings @field_remappings = {} diff --git a/rbi/stripe/resources/charge.rbi b/rbi/stripe/resources/charge.rbi index 09fb7b4cc..7828488cf 100644 --- a/rbi/stripe/resources/charge.rbi +++ b/rbi/stripe/resources/charge.rbi @@ -471,6 +471,17 @@ module Stripe @field_remappings = {} end end + class Bizum < ::Stripe::StripeObject + # The Bizum transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Blik < ::Stripe::StripeObject # A unique and immutable identifier assigned by BLIK to every buyer. sig { returns(T.nilable(String)) } @@ -1816,6 +1827,17 @@ module Stripe @field_remappings = {} end end + class Scalapay < ::Stripe::StripeObject + # The Scalapay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaCreditTransfer < ::Stripe::StripeObject # Name of the bank associated with the bank account. sig { returns(T.nilable(String)) } @@ -1936,6 +1958,9 @@ module Stripe end end class Twint < ::Stripe::StripeObject + # ID of the multi use Mandate generated by the PaymentIntent + sig { returns(T.nilable(String)) } + def mandate; end def self.inner_class_types @inner_class_types = {} end @@ -2061,6 +2086,9 @@ module Stripe # Attribute for field billie sig { returns(T.nilable(Billie)) } def billie; end + # Attribute for field bizum + sig { returns(T.nilable(Bizum)) } + def bizum; end # Attribute for field blik sig { returns(T.nilable(Blik)) } def blik; end @@ -2166,6 +2194,9 @@ module Stripe # Attribute for field satispay sig { returns(T.nilable(Satispay)) } def satispay; end + # Attribute for field scalapay + sig { returns(T.nilable(Scalapay)) } + def scalapay; end # Attribute for field sepa_credit_transfer sig { returns(T.nilable(SepaCreditTransfer)) } def sepa_credit_transfer; end @@ -2221,6 +2252,7 @@ module Stripe bacs_debit: BacsDebit, bancontact: Bancontact, billie: Billie, + bizum: Bizum, blik: Blik, boleto: Boleto, card: Card, @@ -2256,6 +2288,7 @@ module Stripe revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_credit_transfer: SepaCreditTransfer, sepa_debit: SepaDebit, sofort: Sofort, diff --git a/rbi/stripe/resources/checkout/session.rbi b/rbi/stripe/resources/checkout/session.rbi index bda6dfc09..a485ba771 100644 --- a/rbi/stripe/resources/checkout/session.rbi +++ b/rbi/stripe/resources/checkout/session.rbi @@ -251,7 +251,7 @@ module Stripe def payment_method_reuse_agreement; end # If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout # Session will determine whether to display an option to opt into promotional communication - # from the merchant depending on the customer's locale. Only available to US merchants. + # from the merchant depending on the customer's locale. Only available to US merchants and US customers. sig { returns(T.nilable(String)) } def promotions; end # If set to `required`, it requires customers to accept the terms of service before being able to pay. @@ -1003,7 +1003,7 @@ module Stripe end end class Restrictions < ::Stripe::StripeObject - # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. + # The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. sig { returns(T.nilable(T::Array[String])) } def brands_blocked; end def self.inner_class_types @@ -1614,6 +1614,17 @@ module Stripe @field_remappings = {} end end + class Scalapay < ::Stripe::StripeObject + # Controls when the funds will be captured from the customer's account. + sig { returns(T.nilable(String)) } + def capture_method; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaDebit < ::Stripe::StripeObject class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. @@ -1901,6 +1912,9 @@ module Stripe # Attribute for field satispay sig { returns(T.nilable(Satispay)) } def satispay; end + # Attribute for field scalapay + sig { returns(T.nilable(Scalapay)) } + def scalapay; end # Attribute for field sepa_debit sig { returns(T.nilable(SepaDebit)) } def sepa_debit; end @@ -1958,6 +1972,7 @@ module Stripe revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_debit: SepaDebit, sofort: Sofort, swish: Swish, @@ -2239,8 +2254,8 @@ module Stripe # Session with your internal systems. sig { returns(T.nilable(String)) } def client_reference_id; end - # The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. For `ui_mode: embedded`, the client secret is to be used when initializing Stripe.js embedded checkout. - # For `ui_mode: custom`, use the client secret with [initCheckout](https://docs.stripe.com/js/custom_checkout/init) on your front end. + # The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded_page` or `ui_mode: elements`. For `ui_mode: embedded_page`, the client secret is to be used when initializing Stripe.js embedded checkout. + # For `ui_mode: elements`, use the client secret with [initCheckout](https://docs.stripe.com/js/custom_checkout/init) on your front end. sig { returns(T.nilable(String)) } def client_secret; end # Information about the customer collected within the Checkout Session. @@ -2378,10 +2393,10 @@ module Stripe # The ID of the original expired Checkout Session that triggered the recovery flow. sig { returns(T.nilable(String)) } def recovered_from; end - # This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. + # This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. sig { returns(T.nilable(String)) } def redirect_on_completion; end - # Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. + # Applies to Checkout Sessions with `ui_mode: embedded_page` or `ui_mode: elements`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. sig { returns(T.nilable(String)) } def return_url; end # Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode. @@ -2423,7 +2438,7 @@ module Stripe # The UI mode of the Session. Defaults to `hosted_page`. sig { returns(T.nilable(String)) } def ui_mode; end - # The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted`. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://docs.stripe.com/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.` + # The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted_page`. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://docs.stripe.com/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.` # This value is only present when the session is active. sig { returns(T.nilable(String)) } def url; end diff --git a/rbi/stripe/resources/confirmation_token.rbi b/rbi/stripe/resources/confirmation_token.rbi index df4fe599b..43bacb90a 100644 --- a/rbi/stripe/resources/confirmation_token.rbi +++ b/rbi/stripe/resources/confirmation_token.rbi @@ -267,6 +267,14 @@ module Stripe @field_remappings = {} end end + class Bizum < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Blik < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} @@ -1315,6 +1323,14 @@ module Stripe @field_remappings = {} end end + class Scalapay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaDebit < ::Stripe::StripeObject class GeneratedFrom < ::Stripe::StripeObject # The ID of the Charge that generated this PaymentMethod, if any. @@ -1527,6 +1543,9 @@ module Stripe # Attribute for field billing_details sig { returns(BillingDetails) } def billing_details; end + # Attribute for field bizum + sig { returns(T.nilable(Bizum)) } + def bizum; end # Attribute for field blik sig { returns(T.nilable(Blik)) } def blik; end @@ -1638,6 +1657,9 @@ module Stripe # Attribute for field satispay sig { returns(T.nilable(Satispay)) } def satispay; end + # Attribute for field scalapay + sig { returns(T.nilable(Scalapay)) } + def scalapay; end # Attribute for field sepa_debit sig { returns(T.nilable(SepaDebit)) } def sepa_debit; end @@ -1681,6 +1703,7 @@ module Stripe bancontact: Bancontact, billie: Billie, billing_details: BillingDetails, + bizum: Bizum, blik: Blik, boleto: Boleto, card: Card, @@ -1716,6 +1739,7 @@ module Stripe revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_debit: SepaDebit, sofort: Sofort, sunbit: Sunbit, diff --git a/rbi/stripe/resources/discount.rbi b/rbi/stripe/resources/discount.rbi index 03870ff84..0343abca3 100644 --- a/rbi/stripe/resources/discount.rbi +++ b/rbi/stripe/resources/discount.rbi @@ -22,7 +22,7 @@ module Stripe @field_remappings = {} end end - # The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode. + # The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Not present for subscription mode. sig { returns(T.nilable(String)) } def checkout_session; end # The ID of the customer associated with this discount. @@ -37,7 +37,7 @@ module Stripe # If the coupon has a duration of `repeating`, the date that this discount will end. If the coupon has a duration of `once` or `forever`, this attribute will be null. sig { returns(T.nilable(Integer)) } def end; end - # The ID of the discount object. Discounts cannot be fetched by ID. Use `expand[]=discounts` in API calls to expand discount IDs in an array. + # The ID of the discount object. Discounts can't be fetched by ID. Use `expand[]=discounts` in API calls to expand discount IDs in an array. sig { returns(String) } def id; end # The invoice that the discount's coupon was applied to, if it was applied directly to a particular invoice. diff --git a/rbi/stripe/resources/invoice.rbi b/rbi/stripe/resources/invoice.rbi index 7f79d0b38..1de59d889 100644 --- a/rbi/stripe/resources/invoice.rbi +++ b/rbi/stripe/resources/invoice.rbi @@ -918,6 +918,9 @@ module Stripe # The amount, in cents (or local equivalent), that was paid. sig { returns(Integer) } def amount_paid; end + # Amount, in cents (or local equivalent), that was paid on the invoice outside of Stripe. + sig { returns(T.nilable(Integer)) } + def amount_paid_off_stripe; end # The difference between amount_due and amount_paid, in cents (or local equivalent). sig { returns(Integer) } def amount_remaining; end diff --git a/rbi/stripe/resources/invoice_item.rbi b/rbi/stripe/resources/invoice_item.rbi index 041936b5e..a370bf816 100644 --- a/rbi/stripe/resources/invoice_item.rbi +++ b/rbi/stripe/resources/invoice_item.rbi @@ -89,6 +89,37 @@ module Stripe end end class ProrationDetails < ::Stripe::StripeObject + class CreditedItems < ::Stripe::StripeObject + class InvoiceLineItemDetails < ::Stripe::StripeObject + # The invoice id for the debited line item(s). + sig { returns(String) } + def invoice; end + # IDs of the debited invoice line item(s) on the invoice that correspond to the credit proration. + sig { returns(T::Array[String]) } + def invoice_line_items; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # When `type` is `invoice_item`, the invoice item id for the debited invoice item corresponding to this credit proration. + sig { returns(T.nilable(String)) } + def invoice_item; end + # Attribute for field invoice_line_item_details + sig { returns(T.nilable(InvoiceLineItemDetails)) } + def invoice_line_item_details; end + # Whether the credit references a pending invoice item or one or more invoice line items on an invoice. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {invoice_line_item_details: InvoiceLineItemDetails} + end + def self.field_remappings + @field_remappings = {} + end + end class DiscountAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the discount. sig { returns(Integer) } @@ -103,11 +134,14 @@ module Stripe @field_remappings = {} end end + # For a credit proration, links to the debit invoice line items or invoice item that the credit applies to. + sig { returns(T.nilable(CreditedItems)) } + def credited_items; end # Discount amounts applied when the proration was created. sig { returns(T::Array[DiscountAmount]) } def discount_amounts; end def self.inner_class_types - @inner_class_types = {discount_amounts: DiscountAmount} + @inner_class_types = {credited_items: CreditedItems, discount_amounts: DiscountAmount} end def self.field_remappings @field_remappings = {} diff --git a/rbi/stripe/resources/issuing/dispute.rbi b/rbi/stripe/resources/issuing/dispute.rbi index fb8909e93..610400b31 100644 --- a/rbi/stripe/resources/issuing/dispute.rbi +++ b/rbi/stripe/resources/issuing/dispute.rbi @@ -286,7 +286,7 @@ module Stripe # The transaction being disputed. sig { returns(T.any(String, ::Stripe::Issuing::Transaction)) } def transaction; end - # [Treasury](https://docs.stripe.com/api/treasury) details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts + # [Treasury](https://docs.stripe.com/api/treasury) details related to this dispute if it was created on a [FinancialAccount](https://docs.stripe.com/api/treasury/financial_accounts) sig { returns(T.nilable(Treasury)) } def treasury; end # Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence) for more details about evidence requirements. diff --git a/rbi/stripe/resources/issuing/personalization_design.rbi b/rbi/stripe/resources/issuing/personalization_design.rbi index 5e58b224a..0d5b40ade 100644 --- a/rbi/stripe/resources/issuing/personalization_design.rbi +++ b/rbi/stripe/resources/issuing/personalization_design.rbi @@ -54,7 +54,7 @@ module Stripe @field_remappings = {} end end - # The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. + # The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. Image must be in PNG format with dimensions of 1000px by 200px. It must be a binary (black and white) image containing a black logo on a white background. We don't accept grayscale. sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def card_logo; end # Hash containing carrier text, for use with physical bundles that support carrier text. diff --git a/rbi/stripe/resources/mandate.rbi b/rbi/stripe/resources/mandate.rbi index 4ddee2b36..34f632f79 100644 --- a/rbi/stripe/resources/mandate.rbi +++ b/rbi/stripe/resources/mandate.rbi @@ -282,6 +282,14 @@ module Stripe @field_remappings = {} end end + class Twint < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Upi < ::Stripe::StripeObject # Amount to be charged for future payments. sig { returns(T.nilable(Integer)) } @@ -364,6 +372,9 @@ module Stripe # Attribute for field sepa_debit sig { returns(T.nilable(SepaDebit)) } def sepa_debit; end + # Attribute for field twint + sig { returns(T.nilable(Twint)) } + def twint; end # This mandate corresponds with a specific payment method type. The `payment_method_details` includes an additional hash with the same name and contains mandate information that's specific to that payment method. sig { returns(String) } def type; end @@ -392,6 +403,7 @@ module Stripe pix: Pix, revolut_pay: RevolutPay, sepa_debit: SepaDebit, + twint: Twint, upi: Upi, us_bank_account: UsBankAccount, } diff --git a/rbi/stripe/resources/payment_attempt_record.rbi b/rbi/stripe/resources/payment_attempt_record.rbi index 80278e4d1..a90293316 100644 --- a/rbi/stripe/resources/payment_attempt_record.rbi +++ b/rbi/stripe/resources/payment_attempt_record.rbi @@ -464,6 +464,17 @@ module Stripe @field_remappings = {} end end + class Bizum < ::Stripe::StripeObject + # The Bizum transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Blik < ::Stripe::StripeObject # A unique and immutable identifier assigned by BLIK to every buyer. sig { returns(T.nilable(String)) } @@ -1147,12 +1158,10 @@ module Stripe # The payer details for this transaction. sig { returns(T.nilable(PayerDetails)) } def payer_details; end - # The Klarna payment method used for this transaction. - # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + # The Klarna payment method used for this transaction. Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` sig { returns(T.nilable(String)) } def payment_method_category; end - # Preferred language of the Klarna authorization page that the customer is redirected to. - # Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + # Preferred language of the Klarna authorization page that the customer is redirected to. Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` sig { returns(T.nilable(String)) } def preferred_locale; end # ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. @@ -1208,8 +1217,7 @@ module Stripe end end class Link < ::Stripe::StripeObject - # Two-letter ISO code representing the funding source country beneath the Link payment. - # You could use this attribute to get a sense of international fees. + # Two-letter ISO code representing the funding source country beneath the Link payment. You could use this attribute to get a sense of international fees. sig { returns(T.nilable(String)) } def country; end def self.inner_class_types @@ -1336,9 +1344,7 @@ module Stripe # Unique reference for this Przelewy24 payment. sig { returns(T.nilable(String)) } def reference; end - # Owner's verified full name. Values are verified or provided by Przelewy24 directly - # (if supported) at the time of authorization or settlement. They cannot be set or mutated. - # Przelewy24 rarely provides this information so the attribute is usually empty. + # Owner's verified full name. Values are verified or provided by Przelewy24 directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Przelewy24 rarely provides this information so the attribute is usually empty. sig { returns(T.nilable(String)) } def verified_name; end def self.inner_class_types @@ -1505,7 +1511,7 @@ module Stripe # Attribute for field card sig { returns(T.nilable(Card)) } def card; end - # funding type of the underlying payment method. + # Funding type of the underlying payment method. sig { returns(T.nilable(String)) } def type; end def self.inner_class_types @@ -1553,6 +1559,17 @@ module Stripe @field_remappings = {} end end + class Scalapay < ::Stripe::StripeObject + # The Scalapay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaCreditTransfer < ::Stripe::StripeObject # Name of the bank associated with the bank account. sig { returns(T.nilable(String)) } @@ -1671,6 +1688,9 @@ module Stripe end end class Twint < ::Stripe::StripeObject + # ID of the multi use Mandate generated by the PaymentIntent + sig { returns(T.nilable(String)) } + def mandate; end def self.inner_class_types @inner_class_types = {} end @@ -1799,6 +1819,9 @@ module Stripe # The billing details associated with the method of payment. sig { returns(T.nilable(BillingDetails)) } def billing_details; end + # Attribute for field bizum + sig { returns(T.nilable(Bizum)) } + def bizum; end # Attribute for field blik sig { returns(T.nilable(Blik)) } def blik; end @@ -1912,6 +1935,9 @@ module Stripe # Attribute for field satispay sig { returns(T.nilable(Satispay)) } def satispay; end + # Attribute for field scalapay + sig { returns(T.nilable(Scalapay)) } + def scalapay; end # Attribute for field sepa_credit_transfer sig { returns(T.nilable(SepaCreditTransfer)) } def sepa_credit_transfer; end @@ -1968,6 +1994,7 @@ module Stripe bancontact: Bancontact, billie: Billie, billing_details: BillingDetails, + bizum: Bizum, blik: Blik, boleto: Boleto, card: Card, @@ -2004,6 +2031,7 @@ module Stripe revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_credit_transfer: SepaCreditTransfer, sepa_debit: SepaDebit, sofort: Sofort, diff --git a/rbi/stripe/resources/payment_intent.rbi b/rbi/stripe/resources/payment_intent.rbi index 05e67f83e..717d37b90 100644 --- a/rbi/stripe/resources/payment_intent.rbi +++ b/rbi/stripe/resources/payment_intent.rbi @@ -34,10 +34,10 @@ module Stripe # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0. sig { returns(T.nilable(Integer)) } def amount; end - # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end - # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end def self.inner_class_types @@ -271,6 +271,14 @@ module Stripe @field_remappings = {} end end + class BlikAuthorize < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class BoletoDisplayDetails < ::Stripe::StripeObject # The timestamp after which the boleto expires. sig { returns(T.nilable(Integer)) } @@ -1282,6 +1290,9 @@ module Stripe # Attribute for field alipay_handle_redirect sig { returns(T.nilable(AlipayHandleRedirect)) } def alipay_handle_redirect; end + # Attribute for field blik_authorize + sig { returns(T.nilable(BlikAuthorize)) } + def blik_authorize; end # Attribute for field boleto_display_details sig { returns(T.nilable(BoletoDisplayDetails)) } def boleto_display_details; end @@ -1345,6 +1356,7 @@ module Stripe def self.inner_class_types @inner_class_types = { alipay_handle_redirect: AlipayHandleRedirect, + blik_authorize: BlikAuthorize, boleto_display_details: BoletoDisplayDetails, card_await_notification: CardAwaitNotification, cashapp_handle_redirect_or_display_qr_code: CashappHandleRedirectOrDisplayQrCode, @@ -1628,6 +1640,14 @@ module Stripe @field_remappings = {} end end + class Bizum < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Blik < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # @@ -2496,6 +2516,17 @@ module Stripe @field_remappings = {} end end + class Scalapay < ::Stripe::StripeObject + # Controls when the funds will be captured from the customer's account. + sig { returns(T.nilable(String)) } + def capture_method; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaDebit < ::Stripe::StripeObject class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. @@ -2751,6 +2782,9 @@ module Stripe # Attribute for field billie sig { returns(T.nilable(Billie)) } def billie; end + # Attribute for field bizum + sig { returns(T.nilable(Bizum)) } + def bizum; end # Attribute for field blik sig { returns(T.nilable(Blik)) } def blik; end @@ -2856,6 +2890,9 @@ module Stripe # Attribute for field satispay sig { returns(T.nilable(Satispay)) } def satispay; end + # Attribute for field scalapay + sig { returns(T.nilable(Scalapay)) } + def scalapay; end # Attribute for field sepa_debit sig { returns(T.nilable(SepaDebit)) } def sepa_debit; end @@ -2892,6 +2929,7 @@ module Stripe bacs_debit: BacsDebit, bancontact: Bancontact, billie: Billie, + bizum: Bizum, blik: Blik, boleto: Boleto, card: Card, @@ -2927,6 +2965,7 @@ module Stripe revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_debit: SepaDebit, sofort: Sofort, swish: Swish, @@ -3044,16 +3083,39 @@ module Stripe end end class TransferData < ::Stripe::StripeObject + class PaymentData < ::Stripe::StripeObject + # An arbitrary string attached to the destination payment. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + # Set of [key-value pairs](https://docs.stripe.com/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 + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account. # The amount must be less than or equal to the [amount](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer # representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00). sig { returns(T.nilable(Integer)) } def amount; end + # An arbitrary string attached to the transfer. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end # The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success. sig { returns(T.any(String, ::Stripe::Account)) } def destination; end + # Set of [key-value pairs](https://docs.stripe.com/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 + # Attribute for field payment_data + sig { returns(T.nilable(PaymentData)) } + def payment_data; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {payment_data: PaymentData} end def self.field_remappings @field_remappings = {} @@ -3377,7 +3439,9 @@ module Stripe # Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. # After it's captured, a PaymentIntent can no longer be incremented. # - # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + # Learn more about incremental authorizations with + # [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + # [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). sig { params(params: T.any(::Stripe::PaymentIntentIncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } @@ -3406,7 +3470,9 @@ module Stripe # Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. # After it's captured, a PaymentIntent can no longer be incremented. # - # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + # Learn more about incremental authorizations with + # [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + # [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). sig { params(intent: String, params: T.any(::Stripe::PaymentIntentIncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } diff --git a/rbi/stripe/resources/payment_link.rbi b/rbi/stripe/resources/payment_link.rbi index 7e5eb96ec..7ce78eecf 100644 --- a/rbi/stripe/resources/payment_link.rbi +++ b/rbi/stripe/resources/payment_link.rbi @@ -485,6 +485,39 @@ module Stripe @field_remappings = {} end end + class PaymentMethodOptions < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Restrictions < ::Stripe::StripeObject + # The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. + sig { returns(T::Array[String]) } + def brands_blocked; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Restrictions to apply to the card payment method. For example, you can block specific card brands. + sig { returns(T.nilable(Restrictions)) } + def restrictions; end + def self.inner_class_types + @inner_class_types = {restrictions: Restrictions} + end + def self.field_remappings + @field_remappings = {} + end + end + # Configuration for `card` payment methods. + sig { returns(T.nilable(Card)) } + def card; end + def self.inner_class_types + @inner_class_types = {card: Card} + end + def self.field_remappings + @field_remappings = {} + end + end class PhoneNumberCollection < ::Stripe::StripeObject # If `true`, a phone number will be collected during checkout. sig { returns(T::Boolean) } @@ -722,6 +755,9 @@ module Stripe # Configuration for collecting a payment method during checkout. Defaults to `always`. sig { returns(String) } def payment_method_collection; end + # Payment-method-specific configuration. + sig { returns(T.nilable(PaymentMethodOptions)) } + def payment_method_options; end # The list of payment method types that customers can use. When `null`, Stripe will dynamically show relevant payment methods you've enabled in your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). sig { returns(T.nilable(T::Array[String])) } def payment_method_types; end diff --git a/rbi/stripe/resources/payment_method.rbi b/rbi/stripe/resources/payment_method.rbi index 99b95a098..3e820be3b 100644 --- a/rbi/stripe/resources/payment_method.rbi +++ b/rbi/stripe/resources/payment_method.rbi @@ -171,6 +171,14 @@ module Stripe @field_remappings = {} end end + class Bizum < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Blik < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} @@ -1261,6 +1269,14 @@ module Stripe @field_remappings = {} end end + class Scalapay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaDebit < ::Stripe::StripeObject class GeneratedFrom < ::Stripe::StripeObject # The ID of the Charge that generated this PaymentMethod, if any. @@ -1473,6 +1489,9 @@ module Stripe # Attribute for field billing_details sig { returns(BillingDetails) } def billing_details; end + # Attribute for field bizum + sig { returns(T.nilable(Bizum)) } + def bizum; end # Attribute for field blik sig { returns(T.nilable(Blik)) } def blik; end @@ -1605,6 +1624,9 @@ module Stripe # Attribute for field satispay sig { returns(T.nilable(Satispay)) } def satispay; end + # Attribute for field scalapay + sig { returns(T.nilable(Scalapay)) } + def scalapay; end # Attribute for field sepa_debit sig { returns(T.nilable(SepaDebit)) } def sepa_debit; end diff --git a/rbi/stripe/resources/payment_method_configuration.rbi b/rbi/stripe/resources/payment_method_configuration.rbi index 0e4547905..61951b214 100644 --- a/rbi/stripe/resources/payment_method_configuration.rbi +++ b/rbi/stripe/resources/payment_method_configuration.rbi @@ -359,6 +359,37 @@ module Stripe @field_remappings = {} end end + class Bizum < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject + # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + sig { returns(T.nilable(T::Boolean)) } + def overridable; end + # The account's display preference. + sig { returns(String) } + def preference; end + # The effective display preference value. + sig { returns(String) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + sig { returns(T::Boolean) } + def available; end + # Attribute for field display_preference + sig { returns(DisplayPreference) } + def display_preference; end + def self.inner_class_types + @inner_class_types = {display_preference: DisplayPreference} + end + def self.field_remappings + @field_remappings = {} + end + end class Blik < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. @@ -1475,6 +1506,37 @@ module Stripe @field_remappings = {} end end + class Scalapay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject + # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + sig { returns(T.nilable(T::Boolean)) } + def overridable; end + # The account's display preference. + sig { returns(String) } + def preference; end + # The effective display preference value. + sig { returns(String) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + sig { returns(T::Boolean) } + def available; end + # Attribute for field display_preference + sig { returns(DisplayPreference) } + def display_preference; end + def self.inner_class_types + @inner_class_types = {display_preference: DisplayPreference} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaDebit < ::Stripe::StripeObject class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. @@ -1793,6 +1855,9 @@ module Stripe # Attribute for field billie sig { returns(T.nilable(Billie)) } def billie; end + # Attribute for field bizum + sig { returns(T.nilable(Bizum)) } + def bizum; end # Attribute for field blik sig { returns(T.nilable(Blik)) } def blik; end @@ -1919,6 +1984,9 @@ module Stripe # Attribute for field satispay sig { returns(T.nilable(Satispay)) } def satispay; end + # Attribute for field scalapay + sig { returns(T.nilable(Scalapay)) } + def scalapay; end # Attribute for field sepa_debit sig { returns(T.nilable(SepaDebit)) } def sepa_debit; end diff --git a/rbi/stripe/resources/payment_record.rbi b/rbi/stripe/resources/payment_record.rbi index ea238df82..4b541d458 100644 --- a/rbi/stripe/resources/payment_record.rbi +++ b/rbi/stripe/resources/payment_record.rbi @@ -464,6 +464,17 @@ module Stripe @field_remappings = {} end end + class Bizum < ::Stripe::StripeObject + # The Bizum transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Blik < ::Stripe::StripeObject # A unique and immutable identifier assigned by BLIK to every buyer. sig { returns(T.nilable(String)) } @@ -1147,12 +1158,10 @@ module Stripe # The payer details for this transaction. sig { returns(T.nilable(PayerDetails)) } def payer_details; end - # The Klarna payment method used for this transaction. - # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + # The Klarna payment method used for this transaction. Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` sig { returns(T.nilable(String)) } def payment_method_category; end - # Preferred language of the Klarna authorization page that the customer is redirected to. - # Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + # Preferred language of the Klarna authorization page that the customer is redirected to. Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` sig { returns(T.nilable(String)) } def preferred_locale; end # ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on. @@ -1208,8 +1217,7 @@ module Stripe end end class Link < ::Stripe::StripeObject - # Two-letter ISO code representing the funding source country beneath the Link payment. - # You could use this attribute to get a sense of international fees. + # Two-letter ISO code representing the funding source country beneath the Link payment. You could use this attribute to get a sense of international fees. sig { returns(T.nilable(String)) } def country; end def self.inner_class_types @@ -1336,9 +1344,7 @@ module Stripe # Unique reference for this Przelewy24 payment. sig { returns(T.nilable(String)) } def reference; end - # Owner's verified full name. Values are verified or provided by Przelewy24 directly - # (if supported) at the time of authorization or settlement. They cannot be set or mutated. - # Przelewy24 rarely provides this information so the attribute is usually empty. + # Owner's verified full name. Values are verified or provided by Przelewy24 directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Przelewy24 rarely provides this information so the attribute is usually empty. sig { returns(T.nilable(String)) } def verified_name; end def self.inner_class_types @@ -1505,7 +1511,7 @@ module Stripe # Attribute for field card sig { returns(T.nilable(Card)) } def card; end - # funding type of the underlying payment method. + # Funding type of the underlying payment method. sig { returns(T.nilable(String)) } def type; end def self.inner_class_types @@ -1553,6 +1559,17 @@ module Stripe @field_remappings = {} end end + class Scalapay < ::Stripe::StripeObject + # The Scalapay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaCreditTransfer < ::Stripe::StripeObject # Name of the bank associated with the bank account. sig { returns(T.nilable(String)) } @@ -1671,6 +1688,9 @@ module Stripe end end class Twint < ::Stripe::StripeObject + # ID of the multi use Mandate generated by the PaymentIntent + sig { returns(T.nilable(String)) } + def mandate; end def self.inner_class_types @inner_class_types = {} end @@ -1799,6 +1819,9 @@ module Stripe # The billing details associated with the method of payment. sig { returns(T.nilable(BillingDetails)) } def billing_details; end + # Attribute for field bizum + sig { returns(T.nilable(Bizum)) } + def bizum; end # Attribute for field blik sig { returns(T.nilable(Blik)) } def blik; end @@ -1912,6 +1935,9 @@ module Stripe # Attribute for field satispay sig { returns(T.nilable(Satispay)) } def satispay; end + # Attribute for field scalapay + sig { returns(T.nilable(Scalapay)) } + def scalapay; end # Attribute for field sepa_credit_transfer sig { returns(T.nilable(SepaCreditTransfer)) } def sepa_credit_transfer; end @@ -1968,6 +1994,7 @@ module Stripe bancontact: Bancontact, billie: Billie, billing_details: BillingDetails, + bizum: Bizum, blik: Blik, boleto: Boleto, card: Card, @@ -2004,6 +2031,7 @@ module Stripe revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, + scalapay: Scalapay, sepa_credit_transfer: SepaCreditTransfer, sepa_debit: SepaDebit, sofort: Sofort, diff --git a/rbi/stripe/resources/radar/payment_evaluation.rbi b/rbi/stripe/resources/radar/payment_evaluation.rbi index 6b506b5e0..0078a29fc 100644 --- a/rbi/stripe/resources/radar/payment_evaluation.rbi +++ b/rbi/stripe/resources/radar/payment_evaluation.rbi @@ -481,7 +481,7 @@ module Stripe # Payment details attached to this payment evaluation. sig { returns(T.nilable(PaymentDetails)) } def payment_details; end - # Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block` and `continue`. + # Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block`, `continue` and `request_three_d_secure`. sig { returns(String) } def recommended_action; end # Collection of signals for this payment evaluation. diff --git a/rbi/stripe/resources/refund.rbi b/rbi/stripe/resources/refund.rbi index dd2f39ff1..12e84a6aa 100644 --- a/rbi/stripe/resources/refund.rbi +++ b/rbi/stripe/resources/refund.rbi @@ -309,6 +309,14 @@ module Stripe @field_remappings = {} end end + class Scalapay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Sofort < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} @@ -470,6 +478,9 @@ module Stripe # Attribute for field revolut sig { returns(T.nilable(Revolut)) } def revolut; end + # Attribute for field scalapay + sig { returns(T.nilable(Scalapay)) } + def scalapay; end # Attribute for field sofort sig { returns(T.nilable(Sofort)) } def sofort; end @@ -524,6 +535,7 @@ module Stripe paypal: Paypal, pix: Pix, revolut: Revolut, + scalapay: Scalapay, sofort: Sofort, swish: Swish, th_bank_transfer: ThBankTransfer, diff --git a/rbi/stripe/resources/setup_attempt.rbi b/rbi/stripe/resources/setup_attempt.rbi index a03970c08..15fa17f83 100644 --- a/rbi/stripe/resources/setup_attempt.rbi +++ b/rbi/stripe/resources/setup_attempt.rbi @@ -406,6 +406,14 @@ module Stripe @field_remappings = {} end end + class Twint < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Upi < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} @@ -488,6 +496,9 @@ module Stripe # Attribute for field sofort sig { returns(T.nilable(Sofort)) } def sofort; end + # Attribute for field twint + sig { returns(T.nilable(Twint)) } + def twint; end # The type of the payment method used in the SetupIntent (e.g., `card`). An additional hash is included on `payment_method_details` with a name matching this value. It contains confirmation-specific information for the payment method. sig { returns(String) } def type; end @@ -521,6 +532,7 @@ module Stripe revolut_pay: RevolutPay, sepa_debit: SepaDebit, sofort: Sofort, + twint: Twint, upi: Upi, us_bank_account: UsBankAccount, } diff --git a/rbi/stripe/resources/setup_intent.rbi b/rbi/stripe/resources/setup_intent.rbi index 9232e6de7..96ddd4b5b 100644 --- a/rbi/stripe/resources/setup_intent.rbi +++ b/rbi/stripe/resources/setup_intent.rbi @@ -145,6 +145,14 @@ module Stripe end end class NextAction < ::Stripe::StripeObject + class BlikAuthorize < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class CashappHandleRedirectOrDisplayQrCode < ::Stripe::StripeObject class QrCode < ::Stripe::StripeObject # The date (unix timestamp) when the QR code expires. @@ -264,6 +272,9 @@ module Stripe @field_remappings = {} end end + # Attribute for field blik_authorize + sig { returns(T.nilable(BlikAuthorize)) } + def blik_authorize; end # Attribute for field cashapp_handle_redirect_or_display_qr_code sig { returns(T.nilable(CashappHandleRedirectOrDisplayQrCode)) } def cashapp_handle_redirect_or_display_qr_code; end @@ -287,6 +298,7 @@ module Stripe def verify_with_microdeposits; end def self.inner_class_types @inner_class_types = { + blik_authorize: BlikAuthorize, cashapp_handle_redirect_or_display_qr_code: CashappHandleRedirectOrDisplayQrCode, pix_display_qr_code: PixDisplayQrCode, redirect_to_url: RedirectToUrl, @@ -383,6 +395,14 @@ module Stripe @field_remappings = {} end end + class Bizum < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Card < ::Stripe::StripeObject class MandateOptions < ::Stripe::StripeObject # Amount to be charged for future payments, specified in the presentment currency. @@ -689,6 +709,9 @@ module Stripe # Attribute for field bacs_debit sig { returns(T.nilable(BacsDebit)) } def bacs_debit; end + # Attribute for field bizum + sig { returns(T.nilable(Bizum)) } + def bizum; end # Attribute for field card sig { returns(T.nilable(Card)) } def card; end @@ -724,6 +747,7 @@ module Stripe acss_debit: AcssDebit, amazon_pay: AmazonPay, bacs_debit: BacsDebit, + bizum: Bizum, card: Card, card_present: CardPresent, klarna: Klarna, diff --git a/rbi/stripe/resources/subscription.rbi b/rbi/stripe/resources/subscription.rbi index 09f06c777..19eb17594 100644 --- a/rbi/stripe/resources/subscription.rbi +++ b/rbi/stripe/resources/subscription.rbi @@ -89,6 +89,71 @@ module Stripe @field_remappings = {} end end + class BillingSchedule < ::Stripe::StripeObject + class AppliesTo < ::Stripe::StripeObject + # The billing schedule will apply to the subscription item with the given price ID. + sig { returns(T.nilable(T.any(String, ::Stripe::Price))) } + def price; end + # Controls which subscription items the billing schedule applies to. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class BillUntil < ::Stripe::StripeObject + class Duration < ::Stripe::StripeObject + # Specifies billing duration. Either `day`, `week`, `month` or `year`. + sig { returns(String) } + def interval; end + # The multiplier applied to the interval. + sig { returns(T.nilable(Integer)) } + def interval_count; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The timestamp the billing schedule will apply until. + sig { returns(Integer) } + def computed_timestamp; end + # Specifies the billing period. + sig { returns(T.nilable(Duration)) } + def duration; end + # If specified, the billing schedule will apply until the specified timestamp. + sig { returns(T.nilable(Integer)) } + def timestamp; end + # Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {duration: Duration} + end + def self.field_remappings + @field_remappings = {} + end + end + # Specifies which subscription items the billing schedule applies to. + sig { returns(T.nilable(T::Array[AppliesTo])) } + def applies_to; end + # Specifies the end of billing period. + sig { returns(BillUntil) } + def bill_until; end + # Unique identifier for the billing schedule. + sig { returns(String) } + def key; end + def self.inner_class_types + @inner_class_types = {applies_to: AppliesTo, bill_until: BillUntil} + end + def self.field_remappings + @field_remappings = {} + end + end class BillingThresholds < ::Stripe::StripeObject # Monetary threshold that triggers the subscription to create an invoice sig { returns(T.nilable(Integer)) } @@ -517,9 +582,18 @@ module Stripe # If the update is applied, determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. The timestamp is in UTC format. sig { returns(T.nilable(Integer)) } def billing_cycle_anchor; end + # The pending subscription-level discount that will be applied when the pending update is applied. + sig { returns(T.nilable(::Stripe::Discount)) } + def discount; end + # The discounts that will be applied to the subscription when the pending update is applied. Use `expand[]=discounts` to expand each discount. + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::Discount)])) } + def discounts; end # The point after which the changes reflected by this update will be discarded and no longer applied. sig { returns(Integer) } def expires_at; end + # Set of [key-value pairs](https://docs.stripe.com/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 # List of subscription items, each with an attached plan, that will be set if the update is applied. sig { returns(T.nilable(T::Array[::Stripe::SubscriptionItem])) } def subscription_items; end @@ -601,6 +675,9 @@ module Stripe # The billing mode of the subscription. sig { returns(BillingMode) } def billing_mode; end + # Billing schedules for this subscription. + sig { returns(T::Array[BillingSchedule]) } + def billing_schedules; end # Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period sig { returns(T.nilable(BillingThresholds)) } def billing_thresholds; end @@ -736,7 +813,7 @@ module Stripe # If the subscription has a trial, the beginning of that trial. sig { returns(T.nilable(Integer)) } def trial_start; end - # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. # # Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. # @@ -746,7 +823,7 @@ module Stripe } def cancel(params = {}, opts = {}); end - # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. # # Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. # @@ -798,13 +875,13 @@ module Stripe } def self.migrate(subscription, params = {}, opts = {}); end - # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). sig { params(params: T.any(::Stripe::SubscriptionResumeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def resume(params = {}, opts = {}); end - # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). sig { params(subscription: String, params: T.any(::Stripe::SubscriptionResumeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } diff --git a/rbi/stripe/resources/subscription_item.rbi b/rbi/stripe/resources/subscription_item.rbi index bfaa5feae..f9aa2fdb9 100644 --- a/rbi/stripe/resources/subscription_item.rbi +++ b/rbi/stripe/resources/subscription_item.rbi @@ -17,6 +17,9 @@ module Stripe @field_remappings = {} end end + # The time period the subscription item has been billed for. + sig { returns(T.nilable(Integer)) } + def billed_until; end # Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period sig { returns(T.nilable(BillingThresholds)) } def billing_thresholds; end diff --git a/rbi/stripe/resources/subscription_schedule.rbi b/rbi/stripe/resources/subscription_schedule.rbi index b4471c370..ad4b970b2 100644 --- a/rbi/stripe/resources/subscription_schedule.rbi +++ b/rbi/stripe/resources/subscription_schedule.rbi @@ -243,6 +243,9 @@ module Stripe @field_remappings = {} end end + # Controls whether discounts apply to this invoice item. Defaults to true if no value is provided. + sig { returns(T.nilable(T::Boolean)) } + def discountable; end # The stackable discounts that will be applied to the item. sig { returns(T::Array[Discount]) } def discounts; end diff --git a/rbi/stripe/resources/terminal/configuration.rbi b/rbi/stripe/resources/terminal/configuration.rbi index 5d70a46a9..a6a94a2d4 100644 --- a/rbi/stripe/resources/terminal/configuration.rbi +++ b/rbi/stripe/resources/terminal/configuration.rbi @@ -537,6 +537,17 @@ module Stripe @field_remappings = {} end end + class VerifoneM425 < ::Stripe::StripeObject + # A File ID representing an image to display on the reader + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } + def splashscreen; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class VerifoneP400 < ::Stripe::StripeObject # A File ID representing an image to display on the reader sig { returns(T.nilable(T.any(String, ::Stripe::File))) } @@ -548,6 +559,39 @@ module Stripe @field_remappings = {} end end + class VerifoneP630 < ::Stripe::StripeObject + # A File ID representing an image to display on the reader + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } + def splashscreen; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class VerifoneUx700 < ::Stripe::StripeObject + # A File ID representing an image to display on the reader + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } + def splashscreen; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class VerifoneV660p < ::Stripe::StripeObject + # A File ID representing an image to display on the reader + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } + def splashscreen; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Wifi < ::Stripe::StripeObject class EnterpriseEapPeap < ::Stripe::StripeObject # A File ID representing a PEM file containing the server certificate @@ -671,9 +715,21 @@ module Stripe # Attribute for field tipping sig { returns(T.nilable(Tipping)) } def tipping; end + # Attribute for field verifone_m425 + sig { returns(T.nilable(VerifoneM425)) } + def verifone_m425; end # Attribute for field verifone_p400 sig { returns(T.nilable(VerifoneP400)) } def verifone_p400; end + # Attribute for field verifone_p630 + sig { returns(T.nilable(VerifoneP630)) } + def verifone_p630; end + # Attribute for field verifone_ux700 + sig { returns(T.nilable(VerifoneUx700)) } + def verifone_ux700; end + # Attribute for field verifone_v660p + sig { returns(T.nilable(VerifoneV660p)) } + def verifone_v660p; end # Attribute for field wifi sig { returns(T.nilable(Wifi)) } def wifi; end diff --git a/rbi/stripe/resources/terminal/reader.rbi b/rbi/stripe/resources/terminal/reader.rbi index 9c896d1b8..3eeb77dee 100644 --- a/rbi/stripe/resources/terminal/reader.rbi +++ b/rbi/stripe/resources/terminal/reader.rbi @@ -9,6 +9,98 @@ module Stripe # Related guide: [Connecting to a reader](https://docs.stripe.com/terminal/payments/connect-reader) class Reader < APIResource class Action < ::Stripe::StripeObject + class ApiError < ::Stripe::StripeObject + # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one. + sig { returns(T.nilable(String)) } + def advice_code; end + # For card errors, the ID of the failed charge. + sig { returns(T.nilable(String)) } + def charge; end + # For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported. + sig { returns(T.nilable(String)) } + def code; end + # For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one. + sig { returns(T.nilable(String)) } + def decline_code; end + # A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported. + sig { returns(T.nilable(String)) } + def doc_url; end + # A human-readable message providing more details about the error. For card errors, these messages can be shown to your users. + sig { returns(T.nilable(String)) } + def message; end + # For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error. + sig { returns(T.nilable(String)) } + def network_advice_code; end + # For payments declined by the network, an alphanumeric code which indicates the reason the payment failed. + sig { returns(T.nilable(String)) } + def network_decline_code; end + # If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field. + sig { returns(T.nilable(String)) } + def param; end + # A PaymentIntent guides you through the process of collecting a payment from your customer. + # We recommend that you create exactly one PaymentIntent for each order or + # customer session in your system. You can reference the PaymentIntent later to + # see the history of payment attempts for a particular session. + # + # A PaymentIntent transitions through + # [multiple statuses](/payments/paymentintents/lifecycle) + # throughout its lifetime as it interfaces with Stripe.js to perform + # authentication flows and ultimately creates at most one successful charge. + # + # Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents) + sig { returns(T.nilable(::Stripe::PaymentIntent)) } + def payment_intent; end + # PaymentMethod objects represent your customer's payment instruments. + # You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to + # Customer objects to store instrument details for future payments. + # + # Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios). + sig { returns(T.nilable(::Stripe::PaymentMethod)) } + def payment_method; end + # If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors. + sig { returns(T.nilable(String)) } + def payment_method_type; end + # A URL to the request log entry in your dashboard. + sig { returns(T.nilable(String)) } + def request_log_url; end + # A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments. + # For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment. + # Later, you can use [PaymentIntents](https://api.stripe.com#payment_intents) to drive the payment flow. + # + # Create a SetupIntent when you're ready to collect your customer's payment credentials. + # Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid. + # The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides + # you through the setup process. + # + # Successful SetupIntents result in payment credentials that are optimized for future payments. + # For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through + # [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection + # to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents). + # If you use the SetupIntent with a [Customer](https://api.stripe.com#setup_intent_object-customer), + # it automatically attaches the resulting payment method to that Customer after successful setup. + # We recommend using SetupIntents or [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) on + # PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods. + # + # By using SetupIntents, you can reduce friction for your customers, even as regulations change over time. + # + # Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) + sig { returns(T.nilable(::Stripe::SetupIntent)) } + def setup_intent; end + # Attribute for field source + sig { + returns(T.nilable(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source))) + } + def source; end + # The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error` + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class CollectInputs < ::Stripe::StripeObject class Input < ::Stripe::StripeObject class CustomText < ::Stripe::StripeObject @@ -276,6 +368,40 @@ module Stripe @field_remappings = {} end end + class PrintContent < ::Stripe::StripeObject + class Image < ::Stripe::StripeObject + # Creation time of the object (in seconds since the Unix epoch). + sig { returns(Integer) } + def created_at; end + # The original name of the uploaded file (e.g. `receipt.png`). + sig { returns(String) } + def filename; end + # The size (in bytes) of the uploaded file. + sig { returns(Integer) } + def size; end + # The format of the uploaded file. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Metadata of an uploaded file + sig { returns(T.nilable(Image)) } + def image; end + # The type of content to print. Currently supports `image`. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {image: Image} + end + def self.field_remappings + @field_remappings = {} + end + end class ProcessPaymentIntent < ::Stripe::StripeObject class ProcessConfig < ::Stripe::StripeObject class Tipping < ::Stripe::StripeObject @@ -446,6 +572,9 @@ module Stripe @field_remappings = {} end end + # The reader action failed due to an [API error](https://docs.stripe.com/api/errors). Only present when `status` is `failed` and the underlying failure was an API error. Avoid parsing the `message` field for programmatic logic; use `type` or `code` instead. The `message` field is for display to humans only and may be updated at anytime. Requires [reader version](https://docs.stripe.com/terminal/readers/stripe-reader-s700-s710#reader-software-version) 2.42 or later. Readers on older versions always return null. + sig { returns(T.nilable(ApiError)) } + def api_error; end # Represents a reader action to collect customer inputs sig { returns(T.nilable(CollectInputs)) } def collect_inputs; end @@ -461,6 +590,9 @@ module Stripe # Detailed failure message, only set if status is `failed`. sig { returns(T.nilable(String)) } def failure_message; end + # Represents a reader action to print content + sig { returns(T.nilable(PrintContent)) } + def print_content; end # Represents a reader action to process a payment intent sig { returns(T.nilable(ProcessPaymentIntent)) } def process_payment_intent; end @@ -481,9 +613,11 @@ module Stripe def type; end def self.inner_class_types @inner_class_types = { + api_error: ApiError, collect_inputs: CollectInputs, collect_payment_method: CollectPaymentMethod, confirm_payment_intent: ConfirmPaymentIntent, + print_content: PrintContent, process_payment_intent: ProcessPaymentIntent, process_setup_intent: ProcessSetupIntent, refund_payment: RefundPayment, diff --git a/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi b/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi index 8f94b7336..bd232479f 100644 --- a/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +++ b/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi @@ -8,7 +8,7 @@ module Stripe # A Meter Event Adjustment is used to cancel or modify previously recorded meter events. Meter Event Adjustments allow you to correct billing data by canceling individual events or event ranges, with tracking of adjustment status and creation time. class MeterEventAdjustment < APIResource class Cancel < ::Stripe::StripeObject - # Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. + # The identifier that was originally assigned to the meter event. You can only cancel events within 24 hours of Stripe receiving them. sig { returns(String) } def identifier; end def self.inner_class_types @@ -27,7 +27,7 @@ module Stripe # The name of the meter event. Corresponds with the `event_name` field on a meter. sig { returns(String) } def event_name; end - # The unique id of this meter event adjustment. + # The unique ID of this meter event adjustment. sig { returns(String) } def id; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. @@ -39,7 +39,7 @@ module Stripe # Open Enum. The meter event adjustment’s status. sig { returns(String) } def status; end - # Open Enum. Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet. + # Open Enum. Specifies the type of cancellation. Currently supports canceling a single event. sig { returns(String) } def type; end end diff --git a/rbi/stripe/resources/v2/billing/meter_event_session.rbi b/rbi/stripe/resources/v2/billing/meter_event_session.rbi index 4e50cfe16..fa22c572b 100644 --- a/rbi/stripe/resources/v2/billing/meter_event_session.rbi +++ b/rbi/stripe/resources/v2/billing/meter_event_session.rbi @@ -7,17 +7,17 @@ module Stripe module Billing # A Meter Event Session is an authentication session for the high-throughput meter event API. Meter Event Sessions provide temporary authentication tokens with expiration times, enabling secure and efficient bulk submission of usage events. class MeterEventSession < APIResource - # The authentication token for this session. Use this token when calling the + # The authentication token for this session. Use this token when calling the # high-throughput meter event API. sig { returns(String) } def authentication_token; end # The creation time of this session. sig { returns(String) } def created; end - # The time at which this session will expire. + # The time at which this session expires. sig { returns(String) } def expires_at; end - # The unique id of this auth session. + # The unique ID of this auth session. sig { returns(String) } def id; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. diff --git a/rbi/stripe/resources/v2/commerce/product_catalog_import.rbi b/rbi/stripe/resources/v2/commerce/product_catalog_import.rbi new file mode 100644 index 000000000..3b9c3480c --- /dev/null +++ b/rbi/stripe/resources/v2/commerce/product_catalog_import.rbi @@ -0,0 +1,242 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Commerce + # The ProductCatalogImport object tracks the long-running background process that handles uploading, processing and validation. + class ProductCatalogImport < APIResource + class StatusDetails < ::Stripe::StripeObject + class AwaitingUpload < ::Stripe::StripeObject + class UploadUrl < ::Stripe::StripeObject + # The timestamp when the upload URL expires. + sig { returns(String) } + def expires_at; end + # The pre-signed URL for uploading the catalog file. + sig { returns(String) } + def url; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The pre-signed URL information for uploading the catalog file. + sig { returns(UploadUrl) } + def upload_url; end + def self.inner_class_types + @inner_class_types = {upload_url: UploadUrl} + end + def self.field_remappings + @field_remappings = {} + end + end + class Failed < ::Stripe::StripeObject + # The error code for this product catalog processing failure. + sig { returns(String) } + def code; end + # A message explaining why the import failed. + sig { returns(String) } + def failure_message; end + # The error type for this product catalog processing failure. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Processing < ::Stripe::StripeObject + # The number of records that failed to process so far. + sig { returns(Integer) } + def error_count; end + # The number of records processed so far. + sig { returns(Integer) } + def success_count; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + def self.field_encodings + @field_encodings = {error_count: :int64_string, success_count: :int64_string} + end + end + class Succeeded < ::Stripe::StripeObject + # The total number of records processed. + sig { returns(Integer) } + def success_count; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + def self.field_encodings + @field_encodings = {success_count: :int64_string} + end + end + class SucceededWithErrors < ::Stripe::StripeObject + class ErrorFile < ::Stripe::StripeObject + class DownloadUrl < ::Stripe::StripeObject + # The timestamp when the download URL expires. + sig { returns(String) } + def expires_at; end + # The pre-signed URL for downloading the error file. + sig { returns(String) } + def url; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The MIME type of the error file. + sig { returns(String) } + def content_type; end + # The pre-signed URL information for downloading the error file. + sig { returns(DownloadUrl) } + def download_url; end + # The size of the error file in bytes. + sig { returns(Integer) } + def size; end + def self.inner_class_types + @inner_class_types = {download_url: DownloadUrl} + end + def self.field_remappings + @field_remappings = {} + end + def self.field_encodings + @field_encodings = {size: :int64_string} + end + end + class Sample < ::Stripe::StripeObject + # A description of what went wrong with this record. + sig { returns(String) } + def error_message; end + # The name of the field that caused the error. + sig { returns(String) } + def field; end + # The identifier of the record that failed to process. + sig { returns(String) } + def id; end + # The row number in the import file where the error occurred. + sig { returns(Integer) } + def row; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + def self.field_encodings + @field_encodings = {row: :int64_string} + end + end + # The total number of records that failed to process. + sig { returns(Integer) } + def error_count; end + # A file containing details about all errors that occurred. + sig { returns(ErrorFile) } + def error_file; end + # A sample of errors that occurred during processing. + sig { returns(T::Array[Sample]) } + def samples; end + # The total number of records processed. + sig { returns(Integer) } + def success_count; end + def self.inner_class_types + @inner_class_types = {error_file: ErrorFile, samples: Sample} + end + def self.field_remappings + @field_remappings = {} + end + def self.field_encodings + @field_encodings = { + error_count: :int64_string, + error_file: {kind: :object, fields: {size: :int64_string}}, + samples: {kind: :array, element: {kind: :object, fields: {row: :int64_string}}}, + success_count: :int64_string, + } + end + end + # Details when the import is awaiting file upload. + sig { returns(T.nilable(AwaitingUpload)) } + def awaiting_upload; end + # Details when the import didn't complete. + sig { returns(T.nilable(Failed)) } + def failed; end + # Details when the import is processing. + sig { returns(T.nilable(Processing)) } + def processing; end + # Details when the import has succeeded. + sig { returns(T.nilable(Succeeded)) } + def succeeded; end + # Details when the import completed but some records failed to process. + sig { returns(T.nilable(SucceededWithErrors)) } + def succeeded_with_errors; end + def self.inner_class_types + @inner_class_types = { + awaiting_upload: AwaitingUpload, + failed: Failed, + processing: Processing, + succeeded: Succeeded, + succeeded_with_errors: SucceededWithErrors, + } + end + def self.field_remappings + @field_remappings = {} + end + def self.field_encodings + @field_encodings = { + processing: { + kind: :object, + fields: {error_count: :int64_string, success_count: :int64_string}, + }, + succeeded: {kind: :object, fields: {success_count: :int64_string}}, + succeeded_with_errors: { + kind: :object, + fields: { + error_count: :int64_string, + error_file: {kind: :object, fields: {size: :int64_string}}, + samples: {kind: :array, element: {kind: :object, fields: {row: :int64_string}}}, + success_count: :int64_string, + }, + }, + } + end + end + # The time this ProductCatalogImport was created. + sig { returns(String) } + def created; end + # The type of feed data being imported into the product catalog. + sig { returns(String) } + def feed_type; end + # The unique identifier for this ProductCatalogImport. + sig { returns(String) } + def id; 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 + # Additional information about the object in a structured format. + sig { returns(T::Hash[String, String]) } + def metadata; 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 + # The current status of this ProductCatalogImport. + sig { returns(String) } + def status; end + # Details about the current import status. + sig { returns(T.nilable(StatusDetails)) } + def status_details; 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 145f5be25..a0f62b042 100644 --- a/rbi/stripe/resources/v2/core/account.rbi +++ b/rbi/stripe/resources/v2/core/account.rbi @@ -5,9 +5,8 @@ module Stripe module V2 module Core - # An Account v2 object represents a company, individual, or other entity that interacts with a platform on Stripe. It contains both identifying information and properties that control its behavior and functionality. An Account can have one or more configurations that enable sets of related features, such as allowing it to act as a merchant or customer. - # The Accounts v2 API supports both the Global Payouts preview feature and the Connect-Billing integration preview feature. However, a particular Account can only access one of them. - # The Connect-Billing integration preview feature allows an Account v2 to pay subscription fees to a platform. An Account v1 required a separate Customer object to pay subscription fees. + # An Account v2 object represents a company, individual, or other entity that your Stripe integration interacts with. It contains both identifying information and properties that control its behavior and functionality. An Account can have one or more configurations that enable sets of related features, such as allowing it to act as a merchant or customer. + # The Accounts v2 API is broadly available to Connect platforms, and to other users in preview. The Accounts v2 API also supports the Global Payouts preview feature. class Account < APIResource class Configuration < ::Stripe::StripeObject class Customer < ::Stripe::StripeObject @@ -97,7 +96,7 @@ module Stripe @field_remappings = {} end end - # ID of a PaymentMethod attached to the customer account to use as the default for invoices and subscriptions. + # The ID of a `PaymentMethod` attached to this Account's `customer` configuration, used as the default payment method for invoices and subscriptions. sig { returns(T.nilable(String)) } def default_payment_method; end # Default invoice settings for the customer account. @@ -2045,7 +2044,7 @@ module Stripe @field_remappings = {} end end - # The Customer Configuration allows the Account to be used in inbound payment flows. + # The Customer Configuration allows the Account to be used in inbound payment flows (i.e. customer-facing payment and billing flows). sig { returns(T.nilable(Customer)) } def customer; end # Enables the Account to act as a connected account and collect payments facilitated by a Connect platform. You must onboard your platform to Connect before you can add this configuration to your connected accounts. Utilize this configuration when the Account will be the Merchant of Record, like with Direct charges or Destination Charges with on_behalf_of set. @@ -2586,28 +2585,56 @@ module Stripe end end class ProofOfRegistration < ::Stripe::StripeObject + class Signer < ::Stripe::StripeObject + # Person signing the document. + sig { returns(String) } + def person; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. sig { returns(T::Array[String]) } def files; end + # Person that is signing the document. + sig { returns(T.nilable(Signer)) } + def signer; end # The format of the document. Currently supports `files` only. sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {signer: Signer} end def self.field_remappings @field_remappings = {} end end class ProofOfUltimateBeneficialOwnership < ::Stripe::StripeObject + class Signer < ::Stripe::StripeObject + # Person signing the document. + sig { returns(String) } + def person; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. sig { returns(T::Array[String]) } def files; end + # Person that is signing the document. + sig { returns(T.nilable(Signer)) } + def signer; end # The format of the document. Currently supports `files` only. sig { returns(String) } def type; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {signer: Signer} end def self.field_remappings @field_remappings = {} @@ -3301,7 +3328,7 @@ module Stripe # Documents that may be submitted to satisfy various informational requests. sig { returns(T.nilable(Documents)) } def documents; end - # The individual's email address. + # The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account. sig { returns(T.nilable(String)) } def email; end # The individual's first name. @@ -3378,7 +3405,7 @@ module Stripe # The country in which the account holder resides, or in which the business is legally established. This should be an [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. sig { returns(T.nilable(String)) } def country; end - # The entity type. + # The entity type represented by the Account. Ensure this field is accurate before adding configurations that rely on identity information, as it determines which identity fields apply and how the Account is validated. sig { returns(T.nilable(String)) } def entity_type; end # Information about the individual represented by the Account. This property is `null` unless `entity_type` is set to `individual`. @@ -3581,7 +3608,7 @@ module Stripe # An Account represents a company, individual, or other entity that a user interacts with. Accounts store identity information and one or more configurations that enable product-specific capabilities. You can assign configurations at creation or add them later. sig { returns(T.nilable(Configuration)) } def configuration; end - # The default contact email address for the Account. Required when configuring the account as a merchant or recipient. + # The primary contact email address for the Account. sig { returns(T.nilable(String)) } def contact_email; end # The default contact phone for the Account. diff --git a/rbi/stripe/resources/v2/core/account_token.rbi b/rbi/stripe/resources/v2/core/account_token.rbi index 864b562be..5a75805e0 100644 --- a/rbi/stripe/resources/v2/core/account_token.rbi +++ b/rbi/stripe/resources/v2/core/account_token.rbi @@ -5,7 +5,7 @@ module Stripe module V2 module Core - # Account tokens are single-use tokens which tokenize company/individual/business information, and are used for creating or updating an Account. + # Account tokens are single-use tokens which tokenize an account's contact_email, display_name, contact_phone, and identity. class AccountToken < APIResource # Time at which the token was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. sig { returns(String) } diff --git a/rbi/stripe/resources/v2/core/event.rbi b/rbi/stripe/resources/v2/core/event.rbi index 77cc41147..2446be829 100644 --- a/rbi/stripe/resources/v2/core/event.rbi +++ b/rbi/stripe/resources/v2/core/event.rbi @@ -6,6 +6,7 @@ module Stripe module V2 module Core # Events are generated to keep you informed of activity in your business account. APIs in the /v2 namespace generate [thin events](https://docs.stripe.com/event-destinations#benefits-of-thin-events) which have small, unversioned payloads that include a reference to the ID of the object that has changed. The Events v2 API returns these new thin events. [Retrieve the event object](https://docs.stripe.com/event-destinations#fetch-data) for additional data about the event. Use the related object ID in the event payload to [fetch the API resource](https://docs.stripe.com/event-destinations#retrieve-the-object-associated-with-thin-events) of the object associated with the event. Comparatively, events generated by most API v1 include a versioned snapshot of an API object in their payload. + # You can access events through the [Retrieve Event API](https://docs.stripe.com/api/v2/core/events/retrieve) for 30 days. class Event < APIResource class Reason < ::Stripe::StripeObject class Request < ::Stripe::StripeObject diff --git a/rbi/stripe/resources/v2/core/event_destination.rbi b/rbi/stripe/resources/v2/core/event_destination.rbi index e92a26f07..442cca00c 100644 --- a/rbi/stripe/resources/v2/core/event_destination.rbi +++ b/rbi/stripe/resources/v2/core/event_destination.rbi @@ -24,6 +24,29 @@ module Stripe @field_remappings = {} end end + class AzureEventGrid < ::Stripe::StripeObject + # The name of the Azure partner topic. + sig { returns(String) } + def azure_partner_topic_name; end + # The status of the Azure partner topic. + sig { returns(String) } + def azure_partner_topic_status; end + # The Azure region. + sig { returns(String) } + def azure_region; end + # The name of the Azure resource group. + sig { returns(String) } + def azure_resource_group_name; end + # The Azure subscription ID. + sig { returns(String) } + def azure_subscription_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class StatusDetails < ::Stripe::StripeObject class Disabled < ::Stripe::StripeObject # Reason event destination has been disabled. @@ -63,6 +86,9 @@ module Stripe # Amazon EventBridge configuration. sig { returns(T.nilable(AmazonEventbridge)) } def amazon_eventbridge; end + # Azure Event Grid configuration. + sig { returns(T.nilable(AzureEventGrid)) } + def azure_event_grid; end # Time at which the object was created. sig { returns(String) } def created; end diff --git a/rbi/stripe/services/payment_intent_service.rbi b/rbi/stripe/services/payment_intent_service.rbi index 757d3c6b3..9ba645182 100644 --- a/rbi/stripe/services/payment_intent_service.rbi +++ b/rbi/stripe/services/payment_intent_service.rbi @@ -104,7 +104,9 @@ module Stripe # Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. # After it's captured, a PaymentIntent can no longer be incremented. # - # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). + # Learn more about incremental authorizations with + # [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and + # [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements). sig { params(intent: String, params: T.any(::Stripe::PaymentIntentIncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } diff --git a/rbi/stripe/services/subscription_service.rbi b/rbi/stripe/services/subscription_service.rbi index fd3b03df9..323e10aac 100644 --- a/rbi/stripe/services/subscription_service.rbi +++ b/rbi/stripe/services/subscription_service.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe class SubscriptionService < StripeService - # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata). + # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. # # Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true. # @@ -44,7 +44,7 @@ module Stripe } def migrate(subscription, params = {}, opts = {}); end - # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If no resumption invoice is generated, the subscription becomes active immediately. If a resumption invoice is generated, the subscription remains paused until the invoice is paid or marked uncollectible. If the invoice isn't paid by the expiration date, it is voided and the subscription remains paused. You can only resume subscriptions with collection_method set to charge_automatically. send_invoice subscriptions are not supported. + # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions). sig { params(subscription: String, params: T.any(::Stripe::SubscriptionResumeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } diff --git a/rbi/stripe/services/v2/billing/meter_event_session_service.rbi b/rbi/stripe/services/v2/billing/meter_event_session_service.rbi index f7539a284..3d41d8d4c 100644 --- a/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +++ b/rbi/stripe/services/v2/billing/meter_event_session_service.rbi @@ -6,7 +6,7 @@ module Stripe module V2 module Billing class MeterEventSessionService < StripeService - # Creates a meter event session to send usage on the high-throughput meter event stream. Authentication tokens are only valid for 15 minutes, so you will need to create a new meter event session when your token expires. + # Creates a meter event session to send usage on the high-throughput meter event stream. Authentication tokens are only valid for 15 minutes, so you need to create a new meter event session when your token expires. sig { params(params: T.any(::Stripe::V2::Billing::MeterEventSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Billing::MeterEventSession) } diff --git a/rbi/stripe/services/v2/commerce/product_catalog/import_service.rbi b/rbi/stripe/services/v2/commerce/product_catalog/import_service.rbi new file mode 100644 index 000000000..524e5309c --- /dev/null +++ b/rbi/stripe/services/v2/commerce/product_catalog/import_service.rbi @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Commerce + module ProductCatalog + class ImportService < StripeService + # Creates a ProductCatalogImport. + sig { + params(params: T.any(::Stripe::V2::Commerce::ProductCatalog::ImportCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Commerce::ProductCatalogImport) + } + def create(params = {}, opts = {}); end + + # Returns a list of ProductCatalogImport objects. + sig { + params(params: T.any(::Stripe::V2::Commerce::ProductCatalog::ImportListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject) + } + def list(params = {}, opts = {}); end + + # Retrieves a ProductCatalogImport by ID. + sig { + params(id: String, params: T.any(::Stripe::V2::Commerce::ProductCatalog::ImportRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Commerce::ProductCatalogImport) + } + def retrieve(id, params = {}, opts = {}); end + end + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/services/v2/commerce/product_catalog_service.rbi b/rbi/stripe/services/v2/commerce/product_catalog_service.rbi new file mode 100644 index 000000000..bd8040bda --- /dev/null +++ b/rbi/stripe/services/v2/commerce/product_catalog_service.rbi @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + module Commerce + class ProductCatalogService < StripeService + attr_reader :imports + end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/services/v2/commerce_service.rbi b/rbi/stripe/services/v2/commerce_service.rbi new file mode 100644 index 000000000..679c25092 --- /dev/null +++ b/rbi/stripe/services/v2/commerce_service.rbi @@ -0,0 +1,11 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module V2 + class CommerceService < StripeService + attr_reader :product_catalog + 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 1c79e29b5..042184d13 100644 --- a/rbi/stripe/services/v2/core/account_service.rbi +++ b/rbi/stripe/services/v2/core/account_service.rbi @@ -16,7 +16,7 @@ module Stripe } def close(id, params = {}, opts = {}); end - # An Account is a representation of a company, individual or other entity that a user interacts with. Accounts contain identifying information about the entity, and configurations that store the features an account has access to. An account can be configured as any or all of the following configurations: Customer, Merchant and/or Recipient. + # Create an Account that represents a company, individual, or other entity that your business interacts with. Accounts contain identifying information about the entity, and configurations that store the features an account has access to. An account can be configured as any or all of the following configurations: Customer, Merchant and/or Recipient. # # ** raises RateLimitError sig { diff --git a/rbi/stripe/services/v2/core/account_token_service.rbi b/rbi/stripe/services/v2/core/account_token_service.rbi index 4dcf81be1..cc80c0491 100644 --- a/rbi/stripe/services/v2/core/account_token_service.rbi +++ b/rbi/stripe/services/v2/core/account_token_service.rbi @@ -6,7 +6,11 @@ module Stripe module V2 module Core class AccountTokenService < StripeService - # Creates an Account Token. + # Create an account token with a publishable key and pass it to the Accounts v2 API to + # create or update an account without its data touching your server. + # Learn more about [account tokens](https://docs.stripe.com/connect/account-tokens). + # In live mode, you can only create account tokens with your application's publishable key. + # In test mode, you can create account tokens with your secret key or publishable key. # # ** raises RateLimitError sig { diff --git a/rbi/stripe/services/v2/core/accounts/person_token_service.rbi b/rbi/stripe/services/v2/core/accounts/person_token_service.rbi index 072d94c8b..906f7ed95 100644 --- a/rbi/stripe/services/v2/core/accounts/person_token_service.rbi +++ b/rbi/stripe/services/v2/core/accounts/person_token_service.rbi @@ -7,7 +7,8 @@ module Stripe module Core module Accounts class PersonTokenService < StripeService - # Creates a Person Token associated with an Account. + # Creates a single-use token that represents the details for a person. Use this when you create or update persons associated with an Account v2. Learn more about [account tokens](https://docs.stripe.com/connect/account-tokens). + # You can only create person tokens with your application's publishable key and in live mode. You can use your application's secret key to create person tokens only in test mode. # # ** raises RateLimitError sig { diff --git a/rbi/stripe/services/v2/core/event_service.rbi b/rbi/stripe/services/v2/core/event_service.rbi index dcc9c1907..7399a45bd 100644 --- a/rbi/stripe/services/v2/core/event_service.rbi +++ b/rbi/stripe/services/v2/core/event_service.rbi @@ -12,7 +12,8 @@ module Stripe } def list(params = {}, opts = {}); end - # Retrieves the details of an event. + # Retrieves the details of an event if it was created in the last 30 days. Supply the unique + # identifier of the event, which might have been delivered to your event destination. sig { params(id: String, params: T.any(::Stripe::V2::Core::EventRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Event) } diff --git a/rbi/stripe/services/v2_services.rbi b/rbi/stripe/services/v2_services.rbi index 4f9448fce..bc872310e 100644 --- a/rbi/stripe/services/v2_services.rbi +++ b/rbi/stripe/services/v2_services.rbi @@ -5,6 +5,7 @@ module Stripe class V2Services < StripeService attr_reader :billing + attr_reader :commerce attr_reader :core end end \ No newline at end of file diff --git a/test/stripe/generated_examples_test.rb b/test/stripe/generated_examples_test.rb index ce9ce773e..48251c00c 100644 --- a/test/stripe/generated_examples_test.rb +++ b/test/stripe/generated_examples_test.rb @@ -7572,6 +7572,49 @@ class CodegennedExampleTest < Test::Unit::TestCase }) assert_requested :post, "#{Stripe::DEFAULT_METER_EVENTS_BASE}/v2/billing/meter_event_stream" end + should "Test v2 commerce product catalog import get (service)" do + stub_request( + :get, + "#{Stripe::DEFAULT_API_BASE}/v2/commerce/product_catalog/imports" + ).to_return( + body: '{"data":[{"object":"v2.commerce.product_catalog_import","created":"1970-01-12T21:42:34.472Z","feed_type":"pricing","id":"obj_123","livemode":true,"metadata":{"key":"metadata"},"status":"awaiting_upload"}],"next_page_url":null,"previous_page_url":null}', + status: 200 + ) + client = Stripe::StripeClient.new("sk_test_123") + + product_catalog_imports = client.v2.commerce.product_catalog.imports.list + assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/commerce/product_catalog/imports" + end + should "Test v2 commerce product catalog import post (service)" do + stub_request( + :post, + "#{Stripe::DEFAULT_API_BASE}/v2/commerce/product_catalog/imports" + ).to_return( + body: '{"object":"v2.commerce.product_catalog_import","created":"1970-01-12T21:42:34.472Z","feed_type":"pricing","id":"obj_123","livemode":true,"metadata":{"key":"metadata"},"status":"awaiting_upload"}', + status: 200 + ) + client = Stripe::StripeClient.new("sk_test_123") + + product_catalog_import = client.v2.commerce.product_catalog.imports.create({ + feed_type: "pricing", + metadata: { key: "metadata" }, + mode: "upsert", + }) + assert_requested :post, "#{Stripe::DEFAULT_API_BASE}/v2/commerce/product_catalog/imports" + end + should "Test v2 commerce product catalog import get 2 (service)" do + stub_request( + :get, + "#{Stripe::DEFAULT_API_BASE}/v2/commerce/product_catalog/imports/id_123" + ).to_return( + body: '{"object":"v2.commerce.product_catalog_import","created":"1970-01-12T21:42:34.472Z","feed_type":"pricing","id":"obj_123","livemode":true,"metadata":{"key":"metadata"},"status":"awaiting_upload"}', + status: 200 + ) + client = Stripe::StripeClient.new("sk_test_123") + + product_catalog_import = client.v2.commerce.product_catalog.imports.retrieve("id_123") + assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/commerce/product_catalog/imports/id_123" + end should "Test v2 core account get (service)" do stub_request(:get, "#{Stripe::DEFAULT_API_BASE}/v2/core/accounts").to_return( body: '{"data":[{"object":"v2.core.account","applied_configurations":["recipient"],"created":"1970-01-12T21:42:34.472Z","id":"obj_123","livemode":true}],"next_page_url":null,"previous_page_url":null}', From c40f8c1ad25affd4d20afff5f47bde28844afe32 Mon Sep 17 00:00:00 2001 From: Michael Broshi Date: Wed, 27 May 2026 16:27:19 -0400 Subject: [PATCH 3/3] Bump version to 19.2.0 --- CHANGELOG.md | 36 ++++++++++++++++++++++++++++++++++++ VERSION | 2 +- lib/stripe/version.rb | 2 +- 3 files changed, 38 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca00723c5..cbc815153 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,41 @@ # Changelog +## 19.2.0 - 2026-05-27 +This release changes the pinned API version to 2026-05-27.dahlia. + +* [#1864](https://github.com/stripe/stripe-ruby/pull/1864) Update generated code + * Add support for new resource `V2::Commerce::ProductCatalogImport` + * Add support for `create` and `retrieve` methods on resource `V2::Commerce::ProductCatalogImport` + * Add support for `bizum_payments` and `scalapay_payments` on `Account::Capability`, `AccountCreateParams::Capability`, and `AccountUpdateParams::Capability` + * Add support for `automatic_transfer_rules_by_currency` on `BalanceSettings::Payment::Payout` and `BalanceSettingsUpdateParams::Payment::Payout` + * Add support for `start_of_day` on `BalanceSettings::Payment::SettlementTiming` and `BalanceSettingsUpdateParams::Payment::SettlementTiming` + * Add support for `description` on `ChargeCreateParams::TransferDatum`, `PaymentIntent::TransferDatum`, `PaymentIntentCreateParams::TransferDatum`, and `PaymentIntentUpdateParams::TransferDatum` + * Add support for `bizum` on `Charge::PaymentMethodDetail`, `ConfirmationToken::PaymentMethodPreview`, `ConfirmationTokenCreateParams::PaymentMethodDatum`, `PaymentAttemptRecord::PaymentMethodDetail`, `PaymentIntent::PaymentMethodOption`, `PaymentIntentConfirmParams::PaymentMethodDatum`, `PaymentIntentConfirmParams::PaymentMethodOption`, `PaymentIntentCreateParams::PaymentMethodDatum`, `PaymentIntentCreateParams::PaymentMethodOption`, `PaymentIntentUpdateParams::PaymentMethodDatum`, `PaymentIntentUpdateParams::PaymentMethodOption`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord::PaymentMethodDetail`, `SetupIntent::PaymentMethodOption`, `SetupIntentConfirmParams::PaymentMethodDatum`, `SetupIntentConfirmParams::PaymentMethodOption`, `SetupIntentCreateParams::PaymentMethodDatum`, `SetupIntentCreateParams::PaymentMethodOption`, `SetupIntentUpdateParams::PaymentMethodDatum`, and `SetupIntentUpdateParams::PaymentMethodOption` + * Add support for `scalapay` on `Charge::PaymentMethodDetail`, `Checkout::Session::PaymentMethodOption`, `Checkout::SessionCreateParams::PaymentMethodOption`, `ConfirmationToken::PaymentMethodPreview`, `ConfirmationTokenCreateParams::PaymentMethodDatum`, `PaymentAttemptRecord::PaymentMethodDetail`, `PaymentIntent::PaymentMethodOption`, `PaymentIntentConfirmParams::PaymentMethodDatum`, `PaymentIntentConfirmParams::PaymentMethodOption`, `PaymentIntentCreateParams::PaymentMethodDatum`, `PaymentIntentCreateParams::PaymentMethodOption`, `PaymentIntentUpdateParams::PaymentMethodDatum`, `PaymentIntentUpdateParams::PaymentMethodOption`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord::PaymentMethodDetail`, `Refund::DestinationDetail`, `SetupIntentConfirmParams::PaymentMethodDatum`, `SetupIntentCreateParams::PaymentMethodDatum`, and `SetupIntentUpdateParams::PaymentMethodDatum` + * Add support for `mandate` on `Charge::PaymentMethodDetail::Twint`, `PaymentAttemptRecord::PaymentMethodDetail::Twint`, and `PaymentRecord::PaymentMethodDetail::Twint` + * Change type of `Checkout::SessionCreateParams::PaymentMethodOption::Twint.setup_future_usage`, `PaymentIntentConfirmParams::PaymentMethodOption::Twint.setup_future_usage`, `PaymentIntentCreateParams::PaymentMethodOption::Twint.setup_future_usage`, and `PaymentIntentUpdateParams::PaymentMethodOption::Twint.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')` + * ⚠️ Change type of `Checkout::Session::PaymentMethodOption::Twint.setup_future_usage` and `PaymentIntent::PaymentMethodOption::Twint.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')` + * Add support for `credited_items` on `InvoiceItem::ProrationDetail` + * Add support for `discountable` on `InvoiceCreatePreviewParams::ScheduleDetail::Phase::AddInvoiceItem`, `SubscriptionCreateParams::AddInvoiceItem`, `SubscriptionSchedule::Phase::AddInvoiceItem`, `SubscriptionScheduleCreateParams::Phase::AddInvoiceItem`, `SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem`, and `SubscriptionUpdateParams::AddInvoiceItem` + * Add support for `billing_schedules` on `InvoiceCreatePreviewParams::SubscriptionDetail`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription` + * Add support for `amount_paid_off_stripe` on `Invoice` + * Add support for `twint` on `Mandate::PaymentMethodDetail` and `SetupAttempt::PaymentMethodDetail` + * Add support for `metadata` on `PaymentIntent::TransferDatum`, `PaymentIntentCreateParams::TransferDatum`, `PaymentIntentUpdateParams::TransferDatum`, and `Subscription::PendingUpdate` + * Add support for `payment_data` on `PaymentIntent::TransferDatum`, `PaymentIntentCreateParams::TransferDatum`, and `PaymentIntentUpdateParams::TransferDatum` + * Add support for `blik_authorize` on `PaymentIntent::NextAction` and `SetupIntent::NextAction` + * Add support for `payment_method_options` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` + * Add support for `active` on `PaymentMethodConfigurationListParams` + * Add support for `billed_until` on `SubscriptionItem` + * Add support for `discount` and `discounts` on `Subscription::PendingUpdate` + * Add support for `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on `Terminal::ConfigurationCreateParams`, `Terminal::ConfigurationUpdateParams`, and `Terminal::Configuration` + * Add support for `api_error` and `print_content` on `Terminal::Reader::Action` + * Add support for `customer` on `TestHelpers::TestClockCreateParams` + * Add support for `signer` on `V2::Core::Account::Identity::BusinessDetail::Document::ProofOfRegistration`, `V2::Core::Account::Identity::BusinessDetail::Document::ProofOfUltimateBeneficialOwnership`, `V2::Core::AccountCreateParams::Identity::BusinessDetail::Document::ProofOfRegistration`, `V2::Core::AccountCreateParams::Identity::BusinessDetail::Document::ProofOfUltimateBeneficialOwnership`, `V2::Core::AccountTokenCreateParams::Identity::BusinessDetail::Document::ProofOfRegistration`, `V2::Core::AccountTokenCreateParams::Identity::BusinessDetail::Document::ProofOfUltimateBeneficialOwnership`, `V2::Core::AccountUpdateParams::Identity::BusinessDetail::Document::ProofOfRegistration`, and `V2::Core::AccountUpdateParams::Identity::BusinessDetail::Document::ProofOfUltimateBeneficialOwnership` + * Add support for `azure_event_grid` on `V2::Core::EventDestinationCreateParams` and `V2::Core::EventDestination` + * Add support for event notifications `V2CommerceProductCatalogImportsFailedEvent`, `V2CommerceProductCatalogImportsProcessingEvent`, `V2CommerceProductCatalogImportsSucceededEvent`, and `V2CommerceProductCatalogImportsSucceededWithErrorsEvent` with related object `V2::Commerce::ProductCatalogImport` +* [#1866](https://github.com/stripe/stripe-ruby/pull/1866) Emit warning when `stripe-notify` header is present in response +* [#1855](https://github.com/stripe/stripe-ruby/pull/1855) Use autoload instead of eager require for generated resource, service, and param files + ## 19.1.0 - 2026-04-23 This release changes the pinned API version to 2026-04-22.dahlia. diff --git a/VERSION b/VERSION index 8bf109b7d..b600a143e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -19.1.0 +19.2.0 diff --git a/lib/stripe/version.rb b/lib/stripe/version.rb index ef1f66815..1e3e949d9 100644 --- a/lib/stripe/version.rb +++ b/lib/stripe/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Stripe - VERSION = "19.1.0" + VERSION = "19.2.0" end