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
@@ -51,21 +51,11 @@ module Stripe
|
|
51
51
|
}
|
52
52
|
def initialize(account_number: nil, institution_number: nil, transit_number: nil); end
|
53
53
|
end
|
54
|
-
class Affirm < Stripe::RequestParams
|
55
|
-
|
56
|
-
end
|
57
|
-
class
|
58
|
-
|
59
|
-
end
|
60
|
-
class Alipay < Stripe::RequestParams
|
61
|
-
|
62
|
-
end
|
63
|
-
class Alma < Stripe::RequestParams
|
64
|
-
|
65
|
-
end
|
66
|
-
class AmazonPay < Stripe::RequestParams
|
67
|
-
|
68
|
-
end
|
54
|
+
class Affirm < Stripe::RequestParams; end
|
55
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
56
|
+
class Alipay < Stripe::RequestParams; end
|
57
|
+
class Alma < Stripe::RequestParams; end
|
58
|
+
class AmazonPay < Stripe::RequestParams; end
|
69
59
|
class AuBecsDebit < Stripe::RequestParams
|
70
60
|
# The account number for the bank account.
|
71
61
|
sig { returns(String) }
|
@@ -86,12 +76,8 @@ module Stripe
|
|
86
76
|
sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void }
|
87
77
|
def initialize(account_number: nil, sort_code: nil); end
|
88
78
|
end
|
89
|
-
class Bancontact < Stripe::RequestParams
|
90
|
-
|
91
|
-
end
|
92
|
-
class Billie < Stripe::RequestParams
|
93
|
-
|
94
|
-
end
|
79
|
+
class Bancontact < Stripe::RequestParams; end
|
80
|
+
class Billie < Stripe::RequestParams; end
|
95
81
|
class BillingDetails < Stripe::RequestParams
|
96
82
|
class Address < Stripe::RequestParams
|
97
83
|
# City, district, suburb, town, or village.
|
@@ -138,14 +124,15 @@ module Stripe
|
|
138
124
|
# Billing phone number (including extension).
|
139
125
|
sig { returns(T.nilable(T.nilable(String))) }
|
140
126
|
attr_accessor :phone
|
127
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
128
|
+
sig { returns(T.nilable(String)) }
|
129
|
+
attr_accessor :tax_id
|
141
130
|
sig {
|
142
|
-
params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethodService::CreateParams::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String))).void
|
131
|
+
params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethodService::CreateParams::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
|
143
132
|
}
|
144
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil); end
|
145
|
-
end
|
146
|
-
class Blik < Stripe::RequestParams
|
147
|
-
|
133
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
|
148
134
|
end
|
135
|
+
class Blik < Stripe::RequestParams; end
|
149
136
|
class Boleto < Stripe::RequestParams
|
150
137
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
151
138
|
sig { returns(String) }
|
@@ -191,12 +178,9 @@ module Stripe
|
|
191
178
|
token: nil
|
192
179
|
); end
|
193
180
|
end
|
194
|
-
class Cashapp < Stripe::RequestParams
|
195
|
-
|
196
|
-
end
|
197
|
-
class CustomerBalance < Stripe::RequestParams
|
198
|
-
|
199
|
-
end
|
181
|
+
class Cashapp < Stripe::RequestParams; end
|
182
|
+
class Crypto < Stripe::RequestParams; end
|
183
|
+
class CustomerBalance < Stripe::RequestParams; end
|
200
184
|
class Eps < Stripe::RequestParams
|
201
185
|
# The customer's bank.
|
202
186
|
sig { returns(T.nilable(String)) }
|
@@ -214,12 +198,8 @@ module Stripe
|
|
214
198
|
sig { params(account_holder_type: T.nilable(String), bank: String).void }
|
215
199
|
def initialize(account_holder_type: nil, bank: nil); end
|
216
200
|
end
|
217
|
-
class Giropay < Stripe::RequestParams
|
218
|
-
|
219
|
-
end
|
220
|
-
class Grabpay < Stripe::RequestParams
|
221
|
-
|
222
|
-
end
|
201
|
+
class Giropay < Stripe::RequestParams; end
|
202
|
+
class Grabpay < Stripe::RequestParams; end
|
223
203
|
class Ideal < Stripe::RequestParams
|
224
204
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
225
205
|
sig { returns(T.nilable(String)) }
|
@@ -227,12 +207,8 @@ module Stripe
|
|
227
207
|
sig { params(bank: T.nilable(String)).void }
|
228
208
|
def initialize(bank: nil); end
|
229
209
|
end
|
230
|
-
class InteracPresent < Stripe::RequestParams
|
231
|
-
|
232
|
-
end
|
233
|
-
class KakaoPay < Stripe::RequestParams
|
234
|
-
|
235
|
-
end
|
210
|
+
class InteracPresent < Stripe::RequestParams; end
|
211
|
+
class KakaoPay < Stripe::RequestParams; end
|
236
212
|
class Klarna < Stripe::RequestParams
|
237
213
|
class Dob < Stripe::RequestParams
|
238
214
|
# The day of birth, between 1 and 31.
|
@@ -255,21 +231,11 @@ module Stripe
|
|
255
231
|
}
|
256
232
|
def initialize(dob: nil); end
|
257
233
|
end
|
258
|
-
class Konbini < Stripe::RequestParams
|
259
|
-
|
260
|
-
end
|
261
|
-
class
|
262
|
-
|
263
|
-
end
|
264
|
-
class Link < Stripe::RequestParams
|
265
|
-
|
266
|
-
end
|
267
|
-
class Mobilepay < Stripe::RequestParams
|
268
|
-
|
269
|
-
end
|
270
|
-
class Multibanco < Stripe::RequestParams
|
271
|
-
|
272
|
-
end
|
234
|
+
class Konbini < Stripe::RequestParams; end
|
235
|
+
class KrCard < Stripe::RequestParams; end
|
236
|
+
class Link < Stripe::RequestParams; end
|
237
|
+
class Mobilepay < Stripe::RequestParams; end
|
238
|
+
class Multibanco < Stripe::RequestParams; end
|
273
239
|
class NaverPay < Stripe::RequestParams
|
274
240
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
275
241
|
sig { returns(T.nilable(String)) }
|
@@ -308,9 +274,7 @@ module Stripe
|
|
308
274
|
suffix: nil
|
309
275
|
); end
|
310
276
|
end
|
311
|
-
class Oxxo < Stripe::RequestParams
|
312
|
-
|
313
|
-
end
|
277
|
+
class Oxxo < Stripe::RequestParams; end
|
314
278
|
class P24 < Stripe::RequestParams
|
315
279
|
# The customer's bank.
|
316
280
|
sig { returns(T.nilable(String)) }
|
@@ -318,24 +282,12 @@ module Stripe
|
|
318
282
|
sig { params(bank: T.nilable(String)).void }
|
319
283
|
def initialize(bank: nil); end
|
320
284
|
end
|
321
|
-
class PayByBank < Stripe::RequestParams
|
322
|
-
|
323
|
-
end
|
324
|
-
class
|
325
|
-
|
326
|
-
end
|
327
|
-
class Paynow < Stripe::RequestParams
|
328
|
-
|
329
|
-
end
|
330
|
-
class Paypal < Stripe::RequestParams
|
331
|
-
|
332
|
-
end
|
333
|
-
class Pix < Stripe::RequestParams
|
334
|
-
|
335
|
-
end
|
336
|
-
class Promptpay < Stripe::RequestParams
|
337
|
-
|
338
|
-
end
|
285
|
+
class PayByBank < Stripe::RequestParams; end
|
286
|
+
class Payco < Stripe::RequestParams; end
|
287
|
+
class Paynow < Stripe::RequestParams; end
|
288
|
+
class Paypal < Stripe::RequestParams; end
|
289
|
+
class Pix < Stripe::RequestParams; end
|
290
|
+
class Promptpay < Stripe::RequestParams; end
|
339
291
|
class RadarOptions < Stripe::RequestParams
|
340
292
|
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
341
293
|
sig { returns(T.nilable(String)) }
|
@@ -343,15 +295,9 @@ module Stripe
|
|
343
295
|
sig { params(session: T.nilable(String)).void }
|
344
296
|
def initialize(session: nil); end
|
345
297
|
end
|
346
|
-
class RevolutPay < Stripe::RequestParams
|
347
|
-
|
348
|
-
end
|
349
|
-
class SamsungPay < Stripe::RequestParams
|
350
|
-
|
351
|
-
end
|
352
|
-
class Satispay < Stripe::RequestParams
|
353
|
-
|
354
|
-
end
|
298
|
+
class RevolutPay < Stripe::RequestParams; end
|
299
|
+
class SamsungPay < Stripe::RequestParams; end
|
300
|
+
class Satispay < Stripe::RequestParams; end
|
355
301
|
class SepaDebit < Stripe::RequestParams
|
356
302
|
# IBAN of the bank account.
|
357
303
|
sig { returns(String) }
|
@@ -366,12 +312,8 @@ module Stripe
|
|
366
312
|
sig { params(country: String).void }
|
367
313
|
def initialize(country: nil); end
|
368
314
|
end
|
369
|
-
class Swish < Stripe::RequestParams
|
370
|
-
|
371
|
-
end
|
372
|
-
class Twint < Stripe::RequestParams
|
373
|
-
|
374
|
-
end
|
315
|
+
class Swish < Stripe::RequestParams; end
|
316
|
+
class Twint < Stripe::RequestParams; end
|
375
317
|
class UsBankAccount < Stripe::RequestParams
|
376
318
|
# Account holder type: individual or company.
|
377
319
|
sig { returns(T.nilable(String)) }
|
@@ -399,12 +341,8 @@ module Stripe
|
|
399
341
|
routing_number: nil
|
400
342
|
); end
|
401
343
|
end
|
402
|
-
class WechatPay < Stripe::RequestParams
|
403
|
-
|
404
|
-
end
|
405
|
-
class Zip < Stripe::RequestParams
|
406
|
-
|
407
|
-
end
|
344
|
+
class WechatPay < Stripe::RequestParams; end
|
345
|
+
class Zip < Stripe::RequestParams; end
|
408
346
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
409
347
|
sig { returns(T.nilable(::Stripe::PaymentMethodService::CreateParams::AcssDebit)) }
|
410
348
|
attr_accessor :acss_debit
|
@@ -435,7 +373,7 @@ module Stripe
|
|
435
373
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
436
374
|
sig { returns(T.nilable(::Stripe::PaymentMethodService::CreateParams::Bancontact)) }
|
437
375
|
attr_accessor :bancontact
|
438
|
-
# If this is a `billie` PaymentMethod, this hash contains details about the
|
376
|
+
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
|
439
377
|
sig { returns(T.nilable(::Stripe::PaymentMethodService::CreateParams::Billie)) }
|
440
378
|
attr_accessor :billie
|
441
379
|
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
@@ -453,6 +391,9 @@ module Stripe
|
|
453
391
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
454
392
|
sig { returns(T.nilable(::Stripe::PaymentMethodService::CreateParams::Cashapp)) }
|
455
393
|
attr_accessor :cashapp
|
394
|
+
# If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
|
395
|
+
sig { returns(T.nilable(::Stripe::PaymentMethodService::CreateParams::Crypto)) }
|
396
|
+
attr_accessor :crypto
|
456
397
|
# The `Customer` to whom the original PaymentMethod is attached.
|
457
398
|
sig { returns(T.nilable(String)) }
|
458
399
|
attr_accessor :customer
|
@@ -540,13 +481,13 @@ module Stripe
|
|
540
481
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
541
482
|
sig { returns(T.nilable(::Stripe::PaymentMethodService::CreateParams::RadarOptions)) }
|
542
483
|
attr_accessor :radar_options
|
543
|
-
# If this is a `
|
484
|
+
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
544
485
|
sig { returns(T.nilable(::Stripe::PaymentMethodService::CreateParams::RevolutPay)) }
|
545
486
|
attr_accessor :revolut_pay
|
546
487
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
547
488
|
sig { returns(T.nilable(::Stripe::PaymentMethodService::CreateParams::SamsungPay)) }
|
548
489
|
attr_accessor :samsung_pay
|
549
|
-
# If this is a `satispay` PaymentMethod, this hash contains details about the
|
490
|
+
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
|
550
491
|
sig { returns(T.nilable(::Stripe::PaymentMethodService::CreateParams::Satispay)) }
|
551
492
|
attr_accessor :satispay
|
552
493
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
@@ -574,7 +515,7 @@ module Stripe
|
|
574
515
|
sig { returns(T.nilable(::Stripe::PaymentMethodService::CreateParams::Zip)) }
|
575
516
|
attr_accessor :zip
|
576
517
|
sig {
|
577
|
-
params(acss_debit: T.nilable(::Stripe::PaymentMethodService::CreateParams::AcssDebit), affirm: T.nilable(::Stripe::PaymentMethodService::CreateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethodService::CreateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethodService::CreateParams::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentMethodService::CreateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethodService::CreateParams::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentMethodService::CreateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethodService::CreateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethodService::CreateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethodService::CreateParams::Billie), billing_details: T.nilable(::Stripe::PaymentMethodService::CreateParams::BillingDetails), blik: T.nilable(::Stripe::PaymentMethodService::CreateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethodService::CreateParams::Boleto), card: T.nilable(::Stripe::PaymentMethodService::CreateParams::Card), cashapp: T.nilable(::Stripe::PaymentMethodService::CreateParams::Cashapp), customer: T.nilable(String), customer_balance: T.nilable(::Stripe::PaymentMethodService::CreateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethodService::CreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethodService::CreateParams::Fpx), giropay: T.nilable(::Stripe::PaymentMethodService::CreateParams::Giropay), grabpay: T.nilable(::Stripe::PaymentMethodService::CreateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethodService::CreateParams::Ideal), interac_present: T.nilable(::Stripe::PaymentMethodService::CreateParams::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentMethodService::CreateParams::KakaoPay), klarna: T.nilable(::Stripe::PaymentMethodService::CreateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethodService::CreateParams::Konbini), kr_card: T.nilable(::Stripe::PaymentMethodService::CreateParams::KrCard), link: T.nilable(::Stripe::PaymentMethodService::CreateParams::Link), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentMethodService::CreateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethodService::CreateParams::Multibanco), naver_pay: T.nilable(::Stripe::PaymentMethodService::CreateParams::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentMethodService::CreateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethodService::CreateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethodService::CreateParams::P24), pay_by_bank: T.nilable(::Stripe::PaymentMethodService::CreateParams::PayByBank), payco: T.nilable(::Stripe::PaymentMethodService::CreateParams::Payco), payment_method: T.nilable(String), paynow: T.nilable(::Stripe::PaymentMethodService::CreateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethodService::CreateParams::Paypal), pix: T.nilable(::Stripe::PaymentMethodService::CreateParams::Pix), promptpay: T.nilable(::Stripe::PaymentMethodService::CreateParams::Promptpay), radar_options: T.nilable(::Stripe::PaymentMethodService::CreateParams::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentMethodService::CreateParams::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentMethodService::CreateParams::SamsungPay), satispay: T.nilable(::Stripe::PaymentMethodService::CreateParams::Satispay), sepa_debit: T.nilable(::Stripe::PaymentMethodService::CreateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethodService::CreateParams::Sofort), swish: T.nilable(::Stripe::PaymentMethodService::CreateParams::Swish), twint: T.nilable(::Stripe::PaymentMethodService::CreateParams::Twint), type: T.nilable(String), us_bank_account: T.nilable(::Stripe::PaymentMethodService::CreateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethodService::CreateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethodService::CreateParams::Zip)).void
|
518
|
+
params(acss_debit: T.nilable(::Stripe::PaymentMethodService::CreateParams::AcssDebit), affirm: T.nilable(::Stripe::PaymentMethodService::CreateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethodService::CreateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethodService::CreateParams::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentMethodService::CreateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethodService::CreateParams::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentMethodService::CreateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethodService::CreateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethodService::CreateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethodService::CreateParams::Billie), billing_details: T.nilable(::Stripe::PaymentMethodService::CreateParams::BillingDetails), blik: T.nilable(::Stripe::PaymentMethodService::CreateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethodService::CreateParams::Boleto), card: T.nilable(::Stripe::PaymentMethodService::CreateParams::Card), cashapp: T.nilable(::Stripe::PaymentMethodService::CreateParams::Cashapp), crypto: T.nilable(::Stripe::PaymentMethodService::CreateParams::Crypto), customer: T.nilable(String), customer_balance: T.nilable(::Stripe::PaymentMethodService::CreateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethodService::CreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethodService::CreateParams::Fpx), giropay: T.nilable(::Stripe::PaymentMethodService::CreateParams::Giropay), grabpay: T.nilable(::Stripe::PaymentMethodService::CreateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethodService::CreateParams::Ideal), interac_present: T.nilable(::Stripe::PaymentMethodService::CreateParams::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentMethodService::CreateParams::KakaoPay), klarna: T.nilable(::Stripe::PaymentMethodService::CreateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethodService::CreateParams::Konbini), kr_card: T.nilable(::Stripe::PaymentMethodService::CreateParams::KrCard), link: T.nilable(::Stripe::PaymentMethodService::CreateParams::Link), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentMethodService::CreateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethodService::CreateParams::Multibanco), naver_pay: T.nilable(::Stripe::PaymentMethodService::CreateParams::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentMethodService::CreateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethodService::CreateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethodService::CreateParams::P24), pay_by_bank: T.nilable(::Stripe::PaymentMethodService::CreateParams::PayByBank), payco: T.nilable(::Stripe::PaymentMethodService::CreateParams::Payco), payment_method: T.nilable(String), paynow: T.nilable(::Stripe::PaymentMethodService::CreateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethodService::CreateParams::Paypal), pix: T.nilable(::Stripe::PaymentMethodService::CreateParams::Pix), promptpay: T.nilable(::Stripe::PaymentMethodService::CreateParams::Promptpay), radar_options: T.nilable(::Stripe::PaymentMethodService::CreateParams::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentMethodService::CreateParams::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentMethodService::CreateParams::SamsungPay), satispay: T.nilable(::Stripe::PaymentMethodService::CreateParams::Satispay), sepa_debit: T.nilable(::Stripe::PaymentMethodService::CreateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethodService::CreateParams::Sofort), swish: T.nilable(::Stripe::PaymentMethodService::CreateParams::Swish), twint: T.nilable(::Stripe::PaymentMethodService::CreateParams::Twint), type: T.nilable(String), us_bank_account: T.nilable(::Stripe::PaymentMethodService::CreateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethodService::CreateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethodService::CreateParams::Zip)).void
|
578
519
|
}
|
579
520
|
def initialize(
|
580
521
|
acss_debit: nil,
|
@@ -593,6 +534,7 @@ module Stripe
|
|
593
534
|
boleto: nil,
|
594
535
|
card: nil,
|
595
536
|
cashapp: nil,
|
537
|
+
crypto: nil,
|
596
538
|
customer: nil,
|
597
539
|
customer_balance: nil,
|
598
540
|
eps: nil,
|
@@ -689,10 +631,13 @@ module Stripe
|
|
689
631
|
# Billing phone number (including extension).
|
690
632
|
sig { returns(T.nilable(T.nilable(String))) }
|
691
633
|
attr_accessor :phone
|
634
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
635
|
+
sig { returns(T.nilable(String)) }
|
636
|
+
attr_accessor :tax_id
|
692
637
|
sig {
|
693
|
-
params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethodService::UpdateParams::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String))).void
|
638
|
+
params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethodService::UpdateParams::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
|
694
639
|
}
|
695
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil); end
|
640
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
|
696
641
|
end
|
697
642
|
class Card < Stripe::RequestParams
|
698
643
|
class Networks < Stripe::RequestParams
|
@@ -716,12 +661,8 @@ module Stripe
|
|
716
661
|
}
|
717
662
|
def initialize(exp_month: nil, exp_year: nil, networks: nil); end
|
718
663
|
end
|
719
|
-
class Link < Stripe::RequestParams
|
720
|
-
|
721
|
-
end
|
722
|
-
class PayByBank < Stripe::RequestParams
|
723
|
-
|
724
|
-
end
|
664
|
+
class Link < Stripe::RequestParams; end
|
665
|
+
class PayByBank < Stripe::RequestParams; end
|
725
666
|
class UsBankAccount < Stripe::RequestParams
|
726
667
|
# Bank account holder type.
|
727
668
|
sig { returns(T.nilable(String)) }
|
@@ -789,25 +730,25 @@ module Stripe
|
|
789
730
|
end
|
790
731
|
# Attaches a PaymentMethod object to a Customer.
|
791
732
|
#
|
792
|
-
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://stripe.com/docs/api/setup_intents)
|
793
|
-
# or a PaymentIntent with [setup_future_usage](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
733
|
+
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://docs.stripe.com/docs/api/setup_intents)
|
734
|
+
# or a PaymentIntent with [setup_future_usage](https://docs.stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
794
735
|
# These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach
|
795
736
|
# endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for
|
796
737
|
# future use, which makes later declines and payment friction more likely.
|
797
|
-
# See [Optimizing cards for future payments](https://stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
738
|
+
# See [Optimizing cards for future payments](https://docs.stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
798
739
|
# future payments.
|
799
740
|
#
|
800
741
|
# To use this PaymentMethod as the default for invoice or subscription payments,
|
801
|
-
# set [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
742
|
+
# set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
802
743
|
# on the Customer to the PaymentMethod's ID.
|
803
744
|
sig {
|
804
745
|
params(payment_method: String, params: T.any(::Stripe::PaymentMethodService::AttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
|
805
746
|
}
|
806
747
|
def attach(payment_method, params = {}, opts = {}); end
|
807
748
|
|
808
|
-
# Creates a PaymentMethod object. Read the [Stripe.js reference](https://stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.
|
749
|
+
# Creates a PaymentMethod object. Read the [Stripe.js reference](https://docs.stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.
|
809
750
|
#
|
810
|
-
# Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
|
751
|
+
# Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://docs.stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
|
811
752
|
sig {
|
812
753
|
params(params: T.any(::Stripe::PaymentMethodService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
|
813
754
|
}
|
@@ -819,13 +760,13 @@ module Stripe
|
|
819
760
|
}
|
820
761
|
def detach(payment_method, params = {}, opts = {}); end
|
821
762
|
|
822
|
-
# Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer_list) API instead.
|
763
|
+
# Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer_list) API instead.
|
823
764
|
sig {
|
824
765
|
params(params: T.any(::Stripe::PaymentMethodService::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
|
825
766
|
}
|
826
767
|
def list(params = {}, opts = {}); end
|
827
768
|
|
828
|
-
# Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use [Retrieve a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer)
|
769
|
+
# Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use [Retrieve a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer)
|
829
770
|
sig {
|
830
771
|
params(payment_method: String, params: T.any(::Stripe::PaymentMethodService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
|
831
772
|
}
|
@@ -166,11 +166,11 @@ module Stripe
|
|
166
166
|
}
|
167
167
|
def cancel(payout, params = {}, opts = {}); end
|
168
168
|
|
169
|
-
# To send funds to your own bank account, create a new payout object. Your [Stripe balance](https://stripe.com/
|
169
|
+
# To send funds to your own bank account, create a new payout object. Your [Stripe balance](https://docs.stripe.com/api#balance) must cover the payout amount. If it doesn't, you receive an “Insufficient Funds” error.
|
170
170
|
#
|
171
171
|
# If your API key is in test mode, money won't actually be sent, though every other action occurs as if you're in live mode.
|
172
172
|
#
|
173
|
-
# If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://stripe.com/
|
173
|
+
# If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api#balance_object) details available and pending amounts by source type.
|
174
174
|
sig {
|
175
175
|
params(params: T.any(::Stripe::PayoutService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout)
|
176
176
|
}
|
@@ -4,9 +4,7 @@
|
|
4
4
|
# typed: true
|
5
5
|
module Stripe
|
6
6
|
class PlanService < StripeService
|
7
|
-
class DeleteParams < Stripe::RequestParams
|
8
|
-
|
9
|
-
end
|
7
|
+
class DeleteParams < Stripe::RequestParams; end
|
10
8
|
class RetrieveParams < Stripe::RequestParams
|
11
9
|
# Specifies which fields in the response should be expanded.
|
12
10
|
sig { returns(T.nilable(T::Array[String])) }
|
@@ -251,7 +249,7 @@ module Stripe
|
|
251
249
|
usage_type: nil
|
252
250
|
); end
|
253
251
|
end
|
254
|
-
# You can now model subscriptions more flexibly using the [Prices API](https://stripe.com/
|
252
|
+
# You can now model subscriptions more flexibly using the [Prices API](https://docs.stripe.com/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration.
|
255
253
|
sig {
|
256
254
|
params(params: T.any(::Stripe::PlanService::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan)
|
257
255
|
}
|
@@ -516,7 +516,7 @@ module Stripe
|
|
516
516
|
}
|
517
517
|
def create(params = {}, opts = {}); end
|
518
518
|
|
519
|
-
# Returns a list of your active prices, excluding [inline prices](https://stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false.
|
519
|
+
# Returns a list of your active prices, excluding [inline prices](https://docs.stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false.
|
520
520
|
sig {
|
521
521
|
params(params: T.any(::Stripe::PriceService::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
|
522
522
|
}
|
@@ -528,7 +528,7 @@ module Stripe
|
|
528
528
|
}
|
529
529
|
def retrieve(price, params = {}, opts = {}); end
|
530
530
|
|
531
|
-
# Search for prices you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
|
531
|
+
# Search for prices you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
|
532
532
|
# Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
|
533
533
|
# conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
|
534
534
|
# to an hour behind during outages. Search functionality is not available to merchants in India.
|
@@ -4,9 +4,7 @@
|
|
4
4
|
# typed: true
|
5
5
|
module Stripe
|
6
6
|
class ProductFeatureService < StripeService
|
7
|
-
class DeleteParams < Stripe::RequestParams
|
8
|
-
|
9
|
-
end
|
7
|
+
class DeleteParams < Stripe::RequestParams; end
|
10
8
|
class RetrieveParams < Stripe::RequestParams
|
11
9
|
# Specifies which fields in the response should be expanded.
|
12
10
|
sig { returns(T.nilable(T::Array[String])) }
|
@@ -5,9 +5,7 @@
|
|
5
5
|
module Stripe
|
6
6
|
class ProductService < StripeService
|
7
7
|
attr_reader :features
|
8
|
-
class DeleteParams < Stripe::RequestParams
|
9
|
-
|
10
|
-
end
|
8
|
+
class DeleteParams < Stripe::RequestParams; end
|
11
9
|
class RetrieveParams < Stripe::RequestParams
|
12
10
|
# Specifies which fields in the response should be expanded.
|
13
11
|
sig { returns(T.nilable(T::Array[String])) }
|
@@ -461,7 +459,7 @@ module Stripe
|
|
461
459
|
}
|
462
460
|
def retrieve(id, params = {}, opts = {}); end
|
463
461
|
|
464
|
-
# Search for products you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
|
462
|
+
# Search for products you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
|
465
463
|
# Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
|
466
464
|
# conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
|
467
465
|
# to an hour behind during outages. Search functionality is not available to merchants in India.
|
@@ -199,7 +199,7 @@ module Stripe
|
|
199
199
|
}
|
200
200
|
def list(params = {}, opts = {}); end
|
201
201
|
|
202
|
-
# Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facing code use [list](https://stripe.com/docs/api/promotion_codes/list) with the desired code.
|
202
|
+
# Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facing code use [list](https://docs.stripe.com/docs/api/promotion_codes/list) with the desired code.
|
203
203
|
sig {
|
204
204
|
params(promotion_code: String, params: T.any(::Stripe::PromotionCodeService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PromotionCode)
|
205
205
|
}
|
@@ -199,10 +199,22 @@ module Stripe
|
|
199
199
|
); end
|
200
200
|
end
|
201
201
|
class SubscriptionData < Stripe::RequestParams
|
202
|
+
class BillingMode < Stripe::RequestParams
|
203
|
+
# Attribute for param field type
|
204
|
+
sig { returns(String) }
|
205
|
+
attr_accessor :type
|
206
|
+
sig { params(type: String).void }
|
207
|
+
def initialize(type: nil); end
|
208
|
+
end
|
209
|
+
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
210
|
+
sig {
|
211
|
+
returns(T.nilable(::Stripe::QuoteService::CreateParams::SubscriptionData::BillingMode))
|
212
|
+
}
|
213
|
+
attr_accessor :billing_mode
|
202
214
|
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
203
215
|
sig { returns(T.nilable(String)) }
|
204
216
|
attr_accessor :description
|
205
|
-
# When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted.
|
217
|
+
# When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. The `effective_date` is ignored if it is in the past when the quote is accepted.
|
206
218
|
sig { returns(T.nilable(T.nilable(T.any(String, T.any(String, Integer))))) }
|
207
219
|
attr_accessor :effective_date
|
208
220
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
|
@@ -212,9 +224,10 @@ module Stripe
|
|
212
224
|
sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
|
213
225
|
attr_accessor :trial_period_days
|
214
226
|
sig {
|
215
|
-
params(description: T.nilable(String), effective_date: T.nilable(T.nilable(T.any(String, T.any(String, Integer)))), metadata: T.nilable(T::Hash[String, String]), trial_period_days: T.nilable(T.nilable(T.any(String, Integer)))).void
|
227
|
+
params(billing_mode: T.nilable(::Stripe::QuoteService::CreateParams::SubscriptionData::BillingMode), description: T.nilable(String), effective_date: T.nilable(T.nilable(T.any(String, T.any(String, Integer)))), metadata: T.nilable(T::Hash[String, String]), trial_period_days: T.nilable(T.nilable(T.any(String, Integer)))).void
|
216
228
|
}
|
217
229
|
def initialize(
|
230
|
+
billing_mode: nil,
|
218
231
|
description: nil,
|
219
232
|
effective_date: nil,
|
220
233
|
metadata: nil,
|
@@ -488,7 +501,7 @@ module Stripe
|
|
488
501
|
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
489
502
|
sig { returns(T.nilable(T.nilable(String))) }
|
490
503
|
attr_accessor :description
|
491
|
-
# When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted.
|
504
|
+
# When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. The `effective_date` is ignored if it is in the past when the quote is accepted.
|
492
505
|
sig { returns(T.nilable(T.nilable(T.any(String, T.any(String, Integer))))) }
|
493
506
|
attr_accessor :effective_date
|
494
507
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
|
@@ -75,7 +75,7 @@ module Stripe
|
|
75
75
|
|
76
76
|
# Retrieves the details of an early fraud warning that has previously been created.
|
77
77
|
#
|
78
|
-
# Please refer to the [early fraud warning](https://stripe.com/
|
78
|
+
# Please refer to the [early fraud warning](https://docs.stripe.com/api#early_fraud_warning_object) object reference for more details.
|
79
79
|
sig {
|
80
80
|
params(early_fraud_warning: String, params: T.any(::Stripe::Radar::EarlyFraudWarningService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::EarlyFraudWarning)
|
81
81
|
}
|
@@ -5,9 +5,7 @@
|
|
5
5
|
module Stripe
|
6
6
|
module Radar
|
7
7
|
class ValueListItemService < StripeService
|
8
|
-
class DeleteParams < Stripe::RequestParams
|
9
|
-
|
10
|
-
end
|
8
|
+
class DeleteParams < Stripe::RequestParams; end
|
11
9
|
class RetrieveParams < Stripe::RequestParams
|
12
10
|
# Specifies which fields in the response should be expanded.
|
13
11
|
sig { returns(T.nilable(T::Array[String])) }
|
@@ -5,9 +5,7 @@
|
|
5
5
|
module Stripe
|
6
6
|
module Radar
|
7
7
|
class ValueListService < StripeService
|
8
|
-
class DeleteParams < Stripe::RequestParams
|
9
|
-
|
10
|
-
end
|
8
|
+
class DeleteParams < Stripe::RequestParams; end
|
11
9
|
class RetrieveParams < Stripe::RequestParams
|
12
10
|
# Specifies which fields in the response should be expanded.
|
13
11
|
sig { returns(T.nilable(T::Array[String])) }
|