stripe 12.5.0 → 15.0.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/CHANGELOG.md +197 -9
- data/Gemfile +4 -0
- data/Makefile +2 -0
- data/OPENAPI_VERSION +1 -1
- data/README.md +48 -13
- data/Rakefile +0 -5
- data/VERSION +1 -1
- data/examples/README.md +16 -0
- data/examples/example_template.rb +36 -0
- data/examples/meter_event_stream.rb +57 -0
- data/examples/thinevent_webhook_handler.rb +39 -0
- data/justfile +43 -0
- data/lib/stripe/api_operations/nested_resource.rb +1 -21
- data/lib/stripe/api_operations/request.rb +20 -69
- data/lib/stripe/api_operations/save.rb +5 -3
- data/lib/stripe/api_operations/singleton_save.rb +6 -2
- data/lib/stripe/api_requestor.rb +1136 -0
- data/lib/stripe/api_resource.rb +38 -17
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/connection_manager.rb +1 -1
- data/lib/stripe/errors.rb +8 -9
- data/lib/stripe/event_types.rb +14 -0
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +23 -0
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +13 -0
- data/lib/stripe/list_object.rb +2 -3
- data/lib/stripe/oauth.rb +8 -15
- data/lib/stripe/object_types.rb +26 -3
- data/lib/stripe/request_options.rb +129 -0
- data/lib/stripe/request_params.rb +24 -0
- data/lib/stripe/resources/account.rb +4642 -8
- data/lib/stripe/resources/account_link.rb +54 -0
- data/lib/stripe/resources/account_session.rb +739 -0
- data/lib/stripe/resources/apple_pay_domain.rb +58 -9
- data/lib/stripe/resources/application.rb +20 -0
- data/lib/stripe/resources/application_fee.rb +89 -2
- data/lib/stripe/resources/application_fee_refund.rb +17 -0
- data/lib/stripe/resources/apps/secret.rb +143 -2
- data/lib/stripe/resources/balance.rb +122 -0
- data/lib/stripe/resources/balance_transaction.rb +105 -2
- data/lib/stripe/resources/bank_account.rb +85 -3
- data/lib/stripe/resources/billing/alert.rb +137 -2
- data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +54 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +133 -0
- data/lib/stripe/resources/billing/credit_grant.rb +307 -0
- data/lib/stripe/resources/billing/meter.rb +180 -9
- data/lib/stripe/resources/billing/meter_event.rb +37 -3
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +44 -1
- data/lib/stripe/resources/billing/meter_event_summary.rb +17 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +557 -4
- data/lib/stripe/resources/billing_portal/session.rb +271 -0
- data/lib/stripe/resources/capability.rb +84 -0
- data/lib/stripe/resources/card.rb +78 -1
- data/lib/stripe/resources/cash_balance.rb +17 -0
- data/lib/stripe/resources/charge.rb +1616 -4
- data/lib/stripe/resources/checkout/session.rb +3534 -10
- data/lib/stripe/resources/climate/order.rb +171 -4
- data/lib/stripe/resources/climate/product.rb +49 -2
- data/lib/stripe/resources/climate/supplier.rb +47 -2
- data/lib/stripe/resources/confirmation_token.rb +1448 -0
- data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
- data/lib/stripe/resources/country_spec.rb +56 -2
- data/lib/stripe/resources/coupon.rb +195 -6
- data/lib/stripe/resources/credit_note.rb +641 -2
- data/lib/stripe/resources/credit_note_line_item.rb +67 -0
- data/lib/stripe/resources/customer.rb +832 -9
- data/lib/stripe/resources/customer_balance_transaction.rb +29 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +109 -0
- data/lib/stripe/resources/customer_session.rb +163 -0
- data/lib/stripe/resources/discount.rb +29 -0
- data/lib/stripe/resources/dispute.rb +614 -4
- data/lib/stripe/resources/entitlements/active_entitlement.rb +39 -2
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
- data/lib/stripe/resources/entitlements/feature.rb +83 -2
- data/lib/stripe/resources/ephemeral_key.rb +23 -2
- data/lib/stripe/resources/event.rb +92 -2
- data/lib/stripe/resources/exchange_rate.rb +26 -2
- data/lib/stripe/resources/file.rb +123 -15
- data/lib/stripe/resources/file_link.rb +107 -4
- data/lib/stripe/resources/financial_connections/account.rb +239 -2
- data/lib/stripe/resources/financial_connections/account_owner.rb +17 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +9 -0
- data/lib/stripe/resources/financial_connections/session.rb +95 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +94 -2
- data/lib/stripe/resources/forwarding/request.rb +158 -2
- data/lib/stripe/resources/funding_instructions.rb +308 -0
- data/lib/stripe/resources/identity/verification_report.rb +259 -2
- data/lib/stripe/resources/identity/verification_session.rb +356 -4
- data/lib/stripe/resources/invoice.rb +3210 -27
- data/lib/stripe/resources/invoice_item.rb +406 -6
- data/lib/stripe/resources/invoice_line_item.rb +356 -3
- data/lib/stripe/resources/invoice_payment.rb +105 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +120 -0
- data/lib/stripe/resources/issuing/authorization.rb +1132 -6
- data/lib/stripe/resources/issuing/card.rb +682 -5
- data/lib/stripe/resources/issuing/cardholder.rb +653 -5
- data/lib/stripe/resources/issuing/dispute.rb +785 -4
- data/lib/stripe/resources/issuing/personalization_design.rb +280 -4
- data/lib/stripe/resources/issuing/physical_bundle.rb +56 -2
- data/lib/stripe/resources/issuing/token.rb +170 -4
- data/lib/stripe/resources/issuing/transaction.rb +916 -4
- data/lib/stripe/resources/line_item.rb +47 -0
- data/lib/stripe/resources/login_link.rb +7 -0
- data/lib/stripe/resources/mandate.rb +142 -0
- data/lib/stripe/resources/payment_intent.rb +8660 -4
- data/lib/stripe/resources/payment_link.rb +1636 -4
- data/lib/stripe/resources/payment_method.rb +1546 -4
- data/lib/stripe/resources/payment_method_configuration.rb +2780 -4
- data/lib/stripe/resources/payment_method_domain.rb +154 -10
- data/lib/stripe/resources/payout.rb +213 -4
- data/lib/stripe/resources/person.rb +264 -1
- data/lib/stripe/resources/plan.rb +308 -6
- data/lib/stripe/resources/price.rb +609 -5
- data/lib/stripe/resources/product.rb +474 -2
- data/lib/stripe/resources/product_feature.rb +12 -0
- data/lib/stripe/resources/promotion_code.rb +216 -4
- data/lib/stripe/resources/quote.rb +927 -10
- data/lib/stripe/resources/radar/early_fraud_warning.rb +70 -2
- data/lib/stripe/resources/radar/value_list.rb +122 -6
- data/lib/stripe/resources/radar/value_list_item.rb +90 -4
- data/lib/stripe/resources/refund.rb +396 -4
- data/lib/stripe/resources/reporting/report_run.rb +143 -2
- data/lib/stripe/resources/reporting/report_type.rb +29 -2
- data/lib/stripe/resources/reserve_transaction.rb +22 -0
- data/lib/stripe/resources/reversal.rb +21 -0
- data/lib/stripe/resources/review.rb +101 -2
- data/lib/stripe/resources/setup_attempt.rb +370 -2
- data/lib/stripe/resources/setup_intent.rb +3477 -4
- data/lib/stripe/resources/shipping_rate.rb +254 -4
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +47 -2
- data/lib/stripe/resources/source.rb +1203 -4
- data/lib/stripe/resources/source_mandate_notification.rb +66 -0
- data/lib/stripe/resources/source_transaction.rb +85 -0
- data/lib/stripe/resources/subscription.rb +1697 -11
- data/lib/stripe/resources/subscription_item.rb +319 -11
- data/lib/stripe/resources/subscription_schedule.rb +1285 -4
- data/lib/stripe/resources/tax/calculation.rb +378 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +56 -0
- data/lib/stripe/resources/tax/registration.rb +2375 -2
- data/lib/stripe/resources/tax/settings.rb +117 -0
- data/lib/stripe/resources/tax/transaction.rb +258 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +31 -0
- data/lib/stripe/resources/tax_code.rb +28 -2
- data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
- data/lib/stripe/resources/tax_id.rb +114 -2
- data/lib/stripe/resources/tax_rate.rb +197 -6
- data/lib/stripe/resources/terminal/configuration.rb +1266 -6
- data/lib/stripe/resources/terminal/connection_token.rb +18 -0
- data/lib/stripe/resources/terminal/location.rb +172 -6
- data/lib/stripe/resources/terminal/reader.rb +433 -6
- data/lib/stripe/resources/test_helpers/test_clock.rb +81 -4
- data/lib/stripe/resources/token.rb +1160 -1
- data/lib/stripe/resources/topup.rb +169 -4
- data/lib/stripe/resources/transfer.rb +148 -4
- data/lib/stripe/resources/treasury/credit_reversal.rb +85 -2
- data/lib/stripe/resources/treasury/debit_reversal.rb +96 -2
- data/lib/stripe/resources/treasury/financial_account.rb +749 -5
- data/lib/stripe/resources/treasury/financial_account_features.rb +189 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +231 -3
- data/lib/stripe/resources/treasury/outbound_payment.rb +491 -3
- data/lib/stripe/resources/treasury/outbound_transfer.rb +346 -3
- data/lib/stripe/resources/treasury/received_credit.rb +239 -2
- data/lib/stripe/resources/treasury/received_debit.rb +198 -2
- data/lib/stripe/resources/treasury/transaction.rb +169 -2
- data/lib/stripe/resources/treasury/transaction_entry.rb +150 -2
- data/lib/stripe/resources/v2/amount.rb +9 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +34 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +36 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +29 -0
- data/lib/stripe/resources/v2/event.rb +41 -0
- data/lib/stripe/resources/v2/event_destination.rb +73 -0
- data/lib/stripe/resources/webhook_endpoint.rb +119 -11
- data/lib/stripe/resources.rb +19 -2
- data/lib/stripe/search_result_object.rb +1 -1
- data/lib/stripe/services/account_capability_service.rb +71 -0
- data/lib/stripe/services/account_external_account_service.rb +318 -0
- data/lib/stripe/services/account_link_service.rb +63 -0
- data/lib/stripe/services/account_login_link_service.rb +28 -0
- data/lib/stripe/services/account_person_service.rb +936 -0
- data/lib/stripe/services/account_service.rb +4100 -0
- data/lib/stripe/services/account_session_service.rb +501 -0
- data/lib/stripe/services/apple_pay_domain_service.rb +101 -0
- data/lib/stripe/services/application_fee_refund_service.rb +114 -0
- data/lib/stripe/services/application_fee_service.rb +92 -0
- data/lib/stripe/services/apps/secret_service.rb +168 -0
- data/lib/stripe/services/apps_service.rb +13 -0
- data/lib/stripe/services/balance_service.rb +21 -0
- data/lib/stripe/services/balance_transaction_service.rb +101 -0
- data/lib/stripe/services/billing/alert_service.rb +187 -0
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +67 -0
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +70 -0
- data/lib/stripe/services/billing/credit_grant_service.rb +240 -0
- data/lib/stripe/services/billing/meter_event_adjustment_service.rb +45 -0
- data/lib/stripe/services/billing/meter_event_service.rb +40 -0
- data/lib/stripe/services/billing/meter_event_summary_service.rb +58 -0
- data/lib/stripe/services/billing/meter_service.rb +211 -0
- data/lib/stripe/services/billing_portal/configuration_service.rb +496 -0
- data/lib/stripe/services/billing_portal/session_service.rb +192 -0
- data/lib/stripe/services/billing_portal_service.rb +14 -0
- data/lib/stripe/services/billing_service.rb +20 -0
- data/lib/stripe/services/charge_service.rb +471 -0
- data/lib/stripe/services/checkout/session_line_item_service.rb +37 -0
- data/lib/stripe/services/checkout/session_service.rb +2466 -0
- data/lib/stripe/services/checkout_service.rb +13 -0
- data/lib/stripe/services/climate/order_service.rb +170 -0
- data/lib/stripe/services/climate/product_service.rb +57 -0
- data/lib/stripe/services/climate/supplier_service.rb +57 -0
- data/lib/stripe/services/climate_service.rb +15 -0
- data/lib/stripe/services/confirmation_token_service.rb +26 -0
- data/lib/stripe/services/country_spec_service.rb +55 -0
- data/lib/stripe/services/coupon_service.rb +203 -0
- data/lib/stripe/services/credit_note_line_item_service.rb +35 -0
- data/lib/stripe/services/credit_note_preview_lines_service.rb +169 -0
- data/lib/stripe/services/credit_note_service.rb +458 -0
- data/lib/stripe/services/customer_balance_transaction_service.rb +113 -0
- data/lib/stripe/services/customer_cash_balance_service.rb +57 -0
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +55 -0
- data/lib/stripe/services/customer_funding_instructions_service.rb +61 -0
- data/lib/stripe/services/customer_payment_method_service.rb +68 -0
- data/lib/stripe/services/customer_payment_source_service.rb +255 -0
- data/lib/stripe/services/customer_service.rb +666 -0
- data/lib/stripe/services/customer_session_service.rb +113 -0
- data/lib/stripe/services/customer_tax_id_service.rb +95 -0
- data/lib/stripe/services/dispute_service.rb +422 -0
- data/lib/stripe/services/entitlements/active_entitlement_service.rb +66 -0
- data/lib/stripe/services/entitlements/feature_service.rb +128 -0
- data/lib/stripe/services/entitlements_service.rb +14 -0
- data/lib/stripe/services/ephemeral_key_service.rb +64 -0
- data/lib/stripe/services/event_service.rb +87 -0
- data/lib/stripe/services/exchange_rate_service.rb +55 -0
- data/lib/stripe/services/file_link_service.rb +132 -0
- data/lib/stripe/services/file_service.rb +124 -0
- data/lib/stripe/services/financial_connections/account_owner_service.rb +46 -0
- data/lib/stripe/services/financial_connections/account_service.rb +177 -0
- data/lib/stripe/services/financial_connections/session_service.rb +98 -0
- data/lib/stripe/services/financial_connections/transaction_service.rb +100 -0
- data/lib/stripe/services/financial_connections_service.rb +15 -0
- data/lib/stripe/services/forwarding/request_service.rb +147 -0
- data/lib/stripe/services/forwarding_service.rb +13 -0
- data/lib/stripe/services/identity/verification_report_service.rb +95 -0
- data/lib/stripe/services/identity/verification_session_service.rb +337 -0
- data/lib/stripe/services/identity_service.rb +14 -0
- data/lib/stripe/services/invoice_item_service.rb +395 -0
- data/lib/stripe/services/invoice_line_item_service.rb +252 -0
- data/lib/stripe/services/invoice_payment_service.rb +83 -0
- data/lib/stripe/services/invoice_rendering_template_service.rb +101 -0
- data/lib/stripe/services/invoice_service.rb +2831 -0
- data/lib/stripe/services/issuing/authorization_service.rb +169 -0
- data/lib/stripe/services/issuing/card_service.rb +507 -0
- data/lib/stripe/services/issuing/cardholder_service.rb +577 -0
- data/lib/stripe/services/issuing/dispute_service.rb +696 -0
- data/lib/stripe/services/issuing/personalization_design_service.rb +245 -0
- data/lib/stripe/services/issuing/physical_bundle_service.rb +70 -0
- data/lib/stripe/services/issuing/token_service.rb +114 -0
- data/lib/stripe/services/issuing/transaction_service.rb +118 -0
- data/lib/stripe/services/issuing_service.rb +20 -0
- data/lib/stripe/services/mandate_service.rb +26 -0
- data/lib/stripe/services/oauth_service.rb +63 -0
- data/lib/stripe/services/payment_intent_service.rb +7258 -0
- data/lib/stripe/services/payment_link_line_item_service.rb +35 -0
- data/lib/stripe/services/payment_link_service.rb +1333 -0
- data/lib/stripe/services/payment_method_configuration_service.rb +2054 -0
- data/lib/stripe/services/payment_method_domain_service.rb +142 -0
- data/lib/stripe/services/payment_method_service.rb +894 -0
- data/lib/stripe/services/payout_service.rb +225 -0
- data/lib/stripe/services/plan_service.rb +298 -0
- data/lib/stripe/services/price_service.rb +545 -0
- data/lib/stripe/services/product_feature_service.rb +92 -0
- data/lib/stripe/services/product_service.rb +495 -0
- data/lib/stripe/services/promotion_code_service.rb +228 -0
- data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +35 -0
- data/lib/stripe/services/quote_line_item_service.rb +35 -0
- data/lib/stripe/services/quote_service.rb +703 -0
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +93 -0
- data/lib/stripe/services/radar/value_list_item_service.rb +131 -0
- data/lib/stripe/services/radar/value_list_service.rb +166 -0
- data/lib/stripe/services/radar_service.rb +15 -0
- data/lib/stripe/services/refund_service.rb +200 -0
- data/lib/stripe/services/reporting/report_run_service.rb +147 -0
- data/lib/stripe/services/reporting/report_type_service.rb +48 -0
- data/lib/stripe/services/reporting_service.rb +14 -0
- data/lib/stripe/services/review_service.rb +89 -0
- data/lib/stripe/services/setup_attempt_service.rb +68 -0
- data/lib/stripe/services/setup_intent_service.rb +3268 -0
- data/lib/stripe/services/shipping_rate_service.rb +250 -0
- data/lib/stripe/services/sigma/scheduled_query_run_service.rb +57 -0
- data/lib/stripe/services/sigma_service.rb +13 -0
- data/lib/stripe/services/source_service.rb +665 -0
- data/lib/stripe/services/source_transaction_service.rb +35 -0
- data/lib/stripe/services/subscription_item_service.rb +346 -0
- data/lib/stripe/services/subscription_schedule_service.rb +1134 -0
- data/lib/stripe/services/subscription_service.rb +1539 -0
- data/lib/stripe/services/tax/calculation_line_item_service.rb +37 -0
- data/lib/stripe/services/tax/calculation_service.rb +242 -0
- data/lib/stripe/services/tax/registration_service.rb +1618 -0
- data/lib/stripe/services/tax/settings_service.rb +104 -0
- data/lib/stripe/services/tax/transaction_line_item_service.rb +37 -0
- data/lib/stripe/services/tax/transaction_service.rb +159 -0
- data/lib/stripe/services/tax_code_service.rb +49 -0
- data/lib/stripe/services/tax_id_service.rb +117 -0
- data/lib/stripe/services/tax_rate_service.rb +193 -0
- data/lib/stripe/services/tax_service.rb +16 -0
- data/lib/stripe/services/terminal/configuration_service.rb +1060 -0
- data/lib/stripe/services/terminal/connection_token_service.rb +31 -0
- data/lib/stripe/services/terminal/location_service.rb +208 -0
- data/lib/stripe/services/terminal/reader_service.rb +384 -0
- data/lib/stripe/services/terminal_service.rb +16 -0
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +661 -0
- data/lib/stripe/services/test_helpers/customer_service.rb +37 -0
- data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +832 -0
- data/lib/stripe/services/test_helpers/issuing/card_service.rb +110 -0
- data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +84 -0
- data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +675 -0
- data/lib/stripe/services/test_helpers/issuing_service.rb +19 -0
- data/lib/stripe/services/test_helpers/refund_service.rb +28 -0
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +65 -0
- data/lib/stripe/services/test_helpers/terminal_service.rb +15 -0
- data/lib/stripe/services/test_helpers/test_clock_service.rb +120 -0
- data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +81 -0
- data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +141 -0
- data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +141 -0
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +81 -0
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +81 -0
- data/lib/stripe/services/test_helpers/treasury_service.rb +19 -0
- data/lib/stripe/services/test_helpers_service.rb +19 -0
- data/lib/stripe/services/token_service.rb +1163 -0
- data/lib/stripe/services/topup_service.rb +191 -0
- data/lib/stripe/services/transfer_reversal_service.rb +122 -0
- data/lib/stripe/services/transfer_service.rb +166 -0
- data/lib/stripe/services/treasury/credit_reversal_service.rb +100 -0
- data/lib/stripe/services/treasury/debit_reversal_service.rb +104 -0
- data/lib/stripe/services/treasury/financial_account_features_service.rb +196 -0
- data/lib/stripe/services/treasury/financial_account_service.rb +554 -0
- data/lib/stripe/services/treasury/inbound_transfer_service.rb +140 -0
- data/lib/stripe/services/treasury/outbound_payment_service.rb +310 -0
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +176 -0
- data/lib/stripe/services/treasury/received_credit_service.rb +82 -0
- data/lib/stripe/services/treasury/received_debit_service.rb +70 -0
- data/lib/stripe/services/treasury/transaction_entry_service.rb +117 -0
- data/lib/stripe/services/treasury/transaction_service.rb +125 -0
- data/lib/stripe/services/treasury_service.rb +22 -0
- data/lib/stripe/services/v1_services.rb +90 -0
- data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +44 -0
- data/lib/stripe/services/v2/billing/meter_event_service.rb +46 -0
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +24 -0
- data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +56 -0
- data/lib/stripe/services/v2/billing_service.rb +18 -0
- data/lib/stripe/services/v2/core/event_destination_service.rb +241 -0
- data/lib/stripe/services/v2/core/event_service.rb +49 -0
- data/lib/stripe/services/v2/core_service.rb +16 -0
- data/lib/stripe/services/v2_services.rb +14 -0
- data/lib/stripe/services/webhook_endpoint_service.rb +157 -0
- data/lib/stripe/services.rb +180 -0
- data/lib/stripe/singleton_api_resource.rb +1 -18
- data/lib/stripe/stripe_client.rb +53 -1031
- data/lib/stripe/stripe_configuration.rb +52 -19
- data/lib/stripe/stripe_object.rb +54 -20
- data/lib/stripe/stripe_service.rb +32 -0
- data/lib/stripe/thin_event.rb +37 -0
- data/lib/stripe/util.rb +78 -37
- data/lib/stripe/v2_list_object.rb +84 -0
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +1 -1
- data/lib/stripe.rb +38 -25
- data/rbi/stripe/resources/account.rbi +4840 -0
- data/rbi/stripe/resources/account_link.rbi +74 -0
- data/rbi/stripe/resources/account_session.rbi +894 -0
- data/rbi/stripe/resources/apple_pay_domain.rbi +90 -0
- data/rbi/stripe/resources/application.rbi +20 -0
- data/rbi/stripe/resources/application_fee.rbi +118 -0
- data/rbi/stripe/resources/application_fee_refund.rbi +37 -0
- data/rbi/stripe/resources/apps/secret.rbi +195 -0
- data/rbi/stripe/resources/balance.rbi +180 -0
- data/rbi/stripe/resources/balance_transaction.rbi +144 -0
- data/rbi/stripe/resources/bank_account.rbi +127 -0
- data/rbi/stripe/resources/billing/alert.rbi +201 -0
- data/rbi/stripe/resources/billing/alert_triggered.rbi +28 -0
- data/rbi/stripe/resources/billing/credit_balance_summary.rbi +63 -0
- data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +147 -0
- data/rbi/stripe/resources/billing/credit_grant.rbi +291 -0
- data/rbi/stripe/resources/billing/meter.rbi +226 -0
- data/rbi/stripe/resources/billing/meter_event.rbi +64 -0
- data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +64 -0
- data/rbi/stripe/resources/billing/meter_event_summary.rbi +35 -0
- data/rbi/stripe/resources/billing_portal/configuration.rbi +645 -0
- data/rbi/stripe/resources/billing_portal/session.rbi +345 -0
- data/rbi/stripe/resources/capability.rbi +125 -0
- data/rbi/stripe/resources/card.rbi +125 -0
- data/rbi/stripe/resources/cash_balance.rbi +32 -0
- data/rbi/stripe/resources/charge.rbi +2054 -0
- data/rbi/stripe/resources/checkout/session.rbi +3951 -0
- data/rbi/stripe/resources/climate/order.rbi +245 -0
- data/rbi/stripe/resources/climate/product.rbi +75 -0
- data/rbi/stripe/resources/climate/supplier.rbi +72 -0
- data/rbi/stripe/resources/confirmation_token.rbi +1793 -0
- data/rbi/stripe/resources/connect_collection_transfer.rbi +26 -0
- data/rbi/stripe/resources/country_spec.rbi +85 -0
- data/rbi/stripe/resources/coupon.rbi +252 -0
- data/rbi/stripe/resources/credit_note.rbi +747 -0
- data/rbi/stripe/resources/credit_note_line_item.rbi +101 -0
- data/rbi/stripe/resources/customer.rbi +1009 -0
- data/rbi/stripe/resources/customer_balance_transaction.rbi +56 -0
- data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +151 -0
- data/rbi/stripe/resources/customer_session.rbi +200 -0
- data/rbi/stripe/resources/discount.rbi +53 -0
- data/rbi/stripe/resources/dispute.rbi +761 -0
- data/rbi/stripe/resources/entitlements/active_entitlement.rbi +58 -0
- data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +23 -0
- data/rbi/stripe/resources/entitlements/feature.rbi +117 -0
- data/rbi/stripe/resources/ephemeral_key.rbi +44 -0
- data/rbi/stripe/resources/event.rbi +146 -0
- data/rbi/stripe/resources/exchange_rate.rbi +66 -0
- data/rbi/stripe/resources/file.rbi +143 -0
- data/rbi/stripe/resources/file_link.rbi +141 -0
- data/rbi/stripe/resources/financial_connections/account.rbi +339 -0
- data/rbi/stripe/resources/financial_connections/account_owner.rbi +35 -0
- data/rbi/stripe/resources/financial_connections/account_ownership.rbi +23 -0
- data/rbi/stripe/resources/financial_connections/session.rbi +123 -0
- data/rbi/stripe/resources/financial_connections/transaction.rbi +124 -0
- data/rbi/stripe/resources/forwarding/request.rbi +216 -0
- data/rbi/stripe/resources/funding_instructions.rbi +437 -0
- data/rbi/stripe/resources/identity/verification_report.rbi +351 -0
- data/rbi/stripe/resources/identity/verification_session.rbi +517 -0
- data/rbi/stripe/resources/invoice.rbi +3733 -0
- data/rbi/stripe/resources/invoice_item.rbi +475 -0
- data/rbi/stripe/resources/invoice_line_item.rbi +432 -0
- data/rbi/stripe/resources/invoice_payment.rbi +114 -0
- data/rbi/stripe/resources/invoice_rendering_template.rbi +104 -0
- data/rbi/stripe/resources/issuing/authorization.rbi +1283 -0
- data/rbi/stripe/resources/issuing/card.rbi +741 -0
- data/rbi/stripe/resources/issuing/cardholder.rbi +744 -0
- data/rbi/stripe/resources/issuing/dispute.rbi +913 -0
- data/rbi/stripe/resources/issuing/personalization_design.rbi +338 -0
- data/rbi/stripe/resources/issuing/physical_bundle.rbi +79 -0
- data/rbi/stripe/resources/issuing/token.rbi +226 -0
- data/rbi/stripe/resources/issuing/transaction.rbi +1061 -0
- data/rbi/stripe/resources/line_item.rbi +72 -0
- data/rbi/stripe/resources/login_link.rbi +18 -0
- data/rbi/stripe/resources/mandate.rbi +187 -0
- data/rbi/stripe/resources/payment_intent.rbi +9731 -0
- data/rbi/stripe/resources/payment_link.rbi +1801 -0
- data/rbi/stripe/resources/payment_method.rbi +1822 -0
- data/rbi/stripe/resources/payment_method_configuration.rbi +3154 -0
- data/rbi/stripe/resources/payment_method_domain.rbi +212 -0
- data/rbi/stripe/resources/payout.rbi +300 -0
- data/rbi/stripe/resources/person.rbi +371 -0
- data/rbi/stripe/resources/plan.rbi +373 -0
- data/rbi/stripe/resources/price.rbi +694 -0
- data/rbi/stripe/resources/product.rbi +557 -0
- data/rbi/stripe/resources/product_feature.rbi +26 -0
- data/rbi/stripe/resources/promotion_code.rbi +261 -0
- data/rbi/stripe/resources/quote.rbi +1123 -0
- data/rbi/stripe/resources/radar/early_fraud_warning.rbi +98 -0
- data/rbi/stripe/resources/radar/value_list.rbi +170 -0
- data/rbi/stripe/resources/radar/value_list_item.rbi +131 -0
- data/rbi/stripe/resources/refund.rbi +516 -0
- data/rbi/stripe/resources/reporting/report_run.rbi +191 -0
- data/rbi/stripe/resources/reporting/report_type.rbi +57 -0
- data/rbi/stripe/resources/reserve_transaction.rbi +23 -0
- data/rbi/stripe/resources/reversal.rbi +51 -0
- data/rbi/stripe/resources/review.rbi +154 -0
- data/rbi/stripe/resources/setup_attempt.rbi +477 -0
- data/rbi/stripe/resources/setup_intent.rbi +3860 -0
- data/rbi/stripe/resources/shipping_rate.rbi +305 -0
- data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +75 -0
- data/rbi/stripe/resources/source.rbi +1496 -0
- data/rbi/stripe/resources/source_mandate_notification.rbi +77 -0
- data/rbi/stripe/resources/source_transaction.rbi +127 -0
- data/rbi/stripe/resources/subscription.rbi +1964 -0
- data/rbi/stripe/resources/subscription_item.rbi +370 -0
- data/rbi/stripe/resources/subscription_schedule.rbi +1495 -0
- data/rbi/stripe/resources/tax/calculation.rbi +474 -0
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +88 -0
- data/rbi/stripe/resources/tax/registration.rbi +2485 -0
- data/rbi/stripe/resources/tax/settings.rbi +141 -0
- data/rbi/stripe/resources/tax/transaction.rbi +351 -0
- data/rbi/stripe/resources/tax/transaction_line_item.rbi +54 -0
- data/rbi/stripe/resources/tax_code.rbi +44 -0
- data/rbi/stripe/resources/tax_deducted_at_source.rbi +23 -0
- data/rbi/stripe/resources/tax_id.rbi +167 -0
- data/rbi/stripe/resources/tax_rate.rbi +239 -0
- data/rbi/stripe/resources/terminal/configuration.rbi +1388 -0
- data/rbi/stripe/resources/terminal/connection_token.rbi +37 -0
- data/rbi/stripe/resources/terminal/location.rbi +224 -0
- data/rbi/stripe/resources/terminal/reader.rbi +587 -0
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +134 -0
- data/rbi/stripe/resources/token.rbi +1217 -0
- data/rbi/stripe/resources/topup.rbi +222 -0
- data/rbi/stripe/resources/transfer.rbi +199 -0
- data/rbi/stripe/resources/treasury/credit_reversal.rbi +119 -0
- data/rbi/stripe/resources/treasury/debit_reversal.rbi +131 -0
- data/rbi/stripe/resources/treasury/financial_account.rbi +865 -0
- data/rbi/stripe/resources/treasury/financial_account_features.rbi +260 -0
- data/rbi/stripe/resources/treasury/inbound_transfer.rbi +295 -0
- data/rbi/stripe/resources/treasury/outbound_payment.rbi +592 -0
- data/rbi/stripe/resources/treasury/outbound_transfer.rbi +431 -0
- data/rbi/stripe/resources/treasury/received_credit.rbi +302 -0
- data/rbi/stripe/resources/treasury/received_debit.rbi +256 -0
- data/rbi/stripe/resources/treasury/transaction.rbi +215 -0
- data/rbi/stripe/resources/treasury/transaction_entry.rbi +192 -0
- data/rbi/stripe/resources/v2/amount.rbi +14 -0
- data/rbi/stripe/resources/v2/billing/meter_event.rbi +37 -0
- data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +41 -0
- data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +31 -0
- data/rbi/stripe/resources/v2/event.rbi +48 -0
- data/rbi/stripe/resources/v2/event_destination.rbi +91 -0
- data/rbi/stripe/resources/webhook_endpoint.rbi +170 -0
- data/rbi/stripe/services/account_capability_service.rbi +51 -0
- data/rbi/stripe/services/account_external_account_service.rbi +306 -0
- data/rbi/stripe/services/account_link_service.rbi +58 -0
- data/rbi/stripe/services/account_login_link_service.rbi +22 -0
- data/rbi/stripe/services/account_person_service.rbi +923 -0
- data/rbi/stripe/services/account_service.rbi +4143 -0
- data/rbi/stripe/services/account_session_service.rbi +572 -0
- data/rbi/stripe/services/apple_pay_domain_service.rbi +78 -0
- data/rbi/stripe/services/application_fee_refund_service.rbi +93 -0
- data/rbi/stripe/services/application_fee_service.rbi +78 -0
- data/rbi/stripe/services/apps/secret_service.rbi +151 -0
- data/rbi/stripe/services/apps_service.rbi +9 -0
- data/rbi/stripe/services/balance_service.rbi +21 -0
- data/rbi/stripe/services/balance_transaction_service.rbi +93 -0
- data/rbi/stripe/services/billing/alert_service.rbi +152 -0
- data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +68 -0
- data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +59 -0
- data/rbi/stripe/services/billing/credit_grant_service.rbi +211 -0
- data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +42 -0
- data/rbi/stripe/services/billing/meter_event_service.rbi +42 -0
- data/rbi/stripe/services/billing/meter_event_summary_service.rbi +54 -0
- data/rbi/stripe/services/billing/meter_service.rbi +163 -0
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +511 -0
- data/rbi/stripe/services/billing_portal/session_service.rbi +204 -0
- data/rbi/stripe/services/billing_portal_service.rbi +10 -0
- data/rbi/stripe/services/billing_service.rbi +15 -0
- data/rbi/stripe/services/charge_service.rbi +448 -0
- data/rbi/stripe/services/checkout/session_line_item_service.rbi +33 -0
- data/rbi/stripe/services/checkout/session_service.rbi +2585 -0
- data/rbi/stripe/services/checkout_service.rbi +9 -0
- data/rbi/stripe/services/climate/order_service.rbi +142 -0
- data/rbi/stripe/services/climate/product_service.rbi +46 -0
- data/rbi/stripe/services/climate/supplier_service.rbi +46 -0
- data/rbi/stripe/services/climate_service.rbi +11 -0
- data/rbi/stripe/services/confirmation_token_service.rbi +20 -0
- data/rbi/stripe/services/country_spec_service.rbi +44 -0
- data/rbi/stripe/services/coupon_service.rbi +196 -0
- data/rbi/stripe/services/credit_note_line_item_service.rbi +31 -0
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +167 -0
- data/rbi/stripe/services/credit_note_service.rbi +416 -0
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +92 -0
- data/rbi/stripe/services/customer_cash_balance_service.rbi +45 -0
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +44 -0
- data/rbi/stripe/services/customer_funding_instructions_service.rbi +59 -0
- data/rbi/stripe/services/customer_payment_method_service.rbi +57 -0
- data/rbi/stripe/services/customer_payment_source_service.rbi +232 -0
- data/rbi/stripe/services/customer_service.rbi +651 -0
- data/rbi/stripe/services/customer_session_service.rbi +116 -0
- data/rbi/stripe/services/customer_tax_id_service.rbi +72 -0
- data/rbi/stripe/services/dispute_service.rbi +424 -0
- data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +55 -0
- data/rbi/stripe/services/entitlements/feature_service.rbi +107 -0
- data/rbi/stripe/services/entitlements_service.rbi +10 -0
- data/rbi/stripe/services/ephemeral_key_service.rbi +53 -0
- data/rbi/stripe/services/event_service.rbi +83 -0
- data/rbi/stripe/services/exchange_rate_service.rbi +44 -0
- data/rbi/stripe/services/file_link_service.rbi +124 -0
- data/rbi/stripe/services/file_service.rbi +116 -0
- data/rbi/stripe/services/financial_connections/account_owner_service.rbi +42 -0
- data/rbi/stripe/services/financial_connections/account_service.rbi +133 -0
- data/rbi/stripe/services/financial_connections/session_service.rbi +88 -0
- data/rbi/stripe/services/financial_connections/transaction_service.rbi +92 -0
- data/rbi/stripe/services/financial_connections_service.rbi +11 -0
- data/rbi/stripe/services/forwarding/request_service.rbi +134 -0
- data/rbi/stripe/services/forwarding_service.rbi +9 -0
- data/rbi/stripe/services/identity/verification_report_service.rbi +87 -0
- data/rbi/stripe/services/identity/verification_session_service.rbi +323 -0
- data/rbi/stripe/services/identity_service.rbi +10 -0
- data/rbi/stripe/services/invoice_item_service.rbi +368 -0
- data/rbi/stripe/services/invoice_line_item_service.rbi +259 -0
- data/rbi/stripe/services/invoice_payment_service.rbi +71 -0
- data/rbi/stripe/services/invoice_rendering_template_service.rbi +82 -0
- data/rbi/stripe/services/invoice_service.rbi +2920 -0
- data/rbi/stripe/services/issuing/authorization_service.rbi +146 -0
- data/rbi/stripe/services/issuing/card_service.rbi +495 -0
- data/rbi/stripe/services/issuing/cardholder_service.rbi +587 -0
- data/rbi/stripe/services/issuing/dispute_service.rbi +707 -0
- data/rbi/stripe/services/issuing/personalization_design_service.rbi +243 -0
- data/rbi/stripe/services/issuing/physical_bundle_service.rbi +59 -0
- data/rbi/stripe/services/issuing/token_service.rbi +99 -0
- data/rbi/stripe/services/issuing/transaction_service.rbi +105 -0
- data/rbi/stripe/services/issuing_service.rbi +16 -0
- data/rbi/stripe/services/mandate_service.rbi +20 -0
- data/rbi/stripe/services/payment_intent_service.rbi +7759 -0
- data/rbi/stripe/services/payment_link_line_item_service.rbi +31 -0
- data/rbi/stripe/services/payment_link_service.rbi +1352 -0
- data/rbi/stripe/services/payment_method_configuration_service.rbi +2211 -0
- data/rbi/stripe/services/payment_method_domain_service.rbi +112 -0
- data/rbi/stripe/services/payment_method_service.rbi +840 -0
- data/rbi/stripe/services/payout_service.rbi +205 -0
- data/rbi/stripe/services/plan_service.rbi +284 -0
- data/rbi/stripe/services/price_service.rbi +546 -0
- data/rbi/stripe/services/product_feature_service.rbi +69 -0
- data/rbi/stripe/services/product_service.rbi +479 -0
- data/rbi/stripe/services/promotion_code_service.rbi +214 -0
- data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +31 -0
- data/rbi/stripe/services/quote_line_item_service.rbi +31 -0
- data/rbi/stripe/services/quote_service.rbi +686 -0
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +85 -0
- data/rbi/stripe/services/radar/value_list_item_service.rbi +111 -0
- data/rbi/stripe/services/radar/value_list_service.rbi +143 -0
- data/rbi/stripe/services/radar_service.rbi +11 -0
- data/rbi/stripe/services/refund_service.rbi +185 -0
- data/rbi/stripe/services/reporting/report_run_service.rbi +135 -0
- data/rbi/stripe/services/reporting/report_type_service.rbi +35 -0
- data/rbi/stripe/services/reporting_service.rbi +10 -0
- data/rbi/stripe/services/review_service.rbi +84 -0
- data/rbi/stripe/services/setup_attempt_service.rbi +65 -0
- data/rbi/stripe/services/setup_intent_service.rbi +3596 -0
- data/rbi/stripe/services/shipping_rate_service.rbi +241 -0
- data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +46 -0
- data/rbi/stripe/services/sigma_service.rbi +9 -0
- data/rbi/stripe/services/source_service.rbi +663 -0
- data/rbi/stripe/services/source_transaction_service.rbi +31 -0
- data/rbi/stripe/services/subscription_item_service.rbi +324 -0
- data/rbi/stripe/services/subscription_schedule_service.rbi +1192 -0
- data/rbi/stripe/services/subscription_service.rbi +1596 -0
- data/rbi/stripe/services/tax/calculation_line_item_service.rbi +33 -0
- data/rbi/stripe/services/tax/calculation_service.rbi +230 -0
- data/rbi/stripe/services/tax/registration_service.rbi +1689 -0
- data/rbi/stripe/services/tax/settings_service.rbi +93 -0
- data/rbi/stripe/services/tax/transaction_line_item_service.rbi +33 -0
- data/rbi/stripe/services/tax/transaction_service.rbi +146 -0
- data/rbi/stripe/services/tax_code_service.rbi +44 -0
- data/rbi/stripe/services/tax_id_service.rbi +112 -0
- data/rbi/stripe/services/tax_rate_service.rbi +185 -0
- data/rbi/stripe/services/tax_service.rbi +12 -0
- data/rbi/stripe/services/terminal/configuration_service.rbi +1120 -0
- data/rbi/stripe/services/terminal/connection_token_service.rbi +25 -0
- data/rbi/stripe/services/terminal/location_service.rbi +184 -0
- data/rbi/stripe/services/terminal/reader_service.rbi +344 -0
- data/rbi/stripe/services/terminal_service.rbi +12 -0
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +746 -0
- data/rbi/stripe/services/test_helpers/customer_service.rbi +33 -0
- data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +848 -0
- data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +76 -0
- data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +69 -0
- data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +711 -0
- data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
- data/rbi/stripe/services/test_helpers/refund_service.rbi +22 -0
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +62 -0
- data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +92 -0
- data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +64 -0
- data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +125 -0
- data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +125 -0
- data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +87 -0
- data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +87 -0
- data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
- data/rbi/stripe/services/test_helpers_service.rbi +15 -0
- data/rbi/stripe/services/token_service.rbi +1189 -0
- data/rbi/stripe/services/topup_service.rbi +176 -0
- data/rbi/stripe/services/transfer_reversal_service.rbi +101 -0
- data/rbi/stripe/services/transfer_service.rbi +152 -0
- data/rbi/stripe/services/treasury/credit_reversal_service.rbi +84 -0
- data/rbi/stripe/services/treasury/debit_reversal_service.rbi +88 -0
- data/rbi/stripe/services/treasury/financial_account_features_service.rbi +198 -0
- data/rbi/stripe/services/treasury/financial_account_service.rbi +562 -0
- data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +117 -0
- data/rbi/stripe/services/treasury/outbound_payment_service.rbi +304 -0
- data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +157 -0
- data/rbi/stripe/services/treasury/received_credit_service.rbi +72 -0
- data/rbi/stripe/services/treasury/received_debit_service.rbi +59 -0
- data/rbi/stripe/services/treasury/transaction_entry_service.rbi +111 -0
- data/rbi/stripe/services/treasury/transaction_service.rbi +122 -0
- data/rbi/stripe/services/treasury_service.rbi +18 -0
- data/rbi/stripe/services/v1_services.rbi +77 -0
- data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +39 -0
- data/rbi/stripe/services/v2/billing/meter_event_service.rbi +42 -0
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +20 -0
- data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +55 -0
- data/rbi/stripe/services/v2/billing_service.rbi +14 -0
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +200 -0
- data/rbi/stripe/services/v2/core/event_service.rbi +38 -0
- data/rbi/stripe/services/v2/core_service.rbi +12 -0
- data/rbi/stripe/services/v2_services.rbi +10 -0
- data/rbi/stripe/services/webhook_endpoint_service.rbi +131 -0
- metadata +533 -4
- data/lib/stripe/resources/usage_record.rb +0 -17
- data/lib/stripe/resources/usage_record_summary.rb +0 -11
@@ -34,6 +34,4640 @@ module Stripe
|
|
34
34
|
nested_resource_class_methods :login_link, operations: %i[create]
|
35
35
|
nested_resource_class_methods :person, operations: %i[create retrieve update delete list]
|
36
36
|
|
37
|
+
class BusinessProfile < Stripe::StripeObject
|
38
|
+
class AnnualRevenue < Stripe::StripeObject
|
39
|
+
# A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal).
|
40
|
+
attr_reader :amount
|
41
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
42
|
+
attr_reader :currency
|
43
|
+
# The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
|
44
|
+
attr_reader :fiscal_year_end
|
45
|
+
end
|
46
|
+
|
47
|
+
class MonthlyEstimatedRevenue < Stripe::StripeObject
|
48
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal).
|
49
|
+
attr_reader :amount
|
50
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
51
|
+
attr_reader :currency
|
52
|
+
end
|
53
|
+
|
54
|
+
class SupportAddress < Stripe::StripeObject
|
55
|
+
# City, district, suburb, town, or village.
|
56
|
+
attr_reader :city
|
57
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
58
|
+
attr_reader :country
|
59
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
60
|
+
attr_reader :line1
|
61
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
62
|
+
attr_reader :line2
|
63
|
+
# ZIP or postal code.
|
64
|
+
attr_reader :postal_code
|
65
|
+
# State, county, province, or region.
|
66
|
+
attr_reader :state
|
67
|
+
end
|
68
|
+
# The applicant's gross annual revenue for its preceding fiscal year.
|
69
|
+
attr_reader :annual_revenue
|
70
|
+
# An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
|
71
|
+
attr_reader :estimated_worker_count
|
72
|
+
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
|
73
|
+
attr_reader :mcc
|
74
|
+
# Attribute for field monthly_estimated_revenue
|
75
|
+
attr_reader :monthly_estimated_revenue
|
76
|
+
# The customer-facing business name.
|
77
|
+
attr_reader :name
|
78
|
+
# Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
|
79
|
+
attr_reader :product_description
|
80
|
+
# A publicly available mailing address for sending support issues to.
|
81
|
+
attr_reader :support_address
|
82
|
+
# A publicly available email address for sending support issues to.
|
83
|
+
attr_reader :support_email
|
84
|
+
# A publicly available phone number to call with support issues.
|
85
|
+
attr_reader :support_phone
|
86
|
+
# A publicly available website for handling support issues.
|
87
|
+
attr_reader :support_url
|
88
|
+
# The business's publicly available website.
|
89
|
+
attr_reader :url
|
90
|
+
end
|
91
|
+
|
92
|
+
class Capabilities < Stripe::StripeObject
|
93
|
+
# The status of the Canadian pre-authorized debits payments capability of the account, or whether the account can directly process Canadian pre-authorized debits charges.
|
94
|
+
attr_reader :acss_debit_payments
|
95
|
+
# The status of the Affirm capability of the account, or whether the account can directly process Affirm charges.
|
96
|
+
attr_reader :affirm_payments
|
97
|
+
# The status of the Afterpay Clearpay capability of the account, or whether the account can directly process Afterpay Clearpay charges.
|
98
|
+
attr_reader :afterpay_clearpay_payments
|
99
|
+
# The status of the Alma capability of the account, or whether the account can directly process Alma payments.
|
100
|
+
attr_reader :alma_payments
|
101
|
+
# The status of the AmazonPay capability of the account, or whether the account can directly process AmazonPay payments.
|
102
|
+
attr_reader :amazon_pay_payments
|
103
|
+
# The status of the BECS Direct Debit (AU) payments capability of the account, or whether the account can directly process BECS Direct Debit (AU) charges.
|
104
|
+
attr_reader :au_becs_debit_payments
|
105
|
+
# The status of the Bacs Direct Debits payments capability of the account, or whether the account can directly process Bacs Direct Debits charges.
|
106
|
+
attr_reader :bacs_debit_payments
|
107
|
+
# The status of the Bancontact payments capability of the account, or whether the account can directly process Bancontact charges.
|
108
|
+
attr_reader :bancontact_payments
|
109
|
+
# The status of the customer_balance payments capability of the account, or whether the account can directly process customer_balance charges.
|
110
|
+
attr_reader :bank_transfer_payments
|
111
|
+
# The status of the Billie capability of the account, or whether the account can directly process Billie payments.
|
112
|
+
attr_reader :billie_payments
|
113
|
+
# The status of the blik payments capability of the account, or whether the account can directly process blik charges.
|
114
|
+
attr_reader :blik_payments
|
115
|
+
# The status of the boleto payments capability of the account, or whether the account can directly process boleto charges.
|
116
|
+
attr_reader :boleto_payments
|
117
|
+
# The status of the card issuing capability of the account, or whether you can use Issuing to distribute funds on cards
|
118
|
+
attr_reader :card_issuing
|
119
|
+
# The status of the card payments capability of the account, or whether the account can directly process credit and debit card charges.
|
120
|
+
attr_reader :card_payments
|
121
|
+
# The status of the Cartes Bancaires payments capability of the account, or whether the account can directly process Cartes Bancaires card charges in EUR currency.
|
122
|
+
attr_reader :cartes_bancaires_payments
|
123
|
+
# The status of the Cash App Pay capability of the account, or whether the account can directly process Cash App Pay payments.
|
124
|
+
attr_reader :cashapp_payments
|
125
|
+
# The status of the EPS payments capability of the account, or whether the account can directly process EPS charges.
|
126
|
+
attr_reader :eps_payments
|
127
|
+
# The status of the FPX payments capability of the account, or whether the account can directly process FPX charges.
|
128
|
+
attr_reader :fpx_payments
|
129
|
+
# The status of the GB customer_balance payments (GBP currency) capability of the account, or whether the account can directly process GB customer_balance charges.
|
130
|
+
attr_reader :gb_bank_transfer_payments
|
131
|
+
# The status of the giropay payments capability of the account, or whether the account can directly process giropay charges.
|
132
|
+
attr_reader :giropay_payments
|
133
|
+
# The status of the GrabPay payments capability of the account, or whether the account can directly process GrabPay charges.
|
134
|
+
attr_reader :grabpay_payments
|
135
|
+
# The status of the iDEAL payments capability of the account, or whether the account can directly process iDEAL charges.
|
136
|
+
attr_reader :ideal_payments
|
137
|
+
# The status of the india_international_payments capability of the account, or whether the account can process international charges (non INR) in India.
|
138
|
+
attr_reader :india_international_payments
|
139
|
+
# The status of the JCB payments capability of the account, or whether the account (Japan only) can directly process JCB credit card charges in JPY currency.
|
140
|
+
attr_reader :jcb_payments
|
141
|
+
# The status of the Japanese customer_balance payments (JPY currency) capability of the account, or whether the account can directly process Japanese customer_balance charges.
|
142
|
+
attr_reader :jp_bank_transfer_payments
|
143
|
+
# The status of the KakaoPay capability of the account, or whether the account can directly process KakaoPay payments.
|
144
|
+
attr_reader :kakao_pay_payments
|
145
|
+
# The status of the Klarna payments capability of the account, or whether the account can directly process Klarna charges.
|
146
|
+
attr_reader :klarna_payments
|
147
|
+
# The status of the konbini payments capability of the account, or whether the account can directly process konbini charges.
|
148
|
+
attr_reader :konbini_payments
|
149
|
+
# The status of the KrCard capability of the account, or whether the account can directly process KrCard payments.
|
150
|
+
attr_reader :kr_card_payments
|
151
|
+
# The status of the legacy payments capability of the account.
|
152
|
+
attr_reader :legacy_payments
|
153
|
+
# The status of the link_payments capability of the account, or whether the account can directly process Link charges.
|
154
|
+
attr_reader :link_payments
|
155
|
+
# The status of the MobilePay capability of the account, or whether the account can directly process MobilePay charges.
|
156
|
+
attr_reader :mobilepay_payments
|
157
|
+
# The status of the Multibanco payments capability of the account, or whether the account can directly process Multibanco charges.
|
158
|
+
attr_reader :multibanco_payments
|
159
|
+
# The status of the Mexican customer_balance payments (MXN currency) capability of the account, or whether the account can directly process Mexican customer_balance charges.
|
160
|
+
attr_reader :mx_bank_transfer_payments
|
161
|
+
# The status of the NaverPay capability of the account, or whether the account can directly process NaverPay payments.
|
162
|
+
attr_reader :naver_pay_payments
|
163
|
+
# The status of the New Zealand BECS Direct Debit payments capability of the account, or whether the account can directly process New Zealand BECS Direct Debit charges.
|
164
|
+
attr_reader :nz_bank_account_becs_debit_payments
|
165
|
+
# The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.
|
166
|
+
attr_reader :oxxo_payments
|
167
|
+
# The status of the P24 payments capability of the account, or whether the account can directly process P24 charges.
|
168
|
+
attr_reader :p24_payments
|
169
|
+
# The status of the pay_by_bank payments capability of the account, or whether the account can directly process pay_by_bank charges.
|
170
|
+
attr_reader :pay_by_bank_payments
|
171
|
+
# The status of the Payco capability of the account, or whether the account can directly process Payco payments.
|
172
|
+
attr_reader :payco_payments
|
173
|
+
# The status of the paynow payments capability of the account, or whether the account can directly process paynow charges.
|
174
|
+
attr_reader :paynow_payments
|
175
|
+
# The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
|
176
|
+
attr_reader :promptpay_payments
|
177
|
+
# The status of the RevolutPay capability of the account, or whether the account can directly process RevolutPay payments.
|
178
|
+
attr_reader :revolut_pay_payments
|
179
|
+
# The status of the SamsungPay capability of the account, or whether the account can directly process SamsungPay payments.
|
180
|
+
attr_reader :samsung_pay_payments
|
181
|
+
# The status of the Satispay capability of the account, or whether the account can directly process Satispay payments.
|
182
|
+
attr_reader :satispay_payments
|
183
|
+
# The status of the SEPA customer_balance payments (EUR currency) capability of the account, or whether the account can directly process SEPA customer_balance charges.
|
184
|
+
attr_reader :sepa_bank_transfer_payments
|
185
|
+
# The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
|
186
|
+
attr_reader :sepa_debit_payments
|
187
|
+
# The status of the Sofort payments capability of the account, or whether the account can directly process Sofort charges.
|
188
|
+
attr_reader :sofort_payments
|
189
|
+
# The status of the Swish capability of the account, or whether the account can directly process Swish payments.
|
190
|
+
attr_reader :swish_payments
|
191
|
+
# The status of the tax reporting 1099-K (US) capability of the account.
|
192
|
+
attr_reader :tax_reporting_us_1099_k
|
193
|
+
# The status of the tax reporting 1099-MISC (US) capability of the account.
|
194
|
+
attr_reader :tax_reporting_us_1099_misc
|
195
|
+
# The status of the transfers capability of the account, or whether your platform can transfer funds to the account.
|
196
|
+
attr_reader :transfers
|
197
|
+
# The status of the banking capability, or whether the account can have bank accounts.
|
198
|
+
attr_reader :treasury
|
199
|
+
# The status of the TWINT capability of the account, or whether the account can directly process TWINT charges.
|
200
|
+
attr_reader :twint_payments
|
201
|
+
# The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges.
|
202
|
+
attr_reader :us_bank_account_ach_payments
|
203
|
+
# The status of the US customer_balance payments (USD currency) capability of the account, or whether the account can directly process US customer_balance charges.
|
204
|
+
attr_reader :us_bank_transfer_payments
|
205
|
+
# The status of the Zip capability of the account, or whether the account can directly process Zip charges.
|
206
|
+
attr_reader :zip_payments
|
207
|
+
end
|
208
|
+
|
209
|
+
class Company < Stripe::StripeObject
|
210
|
+
class Address < Stripe::StripeObject
|
211
|
+
# City, district, suburb, town, or village.
|
212
|
+
attr_reader :city
|
213
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
214
|
+
attr_reader :country
|
215
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
216
|
+
attr_reader :line1
|
217
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
218
|
+
attr_reader :line2
|
219
|
+
# ZIP or postal code.
|
220
|
+
attr_reader :postal_code
|
221
|
+
# State, county, province, or region.
|
222
|
+
attr_reader :state
|
223
|
+
end
|
224
|
+
|
225
|
+
class AddressKana < Stripe::StripeObject
|
226
|
+
# City/Ward.
|
227
|
+
attr_reader :city
|
228
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
229
|
+
attr_reader :country
|
230
|
+
# Block/Building number.
|
231
|
+
attr_reader :line1
|
232
|
+
# Building details.
|
233
|
+
attr_reader :line2
|
234
|
+
# ZIP or postal code.
|
235
|
+
attr_reader :postal_code
|
236
|
+
# Prefecture.
|
237
|
+
attr_reader :state
|
238
|
+
# Town/cho-me.
|
239
|
+
attr_reader :town
|
240
|
+
end
|
241
|
+
|
242
|
+
class AddressKanji < Stripe::StripeObject
|
243
|
+
# City/Ward.
|
244
|
+
attr_reader :city
|
245
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
246
|
+
attr_reader :country
|
247
|
+
# Block/Building number.
|
248
|
+
attr_reader :line1
|
249
|
+
# Building details.
|
250
|
+
attr_reader :line2
|
251
|
+
# ZIP or postal code.
|
252
|
+
attr_reader :postal_code
|
253
|
+
# Prefecture.
|
254
|
+
attr_reader :state
|
255
|
+
# Town/cho-me.
|
256
|
+
attr_reader :town
|
257
|
+
end
|
258
|
+
|
259
|
+
class DirectorshipDeclaration < Stripe::StripeObject
|
260
|
+
# The Unix timestamp marking when the directorship declaration attestation was made.
|
261
|
+
attr_reader :date
|
262
|
+
# The IP address from which the directorship declaration attestation was made.
|
263
|
+
attr_reader :ip
|
264
|
+
# The user-agent string from the browser where the directorship declaration attestation was made.
|
265
|
+
attr_reader :user_agent
|
266
|
+
end
|
267
|
+
|
268
|
+
class OwnershipDeclaration < Stripe::StripeObject
|
269
|
+
# The Unix timestamp marking when the beneficial owner attestation was made.
|
270
|
+
attr_reader :date
|
271
|
+
# The IP address from which the beneficial owner attestation was made.
|
272
|
+
attr_reader :ip
|
273
|
+
# The user-agent string from the browser where the beneficial owner attestation was made.
|
274
|
+
attr_reader :user_agent
|
275
|
+
end
|
276
|
+
|
277
|
+
class Verification < Stripe::StripeObject
|
278
|
+
class Document < Stripe::StripeObject
|
279
|
+
# The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
|
280
|
+
attr_reader :back
|
281
|
+
# A user-displayable string describing the verification state of this document.
|
282
|
+
attr_reader :details
|
283
|
+
# One of `document_corrupt`, `document_expired`, `document_failed_copy`, `document_failed_greyscale`, `document_failed_other`, `document_failed_test_mode`, `document_fraudulent`, `document_incomplete`, `document_invalid`, `document_manipulated`, `document_not_readable`, `document_not_uploaded`, `document_type_not_supported`, or `document_too_large`. A machine-readable code specifying the verification state for this document.
|
284
|
+
attr_reader :details_code
|
285
|
+
# The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
|
286
|
+
attr_reader :front
|
287
|
+
end
|
288
|
+
# Attribute for field document
|
289
|
+
attr_reader :document
|
290
|
+
end
|
291
|
+
# Attribute for field address
|
292
|
+
attr_reader :address
|
293
|
+
# The Kana variation of the company's primary address (Japan only).
|
294
|
+
attr_reader :address_kana
|
295
|
+
# The Kanji variation of the company's primary address (Japan only).
|
296
|
+
attr_reader :address_kanji
|
297
|
+
# Whether the company's directors have been provided. This Boolean will be `true` if you've manually indicated that all directors are provided via [the `directors_provided` parameter](https://stripe.com/docs/api/accounts/update#update_account-company-directors_provided).
|
298
|
+
attr_reader :directors_provided
|
299
|
+
# This hash is used to attest that the director information provided to Stripe is both current and correct.
|
300
|
+
attr_reader :directorship_declaration
|
301
|
+
# Whether the company's executives have been provided. This Boolean will be `true` if you've manually indicated that all executives are provided via [the `executives_provided` parameter](https://stripe.com/docs/api/accounts/update#update_account-company-executives_provided), or if Stripe determined that sufficient executives were provided.
|
302
|
+
attr_reader :executives_provided
|
303
|
+
# The export license ID number of the company, also referred as Import Export Code (India only).
|
304
|
+
attr_reader :export_license_id
|
305
|
+
# The purpose code to use for export transactions (India only).
|
306
|
+
attr_reader :export_purpose_code
|
307
|
+
# The company's legal name. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
|
308
|
+
attr_reader :name
|
309
|
+
# The Kana variation of the company's legal name (Japan only). Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
|
310
|
+
attr_reader :name_kana
|
311
|
+
# The Kanji variation of the company's legal name (Japan only). Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
|
312
|
+
attr_reader :name_kanji
|
313
|
+
# Whether the company's owners have been provided. This Boolean will be `true` if you've manually indicated that all owners are provided via [the `owners_provided` parameter](https://stripe.com/docs/api/accounts/update#update_account-company-owners_provided), or if Stripe determined that sufficient owners were provided. Stripe determines ownership requirements using both the number of owners provided and their total percent ownership (calculated by adding the `percent_ownership` of each owner together).
|
314
|
+
attr_reader :owners_provided
|
315
|
+
# This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
|
316
|
+
attr_reader :ownership_declaration
|
317
|
+
# This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
|
318
|
+
attr_reader :ownership_exemption_reason
|
319
|
+
# The company's phone number (used for verification).
|
320
|
+
attr_reader :phone
|
321
|
+
# The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details.
|
322
|
+
attr_reader :structure
|
323
|
+
# Whether the company's business ID number was provided.
|
324
|
+
attr_reader :tax_id_provided
|
325
|
+
# The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
|
326
|
+
attr_reader :tax_id_registrar
|
327
|
+
# Whether the company's business VAT number was provided.
|
328
|
+
attr_reader :vat_id_provided
|
329
|
+
# Information on the verification state of the company.
|
330
|
+
attr_reader :verification
|
331
|
+
end
|
332
|
+
|
333
|
+
class Controller < Stripe::StripeObject
|
334
|
+
class Fees < Stripe::StripeObject
|
335
|
+
# A value indicating the responsible payer of a bundle of Stripe fees for pricing-control eligible products on this account. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior).
|
336
|
+
attr_reader :payer
|
337
|
+
end
|
338
|
+
|
339
|
+
class Losses < Stripe::StripeObject
|
340
|
+
# A value indicating who is liable when this account can't pay back negative balances from payments.
|
341
|
+
attr_reader :payments
|
342
|
+
end
|
343
|
+
|
344
|
+
class StripeDashboard < Stripe::StripeObject
|
345
|
+
# A value indicating the Stripe dashboard this account has access to independent of the Connect application.
|
346
|
+
attr_reader :type
|
347
|
+
end
|
348
|
+
# Attribute for field fees
|
349
|
+
attr_reader :fees
|
350
|
+
# `true` if the Connect application retrieving the resource controls the account and can therefore exercise [platform controls](https://stripe.com/docs/connect/platform-controls-for-standard-accounts). Otherwise, this field is null.
|
351
|
+
attr_reader :is_controller
|
352
|
+
# Attribute for field losses
|
353
|
+
attr_reader :losses
|
354
|
+
# A value indicating responsibility for collecting requirements on this account. Only returned when the Connect application retrieving the resource controls the account.
|
355
|
+
attr_reader :requirement_collection
|
356
|
+
# Attribute for field stripe_dashboard
|
357
|
+
attr_reader :stripe_dashboard
|
358
|
+
# The controller type. Can be `application`, if a Connect application controls the account, or `account`, if the account controls itself.
|
359
|
+
attr_reader :type
|
360
|
+
end
|
361
|
+
|
362
|
+
class FutureRequirements < Stripe::StripeObject
|
363
|
+
class Alternative < Stripe::StripeObject
|
364
|
+
# Fields that can be provided to satisfy all fields in `original_fields_due`.
|
365
|
+
attr_reader :alternative_fields_due
|
366
|
+
# Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`.
|
367
|
+
attr_reader :original_fields_due
|
368
|
+
end
|
369
|
+
|
370
|
+
class Error < Stripe::StripeObject
|
371
|
+
# The code for the type of error.
|
372
|
+
attr_reader :code
|
373
|
+
# An informative message that indicates the error type and provides additional details about the error.
|
374
|
+
attr_reader :reason
|
375
|
+
# The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
376
|
+
attr_reader :requirement
|
377
|
+
end
|
378
|
+
# Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
379
|
+
attr_reader :alternatives
|
380
|
+
# Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning.
|
381
|
+
attr_reader :current_deadline
|
382
|
+
# Fields that need to be collected to keep the account enabled. If not collected by `future_requirements[current_deadline]`, these fields will transition to the main `requirements` hash.
|
383
|
+
attr_reader :currently_due
|
384
|
+
# This is typed as an enum for consistency with `requirements.disabled_reason`.
|
385
|
+
attr_reader :disabled_reason
|
386
|
+
# Fields that are `currently_due` and need to be collected again because validation or verification failed.
|
387
|
+
attr_reader :errors
|
388
|
+
# Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well.
|
389
|
+
attr_reader :eventually_due
|
390
|
+
# Fields that weren't collected by `requirements.current_deadline`. These fields need to be collected to enable the capability on the account. New fields will never appear here; `future_requirements.past_due` will always be a subset of `requirements.past_due`.
|
391
|
+
attr_reader :past_due
|
392
|
+
# Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due` or `currently_due`. Fields might appear in `eventually_due` or `currently_due` and in `pending_verification` if verification fails but another verification is still pending.
|
393
|
+
attr_reader :pending_verification
|
394
|
+
end
|
395
|
+
|
396
|
+
class Groups < Stripe::StripeObject
|
397
|
+
# The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
|
398
|
+
attr_reader :payments_pricing
|
399
|
+
end
|
400
|
+
|
401
|
+
class Requirements < Stripe::StripeObject
|
402
|
+
class Alternative < Stripe::StripeObject
|
403
|
+
# Fields that can be provided to satisfy all fields in `original_fields_due`.
|
404
|
+
attr_reader :alternative_fields_due
|
405
|
+
# Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`.
|
406
|
+
attr_reader :original_fields_due
|
407
|
+
end
|
408
|
+
|
409
|
+
class Error < Stripe::StripeObject
|
410
|
+
# The code for the type of error.
|
411
|
+
attr_reader :code
|
412
|
+
# An informative message that indicates the error type and provides additional details about the error.
|
413
|
+
attr_reader :reason
|
414
|
+
# The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
415
|
+
attr_reader :requirement
|
416
|
+
end
|
417
|
+
# Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
418
|
+
attr_reader :alternatives
|
419
|
+
# Date by which the fields in `currently_due` must be collected to keep the account enabled. These fields may disable the account sooner if the next threshold is reached before they are collected.
|
420
|
+
attr_reader :current_deadline
|
421
|
+
# Fields that need to be collected to keep the account enabled. If not collected by `current_deadline`, these fields appear in `past_due` as well, and the account is disabled.
|
422
|
+
attr_reader :currently_due
|
423
|
+
# If the account is disabled, this enum describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification).
|
424
|
+
attr_reader :disabled_reason
|
425
|
+
# Fields that are `currently_due` and need to be collected again because validation or verification failed.
|
426
|
+
attr_reader :errors
|
427
|
+
# Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
|
428
|
+
attr_reader :eventually_due
|
429
|
+
# Fields that weren't collected by `current_deadline`. These fields need to be collected to enable the account.
|
430
|
+
attr_reader :past_due
|
431
|
+
# Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
432
|
+
attr_reader :pending_verification
|
433
|
+
end
|
434
|
+
|
435
|
+
class Settings < Stripe::StripeObject
|
436
|
+
class BacsDebitPayments < Stripe::StripeObject
|
437
|
+
# The Bacs Direct Debit display name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. The fee appears 5 business days after requesting Bacs. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free.
|
438
|
+
attr_reader :display_name
|
439
|
+
# The Bacs Direct Debit Service user number for this account. For payments made with Bacs Direct Debit, this number is a unique identifier of the account with our banking partners.
|
440
|
+
attr_reader :service_user_number
|
441
|
+
end
|
442
|
+
|
443
|
+
class Branding < Stripe::StripeObject
|
444
|
+
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.
|
445
|
+
attr_reader :icon
|
446
|
+
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A logo for the account that will be used in Checkout instead of the icon and without the account's name next to it if provided. Must be at least 128px x 128px.
|
447
|
+
attr_reader :logo
|
448
|
+
# A CSS hex color value representing the primary branding color for this account
|
449
|
+
attr_reader :primary_color
|
450
|
+
# A CSS hex color value representing the secondary branding color for this account
|
451
|
+
attr_reader :secondary_color
|
452
|
+
end
|
453
|
+
|
454
|
+
class CardIssuing < Stripe::StripeObject
|
455
|
+
class TosAcceptance < Stripe::StripeObject
|
456
|
+
# The Unix timestamp marking when the account representative accepted the service agreement.
|
457
|
+
attr_reader :date
|
458
|
+
# The IP address from which the account representative accepted the service agreement.
|
459
|
+
attr_reader :ip
|
460
|
+
# The user agent of the browser from which the account representative accepted the service agreement.
|
461
|
+
attr_reader :user_agent
|
462
|
+
end
|
463
|
+
# Attribute for field tos_acceptance
|
464
|
+
attr_reader :tos_acceptance
|
465
|
+
end
|
466
|
+
|
467
|
+
class CardPayments < Stripe::StripeObject
|
468
|
+
class DeclineOn < Stripe::StripeObject
|
469
|
+
# Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification.
|
470
|
+
attr_reader :avs_failure
|
471
|
+
# Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
|
472
|
+
attr_reader :cvc_failure
|
473
|
+
end
|
474
|
+
# Attribute for field decline_on
|
475
|
+
attr_reader :decline_on
|
476
|
+
# The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge. `statement_descriptor_prefix` is useful for maximizing descriptor space for the dynamic portion.
|
477
|
+
attr_reader :statement_descriptor_prefix
|
478
|
+
# The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kana` specified on the charge. `statement_descriptor_prefix_kana` is useful for maximizing descriptor space for the dynamic portion.
|
479
|
+
attr_reader :statement_descriptor_prefix_kana
|
480
|
+
# The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kanji` specified on the charge. `statement_descriptor_prefix_kanji` is useful for maximizing descriptor space for the dynamic portion.
|
481
|
+
attr_reader :statement_descriptor_prefix_kanji
|
482
|
+
end
|
483
|
+
|
484
|
+
class Dashboard < Stripe::StripeObject
|
485
|
+
# The display name for this account. This is used on the Stripe Dashboard to differentiate between accounts.
|
486
|
+
attr_reader :display_name
|
487
|
+
# The timezone used in the Stripe Dashboard for this account. A list of possible time zone values is maintained at the [IANA Time Zone Database](http://www.iana.org/time-zones).
|
488
|
+
attr_reader :timezone
|
489
|
+
end
|
490
|
+
|
491
|
+
class Invoices < Stripe::StripeObject
|
492
|
+
# The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
|
493
|
+
attr_reader :default_account_tax_ids
|
494
|
+
# Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
|
495
|
+
attr_reader :hosted_payment_method_save
|
496
|
+
end
|
497
|
+
|
498
|
+
class Payments < Stripe::StripeObject
|
499
|
+
# The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge.
|
500
|
+
attr_reader :statement_descriptor
|
501
|
+
# The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
|
502
|
+
attr_reader :statement_descriptor_kana
|
503
|
+
# The Kanji variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
|
504
|
+
attr_reader :statement_descriptor_kanji
|
505
|
+
# The Kana variation of `statement_descriptor_prefix` used for card charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
|
506
|
+
attr_reader :statement_descriptor_prefix_kana
|
507
|
+
# The Kanji variation of `statement_descriptor_prefix` used for card charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
|
508
|
+
attr_reader :statement_descriptor_prefix_kanji
|
509
|
+
end
|
510
|
+
|
511
|
+
class Payouts < Stripe::StripeObject
|
512
|
+
class Schedule < Stripe::StripeObject
|
513
|
+
# The number of days charges for the account will be held before being paid out.
|
514
|
+
attr_reader :delay_days
|
515
|
+
# How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`.
|
516
|
+
attr_reader :interval
|
517
|
+
# The day of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
|
518
|
+
attr_reader :monthly_anchor
|
519
|
+
# The day of the week funds will be paid out, of the style 'monday', 'tuesday', etc. Only shown if `interval` is weekly.
|
520
|
+
attr_reader :weekly_anchor
|
521
|
+
end
|
522
|
+
# A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
|
523
|
+
attr_reader :debit_negative_balances
|
524
|
+
# Attribute for field schedule
|
525
|
+
attr_reader :schedule
|
526
|
+
# The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
|
527
|
+
attr_reader :statement_descriptor
|
528
|
+
end
|
529
|
+
|
530
|
+
class SepaDebitPayments < Stripe::StripeObject
|
531
|
+
# SEPA creditor identifier that identifies the company making the payment.
|
532
|
+
attr_reader :creditor_id
|
533
|
+
end
|
534
|
+
|
535
|
+
class Treasury < Stripe::StripeObject
|
536
|
+
class TosAcceptance < Stripe::StripeObject
|
537
|
+
# The Unix timestamp marking when the account representative accepted the service agreement.
|
538
|
+
attr_reader :date
|
539
|
+
# The IP address from which the account representative accepted the service agreement.
|
540
|
+
attr_reader :ip
|
541
|
+
# The user agent of the browser from which the account representative accepted the service agreement.
|
542
|
+
attr_reader :user_agent
|
543
|
+
end
|
544
|
+
# Attribute for field tos_acceptance
|
545
|
+
attr_reader :tos_acceptance
|
546
|
+
end
|
547
|
+
# Attribute for field bacs_debit_payments
|
548
|
+
attr_reader :bacs_debit_payments
|
549
|
+
# Attribute for field branding
|
550
|
+
attr_reader :branding
|
551
|
+
# Attribute for field card_issuing
|
552
|
+
attr_reader :card_issuing
|
553
|
+
# Attribute for field card_payments
|
554
|
+
attr_reader :card_payments
|
555
|
+
# Attribute for field dashboard
|
556
|
+
attr_reader :dashboard
|
557
|
+
# Attribute for field invoices
|
558
|
+
attr_reader :invoices
|
559
|
+
# Attribute for field payments
|
560
|
+
attr_reader :payments
|
561
|
+
# Attribute for field payouts
|
562
|
+
attr_reader :payouts
|
563
|
+
# Attribute for field sepa_debit_payments
|
564
|
+
attr_reader :sepa_debit_payments
|
565
|
+
# Attribute for field treasury
|
566
|
+
attr_reader :treasury
|
567
|
+
end
|
568
|
+
|
569
|
+
class TosAcceptance < Stripe::StripeObject
|
570
|
+
# The Unix timestamp marking when the account representative accepted their service agreement
|
571
|
+
attr_reader :date
|
572
|
+
# The IP address from which the account representative accepted their service agreement
|
573
|
+
attr_reader :ip
|
574
|
+
# The user's service agreement type
|
575
|
+
attr_reader :service_agreement
|
576
|
+
# The user agent of the browser from which the account representative accepted their service agreement
|
577
|
+
attr_reader :user_agent
|
578
|
+
end
|
579
|
+
|
580
|
+
class DeleteParams < Stripe::RequestParams
|
581
|
+
end
|
582
|
+
|
583
|
+
class UpdateParams < Stripe::RequestParams
|
584
|
+
class BankAccount < Stripe::RequestParams
|
585
|
+
# Attribute for param field object
|
586
|
+
attr_accessor :object
|
587
|
+
# The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object.
|
588
|
+
attr_accessor :account_holder_name
|
589
|
+
# The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
|
590
|
+
attr_accessor :account_holder_type
|
591
|
+
# The account number for the bank account, in string form. Must be a checking account.
|
592
|
+
attr_accessor :account_number
|
593
|
+
# The country in which the bank account is located.
|
594
|
+
attr_accessor :country
|
595
|
+
# The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
|
596
|
+
attr_accessor :currency
|
597
|
+
# The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required.
|
598
|
+
attr_accessor :routing_number
|
599
|
+
|
600
|
+
def initialize(
|
601
|
+
object: nil,
|
602
|
+
account_holder_name: nil,
|
603
|
+
account_holder_type: nil,
|
604
|
+
account_number: nil,
|
605
|
+
country: nil,
|
606
|
+
currency: nil,
|
607
|
+
routing_number: nil
|
608
|
+
)
|
609
|
+
@object = object
|
610
|
+
@account_holder_name = account_holder_name
|
611
|
+
@account_holder_type = account_holder_type
|
612
|
+
@account_number = account_number
|
613
|
+
@country = country
|
614
|
+
@currency = currency
|
615
|
+
@routing_number = routing_number
|
616
|
+
end
|
617
|
+
end
|
618
|
+
|
619
|
+
class BusinessProfile < Stripe::RequestParams
|
620
|
+
class AnnualRevenue < Stripe::RequestParams
|
621
|
+
# A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal).
|
622
|
+
attr_accessor :amount
|
623
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
624
|
+
attr_accessor :currency
|
625
|
+
# The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
|
626
|
+
attr_accessor :fiscal_year_end
|
627
|
+
|
628
|
+
def initialize(amount: nil, currency: nil, fiscal_year_end: nil)
|
629
|
+
@amount = amount
|
630
|
+
@currency = currency
|
631
|
+
@fiscal_year_end = fiscal_year_end
|
632
|
+
end
|
633
|
+
end
|
634
|
+
|
635
|
+
class MonthlyEstimatedRevenue < Stripe::RequestParams
|
636
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal).
|
637
|
+
attr_accessor :amount
|
638
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
639
|
+
attr_accessor :currency
|
640
|
+
|
641
|
+
def initialize(amount: nil, currency: nil)
|
642
|
+
@amount = amount
|
643
|
+
@currency = currency
|
644
|
+
end
|
645
|
+
end
|
646
|
+
|
647
|
+
class SupportAddress < Stripe::RequestParams
|
648
|
+
# City, district, suburb, town, or village.
|
649
|
+
attr_accessor :city
|
650
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
651
|
+
attr_accessor :country
|
652
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
653
|
+
attr_accessor :line1
|
654
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
655
|
+
attr_accessor :line2
|
656
|
+
# ZIP or postal code.
|
657
|
+
attr_accessor :postal_code
|
658
|
+
# State, county, province, or region.
|
659
|
+
attr_accessor :state
|
660
|
+
|
661
|
+
def initialize(
|
662
|
+
city: nil,
|
663
|
+
country: nil,
|
664
|
+
line1: nil,
|
665
|
+
line2: nil,
|
666
|
+
postal_code: nil,
|
667
|
+
state: nil
|
668
|
+
)
|
669
|
+
@city = city
|
670
|
+
@country = country
|
671
|
+
@line1 = line1
|
672
|
+
@line2 = line2
|
673
|
+
@postal_code = postal_code
|
674
|
+
@state = state
|
675
|
+
end
|
676
|
+
end
|
677
|
+
# The applicant's gross annual revenue for its preceding fiscal year.
|
678
|
+
attr_accessor :annual_revenue
|
679
|
+
# An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
|
680
|
+
attr_accessor :estimated_worker_count
|
681
|
+
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
|
682
|
+
attr_accessor :mcc
|
683
|
+
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
|
684
|
+
attr_accessor :monthly_estimated_revenue
|
685
|
+
# The customer-facing business name.
|
686
|
+
attr_accessor :name
|
687
|
+
# Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes.
|
688
|
+
attr_accessor :product_description
|
689
|
+
# A publicly available mailing address for sending support issues to.
|
690
|
+
attr_accessor :support_address
|
691
|
+
# A publicly available email address for sending support issues to.
|
692
|
+
attr_accessor :support_email
|
693
|
+
# A publicly available phone number to call with support issues.
|
694
|
+
attr_accessor :support_phone
|
695
|
+
# A publicly available website for handling support issues.
|
696
|
+
attr_accessor :support_url
|
697
|
+
# The business's publicly available website.
|
698
|
+
attr_accessor :url
|
699
|
+
|
700
|
+
def initialize(
|
701
|
+
annual_revenue: nil,
|
702
|
+
estimated_worker_count: nil,
|
703
|
+
mcc: nil,
|
704
|
+
monthly_estimated_revenue: nil,
|
705
|
+
name: nil,
|
706
|
+
product_description: nil,
|
707
|
+
support_address: nil,
|
708
|
+
support_email: nil,
|
709
|
+
support_phone: nil,
|
710
|
+
support_url: nil,
|
711
|
+
url: nil
|
712
|
+
)
|
713
|
+
@annual_revenue = annual_revenue
|
714
|
+
@estimated_worker_count = estimated_worker_count
|
715
|
+
@mcc = mcc
|
716
|
+
@monthly_estimated_revenue = monthly_estimated_revenue
|
717
|
+
@name = name
|
718
|
+
@product_description = product_description
|
719
|
+
@support_address = support_address
|
720
|
+
@support_email = support_email
|
721
|
+
@support_phone = support_phone
|
722
|
+
@support_url = support_url
|
723
|
+
@url = url
|
724
|
+
end
|
725
|
+
end
|
726
|
+
|
727
|
+
class Capabilities < Stripe::RequestParams
|
728
|
+
class AcssDebitPayments < Stripe::RequestParams
|
729
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
730
|
+
attr_accessor :requested
|
731
|
+
|
732
|
+
def initialize(requested: nil)
|
733
|
+
@requested = requested
|
734
|
+
end
|
735
|
+
end
|
736
|
+
|
737
|
+
class AffirmPayments < Stripe::RequestParams
|
738
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
739
|
+
attr_accessor :requested
|
740
|
+
|
741
|
+
def initialize(requested: nil)
|
742
|
+
@requested = requested
|
743
|
+
end
|
744
|
+
end
|
745
|
+
|
746
|
+
class AfterpayClearpayPayments < Stripe::RequestParams
|
747
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
748
|
+
attr_accessor :requested
|
749
|
+
|
750
|
+
def initialize(requested: nil)
|
751
|
+
@requested = requested
|
752
|
+
end
|
753
|
+
end
|
754
|
+
|
755
|
+
class AlmaPayments < Stripe::RequestParams
|
756
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
757
|
+
attr_accessor :requested
|
758
|
+
|
759
|
+
def initialize(requested: nil)
|
760
|
+
@requested = requested
|
761
|
+
end
|
762
|
+
end
|
763
|
+
|
764
|
+
class AmazonPayPayments < Stripe::RequestParams
|
765
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
766
|
+
attr_accessor :requested
|
767
|
+
|
768
|
+
def initialize(requested: nil)
|
769
|
+
@requested = requested
|
770
|
+
end
|
771
|
+
end
|
772
|
+
|
773
|
+
class AuBecsDebitPayments < Stripe::RequestParams
|
774
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
775
|
+
attr_accessor :requested
|
776
|
+
|
777
|
+
def initialize(requested: nil)
|
778
|
+
@requested = requested
|
779
|
+
end
|
780
|
+
end
|
781
|
+
|
782
|
+
class BacsDebitPayments < Stripe::RequestParams
|
783
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
784
|
+
attr_accessor :requested
|
785
|
+
|
786
|
+
def initialize(requested: nil)
|
787
|
+
@requested = requested
|
788
|
+
end
|
789
|
+
end
|
790
|
+
|
791
|
+
class BancontactPayments < Stripe::RequestParams
|
792
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
793
|
+
attr_accessor :requested
|
794
|
+
|
795
|
+
def initialize(requested: nil)
|
796
|
+
@requested = requested
|
797
|
+
end
|
798
|
+
end
|
799
|
+
|
800
|
+
class BankTransferPayments < Stripe::RequestParams
|
801
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
802
|
+
attr_accessor :requested
|
803
|
+
|
804
|
+
def initialize(requested: nil)
|
805
|
+
@requested = requested
|
806
|
+
end
|
807
|
+
end
|
808
|
+
|
809
|
+
class BilliePayments < Stripe::RequestParams
|
810
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
811
|
+
attr_accessor :requested
|
812
|
+
|
813
|
+
def initialize(requested: nil)
|
814
|
+
@requested = requested
|
815
|
+
end
|
816
|
+
end
|
817
|
+
|
818
|
+
class BlikPayments < Stripe::RequestParams
|
819
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
820
|
+
attr_accessor :requested
|
821
|
+
|
822
|
+
def initialize(requested: nil)
|
823
|
+
@requested = requested
|
824
|
+
end
|
825
|
+
end
|
826
|
+
|
827
|
+
class BoletoPayments < Stripe::RequestParams
|
828
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
829
|
+
attr_accessor :requested
|
830
|
+
|
831
|
+
def initialize(requested: nil)
|
832
|
+
@requested = requested
|
833
|
+
end
|
834
|
+
end
|
835
|
+
|
836
|
+
class CardIssuing < Stripe::RequestParams
|
837
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
838
|
+
attr_accessor :requested
|
839
|
+
|
840
|
+
def initialize(requested: nil)
|
841
|
+
@requested = requested
|
842
|
+
end
|
843
|
+
end
|
844
|
+
|
845
|
+
class CardPayments < Stripe::RequestParams
|
846
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
847
|
+
attr_accessor :requested
|
848
|
+
|
849
|
+
def initialize(requested: nil)
|
850
|
+
@requested = requested
|
851
|
+
end
|
852
|
+
end
|
853
|
+
|
854
|
+
class CartesBancairesPayments < Stripe::RequestParams
|
855
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
856
|
+
attr_accessor :requested
|
857
|
+
|
858
|
+
def initialize(requested: nil)
|
859
|
+
@requested = requested
|
860
|
+
end
|
861
|
+
end
|
862
|
+
|
863
|
+
class CashappPayments < Stripe::RequestParams
|
864
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
865
|
+
attr_accessor :requested
|
866
|
+
|
867
|
+
def initialize(requested: nil)
|
868
|
+
@requested = requested
|
869
|
+
end
|
870
|
+
end
|
871
|
+
|
872
|
+
class EpsPayments < Stripe::RequestParams
|
873
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
874
|
+
attr_accessor :requested
|
875
|
+
|
876
|
+
def initialize(requested: nil)
|
877
|
+
@requested = requested
|
878
|
+
end
|
879
|
+
end
|
880
|
+
|
881
|
+
class FpxPayments < Stripe::RequestParams
|
882
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
883
|
+
attr_accessor :requested
|
884
|
+
|
885
|
+
def initialize(requested: nil)
|
886
|
+
@requested = requested
|
887
|
+
end
|
888
|
+
end
|
889
|
+
|
890
|
+
class GbBankTransferPayments < Stripe::RequestParams
|
891
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
892
|
+
attr_accessor :requested
|
893
|
+
|
894
|
+
def initialize(requested: nil)
|
895
|
+
@requested = requested
|
896
|
+
end
|
897
|
+
end
|
898
|
+
|
899
|
+
class GiropayPayments < Stripe::RequestParams
|
900
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
901
|
+
attr_accessor :requested
|
902
|
+
|
903
|
+
def initialize(requested: nil)
|
904
|
+
@requested = requested
|
905
|
+
end
|
906
|
+
end
|
907
|
+
|
908
|
+
class GrabpayPayments < Stripe::RequestParams
|
909
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
910
|
+
attr_accessor :requested
|
911
|
+
|
912
|
+
def initialize(requested: nil)
|
913
|
+
@requested = requested
|
914
|
+
end
|
915
|
+
end
|
916
|
+
|
917
|
+
class IdealPayments < Stripe::RequestParams
|
918
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
919
|
+
attr_accessor :requested
|
920
|
+
|
921
|
+
def initialize(requested: nil)
|
922
|
+
@requested = requested
|
923
|
+
end
|
924
|
+
end
|
925
|
+
|
926
|
+
class IndiaInternationalPayments < Stripe::RequestParams
|
927
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
928
|
+
attr_accessor :requested
|
929
|
+
|
930
|
+
def initialize(requested: nil)
|
931
|
+
@requested = requested
|
932
|
+
end
|
933
|
+
end
|
934
|
+
|
935
|
+
class JcbPayments < Stripe::RequestParams
|
936
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
937
|
+
attr_accessor :requested
|
938
|
+
|
939
|
+
def initialize(requested: nil)
|
940
|
+
@requested = requested
|
941
|
+
end
|
942
|
+
end
|
943
|
+
|
944
|
+
class JpBankTransferPayments < Stripe::RequestParams
|
945
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
946
|
+
attr_accessor :requested
|
947
|
+
|
948
|
+
def initialize(requested: nil)
|
949
|
+
@requested = requested
|
950
|
+
end
|
951
|
+
end
|
952
|
+
|
953
|
+
class KakaoPayPayments < Stripe::RequestParams
|
954
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
955
|
+
attr_accessor :requested
|
956
|
+
|
957
|
+
def initialize(requested: nil)
|
958
|
+
@requested = requested
|
959
|
+
end
|
960
|
+
end
|
961
|
+
|
962
|
+
class KlarnaPayments < Stripe::RequestParams
|
963
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
964
|
+
attr_accessor :requested
|
965
|
+
|
966
|
+
def initialize(requested: nil)
|
967
|
+
@requested = requested
|
968
|
+
end
|
969
|
+
end
|
970
|
+
|
971
|
+
class KonbiniPayments < Stripe::RequestParams
|
972
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
973
|
+
attr_accessor :requested
|
974
|
+
|
975
|
+
def initialize(requested: nil)
|
976
|
+
@requested = requested
|
977
|
+
end
|
978
|
+
end
|
979
|
+
|
980
|
+
class KrCardPayments < Stripe::RequestParams
|
981
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
982
|
+
attr_accessor :requested
|
983
|
+
|
984
|
+
def initialize(requested: nil)
|
985
|
+
@requested = requested
|
986
|
+
end
|
987
|
+
end
|
988
|
+
|
989
|
+
class LegacyPayments < Stripe::RequestParams
|
990
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
991
|
+
attr_accessor :requested
|
992
|
+
|
993
|
+
def initialize(requested: nil)
|
994
|
+
@requested = requested
|
995
|
+
end
|
996
|
+
end
|
997
|
+
|
998
|
+
class LinkPayments < Stripe::RequestParams
|
999
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1000
|
+
attr_accessor :requested
|
1001
|
+
|
1002
|
+
def initialize(requested: nil)
|
1003
|
+
@requested = requested
|
1004
|
+
end
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
class MobilepayPayments < Stripe::RequestParams
|
1008
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1009
|
+
attr_accessor :requested
|
1010
|
+
|
1011
|
+
def initialize(requested: nil)
|
1012
|
+
@requested = requested
|
1013
|
+
end
|
1014
|
+
end
|
1015
|
+
|
1016
|
+
class MultibancoPayments < Stripe::RequestParams
|
1017
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1018
|
+
attr_accessor :requested
|
1019
|
+
|
1020
|
+
def initialize(requested: nil)
|
1021
|
+
@requested = requested
|
1022
|
+
end
|
1023
|
+
end
|
1024
|
+
|
1025
|
+
class MxBankTransferPayments < Stripe::RequestParams
|
1026
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1027
|
+
attr_accessor :requested
|
1028
|
+
|
1029
|
+
def initialize(requested: nil)
|
1030
|
+
@requested = requested
|
1031
|
+
end
|
1032
|
+
end
|
1033
|
+
|
1034
|
+
class NaverPayPayments < Stripe::RequestParams
|
1035
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1036
|
+
attr_accessor :requested
|
1037
|
+
|
1038
|
+
def initialize(requested: nil)
|
1039
|
+
@requested = requested
|
1040
|
+
end
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
class NzBankAccountBecsDebitPayments < Stripe::RequestParams
|
1044
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1045
|
+
attr_accessor :requested
|
1046
|
+
|
1047
|
+
def initialize(requested: nil)
|
1048
|
+
@requested = requested
|
1049
|
+
end
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
class OxxoPayments < Stripe::RequestParams
|
1053
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1054
|
+
attr_accessor :requested
|
1055
|
+
|
1056
|
+
def initialize(requested: nil)
|
1057
|
+
@requested = requested
|
1058
|
+
end
|
1059
|
+
end
|
1060
|
+
|
1061
|
+
class P24Payments < Stripe::RequestParams
|
1062
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1063
|
+
attr_accessor :requested
|
1064
|
+
|
1065
|
+
def initialize(requested: nil)
|
1066
|
+
@requested = requested
|
1067
|
+
end
|
1068
|
+
end
|
1069
|
+
|
1070
|
+
class PayByBankPayments < Stripe::RequestParams
|
1071
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1072
|
+
attr_accessor :requested
|
1073
|
+
|
1074
|
+
def initialize(requested: nil)
|
1075
|
+
@requested = requested
|
1076
|
+
end
|
1077
|
+
end
|
1078
|
+
|
1079
|
+
class PaycoPayments < Stripe::RequestParams
|
1080
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1081
|
+
attr_accessor :requested
|
1082
|
+
|
1083
|
+
def initialize(requested: nil)
|
1084
|
+
@requested = requested
|
1085
|
+
end
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
class PaynowPayments < Stripe::RequestParams
|
1089
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1090
|
+
attr_accessor :requested
|
1091
|
+
|
1092
|
+
def initialize(requested: nil)
|
1093
|
+
@requested = requested
|
1094
|
+
end
|
1095
|
+
end
|
1096
|
+
|
1097
|
+
class PromptpayPayments < Stripe::RequestParams
|
1098
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1099
|
+
attr_accessor :requested
|
1100
|
+
|
1101
|
+
def initialize(requested: nil)
|
1102
|
+
@requested = requested
|
1103
|
+
end
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
class RevolutPayPayments < Stripe::RequestParams
|
1107
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1108
|
+
attr_accessor :requested
|
1109
|
+
|
1110
|
+
def initialize(requested: nil)
|
1111
|
+
@requested = requested
|
1112
|
+
end
|
1113
|
+
end
|
1114
|
+
|
1115
|
+
class SamsungPayPayments < Stripe::RequestParams
|
1116
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1117
|
+
attr_accessor :requested
|
1118
|
+
|
1119
|
+
def initialize(requested: nil)
|
1120
|
+
@requested = requested
|
1121
|
+
end
|
1122
|
+
end
|
1123
|
+
|
1124
|
+
class SatispayPayments < Stripe::RequestParams
|
1125
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1126
|
+
attr_accessor :requested
|
1127
|
+
|
1128
|
+
def initialize(requested: nil)
|
1129
|
+
@requested = requested
|
1130
|
+
end
|
1131
|
+
end
|
1132
|
+
|
1133
|
+
class SepaBankTransferPayments < Stripe::RequestParams
|
1134
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1135
|
+
attr_accessor :requested
|
1136
|
+
|
1137
|
+
def initialize(requested: nil)
|
1138
|
+
@requested = requested
|
1139
|
+
end
|
1140
|
+
end
|
1141
|
+
|
1142
|
+
class SepaDebitPayments < Stripe::RequestParams
|
1143
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1144
|
+
attr_accessor :requested
|
1145
|
+
|
1146
|
+
def initialize(requested: nil)
|
1147
|
+
@requested = requested
|
1148
|
+
end
|
1149
|
+
end
|
1150
|
+
|
1151
|
+
class SofortPayments < Stripe::RequestParams
|
1152
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1153
|
+
attr_accessor :requested
|
1154
|
+
|
1155
|
+
def initialize(requested: nil)
|
1156
|
+
@requested = requested
|
1157
|
+
end
|
1158
|
+
end
|
1159
|
+
|
1160
|
+
class SwishPayments < Stripe::RequestParams
|
1161
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1162
|
+
attr_accessor :requested
|
1163
|
+
|
1164
|
+
def initialize(requested: nil)
|
1165
|
+
@requested = requested
|
1166
|
+
end
|
1167
|
+
end
|
1168
|
+
|
1169
|
+
class TaxReportingUs1099K < Stripe::RequestParams
|
1170
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1171
|
+
attr_accessor :requested
|
1172
|
+
|
1173
|
+
def initialize(requested: nil)
|
1174
|
+
@requested = requested
|
1175
|
+
end
|
1176
|
+
end
|
1177
|
+
|
1178
|
+
class TaxReportingUs1099Misc < Stripe::RequestParams
|
1179
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1180
|
+
attr_accessor :requested
|
1181
|
+
|
1182
|
+
def initialize(requested: nil)
|
1183
|
+
@requested = requested
|
1184
|
+
end
|
1185
|
+
end
|
1186
|
+
|
1187
|
+
class Transfers < Stripe::RequestParams
|
1188
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1189
|
+
attr_accessor :requested
|
1190
|
+
|
1191
|
+
def initialize(requested: nil)
|
1192
|
+
@requested = requested
|
1193
|
+
end
|
1194
|
+
end
|
1195
|
+
|
1196
|
+
class Treasury < Stripe::RequestParams
|
1197
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1198
|
+
attr_accessor :requested
|
1199
|
+
|
1200
|
+
def initialize(requested: nil)
|
1201
|
+
@requested = requested
|
1202
|
+
end
|
1203
|
+
end
|
1204
|
+
|
1205
|
+
class TwintPayments < Stripe::RequestParams
|
1206
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1207
|
+
attr_accessor :requested
|
1208
|
+
|
1209
|
+
def initialize(requested: nil)
|
1210
|
+
@requested = requested
|
1211
|
+
end
|
1212
|
+
end
|
1213
|
+
|
1214
|
+
class UsBankAccountAchPayments < Stripe::RequestParams
|
1215
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1216
|
+
attr_accessor :requested
|
1217
|
+
|
1218
|
+
def initialize(requested: nil)
|
1219
|
+
@requested = requested
|
1220
|
+
end
|
1221
|
+
end
|
1222
|
+
|
1223
|
+
class UsBankTransferPayments < Stripe::RequestParams
|
1224
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1225
|
+
attr_accessor :requested
|
1226
|
+
|
1227
|
+
def initialize(requested: nil)
|
1228
|
+
@requested = requested
|
1229
|
+
end
|
1230
|
+
end
|
1231
|
+
|
1232
|
+
class ZipPayments < Stripe::RequestParams
|
1233
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1234
|
+
attr_accessor :requested
|
1235
|
+
|
1236
|
+
def initialize(requested: nil)
|
1237
|
+
@requested = requested
|
1238
|
+
end
|
1239
|
+
end
|
1240
|
+
# The acss_debit_payments capability.
|
1241
|
+
attr_accessor :acss_debit_payments
|
1242
|
+
# The affirm_payments capability.
|
1243
|
+
attr_accessor :affirm_payments
|
1244
|
+
# The afterpay_clearpay_payments capability.
|
1245
|
+
attr_accessor :afterpay_clearpay_payments
|
1246
|
+
# The alma_payments capability.
|
1247
|
+
attr_accessor :alma_payments
|
1248
|
+
# The amazon_pay_payments capability.
|
1249
|
+
attr_accessor :amazon_pay_payments
|
1250
|
+
# The au_becs_debit_payments capability.
|
1251
|
+
attr_accessor :au_becs_debit_payments
|
1252
|
+
# The bacs_debit_payments capability.
|
1253
|
+
attr_accessor :bacs_debit_payments
|
1254
|
+
# The bancontact_payments capability.
|
1255
|
+
attr_accessor :bancontact_payments
|
1256
|
+
# The bank_transfer_payments capability.
|
1257
|
+
attr_accessor :bank_transfer_payments
|
1258
|
+
# The billie_payments capability.
|
1259
|
+
attr_accessor :billie_payments
|
1260
|
+
# The blik_payments capability.
|
1261
|
+
attr_accessor :blik_payments
|
1262
|
+
# The boleto_payments capability.
|
1263
|
+
attr_accessor :boleto_payments
|
1264
|
+
# The card_issuing capability.
|
1265
|
+
attr_accessor :card_issuing
|
1266
|
+
# The card_payments capability.
|
1267
|
+
attr_accessor :card_payments
|
1268
|
+
# The cartes_bancaires_payments capability.
|
1269
|
+
attr_accessor :cartes_bancaires_payments
|
1270
|
+
# The cashapp_payments capability.
|
1271
|
+
attr_accessor :cashapp_payments
|
1272
|
+
# The eps_payments capability.
|
1273
|
+
attr_accessor :eps_payments
|
1274
|
+
# The fpx_payments capability.
|
1275
|
+
attr_accessor :fpx_payments
|
1276
|
+
# The gb_bank_transfer_payments capability.
|
1277
|
+
attr_accessor :gb_bank_transfer_payments
|
1278
|
+
# The giropay_payments capability.
|
1279
|
+
attr_accessor :giropay_payments
|
1280
|
+
# The grabpay_payments capability.
|
1281
|
+
attr_accessor :grabpay_payments
|
1282
|
+
# The ideal_payments capability.
|
1283
|
+
attr_accessor :ideal_payments
|
1284
|
+
# The india_international_payments capability.
|
1285
|
+
attr_accessor :india_international_payments
|
1286
|
+
# The jcb_payments capability.
|
1287
|
+
attr_accessor :jcb_payments
|
1288
|
+
# The jp_bank_transfer_payments capability.
|
1289
|
+
attr_accessor :jp_bank_transfer_payments
|
1290
|
+
# The kakao_pay_payments capability.
|
1291
|
+
attr_accessor :kakao_pay_payments
|
1292
|
+
# The klarna_payments capability.
|
1293
|
+
attr_accessor :klarna_payments
|
1294
|
+
# The konbini_payments capability.
|
1295
|
+
attr_accessor :konbini_payments
|
1296
|
+
# The kr_card_payments capability.
|
1297
|
+
attr_accessor :kr_card_payments
|
1298
|
+
# The legacy_payments capability.
|
1299
|
+
attr_accessor :legacy_payments
|
1300
|
+
# The link_payments capability.
|
1301
|
+
attr_accessor :link_payments
|
1302
|
+
# The mobilepay_payments capability.
|
1303
|
+
attr_accessor :mobilepay_payments
|
1304
|
+
# The multibanco_payments capability.
|
1305
|
+
attr_accessor :multibanco_payments
|
1306
|
+
# The mx_bank_transfer_payments capability.
|
1307
|
+
attr_accessor :mx_bank_transfer_payments
|
1308
|
+
# The naver_pay_payments capability.
|
1309
|
+
attr_accessor :naver_pay_payments
|
1310
|
+
# The nz_bank_account_becs_debit_payments capability.
|
1311
|
+
attr_accessor :nz_bank_account_becs_debit_payments
|
1312
|
+
# The oxxo_payments capability.
|
1313
|
+
attr_accessor :oxxo_payments
|
1314
|
+
# The p24_payments capability.
|
1315
|
+
attr_accessor :p24_payments
|
1316
|
+
# The pay_by_bank_payments capability.
|
1317
|
+
attr_accessor :pay_by_bank_payments
|
1318
|
+
# The payco_payments capability.
|
1319
|
+
attr_accessor :payco_payments
|
1320
|
+
# The paynow_payments capability.
|
1321
|
+
attr_accessor :paynow_payments
|
1322
|
+
# The promptpay_payments capability.
|
1323
|
+
attr_accessor :promptpay_payments
|
1324
|
+
# The revolut_pay_payments capability.
|
1325
|
+
attr_accessor :revolut_pay_payments
|
1326
|
+
# The samsung_pay_payments capability.
|
1327
|
+
attr_accessor :samsung_pay_payments
|
1328
|
+
# The satispay_payments capability.
|
1329
|
+
attr_accessor :satispay_payments
|
1330
|
+
# The sepa_bank_transfer_payments capability.
|
1331
|
+
attr_accessor :sepa_bank_transfer_payments
|
1332
|
+
# The sepa_debit_payments capability.
|
1333
|
+
attr_accessor :sepa_debit_payments
|
1334
|
+
# The sofort_payments capability.
|
1335
|
+
attr_accessor :sofort_payments
|
1336
|
+
# The swish_payments capability.
|
1337
|
+
attr_accessor :swish_payments
|
1338
|
+
# The tax_reporting_us_1099_k capability.
|
1339
|
+
attr_accessor :tax_reporting_us_1099_k
|
1340
|
+
# The tax_reporting_us_1099_misc capability.
|
1341
|
+
attr_accessor :tax_reporting_us_1099_misc
|
1342
|
+
# The transfers capability.
|
1343
|
+
attr_accessor :transfers
|
1344
|
+
# The treasury capability.
|
1345
|
+
attr_accessor :treasury
|
1346
|
+
# The twint_payments capability.
|
1347
|
+
attr_accessor :twint_payments
|
1348
|
+
# The us_bank_account_ach_payments capability.
|
1349
|
+
attr_accessor :us_bank_account_ach_payments
|
1350
|
+
# The us_bank_transfer_payments capability.
|
1351
|
+
attr_accessor :us_bank_transfer_payments
|
1352
|
+
# The zip_payments capability.
|
1353
|
+
attr_accessor :zip_payments
|
1354
|
+
|
1355
|
+
def initialize(
|
1356
|
+
acss_debit_payments: nil,
|
1357
|
+
affirm_payments: nil,
|
1358
|
+
afterpay_clearpay_payments: nil,
|
1359
|
+
alma_payments: nil,
|
1360
|
+
amazon_pay_payments: nil,
|
1361
|
+
au_becs_debit_payments: nil,
|
1362
|
+
bacs_debit_payments: nil,
|
1363
|
+
bancontact_payments: nil,
|
1364
|
+
bank_transfer_payments: nil,
|
1365
|
+
billie_payments: nil,
|
1366
|
+
blik_payments: nil,
|
1367
|
+
boleto_payments: nil,
|
1368
|
+
card_issuing: nil,
|
1369
|
+
card_payments: nil,
|
1370
|
+
cartes_bancaires_payments: nil,
|
1371
|
+
cashapp_payments: nil,
|
1372
|
+
eps_payments: nil,
|
1373
|
+
fpx_payments: nil,
|
1374
|
+
gb_bank_transfer_payments: nil,
|
1375
|
+
giropay_payments: nil,
|
1376
|
+
grabpay_payments: nil,
|
1377
|
+
ideal_payments: nil,
|
1378
|
+
india_international_payments: nil,
|
1379
|
+
jcb_payments: nil,
|
1380
|
+
jp_bank_transfer_payments: nil,
|
1381
|
+
kakao_pay_payments: nil,
|
1382
|
+
klarna_payments: nil,
|
1383
|
+
konbini_payments: nil,
|
1384
|
+
kr_card_payments: nil,
|
1385
|
+
legacy_payments: nil,
|
1386
|
+
link_payments: nil,
|
1387
|
+
mobilepay_payments: nil,
|
1388
|
+
multibanco_payments: nil,
|
1389
|
+
mx_bank_transfer_payments: nil,
|
1390
|
+
naver_pay_payments: nil,
|
1391
|
+
nz_bank_account_becs_debit_payments: nil,
|
1392
|
+
oxxo_payments: nil,
|
1393
|
+
p24_payments: nil,
|
1394
|
+
pay_by_bank_payments: nil,
|
1395
|
+
payco_payments: nil,
|
1396
|
+
paynow_payments: nil,
|
1397
|
+
promptpay_payments: nil,
|
1398
|
+
revolut_pay_payments: nil,
|
1399
|
+
samsung_pay_payments: nil,
|
1400
|
+
satispay_payments: nil,
|
1401
|
+
sepa_bank_transfer_payments: nil,
|
1402
|
+
sepa_debit_payments: nil,
|
1403
|
+
sofort_payments: nil,
|
1404
|
+
swish_payments: nil,
|
1405
|
+
tax_reporting_us_1099_k: nil,
|
1406
|
+
tax_reporting_us_1099_misc: nil,
|
1407
|
+
transfers: nil,
|
1408
|
+
treasury: nil,
|
1409
|
+
twint_payments: nil,
|
1410
|
+
us_bank_account_ach_payments: nil,
|
1411
|
+
us_bank_transfer_payments: nil,
|
1412
|
+
zip_payments: nil
|
1413
|
+
)
|
1414
|
+
@acss_debit_payments = acss_debit_payments
|
1415
|
+
@affirm_payments = affirm_payments
|
1416
|
+
@afterpay_clearpay_payments = afterpay_clearpay_payments
|
1417
|
+
@alma_payments = alma_payments
|
1418
|
+
@amazon_pay_payments = amazon_pay_payments
|
1419
|
+
@au_becs_debit_payments = au_becs_debit_payments
|
1420
|
+
@bacs_debit_payments = bacs_debit_payments
|
1421
|
+
@bancontact_payments = bancontact_payments
|
1422
|
+
@bank_transfer_payments = bank_transfer_payments
|
1423
|
+
@billie_payments = billie_payments
|
1424
|
+
@blik_payments = blik_payments
|
1425
|
+
@boleto_payments = boleto_payments
|
1426
|
+
@card_issuing = card_issuing
|
1427
|
+
@card_payments = card_payments
|
1428
|
+
@cartes_bancaires_payments = cartes_bancaires_payments
|
1429
|
+
@cashapp_payments = cashapp_payments
|
1430
|
+
@eps_payments = eps_payments
|
1431
|
+
@fpx_payments = fpx_payments
|
1432
|
+
@gb_bank_transfer_payments = gb_bank_transfer_payments
|
1433
|
+
@giropay_payments = giropay_payments
|
1434
|
+
@grabpay_payments = grabpay_payments
|
1435
|
+
@ideal_payments = ideal_payments
|
1436
|
+
@india_international_payments = india_international_payments
|
1437
|
+
@jcb_payments = jcb_payments
|
1438
|
+
@jp_bank_transfer_payments = jp_bank_transfer_payments
|
1439
|
+
@kakao_pay_payments = kakao_pay_payments
|
1440
|
+
@klarna_payments = klarna_payments
|
1441
|
+
@konbini_payments = konbini_payments
|
1442
|
+
@kr_card_payments = kr_card_payments
|
1443
|
+
@legacy_payments = legacy_payments
|
1444
|
+
@link_payments = link_payments
|
1445
|
+
@mobilepay_payments = mobilepay_payments
|
1446
|
+
@multibanco_payments = multibanco_payments
|
1447
|
+
@mx_bank_transfer_payments = mx_bank_transfer_payments
|
1448
|
+
@naver_pay_payments = naver_pay_payments
|
1449
|
+
@nz_bank_account_becs_debit_payments = nz_bank_account_becs_debit_payments
|
1450
|
+
@oxxo_payments = oxxo_payments
|
1451
|
+
@p24_payments = p24_payments
|
1452
|
+
@pay_by_bank_payments = pay_by_bank_payments
|
1453
|
+
@payco_payments = payco_payments
|
1454
|
+
@paynow_payments = paynow_payments
|
1455
|
+
@promptpay_payments = promptpay_payments
|
1456
|
+
@revolut_pay_payments = revolut_pay_payments
|
1457
|
+
@samsung_pay_payments = samsung_pay_payments
|
1458
|
+
@satispay_payments = satispay_payments
|
1459
|
+
@sepa_bank_transfer_payments = sepa_bank_transfer_payments
|
1460
|
+
@sepa_debit_payments = sepa_debit_payments
|
1461
|
+
@sofort_payments = sofort_payments
|
1462
|
+
@swish_payments = swish_payments
|
1463
|
+
@tax_reporting_us_1099_k = tax_reporting_us_1099_k
|
1464
|
+
@tax_reporting_us_1099_misc = tax_reporting_us_1099_misc
|
1465
|
+
@transfers = transfers
|
1466
|
+
@treasury = treasury
|
1467
|
+
@twint_payments = twint_payments
|
1468
|
+
@us_bank_account_ach_payments = us_bank_account_ach_payments
|
1469
|
+
@us_bank_transfer_payments = us_bank_transfer_payments
|
1470
|
+
@zip_payments = zip_payments
|
1471
|
+
end
|
1472
|
+
end
|
1473
|
+
|
1474
|
+
class Card < Stripe::RequestParams
|
1475
|
+
# Attribute for param field object
|
1476
|
+
attr_accessor :object
|
1477
|
+
# Attribute for param field address_city
|
1478
|
+
attr_accessor :address_city
|
1479
|
+
# Attribute for param field address_country
|
1480
|
+
attr_accessor :address_country
|
1481
|
+
# Attribute for param field address_line1
|
1482
|
+
attr_accessor :address_line1
|
1483
|
+
# Attribute for param field address_line2
|
1484
|
+
attr_accessor :address_line2
|
1485
|
+
# Attribute for param field address_state
|
1486
|
+
attr_accessor :address_state
|
1487
|
+
# Attribute for param field address_zip
|
1488
|
+
attr_accessor :address_zip
|
1489
|
+
# Attribute for param field currency
|
1490
|
+
attr_accessor :currency
|
1491
|
+
# Attribute for param field cvc
|
1492
|
+
attr_accessor :cvc
|
1493
|
+
# Attribute for param field exp_month
|
1494
|
+
attr_accessor :exp_month
|
1495
|
+
# Attribute for param field exp_year
|
1496
|
+
attr_accessor :exp_year
|
1497
|
+
# Attribute for param field name
|
1498
|
+
attr_accessor :name
|
1499
|
+
# Attribute for param field number
|
1500
|
+
attr_accessor :number
|
1501
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
1502
|
+
attr_accessor :metadata
|
1503
|
+
# Attribute for param field default_for_currency
|
1504
|
+
attr_accessor :default_for_currency
|
1505
|
+
|
1506
|
+
def initialize(
|
1507
|
+
object: nil,
|
1508
|
+
address_city: nil,
|
1509
|
+
address_country: nil,
|
1510
|
+
address_line1: nil,
|
1511
|
+
address_line2: nil,
|
1512
|
+
address_state: nil,
|
1513
|
+
address_zip: nil,
|
1514
|
+
currency: nil,
|
1515
|
+
cvc: nil,
|
1516
|
+
exp_month: nil,
|
1517
|
+
exp_year: nil,
|
1518
|
+
name: nil,
|
1519
|
+
number: nil,
|
1520
|
+
metadata: nil,
|
1521
|
+
default_for_currency: nil
|
1522
|
+
)
|
1523
|
+
@object = object
|
1524
|
+
@address_city = address_city
|
1525
|
+
@address_country = address_country
|
1526
|
+
@address_line1 = address_line1
|
1527
|
+
@address_line2 = address_line2
|
1528
|
+
@address_state = address_state
|
1529
|
+
@address_zip = address_zip
|
1530
|
+
@currency = currency
|
1531
|
+
@cvc = cvc
|
1532
|
+
@exp_month = exp_month
|
1533
|
+
@exp_year = exp_year
|
1534
|
+
@name = name
|
1535
|
+
@number = number
|
1536
|
+
@metadata = metadata
|
1537
|
+
@default_for_currency = default_for_currency
|
1538
|
+
end
|
1539
|
+
end
|
1540
|
+
|
1541
|
+
class CardToken < Stripe::RequestParams
|
1542
|
+
# Attribute for param field object
|
1543
|
+
attr_accessor :object
|
1544
|
+
# Attribute for param field currency
|
1545
|
+
attr_accessor :currency
|
1546
|
+
# Attribute for param field token
|
1547
|
+
attr_accessor :token
|
1548
|
+
|
1549
|
+
def initialize(object: nil, currency: nil, token: nil)
|
1550
|
+
@object = object
|
1551
|
+
@currency = currency
|
1552
|
+
@token = token
|
1553
|
+
end
|
1554
|
+
end
|
1555
|
+
|
1556
|
+
class Company < Stripe::RequestParams
|
1557
|
+
class Address < Stripe::RequestParams
|
1558
|
+
# City, district, suburb, town, or village.
|
1559
|
+
attr_accessor :city
|
1560
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1561
|
+
attr_accessor :country
|
1562
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
1563
|
+
attr_accessor :line1
|
1564
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
1565
|
+
attr_accessor :line2
|
1566
|
+
# ZIP or postal code.
|
1567
|
+
attr_accessor :postal_code
|
1568
|
+
# State, county, province, or region.
|
1569
|
+
attr_accessor :state
|
1570
|
+
|
1571
|
+
def initialize(
|
1572
|
+
city: nil,
|
1573
|
+
country: nil,
|
1574
|
+
line1: nil,
|
1575
|
+
line2: nil,
|
1576
|
+
postal_code: nil,
|
1577
|
+
state: nil
|
1578
|
+
)
|
1579
|
+
@city = city
|
1580
|
+
@country = country
|
1581
|
+
@line1 = line1
|
1582
|
+
@line2 = line2
|
1583
|
+
@postal_code = postal_code
|
1584
|
+
@state = state
|
1585
|
+
end
|
1586
|
+
end
|
1587
|
+
|
1588
|
+
class AddressKana < Stripe::RequestParams
|
1589
|
+
# City or ward.
|
1590
|
+
attr_accessor :city
|
1591
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1592
|
+
attr_accessor :country
|
1593
|
+
# Block or building number.
|
1594
|
+
attr_accessor :line1
|
1595
|
+
# Building details.
|
1596
|
+
attr_accessor :line2
|
1597
|
+
# Postal code.
|
1598
|
+
attr_accessor :postal_code
|
1599
|
+
# Prefecture.
|
1600
|
+
attr_accessor :state
|
1601
|
+
# Town or cho-me.
|
1602
|
+
attr_accessor :town
|
1603
|
+
|
1604
|
+
def initialize(
|
1605
|
+
city: nil,
|
1606
|
+
country: nil,
|
1607
|
+
line1: nil,
|
1608
|
+
line2: nil,
|
1609
|
+
postal_code: nil,
|
1610
|
+
state: nil,
|
1611
|
+
town: nil
|
1612
|
+
)
|
1613
|
+
@city = city
|
1614
|
+
@country = country
|
1615
|
+
@line1 = line1
|
1616
|
+
@line2 = line2
|
1617
|
+
@postal_code = postal_code
|
1618
|
+
@state = state
|
1619
|
+
@town = town
|
1620
|
+
end
|
1621
|
+
end
|
1622
|
+
|
1623
|
+
class AddressKanji < Stripe::RequestParams
|
1624
|
+
# City or ward.
|
1625
|
+
attr_accessor :city
|
1626
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1627
|
+
attr_accessor :country
|
1628
|
+
# Block or building number.
|
1629
|
+
attr_accessor :line1
|
1630
|
+
# Building details.
|
1631
|
+
attr_accessor :line2
|
1632
|
+
# Postal code.
|
1633
|
+
attr_accessor :postal_code
|
1634
|
+
# Prefecture.
|
1635
|
+
attr_accessor :state
|
1636
|
+
# Town or cho-me.
|
1637
|
+
attr_accessor :town
|
1638
|
+
|
1639
|
+
def initialize(
|
1640
|
+
city: nil,
|
1641
|
+
country: nil,
|
1642
|
+
line1: nil,
|
1643
|
+
line2: nil,
|
1644
|
+
postal_code: nil,
|
1645
|
+
state: nil,
|
1646
|
+
town: nil
|
1647
|
+
)
|
1648
|
+
@city = city
|
1649
|
+
@country = country
|
1650
|
+
@line1 = line1
|
1651
|
+
@line2 = line2
|
1652
|
+
@postal_code = postal_code
|
1653
|
+
@state = state
|
1654
|
+
@town = town
|
1655
|
+
end
|
1656
|
+
end
|
1657
|
+
|
1658
|
+
class DirectorshipDeclaration < Stripe::RequestParams
|
1659
|
+
# The Unix timestamp marking when the directorship declaration attestation was made.
|
1660
|
+
attr_accessor :date
|
1661
|
+
# The IP address from which the directorship declaration attestation was made.
|
1662
|
+
attr_accessor :ip
|
1663
|
+
# The user agent of the browser from which the directorship declaration attestation was made.
|
1664
|
+
attr_accessor :user_agent
|
1665
|
+
|
1666
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
1667
|
+
@date = date
|
1668
|
+
@ip = ip
|
1669
|
+
@user_agent = user_agent
|
1670
|
+
end
|
1671
|
+
end
|
1672
|
+
|
1673
|
+
class OwnershipDeclaration < Stripe::RequestParams
|
1674
|
+
# The Unix timestamp marking when the beneficial owner attestation was made.
|
1675
|
+
attr_accessor :date
|
1676
|
+
# The IP address from which the beneficial owner attestation was made.
|
1677
|
+
attr_accessor :ip
|
1678
|
+
# The user agent of the browser from which the beneficial owner attestation was made.
|
1679
|
+
attr_accessor :user_agent
|
1680
|
+
|
1681
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
1682
|
+
@date = date
|
1683
|
+
@ip = ip
|
1684
|
+
@user_agent = user_agent
|
1685
|
+
end
|
1686
|
+
end
|
1687
|
+
|
1688
|
+
class Verification < Stripe::RequestParams
|
1689
|
+
class Document < Stripe::RequestParams
|
1690
|
+
# 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.
|
1691
|
+
attr_accessor :back
|
1692
|
+
# The front 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.
|
1693
|
+
attr_accessor :front
|
1694
|
+
|
1695
|
+
def initialize(back: nil, front: nil)
|
1696
|
+
@back = back
|
1697
|
+
@front = front
|
1698
|
+
end
|
1699
|
+
end
|
1700
|
+
# A document verifying the business.
|
1701
|
+
attr_accessor :document
|
1702
|
+
|
1703
|
+
def initialize(document: nil)
|
1704
|
+
@document = document
|
1705
|
+
end
|
1706
|
+
end
|
1707
|
+
# The company's primary address.
|
1708
|
+
attr_accessor :address
|
1709
|
+
# The Kana variation of the company's primary address (Japan only).
|
1710
|
+
attr_accessor :address_kana
|
1711
|
+
# The Kanji variation of the company's primary address (Japan only).
|
1712
|
+
attr_accessor :address_kanji
|
1713
|
+
# Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
|
1714
|
+
attr_accessor :directors_provided
|
1715
|
+
# This hash is used to attest that the directors information provided to Stripe is both current and correct.
|
1716
|
+
attr_accessor :directorship_declaration
|
1717
|
+
# Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement.
|
1718
|
+
attr_accessor :executives_provided
|
1719
|
+
# The export license ID number of the company, also referred as Import Export Code (India only).
|
1720
|
+
attr_accessor :export_license_id
|
1721
|
+
# The purpose code to use for export transactions (India only).
|
1722
|
+
attr_accessor :export_purpose_code
|
1723
|
+
# The company's legal name.
|
1724
|
+
attr_accessor :name
|
1725
|
+
# The Kana variation of the company's legal name (Japan only).
|
1726
|
+
attr_accessor :name_kana
|
1727
|
+
# The Kanji variation of the company's legal name (Japan only).
|
1728
|
+
attr_accessor :name_kanji
|
1729
|
+
# Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](/api/persons) for accounts with a `relationship.owner` requirement.
|
1730
|
+
attr_accessor :owners_provided
|
1731
|
+
# This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
|
1732
|
+
attr_accessor :ownership_declaration
|
1733
|
+
# This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
|
1734
|
+
attr_accessor :ownership_exemption_reason
|
1735
|
+
# The company's phone number (used for verification).
|
1736
|
+
attr_accessor :phone
|
1737
|
+
# 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).
|
1738
|
+
attr_accessor :registration_number
|
1739
|
+
# 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.
|
1740
|
+
attr_accessor :structure
|
1741
|
+
# The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
|
1742
|
+
attr_accessor :tax_id
|
1743
|
+
# The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
|
1744
|
+
attr_accessor :tax_id_registrar
|
1745
|
+
# The VAT number of the company.
|
1746
|
+
attr_accessor :vat_id
|
1747
|
+
# Information on the verification state of the company.
|
1748
|
+
attr_accessor :verification
|
1749
|
+
|
1750
|
+
def initialize(
|
1751
|
+
address: nil,
|
1752
|
+
address_kana: nil,
|
1753
|
+
address_kanji: nil,
|
1754
|
+
directors_provided: nil,
|
1755
|
+
directorship_declaration: nil,
|
1756
|
+
executives_provided: nil,
|
1757
|
+
export_license_id: nil,
|
1758
|
+
export_purpose_code: nil,
|
1759
|
+
name: nil,
|
1760
|
+
name_kana: nil,
|
1761
|
+
name_kanji: nil,
|
1762
|
+
owners_provided: nil,
|
1763
|
+
ownership_declaration: nil,
|
1764
|
+
ownership_exemption_reason: nil,
|
1765
|
+
phone: nil,
|
1766
|
+
registration_number: nil,
|
1767
|
+
structure: nil,
|
1768
|
+
tax_id: nil,
|
1769
|
+
tax_id_registrar: nil,
|
1770
|
+
vat_id: nil,
|
1771
|
+
verification: nil
|
1772
|
+
)
|
1773
|
+
@address = address
|
1774
|
+
@address_kana = address_kana
|
1775
|
+
@address_kanji = address_kanji
|
1776
|
+
@directors_provided = directors_provided
|
1777
|
+
@directorship_declaration = directorship_declaration
|
1778
|
+
@executives_provided = executives_provided
|
1779
|
+
@export_license_id = export_license_id
|
1780
|
+
@export_purpose_code = export_purpose_code
|
1781
|
+
@name = name
|
1782
|
+
@name_kana = name_kana
|
1783
|
+
@name_kanji = name_kanji
|
1784
|
+
@owners_provided = owners_provided
|
1785
|
+
@ownership_declaration = ownership_declaration
|
1786
|
+
@ownership_exemption_reason = ownership_exemption_reason
|
1787
|
+
@phone = phone
|
1788
|
+
@registration_number = registration_number
|
1789
|
+
@structure = structure
|
1790
|
+
@tax_id = tax_id
|
1791
|
+
@tax_id_registrar = tax_id_registrar
|
1792
|
+
@vat_id = vat_id
|
1793
|
+
@verification = verification
|
1794
|
+
end
|
1795
|
+
end
|
1796
|
+
|
1797
|
+
class Documents < Stripe::RequestParams
|
1798
|
+
class BankAccountOwnershipVerification < Stripe::RequestParams
|
1799
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
1800
|
+
attr_accessor :files
|
1801
|
+
|
1802
|
+
def initialize(files: nil)
|
1803
|
+
@files = files
|
1804
|
+
end
|
1805
|
+
end
|
1806
|
+
|
1807
|
+
class CompanyLicense < Stripe::RequestParams
|
1808
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
1809
|
+
attr_accessor :files
|
1810
|
+
|
1811
|
+
def initialize(files: nil)
|
1812
|
+
@files = files
|
1813
|
+
end
|
1814
|
+
end
|
1815
|
+
|
1816
|
+
class CompanyMemorandumOfAssociation < Stripe::RequestParams
|
1817
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
1818
|
+
attr_accessor :files
|
1819
|
+
|
1820
|
+
def initialize(files: nil)
|
1821
|
+
@files = files
|
1822
|
+
end
|
1823
|
+
end
|
1824
|
+
|
1825
|
+
class CompanyMinisterialDecree < Stripe::RequestParams
|
1826
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
1827
|
+
attr_accessor :files
|
1828
|
+
|
1829
|
+
def initialize(files: nil)
|
1830
|
+
@files = files
|
1831
|
+
end
|
1832
|
+
end
|
1833
|
+
|
1834
|
+
class CompanyRegistrationVerification < Stripe::RequestParams
|
1835
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
1836
|
+
attr_accessor :files
|
1837
|
+
|
1838
|
+
def initialize(files: nil)
|
1839
|
+
@files = files
|
1840
|
+
end
|
1841
|
+
end
|
1842
|
+
|
1843
|
+
class CompanyTaxIdVerification < Stripe::RequestParams
|
1844
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
1845
|
+
attr_accessor :files
|
1846
|
+
|
1847
|
+
def initialize(files: nil)
|
1848
|
+
@files = files
|
1849
|
+
end
|
1850
|
+
end
|
1851
|
+
|
1852
|
+
class ProofOfRegistration < Stripe::RequestParams
|
1853
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
1854
|
+
attr_accessor :files
|
1855
|
+
|
1856
|
+
def initialize(files: nil)
|
1857
|
+
@files = files
|
1858
|
+
end
|
1859
|
+
end
|
1860
|
+
|
1861
|
+
class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
|
1862
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
1863
|
+
attr_accessor :files
|
1864
|
+
|
1865
|
+
def initialize(files: nil)
|
1866
|
+
@files = files
|
1867
|
+
end
|
1868
|
+
end
|
1869
|
+
# One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
|
1870
|
+
attr_accessor :bank_account_ownership_verification
|
1871
|
+
# One or more documents that demonstrate proof of a company's license to operate.
|
1872
|
+
attr_accessor :company_license
|
1873
|
+
# One or more documents showing the company's Memorandum of Association.
|
1874
|
+
attr_accessor :company_memorandum_of_association
|
1875
|
+
# (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment.
|
1876
|
+
attr_accessor :company_ministerial_decree
|
1877
|
+
# One or more documents that demonstrate proof of a company's registration with the appropriate local authorities.
|
1878
|
+
attr_accessor :company_registration_verification
|
1879
|
+
# One or more documents that demonstrate proof of a company's tax ID.
|
1880
|
+
attr_accessor :company_tax_id_verification
|
1881
|
+
# One or more documents showing the company’s proof of registration with the national business registry.
|
1882
|
+
attr_accessor :proof_of_registration
|
1883
|
+
# One or more documents that demonstrate proof of ultimate beneficial ownership.
|
1884
|
+
attr_accessor :proof_of_ultimate_beneficial_ownership
|
1885
|
+
|
1886
|
+
def initialize(
|
1887
|
+
bank_account_ownership_verification: nil,
|
1888
|
+
company_license: nil,
|
1889
|
+
company_memorandum_of_association: nil,
|
1890
|
+
company_ministerial_decree: nil,
|
1891
|
+
company_registration_verification: nil,
|
1892
|
+
company_tax_id_verification: nil,
|
1893
|
+
proof_of_registration: nil,
|
1894
|
+
proof_of_ultimate_beneficial_ownership: nil
|
1895
|
+
)
|
1896
|
+
@bank_account_ownership_verification = bank_account_ownership_verification
|
1897
|
+
@company_license = company_license
|
1898
|
+
@company_memorandum_of_association = company_memorandum_of_association
|
1899
|
+
@company_ministerial_decree = company_ministerial_decree
|
1900
|
+
@company_registration_verification = company_registration_verification
|
1901
|
+
@company_tax_id_verification = company_tax_id_verification
|
1902
|
+
@proof_of_registration = proof_of_registration
|
1903
|
+
@proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
|
1904
|
+
end
|
1905
|
+
end
|
1906
|
+
|
1907
|
+
class Groups < Stripe::RequestParams
|
1908
|
+
# The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
|
1909
|
+
attr_accessor :payments_pricing
|
1910
|
+
|
1911
|
+
def initialize(payments_pricing: nil)
|
1912
|
+
@payments_pricing = payments_pricing
|
1913
|
+
end
|
1914
|
+
end
|
1915
|
+
|
1916
|
+
class Individual < Stripe::RequestParams
|
1917
|
+
class Address < Stripe::RequestParams
|
1918
|
+
# City, district, suburb, town, or village.
|
1919
|
+
attr_accessor :city
|
1920
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1921
|
+
attr_accessor :country
|
1922
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
1923
|
+
attr_accessor :line1
|
1924
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
1925
|
+
attr_accessor :line2
|
1926
|
+
# ZIP or postal code.
|
1927
|
+
attr_accessor :postal_code
|
1928
|
+
# State, county, province, or region.
|
1929
|
+
attr_accessor :state
|
1930
|
+
|
1931
|
+
def initialize(
|
1932
|
+
city: nil,
|
1933
|
+
country: nil,
|
1934
|
+
line1: nil,
|
1935
|
+
line2: nil,
|
1936
|
+
postal_code: nil,
|
1937
|
+
state: nil
|
1938
|
+
)
|
1939
|
+
@city = city
|
1940
|
+
@country = country
|
1941
|
+
@line1 = line1
|
1942
|
+
@line2 = line2
|
1943
|
+
@postal_code = postal_code
|
1944
|
+
@state = state
|
1945
|
+
end
|
1946
|
+
end
|
1947
|
+
|
1948
|
+
class AddressKana < Stripe::RequestParams
|
1949
|
+
# City or ward.
|
1950
|
+
attr_accessor :city
|
1951
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1952
|
+
attr_accessor :country
|
1953
|
+
# Block or building number.
|
1954
|
+
attr_accessor :line1
|
1955
|
+
# Building details.
|
1956
|
+
attr_accessor :line2
|
1957
|
+
# Postal code.
|
1958
|
+
attr_accessor :postal_code
|
1959
|
+
# Prefecture.
|
1960
|
+
attr_accessor :state
|
1961
|
+
# Town or cho-me.
|
1962
|
+
attr_accessor :town
|
1963
|
+
|
1964
|
+
def initialize(
|
1965
|
+
city: nil,
|
1966
|
+
country: nil,
|
1967
|
+
line1: nil,
|
1968
|
+
line2: nil,
|
1969
|
+
postal_code: nil,
|
1970
|
+
state: nil,
|
1971
|
+
town: nil
|
1972
|
+
)
|
1973
|
+
@city = city
|
1974
|
+
@country = country
|
1975
|
+
@line1 = line1
|
1976
|
+
@line2 = line2
|
1977
|
+
@postal_code = postal_code
|
1978
|
+
@state = state
|
1979
|
+
@town = town
|
1980
|
+
end
|
1981
|
+
end
|
1982
|
+
|
1983
|
+
class AddressKanji < Stripe::RequestParams
|
1984
|
+
# City or ward.
|
1985
|
+
attr_accessor :city
|
1986
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1987
|
+
attr_accessor :country
|
1988
|
+
# Block or building number.
|
1989
|
+
attr_accessor :line1
|
1990
|
+
# Building details.
|
1991
|
+
attr_accessor :line2
|
1992
|
+
# Postal code.
|
1993
|
+
attr_accessor :postal_code
|
1994
|
+
# Prefecture.
|
1995
|
+
attr_accessor :state
|
1996
|
+
# Town or cho-me.
|
1997
|
+
attr_accessor :town
|
1998
|
+
|
1999
|
+
def initialize(
|
2000
|
+
city: nil,
|
2001
|
+
country: nil,
|
2002
|
+
line1: nil,
|
2003
|
+
line2: nil,
|
2004
|
+
postal_code: nil,
|
2005
|
+
state: nil,
|
2006
|
+
town: nil
|
2007
|
+
)
|
2008
|
+
@city = city
|
2009
|
+
@country = country
|
2010
|
+
@line1 = line1
|
2011
|
+
@line2 = line2
|
2012
|
+
@postal_code = postal_code
|
2013
|
+
@state = state
|
2014
|
+
@town = town
|
2015
|
+
end
|
2016
|
+
end
|
2017
|
+
|
2018
|
+
class Dob < Stripe::RequestParams
|
2019
|
+
# The day of birth, between 1 and 31.
|
2020
|
+
attr_accessor :day
|
2021
|
+
# The month of birth, between 1 and 12.
|
2022
|
+
attr_accessor :month
|
2023
|
+
# The four-digit year of birth.
|
2024
|
+
attr_accessor :year
|
2025
|
+
|
2026
|
+
def initialize(day: nil, month: nil, year: nil)
|
2027
|
+
@day = day
|
2028
|
+
@month = month
|
2029
|
+
@year = year
|
2030
|
+
end
|
2031
|
+
end
|
2032
|
+
|
2033
|
+
class RegisteredAddress < Stripe::RequestParams
|
2034
|
+
# City, district, suburb, town, or village.
|
2035
|
+
attr_accessor :city
|
2036
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
2037
|
+
attr_accessor :country
|
2038
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
2039
|
+
attr_accessor :line1
|
2040
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
2041
|
+
attr_accessor :line2
|
2042
|
+
# ZIP or postal code.
|
2043
|
+
attr_accessor :postal_code
|
2044
|
+
# State, county, province, or region.
|
2045
|
+
attr_accessor :state
|
2046
|
+
|
2047
|
+
def initialize(
|
2048
|
+
city: nil,
|
2049
|
+
country: nil,
|
2050
|
+
line1: nil,
|
2051
|
+
line2: nil,
|
2052
|
+
postal_code: nil,
|
2053
|
+
state: nil
|
2054
|
+
)
|
2055
|
+
@city = city
|
2056
|
+
@country = country
|
2057
|
+
@line1 = line1
|
2058
|
+
@line2 = line2
|
2059
|
+
@postal_code = postal_code
|
2060
|
+
@state = state
|
2061
|
+
end
|
2062
|
+
end
|
2063
|
+
|
2064
|
+
class Relationship < Stripe::RequestParams
|
2065
|
+
# Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
|
2066
|
+
attr_accessor :director
|
2067
|
+
# Whether the person has significant responsibility to control, manage, or direct the organization.
|
2068
|
+
attr_accessor :executive
|
2069
|
+
# Whether the person is an owner of the account’s legal entity.
|
2070
|
+
attr_accessor :owner
|
2071
|
+
# The percent owned by the person of the account's legal entity.
|
2072
|
+
attr_accessor :percent_ownership
|
2073
|
+
# The person's title (e.g., CEO, Support Engineer).
|
2074
|
+
attr_accessor :title
|
2075
|
+
|
2076
|
+
def initialize(
|
2077
|
+
director: nil,
|
2078
|
+
executive: nil,
|
2079
|
+
owner: nil,
|
2080
|
+
percent_ownership: nil,
|
2081
|
+
title: nil
|
2082
|
+
)
|
2083
|
+
@director = director
|
2084
|
+
@executive = executive
|
2085
|
+
@owner = owner
|
2086
|
+
@percent_ownership = percent_ownership
|
2087
|
+
@title = title
|
2088
|
+
end
|
2089
|
+
end
|
2090
|
+
|
2091
|
+
class Verification < Stripe::RequestParams
|
2092
|
+
class AdditionalDocument < Stripe::RequestParams
|
2093
|
+
# 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.
|
2094
|
+
attr_accessor :back
|
2095
|
+
# The front 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.
|
2096
|
+
attr_accessor :front
|
2097
|
+
|
2098
|
+
def initialize(back: nil, front: nil)
|
2099
|
+
@back = back
|
2100
|
+
@front = front
|
2101
|
+
end
|
2102
|
+
end
|
2103
|
+
|
2104
|
+
class Document < Stripe::RequestParams
|
2105
|
+
# 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.
|
2106
|
+
attr_accessor :back
|
2107
|
+
# The front 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.
|
2108
|
+
attr_accessor :front
|
2109
|
+
|
2110
|
+
def initialize(back: nil, front: nil)
|
2111
|
+
@back = back
|
2112
|
+
@front = front
|
2113
|
+
end
|
2114
|
+
end
|
2115
|
+
# A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
|
2116
|
+
attr_accessor :additional_document
|
2117
|
+
# An identifying document, either a passport or local ID card.
|
2118
|
+
attr_accessor :document
|
2119
|
+
|
2120
|
+
def initialize(additional_document: nil, document: nil)
|
2121
|
+
@additional_document = additional_document
|
2122
|
+
@document = document
|
2123
|
+
end
|
2124
|
+
end
|
2125
|
+
# The individual's primary address.
|
2126
|
+
attr_accessor :address
|
2127
|
+
# The Kana variation of the individual's primary address (Japan only).
|
2128
|
+
attr_accessor :address_kana
|
2129
|
+
# The Kanji variation of the individual's primary address (Japan only).
|
2130
|
+
attr_accessor :address_kanji
|
2131
|
+
# The individual's date of birth.
|
2132
|
+
attr_accessor :dob
|
2133
|
+
# The individual's email address.
|
2134
|
+
attr_accessor :email
|
2135
|
+
# The individual's first name.
|
2136
|
+
attr_accessor :first_name
|
2137
|
+
# The Kana variation of the individual's first name (Japan only).
|
2138
|
+
attr_accessor :first_name_kana
|
2139
|
+
# The Kanji variation of the individual's first name (Japan only).
|
2140
|
+
attr_accessor :first_name_kanji
|
2141
|
+
# A list of alternate names or aliases that the individual is known by.
|
2142
|
+
attr_accessor :full_name_aliases
|
2143
|
+
# The individual's gender
|
2144
|
+
attr_accessor :gender
|
2145
|
+
# The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](/js/tokens/create_token?type=pii).
|
2146
|
+
attr_accessor :id_number
|
2147
|
+
# The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](/js/tokens/create_token?type=pii).
|
2148
|
+
attr_accessor :id_number_secondary
|
2149
|
+
# The individual's last name.
|
2150
|
+
attr_accessor :last_name
|
2151
|
+
# The Kana variation of the individual's last name (Japan only).
|
2152
|
+
attr_accessor :last_name_kana
|
2153
|
+
# The Kanji variation of the individual's last name (Japan only).
|
2154
|
+
attr_accessor :last_name_kanji
|
2155
|
+
# The individual's maiden name.
|
2156
|
+
attr_accessor :maiden_name
|
2157
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
2158
|
+
attr_accessor :metadata
|
2159
|
+
# The individual's phone number.
|
2160
|
+
attr_accessor :phone
|
2161
|
+
# Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
|
2162
|
+
attr_accessor :political_exposure
|
2163
|
+
# The individual's registered address.
|
2164
|
+
attr_accessor :registered_address
|
2165
|
+
# Describes the person’s relationship to the account.
|
2166
|
+
attr_accessor :relationship
|
2167
|
+
# The last four digits of the individual's Social Security Number (U.S. only).
|
2168
|
+
attr_accessor :ssn_last_4
|
2169
|
+
# The individual's verification document information.
|
2170
|
+
attr_accessor :verification
|
2171
|
+
|
2172
|
+
def initialize(
|
2173
|
+
address: nil,
|
2174
|
+
address_kana: nil,
|
2175
|
+
address_kanji: nil,
|
2176
|
+
dob: nil,
|
2177
|
+
email: nil,
|
2178
|
+
first_name: nil,
|
2179
|
+
first_name_kana: nil,
|
2180
|
+
first_name_kanji: nil,
|
2181
|
+
full_name_aliases: nil,
|
2182
|
+
gender: nil,
|
2183
|
+
id_number: nil,
|
2184
|
+
id_number_secondary: nil,
|
2185
|
+
last_name: nil,
|
2186
|
+
last_name_kana: nil,
|
2187
|
+
last_name_kanji: nil,
|
2188
|
+
maiden_name: nil,
|
2189
|
+
metadata: nil,
|
2190
|
+
phone: nil,
|
2191
|
+
political_exposure: nil,
|
2192
|
+
registered_address: nil,
|
2193
|
+
relationship: nil,
|
2194
|
+
ssn_last_4: nil,
|
2195
|
+
verification: nil
|
2196
|
+
)
|
2197
|
+
@address = address
|
2198
|
+
@address_kana = address_kana
|
2199
|
+
@address_kanji = address_kanji
|
2200
|
+
@dob = dob
|
2201
|
+
@email = email
|
2202
|
+
@first_name = first_name
|
2203
|
+
@first_name_kana = first_name_kana
|
2204
|
+
@first_name_kanji = first_name_kanji
|
2205
|
+
@full_name_aliases = full_name_aliases
|
2206
|
+
@gender = gender
|
2207
|
+
@id_number = id_number
|
2208
|
+
@id_number_secondary = id_number_secondary
|
2209
|
+
@last_name = last_name
|
2210
|
+
@last_name_kana = last_name_kana
|
2211
|
+
@last_name_kanji = last_name_kanji
|
2212
|
+
@maiden_name = maiden_name
|
2213
|
+
@metadata = metadata
|
2214
|
+
@phone = phone
|
2215
|
+
@political_exposure = political_exposure
|
2216
|
+
@registered_address = registered_address
|
2217
|
+
@relationship = relationship
|
2218
|
+
@ssn_last_4 = ssn_last_4
|
2219
|
+
@verification = verification
|
2220
|
+
end
|
2221
|
+
end
|
2222
|
+
|
2223
|
+
class Settings < Stripe::RequestParams
|
2224
|
+
class BacsDebitPayments < Stripe::RequestParams
|
2225
|
+
# The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free.
|
2226
|
+
attr_accessor :display_name
|
2227
|
+
|
2228
|
+
def initialize(display_name: nil)
|
2229
|
+
@display_name = display_name
|
2230
|
+
end
|
2231
|
+
end
|
2232
|
+
|
2233
|
+
class Branding < Stripe::RequestParams
|
2234
|
+
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.
|
2235
|
+
attr_accessor :icon
|
2236
|
+
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A logo for the account that will be used in Checkout instead of the icon and without the account's name next to it if provided. Must be at least 128px x 128px.
|
2237
|
+
attr_accessor :logo
|
2238
|
+
# A CSS hex color value representing the primary branding color for this account.
|
2239
|
+
attr_accessor :primary_color
|
2240
|
+
# A CSS hex color value representing the secondary branding color for this account.
|
2241
|
+
attr_accessor :secondary_color
|
2242
|
+
|
2243
|
+
def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
|
2244
|
+
@icon = icon
|
2245
|
+
@logo = logo
|
2246
|
+
@primary_color = primary_color
|
2247
|
+
@secondary_color = secondary_color
|
2248
|
+
end
|
2249
|
+
end
|
2250
|
+
|
2251
|
+
class CardIssuing < Stripe::RequestParams
|
2252
|
+
class TosAcceptance < Stripe::RequestParams
|
2253
|
+
# The Unix timestamp marking when the account representative accepted the service agreement.
|
2254
|
+
attr_accessor :date
|
2255
|
+
# The IP address from which the account representative accepted the service agreement.
|
2256
|
+
attr_accessor :ip
|
2257
|
+
# The user agent of the browser from which the account representative accepted the service agreement.
|
2258
|
+
attr_accessor :user_agent
|
2259
|
+
|
2260
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
2261
|
+
@date = date
|
2262
|
+
@ip = ip
|
2263
|
+
@user_agent = user_agent
|
2264
|
+
end
|
2265
|
+
end
|
2266
|
+
# Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](/issuing/connect/tos_acceptance).
|
2267
|
+
attr_accessor :tos_acceptance
|
2268
|
+
|
2269
|
+
def initialize(tos_acceptance: nil)
|
2270
|
+
@tos_acceptance = tos_acceptance
|
2271
|
+
end
|
2272
|
+
end
|
2273
|
+
|
2274
|
+
class CardPayments < Stripe::RequestParams
|
2275
|
+
class DeclineOn < Stripe::RequestParams
|
2276
|
+
# Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification.
|
2277
|
+
attr_accessor :avs_failure
|
2278
|
+
# Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
|
2279
|
+
attr_accessor :cvc_failure
|
2280
|
+
|
2281
|
+
def initialize(avs_failure: nil, cvc_failure: nil)
|
2282
|
+
@avs_failure = avs_failure
|
2283
|
+
@cvc_failure = cvc_failure
|
2284
|
+
end
|
2285
|
+
end
|
2286
|
+
# Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
|
2287
|
+
attr_accessor :decline_on
|
2288
|
+
# The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge. `statement_descriptor_prefix` is useful for maximizing descriptor space for the dynamic portion.
|
2289
|
+
attr_accessor :statement_descriptor_prefix
|
2290
|
+
# The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kana` specified on the charge. `statement_descriptor_prefix_kana` is useful for maximizing descriptor space for the dynamic portion.
|
2291
|
+
attr_accessor :statement_descriptor_prefix_kana
|
2292
|
+
# The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kanji` specified on the charge. `statement_descriptor_prefix_kanji` is useful for maximizing descriptor space for the dynamic portion.
|
2293
|
+
attr_accessor :statement_descriptor_prefix_kanji
|
2294
|
+
|
2295
|
+
def initialize(
|
2296
|
+
decline_on: nil,
|
2297
|
+
statement_descriptor_prefix: nil,
|
2298
|
+
statement_descriptor_prefix_kana: nil,
|
2299
|
+
statement_descriptor_prefix_kanji: nil
|
2300
|
+
)
|
2301
|
+
@decline_on = decline_on
|
2302
|
+
@statement_descriptor_prefix = statement_descriptor_prefix
|
2303
|
+
@statement_descriptor_prefix_kana = statement_descriptor_prefix_kana
|
2304
|
+
@statement_descriptor_prefix_kanji = statement_descriptor_prefix_kanji
|
2305
|
+
end
|
2306
|
+
end
|
2307
|
+
|
2308
|
+
class Invoices < Stripe::RequestParams
|
2309
|
+
# The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
|
2310
|
+
attr_accessor :default_account_tax_ids
|
2311
|
+
# Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
|
2312
|
+
attr_accessor :hosted_payment_method_save
|
2313
|
+
|
2314
|
+
def initialize(default_account_tax_ids: nil, hosted_payment_method_save: nil)
|
2315
|
+
@default_account_tax_ids = default_account_tax_ids
|
2316
|
+
@hosted_payment_method_save = hosted_payment_method_save
|
2317
|
+
end
|
2318
|
+
end
|
2319
|
+
|
2320
|
+
class Payments < Stripe::RequestParams
|
2321
|
+
# The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors).
|
2322
|
+
attr_accessor :statement_descriptor
|
2323
|
+
# The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
|
2324
|
+
attr_accessor :statement_descriptor_kana
|
2325
|
+
# The Kanji variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
|
2326
|
+
attr_accessor :statement_descriptor_kanji
|
2327
|
+
|
2328
|
+
def initialize(
|
2329
|
+
statement_descriptor: nil,
|
2330
|
+
statement_descriptor_kana: nil,
|
2331
|
+
statement_descriptor_kanji: nil
|
2332
|
+
)
|
2333
|
+
@statement_descriptor = statement_descriptor
|
2334
|
+
@statement_descriptor_kana = statement_descriptor_kana
|
2335
|
+
@statement_descriptor_kanji = statement_descriptor_kanji
|
2336
|
+
end
|
2337
|
+
end
|
2338
|
+
|
2339
|
+
class Payouts < Stripe::RequestParams
|
2340
|
+
class Schedule < Stripe::RequestParams
|
2341
|
+
# The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](/connect/manage-payout-schedule).
|
2342
|
+
attr_accessor :delay_days
|
2343
|
+
# How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
|
2344
|
+
attr_accessor :interval
|
2345
|
+
# The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
|
2346
|
+
attr_accessor :monthly_anchor
|
2347
|
+
# The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
|
2348
|
+
attr_accessor :weekly_anchor
|
2349
|
+
|
2350
|
+
def initialize(delay_days: nil, interval: nil, monthly_anchor: nil, weekly_anchor: nil)
|
2351
|
+
@delay_days = delay_days
|
2352
|
+
@interval = interval
|
2353
|
+
@monthly_anchor = monthly_anchor
|
2354
|
+
@weekly_anchor = weekly_anchor
|
2355
|
+
end
|
2356
|
+
end
|
2357
|
+
# A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances).
|
2358
|
+
attr_accessor :debit_negative_balances
|
2359
|
+
# Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.
|
2360
|
+
attr_accessor :schedule
|
2361
|
+
# The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
|
2362
|
+
attr_accessor :statement_descriptor
|
2363
|
+
|
2364
|
+
def initialize(debit_negative_balances: nil, schedule: nil, statement_descriptor: nil)
|
2365
|
+
@debit_negative_balances = debit_negative_balances
|
2366
|
+
@schedule = schedule
|
2367
|
+
@statement_descriptor = statement_descriptor
|
2368
|
+
end
|
2369
|
+
end
|
2370
|
+
|
2371
|
+
class Treasury < Stripe::RequestParams
|
2372
|
+
class TosAcceptance < Stripe::RequestParams
|
2373
|
+
# The Unix timestamp marking when the account representative accepted the service agreement.
|
2374
|
+
attr_accessor :date
|
2375
|
+
# The IP address from which the account representative accepted the service agreement.
|
2376
|
+
attr_accessor :ip
|
2377
|
+
# The user agent of the browser from which the account representative accepted the service agreement.
|
2378
|
+
attr_accessor :user_agent
|
2379
|
+
|
2380
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
2381
|
+
@date = date
|
2382
|
+
@ip = ip
|
2383
|
+
@user_agent = user_agent
|
2384
|
+
end
|
2385
|
+
end
|
2386
|
+
# Details on the account's acceptance of the Stripe Treasury Services Agreement.
|
2387
|
+
attr_accessor :tos_acceptance
|
2388
|
+
|
2389
|
+
def initialize(tos_acceptance: nil)
|
2390
|
+
@tos_acceptance = tos_acceptance
|
2391
|
+
end
|
2392
|
+
end
|
2393
|
+
# Settings specific to Bacs Direct Debit payments.
|
2394
|
+
attr_accessor :bacs_debit_payments
|
2395
|
+
# Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
|
2396
|
+
attr_accessor :branding
|
2397
|
+
# Settings specific to the account's use of the Card Issuing product.
|
2398
|
+
attr_accessor :card_issuing
|
2399
|
+
# Settings specific to card charging on the account.
|
2400
|
+
attr_accessor :card_payments
|
2401
|
+
# Settings specific to the account's use of Invoices.
|
2402
|
+
attr_accessor :invoices
|
2403
|
+
# Settings that apply across payment methods for charging on the account.
|
2404
|
+
attr_accessor :payments
|
2405
|
+
# Settings specific to the account's payouts.
|
2406
|
+
attr_accessor :payouts
|
2407
|
+
# Settings specific to the account's Treasury FinancialAccounts.
|
2408
|
+
attr_accessor :treasury
|
2409
|
+
|
2410
|
+
def initialize(
|
2411
|
+
bacs_debit_payments: nil,
|
2412
|
+
branding: nil,
|
2413
|
+
card_issuing: nil,
|
2414
|
+
card_payments: nil,
|
2415
|
+
invoices: nil,
|
2416
|
+
payments: nil,
|
2417
|
+
payouts: nil,
|
2418
|
+
treasury: nil
|
2419
|
+
)
|
2420
|
+
@bacs_debit_payments = bacs_debit_payments
|
2421
|
+
@branding = branding
|
2422
|
+
@card_issuing = card_issuing
|
2423
|
+
@card_payments = card_payments
|
2424
|
+
@invoices = invoices
|
2425
|
+
@payments = payments
|
2426
|
+
@payouts = payouts
|
2427
|
+
@treasury = treasury
|
2428
|
+
end
|
2429
|
+
end
|
2430
|
+
|
2431
|
+
class TosAcceptance < Stripe::RequestParams
|
2432
|
+
# The Unix timestamp marking when the account representative accepted their service agreement.
|
2433
|
+
attr_accessor :date
|
2434
|
+
# The IP address from which the account representative accepted their service agreement.
|
2435
|
+
attr_accessor :ip
|
2436
|
+
# The user's service agreement type.
|
2437
|
+
attr_accessor :service_agreement
|
2438
|
+
# The user agent of the browser from which the account representative accepted their service agreement.
|
2439
|
+
attr_accessor :user_agent
|
2440
|
+
|
2441
|
+
def initialize(date: nil, ip: nil, service_agreement: nil, user_agent: nil)
|
2442
|
+
@date = date
|
2443
|
+
@ip = ip
|
2444
|
+
@service_agreement = service_agreement
|
2445
|
+
@user_agent = user_agent
|
2446
|
+
end
|
2447
|
+
end
|
2448
|
+
# An [account token](https://stripe.com/docs/api#create_account_token), used to securely provide details to the account.
|
2449
|
+
attr_accessor :account_token
|
2450
|
+
# Business information about the account.
|
2451
|
+
attr_accessor :business_profile
|
2452
|
+
# The business type. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
2453
|
+
attr_accessor :business_type
|
2454
|
+
# Each key of the dictionary represents a capability, and each capability
|
2455
|
+
# maps to its settings (for example, whether it has been requested or not). Each
|
2456
|
+
# capability is inactive until you have provided its specific
|
2457
|
+
# requirements and Stripe has verified them. An account might have some
|
2458
|
+
# of its requested capabilities be active and some be inactive.
|
2459
|
+
#
|
2460
|
+
# Required when [account.controller.stripe_dashboard.type](/api/accounts/create#create_account-controller-dashboard-type)
|
2461
|
+
# is `none`, which includes Custom accounts.
|
2462
|
+
attr_accessor :capabilities
|
2463
|
+
# Information about the company or business. This field is available for any `business_type`. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
2464
|
+
attr_accessor :company
|
2465
|
+
# Three-letter ISO currency code representing the default currency for the account. This must be a currency that [Stripe supports in the account's country](https://docs.stripe.com/payouts).
|
2466
|
+
attr_accessor :default_currency
|
2467
|
+
# Documents that may be submitted to satisfy various informational requests.
|
2468
|
+
attr_accessor :documents
|
2469
|
+
# The email address of the account holder. This is only to make the account easier to identify to you. If [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, Stripe doesn't email the account without your consent.
|
2470
|
+
attr_accessor :email
|
2471
|
+
# Specifies which fields in the response should be expanded.
|
2472
|
+
attr_accessor :expand
|
2473
|
+
# A card or bank account to attach to the account for receiving [payouts](/connect/bank-debit-card-payouts) (you won’t be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](/js), or a dictionary, as documented in the `external_account` parameter for [bank account](/api#account_create_bank_account) creation. <br><br>By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](/api#account_create_bank_account) or [card creation](/api#account_create_card) APIs. After you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
2474
|
+
attr_accessor :external_account
|
2475
|
+
# A hash of account group type to tokens. These are account groups this account should be added to.
|
2476
|
+
attr_accessor :groups
|
2477
|
+
# Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
2478
|
+
attr_accessor :individual
|
2479
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
2480
|
+
attr_accessor :metadata
|
2481
|
+
# Options for customizing how the account functions within Stripe.
|
2482
|
+
attr_accessor :settings
|
2483
|
+
# Details on the account's acceptance of the [Stripe Services Agreement](/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
|
2484
|
+
attr_accessor :tos_acceptance
|
2485
|
+
|
2486
|
+
def initialize(
|
2487
|
+
account_token: nil,
|
2488
|
+
business_profile: nil,
|
2489
|
+
business_type: nil,
|
2490
|
+
capabilities: nil,
|
2491
|
+
company: nil,
|
2492
|
+
default_currency: nil,
|
2493
|
+
documents: nil,
|
2494
|
+
email: nil,
|
2495
|
+
expand: nil,
|
2496
|
+
external_account: nil,
|
2497
|
+
groups: nil,
|
2498
|
+
individual: nil,
|
2499
|
+
metadata: nil,
|
2500
|
+
settings: nil,
|
2501
|
+
tos_acceptance: nil
|
2502
|
+
)
|
2503
|
+
@account_token = account_token
|
2504
|
+
@business_profile = business_profile
|
2505
|
+
@business_type = business_type
|
2506
|
+
@capabilities = capabilities
|
2507
|
+
@company = company
|
2508
|
+
@default_currency = default_currency
|
2509
|
+
@documents = documents
|
2510
|
+
@email = email
|
2511
|
+
@expand = expand
|
2512
|
+
@external_account = external_account
|
2513
|
+
@groups = groups
|
2514
|
+
@individual = individual
|
2515
|
+
@metadata = metadata
|
2516
|
+
@settings = settings
|
2517
|
+
@tos_acceptance = tos_acceptance
|
2518
|
+
end
|
2519
|
+
end
|
2520
|
+
|
2521
|
+
class ListParams < Stripe::RequestParams
|
2522
|
+
class Created < Stripe::RequestParams
|
2523
|
+
# Minimum value to filter by (exclusive)
|
2524
|
+
attr_accessor :gt
|
2525
|
+
# Minimum value to filter by (inclusive)
|
2526
|
+
attr_accessor :gte
|
2527
|
+
# Maximum value to filter by (exclusive)
|
2528
|
+
attr_accessor :lt
|
2529
|
+
# Maximum value to filter by (inclusive)
|
2530
|
+
attr_accessor :lte
|
2531
|
+
|
2532
|
+
def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
|
2533
|
+
@gt = gt
|
2534
|
+
@gte = gte
|
2535
|
+
@lt = lt
|
2536
|
+
@lte = lte
|
2537
|
+
end
|
2538
|
+
end
|
2539
|
+
# Only return connected accounts that were created during the given date interval.
|
2540
|
+
attr_accessor :created
|
2541
|
+
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
2542
|
+
attr_accessor :ending_before
|
2543
|
+
# Specifies which fields in the response should be expanded.
|
2544
|
+
attr_accessor :expand
|
2545
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
2546
|
+
attr_accessor :limit
|
2547
|
+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
2548
|
+
attr_accessor :starting_after
|
2549
|
+
|
2550
|
+
def initialize(created: nil, ending_before: nil, expand: nil, limit: nil, starting_after: nil)
|
2551
|
+
@created = created
|
2552
|
+
@ending_before = ending_before
|
2553
|
+
@expand = expand
|
2554
|
+
@limit = limit
|
2555
|
+
@starting_after = starting_after
|
2556
|
+
end
|
2557
|
+
end
|
2558
|
+
|
2559
|
+
class CreateParams < Stripe::RequestParams
|
2560
|
+
class BankAccount < Stripe::RequestParams
|
2561
|
+
# Attribute for param field object
|
2562
|
+
attr_accessor :object
|
2563
|
+
# The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object.
|
2564
|
+
attr_accessor :account_holder_name
|
2565
|
+
# The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
|
2566
|
+
attr_accessor :account_holder_type
|
2567
|
+
# The account number for the bank account, in string form. Must be a checking account.
|
2568
|
+
attr_accessor :account_number
|
2569
|
+
# The country in which the bank account is located.
|
2570
|
+
attr_accessor :country
|
2571
|
+
# The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
|
2572
|
+
attr_accessor :currency
|
2573
|
+
# The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required.
|
2574
|
+
attr_accessor :routing_number
|
2575
|
+
|
2576
|
+
def initialize(
|
2577
|
+
object: nil,
|
2578
|
+
account_holder_name: nil,
|
2579
|
+
account_holder_type: nil,
|
2580
|
+
account_number: nil,
|
2581
|
+
country: nil,
|
2582
|
+
currency: nil,
|
2583
|
+
routing_number: nil
|
2584
|
+
)
|
2585
|
+
@object = object
|
2586
|
+
@account_holder_name = account_holder_name
|
2587
|
+
@account_holder_type = account_holder_type
|
2588
|
+
@account_number = account_number
|
2589
|
+
@country = country
|
2590
|
+
@currency = currency
|
2591
|
+
@routing_number = routing_number
|
2592
|
+
end
|
2593
|
+
end
|
2594
|
+
|
2595
|
+
class BusinessProfile < Stripe::RequestParams
|
2596
|
+
class AnnualRevenue < Stripe::RequestParams
|
2597
|
+
# A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal).
|
2598
|
+
attr_accessor :amount
|
2599
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
2600
|
+
attr_accessor :currency
|
2601
|
+
# The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
|
2602
|
+
attr_accessor :fiscal_year_end
|
2603
|
+
|
2604
|
+
def initialize(amount: nil, currency: nil, fiscal_year_end: nil)
|
2605
|
+
@amount = amount
|
2606
|
+
@currency = currency
|
2607
|
+
@fiscal_year_end = fiscal_year_end
|
2608
|
+
end
|
2609
|
+
end
|
2610
|
+
|
2611
|
+
class MonthlyEstimatedRevenue < Stripe::RequestParams
|
2612
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal).
|
2613
|
+
attr_accessor :amount
|
2614
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
2615
|
+
attr_accessor :currency
|
2616
|
+
|
2617
|
+
def initialize(amount: nil, currency: nil)
|
2618
|
+
@amount = amount
|
2619
|
+
@currency = currency
|
2620
|
+
end
|
2621
|
+
end
|
2622
|
+
|
2623
|
+
class SupportAddress < Stripe::RequestParams
|
2624
|
+
# City, district, suburb, town, or village.
|
2625
|
+
attr_accessor :city
|
2626
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
2627
|
+
attr_accessor :country
|
2628
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
2629
|
+
attr_accessor :line1
|
2630
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
2631
|
+
attr_accessor :line2
|
2632
|
+
# ZIP or postal code.
|
2633
|
+
attr_accessor :postal_code
|
2634
|
+
# State, county, province, or region.
|
2635
|
+
attr_accessor :state
|
2636
|
+
|
2637
|
+
def initialize(
|
2638
|
+
city: nil,
|
2639
|
+
country: nil,
|
2640
|
+
line1: nil,
|
2641
|
+
line2: nil,
|
2642
|
+
postal_code: nil,
|
2643
|
+
state: nil
|
2644
|
+
)
|
2645
|
+
@city = city
|
2646
|
+
@country = country
|
2647
|
+
@line1 = line1
|
2648
|
+
@line2 = line2
|
2649
|
+
@postal_code = postal_code
|
2650
|
+
@state = state
|
2651
|
+
end
|
2652
|
+
end
|
2653
|
+
# The applicant's gross annual revenue for its preceding fiscal year.
|
2654
|
+
attr_accessor :annual_revenue
|
2655
|
+
# An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
|
2656
|
+
attr_accessor :estimated_worker_count
|
2657
|
+
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
|
2658
|
+
attr_accessor :mcc
|
2659
|
+
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
|
2660
|
+
attr_accessor :monthly_estimated_revenue
|
2661
|
+
# The customer-facing business name.
|
2662
|
+
attr_accessor :name
|
2663
|
+
# Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes.
|
2664
|
+
attr_accessor :product_description
|
2665
|
+
# A publicly available mailing address for sending support issues to.
|
2666
|
+
attr_accessor :support_address
|
2667
|
+
# A publicly available email address for sending support issues to.
|
2668
|
+
attr_accessor :support_email
|
2669
|
+
# A publicly available phone number to call with support issues.
|
2670
|
+
attr_accessor :support_phone
|
2671
|
+
# A publicly available website for handling support issues.
|
2672
|
+
attr_accessor :support_url
|
2673
|
+
# The business's publicly available website.
|
2674
|
+
attr_accessor :url
|
2675
|
+
|
2676
|
+
def initialize(
|
2677
|
+
annual_revenue: nil,
|
2678
|
+
estimated_worker_count: nil,
|
2679
|
+
mcc: nil,
|
2680
|
+
monthly_estimated_revenue: nil,
|
2681
|
+
name: nil,
|
2682
|
+
product_description: nil,
|
2683
|
+
support_address: nil,
|
2684
|
+
support_email: nil,
|
2685
|
+
support_phone: nil,
|
2686
|
+
support_url: nil,
|
2687
|
+
url: nil
|
2688
|
+
)
|
2689
|
+
@annual_revenue = annual_revenue
|
2690
|
+
@estimated_worker_count = estimated_worker_count
|
2691
|
+
@mcc = mcc
|
2692
|
+
@monthly_estimated_revenue = monthly_estimated_revenue
|
2693
|
+
@name = name
|
2694
|
+
@product_description = product_description
|
2695
|
+
@support_address = support_address
|
2696
|
+
@support_email = support_email
|
2697
|
+
@support_phone = support_phone
|
2698
|
+
@support_url = support_url
|
2699
|
+
@url = url
|
2700
|
+
end
|
2701
|
+
end
|
2702
|
+
|
2703
|
+
class Capabilities < Stripe::RequestParams
|
2704
|
+
class AcssDebitPayments < Stripe::RequestParams
|
2705
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2706
|
+
attr_accessor :requested
|
2707
|
+
|
2708
|
+
def initialize(requested: nil)
|
2709
|
+
@requested = requested
|
2710
|
+
end
|
2711
|
+
end
|
2712
|
+
|
2713
|
+
class AffirmPayments < Stripe::RequestParams
|
2714
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2715
|
+
attr_accessor :requested
|
2716
|
+
|
2717
|
+
def initialize(requested: nil)
|
2718
|
+
@requested = requested
|
2719
|
+
end
|
2720
|
+
end
|
2721
|
+
|
2722
|
+
class AfterpayClearpayPayments < Stripe::RequestParams
|
2723
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2724
|
+
attr_accessor :requested
|
2725
|
+
|
2726
|
+
def initialize(requested: nil)
|
2727
|
+
@requested = requested
|
2728
|
+
end
|
2729
|
+
end
|
2730
|
+
|
2731
|
+
class AlmaPayments < Stripe::RequestParams
|
2732
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2733
|
+
attr_accessor :requested
|
2734
|
+
|
2735
|
+
def initialize(requested: nil)
|
2736
|
+
@requested = requested
|
2737
|
+
end
|
2738
|
+
end
|
2739
|
+
|
2740
|
+
class AmazonPayPayments < Stripe::RequestParams
|
2741
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2742
|
+
attr_accessor :requested
|
2743
|
+
|
2744
|
+
def initialize(requested: nil)
|
2745
|
+
@requested = requested
|
2746
|
+
end
|
2747
|
+
end
|
2748
|
+
|
2749
|
+
class AuBecsDebitPayments < Stripe::RequestParams
|
2750
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2751
|
+
attr_accessor :requested
|
2752
|
+
|
2753
|
+
def initialize(requested: nil)
|
2754
|
+
@requested = requested
|
2755
|
+
end
|
2756
|
+
end
|
2757
|
+
|
2758
|
+
class BacsDebitPayments < Stripe::RequestParams
|
2759
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2760
|
+
attr_accessor :requested
|
2761
|
+
|
2762
|
+
def initialize(requested: nil)
|
2763
|
+
@requested = requested
|
2764
|
+
end
|
2765
|
+
end
|
2766
|
+
|
2767
|
+
class BancontactPayments < Stripe::RequestParams
|
2768
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2769
|
+
attr_accessor :requested
|
2770
|
+
|
2771
|
+
def initialize(requested: nil)
|
2772
|
+
@requested = requested
|
2773
|
+
end
|
2774
|
+
end
|
2775
|
+
|
2776
|
+
class BankTransferPayments < Stripe::RequestParams
|
2777
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2778
|
+
attr_accessor :requested
|
2779
|
+
|
2780
|
+
def initialize(requested: nil)
|
2781
|
+
@requested = requested
|
2782
|
+
end
|
2783
|
+
end
|
2784
|
+
|
2785
|
+
class BilliePayments < Stripe::RequestParams
|
2786
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2787
|
+
attr_accessor :requested
|
2788
|
+
|
2789
|
+
def initialize(requested: nil)
|
2790
|
+
@requested = requested
|
2791
|
+
end
|
2792
|
+
end
|
2793
|
+
|
2794
|
+
class BlikPayments < Stripe::RequestParams
|
2795
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2796
|
+
attr_accessor :requested
|
2797
|
+
|
2798
|
+
def initialize(requested: nil)
|
2799
|
+
@requested = requested
|
2800
|
+
end
|
2801
|
+
end
|
2802
|
+
|
2803
|
+
class BoletoPayments < Stripe::RequestParams
|
2804
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2805
|
+
attr_accessor :requested
|
2806
|
+
|
2807
|
+
def initialize(requested: nil)
|
2808
|
+
@requested = requested
|
2809
|
+
end
|
2810
|
+
end
|
2811
|
+
|
2812
|
+
class CardIssuing < Stripe::RequestParams
|
2813
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2814
|
+
attr_accessor :requested
|
2815
|
+
|
2816
|
+
def initialize(requested: nil)
|
2817
|
+
@requested = requested
|
2818
|
+
end
|
2819
|
+
end
|
2820
|
+
|
2821
|
+
class CardPayments < Stripe::RequestParams
|
2822
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2823
|
+
attr_accessor :requested
|
2824
|
+
|
2825
|
+
def initialize(requested: nil)
|
2826
|
+
@requested = requested
|
2827
|
+
end
|
2828
|
+
end
|
2829
|
+
|
2830
|
+
class CartesBancairesPayments < Stripe::RequestParams
|
2831
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2832
|
+
attr_accessor :requested
|
2833
|
+
|
2834
|
+
def initialize(requested: nil)
|
2835
|
+
@requested = requested
|
2836
|
+
end
|
2837
|
+
end
|
2838
|
+
|
2839
|
+
class CashappPayments < Stripe::RequestParams
|
2840
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2841
|
+
attr_accessor :requested
|
2842
|
+
|
2843
|
+
def initialize(requested: nil)
|
2844
|
+
@requested = requested
|
2845
|
+
end
|
2846
|
+
end
|
2847
|
+
|
2848
|
+
class EpsPayments < Stripe::RequestParams
|
2849
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2850
|
+
attr_accessor :requested
|
2851
|
+
|
2852
|
+
def initialize(requested: nil)
|
2853
|
+
@requested = requested
|
2854
|
+
end
|
2855
|
+
end
|
2856
|
+
|
2857
|
+
class FpxPayments < Stripe::RequestParams
|
2858
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2859
|
+
attr_accessor :requested
|
2860
|
+
|
2861
|
+
def initialize(requested: nil)
|
2862
|
+
@requested = requested
|
2863
|
+
end
|
2864
|
+
end
|
2865
|
+
|
2866
|
+
class GbBankTransferPayments < Stripe::RequestParams
|
2867
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2868
|
+
attr_accessor :requested
|
2869
|
+
|
2870
|
+
def initialize(requested: nil)
|
2871
|
+
@requested = requested
|
2872
|
+
end
|
2873
|
+
end
|
2874
|
+
|
2875
|
+
class GiropayPayments < Stripe::RequestParams
|
2876
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2877
|
+
attr_accessor :requested
|
2878
|
+
|
2879
|
+
def initialize(requested: nil)
|
2880
|
+
@requested = requested
|
2881
|
+
end
|
2882
|
+
end
|
2883
|
+
|
2884
|
+
class GrabpayPayments < Stripe::RequestParams
|
2885
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2886
|
+
attr_accessor :requested
|
2887
|
+
|
2888
|
+
def initialize(requested: nil)
|
2889
|
+
@requested = requested
|
2890
|
+
end
|
2891
|
+
end
|
2892
|
+
|
2893
|
+
class IdealPayments < Stripe::RequestParams
|
2894
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2895
|
+
attr_accessor :requested
|
2896
|
+
|
2897
|
+
def initialize(requested: nil)
|
2898
|
+
@requested = requested
|
2899
|
+
end
|
2900
|
+
end
|
2901
|
+
|
2902
|
+
class IndiaInternationalPayments < Stripe::RequestParams
|
2903
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2904
|
+
attr_accessor :requested
|
2905
|
+
|
2906
|
+
def initialize(requested: nil)
|
2907
|
+
@requested = requested
|
2908
|
+
end
|
2909
|
+
end
|
2910
|
+
|
2911
|
+
class JcbPayments < Stripe::RequestParams
|
2912
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2913
|
+
attr_accessor :requested
|
2914
|
+
|
2915
|
+
def initialize(requested: nil)
|
2916
|
+
@requested = requested
|
2917
|
+
end
|
2918
|
+
end
|
2919
|
+
|
2920
|
+
class JpBankTransferPayments < Stripe::RequestParams
|
2921
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2922
|
+
attr_accessor :requested
|
2923
|
+
|
2924
|
+
def initialize(requested: nil)
|
2925
|
+
@requested = requested
|
2926
|
+
end
|
2927
|
+
end
|
2928
|
+
|
2929
|
+
class KakaoPayPayments < Stripe::RequestParams
|
2930
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2931
|
+
attr_accessor :requested
|
2932
|
+
|
2933
|
+
def initialize(requested: nil)
|
2934
|
+
@requested = requested
|
2935
|
+
end
|
2936
|
+
end
|
2937
|
+
|
2938
|
+
class KlarnaPayments < Stripe::RequestParams
|
2939
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2940
|
+
attr_accessor :requested
|
2941
|
+
|
2942
|
+
def initialize(requested: nil)
|
2943
|
+
@requested = requested
|
2944
|
+
end
|
2945
|
+
end
|
2946
|
+
|
2947
|
+
class KonbiniPayments < Stripe::RequestParams
|
2948
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2949
|
+
attr_accessor :requested
|
2950
|
+
|
2951
|
+
def initialize(requested: nil)
|
2952
|
+
@requested = requested
|
2953
|
+
end
|
2954
|
+
end
|
2955
|
+
|
2956
|
+
class KrCardPayments < Stripe::RequestParams
|
2957
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2958
|
+
attr_accessor :requested
|
2959
|
+
|
2960
|
+
def initialize(requested: nil)
|
2961
|
+
@requested = requested
|
2962
|
+
end
|
2963
|
+
end
|
2964
|
+
|
2965
|
+
class LegacyPayments < Stripe::RequestParams
|
2966
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2967
|
+
attr_accessor :requested
|
2968
|
+
|
2969
|
+
def initialize(requested: nil)
|
2970
|
+
@requested = requested
|
2971
|
+
end
|
2972
|
+
end
|
2973
|
+
|
2974
|
+
class LinkPayments < Stripe::RequestParams
|
2975
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2976
|
+
attr_accessor :requested
|
2977
|
+
|
2978
|
+
def initialize(requested: nil)
|
2979
|
+
@requested = requested
|
2980
|
+
end
|
2981
|
+
end
|
2982
|
+
|
2983
|
+
class MobilepayPayments < Stripe::RequestParams
|
2984
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2985
|
+
attr_accessor :requested
|
2986
|
+
|
2987
|
+
def initialize(requested: nil)
|
2988
|
+
@requested = requested
|
2989
|
+
end
|
2990
|
+
end
|
2991
|
+
|
2992
|
+
class MultibancoPayments < Stripe::RequestParams
|
2993
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2994
|
+
attr_accessor :requested
|
2995
|
+
|
2996
|
+
def initialize(requested: nil)
|
2997
|
+
@requested = requested
|
2998
|
+
end
|
2999
|
+
end
|
3000
|
+
|
3001
|
+
class MxBankTransferPayments < Stripe::RequestParams
|
3002
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3003
|
+
attr_accessor :requested
|
3004
|
+
|
3005
|
+
def initialize(requested: nil)
|
3006
|
+
@requested = requested
|
3007
|
+
end
|
3008
|
+
end
|
3009
|
+
|
3010
|
+
class NaverPayPayments < Stripe::RequestParams
|
3011
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3012
|
+
attr_accessor :requested
|
3013
|
+
|
3014
|
+
def initialize(requested: nil)
|
3015
|
+
@requested = requested
|
3016
|
+
end
|
3017
|
+
end
|
3018
|
+
|
3019
|
+
class NzBankAccountBecsDebitPayments < Stripe::RequestParams
|
3020
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3021
|
+
attr_accessor :requested
|
3022
|
+
|
3023
|
+
def initialize(requested: nil)
|
3024
|
+
@requested = requested
|
3025
|
+
end
|
3026
|
+
end
|
3027
|
+
|
3028
|
+
class OxxoPayments < Stripe::RequestParams
|
3029
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3030
|
+
attr_accessor :requested
|
3031
|
+
|
3032
|
+
def initialize(requested: nil)
|
3033
|
+
@requested = requested
|
3034
|
+
end
|
3035
|
+
end
|
3036
|
+
|
3037
|
+
class P24Payments < Stripe::RequestParams
|
3038
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3039
|
+
attr_accessor :requested
|
3040
|
+
|
3041
|
+
def initialize(requested: nil)
|
3042
|
+
@requested = requested
|
3043
|
+
end
|
3044
|
+
end
|
3045
|
+
|
3046
|
+
class PayByBankPayments < Stripe::RequestParams
|
3047
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3048
|
+
attr_accessor :requested
|
3049
|
+
|
3050
|
+
def initialize(requested: nil)
|
3051
|
+
@requested = requested
|
3052
|
+
end
|
3053
|
+
end
|
3054
|
+
|
3055
|
+
class PaycoPayments < Stripe::RequestParams
|
3056
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3057
|
+
attr_accessor :requested
|
3058
|
+
|
3059
|
+
def initialize(requested: nil)
|
3060
|
+
@requested = requested
|
3061
|
+
end
|
3062
|
+
end
|
3063
|
+
|
3064
|
+
class PaynowPayments < Stripe::RequestParams
|
3065
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3066
|
+
attr_accessor :requested
|
3067
|
+
|
3068
|
+
def initialize(requested: nil)
|
3069
|
+
@requested = requested
|
3070
|
+
end
|
3071
|
+
end
|
3072
|
+
|
3073
|
+
class PromptpayPayments < Stripe::RequestParams
|
3074
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3075
|
+
attr_accessor :requested
|
3076
|
+
|
3077
|
+
def initialize(requested: nil)
|
3078
|
+
@requested = requested
|
3079
|
+
end
|
3080
|
+
end
|
3081
|
+
|
3082
|
+
class RevolutPayPayments < Stripe::RequestParams
|
3083
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3084
|
+
attr_accessor :requested
|
3085
|
+
|
3086
|
+
def initialize(requested: nil)
|
3087
|
+
@requested = requested
|
3088
|
+
end
|
3089
|
+
end
|
3090
|
+
|
3091
|
+
class SamsungPayPayments < Stripe::RequestParams
|
3092
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3093
|
+
attr_accessor :requested
|
3094
|
+
|
3095
|
+
def initialize(requested: nil)
|
3096
|
+
@requested = requested
|
3097
|
+
end
|
3098
|
+
end
|
3099
|
+
|
3100
|
+
class SatispayPayments < Stripe::RequestParams
|
3101
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3102
|
+
attr_accessor :requested
|
3103
|
+
|
3104
|
+
def initialize(requested: nil)
|
3105
|
+
@requested = requested
|
3106
|
+
end
|
3107
|
+
end
|
3108
|
+
|
3109
|
+
class SepaBankTransferPayments < Stripe::RequestParams
|
3110
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3111
|
+
attr_accessor :requested
|
3112
|
+
|
3113
|
+
def initialize(requested: nil)
|
3114
|
+
@requested = requested
|
3115
|
+
end
|
3116
|
+
end
|
3117
|
+
|
3118
|
+
class SepaDebitPayments < Stripe::RequestParams
|
3119
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3120
|
+
attr_accessor :requested
|
3121
|
+
|
3122
|
+
def initialize(requested: nil)
|
3123
|
+
@requested = requested
|
3124
|
+
end
|
3125
|
+
end
|
3126
|
+
|
3127
|
+
class SofortPayments < Stripe::RequestParams
|
3128
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3129
|
+
attr_accessor :requested
|
3130
|
+
|
3131
|
+
def initialize(requested: nil)
|
3132
|
+
@requested = requested
|
3133
|
+
end
|
3134
|
+
end
|
3135
|
+
|
3136
|
+
class SwishPayments < Stripe::RequestParams
|
3137
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3138
|
+
attr_accessor :requested
|
3139
|
+
|
3140
|
+
def initialize(requested: nil)
|
3141
|
+
@requested = requested
|
3142
|
+
end
|
3143
|
+
end
|
3144
|
+
|
3145
|
+
class TaxReportingUs1099K < Stripe::RequestParams
|
3146
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3147
|
+
attr_accessor :requested
|
3148
|
+
|
3149
|
+
def initialize(requested: nil)
|
3150
|
+
@requested = requested
|
3151
|
+
end
|
3152
|
+
end
|
3153
|
+
|
3154
|
+
class TaxReportingUs1099Misc < Stripe::RequestParams
|
3155
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3156
|
+
attr_accessor :requested
|
3157
|
+
|
3158
|
+
def initialize(requested: nil)
|
3159
|
+
@requested = requested
|
3160
|
+
end
|
3161
|
+
end
|
3162
|
+
|
3163
|
+
class Transfers < Stripe::RequestParams
|
3164
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3165
|
+
attr_accessor :requested
|
3166
|
+
|
3167
|
+
def initialize(requested: nil)
|
3168
|
+
@requested = requested
|
3169
|
+
end
|
3170
|
+
end
|
3171
|
+
|
3172
|
+
class Treasury < Stripe::RequestParams
|
3173
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3174
|
+
attr_accessor :requested
|
3175
|
+
|
3176
|
+
def initialize(requested: nil)
|
3177
|
+
@requested = requested
|
3178
|
+
end
|
3179
|
+
end
|
3180
|
+
|
3181
|
+
class TwintPayments < Stripe::RequestParams
|
3182
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3183
|
+
attr_accessor :requested
|
3184
|
+
|
3185
|
+
def initialize(requested: nil)
|
3186
|
+
@requested = requested
|
3187
|
+
end
|
3188
|
+
end
|
3189
|
+
|
3190
|
+
class UsBankAccountAchPayments < Stripe::RequestParams
|
3191
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3192
|
+
attr_accessor :requested
|
3193
|
+
|
3194
|
+
def initialize(requested: nil)
|
3195
|
+
@requested = requested
|
3196
|
+
end
|
3197
|
+
end
|
3198
|
+
|
3199
|
+
class UsBankTransferPayments < Stripe::RequestParams
|
3200
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3201
|
+
attr_accessor :requested
|
3202
|
+
|
3203
|
+
def initialize(requested: nil)
|
3204
|
+
@requested = requested
|
3205
|
+
end
|
3206
|
+
end
|
3207
|
+
|
3208
|
+
class ZipPayments < Stripe::RequestParams
|
3209
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3210
|
+
attr_accessor :requested
|
3211
|
+
|
3212
|
+
def initialize(requested: nil)
|
3213
|
+
@requested = requested
|
3214
|
+
end
|
3215
|
+
end
|
3216
|
+
# The acss_debit_payments capability.
|
3217
|
+
attr_accessor :acss_debit_payments
|
3218
|
+
# The affirm_payments capability.
|
3219
|
+
attr_accessor :affirm_payments
|
3220
|
+
# The afterpay_clearpay_payments capability.
|
3221
|
+
attr_accessor :afterpay_clearpay_payments
|
3222
|
+
# The alma_payments capability.
|
3223
|
+
attr_accessor :alma_payments
|
3224
|
+
# The amazon_pay_payments capability.
|
3225
|
+
attr_accessor :amazon_pay_payments
|
3226
|
+
# The au_becs_debit_payments capability.
|
3227
|
+
attr_accessor :au_becs_debit_payments
|
3228
|
+
# The bacs_debit_payments capability.
|
3229
|
+
attr_accessor :bacs_debit_payments
|
3230
|
+
# The bancontact_payments capability.
|
3231
|
+
attr_accessor :bancontact_payments
|
3232
|
+
# The bank_transfer_payments capability.
|
3233
|
+
attr_accessor :bank_transfer_payments
|
3234
|
+
# The billie_payments capability.
|
3235
|
+
attr_accessor :billie_payments
|
3236
|
+
# The blik_payments capability.
|
3237
|
+
attr_accessor :blik_payments
|
3238
|
+
# The boleto_payments capability.
|
3239
|
+
attr_accessor :boleto_payments
|
3240
|
+
# The card_issuing capability.
|
3241
|
+
attr_accessor :card_issuing
|
3242
|
+
# The card_payments capability.
|
3243
|
+
attr_accessor :card_payments
|
3244
|
+
# The cartes_bancaires_payments capability.
|
3245
|
+
attr_accessor :cartes_bancaires_payments
|
3246
|
+
# The cashapp_payments capability.
|
3247
|
+
attr_accessor :cashapp_payments
|
3248
|
+
# The eps_payments capability.
|
3249
|
+
attr_accessor :eps_payments
|
3250
|
+
# The fpx_payments capability.
|
3251
|
+
attr_accessor :fpx_payments
|
3252
|
+
# The gb_bank_transfer_payments capability.
|
3253
|
+
attr_accessor :gb_bank_transfer_payments
|
3254
|
+
# The giropay_payments capability.
|
3255
|
+
attr_accessor :giropay_payments
|
3256
|
+
# The grabpay_payments capability.
|
3257
|
+
attr_accessor :grabpay_payments
|
3258
|
+
# The ideal_payments capability.
|
3259
|
+
attr_accessor :ideal_payments
|
3260
|
+
# The india_international_payments capability.
|
3261
|
+
attr_accessor :india_international_payments
|
3262
|
+
# The jcb_payments capability.
|
3263
|
+
attr_accessor :jcb_payments
|
3264
|
+
# The jp_bank_transfer_payments capability.
|
3265
|
+
attr_accessor :jp_bank_transfer_payments
|
3266
|
+
# The kakao_pay_payments capability.
|
3267
|
+
attr_accessor :kakao_pay_payments
|
3268
|
+
# The klarna_payments capability.
|
3269
|
+
attr_accessor :klarna_payments
|
3270
|
+
# The konbini_payments capability.
|
3271
|
+
attr_accessor :konbini_payments
|
3272
|
+
# The kr_card_payments capability.
|
3273
|
+
attr_accessor :kr_card_payments
|
3274
|
+
# The legacy_payments capability.
|
3275
|
+
attr_accessor :legacy_payments
|
3276
|
+
# The link_payments capability.
|
3277
|
+
attr_accessor :link_payments
|
3278
|
+
# The mobilepay_payments capability.
|
3279
|
+
attr_accessor :mobilepay_payments
|
3280
|
+
# The multibanco_payments capability.
|
3281
|
+
attr_accessor :multibanco_payments
|
3282
|
+
# The mx_bank_transfer_payments capability.
|
3283
|
+
attr_accessor :mx_bank_transfer_payments
|
3284
|
+
# The naver_pay_payments capability.
|
3285
|
+
attr_accessor :naver_pay_payments
|
3286
|
+
# The nz_bank_account_becs_debit_payments capability.
|
3287
|
+
attr_accessor :nz_bank_account_becs_debit_payments
|
3288
|
+
# The oxxo_payments capability.
|
3289
|
+
attr_accessor :oxxo_payments
|
3290
|
+
# The p24_payments capability.
|
3291
|
+
attr_accessor :p24_payments
|
3292
|
+
# The pay_by_bank_payments capability.
|
3293
|
+
attr_accessor :pay_by_bank_payments
|
3294
|
+
# The payco_payments capability.
|
3295
|
+
attr_accessor :payco_payments
|
3296
|
+
# The paynow_payments capability.
|
3297
|
+
attr_accessor :paynow_payments
|
3298
|
+
# The promptpay_payments capability.
|
3299
|
+
attr_accessor :promptpay_payments
|
3300
|
+
# The revolut_pay_payments capability.
|
3301
|
+
attr_accessor :revolut_pay_payments
|
3302
|
+
# The samsung_pay_payments capability.
|
3303
|
+
attr_accessor :samsung_pay_payments
|
3304
|
+
# The satispay_payments capability.
|
3305
|
+
attr_accessor :satispay_payments
|
3306
|
+
# The sepa_bank_transfer_payments capability.
|
3307
|
+
attr_accessor :sepa_bank_transfer_payments
|
3308
|
+
# The sepa_debit_payments capability.
|
3309
|
+
attr_accessor :sepa_debit_payments
|
3310
|
+
# The sofort_payments capability.
|
3311
|
+
attr_accessor :sofort_payments
|
3312
|
+
# The swish_payments capability.
|
3313
|
+
attr_accessor :swish_payments
|
3314
|
+
# The tax_reporting_us_1099_k capability.
|
3315
|
+
attr_accessor :tax_reporting_us_1099_k
|
3316
|
+
# The tax_reporting_us_1099_misc capability.
|
3317
|
+
attr_accessor :tax_reporting_us_1099_misc
|
3318
|
+
# The transfers capability.
|
3319
|
+
attr_accessor :transfers
|
3320
|
+
# The treasury capability.
|
3321
|
+
attr_accessor :treasury
|
3322
|
+
# The twint_payments capability.
|
3323
|
+
attr_accessor :twint_payments
|
3324
|
+
# The us_bank_account_ach_payments capability.
|
3325
|
+
attr_accessor :us_bank_account_ach_payments
|
3326
|
+
# The us_bank_transfer_payments capability.
|
3327
|
+
attr_accessor :us_bank_transfer_payments
|
3328
|
+
# The zip_payments capability.
|
3329
|
+
attr_accessor :zip_payments
|
3330
|
+
|
3331
|
+
def initialize(
|
3332
|
+
acss_debit_payments: nil,
|
3333
|
+
affirm_payments: nil,
|
3334
|
+
afterpay_clearpay_payments: nil,
|
3335
|
+
alma_payments: nil,
|
3336
|
+
amazon_pay_payments: nil,
|
3337
|
+
au_becs_debit_payments: nil,
|
3338
|
+
bacs_debit_payments: nil,
|
3339
|
+
bancontact_payments: nil,
|
3340
|
+
bank_transfer_payments: nil,
|
3341
|
+
billie_payments: nil,
|
3342
|
+
blik_payments: nil,
|
3343
|
+
boleto_payments: nil,
|
3344
|
+
card_issuing: nil,
|
3345
|
+
card_payments: nil,
|
3346
|
+
cartes_bancaires_payments: nil,
|
3347
|
+
cashapp_payments: nil,
|
3348
|
+
eps_payments: nil,
|
3349
|
+
fpx_payments: nil,
|
3350
|
+
gb_bank_transfer_payments: nil,
|
3351
|
+
giropay_payments: nil,
|
3352
|
+
grabpay_payments: nil,
|
3353
|
+
ideal_payments: nil,
|
3354
|
+
india_international_payments: nil,
|
3355
|
+
jcb_payments: nil,
|
3356
|
+
jp_bank_transfer_payments: nil,
|
3357
|
+
kakao_pay_payments: nil,
|
3358
|
+
klarna_payments: nil,
|
3359
|
+
konbini_payments: nil,
|
3360
|
+
kr_card_payments: nil,
|
3361
|
+
legacy_payments: nil,
|
3362
|
+
link_payments: nil,
|
3363
|
+
mobilepay_payments: nil,
|
3364
|
+
multibanco_payments: nil,
|
3365
|
+
mx_bank_transfer_payments: nil,
|
3366
|
+
naver_pay_payments: nil,
|
3367
|
+
nz_bank_account_becs_debit_payments: nil,
|
3368
|
+
oxxo_payments: nil,
|
3369
|
+
p24_payments: nil,
|
3370
|
+
pay_by_bank_payments: nil,
|
3371
|
+
payco_payments: nil,
|
3372
|
+
paynow_payments: nil,
|
3373
|
+
promptpay_payments: nil,
|
3374
|
+
revolut_pay_payments: nil,
|
3375
|
+
samsung_pay_payments: nil,
|
3376
|
+
satispay_payments: nil,
|
3377
|
+
sepa_bank_transfer_payments: nil,
|
3378
|
+
sepa_debit_payments: nil,
|
3379
|
+
sofort_payments: nil,
|
3380
|
+
swish_payments: nil,
|
3381
|
+
tax_reporting_us_1099_k: nil,
|
3382
|
+
tax_reporting_us_1099_misc: nil,
|
3383
|
+
transfers: nil,
|
3384
|
+
treasury: nil,
|
3385
|
+
twint_payments: nil,
|
3386
|
+
us_bank_account_ach_payments: nil,
|
3387
|
+
us_bank_transfer_payments: nil,
|
3388
|
+
zip_payments: nil
|
3389
|
+
)
|
3390
|
+
@acss_debit_payments = acss_debit_payments
|
3391
|
+
@affirm_payments = affirm_payments
|
3392
|
+
@afterpay_clearpay_payments = afterpay_clearpay_payments
|
3393
|
+
@alma_payments = alma_payments
|
3394
|
+
@amazon_pay_payments = amazon_pay_payments
|
3395
|
+
@au_becs_debit_payments = au_becs_debit_payments
|
3396
|
+
@bacs_debit_payments = bacs_debit_payments
|
3397
|
+
@bancontact_payments = bancontact_payments
|
3398
|
+
@bank_transfer_payments = bank_transfer_payments
|
3399
|
+
@billie_payments = billie_payments
|
3400
|
+
@blik_payments = blik_payments
|
3401
|
+
@boleto_payments = boleto_payments
|
3402
|
+
@card_issuing = card_issuing
|
3403
|
+
@card_payments = card_payments
|
3404
|
+
@cartes_bancaires_payments = cartes_bancaires_payments
|
3405
|
+
@cashapp_payments = cashapp_payments
|
3406
|
+
@eps_payments = eps_payments
|
3407
|
+
@fpx_payments = fpx_payments
|
3408
|
+
@gb_bank_transfer_payments = gb_bank_transfer_payments
|
3409
|
+
@giropay_payments = giropay_payments
|
3410
|
+
@grabpay_payments = grabpay_payments
|
3411
|
+
@ideal_payments = ideal_payments
|
3412
|
+
@india_international_payments = india_international_payments
|
3413
|
+
@jcb_payments = jcb_payments
|
3414
|
+
@jp_bank_transfer_payments = jp_bank_transfer_payments
|
3415
|
+
@kakao_pay_payments = kakao_pay_payments
|
3416
|
+
@klarna_payments = klarna_payments
|
3417
|
+
@konbini_payments = konbini_payments
|
3418
|
+
@kr_card_payments = kr_card_payments
|
3419
|
+
@legacy_payments = legacy_payments
|
3420
|
+
@link_payments = link_payments
|
3421
|
+
@mobilepay_payments = mobilepay_payments
|
3422
|
+
@multibanco_payments = multibanco_payments
|
3423
|
+
@mx_bank_transfer_payments = mx_bank_transfer_payments
|
3424
|
+
@naver_pay_payments = naver_pay_payments
|
3425
|
+
@nz_bank_account_becs_debit_payments = nz_bank_account_becs_debit_payments
|
3426
|
+
@oxxo_payments = oxxo_payments
|
3427
|
+
@p24_payments = p24_payments
|
3428
|
+
@pay_by_bank_payments = pay_by_bank_payments
|
3429
|
+
@payco_payments = payco_payments
|
3430
|
+
@paynow_payments = paynow_payments
|
3431
|
+
@promptpay_payments = promptpay_payments
|
3432
|
+
@revolut_pay_payments = revolut_pay_payments
|
3433
|
+
@samsung_pay_payments = samsung_pay_payments
|
3434
|
+
@satispay_payments = satispay_payments
|
3435
|
+
@sepa_bank_transfer_payments = sepa_bank_transfer_payments
|
3436
|
+
@sepa_debit_payments = sepa_debit_payments
|
3437
|
+
@sofort_payments = sofort_payments
|
3438
|
+
@swish_payments = swish_payments
|
3439
|
+
@tax_reporting_us_1099_k = tax_reporting_us_1099_k
|
3440
|
+
@tax_reporting_us_1099_misc = tax_reporting_us_1099_misc
|
3441
|
+
@transfers = transfers
|
3442
|
+
@treasury = treasury
|
3443
|
+
@twint_payments = twint_payments
|
3444
|
+
@us_bank_account_ach_payments = us_bank_account_ach_payments
|
3445
|
+
@us_bank_transfer_payments = us_bank_transfer_payments
|
3446
|
+
@zip_payments = zip_payments
|
3447
|
+
end
|
3448
|
+
end
|
3449
|
+
|
3450
|
+
class Card < Stripe::RequestParams
|
3451
|
+
# Attribute for param field object
|
3452
|
+
attr_accessor :object
|
3453
|
+
# Attribute for param field address_city
|
3454
|
+
attr_accessor :address_city
|
3455
|
+
# Attribute for param field address_country
|
3456
|
+
attr_accessor :address_country
|
3457
|
+
# Attribute for param field address_line1
|
3458
|
+
attr_accessor :address_line1
|
3459
|
+
# Attribute for param field address_line2
|
3460
|
+
attr_accessor :address_line2
|
3461
|
+
# Attribute for param field address_state
|
3462
|
+
attr_accessor :address_state
|
3463
|
+
# Attribute for param field address_zip
|
3464
|
+
attr_accessor :address_zip
|
3465
|
+
# Attribute for param field currency
|
3466
|
+
attr_accessor :currency
|
3467
|
+
# Attribute for param field cvc
|
3468
|
+
attr_accessor :cvc
|
3469
|
+
# Attribute for param field exp_month
|
3470
|
+
attr_accessor :exp_month
|
3471
|
+
# Attribute for param field exp_year
|
3472
|
+
attr_accessor :exp_year
|
3473
|
+
# Attribute for param field name
|
3474
|
+
attr_accessor :name
|
3475
|
+
# Attribute for param field number
|
3476
|
+
attr_accessor :number
|
3477
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
3478
|
+
attr_accessor :metadata
|
3479
|
+
# Attribute for param field default_for_currency
|
3480
|
+
attr_accessor :default_for_currency
|
3481
|
+
|
3482
|
+
def initialize(
|
3483
|
+
object: nil,
|
3484
|
+
address_city: nil,
|
3485
|
+
address_country: nil,
|
3486
|
+
address_line1: nil,
|
3487
|
+
address_line2: nil,
|
3488
|
+
address_state: nil,
|
3489
|
+
address_zip: nil,
|
3490
|
+
currency: nil,
|
3491
|
+
cvc: nil,
|
3492
|
+
exp_month: nil,
|
3493
|
+
exp_year: nil,
|
3494
|
+
name: nil,
|
3495
|
+
number: nil,
|
3496
|
+
metadata: nil,
|
3497
|
+
default_for_currency: nil
|
3498
|
+
)
|
3499
|
+
@object = object
|
3500
|
+
@address_city = address_city
|
3501
|
+
@address_country = address_country
|
3502
|
+
@address_line1 = address_line1
|
3503
|
+
@address_line2 = address_line2
|
3504
|
+
@address_state = address_state
|
3505
|
+
@address_zip = address_zip
|
3506
|
+
@currency = currency
|
3507
|
+
@cvc = cvc
|
3508
|
+
@exp_month = exp_month
|
3509
|
+
@exp_year = exp_year
|
3510
|
+
@name = name
|
3511
|
+
@number = number
|
3512
|
+
@metadata = metadata
|
3513
|
+
@default_for_currency = default_for_currency
|
3514
|
+
end
|
3515
|
+
end
|
3516
|
+
|
3517
|
+
class CardToken < Stripe::RequestParams
|
3518
|
+
# Attribute for param field object
|
3519
|
+
attr_accessor :object
|
3520
|
+
# Attribute for param field currency
|
3521
|
+
attr_accessor :currency
|
3522
|
+
# Attribute for param field token
|
3523
|
+
attr_accessor :token
|
3524
|
+
|
3525
|
+
def initialize(object: nil, currency: nil, token: nil)
|
3526
|
+
@object = object
|
3527
|
+
@currency = currency
|
3528
|
+
@token = token
|
3529
|
+
end
|
3530
|
+
end
|
3531
|
+
|
3532
|
+
class Company < Stripe::RequestParams
|
3533
|
+
class Address < Stripe::RequestParams
|
3534
|
+
# City, district, suburb, town, or village.
|
3535
|
+
attr_accessor :city
|
3536
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
3537
|
+
attr_accessor :country
|
3538
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
3539
|
+
attr_accessor :line1
|
3540
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
3541
|
+
attr_accessor :line2
|
3542
|
+
# ZIP or postal code.
|
3543
|
+
attr_accessor :postal_code
|
3544
|
+
# State, county, province, or region.
|
3545
|
+
attr_accessor :state
|
3546
|
+
|
3547
|
+
def initialize(
|
3548
|
+
city: nil,
|
3549
|
+
country: nil,
|
3550
|
+
line1: nil,
|
3551
|
+
line2: nil,
|
3552
|
+
postal_code: nil,
|
3553
|
+
state: nil
|
3554
|
+
)
|
3555
|
+
@city = city
|
3556
|
+
@country = country
|
3557
|
+
@line1 = line1
|
3558
|
+
@line2 = line2
|
3559
|
+
@postal_code = postal_code
|
3560
|
+
@state = state
|
3561
|
+
end
|
3562
|
+
end
|
3563
|
+
|
3564
|
+
class AddressKana < Stripe::RequestParams
|
3565
|
+
# City or ward.
|
3566
|
+
attr_accessor :city
|
3567
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
3568
|
+
attr_accessor :country
|
3569
|
+
# Block or building number.
|
3570
|
+
attr_accessor :line1
|
3571
|
+
# Building details.
|
3572
|
+
attr_accessor :line2
|
3573
|
+
# Postal code.
|
3574
|
+
attr_accessor :postal_code
|
3575
|
+
# Prefecture.
|
3576
|
+
attr_accessor :state
|
3577
|
+
# Town or cho-me.
|
3578
|
+
attr_accessor :town
|
3579
|
+
|
3580
|
+
def initialize(
|
3581
|
+
city: nil,
|
3582
|
+
country: nil,
|
3583
|
+
line1: nil,
|
3584
|
+
line2: nil,
|
3585
|
+
postal_code: nil,
|
3586
|
+
state: nil,
|
3587
|
+
town: nil
|
3588
|
+
)
|
3589
|
+
@city = city
|
3590
|
+
@country = country
|
3591
|
+
@line1 = line1
|
3592
|
+
@line2 = line2
|
3593
|
+
@postal_code = postal_code
|
3594
|
+
@state = state
|
3595
|
+
@town = town
|
3596
|
+
end
|
3597
|
+
end
|
3598
|
+
|
3599
|
+
class AddressKanji < Stripe::RequestParams
|
3600
|
+
# City or ward.
|
3601
|
+
attr_accessor :city
|
3602
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
3603
|
+
attr_accessor :country
|
3604
|
+
# Block or building number.
|
3605
|
+
attr_accessor :line1
|
3606
|
+
# Building details.
|
3607
|
+
attr_accessor :line2
|
3608
|
+
# Postal code.
|
3609
|
+
attr_accessor :postal_code
|
3610
|
+
# Prefecture.
|
3611
|
+
attr_accessor :state
|
3612
|
+
# Town or cho-me.
|
3613
|
+
attr_accessor :town
|
3614
|
+
|
3615
|
+
def initialize(
|
3616
|
+
city: nil,
|
3617
|
+
country: nil,
|
3618
|
+
line1: nil,
|
3619
|
+
line2: nil,
|
3620
|
+
postal_code: nil,
|
3621
|
+
state: nil,
|
3622
|
+
town: nil
|
3623
|
+
)
|
3624
|
+
@city = city
|
3625
|
+
@country = country
|
3626
|
+
@line1 = line1
|
3627
|
+
@line2 = line2
|
3628
|
+
@postal_code = postal_code
|
3629
|
+
@state = state
|
3630
|
+
@town = town
|
3631
|
+
end
|
3632
|
+
end
|
3633
|
+
|
3634
|
+
class DirectorshipDeclaration < Stripe::RequestParams
|
3635
|
+
# The Unix timestamp marking when the directorship declaration attestation was made.
|
3636
|
+
attr_accessor :date
|
3637
|
+
# The IP address from which the directorship declaration attestation was made.
|
3638
|
+
attr_accessor :ip
|
3639
|
+
# The user agent of the browser from which the directorship declaration attestation was made.
|
3640
|
+
attr_accessor :user_agent
|
3641
|
+
|
3642
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
3643
|
+
@date = date
|
3644
|
+
@ip = ip
|
3645
|
+
@user_agent = user_agent
|
3646
|
+
end
|
3647
|
+
end
|
3648
|
+
|
3649
|
+
class OwnershipDeclaration < Stripe::RequestParams
|
3650
|
+
# The Unix timestamp marking when the beneficial owner attestation was made.
|
3651
|
+
attr_accessor :date
|
3652
|
+
# The IP address from which the beneficial owner attestation was made.
|
3653
|
+
attr_accessor :ip
|
3654
|
+
# The user agent of the browser from which the beneficial owner attestation was made.
|
3655
|
+
attr_accessor :user_agent
|
3656
|
+
|
3657
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
3658
|
+
@date = date
|
3659
|
+
@ip = ip
|
3660
|
+
@user_agent = user_agent
|
3661
|
+
end
|
3662
|
+
end
|
3663
|
+
|
3664
|
+
class Verification < Stripe::RequestParams
|
3665
|
+
class Document < Stripe::RequestParams
|
3666
|
+
# 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.
|
3667
|
+
attr_accessor :back
|
3668
|
+
# The front 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.
|
3669
|
+
attr_accessor :front
|
3670
|
+
|
3671
|
+
def initialize(back: nil, front: nil)
|
3672
|
+
@back = back
|
3673
|
+
@front = front
|
3674
|
+
end
|
3675
|
+
end
|
3676
|
+
# A document verifying the business.
|
3677
|
+
attr_accessor :document
|
3678
|
+
|
3679
|
+
def initialize(document: nil)
|
3680
|
+
@document = document
|
3681
|
+
end
|
3682
|
+
end
|
3683
|
+
# The company's primary address.
|
3684
|
+
attr_accessor :address
|
3685
|
+
# The Kana variation of the company's primary address (Japan only).
|
3686
|
+
attr_accessor :address_kana
|
3687
|
+
# The Kanji variation of the company's primary address (Japan only).
|
3688
|
+
attr_accessor :address_kanji
|
3689
|
+
# Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
|
3690
|
+
attr_accessor :directors_provided
|
3691
|
+
# This hash is used to attest that the directors information provided to Stripe is both current and correct.
|
3692
|
+
attr_accessor :directorship_declaration
|
3693
|
+
# Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement.
|
3694
|
+
attr_accessor :executives_provided
|
3695
|
+
# The export license ID number of the company, also referred as Import Export Code (India only).
|
3696
|
+
attr_accessor :export_license_id
|
3697
|
+
# The purpose code to use for export transactions (India only).
|
3698
|
+
attr_accessor :export_purpose_code
|
3699
|
+
# The company's legal name.
|
3700
|
+
attr_accessor :name
|
3701
|
+
# The Kana variation of the company's legal name (Japan only).
|
3702
|
+
attr_accessor :name_kana
|
3703
|
+
# The Kanji variation of the company's legal name (Japan only).
|
3704
|
+
attr_accessor :name_kanji
|
3705
|
+
# Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](/api/persons) for accounts with a `relationship.owner` requirement.
|
3706
|
+
attr_accessor :owners_provided
|
3707
|
+
# This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
|
3708
|
+
attr_accessor :ownership_declaration
|
3709
|
+
# This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
|
3710
|
+
attr_accessor :ownership_exemption_reason
|
3711
|
+
# The company's phone number (used for verification).
|
3712
|
+
attr_accessor :phone
|
3713
|
+
# 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).
|
3714
|
+
attr_accessor :registration_number
|
3715
|
+
# 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.
|
3716
|
+
attr_accessor :structure
|
3717
|
+
# The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
|
3718
|
+
attr_accessor :tax_id
|
3719
|
+
# The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
|
3720
|
+
attr_accessor :tax_id_registrar
|
3721
|
+
# The VAT number of the company.
|
3722
|
+
attr_accessor :vat_id
|
3723
|
+
# Information on the verification state of the company.
|
3724
|
+
attr_accessor :verification
|
3725
|
+
|
3726
|
+
def initialize(
|
3727
|
+
address: nil,
|
3728
|
+
address_kana: nil,
|
3729
|
+
address_kanji: nil,
|
3730
|
+
directors_provided: nil,
|
3731
|
+
directorship_declaration: nil,
|
3732
|
+
executives_provided: nil,
|
3733
|
+
export_license_id: nil,
|
3734
|
+
export_purpose_code: nil,
|
3735
|
+
name: nil,
|
3736
|
+
name_kana: nil,
|
3737
|
+
name_kanji: nil,
|
3738
|
+
owners_provided: nil,
|
3739
|
+
ownership_declaration: nil,
|
3740
|
+
ownership_exemption_reason: nil,
|
3741
|
+
phone: nil,
|
3742
|
+
registration_number: nil,
|
3743
|
+
structure: nil,
|
3744
|
+
tax_id: nil,
|
3745
|
+
tax_id_registrar: nil,
|
3746
|
+
vat_id: nil,
|
3747
|
+
verification: nil
|
3748
|
+
)
|
3749
|
+
@address = address
|
3750
|
+
@address_kana = address_kana
|
3751
|
+
@address_kanji = address_kanji
|
3752
|
+
@directors_provided = directors_provided
|
3753
|
+
@directorship_declaration = directorship_declaration
|
3754
|
+
@executives_provided = executives_provided
|
3755
|
+
@export_license_id = export_license_id
|
3756
|
+
@export_purpose_code = export_purpose_code
|
3757
|
+
@name = name
|
3758
|
+
@name_kana = name_kana
|
3759
|
+
@name_kanji = name_kanji
|
3760
|
+
@owners_provided = owners_provided
|
3761
|
+
@ownership_declaration = ownership_declaration
|
3762
|
+
@ownership_exemption_reason = ownership_exemption_reason
|
3763
|
+
@phone = phone
|
3764
|
+
@registration_number = registration_number
|
3765
|
+
@structure = structure
|
3766
|
+
@tax_id = tax_id
|
3767
|
+
@tax_id_registrar = tax_id_registrar
|
3768
|
+
@vat_id = vat_id
|
3769
|
+
@verification = verification
|
3770
|
+
end
|
3771
|
+
end
|
3772
|
+
|
3773
|
+
class Controller < Stripe::RequestParams
|
3774
|
+
class Fees < Stripe::RequestParams
|
3775
|
+
# A value indicating the responsible payer of Stripe fees on this account. Defaults to `account`. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior).
|
3776
|
+
attr_accessor :payer
|
3777
|
+
|
3778
|
+
def initialize(payer: nil)
|
3779
|
+
@payer = payer
|
3780
|
+
end
|
3781
|
+
end
|
3782
|
+
|
3783
|
+
class Losses < Stripe::RequestParams
|
3784
|
+
# A value indicating who is liable when this account can't pay back negative balances resulting from payments. Defaults to `stripe`.
|
3785
|
+
attr_accessor :payments
|
3786
|
+
|
3787
|
+
def initialize(payments: nil)
|
3788
|
+
@payments = payments
|
3789
|
+
end
|
3790
|
+
end
|
3791
|
+
|
3792
|
+
class StripeDashboard < Stripe::RequestParams
|
3793
|
+
# Whether this account should have access to the full Stripe Dashboard (`full`), to the Express Dashboard (`express`), or to no Stripe-hosted dashboard (`none`). Defaults to `full`.
|
3794
|
+
attr_accessor :type
|
3795
|
+
|
3796
|
+
def initialize(type: nil)
|
3797
|
+
@type = type
|
3798
|
+
end
|
3799
|
+
end
|
3800
|
+
# A hash of configuration for who pays Stripe fees for product usage on this account.
|
3801
|
+
attr_accessor :fees
|
3802
|
+
# A hash of configuration for products that have negative balance liability, and whether Stripe or a Connect application is responsible for them.
|
3803
|
+
attr_accessor :losses
|
3804
|
+
# A value indicating responsibility for collecting updated information when requirements on the account are due or change. Defaults to `stripe`.
|
3805
|
+
attr_accessor :requirement_collection
|
3806
|
+
# A hash of configuration for Stripe-hosted dashboards.
|
3807
|
+
attr_accessor :stripe_dashboard
|
3808
|
+
|
3809
|
+
def initialize(fees: nil, losses: nil, requirement_collection: nil, stripe_dashboard: nil)
|
3810
|
+
@fees = fees
|
3811
|
+
@losses = losses
|
3812
|
+
@requirement_collection = requirement_collection
|
3813
|
+
@stripe_dashboard = stripe_dashboard
|
3814
|
+
end
|
3815
|
+
end
|
3816
|
+
|
3817
|
+
class Documents < Stripe::RequestParams
|
3818
|
+
class BankAccountOwnershipVerification < Stripe::RequestParams
|
3819
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
3820
|
+
attr_accessor :files
|
3821
|
+
|
3822
|
+
def initialize(files: nil)
|
3823
|
+
@files = files
|
3824
|
+
end
|
3825
|
+
end
|
3826
|
+
|
3827
|
+
class CompanyLicense < Stripe::RequestParams
|
3828
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
3829
|
+
attr_accessor :files
|
3830
|
+
|
3831
|
+
def initialize(files: nil)
|
3832
|
+
@files = files
|
3833
|
+
end
|
3834
|
+
end
|
3835
|
+
|
3836
|
+
class CompanyMemorandumOfAssociation < Stripe::RequestParams
|
3837
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
3838
|
+
attr_accessor :files
|
3839
|
+
|
3840
|
+
def initialize(files: nil)
|
3841
|
+
@files = files
|
3842
|
+
end
|
3843
|
+
end
|
3844
|
+
|
3845
|
+
class CompanyMinisterialDecree < Stripe::RequestParams
|
3846
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
3847
|
+
attr_accessor :files
|
3848
|
+
|
3849
|
+
def initialize(files: nil)
|
3850
|
+
@files = files
|
3851
|
+
end
|
3852
|
+
end
|
3853
|
+
|
3854
|
+
class CompanyRegistrationVerification < Stripe::RequestParams
|
3855
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
3856
|
+
attr_accessor :files
|
3857
|
+
|
3858
|
+
def initialize(files: nil)
|
3859
|
+
@files = files
|
3860
|
+
end
|
3861
|
+
end
|
3862
|
+
|
3863
|
+
class CompanyTaxIdVerification < Stripe::RequestParams
|
3864
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
3865
|
+
attr_accessor :files
|
3866
|
+
|
3867
|
+
def initialize(files: nil)
|
3868
|
+
@files = files
|
3869
|
+
end
|
3870
|
+
end
|
3871
|
+
|
3872
|
+
class ProofOfRegistration < Stripe::RequestParams
|
3873
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
3874
|
+
attr_accessor :files
|
3875
|
+
|
3876
|
+
def initialize(files: nil)
|
3877
|
+
@files = files
|
3878
|
+
end
|
3879
|
+
end
|
3880
|
+
|
3881
|
+
class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
|
3882
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
3883
|
+
attr_accessor :files
|
3884
|
+
|
3885
|
+
def initialize(files: nil)
|
3886
|
+
@files = files
|
3887
|
+
end
|
3888
|
+
end
|
3889
|
+
# One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
|
3890
|
+
attr_accessor :bank_account_ownership_verification
|
3891
|
+
# One or more documents that demonstrate proof of a company's license to operate.
|
3892
|
+
attr_accessor :company_license
|
3893
|
+
# One or more documents showing the company's Memorandum of Association.
|
3894
|
+
attr_accessor :company_memorandum_of_association
|
3895
|
+
# (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment.
|
3896
|
+
attr_accessor :company_ministerial_decree
|
3897
|
+
# One or more documents that demonstrate proof of a company's registration with the appropriate local authorities.
|
3898
|
+
attr_accessor :company_registration_verification
|
3899
|
+
# One or more documents that demonstrate proof of a company's tax ID.
|
3900
|
+
attr_accessor :company_tax_id_verification
|
3901
|
+
# One or more documents showing the company’s proof of registration with the national business registry.
|
3902
|
+
attr_accessor :proof_of_registration
|
3903
|
+
# One or more documents that demonstrate proof of ultimate beneficial ownership.
|
3904
|
+
attr_accessor :proof_of_ultimate_beneficial_ownership
|
3905
|
+
|
3906
|
+
def initialize(
|
3907
|
+
bank_account_ownership_verification: nil,
|
3908
|
+
company_license: nil,
|
3909
|
+
company_memorandum_of_association: nil,
|
3910
|
+
company_ministerial_decree: nil,
|
3911
|
+
company_registration_verification: nil,
|
3912
|
+
company_tax_id_verification: nil,
|
3913
|
+
proof_of_registration: nil,
|
3914
|
+
proof_of_ultimate_beneficial_ownership: nil
|
3915
|
+
)
|
3916
|
+
@bank_account_ownership_verification = bank_account_ownership_verification
|
3917
|
+
@company_license = company_license
|
3918
|
+
@company_memorandum_of_association = company_memorandum_of_association
|
3919
|
+
@company_ministerial_decree = company_ministerial_decree
|
3920
|
+
@company_registration_verification = company_registration_verification
|
3921
|
+
@company_tax_id_verification = company_tax_id_verification
|
3922
|
+
@proof_of_registration = proof_of_registration
|
3923
|
+
@proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
|
3924
|
+
end
|
3925
|
+
end
|
3926
|
+
|
3927
|
+
class Groups < Stripe::RequestParams
|
3928
|
+
# The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
|
3929
|
+
attr_accessor :payments_pricing
|
3930
|
+
|
3931
|
+
def initialize(payments_pricing: nil)
|
3932
|
+
@payments_pricing = payments_pricing
|
3933
|
+
end
|
3934
|
+
end
|
3935
|
+
|
3936
|
+
class Individual < Stripe::RequestParams
|
3937
|
+
class Address < Stripe::RequestParams
|
3938
|
+
# City, district, suburb, town, or village.
|
3939
|
+
attr_accessor :city
|
3940
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
3941
|
+
attr_accessor :country
|
3942
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
3943
|
+
attr_accessor :line1
|
3944
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
3945
|
+
attr_accessor :line2
|
3946
|
+
# ZIP or postal code.
|
3947
|
+
attr_accessor :postal_code
|
3948
|
+
# State, county, province, or region.
|
3949
|
+
attr_accessor :state
|
3950
|
+
|
3951
|
+
def initialize(
|
3952
|
+
city: nil,
|
3953
|
+
country: nil,
|
3954
|
+
line1: nil,
|
3955
|
+
line2: nil,
|
3956
|
+
postal_code: nil,
|
3957
|
+
state: nil
|
3958
|
+
)
|
3959
|
+
@city = city
|
3960
|
+
@country = country
|
3961
|
+
@line1 = line1
|
3962
|
+
@line2 = line2
|
3963
|
+
@postal_code = postal_code
|
3964
|
+
@state = state
|
3965
|
+
end
|
3966
|
+
end
|
3967
|
+
|
3968
|
+
class AddressKana < Stripe::RequestParams
|
3969
|
+
# City or ward.
|
3970
|
+
attr_accessor :city
|
3971
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
3972
|
+
attr_accessor :country
|
3973
|
+
# Block or building number.
|
3974
|
+
attr_accessor :line1
|
3975
|
+
# Building details.
|
3976
|
+
attr_accessor :line2
|
3977
|
+
# Postal code.
|
3978
|
+
attr_accessor :postal_code
|
3979
|
+
# Prefecture.
|
3980
|
+
attr_accessor :state
|
3981
|
+
# Town or cho-me.
|
3982
|
+
attr_accessor :town
|
3983
|
+
|
3984
|
+
def initialize(
|
3985
|
+
city: nil,
|
3986
|
+
country: nil,
|
3987
|
+
line1: nil,
|
3988
|
+
line2: nil,
|
3989
|
+
postal_code: nil,
|
3990
|
+
state: nil,
|
3991
|
+
town: nil
|
3992
|
+
)
|
3993
|
+
@city = city
|
3994
|
+
@country = country
|
3995
|
+
@line1 = line1
|
3996
|
+
@line2 = line2
|
3997
|
+
@postal_code = postal_code
|
3998
|
+
@state = state
|
3999
|
+
@town = town
|
4000
|
+
end
|
4001
|
+
end
|
4002
|
+
|
4003
|
+
class AddressKanji < Stripe::RequestParams
|
4004
|
+
# City or ward.
|
4005
|
+
attr_accessor :city
|
4006
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
4007
|
+
attr_accessor :country
|
4008
|
+
# Block or building number.
|
4009
|
+
attr_accessor :line1
|
4010
|
+
# Building details.
|
4011
|
+
attr_accessor :line2
|
4012
|
+
# Postal code.
|
4013
|
+
attr_accessor :postal_code
|
4014
|
+
# Prefecture.
|
4015
|
+
attr_accessor :state
|
4016
|
+
# Town or cho-me.
|
4017
|
+
attr_accessor :town
|
4018
|
+
|
4019
|
+
def initialize(
|
4020
|
+
city: nil,
|
4021
|
+
country: nil,
|
4022
|
+
line1: nil,
|
4023
|
+
line2: nil,
|
4024
|
+
postal_code: nil,
|
4025
|
+
state: nil,
|
4026
|
+
town: nil
|
4027
|
+
)
|
4028
|
+
@city = city
|
4029
|
+
@country = country
|
4030
|
+
@line1 = line1
|
4031
|
+
@line2 = line2
|
4032
|
+
@postal_code = postal_code
|
4033
|
+
@state = state
|
4034
|
+
@town = town
|
4035
|
+
end
|
4036
|
+
end
|
4037
|
+
|
4038
|
+
class Dob < Stripe::RequestParams
|
4039
|
+
# The day of birth, between 1 and 31.
|
4040
|
+
attr_accessor :day
|
4041
|
+
# The month of birth, between 1 and 12.
|
4042
|
+
attr_accessor :month
|
4043
|
+
# The four-digit year of birth.
|
4044
|
+
attr_accessor :year
|
4045
|
+
|
4046
|
+
def initialize(day: nil, month: nil, year: nil)
|
4047
|
+
@day = day
|
4048
|
+
@month = month
|
4049
|
+
@year = year
|
4050
|
+
end
|
4051
|
+
end
|
4052
|
+
|
4053
|
+
class RegisteredAddress < Stripe::RequestParams
|
4054
|
+
# City, district, suburb, town, or village.
|
4055
|
+
attr_accessor :city
|
4056
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
4057
|
+
attr_accessor :country
|
4058
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
4059
|
+
attr_accessor :line1
|
4060
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
4061
|
+
attr_accessor :line2
|
4062
|
+
# ZIP or postal code.
|
4063
|
+
attr_accessor :postal_code
|
4064
|
+
# State, county, province, or region.
|
4065
|
+
attr_accessor :state
|
4066
|
+
|
4067
|
+
def initialize(
|
4068
|
+
city: nil,
|
4069
|
+
country: nil,
|
4070
|
+
line1: nil,
|
4071
|
+
line2: nil,
|
4072
|
+
postal_code: nil,
|
4073
|
+
state: nil
|
4074
|
+
)
|
4075
|
+
@city = city
|
4076
|
+
@country = country
|
4077
|
+
@line1 = line1
|
4078
|
+
@line2 = line2
|
4079
|
+
@postal_code = postal_code
|
4080
|
+
@state = state
|
4081
|
+
end
|
4082
|
+
end
|
4083
|
+
|
4084
|
+
class Relationship < Stripe::RequestParams
|
4085
|
+
# Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
|
4086
|
+
attr_accessor :director
|
4087
|
+
# Whether the person has significant responsibility to control, manage, or direct the organization.
|
4088
|
+
attr_accessor :executive
|
4089
|
+
# Whether the person is an owner of the account’s legal entity.
|
4090
|
+
attr_accessor :owner
|
4091
|
+
# The percent owned by the person of the account's legal entity.
|
4092
|
+
attr_accessor :percent_ownership
|
4093
|
+
# The person's title (e.g., CEO, Support Engineer).
|
4094
|
+
attr_accessor :title
|
4095
|
+
|
4096
|
+
def initialize(
|
4097
|
+
director: nil,
|
4098
|
+
executive: nil,
|
4099
|
+
owner: nil,
|
4100
|
+
percent_ownership: nil,
|
4101
|
+
title: nil
|
4102
|
+
)
|
4103
|
+
@director = director
|
4104
|
+
@executive = executive
|
4105
|
+
@owner = owner
|
4106
|
+
@percent_ownership = percent_ownership
|
4107
|
+
@title = title
|
4108
|
+
end
|
4109
|
+
end
|
4110
|
+
|
4111
|
+
class Verification < Stripe::RequestParams
|
4112
|
+
class AdditionalDocument < Stripe::RequestParams
|
4113
|
+
# 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.
|
4114
|
+
attr_accessor :back
|
4115
|
+
# The front 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.
|
4116
|
+
attr_accessor :front
|
4117
|
+
|
4118
|
+
def initialize(back: nil, front: nil)
|
4119
|
+
@back = back
|
4120
|
+
@front = front
|
4121
|
+
end
|
4122
|
+
end
|
4123
|
+
|
4124
|
+
class Document < Stripe::RequestParams
|
4125
|
+
# 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.
|
4126
|
+
attr_accessor :back
|
4127
|
+
# The front 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.
|
4128
|
+
attr_accessor :front
|
4129
|
+
|
4130
|
+
def initialize(back: nil, front: nil)
|
4131
|
+
@back = back
|
4132
|
+
@front = front
|
4133
|
+
end
|
4134
|
+
end
|
4135
|
+
# A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
|
4136
|
+
attr_accessor :additional_document
|
4137
|
+
# An identifying document, either a passport or local ID card.
|
4138
|
+
attr_accessor :document
|
4139
|
+
|
4140
|
+
def initialize(additional_document: nil, document: nil)
|
4141
|
+
@additional_document = additional_document
|
4142
|
+
@document = document
|
4143
|
+
end
|
4144
|
+
end
|
4145
|
+
# The individual's primary address.
|
4146
|
+
attr_accessor :address
|
4147
|
+
# The Kana variation of the individual's primary address (Japan only).
|
4148
|
+
attr_accessor :address_kana
|
4149
|
+
# The Kanji variation of the individual's primary address (Japan only).
|
4150
|
+
attr_accessor :address_kanji
|
4151
|
+
# The individual's date of birth.
|
4152
|
+
attr_accessor :dob
|
4153
|
+
# The individual's email address.
|
4154
|
+
attr_accessor :email
|
4155
|
+
# The individual's first name.
|
4156
|
+
attr_accessor :first_name
|
4157
|
+
# The Kana variation of the individual's first name (Japan only).
|
4158
|
+
attr_accessor :first_name_kana
|
4159
|
+
# The Kanji variation of the individual's first name (Japan only).
|
4160
|
+
attr_accessor :first_name_kanji
|
4161
|
+
# A list of alternate names or aliases that the individual is known by.
|
4162
|
+
attr_accessor :full_name_aliases
|
4163
|
+
# The individual's gender
|
4164
|
+
attr_accessor :gender
|
4165
|
+
# The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](/js/tokens/create_token?type=pii).
|
4166
|
+
attr_accessor :id_number
|
4167
|
+
# The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](/js/tokens/create_token?type=pii).
|
4168
|
+
attr_accessor :id_number_secondary
|
4169
|
+
# The individual's last name.
|
4170
|
+
attr_accessor :last_name
|
4171
|
+
# The Kana variation of the individual's last name (Japan only).
|
4172
|
+
attr_accessor :last_name_kana
|
4173
|
+
# The Kanji variation of the individual's last name (Japan only).
|
4174
|
+
attr_accessor :last_name_kanji
|
4175
|
+
# The individual's maiden name.
|
4176
|
+
attr_accessor :maiden_name
|
4177
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
4178
|
+
attr_accessor :metadata
|
4179
|
+
# The individual's phone number.
|
4180
|
+
attr_accessor :phone
|
4181
|
+
# Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
|
4182
|
+
attr_accessor :political_exposure
|
4183
|
+
# The individual's registered address.
|
4184
|
+
attr_accessor :registered_address
|
4185
|
+
# Describes the person’s relationship to the account.
|
4186
|
+
attr_accessor :relationship
|
4187
|
+
# The last four digits of the individual's Social Security Number (U.S. only).
|
4188
|
+
attr_accessor :ssn_last_4
|
4189
|
+
# The individual's verification document information.
|
4190
|
+
attr_accessor :verification
|
4191
|
+
|
4192
|
+
def initialize(
|
4193
|
+
address: nil,
|
4194
|
+
address_kana: nil,
|
4195
|
+
address_kanji: nil,
|
4196
|
+
dob: nil,
|
4197
|
+
email: nil,
|
4198
|
+
first_name: nil,
|
4199
|
+
first_name_kana: nil,
|
4200
|
+
first_name_kanji: nil,
|
4201
|
+
full_name_aliases: nil,
|
4202
|
+
gender: nil,
|
4203
|
+
id_number: nil,
|
4204
|
+
id_number_secondary: nil,
|
4205
|
+
last_name: nil,
|
4206
|
+
last_name_kana: nil,
|
4207
|
+
last_name_kanji: nil,
|
4208
|
+
maiden_name: nil,
|
4209
|
+
metadata: nil,
|
4210
|
+
phone: nil,
|
4211
|
+
political_exposure: nil,
|
4212
|
+
registered_address: nil,
|
4213
|
+
relationship: nil,
|
4214
|
+
ssn_last_4: nil,
|
4215
|
+
verification: nil
|
4216
|
+
)
|
4217
|
+
@address = address
|
4218
|
+
@address_kana = address_kana
|
4219
|
+
@address_kanji = address_kanji
|
4220
|
+
@dob = dob
|
4221
|
+
@email = email
|
4222
|
+
@first_name = first_name
|
4223
|
+
@first_name_kana = first_name_kana
|
4224
|
+
@first_name_kanji = first_name_kanji
|
4225
|
+
@full_name_aliases = full_name_aliases
|
4226
|
+
@gender = gender
|
4227
|
+
@id_number = id_number
|
4228
|
+
@id_number_secondary = id_number_secondary
|
4229
|
+
@last_name = last_name
|
4230
|
+
@last_name_kana = last_name_kana
|
4231
|
+
@last_name_kanji = last_name_kanji
|
4232
|
+
@maiden_name = maiden_name
|
4233
|
+
@metadata = metadata
|
4234
|
+
@phone = phone
|
4235
|
+
@political_exposure = political_exposure
|
4236
|
+
@registered_address = registered_address
|
4237
|
+
@relationship = relationship
|
4238
|
+
@ssn_last_4 = ssn_last_4
|
4239
|
+
@verification = verification
|
4240
|
+
end
|
4241
|
+
end
|
4242
|
+
|
4243
|
+
class Settings < Stripe::RequestParams
|
4244
|
+
class BacsDebitPayments < Stripe::RequestParams
|
4245
|
+
# The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free.
|
4246
|
+
attr_accessor :display_name
|
4247
|
+
|
4248
|
+
def initialize(display_name: nil)
|
4249
|
+
@display_name = display_name
|
4250
|
+
end
|
4251
|
+
end
|
4252
|
+
|
4253
|
+
class Branding < Stripe::RequestParams
|
4254
|
+
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.
|
4255
|
+
attr_accessor :icon
|
4256
|
+
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A logo for the account that will be used in Checkout instead of the icon and without the account's name next to it if provided. Must be at least 128px x 128px.
|
4257
|
+
attr_accessor :logo
|
4258
|
+
# A CSS hex color value representing the primary branding color for this account.
|
4259
|
+
attr_accessor :primary_color
|
4260
|
+
# A CSS hex color value representing the secondary branding color for this account.
|
4261
|
+
attr_accessor :secondary_color
|
4262
|
+
|
4263
|
+
def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
|
4264
|
+
@icon = icon
|
4265
|
+
@logo = logo
|
4266
|
+
@primary_color = primary_color
|
4267
|
+
@secondary_color = secondary_color
|
4268
|
+
end
|
4269
|
+
end
|
4270
|
+
|
4271
|
+
class CardIssuing < Stripe::RequestParams
|
4272
|
+
class TosAcceptance < Stripe::RequestParams
|
4273
|
+
# The Unix timestamp marking when the account representative accepted the service agreement.
|
4274
|
+
attr_accessor :date
|
4275
|
+
# The IP address from which the account representative accepted the service agreement.
|
4276
|
+
attr_accessor :ip
|
4277
|
+
# The user agent of the browser from which the account representative accepted the service agreement.
|
4278
|
+
attr_accessor :user_agent
|
4279
|
+
|
4280
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
4281
|
+
@date = date
|
4282
|
+
@ip = ip
|
4283
|
+
@user_agent = user_agent
|
4284
|
+
end
|
4285
|
+
end
|
4286
|
+
# Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](/issuing/connect/tos_acceptance).
|
4287
|
+
attr_accessor :tos_acceptance
|
4288
|
+
|
4289
|
+
def initialize(tos_acceptance: nil)
|
4290
|
+
@tos_acceptance = tos_acceptance
|
4291
|
+
end
|
4292
|
+
end
|
4293
|
+
|
4294
|
+
class CardPayments < Stripe::RequestParams
|
4295
|
+
class DeclineOn < Stripe::RequestParams
|
4296
|
+
# Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification.
|
4297
|
+
attr_accessor :avs_failure
|
4298
|
+
# Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
|
4299
|
+
attr_accessor :cvc_failure
|
4300
|
+
|
4301
|
+
def initialize(avs_failure: nil, cvc_failure: nil)
|
4302
|
+
@avs_failure = avs_failure
|
4303
|
+
@cvc_failure = cvc_failure
|
4304
|
+
end
|
4305
|
+
end
|
4306
|
+
# Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
|
4307
|
+
attr_accessor :decline_on
|
4308
|
+
# The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge. `statement_descriptor_prefix` is useful for maximizing descriptor space for the dynamic portion.
|
4309
|
+
attr_accessor :statement_descriptor_prefix
|
4310
|
+
# The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kana` specified on the charge. `statement_descriptor_prefix_kana` is useful for maximizing descriptor space for the dynamic portion.
|
4311
|
+
attr_accessor :statement_descriptor_prefix_kana
|
4312
|
+
# The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kanji` specified on the charge. `statement_descriptor_prefix_kanji` is useful for maximizing descriptor space for the dynamic portion.
|
4313
|
+
attr_accessor :statement_descriptor_prefix_kanji
|
4314
|
+
|
4315
|
+
def initialize(
|
4316
|
+
decline_on: nil,
|
4317
|
+
statement_descriptor_prefix: nil,
|
4318
|
+
statement_descriptor_prefix_kana: nil,
|
4319
|
+
statement_descriptor_prefix_kanji: nil
|
4320
|
+
)
|
4321
|
+
@decline_on = decline_on
|
4322
|
+
@statement_descriptor_prefix = statement_descriptor_prefix
|
4323
|
+
@statement_descriptor_prefix_kana = statement_descriptor_prefix_kana
|
4324
|
+
@statement_descriptor_prefix_kanji = statement_descriptor_prefix_kanji
|
4325
|
+
end
|
4326
|
+
end
|
4327
|
+
|
4328
|
+
class Invoices < Stripe::RequestParams
|
4329
|
+
# Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
|
4330
|
+
attr_accessor :hosted_payment_method_save
|
4331
|
+
|
4332
|
+
def initialize(hosted_payment_method_save: nil)
|
4333
|
+
@hosted_payment_method_save = hosted_payment_method_save
|
4334
|
+
end
|
4335
|
+
end
|
4336
|
+
|
4337
|
+
class Payments < Stripe::RequestParams
|
4338
|
+
# The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors).
|
4339
|
+
attr_accessor :statement_descriptor
|
4340
|
+
# The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
|
4341
|
+
attr_accessor :statement_descriptor_kana
|
4342
|
+
# The Kanji variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
|
4343
|
+
attr_accessor :statement_descriptor_kanji
|
4344
|
+
|
4345
|
+
def initialize(
|
4346
|
+
statement_descriptor: nil,
|
4347
|
+
statement_descriptor_kana: nil,
|
4348
|
+
statement_descriptor_kanji: nil
|
4349
|
+
)
|
4350
|
+
@statement_descriptor = statement_descriptor
|
4351
|
+
@statement_descriptor_kana = statement_descriptor_kana
|
4352
|
+
@statement_descriptor_kanji = statement_descriptor_kanji
|
4353
|
+
end
|
4354
|
+
end
|
4355
|
+
|
4356
|
+
class Payouts < Stripe::RequestParams
|
4357
|
+
class Schedule < Stripe::RequestParams
|
4358
|
+
# The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](/connect/manage-payout-schedule).
|
4359
|
+
attr_accessor :delay_days
|
4360
|
+
# How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
|
4361
|
+
attr_accessor :interval
|
4362
|
+
# The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
|
4363
|
+
attr_accessor :monthly_anchor
|
4364
|
+
# The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
|
4365
|
+
attr_accessor :weekly_anchor
|
4366
|
+
|
4367
|
+
def initialize(delay_days: nil, interval: nil, monthly_anchor: nil, weekly_anchor: nil)
|
4368
|
+
@delay_days = delay_days
|
4369
|
+
@interval = interval
|
4370
|
+
@monthly_anchor = monthly_anchor
|
4371
|
+
@weekly_anchor = weekly_anchor
|
4372
|
+
end
|
4373
|
+
end
|
4374
|
+
# A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances).
|
4375
|
+
attr_accessor :debit_negative_balances
|
4376
|
+
# Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.
|
4377
|
+
attr_accessor :schedule
|
4378
|
+
# The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
|
4379
|
+
attr_accessor :statement_descriptor
|
4380
|
+
|
4381
|
+
def initialize(debit_negative_balances: nil, schedule: nil, statement_descriptor: nil)
|
4382
|
+
@debit_negative_balances = debit_negative_balances
|
4383
|
+
@schedule = schedule
|
4384
|
+
@statement_descriptor = statement_descriptor
|
4385
|
+
end
|
4386
|
+
end
|
4387
|
+
|
4388
|
+
class Treasury < Stripe::RequestParams
|
4389
|
+
class TosAcceptance < Stripe::RequestParams
|
4390
|
+
# The Unix timestamp marking when the account representative accepted the service agreement.
|
4391
|
+
attr_accessor :date
|
4392
|
+
# The IP address from which the account representative accepted the service agreement.
|
4393
|
+
attr_accessor :ip
|
4394
|
+
# The user agent of the browser from which the account representative accepted the service agreement.
|
4395
|
+
attr_accessor :user_agent
|
4396
|
+
|
4397
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
4398
|
+
@date = date
|
4399
|
+
@ip = ip
|
4400
|
+
@user_agent = user_agent
|
4401
|
+
end
|
4402
|
+
end
|
4403
|
+
# Details on the account's acceptance of the Stripe Treasury Services Agreement.
|
4404
|
+
attr_accessor :tos_acceptance
|
4405
|
+
|
4406
|
+
def initialize(tos_acceptance: nil)
|
4407
|
+
@tos_acceptance = tos_acceptance
|
4408
|
+
end
|
4409
|
+
end
|
4410
|
+
# Settings specific to Bacs Direct Debit.
|
4411
|
+
attr_accessor :bacs_debit_payments
|
4412
|
+
# Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
|
4413
|
+
attr_accessor :branding
|
4414
|
+
# Settings specific to the account's use of the Card Issuing product.
|
4415
|
+
attr_accessor :card_issuing
|
4416
|
+
# Settings specific to card charging on the account.
|
4417
|
+
attr_accessor :card_payments
|
4418
|
+
# Settings specific to the account’s use of Invoices.
|
4419
|
+
attr_accessor :invoices
|
4420
|
+
# Settings that apply across payment methods for charging on the account.
|
4421
|
+
attr_accessor :payments
|
4422
|
+
# Settings specific to the account's payouts.
|
4423
|
+
attr_accessor :payouts
|
4424
|
+
# Settings specific to the account's Treasury FinancialAccounts.
|
4425
|
+
attr_accessor :treasury
|
4426
|
+
|
4427
|
+
def initialize(
|
4428
|
+
bacs_debit_payments: nil,
|
4429
|
+
branding: nil,
|
4430
|
+
card_issuing: nil,
|
4431
|
+
card_payments: nil,
|
4432
|
+
invoices: nil,
|
4433
|
+
payments: nil,
|
4434
|
+
payouts: nil,
|
4435
|
+
treasury: nil
|
4436
|
+
)
|
4437
|
+
@bacs_debit_payments = bacs_debit_payments
|
4438
|
+
@branding = branding
|
4439
|
+
@card_issuing = card_issuing
|
4440
|
+
@card_payments = card_payments
|
4441
|
+
@invoices = invoices
|
4442
|
+
@payments = payments
|
4443
|
+
@payouts = payouts
|
4444
|
+
@treasury = treasury
|
4445
|
+
end
|
4446
|
+
end
|
4447
|
+
|
4448
|
+
class TosAcceptance < Stripe::RequestParams
|
4449
|
+
# The Unix timestamp marking when the account representative accepted their service agreement.
|
4450
|
+
attr_accessor :date
|
4451
|
+
# The IP address from which the account representative accepted their service agreement.
|
4452
|
+
attr_accessor :ip
|
4453
|
+
# The user's service agreement type.
|
4454
|
+
attr_accessor :service_agreement
|
4455
|
+
# The user agent of the browser from which the account representative accepted their service agreement.
|
4456
|
+
attr_accessor :user_agent
|
4457
|
+
|
4458
|
+
def initialize(date: nil, ip: nil, service_agreement: nil, user_agent: nil)
|
4459
|
+
@date = date
|
4460
|
+
@ip = ip
|
4461
|
+
@service_agreement = service_agreement
|
4462
|
+
@user_agent = user_agent
|
4463
|
+
end
|
4464
|
+
end
|
4465
|
+
# An [account token](https://stripe.com/docs/api#create_account_token), used to securely provide details to the account.
|
4466
|
+
attr_accessor :account_token
|
4467
|
+
# Business information about the account.
|
4468
|
+
attr_accessor :business_profile
|
4469
|
+
# The business type. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
4470
|
+
attr_accessor :business_type
|
4471
|
+
# Each key of the dictionary represents a capability, and each capability
|
4472
|
+
# maps to its settings (for example, whether it has been requested or not). Each
|
4473
|
+
# capability is inactive until you have provided its specific
|
4474
|
+
# requirements and Stripe has verified them. An account might have some
|
4475
|
+
# of its requested capabilities be active and some be inactive.
|
4476
|
+
#
|
4477
|
+
# Required when [account.controller.stripe_dashboard.type](/api/accounts/create#create_account-controller-dashboard-type)
|
4478
|
+
# is `none`, which includes Custom accounts.
|
4479
|
+
attr_accessor :capabilities
|
4480
|
+
# Information about the company or business. This field is available for any `business_type`. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
4481
|
+
attr_accessor :company
|
4482
|
+
# A hash of configuration describing the account controller's attributes.
|
4483
|
+
attr_accessor :controller
|
4484
|
+
# The country in which the account holder resides, or in which the business is legally established. This should be an ISO 3166-1 alpha-2 country code. For example, if you are in the United States and the business for which you're creating an account is legally represented in Canada, you would use `CA` as the country for the account being created. Available countries include [Stripe's global markets](https://stripe.com/global) as well as countries where [cross-border payouts](https://stripe.com/docs/connect/cross-border-payouts) are supported.
|
4485
|
+
attr_accessor :country
|
4486
|
+
# Three-letter ISO currency code representing the default currency for the account. This must be a currency that [Stripe supports in the account's country](https://docs.stripe.com/payouts).
|
4487
|
+
attr_accessor :default_currency
|
4488
|
+
# Documents that may be submitted to satisfy various informational requests.
|
4489
|
+
attr_accessor :documents
|
4490
|
+
# The email address of the account holder. This is only to make the account easier to identify to you. If [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, Stripe doesn't email the account without your consent.
|
4491
|
+
attr_accessor :email
|
4492
|
+
# Specifies which fields in the response should be expanded.
|
4493
|
+
attr_accessor :expand
|
4494
|
+
# A card or bank account to attach to the account for receiving [payouts](/connect/bank-debit-card-payouts) (you won’t be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](/js), or a dictionary, as documented in the `external_account` parameter for [bank account](/api#account_create_bank_account) creation. <br><br>By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](/api#account_create_bank_account) or [card creation](/api#account_create_card) APIs. After you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
4495
|
+
attr_accessor :external_account
|
4496
|
+
# A hash of account group type to tokens. These are account groups this account should be added to.
|
4497
|
+
attr_accessor :groups
|
4498
|
+
# Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
4499
|
+
attr_accessor :individual
|
4500
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
4501
|
+
attr_accessor :metadata
|
4502
|
+
# Options for customizing how the account functions within Stripe.
|
4503
|
+
attr_accessor :settings
|
4504
|
+
# Details on the account's acceptance of the [Stripe Services Agreement](/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
|
4505
|
+
attr_accessor :tos_acceptance
|
4506
|
+
# The type of Stripe account to create. May be one of `custom`, `express` or `standard`.
|
4507
|
+
attr_accessor :type
|
4508
|
+
|
4509
|
+
def initialize(
|
4510
|
+
account_token: nil,
|
4511
|
+
business_profile: nil,
|
4512
|
+
business_type: nil,
|
4513
|
+
capabilities: nil,
|
4514
|
+
company: nil,
|
4515
|
+
controller: nil,
|
4516
|
+
country: nil,
|
4517
|
+
default_currency: nil,
|
4518
|
+
documents: nil,
|
4519
|
+
email: nil,
|
4520
|
+
expand: nil,
|
4521
|
+
external_account: nil,
|
4522
|
+
groups: nil,
|
4523
|
+
individual: nil,
|
4524
|
+
metadata: nil,
|
4525
|
+
settings: nil,
|
4526
|
+
tos_acceptance: nil,
|
4527
|
+
type: nil
|
4528
|
+
)
|
4529
|
+
@account_token = account_token
|
4530
|
+
@business_profile = business_profile
|
4531
|
+
@business_type = business_type
|
4532
|
+
@capabilities = capabilities
|
4533
|
+
@company = company
|
4534
|
+
@controller = controller
|
4535
|
+
@country = country
|
4536
|
+
@default_currency = default_currency
|
4537
|
+
@documents = documents
|
4538
|
+
@email = email
|
4539
|
+
@expand = expand
|
4540
|
+
@external_account = external_account
|
4541
|
+
@groups = groups
|
4542
|
+
@individual = individual
|
4543
|
+
@metadata = metadata
|
4544
|
+
@settings = settings
|
4545
|
+
@tos_acceptance = tos_acceptance
|
4546
|
+
@type = type
|
4547
|
+
end
|
4548
|
+
end
|
4549
|
+
|
4550
|
+
class PersonsParams < Stripe::RequestParams
|
4551
|
+
class Relationship < Stripe::RequestParams
|
4552
|
+
# A filter on the list of people returned based on whether these people are authorizers of the account's representative.
|
4553
|
+
attr_accessor :authorizer
|
4554
|
+
# A filter on the list of people returned based on whether these people are directors of the account's company.
|
4555
|
+
attr_accessor :director
|
4556
|
+
# A filter on the list of people returned based on whether these people are executives of the account's company.
|
4557
|
+
attr_accessor :executive
|
4558
|
+
# A filter on the list of people returned based on whether these people are legal guardians of the account's representative.
|
4559
|
+
attr_accessor :legal_guardian
|
4560
|
+
# A filter on the list of people returned based on whether these people are owners of the account's company.
|
4561
|
+
attr_accessor :owner
|
4562
|
+
# A filter on the list of people returned based on whether these people are the representative of the account's company.
|
4563
|
+
attr_accessor :representative
|
4564
|
+
|
4565
|
+
def initialize(
|
4566
|
+
authorizer: nil,
|
4567
|
+
director: nil,
|
4568
|
+
executive: nil,
|
4569
|
+
legal_guardian: nil,
|
4570
|
+
owner: nil,
|
4571
|
+
representative: nil
|
4572
|
+
)
|
4573
|
+
@authorizer = authorizer
|
4574
|
+
@director = director
|
4575
|
+
@executive = executive
|
4576
|
+
@legal_guardian = legal_guardian
|
4577
|
+
@owner = owner
|
4578
|
+
@representative = representative
|
4579
|
+
end
|
4580
|
+
end
|
4581
|
+
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
4582
|
+
attr_accessor :ending_before
|
4583
|
+
# Specifies which fields in the response should be expanded.
|
4584
|
+
attr_accessor :expand
|
4585
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
4586
|
+
attr_accessor :limit
|
4587
|
+
# Filters on the list of people returned based on the person's relationship to the account's company.
|
4588
|
+
attr_accessor :relationship
|
4589
|
+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
4590
|
+
attr_accessor :starting_after
|
4591
|
+
|
4592
|
+
def initialize(
|
4593
|
+
ending_before: nil,
|
4594
|
+
expand: nil,
|
4595
|
+
limit: nil,
|
4596
|
+
relationship: nil,
|
4597
|
+
starting_after: nil
|
4598
|
+
)
|
4599
|
+
@ending_before = ending_before
|
4600
|
+
@expand = expand
|
4601
|
+
@limit = limit
|
4602
|
+
@relationship = relationship
|
4603
|
+
@starting_after = starting_after
|
4604
|
+
end
|
4605
|
+
end
|
4606
|
+
|
4607
|
+
class RejectParams < Stripe::RequestParams
|
4608
|
+
# Specifies which fields in the response should be expanded.
|
4609
|
+
attr_accessor :expand
|
4610
|
+
# The reason for rejecting the account. Can be `fraud`, `terms_of_service`, or `other`.
|
4611
|
+
attr_accessor :reason
|
4612
|
+
|
4613
|
+
def initialize(expand: nil, reason: nil)
|
4614
|
+
@expand = expand
|
4615
|
+
@reason = reason
|
4616
|
+
end
|
4617
|
+
end
|
4618
|
+
# Business information about the account.
|
4619
|
+
attr_reader :business_profile
|
4620
|
+
# The business type.
|
4621
|
+
attr_reader :business_type
|
4622
|
+
# Attribute for field capabilities
|
4623
|
+
attr_reader :capabilities
|
4624
|
+
# Whether the account can process charges.
|
4625
|
+
attr_reader :charges_enabled
|
4626
|
+
# Attribute for field company
|
4627
|
+
attr_reader :company
|
4628
|
+
# Attribute for field controller
|
4629
|
+
attr_reader :controller
|
4630
|
+
# The account's country.
|
4631
|
+
attr_reader :country
|
4632
|
+
# Time at which the account was connected. Measured in seconds since the Unix epoch.
|
4633
|
+
attr_reader :created
|
4634
|
+
# Three-letter ISO currency code representing the default currency for the account. This must be a currency that [Stripe supports in the account's country](https://stripe.com/docs/payouts).
|
4635
|
+
attr_reader :default_currency
|
4636
|
+
# Whether account details have been submitted. Accounts with Stripe Dashboard access, which includes Standard accounts, cannot receive payouts before this is true. Accounts where this is false should be directed to [an onboarding flow](/connect/onboarding) to finish submitting account details.
|
4637
|
+
attr_reader :details_submitted
|
4638
|
+
# An email address associated with the account. It's not used for authentication and Stripe doesn't market to this field without explicit approval from the platform.
|
4639
|
+
attr_reader :email
|
4640
|
+
# External accounts (bank accounts and debit cards) currently attached to this account. External accounts are only returned for requests where `controller[is_controller]` is true.
|
4641
|
+
attr_reader :external_accounts
|
4642
|
+
# Attribute for field future_requirements
|
4643
|
+
attr_reader :future_requirements
|
4644
|
+
# The groups associated with the account.
|
4645
|
+
attr_reader :groups
|
4646
|
+
# Unique identifier for the object.
|
4647
|
+
attr_reader :id
|
4648
|
+
# This is an object representing a person associated with a Stripe account.
|
4649
|
+
#
|
4650
|
+
# A platform can only access a subset of data in a person for an account where [account.controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding.
|
4651
|
+
#
|
4652
|
+
# See the [Standard onboarding](/connect/standard-accounts) or [Express onboarding](/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](/connect/handling-api-verification#person-information).
|
4653
|
+
attr_reader :individual
|
4654
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
4655
|
+
attr_reader :metadata
|
4656
|
+
# String representing the object's type. Objects of the same type share the same value.
|
4657
|
+
attr_reader :object
|
4658
|
+
# Whether the funds in this account can be paid out.
|
4659
|
+
attr_reader :payouts_enabled
|
4660
|
+
# Attribute for field requirements
|
4661
|
+
attr_reader :requirements
|
4662
|
+
# Options for customizing how the account functions within Stripe.
|
4663
|
+
attr_reader :settings
|
4664
|
+
# Attribute for field tos_acceptance
|
4665
|
+
attr_reader :tos_acceptance
|
4666
|
+
# The Stripe account type. Can be `standard`, `express`, `custom`, or `none`.
|
4667
|
+
attr_reader :type
|
4668
|
+
# Always true for a deleted object
|
4669
|
+
attr_reader :deleted
|
4670
|
+
|
37
4671
|
# With [Connect](https://stripe.com/docs/connect), you can create Stripe accounts for your users.
|
38
4672
|
# To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).
|
39
4673
|
#
|
@@ -48,13 +4682,13 @@ module Stripe
|
|
48
4682
|
#
|
49
4683
|
# Test-mode accounts can be deleted at any time.
|
50
4684
|
#
|
51
|
-
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/
|
4685
|
+
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balance_object) are zero.
|
52
4686
|
#
|
53
4687
|
# If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
|
54
|
-
def self.delete(
|
4688
|
+
def self.delete(account, params = {}, opts = {})
|
55
4689
|
request_stripe_object(
|
56
4690
|
method: :delete,
|
57
|
-
path: format("/v1/accounts/%<
|
4691
|
+
path: format("/v1/accounts/%<account>s", { account: CGI.escape(account) }),
|
58
4692
|
params: params,
|
59
4693
|
opts: opts
|
60
4694
|
)
|
@@ -64,7 +4698,7 @@ module Stripe
|
|
64
4698
|
#
|
65
4699
|
# Test-mode accounts can be deleted at any time.
|
66
4700
|
#
|
67
|
-
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/
|
4701
|
+
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balance_object) are zero.
|
68
4702
|
#
|
69
4703
|
# If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
|
70
4704
|
def delete(params = {}, opts = {})
|
@@ -77,8 +4711,8 @@ module Stripe
|
|
77
4711
|
end
|
78
4712
|
|
79
4713
|
# Returns a list of accounts connected to your platform via [Connect](https://stripe.com/docs/connect). If you're not a platform, the list is empty.
|
80
|
-
def self.list(
|
81
|
-
request_stripe_object(method: :get, path: "/v1/accounts", params:
|
4714
|
+
def self.list(params = {}, opts = {})
|
4715
|
+
request_stripe_object(method: :get, path: "/v1/accounts", params: params, opts: opts)
|
82
4716
|
end
|
83
4717
|
|
84
4718
|
# Returns a list of people associated with the account's legal entity. The people are returned sorted by creation date, with the most recent people appearing first.
|
@@ -138,10 +4772,10 @@ module Stripe
|
|
138
4772
|
#
|
139
4773
|
# To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our
|
140
4774
|
# [Connect](https://stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
|
141
|
-
def self.update(
|
4775
|
+
def self.update(account, params = {}, opts = {})
|
142
4776
|
request_stripe_object(
|
143
4777
|
method: :post,
|
144
|
-
path: format("/v1/accounts/%<
|
4778
|
+
path: format("/v1/accounts/%<account>s", { account: CGI.escape(account) }),
|
145
4779
|
params: params,
|
146
4780
|
opts: opts
|
147
4781
|
)
|