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
@@ -19,7 +19,7 @@ module Stripe
|
|
19
19
|
#
|
20
20
|
# You can't store or use tokens more than once. To store card or bank account
|
21
21
|
# information for later use, create [Customer](https://stripe.com/docs/api#customers)
|
22
|
-
# objects or [External accounts](https://stripe.com/api#external_accounts).
|
22
|
+
# objects or [External accounts](https://docs.stripe.com/api#external_accounts).
|
23
23
|
# [Radar](https://stripe.com/docs/radar), our integrated solution for automatic fraud protection,
|
24
24
|
# performs best with integrations that use client-side tokenization.
|
25
25
|
class Token < APIResource
|
@@ -164,6 +164,21 @@ module Stripe
|
|
164
164
|
end
|
165
165
|
end
|
166
166
|
|
167
|
+
class RegistrationDate < Stripe::RequestParams
|
168
|
+
# The day of registration, between 1 and 31.
|
169
|
+
attr_accessor :day
|
170
|
+
# The month of registration, between 1 and 12.
|
171
|
+
attr_accessor :month
|
172
|
+
# The four-digit year of registration.
|
173
|
+
attr_accessor :year
|
174
|
+
|
175
|
+
def initialize(day: nil, month: nil, year: nil)
|
176
|
+
@day = day
|
177
|
+
@month = month
|
178
|
+
@year = year
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
167
182
|
class Verification < Stripe::RequestParams
|
168
183
|
class Document < Stripe::RequestParams
|
169
184
|
# The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
@@ -215,6 +230,8 @@ module Stripe
|
|
215
230
|
attr_accessor :ownership_exemption_reason
|
216
231
|
# The company's phone number (used for verification).
|
217
232
|
attr_accessor :phone
|
233
|
+
# When the business was incorporated or registered.
|
234
|
+
attr_accessor :registration_date
|
218
235
|
# The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
|
219
236
|
attr_accessor :registration_number
|
220
237
|
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
|
@@ -245,6 +262,7 @@ module Stripe
|
|
245
262
|
ownership_declaration_shown_and_signed: nil,
|
246
263
|
ownership_exemption_reason: nil,
|
247
264
|
phone: nil,
|
265
|
+
registration_date: nil,
|
248
266
|
registration_number: nil,
|
249
267
|
structure: nil,
|
250
268
|
tax_id: nil,
|
@@ -268,6 +286,7 @@ module Stripe
|
|
268
286
|
@ownership_declaration_shown_and_signed = ownership_declaration_shown_and_signed
|
269
287
|
@ownership_exemption_reason = ownership_exemption_reason
|
270
288
|
@phone = phone
|
289
|
+
@registration_date = registration_date
|
271
290
|
@registration_number = registration_number
|
272
291
|
@structure = structure
|
273
292
|
@tax_id = tax_id
|
@@ -971,6 +990,44 @@ module Stripe
|
|
971
990
|
end
|
972
991
|
end
|
973
992
|
|
993
|
+
class UsCfpbData < Stripe::RequestParams
|
994
|
+
class EthnicityDetails < Stripe::RequestParams
|
995
|
+
# The persons ethnicity
|
996
|
+
attr_accessor :ethnicity
|
997
|
+
# Please specify your origin, when other is selected.
|
998
|
+
attr_accessor :ethnicity_other
|
999
|
+
|
1000
|
+
def initialize(ethnicity: nil, ethnicity_other: nil)
|
1001
|
+
@ethnicity = ethnicity
|
1002
|
+
@ethnicity_other = ethnicity_other
|
1003
|
+
end
|
1004
|
+
end
|
1005
|
+
|
1006
|
+
class RaceDetails < Stripe::RequestParams
|
1007
|
+
# The persons race.
|
1008
|
+
attr_accessor :race
|
1009
|
+
# Please specify your race, when other is selected.
|
1010
|
+
attr_accessor :race_other
|
1011
|
+
|
1012
|
+
def initialize(race: nil, race_other: nil)
|
1013
|
+
@race = race
|
1014
|
+
@race_other = race_other
|
1015
|
+
end
|
1016
|
+
end
|
1017
|
+
# The persons ethnicity details
|
1018
|
+
attr_accessor :ethnicity_details
|
1019
|
+
# The persons race details
|
1020
|
+
attr_accessor :race_details
|
1021
|
+
# The persons self-identified gender
|
1022
|
+
attr_accessor :self_identified_gender
|
1023
|
+
|
1024
|
+
def initialize(ethnicity_details: nil, race_details: nil, self_identified_gender: nil)
|
1025
|
+
@ethnicity_details = ethnicity_details
|
1026
|
+
@race_details = race_details
|
1027
|
+
@self_identified_gender = self_identified_gender
|
1028
|
+
end
|
1029
|
+
end
|
1030
|
+
|
974
1031
|
class Verification < Stripe::RequestParams
|
975
1032
|
class AdditionalDocument < Stripe::RequestParams
|
976
1033
|
# The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
@@ -1055,6 +1112,8 @@ module Stripe
|
|
1055
1112
|
attr_accessor :relationship
|
1056
1113
|
# The last four digits of the person's Social Security number (U.S. only).
|
1057
1114
|
attr_accessor :ssn_last_4
|
1115
|
+
# Demographic data related to the person.
|
1116
|
+
attr_accessor :us_cfpb_data
|
1058
1117
|
# The person's verification status.
|
1059
1118
|
attr_accessor :verification
|
1060
1119
|
|
@@ -1084,6 +1143,7 @@ module Stripe
|
|
1084
1143
|
registered_address: nil,
|
1085
1144
|
relationship: nil,
|
1086
1145
|
ssn_last_4: nil,
|
1146
|
+
us_cfpb_data: nil,
|
1087
1147
|
verification: nil
|
1088
1148
|
)
|
1089
1149
|
@additional_tos_acceptances = additional_tos_acceptances
|
@@ -1111,6 +1171,7 @@ module Stripe
|
|
1111
1171
|
@registered_address = registered_address
|
1112
1172
|
@relationship = relationship
|
1113
1173
|
@ssn_last_4 = ssn_last_4
|
1174
|
+
@us_cfpb_data = us_cfpb_data
|
1114
1175
|
@verification = verification
|
1115
1176
|
end
|
1116
1177
|
end
|
@@ -1190,7 +1251,7 @@ module Stripe
|
|
1190
1251
|
attr_reader :used
|
1191
1252
|
|
1192
1253
|
# Creates a single-use token that represents a bank account's details.
|
1193
|
-
# You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/
|
1254
|
+
# You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://docs.stripe.com/api#accounts) where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts.
|
1194
1255
|
def self.create(params = {}, opts = {})
|
1195
1256
|
request_stripe_object(method: :post, path: "/v1/tokens", params: params, opts: opts)
|
1196
1257
|
end
|
@@ -169,7 +169,7 @@ module Stripe
|
|
169
169
|
# A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
|
170
170
|
attr_reader :transfer_group
|
171
171
|
|
172
|
-
# To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://stripe.com/
|
172
|
+
# To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://docs.stripe.com/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error.
|
173
173
|
def self.create(params = {}, opts = {})
|
174
174
|
request_stripe_object(method: :post, path: "/v1/transfers", params: params, opts: opts)
|
175
175
|
end
|
@@ -89,19 +89,23 @@ module Stripe
|
|
89
89
|
attr_accessor :limit
|
90
90
|
# An object ID cursor for use in pagination.
|
91
91
|
attr_accessor :starting_after
|
92
|
+
# Only return FinancialAccounts that have the given status: `open` or `closed`
|
93
|
+
attr_accessor :status
|
92
94
|
|
93
95
|
def initialize(
|
94
96
|
created: nil,
|
95
97
|
ending_before: nil,
|
96
98
|
expand: nil,
|
97
99
|
limit: nil,
|
98
|
-
starting_after: nil
|
100
|
+
starting_after: nil,
|
101
|
+
status: nil
|
99
102
|
)
|
100
103
|
@created = created
|
101
104
|
@ending_before = ending_before
|
102
105
|
@expand = expand
|
103
106
|
@limit = limit
|
104
107
|
@starting_after = starting_after
|
108
|
+
@status = status
|
105
109
|
end
|
106
110
|
end
|
107
111
|
|
@@ -17,8 +17,6 @@ module Stripe
|
|
17
17
|
attr_reader :event_name
|
18
18
|
# A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We’ll enforce uniqueness within a rolling 24 hour period.
|
19
19
|
attr_reader :identifier
|
20
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
21
|
-
attr_reader :livemode
|
22
20
|
# String representing the object's type. Objects of the same type share the same value of the object field.
|
23
21
|
attr_reader :object
|
24
22
|
# The payload of the event. This must contain the fields corresponding to a meter’s
|
@@ -28,6 +26,8 @@ module Stripe
|
|
28
26
|
# The time of the event. Must be within the past 35 calendar days or up to
|
29
27
|
# 5 minutes in the future. Defaults to current timestamp if not specified.
|
30
28
|
attr_reader :timestamp
|
29
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
30
|
+
attr_reader :livemode
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
@@ -22,14 +22,14 @@ module Stripe
|
|
22
22
|
attr_reader :event_name
|
23
23
|
# The unique id of this meter event adjustment.
|
24
24
|
attr_reader :id
|
25
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
26
|
-
attr_reader :livemode
|
27
25
|
# String representing the object's type. Objects of the same type share the same value of the object field.
|
28
26
|
attr_reader :object
|
29
27
|
# Open Enum. The meter event adjustment’s status.
|
30
28
|
attr_reader :status
|
31
29
|
# Open Enum. Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
|
32
30
|
attr_reader :type
|
31
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
32
|
+
attr_reader :livemode
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -19,10 +19,10 @@ module Stripe
|
|
19
19
|
attr_reader :expires_at
|
20
20
|
# The unique id of this auth session.
|
21
21
|
attr_reader :id
|
22
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
23
|
-
attr_reader :livemode
|
24
22
|
# String representing the object's type. Objects of the same type share the same value of the object field.
|
25
23
|
attr_reader :object
|
24
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
25
|
+
attr_reader :livemode
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -28,14 +28,14 @@ module Stripe
|
|
28
28
|
attr_reader :created
|
29
29
|
# Unique identifier for the event.
|
30
30
|
attr_reader :id
|
31
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
32
|
-
attr_reader :livemode
|
33
31
|
# String representing the object's type. Objects of the same type share the same value of the object field.
|
34
32
|
attr_reader :object
|
35
33
|
# Reason for the event.
|
36
34
|
attr_reader :reason
|
37
35
|
# The type of the event.
|
38
36
|
attr_reader :type
|
37
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
38
|
+
attr_reader :livemode
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -46,8 +46,6 @@ module Stripe
|
|
46
46
|
attr_reader :events_from
|
47
47
|
# Unique identifier for the object.
|
48
48
|
attr_reader :id
|
49
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
50
|
-
attr_reader :livemode
|
51
49
|
# Metadata.
|
52
50
|
attr_reader :metadata
|
53
51
|
# Event destination name.
|
@@ -64,6 +62,8 @@ module Stripe
|
|
64
62
|
attr_reader :type
|
65
63
|
# Time at which the object was last updated.
|
66
64
|
attr_reader :updated
|
65
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
66
|
+
attr_reader :livemode
|
67
67
|
# Amazon EventBridge configuration.
|
68
68
|
attr_reader :amazon_eventbridge
|
69
69
|
# Webhook endpoint configuration.
|
@@ -20,8 +20,7 @@ module Stripe
|
|
20
20
|
"webhook_endpoint"
|
21
21
|
end
|
22
22
|
|
23
|
-
class DeleteParams < Stripe::RequestParams
|
24
|
-
end
|
23
|
+
class DeleteParams < Stripe::RequestParams; end
|
25
24
|
|
26
25
|
class UpdateParams < Stripe::RequestParams
|
27
26
|
# An optional description of what the webhook is used for.
|
data/lib/stripe/resources.rb
CHANGED
@@ -145,3 +145,4 @@ require "stripe/resources/v2/event_destination"
|
|
145
145
|
require "stripe/resources/webhook_endpoint"
|
146
146
|
require "stripe/events/v1_billing_meter_error_report_triggered_event"
|
147
147
|
require "stripe/events/v1_billing_meter_no_meter_found_event"
|
148
|
+
require "stripe/events/v2_core_event_destination_ping_event"
|
@@ -3,8 +3,7 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
class AccountExternalAccountService < 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.
|
@@ -137,7 +136,7 @@ module Stripe
|
|
137
136
|
attr_accessor :country
|
138
137
|
# The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
|
139
138
|
attr_accessor :currency
|
140
|
-
# The routing number, sort code, or other country-
|
139
|
+
# The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required.
|
141
140
|
attr_accessor :routing_number
|
142
141
|
|
143
142
|
def initialize(
|
@@ -301,7 +300,7 @@ module Stripe
|
|
301
300
|
# a connected account and optionally sets it as the default for its currency. Other bank account
|
302
301
|
# details are not editable by design.
|
303
302
|
#
|
304
|
-
# You can only update bank accounts when [account.controller.requirement_collection is application, which includes <a href="/connect/custom-accounts">Custom accounts](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection).
|
303
|
+
# You can only update bank accounts when [account.controller.requirement_collection is application, which includes <a href="/connect/custom-accounts">Custom accounts](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection).
|
305
304
|
#
|
306
305
|
# You can re-enable a disabled bank account by performing an update call without providing any
|
307
306
|
# arguments or changes.
|
@@ -14,7 +14,7 @@ module Stripe
|
|
14
14
|
|
15
15
|
# Creates a login link for a connected account to access the Express Dashboard.
|
16
16
|
#
|
17
|
-
# You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform.
|
17
|
+
# You can only create login links for accounts that use the [Express Dashboard](https://docs.stripe.com/connect/express-dashboard) and are connected to your platform.
|
18
18
|
def create(account, params = {}, opts = {})
|
19
19
|
request(
|
20
20
|
method: :post,
|
@@ -3,8 +3,7 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
class AccountPersonService < 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.
|
@@ -266,6 +265,44 @@ module Stripe
|
|
266
265
|
end
|
267
266
|
end
|
268
267
|
|
268
|
+
class UsCfpbData < Stripe::RequestParams
|
269
|
+
class EthnicityDetails < Stripe::RequestParams
|
270
|
+
# The persons ethnicity
|
271
|
+
attr_accessor :ethnicity
|
272
|
+
# Please specify your origin, when other is selected.
|
273
|
+
attr_accessor :ethnicity_other
|
274
|
+
|
275
|
+
def initialize(ethnicity: nil, ethnicity_other: nil)
|
276
|
+
@ethnicity = ethnicity
|
277
|
+
@ethnicity_other = ethnicity_other
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
class RaceDetails < Stripe::RequestParams
|
282
|
+
# The persons race.
|
283
|
+
attr_accessor :race
|
284
|
+
# Please specify your race, when other is selected.
|
285
|
+
attr_accessor :race_other
|
286
|
+
|
287
|
+
def initialize(race: nil, race_other: nil)
|
288
|
+
@race = race
|
289
|
+
@race_other = race_other
|
290
|
+
end
|
291
|
+
end
|
292
|
+
# The persons ethnicity details
|
293
|
+
attr_accessor :ethnicity_details
|
294
|
+
# The persons race details
|
295
|
+
attr_accessor :race_details
|
296
|
+
# The persons self-identified gender
|
297
|
+
attr_accessor :self_identified_gender
|
298
|
+
|
299
|
+
def initialize(ethnicity_details: nil, race_details: nil, self_identified_gender: nil)
|
300
|
+
@ethnicity_details = ethnicity_details
|
301
|
+
@race_details = race_details
|
302
|
+
@self_identified_gender = self_identified_gender
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
269
306
|
class Verification < Stripe::RequestParams
|
270
307
|
class AdditionalDocument < Stripe::RequestParams
|
271
308
|
# The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
@@ -354,6 +391,8 @@ module Stripe
|
|
354
391
|
attr_accessor :relationship
|
355
392
|
# The last four digits of the person's Social Security number (U.S. only).
|
356
393
|
attr_accessor :ssn_last_4
|
394
|
+
# Demographic data related to the person.
|
395
|
+
attr_accessor :us_cfpb_data
|
357
396
|
# The person's verification status.
|
358
397
|
attr_accessor :verification
|
359
398
|
|
@@ -385,6 +424,7 @@ module Stripe
|
|
385
424
|
registered_address: nil,
|
386
425
|
relationship: nil,
|
387
426
|
ssn_last_4: nil,
|
427
|
+
us_cfpb_data: nil,
|
388
428
|
verification: nil
|
389
429
|
)
|
390
430
|
@additional_tos_acceptances = additional_tos_acceptances
|
@@ -414,6 +454,7 @@ module Stripe
|
|
414
454
|
@registered_address = registered_address
|
415
455
|
@relationship = relationship
|
416
456
|
@ssn_last_4 = ssn_last_4
|
457
|
+
@us_cfpb_data = us_cfpb_data
|
417
458
|
@verification = verification
|
418
459
|
end
|
419
460
|
end
|
@@ -726,6 +767,44 @@ module Stripe
|
|
726
767
|
end
|
727
768
|
end
|
728
769
|
|
770
|
+
class UsCfpbData < Stripe::RequestParams
|
771
|
+
class EthnicityDetails < Stripe::RequestParams
|
772
|
+
# The persons ethnicity
|
773
|
+
attr_accessor :ethnicity
|
774
|
+
# Please specify your origin, when other is selected.
|
775
|
+
attr_accessor :ethnicity_other
|
776
|
+
|
777
|
+
def initialize(ethnicity: nil, ethnicity_other: nil)
|
778
|
+
@ethnicity = ethnicity
|
779
|
+
@ethnicity_other = ethnicity_other
|
780
|
+
end
|
781
|
+
end
|
782
|
+
|
783
|
+
class RaceDetails < Stripe::RequestParams
|
784
|
+
# The persons race.
|
785
|
+
attr_accessor :race
|
786
|
+
# Please specify your race, when other is selected.
|
787
|
+
attr_accessor :race_other
|
788
|
+
|
789
|
+
def initialize(race: nil, race_other: nil)
|
790
|
+
@race = race
|
791
|
+
@race_other = race_other
|
792
|
+
end
|
793
|
+
end
|
794
|
+
# The persons ethnicity details
|
795
|
+
attr_accessor :ethnicity_details
|
796
|
+
# The persons race details
|
797
|
+
attr_accessor :race_details
|
798
|
+
# The persons self-identified gender
|
799
|
+
attr_accessor :self_identified_gender
|
800
|
+
|
801
|
+
def initialize(ethnicity_details: nil, race_details: nil, self_identified_gender: nil)
|
802
|
+
@ethnicity_details = ethnicity_details
|
803
|
+
@race_details = race_details
|
804
|
+
@self_identified_gender = self_identified_gender
|
805
|
+
end
|
806
|
+
end
|
807
|
+
|
729
808
|
class Verification < Stripe::RequestParams
|
730
809
|
class AdditionalDocument < Stripe::RequestParams
|
731
810
|
# The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
@@ -814,6 +893,8 @@ module Stripe
|
|
814
893
|
attr_accessor :relationship
|
815
894
|
# The last four digits of the person's Social Security number (U.S. only).
|
816
895
|
attr_accessor :ssn_last_4
|
896
|
+
# Demographic data related to the person.
|
897
|
+
attr_accessor :us_cfpb_data
|
817
898
|
# The person's verification status.
|
818
899
|
attr_accessor :verification
|
819
900
|
|
@@ -845,6 +926,7 @@ module Stripe
|
|
845
926
|
registered_address: nil,
|
846
927
|
relationship: nil,
|
847
928
|
ssn_last_4: nil,
|
929
|
+
us_cfpb_data: nil,
|
848
930
|
verification: nil
|
849
931
|
)
|
850
932
|
@additional_tos_acceptances = additional_tos_acceptances
|
@@ -874,6 +956,7 @@ module Stripe
|
|
874
956
|
@registered_address = registered_address
|
875
957
|
@relationship = relationship
|
876
958
|
@ssn_last_4 = ssn_last_4
|
959
|
+
@us_cfpb_data = us_cfpb_data
|
877
960
|
@verification = verification
|
878
961
|
end
|
879
962
|
end
|