Merge pull request #1569 from stripe/latest-codegen-beta

Update generated code for beta
This commit is contained in:
stripe-openapi[bot] 2025-04-10 11:38:12 -07:00 committed by GitHub
commit 4363db9426
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
91 changed files with 3351 additions and 798 deletions

View File

@ -50,6 +50,7 @@ Metrics/CyclomaticComplexity:
Metrics/PerceivedComplexity:
Exclude:
- "lib/stripe/api_requestor.rb"
- "lib/stripe/stripe_object.rb"
- "lib/stripe/util.rb"
Metrics/MethodLength:

View File

@ -1,5 +1,25 @@
# Changelog
## 15.0.0 - 2025-04-09
### Breaking change
* [#1574](https://github.com/stripe/stripe-ruby/pull/1574) Rename `object_id` in V2::Core::EventService::ListParams to `object_id_`
* ⚠️ Change name of parameter from `object_id` to `object_id_` on `Stripe::V2::Core::EventService::ListParams` to avoid conflict with Ruby native attribute, as found in https://github.com/stripe/stripe-ruby/issues/1567
* This is a no-op unless you are using this specific parameter that was introduced in `v14.0.0`
* [#1576](https://github.com/stripe/stripe-ruby/pull/1576) Explicitly pass through custom headers in retrieve
* Fix custom options passing for resource-based retrieve
* [#1571](https://github.com/stripe/stripe-ruby/pull/1571) Validate all instance variable keys returned from the API
* Validate all keys returned from the API, including custom response fields, to make sure they can be set in an instance variable, as brought up in https://github.com/stripe/stripe-ruby/issues/1564
* We do not set instance variables for invalid field names (as defined by the [Ruby spec](https://ruby-doc.org/docs/ruby-doc-bundle/Manual/man-1.4/syntax.html#ident)). We recommend for custom hash map response fields, use the `[]` accessor.
```ruby
c = client.v1.customers.retrieve("cus_123")
c.metadata["invalid-variable-name!"]
c.metadata["valid_key_name_works_too"]
```
* [#1575](https://github.com/stripe/stripe-ruby/pull/1575) Remove unused youtube playlist link
* [#1573](https://github.com/stripe/stripe-ruby/pull/1573) Remove link for stale youtube video playlist
## 14.1.0-beta.1 - 2025-04-02
* [#1563](https://github.com/stripe/stripe-ruby/pull/1563), [#1558](https://github.com/stripe/stripe-ruby/pull/1558), [#1547](https://github.com/stripe/stripe-ruby/pull/1547) Update generated code for beta
@ -55,7 +75,6 @@
* [#1557](https://github.com/stripe/stripe-ruby/pull/1557) Update Stripe.add_beta_version
* `stripe.add_beta_version` will use the highest version number used for a beta feature instead of raising an `Error` on a conflict as it had done previously.
## 14.0.0 - 2025-04-01
* [#1559](https://github.com/stripe/stripe-ruby/pull/1559) Add RBI annotations for fields and params
* Adds explicit field types for resources and parameters for methods, and add RBI static annotations for all resources and services

View File

@ -1 +1 @@
v1648
v1669

View File

@ -20,8 +20,6 @@ The library also provides other features. For example:
See the [Ruby API docs](https://stripe.com/docs/api?lang=ruby).
See [video demonstrations][youtube-playlist] covering how to use the library.
## Installation
You don't need this source code unless you want to modify the gem. If you just
@ -158,6 +156,9 @@ print(customer.last_response.http_status) # to retrieve status code
print(customer.last_response.http_headers) # to retrieve headers
```
If you are accessing a response field with custom hashes provided by you, such as `Customer.metadata`,
please access your fields with the `[]` accessor.
### Configuring a proxy
A proxy can be configured with `Stripe.proxy`:
@ -444,7 +445,6 @@ Update the bundled [stripe-mock] by editing the version number found in
[idempotency-keys]: https://stripe.com/docs/api/idempotent_requests?lang=ruby
[stripe-mock]: https://github.com/stripe/stripe-mock
[versioning]: https://stripe.com/docs/api/versioning?lang=ruby
[youtube-playlist]: https://www.youtube.com/playlist?list=PLy1nL-pvL2M50RmP6ie-gdcSnfOuQCRYk
<!--
# vim: set tw=79:

View File

@ -67,7 +67,8 @@ module Stripe
values.delete(:id)
opts = Util.normalize_opts(opts)
APIRequestor.active_requestor.execute_request_initialize_from(:post, save_url, :api, self,
params: values, opts: opts,
params: values,
opts: RequestOptions.extract_opts_from_hash(opts),
usage: ["save"])
end
extend Gem::Deprecate

View File

@ -64,7 +64,8 @@ module Stripe
opts = Util.normalize_opts(opts)
APIRequestor.active_requestor.execute_request_initialize_from(:post, resource_url, :api, self,
params: values, opts: opts,
params: values,
opts: RequestOptions.extract_opts_from_hash(opts),
usage: ["save"])
end
extend Gem::Deprecate

View File

@ -220,9 +220,11 @@ module Stripe
# with future non-major changes.
def execute_request_initialize_from(method, path, base_address, object,
params: {}, opts: {}, usage: [])
opts = RequestOptions.combine_opts(object.instance_variable_get(:@opts), opts)
opts = RequestOptions.combine_opts(object.instance_variable_get(:@opts) || {}, opts)
opts = Util.normalize_opts(opts)
params = params.to_h if params.is_a?(RequestParams)
http_resp, req_opts = execute_request_internal(
method, path, base_address, params, opts, usage
)

View File

@ -98,7 +98,10 @@ module Stripe
"It is not possible to refresh v2 objects. Please retrieve the object using the StripeClient instead."
end
@obj = @requestor.execute_request_initialize_from(:get, resource_url, :api, self, params: @retrieve_params)
opts = RequestOptions.extract_opts_from_hash(@retrieve_opts || {})
@retrieve_opts = {} # Make sure to clear the retrieve options
@obj = @requestor.execute_request_initialize_from(:get, resource_url, :api, self, params: @retrieve_params,
opts: opts)
initialize_from(
@obj.last_response.data,
@obj.instance_variable_get(:@opts),
@ -114,8 +117,12 @@ module Stripe
"It is not possible to retrieve v2 objects on the resource. Please use the StripeClient instead."
end
opts = Util.normalize_opts(opts)
instance = new(id, opts)
instance = new(id)
# Explicitly send options for the retrieve call, to preserve custom headers
# This is so we can pass custom headers from this static function
# to the instance variable method call
# The custom headers will be cleaned up with the rest of the RequestOptions
instance.instance_variable_set(:@retrieve_opts, Util.normalize_opts(opts))
instance.refresh
end

View File

@ -115,6 +115,9 @@ module Stripe
Person.object_name => Person,
Plan.object_name => Plan,
Price.object_name => Price,
Privacy::RedactionJob.object_name => Privacy::RedactionJob,
Privacy::RedactionJobRootObjects.object_name => Privacy::RedactionJobRootObjects,
Privacy::RedactionJobValidationError.object_name => Privacy::RedactionJobValidationError,
Product.object_name => Product,
ProductFeature.object_name => ProductFeature,
PromotionCode.object_name => PromotionCode,

View File

@ -56,7 +56,7 @@ module Stripe
# Merges requestor options hash on a StripeObject
# with a per-request options hash, giving precedence
# to the per-request options. Returns the merged request options.
# Expects two hashes.
# Expects two hashes, expects extract_opts_from_hash to be called first!!!
def self.combine_opts(object_opts, req_opts)
merged_opts = {
api_key: req_opts[:api_key] || object_opts[:api_key],
@ -64,6 +64,7 @@ module Stripe
stripe_account: req_opts[:stripe_account] || object_opts[:stripe_account],
stripe_context: req_opts[:stripe_context] || object_opts[:stripe_context],
stripe_version: req_opts[:stripe_version] || object_opts[:stripe_version],
headers: req_opts[:headers] || {},
}
# Remove nil values from headers

View File

@ -103,6 +103,9 @@ require "stripe/resources/payout"
require "stripe/resources/person"
require "stripe/resources/plan"
require "stripe/resources/price"
require "stripe/resources/privacy/redaction_job"
require "stripe/resources/privacy/redaction_job_root_objects"
require "stripe/resources/privacy/redaction_job_validation_error"
require "stripe/resources/product"
require "stripe/resources/product_feature"
require "stripe/resources/promotion_code"

View File

@ -71,6 +71,8 @@ module Stripe
attr_reader :estimated_worker_count
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
attr_reader :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
attr_reader :minority_owned_business_designation
# Attribute for field monthly_estimated_revenue
attr_reader :monthly_estimated_revenue
# The customer-facing business name.
@ -769,6 +771,8 @@ module Stripe
attr_accessor :estimated_worker_count
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
attr_accessor :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
attr_accessor :minority_owned_business_designation
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
attr_accessor :monthly_estimated_revenue
# The customer-facing business name.
@ -790,6 +794,7 @@ module Stripe
annual_revenue: nil,
estimated_worker_count: nil,
mcc: nil,
minority_owned_business_designation: nil,
monthly_estimated_revenue: nil,
name: nil,
product_description: nil,
@ -802,6 +807,7 @@ module Stripe
@annual_revenue = annual_revenue
@estimated_worker_count = estimated_worker_count
@mcc = mcc
@minority_owned_business_designation = minority_owned_business_designation
@monthly_estimated_revenue = monthly_estimated_revenue
@name = name
@product_description = product_description
@ -3007,6 +3013,8 @@ module Stripe
attr_accessor :estimated_worker_count
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
attr_accessor :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
attr_accessor :minority_owned_business_designation
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
attr_accessor :monthly_estimated_revenue
# The customer-facing business name.
@ -3028,6 +3036,7 @@ module Stripe
annual_revenue: nil,
estimated_worker_count: nil,
mcc: nil,
minority_owned_business_designation: nil,
monthly_estimated_revenue: nil,
name: nil,
product_description: nil,
@ -3040,6 +3049,7 @@ module Stripe
@annual_revenue = annual_revenue
@estimated_worker_count = estimated_worker_count
@mcc = mcc
@minority_owned_business_designation = minority_owned_business_designation
@monthly_estimated_revenue = monthly_estimated_revenue
@name = name
@product_description = product_description

View File

@ -488,6 +488,20 @@ module Stripe
end
end
class ExportTaxTransactions < 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 FinancialAccount < Stripe::RequestParams
class Features < Stripe::RequestParams
# Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you dont set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
@ -674,6 +688,36 @@ module Stripe
end
end
class PaymentDisputes < Stripe::RequestParams
class Features < Stripe::RequestParams
# Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
attr_accessor :destination_on_behalf_of_charge_management
# Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
attr_accessor :dispute_management
# Whether to allow sending refunds. This is `true` by default.
attr_accessor :refund_management
def initialize(
destination_on_behalf_of_charge_management: nil,
dispute_management: nil,
refund_management: nil
)
@destination_on_behalf_of_charge_management = destination_on_behalf_of_charge_management
@dispute_management = dispute_management
@refund_management = refund_management
end
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 PaymentMethodSettings < Stripe::RequestParams
class Features < Stripe::RequestParams
end
@ -883,6 +927,8 @@ module Stripe
attr_accessor :capital_overview
# Configuration for the documents embedded component.
attr_accessor :documents
# Configuration for the export tax transactions embedded component.
attr_accessor :export_tax_transactions
# Configuration for the financial account embedded component.
attr_accessor :financial_account
# Configuration for the financial account transactions embedded component.
@ -895,6 +941,8 @@ module Stripe
attr_accessor :notification_banner
# Configuration for the payment details embedded component.
attr_accessor :payment_details
# Configuration for the payment disputes embedded component.
attr_accessor :payment_disputes
# Configuration for the payment method settings embedded component.
attr_accessor :payment_method_settings
# Configuration for the payments embedded component.
@ -927,12 +975,14 @@ module Stripe
capital_financing_promotion: nil,
capital_overview: nil,
documents: nil,
export_tax_transactions: nil,
financial_account: nil,
financial_account_transactions: nil,
issuing_card: nil,
issuing_cards_list: nil,
notification_banner: nil,
payment_details: nil,
payment_disputes: nil,
payment_method_settings: nil,
payments: nil,
payouts: nil,
@ -954,12 +1004,14 @@ module Stripe
@capital_financing_promotion = capital_financing_promotion
@capital_overview = capital_overview
@documents = documents
@export_tax_transactions = export_tax_transactions
@financial_account = financial_account
@financial_account_transactions = financial_account_transactions
@issuing_card = issuing_card
@issuing_cards_list = issuing_cards_list
@notification_banner = notification_banner
@payment_details = payment_details
@payment_disputes = payment_disputes
@payment_method_settings = payment_method_settings
@payments = payments
@payouts = payouts

View File

@ -2,7 +2,7 @@
# frozen_string_literal: true
module Stripe
# "Options for customizing account balances within Stripe."
# Options for customizing account balances within Stripe.
class BalanceSettings < SingletonAPIResource
include Stripe::APIOperations::SingletonSave

View File

@ -1093,6 +1093,15 @@ module Stripe
attr_reader :breakdown
end
class WalletOptions < Stripe::StripeObject
class Link < Stripe::StripeObject
# Describes whether Checkout should display Link. Defaults to `auto`.
attr_reader :display
end
# Attribute for field link
attr_reader :link
end
class ListParams < Stripe::RequestParams
class Created < Stripe::RequestParams
# Minimum value to filter by (exclusive)
@ -3155,6 +3164,23 @@ module Stripe
@required = required
end
end
class WalletOptions < Stripe::RequestParams
class Link < Stripe::RequestParams
# Specifies whether Checkout should display Link as a payment option. By default, Checkout will display all the supported wallets that the Checkout Session was created with. This is the `auto` behavior, and it is the default choice.
attr_accessor :display
def initialize(display: nil)
@display = display
end
end
# contains details about the Link wallet options.
attr_accessor :link
def initialize(link: nil)
@link = link
end
end
# Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
attr_accessor :adaptive_pricing
# Configure actions after a Checkout Session has expired.
@ -3268,7 +3294,7 @@ module Stripe
attr_accessor :payment_method_types
# This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
#
# For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
# For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
attr_accessor :permissions
# Controls phone number collection settings for the session.
#
@ -3306,6 +3332,8 @@ module Stripe
attr_accessor :tax_id_collection
# The UI mode of the Session. Defaults to `hosted`.
attr_accessor :ui_mode
# Wallet-specific configuration.
attr_accessor :wallet_options
def initialize(
adaptive_pricing: nil,
@ -3351,7 +3379,8 @@ module Stripe
subscription_data: nil,
success_url: nil,
tax_id_collection: nil,
ui_mode: nil
ui_mode: nil,
wallet_options: nil
)
@adaptive_pricing = adaptive_pricing
@after_expiration = after_expiration
@ -3397,6 +3426,7 @@ module Stripe
@success_url = success_url
@tax_id_collection = tax_id_collection
@ui_mode = ui_mode
@wallet_options = wallet_options
end
end
@ -3764,7 +3794,7 @@ module Stripe
attr_reader :payment_status
# This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
#
# For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
# For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
attr_reader :permissions
# Attribute for field phone_number_collection
attr_reader :phone_number_collection
@ -3806,6 +3836,8 @@ module Stripe
# The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted`. Redirect customers to this URL to take them to Checkout. If youre using [Custom Domains](https://stripe.com/docs/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, itll use `checkout.stripe.com.`
# This value is only present when the session is active.
attr_reader :url
# Wallet-specific configuration for this Checkout Session.
attr_reader :wallet_options
# Creates a Checkout Session object.
def self.create(params = {}, opts = {})

View File

@ -1320,7 +1320,7 @@ module Stripe
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
attr_accessor :billing_details
@ -1394,11 +1394,11 @@ module Stripe
attr_accessor :radar_options
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
attr_accessor :sepa_debit

View File

@ -1162,7 +1162,7 @@ module Stripe
attr_accessor :created
# Only return invoices for the customer specified by this customer ID.
attr_accessor :customer
# Attribute for param field customer_account
# Only return invoices for the account specified by this account ID.
attr_accessor :customer_account
# Attribute for param field due_date
attr_accessor :due_date

View File

@ -2,7 +2,8 @@
# frozen_string_literal: true
module Stripe
# Login Links are single-use URLs for a connected account to access the Express Dashboard. The connected account's [account.controller.stripe_dashboard.type](https://stripe.com/api/accounts/object#account_object-controller-stripe_dashboard-type) must be `express` to have access to the Express Dashboard.
# Login Links are single-use URLs that takes an Express account to the login page for their Stripe dashboard.
# A Login Link differs from an [Account Link](https://stripe.com/docs/api/account_links) in that it takes the user directly to their [Express dashboard for the specified account](https://stripe.com/docs/connect/integrate-express-dashboard#create-login-link)
class LoginLink < APIResource
OBJECT_NAME = "login_link"
def self.object_name

View File

@ -17,28 +17,28 @@ module Stripe
class AmountCanceled < Stripe::StripeObject
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
attr_reader :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
attr_reader :value
end
class AmountFailed < Stripe::StripeObject
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
attr_reader :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
attr_reader :value
end
class AmountGuaranteed < Stripe::StripeObject
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
attr_reader :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
attr_reader :value
end
class AmountRequested < Stripe::StripeObject
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
attr_reader :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
attr_reader :value
end

View File

@ -3157,7 +3157,7 @@ module Stripe
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
attr_accessor :billing_details
@ -3231,11 +3231,11 @@ module Stripe
attr_accessor :radar_options
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
attr_accessor :sepa_debit
@ -6645,7 +6645,7 @@ module Stripe
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
attr_accessor :billing_details
@ -6719,11 +6719,11 @@ module Stripe
attr_accessor :radar_options
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
attr_accessor :sepa_debit
@ -10865,7 +10865,7 @@ module Stripe
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
attr_accessor :billing_details
@ -10939,11 +10939,11 @@ module Stripe
attr_accessor :radar_options
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
attr_accessor :sepa_debit

View File

@ -1206,7 +1206,7 @@ module Stripe
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
attr_accessor :billing_details
@ -1288,11 +1288,11 @@ module Stripe
attr_accessor :radar_options
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
attr_accessor :sepa_debit

View File

@ -49,6 +49,17 @@ module Stripe
attr_reader :status_details
end
class Klarna < Stripe::StripeObject
class StatusDetails < Stripe::StripeObject
# The error message associated with the status of the payment method on the domain.
attr_reader :error_message
end
# The status of the payment method on the domain.
attr_reader :status
# Contains additional details about the status of a payment method for a specific payment method domain.
attr_reader :status_details
end
class Link < Stripe::StripeObject
class StatusDetails < Stripe::StripeObject
# The error message associated with the status of the payment method on the domain.
@ -152,6 +163,8 @@ module Stripe
# Unique identifier for the object.
attr_reader :id
# Indicates the status of a specific payment method on a payment method domain.
attr_reader :klarna
# Indicates the status of a specific payment method on a payment method domain.
attr_reader :link
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
attr_reader :livemode

View File

@ -15,28 +15,28 @@ module Stripe
class AmountCanceled < Stripe::StripeObject
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
attr_reader :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
attr_reader :value
end
class AmountFailed < Stripe::StripeObject
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
attr_reader :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
attr_reader :value
end
class AmountGuaranteed < Stripe::StripeObject
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
attr_reader :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
attr_reader :value
end
class AmountRequested < Stripe::StripeObject
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
attr_reader :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
attr_reader :value
end
@ -1248,7 +1248,7 @@ module Stripe
class AmountRequested < Stripe::RequestParams
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
attr_accessor :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
attr_accessor :value
def initialize(currency: nil, value: nil)
@ -1414,7 +1414,7 @@ module Stripe
@phone = phone
end
end
# The amount you intend to collect for this payment.
# The amount you initially requested for this payment.
attr_accessor :amount_requested
# Customer information for this payment.
attr_accessor :customer_details

View File

@ -0,0 +1,251 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Privacy
# Redaction Jobs store the status of a redaction request. They are created
# when a redaction request is made and track the redaction validation and execution.
class RedactionJob < APIResource
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save
OBJECT_NAME = "privacy.redaction_job"
def self.object_name
"privacy.redaction_job"
end
class ListParams < Stripe::RequestParams
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
attr_accessor :ending_before
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
attr_accessor :limit
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
attr_accessor :starting_after
# Attribute for param field status
attr_accessor :status
def initialize(
ending_before: nil,
expand: nil,
limit: nil,
starting_after: nil,
status: nil
)
@ending_before = ending_before
@expand = expand
@limit = limit
@starting_after = starting_after
@status = status
end
end
class CreateParams < Stripe::RequestParams
class Objects < Stripe::RequestParams
# Attribute for param field charges
attr_accessor :charges
# Attribute for param field checkout_sessions
attr_accessor :checkout_sessions
# Attribute for param field customers
attr_accessor :customers
# Attribute for param field identity_verification_sessions
attr_accessor :identity_verification_sessions
# Attribute for param field invoices
attr_accessor :invoices
# Attribute for param field issuing_cardholders
attr_accessor :issuing_cardholders
# Attribute for param field issuing_cards
attr_accessor :issuing_cards
# Attribute for param field payment_intents
attr_accessor :payment_intents
# Attribute for param field radar_value_list_items
attr_accessor :radar_value_list_items
# Attribute for param field setup_intents
attr_accessor :setup_intents
def initialize(
charges: nil,
checkout_sessions: nil,
customers: nil,
identity_verification_sessions: nil,
invoices: nil,
issuing_cardholders: nil,
issuing_cards: nil,
payment_intents: nil,
radar_value_list_items: nil,
setup_intents: nil
)
@charges = charges
@checkout_sessions = checkout_sessions
@customers = customers
@identity_verification_sessions = identity_verification_sessions
@invoices = invoices
@issuing_cardholders = issuing_cardholders
@issuing_cards = issuing_cards
@payment_intents = payment_intents
@radar_value_list_items = radar_value_list_items
@setup_intents = setup_intents
end
end
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# The objects at the root level that are subject to redaction.
attr_accessor :objects
# Default is "error". If "error", we will make sure all objects in the graph are
# redactable in the 1st traversal, otherwise error. If "fix", where possible, we will
# auto-fix any validation errors (e.g. by auto-transitioning objects to a terminal
# state, etc.) in the 2nd traversal before redacting
attr_accessor :validation_behavior
def initialize(expand: nil, objects: nil, validation_behavior: nil)
@expand = expand
@objects = objects
@validation_behavior = validation_behavior
end
end
class UpdateParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# Attribute for param field validation_behavior
attr_accessor :validation_behavior
def initialize(expand: nil, validation_behavior: nil)
@expand = expand
@validation_behavior = validation_behavior
end
end
class CancelParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand
def initialize(expand: nil)
@expand = expand
end
end
class RunParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand
def initialize(expand: nil)
@expand = expand
end
end
class ValidateParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand
def initialize(expand: nil)
@expand = expand
end
end
# Time at which the object was created. Measured in seconds since the Unix epoch.
attr_reader :created
# Unique identifier for the object.
attr_reader :id
# String representing the object's type. Objects of the same type share the same value.
attr_reader :object
# The objects at the root level that are subject to redaction.
attr_reader :objects
# The status field represents the current state of the redaction job. It can take on any of the following values: VALIDATING, READY, REDACTING, SUCCEEDED, CANCELED, FAILED.
attr_reader :status
# Default is "error". If "error", we will make sure all objects in the graph are redactable in the 1st traversal, otherwise error. If "fix", where possible, we will auto-fix any validation errors (e.g. by auto-transitioning objects to a terminal state, etc.) in the 2nd traversal before redacting
attr_reader :validation_behavior
# Cancel redaction job method
def cancel(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/privacy/redaction_jobs/%<job>s/cancel", { job: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
# Cancel redaction job method
def self.cancel(job, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/privacy/redaction_jobs/%<job>s/cancel", { job: CGI.escape(job) }),
params: params,
opts: opts
)
end
# Create redaction job method
def self.create(params = {}, opts = {})
request_stripe_object(
method: :post,
path: "/v1/privacy/redaction_jobs",
params: params,
opts: opts
)
end
# List redaction jobs method...
def self.list(params = {}, opts = {})
request_stripe_object(
method: :get,
path: "/v1/privacy/redaction_jobs",
params: params,
opts: opts
)
end
# Run redaction job method
def run(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/privacy/redaction_jobs/%<job>s/run", { job: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
# Run redaction job method
def self.run(job, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/privacy/redaction_jobs/%<job>s/run", { job: CGI.escape(job) }),
params: params,
opts: opts
)
end
# Update redaction job method
def self.update(job, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/privacy/redaction_jobs/%<job>s", { job: CGI.escape(job) }),
params: params,
opts: opts
)
end
# Validate redaction job method
def validate(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/privacy/redaction_jobs/%<job>s/validate", { job: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
# Validate redaction job method
def self.validate(job, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/privacy/redaction_jobs/%<job>s/validate", { job: CGI.escape(job) }),
params: params,
opts: opts
)
end
end
end
end

View File

@ -0,0 +1,35 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Privacy
# The objects to redact, grouped by type. All redactable objects associated with these objects will be redacted as well.
class RedactionJobRootObjects < APIResource
OBJECT_NAME = "privacy.redaction_job_root_objects"
def self.object_name
"privacy.redaction_job_root_objects"
end
# Attribute for field charges
attr_reader :charges
# Attribute for field checkout_sessions
attr_reader :checkout_sessions
# Attribute for field customers
attr_reader :customers
# Attribute for field identity_verification_sessions
attr_reader :identity_verification_sessions
# Attribute for field invoices
attr_reader :invoices
# Attribute for field issuing_cardholders
attr_reader :issuing_cardholders
# String representing the object's type. Objects of the same type share the same value.
attr_reader :object
# Attribute for field payment_intents
attr_reader :payment_intents
# Attribute for field radar_value_list_items
attr_reader :radar_value_list_items
# Attribute for field setup_intents
attr_reader :setup_intents
end
end
end

View File

@ -0,0 +1,54 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Privacy
# Validation errors
class RedactionJobValidationError < APIResource
extend Stripe::APIOperations::List
OBJECT_NAME = "privacy.redaction_job_validation_error"
def self.object_name
"privacy.redaction_job_validation_error"
end
class ListParams < Stripe::RequestParams
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
attr_accessor :ending_before
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
attr_accessor :limit
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
attr_accessor :starting_after
def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
@ending_before = ending_before
@expand = expand
@limit = limit
@starting_after = starting_after
end
end
# Attribute for field code
attr_reader :code
# Attribute for field erroring_object
attr_reader :erroring_object
# Unique identifier for the object.
attr_reader :id
# Attribute for field message
attr_reader :message
# String representing the object's type. Objects of the same type share the same value.
attr_reader :object
# List validation errors method
def self.list(job, params = {}, opts = {})
request_stripe_object(
method: :get,
path: format("/v1/privacy/redaction_jobs/%<job>s/validation_errors", { job: CGI.escape(job) }),
params: params,
opts: opts
)
end
end
end
end

View File

@ -890,7 +890,7 @@ module Stripe
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
attr_accessor :billing_details
@ -964,11 +964,11 @@ module Stripe
attr_accessor :radar_options
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
attr_accessor :sepa_debit
@ -2103,7 +2103,7 @@ module Stripe
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
attr_accessor :billing_details
@ -2177,11 +2177,11 @@ module Stripe
attr_accessor :radar_options
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
attr_accessor :sepa_debit
@ -3316,7 +3316,7 @@ module Stripe
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
attr_accessor :billing_details
@ -3390,11 +3390,11 @@ module Stripe
attr_accessor :radar_options
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
attr_accessor :sepa_debit

View File

@ -1059,7 +1059,7 @@ module Stripe
attr_accessor :current_period_start
# The ID of the customer whose subscriptions will be retrieved.
attr_accessor :customer
# Attribute for param field customer_account
# The ID of the account whose subscriptions will be retrieved.
attr_accessor :customer_account
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
attr_accessor :ending_before
@ -1714,7 +1714,7 @@ module Stripe
attr_accessor :currency
# The identifier of the customer to subscribe.
attr_accessor :customer
# Attribute for param field customer_account
# The identifier of the account to subscribe.
attr_accessor :customer_account
# Number of days a customer has to pay invoices generated by this subscription. Valid only for subscriptions where `collection_method` is set to `send_invoice`.
attr_accessor :days_until_due
@ -1910,7 +1910,7 @@ module Stripe
attr_reader :currency
# ID of the customer who owns the subscription.
attr_reader :customer
# Attribute for field customer_account
# ID of the account who owns the subscription.
attr_reader :customer_account
# Number of days a customer has to pay invoices generated by this subscription. This value will be `null` for subscriptions where `collection_method=charge_automatically`.
attr_reader :days_until_due

View File

@ -300,6 +300,11 @@ module Stripe
attr_reader :type
end
class In < Stripe::StripeObject
# Type of registration in `country`.
attr_reader :type
end
class Is < Stripe::StripeObject
# Type of registration in `country`.
attr_reader :type
@ -718,6 +723,8 @@ module Stripe
attr_reader :id
# Attribute for field ie
attr_reader :ie
# Attribute for field in
attr_reader :in
# Attribute for field is
attr_reader :is
# Attribute for field it
@ -1356,6 +1363,15 @@ module Stripe
end
end
class In < Stripe::RequestParams
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
@type = type
end
end
class Is < Stripe::RequestParams
# Type of registration to be created in `country`.
attr_accessor :type
@ -2057,6 +2073,8 @@ module Stripe
attr_accessor :id
# Options for the registration in IE.
attr_accessor :ie
# Options for the registration in IN.
attr_accessor :in
# Options for the registration in IS.
attr_accessor :is
# Options for the registration in IT.
@ -2194,6 +2212,7 @@ module Stripe
hu: nil,
id: nil,
ie: nil,
in_: nil,
is: nil,
it: nil,
jp: nil,
@ -2281,6 +2300,7 @@ module Stripe
@hu = hu
@id = id
@ie = ie
@in = in_
@is = is
@it = it
@jp = jp

View File

@ -113,6 +113,9 @@ require "stripe/services/payment_record_service"
require "stripe/services/payout_service"
require "stripe/services/plan_service"
require "stripe/services/price_service"
require "stripe/services/privacy/redaction_job_service"
require "stripe/services/privacy/redaction_job_validation_error_service"
require "stripe/services/privacy_service"
require "stripe/services/product_feature_service"
require "stripe/services/product_service"
require "stripe/services/promotion_code_service"

View File

@ -125,6 +125,8 @@ module Stripe
attr_accessor :estimated_worker_count
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
attr_accessor :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
attr_accessor :minority_owned_business_designation
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
attr_accessor :monthly_estimated_revenue
# The customer-facing business name.
@ -146,6 +148,7 @@ module Stripe
annual_revenue: nil,
estimated_worker_count: nil,
mcc: nil,
minority_owned_business_designation: nil,
monthly_estimated_revenue: nil,
name: nil,
product_description: nil,
@ -158,6 +161,7 @@ module Stripe
@annual_revenue = annual_revenue
@estimated_worker_count = estimated_worker_count
@mcc = mcc
@minority_owned_business_designation = minority_owned_business_designation
@monthly_estimated_revenue = monthly_estimated_revenue
@name = name
@product_description = product_description
@ -2372,6 +2376,8 @@ module Stripe
attr_accessor :estimated_worker_count
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
attr_accessor :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
attr_accessor :minority_owned_business_designation
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
attr_accessor :monthly_estimated_revenue
# The customer-facing business name.
@ -2393,6 +2399,7 @@ module Stripe
annual_revenue: nil,
estimated_worker_count: nil,
mcc: nil,
minority_owned_business_designation: nil,
monthly_estimated_revenue: nil,
name: nil,
product_description: nil,
@ -2405,6 +2412,7 @@ module Stripe
@annual_revenue = annual_revenue
@estimated_worker_count = estimated_worker_count
@mcc = mcc
@minority_owned_business_designation = minority_owned_business_designation
@monthly_estimated_revenue = monthly_estimated_revenue
@name = name
@product_description = product_description

View File

@ -205,6 +205,20 @@ module Stripe
end
end
class ExportTaxTransactions < 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 FinancialAccount < Stripe::RequestParams
class Features < Stripe::RequestParams
# Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you dont set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
@ -391,6 +405,36 @@ module Stripe
end
end
class PaymentDisputes < Stripe::RequestParams
class Features < Stripe::RequestParams
# Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
attr_accessor :destination_on_behalf_of_charge_management
# Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
attr_accessor :dispute_management
# Whether to allow sending refunds. This is `true` by default.
attr_accessor :refund_management
def initialize(
destination_on_behalf_of_charge_management: nil,
dispute_management: nil,
refund_management: nil
)
@destination_on_behalf_of_charge_management = destination_on_behalf_of_charge_management
@dispute_management = dispute_management
@refund_management = refund_management
end
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 PaymentMethodSettings < Stripe::RequestParams
class Features < Stripe::RequestParams
end
@ -600,6 +644,8 @@ module Stripe
attr_accessor :capital_overview
# Configuration for the documents embedded component.
attr_accessor :documents
# Configuration for the export tax transactions embedded component.
attr_accessor :export_tax_transactions
# Configuration for the financial account embedded component.
attr_accessor :financial_account
# Configuration for the financial account transactions embedded component.
@ -612,6 +658,8 @@ module Stripe
attr_accessor :notification_banner
# Configuration for the payment details embedded component.
attr_accessor :payment_details
# Configuration for the payment disputes embedded component.
attr_accessor :payment_disputes
# Configuration for the payment method settings embedded component.
attr_accessor :payment_method_settings
# Configuration for the payments embedded component.
@ -644,12 +692,14 @@ module Stripe
capital_financing_promotion: nil,
capital_overview: nil,
documents: nil,
export_tax_transactions: nil,
financial_account: nil,
financial_account_transactions: nil,
issuing_card: nil,
issuing_cards_list: nil,
notification_banner: nil,
payment_details: nil,
payment_disputes: nil,
payment_method_settings: nil,
payments: nil,
payouts: nil,
@ -671,12 +721,14 @@ module Stripe
@capital_financing_promotion = capital_financing_promotion
@capital_overview = capital_overview
@documents = documents
@export_tax_transactions = export_tax_transactions
@financial_account = financial_account
@financial_account_transactions = financial_account_transactions
@issuing_card = issuing_card
@issuing_cards_list = issuing_cards_list
@notification_banner = notification_banner
@payment_details = payment_details
@payment_disputes = payment_disputes
@payment_method_settings = payment_method_settings
@payments = payments
@payouts = payouts

View File

@ -2073,6 +2073,23 @@ module Stripe
@required = required
end
end
class WalletOptions < Stripe::RequestParams
class Link < Stripe::RequestParams
# Specifies whether Checkout should display Link as a payment option. By default, Checkout will display all the supported wallets that the Checkout Session was created with. This is the `auto` behavior, and it is the default choice.
attr_accessor :display
def initialize(display: nil)
@display = display
end
end
# contains details about the Link wallet options.
attr_accessor :link
def initialize(link: nil)
@link = link
end
end
# Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
attr_accessor :adaptive_pricing
# Configure actions after a Checkout Session has expired.
@ -2186,7 +2203,7 @@ module Stripe
attr_accessor :payment_method_types
# This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
#
# For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
# For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
attr_accessor :permissions
# Controls phone number collection settings for the session.
#
@ -2224,6 +2241,8 @@ module Stripe
attr_accessor :tax_id_collection
# The UI mode of the Session. Defaults to `hosted`.
attr_accessor :ui_mode
# Wallet-specific configuration.
attr_accessor :wallet_options
def initialize(
adaptive_pricing: nil,
@ -2269,7 +2288,8 @@ module Stripe
subscription_data: nil,
success_url: nil,
tax_id_collection: nil,
ui_mode: nil
ui_mode: nil,
wallet_options: nil
)
@adaptive_pricing = adaptive_pricing
@after_expiration = after_expiration
@ -2315,6 +2335,7 @@ module Stripe
@success_url = success_url
@tax_id_collection = tax_id_collection
@ui_mode = ui_mode
@wallet_options = wallet_options
end
end

View File

@ -685,7 +685,7 @@ module Stripe
attr_accessor :created
# Only return invoices for the customer specified by this customer ID.
attr_accessor :customer
# Attribute for param field customer_account
# Only return invoices for the account specified by this account ID.
attr_accessor :customer_account
# Attribute for param field due_date
attr_accessor :due_date

View File

@ -1240,7 +1240,7 @@ module Stripe
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
attr_accessor :billing_details
@ -1314,11 +1314,11 @@ module Stripe
attr_accessor :radar_options
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
attr_accessor :sepa_debit
@ -4740,7 +4740,7 @@ module Stripe
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
attr_accessor :billing_details
@ -4814,11 +4814,11 @@ module Stripe
attr_accessor :radar_options
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
attr_accessor :sepa_debit
@ -8960,7 +8960,7 @@ module Stripe
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
attr_accessor :billing_details
@ -9034,11 +9034,11 @@ module Stripe
attr_accessor :radar_options
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
attr_accessor :sepa_debit

View File

@ -515,7 +515,7 @@ module Stripe
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
attr_accessor :billing_details
@ -597,11 +597,11 @@ module Stripe
attr_accessor :radar_options
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
attr_accessor :sepa_debit

View File

@ -243,7 +243,7 @@ module Stripe
class AmountRequested < Stripe::RequestParams
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
attr_accessor :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
attr_accessor :value
def initialize(currency: nil, value: nil)
@ -409,7 +409,7 @@ module Stripe
@phone = phone
end
end
# The amount you intend to collect for this payment.
# The amount you initially requested for this payment.
attr_accessor :amount_requested
# Customer information for this payment.
attr_accessor :customer_details

View File

@ -0,0 +1,231 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Privacy
class RedactionJobService < StripeService
attr_reader :validation_errors
def initialize(requestor)
super(requestor)
@validation_errors = Stripe::Privacy::RedactionJobValidationErrorService.new(@requestor)
end
class ListParams < Stripe::RequestParams
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
attr_accessor :ending_before
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
attr_accessor :limit
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
attr_accessor :starting_after
# Attribute for param field status
attr_accessor :status
def initialize(
ending_before: nil,
expand: nil,
limit: nil,
starting_after: nil,
status: nil
)
@ending_before = ending_before
@expand = expand
@limit = limit
@starting_after = starting_after
@status = status
end
end
class CreateParams < Stripe::RequestParams
class Objects < Stripe::RequestParams
# Attribute for param field charges
attr_accessor :charges
# Attribute for param field checkout_sessions
attr_accessor :checkout_sessions
# Attribute for param field customers
attr_accessor :customers
# Attribute for param field identity_verification_sessions
attr_accessor :identity_verification_sessions
# Attribute for param field invoices
attr_accessor :invoices
# Attribute for param field issuing_cardholders
attr_accessor :issuing_cardholders
# Attribute for param field issuing_cards
attr_accessor :issuing_cards
# Attribute for param field payment_intents
attr_accessor :payment_intents
# Attribute for param field radar_value_list_items
attr_accessor :radar_value_list_items
# Attribute for param field setup_intents
attr_accessor :setup_intents
def initialize(
charges: nil,
checkout_sessions: nil,
customers: nil,
identity_verification_sessions: nil,
invoices: nil,
issuing_cardholders: nil,
issuing_cards: nil,
payment_intents: nil,
radar_value_list_items: nil,
setup_intents: nil
)
@charges = charges
@checkout_sessions = checkout_sessions
@customers = customers
@identity_verification_sessions = identity_verification_sessions
@invoices = invoices
@issuing_cardholders = issuing_cardholders
@issuing_cards = issuing_cards
@payment_intents = payment_intents
@radar_value_list_items = radar_value_list_items
@setup_intents = setup_intents
end
end
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# The objects at the root level that are subject to redaction.
attr_accessor :objects
# Default is "error". If "error", we will make sure all objects in the graph are
# redactable in the 1st traversal, otherwise error. If "fix", where possible, we will
# auto-fix any validation errors (e.g. by auto-transitioning objects to a terminal
# state, etc.) in the 2nd traversal before redacting
attr_accessor :validation_behavior
def initialize(expand: nil, objects: nil, validation_behavior: nil)
@expand = expand
@objects = objects
@validation_behavior = validation_behavior
end
end
class RetrieveParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand
def initialize(expand: nil)
@expand = expand
end
end
class UpdateParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# Attribute for param field validation_behavior
attr_accessor :validation_behavior
def initialize(expand: nil, validation_behavior: nil)
@expand = expand
@validation_behavior = validation_behavior
end
end
class CancelParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand
def initialize(expand: nil)
@expand = expand
end
end
class RunParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand
def initialize(expand: nil)
@expand = expand
end
end
class ValidateParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand
def initialize(expand: nil)
@expand = expand
end
end
# Cancel redaction job method
def cancel(job, params = {}, opts = {})
request(
method: :post,
path: format("/v1/privacy/redaction_jobs/%<job>s/cancel", { job: CGI.escape(job) }),
params: params,
opts: opts,
base_address: :api
)
end
# Create redaction job method
def create(params = {}, opts = {})
request(
method: :post,
path: "/v1/privacy/redaction_jobs",
params: params,
opts: opts,
base_address: :api
)
end
# List redaction jobs method...
def list(params = {}, opts = {})
request(
method: :get,
path: "/v1/privacy/redaction_jobs",
params: params,
opts: opts,
base_address: :api
)
end
# Retrieve redaction job method
def retrieve(job, params = {}, opts = {})
request(
method: :get,
path: format("/v1/privacy/redaction_jobs/%<job>s", { job: CGI.escape(job) }),
params: params,
opts: opts,
base_address: :api
)
end
# Run redaction job method
def run(job, params = {}, opts = {})
request(
method: :post,
path: format("/v1/privacy/redaction_jobs/%<job>s/run", { job: CGI.escape(job) }),
params: params,
opts: opts,
base_address: :api
)
end
# Update redaction job method
def update(job, params = {}, opts = {})
request(
method: :post,
path: format("/v1/privacy/redaction_jobs/%<job>s", { job: CGI.escape(job) }),
params: params,
opts: opts,
base_address: :api
)
end
# Validate redaction job method
def validate(job, params = {}, opts = {})
request(
method: :post,
path: format("/v1/privacy/redaction_jobs/%<job>s/validate", { job: CGI.escape(job) }),
params: params,
opts: opts,
base_address: :api
)
end
end
end
end

View File

@ -0,0 +1,57 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Privacy
class RedactionJobValidationErrorService < StripeService
class ListParams < Stripe::RequestParams
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
attr_accessor :ending_before
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
attr_accessor :limit
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
attr_accessor :starting_after
def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
@ending_before = ending_before
@expand = expand
@limit = limit
@starting_after = starting_after
end
end
class RetrieveParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand
def initialize(expand: nil)
@expand = expand
end
end
# List validation errors method
def list(job, params = {}, opts = {})
request(
method: :get,
path: format("/v1/privacy/redaction_jobs/%<job>s/validation_errors", { job: CGI.escape(job) }),
params: params,
opts: opts,
base_address: :api
)
end
# Retrieve validation error method
def retrieve(job, error, params = {}, opts = {})
request(
method: :get,
path: format("/v1/privacy/redaction_jobs/%<job>s/validation_errors/%<error>s", { job: CGI.escape(job), error: CGI.escape(error) }),
params: params,
opts: opts,
base_address: :api
)
end
end
end
end

View File

@ -0,0 +1,13 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
class PrivacyService < StripeService
attr_reader :redaction_jobs
def initialize(requestor)
super(requestor)
@redaction_jobs = Stripe::Privacy::RedactionJobService.new(@requestor)
end
end
end

View File

@ -562,7 +562,7 @@ module Stripe
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
attr_accessor :billing_details
@ -636,11 +636,11 @@ module Stripe
attr_accessor :radar_options
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
attr_accessor :sepa_debit
@ -1787,7 +1787,7 @@ module Stripe
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
attr_accessor :billing_details
@ -1861,11 +1861,11 @@ module Stripe
attr_accessor :radar_options
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
attr_accessor :sepa_debit
@ -3000,7 +3000,7 @@ module Stripe
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
attr_accessor :billing_details
@ -3074,11 +3074,11 @@ module Stripe
attr_accessor :radar_options
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
attr_accessor :sepa_debit

View File

@ -833,7 +833,7 @@ module Stripe
attr_accessor :current_period_start
# The ID of the customer whose subscriptions will be retrieved.
attr_accessor :customer
# Attribute for param field customer_account
# The ID of the account whose subscriptions will be retrieved.
attr_accessor :customer_account
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
attr_accessor :ending_before
@ -1488,7 +1488,7 @@ module Stripe
attr_accessor :currency
# The identifier of the customer to subscribe.
attr_accessor :customer
# Attribute for param field customer_account
# The identifier of the account to subscribe.
attr_accessor :customer_account
# Number of days a customer has to pay invoices generated by this subscription. Valid only for subscriptions where `collection_method` is set to `send_invoice`.
attr_accessor :days_until_due

View File

@ -542,6 +542,15 @@ module Stripe
end
end
class In < Stripe::RequestParams
# Type of registration to be created in `country`.
attr_accessor :type
def initialize(type: nil)
@type = type
end
end
class Is < Stripe::RequestParams
# Type of registration to be created in `country`.
attr_accessor :type
@ -1243,6 +1252,8 @@ module Stripe
attr_accessor :id
# Options for the registration in IE.
attr_accessor :ie
# Options for the registration in IN.
attr_accessor :in
# Options for the registration in IS.
attr_accessor :is
# Options for the registration in IT.
@ -1380,6 +1391,7 @@ module Stripe
hu: nil,
id: nil,
ie: nil,
in_: nil,
is: nil,
it: nil,
jp: nil,
@ -1467,6 +1479,7 @@ module Stripe
@hu = hu
@id = id
@ie = ie
@in = in_
@is = is
@it = it
@jp = jp

View File

@ -447,7 +447,7 @@ module Stripe
attr_accessor :bacs_debit
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
attr_accessor :billing_details
@ -521,11 +521,11 @@ module Stripe
attr_accessor :radar_options
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
attr_accessor :sepa_debit

View File

@ -4,7 +4,7 @@ module Stripe
class V1Services < StripeService
# v1 accessors: The beginning of the section generated from our OpenAPI spec
attr_reader :accounts
attr_reader :account_links, :account_notices, :account_sessions, :apple_pay_domains, :application_fees, :apps, :balance, :balance_settings, :balance_transactions, :billing, :billing_portal, :capital, :charges, :checkout, :climate, :confirmation_tokens, :test_helpers, :country_specs, :coupons, :credit_notes, :customers, :customer_sessions, :disputes, :entitlements, :ephemeral_keys, :events, :exchange_rates, :files, :file_links, :financial_connections, :forwarding, :gift_cards, :identity, :invoices, :invoice_rendering_templates, :invoice_items, :issuing, :mandates, :margins, :orders, :payment_attempt_records, :payment_intents, :payment_links, :payment_methods, :payment_method_configurations, :payment_method_domains, :payment_records, :payouts, :plans, :prices, :products, :promotion_codes, :quotes, :radar, :refunds, :reporting, :reviews, :sigma, :setup_attempts, :setup_intents, :shipping_rates, :sources, :subscriptions, :subscription_items, :subscription_schedules, :tax, :tax_codes, :tax_ids, :tax_rates, :terminal, :tokens, :topups, :transfers, :treasury, :webhook_endpoints, :external_accounts
attr_reader :account_links, :account_notices, :account_sessions, :apple_pay_domains, :application_fees, :apps, :balance, :balance_settings, :balance_transactions, :billing, :billing_portal, :capital, :charges, :checkout, :climate, :confirmation_tokens, :test_helpers, :country_specs, :coupons, :credit_notes, :customers, :customer_sessions, :disputes, :entitlements, :ephemeral_keys, :events, :exchange_rates, :files, :file_links, :financial_connections, :forwarding, :gift_cards, :identity, :invoices, :invoice_rendering_templates, :invoice_items, :issuing, :mandates, :margins, :orders, :payment_attempt_records, :payment_intents, :payment_links, :payment_methods, :payment_method_configurations, :payment_method_domains, :payment_records, :payouts, :plans, :prices, :privacy, :products, :promotion_codes, :quotes, :radar, :refunds, :reporting, :reviews, :sigma, :setup_attempts, :setup_intents, :shipping_rates, :sources, :subscriptions, :subscription_items, :subscription_schedules, :tax, :tax_codes, :tax_ids, :tax_rates, :terminal, :tokens, :topups, :transfers, :treasury, :webhook_endpoints, :external_accounts
# v1 accessors: The end of the section generated from our OpenAPI spec
# OAuthService is manually maintained, as it has special behaviors
@ -64,6 +64,7 @@ module Stripe
@payouts = Stripe::PayoutService.new(@requestor)
@plans = Stripe::PlanService.new(@requestor)
@prices = Stripe::PriceService.new(@requestor)
@privacy = Stripe::PrivacyService.new(@requestor)
@products = Stripe::ProductService.new(@requestor)
@promotion_codes = Stripe::PromotionCodeService.new(@requestor)
@quotes = Stripe::QuoteService.new(@requestor)

View File

@ -9,11 +9,13 @@ module Stripe
# The page size.
attr_accessor :limit
# Primary object ID used to retrieve related events.
attr_accessor :object_id
#
# To avoid conflict with Ruby's ':object_id', this attribute has been renamed. If using a hash parameter map instead, please use the original name ':object_id' with NO trailing underscore as the provided param key.
attr_accessor :object_id_
def initialize(limit: nil, object_id: nil)
def initialize(limit: nil, object_id_: nil)
@limit = limit
@object_id = object_id
@object_id_ = object_id_
end
end

View File

@ -372,7 +372,16 @@ module Stripe
end
keys.each do |k|
instance_variable_set(:"@#{k}", values[k])
if Util.valid_variable_name?(k)
instance_variable_set(:"@#{k}", values[k])
else
Util.log_info(<<~LOG
The variable name '#{k}' is not a valid Ruby variable name.
Use ["#{k}"] to access this field, skipping instance variable instantiation...
LOG
)
end
end
end
@ -473,13 +482,14 @@ module Stripe
# Should only be for v2 events and lists, for now.
protected def _request(method:, path:, base_address:, params: {}, opts: {})
req_opts = RequestOptions.combine_opts(@opts, opts)
req_opts = RequestOptions.extract_opts_from_hash(opts)
req_opts = RequestOptions.combine_opts(@opts, req_opts)
@requestor.execute_request(
method,
path,
base_address,
params: params,
opts: RequestOptions.extract_opts_from_hash(req_opts)
opts: req_opts
)
end

View File

@ -4,6 +4,9 @@ require "cgi"
module Stripe
module Util
LEGAL_FIRST_CHARACTER = /[a-zA-Z_]/.freeze
LEGAL_VARIABLE_CHARACTER = /[a-zA-Z0-9_]/.freeze
def self.objects_to_ids(obj)
case obj
when APIResource
@ -315,6 +318,14 @@ module Stripe
end
end
# Return false for strings that are invalid variable names
# Does NOT expect there to be a preceding '@' for instance variables
def self.valid_variable_name?(key)
return false if key.empty? || key[0] !~ LEGAL_FIRST_CHARACTER
key[1..-1].chars.all? { |char| char =~ LEGAL_VARIABLE_CHARACTER }
end
def self.check_string_argument!(key)
raise TypeError, "argument must be a string" unless key.is_a?(String)

File diff suppressed because one or more lines are too long

View File

@ -65,6 +65,9 @@ module Stripe
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
sig { returns(T.nilable(String)) }
attr_reader :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
sig { returns(T.nilable(T::Array[String])) }
attr_reader :minority_owned_business_designation
# Attribute for field monthly_estimated_revenue
sig { returns(MonthlyEstimatedRevenue) }
attr_reader :monthly_estimated_revenue
@ -1044,6 +1047,9 @@ module Stripe
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
sig { returns(T.nilable(String)) }
attr_accessor :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :minority_owned_business_designation
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
sig {
returns(T.nilable(::Stripe::Account::UpdateParams::BusinessProfile::MonthlyEstimatedRevenue))
@ -1071,12 +1077,13 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :url
sig {
params(annual_revenue: T.nilable(::Stripe::Account::UpdateParams::BusinessProfile::AnnualRevenue), estimated_worker_count: T.nilable(Integer), mcc: T.nilable(String), monthly_estimated_revenue: T.nilable(::Stripe::Account::UpdateParams::BusinessProfile::MonthlyEstimatedRevenue), name: T.nilable(String), product_description: T.nilable(String), support_address: T.nilable(::Stripe::Account::UpdateParams::BusinessProfile::SupportAddress), support_email: T.nilable(String), support_phone: T.nilable(String), support_url: T.nilable(T.nilable(String)), url: T.nilable(String)).void
params(annual_revenue: T.nilable(::Stripe::Account::UpdateParams::BusinessProfile::AnnualRevenue), estimated_worker_count: T.nilable(Integer), mcc: T.nilable(String), minority_owned_business_designation: T.nilable(T::Array[String]), monthly_estimated_revenue: T.nilable(::Stripe::Account::UpdateParams::BusinessProfile::MonthlyEstimatedRevenue), name: T.nilable(String), product_description: T.nilable(String), support_address: T.nilable(::Stripe::Account::UpdateParams::BusinessProfile::SupportAddress), support_email: T.nilable(String), support_phone: T.nilable(String), support_url: T.nilable(T.nilable(String)), url: T.nilable(String)).void
}
def initialize(
annual_revenue: nil,
estimated_worker_count: nil,
mcc: nil,
minority_owned_business_designation: nil,
monthly_estimated_revenue: nil,
name: nil,
product_description: nil,
@ -3210,6 +3217,9 @@ module Stripe
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
sig { returns(T.nilable(String)) }
attr_accessor :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :minority_owned_business_designation
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
sig {
returns(T.nilable(::Stripe::Account::CreateParams::BusinessProfile::MonthlyEstimatedRevenue))
@ -3237,12 +3247,13 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :url
sig {
params(annual_revenue: T.nilable(::Stripe::Account::CreateParams::BusinessProfile::AnnualRevenue), estimated_worker_count: T.nilable(Integer), mcc: T.nilable(String), monthly_estimated_revenue: T.nilable(::Stripe::Account::CreateParams::BusinessProfile::MonthlyEstimatedRevenue), name: T.nilable(String), product_description: T.nilable(String), support_address: T.nilable(::Stripe::Account::CreateParams::BusinessProfile::SupportAddress), support_email: T.nilable(String), support_phone: T.nilable(String), support_url: T.nilable(T.nilable(String)), url: T.nilable(String)).void
params(annual_revenue: T.nilable(::Stripe::Account::CreateParams::BusinessProfile::AnnualRevenue), estimated_worker_count: T.nilable(Integer), mcc: T.nilable(String), minority_owned_business_designation: T.nilable(T::Array[String]), monthly_estimated_revenue: T.nilable(::Stripe::Account::CreateParams::BusinessProfile::MonthlyEstimatedRevenue), name: T.nilable(String), product_description: T.nilable(String), support_address: T.nilable(::Stripe::Account::CreateParams::BusinessProfile::SupportAddress), support_email: T.nilable(String), support_phone: T.nilable(String), support_url: T.nilable(T.nilable(String)), url: T.nilable(String)).void
}
def initialize(
annual_revenue: nil,
estimated_worker_count: nil,
mcc: nil,
minority_owned_business_designation: nil,
monthly_estimated_revenue: nil,
name: nil,
product_description: nil,

View File

@ -604,6 +604,23 @@ module Stripe
}
def initialize(enabled: nil, features: nil); end
end
class ExportTaxTransactions < 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(T.nilable(::Stripe::AccountSession::CreateParams::Components::ExportTaxTransactions::Features))
}
attr_accessor :features
sig {
params(enabled: T::Boolean, features: T.nilable(::Stripe::AccountSession::CreateParams::Components::ExportTaxTransactions::Features)).void
}
def initialize(enabled: nil, features: nil); end
end
class FinancialAccount < Stripe::RequestParams
class Features < Stripe::RequestParams
# Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you dont set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
@ -806,6 +823,39 @@ module Stripe
}
def initialize(enabled: nil, features: nil); end
end
class PaymentDisputes < Stripe::RequestParams
class Features < Stripe::RequestParams
# Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :destination_on_behalf_of_charge_management
# Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :dispute_management
# Whether to allow sending refunds. This is `true` by default.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :refund_management
sig {
params(destination_on_behalf_of_charge_management: T.nilable(T::Boolean), dispute_management: T.nilable(T::Boolean), refund_management: T.nilable(T::Boolean)).void
}
def initialize(
destination_on_behalf_of_charge_management: nil,
dispute_management: nil,
refund_management: nil
); end
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(T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDisputes::Features))
}
attr_accessor :features
sig {
params(enabled: T::Boolean, features: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDisputes::Features)).void
}
def initialize(enabled: nil, features: nil); end
end
class PaymentMethodSettings < Stripe::RequestParams
class Features < Stripe::RequestParams
@ -1066,6 +1116,11 @@ module Stripe
# Configuration for the documents embedded component.
sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::Documents)) }
attr_accessor :documents
# Configuration for the export tax transactions embedded component.
sig {
returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::ExportTaxTransactions))
}
attr_accessor :export_tax_transactions
# Configuration for the financial account embedded component.
sig {
returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccount))
@ -1094,6 +1149,11 @@ module Stripe
returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDetails))
}
attr_accessor :payment_details
# Configuration for the payment disputes embedded component.
sig {
returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDisputes))
}
attr_accessor :payment_disputes
# Configuration for the payment method settings embedded component.
sig {
returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentMethodSettings))
@ -1135,7 +1195,7 @@ module Stripe
}
attr_accessor :tax_threshold_monitoring
sig {
params(account_management: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountOnboarding), app_install: T.nilable(::Stripe::AccountSession::CreateParams::Components::AppInstall), app_viewport: T.nilable(::Stripe::AccountSession::CreateParams::Components::AppViewport), balances: T.nilable(::Stripe::AccountSession::CreateParams::Components::Balances), capital_financing: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalFinancing), capital_financing_application: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalFinancingApplication), capital_financing_promotion: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalFinancingPromotion), capital_overview: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalOverview), documents: T.nilable(::Stripe::AccountSession::CreateParams::Components::Documents), financial_account: T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccount), financial_account_transactions: T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccountTransactions), issuing_card: T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCard), issuing_cards_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCardsList), notification_banner: T.nilable(::Stripe::AccountSession::CreateParams::Components::NotificationBanner), payment_details: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDetails), payment_method_settings: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentMethodSettings), payments: T.nilable(::Stripe::AccountSession::CreateParams::Components::Payments), payouts: T.nilable(::Stripe::AccountSession::CreateParams::Components::Payouts), payouts_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::PayoutsList), product_tax_code_selector: T.nilable(::Stripe::AccountSession::CreateParams::Components::ProductTaxCodeSelector), recipients: T.nilable(::Stripe::AccountSession::CreateParams::Components::Recipients), reporting_chart: T.nilable(::Stripe::AccountSession::CreateParams::Components::ReportingChart), tax_registrations: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxSettings), tax_threshold_monitoring: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxThresholdMonitoring)).void
params(account_management: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountOnboarding), app_install: T.nilable(::Stripe::AccountSession::CreateParams::Components::AppInstall), app_viewport: T.nilable(::Stripe::AccountSession::CreateParams::Components::AppViewport), balances: T.nilable(::Stripe::AccountSession::CreateParams::Components::Balances), capital_financing: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalFinancing), capital_financing_application: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalFinancingApplication), capital_financing_promotion: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalFinancingPromotion), capital_overview: T.nilable(::Stripe::AccountSession::CreateParams::Components::CapitalOverview), documents: T.nilable(::Stripe::AccountSession::CreateParams::Components::Documents), export_tax_transactions: T.nilable(::Stripe::AccountSession::CreateParams::Components::ExportTaxTransactions), financial_account: T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccount), financial_account_transactions: T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccountTransactions), issuing_card: T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCard), issuing_cards_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCardsList), notification_banner: T.nilable(::Stripe::AccountSession::CreateParams::Components::NotificationBanner), payment_details: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDetails), payment_disputes: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDisputes), payment_method_settings: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentMethodSettings), payments: T.nilable(::Stripe::AccountSession::CreateParams::Components::Payments), payouts: T.nilable(::Stripe::AccountSession::CreateParams::Components::Payouts), payouts_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::PayoutsList), product_tax_code_selector: T.nilable(::Stripe::AccountSession::CreateParams::Components::ProductTaxCodeSelector), recipients: T.nilable(::Stripe::AccountSession::CreateParams::Components::Recipients), reporting_chart: T.nilable(::Stripe::AccountSession::CreateParams::Components::ReportingChart), tax_registrations: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxSettings), tax_threshold_monitoring: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxThresholdMonitoring)).void
}
def initialize(
account_management: nil,
@ -1148,12 +1208,14 @@ module Stripe
capital_financing_promotion: nil,
capital_overview: nil,
documents: nil,
export_tax_transactions: nil,
financial_account: nil,
financial_account_transactions: nil,
issuing_card: nil,
issuing_cards_list: nil,
notification_banner: nil,
payment_details: nil,
payment_disputes: nil,
payment_method_settings: nil,
payments: nil,
payouts: nil,

View File

@ -3,7 +3,7 @@
# typed: true
module Stripe
# "Options for customizing account balances within Stripe."
# Options for customizing account balances within Stripe.
class BalanceSettings < SingletonAPIResource
class Payouts < Stripe::StripeObject
class Schedule < Stripe::StripeObject

View File

@ -1291,6 +1291,16 @@ module Stripe
sig { returns(Breakdown) }
attr_reader :breakdown
end
class WalletOptions < Stripe::StripeObject
class Link < Stripe::StripeObject
# Describes whether Checkout should display Link. Defaults to `auto`.
sig { returns(String) }
attr_reader :display
end
# Attribute for field link
sig { returns(Link) }
attr_reader :link
end
# Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
sig { returns(T.nilable(AdaptivePricing)) }
attr_reader :adaptive_pricing
@ -1432,7 +1442,7 @@ module Stripe
attr_reader :payment_status
# This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
#
# For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
# For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
sig { returns(T.nilable(Permissions)) }
attr_reader :permissions
# Attribute for field phone_number_collection
@ -1493,6 +1503,9 @@ module Stripe
# This value is only present when the session is active.
sig { returns(T.nilable(String)) }
attr_reader :url
# Wallet-specific configuration for this Checkout Session.
sig { returns(T.nilable(WalletOptions)) }
attr_reader :wallet_options
class ListParams < Stripe::RequestParams
class Created < Stripe::RequestParams
# Minimum value to filter by (exclusive)
@ -3651,6 +3664,22 @@ module Stripe
sig { params(enabled: T::Boolean, required: T.nilable(String)).void }
def initialize(enabled: nil, required: nil); end
end
class WalletOptions < Stripe::RequestParams
class Link < Stripe::RequestParams
# Specifies whether Checkout should display Link as a payment option. By default, Checkout will display all the supported wallets that the Checkout Session was created with. This is the `auto` behavior, and it is the default choice.
sig { returns(T.nilable(String)) }
attr_accessor :display
sig { params(display: T.nilable(String)).void }
def initialize(display: nil); end
end
# contains details about the Link wallet options.
sig { returns(T.nilable(::Stripe::Checkout::Session::CreateParams::WalletOptions::Link)) }
attr_accessor :link
sig {
params(link: T.nilable(::Stripe::Checkout::Session::CreateParams::WalletOptions::Link)).void
}
def initialize(link: nil); end
end
# Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
sig { returns(T.nilable(::Stripe::Checkout::Session::CreateParams::AdaptivePricing)) }
attr_accessor :adaptive_pricing
@ -3797,7 +3826,7 @@ module Stripe
attr_accessor :payment_method_types
# This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
#
# For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
# For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
sig { returns(T.nilable(::Stripe::Checkout::Session::CreateParams::Permissions)) }
attr_accessor :permissions
# Controls phone number collection settings for the session.
@ -3854,8 +3883,11 @@ module Stripe
# The UI mode of the Session. Defaults to `hosted`.
sig { returns(T.nilable(String)) }
attr_accessor :ui_mode
# Wallet-specific configuration.
sig { returns(T.nilable(::Stripe::Checkout::Session::CreateParams::WalletOptions)) }
attr_accessor :wallet_options
sig {
params(adaptive_pricing: T.nilable(::Stripe::Checkout::Session::CreateParams::AdaptivePricing), after_expiration: T.nilable(::Stripe::Checkout::Session::CreateParams::AfterExpiration), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::Checkout::Session::CreateParams::AutomaticTax), billing_address_collection: T.nilable(String), cancel_url: T.nilable(String), client_reference_id: T.nilable(String), consent_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::CustomField]), custom_text: T.nilable(::Stripe::Checkout::Session::CreateParams::CustomText), customer: T.nilable(String), customer_account: T.nilable(String), customer_creation: T.nilable(String), customer_email: T.nilable(String), customer_update: T.nilable(::Stripe::Checkout::Session::CreateParams::CustomerUpdate), discounts: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::Discount]), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), invoice_creation: T.nilable(::Stripe::Checkout::Session::CreateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::LineItem]), locale: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), mode: T.nilable(String), optional_items: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::OptionalItem]), payment_intent_data: T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), permissions: T.nilable(::Stripe::Checkout::Session::CreateParams::Permissions), phone_number_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::PhoneNumberCollection), redirect_on_completion: T.nilable(String), return_url: T.nilable(String), saved_payment_method_options: T.nilable(::Stripe::Checkout::Session::CreateParams::SavedPaymentMethodOptions), setup_intent_data: T.nilable(::Stripe::Checkout::Session::CreateParams::SetupIntentData), shipping_address_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::Checkout::Session::CreateParams::SubscriptionData), success_url: T.nilable(String), tax_id_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::TaxIdCollection), ui_mode: T.nilable(String)).void
params(adaptive_pricing: T.nilable(::Stripe::Checkout::Session::CreateParams::AdaptivePricing), after_expiration: T.nilable(::Stripe::Checkout::Session::CreateParams::AfterExpiration), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::Checkout::Session::CreateParams::AutomaticTax), billing_address_collection: T.nilable(String), cancel_url: T.nilable(String), client_reference_id: T.nilable(String), consent_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::CustomField]), custom_text: T.nilable(::Stripe::Checkout::Session::CreateParams::CustomText), customer: T.nilable(String), customer_account: T.nilable(String), customer_creation: T.nilable(String), customer_email: T.nilable(String), customer_update: T.nilable(::Stripe::Checkout::Session::CreateParams::CustomerUpdate), discounts: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::Discount]), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), invoice_creation: T.nilable(::Stripe::Checkout::Session::CreateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::LineItem]), locale: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), mode: T.nilable(String), optional_items: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::OptionalItem]), payment_intent_data: T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), permissions: T.nilable(::Stripe::Checkout::Session::CreateParams::Permissions), phone_number_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::PhoneNumberCollection), redirect_on_completion: T.nilable(String), return_url: T.nilable(String), saved_payment_method_options: T.nilable(::Stripe::Checkout::Session::CreateParams::SavedPaymentMethodOptions), setup_intent_data: T.nilable(::Stripe::Checkout::Session::CreateParams::SetupIntentData), shipping_address_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::Checkout::Session::CreateParams::SubscriptionData), success_url: T.nilable(String), tax_id_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::TaxIdCollection), ui_mode: T.nilable(String), wallet_options: T.nilable(::Stripe::Checkout::Session::CreateParams::WalletOptions)).void
}
def initialize(
adaptive_pricing: nil,
@ -3901,7 +3933,8 @@ module Stripe
subscription_data: nil,
success_url: nil,
tax_id_collection: nil,
ui_mode: nil
ui_mode: nil,
wallet_options: nil
); end
end
class UpdateParams < Stripe::RequestParams

View File

@ -1625,7 +1625,7 @@ module Stripe
returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Bancontact))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
sig {
returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Billie))
}
@ -1808,7 +1808,7 @@ module Stripe
returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Rechnung))
}
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
sig {
returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::RevolutPay))
}
@ -1818,7 +1818,7 @@ module Stripe
returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::SamsungPay))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
sig {
returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Satispay))
}

View File

@ -1580,7 +1580,7 @@ module Stripe
# Only return invoices for the customer specified by this customer ID.
sig { returns(T.nilable(String)) }
attr_accessor :customer
# Attribute for param field customer_account
# Only return invoices for the account specified by this account ID.
sig { returns(T.nilable(String)) }
attr_accessor :customer_account
# Attribute for param field due_date

View File

@ -3,7 +3,8 @@
# typed: true
module Stripe
# Login Links are single-use URLs for a connected account to access the Express Dashboard. The connected account's [account.controller.stripe_dashboard.type](https://stripe.com/api/accounts/object#account_object-controller-stripe_dashboard-type) must be `express` to have access to the Express Dashboard.
# Login Links are single-use URLs that takes an Express account to the login page for their Stripe dashboard.
# A Login Link differs from an [Account Link](https://stripe.com/docs/api/account_links) in that it takes the user directly to their [Express dashboard for the specified account](https://stripe.com/docs/connect/integrate-express-dashboard#create-login-link)
class LoginLink < APIResource
# Time at which the object was created. Measured in seconds since the Unix epoch.
sig { returns(Integer) }

View File

@ -12,7 +12,7 @@ module Stripe
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
sig { returns(String) }
attr_reader :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
sig { returns(Integer) }
attr_reader :value
end
@ -20,7 +20,7 @@ module Stripe
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
sig { returns(String) }
attr_reader :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
sig { returns(Integer) }
attr_reader :value
end
@ -28,7 +28,7 @@ module Stripe
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
sig { returns(String) }
attr_reader :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
sig { returns(Integer) }
attr_reader :value
end
@ -36,7 +36,7 @@ module Stripe
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
sig { returns(String) }
attr_reader :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
sig { returns(Integer) }
attr_reader :value
end

View File

@ -3813,7 +3813,7 @@ module Stripe
returns(T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Bancontact))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
sig { returns(T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Billie)) }
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
@ -3958,7 +3958,7 @@ module Stripe
returns(T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Rechnung))
}
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
sig {
returns(T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodData::RevolutPay))
}
@ -3968,7 +3968,7 @@ module Stripe
returns(T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodData::SamsungPay))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
sig {
returns(T.nilable(::Stripe::PaymentIntent::CreateParams::PaymentMethodData::Satispay))
}
@ -7502,7 +7502,7 @@ module Stripe
returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Bancontact))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
sig { returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Billie)) }
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
@ -7647,7 +7647,7 @@ module Stripe
returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Rechnung))
}
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
sig {
returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::RevolutPay))
}
@ -7657,7 +7657,7 @@ module Stripe
returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::SamsungPay))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
sig {
returns(T.nilable(::Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Satispay))
}
@ -11982,7 +11982,7 @@ module Stripe
returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Bancontact))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
sig {
returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Billie))
}
@ -12139,7 +12139,7 @@ module Stripe
returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Rechnung))
}
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
sig {
returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::RevolutPay))
}
@ -12149,7 +12149,7 @@ module Stripe
returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::SamsungPay))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
sig {
returns(T.nilable(::Stripe::PaymentIntent::ConfirmParams::PaymentMethodData::Satispay))
}

View File

@ -1560,7 +1560,7 @@ module Stripe
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Bancontact)) }
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Billie)) }
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
@ -1683,13 +1683,13 @@ module Stripe
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Rechnung)) }
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::RevolutPay)) }
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::SamsungPay)) }
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Satispay)) }
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.

View File

@ -47,6 +47,19 @@ module Stripe
sig { returns(StatusDetails) }
attr_reader :status_details
end
class Klarna < Stripe::StripeObject
class StatusDetails < Stripe::StripeObject
# The error message associated with the status of the payment method on the domain.
sig { returns(String) }
attr_reader :error_message
end
# The status of the payment method on the domain.
sig { returns(String) }
attr_reader :status
# Contains additional details about the status of a payment method for a specific payment method domain.
sig { returns(StatusDetails) }
attr_reader :status_details
end
class Link < Stripe::StripeObject
class StatusDetails < Stripe::StripeObject
# The error message associated with the status of the payment method on the domain.
@ -95,6 +108,9 @@ module Stripe
sig { returns(String) }
attr_reader :id
# Indicates the status of a specific payment method on a payment method domain.
sig { returns(Klarna) }
attr_reader :klarna
# Indicates the status of a specific payment method on a payment method domain.
sig { returns(Link) }
attr_reader :link
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.

View File

@ -12,7 +12,7 @@ module Stripe
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
sig { returns(String) }
attr_reader :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
sig { returns(Integer) }
attr_reader :value
end
@ -20,7 +20,7 @@ module Stripe
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
sig { returns(String) }
attr_reader :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
sig { returns(Integer) }
attr_reader :value
end
@ -28,7 +28,7 @@ module Stripe
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
sig { returns(String) }
attr_reader :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
sig { returns(Integer) }
attr_reader :value
end
@ -36,7 +36,7 @@ module Stripe
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
sig { returns(String) }
attr_reader :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
sig { returns(Integer) }
attr_reader :value
end
@ -1593,7 +1593,7 @@ module Stripe
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
sig { returns(String) }
attr_accessor :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
sig { returns(Integer) }
attr_accessor :value
sig { params(currency: String, value: Integer).void }
@ -1762,7 +1762,7 @@ module Stripe
}
def initialize(address: nil, name: nil, phone: nil); end
end
# The amount you intend to collect for this payment.
# The amount you initially requested for this payment.
sig { returns(::Stripe::PaymentRecord::ReportPaymentParams::AmountRequested) }
attr_accessor :amount_requested
# Customer information for this payment.

View File

@ -0,0 +1,208 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
# typed: true
module Stripe
module Privacy
# Redaction Jobs store the status of a redaction request. They are created
# when a redaction request is made and track the redaction validation and execution.
class RedactionJob < APIResource
# Time at which the object was created. Measured in seconds since the Unix epoch.
sig { returns(Integer) }
attr_reader :created
# Unique identifier for the object.
sig { returns(String) }
attr_reader :id
# String representing the object's type. Objects of the same type share the same value.
sig { returns(String) }
attr_reader :object
# The objects at the root level that are subject to redaction.
sig { returns(T.nilable(Stripe::Privacy::RedactionJobRootObjects)) }
attr_reader :objects
# The status field represents the current state of the redaction job. It can take on any of the following values: VALIDATING, READY, REDACTING, SUCCEEDED, CANCELED, FAILED.
sig { returns(String) }
attr_reader :status
# Default is "error". If "error", we will make sure all objects in the graph are redactable in the 1st traversal, otherwise error. If "fix", where possible, we will auto-fix any validation errors (e.g. by auto-transitioning objects to a terminal state, etc.) in the 2nd traversal before redacting
sig { returns(T.nilable(String)) }
attr_reader :validation_behavior
class ListParams < Stripe::RequestParams
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
sig { returns(T.nilable(String)) }
attr_accessor :ending_before
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
sig { returns(T.nilable(String)) }
attr_accessor :starting_after
# Attribute for param field status
sig { returns(T.nilable(String)) }
attr_accessor :status
sig {
params(ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String), status: T.nilable(String)).void
}
def initialize(
ending_before: nil,
expand: nil,
limit: nil,
starting_after: nil,
status: nil
); end
end
class CreateParams < Stripe::RequestParams
class Objects < Stripe::RequestParams
# Attribute for param field charges
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :charges
# Attribute for param field checkout_sessions
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :checkout_sessions
# Attribute for param field customers
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :customers
# Attribute for param field identity_verification_sessions
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :identity_verification_sessions
# Attribute for param field invoices
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :invoices
# Attribute for param field issuing_cardholders
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :issuing_cardholders
# Attribute for param field issuing_cards
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :issuing_cards
# Attribute for param field payment_intents
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :payment_intents
# Attribute for param field radar_value_list_items
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :radar_value_list_items
# Attribute for param field setup_intents
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :setup_intents
sig {
params(charges: T.nilable(T::Array[String]), checkout_sessions: T.nilable(T::Array[String]), customers: T.nilable(T::Array[String]), identity_verification_sessions: T.nilable(T::Array[String]), invoices: T.nilable(T::Array[String]), issuing_cardholders: T.nilable(T::Array[String]), issuing_cards: T.nilable(T::Array[String]), payment_intents: T.nilable(T::Array[String]), radar_value_list_items: T.nilable(T::Array[String]), setup_intents: T.nilable(T::Array[String])).void
}
def initialize(
charges: nil,
checkout_sessions: nil,
customers: nil,
identity_verification_sessions: nil,
invoices: nil,
issuing_cardholders: nil,
issuing_cards: nil,
payment_intents: nil,
radar_value_list_items: nil,
setup_intents: nil
); end
end
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# The objects at the root level that are subject to redaction.
sig { returns(::Stripe::Privacy::RedactionJob::CreateParams::Objects) }
attr_accessor :objects
# Default is "error". If "error", we will make sure all objects in the graph are
# redactable in the 1st traversal, otherwise error. If "fix", where possible, we will
# auto-fix any validation errors (e.g. by auto-transitioning objects to a terminal
# state, etc.) in the 2nd traversal before redacting
sig { returns(T.nilable(String)) }
attr_accessor :validation_behavior
sig {
params(expand: T.nilable(T::Array[String]), objects: ::Stripe::Privacy::RedactionJob::CreateParams::Objects, validation_behavior: T.nilable(String)).void
}
def initialize(expand: nil, objects: nil, validation_behavior: nil); end
end
class UpdateParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Attribute for param field validation_behavior
sig { returns(T.nilable(String)) }
attr_accessor :validation_behavior
sig {
params(expand: T.nilable(T::Array[String]), validation_behavior: T.nilable(String)).void
}
def initialize(expand: nil, validation_behavior: nil); end
end
class CancelParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
sig { params(expand: T.nilable(T::Array[String])).void }
def initialize(expand: nil); end
end
class RunParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
sig { params(expand: T.nilable(T::Array[String])).void }
def initialize(expand: nil); end
end
class ValidateParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
sig { params(expand: T.nilable(T::Array[String])).void }
def initialize(expand: nil); end
end
# Cancel redaction job method
sig {
params(params: T.any(::Stripe::Privacy::RedactionJob::CancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Privacy::RedactionJob)
}
def cancel(params = {}, opts = {}); end
# Cancel redaction job method
sig {
params(job: String, params: T.any(::Stripe::Privacy::RedactionJob::CancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Privacy::RedactionJob)
}
def self.cancel(job, params = {}, opts = {}); end
# Create redaction job method
sig {
params(params: T.any(::Stripe::Privacy::RedactionJob::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Privacy::RedactionJob)
}
def self.create(params = {}, opts = {}); end
# List redaction jobs method...
sig {
params(params: T.any(::Stripe::Privacy::RedactionJob::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
}
def self.list(params = {}, opts = {}); end
# Run redaction job method
sig {
params(params: T.any(::Stripe::Privacy::RedactionJob::RunParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Privacy::RedactionJob)
}
def run(params = {}, opts = {}); end
# Run redaction job method
sig {
params(job: String, params: T.any(::Stripe::Privacy::RedactionJob::RunParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Privacy::RedactionJob)
}
def self.run(job, params = {}, opts = {}); end
# Update redaction job method
sig {
params(job: String, params: T.any(::Stripe::Privacy::RedactionJob::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Privacy::RedactionJob)
}
def self.update(job, params = {}, opts = {}); end
# Validate redaction job method
sig {
params(params: T.any(::Stripe::Privacy::RedactionJob::ValidateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Privacy::RedactionJob)
}
def validate(params = {}, opts = {}); end
# Validate redaction job method
sig {
params(job: String, params: T.any(::Stripe::Privacy::RedactionJob::ValidateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Privacy::RedactionJob)
}
def self.validate(job, params = {}, opts = {}); end
end
end
end

View File

@ -0,0 +1,41 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
# typed: true
module Stripe
module Privacy
# The objects to redact, grouped by type. All redactable objects associated with these objects will be redacted as well.
class RedactionJobRootObjects < APIResource
# Attribute for field charges
sig { returns(T.nilable(T::Array[String])) }
attr_reader :charges
# Attribute for field checkout_sessions
sig { returns(T.nilable(T::Array[String])) }
attr_reader :checkout_sessions
# Attribute for field customers
sig { returns(T.nilable(T::Array[String])) }
attr_reader :customers
# Attribute for field identity_verification_sessions
sig { returns(T.nilable(T::Array[String])) }
attr_reader :identity_verification_sessions
# Attribute for field invoices
sig { returns(T.nilable(T::Array[String])) }
attr_reader :invoices
# Attribute for field issuing_cardholders
sig { returns(T.nilable(T::Array[String])) }
attr_reader :issuing_cardholders
# String representing the object's type. Objects of the same type share the same value.
sig { returns(String) }
attr_reader :object
# Attribute for field payment_intents
sig { returns(T.nilable(T::Array[String])) }
attr_reader :payment_intents
# Attribute for field radar_value_list_items
sig { returns(T.nilable(T::Array[String])) }
attr_reader :radar_value_list_items
# Attribute for field setup_intents
sig { returns(T.nilable(T::Array[String])) }
attr_reader :setup_intents
end
end
end

View File

@ -0,0 +1,49 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
# typed: true
module Stripe
module Privacy
# Validation errors
class RedactionJobValidationError < APIResource
# Attribute for field code
sig { returns(String) }
attr_reader :code
# Attribute for field erroring_object
sig { returns(T.nilable(T::Hash[String, String])) }
attr_reader :erroring_object
# Unique identifier for the object.
sig { returns(String) }
attr_reader :id
# Attribute for field message
sig { returns(String) }
attr_reader :message
# String representing the object's type. Objects of the same type share the same value.
sig { returns(String) }
attr_reader :object
class ListParams < Stripe::RequestParams
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
sig { returns(T.nilable(String)) }
attr_accessor :ending_before
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
sig { returns(T.nilable(String)) }
attr_accessor :starting_after
sig {
params(ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String)).void
}
def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil); end
end
# List validation errors method
sig {
params(job: String, params: T.any(::Stripe::Privacy::RedactionJobValidationError::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
}
def self.list(job, params = {}, opts = {}); end
end
end
end

View File

@ -1052,7 +1052,7 @@ module Stripe
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Bancontact))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Billie)) }
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
@ -1183,7 +1183,7 @@ module Stripe
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Rechnung)) }
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
sig {
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::RevolutPay))
}
@ -1193,7 +1193,7 @@ module Stripe
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::SamsungPay))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Satispay)) }
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
@ -2328,7 +2328,7 @@ module Stripe
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Bancontact))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Billie)) }
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
@ -2459,7 +2459,7 @@ module Stripe
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Rechnung)) }
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
sig {
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::RevolutPay))
}
@ -2469,7 +2469,7 @@ module Stripe
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::SamsungPay))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Satispay)) }
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
@ -3610,7 +3610,7 @@ module Stripe
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Bancontact))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Billie)) }
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
@ -3747,7 +3747,7 @@ module Stripe
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Rechnung))
}
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
sig {
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::RevolutPay))
}
@ -3757,7 +3757,7 @@ module Stripe
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::SamsungPay))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
sig {
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Satispay))
}

View File

@ -324,7 +324,7 @@ module Stripe
# ID of the customer who owns the subscription.
sig { returns(T.any(String, Stripe::Customer)) }
attr_reader :customer
# Attribute for field customer_account
# ID of the account who owns the subscription.
sig { returns(T.nilable(String)) }
attr_reader :customer_account
# Number of days a customer has to pay invoices generated by this subscription. This value will be `null` for subscriptions where `collection_method=charge_automatically`.
@ -1314,7 +1314,7 @@ module Stripe
# The ID of the customer whose subscriptions will be retrieved.
sig { returns(T.nilable(String)) }
attr_accessor :customer
# Attribute for param field customer_account
# The ID of the account whose subscriptions will be retrieved.
sig { returns(T.nilable(String)) }
attr_accessor :customer_account
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
@ -2017,7 +2017,7 @@ module Stripe
# The identifier of the customer to subscribe.
sig { returns(T.nilable(String)) }
attr_accessor :customer
# Attribute for param field customer_account
# The identifier of the account to subscribe.
sig { returns(T.nilable(String)) }
attr_accessor :customer_account
# Number of days a customer has to pay invoices generated by this subscription. Valid only for subscriptions where `collection_method` is set to `send_invoice`.

View File

@ -72,7 +72,7 @@ module Stripe
sig { returns(Integer) }
attr_reader :quantity
# A custom identifier for this line item.
sig { returns(T.nilable(String)) }
sig { returns(String) }
attr_reader :reference
# Specifies whether the `amount` includes taxes. If `tax_behavior=inclusive`, then the amount includes taxes.
sig { returns(String) }

File diff suppressed because one or more lines are too long

View File

@ -113,7 +113,7 @@ module Stripe
sig { returns(T.nilable(StatusDetails)) }
attr_reader :status_details
# The time at which the ReceivedDebit transitioned to a particular status.
sig { returns(StatusTransitions) }
sig { returns(T.nilable(StatusTransitions)) }
attr_reader :status_transitions
# Open Enum. The type of the ReceivedDebit.
sig { returns(String) }

View File

@ -120,6 +120,9 @@ module Stripe
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
sig { returns(T.nilable(String)) }
attr_accessor :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :minority_owned_business_designation
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
sig {
returns(T.nilable(::Stripe::AccountService::UpdateParams::BusinessProfile::MonthlyEstimatedRevenue))
@ -149,12 +152,13 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :url
sig {
params(annual_revenue: T.nilable(::Stripe::AccountService::UpdateParams::BusinessProfile::AnnualRevenue), estimated_worker_count: T.nilable(Integer), mcc: T.nilable(String), monthly_estimated_revenue: T.nilable(::Stripe::AccountService::UpdateParams::BusinessProfile::MonthlyEstimatedRevenue), name: T.nilable(String), product_description: T.nilable(String), support_address: T.nilable(::Stripe::AccountService::UpdateParams::BusinessProfile::SupportAddress), support_email: T.nilable(String), support_phone: T.nilable(String), support_url: T.nilable(T.nilable(String)), url: T.nilable(String)).void
params(annual_revenue: T.nilable(::Stripe::AccountService::UpdateParams::BusinessProfile::AnnualRevenue), estimated_worker_count: T.nilable(Integer), mcc: T.nilable(String), minority_owned_business_designation: T.nilable(T::Array[String]), monthly_estimated_revenue: T.nilable(::Stripe::AccountService::UpdateParams::BusinessProfile::MonthlyEstimatedRevenue), name: T.nilable(String), product_description: T.nilable(String), support_address: T.nilable(::Stripe::AccountService::UpdateParams::BusinessProfile::SupportAddress), support_email: T.nilable(String), support_phone: T.nilable(String), support_url: T.nilable(T.nilable(String)), url: T.nilable(String)).void
}
def initialize(
annual_revenue: nil,
estimated_worker_count: nil,
mcc: nil,
minority_owned_business_designation: nil,
monthly_estimated_revenue: nil,
name: nil,
product_description: nil,
@ -2401,6 +2405,9 @@ module Stripe
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
sig { returns(T.nilable(String)) }
attr_accessor :mcc
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :minority_owned_business_designation
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
sig {
returns(T.nilable(::Stripe::AccountService::CreateParams::BusinessProfile::MonthlyEstimatedRevenue))
@ -2430,12 +2437,13 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_accessor :url
sig {
params(annual_revenue: T.nilable(::Stripe::AccountService::CreateParams::BusinessProfile::AnnualRevenue), estimated_worker_count: T.nilable(Integer), mcc: T.nilable(String), monthly_estimated_revenue: T.nilable(::Stripe::AccountService::CreateParams::BusinessProfile::MonthlyEstimatedRevenue), name: T.nilable(String), product_description: T.nilable(String), support_address: T.nilable(::Stripe::AccountService::CreateParams::BusinessProfile::SupportAddress), support_email: T.nilable(String), support_phone: T.nilable(String), support_url: T.nilable(T.nilable(String)), url: T.nilable(String)).void
params(annual_revenue: T.nilable(::Stripe::AccountService::CreateParams::BusinessProfile::AnnualRevenue), estimated_worker_count: T.nilable(Integer), mcc: T.nilable(String), minority_owned_business_designation: T.nilable(T::Array[String]), monthly_estimated_revenue: T.nilable(::Stripe::AccountService::CreateParams::BusinessProfile::MonthlyEstimatedRevenue), name: T.nilable(String), product_description: T.nilable(String), support_address: T.nilable(::Stripe::AccountService::CreateParams::BusinessProfile::SupportAddress), support_email: T.nilable(String), support_phone: T.nilable(String), support_url: T.nilable(T.nilable(String)), url: T.nilable(String)).void
}
def initialize(
annual_revenue: nil,
estimated_worker_count: nil,
mcc: nil,
minority_owned_business_designation: nil,
monthly_estimated_revenue: nil,
name: nil,
product_description: nil,

View File

@ -232,6 +232,23 @@ module Stripe
}
def initialize(enabled: nil, features: nil); end
end
class ExportTaxTransactions < 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(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ExportTaxTransactions::Features))
}
attr_accessor :features
sig {
params(enabled: T::Boolean, features: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ExportTaxTransactions::Features)).void
}
def initialize(enabled: nil, features: nil); end
end
class FinancialAccount < Stripe::RequestParams
class Features < Stripe::RequestParams
# Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you dont set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
@ -434,6 +451,39 @@ module Stripe
}
def initialize(enabled: nil, features: nil); end
end
class PaymentDisputes < Stripe::RequestParams
class Features < Stripe::RequestParams
# Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :destination_on_behalf_of_charge_management
# Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :dispute_management
# Whether to allow sending refunds. This is `true` by default.
sig { returns(T.nilable(T::Boolean)) }
attr_accessor :refund_management
sig {
params(destination_on_behalf_of_charge_management: T.nilable(T::Boolean), dispute_management: T.nilable(T::Boolean), refund_management: T.nilable(T::Boolean)).void
}
def initialize(
destination_on_behalf_of_charge_management: nil,
dispute_management: nil,
refund_management: nil
); end
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(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentDisputes::Features))
}
attr_accessor :features
sig {
params(enabled: T::Boolean, features: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentDisputes::Features)).void
}
def initialize(enabled: nil, features: nil); end
end
class PaymentMethodSettings < Stripe::RequestParams
class Features < Stripe::RequestParams
@ -702,6 +752,11 @@ module Stripe
returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Documents))
}
attr_accessor :documents
# Configuration for the export tax transactions embedded component.
sig {
returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ExportTaxTransactions))
}
attr_accessor :export_tax_transactions
# Configuration for the financial account embedded component.
sig {
returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::FinancialAccount))
@ -732,6 +787,11 @@ module Stripe
returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentDetails))
}
attr_accessor :payment_details
# Configuration for the payment disputes embedded component.
sig {
returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentDisputes))
}
attr_accessor :payment_disputes
# Configuration for the payment method settings embedded component.
sig {
returns(T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentMethodSettings))
@ -783,7 +843,7 @@ module Stripe
}
attr_accessor :tax_threshold_monitoring
sig {
params(account_management: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountOnboarding), app_install: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AppInstall), app_viewport: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AppViewport), balances: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Balances), capital_financing: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancing), capital_financing_application: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingApplication), capital_financing_promotion: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingPromotion), capital_overview: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalOverview), documents: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Documents), financial_account: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::FinancialAccount), financial_account_transactions: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::FinancialAccountTransactions), issuing_card: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::IssuingCard), issuing_cards_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::IssuingCardsList), notification_banner: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::NotificationBanner), payment_details: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentDetails), payment_method_settings: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentMethodSettings), payments: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Payments), payouts: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Payouts), payouts_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PayoutsList), product_tax_code_selector: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ProductTaxCodeSelector), recipients: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Recipients), reporting_chart: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ReportingChart), tax_registrations: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxSettings), tax_threshold_monitoring: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxThresholdMonitoring)).void
params(account_management: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AccountOnboarding), app_install: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AppInstall), app_viewport: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::AppViewport), balances: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Balances), capital_financing: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancing), capital_financing_application: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingApplication), capital_financing_promotion: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingPromotion), capital_overview: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::CapitalOverview), documents: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Documents), export_tax_transactions: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ExportTaxTransactions), financial_account: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::FinancialAccount), financial_account_transactions: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::FinancialAccountTransactions), issuing_card: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::IssuingCard), issuing_cards_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::IssuingCardsList), notification_banner: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::NotificationBanner), payment_details: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentDetails), payment_disputes: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentDisputes), payment_method_settings: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PaymentMethodSettings), payments: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Payments), payouts: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Payouts), payouts_list: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::PayoutsList), product_tax_code_selector: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ProductTaxCodeSelector), recipients: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::Recipients), reporting_chart: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::ReportingChart), tax_registrations: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxSettings), tax_threshold_monitoring: T.nilable(::Stripe::AccountSessionService::CreateParams::Components::TaxThresholdMonitoring)).void
}
def initialize(
account_management: nil,
@ -796,12 +856,14 @@ module Stripe
capital_financing_promotion: nil,
capital_overview: nil,
documents: nil,
export_tax_transactions: nil,
financial_account: nil,
financial_account_transactions: nil,
issuing_card: nil,
issuing_cards_list: nil,
notification_banner: nil,
payment_details: nil,
payment_disputes: nil,
payment_method_settings: nil,
payments: nil,
payouts: nil,

View File

@ -2172,6 +2172,24 @@ module Stripe
sig { params(enabled: T::Boolean, required: T.nilable(String)).void }
def initialize(enabled: nil, required: nil); end
end
class WalletOptions < Stripe::RequestParams
class Link < Stripe::RequestParams
# Specifies whether Checkout should display Link as a payment option. By default, Checkout will display all the supported wallets that the Checkout Session was created with. This is the `auto` behavior, and it is the default choice.
sig { returns(T.nilable(String)) }
attr_accessor :display
sig { params(display: T.nilable(String)).void }
def initialize(display: nil); end
end
# contains details about the Link wallet options.
sig {
returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::WalletOptions::Link))
}
attr_accessor :link
sig {
params(link: T.nilable(::Stripe::Checkout::SessionService::CreateParams::WalletOptions::Link)).void
}
def initialize(link: nil); end
end
# Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
sig {
returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::AdaptivePricing))
@ -2338,7 +2356,7 @@ module Stripe
attr_accessor :payment_method_types
# This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
#
# For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
# For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
sig { returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::Permissions)) }
attr_accessor :permissions
# Controls phone number collection settings for the session.
@ -2403,8 +2421,11 @@ module Stripe
# The UI mode of the Session. Defaults to `hosted`.
sig { returns(T.nilable(String)) }
attr_accessor :ui_mode
# Wallet-specific configuration.
sig { returns(T.nilable(::Stripe::Checkout::SessionService::CreateParams::WalletOptions)) }
attr_accessor :wallet_options
sig {
params(adaptive_pricing: T.nilable(::Stripe::Checkout::SessionService::CreateParams::AdaptivePricing), after_expiration: T.nilable(::Stripe::Checkout::SessionService::CreateParams::AfterExpiration), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::Checkout::SessionService::CreateParams::AutomaticTax), billing_address_collection: T.nilable(String), cancel_url: T.nilable(String), client_reference_id: T.nilable(String), consent_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::CustomField]), custom_text: T.nilable(::Stripe::Checkout::SessionService::CreateParams::CustomText), customer: T.nilable(String), customer_account: T.nilable(String), customer_creation: T.nilable(String), customer_email: T.nilable(String), customer_update: T.nilable(::Stripe::Checkout::SessionService::CreateParams::CustomerUpdate), discounts: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::Discount]), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), invoice_creation: T.nilable(::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::LineItem]), locale: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), mode: T.nilable(String), optional_items: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::OptionalItem]), payment_intent_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), permissions: T.nilable(::Stripe::Checkout::SessionService::CreateParams::Permissions), phone_number_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PhoneNumberCollection), redirect_on_completion: T.nilable(String), return_url: T.nilable(String), saved_payment_method_options: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SavedPaymentMethodOptions), setup_intent_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SetupIntentData), shipping_address_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SubscriptionData), success_url: T.nilable(String), tax_id_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::TaxIdCollection), ui_mode: T.nilable(String)).void
params(adaptive_pricing: T.nilable(::Stripe::Checkout::SessionService::CreateParams::AdaptivePricing), after_expiration: T.nilable(::Stripe::Checkout::SessionService::CreateParams::AfterExpiration), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::Checkout::SessionService::CreateParams::AutomaticTax), billing_address_collection: T.nilable(String), cancel_url: T.nilable(String), client_reference_id: T.nilable(String), consent_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::CustomField]), custom_text: T.nilable(::Stripe::Checkout::SessionService::CreateParams::CustomText), customer: T.nilable(String), customer_account: T.nilable(String), customer_creation: T.nilable(String), customer_email: T.nilable(String), customer_update: T.nilable(::Stripe::Checkout::SessionService::CreateParams::CustomerUpdate), discounts: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::Discount]), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), invoice_creation: T.nilable(::Stripe::Checkout::SessionService::CreateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::LineItem]), locale: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), mode: T.nilable(String), optional_items: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::OptionalItem]), payment_intent_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), permissions: T.nilable(::Stripe::Checkout::SessionService::CreateParams::Permissions), phone_number_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::PhoneNumberCollection), redirect_on_completion: T.nilable(String), return_url: T.nilable(String), saved_payment_method_options: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SavedPaymentMethodOptions), setup_intent_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SetupIntentData), shipping_address_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[::Stripe::Checkout::SessionService::CreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::Checkout::SessionService::CreateParams::SubscriptionData), success_url: T.nilable(String), tax_id_collection: T.nilable(::Stripe::Checkout::SessionService::CreateParams::TaxIdCollection), ui_mode: T.nilable(String), wallet_options: T.nilable(::Stripe::Checkout::SessionService::CreateParams::WalletOptions)).void
}
def initialize(
adaptive_pricing: nil,
@ -2450,7 +2471,8 @@ module Stripe
subscription_data: nil,
success_url: nil,
tax_id_collection: nil,
ui_mode: nil
ui_mode: nil,
wallet_options: nil
); end
end
class RetrieveParams < Stripe::RequestParams

View File

@ -739,7 +739,7 @@ module Stripe
# Only return invoices for the customer specified by this customer ID.
sig { returns(T.nilable(String)) }
attr_accessor :customer
# Attribute for param field customer_account
# Only return invoices for the account specified by this account ID.
sig { returns(T.nilable(String)) }
attr_accessor :customer_account
# Attribute for param field due_date

View File

@ -1306,7 +1306,7 @@ module Stripe
returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Bancontact))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Billie))
}
@ -1489,7 +1489,7 @@ module Stripe
returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Rechnung))
}
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::RevolutPay))
}
@ -1499,7 +1499,7 @@ module Stripe
returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::SamsungPay))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::CreateParams::PaymentMethodData::Satispay))
}
@ -5071,7 +5071,7 @@ module Stripe
returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Bancontact))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Billie))
}
@ -5254,7 +5254,7 @@ module Stripe
returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Rechnung))
}
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::RevolutPay))
}
@ -5264,7 +5264,7 @@ module Stripe
returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::SamsungPay))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Satispay))
}
@ -9613,7 +9613,7 @@ module Stripe
returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Bancontact))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Billie))
}
@ -9796,7 +9796,7 @@ module Stripe
returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Rechnung))
}
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::RevolutPay))
}
@ -9806,7 +9806,7 @@ module Stripe
returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::SamsungPay))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
sig {
returns(T.nilable(::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodData::Satispay))
}

View File

@ -499,7 +499,7 @@ module Stripe
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
sig { returns(T.nilable(::Stripe::PaymentMethodService::CreateParams::Bancontact)) }
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
sig { returns(T.nilable(::Stripe::PaymentMethodService::CreateParams::Billie)) }
attr_accessor :billie
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
@ -622,13 +622,13 @@ module Stripe
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
sig { returns(T.nilable(::Stripe::PaymentMethodService::CreateParams::Rechnung)) }
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
sig { returns(T.nilable(::Stripe::PaymentMethodService::CreateParams::RevolutPay)) }
attr_accessor :revolut_pay
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
sig { returns(T.nilable(::Stripe::PaymentMethodService::CreateParams::SamsungPay)) }
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
sig { returns(T.nilable(::Stripe::PaymentMethodService::CreateParams::Satispay)) }
attr_accessor :satispay
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.

View File

@ -255,7 +255,7 @@ module Stripe
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
sig { returns(String) }
attr_accessor :currency
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
# A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
sig { returns(Integer) }
attr_accessor :value
sig { params(currency: String, value: Integer).void }
@ -424,7 +424,7 @@ module Stripe
}
def initialize(address: nil, name: nil, phone: nil); end
end
# The amount you intend to collect for this payment.
# The amount you initially requested for this payment.
sig { returns(::Stripe::PaymentRecordService::ReportPaymentParams::AmountRequested) }
attr_accessor :amount_requested
# Customer information for this payment.

View File

@ -0,0 +1,184 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
# typed: true
module Stripe
module Privacy
class RedactionJobService < StripeService
attr_reader :validation_errors
class ListParams < Stripe::RequestParams
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
sig { returns(T.nilable(String)) }
attr_accessor :ending_before
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
sig { returns(T.nilable(String)) }
attr_accessor :starting_after
# Attribute for param field status
sig { returns(T.nilable(String)) }
attr_accessor :status
sig {
params(ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String), status: T.nilable(String)).void
}
def initialize(
ending_before: nil,
expand: nil,
limit: nil,
starting_after: nil,
status: nil
); end
end
class CreateParams < Stripe::RequestParams
class Objects < Stripe::RequestParams
# Attribute for param field charges
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :charges
# Attribute for param field checkout_sessions
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :checkout_sessions
# Attribute for param field customers
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :customers
# Attribute for param field identity_verification_sessions
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :identity_verification_sessions
# Attribute for param field invoices
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :invoices
# Attribute for param field issuing_cardholders
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :issuing_cardholders
# Attribute for param field issuing_cards
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :issuing_cards
# Attribute for param field payment_intents
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :payment_intents
# Attribute for param field radar_value_list_items
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :radar_value_list_items
# Attribute for param field setup_intents
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :setup_intents
sig {
params(charges: T.nilable(T::Array[String]), checkout_sessions: T.nilable(T::Array[String]), customers: T.nilable(T::Array[String]), identity_verification_sessions: T.nilable(T::Array[String]), invoices: T.nilable(T::Array[String]), issuing_cardholders: T.nilable(T::Array[String]), issuing_cards: T.nilable(T::Array[String]), payment_intents: T.nilable(T::Array[String]), radar_value_list_items: T.nilable(T::Array[String]), setup_intents: T.nilable(T::Array[String])).void
}
def initialize(
charges: nil,
checkout_sessions: nil,
customers: nil,
identity_verification_sessions: nil,
invoices: nil,
issuing_cardholders: nil,
issuing_cards: nil,
payment_intents: nil,
radar_value_list_items: nil,
setup_intents: nil
); end
end
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# The objects at the root level that are subject to redaction.
sig { returns(::Stripe::Privacy::RedactionJobService::CreateParams::Objects) }
attr_accessor :objects
# Default is "error". If "error", we will make sure all objects in the graph are
# redactable in the 1st traversal, otherwise error. If "fix", where possible, we will
# auto-fix any validation errors (e.g. by auto-transitioning objects to a terminal
# state, etc.) in the 2nd traversal before redacting
sig { returns(T.nilable(String)) }
attr_accessor :validation_behavior
sig {
params(expand: T.nilable(T::Array[String]), objects: ::Stripe::Privacy::RedactionJobService::CreateParams::Objects, validation_behavior: T.nilable(String)).void
}
def initialize(expand: nil, objects: nil, validation_behavior: nil); end
end
class RetrieveParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
sig { params(expand: T.nilable(T::Array[String])).void }
def initialize(expand: nil); end
end
class UpdateParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# Attribute for param field validation_behavior
sig { returns(T.nilable(String)) }
attr_accessor :validation_behavior
sig {
params(expand: T.nilable(T::Array[String]), validation_behavior: T.nilable(String)).void
}
def initialize(expand: nil, validation_behavior: nil); end
end
class CancelParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
sig { params(expand: T.nilable(T::Array[String])).void }
def initialize(expand: nil); end
end
class RunParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
sig { params(expand: T.nilable(T::Array[String])).void }
def initialize(expand: nil); end
end
class ValidateParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
sig { params(expand: T.nilable(T::Array[String])).void }
def initialize(expand: nil); end
end
# Cancel redaction job method
sig {
params(job: String, params: T.any(::Stripe::Privacy::RedactionJobService::CancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Privacy::RedactionJob)
}
def cancel(job, params = {}, opts = {}); end
# Create redaction job method
sig {
params(params: T.any(::Stripe::Privacy::RedactionJobService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Privacy::RedactionJob)
}
def create(params = {}, opts = {}); end
# List redaction jobs method...
sig {
params(params: T.any(::Stripe::Privacy::RedactionJobService::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
}
def list(params = {}, opts = {}); end
# Retrieve redaction job method
sig {
params(job: String, params: T.any(::Stripe::Privacy::RedactionJobService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Privacy::RedactionJob)
}
def retrieve(job, params = {}, opts = {}); end
# Run redaction job method
sig {
params(job: String, params: T.any(::Stripe::Privacy::RedactionJobService::RunParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Privacy::RedactionJob)
}
def run(job, params = {}, opts = {}); end
# Update redaction job method
sig {
params(job: String, params: T.any(::Stripe::Privacy::RedactionJobService::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Privacy::RedactionJob)
}
def update(job, params = {}, opts = {}); end
# Validate redaction job method
sig {
params(job: String, params: T.any(::Stripe::Privacy::RedactionJobService::ValidateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Privacy::RedactionJob)
}
def validate(job, params = {}, opts = {}); end
end
end
end

View File

@ -0,0 +1,46 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
# typed: true
module Stripe
module Privacy
class RedactionJobValidationErrorService < StripeService
class ListParams < Stripe::RequestParams
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
sig { returns(T.nilable(String)) }
attr_accessor :ending_before
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
sig { returns(T.nilable(String)) }
attr_accessor :starting_after
sig {
params(ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String)).void
}
def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil); end
end
class RetrieveParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
sig { returns(T.nilable(T::Array[String])) }
attr_accessor :expand
sig { params(expand: T.nilable(T::Array[String])).void }
def initialize(expand: nil); end
end
# List validation errors method
sig {
params(job: String, params: T.any(::Stripe::Privacy::RedactionJobValidationErrorService::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
}
def list(job, params = {}, opts = {}); end
# Retrieve validation error method
sig {
params(job: String, error: String, params: T.any(::Stripe::Privacy::RedactionJobValidationErrorService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Privacy::RedactionJobValidationError)
}
def retrieve(job, error, params = {}, opts = {}); end
end
end
end

View File

@ -0,0 +1,9 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
# typed: true
module Stripe
class PrivacyService < StripeService
attr_reader :redaction_jobs
end
end

View File

@ -574,7 +574,7 @@ module Stripe
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Bancontact))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
sig {
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Billie))
}
@ -757,7 +757,7 @@ module Stripe
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Rechnung))
}
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
sig {
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::RevolutPay))
}
@ -767,7 +767,7 @@ module Stripe
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::SamsungPay))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
sig {
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Satispay))
}
@ -1938,7 +1938,7 @@ module Stripe
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Bancontact))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
sig {
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Billie))
}
@ -2121,7 +2121,7 @@ module Stripe
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Rechnung))
}
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
sig {
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::RevolutPay))
}
@ -2131,7 +2131,7 @@ module Stripe
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::SamsungPay))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
sig {
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Satispay))
}
@ -3296,7 +3296,7 @@ module Stripe
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Bancontact))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
sig {
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Billie))
}
@ -3479,7 +3479,7 @@ module Stripe
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Rechnung))
}
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
sig {
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::RevolutPay))
}
@ -3489,7 +3489,7 @@ module Stripe
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::SamsungPay))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
sig {
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Satispay))
}

View File

@ -903,7 +903,7 @@ module Stripe
# The ID of the customer whose subscriptions will be retrieved.
sig { returns(T.nilable(String)) }
attr_accessor :customer
# Attribute for param field customer_account
# The ID of the account whose subscriptions will be retrieved.
sig { returns(T.nilable(String)) }
attr_accessor :customer_account
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
@ -1618,7 +1618,7 @@ module Stripe
# The identifier of the customer to subscribe.
sig { returns(T.nilable(String)) }
attr_accessor :customer
# Attribute for param field customer_account
# The identifier of the account to subscribe.
sig { returns(T.nilable(String)) }
attr_accessor :customer_account
# Number of days a customer has to pay invoices generated by this subscription. Valid only for subscriptions where `collection_method` is set to `send_invoice`.

File diff suppressed because one or more lines are too long

View File

@ -456,7 +456,7 @@ module Stripe
returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Bancontact))
}
attr_accessor :bancontact
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
sig {
returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Billie))
}
@ -639,7 +639,7 @@ module Stripe
returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Rechnung))
}
attr_accessor :rechnung
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
sig {
returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::RevolutPay))
}
@ -649,7 +649,7 @@ module Stripe
returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::SamsungPay))
}
attr_accessor :samsung_pay
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
sig {
returns(T.nilable(::Stripe::TestHelpers::ConfirmationTokenService::CreateParams::PaymentMethodData::Satispay))
}

View File

@ -55,6 +55,7 @@ module Stripe
attr_reader :payouts
attr_reader :plans
attr_reader :prices
attr_reader :privacy
attr_reader :products
attr_reader :promotion_codes
attr_reader :quotes

View File

@ -11,10 +11,12 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
# Primary object ID used to retrieve related events.
#
# To avoid conflict with Ruby's ':object_id', this attribute has been renamed. If using a hash parameter map instead, please use the original name ':object_id' with NO trailing underscore as the provided param key.
sig { returns(String) }
attr_accessor :object_id
sig { params(limit: T.nilable(Integer), object_id: String).void }
def initialize(limit: nil, object_id: nil); end
attr_accessor :object_id_
sig { params(limit: T.nilable(Integer), object_id_: String).void }
def initialize(limit: nil, object_id_: nil); end
end
class RetrieveParams < Stripe::RequestParams

View File

@ -436,6 +436,23 @@ module Stripe
c.save
end
should "pass custom headers to execute_request_initialize_from and don't carry through" do
req1 = nil
req2 = nil
stub_request(:get, "#{Stripe.api_base}/v1/customers/cus_123")
.with { |request| req1 = request }
.to_return(body: JSON.generate(customer_fixture))
stub_request(:delete, "#{Stripe.api_base}/v1/customers/cus_123")
.with { |request| req2 = request }
.to_return(body: JSON.generate(object: "customer"))
c = Stripe::Customer.retrieve("cus_123", { "A-Header": "foo" })
assert_equal "foo", req1.headers["A-Header"]
c.delete
assert_nil req2.headers["A-Header"]
end
should "add key to nested objects on save" do
acct = Stripe::Account.construct_from(id: "myid",
legal_entity: {

File diff suppressed because it is too large Load Diff

View File

@ -87,6 +87,17 @@ module Stripe
assert_equal(combined[:api_key], "sk_456")
assert_equal(combined[:stripe_account], "acct_123")
end
should "correctly only retain per-request custom keys" do
object_opts = { api_key: "sk_123", stripe_version: "2022-11-15", headers: { "Test-Header": "foo" } }
request_opts = { api_key: "sk_456", stripe_account: "acct_123", headers: { "Cool-Header": "bar" } }
combined = RequestOptions.combine_opts(object_opts, request_opts)
assert_equal("2022-11-15", combined[:stripe_version])
assert_equal("sk_456", combined[:api_key])
assert_equal("acct_123", combined[:stripe_account])
assert !combined.key?(:test_header)
assert_equal({ "Cool-Header": "bar" }, combined[:headers])
end
end
end
end

View File

@ -248,6 +248,25 @@ module Stripe
assert_equal "idemp_123", req.headers["Idempotency-Key"]
end
should "allow a request with custom headers but not persist to subsequent requests" do
req1 = nil
req2 = nil
stub_request(:post, "#{Stripe::DEFAULT_API_BASE}/v1/customers")
.with { |request| req1 = request }
.to_return(body: JSON.generate(object: "customer", id: "cus_123"))
stub_request(:get, "#{Stripe::DEFAULT_API_BASE}/v1/customers/cus_123")
.with { |request| req2 = request }
.to_return(body: JSON.generate(object: "customer", id: "cus_123"))
client = StripeClient.new("sk_test_123")
Stripe.api_key = "sk_test_123"
cus = client.v1.customers.create({}, { "A-Header": "foo" })
assert_equal "foo", req1.headers["A-Header"]
cus.refresh
assert_nil req2.headers["A-Header"]
end
should "carry over client options to objects" do
req = nil
stub_request(:get, "#{Stripe::DEFAULT_API_BASE}/v1/customers/cus_123")

View File

@ -238,6 +238,13 @@ module Stripe
assert_equal true, obj.send(:metaclass).method_defined?(:foo)
end
should "nonstandard keys in response hashes work" do
stub_request(:post, "#{Stripe.api_base}/v1/customers")
.to_return(body: JSON.generate(object: "customer", email: "test@example.com", metadata: { "this-is?a.test" => "foo" }))
c = Stripe::Customer.create({ email: "test@example.com", metadata: { "this-is?a.test" => "foo" } })
assert_equal "foo", c.metadata["this-is?a.test"]
end
should "pass opts down to children when initializing" do
opts = { custom: "opts" }

View File

@ -325,6 +325,21 @@ module Stripe
end
end
context ".valid_variable_name?" do
should "reject invalid variable name" do
assert Util.valid_variable_name?("FOOfoo")
assert Util.valid_variable_name?("foo123")
assert Util.valid_variable_name?("foo_123_")
assert Util.valid_variable_name?("_123_foo")
refute Util.valid_variable_name?("123foo")
refute Util.valid_variable_name?("foo-bar")
refute Util.valid_variable_name?("foo?bar")
refute Util.valid_variable_name?("foo!bar")
refute Util.valid_variable_name?("foo-?!_bar")
refute Util.valid_variable_name?("1FOO-.><bar?")
end
end
#
# private
#