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
@@ -7,9 +7,9 @@ module Stripe
|
|
7
7
|
class Components < Stripe::RequestParams
|
8
8
|
class AccountManagement < Stripe::RequestParams
|
9
9
|
class Features < Stripe::RequestParams
|
10
|
-
#
|
10
|
+
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
11
11
|
attr_accessor :disable_stripe_user_authentication
|
12
|
-
# Whether
|
12
|
+
# Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
|
13
13
|
attr_accessor :external_account_collection
|
14
14
|
|
15
15
|
def initialize(
|
@@ -33,9 +33,9 @@ module Stripe
|
|
33
33
|
|
34
34
|
class AccountOnboarding < Stripe::RequestParams
|
35
35
|
class Features < Stripe::RequestParams
|
36
|
-
#
|
36
|
+
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
37
37
|
attr_accessor :disable_stripe_user_authentication
|
38
|
-
# Whether
|
38
|
+
# Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
|
39
39
|
attr_accessor :external_account_collection
|
40
40
|
|
41
41
|
def initialize(
|
@@ -59,15 +59,15 @@ module Stripe
|
|
59
59
|
|
60
60
|
class Balances < Stripe::RequestParams
|
61
61
|
class Features < Stripe::RequestParams
|
62
|
-
#
|
62
|
+
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
63
63
|
attr_accessor :disable_stripe_user_authentication
|
64
|
-
# Whether to allow payout schedule to be changed.
|
64
|
+
# Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
65
65
|
attr_accessor :edit_payout_schedule
|
66
|
-
# Whether
|
66
|
+
# Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
|
67
67
|
attr_accessor :external_account_collection
|
68
|
-
# Whether to allow creation of instant payouts.
|
68
|
+
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
69
69
|
attr_accessor :instant_payouts
|
70
|
-
# Whether to allow creation of standard payouts.
|
70
|
+
# Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
71
71
|
attr_accessor :standard_payouts
|
72
72
|
|
73
73
|
def initialize(
|
@@ -95,8 +95,28 @@ module Stripe
|
|
95
95
|
end
|
96
96
|
end
|
97
97
|
|
98
|
-
class
|
98
|
+
class DisputesList < Stripe::RequestParams
|
99
99
|
class Features < Stripe::RequestParams
|
100
|
+
# Whether to allow capturing and cancelling payment intents. This is `true` by default.
|
101
|
+
attr_accessor :capture_payments
|
102
|
+
# Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
|
103
|
+
attr_accessor :destination_on_behalf_of_charge_management
|
104
|
+
# Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
|
105
|
+
attr_accessor :dispute_management
|
106
|
+
# Whether sending refunds is enabled. This is `true` by default.
|
107
|
+
attr_accessor :refund_management
|
108
|
+
|
109
|
+
def initialize(
|
110
|
+
capture_payments: nil,
|
111
|
+
destination_on_behalf_of_charge_management: nil,
|
112
|
+
dispute_management: nil,
|
113
|
+
refund_management: nil
|
114
|
+
)
|
115
|
+
@capture_payments = capture_payments
|
116
|
+
@destination_on_behalf_of_charge_management = destination_on_behalf_of_charge_management
|
117
|
+
@dispute_management = dispute_management
|
118
|
+
@refund_management = refund_management
|
119
|
+
end
|
100
120
|
end
|
101
121
|
# Whether the embedded component is enabled.
|
102
122
|
attr_accessor :enabled
|
@@ -109,11 +129,24 @@ module Stripe
|
|
109
129
|
end
|
110
130
|
end
|
111
131
|
|
132
|
+
class Documents < Stripe::RequestParams
|
133
|
+
class Features < Stripe::RequestParams; end
|
134
|
+
# Whether the embedded component is enabled.
|
135
|
+
attr_accessor :enabled
|
136
|
+
# The list of features enabled in the embedded component.
|
137
|
+
attr_accessor :features
|
138
|
+
|
139
|
+
def initialize(enabled: nil, features: nil)
|
140
|
+
@enabled = enabled
|
141
|
+
@features = features
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
112
145
|
class FinancialAccount < Stripe::RequestParams
|
113
146
|
class Features < Stripe::RequestParams
|
114
|
-
#
|
147
|
+
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
115
148
|
attr_accessor :disable_stripe_user_authentication
|
116
|
-
# Whether
|
149
|
+
# Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
|
117
150
|
attr_accessor :external_account_collection
|
118
151
|
# Whether to allow sending money.
|
119
152
|
attr_accessor :send_money
|
@@ -205,7 +238,7 @@ module Stripe
|
|
205
238
|
attr_accessor :card_spend_dispute_management
|
206
239
|
# Whether to allow cardholder management features.
|
207
240
|
attr_accessor :cardholder_management
|
208
|
-
#
|
241
|
+
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
209
242
|
attr_accessor :disable_stripe_user_authentication
|
210
243
|
# Whether to allow spend control management features.
|
211
244
|
attr_accessor :spend_control_management
|
@@ -237,9 +270,9 @@ module Stripe
|
|
237
270
|
|
238
271
|
class NotificationBanner < Stripe::RequestParams
|
239
272
|
class Features < Stripe::RequestParams
|
240
|
-
#
|
273
|
+
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
241
274
|
attr_accessor :disable_stripe_user_authentication
|
242
|
-
# Whether
|
275
|
+
# Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
|
243
276
|
attr_accessor :external_account_collection
|
244
277
|
|
245
278
|
def initialize(
|
@@ -265,11 +298,11 @@ module Stripe
|
|
265
298
|
class Features < Stripe::RequestParams
|
266
299
|
# Whether to allow capturing and cancelling payment intents. This is `true` by default.
|
267
300
|
attr_accessor :capture_payments
|
268
|
-
# Whether
|
301
|
+
# Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
|
269
302
|
attr_accessor :destination_on_behalf_of_charge_management
|
270
|
-
# Whether
|
303
|
+
# Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
|
271
304
|
attr_accessor :dispute_management
|
272
|
-
# Whether
|
305
|
+
# Whether sending refunds is enabled. This is `true` by default.
|
273
306
|
attr_accessor :refund_management
|
274
307
|
|
275
308
|
def initialize(
|
@@ -295,15 +328,45 @@ module Stripe
|
|
295
328
|
end
|
296
329
|
end
|
297
330
|
|
331
|
+
class PaymentDisputes < Stripe::RequestParams
|
332
|
+
class Features < Stripe::RequestParams
|
333
|
+
# Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
|
334
|
+
attr_accessor :destination_on_behalf_of_charge_management
|
335
|
+
# Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
|
336
|
+
attr_accessor :dispute_management
|
337
|
+
# Whether sending refunds is enabled. This is `true` by default.
|
338
|
+
attr_accessor :refund_management
|
339
|
+
|
340
|
+
def initialize(
|
341
|
+
destination_on_behalf_of_charge_management: nil,
|
342
|
+
dispute_management: nil,
|
343
|
+
refund_management: nil
|
344
|
+
)
|
345
|
+
@destination_on_behalf_of_charge_management = destination_on_behalf_of_charge_management
|
346
|
+
@dispute_management = dispute_management
|
347
|
+
@refund_management = refund_management
|
348
|
+
end
|
349
|
+
end
|
350
|
+
# Whether the embedded component is enabled.
|
351
|
+
attr_accessor :enabled
|
352
|
+
# The list of features enabled in the embedded component.
|
353
|
+
attr_accessor :features
|
354
|
+
|
355
|
+
def initialize(enabled: nil, features: nil)
|
356
|
+
@enabled = enabled
|
357
|
+
@features = features
|
358
|
+
end
|
359
|
+
end
|
360
|
+
|
298
361
|
class Payments < Stripe::RequestParams
|
299
362
|
class Features < Stripe::RequestParams
|
300
363
|
# Whether to allow capturing and cancelling payment intents. This is `true` by default.
|
301
364
|
attr_accessor :capture_payments
|
302
|
-
# Whether
|
365
|
+
# Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
|
303
366
|
attr_accessor :destination_on_behalf_of_charge_management
|
304
|
-
# Whether
|
367
|
+
# Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
|
305
368
|
attr_accessor :dispute_management
|
306
|
-
# Whether
|
369
|
+
# Whether sending refunds is enabled. This is `true` by default.
|
307
370
|
attr_accessor :refund_management
|
308
371
|
|
309
372
|
def initialize(
|
@@ -331,15 +394,15 @@ module Stripe
|
|
331
394
|
|
332
395
|
class Payouts < Stripe::RequestParams
|
333
396
|
class Features < Stripe::RequestParams
|
334
|
-
#
|
397
|
+
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
335
398
|
attr_accessor :disable_stripe_user_authentication
|
336
|
-
# Whether to allow payout schedule to be changed.
|
399
|
+
# Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
337
400
|
attr_accessor :edit_payout_schedule
|
338
|
-
# Whether
|
401
|
+
# Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
|
339
402
|
attr_accessor :external_account_collection
|
340
|
-
# Whether to allow creation of instant payouts.
|
403
|
+
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
341
404
|
attr_accessor :instant_payouts
|
342
|
-
# Whether to allow creation of standard payouts.
|
405
|
+
# Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
343
406
|
attr_accessor :standard_payouts
|
344
407
|
|
345
408
|
def initialize(
|
@@ -368,8 +431,7 @@ module Stripe
|
|
368
431
|
end
|
369
432
|
|
370
433
|
class PayoutsList < Stripe::RequestParams
|
371
|
-
class Features < Stripe::RequestParams
|
372
|
-
end
|
434
|
+
class Features < Stripe::RequestParams; end
|
373
435
|
# Whether the embedded component is enabled.
|
374
436
|
attr_accessor :enabled
|
375
437
|
# The list of features enabled in the embedded component.
|
@@ -382,8 +444,7 @@ module Stripe
|
|
382
444
|
end
|
383
445
|
|
384
446
|
class TaxRegistrations < Stripe::RequestParams
|
385
|
-
class Features < Stripe::RequestParams
|
386
|
-
end
|
447
|
+
class Features < Stripe::RequestParams; end
|
387
448
|
# Whether the embedded component is enabled.
|
388
449
|
attr_accessor :enabled
|
389
450
|
# The list of features enabled in the embedded component.
|
@@ -396,8 +457,7 @@ module Stripe
|
|
396
457
|
end
|
397
458
|
|
398
459
|
class TaxSettings < Stripe::RequestParams
|
399
|
-
class Features < Stripe::RequestParams
|
400
|
-
end
|
460
|
+
class Features < Stripe::RequestParams; end
|
401
461
|
# Whether the embedded component is enabled.
|
402
462
|
attr_accessor :enabled
|
403
463
|
# The list of features enabled in the embedded component.
|
@@ -408,41 +468,46 @@ module Stripe
|
|
408
468
|
@features = features
|
409
469
|
end
|
410
470
|
end
|
411
|
-
# Configuration for the account management embedded component.
|
471
|
+
# Configuration for the [account management](/connect/supported-embedded-components/account-management/) embedded component.
|
412
472
|
attr_accessor :account_management
|
413
|
-
# Configuration for the account onboarding embedded component.
|
473
|
+
# Configuration for the [account onboarding](/connect/supported-embedded-components/account-onboarding/) embedded component.
|
414
474
|
attr_accessor :account_onboarding
|
415
|
-
# Configuration for the balances embedded component.
|
475
|
+
# Configuration for the [balances](/connect/supported-embedded-components/balances/) embedded component.
|
416
476
|
attr_accessor :balances
|
417
|
-
# Configuration for the
|
477
|
+
# Configuration for the [disputes list](/connect/supported-embedded-components/disputes-list/) embedded component.
|
478
|
+
attr_accessor :disputes_list
|
479
|
+
# Configuration for the [documents](/connect/supported-embedded-components/documents/) embedded component.
|
418
480
|
attr_accessor :documents
|
419
|
-
# Configuration for the financial account embedded component.
|
481
|
+
# Configuration for the [financial account](/connect/supported-embedded-components/financial-account/) embedded component.
|
420
482
|
attr_accessor :financial_account
|
421
|
-
# Configuration for the financial account transactions embedded component.
|
483
|
+
# Configuration for the [financial account transactions](/connect/supported-embedded-components/financial-account-transactions/) embedded component.
|
422
484
|
attr_accessor :financial_account_transactions
|
423
|
-
# Configuration for the issuing card embedded component.
|
485
|
+
# Configuration for the [issuing card](/connect/supported-embedded-components/issuing-card/) embedded component.
|
424
486
|
attr_accessor :issuing_card
|
425
|
-
# Configuration for the issuing cards list embedded component.
|
487
|
+
# Configuration for the [issuing cards list](/connect/supported-embedded-components/issuing-cards-list/) embedded component.
|
426
488
|
attr_accessor :issuing_cards_list
|
427
|
-
# Configuration for the notification banner embedded component.
|
489
|
+
# Configuration for the [notification banner](/connect/supported-embedded-components/notification-banner/) embedded component.
|
428
490
|
attr_accessor :notification_banner
|
429
|
-
# Configuration for the payment details embedded component.
|
491
|
+
# Configuration for the [payment details](/connect/supported-embedded-components/payment-details/) embedded component.
|
430
492
|
attr_accessor :payment_details
|
431
|
-
# Configuration for the
|
493
|
+
# Configuration for the [payment disputes](/connect/supported-embedded-components/payment-disputes/) embedded component.
|
494
|
+
attr_accessor :payment_disputes
|
495
|
+
# Configuration for the [payments](/connect/supported-embedded-components/payments/) embedded component.
|
432
496
|
attr_accessor :payments
|
433
|
-
# Configuration for the payouts embedded component.
|
497
|
+
# Configuration for the [payouts](/connect/supported-embedded-components/payouts/) embedded component.
|
434
498
|
attr_accessor :payouts
|
435
|
-
# Configuration for the payouts list embedded component.
|
499
|
+
# Configuration for the [payouts list](/connect/supported-embedded-components/payouts-list/) embedded component.
|
436
500
|
attr_accessor :payouts_list
|
437
|
-
# Configuration for the tax registrations embedded component.
|
501
|
+
# Configuration for the [tax registrations](/connect/supported-embedded-components/tax-registrations/) embedded component.
|
438
502
|
attr_accessor :tax_registrations
|
439
|
-
# Configuration for the tax settings embedded component.
|
503
|
+
# Configuration for the [tax settings](/connect/supported-embedded-components/tax-settings/) embedded component.
|
440
504
|
attr_accessor :tax_settings
|
441
505
|
|
442
506
|
def initialize(
|
443
507
|
account_management: nil,
|
444
508
|
account_onboarding: nil,
|
445
509
|
balances: nil,
|
510
|
+
disputes_list: nil,
|
446
511
|
documents: nil,
|
447
512
|
financial_account: nil,
|
448
513
|
financial_account_transactions: nil,
|
@@ -450,6 +515,7 @@ module Stripe
|
|
450
515
|
issuing_cards_list: nil,
|
451
516
|
notification_banner: nil,
|
452
517
|
payment_details: nil,
|
518
|
+
payment_disputes: nil,
|
453
519
|
payments: nil,
|
454
520
|
payouts: nil,
|
455
521
|
payouts_list: nil,
|
@@ -459,6 +525,7 @@ module Stripe
|
|
459
525
|
@account_management = account_management
|
460
526
|
@account_onboarding = account_onboarding
|
461
527
|
@balances = balances
|
528
|
+
@disputes_list = disputes_list
|
462
529
|
@documents = documents
|
463
530
|
@financial_account = financial_account
|
464
531
|
@financial_account_transactions = financial_account_transactions
|
@@ -466,6 +533,7 @@ module Stripe
|
|
466
533
|
@issuing_cards_list = issuing_cards_list
|
467
534
|
@notification_banner = notification_banner
|
468
535
|
@payment_details = payment_details
|
536
|
+
@payment_disputes = payment_disputes
|
469
537
|
@payments = payments
|
470
538
|
@payouts = payouts
|
471
539
|
@payouts_list = payouts_list
|
@@ -3,8 +3,7 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
class ApplePayDomainService < StripeService
|
6
|
-
class DeleteParams < Stripe::RequestParams
|
7
|
-
end
|
6
|
+
class DeleteParams < Stripe::RequestParams; end
|
8
7
|
|
9
8
|
class RetrieveParams < Stripe::RequestParams
|
10
9
|
# Specifies which fields in the response should be expanded.
|
@@ -13,7 +13,7 @@ module Stripe
|
|
13
13
|
end
|
14
14
|
|
15
15
|
# Retrieves the current account balance, based on the authentication that was used to make the request.
|
16
|
-
# For a sample request, see [Accounting for negative balances](https://stripe.com/docs/connect/account-balances#accounting-for-negative-balances).
|
16
|
+
# For a sample request, see [Accounting for negative balances](https://docs.stripe.com/docs/connect/account-balances#accounting-for-negative-balances).
|
17
17
|
def retrieve(params = {}, opts = {})
|
18
18
|
request(method: :get, path: "/v1/balance", params: params, opts: opts, base_address: :api)
|
19
19
|
end
|
@@ -105,7 +105,7 @@ module Stripe
|
|
105
105
|
@quantity = quantity
|
106
106
|
end
|
107
107
|
end
|
108
|
-
# The coupon or promotion code to apply to this subscription update.
|
108
|
+
# The coupon or promotion code to apply to this subscription update.
|
109
109
|
attr_accessor :discounts
|
110
110
|
# The [subscription item](https://stripe.com/docs/api/subscription_items) to be updated through this flow. Currently, only up to one may be specified and subscriptions with multiple items are not updatable.
|
111
111
|
attr_accessor :items
|
@@ -6,7 +6,7 @@ module Stripe
|
|
6
6
|
attr_reader :configurations, :sessions
|
7
7
|
|
8
8
|
def initialize(requestor)
|
9
|
-
super
|
9
|
+
super
|
10
10
|
@configurations = Stripe::BillingPortal::ConfigurationService.new(@requestor)
|
11
11
|
@sessions = Stripe::BillingPortal::SessionService.new(@requestor)
|
12
12
|
end
|
@@ -6,7 +6,7 @@ module Stripe
|
|
6
6
|
attr_reader :alerts, :credit_balance_summary, :credit_balance_transactions, :credit_grants, :meters, :meter_events, :meter_event_adjustments
|
7
7
|
|
8
8
|
def initialize(requestor)
|
9
|
-
super
|
9
|
+
super
|
10
10
|
@alerts = Stripe::Billing::AlertService.new(@requestor)
|
11
11
|
@credit_balance_summary = Stripe::Billing::CreditBalanceSummaryService.new(@requestor)
|
12
12
|
@credit_balance_transactions = Stripe::Billing::CreditBalanceTransactionService
|
@@ -407,9 +407,9 @@ module Stripe
|
|
407
407
|
|
408
408
|
# Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.
|
409
409
|
#
|
410
|
-
# Uncaptured payments expire a set number of days after they are created ([7 by default](https://stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
|
410
|
+
# Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
|
411
411
|
#
|
412
|
-
# Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://stripe.com/docs/api/payment_intents/capture).
|
412
|
+
# Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture).
|
413
413
|
def capture(charge, params = {}, opts = {})
|
414
414
|
request(
|
415
415
|
method: :post,
|
@@ -420,7 +420,7 @@ module Stripe
|
|
420
420
|
)
|
421
421
|
end
|
422
422
|
|
423
|
-
# This method is no longer recommended—use the [Payment Intents API](https://stripe.com/docs/api/payment_intents)
|
423
|
+
# This method is no longer recommended—use the [Payment Intents API](https://docs.stripe.com/docs/api/payment_intents)
|
424
424
|
# to initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge
|
425
425
|
# object used to request payment.
|
426
426
|
def create(params = {}, opts = {})
|
@@ -443,7 +443,7 @@ module Stripe
|
|
443
443
|
)
|
444
444
|
end
|
445
445
|
|
446
|
-
# Search for charges you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
|
446
|
+
# Search for charges you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
|
447
447
|
# Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
|
448
448
|
# conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
|
449
449
|
# to an hour behind during outages. Search functionality is not available to merchants in India.
|