stripe 15.0.0 → 15.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/API_VERSION +1 -0
- data/CHANGELOG.md +129 -44
- data/CONTRIBUTING.md +25 -0
- data/Gemfile +1 -1
- data/OPENAPI_VERSION +1 -1
- data/README.md +28 -55
- data/VERSION +1 -1
- data/lib/stripe/api_operations/nested_resource.rb +35 -35
- data/lib/stripe/api_requestor.rb +1 -1
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/connection_manager.rb +1 -3
- data/lib/stripe/event_types.rb +1 -0
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +1 -1
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +1 -1
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +21 -0
- data/lib/stripe/oauth.rb +1 -1
- data/lib/stripe/resources/account.rb +198 -28
- data/lib/stripe/resources/account_session.rb +176 -72
- data/lib/stripe/resources/apple_pay_domain.rb +1 -2
- data/lib/stripe/resources/balance.rb +42 -0
- data/lib/stripe/resources/balance_transaction.rb +2 -0
- data/lib/stripe/resources/bank_account.rb +2 -2
- data/lib/stripe/resources/billing_portal/session.rb +3 -3
- data/lib/stripe/resources/capability.rb +1 -1
- data/lib/stripe/resources/charge.rb +43 -20
- data/lib/stripe/resources/checkout/session.rb +120 -19
- data/lib/stripe/resources/confirmation_token.rb +119 -100
- data/lib/stripe/resources/country_spec.rb +1 -1
- data/lib/stripe/resources/coupon.rb +2 -3
- data/lib/stripe/resources/credit_note.rb +21 -18
- data/lib/stripe/resources/customer.rb +4 -6
- data/lib/stripe/resources/customer_session.rb +5 -5
- data/lib/stripe/resources/dispute.rb +2 -2
- data/lib/stripe/resources/event.rb +3 -1
- data/lib/stripe/resources/file.rb +1 -1
- data/lib/stripe/resources/funding_instructions.rb +1 -1
- data/lib/stripe/resources/identity/verification_report.rb +6 -0
- data/lib/stripe/resources/identity/verification_session.rb +51 -11
- data/lib/stripe/resources/invoice.rb +146 -32
- data/lib/stripe/resources/invoice_item.rb +3 -7
- data/lib/stripe/resources/invoice_line_item.rb +1 -1
- data/lib/stripe/resources/invoice_payment.rb +9 -2
- data/lib/stripe/resources/issuing/authorization.rb +8 -8
- data/lib/stripe/resources/issuing/card.rb +1 -1
- data/lib/stripe/resources/issuing/dispute.rb +3 -3
- data/lib/stripe/resources/login_link.rb +2 -1
- data/lib/stripe/resources/mandate.rb +3 -0
- data/lib/stripe/resources/payment_intent.rb +602 -325
- data/lib/stripe/resources/payment_method.rb +76 -117
- data/lib/stripe/resources/payment_method_configuration.rb +356 -2
- data/lib/stripe/resources/payment_method_domain.rb +15 -2
- data/lib/stripe/resources/payout.rb +4 -4
- data/lib/stripe/resources/person.rb +27 -3
- data/lib/stripe/resources/plan.rb +2 -3
- data/lib/stripe/resources/price.rb +1 -1
- data/lib/stripe/resources/product.rb +1 -2
- data/lib/stripe/resources/quote.rb +28 -3
- data/lib/stripe/resources/radar/value_list.rb +1 -2
- data/lib/stripe/resources/radar/value_list_item.rb +1 -2
- data/lib/stripe/resources/refund.rb +8 -1
- data/lib/stripe/resources/reversal.rb +1 -1
- data/lib/stripe/resources/review.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +1 -1
- data/lib/stripe/resources/setup_intent.rb +414 -293
- data/lib/stripe/resources/source.rb +1 -1
- data/lib/stripe/resources/subscription.rb +149 -27
- data/lib/stripe/resources/subscription_item.rb +33 -0
- data/lib/stripe/resources/subscription_schedule.rb +141 -4
- data/lib/stripe/resources/tax/calculation.rb +6 -2
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/registration.rb +261 -1
- data/lib/stripe/resources/tax/transaction.rb +1 -1
- data/lib/stripe/resources/tax_id.rb +3 -4
- data/lib/stripe/resources/tax_rate.rb +2 -2
- data/lib/stripe/resources/terminal/configuration.rb +2 -2
- data/lib/stripe/resources/terminal/location.rb +2 -3
- data/lib/stripe/resources/terminal/reader.rb +426 -6
- data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
- data/lib/stripe/resources/token.rb +63 -2
- data/lib/stripe/resources/transfer.rb +1 -1
- data/lib/stripe/resources/treasury/financial_account.rb +5 -1
- data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +2 -2
- data/lib/stripe/resources/v2/event.rb +2 -2
- data/lib/stripe/resources/v2/event_destination.rb +2 -2
- data/lib/stripe/resources/webhook_endpoint.rb +1 -2
- data/lib/stripe/resources.rb +1 -0
- data/lib/stripe/services/account_external_account_service.rb +3 -4
- data/lib/stripe/services/account_login_link_service.rb +1 -1
- data/lib/stripe/services/account_person_service.rb +85 -2
- data/lib/stripe/services/account_service.rb +169 -20
- data/lib/stripe/services/account_session_service.rb +115 -47
- data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
- data/lib/stripe/services/application_fee_service.rb +1 -1
- data/lib/stripe/services/apps_service.rb +1 -1
- data/lib/stripe/services/balance_service.rb +1 -1
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/billing_portal/session_service.rb +1 -1
- data/lib/stripe/services/billing_portal_service.rb +1 -1
- data/lib/stripe/services/billing_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +4 -4
- data/lib/stripe/services/checkout/session_service.rb +94 -15
- data/lib/stripe/services/checkout_service.rb +1 -1
- data/lib/stripe/services/climate_service.rb +1 -1
- data/lib/stripe/services/coupon_service.rb +1 -2
- data/lib/stripe/services/credit_note_preview_lines_service.rb +3 -3
- data/lib/stripe/services/credit_note_service.rb +14 -15
- data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
- data/lib/stripe/services/customer_payment_method_service.rb +1 -1
- data/lib/stripe/services/customer_payment_source_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +5 -7
- data/lib/stripe/services/customer_session_service.rb +1 -1
- data/lib/stripe/services/customer_tax_id_service.rb +2 -3
- data/lib/stripe/services/dispute_service.rb +1 -1
- data/lib/stripe/services/entitlements_service.rb +1 -1
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/financial_connections/account_service.rb +1 -1
- data/lib/stripe/services/financial_connections_service.rb +1 -1
- data/lib/stripe/services/forwarding_service.rb +1 -1
- data/lib/stripe/services/identity/verification_session_service.rb +21 -5
- data/lib/stripe/services/identity_service.rb +1 -1
- data/lib/stripe/services/invoice_item_service.rb +1 -2
- data/lib/stripe/services/invoice_service.rb +122 -28
- data/lib/stripe/services/issuing/authorization_service.rb +4 -4
- data/lib/stripe/services/issuing/card_service.rb +1 -1
- data/lib/stripe/services/issuing/dispute_service.rb +2 -2
- data/lib/stripe/services/issuing_service.rb +1 -1
- data/lib/stripe/services/payment_intent_service.rb +563 -313
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/payment_method_configuration_service.rb +254 -2
- data/lib/stripe/services/payment_method_domain_service.rb +1 -1
- data/lib/stripe/services/payment_method_service.rb +59 -105
- data/lib/stripe/services/payout_service.rb +2 -2
- data/lib/stripe/services/plan_service.rb +2 -3
- data/lib/stripe/services/price_service.rb +2 -2
- data/lib/stripe/services/product_feature_service.rb +1 -2
- data/lib/stripe/services/product_service.rb +3 -4
- data/lib/stripe/services/promotion_code_service.rb +1 -1
- data/lib/stripe/services/quote_service.rb +21 -4
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
- data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
- data/lib/stripe/services/radar/value_list_service.rb +1 -2
- data/lib/stripe/services/radar_service.rb +1 -1
- data/lib/stripe/services/reporting_service.rb +1 -1
- data/lib/stripe/services/setup_intent_service.rb +403 -291
- data/lib/stripe/services/sigma_service.rb +1 -1
- data/lib/stripe/services/source_service.rb +2 -2
- data/lib/stripe/services/subscription_item_service.rb +26 -0
- data/lib/stripe/services/subscription_schedule_service.rb +106 -3
- data/lib/stripe/services/subscription_service.rb +121 -26
- data/lib/stripe/services/tax/calculation_service.rb +6 -2
- data/lib/stripe/services/tax/registration_service.rb +170 -1
- data/lib/stripe/services/tax/transaction_service.rb +1 -1
- data/lib/stripe/services/tax_id_service.rb +2 -3
- data/lib/stripe/services/tax_service.rb +1 -1
- data/lib/stripe/services/terminal/configuration_service.rb +1 -2
- data/lib/stripe/services/terminal/location_service.rb +2 -3
- data/lib/stripe/services/terminal/reader_service.rb +196 -2
- data/lib/stripe/services/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +90 -91
- data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
- data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
- data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
- data/lib/stripe/services/test_helpers_service.rb +1 -1
- data/lib/stripe/services/token_service.rb +62 -1
- data/lib/stripe/services/transfer_service.rb +2 -2
- data/lib/stripe/services/treasury/financial_account_service.rb +6 -2
- data/lib/stripe/services/treasury_service.rb +1 -1
- data/lib/stripe/services/v1_services.rb +1 -1
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
- data/lib/stripe/services/v2/billing_service.rb +3 -3
- data/lib/stripe/services/v2/core/event_destination_service.rb +17 -23
- data/lib/stripe/services/v2/core/event_service.rb +1 -2
- data/lib/stripe/services/v2/core_service.rb +1 -1
- data/lib/stripe/services/v2_services.rb +1 -1
- data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +1 -1
- data/rbi/stripe/resources/account.rbi +190 -35
- data/rbi/stripe/resources/account_session.rbi +196 -77
- data/rbi/stripe/resources/apple_pay_domain.rbi +1 -3
- data/rbi/stripe/resources/balance.rbi +55 -0
- data/rbi/stripe/resources/balance_transaction.rbi +3 -0
- data/rbi/stripe/resources/bank_account.rbi +2 -2
- data/rbi/stripe/resources/billing/alert.rbi +2 -2
- data/rbi/stripe/resources/billing_portal/session.rbi +3 -3
- data/rbi/stripe/resources/capability.rbi +1 -1
- data/rbi/stripe/resources/charge.rbi +52 -20
- data/rbi/stripe/resources/checkout/session.rbi +133 -24
- data/rbi/stripe/resources/confirmation_token.rbi +140 -115
- data/rbi/stripe/resources/country_spec.rbi +1 -1
- data/rbi/stripe/resources/coupon.rbi +2 -4
- data/rbi/stripe/resources/credit_note.rbi +23 -18
- data/rbi/stripe/resources/customer.rbi +4 -8
- data/rbi/stripe/resources/customer_session.rbi +5 -5
- data/rbi/stripe/resources/dispute.rbi +2 -2
- data/rbi/stripe/resources/event.rbi +4 -1
- data/rbi/stripe/resources/file.rbi +1 -1
- data/rbi/stripe/resources/identity/verification_report.rbi +9 -0
- data/rbi/stripe/resources/identity/verification_session.rbi +59 -12
- data/rbi/stripe/resources/invoice.rbi +149 -40
- data/rbi/stripe/resources/invoice_item.rbi +3 -8
- data/rbi/stripe/resources/invoice_line_item.rbi +2 -2
- data/rbi/stripe/resources/invoice_payment.rbi +9 -2
- data/rbi/stripe/resources/issuing/authorization.rbi +8 -8
- data/rbi/stripe/resources/issuing/card.rbi +1 -1
- data/rbi/stripe/resources/issuing/dispute.rbi +3 -3
- data/rbi/stripe/resources/login_link.rbi +2 -1
- data/rbi/stripe/resources/mandate.rbi +4 -0
- data/rbi/stripe/resources/payment_intent.rbi +637 -381
- data/rbi/stripe/resources/payment_method.rbi +81 -133
- data/rbi/stripe/resources/payment_method_configuration.rbi +400 -4
- data/rbi/stripe/resources/payment_method_domain.rbi +18 -2
- data/rbi/stripe/resources/payout.rbi +4 -4
- data/rbi/stripe/resources/person.rbi +33 -3
- data/rbi/stripe/resources/plan.rbi +2 -4
- data/rbi/stripe/resources/price.rbi +1 -1
- data/rbi/stripe/resources/product.rbi +1 -3
- data/rbi/stripe/resources/quote.rbi +25 -3
- data/rbi/stripe/resources/radar/value_list.rbi +1 -3
- data/rbi/stripe/resources/radar/value_list_item.rbi +1 -3
- data/rbi/stripe/resources/refund.rbi +8 -1
- data/rbi/stripe/resources/reversal.rbi +1 -1
- data/rbi/stripe/resources/review.rbi +1 -1
- data/rbi/stripe/resources/setup_attempt.rbi +1 -1
- data/rbi/stripe/resources/setup_intent.rbi +464 -346
- data/rbi/stripe/resources/source.rbi +1 -1
- data/rbi/stripe/resources/subscription.rbi +150 -34
- data/rbi/stripe/resources/subscription_item.rbi +36 -2
- data/rbi/stripe/resources/subscription_schedule.rbi +161 -11
- data/rbi/stripe/resources/tax/calculation.rbi +7 -3
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +4 -1
- data/rbi/stripe/resources/tax/registration.rbi +249 -2
- data/rbi/stripe/resources/tax/transaction.rbi +1 -1
- data/rbi/stripe/resources/tax_id.rbi +3 -5
- data/rbi/stripe/resources/tax_rate.rbi +2 -2
- data/rbi/stripe/resources/terminal/configuration.rbi +2 -3
- data/rbi/stripe/resources/terminal/location.rbi +4 -6
- data/rbi/stripe/resources/terminal/reader.rbi +415 -8
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +1 -3
- data/rbi/stripe/resources/token.rbi +70 -4
- data/rbi/stripe/resources/transfer.rbi +1 -1
- data/rbi/stripe/resources/treasury/financial_account.rbi +6 -2
- data/rbi/stripe/resources/v2/billing/meter_event.rbi +3 -3
- data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +3 -3
- data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +3 -3
- data/rbi/stripe/resources/v2/event.rbi +3 -3
- data/rbi/stripe/resources/v2/event_destination.rbi +3 -3
- data/rbi/stripe/resources/webhook_endpoint.rbi +1 -3
- data/rbi/stripe/services/account_external_account_service.rbi +3 -5
- data/rbi/stripe/services/account_login_link_service.rbi +1 -1
- data/rbi/stripe/services/account_person_service.rbi +93 -5
- data/rbi/stripe/services/account_service.rbi +166 -28
- data/rbi/stripe/services/account_session_service.rbi +126 -52
- data/rbi/stripe/services/apple_pay_domain_service.rbi +1 -3
- data/rbi/stripe/services/balance_service.rbi +1 -1
- data/rbi/stripe/services/billing/alert_service.rbi +2 -2
- data/rbi/stripe/services/billing_portal/session_service.rbi +1 -1
- data/rbi/stripe/services/charge_service.rbi +4 -4
- data/rbi/stripe/services/checkout/session_service.rbi +104 -19
- data/rbi/stripe/services/coupon_service.rbi +1 -3
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +3 -3
- data/rbi/stripe/services/credit_note_service.rbi +13 -14
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +3 -3
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +2 -2
- data/rbi/stripe/services/customer_payment_method_service.rbi +1 -1
- data/rbi/stripe/services/customer_payment_source_service.rbi +1 -1
- data/rbi/stripe/services/customer_service.rbi +4 -8
- data/rbi/stripe/services/customer_session_service.rbi +1 -1
- data/rbi/stripe/services/customer_tax_id_service.rbi +2 -4
- data/rbi/stripe/services/dispute_service.rbi +1 -1
- data/rbi/stripe/services/file_service.rbi +1 -1
- data/rbi/stripe/services/identity/verification_session_service.rbi +22 -6
- data/rbi/stripe/services/invoice_item_service.rbi +1 -3
- data/rbi/stripe/services/invoice_service.rbi +126 -35
- data/rbi/stripe/services/issuing/authorization_service.rbi +4 -4
- data/rbi/stripe/services/issuing/card_service.rbi +1 -1
- data/rbi/stripe/services/issuing/dispute_service.rbi +2 -2
- data/rbi/stripe/services/payment_intent_service.rbi +599 -369
- data/rbi/stripe/services/payment_method_configuration_service.rbi +280 -4
- data/rbi/stripe/services/payment_method_domain_service.rbi +1 -1
- data/rbi/stripe/services/payment_method_service.rbi +62 -121
- data/rbi/stripe/services/payout_service.rbi +2 -2
- data/rbi/stripe/services/plan_service.rbi +2 -4
- data/rbi/stripe/services/price_service.rbi +2 -2
- data/rbi/stripe/services/product_feature_service.rbi +1 -3
- data/rbi/stripe/services/product_service.rbi +2 -4
- data/rbi/stripe/services/promotion_code_service.rbi +1 -1
- data/rbi/stripe/services/quote_service.rbi +16 -3
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +1 -1
- data/rbi/stripe/services/radar/value_list_item_service.rbi +1 -3
- data/rbi/stripe/services/radar/value_list_service.rbi +1 -3
- data/rbi/stripe/services/setup_intent_service.rbi +457 -344
- data/rbi/stripe/services/source_service.rbi +1 -1
- data/rbi/stripe/services/subscription_item_service.rbi +28 -2
- data/rbi/stripe/services/subscription_schedule_service.rbi +119 -10
- data/rbi/stripe/services/subscription_service.rbi +121 -33
- data/rbi/stripe/services/tax/calculation_service.rbi +6 -2
- data/rbi/stripe/services/tax/registration_service.rbi +171 -2
- data/rbi/stripe/services/tax_id_service.rbi +2 -4
- data/rbi/stripe/services/terminal/configuration_service.rbi +1 -3
- data/rbi/stripe/services/terminal/location_service.rbi +4 -6
- data/rbi/stripe/services/terminal/reader_service.rbi +200 -4
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +106 -106
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +31 -0
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +1 -3
- data/rbi/stripe/services/token_service.rbi +71 -3
- data/rbi/stripe/services/transfer_service.rbi +1 -1
- data/rbi/stripe/services/treasury/financial_account_service.rbi +6 -2
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +1 -3
- data/rbi/stripe/services/v2/billing_service.rbi +1 -1
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +14 -22
- data/rbi/stripe/services/v2/core/event_service.rbi +1 -3
- data/rbi/stripe/services/webhook_endpoint_service.rbi +1 -3
- metadata +5 -2
@@ -6,15 +6,14 @@ module Stripe
|
|
6
6
|
attr_reader :capabilities, :external_accounts, :login_links, :persons
|
7
7
|
|
8
8
|
def initialize(requestor)
|
9
|
-
super
|
9
|
+
super
|
10
10
|
@capabilities = Stripe::AccountCapabilityService.new(@requestor)
|
11
11
|
@external_accounts = Stripe::AccountExternalAccountService.new(@requestor)
|
12
12
|
@login_links = Stripe::AccountLoginLinkService.new(@requestor)
|
13
13
|
@persons = Stripe::AccountPersonService.new(@requestor)
|
14
14
|
end
|
15
15
|
|
16
|
-
class DeleteParams < Stripe::RequestParams
|
17
|
-
end
|
16
|
+
class DeleteParams < Stripe::RequestParams; end
|
18
17
|
|
19
18
|
class RetrieveParams < Stripe::RequestParams
|
20
19
|
# Specifies which fields in the response should be expanded.
|
@@ -39,7 +38,7 @@ module Stripe
|
|
39
38
|
attr_accessor :country
|
40
39
|
# The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
|
41
40
|
attr_accessor :currency
|
42
|
-
# The routing number, sort code, or other country-
|
41
|
+
# The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required.
|
43
42
|
attr_accessor :routing_number
|
44
43
|
|
45
44
|
def initialize(
|
@@ -125,6 +124,8 @@ module Stripe
|
|
125
124
|
attr_accessor :estimated_worker_count
|
126
125
|
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
|
127
126
|
attr_accessor :mcc
|
127
|
+
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
|
128
|
+
attr_accessor :minority_owned_business_designation
|
128
129
|
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
|
129
130
|
attr_accessor :monthly_estimated_revenue
|
130
131
|
# The customer-facing business name.
|
@@ -146,6 +147,7 @@ module Stripe
|
|
146
147
|
annual_revenue: nil,
|
147
148
|
estimated_worker_count: nil,
|
148
149
|
mcc: nil,
|
150
|
+
minority_owned_business_designation: nil,
|
149
151
|
monthly_estimated_revenue: nil,
|
150
152
|
name: nil,
|
151
153
|
product_description: nil,
|
@@ -158,6 +160,7 @@ module Stripe
|
|
158
160
|
@annual_revenue = annual_revenue
|
159
161
|
@estimated_worker_count = estimated_worker_count
|
160
162
|
@mcc = mcc
|
163
|
+
@minority_owned_business_designation = minority_owned_business_designation
|
161
164
|
@monthly_estimated_revenue = monthly_estimated_revenue
|
162
165
|
@name = name
|
163
166
|
@product_description = product_description
|
@@ -314,6 +317,15 @@ module Stripe
|
|
314
317
|
end
|
315
318
|
end
|
316
319
|
|
320
|
+
class CryptoPayments < Stripe::RequestParams
|
321
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
322
|
+
attr_accessor :requested
|
323
|
+
|
324
|
+
def initialize(requested: nil)
|
325
|
+
@requested = requested
|
326
|
+
end
|
327
|
+
end
|
328
|
+
|
317
329
|
class EpsPayments < Stripe::RequestParams
|
318
330
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
319
331
|
attr_accessor :requested
|
@@ -539,6 +551,15 @@ module Stripe
|
|
539
551
|
end
|
540
552
|
end
|
541
553
|
|
554
|
+
class PixPayments < Stripe::RequestParams
|
555
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
556
|
+
attr_accessor :requested
|
557
|
+
|
558
|
+
def initialize(requested: nil)
|
559
|
+
@requested = requested
|
560
|
+
end
|
561
|
+
end
|
562
|
+
|
542
563
|
class PromptpayPayments < Stripe::RequestParams
|
543
564
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
544
565
|
attr_accessor :requested
|
@@ -714,6 +735,8 @@ module Stripe
|
|
714
735
|
attr_accessor :cartes_bancaires_payments
|
715
736
|
# The cashapp_payments capability.
|
716
737
|
attr_accessor :cashapp_payments
|
738
|
+
# The crypto_payments capability.
|
739
|
+
attr_accessor :crypto_payments
|
717
740
|
# The eps_payments capability.
|
718
741
|
attr_accessor :eps_payments
|
719
742
|
# The fpx_payments capability.
|
@@ -764,6 +787,8 @@ module Stripe
|
|
764
787
|
attr_accessor :payco_payments
|
765
788
|
# The paynow_payments capability.
|
766
789
|
attr_accessor :paynow_payments
|
790
|
+
# The pix_payments capability.
|
791
|
+
attr_accessor :pix_payments
|
767
792
|
# The promptpay_payments capability.
|
768
793
|
attr_accessor :promptpay_payments
|
769
794
|
# The revolut_pay_payments capability.
|
@@ -814,6 +839,7 @@ module Stripe
|
|
814
839
|
card_payments: nil,
|
815
840
|
cartes_bancaires_payments: nil,
|
816
841
|
cashapp_payments: nil,
|
842
|
+
crypto_payments: nil,
|
817
843
|
eps_payments: nil,
|
818
844
|
fpx_payments: nil,
|
819
845
|
gb_bank_transfer_payments: nil,
|
@@ -839,6 +865,7 @@ module Stripe
|
|
839
865
|
pay_by_bank_payments: nil,
|
840
866
|
payco_payments: nil,
|
841
867
|
paynow_payments: nil,
|
868
|
+
pix_payments: nil,
|
842
869
|
promptpay_payments: nil,
|
843
870
|
revolut_pay_payments: nil,
|
844
871
|
samsung_pay_payments: nil,
|
@@ -872,6 +899,7 @@ module Stripe
|
|
872
899
|
@card_payments = card_payments
|
873
900
|
@cartes_bancaires_payments = cartes_bancaires_payments
|
874
901
|
@cashapp_payments = cashapp_payments
|
902
|
+
@crypto_payments = crypto_payments
|
875
903
|
@eps_payments = eps_payments
|
876
904
|
@fpx_payments = fpx_payments
|
877
905
|
@gb_bank_transfer_payments = gb_bank_transfer_payments
|
@@ -897,6 +925,7 @@ module Stripe
|
|
897
925
|
@pay_by_bank_payments = pay_by_bank_payments
|
898
926
|
@payco_payments = payco_payments
|
899
927
|
@paynow_payments = paynow_payments
|
928
|
+
@pix_payments = pix_payments
|
900
929
|
@promptpay_payments = promptpay_payments
|
901
930
|
@revolut_pay_payments = revolut_pay_payments
|
902
931
|
@samsung_pay_payments = samsung_pay_payments
|
@@ -1130,6 +1159,21 @@ module Stripe
|
|
1130
1159
|
end
|
1131
1160
|
end
|
1132
1161
|
|
1162
|
+
class RegistrationDate < Stripe::RequestParams
|
1163
|
+
# The day of registration, between 1 and 31.
|
1164
|
+
attr_accessor :day
|
1165
|
+
# The month of registration, between 1 and 12.
|
1166
|
+
attr_accessor :month
|
1167
|
+
# The four-digit year of registration.
|
1168
|
+
attr_accessor :year
|
1169
|
+
|
1170
|
+
def initialize(day: nil, month: nil, year: nil)
|
1171
|
+
@day = day
|
1172
|
+
@month = month
|
1173
|
+
@year = year
|
1174
|
+
end
|
1175
|
+
end
|
1176
|
+
|
1133
1177
|
class Verification < Stripe::RequestParams
|
1134
1178
|
class Document < Stripe::RequestParams
|
1135
1179
|
# The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
@@ -1179,6 +1223,8 @@ module Stripe
|
|
1179
1223
|
attr_accessor :ownership_exemption_reason
|
1180
1224
|
# The company's phone number (used for verification).
|
1181
1225
|
attr_accessor :phone
|
1226
|
+
# Attribute for param field registration_date
|
1227
|
+
attr_accessor :registration_date
|
1182
1228
|
# The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
|
1183
1229
|
attr_accessor :registration_number
|
1184
1230
|
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
|
@@ -1208,6 +1254,7 @@ module Stripe
|
|
1208
1254
|
ownership_declaration: nil,
|
1209
1255
|
ownership_exemption_reason: nil,
|
1210
1256
|
phone: nil,
|
1257
|
+
registration_date: nil,
|
1211
1258
|
registration_number: nil,
|
1212
1259
|
structure: nil,
|
1213
1260
|
tax_id: nil,
|
@@ -1230,6 +1277,7 @@ module Stripe
|
|
1230
1277
|
@ownership_declaration = ownership_declaration
|
1231
1278
|
@ownership_exemption_reason = ownership_exemption_reason
|
1232
1279
|
@phone = phone
|
1280
|
+
@registration_date = registration_date
|
1233
1281
|
@registration_number = registration_number
|
1234
1282
|
@structure = structure
|
1235
1283
|
@tax_id = tax_id
|
@@ -1294,6 +1342,15 @@ module Stripe
|
|
1294
1342
|
end
|
1295
1343
|
end
|
1296
1344
|
|
1345
|
+
class ProofOfAddress < Stripe::RequestParams
|
1346
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
1347
|
+
attr_accessor :files
|
1348
|
+
|
1349
|
+
def initialize(files: nil)
|
1350
|
+
@files = files
|
1351
|
+
end
|
1352
|
+
end
|
1353
|
+
|
1297
1354
|
class ProofOfRegistration < Stripe::RequestParams
|
1298
1355
|
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
1299
1356
|
attr_accessor :files
|
@@ -1323,6 +1380,8 @@ module Stripe
|
|
1323
1380
|
attr_accessor :company_registration_verification
|
1324
1381
|
# One or more documents that demonstrate proof of a company's tax ID.
|
1325
1382
|
attr_accessor :company_tax_id_verification
|
1383
|
+
# One or more documents that demonstrate proof of address.
|
1384
|
+
attr_accessor :proof_of_address
|
1326
1385
|
# One or more documents showing the company’s proof of registration with the national business registry.
|
1327
1386
|
attr_accessor :proof_of_registration
|
1328
1387
|
# One or more documents that demonstrate proof of ultimate beneficial ownership.
|
@@ -1335,6 +1394,7 @@ module Stripe
|
|
1335
1394
|
company_ministerial_decree: nil,
|
1336
1395
|
company_registration_verification: nil,
|
1337
1396
|
company_tax_id_verification: nil,
|
1397
|
+
proof_of_address: nil,
|
1338
1398
|
proof_of_registration: nil,
|
1339
1399
|
proof_of_ultimate_beneficial_ownership: nil
|
1340
1400
|
)
|
@@ -1344,6 +1404,7 @@ module Stripe
|
|
1344
1404
|
@company_ministerial_decree = company_ministerial_decree
|
1345
1405
|
@company_registration_verification = company_registration_verification
|
1346
1406
|
@company_tax_id_verification = company_tax_id_verification
|
1407
|
+
@proof_of_address = proof_of_address
|
1347
1408
|
@proof_of_registration = proof_of_registration
|
1348
1409
|
@proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
|
1349
1410
|
end
|
@@ -1789,14 +1850,27 @@ module Stripe
|
|
1789
1850
|
attr_accessor :interval
|
1790
1851
|
# The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
|
1791
1852
|
attr_accessor :monthly_anchor
|
1853
|
+
# The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly` and `monthly_anchor` is not set.
|
1854
|
+
attr_accessor :monthly_payout_days
|
1792
1855
|
# The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
|
1793
1856
|
attr_accessor :weekly_anchor
|
1794
|
-
|
1795
|
-
|
1857
|
+
# The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly` and `weekly_anchor` is not set.)
|
1858
|
+
attr_accessor :weekly_payout_days
|
1859
|
+
|
1860
|
+
def initialize(
|
1861
|
+
delay_days: nil,
|
1862
|
+
interval: nil,
|
1863
|
+
monthly_anchor: nil,
|
1864
|
+
monthly_payout_days: nil,
|
1865
|
+
weekly_anchor: nil,
|
1866
|
+
weekly_payout_days: nil
|
1867
|
+
)
|
1796
1868
|
@delay_days = delay_days
|
1797
1869
|
@interval = interval
|
1798
1870
|
@monthly_anchor = monthly_anchor
|
1871
|
+
@monthly_payout_days = monthly_payout_days
|
1799
1872
|
@weekly_anchor = weekly_anchor
|
1873
|
+
@weekly_payout_days = weekly_payout_days
|
1800
1874
|
end
|
1801
1875
|
end
|
1802
1876
|
# A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances).
|
@@ -2024,7 +2098,7 @@ module Stripe
|
|
2024
2098
|
attr_accessor :country
|
2025
2099
|
# The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
|
2026
2100
|
attr_accessor :currency
|
2027
|
-
# The routing number, sort code, or other country-
|
2101
|
+
# The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required.
|
2028
2102
|
attr_accessor :routing_number
|
2029
2103
|
|
2030
2104
|
def initialize(
|
@@ -2110,6 +2184,8 @@ module Stripe
|
|
2110
2184
|
attr_accessor :estimated_worker_count
|
2111
2185
|
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
|
2112
2186
|
attr_accessor :mcc
|
2187
|
+
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
|
2188
|
+
attr_accessor :minority_owned_business_designation
|
2113
2189
|
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
|
2114
2190
|
attr_accessor :monthly_estimated_revenue
|
2115
2191
|
# The customer-facing business name.
|
@@ -2131,6 +2207,7 @@ module Stripe
|
|
2131
2207
|
annual_revenue: nil,
|
2132
2208
|
estimated_worker_count: nil,
|
2133
2209
|
mcc: nil,
|
2210
|
+
minority_owned_business_designation: nil,
|
2134
2211
|
monthly_estimated_revenue: nil,
|
2135
2212
|
name: nil,
|
2136
2213
|
product_description: nil,
|
@@ -2143,6 +2220,7 @@ module Stripe
|
|
2143
2220
|
@annual_revenue = annual_revenue
|
2144
2221
|
@estimated_worker_count = estimated_worker_count
|
2145
2222
|
@mcc = mcc
|
2223
|
+
@minority_owned_business_designation = minority_owned_business_designation
|
2146
2224
|
@monthly_estimated_revenue = monthly_estimated_revenue
|
2147
2225
|
@name = name
|
2148
2226
|
@product_description = product_description
|
@@ -2299,6 +2377,15 @@ module Stripe
|
|
2299
2377
|
end
|
2300
2378
|
end
|
2301
2379
|
|
2380
|
+
class CryptoPayments < Stripe::RequestParams
|
2381
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2382
|
+
attr_accessor :requested
|
2383
|
+
|
2384
|
+
def initialize(requested: nil)
|
2385
|
+
@requested = requested
|
2386
|
+
end
|
2387
|
+
end
|
2388
|
+
|
2302
2389
|
class EpsPayments < Stripe::RequestParams
|
2303
2390
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2304
2391
|
attr_accessor :requested
|
@@ -2524,6 +2611,15 @@ module Stripe
|
|
2524
2611
|
end
|
2525
2612
|
end
|
2526
2613
|
|
2614
|
+
class PixPayments < Stripe::RequestParams
|
2615
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2616
|
+
attr_accessor :requested
|
2617
|
+
|
2618
|
+
def initialize(requested: nil)
|
2619
|
+
@requested = requested
|
2620
|
+
end
|
2621
|
+
end
|
2622
|
+
|
2527
2623
|
class PromptpayPayments < Stripe::RequestParams
|
2528
2624
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2529
2625
|
attr_accessor :requested
|
@@ -2699,6 +2795,8 @@ module Stripe
|
|
2699
2795
|
attr_accessor :cartes_bancaires_payments
|
2700
2796
|
# The cashapp_payments capability.
|
2701
2797
|
attr_accessor :cashapp_payments
|
2798
|
+
# The crypto_payments capability.
|
2799
|
+
attr_accessor :crypto_payments
|
2702
2800
|
# The eps_payments capability.
|
2703
2801
|
attr_accessor :eps_payments
|
2704
2802
|
# The fpx_payments capability.
|
@@ -2749,6 +2847,8 @@ module Stripe
|
|
2749
2847
|
attr_accessor :payco_payments
|
2750
2848
|
# The paynow_payments capability.
|
2751
2849
|
attr_accessor :paynow_payments
|
2850
|
+
# The pix_payments capability.
|
2851
|
+
attr_accessor :pix_payments
|
2752
2852
|
# The promptpay_payments capability.
|
2753
2853
|
attr_accessor :promptpay_payments
|
2754
2854
|
# The revolut_pay_payments capability.
|
@@ -2799,6 +2899,7 @@ module Stripe
|
|
2799
2899
|
card_payments: nil,
|
2800
2900
|
cartes_bancaires_payments: nil,
|
2801
2901
|
cashapp_payments: nil,
|
2902
|
+
crypto_payments: nil,
|
2802
2903
|
eps_payments: nil,
|
2803
2904
|
fpx_payments: nil,
|
2804
2905
|
gb_bank_transfer_payments: nil,
|
@@ -2824,6 +2925,7 @@ module Stripe
|
|
2824
2925
|
pay_by_bank_payments: nil,
|
2825
2926
|
payco_payments: nil,
|
2826
2927
|
paynow_payments: nil,
|
2928
|
+
pix_payments: nil,
|
2827
2929
|
promptpay_payments: nil,
|
2828
2930
|
revolut_pay_payments: nil,
|
2829
2931
|
samsung_pay_payments: nil,
|
@@ -2857,6 +2959,7 @@ module Stripe
|
|
2857
2959
|
@card_payments = card_payments
|
2858
2960
|
@cartes_bancaires_payments = cartes_bancaires_payments
|
2859
2961
|
@cashapp_payments = cashapp_payments
|
2962
|
+
@crypto_payments = crypto_payments
|
2860
2963
|
@eps_payments = eps_payments
|
2861
2964
|
@fpx_payments = fpx_payments
|
2862
2965
|
@gb_bank_transfer_payments = gb_bank_transfer_payments
|
@@ -2882,6 +2985,7 @@ module Stripe
|
|
2882
2985
|
@pay_by_bank_payments = pay_by_bank_payments
|
2883
2986
|
@payco_payments = payco_payments
|
2884
2987
|
@paynow_payments = paynow_payments
|
2988
|
+
@pix_payments = pix_payments
|
2885
2989
|
@promptpay_payments = promptpay_payments
|
2886
2990
|
@revolut_pay_payments = revolut_pay_payments
|
2887
2991
|
@samsung_pay_payments = samsung_pay_payments
|
@@ -3115,6 +3219,21 @@ module Stripe
|
|
3115
3219
|
end
|
3116
3220
|
end
|
3117
3221
|
|
3222
|
+
class RegistrationDate < Stripe::RequestParams
|
3223
|
+
# The day of registration, between 1 and 31.
|
3224
|
+
attr_accessor :day
|
3225
|
+
# The month of registration, between 1 and 12.
|
3226
|
+
attr_accessor :month
|
3227
|
+
# The four-digit year of registration.
|
3228
|
+
attr_accessor :year
|
3229
|
+
|
3230
|
+
def initialize(day: nil, month: nil, year: nil)
|
3231
|
+
@day = day
|
3232
|
+
@month = month
|
3233
|
+
@year = year
|
3234
|
+
end
|
3235
|
+
end
|
3236
|
+
|
3118
3237
|
class Verification < Stripe::RequestParams
|
3119
3238
|
class Document < Stripe::RequestParams
|
3120
3239
|
# The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
@@ -3164,6 +3283,8 @@ module Stripe
|
|
3164
3283
|
attr_accessor :ownership_exemption_reason
|
3165
3284
|
# The company's phone number (used for verification).
|
3166
3285
|
attr_accessor :phone
|
3286
|
+
# When the business was incorporated or registered.
|
3287
|
+
attr_accessor :registration_date
|
3167
3288
|
# The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
|
3168
3289
|
attr_accessor :registration_number
|
3169
3290
|
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
|
@@ -3193,6 +3314,7 @@ module Stripe
|
|
3193
3314
|
ownership_declaration: nil,
|
3194
3315
|
ownership_exemption_reason: nil,
|
3195
3316
|
phone: nil,
|
3317
|
+
registration_date: nil,
|
3196
3318
|
registration_number: nil,
|
3197
3319
|
structure: nil,
|
3198
3320
|
tax_id: nil,
|
@@ -3215,6 +3337,7 @@ module Stripe
|
|
3215
3337
|
@ownership_declaration = ownership_declaration
|
3216
3338
|
@ownership_exemption_reason = ownership_exemption_reason
|
3217
3339
|
@phone = phone
|
3340
|
+
@registration_date = registration_date
|
3218
3341
|
@registration_number = registration_number
|
3219
3342
|
@structure = structure
|
3220
3343
|
@tax_id = tax_id
|
@@ -3323,6 +3446,15 @@ module Stripe
|
|
3323
3446
|
end
|
3324
3447
|
end
|
3325
3448
|
|
3449
|
+
class ProofOfAddress < Stripe::RequestParams
|
3450
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
3451
|
+
attr_accessor :files
|
3452
|
+
|
3453
|
+
def initialize(files: nil)
|
3454
|
+
@files = files
|
3455
|
+
end
|
3456
|
+
end
|
3457
|
+
|
3326
3458
|
class ProofOfRegistration < Stripe::RequestParams
|
3327
3459
|
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
3328
3460
|
attr_accessor :files
|
@@ -3352,6 +3484,8 @@ module Stripe
|
|
3352
3484
|
attr_accessor :company_registration_verification
|
3353
3485
|
# One or more documents that demonstrate proof of a company's tax ID.
|
3354
3486
|
attr_accessor :company_tax_id_verification
|
3487
|
+
# One or more documents that demonstrate proof of address.
|
3488
|
+
attr_accessor :proof_of_address
|
3355
3489
|
# One or more documents showing the company’s proof of registration with the national business registry.
|
3356
3490
|
attr_accessor :proof_of_registration
|
3357
3491
|
# One or more documents that demonstrate proof of ultimate beneficial ownership.
|
@@ -3364,6 +3498,7 @@ module Stripe
|
|
3364
3498
|
company_ministerial_decree: nil,
|
3365
3499
|
company_registration_verification: nil,
|
3366
3500
|
company_tax_id_verification: nil,
|
3501
|
+
proof_of_address: nil,
|
3367
3502
|
proof_of_registration: nil,
|
3368
3503
|
proof_of_ultimate_beneficial_ownership: nil
|
3369
3504
|
)
|
@@ -3373,6 +3508,7 @@ module Stripe
|
|
3373
3508
|
@company_ministerial_decree = company_ministerial_decree
|
3374
3509
|
@company_registration_verification = company_registration_verification
|
3375
3510
|
@company_tax_id_verification = company_tax_id_verification
|
3511
|
+
@proof_of_address = proof_of_address
|
3376
3512
|
@proof_of_registration = proof_of_registration
|
3377
3513
|
@proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
|
3378
3514
|
end
|
@@ -3815,14 +3951,27 @@ module Stripe
|
|
3815
3951
|
attr_accessor :interval
|
3816
3952
|
# The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
|
3817
3953
|
attr_accessor :monthly_anchor
|
3954
|
+
# The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly` and `monthly_anchor` is not set.
|
3955
|
+
attr_accessor :monthly_payout_days
|
3818
3956
|
# The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
|
3819
3957
|
attr_accessor :weekly_anchor
|
3820
|
-
|
3821
|
-
|
3958
|
+
# The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly` and `weekly_anchor` is not set.)
|
3959
|
+
attr_accessor :weekly_payout_days
|
3960
|
+
|
3961
|
+
def initialize(
|
3962
|
+
delay_days: nil,
|
3963
|
+
interval: nil,
|
3964
|
+
monthly_anchor: nil,
|
3965
|
+
monthly_payout_days: nil,
|
3966
|
+
weekly_anchor: nil,
|
3967
|
+
weekly_payout_days: nil
|
3968
|
+
)
|
3822
3969
|
@delay_days = delay_days
|
3823
3970
|
@interval = interval
|
3824
3971
|
@monthly_anchor = monthly_anchor
|
3972
|
+
@monthly_payout_days = monthly_payout_days
|
3825
3973
|
@weekly_anchor = weekly_anchor
|
3974
|
+
@weekly_payout_days = weekly_payout_days
|
3826
3975
|
end
|
3827
3976
|
end
|
3828
3977
|
# A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances).
|
@@ -4013,21 +4162,21 @@ module Stripe
|
|
4013
4162
|
end
|
4014
4163
|
end
|
4015
4164
|
|
4016
|
-
# With [Connect](https://stripe.com/docs/connect), you can create Stripe accounts for your users.
|
4165
|
+
# With [Connect](https://docs.stripe.com/docs/connect), you can create Stripe accounts for your users.
|
4017
4166
|
# To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).
|
4018
4167
|
#
|
4019
|
-
# If you've already collected information for your connected accounts, you [can prefill that information](https://stripe.com/docs/connect/best-practices#onboarding) when
|
4168
|
+
# If you've already collected information for your connected accounts, you [can prefill that information](https://docs.stripe.com/docs/connect/best-practices#onboarding) when
|
4020
4169
|
# creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding.
|
4021
4170
|
# You can prefill any information on the account.
|
4022
4171
|
def create(params = {}, opts = {})
|
4023
4172
|
request(method: :post, path: "/v1/accounts", params: params, opts: opts, base_address: :api)
|
4024
4173
|
end
|
4025
4174
|
|
4026
|
-
# With [Connect](https://stripe.com/connect), you can delete accounts you manage.
|
4175
|
+
# With [Connect](https://docs.stripe.com/connect), you can delete accounts you manage.
|
4027
4176
|
#
|
4028
4177
|
# Test-mode accounts can be deleted at any time.
|
4029
4178
|
#
|
4030
|
-
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balance_object) are zero.
|
4179
|
+
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
|
4031
4180
|
#
|
4032
4181
|
# If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
|
4033
4182
|
def delete(account, params = {}, opts = {})
|
@@ -4040,12 +4189,12 @@ module Stripe
|
|
4040
4189
|
)
|
4041
4190
|
end
|
4042
4191
|
|
4043
|
-
# Returns a list of accounts connected to your platform via [Connect](https://stripe.com/docs/connect). If you're not a platform, the list is empty.
|
4192
|
+
# Returns a list of accounts connected to your platform via [Connect](https://docs.stripe.com/docs/connect). If you're not a platform, the list is empty.
|
4044
4193
|
def list(params = {}, opts = {})
|
4045
4194
|
request(method: :get, path: "/v1/accounts", params: params, opts: opts, base_address: :api)
|
4046
4195
|
end
|
4047
4196
|
|
4048
|
-
# With [Connect](https://stripe.com/connect), you can reject accounts that you have flagged as suspicious.
|
4197
|
+
# With [Connect](https://docs.stripe.com/connect), you can reject accounts that you have flagged as suspicious.
|
4049
4198
|
#
|
4050
4199
|
# Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero.
|
4051
4200
|
def reject(account, params = {}, opts = {})
|
@@ -4074,19 +4223,19 @@ module Stripe
|
|
4074
4223
|
request(method: :get, path: "/v1/account", params: params, opts: opts, base_address: :api)
|
4075
4224
|
end
|
4076
4225
|
|
4077
|
-
# Updates a [connected account](https://stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
|
4226
|
+
# Updates a [connected account](https://docs.stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
|
4078
4227
|
# left unchanged.
|
4079
4228
|
#
|
4080
|
-
# For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
4229
|
+
# For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
4081
4230
|
# is application, which includes Custom accounts, you can update any information on the account.
|
4082
4231
|
#
|
4083
|
-
# For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
4232
|
+
# For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
4084
4233
|
# is stripe, which includes Standard and Express accounts, you can update all information until you create
|
4085
|
-
# an [Account Link or <a href="/api/account_sessions">Account Session](https://stripe.com/api/account_links) to start Connect onboarding,
|
4234
|
+
# an [Account Link or <a href="/api/account_sessions">Account Session](https://docs.stripe.com/api/account_links) to start Connect onboarding,
|
4086
4235
|
# after which some properties can no longer be updated.
|
4087
4236
|
#
|
4088
4237
|
# To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our
|
4089
|
-
# [Connect](https://stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
|
4238
|
+
# [Connect](https://docs.stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
|
4090
4239
|
def update(account, params = {}, opts = {})
|
4091
4240
|
request(
|
4092
4241
|
method: :post,
|