diff --git a/CHANGELOG.md b/CHANGELOG.md index ebd969daa..dae0a1094 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,24 @@ # Changelog +## 13.4.1 - 2025-01-28 +* [#1528](https://github.com/stripe/stripe-ruby/pull/1528) Update generated code + * ⚠️ Bugfix: `invoice` and `line_item_id` can be passed to `update` method in `InvoiceLineItem`. + +## 13.4.0 - 2025-01-27 +* [#1510](https://github.com/stripe/stripe-ruby/pull/1510) Update generated code + * Add support for `close` method on resource `Treasury.FinancialAccount` +* [#1521](https://github.com/stripe/stripe-ruby/pull/1521) pipe rubocop output to devnull +* [#1519](https://github.com/stripe/stripe-ruby/pull/1519) Fixed typos in CONTRIBUTING.MD +* [#1513](https://github.com/stripe/stripe-ruby/pull/1513) add justfile +* [#1515](https://github.com/stripe/stripe-ruby/pull/1515) Added CONTRIBUTING.md file + ## 13.4.0-beta.4 - 2025-01-23 * [#1523](https://github.com/stripe/stripe-ruby/pull/1523) Update generated code for beta - * Removed support for `stripe_account` from `Stripe::Terminal::Reader`. Use `account` instead. + * Removed support for `stripe_account` from `Stripe::Terminal::Reader`. Use `account` instead. ## 13.4.0-beta.3 - 2025-01-17 * [#1514](https://github.com/stripe/stripe-ruby/pull/1514) Update generated code for beta - ## 13.4.0-beta.2 - 2025-01-09 * [#1504](https://github.com/stripe/stripe-ruby/pull/1504) Update generated code for beta * Add support for `close` method on resource `Treasury.FinancialAccount` diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 5454d94e1..130232bf3 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1460 \ No newline at end of file +v1472 \ No newline at end of file diff --git a/lib/stripe/resources/account.rb b/lib/stripe/resources/account.rb index 6dd8c61fd..067271159 100644 --- a/lib/stripe/resources/account.rb +++ b/lib/stripe/resources/account.rb @@ -484,6 +484,8 @@ class Payouts < Stripe::StripeObject attr_reader :charges # Attribute for field payouts attr_reader :payouts + # Represents the rejected reason of the account. Empty if account is not rejected, or rejected by Stripe. Please see [this page for more details](https://stripe.com/docs/connect/) + attr_reader :rejected_reason end class Settings < Stripe::StripeObject @@ -5214,10 +5216,10 @@ def self.create(params = {}, opts = {}) # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balance_object) are zero. # # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead. - def self.delete(id, params = {}, opts = {}) + def self.delete(account, params = {}, opts = {}) request_stripe_object( method: :delete, - path: format("/v1/accounts/%s", { id: CGI.escape(id) }), + path: format("/v1/accounts/%s", { account: CGI.escape(account) }), params: params, opts: opts ) @@ -5301,10 +5303,10 @@ def self.reject(account, params = {}, opts = {}) # # To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our # [Connect](https://stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts. - def self.update(id, params = {}, opts = {}) + def self.update(account, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/accounts/%s", { id: CGI.escape(id) }), + path: format("/v1/accounts/%s", { account: CGI.escape(account) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/account_notice.rb b/lib/stripe/resources/account_notice.rb index 76d234bf2..075376b95 100644 --- a/lib/stripe/resources/account_notice.rb +++ b/lib/stripe/resources/account_notice.rb @@ -120,10 +120,10 @@ def self.list(params = {}, opts = {}) end # Updates an AccountNotice object. - def self.update(id, params = {}, opts = {}) + def self.update(account_notice, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/account_notices/%s", { id: CGI.escape(id) }), + path: format("/v1/account_notices/%s", { account_notice: CGI.escape(account_notice) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/account_session.rb b/lib/stripe/resources/account_session.rb index c8ccb9f1f..2f5be5006 100644 --- a/lib/stripe/resources/account_session.rb +++ b/lib/stripe/resources/account_session.rb @@ -774,6 +774,20 @@ def initialize(enabled: nil, features: nil) end end + class ProductTaxCodeSelector < Stripe::RequestParams + class Features < Stripe::RequestParams + end + # Whether the embedded component is enabled. + attr_accessor :enabled + # The list of features enabled in the embedded component. + attr_accessor :features + + def initialize(enabled: nil, features: nil) + @enabled = enabled + @features = features + end + end + class Recipients < Stripe::RequestParams class Features < Stripe::RequestParams # Whether to allow sending money. @@ -889,6 +903,8 @@ def initialize(enabled: nil, features: nil) attr_accessor :payouts # Configuration for the payouts list embedded component. attr_accessor :payouts_list + # Configuration for the product tax code selector embedded component. + attr_accessor :product_tax_code_selector # Configuration for the recipients component. attr_accessor :recipients # Configuration for the reporting chart embedded component. @@ -921,6 +937,7 @@ def initialize( payments: nil, payouts: nil, payouts_list: nil, + product_tax_code_selector: nil, recipients: nil, reporting_chart: nil, tax_registrations: nil, @@ -947,6 +964,7 @@ def initialize( @payments = payments @payouts = payouts @payouts_list = payouts_list + @product_tax_code_selector = product_tax_code_selector @recipients = recipients @reporting_chart = reporting_chart @tax_registrations = tax_registrations diff --git a/lib/stripe/resources/apple_pay_domain.rb b/lib/stripe/resources/apple_pay_domain.rb index 5d40dbfab..d20a068bb 100644 --- a/lib/stripe/resources/apple_pay_domain.rb +++ b/lib/stripe/resources/apple_pay_domain.rb @@ -87,10 +87,10 @@ def self.create(params = {}, opts = {}) end # Delete an apple pay domain. - def self.delete(id, params = {}, opts = {}) + def self.delete(domain, params = {}, opts = {}) request_stripe_object( method: :delete, - path: format("/v1/apple_pay/domains/%s", { id: CGI.escape(id) }), + path: format("/v1/apple_pay/domains/%s", { domain: CGI.escape(domain) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/balance.rb b/lib/stripe/resources/balance.rb index e93a5d845..3046662d2 100644 --- a/lib/stripe/resources/balance.rb +++ b/lib/stripe/resources/balance.rb @@ -21,11 +21,11 @@ def self.object_name class Available < Stripe::StripeObject class SourceTypes < Stripe::StripeObject - # Amount for bank account. + # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). attr_reader :bank_account - # Amount for card. + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). attr_reader :card - # Amount for FPX. + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. attr_reader :fpx end # Balance amount. @@ -38,11 +38,11 @@ class SourceTypes < Stripe::StripeObject class ConnectReserved < Stripe::StripeObject class SourceTypes < Stripe::StripeObject - # Amount for bank account. + # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). attr_reader :bank_account - # Amount for card. + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). attr_reader :card - # Amount for FPX. + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. attr_reader :fpx end # Balance amount. @@ -56,11 +56,11 @@ class SourceTypes < Stripe::StripeObject class InstantAvailable < Stripe::StripeObject class NetAvailable < Stripe::StripeObject class SourceTypes < Stripe::StripeObject - # Amount for bank account. + # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). attr_reader :bank_account - # Amount for card. + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). attr_reader :card - # Amount for FPX. + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. attr_reader :fpx end # Net balance amount, subtracting fees from platform-set pricing. @@ -72,11 +72,11 @@ class SourceTypes < Stripe::StripeObject end class SourceTypes < Stripe::StripeObject - # Amount for bank account. + # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). attr_reader :bank_account - # Amount for card. + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). attr_reader :card - # Amount for FPX. + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. attr_reader :fpx end # Balance amount. @@ -92,11 +92,11 @@ class SourceTypes < Stripe::StripeObject class Issuing < Stripe::StripeObject class Available < Stripe::StripeObject class SourceTypes < Stripe::StripeObject - # Amount for bank account. + # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). attr_reader :bank_account - # Amount for card. + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). attr_reader :card - # Amount for FPX. + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. attr_reader :fpx end # Balance amount. @@ -112,11 +112,11 @@ class SourceTypes < Stripe::StripeObject class Pending < Stripe::StripeObject class SourceTypes < Stripe::StripeObject - # Amount for bank account. + # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). attr_reader :bank_account - # Amount for card. + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). attr_reader :card - # Amount for FPX. + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. attr_reader :fpx end # Balance amount. diff --git a/lib/stripe/resources/billing/credit_balance_summary.rb b/lib/stripe/resources/billing/credit_balance_summary.rb index 789f5b9d3..a143c92d2 100644 --- a/lib/stripe/resources/billing/credit_balance_summary.rb +++ b/lib/stripe/resources/billing/credit_balance_summary.rb @@ -45,11 +45,22 @@ class Monetary < Stripe::StripeObject class RetrieveParams < Stripe::RequestParams class Filter < Stripe::RequestParams class ApplicabilityScope < Stripe::RequestParams + class Price < Stripe::RequestParams + # The price ID this credit grant should apply to. + attr_accessor :id + + def initialize(id: nil) + @id = id + end + end # The price type that credit grants can apply to. We currently only support the `metered` price type. attr_accessor :price_type + # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. + attr_accessor :prices - def initialize(price_type: nil) + def initialize(price_type: nil, prices: nil) @price_type = price_type + @prices = prices end end # The billing credit applicability scope for which to fetch credit balance summary. diff --git a/lib/stripe/resources/billing/credit_grant.rb b/lib/stripe/resources/billing/credit_grant.rb index 19e13cd3e..a8f5b3d49 100644 --- a/lib/stripe/resources/billing/credit_grant.rb +++ b/lib/stripe/resources/billing/credit_grant.rb @@ -31,8 +31,14 @@ class Monetary < Stripe::StripeObject class ApplicabilityConfig < Stripe::StripeObject class Scope < Stripe::StripeObject + class Price < Stripe::StripeObject + # Unique identifier for the object. + attr_reader :id + end # The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. attr_reader :price_type + # The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. + attr_reader :prices end # Attribute for field scope attr_reader :scope @@ -91,11 +97,22 @@ def initialize(monetary: nil, type: nil) class ApplicabilityConfig < Stripe::RequestParams class Scope < Stripe::RequestParams + class Price < Stripe::RequestParams + # The price ID this credit grant should apply to. + attr_accessor :id + + def initialize(id: nil) + @id = id + end + end # The price type that credit grants can apply to. We currently only support the `metered` price type. attr_accessor :price_type + # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. + attr_accessor :prices - def initialize(price_type: nil) + def initialize(price_type: nil, prices: nil) @price_type = price_type + @prices = prices end end # Specify the scope of this applicability config. diff --git a/lib/stripe/resources/billing/meter_event_summary.rb b/lib/stripe/resources/billing/meter_event_summary.rb index 80bdc489a..12bb3f312 100644 --- a/lib/stripe/resources/billing/meter_event_summary.rb +++ b/lib/stripe/resources/billing/meter_event_summary.rb @@ -5,6 +5,8 @@ module Stripe module Billing # A billing meter event summary represents an aggregated view of a customer's billing meter events within a specified timeframe. It indicates how much # usage was accrued by a customer for that period. + # + # Note: Meters events are aggregated asynchronously so the meter event summaries provide an eventually consistent view of the reported usage. class MeterEventSummary < APIResource OBJECT_NAME = "billing.meter_event_summary" def self.object_name diff --git a/lib/stripe/resources/billing_portal/configuration.rb b/lib/stripe/resources/billing_portal/configuration.rb index 98c4f2690..9dd782461 100644 --- a/lib/stripe/resources/billing_portal/configuration.rb +++ b/lib/stripe/resources/billing_portal/configuration.rb @@ -597,10 +597,10 @@ def self.list(params = {}, opts = {}) end # Updates a configuration that describes the functionality of the customer portal. - def self.update(id, params = {}, opts = {}) + def self.update(configuration, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/billing_portal/configurations/%s", { id: CGI.escape(id) }), + path: format("/v1/billing_portal/configurations/%s", { configuration: CGI.escape(configuration) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/charge.rb b/lib/stripe/resources/charge.rb index b7a1d15f1..a6f9ae1c9 100644 --- a/lib/stripe/resources/charge.rb +++ b/lib/stripe/resources/charge.rb @@ -182,6 +182,8 @@ class Funding < Stripe::StripeObject class Card < Stripe::StripeObject # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. attr_reader :brand + # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.) + attr_reader :brand_product # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. attr_reader :country # Two-digit number representing the card's expiration month. @@ -939,6 +941,8 @@ class Funding < Stripe::StripeObject class Card < Stripe::StripeObject # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. attr_reader :brand + # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.) + attr_reader :brand_product # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. attr_reader :country # Two-digit number representing the card's expiration month. @@ -3099,10 +3103,10 @@ def self.search_auto_paging_each(params = {}, opts = {}, &blk) end # Updates the specified charge by setting the values of the parameters passed. Any parameters not provided will be left unchanged. - def self.update(id, params = {}, opts = {}) + def self.update(charge, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/charges/%s", { id: CGI.escape(id) }), + path: format("/v1/charges/%s", { charge: CGI.escape(charge) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/checkout/session.rb b/lib/stripe/resources/checkout/session.rb index f335fe410..79f45dfc4 100644 --- a/lib/stripe/resources/checkout/session.rb +++ b/lib/stripe/resources/checkout/session.rb @@ -459,6 +459,11 @@ class Installments < Stripe::StripeObject # Indicates if installments are enabled attr_reader :enabled end + + class Restrictions < Stripe::StripeObject + # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. + attr_reader :brands_blocked + end # Attribute for field installments attr_reader :installments # Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession. @@ -473,6 +478,8 @@ class Installments < Stripe::StripeObject attr_reader :request_overcapture # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. attr_reader :request_three_d_secure + # Attribute for field restrictions + attr_reader :restrictions # 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. @@ -970,9 +977,9 @@ class ShippingCost < Stripe::StripeObject class Tax < Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. attr_reader :taxability_reason @@ -1047,9 +1054,9 @@ class Discount < Stripe::StripeObject class Tax < Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. attr_reader :taxability_reason @@ -1971,6 +1978,15 @@ def initialize(enabled: nil) @enabled = enabled end end + + class Restrictions < Stripe::RequestParams + # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. + attr_accessor :brands_blocked + + def initialize(brands_blocked: nil) + @brands_blocked = brands_blocked + end + end # Installment options for card payments attr_accessor :installments # Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession. @@ -1985,6 +2001,8 @@ def initialize(enabled: nil) attr_accessor :request_overcapture # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. attr_accessor :request_three_d_secure + # Restrictions to apply to the card payment method. For example, you can block specific card brands. + attr_accessor :restrictions # 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. @@ -2006,6 +2024,7 @@ def initialize( request_multicapture: nil, request_overcapture: nil, request_three_d_secure: nil, + restrictions: nil, setup_future_usage: nil, statement_descriptor_suffix_kana: nil, statement_descriptor_suffix_kanji: nil @@ -2017,6 +2036,7 @@ def initialize( @request_multicapture = request_multicapture @request_overcapture = request_overcapture @request_three_d_secure = request_three_d_secure + @restrictions = restrictions @setup_future_usage = setup_future_usage @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji @@ -3762,10 +3782,10 @@ def self.list_line_items(session, params = {}, opts = {}) end # Updates a Session object. - def self.update(id, params = {}, opts = {}) + def self.update(session, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/checkout/sessions/%s", { id: CGI.escape(id) }), + path: format("/v1/checkout/sessions/%s", { session: CGI.escape(session) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/climate/order.rb b/lib/stripe/resources/climate/order.rb index 748460678..a94fe46ac 100644 --- a/lib/stripe/resources/climate/order.rb +++ b/lib/stripe/resources/climate/order.rb @@ -230,10 +230,10 @@ def self.list(params = {}, opts = {}) end # Updates the specified order by setting the values of the parameters passed. - def self.update(id, params = {}, opts = {}) + def self.update(order, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/climate/orders/%s", { id: CGI.escape(id) }), + path: format("/v1/climate/orders/%s", { order: CGI.escape(order) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/confirmation_token.rb b/lib/stripe/resources/confirmation_token.rb index 656cc8824..8ffe5f0c0 100644 --- a/lib/stripe/resources/confirmation_token.rb +++ b/lib/stripe/resources/confirmation_token.rb @@ -225,7 +225,7 @@ class Wallet < Stripe::StripeObject end class Networks < Stripe::StripeObject - # All available networks for the card. + # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). attr_reader :available # The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. attr_reader :preferred @@ -382,7 +382,7 @@ class ShippingAddress < Stripe::StripeObject class CardPresent < Stripe::StripeObject class Networks < Stripe::StripeObject - # All available networks for the card. + # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). attr_reader :available # The preferred network for the card. attr_reader :preferred @@ -482,7 +482,7 @@ class Ideal < Stripe::StripeObject class InteracPresent < Stripe::StripeObject class Networks < Stripe::StripeObject - # All available networks for the card. + # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). attr_reader :available # The preferred network for the card. attr_reader :preferred diff --git a/lib/stripe/resources/coupon.rb b/lib/stripe/resources/coupon.rb index 3091cecec..a09a59077 100644 --- a/lib/stripe/resources/coupon.rb +++ b/lib/stripe/resources/coupon.rb @@ -222,10 +222,10 @@ def self.create(params = {}, opts = {}) end # You can delete coupons via the [coupon management](https://dashboard.stripe.com/coupons) page of the Stripe dashboard. However, deleting a coupon does not affect any customers who have already applied the coupon; it means that new customers can't redeem the coupon. You can also delete coupons via the API. - def self.delete(id, params = {}, opts = {}) + def self.delete(coupon, params = {}, opts = {}) request_stripe_object( method: :delete, - path: format("/v1/coupons/%s", { id: CGI.escape(id) }), + path: format("/v1/coupons/%s", { coupon: CGI.escape(coupon) }), params: params, opts: opts ) @@ -247,10 +247,10 @@ def self.list(params = {}, opts = {}) end # Updates the metadata of a coupon. Other coupon details (currency, duration, amount_off) are, by design, not editable. - def self.update(id, params = {}, opts = {}) + def self.update(coupon, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/coupons/%s", { id: CGI.escape(id) }), + path: format("/v1/coupons/%s", { coupon: CGI.escape(coupon) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/credit_note.rb b/lib/stripe/resources/credit_note.rb index 37fff1e19..994b6663c 100644 --- a/lib/stripe/resources/credit_note.rb +++ b/lib/stripe/resources/credit_note.rb @@ -44,9 +44,9 @@ class ShippingCost < Stripe::StripeObject class Tax < Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. attr_reader :taxability_reason diff --git a/lib/stripe/resources/customer.rb b/lib/stripe/resources/customer.rb index 291e6d46f..54eabdf72 100644 --- a/lib/stripe/resources/customer.rb +++ b/lib/stripe/resources/customer.rb @@ -892,10 +892,10 @@ def self.create_funding_instructions(customer, params = {}, opts = {}) end # Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer. - def self.delete(id, params = {}, opts = {}) + def self.delete(customer, params = {}, opts = {}) request_stripe_object( method: :delete, - path: format("/v1/customers/%s", { id: CGI.escape(id) }), + path: format("/v1/customers/%s", { customer: CGI.escape(customer) }), params: params, opts: opts ) @@ -997,10 +997,10 @@ def self.search_auto_paging_each(params = {}, opts = {}, &blk) # Updates the specified customer by setting the values of the parameters passed. Any parameters not provided will be left unchanged. For example, if you pass the source parameter, that becomes the customer's active source (e.g., a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the source parameter: for each of the customer's current subscriptions, if the subscription bills automatically and is in the past_due state, then the latest open invoice for the subscription with automatic collection enabled will be retried. This retry will not count as an automatic retry, and will not affect the next regularly scheduled payment for the invoice. Changing the default_source for a customer will not trigger this behavior. # # This request accepts mostly the same arguments as the customer creation call. - def self.update(id, params = {}, opts = {}) + def self.update(customer, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/customers/%s", { id: CGI.escape(id) }), + path: format("/v1/customers/%s", { customer: CGI.escape(customer) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/dispute.rb b/lib/stripe/resources/dispute.rb index 919d2587a..e91c3242c 100644 --- a/lib/stripe/resources/dispute.rb +++ b/lib/stripe/resources/dispute.rb @@ -667,10 +667,10 @@ def self.list(params = {}, opts = {}) # When you get a dispute, contacting your customer is always the best first step. If that doesn't work, you can submit evidence to help us resolve the dispute in your favor. You can do this in your [dashboard](https://dashboard.stripe.com/disputes), but if you prefer, you can use the API to submit evidence programmatically. # # Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://stripe.com/docs/disputes/categories). - def self.update(id, params = {}, opts = {}) + def self.update(dispute, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/disputes/%s", { id: CGI.escape(id) }), + path: format("/v1/disputes/%s", { dispute: CGI.escape(dispute) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/ephemeral_key.rb b/lib/stripe/resources/ephemeral_key.rb index 295ccb786..e4da261a9 100644 --- a/lib/stripe/resources/ephemeral_key.rb +++ b/lib/stripe/resources/ephemeral_key.rb @@ -33,10 +33,10 @@ def initialize(expand: nil) attr_reader :secret # Invalidates a short-lived API key for a given resource. - def self.delete(id, params = {}, opts = {}) + def self.delete(key, params = {}, opts = {}) request_stripe_object( method: :delete, - path: format("/v1/ephemeral_keys/%s", { id: CGI.escape(id) }), + path: format("/v1/ephemeral_keys/%s", { key: CGI.escape(key) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/file_link.rb b/lib/stripe/resources/file_link.rb index 501bc1146..1e671f3e4 100644 --- a/lib/stripe/resources/file_link.rb +++ b/lib/stripe/resources/file_link.rb @@ -138,10 +138,10 @@ def self.list(params = {}, opts = {}) end # Updates an existing file link object. Expired links can no longer be updated. - def self.update(id, params = {}, opts = {}) + def self.update(link, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/file_links/%s", { id: CGI.escape(id) }), + path: format("/v1/file_links/%s", { link: CGI.escape(link) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/financial_connections/session.rb b/lib/stripe/resources/financial_connections/session.rb index 8148299ed..325dffc4a 100644 --- a/lib/stripe/resources/financial_connections/session.rb +++ b/lib/stripe/resources/financial_connections/session.rb @@ -111,7 +111,7 @@ def initialize(mode: nil) attr_accessor :filters # Settings for configuring Session-specific limits. attr_accessor :limits - # Settings for configuring manual entry of account details for this Session. + # Customize manual entry behavior attr_accessor :manual_entry # List of data features that you would like to request access to. # diff --git a/lib/stripe/resources/identity/verification_session.rb b/lib/stripe/resources/identity/verification_session.rb index e0c60e7b6..683f9311c 100644 --- a/lib/stripe/resources/identity/verification_session.rb +++ b/lib/stripe/resources/identity/verification_session.rb @@ -495,10 +495,10 @@ def self.redact(session, params = {}, opts = {}) # # When the session status is requires_input, you can use this method to update the # verification check and options. - def self.update(id, params = {}, opts = {}) + def self.update(session, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/identity/verification_sessions/%s", { id: CGI.escape(id) }), + path: format("/v1/identity/verification_sessions/%s", { session: CGI.escape(session) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/invoice.rb b/lib/stripe/resources/invoice.rb index 09af3e68e..b3e251aa5 100644 --- a/lib/stripe/resources/invoice.rb +++ b/lib/stripe/resources/invoice.rb @@ -339,9 +339,9 @@ class ShippingCost < Stripe::StripeObject class Tax < Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. attr_reader :taxability_reason @@ -5842,7 +5842,7 @@ def initialize( attr_accessor :expand # The ID of the PaymentIntent to attach to the invoice. attr_accessor :payment_intent - # The ID of the PaymentRecord to detach from the invoice. + # The ID of the PaymentRecord to attach to the invoice. attr_accessor :payment_record # The PaymentRecord data for attaching an out of band payment to the invoice. attr_accessor :payment_record_data @@ -8169,10 +8169,10 @@ def self.create_preview(params = {}, opts = {}) end # Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://stripe.com/docs/api#void_invoice). - def self.delete(id, params = {}, opts = {}) + def self.delete(invoice, params = {}, opts = {}) request_stripe_object( method: :delete, - path: format("/v1/invoices/%s", { id: CGI.escape(id) }), + path: format("/v1/invoices/%s", { invoice: CGI.escape(invoice) }), params: params, opts: opts ) @@ -8332,10 +8332,10 @@ def self.upcoming(params = {}, opts = {}) # If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on, # sending reminders for, or [automatically reconciling](https://stripe.com/docs/billing/invoices/reconciliation) invoices, pass # auto_advance=false. - def self.update(id, params = {}, opts = {}) + def self.update(invoice, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/invoices/%s", { id: CGI.escape(id) }), + path: format("/v1/invoices/%s", { invoice: CGI.escape(invoice) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/invoice_item.rb b/lib/stripe/resources/invoice_item.rb index cc9c6f659..7374c0e09 100644 --- a/lib/stripe/resources/invoice_item.rb +++ b/lib/stripe/resources/invoice_item.rb @@ -475,10 +475,10 @@ def self.create(params = {}, opts = {}) end # Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they're not attached to invoices, or if it's attached to a draft invoice. - def self.delete(id, params = {}, opts = {}) + def self.delete(invoiceitem, params = {}, opts = {}) request_stripe_object( method: :delete, - path: format("/v1/invoiceitems/%s", { id: CGI.escape(id) }), + path: format("/v1/invoiceitems/%s", { invoiceitem: CGI.escape(invoiceitem) }), params: params, opts: opts ) @@ -500,10 +500,10 @@ def self.list(params = {}, opts = {}) end # Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it's attached to is closed. - def self.update(id, params = {}, opts = {}) + def self.update(invoiceitem, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/invoiceitems/%s", { id: CGI.escape(id) }), + path: format("/v1/invoiceitems/%s", { invoiceitem: CGI.escape(invoiceitem) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/invoice_line_item.rb b/lib/stripe/resources/invoice_line_item.rb index 9b9c3d3a3..8b315d1c7 100644 --- a/lib/stripe/resources/invoice_line_item.rb +++ b/lib/stripe/resources/invoice_line_item.rb @@ -350,10 +350,10 @@ def initialize( # so they can only be updated through this endpoint. Other fields, such as amount, live on both the invoice # item and the invoice line item, so updates on this endpoint will propagate to the invoice item as well. # Updating an invoice's line item is only possible before the invoice is finalized. - def self.update(id, params = {}, opts = {}) + def self.update(invoice, line_item_id, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/invoices/%s/lines/%s", { invoice: CGI.escape(invoice), id: CGI.escape(id) }), + path: format("/v1/invoices/%s/lines/%s", { invoice: CGI.escape(invoice), line_item_id: CGI.escape(line_item_id) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/issuing/authorization.rb b/lib/stripe/resources/issuing/authorization.rb index ef97e6176..09988afdd 100644 --- a/lib/stripe/resources/issuing/authorization.rb +++ b/lib/stripe/resources/issuing/authorization.rb @@ -1198,10 +1198,10 @@ def self.list(params = {}, opts = {}) end # Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. - def self.update(id, params = {}, opts = {}) + def self.update(authorization, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/issuing/authorizations/%s", { id: CGI.escape(id) }), + path: format("/v1/issuing/authorizations/%s", { authorization: CGI.escape(authorization) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/issuing/card.rb b/lib/stripe/resources/issuing/card.rb index 20506dffc..0c310d443 100644 --- a/lib/stripe/resources/issuing/card.rb +++ b/lib/stripe/resources/issuing/card.rb @@ -691,10 +691,10 @@ def self.list(params = {}, opts = {}) end # Updates the specified Issuing Card object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. - def self.update(id, params = {}, opts = {}) + def self.update(card, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/issuing/cards/%s", { id: CGI.escape(id) }), + path: format("/v1/issuing/cards/%s", { card: CGI.escape(card) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/issuing/cardholder.rb b/lib/stripe/resources/issuing/cardholder.rb index 983098779..a4c9f7622 100644 --- a/lib/stripe/resources/issuing/cardholder.rb +++ b/lib/stripe/resources/issuing/cardholder.rb @@ -695,10 +695,10 @@ def self.list(params = {}, opts = {}) end # Updates the specified Issuing Cardholder object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. - def self.update(id, params = {}, opts = {}) + def self.update(cardholder, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/issuing/cardholders/%s", { id: CGI.escape(id) }), + path: format("/v1/issuing/cardholders/%s", { cardholder: CGI.escape(cardholder) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/issuing/dispute.rb b/lib/stripe/resources/issuing/dispute.rb index 02a2e9d67..ea244d053 100644 --- a/lib/stripe/resources/issuing/dispute.rb +++ b/lib/stripe/resources/issuing/dispute.rb @@ -847,10 +847,10 @@ def self.submit(dispute, params = {}, opts = {}) end # Updates the specified Issuing Dispute object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on the evidence object can be unset by passing in an empty string. - def self.update(id, params = {}, opts = {}) + def self.update(dispute, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/issuing/disputes/%s", { id: CGI.escape(id) }), + path: format("/v1/issuing/disputes/%s", { dispute: CGI.escape(dispute) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/issuing/personalization_design.rb b/lib/stripe/resources/issuing/personalization_design.rb index ee943ea59..299cb239a 100644 --- a/lib/stripe/resources/issuing/personalization_design.rb +++ b/lib/stripe/resources/issuing/personalization_design.rb @@ -320,10 +320,10 @@ def self.list(params = {}, opts = {}) end # Updates a card personalization object. - def self.update(id, params = {}, opts = {}) + def self.update(personalization_design, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/issuing/personalization_designs/%s", { id: CGI.escape(id) }), + path: format("/v1/issuing/personalization_designs/%s", { personalization_design: CGI.escape(personalization_design) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/issuing/token.rb b/lib/stripe/resources/issuing/token.rb index 8ef3e93e7..8c9f61eaa 100644 --- a/lib/stripe/resources/issuing/token.rb +++ b/lib/stripe/resources/issuing/token.rb @@ -194,10 +194,10 @@ def self.list(params = {}, opts = {}) end # Attempts to update the specified Issuing Token object to the status specified. - def self.update(id, params = {}, opts = {}) + def self.update(token, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/issuing/tokens/%s", { id: CGI.escape(id) }), + path: format("/v1/issuing/tokens/%s", { token: CGI.escape(token) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/issuing/transaction.rb b/lib/stripe/resources/issuing/transaction.rb index 51316a7eb..6442c6a1b 100644 --- a/lib/stripe/resources/issuing/transaction.rb +++ b/lib/stripe/resources/issuing/transaction.rb @@ -955,10 +955,10 @@ def self.list(params = {}, opts = {}) end # Updates the specified Issuing Transaction object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. - def self.update(id, params = {}, opts = {}) + def self.update(transaction, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/issuing/transactions/%s", { id: CGI.escape(id) }), + path: format("/v1/issuing/transactions/%s", { transaction: CGI.escape(transaction) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/line_item.rb b/lib/stripe/resources/line_item.rb index dae0bf217..7db0ada6e 100644 --- a/lib/stripe/resources/line_item.rb +++ b/lib/stripe/resources/line_item.rb @@ -40,9 +40,9 @@ class Display < Stripe::StripeObject class Tax < Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. attr_reader :taxability_reason diff --git a/lib/stripe/resources/margin.rb b/lib/stripe/resources/margin.rb index 1df07a572..a8a23cddc 100644 --- a/lib/stripe/resources/margin.rb +++ b/lib/stripe/resources/margin.rb @@ -112,10 +112,10 @@ def self.list(params = {}, opts = {}) end # Update the specified margin object. Certain fields of the margin object are not editable. - def self.update(id, params = {}, opts = {}) + def self.update(margin, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/billing/margins/%s", { id: CGI.escape(id) }), + path: format("/v1/billing/margins/%s", { margin: CGI.escape(margin) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/order.rb b/lib/stripe/resources/order.rb index bc41f2377..f5bba6ba3 100644 --- a/lib/stripe/resources/order.rb +++ b/lib/stripe/resources/order.rb @@ -401,9 +401,9 @@ class ShippingCost < Stripe::StripeObject class Tax < Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. attr_reader :taxability_reason @@ -473,9 +473,9 @@ class Discount < Stripe::StripeObject class Tax < Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. attr_reader :taxability_reason diff --git a/lib/stripe/resources/payment_intent.rb b/lib/stripe/resources/payment_intent.rb index 942ed05fa..51af46f57 100644 --- a/lib/stripe/resources/payment_intent.rb +++ b/lib/stripe/resources/payment_intent.rb @@ -4674,7 +4674,7 @@ def initialize(mode: nil) @mode = mode end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. attr_accessor :filters # Customize manual entry behavior attr_accessor :manual_entry @@ -8009,7 +8009,7 @@ def initialize(mode: nil) @mode = mode end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. attr_accessor :filters # Customize manual entry behavior attr_accessor :manual_entry @@ -12064,7 +12064,7 @@ def initialize(mode: nil) @mode = mode end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. attr_accessor :filters # Customize manual entry behavior attr_accessor :manual_entry @@ -13183,10 +13183,10 @@ def self.trigger_action(intent, params = {}, opts = {}) # always requires you to confirm the PaymentIntent again. If you prefer to # update and confirm at the same time, we recommend updating properties through # the [confirm API](https://stripe.com/docs/api/payment_intents/confirm) instead. - def self.update(id, params = {}, opts = {}) + def self.update(intent, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/payment_intents/%s", { id: CGI.escape(id) }), + path: format("/v1/payment_intents/%s", { intent: CGI.escape(intent) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/payment_link.rb b/lib/stripe/resources/payment_link.rb index 272c4a9e5..432eaf431 100644 --- a/lib/stripe/resources/payment_link.rb +++ b/lib/stripe/resources/payment_link.rb @@ -1611,10 +1611,10 @@ def self.list_line_items(payment_link, params = {}, opts = {}) end # Updates a payment link. - def self.update(id, params = {}, opts = {}) + def self.update(payment_link, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/payment_links/%s", { id: CGI.escape(id) }), + path: format("/v1/payment_links/%s", { payment_link: CGI.escape(payment_link) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/payment_method.rb b/lib/stripe/resources/payment_method.rb index 3b9944948..eebc1dcea 100644 --- a/lib/stripe/resources/payment_method.rb +++ b/lib/stripe/resources/payment_method.rb @@ -200,7 +200,7 @@ class Wallet < Stripe::StripeObject end class Networks < Stripe::StripeObject - # All available networks for the card. + # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). attr_reader :available # The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. attr_reader :preferred @@ -357,7 +357,7 @@ class ShippingAddress < Stripe::StripeObject class CardPresent < Stripe::StripeObject class Networks < Stripe::StripeObject - # All available networks for the card. + # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). attr_reader :available # The preferred network for the card. attr_reader :preferred @@ -457,7 +457,7 @@ class Ideal < Stripe::StripeObject class InteracPresent < Stripe::StripeObject class Networks < Stripe::StripeObject - # All available networks for the card. + # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). attr_reader :available # The preferred network for the card. attr_reader :preferred @@ -1749,10 +1749,10 @@ def self.list(params = {}, opts = {}) end # Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated. - def self.update(id, params = {}, opts = {}) + def self.update(payment_method, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/payment_methods/%s", { id: CGI.escape(id) }), + path: format("/v1/payment_methods/%s", { payment_method: CGI.escape(payment_method) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/payment_method_configuration.rb b/lib/stripe/resources/payment_method_configuration.rb index 22ec18aa4..adcf9f180 100644 --- a/lib/stripe/resources/payment_method_configuration.rb +++ b/lib/stripe/resources/payment_method_configuration.rb @@ -2950,10 +2950,10 @@ def self.list(params = {}, opts = {}) end # Update payment method configuration - def self.update(id, params = {}, opts = {}) + def self.update(configuration, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/payment_method_configurations/%s", { id: CGI.escape(id) }), + path: format("/v1/payment_method_configurations/%s", { configuration: CGI.escape(configuration) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/payment_method_domain.rb b/lib/stripe/resources/payment_method_domain.rb index afa82cab5..c734d50ca 100644 --- a/lib/stripe/resources/payment_method_domain.rb +++ b/lib/stripe/resources/payment_method_domain.rb @@ -190,10 +190,10 @@ def self.list(params = {}, opts = {}) end # Updates an existing payment method domain. - def self.update(id, params = {}, opts = {}) + def self.update(payment_method_domain, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/payment_method_domains/%s", { id: CGI.escape(id) }), + path: format("/v1/payment_method_domains/%s", { payment_method_domain: CGI.escape(payment_method_domain) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/payout.rb b/lib/stripe/resources/payout.rb index e54223425..336fa3553 100644 --- a/lib/stripe/resources/payout.rb +++ b/lib/stripe/resources/payout.rb @@ -297,10 +297,10 @@ def self.reverse(payout, params = {}, opts = {}) end # Updates the specified payout by setting the values of the parameters you pass. We don't change parameters that you don't provide. This request only accepts the metadata as arguments. - def self.update(id, params = {}, opts = {}) + def self.update(payout, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/payouts/%s", { id: CGI.escape(id) }), + path: format("/v1/payouts/%s", { payout: CGI.escape(payout) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/plan.rb b/lib/stripe/resources/plan.rb index 68313e3ea..9a3503cd4 100644 --- a/lib/stripe/resources/plan.rb +++ b/lib/stripe/resources/plan.rb @@ -344,10 +344,10 @@ def self.create(params = {}, opts = {}) end # Deleting plans means new subscribers can't be added. Existing subscribers aren't affected. - def self.delete(id, params = {}, opts = {}) + def self.delete(plan, params = {}, opts = {}) request_stripe_object( method: :delete, - path: format("/v1/plans/%s", { id: CGI.escape(id) }), + path: format("/v1/plans/%s", { plan: CGI.escape(plan) }), params: params, opts: opts ) @@ -369,10 +369,10 @@ def self.list(params = {}, opts = {}) end # Updates the specified plan by setting the values of the parameters passed. Any parameters not provided are left unchanged. By design, you cannot change a plan's ID, amount, currency, or billing cycle. - def self.update(id, params = {}, opts = {}) + def self.update(plan, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/plans/%s", { id: CGI.escape(id) }), + path: format("/v1/plans/%s", { plan: CGI.escape(plan) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/price.rb b/lib/stripe/resources/price.rb index d47823254..12ce2e41a 100644 --- a/lib/stripe/resources/price.rb +++ b/lib/stripe/resources/price.rb @@ -687,10 +687,10 @@ def self.search_auto_paging_each(params = {}, opts = {}, &blk) end # Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged. - def self.update(id, params = {}, opts = {}) + def self.update(price, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/prices/%s", { id: CGI.escape(id) }), + path: format("/v1/prices/%s", { price: CGI.escape(price) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/promotion_code.rb b/lib/stripe/resources/promotion_code.rb index 3bfe4ef97..a39bc76ff 100644 --- a/lib/stripe/resources/promotion_code.rb +++ b/lib/stripe/resources/promotion_code.rb @@ -246,10 +246,10 @@ def self.list(params = {}, opts = {}) end # Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable. - def self.update(id, params = {}, opts = {}) + def self.update(promotion_code, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/promotion_codes/%s", { id: CGI.escape(id) }), + path: format("/v1/promotion_codes/%s", { promotion_code: CGI.escape(promotion_code) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/quote.rb b/lib/stripe/resources/quote.rb index 88c8ef167..1d2ed34a4 100644 --- a/lib/stripe/resources/quote.rb +++ b/lib/stripe/resources/quote.rb @@ -65,9 +65,9 @@ class Discount < Stripe::StripeObject class Tax < Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. attr_reader :taxability_reason @@ -116,9 +116,9 @@ class Discount < Stripe::StripeObject class Tax < Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. attr_reader :taxability_reason @@ -423,9 +423,9 @@ class Discount < Stripe::StripeObject class Tax < Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. attr_reader :taxability_reason @@ -3097,10 +3097,10 @@ def self.reestimate(quote, params = {}, opts = {}) end # A quote models prices and services for a customer. - def self.update(id, params = {}, opts = {}) + def self.update(quote, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/quotes/%s", { id: CGI.escape(id) }), + path: format("/v1/quotes/%s", { quote: CGI.escape(quote) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/quote_preview_invoice.rb b/lib/stripe/resources/quote_preview_invoice.rb index cb6cc1a80..30b54d485 100644 --- a/lib/stripe/resources/quote_preview_invoice.rb +++ b/lib/stripe/resources/quote_preview_invoice.rb @@ -338,9 +338,9 @@ class ShippingCost < Stripe::StripeObject class Tax < Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. attr_reader :taxability_reason diff --git a/lib/stripe/resources/radar/value_list.rb b/lib/stripe/resources/radar/value_list.rb index d4299e0e1..7c1858303 100644 --- a/lib/stripe/resources/radar/value_list.rb +++ b/lib/stripe/resources/radar/value_list.rb @@ -153,10 +153,10 @@ def self.create(params = {}, opts = {}) end # Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules. - def self.delete(id, params = {}, opts = {}) + def self.delete(value_list, params = {}, opts = {}) request_stripe_object( method: :delete, - path: format("/v1/radar/value_lists/%s", { id: CGI.escape(id) }), + path: format("/v1/radar/value_lists/%s", { value_list: CGI.escape(value_list) }), params: params, opts: opts ) @@ -183,10 +183,10 @@ def self.list(params = {}, opts = {}) end # Updates a ValueList object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note that item_type is immutable. - def self.update(id, params = {}, opts = {}) + def self.update(value_list, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/radar/value_lists/%s", { id: CGI.escape(id) }), + path: format("/v1/radar/value_lists/%s", { value_list: CGI.escape(value_list) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/radar/value_list_item.rb b/lib/stripe/resources/radar/value_list_item.rb index f39aa6a19..b08ba1bcf 100644 --- a/lib/stripe/resources/radar/value_list_item.rb +++ b/lib/stripe/resources/radar/value_list_item.rb @@ -122,10 +122,10 @@ def self.create(params = {}, opts = {}) end # Deletes a ValueListItem object, removing it from its parent value list. - def self.delete(id, params = {}, opts = {}) + def self.delete(item, params = {}, opts = {}) request_stripe_object( method: :delete, - path: format("/v1/radar/value_list_items/%s", { id: CGI.escape(id) }), + path: format("/v1/radar/value_list_items/%s", { item: CGI.escape(item) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/refund.rb b/lib/stripe/resources/refund.rb index a14ebd977..c64b5047e 100644 --- a/lib/stripe/resources/refund.rb +++ b/lib/stripe/resources/refund.rb @@ -461,10 +461,10 @@ def self.list(params = {}, opts = {}) # Updates the refund that you specify by setting the values of the passed parameters. Any parameters that you don't provide remain unchanged. # # This request only accepts metadata as an argument. - def self.update(id, params = {}, opts = {}) + def self.update(refund, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/refunds/%s", { id: CGI.escape(id) }), + path: format("/v1/refunds/%s", { refund: CGI.escape(refund) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/setup_intent.rb b/lib/stripe/resources/setup_intent.rb index 29e96d82d..4c384012e 100644 --- a/lib/stripe/resources/setup_intent.rb +++ b/lib/stripe/resources/setup_intent.rb @@ -1367,7 +1367,7 @@ def initialize(mode: nil) @mode = mode end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. attr_accessor :filters # Customize manual entry behavior attr_accessor :manual_entry @@ -2519,7 +2519,7 @@ def initialize(mode: nil) @mode = mode end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. attr_accessor :filters # Customize manual entry behavior attr_accessor :manual_entry @@ -3661,7 +3661,7 @@ def initialize(mode: nil) @mode = mode end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. attr_accessor :filters # Customize manual entry behavior attr_accessor :manual_entry @@ -3972,10 +3972,10 @@ def self.list(params = {}, opts = {}) end # Updates a SetupIntent object. - def self.update(id, params = {}, opts = {}) + def self.update(intent, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/setup_intents/%s", { id: CGI.escape(id) }), + path: format("/v1/setup_intents/%s", { intent: CGI.escape(intent) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/shipping_rate.rb b/lib/stripe/resources/shipping_rate.rb index b42684e53..765be3ca0 100644 --- a/lib/stripe/resources/shipping_rate.rb +++ b/lib/stripe/resources/shipping_rate.rb @@ -284,10 +284,10 @@ def self.list(params = {}, opts = {}) end # Updates an existing shipping rate object. - def self.update(id, params = {}, opts = {}) + def self.update(shipping_rate_token, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/shipping_rates/%s", { id: CGI.escape(id) }), + path: format("/v1/shipping_rates/%s", { shipping_rate_token: CGI.escape(shipping_rate_token) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/source.rb b/lib/stripe/resources/source.rb index 43d405ddb..481bd63b5 100644 --- a/lib/stripe/resources/source.rb +++ b/lib/stripe/resources/source.rb @@ -1271,10 +1271,10 @@ def self.create(params = {}, opts = {}) # Updates the specified source by setting the values of the parameters passed. Any parameters not provided will be left unchanged. # # This request accepts the metadata and owner as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our [payment method guides](https://stripe.com/docs/sources) for more detail. - def self.update(id, params = {}, opts = {}) + def self.update(source, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/sources/%s", { id: CGI.escape(id) }), + path: format("/v1/sources/%s", { source: CGI.escape(source) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/subscription.rb b/lib/stripe/resources/subscription.rb index 119b217c2..0639d785c 100644 --- a/lib/stripe/resources/subscription.rb +++ b/lib/stripe/resources/subscription.rb @@ -2191,10 +2191,10 @@ def self.search_auto_paging_each(params = {}, opts = {}, &blk) # If you don't want to prorate, set the proration_behavior option to none. With this option, the customer is billed 100 on May 1 and 200 on June 1. Similarly, if you set proration_behavior to none when switching between different billing intervals (for example, from monthly to yearly), we don't generate any credits for the old subscription's unused time. We still reset the billing date and bill immediately for the new subscription. # # Updating the quantity on a subscription many times in an hour may result in [rate limiting. If you need to bill for a frequently changing quantity, consider integrating usage-based billing](https://stripe.com/docs/rate-limits) instead. - def self.update(id, params = {}, opts = {}) + def self.update(subscription_exposed_id, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/subscriptions/%s", { id: CGI.escape(id) }), + path: format("/v1/subscriptions/%s", { subscription_exposed_id: CGI.escape(subscription_exposed_id) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/subscription_item.rb b/lib/stripe/resources/subscription_item.rb index c54974919..f7b7f1c6c 100644 --- a/lib/stripe/resources/subscription_item.rb +++ b/lib/stripe/resources/subscription_item.rb @@ -465,10 +465,10 @@ def self.create(params = {}, opts = {}) end # Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription. - def self.delete(id, params = {}, opts = {}) + def self.delete(item, params = {}, opts = {}) request_stripe_object( method: :delete, - path: format("/v1/subscription_items/%s", { id: CGI.escape(id) }), + path: format("/v1/subscription_items/%s", { item: CGI.escape(item) }), params: params, opts: opts ) @@ -495,10 +495,10 @@ def self.list(params = {}, opts = {}) end # Updates the plan or quantity of an item on a current subscription. - def self.update(id, params = {}, opts = {}) + def self.update(item, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/subscription_items/%s", { id: CGI.escape(id) }), + path: format("/v1/subscription_items/%s", { item: CGI.escape(item) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/subscription_schedule.rb b/lib/stripe/resources/subscription_schedule.rb index 6b3d6b652..a8da9ad72 100644 --- a/lib/stripe/resources/subscription_schedule.rb +++ b/lib/stripe/resources/subscription_schedule.rb @@ -2478,10 +2478,10 @@ def self.release(schedule, params = {}, opts = {}) end # Updates an existing subscription schedule. - def self.update(id, params = {}, opts = {}) + def self.update(schedule, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/subscription_schedules/%s", { id: CGI.escape(id) }), + path: format("/v1/subscription_schedules/%s", { schedule: CGI.escape(schedule) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/tax/calculation.rb b/lib/stripe/resources/tax/calculation.rb index c8f855a78..ac7f7cc29 100644 --- a/lib/stripe/resources/tax/calculation.rb +++ b/lib/stripe/resources/tax/calculation.rb @@ -76,7 +76,7 @@ class Jurisdiction < Stripe::StripeObject attr_reader :display_name # Indicates the level of the jurisdiction imposing the tax. attr_reader :level - # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. + # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. attr_reader :state end diff --git a/lib/stripe/resources/tax/calculation_line_item.rb b/lib/stripe/resources/tax/calculation_line_item.rb index 09dea0778..e365f6ad7 100644 --- a/lib/stripe/resources/tax/calculation_line_item.rb +++ b/lib/stripe/resources/tax/calculation_line_item.rb @@ -17,7 +17,7 @@ class Jurisdiction < Stripe::StripeObject attr_reader :display_name # Indicates the level of the jurisdiction imposing the tax. attr_reader :level - # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. + # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. attr_reader :state end diff --git a/lib/stripe/resources/tax/transaction.rb b/lib/stripe/resources/tax/transaction.rb index e6c85a33b..0456ef735 100644 --- a/lib/stripe/resources/tax/transaction.rb +++ b/lib/stripe/resources/tax/transaction.rb @@ -79,7 +79,7 @@ class Jurisdiction < Stripe::StripeObject attr_reader :display_name # Indicates the level of the jurisdiction imposing the tax. attr_reader :level - # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. + # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. attr_reader :state end diff --git a/lib/stripe/resources/tax_rate.rb b/lib/stripe/resources/tax_rate.rb index 69046a149..edfb176bd 100644 --- a/lib/stripe/resources/tax_rate.rb +++ b/lib/stripe/resources/tax_rate.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates) class TaxRate < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List @@ -93,7 +93,7 @@ class CreateParams < Stripe::RequestParams attr_accessor :metadata # This represents the tax rate percent out of 100. attr_accessor :percentage - # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. + # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. attr_accessor :state # The high-level tax type, such as `vat` or `sales_tax`. attr_accessor :tax_type @@ -149,7 +149,7 @@ class UpdateParams < Stripe::RequestParams attr_accessor :jurisdiction # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. attr_accessor :metadata - # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. + # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. attr_accessor :state # The high-level tax type, such as `vat` or `sales_tax`. attr_accessor :tax_type @@ -210,7 +210,7 @@ def initialize( attr_reader :percentage # Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. attr_reader :rate_type - # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. + # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. attr_reader :state # The high-level tax type, such as `vat` or `sales_tax`. attr_reader :tax_type @@ -226,10 +226,10 @@ def self.list(params = {}, opts = {}) end # Updates an existing tax rate. - def self.update(id, params = {}, opts = {}) + def self.update(tax_rate, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/tax_rates/%s", { id: CGI.escape(id) }), + path: format("/v1/tax_rates/%s", { tax_rate: CGI.escape(tax_rate) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/terminal/configuration.rb b/lib/stripe/resources/terminal/configuration.rb index ca86719fd..db11417b1 100644 --- a/lib/stripe/resources/terminal/configuration.rb +++ b/lib/stripe/resources/terminal/configuration.rb @@ -1086,10 +1086,10 @@ def self.create(params = {}, opts = {}) end # Deletes a Configuration object. - def self.delete(id, params = {}, opts = {}) + def self.delete(configuration, params = {}, opts = {}) request_stripe_object( method: :delete, - path: format("/v1/terminal/configurations/%s", { id: CGI.escape(id) }), + path: format("/v1/terminal/configurations/%s", { configuration: CGI.escape(configuration) }), params: params, opts: opts ) @@ -1116,10 +1116,10 @@ def self.list(params = {}, opts = {}) end # Updates a new Configuration object. - def self.update(id, params = {}, opts = {}) + def self.update(configuration, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/terminal/configurations/%s", { id: CGI.escape(id) }), + path: format("/v1/terminal/configurations/%s", { configuration: CGI.escape(configuration) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/terminal/location.rb b/lib/stripe/resources/terminal/location.rb index d34c4c857..57814b64f 100644 --- a/lib/stripe/resources/terminal/location.rb +++ b/lib/stripe/resources/terminal/location.rb @@ -204,10 +204,10 @@ def self.create(params = {}, opts = {}) end # Deletes a Location object. - def self.delete(id, params = {}, opts = {}) + def self.delete(location, params = {}, opts = {}) request_stripe_object( method: :delete, - path: format("/v1/terminal/locations/%s", { id: CGI.escape(id) }), + path: format("/v1/terminal/locations/%s", { location: CGI.escape(location) }), params: params, opts: opts ) @@ -234,10 +234,10 @@ def self.list(params = {}, opts = {}) end # Updates a Location object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. - def self.update(id, params = {}, opts = {}) + def self.update(location, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/terminal/locations/%s", { id: CGI.escape(id) }), + path: format("/v1/terminal/locations/%s", { location: CGI.escape(location) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/terminal/reader.rb b/lib/stripe/resources/terminal/reader.rb index 765da842f..d8d0b33cb 100644 --- a/lib/stripe/resources/terminal/reader.rb +++ b/lib/stripe/resources/terminal/reader.rb @@ -822,10 +822,10 @@ def self.create(params = {}, opts = {}) end # Deletes a Reader object. - def self.delete(id, params = {}, opts = {}) + def self.delete(reader, params = {}, opts = {}) request_stripe_object( method: :delete, - path: format("/v1/terminal/readers/%s", { id: CGI.escape(id) }), + path: format("/v1/terminal/readers/%s", { reader: CGI.escape(reader) }), params: params, opts: opts ) @@ -932,10 +932,10 @@ def self.set_reader_display(reader, params = {}, opts = {}) end # Updates a Reader object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. - def self.update(id, params = {}, opts = {}) + def self.update(reader, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/terminal/readers/%s", { id: CGI.escape(id) }), + path: format("/v1/terminal/readers/%s", { reader: CGI.escape(reader) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/test_helpers/test_clock.rb b/lib/stripe/resources/test_helpers/test_clock.rb index 59911e2ca..b180eb83f 100644 --- a/lib/stripe/resources/test_helpers/test_clock.rb +++ b/lib/stripe/resources/test_helpers/test_clock.rb @@ -133,10 +133,10 @@ def self.create(params = {}, opts = {}) end # Deletes a test clock. - def self.delete(id, params = {}, opts = {}) + def self.delete(test_clock, params = {}, opts = {}) request_stripe_object( method: :delete, - path: format("/v1/test_helpers/test_clocks/%s", { id: CGI.escape(id) }), + path: format("/v1/test_helpers/test_clocks/%s", { test_clock: CGI.escape(test_clock) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/topup.rb b/lib/stripe/resources/topup.rb index ef3bab902..be92809dd 100644 --- a/lib/stripe/resources/topup.rb +++ b/lib/stripe/resources/topup.rb @@ -222,10 +222,10 @@ def self.list(params = {}, opts = {}) end # Updates the metadata of a top-up. Other top-up details are not editable by design. - def self.update(id, params = {}, opts = {}) + def self.update(topup, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/topups/%s", { id: CGI.escape(id) }), + path: format("/v1/topups/%s", { topup: CGI.escape(topup) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/transfer.rb b/lib/stripe/resources/transfer.rb index f9338d2e1..6878db1e7 100644 --- a/lib/stripe/resources/transfer.rb +++ b/lib/stripe/resources/transfer.rb @@ -191,10 +191,10 @@ def self.list(params = {}, opts = {}) # Updates the specified transfer by setting the values of the parameters passed. Any parameters not provided will be left unchanged. # # This request accepts only metadata as an argument. - def self.update(id, params = {}, opts = {}) + def self.update(transfer, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/transfers/%s", { id: CGI.escape(id) }), + path: format("/v1/transfers/%s", { transfer: CGI.escape(transfer) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/treasury/financial_account.rb b/lib/stripe/resources/treasury/financial_account.rb index 054e2cb9d..df0b22322 100644 --- a/lib/stripe/resources/treasury/financial_account.rb +++ b/lib/stripe/resources/treasury/financial_account.rb @@ -828,10 +828,10 @@ def self.retrieve_features(financial_account, params = {}, opts = {}) end # Updates the details of a FinancialAccount. - def self.update(id, params = {}, opts = {}) + def self.update(financial_account, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/treasury/financial_accounts/%s", { id: CGI.escape(id) }), + path: format("/v1/treasury/financial_accounts/%s", { financial_account: CGI.escape(financial_account) }), params: params, opts: opts ) diff --git a/lib/stripe/resources/webhook_endpoint.rb b/lib/stripe/resources/webhook_endpoint.rb index 5102f87ab..a3ce4b5b5 100644 --- a/lib/stripe/resources/webhook_endpoint.rb +++ b/lib/stripe/resources/webhook_endpoint.rb @@ -153,10 +153,10 @@ def self.create(params = {}, opts = {}) end # You can also delete webhook endpoints via the [webhook endpoint management](https://dashboard.stripe.com/account/webhooks) page of the Stripe dashboard. - def self.delete(id, params = {}, opts = {}) + def self.delete(webhook_endpoint, params = {}, opts = {}) request_stripe_object( method: :delete, - path: format("/v1/webhook_endpoints/%s", { id: CGI.escape(id) }), + path: format("/v1/webhook_endpoints/%s", { webhook_endpoint: CGI.escape(webhook_endpoint) }), params: params, opts: opts ) @@ -178,10 +178,10 @@ def self.list(params = {}, opts = {}) end # Updates the webhook endpoint. You may edit the url, the list of enabled_events, and the status of your endpoint. - def self.update(id, params = {}, opts = {}) + def self.update(webhook_endpoint, params = {}, opts = {}) request_stripe_object( method: :post, - path: format("/v1/webhook_endpoints/%s", { id: CGI.escape(id) }), + path: format("/v1/webhook_endpoints/%s", { webhook_endpoint: CGI.escape(webhook_endpoint) }), params: params, opts: opts ) diff --git a/lib/stripe/services/account_session_service.rb b/lib/stripe/services/account_session_service.rb index 70df8aad5..4e7033393 100644 --- a/lib/stripe/services/account_session_service.rb +++ b/lib/stripe/services/account_session_service.rb @@ -491,6 +491,20 @@ def initialize(enabled: nil, features: nil) end end + class ProductTaxCodeSelector < Stripe::RequestParams + class Features < Stripe::RequestParams + end + # Whether the embedded component is enabled. + attr_accessor :enabled + # The list of features enabled in the embedded component. + attr_accessor :features + + def initialize(enabled: nil, features: nil) + @enabled = enabled + @features = features + end + end + class Recipients < Stripe::RequestParams class Features < Stripe::RequestParams # Whether to allow sending money. @@ -606,6 +620,8 @@ def initialize(enabled: nil, features: nil) attr_accessor :payouts # Configuration for the payouts list embedded component. attr_accessor :payouts_list + # Configuration for the product tax code selector embedded component. + attr_accessor :product_tax_code_selector # Configuration for the recipients component. attr_accessor :recipients # Configuration for the reporting chart embedded component. @@ -638,6 +654,7 @@ def initialize( payments: nil, payouts: nil, payouts_list: nil, + product_tax_code_selector: nil, recipients: nil, reporting_chart: nil, tax_registrations: nil, @@ -664,6 +681,7 @@ def initialize( @payments = payments @payouts = payouts @payouts_list = payouts_list + @product_tax_code_selector = product_tax_code_selector @recipients = recipients @reporting_chart = reporting_chart @tax_registrations = tax_registrations diff --git a/lib/stripe/services/billing/credit_balance_summary_service.rb b/lib/stripe/services/billing/credit_balance_summary_service.rb index 04518de6c..4b071917b 100644 --- a/lib/stripe/services/billing/credit_balance_summary_service.rb +++ b/lib/stripe/services/billing/credit_balance_summary_service.rb @@ -7,11 +7,22 @@ class CreditBalanceSummaryService < StripeService class RetrieveParams < Stripe::RequestParams class Filter < Stripe::RequestParams class ApplicabilityScope < Stripe::RequestParams + class Price < Stripe::RequestParams + # The price ID this credit grant should apply to. + attr_accessor :id + + def initialize(id: nil) + @id = id + end + end # The price type that credit grants can apply to. We currently only support the `metered` price type. attr_accessor :price_type + # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. + attr_accessor :prices - def initialize(price_type: nil) + def initialize(price_type: nil, prices: nil) @price_type = price_type + @prices = prices end end # The billing credit applicability scope for which to fetch credit balance summary. diff --git a/lib/stripe/services/billing/credit_grant_service.rb b/lib/stripe/services/billing/credit_grant_service.rb index 3cc7c869b..f4475495d 100644 --- a/lib/stripe/services/billing/credit_grant_service.rb +++ b/lib/stripe/services/billing/credit_grant_service.rb @@ -57,11 +57,22 @@ def initialize(monetary: nil, type: nil) class ApplicabilityConfig < Stripe::RequestParams class Scope < Stripe::RequestParams + class Price < Stripe::RequestParams + # The price ID this credit grant should apply to. + attr_accessor :id + + def initialize(id: nil) + @id = id + end + end # The price type that credit grants can apply to. We currently only support the `metered` price type. attr_accessor :price_type + # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. + attr_accessor :prices - def initialize(price_type: nil) + def initialize(price_type: nil, prices: nil) @price_type = price_type + @prices = prices end end # Specify the scope of this applicability config. diff --git a/lib/stripe/services/checkout/session_service.rb b/lib/stripe/services/checkout/session_service.rb index ce29180f0..315013ae8 100644 --- a/lib/stripe/services/checkout/session_service.rb +++ b/lib/stripe/services/checkout/session_service.rb @@ -911,6 +911,15 @@ def initialize(enabled: nil) @enabled = enabled end end + + class Restrictions < Stripe::RequestParams + # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. + attr_accessor :brands_blocked + + def initialize(brands_blocked: nil) + @brands_blocked = brands_blocked + end + end # Installment options for card payments attr_accessor :installments # Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession. @@ -925,6 +934,8 @@ def initialize(enabled: nil) attr_accessor :request_overcapture # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. attr_accessor :request_three_d_secure + # Restrictions to apply to the card payment method. For example, you can block specific card brands. + attr_accessor :restrictions # 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. @@ -946,6 +957,7 @@ def initialize( request_multicapture: nil, request_overcapture: nil, request_three_d_secure: nil, + restrictions: nil, setup_future_usage: nil, statement_descriptor_suffix_kana: nil, statement_descriptor_suffix_kanji: nil @@ -957,6 +969,7 @@ def initialize( @request_multicapture = request_multicapture @request_overcapture = request_overcapture @request_three_d_secure = request_three_d_secure + @restrictions = restrictions @setup_future_usage = setup_future_usage @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji diff --git a/lib/stripe/services/financial_connections/session_service.rb b/lib/stripe/services/financial_connections/session_service.rb index a2e89ce8c..d1259211e 100644 --- a/lib/stripe/services/financial_connections/session_service.rb +++ b/lib/stripe/services/financial_connections/session_service.rb @@ -69,7 +69,7 @@ def initialize(mode: nil) attr_accessor :filters # Settings for configuring Session-specific limits. attr_accessor :limits - # Settings for configuring manual entry of account details for this Session. + # Customize manual entry behavior attr_accessor :manual_entry # List of data features that you would like to request access to. # diff --git a/lib/stripe/services/invoice_service.rb b/lib/stripe/services/invoice_service.rb index ec5ac9f2c..37f4b706d 100644 --- a/lib/stripe/services/invoice_service.rb +++ b/lib/stripe/services/invoice_service.rb @@ -3518,7 +3518,7 @@ def initialize( attr_accessor :expand # The ID of the PaymentIntent to attach to the invoice. attr_accessor :payment_intent - # The ID of the PaymentRecord to detach from the invoice. + # The ID of the PaymentRecord to attach to the invoice. attr_accessor :payment_record # The PaymentRecord data for attaching an out of band payment to the invoice. attr_accessor :payment_record_data diff --git a/lib/stripe/services/payment_intent_service.rb b/lib/stripe/services/payment_intent_service.rb index 552851efd..45589594c 100644 --- a/lib/stripe/services/payment_intent_service.rb +++ b/lib/stripe/services/payment_intent_service.rb @@ -2814,7 +2814,7 @@ def initialize(mode: nil) @mode = mode end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. attr_accessor :filters # Customize manual entry behavior attr_accessor :manual_entry @@ -6149,7 +6149,7 @@ def initialize(mode: nil) @mode = mode end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. attr_accessor :filters # Customize manual entry behavior attr_accessor :manual_entry @@ -10204,7 +10204,7 @@ def initialize(mode: nil) @mode = mode end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. attr_accessor :filters # Customize manual entry behavior attr_accessor :manual_entry diff --git a/lib/stripe/services/setup_intent_service.rb b/lib/stripe/services/setup_intent_service.rb index 2b1b97b2f..0b34192e9 100644 --- a/lib/stripe/services/setup_intent_service.rb +++ b/lib/stripe/services/setup_intent_service.rb @@ -1039,7 +1039,7 @@ def initialize(mode: nil) @mode = mode end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. attr_accessor :filters # Customize manual entry behavior attr_accessor :manual_entry @@ -2191,7 +2191,7 @@ def initialize(mode: nil) @mode = mode end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. attr_accessor :filters # Customize manual entry behavior attr_accessor :manual_entry @@ -3333,7 +3333,7 @@ def initialize(mode: nil) @mode = mode end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. attr_accessor :filters # Customize manual entry behavior attr_accessor :manual_entry diff --git a/lib/stripe/services/tax_rate_service.rb b/lib/stripe/services/tax_rate_service.rb index d73b2b94a..ba9dabc1b 100644 --- a/lib/stripe/services/tax_rate_service.rb +++ b/lib/stripe/services/tax_rate_service.rb @@ -74,7 +74,7 @@ class CreateParams < Stripe::RequestParams attr_accessor :metadata # This represents the tax rate percent out of 100. attr_accessor :percentage - # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. + # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. attr_accessor :state # The high-level tax type, such as `vat` or `sales_tax`. attr_accessor :tax_type @@ -130,7 +130,7 @@ class UpdateParams < Stripe::RequestParams attr_accessor :jurisdiction # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. attr_accessor :metadata - # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. + # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. attr_accessor :state # The high-level tax type, such as `vat` or `sales_tax`. attr_accessor :tax_type diff --git a/rbi/stripe/resources/account.rbi b/rbi/stripe/resources/account.rbi index e7c2d3c3f..0e347e6ca 100644 --- a/rbi/stripe/resources/account.rbi +++ b/rbi/stripe/resources/account.rbi @@ -631,6 +631,9 @@ module Stripe # Attribute for field payouts sig { returns(Payouts) } attr_reader :payouts + # Represents the rejected reason of the account. Empty if account is not rejected, or rejected by Stripe. Please see [this page for more details](https://stripe.com/docs/connect/) + sig { returns(String) } + attr_reader :rejected_reason end class Settings < Stripe::StripeObject class BacsDebitPayments < Stripe::StripeObject @@ -5114,9 +5117,9 @@ module Stripe # # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead. sig { - params(id: String, params: T.any(::Stripe::Account::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(account: String, params: T.any(::Stripe::Account::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) } - def self.delete(id, params = {}, opts = {}); end + def self.delete(account, params = {}, opts = {}); end # With [Connect](https://stripe.com/connect), you can delete accounts you manage. # @@ -5178,8 +5181,8 @@ module Stripe # To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our # [Connect](https://stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts. sig { - params(id: String, params: T.any(::Stripe::Account::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(account: String, params: T.any(::Stripe::Account::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) } - def self.update(id, params = {}, opts = {}); end + def self.update(account, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/account_notice.rbi b/rbi/stripe/resources/account_notice.rbi index 1828390a6..81c7c2041 100644 --- a/rbi/stripe/resources/account_notice.rbi +++ b/rbi/stripe/resources/account_notice.rbi @@ -132,8 +132,8 @@ module Stripe # Updates an AccountNotice object. sig { - params(id: String, params: T.any(::Stripe::AccountNotice::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::AccountNotice) + params(account_notice: String, params: T.any(::Stripe::AccountNotice::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::AccountNotice) } - def self.update(id, params = {}, opts = {}); end + def self.update(account_notice, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/account_session.rbi b/rbi/stripe/resources/account_session.rbi index df196543a..2e6476520 100644 --- a/rbi/stripe/resources/account_session.rbi +++ b/rbi/stripe/resources/account_session.rbi @@ -902,6 +902,23 @@ module Stripe } def initialize(enabled: nil, features: nil); end end + class ProductTaxCodeSelector < Stripe::RequestParams + class Features < Stripe::RequestParams + + end + # Whether the embedded component is enabled. + sig { returns(T::Boolean) } + attr_accessor :enabled + # The list of features enabled in the embedded component. + sig { + returns(::Stripe::AccountSession::CreateParams::Components::ProductTaxCodeSelector::Features) + } + attr_accessor :features + sig { + params(enabled: T::Boolean, features: ::Stripe::AccountSession::CreateParams::Components::ProductTaxCodeSelector::Features).void + } + def initialize(enabled: nil, features: nil); end + end class Recipients < Stripe::RequestParams class Features < Stripe::RequestParams # Whether to allow sending money. @@ -1053,6 +1070,9 @@ module Stripe # Configuration for the payouts list embedded component. sig { returns(::Stripe::AccountSession::CreateParams::Components::PayoutsList) } attr_accessor :payouts_list + # Configuration for the product tax code selector embedded component. + sig { returns(::Stripe::AccountSession::CreateParams::Components::ProductTaxCodeSelector) } + attr_accessor :product_tax_code_selector # Configuration for the recipients component. sig { returns(::Stripe::AccountSession::CreateParams::Components::Recipients) } attr_accessor :recipients @@ -1069,7 +1089,7 @@ module Stripe sig { returns(::Stripe::AccountSession::CreateParams::Components::TaxThresholdMonitoring) } attr_accessor :tax_threshold_monitoring sig { - params(account_management: ::Stripe::AccountSession::CreateParams::Components::AccountManagement, account_onboarding: ::Stripe::AccountSession::CreateParams::Components::AccountOnboarding, app_install: ::Stripe::AccountSession::CreateParams::Components::AppInstall, app_viewport: ::Stripe::AccountSession::CreateParams::Components::AppViewport, balances: ::Stripe::AccountSession::CreateParams::Components::Balances, capital_financing: ::Stripe::AccountSession::CreateParams::Components::CapitalFinancing, capital_financing_application: ::Stripe::AccountSession::CreateParams::Components::CapitalFinancingApplication, capital_financing_promotion: ::Stripe::AccountSession::CreateParams::Components::CapitalFinancingPromotion, capital_overview: ::Stripe::AccountSession::CreateParams::Components::CapitalOverview, documents: ::Stripe::AccountSession::CreateParams::Components::Documents, financial_account: ::Stripe::AccountSession::CreateParams::Components::FinancialAccount, financial_account_transactions: ::Stripe::AccountSession::CreateParams::Components::FinancialAccountTransactions, issuing_card: ::Stripe::AccountSession::CreateParams::Components::IssuingCard, issuing_cards_list: ::Stripe::AccountSession::CreateParams::Components::IssuingCardsList, notification_banner: ::Stripe::AccountSession::CreateParams::Components::NotificationBanner, payment_details: ::Stripe::AccountSession::CreateParams::Components::PaymentDetails, payment_method_settings: ::Stripe::AccountSession::CreateParams::Components::PaymentMethodSettings, payments: ::Stripe::AccountSession::CreateParams::Components::Payments, payouts: ::Stripe::AccountSession::CreateParams::Components::Payouts, payouts_list: ::Stripe::AccountSession::CreateParams::Components::PayoutsList, recipients: ::Stripe::AccountSession::CreateParams::Components::Recipients, reporting_chart: ::Stripe::AccountSession::CreateParams::Components::ReportingChart, tax_registrations: ::Stripe::AccountSession::CreateParams::Components::TaxRegistrations, tax_settings: ::Stripe::AccountSession::CreateParams::Components::TaxSettings, tax_threshold_monitoring: ::Stripe::AccountSession::CreateParams::Components::TaxThresholdMonitoring).void + params(account_management: ::Stripe::AccountSession::CreateParams::Components::AccountManagement, account_onboarding: ::Stripe::AccountSession::CreateParams::Components::AccountOnboarding, app_install: ::Stripe::AccountSession::CreateParams::Components::AppInstall, app_viewport: ::Stripe::AccountSession::CreateParams::Components::AppViewport, balances: ::Stripe::AccountSession::CreateParams::Components::Balances, capital_financing: ::Stripe::AccountSession::CreateParams::Components::CapitalFinancing, capital_financing_application: ::Stripe::AccountSession::CreateParams::Components::CapitalFinancingApplication, capital_financing_promotion: ::Stripe::AccountSession::CreateParams::Components::CapitalFinancingPromotion, capital_overview: ::Stripe::AccountSession::CreateParams::Components::CapitalOverview, documents: ::Stripe::AccountSession::CreateParams::Components::Documents, financial_account: ::Stripe::AccountSession::CreateParams::Components::FinancialAccount, financial_account_transactions: ::Stripe::AccountSession::CreateParams::Components::FinancialAccountTransactions, issuing_card: ::Stripe::AccountSession::CreateParams::Components::IssuingCard, issuing_cards_list: ::Stripe::AccountSession::CreateParams::Components::IssuingCardsList, notification_banner: ::Stripe::AccountSession::CreateParams::Components::NotificationBanner, payment_details: ::Stripe::AccountSession::CreateParams::Components::PaymentDetails, payment_method_settings: ::Stripe::AccountSession::CreateParams::Components::PaymentMethodSettings, payments: ::Stripe::AccountSession::CreateParams::Components::Payments, payouts: ::Stripe::AccountSession::CreateParams::Components::Payouts, payouts_list: ::Stripe::AccountSession::CreateParams::Components::PayoutsList, product_tax_code_selector: ::Stripe::AccountSession::CreateParams::Components::ProductTaxCodeSelector, recipients: ::Stripe::AccountSession::CreateParams::Components::Recipients, reporting_chart: ::Stripe::AccountSession::CreateParams::Components::ReportingChart, tax_registrations: ::Stripe::AccountSession::CreateParams::Components::TaxRegistrations, tax_settings: ::Stripe::AccountSession::CreateParams::Components::TaxSettings, tax_threshold_monitoring: ::Stripe::AccountSession::CreateParams::Components::TaxThresholdMonitoring).void } def initialize( account_management: nil, @@ -1092,6 +1112,7 @@ module Stripe payments: nil, payouts: nil, payouts_list: nil, + product_tax_code_selector: nil, recipients: nil, reporting_chart: nil, tax_registrations: nil, diff --git a/rbi/stripe/resources/apple_pay_domain.rbi b/rbi/stripe/resources/apple_pay_domain.rbi index 488957af0..421474ceb 100644 --- a/rbi/stripe/resources/apple_pay_domain.rbi +++ b/rbi/stripe/resources/apple_pay_domain.rbi @@ -78,9 +78,9 @@ module Stripe # Delete an apple pay domain. sig { - params(id: String, params: T.any(::Stripe::ApplePayDomain::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplePayDomain) + params(domain: String, params: T.any(::Stripe::ApplePayDomain::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplePayDomain) } - def self.delete(id, params = {}, opts = {}); end + def self.delete(domain, params = {}, opts = {}); end # Delete an apple pay domain. sig { diff --git a/rbi/stripe/resources/balance.rbi b/rbi/stripe/resources/balance.rbi index cff5c24e5..209523065 100644 --- a/rbi/stripe/resources/balance.rbi +++ b/rbi/stripe/resources/balance.rbi @@ -17,13 +17,13 @@ module Stripe class Balance < SingletonAPIResource class Available < Stripe::StripeObject class SourceTypes < Stripe::StripeObject - # Amount for bank account. + # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(Integer) } attr_reader :bank_account - # Amount for card. + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). sig { returns(Integer) } attr_reader :card - # Amount for FPX. + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. sig { returns(Integer) } attr_reader :fpx end @@ -39,13 +39,13 @@ module Stripe end class ConnectReserved < Stripe::StripeObject class SourceTypes < Stripe::StripeObject - # Amount for bank account. + # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(Integer) } attr_reader :bank_account - # Amount for card. + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). sig { returns(Integer) } attr_reader :card - # Amount for FPX. + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. sig { returns(Integer) } attr_reader :fpx end @@ -62,13 +62,13 @@ module Stripe class InstantAvailable < Stripe::StripeObject class NetAvailable < Stripe::StripeObject class SourceTypes < Stripe::StripeObject - # Amount for bank account. + # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(Integer) } attr_reader :bank_account - # Amount for card. + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). sig { returns(Integer) } attr_reader :card - # Amount for FPX. + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. sig { returns(Integer) } attr_reader :fpx end @@ -83,13 +83,13 @@ module Stripe attr_reader :source_types end class SourceTypes < Stripe::StripeObject - # Amount for bank account. + # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(Integer) } attr_reader :bank_account - # Amount for card. + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). sig { returns(Integer) } attr_reader :card - # Amount for FPX. + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. sig { returns(Integer) } attr_reader :fpx end @@ -109,13 +109,13 @@ module Stripe class Issuing < Stripe::StripeObject class Available < Stripe::StripeObject class SourceTypes < Stripe::StripeObject - # Amount for bank account. + # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(Integer) } attr_reader :bank_account - # Amount for card. + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). sig { returns(Integer) } attr_reader :card - # Amount for FPX. + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. sig { returns(Integer) } attr_reader :fpx end @@ -135,13 +135,13 @@ module Stripe end class Pending < Stripe::StripeObject class SourceTypes < Stripe::StripeObject - # Amount for bank account. + # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(Integer) } attr_reader :bank_account - # Amount for card. + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). sig { returns(Integer) } attr_reader :card - # Amount for FPX. + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. sig { returns(Integer) } attr_reader :fpx end diff --git a/rbi/stripe/resources/billing/credit_balance_summary.rbi b/rbi/stripe/resources/billing/credit_balance_summary.rbi index 61eac4f56..0bb57b844 100644 --- a/rbi/stripe/resources/billing/credit_balance_summary.rbi +++ b/rbi/stripe/resources/billing/credit_balance_summary.rbi @@ -61,11 +61,25 @@ module Stripe class RetrieveParams < Stripe::RequestParams class Filter < Stripe::RequestParams class ApplicabilityScope < Stripe::RequestParams + class Price < Stripe::RequestParams + # The price ID this credit grant should apply to. + sig { returns(String) } + attr_accessor :id + sig { params(id: String).void } + def initialize(id: nil); end + end # The price type that credit grants can apply to. We currently only support the `metered` price type. sig { returns(String) } attr_accessor :price_type - sig { params(price_type: String).void } - def initialize(price_type: nil); end + # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. + sig { + returns(T::Array[::Stripe::Billing::CreditBalanceSummary::RetrieveParams::Filter::ApplicabilityScope::Price]) + } + attr_accessor :prices + sig { + params(price_type: String, prices: T::Array[::Stripe::Billing::CreditBalanceSummary::RetrieveParams::Filter::ApplicabilityScope::Price]).void + } + def initialize(price_type: nil, prices: nil); end end # The billing credit applicability scope for which to fetch credit balance summary. sig { diff --git a/rbi/stripe/resources/billing/credit_grant.rbi b/rbi/stripe/resources/billing/credit_grant.rbi index 66ed52373..f4d94c840 100644 --- a/rbi/stripe/resources/billing/credit_grant.rbi +++ b/rbi/stripe/resources/billing/credit_grant.rbi @@ -26,9 +26,17 @@ module Stripe end class ApplicabilityConfig < Stripe::StripeObject class Scope < Stripe::StripeObject + class Price < Stripe::StripeObject + # Unique identifier for the object. + sig { returns(T.nilable(String)) } + attr_reader :id + end # The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. sig { returns(String) } attr_reader :price_type + # The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. + sig { returns(T::Array[Price]) } + attr_reader :prices end # Attribute for field scope sig { returns(Scope) } @@ -131,11 +139,25 @@ module Stripe end class ApplicabilityConfig < Stripe::RequestParams class Scope < Stripe::RequestParams + class Price < Stripe::RequestParams + # The price ID this credit grant should apply to. + sig { returns(String) } + attr_accessor :id + sig { params(id: String).void } + def initialize(id: nil); end + end # The price type that credit grants can apply to. We currently only support the `metered` price type. sig { returns(String) } attr_accessor :price_type - sig { params(price_type: String).void } - def initialize(price_type: nil); end + # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. + sig { + returns(T::Array[::Stripe::Billing::CreditGrant::CreateParams::ApplicabilityConfig::Scope::Price]) + } + attr_accessor :prices + sig { + params(price_type: String, prices: T::Array[::Stripe::Billing::CreditGrant::CreateParams::ApplicabilityConfig::Scope::Price]).void + } + def initialize(price_type: nil, prices: nil); end end # Specify the scope of this applicability config. sig { returns(::Stripe::Billing::CreditGrant::CreateParams::ApplicabilityConfig::Scope) } diff --git a/rbi/stripe/resources/billing/meter_event_summary.rbi b/rbi/stripe/resources/billing/meter_event_summary.rbi index 69ecdbfed..678b1fd00 100644 --- a/rbi/stripe/resources/billing/meter_event_summary.rbi +++ b/rbi/stripe/resources/billing/meter_event_summary.rbi @@ -6,6 +6,8 @@ module Stripe module Billing # A billing meter event summary represents an aggregated view of a customer's billing meter events within a specified timeframe. It indicates how much # usage was accrued by a customer for that period. + # + # Note: Meters events are aggregated asynchronously so the meter event summaries provide an eventually consistent view of the reported usage. class MeterEventSummary < APIResource # Aggregated value of all the events within `start_time` (inclusive) and `end_time` (inclusive). The aggregation strategy is defined on meter via `default_aggregation`. sig { returns(Float) } diff --git a/rbi/stripe/resources/billing_portal/configuration.rbi b/rbi/stripe/resources/billing_portal/configuration.rbi index 7b5c3e2e9..74b9c4c7e 100644 --- a/rbi/stripe/resources/billing_portal/configuration.rbi +++ b/rbi/stripe/resources/billing_portal/configuration.rbi @@ -632,9 +632,9 @@ module Stripe # Updates a configuration that describes the functionality of the customer portal. sig { - params(id: String, params: T.any(::Stripe::BillingPortal::Configuration::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BillingPortal::Configuration) + params(configuration: String, params: T.any(::Stripe::BillingPortal::Configuration::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BillingPortal::Configuration) } - def self.update(id, params = {}, opts = {}); end + def self.update(configuration, params = {}, opts = {}); end end end end \ No newline at end of file diff --git a/rbi/stripe/resources/charge.rbi b/rbi/stripe/resources/charge.rbi index 3d5c344cb..4ed89ec5a 100644 --- a/rbi/stripe/resources/charge.rbi +++ b/rbi/stripe/resources/charge.rbi @@ -219,6 +219,9 @@ module Stripe # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. sig { returns(T.nilable(String)) } attr_reader :brand + # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + attr_reader :brand_product # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. sig { returns(T.nilable(String)) } attr_reader :country @@ -1185,6 +1188,9 @@ module Stripe # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. sig { returns(T.nilable(String)) } attr_reader :brand + # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + attr_reader :brand_product # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. sig { returns(T.nilable(String)) } attr_reader :country @@ -3481,8 +3487,8 @@ module Stripe # Updates the specified charge by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(id: String, params: T.any(::Stripe::Charge::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge) + params(charge: String, params: T.any(::Stripe::Charge::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge) } - def self.update(id, params = {}, opts = {}); end + def self.update(charge, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/checkout/session.rbi b/rbi/stripe/resources/checkout/session.rbi index e2d1cb541..ec596b320 100644 --- a/rbi/stripe/resources/checkout/session.rbi +++ b/rbi/stripe/resources/checkout/session.rbi @@ -541,6 +541,11 @@ module Stripe sig { returns(T::Boolean) } attr_reader :enabled end + class Restrictions < Stripe::StripeObject + # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. + sig { returns(T::Array[String]) } + attr_reader :brands_blocked + end # Attribute for field installments sig { returns(Installments) } attr_reader :installments @@ -562,6 +567,9 @@ module Stripe # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. sig { returns(String) } attr_reader :request_three_d_secure + # Attribute for field restrictions + sig { returns(Restrictions) } + attr_reader :restrictions # 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. @@ -1137,9 +1145,9 @@ module Stripe # Amount of tax applied for this rate. sig { returns(Integer) } attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) sig { returns(Stripe::TaxRate) } attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. @@ -1235,9 +1243,9 @@ module Stripe # Amount of tax applied for this rate. sig { returns(Integer) } attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) sig { returns(Stripe::TaxRate) } attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. @@ -2358,6 +2366,13 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end + class Restrictions < Stripe::RequestParams + # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. + sig { returns(T::Array[String]) } + attr_accessor :brands_blocked + sig { params(brands_blocked: T::Array[String]).void } + def initialize(brands_blocked: nil); end + end # Installment options for card payments sig { returns(::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Card::Installments) @@ -2381,6 +2396,11 @@ module Stripe # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. sig { returns(String) } attr_accessor :request_three_d_secure + # Restrictions to apply to the card payment method. For example, you can block specific card brands. + sig { + returns(::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Card::Restrictions) + } + attr_accessor :restrictions # 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. @@ -2397,7 +2417,7 @@ module Stripe sig { returns(String) } attr_accessor :statement_descriptor_suffix_kanji sig { - params(installments: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Card::Installments, request_decremental_authorization: String, request_extended_authorization: String, request_incremental_authorization: String, request_multicapture: String, request_overcapture: String, request_three_d_secure: String, setup_future_usage: String, statement_descriptor_suffix_kana: String, statement_descriptor_suffix_kanji: String).void + params(installments: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Card::Installments, request_decremental_authorization: String, request_extended_authorization: String, request_incremental_authorization: String, request_multicapture: String, request_overcapture: String, request_three_d_secure: String, restrictions: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Card::Restrictions, setup_future_usage: String, statement_descriptor_suffix_kana: String, statement_descriptor_suffix_kanji: String).void } def initialize( installments: nil, @@ -2407,6 +2427,7 @@ module Stripe request_multicapture: nil, request_overcapture: nil, request_three_d_secure: nil, + restrictions: nil, setup_future_usage: nil, statement_descriptor_suffix_kana: nil, statement_descriptor_suffix_kanji: nil @@ -4007,9 +4028,9 @@ module Stripe # Updates a Session object. sig { - params(id: String, params: T.any(::Stripe::Checkout::Session::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session) + params(session: String, params: T.any(::Stripe::Checkout::Session::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session) } - def self.update(id, params = {}, opts = {}); end + def self.update(session, params = {}, opts = {}); end end end end \ No newline at end of file diff --git a/rbi/stripe/resources/climate/order.rbi b/rbi/stripe/resources/climate/order.rbi index 526bc27b3..7206fe067 100644 --- a/rbi/stripe/resources/climate/order.rbi +++ b/rbi/stripe/resources/climate/order.rbi @@ -242,9 +242,9 @@ module Stripe # Updates the specified order by setting the values of the parameters passed. sig { - params(id: String, params: T.any(::Stripe::Climate::Order::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Order) + params(order: String, params: T.any(::Stripe::Climate::Order::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Order) } - def self.update(id, params = {}, opts = {}); end + def self.update(order, params = {}, opts = {}); end end end end \ No newline at end of file diff --git a/rbi/stripe/resources/confirmation_token.rbi b/rbi/stripe/resources/confirmation_token.rbi index db6c8ece8..67719f6e5 100644 --- a/rbi/stripe/resources/confirmation_token.rbi +++ b/rbi/stripe/resources/confirmation_token.rbi @@ -281,7 +281,7 @@ module Stripe attr_reader :setup_attempt end class Networks < Stripe::StripeObject - # All available networks for the card. + # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). sig { returns(T::Array[String]) } attr_reader :available # The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. @@ -491,7 +491,7 @@ module Stripe end class CardPresent < Stripe::StripeObject class Networks < Stripe::StripeObject - # All available networks for the card. + # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). sig { returns(T::Array[String]) } attr_reader :available # The preferred network for the card. @@ -614,7 +614,7 @@ module Stripe end class InteracPresent < Stripe::StripeObject class Networks < Stripe::StripeObject - # All available networks for the card. + # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). sig { returns(T::Array[String]) } attr_reader :available # The preferred network for the card. diff --git a/rbi/stripe/resources/coupon.rbi b/rbi/stripe/resources/coupon.rbi index 9703158bf..a2fcb071e 100644 --- a/rbi/stripe/resources/coupon.rbi +++ b/rbi/stripe/resources/coupon.rbi @@ -232,9 +232,9 @@ module Stripe # You can delete coupons via the [coupon management](https://dashboard.stripe.com/coupons) page of the Stripe dashboard. However, deleting a coupon does not affect any customers who have already applied the coupon; it means that new customers can't redeem the coupon. You can also delete coupons via the API. sig { - params(id: String, params: T.any(::Stripe::Coupon::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) + params(coupon: String, params: T.any(::Stripe::Coupon::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) } - def self.delete(id, params = {}, opts = {}); end + def self.delete(coupon, params = {}, opts = {}); end # You can delete coupons via the [coupon management](https://dashboard.stripe.com/coupons) page of the Stripe dashboard. However, deleting a coupon does not affect any customers who have already applied the coupon; it means that new customers can't redeem the coupon. You can also delete coupons via the API. sig { @@ -250,8 +250,8 @@ module Stripe # Updates the metadata of a coupon. Other coupon details (currency, duration, amount_off) are, by design, not editable. sig { - params(id: String, params: T.any(::Stripe::Coupon::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) + params(coupon: String, params: T.any(::Stripe::Coupon::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) } - def self.update(id, params = {}, opts = {}); end + def self.update(coupon, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/credit_note.rbi b/rbi/stripe/resources/credit_note.rbi index 1216ec112..cdd28b643 100644 --- a/rbi/stripe/resources/credit_note.rbi +++ b/rbi/stripe/resources/credit_note.rbi @@ -42,9 +42,9 @@ module Stripe # Amount of tax applied for this rate. sig { returns(Integer) } attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) sig { returns(Stripe::TaxRate) } attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. diff --git a/rbi/stripe/resources/customer.rbi b/rbi/stripe/resources/customer.rbi index 0552e8f3d..1a5a13bb6 100644 --- a/rbi/stripe/resources/customer.rbi +++ b/rbi/stripe/resources/customer.rbi @@ -916,9 +916,9 @@ module Stripe # Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer. sig { - params(id: String, params: T.any(::Stripe::Customer::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) + params(customer: String, params: T.any(::Stripe::Customer::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) } - def self.delete(id, params = {}, opts = {}); end + def self.delete(customer, params = {}, opts = {}); end # Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer. sig { @@ -988,9 +988,9 @@ module Stripe # # This request accepts mostly the same arguments as the customer creation call. sig { - params(id: String, params: T.any(::Stripe::Customer::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) + params(customer: String, params: T.any(::Stripe::Customer::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) } - def self.update(id, params = {}, opts = {}); end + def self.update(customer, params = {}, opts = {}); end # Changes the settings on a customer's cash balance. sig { diff --git a/rbi/stripe/resources/dispute.rbi b/rbi/stripe/resources/dispute.rbi index 90ff9314f..ad2773501 100644 --- a/rbi/stripe/resources/dispute.rbi +++ b/rbi/stripe/resources/dispute.rbi @@ -757,8 +757,8 @@ module Stripe # # Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://stripe.com/docs/disputes/categories). sig { - params(id: String, params: T.any(::Stripe::Dispute::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Dispute) + params(dispute: String, params: T.any(::Stripe::Dispute::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Dispute) } - def self.update(id, params = {}, opts = {}); end + def self.update(dispute, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/ephemeral_key.rbi b/rbi/stripe/resources/ephemeral_key.rbi index 10e038547..2583ca535 100644 --- a/rbi/stripe/resources/ephemeral_key.rbi +++ b/rbi/stripe/resources/ephemeral_key.rbi @@ -31,9 +31,9 @@ module Stripe end # Invalidates a short-lived API key for a given resource. sig { - params(id: String, params: T.any(::Stripe::EphemeralKey::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::EphemeralKey) + params(key: String, params: T.any(::Stripe::EphemeralKey::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::EphemeralKey) } - def self.delete(id, params = {}, opts = {}); end + def self.delete(key, params = {}, opts = {}); end # Invalidates a short-lived API key for a given resource. sig { diff --git a/rbi/stripe/resources/file_link.rbi b/rbi/stripe/resources/file_link.rbi index 7158108cb..2453e420b 100644 --- a/rbi/stripe/resources/file_link.rbi +++ b/rbi/stripe/resources/file_link.rbi @@ -139,8 +139,8 @@ module Stripe # Updates an existing file link object. Expired links can no longer be updated. sig { - params(id: String, params: T.any(::Stripe::FileLink::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FileLink) + params(link: String, params: T.any(::Stripe::FileLink::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FileLink) } - def self.update(id, params = {}, opts = {}); end + def self.update(link, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/financial_connections/session.rbi b/rbi/stripe/resources/financial_connections/session.rbi index 50c648f06..7885ca262 100644 --- a/rbi/stripe/resources/financial_connections/session.rbi +++ b/rbi/stripe/resources/financial_connections/session.rbi @@ -148,7 +148,7 @@ module Stripe # Settings for configuring Session-specific limits. sig { returns(::Stripe::FinancialConnections::Session::CreateParams::Limits) } attr_accessor :limits - # Settings for configuring manual entry of account details for this Session. + # Customize manual entry behavior sig { returns(::Stripe::FinancialConnections::Session::CreateParams::ManualEntry) } attr_accessor :manual_entry # List of data features that you would like to request access to. diff --git a/rbi/stripe/resources/identity/verification_session.rbi b/rbi/stripe/resources/identity/verification_session.rbi index cfae590d0..6b62ea7b6 100644 --- a/rbi/stripe/resources/identity/verification_session.rbi +++ b/rbi/stripe/resources/identity/verification_session.rbi @@ -510,9 +510,9 @@ module Stripe # When the session status is requires_input, you can use this method to update the # verification check and options. sig { - params(id: String, params: T.any(::Stripe::Identity::VerificationSession::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(session: String, params: T.any(::Stripe::Identity::VerificationSession::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) } - def self.update(id, params = {}, opts = {}); end + def self.update(session, params = {}, opts = {}); end end end end \ No newline at end of file diff --git a/rbi/stripe/resources/invoice.rbi b/rbi/stripe/resources/invoice.rbi index 398d1bfd7..f9ad15384 100644 --- a/rbi/stripe/resources/invoice.rbi +++ b/rbi/stripe/resources/invoice.rbi @@ -400,9 +400,9 @@ module Stripe # Amount of tax applied for this rate. sig { returns(Integer) } attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) sig { returns(Stripe::TaxRate) } attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. @@ -6543,7 +6543,7 @@ module Stripe # The ID of the PaymentIntent to attach to the invoice. sig { returns(String) } attr_accessor :payment_intent - # The ID of the PaymentRecord to detach from the invoice. + # The ID of the PaymentRecord to attach to the invoice. sig { returns(String) } attr_accessor :payment_record # The PaymentRecord data for attaching an out of band payment to the invoice. @@ -8778,9 +8778,9 @@ module Stripe # Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://stripe.com/docs/api#void_invoice). sig { - params(id: String, params: T.any(::Stripe::Invoice::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::Invoice::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) } - def self.delete(id, params = {}, opts = {}); end + def self.delete(invoice, params = {}, opts = {}); end # Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://stripe.com/docs/api#void_invoice). sig { @@ -8893,9 +8893,9 @@ module Stripe # sending reminders for, or [automatically reconciling](https://stripe.com/docs/billing/invoices/reconciliation) invoices, pass # auto_advance=false. sig { - params(id: String, params: T.any(::Stripe::Invoice::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::Invoice::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) } - def self.update(id, params = {}, opts = {}); end + def self.update(invoice, params = {}, opts = {}); end # Updates multiple line items on an invoice. This is only possible when an invoice is still a draft. sig { diff --git a/rbi/stripe/resources/invoice_item.rbi b/rbi/stripe/resources/invoice_item.rbi index c885c5b90..0b964fbb8 100644 --- a/rbi/stripe/resources/invoice_item.rbi +++ b/rbi/stripe/resources/invoice_item.rbi @@ -489,9 +489,9 @@ module Stripe # Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they're not attached to invoices, or if it's attached to a draft invoice. sig { - params(id: String, params: T.any(::Stripe::InvoiceItem::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) + params(invoiceitem: String, params: T.any(::Stripe::InvoiceItem::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) } - def self.delete(id, params = {}, opts = {}); end + def self.delete(invoiceitem, params = {}, opts = {}); end # Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they're not attached to invoices, or if it's attached to a draft invoice. sig { @@ -507,8 +507,8 @@ module Stripe # Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it's attached to is closed. sig { - params(id: String, params: T.any(::Stripe::InvoiceItem::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) + params(invoiceitem: String, params: T.any(::Stripe::InvoiceItem::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) } - def self.update(id, params = {}, opts = {}); end + def self.update(invoiceitem, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/invoice_line_item.rbi b/rbi/stripe/resources/invoice_line_item.rbi index 6ef2aa7f2..9833feddc 100644 --- a/rbi/stripe/resources/invoice_line_item.rbi +++ b/rbi/stripe/resources/invoice_line_item.rbi @@ -393,8 +393,8 @@ module Stripe # item and the invoice line item, so updates on this endpoint will propagate to the invoice item as well. # Updating an invoice's line item is only possible before the invoice is finalized. sig { - params(id: String, params: T.any(::Stripe::InvoiceLineItem::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceLineItem) + params(invoice: String, line_item_id: String, params: T.any(::Stripe::InvoiceLineItem::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceLineItem) } - def self.update(id, params = {}, opts = {}); end + def self.update(invoice, line_item_id, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/issuing/authorization.rbi b/rbi/stripe/resources/issuing/authorization.rbi index d1c0367a3..78f382cea 100644 --- a/rbi/stripe/resources/issuing/authorization.rbi +++ b/rbi/stripe/resources/issuing/authorization.rbi @@ -1258,9 +1258,9 @@ module Stripe # Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(id: String, params: T.any(::Stripe::Issuing::Authorization::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::Issuing::Authorization::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) } - def self.update(id, params = {}, opts = {}); end + def self.update(authorization, params = {}, opts = {}); end end end end \ No newline at end of file diff --git a/rbi/stripe/resources/issuing/card.rbi b/rbi/stripe/resources/issuing/card.rbi index 7524b13d6..06f4dbf31 100644 --- a/rbi/stripe/resources/issuing/card.rbi +++ b/rbi/stripe/resources/issuing/card.rbi @@ -730,9 +730,9 @@ module Stripe # Updates the specified Issuing Card object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(id: String, params: T.any(::Stripe::Issuing::Card::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(card: String, params: T.any(::Stripe::Issuing::Card::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) } - def self.update(id, params = {}, opts = {}); end + def self.update(card, params = {}, opts = {}); end end end end \ No newline at end of file diff --git a/rbi/stripe/resources/issuing/cardholder.rbi b/rbi/stripe/resources/issuing/cardholder.rbi index 67a7ca638..f751ad898 100644 --- a/rbi/stripe/resources/issuing/cardholder.rbi +++ b/rbi/stripe/resources/issuing/cardholder.rbi @@ -724,9 +724,9 @@ module Stripe # Updates the specified Issuing Cardholder object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(id: String, params: T.any(::Stripe::Issuing::Cardholder::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Cardholder) + params(cardholder: String, params: T.any(::Stripe::Issuing::Cardholder::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Cardholder) } - def self.update(id, params = {}, opts = {}); end + def self.update(cardholder, params = {}, opts = {}); end end end end \ No newline at end of file diff --git a/rbi/stripe/resources/issuing/dispute.rbi b/rbi/stripe/resources/issuing/dispute.rbi index 2fa139ad2..4b83f2764 100644 --- a/rbi/stripe/resources/issuing/dispute.rbi +++ b/rbi/stripe/resources/issuing/dispute.rbi @@ -892,9 +892,9 @@ module Stripe # Updates the specified Issuing Dispute object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on the evidence object can be unset by passing in an empty string. sig { - params(id: String, params: T.any(::Stripe::Issuing::Dispute::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Dispute) + params(dispute: String, params: T.any(::Stripe::Issuing::Dispute::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Dispute) } - def self.update(id, params = {}, opts = {}); end + def self.update(dispute, params = {}, opts = {}); end end end end \ No newline at end of file diff --git a/rbi/stripe/resources/issuing/personalization_design.rbi b/rbi/stripe/resources/issuing/personalization_design.rbi index 49b02c157..8ad6b4866 100644 --- a/rbi/stripe/resources/issuing/personalization_design.rbi +++ b/rbi/stripe/resources/issuing/personalization_design.rbi @@ -325,9 +325,9 @@ module Stripe # Updates a card personalization object. sig { - params(id: String, params: T.any(::Stripe::Issuing::PersonalizationDesign::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PersonalizationDesign) + params(personalization_design: String, params: T.any(::Stripe::Issuing::PersonalizationDesign::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PersonalizationDesign) } - def self.update(id, params = {}, opts = {}); end + def self.update(personalization_design, params = {}, opts = {}); end end end end \ No newline at end of file diff --git a/rbi/stripe/resources/issuing/token.rbi b/rbi/stripe/resources/issuing/token.rbi index 3fb7a593d..e489ca5ea 100644 --- a/rbi/stripe/resources/issuing/token.rbi +++ b/rbi/stripe/resources/issuing/token.rbi @@ -223,9 +223,9 @@ module Stripe # Attempts to update the specified Issuing Token object to the status specified. sig { - params(id: String, params: T.any(::Stripe::Issuing::Token::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Token) + params(token: String, params: T.any(::Stripe::Issuing::Token::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Token) } - def self.update(id, params = {}, opts = {}); end + def self.update(token, params = {}, opts = {}); end end end end \ No newline at end of file diff --git a/rbi/stripe/resources/issuing/transaction.rbi b/rbi/stripe/resources/issuing/transaction.rbi index 0803898df..a843336db 100644 --- a/rbi/stripe/resources/issuing/transaction.rbi +++ b/rbi/stripe/resources/issuing/transaction.rbi @@ -1049,9 +1049,9 @@ module Stripe # Updates the specified Issuing Transaction object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(id: String, params: T.any(::Stripe::Issuing::Transaction::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Transaction) + params(transaction: String, params: T.any(::Stripe::Issuing::Transaction::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Transaction) } - def self.update(id, params = {}, opts = {}); end + def self.update(transaction, params = {}, opts = {}); end end end end \ No newline at end of file diff --git a/rbi/stripe/resources/line_item.rbi b/rbi/stripe/resources/line_item.rbi index 46243973a..9f976b36b 100644 --- a/rbi/stripe/resources/line_item.rbi +++ b/rbi/stripe/resources/line_item.rbi @@ -42,9 +42,9 @@ module Stripe # Amount of tax applied for this rate. sig { returns(Integer) } attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) sig { returns(Stripe::TaxRate) } attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. diff --git a/rbi/stripe/resources/margin.rbi b/rbi/stripe/resources/margin.rbi index 3ba7c4376..944e3774f 100644 --- a/rbi/stripe/resources/margin.rbi +++ b/rbi/stripe/resources/margin.rbi @@ -120,8 +120,8 @@ module Stripe # Update the specified margin object. Certain fields of the margin object are not editable. sig { - params(id: String, params: T.any(::Stripe::Margin::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Margin) + params(margin: String, params: T.any(::Stripe::Margin::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Margin) } - def self.update(id, params = {}, opts = {}); end + def self.update(margin, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/order.rbi b/rbi/stripe/resources/order.rbi index a9c7e2961..fe1e0ab2c 100644 --- a/rbi/stripe/resources/order.rbi +++ b/rbi/stripe/resources/order.rbi @@ -477,9 +477,9 @@ module Stripe # Amount of tax applied for this rate. sig { returns(Integer) } attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) sig { returns(Stripe::TaxRate) } attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. @@ -569,9 +569,9 @@ module Stripe # Amount of tax applied for this rate. sig { returns(Integer) } attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) sig { returns(Stripe::TaxRate) } attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. diff --git a/rbi/stripe/resources/payment_intent.rbi b/rbi/stripe/resources/payment_intent.rbi index 13a31ac6f..5a5565099 100644 --- a/rbi/stripe/resources/payment_intent.rbi +++ b/rbi/stripe/resources/payment_intent.rbi @@ -5244,7 +5244,7 @@ module Stripe sig { params(mode: String).void } def initialize(mode: nil); end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. sig { returns(::Stripe::PaymentIntent::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters) } @@ -8652,7 +8652,7 @@ module Stripe sig { params(mode: String).void } def initialize(mode: nil); end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. sig { returns(::Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters) } @@ -12799,7 +12799,7 @@ module Stripe sig { params(mode: String).void } def initialize(mode: nil); end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. sig { returns(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters) } @@ -13876,9 +13876,9 @@ module Stripe # update and confirm at the same time, we recommend updating properties through # the [confirm API](https://stripe.com/docs/api/payment_intents/confirm) instead. sig { - params(id: String, params: T.any(::Stripe::PaymentIntent::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntent::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) } - def self.update(id, params = {}, opts = {}); end + def self.update(intent, params = {}, opts = {}); end # Verifies microdeposits on a PaymentIntent object. sig { diff --git a/rbi/stripe/resources/payment_link.rbi b/rbi/stripe/resources/payment_link.rbi index 5e04e6500..a944520ee 100644 --- a/rbi/stripe/resources/payment_link.rbi +++ b/rbi/stripe/resources/payment_link.rbi @@ -1659,8 +1659,8 @@ module Stripe # Updates a payment link. sig { - params(id: String, params: T.any(::Stripe::PaymentLink::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentLink) + params(payment_link: String, params: T.any(::Stripe::PaymentLink::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentLink) } - def self.update(id, params = {}, opts = {}); end + def self.update(payment_link, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/payment_method.rbi b/rbi/stripe/resources/payment_method.rbi index 194f2a0b3..e14a3fa7d 100644 --- a/rbi/stripe/resources/payment_method.rbi +++ b/rbi/stripe/resources/payment_method.rbi @@ -247,7 +247,7 @@ module Stripe attr_reader :setup_attempt end class Networks < Stripe::StripeObject - # All available networks for the card. + # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). sig { returns(T::Array[String]) } attr_reader :available # The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. @@ -457,7 +457,7 @@ module Stripe end class CardPresent < Stripe::StripeObject class Networks < Stripe::StripeObject - # All available networks for the card. + # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). sig { returns(T::Array[String]) } attr_reader :available # The preferred network for the card. @@ -580,7 +580,7 @@ module Stripe end class InteracPresent < Stripe::StripeObject class Networks < Stripe::StripeObject - # All available networks for the card. + # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). sig { returns(T::Array[String]) } attr_reader :available # The preferred network for the card. @@ -1919,8 +1919,8 @@ module Stripe # Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated. sig { - params(id: String, params: T.any(::Stripe::PaymentMethod::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(payment_method: String, params: T.any(::Stripe::PaymentMethod::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) } - def self.update(id, params = {}, opts = {}); end + def self.update(payment_method, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/payment_method_configuration.rbi b/rbi/stripe/resources/payment_method_configuration.rbi index 6c739561d..a1b5474e7 100644 --- a/rbi/stripe/resources/payment_method_configuration.rbi +++ b/rbi/stripe/resources/payment_method_configuration.rbi @@ -3230,8 +3230,8 @@ module Stripe # Update payment method configuration sig { - params(id: String, params: T.any(::Stripe::PaymentMethodConfiguration::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodConfiguration) + params(configuration: String, params: T.any(::Stripe::PaymentMethodConfiguration::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodConfiguration) } - def self.update(id, params = {}, opts = {}); end + def self.update(configuration, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/payment_method_domain.rbi b/rbi/stripe/resources/payment_method_domain.rbi index 35df24a4b..5e6b16242 100644 --- a/rbi/stripe/resources/payment_method_domain.rbi +++ b/rbi/stripe/resources/payment_method_domain.rbi @@ -188,9 +188,9 @@ module Stripe # Updates an existing payment method domain. sig { - params(id: String, params: T.any(::Stripe::PaymentMethodDomain::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain) + params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomain::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain) } - def self.update(id, params = {}, opts = {}); end + def self.update(payment_method_domain, params = {}, opts = {}); end # Some payment methods such as Apple Pay require additional steps to verify a domain. If the requirements weren't satisfied when the domain was created, the payment method will be inactive on the domain. # The payment method doesn't appear in Elements for this domain until it is active. diff --git a/rbi/stripe/resources/payout.rbi b/rbi/stripe/resources/payout.rbi index 4f7dac529..5498af341 100644 --- a/rbi/stripe/resources/payout.rbi +++ b/rbi/stripe/resources/payout.rbi @@ -292,8 +292,8 @@ module Stripe # Updates the specified payout by setting the values of the parameters you pass. We don't change parameters that you don't provide. This request only accepts the metadata as arguments. sig { - params(id: String, params: T.any(::Stripe::Payout::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(payout: String, params: T.any(::Stripe::Payout::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) } - def self.update(id, params = {}, opts = {}); end + def self.update(payout, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/plan.rbi b/rbi/stripe/resources/plan.rbi index 1cc5e81ea..b2a1eab99 100644 --- a/rbi/stripe/resources/plan.rbi +++ b/rbi/stripe/resources/plan.rbi @@ -360,9 +360,9 @@ module Stripe # Deleting plans means new subscribers can't be added. Existing subscribers aren't affected. sig { - params(id: String, params: T.any(::Stripe::Plan::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) + params(plan: String, params: T.any(::Stripe::Plan::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) } - def self.delete(id, params = {}, opts = {}); end + def self.delete(plan, params = {}, opts = {}); end # Deleting plans means new subscribers can't be added. Existing subscribers aren't affected. sig { @@ -378,8 +378,8 @@ module Stripe # Updates the specified plan by setting the values of the parameters passed. Any parameters not provided are left unchanged. By design, you cannot change a plan's ID, amount, currency, or billing cycle. sig { - params(id: String, params: T.any(::Stripe::Plan::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) + params(plan: String, params: T.any(::Stripe::Plan::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) } - def self.update(id, params = {}, opts = {}); end + def self.update(plan, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/price.rbi b/rbi/stripe/resources/price.rbi index ab8a698c5..ea55ab97c 100644 --- a/rbi/stripe/resources/price.rbi +++ b/rbi/stripe/resources/price.rbi @@ -724,8 +724,8 @@ module Stripe # Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged. sig { - params(id: String, params: T.any(::Stripe::Price::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Price) + params(price: String, params: T.any(::Stripe::Price::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Price) } - def self.update(id, params = {}, opts = {}); end + def self.update(price, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/promotion_code.rbi b/rbi/stripe/resources/promotion_code.rbi index d9a4b3065..865d9ee2a 100644 --- a/rbi/stripe/resources/promotion_code.rbi +++ b/rbi/stripe/resources/promotion_code.rbi @@ -259,8 +259,8 @@ module Stripe # Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable. sig { - params(id: String, params: T.any(::Stripe::PromotionCode::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PromotionCode) + params(promotion_code: String, params: T.any(::Stripe::PromotionCode::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PromotionCode) } - def self.update(id, params = {}, opts = {}); end + def self.update(promotion_code, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/quote.rbi b/rbi/stripe/resources/quote.rbi index 496dec2e9..cfc5b8b55 100644 --- a/rbi/stripe/resources/quote.rbi +++ b/rbi/stripe/resources/quote.rbi @@ -63,9 +63,9 @@ module Stripe # Amount of tax applied for this rate. sig { returns(Integer) } attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) sig { returns(Stripe::TaxRate) } attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. @@ -129,9 +129,9 @@ module Stripe # Amount of tax applied for this rate. sig { returns(Integer) } attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) sig { returns(Stripe::TaxRate) } attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. @@ -526,9 +526,9 @@ module Stripe # Amount of tax applied for this rate. sig { returns(Integer) } attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) sig { returns(Stripe::TaxRate) } attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. @@ -3179,8 +3179,8 @@ module Stripe # A quote models prices and services for a customer. sig { - params(id: String, params: T.any(::Stripe::Quote::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::Quote::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) } - def self.update(id, params = {}, opts = {}); end + def self.update(quote, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/quote_preview_invoice.rbi b/rbi/stripe/resources/quote_preview_invoice.rbi index e0ad87065..dfbcc5fc9 100644 --- a/rbi/stripe/resources/quote_preview_invoice.rbi +++ b/rbi/stripe/resources/quote_preview_invoice.rbi @@ -411,9 +411,9 @@ module Stripe # Amount of tax applied for this rate. sig { returns(Integer) } attr_reader :amount - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](/billing/taxes/tax-rates) sig { returns(Stripe::TaxRate) } attr_reader :rate # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. diff --git a/rbi/stripe/resources/radar/value_list.rbi b/rbi/stripe/resources/radar/value_list.rbi index 1500883ff..6a4b1b114 100644 --- a/rbi/stripe/resources/radar/value_list.rbi +++ b/rbi/stripe/resources/radar/value_list.rbi @@ -149,9 +149,9 @@ module Stripe # Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules. sig { - params(id: String, params: T.any(::Stripe::Radar::ValueList::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) + params(value_list: String, params: T.any(::Stripe::Radar::ValueList::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) } - def self.delete(id, params = {}, opts = {}); end + def self.delete(value_list, params = {}, opts = {}); end # Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules. sig { @@ -167,9 +167,9 @@ module Stripe # Updates a ValueList object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note that item_type is immutable. sig { - params(id: String, params: T.any(::Stripe::Radar::ValueList::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) + params(value_list: String, params: T.any(::Stripe::Radar::ValueList::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) } - def self.update(id, params = {}, opts = {}); end + def self.update(value_list, params = {}, opts = {}); end end end end \ No newline at end of file diff --git a/rbi/stripe/resources/radar/value_list_item.rbi b/rbi/stripe/resources/radar/value_list_item.rbi index a1894c9dd..a8a24287d 100644 --- a/rbi/stripe/resources/radar/value_list_item.rbi +++ b/rbi/stripe/resources/radar/value_list_item.rbi @@ -114,9 +114,9 @@ module Stripe # Deletes a ValueListItem object, removing it from its parent value list. sig { - params(id: String, params: T.any(::Stripe::Radar::ValueListItem::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueListItem) + params(item: String, params: T.any(::Stripe::Radar::ValueListItem::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueListItem) } - def self.delete(id, params = {}, opts = {}); end + def self.delete(item, params = {}, opts = {}); end # Deletes a ValueListItem object, removing it from its parent value list. sig { diff --git a/rbi/stripe/resources/refund.rbi b/rbi/stripe/resources/refund.rbi index f996d994f..0594e2c08 100644 --- a/rbi/stripe/resources/refund.rbi +++ b/rbi/stripe/resources/refund.rbi @@ -508,8 +508,8 @@ module Stripe # # This request only accepts metadata as an argument. sig { - params(id: String, params: T.any(::Stripe::Refund::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(refund: String, params: T.any(::Stripe::Refund::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) } - def self.update(id, params = {}, opts = {}); end + def self.update(refund, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/setup_intent.rbi b/rbi/stripe/resources/setup_intent.rbi index be9fcd604..e0cc97601 100644 --- a/rbi/stripe/resources/setup_intent.rbi +++ b/rbi/stripe/resources/setup_intent.rbi @@ -1510,7 +1510,7 @@ module Stripe sig { params(mode: String).void } def initialize(mode: nil); end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters) } @@ -2655,7 +2655,7 @@ module Stripe sig { params(mode: String).void } def initialize(mode: nil); end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters) } @@ -3796,7 +3796,7 @@ module Stripe sig { params(mode: String).void } def initialize(mode: nil); end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters) } @@ -4043,9 +4043,9 @@ module Stripe # Updates a SetupIntent object. sig { - params(id: String, params: T.any(::Stripe::SetupIntent::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntent::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) } - def self.update(id, params = {}, opts = {}); end + def self.update(intent, params = {}, opts = {}); end # Verifies microdeposits on a SetupIntent object. sig { diff --git a/rbi/stripe/resources/shipping_rate.rbi b/rbi/stripe/resources/shipping_rate.rbi index 6dd53cf95..dec44071a 100644 --- a/rbi/stripe/resources/shipping_rate.rbi +++ b/rbi/stripe/resources/shipping_rate.rbi @@ -303,8 +303,8 @@ module Stripe # Updates an existing shipping rate object. sig { - params(id: String, params: T.any(::Stripe::ShippingRate::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ShippingRate) + params(shipping_rate_token: String, params: T.any(::Stripe::ShippingRate::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ShippingRate) } - def self.update(id, params = {}, opts = {}); end + def self.update(shipping_rate_token, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/source.rbi b/rbi/stripe/resources/source.rbi index 475e0ff99..5e8c35c5e 100644 --- a/rbi/stripe/resources/source.rbi +++ b/rbi/stripe/resources/source.rbi @@ -1524,9 +1524,9 @@ module Stripe # # This request accepts the metadata and owner as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our [payment method guides](https://stripe.com/docs/sources) for more detail. sig { - params(id: String, params: T.any(::Stripe::Source::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Source) + params(source: String, params: T.any(::Stripe::Source::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Source) } - def self.update(id, params = {}, opts = {}); end + def self.update(source, params = {}, opts = {}); end # Verify a given source. sig { diff --git a/rbi/stripe/resources/subscription.rbi b/rbi/stripe/resources/subscription.rbi index 24f9cefaa..32f3f6905 100644 --- a/rbi/stripe/resources/subscription.rbi +++ b/rbi/stripe/resources/subscription.rbi @@ -2301,8 +2301,8 @@ module Stripe # # Updating the quantity on a subscription many times in an hour may result in [rate limiting. If you need to bill for a frequently changing quantity, consider integrating usage-based billing](https://stripe.com/docs/rate-limits) instead. sig { - params(id: String, params: T.any(::Stripe::Subscription::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription_exposed_id: String, params: T.any(::Stripe::Subscription::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) } - def self.update(id, params = {}, opts = {}); end + def self.update(subscription_exposed_id, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/subscription_item.rbi b/rbi/stripe/resources/subscription_item.rbi index 0381eeba2..cfbed35e1 100644 --- a/rbi/stripe/resources/subscription_item.rbi +++ b/rbi/stripe/resources/subscription_item.rbi @@ -453,9 +453,9 @@ module Stripe # Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription. sig { - params(id: String, params: T.any(::Stripe::SubscriptionItem::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) + params(item: String, params: T.any(::Stripe::SubscriptionItem::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) } - def self.delete(id, params = {}, opts = {}); end + def self.delete(item, params = {}, opts = {}); end # Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription. sig { @@ -471,8 +471,8 @@ module Stripe # Updates the plan or quantity of an item on a current subscription. sig { - params(id: String, params: T.any(::Stripe::SubscriptionItem::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) + params(item: String, params: T.any(::Stripe::SubscriptionItem::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) } - def self.update(id, params = {}, opts = {}); end + def self.update(item, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/subscription_schedule.rbi b/rbi/stripe/resources/subscription_schedule.rbi index 7459616c3..996792a42 100644 --- a/rbi/stripe/resources/subscription_schedule.rbi +++ b/rbi/stripe/resources/subscription_schedule.rbi @@ -2646,8 +2646,8 @@ module Stripe # Updates an existing subscription schedule. sig { - params(id: String, params: T.any(::Stripe::SubscriptionSchedule::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(schedule: String, params: T.any(::Stripe::SubscriptionSchedule::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) } - def self.update(id, params = {}, opts = {}); end + def self.update(schedule, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/tax/calculation.rbi b/rbi/stripe/resources/tax/calculation.rbi index b4515010d..97f396456 100644 --- a/rbi/stripe/resources/tax/calculation.rbi +++ b/rbi/stripe/resources/tax/calculation.rbi @@ -90,7 +90,7 @@ module Stripe # Indicates the level of the jurisdiction imposing the tax. sig { returns(String) } attr_reader :level - # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. + # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. sig { returns(T.nilable(String)) } attr_reader :state end diff --git a/rbi/stripe/resources/tax/calculation_line_item.rbi b/rbi/stripe/resources/tax/calculation_line_item.rbi index a73b968fa..cf01fd2f6 100644 --- a/rbi/stripe/resources/tax/calculation_line_item.rbi +++ b/rbi/stripe/resources/tax/calculation_line_item.rbi @@ -16,7 +16,7 @@ module Stripe # Indicates the level of the jurisdiction imposing the tax. sig { returns(String) } attr_reader :level - # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. + # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. sig { returns(T.nilable(String)) } attr_reader :state end diff --git a/rbi/stripe/resources/tax/transaction.rbi b/rbi/stripe/resources/tax/transaction.rbi index f5fa6fd62..100a527dc 100644 --- a/rbi/stripe/resources/tax/transaction.rbi +++ b/rbi/stripe/resources/tax/transaction.rbi @@ -95,7 +95,7 @@ module Stripe # Indicates the level of the jurisdiction imposing the tax. sig { returns(String) } attr_reader :level - # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. + # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. sig { returns(T.nilable(String)) } attr_reader :state end diff --git a/rbi/stripe/resources/tax_rate.rbi b/rbi/stripe/resources/tax_rate.rbi index d153a7b71..45c8cbac6 100644 --- a/rbi/stripe/resources/tax_rate.rbi +++ b/rbi/stripe/resources/tax_rate.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - # Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. + # Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax. # - # Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) + # Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates) class TaxRate < APIResource class FlatAmount < Stripe::StripeObject # Amount of the tax when the `rate_type` is `flat_amount`. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). @@ -65,7 +65,7 @@ module Stripe # Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. sig { returns(T.nilable(String)) } attr_reader :rate_type - # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. + # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. sig { returns(T.nilable(String)) } attr_reader :state # The high-level tax type, such as `vat` or `sales_tax`. @@ -150,7 +150,7 @@ module Stripe # This represents the tax rate percent out of 100. sig { returns(Float) } attr_accessor :percentage - # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. + # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. sig { returns(String) } attr_accessor :state # The high-level tax type, such as `vat` or `sales_tax`. @@ -202,7 +202,7 @@ module Stripe # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. sig { returns(T.nilable(T::Hash[String, String])) } attr_accessor :metadata - # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. + # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. sig { returns(String) } attr_accessor :state # The high-level tax type, such as `vat` or `sales_tax`. @@ -237,8 +237,8 @@ module Stripe # Updates an existing tax rate. sig { - params(id: String, params: T.any(::Stripe::TaxRate::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxRate) + params(tax_rate: String, params: T.any(::Stripe::TaxRate::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxRate) } - def self.update(id, params = {}, opts = {}); end + def self.update(tax_rate, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/terminal/configuration.rbi b/rbi/stripe/resources/terminal/configuration.rbi index bcb14c265..787360c86 100644 --- a/rbi/stripe/resources/terminal/configuration.rbi +++ b/rbi/stripe/resources/terminal/configuration.rbi @@ -1117,9 +1117,9 @@ module Stripe # Deletes a Configuration object. sig { - params(id: String, params: T.any(::Stripe::Terminal::Configuration::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) + params(configuration: String, params: T.any(::Stripe::Terminal::Configuration::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) } - def self.delete(id, params = {}, opts = {}); end + def self.delete(configuration, params = {}, opts = {}); end # Deletes a Configuration object. sig { @@ -1135,9 +1135,9 @@ module Stripe # Updates a new Configuration object. sig { - params(id: String, params: T.any(::Stripe::Terminal::Configuration::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) + params(configuration: String, params: T.any(::Stripe::Terminal::Configuration::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) } - def self.update(id, params = {}, opts = {}); end + def self.update(configuration, params = {}, opts = {}); end end end end \ No newline at end of file diff --git a/rbi/stripe/resources/terminal/location.rbi b/rbi/stripe/resources/terminal/location.rbi index eebaae943..3ac24b53d 100644 --- a/rbi/stripe/resources/terminal/location.rbi +++ b/rbi/stripe/resources/terminal/location.rbi @@ -205,9 +205,9 @@ module Stripe # Deletes a Location object. sig { - params(id: String, params: T.any(::Stripe::Terminal::Location::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) + params(location: String, params: T.any(::Stripe::Terminal::Location::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) } - def self.delete(id, params = {}, opts = {}); end + def self.delete(location, params = {}, opts = {}); end # Deletes a Location object. sig { @@ -223,9 +223,9 @@ module Stripe # Updates a Location object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(id: String, params: T.any(::Stripe::Terminal::Location::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) + params(location: String, params: T.any(::Stripe::Terminal::Location::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) } - def self.update(id, params = {}, opts = {}); end + def self.update(location, params = {}, opts = {}); end end end end \ No newline at end of file diff --git a/rbi/stripe/resources/terminal/reader.rbi b/rbi/stripe/resources/terminal/reader.rbi index 828f93989..3e766a515 100644 --- a/rbi/stripe/resources/terminal/reader.rbi +++ b/rbi/stripe/resources/terminal/reader.rbi @@ -866,9 +866,9 @@ module Stripe # Deletes a Reader object. sig { - params(id: String, params: T.any(::Stripe::Terminal::Reader::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::Reader::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) } - def self.delete(id, params = {}, opts = {}); end + def self.delete(reader, params = {}, opts = {}); end # Deletes a Reader object. sig { @@ -932,9 +932,9 @@ module Stripe # Updates a Reader object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(id: String, params: T.any(::Stripe::Terminal::Reader::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::Reader::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) } - def self.update(id, params = {}, opts = {}); end + def self.update(reader, params = {}, opts = {}); end end end end \ No newline at end of file diff --git a/rbi/stripe/resources/test_helpers/test_clock.rbi b/rbi/stripe/resources/test_helpers/test_clock.rbi index 30ff12de4..e59a25c3b 100644 --- a/rbi/stripe/resources/test_helpers/test_clock.rbi +++ b/rbi/stripe/resources/test_helpers/test_clock.rbi @@ -119,9 +119,9 @@ module Stripe # Deletes a test clock. sig { - params(id: String, params: T.any(::Stripe::TestHelpers::TestClock::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClock::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) } - def self.delete(id, params = {}, opts = {}); end + def self.delete(test_clock, params = {}, opts = {}); end # Deletes a test clock. sig { diff --git a/rbi/stripe/resources/topup.rbi b/rbi/stripe/resources/topup.rbi index c5ef80ca8..4685263c0 100644 --- a/rbi/stripe/resources/topup.rbi +++ b/rbi/stripe/resources/topup.rbi @@ -218,8 +218,8 @@ module Stripe # Updates the metadata of a top-up. Other top-up details are not editable by design. sig { - params(id: String, params: T.any(::Stripe::Topup::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Topup) + params(topup: String, params: T.any(::Stripe::Topup::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Topup) } - def self.update(id, params = {}, opts = {}); end + def self.update(topup, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/transfer.rbi b/rbi/stripe/resources/transfer.rbi index ddb87d7ab..6fcd0a5f5 100644 --- a/rbi/stripe/resources/transfer.rbi +++ b/rbi/stripe/resources/transfer.rbi @@ -197,8 +197,8 @@ module Stripe # # This request accepts only metadata as an argument. sig { - params(id: String, params: T.any(::Stripe::Transfer::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Transfer) + params(transfer: String, params: T.any(::Stripe::Transfer::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Transfer) } - def self.update(id, params = {}, opts = {}); end + def self.update(transfer, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/treasury/financial_account.rbi b/rbi/stripe/resources/treasury/financial_account.rbi index b4b90dc86..38d13fba5 100644 --- a/rbi/stripe/resources/treasury/financial_account.rbi +++ b/rbi/stripe/resources/treasury/financial_account.rbi @@ -850,9 +850,9 @@ module Stripe # Updates the details of a FinancialAccount. sig { - params(id: String, params: T.any(::Stripe::Treasury::FinancialAccount::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccount) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccount::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccount) } - def self.update(id, params = {}, opts = {}); end + def self.update(financial_account, params = {}, opts = {}); end # Updates the Features associated with a FinancialAccount. sig { diff --git a/rbi/stripe/resources/webhook_endpoint.rbi b/rbi/stripe/resources/webhook_endpoint.rbi index 9fa65ca9e..c2373eb3e 100644 --- a/rbi/stripe/resources/webhook_endpoint.rbi +++ b/rbi/stripe/resources/webhook_endpoint.rbi @@ -152,9 +152,9 @@ module Stripe # You can also delete webhook endpoints via the [webhook endpoint management](https://dashboard.stripe.com/account/webhooks) page of the Stripe dashboard. sig { - params(id: String, params: T.any(::Stripe::WebhookEndpoint::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) + params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpoint::DeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) } - def self.delete(id, params = {}, opts = {}); end + def self.delete(webhook_endpoint, params = {}, opts = {}); end # You can also delete webhook endpoints via the [webhook endpoint management](https://dashboard.stripe.com/account/webhooks) page of the Stripe dashboard. sig { @@ -170,8 +170,8 @@ module Stripe # Updates the webhook endpoint. You may edit the url, the list of enabled_events, and the status of your endpoint. sig { - params(id: String, params: T.any(::Stripe::WebhookEndpoint::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) + params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpoint::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) } - def self.update(id, params = {}, opts = {}); end + def self.update(webhook_endpoint, params = {}, opts = {}); end end end \ No newline at end of file diff --git a/rbi/stripe/services/account_session_service.rbi b/rbi/stripe/services/account_session_service.rbi index a16387739..f02adbd30 100644 --- a/rbi/stripe/services/account_session_service.rbi +++ b/rbi/stripe/services/account_session_service.rbi @@ -546,6 +546,23 @@ module Stripe } def initialize(enabled: nil, features: nil); end end + class ProductTaxCodeSelector < Stripe::RequestParams + class Features < Stripe::RequestParams + + end + # Whether the embedded component is enabled. + sig { returns(T::Boolean) } + attr_accessor :enabled + # The list of features enabled in the embedded component. + sig { + returns(::Stripe::AccountSessionService::CreateParams::Components::ProductTaxCodeSelector::Features) + } + attr_accessor :features + sig { + params(enabled: T::Boolean, features: ::Stripe::AccountSessionService::CreateParams::Components::ProductTaxCodeSelector::Features).void + } + def initialize(enabled: nil, features: nil); end + end class Recipients < Stripe::RequestParams class Features < Stripe::RequestParams # Whether to allow sending money. @@ -709,6 +726,11 @@ module Stripe # Configuration for the payouts list embedded component. sig { returns(::Stripe::AccountSessionService::CreateParams::Components::PayoutsList) } attr_accessor :payouts_list + # Configuration for the product tax code selector embedded component. + sig { + returns(::Stripe::AccountSessionService::CreateParams::Components::ProductTaxCodeSelector) + } + attr_accessor :product_tax_code_selector # Configuration for the recipients component. sig { returns(::Stripe::AccountSessionService::CreateParams::Components::Recipients) } attr_accessor :recipients @@ -727,7 +749,7 @@ module Stripe } attr_accessor :tax_threshold_monitoring sig { - params(account_management: ::Stripe::AccountSessionService::CreateParams::Components::AccountManagement, account_onboarding: ::Stripe::AccountSessionService::CreateParams::Components::AccountOnboarding, app_install: ::Stripe::AccountSessionService::CreateParams::Components::AppInstall, app_viewport: ::Stripe::AccountSessionService::CreateParams::Components::AppViewport, balances: ::Stripe::AccountSessionService::CreateParams::Components::Balances, capital_financing: ::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancing, capital_financing_application: ::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingApplication, capital_financing_promotion: ::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingPromotion, capital_overview: ::Stripe::AccountSessionService::CreateParams::Components::CapitalOverview, documents: ::Stripe::AccountSessionService::CreateParams::Components::Documents, financial_account: ::Stripe::AccountSessionService::CreateParams::Components::FinancialAccount, financial_account_transactions: ::Stripe::AccountSessionService::CreateParams::Components::FinancialAccountTransactions, issuing_card: ::Stripe::AccountSessionService::CreateParams::Components::IssuingCard, issuing_cards_list: ::Stripe::AccountSessionService::CreateParams::Components::IssuingCardsList, notification_banner: ::Stripe::AccountSessionService::CreateParams::Components::NotificationBanner, payment_details: ::Stripe::AccountSessionService::CreateParams::Components::PaymentDetails, payment_method_settings: ::Stripe::AccountSessionService::CreateParams::Components::PaymentMethodSettings, payments: ::Stripe::AccountSessionService::CreateParams::Components::Payments, payouts: ::Stripe::AccountSessionService::CreateParams::Components::Payouts, payouts_list: ::Stripe::AccountSessionService::CreateParams::Components::PayoutsList, recipients: ::Stripe::AccountSessionService::CreateParams::Components::Recipients, reporting_chart: ::Stripe::AccountSessionService::CreateParams::Components::ReportingChart, tax_registrations: ::Stripe::AccountSessionService::CreateParams::Components::TaxRegistrations, tax_settings: ::Stripe::AccountSessionService::CreateParams::Components::TaxSettings, tax_threshold_monitoring: ::Stripe::AccountSessionService::CreateParams::Components::TaxThresholdMonitoring).void + params(account_management: ::Stripe::AccountSessionService::CreateParams::Components::AccountManagement, account_onboarding: ::Stripe::AccountSessionService::CreateParams::Components::AccountOnboarding, app_install: ::Stripe::AccountSessionService::CreateParams::Components::AppInstall, app_viewport: ::Stripe::AccountSessionService::CreateParams::Components::AppViewport, balances: ::Stripe::AccountSessionService::CreateParams::Components::Balances, capital_financing: ::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancing, capital_financing_application: ::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingApplication, capital_financing_promotion: ::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingPromotion, capital_overview: ::Stripe::AccountSessionService::CreateParams::Components::CapitalOverview, documents: ::Stripe::AccountSessionService::CreateParams::Components::Documents, financial_account: ::Stripe::AccountSessionService::CreateParams::Components::FinancialAccount, financial_account_transactions: ::Stripe::AccountSessionService::CreateParams::Components::FinancialAccountTransactions, issuing_card: ::Stripe::AccountSessionService::CreateParams::Components::IssuingCard, issuing_cards_list: ::Stripe::AccountSessionService::CreateParams::Components::IssuingCardsList, notification_banner: ::Stripe::AccountSessionService::CreateParams::Components::NotificationBanner, payment_details: ::Stripe::AccountSessionService::CreateParams::Components::PaymentDetails, payment_method_settings: ::Stripe::AccountSessionService::CreateParams::Components::PaymentMethodSettings, payments: ::Stripe::AccountSessionService::CreateParams::Components::Payments, payouts: ::Stripe::AccountSessionService::CreateParams::Components::Payouts, payouts_list: ::Stripe::AccountSessionService::CreateParams::Components::PayoutsList, product_tax_code_selector: ::Stripe::AccountSessionService::CreateParams::Components::ProductTaxCodeSelector, recipients: ::Stripe::AccountSessionService::CreateParams::Components::Recipients, reporting_chart: ::Stripe::AccountSessionService::CreateParams::Components::ReportingChart, tax_registrations: ::Stripe::AccountSessionService::CreateParams::Components::TaxRegistrations, tax_settings: ::Stripe::AccountSessionService::CreateParams::Components::TaxSettings, tax_threshold_monitoring: ::Stripe::AccountSessionService::CreateParams::Components::TaxThresholdMonitoring).void } def initialize( account_management: nil, @@ -750,6 +772,7 @@ module Stripe payments: nil, payouts: nil, payouts_list: nil, + product_tax_code_selector: nil, recipients: nil, reporting_chart: nil, tax_registrations: nil, diff --git a/rbi/stripe/services/billing/credit_balance_summary_service.rbi b/rbi/stripe/services/billing/credit_balance_summary_service.rbi index f4e5ea360..36adee574 100644 --- a/rbi/stripe/services/billing/credit_balance_summary_service.rbi +++ b/rbi/stripe/services/billing/credit_balance_summary_service.rbi @@ -8,11 +8,25 @@ module Stripe class RetrieveParams < Stripe::RequestParams class Filter < Stripe::RequestParams class ApplicabilityScope < Stripe::RequestParams + class Price < Stripe::RequestParams + # The price ID this credit grant should apply to. + sig { returns(String) } + attr_accessor :id + sig { params(id: String).void } + def initialize(id: nil); end + end # The price type that credit grants can apply to. We currently only support the `metered` price type. sig { returns(String) } attr_accessor :price_type - sig { params(price_type: String).void } - def initialize(price_type: nil); end + # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. + sig { + returns(T::Array[::Stripe::Billing::CreditBalanceSummaryService::RetrieveParams::Filter::ApplicabilityScope::Price]) + } + attr_accessor :prices + sig { + params(price_type: String, prices: T::Array[::Stripe::Billing::CreditBalanceSummaryService::RetrieveParams::Filter::ApplicabilityScope::Price]).void + } + def initialize(price_type: nil, prices: nil); end end # The billing credit applicability scope for which to fetch credit balance summary. sig { diff --git a/rbi/stripe/services/billing/credit_grant_service.rbi b/rbi/stripe/services/billing/credit_grant_service.rbi index 4b5439605..62363f803 100644 --- a/rbi/stripe/services/billing/credit_grant_service.rbi +++ b/rbi/stripe/services/billing/credit_grant_service.rbi @@ -57,11 +57,25 @@ module Stripe end class ApplicabilityConfig < Stripe::RequestParams class Scope < Stripe::RequestParams + class Price < Stripe::RequestParams + # The price ID this credit grant should apply to. + sig { returns(String) } + attr_accessor :id + sig { params(id: String).void } + def initialize(id: nil); end + end # The price type that credit grants can apply to. We currently only support the `metered` price type. sig { returns(String) } attr_accessor :price_type - sig { params(price_type: String).void } - def initialize(price_type: nil); end + # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. + sig { + returns(T::Array[::Stripe::Billing::CreditGrantService::CreateParams::ApplicabilityConfig::Scope::Price]) + } + attr_accessor :prices + sig { + params(price_type: String, prices: T::Array[::Stripe::Billing::CreditGrantService::CreateParams::ApplicabilityConfig::Scope::Price]).void + } + def initialize(price_type: nil, prices: nil); end end # Specify the scope of this applicability config. sig { diff --git a/rbi/stripe/services/checkout/session_service.rbi b/rbi/stripe/services/checkout/session_service.rbi index e0d2076f0..c2b475512 100644 --- a/rbi/stripe/services/checkout/session_service.rbi +++ b/rbi/stripe/services/checkout/session_service.rbi @@ -912,6 +912,13 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end + class Restrictions < Stripe::RequestParams + # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. + sig { returns(T::Array[String]) } + attr_accessor :brands_blocked + sig { params(brands_blocked: T::Array[String]).void } + def initialize(brands_blocked: nil); end + end # Installment options for card payments sig { returns(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Card::Installments) @@ -935,6 +942,11 @@ module Stripe # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. sig { returns(String) } attr_accessor :request_three_d_secure + # Restrictions to apply to the card payment method. For example, you can block specific card brands. + sig { + returns(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Card::Restrictions) + } + attr_accessor :restrictions # 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. @@ -951,7 +963,7 @@ module Stripe sig { returns(String) } attr_accessor :statement_descriptor_suffix_kanji sig { - params(installments: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Card::Installments, request_decremental_authorization: String, request_extended_authorization: String, request_incremental_authorization: String, request_multicapture: String, request_overcapture: String, request_three_d_secure: String, setup_future_usage: String, statement_descriptor_suffix_kana: String, statement_descriptor_suffix_kanji: String).void + params(installments: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Card::Installments, request_decremental_authorization: String, request_extended_authorization: String, request_incremental_authorization: String, request_multicapture: String, request_overcapture: String, request_three_d_secure: String, restrictions: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Card::Restrictions, setup_future_usage: String, statement_descriptor_suffix_kana: String, statement_descriptor_suffix_kanji: String).void } def initialize( installments: nil, @@ -961,6 +973,7 @@ module Stripe request_multicapture: nil, request_overcapture: nil, request_three_d_secure: nil, + restrictions: nil, setup_future_usage: nil, statement_descriptor_suffix_kana: nil, statement_descriptor_suffix_kanji: nil diff --git a/rbi/stripe/services/financial_connections/session_service.rbi b/rbi/stripe/services/financial_connections/session_service.rbi index 9a59f0276..23171fbe3 100644 --- a/rbi/stripe/services/financial_connections/session_service.rbi +++ b/rbi/stripe/services/financial_connections/session_service.rbi @@ -67,7 +67,7 @@ module Stripe # Settings for configuring Session-specific limits. sig { returns(::Stripe::FinancialConnections::SessionService::CreateParams::Limits) } attr_accessor :limits - # Settings for configuring manual entry of account details for this Session. + # Customize manual entry behavior sig { returns(::Stripe::FinancialConnections::SessionService::CreateParams::ManualEntry) } attr_accessor :manual_entry # List of data features that you would like to request access to. diff --git a/rbi/stripe/services/invoice_service.rbi b/rbi/stripe/services/invoice_service.rbi index d20b1214c..616e8552e 100644 --- a/rbi/stripe/services/invoice_service.rbi +++ b/rbi/stripe/services/invoice_service.rbi @@ -3730,7 +3730,7 @@ module Stripe # The ID of the PaymentIntent to attach to the invoice. sig { returns(String) } attr_accessor :payment_intent - # The ID of the PaymentRecord to detach from the invoice. + # The ID of the PaymentRecord to attach to the invoice. sig { returns(String) } attr_accessor :payment_record # The PaymentRecord data for attaching an out of band payment to the invoice. diff --git a/rbi/stripe/services/payment_intent_service.rbi b/rbi/stripe/services/payment_intent_service.rbi index ef7ef58ca..37ce46f8c 100644 --- a/rbi/stripe/services/payment_intent_service.rbi +++ b/rbi/stripe/services/payment_intent_service.rbi @@ -2825,7 +2825,7 @@ module Stripe sig { params(mode: String).void } def initialize(mode: nil); end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. sig { returns(::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters) } @@ -6277,7 +6277,7 @@ module Stripe sig { params(mode: String).void } def initialize(mode: nil); end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. sig { returns(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters) } @@ -10488,7 +10488,7 @@ module Stripe sig { params(mode: String).void } def initialize(mode: nil); end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. sig { returns(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters) } diff --git a/rbi/stripe/services/setup_intent_service.rbi b/rbi/stripe/services/setup_intent_service.rbi index 66408ddef..d907db32e 100644 --- a/rbi/stripe/services/setup_intent_service.rbi +++ b/rbi/stripe/services/setup_intent_service.rbi @@ -1045,7 +1045,7 @@ module Stripe sig { params(mode: String).void } def initialize(mode: nil); end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters) } @@ -2210,7 +2210,7 @@ module Stripe sig { params(mode: String).void } def initialize(mode: nil); end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters) } @@ -3375,7 +3375,7 @@ module Stripe sig { params(mode: String).void } def initialize(mode: nil); end end - # Provide filters for the linked accounts that the customer can select for the payment method + # Provide filters for the linked accounts that the customer can select for the payment method. sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters) } diff --git a/rbi/stripe/services/tax_rate_service.rbi b/rbi/stripe/services/tax_rate_service.rbi index f0f4c5bb8..ec53571b0 100644 --- a/rbi/stripe/services/tax_rate_service.rbi +++ b/rbi/stripe/services/tax_rate_service.rbi @@ -83,7 +83,7 @@ module Stripe # This represents the tax rate percent out of 100. sig { returns(Float) } attr_accessor :percentage - # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. + # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. sig { returns(String) } attr_accessor :state # The high-level tax type, such as `vat` or `sales_tax`. @@ -135,7 +135,7 @@ module Stripe # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. sig { returns(T.nilable(T::Hash[String, String])) } attr_accessor :metadata - # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. + # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. sig { returns(String) } attr_accessor :state # The high-level tax type, such as `vat` or `sales_tax`.