From 40b69ac819b936fd5962b1617051aa04606ecc99 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 24 Jun 2026 15:19:41 -0700 Subject: [PATCH 1/2] Update generated code (#1896) * Update generated code for v2323 and 1f0a7866ce5b5e12153c09a04349f91486b17d95 * Update generated code for v2324 and 6012b623b1c09ad54d466947da04511a042ee45a --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- lib/stripe/api_version.rb | 2 +- lib/stripe/params/account_create_params.rb | 2 +- lib/stripe/params/account_update_params.rb | 2 +- .../params/balance_transaction_list_params.rb | 2 +- .../credit_balance_summary_retrieve_params.rb | 2 +- .../billing/credit_grant_create_params.rb | 2 +- .../params/checkout/session_create_params.rb | 49 +- .../confirmation_token_create_params.rb | 2 +- .../params/credit_note_create_params.rb | 2 +- ...dit_note_list_preview_line_items_params.rb | 2 +- .../credit_note_preview_lines_list_params.rb | 2 +- .../params/credit_note_preview_params.rb | 2 +- lib/stripe/params/dispute_update_params.rb | 18 +- lib/stripe/params/invoice_add_lines_params.rb | 2 +- .../params/invoice_create_preview_params.rb | 2 +- .../params/invoice_line_item_update_params.rb | 2 +- .../params/invoice_update_lines_params.rb | 2 +- .../params/payment_intent_confirm_params.rb | 41 +- .../params/payment_intent_create_params.rb | 41 +- .../params/payment_intent_search_params.rb | 2 +- .../params/payment_intent_update_params.rb | 41 +- .../params/payment_link_create_params.rb | 2 +- .../params/payment_method_create_params.rb | 2 +- .../params/setup_intent_confirm_params.rb | 2 +- .../params/setup_intent_create_params.rb | 2 +- .../params/setup_intent_update_params.rb | 2 +- .../params/subscription_create_params.rb | 29 +- .../params/subscription_update_params.rb | 31 +- .../confirmation_token_create_params.rb | 2 +- lib/stripe/params/topup_create_params.rb | 24 + .../params/v2/core/account_create_params.rb | 13 + .../params/v2/core/account_update_params.rb | 29 +- lib/stripe/resources/balance_transaction.rb | 6 +- lib/stripe/resources/charge.rb | 6 + lib/stripe/resources/checkout/session.rb | 50 ++ lib/stripe/resources/confirmation_token.rb | 9 + lib/stripe/resources/credit_note.rb | 2 + lib/stripe/resources/dispute.rb | 32 + .../financial_connections/account.rb | 32 + .../resources/payment_attempt_record.rb | 4 +- lib/stripe/resources/payment_intent.rb | 34 +- lib/stripe/resources/payment_method.rb | 9 + lib/stripe/resources/payment_record.rb | 4 +- lib/stripe/resources/reserve/hold.rb | 19 +- lib/stripe/resources/setup_attempt.rb | 16 + lib/stripe/resources/subscription.rb | 27 +- .../v2/commerce/product_catalog_import.rb | 2 + lib/stripe/resources/v2/core/account.rb | 34 +- .../services/balance_transaction_service.rb | 4 +- lib/stripe/services/credit_note_service.rb | 2 + lib/stripe/services/subscription_service.rb | 2 +- rbi/stripe.rbi | 830 ++++++++++++++++-- rbi/stripe/params/account_create_params.rbi | 2 +- rbi/stripe/params/account_update_params.rbi | 2 +- .../balance_transaction_list_params.rbi | 2 +- ...credit_balance_summary_retrieve_params.rbi | 2 +- .../billing/credit_grant_create_params.rbi | 2 +- .../params/checkout/session_create_params.rbi | 79 +- .../confirmation_token_create_params.rbi | 2 +- .../params/credit_note_create_params.rbi | 2 +- ...it_note_list_preview_line_items_params.rbi | 2 +- .../credit_note_preview_lines_list_params.rbi | 2 +- .../params/credit_note_preview_params.rbi | 2 +- rbi/stripe/params/dispute_update_params.rbi | 26 +- .../params/invoice_add_lines_params.rbi | 2 +- .../params/invoice_create_preview_params.rbi | 2 +- .../invoice_line_item_update_params.rbi | 2 +- .../params/invoice_update_lines_params.rbi | 2 +- .../params/payment_intent_confirm_params.rbi | 61 +- .../params/payment_intent_create_params.rbi | 61 +- .../params/payment_intent_search_params.rbi | 2 +- .../params/payment_intent_update_params.rbi | 61 +- .../params/payment_link_create_params.rbi | 2 +- .../params/payment_method_create_params.rbi | 2 +- .../payment_record_report_refund_params.rbi | 6 +- .../params/setup_intent_confirm_params.rbi | 2 +- .../params/setup_intent_create_params.rbi | 2 +- .../params/setup_intent_update_params.rbi | 2 +- .../params/subscription_create_params.rbi | 43 +- .../params/subscription_update_params.rbi | 45 +- .../confirmation_token_create_params.rbi | 2 +- rbi/stripe/params/topup_create_params.rbi | 38 +- .../params/v2/core/account_create_params.rbi | 21 +- .../params/v2/core/account_update_params.rbi | 47 +- rbi/stripe/resources/balance_transaction.rbi | 6 +- rbi/stripe/resources/charge.rbi | 9 + rbi/stripe/resources/checkout/session.rbi | 51 ++ rbi/stripe/resources/confirmation_token.rbi | 9 + rbi/stripe/resources/credit_note.rbi | 2 + rbi/stripe/resources/dispute.rbi | 30 + .../financial_connections/account.rbi | 31 + .../resources/payment_attempt_record.rbi | 6 +- rbi/stripe/resources/payment_intent.rbi | 35 +- rbi/stripe/resources/payment_method.rbi | 9 + rbi/stripe/resources/payment_record.rbi | 6 +- rbi/stripe/resources/reserve/hold.rbi | 17 + rbi/stripe/resources/setup_attempt.rbi | 15 + rbi/stripe/resources/subscription.rbi | 29 +- .../v2/commerce/product_catalog_import.rbi | 3 + rbi/stripe/resources/v2/core/account.rbi | 34 +- .../services/balance_transaction_service.rbi | 4 +- rbi/stripe/services/credit_note_service.rbi | 2 + rbi/stripe/services/subscription_service.rbi | 2 +- test/stripe/generated_examples_test.rb | 6 +- 106 files changed, 2092 insertions(+), 232 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index ea98017b1..983636f7b 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -081f4305a2d6baea93b13ba5fa64f42d7c6b1633 \ No newline at end of file +6012b623b1c09ad54d466947da04511a042ee45a \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 30723023b..83c68c9d1 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2277 \ No newline at end of file +v2324 \ No newline at end of file diff --git a/lib/stripe/api_version.rb b/lib/stripe/api_version.rb index 125f509b1..0b8720a4e 100644 --- a/lib/stripe/api_version.rb +++ b/lib/stripe/api_version.rb @@ -3,7 +3,7 @@ module Stripe module ApiVersion - CURRENT = "2026-05-27.dahlia" + CURRENT = "2026-06-24.dahlia" CURRENT_MAJOR = "dahlia" end end diff --git a/lib/stripe/params/account_create_params.rb b/lib/stripe/params/account_create_params.rb index ac9e4ce26..ff8c72571 100644 --- a/lib/stripe/params/account_create_params.rb +++ b/lib/stripe/params/account_create_params.rb @@ -1526,7 +1526,7 @@ def initialize(files: nil, signer: nil) attr_accessor :bank_account_ownership_verification # One or more documents that demonstrate proof of a company's license to operate. attr_accessor :company_license - # One or more documents showing the company's Memorandum of Association. + # One or more documents showing the company's governing document (for example, a memorandum of association, constitution, or articles of association). attr_accessor :company_memorandum_of_association # (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment. attr_accessor :company_ministerial_decree diff --git a/lib/stripe/params/account_update_params.rb b/lib/stripe/params/account_update_params.rb index 12b670e15..7346f8ac2 100644 --- a/lib/stripe/params/account_update_params.rb +++ b/lib/stripe/params/account_update_params.rb @@ -1482,7 +1482,7 @@ def initialize(files: nil, signer: nil) attr_accessor :bank_account_ownership_verification # One or more documents that demonstrate proof of a company's license to operate. attr_accessor :company_license - # One or more documents showing the company's Memorandum of Association. + # One or more documents showing the company's governing document (for example, a memorandum of association, constitution, or articles of association). attr_accessor :company_memorandum_of_association # (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment. attr_accessor :company_ministerial_decree diff --git a/lib/stripe/params/balance_transaction_list_params.rb b/lib/stripe/params/balance_transaction_list_params.rb index 4b8fdb7ce..796675ce5 100644 --- a/lib/stripe/params/balance_transaction_list_params.rb +++ b/lib/stripe/params/balance_transaction_list_params.rb @@ -36,7 +36,7 @@ def initialize(gt: nil, gte: nil, lt: nil, lte: nil) attr_accessor :source # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. attr_accessor :starting_after - # Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. + # Only returns transactions of the given type. One of: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. attr_accessor :type def initialize( diff --git a/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb b/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb index c1cb48f8e..9cc641462 100644 --- a/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +++ b/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb @@ -16,7 +16,7 @@ def initialize(id: nil) end # The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`. attr_accessor :price_type - # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. + # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. Limit 20 prices. attr_accessor :prices def initialize(price_type: nil, prices: nil) diff --git a/lib/stripe/params/billing/credit_grant_create_params.rb b/lib/stripe/params/billing/credit_grant_create_params.rb index 8d1b10ee2..f2673c9ca 100644 --- a/lib/stripe/params/billing/credit_grant_create_params.rb +++ b/lib/stripe/params/billing/credit_grant_create_params.rb @@ -39,7 +39,7 @@ def initialize(id: nil) end # The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`. attr_accessor :price_type - # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. + # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. Limit 20 prices. attr_accessor :prices def initialize(price_type: nil, prices: nil) diff --git a/lib/stripe/params/checkout/session_create_params.rb b/lib/stripe/params/checkout/session_create_params.rb index be95a86a0..c81729cf8 100644 --- a/lib/stripe/params/checkout/session_create_params.rb +++ b/lib/stripe/params/checkout/session_create_params.rb @@ -1738,6 +1738,24 @@ def initialize(setup_future_usage: nil) end end + class Sunbit < ::Stripe::RequestParams + # Controls when the funds will be captured from the customer's account. + attr_accessor :capture_method + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + attr_accessor :setup_future_usage + + def initialize(capture_method: nil, setup_future_usage: nil) + @capture_method = capture_method + @setup_future_usage = setup_future_usage + end + end + class Swish < ::Stripe::RequestParams # The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent. attr_accessor :reference @@ -1937,6 +1955,8 @@ def initialize(app_id: nil, client: nil, setup_future_usage: nil) attr_accessor :sepa_debit # contains details about the Sofort payment method options. attr_accessor :sofort + # contains details about the Sunbit payment method options. + attr_accessor :sunbit # contains details about the Swish payment method options. attr_accessor :swish # contains details about the TWINT payment method options. @@ -1992,6 +2012,7 @@ def initialize( scalapay: nil, sepa_debit: nil, sofort: nil, + sunbit: nil, swish: nil, twint: nil, upi: nil, @@ -2041,6 +2062,7 @@ def initialize( @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort + @sunbit = sunbit @swish = swish @twint = twint @upi = upi @@ -2224,6 +2246,27 @@ def initialize(shipping_rate: nil, shipping_rate_data: nil) end class SubscriptionData < ::Stripe::RequestParams + class BillingCycleAnchorConfig < ::Stripe::RequestParams + # The day of the month the anchor should be. Ranges from 1 to 31. + attr_accessor :day_of_month + # The hour of the day the anchor should be. Ranges from 0 to 23. + attr_accessor :hour + # The minute of the hour the anchor should be. Ranges from 0 to 59. + attr_accessor :minute + # The month to start full cycle periods. Ranges from 1 to 12. + attr_accessor :month + # The second of the minute the anchor should be. Ranges from 0 to 59. + attr_accessor :second + + def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil) + @day_of_month = day_of_month + @hour = hour + @minute = minute + @month = month + @second = second + end + end + class BillingMode < ::Stripe::RequestParams class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. @@ -2308,6 +2351,8 @@ def initialize(end_behavior: nil) 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 `elements`. attr_accessor :billing_cycle_anchor + # Configures when the subscription schedule's billing cycle anchors to a specific day of the week or month. + attr_accessor :billing_cycle_anchor_config # Controls how prorations and invoices for subscriptions are calculated and orchestrated. attr_accessor :billing_mode # The tax rates that will apply to any subscription item that does not have @@ -2340,6 +2385,7 @@ def initialize(end_behavior: nil) def initialize( application_fee_percent: nil, billing_cycle_anchor: nil, + billing_cycle_anchor_config: nil, billing_mode: nil, default_tax_rates: nil, description: nil, @@ -2355,6 +2401,7 @@ def initialize( ) @application_fee_percent = application_fee_percent @billing_cycle_anchor = billing_cycle_anchor + @billing_cycle_anchor_config = billing_cycle_anchor_config @billing_mode = billing_mode @default_tax_rates = default_tax_rates @description = description @@ -2487,8 +2534,6 @@ def initialize(link: nil) # You can configure Checkout to collect your customers' business names, individual names, or both. Each name field can be either required or optional. # # If a [Customer](https://docs.stripe.com/api/customers) is created or provided, the names can be saved to the Customer object as well. - # - # You can't set this parameter if `ui_mode` is `custom`. attr_accessor :name_collection # A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices). # diff --git a/lib/stripe/params/confirmation_token_create_params.rb b/lib/stripe/params/confirmation_token_create_params.rb index 971ed1cb7..d847d1346 100644 --- a/lib/stripe/params/confirmation_token_create_params.rb +++ b/lib/stripe/params/confirmation_token_create_params.rb @@ -452,7 +452,7 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. attr_accessor :sofort - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. attr_accessor :sunbit # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. attr_accessor :swish diff --git a/lib/stripe/params/credit_note_create_params.rb b/lib/stripe/params/credit_note_create_params.rb index 019171377..df160a662 100644 --- a/lib/stripe/params/credit_note_create_params.rb +++ b/lib/stripe/params/credit_note_create_params.rb @@ -28,7 +28,7 @@ def initialize(amount: nil, tax_rate: nil, taxable_amount: nil) attr_accessor :metadata # The line item quantity to credit. attr_accessor :quantity - # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. attr_accessor :tax_amounts # The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used. attr_accessor :tax_rates diff --git a/lib/stripe/params/credit_note_list_preview_line_items_params.rb b/lib/stripe/params/credit_note_list_preview_line_items_params.rb index 2b5034220..81defacf8 100644 --- a/lib/stripe/params/credit_note_list_preview_line_items_params.rb +++ b/lib/stripe/params/credit_note_list_preview_line_items_params.rb @@ -28,7 +28,7 @@ def initialize(amount: nil, tax_rate: nil, taxable_amount: nil) attr_accessor :metadata # The line item quantity to credit. attr_accessor :quantity - # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. attr_accessor :tax_amounts # The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used. attr_accessor :tax_rates diff --git a/lib/stripe/params/credit_note_preview_lines_list_params.rb b/lib/stripe/params/credit_note_preview_lines_list_params.rb index a250ee0f8..4544cd241 100644 --- a/lib/stripe/params/credit_note_preview_lines_list_params.rb +++ b/lib/stripe/params/credit_note_preview_lines_list_params.rb @@ -28,7 +28,7 @@ def initialize(amount: nil, tax_rate: nil, taxable_amount: nil) attr_accessor :metadata # The line item quantity to credit. attr_accessor :quantity - # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. attr_accessor :tax_amounts # The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used. attr_accessor :tax_rates diff --git a/lib/stripe/params/credit_note_preview_params.rb b/lib/stripe/params/credit_note_preview_params.rb index dad1e5c76..e2b3e7fcd 100644 --- a/lib/stripe/params/credit_note_preview_params.rb +++ b/lib/stripe/params/credit_note_preview_params.rb @@ -28,7 +28,7 @@ def initialize(amount: nil, tax_rate: nil, taxable_amount: nil) attr_accessor :metadata # The line item quantity to credit. attr_accessor :quantity - # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. attr_accessor :tax_amounts # The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used. attr_accessor :tax_rates diff --git a/lib/stripe/params/dispute_update_params.rb b/lib/stripe/params/dispute_update_params.rb index d13204751..6ab021088 100644 --- a/lib/stripe/params/dispute_update_params.rb +++ b/lib/stripe/params/dispute_update_params.rb @@ -5,6 +5,15 @@ module Stripe class DisputeUpdateParams < ::Stripe::RequestParams class Evidence < ::Stripe::RequestParams class EnhancedEvidence < ::Stripe::RequestParams + class MastercardCompliance < ::Stripe::RequestParams + # A field acknowledging the fee incurred when countering a Mastercard compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. + attr_accessor :fee_acknowledged + + def initialize(fee_acknowledged: nil) + @fee_acknowledged = fee_acknowledged + end + end + class VisaCompellingEvidence3 < ::Stripe::RequestParams class DisputedTransaction < ::Stripe::RequestParams class ShippingAddress < ::Stripe::RequestParams @@ -162,12 +171,19 @@ def initialize(fee_acknowledged: nil) @fee_acknowledged = fee_acknowledged end end + # Evidence provided for Mastercard compliance evidence submission. + attr_accessor :mastercard_compliance # Evidence provided for Visa Compelling Evidence 3.0 evidence submission. attr_accessor :visa_compelling_evidence_3 # Evidence provided for Visa compliance evidence submission. attr_accessor :visa_compliance - def initialize(visa_compelling_evidence_3: nil, visa_compliance: nil) + def initialize( + mastercard_compliance: nil, + visa_compelling_evidence_3: nil, + visa_compliance: nil + ) + @mastercard_compliance = mastercard_compliance @visa_compelling_evidence_3 = visa_compelling_evidence_3 @visa_compliance = visa_compliance end diff --git a/lib/stripe/params/invoice_add_lines_params.rb b/lib/stripe/params/invoice_add_lines_params.rb index cb802befc..b87127024 100644 --- a/lib/stripe/params/invoice_add_lines_params.rb +++ b/lib/stripe/params/invoice_add_lines_params.rb @@ -188,7 +188,7 @@ def initialize(amount: nil, tax_rate_data: nil, taxability_reason: nil, taxable_ attr_accessor :quantity # Non-negative decimal with at most 12 decimal places. The quantity of units for the line item. attr_accessor :quantity_decimal - # A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. + # A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. attr_accessor :tax_amounts # The tax rates which apply to the line item. When set, the `default_tax_rates` on the invoice do not apply to this line item. Pass an empty string to remove previously-defined tax rates. attr_accessor :tax_rates diff --git a/lib/stripe/params/invoice_create_preview_params.rb b/lib/stripe/params/invoice_create_preview_params.rb index f21ed9c97..46c5a603e 100644 --- a/lib/stripe/params/invoice_create_preview_params.rb +++ b/lib/stripe/params/invoice_create_preview_params.rb @@ -985,7 +985,7 @@ def self.field_encodings attr_accessor :deleted # The coupons to redeem into discounts for the subscription item. attr_accessor :discounts - # Subscription item to update. + # Subscription item to update. If you omit `id`, the API adds a new subscription item rather than updating the existing one. See [Changing a subscription's price](https://docs.stripe.com/billing/subscriptions/change-price#changing). attr_accessor :id # 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 diff --git a/lib/stripe/params/invoice_line_item_update_params.rb b/lib/stripe/params/invoice_line_item_update_params.rb index a31a9119f..364f44907 100644 --- a/lib/stripe/params/invoice_line_item_update_params.rb +++ b/lib/stripe/params/invoice_line_item_update_params.rb @@ -187,7 +187,7 @@ def initialize(amount: nil, tax_rate_data: nil, taxability_reason: nil, taxable_ attr_accessor :quantity # Non-negative decimal with at most 12 decimal places. The quantity of units for the line item. attr_accessor :quantity_decimal - # A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. + # A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. attr_accessor :tax_amounts # The tax rates which apply to the line item. When set, the `default_tax_rates` on the invoice do not apply to this line item. Pass an empty string to remove previously-defined tax rates. attr_accessor :tax_rates diff --git a/lib/stripe/params/invoice_update_lines_params.rb b/lib/stripe/params/invoice_update_lines_params.rb index 44ab670ad..6082b1332 100644 --- a/lib/stripe/params/invoice_update_lines_params.rb +++ b/lib/stripe/params/invoice_update_lines_params.rb @@ -188,7 +188,7 @@ def initialize(amount: nil, tax_rate_data: nil, taxability_reason: nil, taxable_ attr_accessor :quantity # Non-negative decimal with at most 12 decimal places. The quantity of units for the line item. attr_accessor :quantity_decimal - # A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. + # A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. attr_accessor :tax_amounts # The tax rates which apply to the line item. When set, the `default_tax_rates` on the invoice do not apply to this line item. Pass an empty string to remove previously-defined tax rates. attr_accessor :tax_rates diff --git a/lib/stripe/params/payment_intent_confirm_params.rb b/lib/stripe/params/payment_intent_confirm_params.rb index 6d5b8a363..616eae1f1 100644 --- a/lib/stripe/params/payment_intent_confirm_params.rb +++ b/lib/stripe/params/payment_intent_confirm_params.rb @@ -716,7 +716,7 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. attr_accessor :sofort - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. attr_accessor :sunbit # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. attr_accessor :swish @@ -2186,9 +2186,18 @@ class Satispay < ::Stripe::RequestParams # # 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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + attr_accessor :setup_future_usage - def initialize(capture_method: nil) + def initialize(capture_method: nil, setup_future_usage: nil) @capture_method = capture_method + @setup_future_usage = setup_future_usage end end @@ -2256,6 +2265,28 @@ def initialize(preferred_language: nil, setup_future_usage: nil) end end + class Sunbit < ::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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + attr_accessor :setup_future_usage + + def initialize(capture_method: nil, setup_future_usage: nil) + @capture_method = capture_method + @setup_future_usage = setup_future_usage + end + end + class Swish < ::Stripe::RequestParams # A reference for this payment to be displayed in the Swish app. attr_accessor :reference @@ -2409,7 +2440,7 @@ def initialize( end class WechatPay < ::Stripe::RequestParams - # The app ID registered with WeChat Pay. Only required when client is ios or android. + # The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. attr_accessor :app_id # The client type that the end customer will pay from attr_accessor :client @@ -2545,6 +2576,8 @@ def initialize(setup_future_usage: nil) attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. attr_accessor :sofort + # If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options. + attr_accessor :sunbit # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options. attr_accessor :swish # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options. @@ -2608,6 +2641,7 @@ def initialize( scalapay: nil, sepa_debit: nil, sofort: nil, + sunbit: nil, swish: nil, twint: nil, upi: nil, @@ -2664,6 +2698,7 @@ def initialize( @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort + @sunbit = sunbit @swish = swish @twint = twint @upi = upi diff --git a/lib/stripe/params/payment_intent_create_params.rb b/lib/stripe/params/payment_intent_create_params.rb index 755879429..36850f999 100644 --- a/lib/stripe/params/payment_intent_create_params.rb +++ b/lib/stripe/params/payment_intent_create_params.rb @@ -730,7 +730,7 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. attr_accessor :sofort - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. attr_accessor :sunbit # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. attr_accessor :swish @@ -2200,9 +2200,18 @@ class Satispay < ::Stripe::RequestParams # # 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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + attr_accessor :setup_future_usage - def initialize(capture_method: nil) + def initialize(capture_method: nil, setup_future_usage: nil) @capture_method = capture_method + @setup_future_usage = setup_future_usage end end @@ -2270,6 +2279,28 @@ def initialize(preferred_language: nil, setup_future_usage: nil) end end + class Sunbit < ::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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + attr_accessor :setup_future_usage + + def initialize(capture_method: nil, setup_future_usage: nil) + @capture_method = capture_method + @setup_future_usage = setup_future_usage + end + end + class Swish < ::Stripe::RequestParams # A reference for this payment to be displayed in the Swish app. attr_accessor :reference @@ -2423,7 +2454,7 @@ def initialize( end class WechatPay < ::Stripe::RequestParams - # The app ID registered with WeChat Pay. Only required when client is ios or android. + # The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. attr_accessor :app_id # The client type that the end customer will pay from attr_accessor :client @@ -2559,6 +2590,8 @@ def initialize(setup_future_usage: nil) attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. attr_accessor :sofort + # If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options. + attr_accessor :sunbit # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options. attr_accessor :swish # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options. @@ -2622,6 +2655,7 @@ def initialize( scalapay: nil, sepa_debit: nil, sofort: nil, + sunbit: nil, swish: nil, twint: nil, upi: nil, @@ -2678,6 +2712,7 @@ def initialize( @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort + @sunbit = sunbit @swish = swish @twint = twint @upi = upi diff --git a/lib/stripe/params/payment_intent_search_params.rb b/lib/stripe/params/payment_intent_search_params.rb index 88af3147b..b54f694cd 100644 --- a/lib/stripe/params/payment_intent_search_params.rb +++ b/lib/stripe/params/payment_intent_search_params.rb @@ -9,7 +9,7 @@ class PaymentIntentSearchParams < ::Stripe::RequestParams attr_accessor :limit # A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results. attr_accessor :page - # The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for payment intents](https://docs.stripe.com/search#query-fields-for-payment-intents). + # The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for payment intents](https://docs.stripe.com/search#query-fields-for-paymentintents). attr_accessor :query def initialize(expand: nil, limit: nil, page: nil, query: nil) diff --git a/lib/stripe/params/payment_intent_update_params.rb b/lib/stripe/params/payment_intent_update_params.rb index dd24a9e88..73d0e9864 100644 --- a/lib/stripe/params/payment_intent_update_params.rb +++ b/lib/stripe/params/payment_intent_update_params.rb @@ -677,7 +677,7 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. attr_accessor :sofort - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. attr_accessor :sunbit # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. attr_accessor :swish @@ -2147,9 +2147,18 @@ class Satispay < ::Stripe::RequestParams # # 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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + attr_accessor :setup_future_usage - def initialize(capture_method: nil) + def initialize(capture_method: nil, setup_future_usage: nil) @capture_method = capture_method + @setup_future_usage = setup_future_usage end end @@ -2217,6 +2226,28 @@ def initialize(preferred_language: nil, setup_future_usage: nil) end end + class Sunbit < ::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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + attr_accessor :setup_future_usage + + def initialize(capture_method: nil, setup_future_usage: nil) + @capture_method = capture_method + @setup_future_usage = setup_future_usage + end + end + class Swish < ::Stripe::RequestParams # A reference for this payment to be displayed in the Swish app. attr_accessor :reference @@ -2370,7 +2401,7 @@ def initialize( end class WechatPay < ::Stripe::RequestParams - # The app ID registered with WeChat Pay. Only required when client is ios or android. + # The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. attr_accessor :app_id # The client type that the end customer will pay from attr_accessor :client @@ -2506,6 +2537,8 @@ def initialize(setup_future_usage: nil) attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. attr_accessor :sofort + # If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options. + attr_accessor :sunbit # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options. attr_accessor :swish # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options. @@ -2569,6 +2602,7 @@ def initialize( scalapay: nil, sepa_debit: nil, sofort: nil, + sunbit: nil, swish: nil, twint: nil, upi: nil, @@ -2625,6 +2659,7 @@ def initialize( @scalapay = scalapay @sepa_debit = sepa_debit @sofort = sofort + @sunbit = sunbit @swish = swish @twint = twint @upi = upi diff --git a/lib/stripe/params/payment_link_create_params.rb b/lib/stripe/params/payment_link_create_params.rb index 304bd3ba1..94f9e64fd 100644 --- a/lib/stripe/params/payment_link_create_params.rb +++ b/lib/stripe/params/payment_link_create_params.rb @@ -773,7 +773,7 @@ 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 + # Payment-method-specific configuration. 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 diff --git a/lib/stripe/params/payment_method_create_params.rb b/lib/stripe/params/payment_method_create_params.rb index 23744eec5..5255cf7b4 100644 --- a/lib/stripe/params/payment_method_create_params.rb +++ b/lib/stripe/params/payment_method_create_params.rb @@ -510,7 +510,7 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. attr_accessor :sofort - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. attr_accessor :sunbit # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. attr_accessor :swish diff --git a/lib/stripe/params/setup_intent_confirm_params.rb b/lib/stripe/params/setup_intent_confirm_params.rb index 1f8d35973..e0b3a82f3 100644 --- a/lib/stripe/params/setup_intent_confirm_params.rb +++ b/lib/stripe/params/setup_intent_confirm_params.rb @@ -491,7 +491,7 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. attr_accessor :sofort - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. attr_accessor :sunbit # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. attr_accessor :swish diff --git a/lib/stripe/params/setup_intent_create_params.rb b/lib/stripe/params/setup_intent_create_params.rb index 67425a544..c36919a29 100644 --- a/lib/stripe/params/setup_intent_create_params.rb +++ b/lib/stripe/params/setup_intent_create_params.rb @@ -505,7 +505,7 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. attr_accessor :sofort - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. attr_accessor :sunbit # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. attr_accessor :swish diff --git a/lib/stripe/params/setup_intent_update_params.rb b/lib/stripe/params/setup_intent_update_params.rb index 59e2a16a0..06508e61e 100644 --- a/lib/stripe/params/setup_intent_update_params.rb +++ b/lib/stripe/params/setup_intent_update_params.rb @@ -452,7 +452,7 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. attr_accessor :sofort - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. attr_accessor :sunbit # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. attr_accessor :swish diff --git a/lib/stripe/params/subscription_create_params.rb b/lib/stripe/params/subscription_create_params.rb index a1ad982c2..04201edc1 100644 --- a/lib/stripe/params/subscription_create_params.rb +++ b/lib/stripe/params/subscription_create_params.rb @@ -272,6 +272,18 @@ def initialize(coupon: nil, discount: nil, promotion_code: nil) end class InvoiceSettings < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams + # The name of the custom field. This may be up to 40 characters. + attr_accessor :name + # The value of the custom field. This may be up to 140 characters. + attr_accessor :value + + def initialize(name: nil, value: nil) + @name = name + @value = value + end + end + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account @@ -285,11 +297,26 @@ def initialize(account: nil, type: nil) end # The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. attr_accessor :account_tax_ids + # A list of up to 4 custom fields to be displayed on the invoice. + attr_accessor :custom_fields + # An arbitrary string attached to the object. Often useful for displaying to users. + attr_accessor :description + # Footer to be displayed on the invoice. + attr_accessor :footer # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. attr_accessor :issuer - def initialize(account_tax_ids: nil, issuer: nil) + def initialize( + account_tax_ids: nil, + custom_fields: nil, + description: nil, + footer: nil, + issuer: nil + ) @account_tax_ids = account_tax_ids + @custom_fields = custom_fields + @description = description + @footer = footer @issuer = issuer end end diff --git a/lib/stripe/params/subscription_update_params.rb b/lib/stripe/params/subscription_update_params.rb index e6911efaf..fdb9df976 100644 --- a/lib/stripe/params/subscription_update_params.rb +++ b/lib/stripe/params/subscription_update_params.rb @@ -243,6 +243,18 @@ def initialize(coupon: nil, discount: nil, promotion_code: nil) end class InvoiceSettings < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams + # The name of the custom field. This may be up to 40 characters. + attr_accessor :name + # The value of the custom field. This may be up to 140 characters. + attr_accessor :value + + def initialize(name: nil, value: nil) + @name = name + @value = value + end + end + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account @@ -256,11 +268,26 @@ def initialize(account: nil, type: nil) end # The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. attr_accessor :account_tax_ids + # A list of up to 4 custom fields to be displayed on the invoice. + attr_accessor :custom_fields + # An arbitrary string attached to the object. Often useful for displaying to users. + attr_accessor :description + # Footer to be displayed on the invoice. + attr_accessor :footer # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. attr_accessor :issuer - def initialize(account_tax_ids: nil, issuer: nil) + def initialize( + account_tax_ids: nil, + custom_fields: nil, + description: nil, + footer: nil, + issuer: nil + ) @account_tax_ids = account_tax_ids + @custom_fields = custom_fields + @description = description + @footer = footer @issuer = issuer end end @@ -343,7 +370,7 @@ def self.field_encodings attr_accessor :deleted # The coupons to redeem into discounts for the subscription item. attr_accessor :discounts - # Subscription item to update. + # Subscription item to update. If you omit `id`, the API adds a new subscription item rather than updating the existing one. See [Changing a subscription's price](https://docs.stripe.com/billing/subscriptions/change-price#changing). attr_accessor :id # 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 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 ca06f6a22..ec092a042 100644 --- a/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +++ b/lib/stripe/params/test_helpers/confirmation_token_create_params.rb @@ -453,7 +453,7 @@ class Zip < ::Stripe::RequestParams; end attr_accessor :sepa_debit # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. attr_accessor :sofort - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. attr_accessor :sunbit # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method. attr_accessor :swish diff --git a/lib/stripe/params/topup_create_params.rb b/lib/stripe/params/topup_create_params.rb index 222cd16aa..5f8f2dd99 100644 --- a/lib/stripe/params/topup_create_params.rb +++ b/lib/stripe/params/topup_create_params.rb @@ -3,6 +3,22 @@ module Stripe class TopupCreateParams < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + # Attribute for param field network + attr_accessor :network + + def initialize(network: nil) + @network = network + end + end + # Attribute for param field us_bank_account + attr_accessor :us_bank_account + + def initialize(us_bank_account: nil) + @us_bank_account = us_bank_account + end + end # A positive integer representing how much to transfer. attr_accessor :amount # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -13,6 +29,10 @@ class TopupCreateParams < ::Stripe::RequestParams 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 + # The ID of a PaymentMethod representing the payment method to be used for the top-up. A PaymentMethod of type `us_bank_account` can be used. + attr_accessor :payment_method + # Payment method-specific configuration for this top-up. + attr_accessor :payment_method_options # The ID of a source to transfer funds from. For most users, this should be left unspecified which will use the bank account that was set up in the dashboard for the specified currency. In test mode, this can be a test bank token (see [Testing Top-ups](https://docs.stripe.com/connect/testing#testing-top-ups)). attr_accessor :source # Extra information about a top-up for the source's bank statement. Limited to 15 ASCII characters. @@ -26,6 +46,8 @@ def initialize( description: nil, expand: nil, metadata: nil, + payment_method: nil, + payment_method_options: nil, source: nil, statement_descriptor: nil, transfer_group: nil @@ -35,6 +57,8 @@ def initialize( @description = description @expand = expand @metadata = metadata + @payment_method = payment_method + @payment_method_options = payment_method_options @source = source @statement_descriptor = statement_descriptor @transfer_group = transfer_group diff --git a/lib/stripe/params/v2/core/account_create_params.rb b/lib/stripe/params/v2/core/account_create_params.rb index b90047a2a..0f0b23014 100644 --- a/lib/stripe/params/v2/core/account_create_params.rb +++ b/lib/stripe/params/v2/core/account_create_params.rb @@ -553,6 +553,15 @@ def initialize(requested: nil) end end + class SunbitPayments < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end + class SwishPayments < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. attr_accessor :requested @@ -668,6 +677,8 @@ def initialize(requested: nil) attr_accessor :sepa_bank_transfer_payments # Allow the merchant to process SEPA Direct Debit payments. attr_accessor :sepa_debit_payments + # Allow the merchant to process Sunbit payments. + attr_accessor :sunbit_payments # Allow the merchant to process Swish payments. attr_accessor :swish_payments # Allow the merchant to process TWINT payments. @@ -718,6 +729,7 @@ def initialize( samsung_pay_payments: nil, sepa_bank_transfer_payments: nil, sepa_debit_payments: nil, + sunbit_payments: nil, swish_payments: nil, twint_payments: nil, us_bank_transfer_payments: nil, @@ -763,6 +775,7 @@ def initialize( @samsung_pay_payments = samsung_pay_payments @sepa_bank_transfer_payments = sepa_bank_transfer_payments @sepa_debit_payments = sepa_debit_payments + @sunbit_payments = sunbit_payments @swish_payments = swish_payments @twint_payments = twint_payments @us_bank_transfer_payments = us_bank_transfer_payments diff --git a/lib/stripe/params/v2/core/account_update_params.rb b/lib/stripe/params/v2/core/account_update_params.rb index eff465e2d..1674edae2 100644 --- a/lib/stripe/params/v2/core/account_update_params.rb +++ b/lib/stripe/params/v2/core/account_update_params.rb @@ -563,6 +563,15 @@ def initialize(requested: nil) end end + class SunbitPayments < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end + class SwishPayments < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. attr_accessor :requested @@ -678,6 +687,8 @@ def initialize(requested: nil) attr_accessor :sepa_bank_transfer_payments # Allow the merchant to process SEPA Direct Debit payments. attr_accessor :sepa_debit_payments + # Allow the merchant to process Sunbit payments. + attr_accessor :sunbit_payments # Allow the merchant to process Swish payments. attr_accessor :swish_payments # Allow the merchant to process TWINT payments. @@ -728,6 +739,7 @@ def initialize( samsung_pay_payments: nil, sepa_bank_transfer_payments: nil, sepa_debit_payments: nil, + sunbit_payments: nil, swish_payments: nil, twint_payments: nil, us_bank_transfer_payments: nil, @@ -773,6 +785,7 @@ def initialize( @samsung_pay_payments = samsung_pay_payments @sepa_bank_transfer_payments = sepa_bank_transfer_payments @sepa_debit_payments = sepa_debit_payments + @sunbit_payments = sunbit_payments @swish_payments = swish_payments @twint_payments = twint_payments @us_bank_transfer_payments = us_bank_transfer_payments @@ -1157,7 +1170,7 @@ def initialize(date: nil, ip: nil, user_agent: nil) end end - class CryptoStorer < ::Stripe::RequestParams + class CryptoMoneyManager < ::Stripe::RequestParams # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. attr_accessor :date # The IP address from which the Account's representative accepted the terms of service. @@ -1172,7 +1185,7 @@ def initialize(date: nil, ip: nil, user_agent: nil) end end - class Storer < ::Stripe::RequestParams + class MoneyManager < ::Stripe::RequestParams # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. attr_accessor :date # The IP address from which the Account's representative accepted the terms of service. @@ -1188,15 +1201,15 @@ def initialize(date: nil, ip: nil, user_agent: nil) end # Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance). attr_accessor :account - # Details on the Account's acceptance of Crypto-storer-specific terms of service. - attr_accessor :crypto_storer + # Details on the Account's acceptance of Crypto-specific terms of service. + attr_accessor :crypto_money_manager # Details on the Account's acceptance of Treasury-specific terms of service. - attr_accessor :storer + attr_accessor :money_manager - def initialize(account: nil, crypto_storer: nil, storer: nil) + def initialize(account: nil, crypto_money_manager: nil, money_manager: nil) @account = account - @crypto_storer = crypto_storer - @storer = storer + @crypto_money_manager = crypto_money_manager + @money_manager = money_manager end end # This hash is used to attest that the directors information provided to Stripe is both current and correct. diff --git a/lib/stripe/resources/balance_transaction.rb b/lib/stripe/resources/balance_transaction.rb index a9e401178..563c50193 100644 --- a/lib/stripe/resources/balance_transaction.rb +++ b/lib/stripe/resources/balance_transaction.rb @@ -64,12 +64,12 @@ def self.field_remappings attr_reader :source # The transaction's net funds status in the Stripe balance, which are either `available` or `pending`. attr_reader :status - # Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead. + # Transaction type: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead. attr_reader :type - # Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first. + # Returns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first. # - # Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. + # The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history. def self.list(params = {}, opts = {}) request_stripe_object( method: :get, diff --git a/lib/stripe/resources/charge.rb b/lib/stripe/resources/charge.rb index ff0313341..140f2a5a1 100644 --- a/lib/stripe/resources/charge.rb +++ b/lib/stripe/resources/charge.rb @@ -449,6 +449,8 @@ def self.field_remappings end class Bizum < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + attr_reader :buyer_id # The Bizum transaction ID associated with this payment. attr_reader :transaction_id @@ -909,6 +911,8 @@ def self.field_remappings attr_reader :regulated_status # Populated if this transaction used 3D Secure authentication. attr_reader :three_d_secure + # Transaction Link ID (TLID) is a unique identifier for a transaction. This is used by some card networks, such as Mastercard, for transaction linking, in addition to Network Transaction IDs. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + attr_reader :transaction_link_id # If this Card is part of a card wallet, this contains the details of the card wallet. attr_reader :wallet @@ -1628,6 +1632,8 @@ def self.field_remappings class Pix < ::Stripe::StripeObject # Unique transaction id generated by BCB attr_reader :bank_transaction_id + # Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + attr_reader :fingerprint # ID of the multi use Mandate generated by the PaymentIntent attr_reader :mandate diff --git a/lib/stripe/resources/checkout/session.rb b/lib/stripe/resources/checkout/session.rb index 2bf0e6aab..d270df444 100644 --- a/lib/stripe/resources/checkout/session.rb +++ b/lib/stripe/resources/checkout/session.rb @@ -1702,6 +1702,27 @@ def self.field_remappings end end + class Sunbit < ::Stripe::StripeObject + # Controls when the funds will be captured from the customer's account. + attr_reader :capture_method + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + attr_reader :setup_future_usage + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class Swish < ::Stripe::StripeObject # The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent. attr_reader :reference @@ -1827,6 +1848,29 @@ def self.field_remappings @field_remappings = {} end end + + class WechatPay < ::Stripe::StripeObject + # The app ID registered with WeChat Pay. Only required when client is iOS or Android. + attr_reader :app_id + # The client type that the end customer will pay from + attr_reader :client + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + attr_reader :setup_future_usage + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # Attribute for field acss_debit attr_reader :acss_debit # Attribute for field affirm @@ -1907,6 +1951,8 @@ def self.field_remappings attr_reader :sepa_debit # Attribute for field sofort attr_reader :sofort + # Attribute for field sunbit + attr_reader :sunbit # Attribute for field swish attr_reader :swish # Attribute for field twint @@ -1915,6 +1961,8 @@ def self.field_remappings attr_reader :upi # Attribute for field us_bank_account attr_reader :us_bank_account + # Attribute for field wechat_pay + attr_reader :wechat_pay def self.inner_class_types @inner_class_types = { @@ -1958,10 +2006,12 @@ def self.inner_class_types scalapay: Scalapay, sepa_debit: SepaDebit, sofort: Sofort, + sunbit: Sunbit, swish: Swish, twint: Twint, upi: Upi, us_bank_account: UsBankAccount, + wechat_pay: WechatPay, } end diff --git a/lib/stripe/resources/confirmation_token.rb b/lib/stripe/resources/confirmation_token.rb index 5293ae4bf..b83c2bb1f 100644 --- a/lib/stripe/resources/confirmation_token.rb +++ b/lib/stripe/resources/confirmation_token.rb @@ -282,6 +282,9 @@ def self.field_remappings end class Bizum < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + attr_reader :buyer_id + def self.inner_class_types @inner_class_types = {} end @@ -292,6 +295,9 @@ def self.field_remappings end class Blik < ::Stripe::StripeObject + # A unique and immutable identifier assigned by BLIK to every buyer. + attr_reader :buyer_id + def self.inner_class_types @inner_class_types = {} end @@ -1262,6 +1268,9 @@ def self.field_remappings end class Pix < ::Stripe::StripeObject + # Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + attr_reader :fingerprint + def self.inner_class_types @inner_class_types = {} end diff --git a/lib/stripe/resources/credit_note.rb b/lib/stripe/resources/credit_note.rb index 401b70f75..ffbdef4b5 100644 --- a/lib/stripe/resources/credit_note.rb +++ b/lib/stripe/resources/credit_note.rb @@ -239,6 +239,8 @@ def self.field_remappings # # You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount, # post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation. + # + # For invoices that also have refunds created through the [Refund API](https://docs.stripe.com/docs/api/refunds), the credit note API subtracts those refund amounts from the maximum creditable amount. This prevents the combined credit notes and refunds from exceeding the invoice amount. If you use both, ensure the combined total does not exceed the invoice's paid amount. def self.create(params = {}, opts = {}) request_stripe_object(method: :post, path: "/v1/credit_notes", params: params, opts: opts) end diff --git a/lib/stripe/resources/dispute.rb b/lib/stripe/resources/dispute.rb index 5d93b5a7c..ee50b43e6 100644 --- a/lib/stripe/resources/dispute.rb +++ b/lib/stripe/resources/dispute.rb @@ -18,6 +18,19 @@ def self.object_name class Evidence < ::Stripe::StripeObject class EnhancedEvidence < ::Stripe::StripeObject + class MastercardCompliance < ::Stripe::StripeObject + # A field acknowledging the fee incurred when countering a Mastercard compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. + attr_reader :fee_acknowledged + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class VisaCompellingEvidence3 < ::Stripe::StripeObject class DisputedTransaction < ::Stripe::StripeObject class ShippingAddress < ::Stripe::StripeObject @@ -145,6 +158,8 @@ def self.field_remappings @field_remappings = {} end end + # Attribute for field mastercard_compliance + attr_reader :mastercard_compliance # Attribute for field visa_compelling_evidence_3 attr_reader :visa_compelling_evidence_3 # Attribute for field visa_compliance @@ -152,6 +167,7 @@ def self.field_remappings def self.inner_class_types @inner_class_types = { + mastercard_compliance: MastercardCompliance, visa_compelling_evidence_3: VisaCompellingEvidence3, visa_compliance: VisaCompliance, } @@ -229,6 +245,19 @@ def self.field_remappings class EvidenceDetails < ::Stripe::StripeObject class EnhancedEligibility < ::Stripe::StripeObject + class MastercardCompliance < ::Stripe::StripeObject + # Mastercard compliance eligibility status. + attr_reader :status + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class VisaCompellingEvidence3 < ::Stripe::StripeObject # List of actions required to qualify dispute for Visa Compelling Evidence 3.0 evidence submission. attr_reader :required_actions @@ -256,6 +285,8 @@ def self.field_remappings @field_remappings = {} end end + # Attribute for field mastercard_compliance + attr_reader :mastercard_compliance # Attribute for field visa_compelling_evidence_3 attr_reader :visa_compelling_evidence_3 # Attribute for field visa_compliance @@ -263,6 +294,7 @@ def self.field_remappings def self.inner_class_types @inner_class_types = { + mastercard_compliance: MastercardCompliance, visa_compelling_evidence_3: VisaCompellingEvidence3, visa_compliance: VisaCompliance, } diff --git a/lib/stripe/resources/financial_connections/account.rb b/lib/stripe/resources/financial_connections/account.rb index 09754b35a..a5fb7399d 100644 --- a/lib/stripe/resources/financial_connections/account.rb +++ b/lib/stripe/resources/financial_connections/account.rb @@ -142,6 +142,35 @@ def self.field_remappings end end + class StatusDetails < ::Stripe::StripeObject + class Active < ::Stripe::StripeObject + # The action (if any) to proactively relink the Account. + attr_reader :action + # The underlying cause of the Account becoming inactive. + attr_reader :cause + # When the Account is expected to become inactive, if applicable. + attr_reader :expected_deactivation_date + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field active + attr_reader :active + + def self.inner_class_types + @inner_class_types = { active: Active } + end + + def self.field_remappings + @field_remappings = {} + end + end + class TransactionRefresh < ::Stripe::StripeObject # Unique identifier for the object. attr_reader :id @@ -192,6 +221,8 @@ def self.field_remappings attr_reader :permissions # The status of the link to the account. attr_reader :status + # Attribute for field status_details + attr_reader :status_details # If `category` is `cash`, one of: # # - `checking` @@ -331,6 +362,7 @@ def self.inner_class_types balance: Balance, balance_refresh: BalanceRefresh, ownership_refresh: OwnershipRefresh, + status_details: StatusDetails, transaction_refresh: TransactionRefresh, } end diff --git a/lib/stripe/resources/payment_attempt_record.rb b/lib/stripe/resources/payment_attempt_record.rb index f69801f26..0dda7fc24 100644 --- a/lib/stripe/resources/payment_attempt_record.rb +++ b/lib/stripe/resources/payment_attempt_record.rb @@ -457,6 +457,8 @@ def self.field_remappings end class Bizum < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + attr_reader :buyer_id # The Bizum transaction ID associated with this payment. attr_reader :transaction_id @@ -664,8 +666,6 @@ def self.field_remappings attr_reader :network_token # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. attr_reader :network_transaction_id - # The transaction type that was passed for an off-session, Merchant-Initiated transaction, one of `recurring` or `unscheduled`. - attr_reader :stored_credential_usage # Populated if this transaction used 3D Secure authentication. attr_reader :three_d_secure # If this Card is part of a card wallet, this contains the details of the card wallet. diff --git a/lib/stripe/resources/payment_intent.rb b/lib/stripe/resources/payment_intent.rb index 3d5317e7f..1189f2c24 100644 --- a/lib/stripe/resources/payment_intent.rb +++ b/lib/stripe/resources/payment_intent.rb @@ -2430,6 +2430,14 @@ def self.field_remappings class Satispay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + attr_reader :setup_future_usage def self.inner_class_types @inner_class_types = {} @@ -2509,6 +2517,27 @@ def self.field_remappings end end + class Sunbit < ::Stripe::StripeObject + # Controls when the funds will be captured from the customer's account. + attr_reader :capture_method + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + attr_reader :setup_future_usage + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class Swish < ::Stripe::StripeObject # A reference for this payment to be displayed in the Swish app. attr_reader :reference @@ -2644,7 +2673,7 @@ def self.field_remappings end class WechatPay < ::Stripe::StripeObject - # The app ID registered with WeChat Pay. Only required when client is ios or android. + # The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. attr_reader :app_id # The client type that the end customer will pay from attr_reader :client @@ -2782,6 +2811,8 @@ def self.field_remappings attr_reader :sepa_debit # Attribute for field sofort attr_reader :sofort + # Attribute for field sunbit + attr_reader :sunbit # Attribute for field swish attr_reader :swish # Attribute for field twint @@ -2846,6 +2877,7 @@ def self.inner_class_types scalapay: Scalapay, sepa_debit: SepaDebit, sofort: Sofort, + sunbit: Sunbit, swish: Swish, twint: Twint, upi: Upi, diff --git a/lib/stripe/resources/payment_method.rb b/lib/stripe/resources/payment_method.rb index 29fce2bbe..5f7d700d3 100644 --- a/lib/stripe/resources/payment_method.rb +++ b/lib/stripe/resources/payment_method.rb @@ -186,6 +186,9 @@ def self.field_remappings end class Bizum < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + attr_reader :buyer_id + def self.inner_class_types @inner_class_types = {} end @@ -196,6 +199,9 @@ def self.field_remappings end class Blik < ::Stripe::StripeObject + # A unique and immutable identifier assigned by BLIK to every buyer. + attr_reader :buyer_id + def self.inner_class_types @inner_class_types = {} end @@ -1197,6 +1203,9 @@ def self.field_remappings end class Pix < ::Stripe::StripeObject + # Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + attr_reader :fingerprint + def self.inner_class_types @inner_class_types = {} end diff --git a/lib/stripe/resources/payment_record.rb b/lib/stripe/resources/payment_record.rb index fb443d5d4..b5e4639a8 100644 --- a/lib/stripe/resources/payment_record.rb +++ b/lib/stripe/resources/payment_record.rb @@ -455,6 +455,8 @@ def self.field_remappings end class Bizum < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + attr_reader :buyer_id # The Bizum transaction ID associated with this payment. attr_reader :transaction_id @@ -662,8 +664,6 @@ def self.field_remappings attr_reader :network_token # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. attr_reader :network_transaction_id - # The transaction type that was passed for an off-session, Merchant-Initiated transaction, one of `recurring` or `unscheduled`. - attr_reader :stored_credential_usage # Populated if this transaction used 3D Secure authentication. attr_reader :three_d_secure # If this Card is part of a card wallet, this contains the details of the card wallet. diff --git a/lib/stripe/resources/reserve/hold.rb b/lib/stripe/resources/reserve/hold.rb index 2d29813b6..46a3aacf7 100644 --- a/lib/stripe/resources/reserve/hold.rb +++ b/lib/stripe/resources/reserve/hold.rb @@ -10,6 +10,21 @@ def self.object_name "reserve.hold" end + class ReleaseDetail < ::Stripe::StripeObject + # The amount released by the ReserveRelease from this ReserveHold. A positive integer representing how much is released in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + attr_reader :amount + # The ReserveRelease which released funds from this ReserveHold (e.g., resrel_123). + attr_reader :reserve_release + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class ReleaseSchedule < ::Stripe::StripeObject # The time after which the ReserveHold is requested to be released. attr_reader :release_after @@ -46,6 +61,8 @@ def self.field_remappings attr_reader :object # The reason for the ReserveHold. attr_reader :reason + # List of ReserveReleases and the amounts released from this ReserveHold. + attr_reader :release_details # Attribute for field release_schedule attr_reader :release_schedule # The ReservePlan which produced this ReserveHold (i.e., resplan_123) @@ -56,7 +73,7 @@ def self.field_remappings attr_reader :source_type def self.inner_class_types - @inner_class_types = { release_schedule: ReleaseSchedule } + @inner_class_types = { release_details: ReleaseDetail, release_schedule: ReleaseSchedule } end def self.field_remappings diff --git a/lib/stripe/resources/setup_attempt.rb b/lib/stripe/resources/setup_attempt.rb index 5cfc3c1c6..cda305aba 100644 --- a/lib/stripe/resources/setup_attempt.rb +++ b/lib/stripe/resources/setup_attempt.rb @@ -363,6 +363,9 @@ def self.field_remappings end class Pix < ::Stripe::StripeObject + # Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + attr_reader :fingerprint + def self.inner_class_types @inner_class_types = {} end @@ -382,6 +385,16 @@ def self.field_remappings end end + class Satispay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class SepaDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} @@ -490,6 +503,8 @@ def self.field_remappings attr_reader :pix # Attribute for field revolut_pay attr_reader :revolut_pay + # Attribute for field satispay + attr_reader :satispay # Attribute for field sepa_debit attr_reader :sepa_debit # Attribute for field sofort @@ -525,6 +540,7 @@ def self.inner_class_types payto: Payto, pix: Pix, revolut_pay: RevolutPay, + satispay: Satispay, sepa_debit: SepaDebit, sofort: Sofort, twint: Twint, diff --git a/lib/stripe/resources/subscription.rb b/lib/stripe/resources/subscription.rb index 517bc4537..b19fe9772 100644 --- a/lib/stripe/resources/subscription.rb +++ b/lib/stripe/resources/subscription.rb @@ -194,6 +194,21 @@ def self.field_remappings end class InvoiceSettings < ::Stripe::StripeObject + class CustomField < ::Stripe::StripeObject + # The name of the custom field. + attr_reader :name + # The value of the custom field. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. attr_reader :account @@ -210,11 +225,17 @@ def self.field_remappings end # The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. attr_reader :account_tax_ids + # A list of up to 4 custom fields to be displayed on the invoice. + attr_reader :custom_fields + # An arbitrary string attached to the object. Often useful for displaying to users. + attr_reader :description + # Footer to be displayed on the invoice. + attr_reader :footer # Attribute for field issuer attr_reader :issuer def self.inner_class_types - @inner_class_types = { issuer: Issuer } + @inner_class_types = { custom_fields: CustomField, issuer: Issuer } end def self.field_remappings @@ -780,7 +801,7 @@ def self.field_remappings # 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. + # 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 false. # # By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. def cancel(params = {}, opts = {}) @@ -794,7 +815,7 @@ def cancel(params = {}, opts = {}) # 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. + # 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 false. # # By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. def self.cancel(subscription_exposed_id, params = {}, opts = {}) diff --git a/lib/stripe/resources/v2/commerce/product_catalog_import.rb b/lib/stripe/resources/v2/commerce/product_catalog_import.rb index 296b5603c..44318be4c 100644 --- a/lib/stripe/resources/v2/commerce/product_catalog_import.rb +++ b/lib/stripe/resources/v2/commerce/product_catalog_import.rb @@ -230,6 +230,8 @@ def self.field_encodings attr_reader :livemode # Additional information about the object in a structured format. attr_reader :metadata + # The import strategy for handling existing catalog data. + attr_reader :mode # 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. diff --git a/lib/stripe/resources/v2/core/account.rb b/lib/stripe/resources/v2/core/account.rb index 681bcb92e..c0479932e 100644 --- a/lib/stripe/resources/v2/core/account.rb +++ b/lib/stripe/resources/v2/core/account.rb @@ -1454,6 +1454,35 @@ def self.field_remappings end end + class SunbitPayments < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject + # Machine-readable code explaining the reason for the Capability to be in its current status. + attr_reader :code + # Machine-readable code explaining how to make the Capability active. + attr_reader :resolution + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # The status of the Capability. + attr_reader :status + # Additional details about the capability's status. This value is empty when `status` is `active`. + attr_reader :status_details + + def self.inner_class_types + @inner_class_types = { status_details: StatusDetail } + end + + def self.field_remappings + @field_remappings = {} + end + end + class SwishPayments < ::Stripe::StripeObject class StatusDetail < ::Stripe::StripeObject # Machine-readable code explaining the reason for the Capability to be in its current status. @@ -1651,6 +1680,8 @@ def self.field_remappings attr_reader :sepa_debit_payments # Capabilities that enable the merchant to manage their Stripe Balance (/v1/balance). attr_reader :stripe_balance + # Allow the merchant to process Sunbit payments. + attr_reader :sunbit_payments # Allow the merchant to process Swish payments. attr_reader :swish_payments # Allow the merchant to process TWINT payments. @@ -1703,6 +1734,7 @@ def self.inner_class_types sepa_bank_transfer_payments: SepaBankTransferPayments, sepa_debit_payments: SepaDebitPayments, stripe_balance: StripeBalance, + sunbit_payments: SunbitPayments, swish_payments: SwishPayments, twint_payments: TwintPayments, us_bank_transfer_payments: UsBankTransferPayments, @@ -2075,7 +2107,7 @@ def self.field_remappings class Responsibilities < ::Stripe::StripeObject # Indicates whether the platform or connected account is responsible for paying Stripe fees for pricing-control-eligible products. attr_reader :fees_collector - # A value indicating responsibility for collecting requirements on this account. + # A value indicating the responsibility for losses on this account. attr_reader :losses_collector # A value indicating responsibility for collecting requirements on this account. attr_reader :requirements_collector diff --git a/lib/stripe/services/balance_transaction_service.rb b/lib/stripe/services/balance_transaction_service.rb index 7f856eb8b..8299dcbbd 100644 --- a/lib/stripe/services/balance_transaction_service.rb +++ b/lib/stripe/services/balance_transaction_service.rb @@ -3,9 +3,9 @@ module Stripe class BalanceTransactionService < StripeService - # Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first. + # Returns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first. # - # Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. + # The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history. def list(params = {}, opts = {}) request( method: :get, diff --git a/lib/stripe/services/credit_note_service.rb b/lib/stripe/services/credit_note_service.rb index af7ed018b..89f0671fa 100644 --- a/lib/stripe/services/credit_note_service.rb +++ b/lib/stripe/services/credit_note_service.rb @@ -24,6 +24,8 @@ def initialize(requestor) # # You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount, # post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation. + # + # For invoices that also have refunds created through the [Refund API](https://docs.stripe.com/docs/api/refunds), the credit note API subtracts those refund amounts from the maximum creditable amount. This prevents the combined credit notes and refunds from exceeding the invoice amount. If you use both, ensure the combined total does not exceed the invoice's paid amount. def create(params = {}, opts = {}) params = ::Stripe::CreditNoteCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams) diff --git a/lib/stripe/services/subscription_service.rb b/lib/stripe/services/subscription_service.rb index 9bc99c934..212241705 100644 --- a/lib/stripe/services/subscription_service.rb +++ b/lib/stripe/services/subscription_service.rb @@ -5,7 +5,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, 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. + # 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 false. # # By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. def cancel(subscription_exposed_id, params = {}, opts = {}) diff --git a/rbi/stripe.rbi b/rbi/stripe.rbi index 4a74a8e92..cb1a10563 100644 --- a/rbi/stripe.rbi +++ b/rbi/stripe.rbi @@ -1641,6 +1641,20 @@ module Stripe module Reserve # ReserveHolds are used to place a temporary ReserveHold on a merchant's funds. class Hold < APIResource + class ReleaseDetail < ::Stripe::StripeObject + # The amount released by the ReserveRelease from this ReserveHold. A positive integer representing how much is released in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + sig { returns(Integer) } + def amount; end + # The ReserveRelease which released funds from this ReserveHold (e.g., resrel_123). + sig { returns(String) } + def reserve_release; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class ReleaseSchedule < ::Stripe::StripeObject # The time after which the ReserveHold is requested to be released. sig { returns(T.nilable(Integer)) } @@ -1688,6 +1702,9 @@ module Stripe # The reason for the ReserveHold. sig { returns(String) } def reason; end + # List of ReserveReleases and the amounts released from this ReserveHold. + sig { returns(T.nilable(T::Array[ReleaseDetail])) } + def release_details; end # Attribute for field release_schedule sig { returns(ReleaseSchedule) } def release_schedule; end @@ -5611,12 +5628,12 @@ module Stripe # The transaction's net funds status in the Stripe balance, which are either `available` or `pending`. sig { returns(String) } def status; end - # Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead. + # Transaction type: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead. sig { returns(String) } def type; end - # Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first. + # Returns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first. # - # Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. + # The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history. sig { params(params: T.any(::Stripe::BalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } @@ -7386,6 +7403,9 @@ module Stripe end end class Bizum < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end # The Bizum transaction ID associated with this payment. sig { returns(T.nilable(String)) } def transaction_id; end @@ -7875,6 +7895,9 @@ module Stripe # Populated if this transaction used 3D Secure authentication. sig { returns(T.nilable(ThreeDSecure)) } def three_d_secure; end + # Transaction Link ID (TLID) is a unique identifier for a transaction. This is used by some card networks, such as Mastercard, for transaction linking, in addition to Network Transaction IDs. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + sig { returns(T.nilable(String)) } + def transaction_link_id; end # If this Card is part of a card wallet, this contains the details of the card wallet. sig { returns(T.nilable(Wallet)) } def wallet; end @@ -8641,6 +8664,9 @@ module Stripe # Unique transaction id generated by BCB sig { returns(T.nilable(String)) } def bank_transaction_id; end + # Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end # ID of the multi use Mandate generated by the PaymentIntent sig { returns(T.nilable(String)) } def mandate; end @@ -11183,6 +11209,26 @@ module Stripe @field_remappings = {} end end + class Sunbit < ::Stripe::StripeObject + # Controls when the funds will be captured from the customer's account. + sig { returns(T.nilable(String)) } + def capture_method; end + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Swish < ::Stripe::StripeObject # The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent. sig { returns(T.nilable(String)) } @@ -11308,6 +11354,29 @@ module Stripe @field_remappings = {} end end + class WechatPay < ::Stripe::StripeObject + # The app ID registered with WeChat Pay. Only required when client is iOS or Android. + sig { returns(T.nilable(String)) } + def app_id; end + # The client type that the end customer will pay from + sig { returns(T.nilable(String)) } + def client; end + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # Attribute for field acss_debit sig { returns(T.nilable(AcssDebit)) } def acss_debit; end @@ -11428,6 +11497,9 @@ module Stripe # Attribute for field sofort sig { returns(T.nilable(Sofort)) } def sofort; end + # Attribute for field sunbit + sig { returns(T.nilable(Sunbit)) } + def sunbit; end # Attribute for field swish sig { returns(T.nilable(Swish)) } def swish; end @@ -11440,6 +11512,9 @@ module Stripe # Attribute for field us_bank_account sig { returns(T.nilable(UsBankAccount)) } def us_bank_account; end + # Attribute for field wechat_pay + sig { returns(T.nilable(WechatPay)) } + def wechat_pay; end def self.inner_class_types @inner_class_types = { acss_debit: AcssDebit, @@ -11482,10 +11557,12 @@ module Stripe scalapay: Scalapay, sepa_debit: SepaDebit, sofort: Sofort, + sunbit: Sunbit, swish: Swish, twint: Twint, upi: Upi, us_bank_account: UsBankAccount, + wechat_pay: WechatPay, } end def self.field_remappings @@ -12555,6 +12632,9 @@ module Stripe end end class Bizum < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end def self.inner_class_types @inner_class_types = {} end @@ -12563,6 +12643,9 @@ module Stripe end end class Blik < ::Stripe::StripeObject + # A unique and immutable identifier assigned by BLIK to every buyer. + sig { returns(T.nilable(String)) } + def buyer_id; end def self.inner_class_types @inner_class_types = {} end @@ -13571,6 +13654,9 @@ module Stripe end end class Pix < ::Stripe::StripeObject + # Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end def self.inner_class_types @inner_class_types = {} end @@ -14599,6 +14685,8 @@ module Stripe # # You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount, # post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation. + # + # For invoices that also have refunds created through the [Refund API](https://docs.stripe.com/docs/api/refunds), the credit note API subtracts those refund amounts from the maximum creditable amount. This prevents the combined credit notes and refunds from exceeding the invoice amount. If you use both, ensure the combined total does not exceed the invoice's paid amount. sig { params(params: T.any(::Stripe::CreditNoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } @@ -15686,6 +15774,17 @@ module Stripe class Dispute < APIResource class Evidence < ::Stripe::StripeObject class EnhancedEvidence < ::Stripe::StripeObject + class MastercardCompliance < ::Stripe::StripeObject + # A field acknowledging the fee incurred when countering a Mastercard compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. + sig { returns(T::Boolean) } + def fee_acknowledged; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class VisaCompellingEvidence3 < ::Stripe::StripeObject class DisputedTransaction < ::Stripe::StripeObject class ShippingAddress < ::Stripe::StripeObject @@ -15830,6 +15929,9 @@ module Stripe @field_remappings = {} end end + # Attribute for field mastercard_compliance + sig { returns(T.nilable(MastercardCompliance)) } + def mastercard_compliance; end # Attribute for field visa_compelling_evidence_3 sig { returns(T.nilable(VisaCompellingEvidence3)) } def visa_compelling_evidence_3; end @@ -15838,6 +15940,7 @@ module Stripe def visa_compliance; end def self.inner_class_types @inner_class_types = { + mastercard_compliance: MastercardCompliance, visa_compelling_evidence_3: VisaCompellingEvidence3, visa_compliance: VisaCompliance, } @@ -15939,6 +16042,17 @@ module Stripe end class EvidenceDetails < ::Stripe::StripeObject class EnhancedEligibility < ::Stripe::StripeObject + class MastercardCompliance < ::Stripe::StripeObject + # Mastercard compliance eligibility status. + sig { returns(String) } + def status; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class VisaCompellingEvidence3 < ::Stripe::StripeObject # List of actions required to qualify dispute for Visa Compelling Evidence 3.0 evidence submission. sig { returns(T::Array[String]) } @@ -15964,6 +16078,9 @@ module Stripe @field_remappings = {} end end + # Attribute for field mastercard_compliance + sig { returns(T.nilable(MastercardCompliance)) } + def mastercard_compliance; end # Attribute for field visa_compelling_evidence_3 sig { returns(T.nilable(VisaCompellingEvidence3)) } def visa_compelling_evidence_3; end @@ -15972,6 +16089,7 @@ module Stripe def visa_compliance; end def self.inner_class_types @inner_class_types = { + mastercard_compliance: MastercardCompliance, visa_compelling_evidence_3: VisaCompellingEvidence3, visa_compliance: VisaCompliance, } @@ -16659,6 +16777,34 @@ module Stripe @field_remappings = {} end end + class StatusDetails < ::Stripe::StripeObject + class Active < ::Stripe::StripeObject + # The action (if any) to proactively relink the Account. + sig { returns(String) } + def action; end + # The underlying cause of the Account becoming inactive. + sig { returns(String) } + def cause; end + # When the Account is expected to become inactive, if applicable. + sig { returns(Integer) } + def expected_deactivation_date; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field active + sig { returns(T.nilable(Active)) } + def active; end + def self.inner_class_types + @inner_class_types = {active: Active} + end + def self.field_remappings + @field_remappings = {} + end + end class TransactionRefresh < ::Stripe::StripeObject # Unique identifier for the object. sig { returns(String) } @@ -16727,6 +16873,9 @@ module Stripe # The status of the link to the account. sig { returns(String) } def status; end + # Attribute for field status_details + sig { returns(T.nilable(StatusDetails)) } + def status_details; end # If `category` is `cash`, one of: # # - `checking` @@ -23280,6 +23429,9 @@ module Stripe end end class Bizum < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end # The Bizum transaction ID associated with this payment. sig { returns(T.nilable(String)) } def transaction_id; end @@ -23502,9 +23654,6 @@ module Stripe # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. sig { returns(T.nilable(String)) } def network_transaction_id; end - # The transaction type that was passed for an off-session, Merchant-Initiated transaction, one of `recurring` or `unscheduled`. - sig { returns(T.nilable(String)) } - def stored_credential_usage; end # Populated if this transaction used 3D Secure authentication. sig { returns(T.nilable(ThreeDSecure)) } def three_d_secure; end @@ -27513,6 +27662,15 @@ module Stripe # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end def self.inner_class_types @inner_class_types = {} end @@ -27585,6 +27743,26 @@ module Stripe @field_remappings = {} end end + class Sunbit < ::Stripe::StripeObject + # Controls when the funds will be captured from the customer's account. + sig { returns(T.nilable(String)) } + def capture_method; end + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Swish < ::Stripe::StripeObject # A reference for this payment to be displayed in the Swish app. sig { returns(T.nilable(String)) } @@ -27717,7 +27895,7 @@ module Stripe end end class WechatPay < ::Stripe::StripeObject - # The app ID registered with WeChat Pay. Only required when client is ios or android. + # The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. sig { returns(T.nilable(String)) } def app_id; end # The client type that the end customer will pay from @@ -27903,6 +28081,9 @@ module Stripe # Attribute for field sofort sig { returns(T.nilable(Sofort)) } def sofort; end + # Attribute for field sunbit + sig { returns(T.nilable(Sunbit)) } + def sunbit; end # Attribute for field swish sig { returns(T.nilable(Swish)) } def swish; end @@ -27972,6 +28153,7 @@ module Stripe scalapay: Scalapay, sepa_debit: SepaDebit, sofort: Sofort, + sunbit: Sunbit, swish: Swish, twint: Twint, upi: Upi, @@ -31909,6 +32091,9 @@ module Stripe end end class Bizum < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end def self.inner_class_types @inner_class_types = {} end @@ -31917,6 +32102,9 @@ module Stripe end end class Blik < ::Stripe::StripeObject + # A unique and immutable identifier assigned by BLIK to every buyer. + sig { returns(T.nilable(String)) } + def buyer_id; end def self.inner_class_types @inner_class_types = {} end @@ -32956,6 +33144,9 @@ module Stripe end end class Pix < ::Stripe::StripeObject + # Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end def self.inner_class_types @inner_class_types = {} end @@ -33927,6 +34118,9 @@ module Stripe end end class Bizum < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end # The Bizum transaction ID associated with this payment. sig { returns(T.nilable(String)) } def transaction_id; end @@ -34149,9 +34343,6 @@ module Stripe # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. sig { returns(T.nilable(String)) } def network_transaction_id; end - # The transaction type that was passed for an off-session, Merchant-Initiated transaction, one of `recurring` or `unscheduled`. - sig { returns(T.nilable(String)) } - def stored_credential_usage; end # Populated if this transaction used 3D Secure authentication. sig { returns(T.nilable(ThreeDSecure)) } def three_d_secure; end @@ -39206,6 +39397,9 @@ module Stripe end end class Pix < ::Stripe::StripeObject + # Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end def self.inner_class_types @inner_class_types = {} end @@ -39221,6 +39415,14 @@ module Stripe @field_remappings = {} end end + class Satispay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} @@ -39347,6 +39549,9 @@ module Stripe # Attribute for field revolut_pay sig { returns(T.nilable(RevolutPay)) } def revolut_pay; end + # Attribute for field satispay + sig { returns(T.nilable(Satispay)) } + def satispay; end # Attribute for field sepa_debit sig { returns(T.nilable(SepaDebit)) } def sepa_debit; end @@ -39387,6 +39592,7 @@ module Stripe payto: Payto, pix: Pix, revolut_pay: RevolutPay, + satispay: Satispay, sepa_debit: SepaDebit, sofort: Sofort, twint: Twint, @@ -42817,6 +43023,20 @@ module Stripe end end class InvoiceSettings < ::Stripe::StripeObject + class CustomField < ::Stripe::StripeObject + # The name of the custom field. + sig { returns(String) } + def name; end + # The value of the custom field. + sig { returns(String) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } @@ -42834,11 +43054,20 @@ module Stripe # The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::TaxId)])) } def account_tax_ids; end + # A list of up to 4 custom fields to be displayed on the invoice. + sig { returns(T.nilable(T::Array[CustomField])) } + def custom_fields; end + # An arbitrary string attached to the object. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + # Footer to be displayed on the invoice. + sig { returns(T.nilable(String)) } + def footer; end # Attribute for field issuer sig { returns(Issuer) } def issuer; end def self.inner_class_types - @inner_class_types = {issuer: Issuer} + @inner_class_types = {custom_fields: CustomField, issuer: Issuer} end def self.field_remappings @field_remappings = {} @@ -43446,7 +43675,7 @@ module Stripe def trial_start; end # 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. + # 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 false. # # By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. sig { @@ -43456,7 +43685,7 @@ module Stripe # 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. + # 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 false. # # By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. sig { @@ -51141,6 +51370,9 @@ module Stripe # Additional information about the object in a structured format. sig { returns(T::Hash[String, String]) } def metadata; end + # The import strategy for handling existing catalog data. + sig { returns(String) } + def mode; 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 @@ -52716,6 +52948,34 @@ module Stripe @field_remappings = {} end end + class SunbitPayments < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject + # Machine-readable code explaining the reason for the Capability to be in its current status. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details about the capability's status. This value is empty when `status` is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + def self.inner_class_types + @inner_class_types = {status_details: StatusDetail} + end + def self.field_remappings + @field_remappings = {} + end + end class SwishPayments < ::Stripe::StripeObject class StatusDetail < ::Stripe::StripeObject # Machine-readable code explaining the reason for the Capability to be in its current status. @@ -52951,6 +53211,9 @@ module Stripe # Capabilities that enable the merchant to manage their Stripe Balance (/v1/balance). sig { returns(T.nilable(StripeBalance)) } def stripe_balance; end + # Allow the merchant to process Sunbit payments. + sig { returns(T.nilable(SunbitPayments)) } + def sunbit_payments; end # Allow the merchant to process Swish payments. sig { returns(T.nilable(SwishPayments)) } def swish_payments; end @@ -53006,6 +53269,7 @@ module Stripe sepa_bank_transfer_payments: SepaBankTransferPayments, sepa_debit_payments: SepaDebitPayments, stripe_balance: StripeBalance, + sunbit_payments: SunbitPayments, swish_payments: SwishPayments, twint_payments: TwintPayments, us_bank_transfer_payments: UsBankTransferPayments, @@ -53382,7 +53646,7 @@ module Stripe # Indicates whether the platform or connected account is responsible for paying Stripe fees for pricing-control-eligible products. sig { returns(T.nilable(String)) } def fees_collector; end - # A value indicating responsibility for collecting requirements on this account. + # A value indicating the responsibility for losses on this account. sig { returns(T.nilable(String)) } def losses_collector; end # A value indicating responsibility for collecting requirements on this account. @@ -56113,9 +56377,9 @@ end # typed: true module Stripe class BalanceTransactionService < StripeService - # Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first. + # Returns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first. # - # Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. + # The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history. sig { params(params: T.any(::Stripe::BalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } @@ -56657,6 +56921,8 @@ module Stripe # # You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount, # post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation. + # + # For invoices that also have refunds created through the [Refund API](https://docs.stripe.com/docs/api/refunds), the credit note API subtracts those refund amounts from the maximum creditable amount. This prevents the combined credit notes and refunds from exceeding the invoice amount. If you use both, ensure the combined total does not exceed the invoice's paid amount. sig { params(params: T.any(::Stripe::CreditNoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } @@ -58939,7 +59205,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, 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. + # 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 false. # # By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. sig { @@ -63934,7 +64200,7 @@ module Stripe params(_company_license: T.nilable(::Stripe::AccountUpdateParams::Documents::CompanyLicense)).returns(T.nilable(::Stripe::AccountUpdateParams::Documents::CompanyLicense)) } def company_license=(_company_license); end - # One or more documents showing the company's Memorandum of Association. + # One or more documents showing the company's governing document (for example, a memorandum of association, constitution, or articles of association). sig { returns(T.nilable(::Stripe::AccountUpdateParams::Documents::CompanyMemorandumOfAssociation)) } @@ -67141,7 +67407,7 @@ module Stripe params(_company_license: T.nilable(::Stripe::AccountCreateParams::Documents::CompanyLicense)).returns(T.nilable(::Stripe::AccountCreateParams::Documents::CompanyLicense)) } def company_license=(_company_license); end - # One or more documents showing the company's Memorandum of Association. + # One or more documents showing the company's governing document (for example, a memorandum of association, constitution, or articles of association). sig { returns(T.nilable(::Stripe::AccountCreateParams::Documents::CompanyMemorandumOfAssociation)) } @@ -68864,7 +69130,7 @@ module Stripe def starting_after; end sig { params(_starting_after: T.nilable(String)).returns(T.nilable(String)) } def starting_after=(_starting_after); end - # Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. + # Only returns transactions of the given type. One of: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. sig { returns(T.nilable(String)) } def type; end sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } @@ -69206,7 +69472,7 @@ module Stripe def price_type; end sig { params(_price_type: T.nilable(String)).returns(T.nilable(String)) } def price_type=(_price_type); end - # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. + # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. Limit 20 prices. sig { returns(T.nilable(T::Array[::Stripe::Billing::CreditGrantCreateParams::ApplicabilityConfig::Scope::Price])) } @@ -73827,6 +74093,28 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end + class Sunbit < ::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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + sig { params(_setup_future_usage: T.nilable(String)).returns(T.nilable(String)) } + def setup_future_usage=(_setup_future_usage); end + sig { + params(capture_method: T.nilable(String), setup_future_usage: T.nilable(String)).void + } + def initialize(capture_method: nil, setup_future_usage: nil); end + end class Swish < ::Stripe::RequestParams # The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent. sig { returns(T.nilable(String)) } @@ -74374,6 +74662,15 @@ module Stripe params(_sofort: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Sofort)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Sofort)) } def sofort=(_sofort); end + # contains details about the Sunbit payment method options. + sig { + returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Sunbit)) + } + def sunbit; end + sig { + params(_sunbit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Sunbit)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Sunbit)) + } + def sunbit=(_sunbit); end # contains details about the Swish payment method options. sig { returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Swish)) @@ -74420,7 +74717,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), 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 + 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), sunbit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Sunbit), 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, @@ -74466,6 +74763,7 @@ module Stripe scalapay: nil, sepa_debit: nil, sofort: nil, + sunbit: nil, swish: nil, twint: nil, upi: nil, @@ -74728,6 +75026,37 @@ module Stripe def initialize(shipping_rate: nil, shipping_rate_data: nil); end end class SubscriptionData < ::Stripe::RequestParams + class BillingCycleAnchorConfig < ::Stripe::RequestParams + # The day of the month the anchor should be. Ranges from 1 to 31. + sig { returns(Integer) } + def day_of_month; end + sig { params(_day_of_month: Integer).returns(Integer) } + def day_of_month=(_day_of_month); end + # The hour of the day the anchor should be. Ranges from 0 to 23. + sig { returns(T.nilable(Integer)) } + def hour; end + sig { params(_hour: T.nilable(Integer)).returns(T.nilable(Integer)) } + def hour=(_hour); end + # The minute of the hour the anchor should be. Ranges from 0 to 59. + sig { returns(T.nilable(Integer)) } + def minute; end + sig { params(_minute: T.nilable(Integer)).returns(T.nilable(Integer)) } + def minute=(_minute); end + # The month to start full cycle periods. Ranges from 1 to 12. + sig { returns(T.nilable(Integer)) } + def month; end + sig { params(_month: T.nilable(Integer)).returns(T.nilable(Integer)) } + def month=(_month); end + # The second of the minute the anchor should be. Ranges from 0 to 59. + sig { returns(T.nilable(Integer)) } + def second; end + sig { params(_second: T.nilable(Integer)).returns(T.nilable(Integer)) } + def second=(_second); end + sig { + params(day_of_month: Integer, hour: T.nilable(Integer), minute: T.nilable(Integer), month: T.nilable(Integer), second: T.nilable(Integer)).void + } + def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil); end + end class BillingMode < ::Stripe::RequestParams class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. @@ -74848,6 +75177,15 @@ module Stripe def billing_cycle_anchor; end sig { params(_billing_cycle_anchor: T.nilable(Integer)).returns(T.nilable(Integer)) } def billing_cycle_anchor=(_billing_cycle_anchor); end + # Configures when the subscription schedule's billing cycle anchors to a specific day of the week or month. + sig { + returns(T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::BillingCycleAnchorConfig)) + } + def billing_cycle_anchor_config; end + sig { + params(_billing_cycle_anchor_config: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::BillingCycleAnchorConfig)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::BillingCycleAnchorConfig)) + } + def billing_cycle_anchor_config=(_billing_cycle_anchor_config); end # Controls how prorations and invoices for subscriptions are calculated and orchestrated. sig { returns(T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::BillingMode)) @@ -74937,11 +75275,12 @@ module Stripe } def trial_settings=(_trial_settings); end sig { - params(application_fee_percent: T.nilable(Float), billing_cycle_anchor: T.nilable(Integer), billing_mode: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::BillingMode), default_tax_rates: T.nilable(T::Array[String]), description: T.nilable(String), invoice_settings: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::InvoiceSettings), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), pending_invoice_item_interval: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::PendingInvoiceItemInterval), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::TransferData), trial_end: T.nilable(Integer), trial_period_days: T.nilable(Integer), trial_settings: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::TrialSettings)).void + params(application_fee_percent: T.nilable(Float), billing_cycle_anchor: T.nilable(Integer), billing_cycle_anchor_config: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::BillingCycleAnchorConfig), billing_mode: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::BillingMode), default_tax_rates: T.nilable(T::Array[String]), description: T.nilable(String), invoice_settings: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::InvoiceSettings), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), pending_invoice_item_interval: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::PendingInvoiceItemInterval), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::TransferData), trial_end: T.nilable(Integer), trial_period_days: T.nilable(Integer), trial_settings: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::TrialSettings)).void } def initialize( application_fee_percent: nil, billing_cycle_anchor: nil, + billing_cycle_anchor_config: nil, billing_mode: nil, default_tax_rates: nil, description: nil, @@ -75193,8 +75532,6 @@ module Stripe # You can configure Checkout to collect your customers' business names, individual names, or both. Each name field can be either required or optional. # # If a [Customer](https://docs.stripe.com/api/customers) is created or provided, the names can be saved to the Customer object as well. - # - # You can't set this parameter if `ui_mode` is `custom`. sig { returns(T.nilable(::Stripe::Checkout::SessionCreateParams::NameCollection)) } def name_collection; end sig { @@ -77075,7 +77412,7 @@ module Stripe params(_sofort: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Sofort)).returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Sofort)) } def sofort=(_sofort); end - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. sig { returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Sunbit)) } def sunbit; end sig { @@ -77780,7 +78117,7 @@ module Stripe def quantity; end sig { params(_quantity: T.nilable(Integer)).returns(T.nilable(Integer)) } def quantity=(_quantity); end - # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. sig { returns(T.nilable(T.any(String, T::Array[::Stripe::CreditNoteCreateParams::Line::TaxAmount]))) } @@ -78064,7 +78401,7 @@ module Stripe def quantity; end sig { params(_quantity: T.nilable(Integer)).returns(T.nilable(Integer)) } def quantity=(_quantity); end - # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. sig { returns(T.nilable(T.any(String, T::Array[::Stripe::CreditNotePreviewParams::Line::TaxAmount]))) } @@ -78322,7 +78659,7 @@ module Stripe def quantity; end sig { params(_quantity: T.nilable(Integer)).returns(T.nilable(Integer)) } def quantity=(_quantity); end - # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. sig { returns(T.nilable(T.any(String, T::Array[::Stripe::CreditNoteListPreviewLineItemsParams::Line::TaxAmount]))) } @@ -79991,6 +80328,15 @@ module Stripe class DisputeUpdateParams < ::Stripe::RequestParams class Evidence < ::Stripe::RequestParams class EnhancedEvidence < ::Stripe::RequestParams + class MastercardCompliance < ::Stripe::RequestParams + # A field acknowledging the fee incurred when countering a Mastercard compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. + sig { returns(T.nilable(T::Boolean)) } + def fee_acknowledged; end + sig { params(_fee_acknowledged: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def fee_acknowledged=(_fee_acknowledged); end + sig { params(fee_acknowledged: T.nilable(T::Boolean)).void } + def initialize(fee_acknowledged: nil); end + end class VisaCompellingEvidence3 < ::Stripe::RequestParams class DisputedTransaction < ::Stripe::RequestParams class ShippingAddress < ::Stripe::RequestParams @@ -80232,6 +80578,15 @@ module Stripe sig { params(fee_acknowledged: T.nilable(T::Boolean)).void } def initialize(fee_acknowledged: nil); end end + # Evidence provided for Mastercard compliance evidence submission. + sig { + returns(T.nilable(::Stripe::DisputeUpdateParams::Evidence::EnhancedEvidence::MastercardCompliance)) + } + def mastercard_compliance; end + sig { + params(_mastercard_compliance: T.nilable(::Stripe::DisputeUpdateParams::Evidence::EnhancedEvidence::MastercardCompliance)).returns(T.nilable(::Stripe::DisputeUpdateParams::Evidence::EnhancedEvidence::MastercardCompliance)) + } + def mastercard_compliance=(_mastercard_compliance); end # Evidence provided for Visa Compelling Evidence 3.0 evidence submission. sig { returns(T.nilable(::Stripe::DisputeUpdateParams::Evidence::EnhancedEvidence::VisaCompellingEvidence3)) @@ -80251,9 +80606,13 @@ module Stripe } def visa_compliance=(_visa_compliance); end sig { - params(visa_compelling_evidence_3: T.nilable(::Stripe::DisputeUpdateParams::Evidence::EnhancedEvidence::VisaCompellingEvidence3), visa_compliance: T.nilable(::Stripe::DisputeUpdateParams::Evidence::EnhancedEvidence::VisaCompliance)).void + params(mastercard_compliance: T.nilable(::Stripe::DisputeUpdateParams::Evidence::EnhancedEvidence::MastercardCompliance), visa_compelling_evidence_3: T.nilable(::Stripe::DisputeUpdateParams::Evidence::EnhancedEvidence::VisaCompellingEvidence3), visa_compliance: T.nilable(::Stripe::DisputeUpdateParams::Evidence::EnhancedEvidence::VisaCompliance)).void } - def initialize(visa_compelling_evidence_3: nil, visa_compliance: nil); end + def initialize( + mastercard_compliance: nil, + visa_compelling_evidence_3: nil, + visa_compliance: nil + ); end end # Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity. Has a maximum character count of 20,000. sig { returns(T.nilable(String)) } @@ -85296,7 +85655,7 @@ module Stripe def quantity_decimal; end sig { params(_quantity_decimal: T.nilable(BigDecimal)).returns(T.nilable(BigDecimal)) } def quantity_decimal=(_quantity_decimal); end - # A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. + # A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. sig { returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceAddLinesParams::Line::TaxAmount]))) } @@ -85841,7 +86200,7 @@ module Stripe def quantity_decimal; end sig { params(_quantity_decimal: T.nilable(BigDecimal)).returns(T.nilable(BigDecimal)) } def quantity_decimal=(_quantity_decimal); end - # A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. + # A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. sig { returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceUpdateLinesParams::Line::TaxAmount]))) } @@ -87424,7 +87783,7 @@ module Stripe params(_discounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::Item::Discount]))).returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::Item::Discount]))) } def discounts=(_discounts); end - # Subscription item to update. + # Subscription item to update. If you omit `id`, the API adds a new subscription item rather than updating the existing one. See [Changing a subscription's price](https://docs.stripe.com/billing/subscriptions/change-price#changing). sig { returns(T.nilable(String)) } def id; end sig { params(_id: T.nilable(String)).returns(T.nilable(String)) } @@ -88080,7 +88439,7 @@ module Stripe def quantity_decimal; end sig { params(_quantity_decimal: T.nilable(BigDecimal)).returns(T.nilable(BigDecimal)) } def quantity_decimal=(_quantity_decimal); end - # A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. + # A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. sig { returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceLineItemUpdateParams::TaxAmount]))) } @@ -95722,7 +96081,7 @@ module Stripe params(_sofort: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Sofort)).returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Sofort)) } def sofort=(_sofort); end - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. sig { returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Sunbit)) } def sunbit; end sig { @@ -97618,8 +97977,23 @@ module Stripe 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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(T.any(String, String))) } + def setup_future_usage; end + sig { + params(_setup_future_usage: T.nilable(T.any(String, String))).returns(T.nilable(T.any(String, String))) + } + def setup_future_usage=(_setup_future_usage); end + sig { + params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void + } + def initialize(capture_method: nil, setup_future_usage: nil); end end class Scalapay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. @@ -97706,6 +98080,32 @@ module Stripe } def initialize(preferred_language: nil, setup_future_usage: nil); end end + class Sunbit < ::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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + sig { params(_setup_future_usage: T.nilable(String)).returns(T.nilable(String)) } + def setup_future_usage=(_setup_future_usage); end + sig { + params(capture_method: T.nilable(String), setup_future_usage: T.nilable(String)).void + } + def initialize(capture_method: nil, setup_future_usage: nil); end + end class Swish < ::Stripe::RequestParams # A reference for this payment to be displayed in the Swish app. sig { returns(T.nilable(String)) } @@ -97932,7 +98332,7 @@ module Stripe ); end end class WechatPay < ::Stripe::RequestParams - # The app ID registered with WeChat Pay. Only required when client is ios or android. + # The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. sig { returns(T.nilable(String)) } def app_id; end sig { params(_app_id: T.nilable(String)).returns(T.nilable(String)) } @@ -98418,6 +98818,15 @@ module Stripe params(_sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Sofort))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Sofort))) } def sofort=(_sofort); end + # If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Sunbit))) + } + def sunbit; end + sig { + params(_sunbit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Sunbit))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Sunbit))) + } + def sunbit=(_sunbit); end # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options. sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Swish))) @@ -98473,7 +98882,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)), 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 + 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)), sunbit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Sunbit)), 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, @@ -98525,6 +98934,7 @@ module Stripe scalapay: nil, sepa_debit: nil, sofort: nil, + sunbit: nil, swish: nil, twint: nil, upi: nil, @@ -100100,7 +100510,7 @@ module Stripe params(_sofort: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Sofort)).returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Sofort)) } def sofort=(_sofort); end - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. sig { returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Sunbit)) } def sunbit; end sig { @@ -101996,8 +102406,23 @@ module Stripe 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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(T.any(String, String))) } + def setup_future_usage; end + sig { + params(_setup_future_usage: T.nilable(T.any(String, String))).returns(T.nilable(T.any(String, String))) + } + def setup_future_usage=(_setup_future_usage); end + sig { + params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void + } + def initialize(capture_method: nil, setup_future_usage: nil); end end class Scalapay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. @@ -102084,6 +102509,32 @@ module Stripe } def initialize(preferred_language: nil, setup_future_usage: nil); end end + class Sunbit < ::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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + sig { params(_setup_future_usage: T.nilable(String)).returns(T.nilable(String)) } + def setup_future_usage=(_setup_future_usage); end + sig { + params(capture_method: T.nilable(String), setup_future_usage: T.nilable(String)).void + } + def initialize(capture_method: nil, setup_future_usage: nil); end + end class Swish < ::Stripe::RequestParams # A reference for this payment to be displayed in the Swish app. sig { returns(T.nilable(String)) } @@ -102310,7 +102761,7 @@ module Stripe ); end end class WechatPay < ::Stripe::RequestParams - # The app ID registered with WeChat Pay. Only required when client is ios or android. + # The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. sig { returns(T.nilable(String)) } def app_id; end sig { params(_app_id: T.nilable(String)).returns(T.nilable(String)) } @@ -102796,6 +103247,15 @@ module Stripe params(_sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Sofort))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Sofort))) } def sofort=(_sofort); end + # If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Sunbit))) + } + def sunbit; end + sig { + params(_sunbit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Sunbit))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Sunbit))) + } + def sunbit=(_sunbit); end # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options. sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Swish))) @@ -102851,7 +103311,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)), 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 + 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)), sunbit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Sunbit)), 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, @@ -102903,6 +103363,7 @@ module Stripe scalapay: nil, sepa_debit: nil, sofort: nil, + sunbit: nil, swish: nil, twint: nil, upi: nil, @@ -103254,7 +103715,7 @@ module Stripe def page; end sig { params(_page: T.nilable(String)).returns(T.nilable(String)) } def page=(_page); end - # The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for payment intents](https://docs.stripe.com/search#query-fields-for-payment-intents). + # The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for payment intents](https://docs.stripe.com/search#query-fields-for-paymentintents). sig { returns(String) } def query; end sig { params(_query: String).returns(String) } @@ -104948,7 +105409,7 @@ module Stripe params(_sofort: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Sofort)).returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Sofort)) } def sofort=(_sofort); end - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. sig { returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Sunbit)) } def sunbit; end sig { @@ -106844,8 +107305,23 @@ module Stripe 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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(T.any(String, String))) } + def setup_future_usage; end + sig { + params(_setup_future_usage: T.nilable(T.any(String, String))).returns(T.nilable(T.any(String, String))) + } + def setup_future_usage=(_setup_future_usage); end + sig { + params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void + } + def initialize(capture_method: nil, setup_future_usage: nil); end end class Scalapay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. @@ -106932,6 +107408,32 @@ module Stripe } def initialize(preferred_language: nil, setup_future_usage: nil); end end + class Sunbit < ::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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + sig { params(_setup_future_usage: T.nilable(String)).returns(T.nilable(String)) } + def setup_future_usage=(_setup_future_usage); end + sig { + params(capture_method: T.nilable(String), setup_future_usage: T.nilable(String)).void + } + def initialize(capture_method: nil, setup_future_usage: nil); end + end class Swish < ::Stripe::RequestParams # A reference for this payment to be displayed in the Swish app. sig { returns(T.nilable(String)) } @@ -107158,7 +107660,7 @@ module Stripe ); end end class WechatPay < ::Stripe::RequestParams - # The app ID registered with WeChat Pay. Only required when client is ios or android. + # The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. sig { returns(T.nilable(String)) } def app_id; end sig { params(_app_id: T.nilable(String)).returns(T.nilable(String)) } @@ -107644,6 +108146,15 @@ module Stripe params(_sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Sofort))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Sofort))) } def sofort=(_sofort); end + # If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Sunbit))) + } + def sunbit; end + sig { + params(_sunbit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Sunbit))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Sunbit))) + } + def sunbit=(_sunbit); end # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options. sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Swish))) @@ -107699,7 +108210,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)), 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 + 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)), sunbit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Sunbit)), 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, @@ -107751,6 +108262,7 @@ module Stripe scalapay: nil, sepa_debit: nil, sofort: nil, + sunbit: nil, swish: nil, twint: nil, upi: nil, @@ -109694,7 +110206,7 @@ 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 + # Payment-method-specific configuration. sig { returns(T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions)) } def payment_method_options; end sig { @@ -115834,7 +116346,7 @@ module Stripe params(_sofort: T.nilable(::Stripe::PaymentMethodCreateParams::Sofort)).returns(T.nilable(::Stripe::PaymentMethodCreateParams::Sofort)) } def sofort=(_sofort); end - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. sig { returns(T.nilable(::Stripe::PaymentMethodCreateParams::Sunbit)) } def sunbit; end sig { @@ -116801,14 +117313,14 @@ module Stripe } def processor_details=(_processor_details); end # Information about the payment attempt refund. - sig { returns(::Stripe::PaymentRecordReportRefundParams::Refunded) } + sig { returns(T.nilable(::Stripe::PaymentRecordReportRefundParams::Refunded)) } def refunded; end sig { - params(_refunded: ::Stripe::PaymentRecordReportRefundParams::Refunded).returns(::Stripe::PaymentRecordReportRefundParams::Refunded) + params(_refunded: T.nilable(::Stripe::PaymentRecordReportRefundParams::Refunded)).returns(T.nilable(::Stripe::PaymentRecordReportRefundParams::Refunded)) } def refunded=(_refunded); end sig { - params(amount: T.nilable(::Stripe::PaymentRecordReportRefundParams::Amount), expand: T.nilable(T::Array[String]), initiated_at: T.nilable(Integer), metadata: T.nilable(T.any(String, T::Hash[String, String])), outcome: String, processor_details: ::Stripe::PaymentRecordReportRefundParams::ProcessorDetails, refunded: ::Stripe::PaymentRecordReportRefundParams::Refunded).void + params(amount: T.nilable(::Stripe::PaymentRecordReportRefundParams::Amount), expand: T.nilable(T::Array[String]), initiated_at: T.nilable(Integer), metadata: T.nilable(T.any(String, T::Hash[String, String])), outcome: String, processor_details: ::Stripe::PaymentRecordReportRefundParams::ProcessorDetails, refunded: T.nilable(::Stripe::PaymentRecordReportRefundParams::Refunded)).void } def initialize( amount: nil, @@ -122870,7 +123382,7 @@ module Stripe params(_sofort: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Sofort)).returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Sofort)) } def sofort=(_sofort); end - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. sig { returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Sunbit)) } def sunbit; end sig { @@ -124884,7 +125396,7 @@ module Stripe params(_sofort: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Sofort)).returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Sofort)) } def sofort=(_sofort); end - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. sig { returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Sunbit)) } def sunbit; end sig { @@ -126903,7 +127415,7 @@ module Stripe params(_sofort: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Sofort)).returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Sofort)) } def sofort=(_sofort); end - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. sig { returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Sunbit)) } def sunbit; end sig { @@ -132316,6 +132828,20 @@ module Stripe def initialize(coupon: nil, discount: nil, promotion_code: nil); end end class InvoiceSettings < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams + # The name of the custom field. This may be up to 40 characters. + sig { returns(String) } + def name; end + sig { params(_name: String).returns(String) } + def name=(_name); end + # The value of the custom field. This may be up to 140 characters. + sig { returns(String) } + def value; end + sig { params(_value: String).returns(String) } + def value=(_value); end + sig { params(name: String, value: String).void } + def initialize(name: nil, value: nil); end + end class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } @@ -132337,6 +132863,25 @@ module Stripe params(_account_tax_ids: T.nilable(T.any(String, T::Array[String]))).returns(T.nilable(T.any(String, T::Array[String]))) } def account_tax_ids=(_account_tax_ids); end + # A list of up to 4 custom fields to be displayed on the invoice. + sig { + returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::InvoiceSettings::CustomField]))) + } + def custom_fields; end + sig { + params(_custom_fields: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::InvoiceSettings::CustomField]))).returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::InvoiceSettings::CustomField]))) + } + def custom_fields=(_custom_fields); end + # An arbitrary string attached to the object. 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 + # Footer to be displayed on the invoice. + sig { returns(T.nilable(String)) } + def footer; end + sig { params(_footer: T.nilable(String)).returns(T.nilable(String)) } + def footer=(_footer); end # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. sig { returns(T.nilable(::Stripe::SubscriptionUpdateParams::InvoiceSettings::Issuer)) } def issuer; end @@ -132345,9 +132890,15 @@ module Stripe } def issuer=(_issuer); end sig { - params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), issuer: T.nilable(::Stripe::SubscriptionUpdateParams::InvoiceSettings::Issuer)).void + params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::InvoiceSettings::CustomField])), description: T.nilable(String), footer: T.nilable(String), issuer: T.nilable(::Stripe::SubscriptionUpdateParams::InvoiceSettings::Issuer)).void } - def initialize(account_tax_ids: nil, issuer: nil); end + def initialize( + account_tax_ids: nil, + custom_fields: nil, + description: nil, + footer: nil, + issuer: nil + ); end end class Item < ::Stripe::RequestParams class BillingThresholds < ::Stripe::RequestParams @@ -132470,7 +133021,7 @@ module Stripe params(_discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::Item::Discount]))).returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::Item::Discount]))) } def discounts=(_discounts); end - # Subscription item to update. + # Subscription item to update. If you omit `id`, the API adds a new subscription item rather than updating the existing one. See [Changing a subscription's price](https://docs.stripe.com/billing/subscriptions/change-price#changing). sig { returns(T.nilable(String)) } def id; end sig { params(_id: T.nilable(String)).returns(T.nilable(String)) } @@ -133903,6 +134454,20 @@ module Stripe def initialize(coupon: nil, discount: nil, promotion_code: nil); end end class InvoiceSettings < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams + # The name of the custom field. This may be up to 40 characters. + sig { returns(String) } + def name; end + sig { params(_name: String).returns(String) } + def name=(_name); end + # The value of the custom field. This may be up to 140 characters. + sig { returns(String) } + def value; end + sig { params(_value: String).returns(String) } + def value=(_value); end + sig { params(name: String, value: String).void } + def initialize(name: nil, value: nil); end + end class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } @@ -133924,6 +134489,25 @@ module Stripe params(_account_tax_ids: T.nilable(T.any(String, T::Array[String]))).returns(T.nilable(T.any(String, T::Array[String]))) } def account_tax_ids=(_account_tax_ids); end + # A list of up to 4 custom fields to be displayed on the invoice. + sig { + returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionCreateParams::InvoiceSettings::CustomField]))) + } + def custom_fields; end + sig { + params(_custom_fields: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionCreateParams::InvoiceSettings::CustomField]))).returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionCreateParams::InvoiceSettings::CustomField]))) + } + def custom_fields=(_custom_fields); end + # An arbitrary string attached to the object. 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 + # Footer to be displayed on the invoice. + sig { returns(T.nilable(String)) } + def footer; end + sig { params(_footer: T.nilable(String)).returns(T.nilable(String)) } + def footer=(_footer); end # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. sig { returns(T.nilable(::Stripe::SubscriptionCreateParams::InvoiceSettings::Issuer)) } def issuer; end @@ -133932,9 +134516,15 @@ module Stripe } def issuer=(_issuer); end sig { - params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), issuer: T.nilable(::Stripe::SubscriptionCreateParams::InvoiceSettings::Issuer)).void + params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionCreateParams::InvoiceSettings::CustomField])), description: T.nilable(String), footer: T.nilable(String), issuer: T.nilable(::Stripe::SubscriptionCreateParams::InvoiceSettings::Issuer)).void } - def initialize(account_tax_ids: nil, issuer: nil); end + def initialize( + account_tax_ids: nil, + custom_fields: nil, + description: nil, + footer: nil, + issuer: nil + ); end end class Item < ::Stripe::RequestParams class BillingThresholds < ::Stripe::RequestParams @@ -144726,6 +145316,28 @@ end # typed: true module Stripe class TopupCreateParams < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + # Attribute for param field network + sig { returns(String) } + def network; end + sig { params(_network: String).returns(String) } + def network=(_network); end + sig { params(network: String).void } + def initialize(network: nil); end + end + # Attribute for param field us_bank_account + sig { returns(T.nilable(::Stripe::TopupCreateParams::PaymentMethodOptions::UsBankAccount)) } + def us_bank_account; end + sig { + params(_us_bank_account: T.nilable(::Stripe::TopupCreateParams::PaymentMethodOptions::UsBankAccount)).returns(T.nilable(::Stripe::TopupCreateParams::PaymentMethodOptions::UsBankAccount)) + } + def us_bank_account=(_us_bank_account); end + sig { + params(us_bank_account: T.nilable(::Stripe::TopupCreateParams::PaymentMethodOptions::UsBankAccount)).void + } + def initialize(us_bank_account: nil); end + end # A positive integer representing how much to transfer. sig { returns(Integer) } def amount; end @@ -144753,6 +145365,18 @@ module Stripe 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 ID of a PaymentMethod representing the payment method to be used for the top-up. A PaymentMethod of type `us_bank_account` can be used. + sig { returns(T.nilable(String)) } + def payment_method; end + sig { params(_payment_method: T.nilable(String)).returns(T.nilable(String)) } + def payment_method=(_payment_method); end + # Payment method-specific configuration for this top-up. + sig { returns(T.nilable(::Stripe::TopupCreateParams::PaymentMethodOptions)) } + def payment_method_options; end + sig { + params(_payment_method_options: T.nilable(::Stripe::TopupCreateParams::PaymentMethodOptions)).returns(T.nilable(::Stripe::TopupCreateParams::PaymentMethodOptions)) + } + def payment_method_options=(_payment_method_options); end # The ID of a source to transfer funds from. For most users, this should be left unspecified which will use the bank account that was set up in the dashboard for the specified currency. In test mode, this can be a test bank token (see [Testing Top-ups](https://docs.stripe.com/connect/testing#testing-top-ups)). sig { returns(T.nilable(String)) } def source; end @@ -144769,7 +145393,7 @@ module Stripe sig { params(_transfer_group: T.nilable(String)).returns(T.nilable(String)) } def transfer_group=(_transfer_group); end sig { - params(amount: Integer, currency: String, description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), source: T.nilable(String), statement_descriptor: T.nilable(String), transfer_group: T.nilable(String)).void + params(amount: Integer, currency: String, description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_method: T.nilable(String), payment_method_options: T.nilable(::Stripe::TopupCreateParams::PaymentMethodOptions), source: T.nilable(String), statement_descriptor: T.nilable(String), transfer_group: T.nilable(String)).void } def initialize( amount: nil, @@ -144777,6 +145401,8 @@ module Stripe description: nil, expand: nil, metadata: nil, + payment_method: nil, + payment_method_options: nil, source: nil, statement_descriptor: nil, transfer_group: nil @@ -150032,7 +150658,7 @@ module Stripe def price_type; end sig { params(_price_type: T.nilable(String)).returns(T.nilable(String)) } def price_type=(_price_type); end - # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. + # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. Limit 20 prices. sig { returns(T.nilable(T::Array[::Stripe::Billing::CreditBalanceSummaryRetrieveParams::Filter::ApplicabilityScope::Price])) } @@ -150441,7 +151067,7 @@ module Stripe def quantity; end sig { params(_quantity: T.nilable(Integer)).returns(T.nilable(Integer)) } def quantity=(_quantity); end - # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. sig { returns(T.nilable(T.any(String, T::Array[::Stripe::CreditNotePreviewLinesListParams::Line::TaxAmount]))) } @@ -153509,7 +154135,7 @@ module Stripe params(_sofort: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Sofort)).returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Sofort)) } def sofort=(_sofort); end - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. sig { returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Sunbit)) } @@ -159103,6 +159729,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end + class SunbitPayments < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end class SwishPayments < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. sig { returns(T::Boolean) } @@ -159499,6 +160134,15 @@ module Stripe params(_sepa_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SepaDebitPayments)).returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SepaDebitPayments)) } def sepa_debit_payments=(_sepa_debit_payments); end + # Allow the merchant to process Sunbit payments. + sig { + returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SunbitPayments)) + } + def sunbit_payments; end + sig { + params(_sunbit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SunbitPayments)).returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SunbitPayments)) + } + def sunbit_payments=(_sunbit_payments); end # Allow the merchant to process Swish payments. sig { returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SwishPayments)) @@ -159536,7 +160180,7 @@ module Stripe } def zip_payments=(_zip_payments); end sig { - params(ach_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AchDebitPayments), acss_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AcssDebitPayments), affirm_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AffirmPayments), afterpay_clearpay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AfterpayClearpayPayments), alma_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AlmaPayments), amazon_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AmazonPayPayments), au_becs_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AuBecsDebitPayments), bacs_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::BacsDebitPayments), bancontact_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::BancontactPayments), blik_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::BlikPayments), boleto_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::BoletoPayments), card_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::CardPayments), cartes_bancaires_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::CartesBancairesPayments), cashapp_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::CashappPayments), eps_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::EpsPayments), fpx_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::FpxPayments), gb_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::GbBankTransferPayments), grabpay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::GrabpayPayments), ideal_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::IdealPayments), jcb_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::JcbPayments), jp_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::JpBankTransferPayments), kakao_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::KakaoPayPayments), klarna_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::KlarnaPayments), konbini_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::KonbiniPayments), kr_card_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::KrCardPayments), link_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::LinkPayments), mobilepay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::MobilepayPayments), multibanco_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::MultibancoPayments), mx_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::MxBankTransferPayments), naver_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::NaverPayPayments), oxxo_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::OxxoPayments), p24_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::P24Payments), pay_by_bank_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::PayByBankPayments), payco_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::PaycoPayments), paynow_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::PaynowPayments), promptpay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::PromptpayPayments), revolut_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::RevolutPayPayments), samsung_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SamsungPayPayments), sepa_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SepaBankTransferPayments), sepa_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SepaDebitPayments), swish_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SwishPayments), twint_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::TwintPayments), us_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::UsBankTransferPayments), zip_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::ZipPayments)).void + params(ach_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AchDebitPayments), acss_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AcssDebitPayments), affirm_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AffirmPayments), afterpay_clearpay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AfterpayClearpayPayments), alma_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AlmaPayments), amazon_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AmazonPayPayments), au_becs_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AuBecsDebitPayments), bacs_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::BacsDebitPayments), bancontact_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::BancontactPayments), blik_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::BlikPayments), boleto_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::BoletoPayments), card_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::CardPayments), cartes_bancaires_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::CartesBancairesPayments), cashapp_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::CashappPayments), eps_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::EpsPayments), fpx_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::FpxPayments), gb_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::GbBankTransferPayments), grabpay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::GrabpayPayments), ideal_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::IdealPayments), jcb_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::JcbPayments), jp_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::JpBankTransferPayments), kakao_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::KakaoPayPayments), klarna_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::KlarnaPayments), konbini_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::KonbiniPayments), kr_card_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::KrCardPayments), link_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::LinkPayments), mobilepay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::MobilepayPayments), multibanco_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::MultibancoPayments), mx_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::MxBankTransferPayments), naver_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::NaverPayPayments), oxxo_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::OxxoPayments), p24_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::P24Payments), pay_by_bank_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::PayByBankPayments), payco_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::PaycoPayments), paynow_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::PaynowPayments), promptpay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::PromptpayPayments), revolut_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::RevolutPayPayments), samsung_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SamsungPayPayments), sepa_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SepaBankTransferPayments), sepa_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SepaDebitPayments), sunbit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SunbitPayments), swish_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SwishPayments), twint_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::TwintPayments), us_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::UsBankTransferPayments), zip_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::ZipPayments)).void } def initialize( ach_debit_payments: nil, @@ -159579,6 +160223,7 @@ module Stripe samsung_pay_payments: nil, sepa_bank_transfer_payments: nil, sepa_debit_payments: nil, + sunbit_payments: nil, swish_payments: nil, twint_payments: nil, us_bank_transfer_payments: nil, @@ -162482,6 +163127,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class SunbitPayments < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end class SwishPayments < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. sig { returns(T.nilable(T::Boolean)) } @@ -162878,6 +163532,15 @@ module Stripe params(_sepa_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SepaDebitPayments)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SepaDebitPayments)) } def sepa_debit_payments=(_sepa_debit_payments); end + # Allow the merchant to process Sunbit payments. + sig { + returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SunbitPayments)) + } + def sunbit_payments; end + sig { + params(_sunbit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SunbitPayments)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SunbitPayments)) + } + def sunbit_payments=(_sunbit_payments); end # Allow the merchant to process Swish payments. sig { returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SwishPayments)) @@ -162915,7 +163578,7 @@ module Stripe } def zip_payments=(_zip_payments); end sig { - params(ach_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AchDebitPayments), acss_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AcssDebitPayments), affirm_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AffirmPayments), afterpay_clearpay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AfterpayClearpayPayments), alma_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AlmaPayments), amazon_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AmazonPayPayments), au_becs_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AuBecsDebitPayments), bacs_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::BacsDebitPayments), bancontact_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::BancontactPayments), blik_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::BlikPayments), boleto_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::BoletoPayments), card_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::CardPayments), cartes_bancaires_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::CartesBancairesPayments), cashapp_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::CashappPayments), eps_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::EpsPayments), fpx_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::FpxPayments), gb_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::GbBankTransferPayments), grabpay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::GrabpayPayments), ideal_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::IdealPayments), jcb_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::JcbPayments), jp_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::JpBankTransferPayments), kakao_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::KakaoPayPayments), klarna_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::KlarnaPayments), konbini_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::KonbiniPayments), kr_card_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::KrCardPayments), link_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::LinkPayments), mobilepay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::MobilepayPayments), multibanco_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::MultibancoPayments), mx_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::MxBankTransferPayments), naver_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::NaverPayPayments), oxxo_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::OxxoPayments), p24_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::P24Payments), pay_by_bank_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::PayByBankPayments), payco_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::PaycoPayments), paynow_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::PaynowPayments), promptpay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::PromptpayPayments), revolut_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::RevolutPayPayments), samsung_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SamsungPayPayments), sepa_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SepaBankTransferPayments), sepa_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SepaDebitPayments), swish_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SwishPayments), twint_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::TwintPayments), us_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::UsBankTransferPayments), zip_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::ZipPayments)).void + params(ach_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AchDebitPayments), acss_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AcssDebitPayments), affirm_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AffirmPayments), afterpay_clearpay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AfterpayClearpayPayments), alma_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AlmaPayments), amazon_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AmazonPayPayments), au_becs_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AuBecsDebitPayments), bacs_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::BacsDebitPayments), bancontact_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::BancontactPayments), blik_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::BlikPayments), boleto_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::BoletoPayments), card_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::CardPayments), cartes_bancaires_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::CartesBancairesPayments), cashapp_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::CashappPayments), eps_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::EpsPayments), fpx_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::FpxPayments), gb_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::GbBankTransferPayments), grabpay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::GrabpayPayments), ideal_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::IdealPayments), jcb_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::JcbPayments), jp_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::JpBankTransferPayments), kakao_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::KakaoPayPayments), klarna_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::KlarnaPayments), konbini_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::KonbiniPayments), kr_card_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::KrCardPayments), link_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::LinkPayments), mobilepay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::MobilepayPayments), multibanco_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::MultibancoPayments), mx_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::MxBankTransferPayments), naver_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::NaverPayPayments), oxxo_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::OxxoPayments), p24_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::P24Payments), pay_by_bank_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::PayByBankPayments), payco_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::PaycoPayments), paynow_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::PaynowPayments), promptpay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::PromptpayPayments), revolut_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::RevolutPayPayments), samsung_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SamsungPayPayments), sepa_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SepaBankTransferPayments), sepa_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SepaDebitPayments), sunbit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SunbitPayments), swish_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SwishPayments), twint_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::TwintPayments), us_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::UsBankTransferPayments), zip_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::ZipPayments)).void } def initialize( ach_debit_payments: nil, @@ -162958,6 +163621,7 @@ module Stripe samsung_pay_payments: nil, sepa_bank_transfer_payments: nil, sepa_debit_payments: nil, + sunbit_payments: nil, swish_payments: nil, twint_payments: nil, us_bank_transfer_payments: nil, @@ -163570,7 +164234,7 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end - class CryptoStorer < ::Stripe::RequestParams + class CryptoMoneyManager < ::Stripe::RequestParams # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. sig { returns(T.nilable(String)) } def date; end @@ -163591,7 +164255,7 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end - class Storer < ::Stripe::RequestParams + class MoneyManager < ::Stripe::RequestParams # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. sig { returns(T.nilable(String)) } def date; end @@ -163621,28 +164285,28 @@ module Stripe params(_account: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Account)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Account)) } def account=(_account); end - # Details on the Account's acceptance of Crypto-storer-specific terms of service. + # Details on the Account's acceptance of Crypto-specific terms of service. sig { - returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoMoneyManager)) } - def crypto_storer; end + def crypto_money_manager; end sig { - params(_crypto_storer: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + params(_crypto_money_manager: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoMoneyManager)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoMoneyManager)) } - def crypto_storer=(_crypto_storer); end + def crypto_money_manager=(_crypto_money_manager); end # Details on the Account's acceptance of Treasury-specific terms of service. sig { - returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)) + returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::MoneyManager)) } - def storer; end + def money_manager; end sig { - params(_storer: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)) + params(_money_manager: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::MoneyManager)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::MoneyManager)) } - def storer=(_storer); end + def money_manager=(_money_manager); end sig { - params(account: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Account), crypto_storer: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer), storer: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)).void + params(account: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Account), crypto_money_manager: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoMoneyManager), money_manager: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::MoneyManager)).void } - def initialize(account: nil, crypto_storer: nil, storer: nil); end + def initialize(account: nil, crypto_money_manager: nil, money_manager: nil); end end # This hash is used to attest that the directors information provided to Stripe is both current and correct. sig { diff --git a/rbi/stripe/params/account_create_params.rbi b/rbi/stripe/params/account_create_params.rbi index cf619cedc..8bd0589f9 100644 --- a/rbi/stripe/params/account_create_params.rbi +++ b/rbi/stripe/params/account_create_params.rbi @@ -2106,7 +2106,7 @@ module Stripe params(_company_license: T.nilable(::Stripe::AccountCreateParams::Documents::CompanyLicense)).returns(T.nilable(::Stripe::AccountCreateParams::Documents::CompanyLicense)) } def company_license=(_company_license); end - # One or more documents showing the company's Memorandum of Association. + # One or more documents showing the company's governing document (for example, a memorandum of association, constitution, or articles of association). sig { returns(T.nilable(::Stripe::AccountCreateParams::Documents::CompanyMemorandumOfAssociation)) } diff --git a/rbi/stripe/params/account_update_params.rbi b/rbi/stripe/params/account_update_params.rbi index 6c9d69234..2bb7771c2 100644 --- a/rbi/stripe/params/account_update_params.rbi +++ b/rbi/stripe/params/account_update_params.rbi @@ -2042,7 +2042,7 @@ module Stripe params(_company_license: T.nilable(::Stripe::AccountUpdateParams::Documents::CompanyLicense)).returns(T.nilable(::Stripe::AccountUpdateParams::Documents::CompanyLicense)) } def company_license=(_company_license); end - # One or more documents showing the company's Memorandum of Association. + # One or more documents showing the company's governing document (for example, a memorandum of association, constitution, or articles of association). sig { returns(T.nilable(::Stripe::AccountUpdateParams::Documents::CompanyMemorandumOfAssociation)) } diff --git a/rbi/stripe/params/balance_transaction_list_params.rbi b/rbi/stripe/params/balance_transaction_list_params.rbi index d7a316839..060e208b7 100644 --- a/rbi/stripe/params/balance_transaction_list_params.rbi +++ b/rbi/stripe/params/balance_transaction_list_params.rbi @@ -72,7 +72,7 @@ module Stripe def starting_after; end sig { params(_starting_after: T.nilable(String)).returns(T.nilable(String)) } def starting_after=(_starting_after); end - # Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. + # Only returns transactions of the given type. One of: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. sig { returns(T.nilable(String)) } def type; end sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/billing/credit_balance_summary_retrieve_params.rbi b/rbi/stripe/params/billing/credit_balance_summary_retrieve_params.rbi index 7002c1733..0f94f62f3 100644 --- a/rbi/stripe/params/billing/credit_balance_summary_retrieve_params.rbi +++ b/rbi/stripe/params/billing/credit_balance_summary_retrieve_params.rbi @@ -21,7 +21,7 @@ module Stripe def price_type; end sig { params(_price_type: T.nilable(String)).returns(T.nilable(String)) } def price_type=(_price_type); end - # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. + # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. Limit 20 prices. sig { returns(T.nilable(T::Array[::Stripe::Billing::CreditBalanceSummaryRetrieveParams::Filter::ApplicabilityScope::Price])) } diff --git a/rbi/stripe/params/billing/credit_grant_create_params.rbi b/rbi/stripe/params/billing/credit_grant_create_params.rbi index 4b04e1424..34ab651c9 100644 --- a/rbi/stripe/params/billing/credit_grant_create_params.rbi +++ b/rbi/stripe/params/billing/credit_grant_create_params.rbi @@ -53,7 +53,7 @@ module Stripe def price_type; end sig { params(_price_type: T.nilable(String)).returns(T.nilable(String)) } def price_type=(_price_type); end - # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. + # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. Limit 20 prices. sig { returns(T.nilable(T::Array[::Stripe::Billing::CreditGrantCreateParams::ApplicabilityConfig::Scope::Price])) } diff --git a/rbi/stripe/params/checkout/session_create_params.rbi b/rbi/stripe/params/checkout/session_create_params.rbi index 5fb8df0f4..3c9391490 100644 --- a/rbi/stripe/params/checkout/session_create_params.rbi +++ b/rbi/stripe/params/checkout/session_create_params.rbi @@ -2385,6 +2385,28 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end + class Sunbit < ::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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + sig { params(_setup_future_usage: T.nilable(String)).returns(T.nilable(String)) } + def setup_future_usage=(_setup_future_usage); end + sig { + params(capture_method: T.nilable(String), setup_future_usage: T.nilable(String)).void + } + def initialize(capture_method: nil, setup_future_usage: nil); end + end class Swish < ::Stripe::RequestParams # The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent. sig { returns(T.nilable(String)) } @@ -2932,6 +2954,15 @@ module Stripe params(_sofort: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Sofort)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Sofort)) } def sofort=(_sofort); end + # contains details about the Sunbit payment method options. + sig { + returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Sunbit)) + } + def sunbit; end + sig { + params(_sunbit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Sunbit)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Sunbit)) + } + def sunbit=(_sunbit); end # contains details about the Swish payment method options. sig { returns(T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Swish)) @@ -2978,7 +3009,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), 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 + 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), sunbit: T.nilable(::Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Sunbit), 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, @@ -3024,6 +3055,7 @@ module Stripe scalapay: nil, sepa_debit: nil, sofort: nil, + sunbit: nil, swish: nil, twint: nil, upi: nil, @@ -3286,6 +3318,37 @@ module Stripe def initialize(shipping_rate: nil, shipping_rate_data: nil); end end class SubscriptionData < ::Stripe::RequestParams + class BillingCycleAnchorConfig < ::Stripe::RequestParams + # The day of the month the anchor should be. Ranges from 1 to 31. + sig { returns(Integer) } + def day_of_month; end + sig { params(_day_of_month: Integer).returns(Integer) } + def day_of_month=(_day_of_month); end + # The hour of the day the anchor should be. Ranges from 0 to 23. + sig { returns(T.nilable(Integer)) } + def hour; end + sig { params(_hour: T.nilable(Integer)).returns(T.nilable(Integer)) } + def hour=(_hour); end + # The minute of the hour the anchor should be. Ranges from 0 to 59. + sig { returns(T.nilable(Integer)) } + def minute; end + sig { params(_minute: T.nilable(Integer)).returns(T.nilable(Integer)) } + def minute=(_minute); end + # The month to start full cycle periods. Ranges from 1 to 12. + sig { returns(T.nilable(Integer)) } + def month; end + sig { params(_month: T.nilable(Integer)).returns(T.nilable(Integer)) } + def month=(_month); end + # The second of the minute the anchor should be. Ranges from 0 to 59. + sig { returns(T.nilable(Integer)) } + def second; end + sig { params(_second: T.nilable(Integer)).returns(T.nilable(Integer)) } + def second=(_second); end + sig { + params(day_of_month: Integer, hour: T.nilable(Integer), minute: T.nilable(Integer), month: T.nilable(Integer), second: T.nilable(Integer)).void + } + def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil); end + end class BillingMode < ::Stripe::RequestParams class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. @@ -3406,6 +3469,15 @@ module Stripe def billing_cycle_anchor; end sig { params(_billing_cycle_anchor: T.nilable(Integer)).returns(T.nilable(Integer)) } def billing_cycle_anchor=(_billing_cycle_anchor); end + # Configures when the subscription schedule's billing cycle anchors to a specific day of the week or month. + sig { + returns(T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::BillingCycleAnchorConfig)) + } + def billing_cycle_anchor_config; end + sig { + params(_billing_cycle_anchor_config: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::BillingCycleAnchorConfig)).returns(T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::BillingCycleAnchorConfig)) + } + def billing_cycle_anchor_config=(_billing_cycle_anchor_config); end # Controls how prorations and invoices for subscriptions are calculated and orchestrated. sig { returns(T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::BillingMode)) @@ -3495,11 +3567,12 @@ module Stripe } def trial_settings=(_trial_settings); end sig { - params(application_fee_percent: T.nilable(Float), billing_cycle_anchor: T.nilable(Integer), billing_mode: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::BillingMode), default_tax_rates: T.nilable(T::Array[String]), description: T.nilable(String), invoice_settings: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::InvoiceSettings), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), pending_invoice_item_interval: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::PendingInvoiceItemInterval), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::TransferData), trial_end: T.nilable(Integer), trial_period_days: T.nilable(Integer), trial_settings: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::TrialSettings)).void + params(application_fee_percent: T.nilable(Float), billing_cycle_anchor: T.nilable(Integer), billing_cycle_anchor_config: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::BillingCycleAnchorConfig), billing_mode: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::BillingMode), default_tax_rates: T.nilable(T::Array[String]), description: T.nilable(String), invoice_settings: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::InvoiceSettings), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), pending_invoice_item_interval: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::PendingInvoiceItemInterval), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::TransferData), trial_end: T.nilable(Integer), trial_period_days: T.nilable(Integer), trial_settings: T.nilable(::Stripe::Checkout::SessionCreateParams::SubscriptionData::TrialSettings)).void } def initialize( application_fee_percent: nil, billing_cycle_anchor: nil, + billing_cycle_anchor_config: nil, billing_mode: nil, default_tax_rates: nil, description: nil, @@ -3751,8 +3824,6 @@ module Stripe # You can configure Checkout to collect your customers' business names, individual names, or both. Each name field can be either required or optional. # # If a [Customer](https://docs.stripe.com/api/customers) is created or provided, the names can be saved to the Customer object as well. - # - # You can't set this parameter if `ui_mode` is `custom`. sig { returns(T.nilable(::Stripe::Checkout::SessionCreateParams::NameCollection)) } def name_collection; end sig { diff --git a/rbi/stripe/params/confirmation_token_create_params.rbi b/rbi/stripe/params/confirmation_token_create_params.rbi index 6090c8fd9..c6129cfd0 100644 --- a/rbi/stripe/params/confirmation_token_create_params.rbi +++ b/rbi/stripe/params/confirmation_token_create_params.rbi @@ -839,7 +839,7 @@ module Stripe params(_sofort: T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Sofort)).returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Sofort)) } def sofort=(_sofort); end - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. sig { returns(T.nilable(::Stripe::ConfirmationTokenCreateParams::PaymentMethodData::Sunbit)) } def sunbit; end sig { diff --git a/rbi/stripe/params/credit_note_create_params.rbi b/rbi/stripe/params/credit_note_create_params.rbi index dd65225d4..4ce277fba 100644 --- a/rbi/stripe/params/credit_note_create_params.rbi +++ b/rbi/stripe/params/credit_note_create_params.rbi @@ -51,7 +51,7 @@ module Stripe def quantity; end sig { params(_quantity: T.nilable(Integer)).returns(T.nilable(Integer)) } def quantity=(_quantity); end - # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. sig { returns(T.nilable(T.any(String, T::Array[::Stripe::CreditNoteCreateParams::Line::TaxAmount]))) } diff --git a/rbi/stripe/params/credit_note_list_preview_line_items_params.rbi b/rbi/stripe/params/credit_note_list_preview_line_items_params.rbi index 1d51dca87..eb8fbc683 100644 --- a/rbi/stripe/params/credit_note_list_preview_line_items_params.rbi +++ b/rbi/stripe/params/credit_note_list_preview_line_items_params.rbi @@ -51,7 +51,7 @@ module Stripe def quantity; end sig { params(_quantity: T.nilable(Integer)).returns(T.nilable(Integer)) } def quantity=(_quantity); end - # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. sig { returns(T.nilable(T.any(String, T::Array[::Stripe::CreditNoteListPreviewLineItemsParams::Line::TaxAmount]))) } diff --git a/rbi/stripe/params/credit_note_preview_lines_list_params.rbi b/rbi/stripe/params/credit_note_preview_lines_list_params.rbi index 6b9a1629c..0d3c6720f 100644 --- a/rbi/stripe/params/credit_note_preview_lines_list_params.rbi +++ b/rbi/stripe/params/credit_note_preview_lines_list_params.rbi @@ -51,7 +51,7 @@ module Stripe def quantity; end sig { params(_quantity: T.nilable(Integer)).returns(T.nilable(Integer)) } def quantity=(_quantity); end - # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. sig { returns(T.nilable(T.any(String, T::Array[::Stripe::CreditNotePreviewLinesListParams::Line::TaxAmount]))) } diff --git a/rbi/stripe/params/credit_note_preview_params.rbi b/rbi/stripe/params/credit_note_preview_params.rbi index 5c064a00e..3bf73a965 100644 --- a/rbi/stripe/params/credit_note_preview_params.rbi +++ b/rbi/stripe/params/credit_note_preview_params.rbi @@ -51,7 +51,7 @@ module Stripe def quantity; end sig { params(_quantity: T.nilable(Integer)).returns(T.nilable(Integer)) } def quantity=(_quantity); end - # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. + # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`. sig { returns(T.nilable(T.any(String, T::Array[::Stripe::CreditNotePreviewParams::Line::TaxAmount]))) } diff --git a/rbi/stripe/params/dispute_update_params.rbi b/rbi/stripe/params/dispute_update_params.rbi index 2c91d3db7..bab365a2e 100644 --- a/rbi/stripe/params/dispute_update_params.rbi +++ b/rbi/stripe/params/dispute_update_params.rbi @@ -6,6 +6,15 @@ module Stripe class DisputeUpdateParams < ::Stripe::RequestParams class Evidence < ::Stripe::RequestParams class EnhancedEvidence < ::Stripe::RequestParams + class MastercardCompliance < ::Stripe::RequestParams + # A field acknowledging the fee incurred when countering a Mastercard compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. + sig { returns(T.nilable(T::Boolean)) } + def fee_acknowledged; end + sig { params(_fee_acknowledged: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def fee_acknowledged=(_fee_acknowledged); end + sig { params(fee_acknowledged: T.nilable(T::Boolean)).void } + def initialize(fee_acknowledged: nil); end + end class VisaCompellingEvidence3 < ::Stripe::RequestParams class DisputedTransaction < ::Stripe::RequestParams class ShippingAddress < ::Stripe::RequestParams @@ -247,6 +256,15 @@ module Stripe sig { params(fee_acknowledged: T.nilable(T::Boolean)).void } def initialize(fee_acknowledged: nil); end end + # Evidence provided for Mastercard compliance evidence submission. + sig { + returns(T.nilable(::Stripe::DisputeUpdateParams::Evidence::EnhancedEvidence::MastercardCompliance)) + } + def mastercard_compliance; end + sig { + params(_mastercard_compliance: T.nilable(::Stripe::DisputeUpdateParams::Evidence::EnhancedEvidence::MastercardCompliance)).returns(T.nilable(::Stripe::DisputeUpdateParams::Evidence::EnhancedEvidence::MastercardCompliance)) + } + def mastercard_compliance=(_mastercard_compliance); end # Evidence provided for Visa Compelling Evidence 3.0 evidence submission. sig { returns(T.nilable(::Stripe::DisputeUpdateParams::Evidence::EnhancedEvidence::VisaCompellingEvidence3)) @@ -266,9 +284,13 @@ module Stripe } def visa_compliance=(_visa_compliance); end sig { - params(visa_compelling_evidence_3: T.nilable(::Stripe::DisputeUpdateParams::Evidence::EnhancedEvidence::VisaCompellingEvidence3), visa_compliance: T.nilable(::Stripe::DisputeUpdateParams::Evidence::EnhancedEvidence::VisaCompliance)).void + params(mastercard_compliance: T.nilable(::Stripe::DisputeUpdateParams::Evidence::EnhancedEvidence::MastercardCompliance), visa_compelling_evidence_3: T.nilable(::Stripe::DisputeUpdateParams::Evidence::EnhancedEvidence::VisaCompellingEvidence3), visa_compliance: T.nilable(::Stripe::DisputeUpdateParams::Evidence::EnhancedEvidence::VisaCompliance)).void } - def initialize(visa_compelling_evidence_3: nil, visa_compliance: nil); end + def initialize( + mastercard_compliance: nil, + visa_compelling_evidence_3: nil, + visa_compliance: nil + ); end end # Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity. Has a maximum character count of 20,000. sig { returns(T.nilable(String)) } diff --git a/rbi/stripe/params/invoice_add_lines_params.rbi b/rbi/stripe/params/invoice_add_lines_params.rbi index 98b38dee0..b012bb47c 100644 --- a/rbi/stripe/params/invoice_add_lines_params.rbi +++ b/rbi/stripe/params/invoice_add_lines_params.rbi @@ -305,7 +305,7 @@ module Stripe def quantity_decimal; end sig { params(_quantity_decimal: T.nilable(BigDecimal)).returns(T.nilable(BigDecimal)) } def quantity_decimal=(_quantity_decimal); end - # A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. + # A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. sig { returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceAddLinesParams::Line::TaxAmount]))) } diff --git a/rbi/stripe/params/invoice_create_preview_params.rbi b/rbi/stripe/params/invoice_create_preview_params.rbi index afc44b046..087b48548 100644 --- a/rbi/stripe/params/invoice_create_preview_params.rbi +++ b/rbi/stripe/params/invoice_create_preview_params.rbi @@ -1492,7 +1492,7 @@ module Stripe params(_discounts: T.nilable(T.any(String, T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::Item::Discount]))).returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::Item::Discount]))) } def discounts=(_discounts); end - # Subscription item to update. + # Subscription item to update. If you omit `id`, the API adds a new subscription item rather than updating the existing one. See [Changing a subscription's price](https://docs.stripe.com/billing/subscriptions/change-price#changing). sig { returns(T.nilable(String)) } def id; end sig { params(_id: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/invoice_line_item_update_params.rbi b/rbi/stripe/params/invoice_line_item_update_params.rbi index 5eebcf49b..8acba3a27 100644 --- a/rbi/stripe/params/invoice_line_item_update_params.rbi +++ b/rbi/stripe/params/invoice_line_item_update_params.rbi @@ -304,7 +304,7 @@ module Stripe def quantity_decimal; end sig { params(_quantity_decimal: T.nilable(BigDecimal)).returns(T.nilable(BigDecimal)) } def quantity_decimal=(_quantity_decimal); end - # A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. + # A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. sig { returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceLineItemUpdateParams::TaxAmount]))) } diff --git a/rbi/stripe/params/invoice_update_lines_params.rbi b/rbi/stripe/params/invoice_update_lines_params.rbi index fc3b50190..1bd1ca6c5 100644 --- a/rbi/stripe/params/invoice_update_lines_params.rbi +++ b/rbi/stripe/params/invoice_update_lines_params.rbi @@ -305,7 +305,7 @@ module Stripe def quantity_decimal; end sig { params(_quantity_decimal: T.nilable(BigDecimal)).returns(T.nilable(BigDecimal)) } def quantity_decimal=(_quantity_decimal); end - # A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. + # A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts. sig { returns(T.nilable(T.any(String, T::Array[::Stripe::InvoiceUpdateLinesParams::Line::TaxAmount]))) } diff --git a/rbi/stripe/params/payment_intent_confirm_params.rbi b/rbi/stripe/params/payment_intent_confirm_params.rbi index d9b0764b7..84e5ed021 100644 --- a/rbi/stripe/params/payment_intent_confirm_params.rbi +++ b/rbi/stripe/params/payment_intent_confirm_params.rbi @@ -1207,7 +1207,7 @@ module Stripe params(_sofort: T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Sofort)).returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Sofort)) } def sofort=(_sofort); end - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. sig { returns(T.nilable(::Stripe::PaymentIntentConfirmParams::PaymentMethodData::Sunbit)) } def sunbit; end sig { @@ -3103,8 +3103,23 @@ module Stripe 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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(T.any(String, String))) } + def setup_future_usage; end + sig { + params(_setup_future_usage: T.nilable(T.any(String, String))).returns(T.nilable(T.any(String, String))) + } + def setup_future_usage=(_setup_future_usage); end + sig { + params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void + } + def initialize(capture_method: nil, setup_future_usage: nil); end end class Scalapay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. @@ -3191,6 +3206,32 @@ module Stripe } def initialize(preferred_language: nil, setup_future_usage: nil); end end + class Sunbit < ::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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + sig { params(_setup_future_usage: T.nilable(String)).returns(T.nilable(String)) } + def setup_future_usage=(_setup_future_usage); end + sig { + params(capture_method: T.nilable(String), setup_future_usage: T.nilable(String)).void + } + def initialize(capture_method: nil, setup_future_usage: nil); end + end class Swish < ::Stripe::RequestParams # A reference for this payment to be displayed in the Swish app. sig { returns(T.nilable(String)) } @@ -3417,7 +3458,7 @@ module Stripe ); end end class WechatPay < ::Stripe::RequestParams - # The app ID registered with WeChat Pay. Only required when client is ios or android. + # The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. sig { returns(T.nilable(String)) } def app_id; end sig { params(_app_id: T.nilable(String)).returns(T.nilable(String)) } @@ -3903,6 +3944,15 @@ module Stripe params(_sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Sofort))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Sofort))) } def sofort=(_sofort); end + # If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Sunbit))) + } + def sunbit; end + sig { + params(_sunbit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Sunbit))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Sunbit))) + } + def sunbit=(_sunbit); end # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options. sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Swish))) @@ -3958,7 +4008,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)), 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 + 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)), sunbit: T.nilable(T.any(String, ::Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Sunbit)), 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, @@ -4010,6 +4060,7 @@ module Stripe scalapay: nil, sepa_debit: nil, sofort: nil, + sunbit: nil, swish: nil, twint: nil, upi: nil, diff --git a/rbi/stripe/params/payment_intent_create_params.rbi b/rbi/stripe/params/payment_intent_create_params.rbi index d17fc7452..d5a35ae5c 100644 --- a/rbi/stripe/params/payment_intent_create_params.rbi +++ b/rbi/stripe/params/payment_intent_create_params.rbi @@ -1211,7 +1211,7 @@ module Stripe params(_sofort: T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Sofort)).returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Sofort)) } def sofort=(_sofort); end - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. sig { returns(T.nilable(::Stripe::PaymentIntentCreateParams::PaymentMethodData::Sunbit)) } def sunbit; end sig { @@ -3107,8 +3107,23 @@ module Stripe 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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(T.any(String, String))) } + def setup_future_usage; end + sig { + params(_setup_future_usage: T.nilable(T.any(String, String))).returns(T.nilable(T.any(String, String))) + } + def setup_future_usage=(_setup_future_usage); end + sig { + params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void + } + def initialize(capture_method: nil, setup_future_usage: nil); end end class Scalapay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. @@ -3195,6 +3210,32 @@ module Stripe } def initialize(preferred_language: nil, setup_future_usage: nil); end end + class Sunbit < ::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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + sig { params(_setup_future_usage: T.nilable(String)).returns(T.nilable(String)) } + def setup_future_usage=(_setup_future_usage); end + sig { + params(capture_method: T.nilable(String), setup_future_usage: T.nilable(String)).void + } + def initialize(capture_method: nil, setup_future_usage: nil); end + end class Swish < ::Stripe::RequestParams # A reference for this payment to be displayed in the Swish app. sig { returns(T.nilable(String)) } @@ -3421,7 +3462,7 @@ module Stripe ); end end class WechatPay < ::Stripe::RequestParams - # The app ID registered with WeChat Pay. Only required when client is ios or android. + # The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. sig { returns(T.nilable(String)) } def app_id; end sig { params(_app_id: T.nilable(String)).returns(T.nilable(String)) } @@ -3907,6 +3948,15 @@ module Stripe params(_sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Sofort))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Sofort))) } def sofort=(_sofort); end + # If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Sunbit))) + } + def sunbit; end + sig { + params(_sunbit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Sunbit))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Sunbit))) + } + def sunbit=(_sunbit); end # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options. sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Swish))) @@ -3962,7 +4012,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)), 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 + 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)), sunbit: T.nilable(T.any(String, ::Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Sunbit)), 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, @@ -4014,6 +4064,7 @@ module Stripe scalapay: nil, sepa_debit: nil, sofort: nil, + sunbit: nil, swish: nil, twint: nil, upi: nil, diff --git a/rbi/stripe/params/payment_intent_search_params.rbi b/rbi/stripe/params/payment_intent_search_params.rbi index 805cd2d10..53d1d7043 100644 --- a/rbi/stripe/params/payment_intent_search_params.rbi +++ b/rbi/stripe/params/payment_intent_search_params.rbi @@ -19,7 +19,7 @@ module Stripe def page; end sig { params(_page: T.nilable(String)).returns(T.nilable(String)) } def page=(_page); end - # The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for payment intents](https://docs.stripe.com/search#query-fields-for-payment-intents). + # The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for payment intents](https://docs.stripe.com/search#query-fields-for-paymentintents). sig { returns(String) } def query; end sig { params(_query: String).returns(String) } diff --git a/rbi/stripe/params/payment_intent_update_params.rbi b/rbi/stripe/params/payment_intent_update_params.rbi index 465a9974b..dab60c2fd 100644 --- a/rbi/stripe/params/payment_intent_update_params.rbi +++ b/rbi/stripe/params/payment_intent_update_params.rbi @@ -1133,7 +1133,7 @@ module Stripe params(_sofort: T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Sofort)).returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Sofort)) } def sofort=(_sofort); end - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. sig { returns(T.nilable(::Stripe::PaymentIntentUpdateParams::PaymentMethodData::Sunbit)) } def sunbit; end sig { @@ -3029,8 +3029,23 @@ module Stripe 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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(T.any(String, String))) } + def setup_future_usage; end + sig { + params(_setup_future_usage: T.nilable(T.any(String, String))).returns(T.nilable(T.any(String, String))) + } + def setup_future_usage=(_setup_future_usage); end + sig { + params(capture_method: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String))).void + } + def initialize(capture_method: nil, setup_future_usage: nil); end end class Scalapay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. @@ -3117,6 +3132,32 @@ module Stripe } def initialize(preferred_language: nil, setup_future_usage: nil); end end + class Sunbit < ::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 + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + sig { params(_setup_future_usage: T.nilable(String)).returns(T.nilable(String)) } + def setup_future_usage=(_setup_future_usage); end + sig { + params(capture_method: T.nilable(String), setup_future_usage: T.nilable(String)).void + } + def initialize(capture_method: nil, setup_future_usage: nil); end + end class Swish < ::Stripe::RequestParams # A reference for this payment to be displayed in the Swish app. sig { returns(T.nilable(String)) } @@ -3343,7 +3384,7 @@ module Stripe ); end end class WechatPay < ::Stripe::RequestParams - # The app ID registered with WeChat Pay. Only required when client is ios or android. + # The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. sig { returns(T.nilable(String)) } def app_id; end sig { params(_app_id: T.nilable(String)).returns(T.nilable(String)) } @@ -3829,6 +3870,15 @@ module Stripe params(_sofort: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Sofort))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Sofort))) } def sofort=(_sofort); end + # If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options. + sig { + returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Sunbit))) + } + def sunbit; end + sig { + params(_sunbit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Sunbit))).returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Sunbit))) + } + def sunbit=(_sunbit); end # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options. sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Swish))) @@ -3884,7 +3934,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)), 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 + 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)), sunbit: T.nilable(T.any(String, ::Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Sunbit)), 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, @@ -3936,6 +3986,7 @@ module Stripe scalapay: nil, sepa_debit: nil, sofort: nil, + sunbit: nil, swish: nil, twint: nil, upi: nil, diff --git a/rbi/stripe/params/payment_link_create_params.rbi b/rbi/stripe/params/payment_link_create_params.rbi index 8b349a00b..1310b13cd 100644 --- a/rbi/stripe/params/payment_link_create_params.rbi +++ b/rbi/stripe/params/payment_link_create_params.rbi @@ -1181,7 +1181,7 @@ 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 + # Payment-method-specific configuration. sig { returns(T.nilable(::Stripe::PaymentLinkCreateParams::PaymentMethodOptions)) } def payment_method_options; end sig { diff --git a/rbi/stripe/params/payment_method_create_params.rbi b/rbi/stripe/params/payment_method_create_params.rbi index 0e408d907..430dafc41 100644 --- a/rbi/stripe/params/payment_method_create_params.rbi +++ b/rbi/stripe/params/payment_method_create_params.rbi @@ -872,7 +872,7 @@ module Stripe params(_sofort: T.nilable(::Stripe::PaymentMethodCreateParams::Sofort)).returns(T.nilable(::Stripe::PaymentMethodCreateParams::Sofort)) } def sofort=(_sofort); end - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. sig { returns(T.nilable(::Stripe::PaymentMethodCreateParams::Sunbit)) } def sunbit; end sig { diff --git a/rbi/stripe/params/payment_record_report_refund_params.rbi b/rbi/stripe/params/payment_record_report_refund_params.rbi index 2971670be..3bee47012 100644 --- a/rbi/stripe/params/payment_record_report_refund_params.rbi +++ b/rbi/stripe/params/payment_record_report_refund_params.rbi @@ -93,14 +93,14 @@ module Stripe } def processor_details=(_processor_details); end # Information about the payment attempt refund. - sig { returns(::Stripe::PaymentRecordReportRefundParams::Refunded) } + sig { returns(T.nilable(::Stripe::PaymentRecordReportRefundParams::Refunded)) } def refunded; end sig { - params(_refunded: ::Stripe::PaymentRecordReportRefundParams::Refunded).returns(::Stripe::PaymentRecordReportRefundParams::Refunded) + params(_refunded: T.nilable(::Stripe::PaymentRecordReportRefundParams::Refunded)).returns(T.nilable(::Stripe::PaymentRecordReportRefundParams::Refunded)) } def refunded=(_refunded); end sig { - params(amount: T.nilable(::Stripe::PaymentRecordReportRefundParams::Amount), expand: T.nilable(T::Array[String]), initiated_at: T.nilable(Integer), metadata: T.nilable(T.any(String, T::Hash[String, String])), outcome: String, processor_details: ::Stripe::PaymentRecordReportRefundParams::ProcessorDetails, refunded: ::Stripe::PaymentRecordReportRefundParams::Refunded).void + params(amount: T.nilable(::Stripe::PaymentRecordReportRefundParams::Amount), expand: T.nilable(T::Array[String]), initiated_at: T.nilable(Integer), metadata: T.nilable(T.any(String, T::Hash[String, String])), outcome: String, processor_details: ::Stripe::PaymentRecordReportRefundParams::ProcessorDetails, refunded: T.nilable(::Stripe::PaymentRecordReportRefundParams::Refunded)).void } def initialize( amount: nil, diff --git a/rbi/stripe/params/setup_intent_confirm_params.rbi b/rbi/stripe/params/setup_intent_confirm_params.rbi index 5fde75ed8..9e6262892 100644 --- a/rbi/stripe/params/setup_intent_confirm_params.rbi +++ b/rbi/stripe/params/setup_intent_confirm_params.rbi @@ -863,7 +863,7 @@ module Stripe params(_sofort: T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Sofort)).returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Sofort)) } def sofort=(_sofort); end - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. sig { returns(T.nilable(::Stripe::SetupIntentConfirmParams::PaymentMethodData::Sunbit)) } def sunbit; end sig { diff --git a/rbi/stripe/params/setup_intent_create_params.rbi b/rbi/stripe/params/setup_intent_create_params.rbi index 0fa0942f6..fe9da46e9 100644 --- a/rbi/stripe/params/setup_intent_create_params.rbi +++ b/rbi/stripe/params/setup_intent_create_params.rbi @@ -875,7 +875,7 @@ module Stripe params(_sofort: T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Sofort)).returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Sofort)) } def sofort=(_sofort); end - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. sig { returns(T.nilable(::Stripe::SetupIntentCreateParams::PaymentMethodData::Sunbit)) } def sunbit; end sig { diff --git a/rbi/stripe/params/setup_intent_update_params.rbi b/rbi/stripe/params/setup_intent_update_params.rbi index 8e63c2673..66d7dfbbe 100644 --- a/rbi/stripe/params/setup_intent_update_params.rbi +++ b/rbi/stripe/params/setup_intent_update_params.rbi @@ -797,7 +797,7 @@ module Stripe params(_sofort: T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Sofort)).returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Sofort)) } def sofort=(_sofort); end - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. sig { returns(T.nilable(::Stripe::SetupIntentUpdateParams::PaymentMethodData::Sunbit)) } def sunbit; end sig { diff --git a/rbi/stripe/params/subscription_create_params.rbi b/rbi/stripe/params/subscription_create_params.rbi index 2434ee67c..16ca76f79 100644 --- a/rbi/stripe/params/subscription_create_params.rbi +++ b/rbi/stripe/params/subscription_create_params.rbi @@ -395,6 +395,20 @@ module Stripe def initialize(coupon: nil, discount: nil, promotion_code: nil); end end class InvoiceSettings < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams + # The name of the custom field. This may be up to 40 characters. + sig { returns(String) } + def name; end + sig { params(_name: String).returns(String) } + def name=(_name); end + # The value of the custom field. This may be up to 140 characters. + sig { returns(String) } + def value; end + sig { params(_value: String).returns(String) } + def value=(_value); end + sig { params(name: String, value: String).void } + def initialize(name: nil, value: nil); end + end class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } @@ -416,6 +430,25 @@ module Stripe params(_account_tax_ids: T.nilable(T.any(String, T::Array[String]))).returns(T.nilable(T.any(String, T::Array[String]))) } def account_tax_ids=(_account_tax_ids); end + # A list of up to 4 custom fields to be displayed on the invoice. + sig { + returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionCreateParams::InvoiceSettings::CustomField]))) + } + def custom_fields; end + sig { + params(_custom_fields: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionCreateParams::InvoiceSettings::CustomField]))).returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionCreateParams::InvoiceSettings::CustomField]))) + } + def custom_fields=(_custom_fields); end + # An arbitrary string attached to the object. 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 + # Footer to be displayed on the invoice. + sig { returns(T.nilable(String)) } + def footer; end + sig { params(_footer: T.nilable(String)).returns(T.nilable(String)) } + def footer=(_footer); end # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. sig { returns(T.nilable(::Stripe::SubscriptionCreateParams::InvoiceSettings::Issuer)) } def issuer; end @@ -424,9 +457,15 @@ module Stripe } def issuer=(_issuer); end sig { - params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), issuer: T.nilable(::Stripe::SubscriptionCreateParams::InvoiceSettings::Issuer)).void + params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionCreateParams::InvoiceSettings::CustomField])), description: T.nilable(String), footer: T.nilable(String), issuer: T.nilable(::Stripe::SubscriptionCreateParams::InvoiceSettings::Issuer)).void } - def initialize(account_tax_ids: nil, issuer: nil); end + def initialize( + account_tax_ids: nil, + custom_fields: nil, + description: nil, + footer: nil, + issuer: nil + ); end end class Item < ::Stripe::RequestParams class BillingThresholds < ::Stripe::RequestParams diff --git a/rbi/stripe/params/subscription_update_params.rbi b/rbi/stripe/params/subscription_update_params.rbi index e2a57ef86..6233cd4f2 100644 --- a/rbi/stripe/params/subscription_update_params.rbi +++ b/rbi/stripe/params/subscription_update_params.rbi @@ -353,6 +353,20 @@ module Stripe def initialize(coupon: nil, discount: nil, promotion_code: nil); end end class InvoiceSettings < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams + # The name of the custom field. This may be up to 40 characters. + sig { returns(String) } + def name; end + sig { params(_name: String).returns(String) } + def name=(_name); end + # The value of the custom field. This may be up to 140 characters. + sig { returns(String) } + def value; end + sig { params(_value: String).returns(String) } + def value=(_value); end + sig { params(name: String, value: String).void } + def initialize(name: nil, value: nil); end + end class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } @@ -374,6 +388,25 @@ module Stripe params(_account_tax_ids: T.nilable(T.any(String, T::Array[String]))).returns(T.nilable(T.any(String, T::Array[String]))) } def account_tax_ids=(_account_tax_ids); end + # A list of up to 4 custom fields to be displayed on the invoice. + sig { + returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::InvoiceSettings::CustomField]))) + } + def custom_fields; end + sig { + params(_custom_fields: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::InvoiceSettings::CustomField]))).returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::InvoiceSettings::CustomField]))) + } + def custom_fields=(_custom_fields); end + # An arbitrary string attached to the object. 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 + # Footer to be displayed on the invoice. + sig { returns(T.nilable(String)) } + def footer; end + sig { params(_footer: T.nilable(String)).returns(T.nilable(String)) } + def footer=(_footer); end # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. sig { returns(T.nilable(::Stripe::SubscriptionUpdateParams::InvoiceSettings::Issuer)) } def issuer; end @@ -382,9 +415,15 @@ module Stripe } def issuer=(_issuer); end sig { - params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), issuer: T.nilable(::Stripe::SubscriptionUpdateParams::InvoiceSettings::Issuer)).void + params(account_tax_ids: T.nilable(T.any(String, T::Array[String])), custom_fields: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::InvoiceSettings::CustomField])), description: T.nilable(String), footer: T.nilable(String), issuer: T.nilable(::Stripe::SubscriptionUpdateParams::InvoiceSettings::Issuer)).void } - def initialize(account_tax_ids: nil, issuer: nil); end + def initialize( + account_tax_ids: nil, + custom_fields: nil, + description: nil, + footer: nil, + issuer: nil + ); end end class Item < ::Stripe::RequestParams class BillingThresholds < ::Stripe::RequestParams @@ -507,7 +546,7 @@ module Stripe params(_discounts: T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::Item::Discount]))).returns(T.nilable(T.any(String, T::Array[::Stripe::SubscriptionUpdateParams::Item::Discount]))) } def discounts=(_discounts); end - # Subscription item to update. + # Subscription item to update. If you omit `id`, the API adds a new subscription item rather than updating the existing one. See [Changing a subscription's price](https://docs.stripe.com/billing/subscriptions/change-price#changing). sig { returns(T.nilable(String)) } def id; end sig { params(_id: T.nilable(String)).returns(T.nilable(String)) } 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 377f1e738..d127cb868 100644 --- a/rbi/stripe/params/test_helpers/confirmation_token_create_params.rbi +++ b/rbi/stripe/params/test_helpers/confirmation_token_create_params.rbi @@ -888,7 +888,7 @@ module Stripe params(_sofort: T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Sofort)).returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Sofort)) } def sofort=(_sofort); end - # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method. + # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method. sig { returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::Sunbit)) } diff --git a/rbi/stripe/params/topup_create_params.rbi b/rbi/stripe/params/topup_create_params.rbi index b47e014e7..2593839b8 100644 --- a/rbi/stripe/params/topup_create_params.rbi +++ b/rbi/stripe/params/topup_create_params.rbi @@ -4,6 +4,28 @@ # typed: true module Stripe class TopupCreateParams < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + # Attribute for param field network + sig { returns(String) } + def network; end + sig { params(_network: String).returns(String) } + def network=(_network); end + sig { params(network: String).void } + def initialize(network: nil); end + end + # Attribute for param field us_bank_account + sig { returns(T.nilable(::Stripe::TopupCreateParams::PaymentMethodOptions::UsBankAccount)) } + def us_bank_account; end + sig { + params(_us_bank_account: T.nilable(::Stripe::TopupCreateParams::PaymentMethodOptions::UsBankAccount)).returns(T.nilable(::Stripe::TopupCreateParams::PaymentMethodOptions::UsBankAccount)) + } + def us_bank_account=(_us_bank_account); end + sig { + params(us_bank_account: T.nilable(::Stripe::TopupCreateParams::PaymentMethodOptions::UsBankAccount)).void + } + def initialize(us_bank_account: nil); end + end # A positive integer representing how much to transfer. sig { returns(Integer) } def amount; end @@ -31,6 +53,18 @@ module Stripe 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 ID of a PaymentMethod representing the payment method to be used for the top-up. A PaymentMethod of type `us_bank_account` can be used. + sig { returns(T.nilable(String)) } + def payment_method; end + sig { params(_payment_method: T.nilable(String)).returns(T.nilable(String)) } + def payment_method=(_payment_method); end + # Payment method-specific configuration for this top-up. + sig { returns(T.nilable(::Stripe::TopupCreateParams::PaymentMethodOptions)) } + def payment_method_options; end + sig { + params(_payment_method_options: T.nilable(::Stripe::TopupCreateParams::PaymentMethodOptions)).returns(T.nilable(::Stripe::TopupCreateParams::PaymentMethodOptions)) + } + def payment_method_options=(_payment_method_options); end # The ID of a source to transfer funds from. For most users, this should be left unspecified which will use the bank account that was set up in the dashboard for the specified currency. In test mode, this can be a test bank token (see [Testing Top-ups](https://docs.stripe.com/connect/testing#testing-top-ups)). sig { returns(T.nilable(String)) } def source; end @@ -47,7 +81,7 @@ module Stripe sig { params(_transfer_group: T.nilable(String)).returns(T.nilable(String)) } def transfer_group=(_transfer_group); end sig { - params(amount: Integer, currency: String, description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), source: T.nilable(String), statement_descriptor: T.nilable(String), transfer_group: T.nilable(String)).void + params(amount: Integer, currency: String, description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_method: T.nilable(String), payment_method_options: T.nilable(::Stripe::TopupCreateParams::PaymentMethodOptions), source: T.nilable(String), statement_descriptor: T.nilable(String), transfer_group: T.nilable(String)).void } def initialize( amount: nil, @@ -55,6 +89,8 @@ module Stripe description: nil, expand: nil, metadata: nil, + payment_method: nil, + payment_method_options: nil, source: nil, statement_descriptor: nil, transfer_group: nil diff --git a/rbi/stripe/params/v2/core/account_create_params.rbi b/rbi/stripe/params/v2/core/account_create_params.rbi index f65dcec34..7c4571e0a 100644 --- a/rbi/stripe/params/v2/core/account_create_params.rbi +++ b/rbi/stripe/params/v2/core/account_create_params.rbi @@ -653,6 +653,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end + class SunbitPayments < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end class SwishPayments < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. sig { returns(T::Boolean) } @@ -1049,6 +1058,15 @@ module Stripe params(_sepa_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SepaDebitPayments)).returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SepaDebitPayments)) } def sepa_debit_payments=(_sepa_debit_payments); end + # Allow the merchant to process Sunbit payments. + sig { + returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SunbitPayments)) + } + def sunbit_payments; end + sig { + params(_sunbit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SunbitPayments)).returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SunbitPayments)) + } + def sunbit_payments=(_sunbit_payments); end # Allow the merchant to process Swish payments. sig { returns(T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SwishPayments)) @@ -1086,7 +1104,7 @@ module Stripe } def zip_payments=(_zip_payments); end sig { - params(ach_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AchDebitPayments), acss_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AcssDebitPayments), affirm_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AffirmPayments), afterpay_clearpay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AfterpayClearpayPayments), alma_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AlmaPayments), amazon_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AmazonPayPayments), au_becs_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AuBecsDebitPayments), bacs_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::BacsDebitPayments), bancontact_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::BancontactPayments), blik_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::BlikPayments), boleto_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::BoletoPayments), card_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::CardPayments), cartes_bancaires_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::CartesBancairesPayments), cashapp_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::CashappPayments), eps_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::EpsPayments), fpx_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::FpxPayments), gb_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::GbBankTransferPayments), grabpay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::GrabpayPayments), ideal_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::IdealPayments), jcb_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::JcbPayments), jp_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::JpBankTransferPayments), kakao_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::KakaoPayPayments), klarna_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::KlarnaPayments), konbini_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::KonbiniPayments), kr_card_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::KrCardPayments), link_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::LinkPayments), mobilepay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::MobilepayPayments), multibanco_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::MultibancoPayments), mx_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::MxBankTransferPayments), naver_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::NaverPayPayments), oxxo_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::OxxoPayments), p24_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::P24Payments), pay_by_bank_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::PayByBankPayments), payco_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::PaycoPayments), paynow_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::PaynowPayments), promptpay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::PromptpayPayments), revolut_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::RevolutPayPayments), samsung_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SamsungPayPayments), sepa_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SepaBankTransferPayments), sepa_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SepaDebitPayments), swish_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SwishPayments), twint_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::TwintPayments), us_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::UsBankTransferPayments), zip_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::ZipPayments)).void + params(ach_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AchDebitPayments), acss_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AcssDebitPayments), affirm_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AffirmPayments), afterpay_clearpay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AfterpayClearpayPayments), alma_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AlmaPayments), amazon_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AmazonPayPayments), au_becs_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::AuBecsDebitPayments), bacs_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::BacsDebitPayments), bancontact_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::BancontactPayments), blik_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::BlikPayments), boleto_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::BoletoPayments), card_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::CardPayments), cartes_bancaires_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::CartesBancairesPayments), cashapp_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::CashappPayments), eps_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::EpsPayments), fpx_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::FpxPayments), gb_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::GbBankTransferPayments), grabpay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::GrabpayPayments), ideal_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::IdealPayments), jcb_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::JcbPayments), jp_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::JpBankTransferPayments), kakao_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::KakaoPayPayments), klarna_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::KlarnaPayments), konbini_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::KonbiniPayments), kr_card_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::KrCardPayments), link_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::LinkPayments), mobilepay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::MobilepayPayments), multibanco_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::MultibancoPayments), mx_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::MxBankTransferPayments), naver_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::NaverPayPayments), oxxo_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::OxxoPayments), p24_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::P24Payments), pay_by_bank_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::PayByBankPayments), payco_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::PaycoPayments), paynow_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::PaynowPayments), promptpay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::PromptpayPayments), revolut_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::RevolutPayPayments), samsung_pay_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SamsungPayPayments), sepa_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SepaBankTransferPayments), sepa_debit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SepaDebitPayments), sunbit_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SunbitPayments), swish_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::SwishPayments), twint_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::TwintPayments), us_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::UsBankTransferPayments), zip_payments: T.nilable(::Stripe::V2::Core::AccountCreateParams::Configuration::Merchant::Capabilities::ZipPayments)).void } def initialize( ach_debit_payments: nil, @@ -1129,6 +1147,7 @@ module Stripe samsung_pay_payments: nil, sepa_bank_transfer_payments: nil, sepa_debit_payments: nil, + sunbit_payments: nil, swish_payments: nil, twint_payments: nil, us_bank_transfer_payments: nil, diff --git a/rbi/stripe/params/v2/core/account_update_params.rbi b/rbi/stripe/params/v2/core/account_update_params.rbi index 93c74c852..16bc0cab5 100644 --- a/rbi/stripe/params/v2/core/account_update_params.rbi +++ b/rbi/stripe/params/v2/core/account_update_params.rbi @@ -671,6 +671,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class SunbitPayments < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end class SwishPayments < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. sig { returns(T.nilable(T::Boolean)) } @@ -1067,6 +1076,15 @@ module Stripe params(_sepa_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SepaDebitPayments)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SepaDebitPayments)) } def sepa_debit_payments=(_sepa_debit_payments); end + # Allow the merchant to process Sunbit payments. + sig { + returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SunbitPayments)) + } + def sunbit_payments; end + sig { + params(_sunbit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SunbitPayments)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SunbitPayments)) + } + def sunbit_payments=(_sunbit_payments); end # Allow the merchant to process Swish payments. sig { returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SwishPayments)) @@ -1104,7 +1122,7 @@ module Stripe } def zip_payments=(_zip_payments); end sig { - params(ach_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AchDebitPayments), acss_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AcssDebitPayments), affirm_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AffirmPayments), afterpay_clearpay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AfterpayClearpayPayments), alma_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AlmaPayments), amazon_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AmazonPayPayments), au_becs_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AuBecsDebitPayments), bacs_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::BacsDebitPayments), bancontact_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::BancontactPayments), blik_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::BlikPayments), boleto_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::BoletoPayments), card_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::CardPayments), cartes_bancaires_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::CartesBancairesPayments), cashapp_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::CashappPayments), eps_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::EpsPayments), fpx_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::FpxPayments), gb_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::GbBankTransferPayments), grabpay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::GrabpayPayments), ideal_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::IdealPayments), jcb_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::JcbPayments), jp_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::JpBankTransferPayments), kakao_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::KakaoPayPayments), klarna_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::KlarnaPayments), konbini_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::KonbiniPayments), kr_card_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::KrCardPayments), link_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::LinkPayments), mobilepay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::MobilepayPayments), multibanco_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::MultibancoPayments), mx_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::MxBankTransferPayments), naver_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::NaverPayPayments), oxxo_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::OxxoPayments), p24_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::P24Payments), pay_by_bank_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::PayByBankPayments), payco_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::PaycoPayments), paynow_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::PaynowPayments), promptpay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::PromptpayPayments), revolut_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::RevolutPayPayments), samsung_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SamsungPayPayments), sepa_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SepaBankTransferPayments), sepa_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SepaDebitPayments), swish_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SwishPayments), twint_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::TwintPayments), us_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::UsBankTransferPayments), zip_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::ZipPayments)).void + params(ach_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AchDebitPayments), acss_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AcssDebitPayments), affirm_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AffirmPayments), afterpay_clearpay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AfterpayClearpayPayments), alma_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AlmaPayments), amazon_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AmazonPayPayments), au_becs_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::AuBecsDebitPayments), bacs_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::BacsDebitPayments), bancontact_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::BancontactPayments), blik_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::BlikPayments), boleto_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::BoletoPayments), card_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::CardPayments), cartes_bancaires_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::CartesBancairesPayments), cashapp_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::CashappPayments), eps_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::EpsPayments), fpx_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::FpxPayments), gb_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::GbBankTransferPayments), grabpay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::GrabpayPayments), ideal_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::IdealPayments), jcb_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::JcbPayments), jp_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::JpBankTransferPayments), kakao_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::KakaoPayPayments), klarna_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::KlarnaPayments), konbini_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::KonbiniPayments), kr_card_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::KrCardPayments), link_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::LinkPayments), mobilepay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::MobilepayPayments), multibanco_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::MultibancoPayments), mx_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::MxBankTransferPayments), naver_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::NaverPayPayments), oxxo_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::OxxoPayments), p24_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::P24Payments), pay_by_bank_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::PayByBankPayments), payco_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::PaycoPayments), paynow_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::PaynowPayments), promptpay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::PromptpayPayments), revolut_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::RevolutPayPayments), samsung_pay_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SamsungPayPayments), sepa_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SepaBankTransferPayments), sepa_debit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SepaDebitPayments), sunbit_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SunbitPayments), swish_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::SwishPayments), twint_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::TwintPayments), us_bank_transfer_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::UsBankTransferPayments), zip_payments: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Configuration::Merchant::Capabilities::ZipPayments)).void } def initialize( ach_debit_payments: nil, @@ -1147,6 +1165,7 @@ module Stripe samsung_pay_payments: nil, sepa_bank_transfer_payments: nil, sepa_debit_payments: nil, + sunbit_payments: nil, swish_payments: nil, twint_payments: nil, us_bank_transfer_payments: nil, @@ -1759,7 +1778,7 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end - class CryptoStorer < ::Stripe::RequestParams + class CryptoMoneyManager < ::Stripe::RequestParams # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. sig { returns(T.nilable(String)) } def date; end @@ -1780,7 +1799,7 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end - class Storer < ::Stripe::RequestParams + class MoneyManager < ::Stripe::RequestParams # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. sig { returns(T.nilable(String)) } def date; end @@ -1810,28 +1829,28 @@ module Stripe params(_account: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Account)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Account)) } def account=(_account); end - # Details on the Account's acceptance of Crypto-storer-specific terms of service. + # Details on the Account's acceptance of Crypto-specific terms of service. sig { - returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoMoneyManager)) } - def crypto_storer; end + def crypto_money_manager; end sig { - params(_crypto_storer: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + params(_crypto_money_manager: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoMoneyManager)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoMoneyManager)) } - def crypto_storer=(_crypto_storer); end + def crypto_money_manager=(_crypto_money_manager); end # Details on the Account's acceptance of Treasury-specific terms of service. sig { - returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)) + returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::MoneyManager)) } - def storer; end + def money_manager; end sig { - params(_storer: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)) + params(_money_manager: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::MoneyManager)).returns(T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::MoneyManager)) } - def storer=(_storer); end + def money_manager=(_money_manager); end sig { - params(account: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Account), crypto_storer: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer), storer: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)).void + params(account: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Account), crypto_money_manager: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoMoneyManager), money_manager: T.nilable(::Stripe::V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::MoneyManager)).void } - def initialize(account: nil, crypto_storer: nil, storer: nil); end + def initialize(account: nil, crypto_money_manager: nil, money_manager: nil); end end # This hash is used to attest that the directors information provided to Stripe is both current and correct. sig { diff --git a/rbi/stripe/resources/balance_transaction.rbi b/rbi/stripe/resources/balance_transaction.rbi index ccad18351..7f5d4f4e3 100644 --- a/rbi/stripe/resources/balance_transaction.rbi +++ b/rbi/stripe/resources/balance_transaction.rbi @@ -78,12 +78,12 @@ module Stripe # The transaction's net funds status in the Stripe balance, which are either `available` or `pending`. sig { returns(String) } def status; end - # Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead. + # Transaction type: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead. sig { returns(String) } def type; end - # Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first. + # Returns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first. # - # Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. + # The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history. sig { params(params: T.any(::Stripe::BalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } diff --git a/rbi/stripe/resources/charge.rbi b/rbi/stripe/resources/charge.rbi index 7828488cf..ad95519fd 100644 --- a/rbi/stripe/resources/charge.rbi +++ b/rbi/stripe/resources/charge.rbi @@ -472,6 +472,9 @@ module Stripe end end class Bizum < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end # The Bizum transaction ID associated with this payment. sig { returns(T.nilable(String)) } def transaction_id; end @@ -961,6 +964,9 @@ module Stripe # Populated if this transaction used 3D Secure authentication. sig { returns(T.nilable(ThreeDSecure)) } def three_d_secure; end + # Transaction Link ID (TLID) is a unique identifier for a transaction. This is used by some card networks, such as Mastercard, for transaction linking, in addition to Network Transaction IDs. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + sig { returns(T.nilable(String)) } + def transaction_link_id; end # If this Card is part of a card wallet, this contains the details of the card wallet. sig { returns(T.nilable(Wallet)) } def wallet; end @@ -1727,6 +1733,9 @@ module Stripe # Unique transaction id generated by BCB sig { returns(T.nilable(String)) } def bank_transaction_id; end + # Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end # ID of the multi use Mandate generated by the PaymentIntent sig { returns(T.nilable(String)) } def mandate; end diff --git a/rbi/stripe/resources/checkout/session.rbi b/rbi/stripe/resources/checkout/session.rbi index a485ba771..e176a7f20 100644 --- a/rbi/stripe/resources/checkout/session.rbi +++ b/rbi/stripe/resources/checkout/session.rbi @@ -1676,6 +1676,26 @@ module Stripe @field_remappings = {} end end + class Sunbit < ::Stripe::StripeObject + # Controls when the funds will be captured from the customer's account. + sig { returns(T.nilable(String)) } + def capture_method; end + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Swish < ::Stripe::StripeObject # The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent. sig { returns(T.nilable(String)) } @@ -1801,6 +1821,29 @@ module Stripe @field_remappings = {} end end + class WechatPay < ::Stripe::StripeObject + # The app ID registered with WeChat Pay. Only required when client is iOS or Android. + sig { returns(T.nilable(String)) } + def app_id; end + # The client type that the end customer will pay from + sig { returns(T.nilable(String)) } + def client; end + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # Attribute for field acss_debit sig { returns(T.nilable(AcssDebit)) } def acss_debit; end @@ -1921,6 +1964,9 @@ module Stripe # Attribute for field sofort sig { returns(T.nilable(Sofort)) } def sofort; end + # Attribute for field sunbit + sig { returns(T.nilable(Sunbit)) } + def sunbit; end # Attribute for field swish sig { returns(T.nilable(Swish)) } def swish; end @@ -1933,6 +1979,9 @@ module Stripe # Attribute for field us_bank_account sig { returns(T.nilable(UsBankAccount)) } def us_bank_account; end + # Attribute for field wechat_pay + sig { returns(T.nilable(WechatPay)) } + def wechat_pay; end def self.inner_class_types @inner_class_types = { acss_debit: AcssDebit, @@ -1975,10 +2024,12 @@ module Stripe scalapay: Scalapay, sepa_debit: SepaDebit, sofort: Sofort, + sunbit: Sunbit, swish: Swish, twint: Twint, upi: Upi, us_bank_account: UsBankAccount, + wechat_pay: WechatPay, } end def self.field_remappings diff --git a/rbi/stripe/resources/confirmation_token.rbi b/rbi/stripe/resources/confirmation_token.rbi index 43bacb90a..f1fb78f2b 100644 --- a/rbi/stripe/resources/confirmation_token.rbi +++ b/rbi/stripe/resources/confirmation_token.rbi @@ -268,6 +268,9 @@ module Stripe end end class Bizum < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end def self.inner_class_types @inner_class_types = {} end @@ -276,6 +279,9 @@ module Stripe end end class Blik < ::Stripe::StripeObject + # A unique and immutable identifier assigned by BLIK to every buyer. + sig { returns(T.nilable(String)) } + def buyer_id; end def self.inner_class_types @inner_class_types = {} end @@ -1284,6 +1290,9 @@ module Stripe end end class Pix < ::Stripe::StripeObject + # Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end def self.inner_class_types @inner_class_types = {} end diff --git a/rbi/stripe/resources/credit_note.rbi b/rbi/stripe/resources/credit_note.rbi index 0596167b1..263facf4a 100644 --- a/rbi/stripe/resources/credit_note.rbi +++ b/rbi/stripe/resources/credit_note.rbi @@ -272,6 +272,8 @@ module Stripe # # You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount, # post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation. + # + # For invoices that also have refunds created through the [Refund API](https://docs.stripe.com/docs/api/refunds), the credit note API subtracts those refund amounts from the maximum creditable amount. This prevents the combined credit notes and refunds from exceeding the invoice amount. If you use both, ensure the combined total does not exceed the invoice's paid amount. sig { params(params: T.any(::Stripe::CreditNoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } diff --git a/rbi/stripe/resources/dispute.rbi b/rbi/stripe/resources/dispute.rbi index 6ffe2c95a..418273aeb 100644 --- a/rbi/stripe/resources/dispute.rbi +++ b/rbi/stripe/resources/dispute.rbi @@ -11,6 +11,17 @@ module Stripe class Dispute < APIResource class Evidence < ::Stripe::StripeObject class EnhancedEvidence < ::Stripe::StripeObject + class MastercardCompliance < ::Stripe::StripeObject + # A field acknowledging the fee incurred when countering a Mastercard compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. + sig { returns(T::Boolean) } + def fee_acknowledged; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class VisaCompellingEvidence3 < ::Stripe::StripeObject class DisputedTransaction < ::Stripe::StripeObject class ShippingAddress < ::Stripe::StripeObject @@ -155,6 +166,9 @@ module Stripe @field_remappings = {} end end + # Attribute for field mastercard_compliance + sig { returns(T.nilable(MastercardCompliance)) } + def mastercard_compliance; end # Attribute for field visa_compelling_evidence_3 sig { returns(T.nilable(VisaCompellingEvidence3)) } def visa_compelling_evidence_3; end @@ -163,6 +177,7 @@ module Stripe def visa_compliance; end def self.inner_class_types @inner_class_types = { + mastercard_compliance: MastercardCompliance, visa_compelling_evidence_3: VisaCompellingEvidence3, visa_compliance: VisaCompliance, } @@ -264,6 +279,17 @@ module Stripe end class EvidenceDetails < ::Stripe::StripeObject class EnhancedEligibility < ::Stripe::StripeObject + class MastercardCompliance < ::Stripe::StripeObject + # Mastercard compliance eligibility status. + sig { returns(String) } + def status; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class VisaCompellingEvidence3 < ::Stripe::StripeObject # List of actions required to qualify dispute for Visa Compelling Evidence 3.0 evidence submission. sig { returns(T::Array[String]) } @@ -289,6 +315,9 @@ module Stripe @field_remappings = {} end end + # Attribute for field mastercard_compliance + sig { returns(T.nilable(MastercardCompliance)) } + def mastercard_compliance; end # Attribute for field visa_compelling_evidence_3 sig { returns(T.nilable(VisaCompellingEvidence3)) } def visa_compelling_evidence_3; end @@ -297,6 +326,7 @@ module Stripe def visa_compliance; end def self.inner_class_types @inner_class_types = { + mastercard_compliance: MastercardCompliance, visa_compelling_evidence_3: VisaCompellingEvidence3, visa_compliance: VisaCompliance, } diff --git a/rbi/stripe/resources/financial_connections/account.rbi b/rbi/stripe/resources/financial_connections/account.rbi index f3acd7bdc..8b37cfff6 100644 --- a/rbi/stripe/resources/financial_connections/account.rbi +++ b/rbi/stripe/resources/financial_connections/account.rbi @@ -137,6 +137,34 @@ module Stripe @field_remappings = {} end end + class StatusDetails < ::Stripe::StripeObject + class Active < ::Stripe::StripeObject + # The action (if any) to proactively relink the Account. + sig { returns(String) } + def action; end + # The underlying cause of the Account becoming inactive. + sig { returns(String) } + def cause; end + # When the Account is expected to become inactive, if applicable. + sig { returns(Integer) } + def expected_deactivation_date; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field active + sig { returns(T.nilable(Active)) } + def active; end + def self.inner_class_types + @inner_class_types = {active: Active} + end + def self.field_remappings + @field_remappings = {} + end + end class TransactionRefresh < ::Stripe::StripeObject # Unique identifier for the object. sig { returns(String) } @@ -205,6 +233,9 @@ module Stripe # The status of the link to the account. sig { returns(String) } def status; end + # Attribute for field status_details + sig { returns(T.nilable(StatusDetails)) } + def status_details; end # If `category` is `cash`, one of: # # - `checking` diff --git a/rbi/stripe/resources/payment_attempt_record.rbi b/rbi/stripe/resources/payment_attempt_record.rbi index a90293316..deed71df0 100644 --- a/rbi/stripe/resources/payment_attempt_record.rbi +++ b/rbi/stripe/resources/payment_attempt_record.rbi @@ -465,6 +465,9 @@ module Stripe end end class Bizum < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end # The Bizum transaction ID associated with this payment. sig { returns(T.nilable(String)) } def transaction_id; end @@ -687,9 +690,6 @@ module Stripe # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. sig { returns(T.nilable(String)) } def network_transaction_id; end - # The transaction type that was passed for an off-session, Merchant-Initiated transaction, one of `recurring` or `unscheduled`. - sig { returns(T.nilable(String)) } - def stored_credential_usage; end # Populated if this transaction used 3D Secure authentication. sig { returns(T.nilable(ThreeDSecure)) } def three_d_secure; end diff --git a/rbi/stripe/resources/payment_intent.rbi b/rbi/stripe/resources/payment_intent.rbi index 717d37b90..00e42db5e 100644 --- a/rbi/stripe/resources/payment_intent.rbi +++ b/rbi/stripe/resources/payment_intent.rbi @@ -2509,6 +2509,15 @@ module Stripe # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end def self.inner_class_types @inner_class_types = {} end @@ -2581,6 +2590,26 @@ module Stripe @field_remappings = {} end end + class Sunbit < ::Stripe::StripeObject + # Controls when the funds will be captured from the customer's account. + sig { returns(T.nilable(String)) } + def capture_method; end + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Swish < ::Stripe::StripeObject # A reference for this payment to be displayed in the Swish app. sig { returns(T.nilable(String)) } @@ -2713,7 +2742,7 @@ module Stripe end end class WechatPay < ::Stripe::StripeObject - # The app ID registered with WeChat Pay. Only required when client is ios or android. + # The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program. sig { returns(T.nilable(String)) } def app_id; end # The client type that the end customer will pay from @@ -2899,6 +2928,9 @@ module Stripe # Attribute for field sofort sig { returns(T.nilable(Sofort)) } def sofort; end + # Attribute for field sunbit + sig { returns(T.nilable(Sunbit)) } + def sunbit; end # Attribute for field swish sig { returns(T.nilable(Swish)) } def swish; end @@ -2968,6 +3000,7 @@ module Stripe scalapay: Scalapay, sepa_debit: SepaDebit, sofort: Sofort, + sunbit: Sunbit, swish: Swish, twint: Twint, upi: Upi, diff --git a/rbi/stripe/resources/payment_method.rbi b/rbi/stripe/resources/payment_method.rbi index 3e820be3b..15a95d7c6 100644 --- a/rbi/stripe/resources/payment_method.rbi +++ b/rbi/stripe/resources/payment_method.rbi @@ -172,6 +172,9 @@ module Stripe end end class Bizum < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end def self.inner_class_types @inner_class_types = {} end @@ -180,6 +183,9 @@ module Stripe end end class Blik < ::Stripe::StripeObject + # A unique and immutable identifier assigned by BLIK to every buyer. + sig { returns(T.nilable(String)) } + def buyer_id; end def self.inner_class_types @inner_class_types = {} end @@ -1219,6 +1225,9 @@ module Stripe end end class Pix < ::Stripe::StripeObject + # Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end def self.inner_class_types @inner_class_types = {} end diff --git a/rbi/stripe/resources/payment_record.rbi b/rbi/stripe/resources/payment_record.rbi index 4b541d458..e60be3d4b 100644 --- a/rbi/stripe/resources/payment_record.rbi +++ b/rbi/stripe/resources/payment_record.rbi @@ -465,6 +465,9 @@ module Stripe end end class Bizum < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end # The Bizum transaction ID associated with this payment. sig { returns(T.nilable(String)) } def transaction_id; end @@ -687,9 +690,6 @@ module Stripe # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. sig { returns(T.nilable(String)) } def network_transaction_id; end - # The transaction type that was passed for an off-session, Merchant-Initiated transaction, one of `recurring` or `unscheduled`. - sig { returns(T.nilable(String)) } - def stored_credential_usage; end # Populated if this transaction used 3D Secure authentication. sig { returns(T.nilable(ThreeDSecure)) } def three_d_secure; end diff --git a/rbi/stripe/resources/reserve/hold.rbi b/rbi/stripe/resources/reserve/hold.rbi index 0e74b55f7..0bcbfb408 100644 --- a/rbi/stripe/resources/reserve/hold.rbi +++ b/rbi/stripe/resources/reserve/hold.rbi @@ -6,6 +6,20 @@ module Stripe module Reserve # ReserveHolds are used to place a temporary ReserveHold on a merchant's funds. class Hold < APIResource + class ReleaseDetail < ::Stripe::StripeObject + # The amount released by the ReserveRelease from this ReserveHold. A positive integer representing how much is released in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + sig { returns(Integer) } + def amount; end + # The ReserveRelease which released funds from this ReserveHold (e.g., resrel_123). + sig { returns(String) } + def reserve_release; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class ReleaseSchedule < ::Stripe::StripeObject # The time after which the ReserveHold is requested to be released. sig { returns(T.nilable(Integer)) } @@ -53,6 +67,9 @@ module Stripe # The reason for the ReserveHold. sig { returns(String) } def reason; end + # List of ReserveReleases and the amounts released from this ReserveHold. + sig { returns(T.nilable(T::Array[ReleaseDetail])) } + def release_details; end # Attribute for field release_schedule sig { returns(ReleaseSchedule) } def release_schedule; end diff --git a/rbi/stripe/resources/setup_attempt.rbi b/rbi/stripe/resources/setup_attempt.rbi index 15fa17f83..a6ff3add4 100644 --- a/rbi/stripe/resources/setup_attempt.rbi +++ b/rbi/stripe/resources/setup_attempt.rbi @@ -349,6 +349,9 @@ module Stripe end end class Pix < ::Stripe::StripeObject + # Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end def self.inner_class_types @inner_class_types = {} end @@ -364,6 +367,14 @@ module Stripe @field_remappings = {} end end + class Satispay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class SepaDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} @@ -490,6 +501,9 @@ module Stripe # Attribute for field revolut_pay sig { returns(T.nilable(RevolutPay)) } def revolut_pay; end + # Attribute for field satispay + sig { returns(T.nilable(Satispay)) } + def satispay; end # Attribute for field sepa_debit sig { returns(T.nilable(SepaDebit)) } def sepa_debit; end @@ -530,6 +544,7 @@ module Stripe payto: Payto, pix: Pix, revolut_pay: RevolutPay, + satispay: Satispay, sepa_debit: SepaDebit, sofort: Sofort, twint: Twint, diff --git a/rbi/stripe/resources/subscription.rbi b/rbi/stripe/resources/subscription.rbi index 19eb17594..cc4410748 100644 --- a/rbi/stripe/resources/subscription.rbi +++ b/rbi/stripe/resources/subscription.rbi @@ -186,6 +186,20 @@ module Stripe end end class InvoiceSettings < ::Stripe::StripeObject + class CustomField < ::Stripe::StripeObject + # The name of the custom field. + sig { returns(String) } + def name; end + # The value of the custom field. + sig { returns(String) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } @@ -203,11 +217,20 @@ module Stripe # The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::TaxId)])) } def account_tax_ids; end + # A list of up to 4 custom fields to be displayed on the invoice. + sig { returns(T.nilable(T::Array[CustomField])) } + def custom_fields; end + # An arbitrary string attached to the object. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + # Footer to be displayed on the invoice. + sig { returns(T.nilable(String)) } + def footer; end # Attribute for field issuer sig { returns(Issuer) } def issuer; end def self.inner_class_types - @inner_class_types = {issuer: Issuer} + @inner_class_types = {custom_fields: CustomField, issuer: Issuer} end def self.field_remappings @field_remappings = {} @@ -815,7 +838,7 @@ module Stripe def trial_start; end # 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. + # 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 false. # # By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. sig { @@ -825,7 +848,7 @@ module Stripe # 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. + # 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 false. # # By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. sig { diff --git a/rbi/stripe/resources/v2/commerce/product_catalog_import.rbi b/rbi/stripe/resources/v2/commerce/product_catalog_import.rbi index 3b9c3480c..f6601c9c1 100644 --- a/rbi/stripe/resources/v2/commerce/product_catalog_import.rbi +++ b/rbi/stripe/resources/v2/commerce/product_catalog_import.rbi @@ -227,6 +227,9 @@ module Stripe # Additional information about the object in a structured format. sig { returns(T::Hash[String, String]) } def metadata; end + # The import strategy for handling existing catalog data. + sig { returns(String) } + def mode; 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 diff --git a/rbi/stripe/resources/v2/core/account.rbi b/rbi/stripe/resources/v2/core/account.rbi index a0f62b042..e8409ed71 100644 --- a/rbi/stripe/resources/v2/core/account.rbi +++ b/rbi/stripe/resources/v2/core/account.rbi @@ -1416,6 +1416,34 @@ module Stripe @field_remappings = {} end end + class SunbitPayments < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject + # Machine-readable code explaining the reason for the Capability to be in its current status. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details about the capability's status. This value is empty when `status` is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + def self.inner_class_types + @inner_class_types = {status_details: StatusDetail} + end + def self.field_remappings + @field_remappings = {} + end + end class SwishPayments < ::Stripe::StripeObject class StatusDetail < ::Stripe::StripeObject # Machine-readable code explaining the reason for the Capability to be in its current status. @@ -1651,6 +1679,9 @@ module Stripe # Capabilities that enable the merchant to manage their Stripe Balance (/v1/balance). sig { returns(T.nilable(StripeBalance)) } def stripe_balance; end + # Allow the merchant to process Sunbit payments. + sig { returns(T.nilable(SunbitPayments)) } + def sunbit_payments; end # Allow the merchant to process Swish payments. sig { returns(T.nilable(SwishPayments)) } def swish_payments; end @@ -1706,6 +1737,7 @@ module Stripe sepa_bank_transfer_payments: SepaBankTransferPayments, sepa_debit_payments: SepaDebitPayments, stripe_balance: StripeBalance, + sunbit_payments: SunbitPayments, swish_payments: SwishPayments, twint_payments: TwintPayments, us_bank_transfer_payments: UsBankTransferPayments, @@ -2082,7 +2114,7 @@ module Stripe # Indicates whether the platform or connected account is responsible for paying Stripe fees for pricing-control-eligible products. sig { returns(T.nilable(String)) } def fees_collector; end - # A value indicating responsibility for collecting requirements on this account. + # A value indicating the responsibility for losses on this account. sig { returns(T.nilable(String)) } def losses_collector; end # A value indicating responsibility for collecting requirements on this account. diff --git a/rbi/stripe/services/balance_transaction_service.rbi b/rbi/stripe/services/balance_transaction_service.rbi index 681bc77ee..c8e6ad027 100644 --- a/rbi/stripe/services/balance_transaction_service.rbi +++ b/rbi/stripe/services/balance_transaction_service.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe class BalanceTransactionService < StripeService - # Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first. + # Returns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first. # - # Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. + # The previous name of this endpoint was “Balance history,” and it used the path /v1/balance/history. sig { params(params: T.any(::Stripe::BalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } diff --git a/rbi/stripe/services/credit_note_service.rbi b/rbi/stripe/services/credit_note_service.rbi index 5cfbcef01..62229d139 100644 --- a/rbi/stripe/services/credit_note_service.rbi +++ b/rbi/stripe/services/credit_note_service.rbi @@ -19,6 +19,8 @@ module Stripe # # You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount, # post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation. + # + # For invoices that also have refunds created through the [Refund API](https://docs.stripe.com/docs/api/refunds), the credit note API subtracts those refund amounts from the maximum creditable amount. This prevents the combined credit notes and refunds from exceeding the invoice amount. If you use both, ensure the combined total does not exceed the invoice's paid amount. sig { params(params: T.any(::Stripe::CreditNoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } diff --git a/rbi/stripe/services/subscription_service.rbi b/rbi/stripe/services/subscription_service.rbi index 323e10aac..e4a660567 100644 --- a/rbi/stripe/services/subscription_service.rbi +++ b/rbi/stripe/services/subscription_service.rbi @@ -6,7 +6,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, 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. + # 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 false. # # By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. sig { diff --git a/test/stripe/generated_examples_test.rb b/test/stripe/generated_examples_test.rb index 48251c00c..cafe10ce9 100644 --- a/test/stripe/generated_examples_test.rb +++ b/test/stripe/generated_examples_test.rb @@ -7577,7 +7577,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :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}', + 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"},"mode":"upsert","status":"awaiting_upload"}],"next_page_url":null,"previous_page_url":null}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -7590,7 +7590,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :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"}', + 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"},"mode":"upsert","status":"awaiting_upload"}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") @@ -7607,7 +7607,7 @@ class CodegennedExampleTest < Test::Unit::TestCase :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"}', + 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"},"mode":"upsert","status":"awaiting_upload"}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") From bf038f54cfb57c30521f40541a9eaa6df9999c42 Mon Sep 17 00:00:00 2001 From: David Brownman Date: Wed, 24 Jun 2026 15:45:00 -0700 Subject: [PATCH 2/2] Bump version to 19.3.0 --- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ VERSION | 2 +- lib/stripe/version.rb | 2 +- 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a8a5b0372..1c426c548 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,33 @@ # Changelog +## 19.3.0 - 2026-06-24 +This release changes the pinned API version to 2026-06-24.dahlia. + +* [#1896](https://github.com/stripe/stripe-ruby/pull/1896) Update generated code + * Add support for `release_details` on `Reserve::Hold` + * Change `Billing::CreditGrant.priority` to be required + * Add support for `buyer_id` on `Charge::PaymentMethodDetail::Bizum`, `ConfirmationToken::PaymentMethodPreview::Bizum`, `ConfirmationToken::PaymentMethodPreview::Blik`, `PaymentAttemptRecord::PaymentMethodDetail::Bizum`, `PaymentMethod::Bizum`, `PaymentMethod::Blik`, and `PaymentRecord::PaymentMethodDetail::Bizum` + * Add support for `transaction_link_id` on `Charge::PaymentMethodDetail::Card` + * Add support for `fingerprint` on `Charge::PaymentMethodDetail::Pix`, `ConfirmationToken::PaymentMethodPreview::Pix`, `PaymentMethod::Pix`, and `SetupAttempt::PaymentMethodDetail::Pix` + * Add support for `sunbit` on `Checkout::Session::PaymentMethodOption`, `Checkout::SessionCreateParams::PaymentMethodOption`, `PaymentIntent::PaymentMethodOption`, `PaymentIntentConfirmParams::PaymentMethodOption`, `PaymentIntentCreateParams::PaymentMethodOption`, and `PaymentIntentUpdateParams::PaymentMethodOption` + * Add support for `billing_cycle_anchor_config` on `Checkout::SessionCreateParams::SubscriptionDatum` + * Add support for `wechat_pay` on `Checkout::Session::PaymentMethodOption` + * Add support for `mastercard_compliance` on `Dispute::Evidence::EnhancedEvidence`, `Dispute::EvidenceDetail::EnhancedEligibility`, and `DisputeUpdateParams::Evidence::EnhancedEvidence` + * Add support for `status_details` on `FinancialConnections::Account` + * ⚠️ Remove support for `stored_credential_usage` on `PaymentAttemptRecord::PaymentMethodDetail::Card` and `PaymentRecord::PaymentMethodDetail::Card` + * ⚠️ Change `PaymentAttemptRecord::PaymentMethodDetail::Card.description` and `PaymentRecord::PaymentMethodDetail::Card.description` to be optional + * ⚠️ Change `PaymentAttemptRecord::PaymentMethodDetail::Card.iin` and `PaymentRecord::PaymentMethodDetail::Card.iin` to be optional + * ⚠️ Change `PaymentAttemptRecord::PaymentMethodDetail::Card.issuer` and `PaymentRecord::PaymentMethodDetail::Card.issuer` to be optional + * Add support for `setup_future_usage` on `PaymentIntent::PaymentMethodOption::Satispay`, `PaymentIntentConfirmParams::PaymentMethodOption::Satispay`, `PaymentIntentCreateParams::PaymentMethodOption::Satispay`, and `PaymentIntentUpdateParams::PaymentMethodOption::Satispay` + * Change `PaymentRecordReportRefundParams.refunded` to be optional + * Add support for `satispay` on `SetupAttempt::PaymentMethodDetail` + * Add support for `custom_fields`, `description`, and `footer` on `Subscription::InvoiceSetting`, `SubscriptionCreateParams::InvoiceSetting`, and `SubscriptionUpdateParams::InvoiceSetting` + * Add support for `payment_method_options` and `payment_method` on `TopupCreateParams` + * Add support for `mode` on `V2::Commerce::ProductCatalogImport` + * Add support for `sunbit_payments` on `V2::Core::Account::Configuration::Merchant::Capability`, `V2::Core::AccountCreateParams::Configuration::Merchant::Capability`, and `V2::Core::AccountUpdateParams::Configuration::Merchant::Capability` + * Add support for `crypto_money_manager` and `money_manager` on `V2::Core::AccountUpdateParams::Identity::Attestation::TermsOfService` + * ⚠️ Remove support for `crypto_storer` and `storer` on `V2::Core::AccountUpdateParams::Identity::Attestation::TermsOfService` + ## 19.2.1 - 2026-06-12 * [#1874](https://github.com/stripe/stripe-ruby/pull/1874) Add "source" field to user-agent header diff --git a/VERSION b/VERSION index 34716091d..46e5968c5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -19.2.1 +19.3.0 diff --git a/lib/stripe/version.rb b/lib/stripe/version.rb index 864f67812..baaeeea7f 100644 --- a/lib/stripe/version.rb +++ b/lib/stripe/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Stripe - VERSION = "19.2.1" + VERSION = "19.3.0" end