stripe 13.4.1 → 17.0.1
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/lib/stripe/api_operations/nested_resource.rb +35 -35
- data/lib/stripe/api_operations/request.rb +1 -0
- data/lib/stripe/api_operations/save.rb +2 -1
- data/lib/stripe/api_operations/singleton_save.rb +2 -1
- data/lib/stripe/api_requestor.rb +12 -4
- data/lib/stripe/api_resource.rb +13 -3
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/connection_manager.rb +1 -3
- data/lib/stripe/errors.rb +0 -7
- data/lib/stripe/event_types.rb +20 -5
- data/lib/stripe/events/unknown_event_notification.rb +19 -0
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +115 -15
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +93 -6
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +44 -0
- data/lib/stripe/oauth.rb +1 -1
- data/lib/stripe/object_types.rb +11 -4
- data/lib/stripe/params/account_capability_list_params.rb +13 -0
- data/lib/stripe/params/account_capability_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_capability_update_params.rb +18 -0
- data/lib/stripe/params/account_create_params.rb +2083 -0
- data/lib/stripe/params/account_delete_params.rb +6 -0
- data/lib/stripe/params/account_external_account_create_params.rb +134 -0
- data/lib/stripe/params/account_external_account_delete_params.rb +6 -0
- data/lib/stripe/params/account_external_account_list_params.rb +25 -0
- data/lib/stripe/params/account_external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_external_account_update_params.rb +91 -0
- data/lib/stripe/params/account_link_create_params.rb +52 -0
- data/lib/stripe/params/account_list_params.rb +42 -0
- data/lib/stripe/params/account_login_link_create_params.rb +13 -0
- data/lib/stripe/params/account_person_create_params.rb +435 -0
- data/lib/stripe/params/account_person_delete_params.rb +6 -0
- data/lib/stripe/params/account_person_list_params.rb +61 -0
- data/lib/stripe/params/account_person_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_person_update_params.rb +435 -0
- data/lib/stripe/params/account_persons_params.rb +61 -0
- data/lib/stripe/params/account_reject_params.rb +16 -0
- data/lib/stripe/params/account_retrieve_current_params.rb +13 -0
- data/lib/stripe/params/account_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_session_create_params.rb +598 -0
- data/lib/stripe/params/account_update_params.rb +2030 -0
- data/lib/stripe/params/apple_pay_domain_create_params.rb +16 -0
- data/lib/stripe/params/apple_pay_domain_delete_params.rb +6 -0
- data/lib/stripe/params/apple_pay_domain_list_params.rb +31 -0
- data/lib/stripe/params/apple_pay_domain_retrieve_params.rb +13 -0
- data/lib/stripe/params/application_fee_list_params.rb +52 -0
- data/lib/stripe/params/application_fee_refund_create_params.rb +19 -0
- data/lib/stripe/params/application_fee_refund_list_params.rb +22 -0
- data/lib/stripe/params/application_fee_refund_retrieve_params.rb +13 -0
- data/lib/stripe/params/application_fee_refund_update_params.rb +16 -0
- data/lib/stripe/params/application_fee_retrieve_params.rb +13 -0
- data/lib/stripe/params/apps/secret_create_params.rb +38 -0
- data/lib/stripe/params/apps/secret_delete_where_params.rb +32 -0
- data/lib/stripe/params/apps/secret_find_params.rb +32 -0
- data/lib/stripe/params/apps/secret_list_params.rb +38 -0
- data/lib/stripe/params/balance_retrieve_params.rb +13 -0
- data/lib/stripe/params/balance_settings_retrieve_params.rb +13 -0
- data/lib/stripe/params/balance_settings_update_params.rb +67 -0
- data/lib/stripe/params/balance_transaction_list_params.rb +64 -0
- data/lib/stripe/params/balance_transaction_retrieve_params.rb +13 -0
- data/lib/stripe/params/billing/alert_activate_params.rb +15 -0
- data/lib/stripe/params/billing/alert_archive_params.rb +15 -0
- data/lib/stripe/params/billing/alert_create_params.rb +52 -0
- data/lib/stripe/params/billing/alert_deactivate_params.rb +15 -0
- data/lib/stripe/params/billing/alert_list_params.rb +37 -0
- data/lib/stripe/params/billing/alert_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +54 -0
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +37 -0
- data/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/credit_grant_create_params.rb +103 -0
- data/lib/stripe/params/billing/credit_grant_expire_params.rb +15 -0
- data/lib/stripe/params/billing/credit_grant_list_params.rb +33 -0
- data/lib/stripe/params/billing/credit_grant_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/credit_grant_update_params.rb +21 -0
- data/lib/stripe/params/billing/credit_grant_void_grant_params.rb +15 -0
- data/lib/stripe/params/billing/meter_create_params.rb +70 -0
- data/lib/stripe/params/billing/meter_deactivate_params.rb +15 -0
- data/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +32 -0
- data/lib/stripe/params/billing/meter_event_create_params.rb +27 -0
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +45 -0
- data/lib/stripe/params/billing/meter_list_params.rb +27 -0
- data/lib/stripe/params/billing/meter_reactivate_params.rb +15 -0
- data/lib/stripe/params/billing/meter_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/meter_update_params.rb +18 -0
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +225 -0
- data/lib/stripe/params/billing_portal/configuration_list_params.rb +37 -0
- data/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +231 -0
- data/lib/stripe/params/billing_portal/session_create_params.rb +179 -0
- data/lib/stripe/params/charge_capture_params.rb +57 -0
- data/lib/stripe/params/charge_create_params.rb +172 -0
- data/lib/stripe/params/charge_list_params.rb +60 -0
- data/lib/stripe/params/charge_retrieve_params.rb +13 -0
- data/lib/stripe/params/charge_search_params.rb +22 -0
- data/lib/stripe/params/charge_update_params.rb +102 -0
- data/lib/stripe/params/checkout/session_create_params.rb +2445 -0
- data/lib/stripe/params/checkout/session_expire_params.rb +15 -0
- data/lib/stripe/params/checkout/session_line_item_list_params.rb +24 -0
- data/lib/stripe/params/checkout/session_list_line_items_params.rb +24 -0
- data/lib/stripe/params/checkout/session_list_params.rb +83 -0
- data/lib/stripe/params/checkout/session_retrieve_params.rb +15 -0
- data/lib/stripe/params/checkout/session_update_params.rb +179 -0
- data/lib/stripe/params/climate/order_cancel_params.rb +15 -0
- data/lib/stripe/params/climate/order_create_params.rb +49 -0
- data/lib/stripe/params/climate/order_list_params.rb +24 -0
- data/lib/stripe/params/climate/order_retrieve_params.rb +15 -0
- data/lib/stripe/params/climate/order_update_params.rb +29 -0
- data/lib/stripe/params/climate/product_list_params.rb +24 -0
- data/lib/stripe/params/climate/product_retrieve_params.rb +15 -0
- data/lib/stripe/params/climate/supplier_list_params.rb +24 -0
- data/lib/stripe/params/climate/supplier_retrieve_params.rb +15 -0
- data/lib/stripe/params/confirmation_token_create_params.rb +650 -0
- data/lib/stripe/params/confirmation_token_retrieve_params.rb +13 -0
- data/lib/stripe/params/country_spec_list_params.rb +22 -0
- data/lib/stripe/params/country_spec_retrieve_params.rb +13 -0
- data/lib/stripe/params/coupon_create_params.rb +80 -0
- data/lib/stripe/params/coupon_delete_params.rb +6 -0
- data/lib/stripe/params/coupon_list_params.rb +42 -0
- data/lib/stripe/params/coupon_retrieve_params.rb +13 -0
- data/lib/stripe/params/coupon_update_params.rb +30 -0
- data/lib/stripe/params/credit_note_create_params.rb +144 -0
- data/lib/stripe/params/credit_note_line_item_list_params.rb +22 -0
- data/lib/stripe/params/credit_note_list_params.rb +56 -0
- data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +156 -0
- data/lib/stripe/params/credit_note_preview_lines_list_params.rb +156 -0
- data/lib/stripe/params/credit_note_preview_params.rb +144 -0
- data/lib/stripe/params/credit_note_retrieve_params.rb +13 -0
- data/lib/stripe/params/credit_note_update_params.rb +19 -0
- data/lib/stripe/params/credit_note_void_credit_note_params.rb +13 -0
- data/lib/stripe/params/customer_balance_transaction_create_params.rb +25 -0
- data/lib/stripe/params/customer_balance_transaction_list_params.rb +22 -0
- data/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_balance_transaction_update_params.rb +19 -0
- data/lib/stripe/params/customer_cash_balance_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +22 -0
- data/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_cash_balance_update_params.rb +24 -0
- data/lib/stripe/params/customer_create_funding_instructions_params.rb +46 -0
- data/lib/stripe/params/customer_create_params.rb +259 -0
- data/lib/stripe/params/customer_delete_discount_params.rb +6 -0
- data/lib/stripe/params/customer_delete_params.rb +6 -0
- data/lib/stripe/params/customer_fund_cash_balance_params.rb +22 -0
- data/lib/stripe/params/customer_funding_instructions_create_params.rb +46 -0
- data/lib/stripe/params/customer_list_params.rb +56 -0
- data/lib/stripe/params/customer_list_payment_methods_params.rb +35 -0
- data/lib/stripe/params/customer_payment_method_list_params.rb +35 -0
- data/lib/stripe/params/customer_payment_method_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_payment_source_create_params.rb +22 -0
- data/lib/stripe/params/customer_payment_source_delete_params.rb +13 -0
- data/lib/stripe/params/customer_payment_source_list_params.rb +25 -0
- data/lib/stripe/params/customer_payment_source_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_payment_source_update_params.rb +114 -0
- data/lib/stripe/params/customer_payment_source_verify_params.rb +16 -0
- data/lib/stripe/params/customer_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_retrieve_payment_method_params.rb +13 -0
- data/lib/stripe/params/customer_search_params.rb +22 -0
- data/lib/stripe/params/customer_session_create_params.rb +100 -0
- data/lib/stripe/params/customer_tax_id_create_params.rb +19 -0
- data/lib/stripe/params/customer_tax_id_delete_params.rb +6 -0
- data/lib/stripe/params/customer_tax_id_list_params.rb +22 -0
- data/lib/stripe/params/customer_tax_id_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_update_params.rb +243 -0
- data/lib/stripe/params/dispute_close_params.rb +13 -0
- data/lib/stripe/params/dispute_list_params.rb +56 -0
- data/lib/stripe/params/dispute_retrieve_params.rb +13 -0
- data/lib/stripe/params/dispute_update_params.rb +308 -0
- data/lib/stripe/params/entitlements/active_entitlement_list_params.rb +33 -0
- data/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +15 -0
- data/lib/stripe/params/entitlements/feature_create_params.rb +24 -0
- data/lib/stripe/params/entitlements/feature_list_params.rb +37 -0
- data/lib/stripe/params/entitlements/feature_retrieve_params.rb +15 -0
- data/lib/stripe/params/entitlements/feature_update_params.rb +24 -0
- data/lib/stripe/params/ephemeral_key_create_params.rb +31 -0
- data/lib/stripe/params/ephemeral_key_delete_params.rb +13 -0
- data/lib/stripe/params/event_list_params.rb +60 -0
- data/lib/stripe/params/event_retrieve_params.rb +13 -0
- data/lib/stripe/params/exchange_rate_list_params.rb +22 -0
- data/lib/stripe/params/exchange_rate_retrieve_params.rb +13 -0
- data/lib/stripe/params/file_create_params.rb +36 -0
- data/lib/stripe/params/file_link_create_params.rb +22 -0
- data/lib/stripe/params/file_link_list_params.rb +56 -0
- data/lib/stripe/params/file_link_retrieve_params.rb +13 -0
- data/lib/stripe/params/file_link_update_params.rb +19 -0
- data/lib/stripe/params/file_list_params.rb +52 -0
- data/lib/stripe/params/file_retrieve_params.rb +13 -0
- data/lib/stripe/params/financial_connections/account_disconnect_params.rb +15 -0
- data/lib/stripe/params/financial_connections/account_list_owners_params.rb +33 -0
- data/lib/stripe/params/financial_connections/account_list_params.rb +48 -0
- data/lib/stripe/params/financial_connections/account_owner_list_params.rb +33 -0
- data/lib/stripe/params/financial_connections/account_refresh_account_params.rb +18 -0
- data/lib/stripe/params/financial_connections/account_refresh_params.rb +18 -0
- data/lib/stripe/params/financial_connections/account_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/account_subscribe_params.rb +18 -0
- data/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +18 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +65 -0
- data/lib/stripe/params/financial_connections/session_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/transaction_list_params.rb +67 -0
- data/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/forwarding/request_create_params.rb +59 -0
- data/lib/stripe/params/forwarding/request_list_params.rb +44 -0
- data/lib/stripe/params/forwarding/request_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_report_list_params.rb +62 -0
- data/lib/stripe/params/identity/verification_report_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_cancel_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_create_params.rb +107 -0
- data/lib/stripe/params/identity/verification_session_list_params.rb +62 -0
- data/lib/stripe/params/identity/verification_session_redact_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_update_params.rb +69 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +231 -0
- data/lib/stripe/params/invoice_attach_payment_params.rb +16 -0
- data/lib/stripe/params/invoice_create_params.rb +589 -0
- data/lib/stripe/params/invoice_create_preview_params.rb +993 -0
- data/lib/stripe/params/invoice_delete_params.rb +6 -0
- data/lib/stripe/params/invoice_finalize_invoice_params.rb +16 -0
- data/lib/stripe/params/invoice_item_create_params.rb +145 -0
- data/lib/stripe/params/invoice_item_delete_params.rb +6 -0
- data/lib/stripe/params/invoice_item_list_params.rb +60 -0
- data/lib/stripe/params/invoice_item_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_item_update_params.rb +129 -0
- data/lib/stripe/params/invoice_line_item_list_params.rb +22 -0
- data/lib/stripe/params/invoice_line_item_update_params.rb +217 -0
- data/lib/stripe/params/invoice_list_params.rb +86 -0
- data/lib/stripe/params/invoice_mark_uncollectible_params.rb +13 -0
- data/lib/stripe/params/invoice_pay_params.rb +41 -0
- data/lib/stripe/params/invoice_payment_list_params.rb +50 -0
- data/lib/stripe/params/invoice_payment_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_remove_lines_params.rb +30 -0
- data/lib/stripe/params/invoice_rendering_template_archive_params.rb +13 -0
- data/lib/stripe/params/invoice_rendering_template_list_params.rb +25 -0
- data/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +16 -0
- data/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +13 -0
- data/lib/stripe/params/invoice_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_search_params.rb +22 -0
- data/lib/stripe/params/invoice_send_invoice_params.rb +13 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +231 -0
- data/lib/stripe/params/invoice_update_params.rb +557 -0
- data/lib/stripe/params/invoice_void_invoice_params.rb +13 -0
- data/lib/stripe/params/issuing/authorization_approve_params.rb +21 -0
- data/lib/stripe/params/issuing/authorization_capture_params.rb +265 -0
- data/lib/stripe/params/issuing/authorization_create_params.rb +357 -0
- data/lib/stripe/params/issuing/authorization_decline_params.rb +18 -0
- data/lib/stripe/params/issuing/authorization_expire_params.rb +15 -0
- data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +143 -0
- data/lib/stripe/params/issuing/authorization_increment_params.rb +21 -0
- data/lib/stripe/params/issuing/authorization_list_params.rb +62 -0
- data/lib/stripe/params/issuing/authorization_respond_params.rb +18 -0
- data/lib/stripe/params/issuing/authorization_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/authorization_reverse_params.rb +18 -0
- data/lib/stripe/params/issuing/authorization_update_params.rb +18 -0
- data/lib/stripe/params/issuing/card_create_params.rb +213 -0
- data/lib/stripe/params/issuing/card_deliver_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_fail_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_list_params.rb +78 -0
- data/lib/stripe/params/issuing/card_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/card_return_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_ship_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_submit_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_update_params.rb +181 -0
- data/lib/stripe/params/issuing/cardholder_create_params.rb +238 -0
- data/lib/stripe/params/issuing/cardholder_list_params.rb +66 -0
- data/lib/stripe/params/issuing/cardholder_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/cardholder_update_params.rb +230 -0
- data/lib/stripe/params/issuing/dispute_create_params.rb +297 -0
- data/lib/stripe/params/issuing/dispute_list_params.rb +58 -0
- data/lib/stripe/params/issuing/dispute_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_submit_params.rb +18 -0
- data/lib/stripe/params/issuing/dispute_update_params.rb +275 -0
- data/lib/stripe/params/issuing/personalization_design_activate_params.rb +15 -0
- data/lib/stripe/params/issuing/personalization_design_create_params.rb +75 -0
- data/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +15 -0
- data/lib/stripe/params/issuing/personalization_design_list_params.rb +52 -0
- data/lib/stripe/params/issuing/personalization_design_reject_params.rb +29 -0
- data/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/personalization_design_update_params.rb +75 -0
- data/lib/stripe/params/issuing/physical_bundle_list_params.rb +37 -0
- data/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/token_list_params.rb +58 -0
- data/lib/stripe/params/issuing/token_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/token_update_params.rb +18 -0
- data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +316 -0
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +316 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +62 -0
- data/lib/stripe/params/issuing/transaction_refund_params.rb +18 -0
- data/lib/stripe/params/issuing/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/transaction_update_params.rb +18 -0
- data/lib/stripe/params/mandate_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +23 -0
- data/lib/stripe/params/payment_intent_cancel_params.rb +16 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +54 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +2379 -0
- data/lib/stripe/params/payment_intent_create_params.rb +2480 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +48 -0
- data/lib/stripe/params/payment_intent_list_params.rb +52 -0
- data/lib/stripe/params/payment_intent_retrieve_params.rb +16 -0
- data/lib/stripe/params/payment_intent_search_params.rb +22 -0
- data/lib/stripe/params/payment_intent_update_params.rb +2353 -0
- data/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +19 -0
- data/lib/stripe/params/payment_link_create_params.rb +776 -0
- data/lib/stripe/params/payment_link_line_item_list_params.rb +22 -0
- data/lib/stripe/params/payment_link_list_line_items_params.rb +22 -0
- data/lib/stripe/params/payment_link_list_params.rb +25 -0
- data/lib/stripe/params/payment_link_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_link_update_params.rb +564 -0
- data/lib/stripe/params/payment_method_attach_params.rb +16 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +1135 -0
- data/lib/stripe/params/payment_method_configuration_list_params.rb +31 -0
- data/lib/stripe/params/payment_method_configuration_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +1135 -0
- data/lib/stripe/params/payment_method_create_params.rb +583 -0
- data/lib/stripe/params/payment_method_detach_params.rb +13 -0
- data/lib/stripe/params/payment_method_domain_create_params.rb +19 -0
- data/lib/stripe/params/payment_method_domain_list_params.rb +35 -0
- data/lib/stripe/params/payment_method_domain_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_method_domain_update_params.rb +16 -0
- data/lib/stripe/params/payment_method_domain_validate_params.rb +13 -0
- data/lib/stripe/params/payment_method_list_params.rb +35 -0
- data/lib/stripe/params/payment_method_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_method_update_params.rb +120 -0
- data/lib/stripe/params/payout_cancel_params.rb +13 -0
- data/lib/stripe/params/payout_create_params.rb +51 -0
- data/lib/stripe/params/payout_list_params.rb +78 -0
- data/lib/stripe/params/payout_retrieve_params.rb +13 -0
- data/lib/stripe/params/payout_reverse_params.rb +16 -0
- data/lib/stripe/params/payout_update_params.rb +16 -0
- data/lib/stripe/params/plan_create_params.rb +158 -0
- data/lib/stripe/params/plan_delete_params.rb +6 -0
- data/lib/stripe/params/plan_list_params.rb +56 -0
- data/lib/stripe/params/plan_retrieve_params.rb +13 -0
- data/lib/stripe/params/plan_update_params.rb +35 -0
- data/lib/stripe/params/price_create_params.rb +278 -0
- data/lib/stripe/params/price_list_params.rb +87 -0
- data/lib/stripe/params/price_retrieve_params.rb +13 -0
- data/lib/stripe/params/price_search_params.rb +22 -0
- data/lib/stripe/params/price_update_params.rb +113 -0
- data/lib/stripe/params/product_create_params.rb +243 -0
- data/lib/stripe/params/product_delete_params.rb +6 -0
- data/lib/stripe/params/product_feature_create_params.rb +16 -0
- data/lib/stripe/params/product_feature_delete_params.rb +6 -0
- data/lib/stripe/params/product_feature_list_params.rb +22 -0
- data/lib/stripe/params/product_feature_retrieve_params.rb +13 -0
- data/lib/stripe/params/product_list_params.rb +68 -0
- data/lib/stripe/params/product_retrieve_params.rb +13 -0
- data/lib/stripe/params/product_search_params.rb +22 -0
- data/lib/stripe/params/product_update_params.rb +96 -0
- data/lib/stripe/params/promotion_code_create_params.rb +91 -0
- data/lib/stripe/params/promotion_code_list_params.rb +64 -0
- data/lib/stripe/params/promotion_code_retrieve_params.rb +13 -0
- data/lib/stripe/params/promotion_code_update_params.rb +38 -0
- data/lib/stripe/params/quote_accept_params.rb +13 -0
- data/lib/stripe/params/quote_cancel_params.rb +13 -0
- data/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +22 -0
- data/lib/stripe/params/quote_create_params.rb +301 -0
- data/lib/stripe/params/quote_finalize_quote_params.rb +16 -0
- data/lib/stripe/params/quote_line_item_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +22 -0
- data/lib/stripe/params/quote_list_line_items_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +39 -0
- data/lib/stripe/params/quote_pdf_params.rb +13 -0
- data/lib/stripe/params/quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +263 -0
- data/lib/stripe/params/radar/early_fraud_warning_list_params.rb +58 -0
- data/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/value_list_create_params.rb +27 -0
- data/lib/stripe/params/radar/value_list_delete_params.rb +8 -0
- data/lib/stripe/params/radar/value_list_item_create_params.rb +21 -0
- data/lib/stripe/params/radar/value_list_item_delete_params.rb +8 -0
- data/lib/stripe/params/radar/value_list_item_list_params.rb +58 -0
- data/lib/stripe/params/radar/value_list_item_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/value_list_list_params.rb +58 -0
- data/lib/stripe/params/radar/value_list_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/value_list_update_params.rb +24 -0
- data/lib/stripe/params/refund_cancel_params.rb +13 -0
- data/lib/stripe/params/refund_create_params.rb +59 -0
- data/lib/stripe/params/refund_expire_params.rb +13 -0
- data/lib/stripe/params/refund_list_params.rb +56 -0
- data/lib/stripe/params/refund_retrieve_params.rb +13 -0
- data/lib/stripe/params/refund_update_params.rb +16 -0
- data/lib/stripe/params/reporting/report_run_create_params.rb +59 -0
- data/lib/stripe/params/reporting/report_run_list_params.rb +44 -0
- data/lib/stripe/params/reporting/report_run_retrieve_params.rb +15 -0
- data/lib/stripe/params/reporting/report_type_list_params.rb +15 -0
- data/lib/stripe/params/reporting/report_type_retrieve_params.rb +15 -0
- data/lib/stripe/params/review_approve_params.rb +13 -0
- data/lib/stripe/params/review_list_params.rb +42 -0
- data/lib/stripe/params/review_retrieve_params.rb +13 -0
- data/lib/stripe/params/setup_attempt_list_params.rb +55 -0
- data/lib/stripe/params/setup_intent_cancel_params.rb +16 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +1050 -0
- data/lib/stripe/params/setup_intent_create_params.rb +1130 -0
- data/lib/stripe/params/setup_intent_list_params.rb +62 -0
- data/lib/stripe/params/setup_intent_retrieve_params.rb +16 -0
- data/lib/stripe/params/setup_intent_update_params.rb +1025 -0
- data/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +19 -0
- data/lib/stripe/params/shipping_rate_create_params.rb +103 -0
- data/lib/stripe/params/shipping_rate_list_params.rb +56 -0
- data/lib/stripe/params/shipping_rate_retrieve_params.rb +13 -0
- data/lib/stripe/params/shipping_rate_update_params.rb +44 -0
- data/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +24 -0
- data/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +15 -0
- data/lib/stripe/params/source_create_params.rb +317 -0
- data/lib/stripe/params/source_detach_params.rb +13 -0
- data/lib/stripe/params/source_retrieve_params.rb +16 -0
- data/lib/stripe/params/source_transaction_list_params.rb +22 -0
- data/lib/stripe/params/source_update_params.rb +259 -0
- data/lib/stripe/params/source_verify_params.rb +16 -0
- data/lib/stripe/params/subscription_cancel_params.rb +33 -0
- data/lib/stripe/params/subscription_create_params.rb +704 -0
- data/lib/stripe/params/subscription_delete_discount_params.rb +6 -0
- data/lib/stripe/params/subscription_item_create_params.rb +134 -0
- data/lib/stripe/params/subscription_item_delete_params.rb +19 -0
- data/lib/stripe/params/subscription_item_list_params.rb +31 -0
- data/lib/stripe/params/subscription_item_retrieve_params.rb +13 -0
- data/lib/stripe/params/subscription_item_update_params.rb +134 -0
- data/lib/stripe/params/subscription_list_params.rb +129 -0
- data/lib/stripe/params/subscription_migrate_params.rb +35 -0
- data/lib/stripe/params/subscription_resume_params.rb +27 -0
- data/lib/stripe/params/subscription_retrieve_params.rb +13 -0
- data/lib/stripe/params/subscription_schedule_cancel_params.rb +19 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +590 -0
- data/lib/stripe/params/subscription_schedule_list_params.rb +122 -0
- data/lib/stripe/params/subscription_schedule_release_params.rb +16 -0
- data/lib/stripe/params/subscription_schedule_retrieve_params.rb +13 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +562 -0
- data/lib/stripe/params/subscription_search_params.rb +22 -0
- data/lib/stripe/params/subscription_update_params.rb +683 -0
- data/lib/stripe/params/tax/calculation_create_params.rb +206 -0
- data/lib/stripe/params/tax/calculation_line_item_list_params.rb +24 -0
- data/lib/stripe/params/tax/calculation_list_line_items_params.rb +24 -0
- data/lib/stripe/params/tax/calculation_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_create_params.rb +2018 -0
- data/lib/stripe/params/tax/registration_list_params.rb +27 -0
- data/lib/stripe/params/tax/registration_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_update_params.rb +21 -0
- data/lib/stripe/params/tax/settings_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/settings_update_params.rb +71 -0
- data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +27 -0
- data/lib/stripe/params/tax/transaction_create_reversal_params.rb +87 -0
- data/lib/stripe/params/tax/transaction_line_item_list_params.rb +24 -0
- data/lib/stripe/params/tax/transaction_list_line_items_params.rb +24 -0
- data/lib/stripe/params/tax/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax_code_list_params.rb +22 -0
- data/lib/stripe/params/tax_code_retrieve_params.rb +13 -0
- data/lib/stripe/params/tax_id_create_params.rb +36 -0
- data/lib/stripe/params/tax_id_delete_params.rb +6 -0
- data/lib/stripe/params/tax_id_list_params.rb +39 -0
- data/lib/stripe/params/tax_id_retrieve_params.rb +13 -0
- data/lib/stripe/params/tax_rate_create_params.rb +55 -0
- data/lib/stripe/params/tax_rate_list_params.rb +56 -0
- data/lib/stripe/params/tax_rate_retrieve_params.rb +13 -0
- data/lib/stripe/params/tax_rate_update_params.rb +47 -0
- data/lib/stripe/params/terminal/configuration_create_params.rb +593 -0
- data/lib/stripe/params/terminal/configuration_delete_params.rb +8 -0
- data/lib/stripe/params/terminal/configuration_list_params.rb +33 -0
- data/lib/stripe/params/terminal/configuration_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +593 -0
- data/lib/stripe/params/terminal/connection_token_create_params.rb +18 -0
- data/lib/stripe/params/terminal/location_create_params.rb +153 -0
- data/lib/stripe/params/terminal/location_delete_params.rb +8 -0
- data/lib/stripe/params/terminal/location_list_params.rb +24 -0
- data/lib/stripe/params/terminal/location_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/location_update_params.rb +153 -0
- data/lib/stripe/params/terminal/reader_cancel_action_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +96 -0
- data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +51 -0
- data/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +29 -0
- data/lib/stripe/params/terminal/reader_create_params.rb +27 -0
- data/lib/stripe/params/terminal/reader_delete_params.rb +8 -0
- data/lib/stripe/params/terminal/reader_list_params.rb +45 -0
- data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +72 -0
- data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +55 -0
- data/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +32 -0
- data/lib/stripe/params/terminal/reader_refund_payment_params.rb +53 -0
- data/lib/stripe/params/terminal/reader_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +52 -0
- data/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +18 -0
- data/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_update_params.rb +21 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +652 -0
- data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +24 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +267 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +359 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +145 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +23 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +20 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +20 -0
- data/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +31 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +318 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +318 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +20 -0
- data/lib/stripe/params/test_helpers/refund_expire_params.rb +15 -0
- data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +74 -0
- data/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +20 -0
- data/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +17 -0
- data/lib/stripe/params/test_helpers/test_clock_advance_params.rb +18 -0
- data/lib/stripe/params/test_helpers/test_clock_create_params.rb +21 -0
- data/lib/stripe/params/test_helpers/test_clock_delete_params.rb +8 -0
- data/lib/stripe/params/test_helpers/test_clock_list_params.rb +24 -0
- data/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +28 -0
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +28 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +57 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +28 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +57 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +68 -0
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +68 -0
- data/lib/stripe/params/token_create_params.rb +1191 -0
- data/lib/stripe/params/token_retrieve_params.rb +13 -0
- data/lib/stripe/params/topup_cancel_params.rb +13 -0
- data/lib/stripe/params/topup_create_params.rb +43 -0
- data/lib/stripe/params/topup_list_params.rb +74 -0
- data/lib/stripe/params/topup_retrieve_params.rb +13 -0
- data/lib/stripe/params/topup_update_params.rb +19 -0
- data/lib/stripe/params/transfer_create_params.rb +47 -0
- data/lib/stripe/params/transfer_list_params.rb +56 -0
- data/lib/stripe/params/transfer_retrieve_params.rb +13 -0
- data/lib/stripe/params/transfer_reversal_create_params.rb +31 -0
- data/lib/stripe/params/transfer_reversal_list_params.rb +22 -0
- data/lib/stripe/params/transfer_reversal_retrieve_params.rb +13 -0
- data/lib/stripe/params/transfer_reversal_update_params.rb +16 -0
- data/lib/stripe/params/transfer_update_params.rb +19 -0
- data/lib/stripe/params/treasury/credit_reversal_create_params.rb +21 -0
- data/lib/stripe/params/treasury/credit_reversal_list_params.rb +41 -0
- data/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/debit_reversal_create_params.rb +21 -0
- data/lib/stripe/params/treasury/debit_reversal_list_params.rb +45 -0
- data/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_close_params.rb +32 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +201 -0
- data/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +163 -0
- data/lib/stripe/params/treasury/financial_account_list_params.rb +54 -0
- data/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +163 -0
- data/lib/stripe/params/treasury/financial_account_update_params.rb +216 -0
- data/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +15 -0
- data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +45 -0
- data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +26 -0
- data/lib/stripe/params/treasury/inbound_transfer_list_params.rb +37 -0
- data/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +15 -0
- data/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +190 -0
- data/lib/stripe/params/treasury/outbound_payment_fail_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_list_params.rb +62 -0
- data/lib/stripe/params/treasury/outbound_payment_post_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +26 -0
- data/lib/stripe/params/treasury/outbound_payment_update_params.rb +55 -0
- data/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +81 -0
- data/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_list_params.rb +37 -0
- data/lib/stripe/params/treasury/outbound_transfer_post_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +26 -0
- data/lib/stripe/params/treasury/outbound_transfer_update_params.rb +55 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +66 -0
- data/lib/stripe/params/treasury/received_credit_list_params.rb +49 -0
- data/lib/stripe/params/treasury/received_credit_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/received_debit_create_params.rb +66 -0
- data/lib/stripe/params/treasury/received_debit_list_params.rb +37 -0
- data/lib/stripe/params/treasury/received_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/transaction_entry_list_params.rb +84 -0
- data/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/transaction_list_params.rb +92 -0
- data/lib/stripe/params/treasury/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +31 -0
- data/lib/stripe/params/v2/billing/meter_event_create_params.rb +33 -0
- data/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +10 -0
- data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +41 -0
- data/lib/stripe/params/v2/core/event_destination_create_params.rb +79 -0
- data/lib/stripe/params/v2/core/event_destination_delete_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_disable_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_enable_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_list_params.rb +20 -0
- data/lib/stripe/params/v2/core/event_destination_ping_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/event_destination_update_params.rb +47 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/event_retrieve_params.rb +10 -0
- data/lib/stripe/params/webhook_endpoint_create_params.rb +39 -0
- data/lib/stripe/params/webhook_endpoint_delete_params.rb +6 -0
- data/lib/stripe/params/webhook_endpoint_list_params.rb +22 -0
- data/lib/stripe/params/webhook_endpoint_retrieve_params.rb +13 -0
- data/lib/stripe/params/webhook_endpoint_update_params.rb +35 -0
- data/lib/stripe/params.rb +588 -0
- data/lib/stripe/request_options.rb +16 -6
- data/lib/stripe/request_params.rb +24 -0
- data/lib/stripe/resources/account.rb +1007 -20
- data/lib/stripe/resources/account_link.rb +17 -0
- data/lib/stripe/resources/account_session.rb +658 -0
- data/lib/stripe/resources/apple_pay_domain.rb +21 -0
- data/lib/stripe/resources/application.rb +28 -0
- data/lib/stripe/resources/application_fee.rb +55 -0
- data/lib/stripe/resources/application_fee_refund.rb +25 -0
- data/lib/stripe/resources/apps/secret.rb +41 -0
- data/lib/stripe/resources/balance.rb +325 -7
- data/lib/stripe/resources/balance_settings.rb +92 -0
- data/lib/stripe/resources/balance_transaction.rb +61 -0
- data/lib/stripe/resources/bank_account.rb +126 -4
- data/lib/stripe/resources/billing/alert.rb +55 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +34 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +88 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +151 -0
- data/lib/stripe/resources/billing/credit_grant.rb +108 -0
- data/lib/stripe/resources/billing/meter.rb +93 -0
- data/lib/stripe/resources/billing/meter_event.rb +23 -0
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +33 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +25 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +254 -0
- data/lib/stripe/resources/billing_portal/session.rb +200 -1
- data/lib/stripe/resources/capability.rb +140 -0
- data/lib/stripe/resources/card.rb +93 -0
- data/lib/stripe/resources/cash_balance.rb +33 -0
- data/lib/stripe/resources/charge.rb +2221 -7
- data/lib/stripe/resources/checkout/session.rb +2206 -6
- data/lib/stripe/resources/climate/order.rb +106 -0
- data/lib/stripe/resources/climate/product.rb +45 -0
- data/lib/stripe/resources/climate/supplier.rb +43 -0
- data/lib/stripe/resources/confirmation_token.rb +1679 -0
- data/lib/stripe/resources/connect_collection_transfer.rb +32 -0
- data/lib/stripe/resources/country_spec.rb +69 -1
- data/lib/stripe/resources/coupon.rb +70 -0
- data/lib/stripe/resources/credit_note.rb +213 -9
- data/lib/stripe/resources/credit_note_line_item.rb +111 -0
- data/lib/stripe/resources/customer.rb +228 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +37 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +217 -0
- data/lib/stripe/resources/customer_session.rb +118 -3
- data/lib/stripe/resources/discount.rb +49 -0
- data/lib/stripe/resources/dispute.rb +405 -1
- data/lib/stripe/resources/entitlements/active_entitlement.rb +19 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +31 -0
- data/lib/stripe/resources/entitlements/feature.rb +23 -0
- data/lib/stripe/resources/ephemeral_key.rb +21 -0
- data/lib/stripe/resources/event.rb +74 -26
- data/lib/stripe/resources/exchange_rate.rb +25 -0
- data/lib/stripe/resources/file.rb +32 -1
- data/lib/stripe/resources/file_link.rb +27 -0
- data/lib/stripe/resources/financial_connections/account.rb +193 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +25 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +17 -0
- data/lib/stripe/resources/financial_connections/session.rb +60 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +47 -0
- data/lib/stripe/resources/forwarding/request.rb +111 -0
- data/lib/stripe/resources/funding_instructions.rb +502 -1
- data/lib/stripe/resources/identity/verification_report.rb +372 -0
- data/lib/stripe/resources/identity/verification_session.rb +290 -11
- data/lib/stripe/resources/invoice.rb +997 -34
- data/lib/stripe/resources/invoice_item.rb +160 -4
- data/lib/stripe/resources/invoice_line_item.rb +278 -1
- data/lib/stripe/resources/invoice_payment.rb +90 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +25 -0
- data/lib/stripe/resources/issuing/authorization.rb +449 -8
- data/lib/stripe/resources/issuing/card.rb +264 -0
- data/lib/stripe/resources/issuing/cardholder.rb +242 -0
- data/lib/stripe/resources/issuing/dispute.rb +257 -3
- data/lib/stripe/resources/issuing/personalization_design.rb +87 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +39 -0
- data/lib/stripe/resources/issuing/token.rb +163 -0
- data/lib/stripe/resources/issuing/transaction.rb +363 -0
- data/lib/stripe/resources/line_item.rb +71 -0
- data/lib/stripe/resources/login_link.rb +17 -1
- data/lib/stripe/resources/mandate.rb +358 -0
- data/lib/stripe/resources/payment_intent.rb +2775 -23
- data/lib/stripe/resources/payment_link.rb +686 -0
- data/lib/stripe/resources/payment_method.rb +1536 -12
- data/lib/stripe/resources/payment_method_configuration.rb +1759 -0
- data/lib/stripe/resources/payment_method_domain.rb +209 -8
- data/lib/stripe/resources/payout.rb +81 -4
- data/lib/stripe/resources/person.rb +469 -2
- data/lib/stripe/resources/plan.rb +87 -1
- data/lib/stripe/resources/price.rb +192 -2
- data/lib/stripe/resources/product.rb +83 -0
- data/lib/stripe/resources/product_feature.rb +20 -0
- data/lib/stripe/resources/promotion_code.rb +86 -3
- data/lib/stripe/resources/quote.rb +510 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +25 -0
- data/lib/stripe/resources/radar/value_list.rb +31 -0
- data/lib/stripe/resources/radar/value_list_item.rb +25 -0
- data/lib/stripe/resources/refund.rb +614 -0
- data/lib/stripe/resources/reporting/report_run.rb +60 -0
- data/lib/stripe/resources/reporting/report_type.rb +27 -0
- data/lib/stripe/resources/reserve_transaction.rb +30 -0
- data/lib/stripe/resources/reversal.rb +30 -1
- data/lib/stripe/resources/review.rb +77 -1
- data/lib/stripe/resources/setup_attempt.rb +589 -0
- data/lib/stripe/resources/setup_intent.rb +574 -3
- data/lib/stripe/resources/shipping_rate.rb +107 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +43 -0
- data/lib/stripe/resources/source.rb +885 -2
- data/lib/stripe/resources/source_mandate_notification.rb +98 -0
- data/lib/stripe/resources/source_transaction.rb +139 -0
- data/lib/stripe/resources/subscription.rb +606 -9
- data/lib/stripe/resources/subscription_item.rb +60 -5
- data/lib/stripe/resources/subscription_schedule.rb +526 -0
- data/lib/stripe/resources/tax/calculation.rb +273 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +90 -0
- data/lib/stripe/resources/tax/registration.rb +2189 -0
- data/lib/stripe/resources/tax/settings.rb +114 -0
- data/lib/stripe/resources/tax/transaction.rb +231 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +47 -0
- data/lib/stripe/resources/tax_code.rb +17 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +30 -0
- data/lib/stripe/resources/tax_id.rb +66 -0
- data/lib/stripe/resources/tax_rate.rb +63 -2
- data/lib/stripe/resources/terminal/configuration.rb +634 -0
- data/lib/stripe/resources/terminal/connection_token.rb +15 -0
- data/lib/stripe/resources/terminal/location.rb +112 -1
- data/lib/stripe/resources/terminal/reader.rb +605 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +53 -0
- data/lib/stripe/resources/token.rb +39 -2
- data/lib/stripe/resources/topup.rb +41 -0
- data/lib/stripe/resources/transfer.rb +44 -1
- data/lib/stripe/resources/treasury/credit_reversal.rb +49 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +64 -0
- data/lib/stripe/resources/treasury/financial_account.rb +145 -1
- data/lib/stripe/resources/treasury/financial_account_features.rb +381 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +178 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +256 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +236 -0
- data/lib/stripe/resources/treasury/received_credit.rb +214 -0
- data/lib/stripe/resources/treasury/received_debit.rb +177 -0
- data/lib/stripe/resources/treasury/transaction.rb +117 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +94 -0
- data/lib/stripe/resources/v2/amount.rb +9 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +26 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +37 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +22 -0
- data/lib/stripe/resources/v2/core/event.rb +67 -0
- data/lib/stripe/resources/v2/core/event_destination.rb +119 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +62 -0
- data/lib/stripe/resources/v2/deleted_object.rb +21 -0
- data/lib/stripe/resources/webhook_endpoint.rb +35 -0
- data/lib/stripe/resources.rb +13 -4
- data/lib/stripe/services/account_external_account_service.rb +1 -1
- data/lib/stripe/services/account_login_link_service.rb +1 -1
- data/lib/stripe/services/account_service.rb +12 -12
- data/lib/stripe/services/application_fee_service.rb +1 -1
- data/lib/stripe/services/apps_service.rb +1 -1
- data/lib/stripe/services/balance_service.rb +1 -1
- data/lib/stripe/services/balance_settings_service.rb +30 -0
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/billing_portal_service.rb +1 -1
- data/lib/stripe/services/billing_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +4 -4
- data/lib/stripe/services/checkout/session_service.rb +8 -6
- data/lib/stripe/services/checkout_service.rb +1 -1
- data/lib/stripe/services/climate_service.rb +1 -1
- data/lib/stripe/services/credit_note_service.rb +8 -9
- data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
- data/lib/stripe/services/customer_payment_source_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +6 -6
- data/lib/stripe/services/dispute_service.rb +1 -1
- data/lib/stripe/services/entitlements_service.rb +1 -1
- data/lib/stripe/services/exchange_rate_service.rb +4 -0
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/financial_connections/account_service.rb +1 -1
- data/lib/stripe/services/financial_connections_service.rb +1 -1
- data/lib/stripe/services/forwarding_service.rb +1 -1
- data/lib/stripe/services/identity/verification_session_service.rb +5 -5
- data/lib/stripe/services/identity_service.rb +1 -1
- data/lib/stripe/services/invoice_payment_service.rb +28 -0
- data/lib/stripe/services/invoice_service.rb +34 -30
- data/lib/stripe/services/issuing/authorization_service.rb +4 -4
- data/lib/stripe/services/issuing/dispute_service.rb +2 -2
- data/lib/stripe/services/issuing_service.rb +1 -1
- data/lib/stripe/services/payment_intent_service.rb +20 -15
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/payment_method_domain_service.rb +4 -4
- data/lib/stripe/services/payment_method_service.rb +9 -9
- data/lib/stripe/services/payout_service.rb +2 -2
- data/lib/stripe/services/plan_service.rb +1 -1
- data/lib/stripe/services/price_service.rb +3 -3
- data/lib/stripe/services/product_service.rb +2 -2
- data/lib/stripe/services/promotion_code_service.rb +2 -2
- data/lib/stripe/services/quote_service.rb +3 -3
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
- data/lib/stripe/services/radar_service.rb +1 -1
- data/lib/stripe/services/reporting_service.rb +1 -1
- data/lib/stripe/services/setup_intent_service.rb +3 -3
- data/lib/stripe/services/sigma_service.rb +1 -1
- data/lib/stripe/services/source_service.rb +2 -2
- data/lib/stripe/services/subscription_item_service.rb +0 -8
- data/lib/stripe/services/subscription_service.rb +19 -8
- data/lib/stripe/services/tax/calculation_service.rb +1 -1
- data/lib/stripe/services/tax/transaction_service.rb +1 -1
- data/lib/stripe/services/tax_service.rb +1 -1
- data/lib/stripe/services/terminal/location_service.rb +1 -1
- data/lib/stripe/services/terminal/reader_service.rb +33 -0
- data/lib/stripe/services/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +22 -0
- data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
- data/lib/stripe/services/test_helpers_service.rb +1 -1
- data/lib/stripe/services/token_service.rb +1 -1
- data/lib/stripe/services/transfer_service.rb +2 -2
- data/lib/stripe/services/treasury/financial_account_service.rb +2 -2
- data/lib/stripe/services/treasury_service.rb +1 -1
- data/lib/stripe/services/v1_services.rb +7 -5
- data/lib/stripe/services/v2/billing_service.rb +4 -4
- data/lib/stripe/services/v2/core_service.rb +3 -3
- data/lib/stripe/services/v2_services.rb +1 -1
- data/lib/stripe/services.rb +2 -3
- data/lib/stripe/stripe_client.rb +10 -6
- data/lib/stripe/stripe_configuration.rb +1 -6
- data/lib/stripe/stripe_context.rb +68 -0
- data/lib/stripe/stripe_object.rb +57 -12
- data/lib/stripe/stripe_service.rb +3 -1
- data/lib/stripe/util.rb +34 -12
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +1 -1
- data/lib/stripe.rb +6 -1
- data/rbi/stripe/resources/v2/core/event_notification.rbi +43 -0
- data/rbi/stripe/stripe_client.rbi +17 -0
- data/rbi/stripe.rbi +132984 -0
- metadata +612 -28
- data/CHANGELOG.md +0 -1589
- data/CODE_OF_CONDUCT.md +0 -77
- data/CONTRIBUTORS +0 -3
- data/Gemfile +0 -37
- data/History.txt +0 -1
- data/LICENSE +0 -21
- data/Makefile +0 -22
- data/OPENAPI_VERSION +0 -1
- data/README.md +0 -422
- data/Rakefile +0 -34
- data/VERSION +0 -1
- data/examples/README.md +0 -16
- data/examples/example_template.rb +0 -36
- data/examples/meter_event_stream.rb +0 -57
- data/examples/thinevent_webhook_handler.rb +0 -39
- data/justfile +0 -43
- data/lib/stripe/resources/usage_record.rb +0 -17
- data/lib/stripe/resources/usage_record_summary.rb +0 -12
- data/lib/stripe/resources/v2/event.rb +0 -13
- data/lib/stripe/resources/v2/event_destination.rb +0 -13
- data/lib/stripe/services/invoice_upcoming_lines_service.rb +0 -17
- data/lib/stripe/services/subscription_item_usage_record_service.rb +0 -23
- data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +0 -19
- data/lib/stripe/thin_event.rb +0 -37
- data/stripe.gemspec +0 -44
|
@@ -6,14 +6,14 @@ module Stripe
|
|
|
6
6
|
# properties on the account like its current requirements or if the account is
|
|
7
7
|
# enabled to make live charges or receive payouts.
|
|
8
8
|
#
|
|
9
|
-
# For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
|
9
|
+
# For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
|
10
10
|
# is `application`, which includes Custom accounts, the properties below are always
|
|
11
11
|
# returned.
|
|
12
12
|
#
|
|
13
|
-
# For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
|
13
|
+
# For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
|
14
14
|
# is `stripe`, which includes Standard and Express accounts, some properties are only returned
|
|
15
|
-
# until you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions)
|
|
16
|
-
# to start Connect Onboarding. Learn about the [differences between accounts](https://stripe.com/connect/accounts).
|
|
15
|
+
# until you create an [Account Link](https://docs.stripe.com/api/account_links) or [Account Session](https://docs.stripe.com/api/account_sessions)
|
|
16
|
+
# to start Connect Onboarding. Learn about the [differences between accounts](https://docs.stripe.com/connect/accounts).
|
|
17
17
|
class Account < APIResource
|
|
18
18
|
extend Stripe::APIOperations::Create
|
|
19
19
|
include Stripe::APIOperations::Delete
|
|
@@ -34,21 +34,990 @@ 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
|
-
|
|
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
|
+
|
|
46
|
+
def self.inner_class_types
|
|
47
|
+
@inner_class_types = {}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def self.field_remappings
|
|
51
|
+
@field_remappings = {}
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class MonthlyEstimatedRevenue < Stripe::StripeObject
|
|
56
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal).
|
|
57
|
+
attr_reader :amount
|
|
58
|
+
# 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).
|
|
59
|
+
attr_reader :currency
|
|
60
|
+
|
|
61
|
+
def self.inner_class_types
|
|
62
|
+
@inner_class_types = {}
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
def self.field_remappings
|
|
66
|
+
@field_remappings = {}
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
class SupportAddress < Stripe::StripeObject
|
|
71
|
+
# City, district, suburb, town, or village.
|
|
72
|
+
attr_reader :city
|
|
73
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
74
|
+
attr_reader :country
|
|
75
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
76
|
+
attr_reader :line1
|
|
77
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
78
|
+
attr_reader :line2
|
|
79
|
+
# ZIP or postal code.
|
|
80
|
+
attr_reader :postal_code
|
|
81
|
+
# State, county, province, or region.
|
|
82
|
+
attr_reader :state
|
|
83
|
+
|
|
84
|
+
def self.inner_class_types
|
|
85
|
+
@inner_class_types = {}
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
def self.field_remappings
|
|
89
|
+
@field_remappings = {}
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
# The applicant's gross annual revenue for its preceding fiscal year.
|
|
93
|
+
attr_reader :annual_revenue
|
|
94
|
+
# An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
|
|
95
|
+
attr_reader :estimated_worker_count
|
|
96
|
+
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
|
|
97
|
+
attr_reader :mcc
|
|
98
|
+
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
|
|
99
|
+
attr_reader :minority_owned_business_designation
|
|
100
|
+
# Attribute for field monthly_estimated_revenue
|
|
101
|
+
attr_reader :monthly_estimated_revenue
|
|
102
|
+
# The customer-facing business name.
|
|
103
|
+
attr_reader :name
|
|
104
|
+
# Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
|
|
105
|
+
attr_reader :product_description
|
|
106
|
+
# A publicly available mailing address for sending support issues to.
|
|
107
|
+
attr_reader :support_address
|
|
108
|
+
# A publicly available email address for sending support issues to.
|
|
109
|
+
attr_reader :support_email
|
|
110
|
+
# A publicly available phone number to call with support issues.
|
|
111
|
+
attr_reader :support_phone
|
|
112
|
+
# A publicly available website for handling support issues.
|
|
113
|
+
attr_reader :support_url
|
|
114
|
+
# The business's publicly available website.
|
|
115
|
+
attr_reader :url
|
|
116
|
+
|
|
117
|
+
def self.inner_class_types
|
|
118
|
+
@inner_class_types = {
|
|
119
|
+
annual_revenue: AnnualRevenue,
|
|
120
|
+
monthly_estimated_revenue: MonthlyEstimatedRevenue,
|
|
121
|
+
support_address: SupportAddress,
|
|
122
|
+
}
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
def self.field_remappings
|
|
126
|
+
@field_remappings = {}
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
class Capabilities < Stripe::StripeObject
|
|
131
|
+
# 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.
|
|
132
|
+
attr_reader :acss_debit_payments
|
|
133
|
+
# The status of the Affirm capability of the account, or whether the account can directly process Affirm charges.
|
|
134
|
+
attr_reader :affirm_payments
|
|
135
|
+
# The status of the Afterpay Clearpay capability of the account, or whether the account can directly process Afterpay Clearpay charges.
|
|
136
|
+
attr_reader :afterpay_clearpay_payments
|
|
137
|
+
# The status of the Alma capability of the account, or whether the account can directly process Alma payments.
|
|
138
|
+
attr_reader :alma_payments
|
|
139
|
+
# The status of the AmazonPay capability of the account, or whether the account can directly process AmazonPay payments.
|
|
140
|
+
attr_reader :amazon_pay_payments
|
|
141
|
+
# 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.
|
|
142
|
+
attr_reader :au_becs_debit_payments
|
|
143
|
+
# The status of the Bacs Direct Debits payments capability of the account, or whether the account can directly process Bacs Direct Debits charges.
|
|
144
|
+
attr_reader :bacs_debit_payments
|
|
145
|
+
# The status of the Bancontact payments capability of the account, or whether the account can directly process Bancontact charges.
|
|
146
|
+
attr_reader :bancontact_payments
|
|
147
|
+
# The status of the customer_balance payments capability of the account, or whether the account can directly process customer_balance charges.
|
|
148
|
+
attr_reader :bank_transfer_payments
|
|
149
|
+
# The status of the Billie capability of the account, or whether the account can directly process Billie payments.
|
|
150
|
+
attr_reader :billie_payments
|
|
151
|
+
# The status of the blik payments capability of the account, or whether the account can directly process blik charges.
|
|
152
|
+
attr_reader :blik_payments
|
|
153
|
+
# The status of the boleto payments capability of the account, or whether the account can directly process boleto charges.
|
|
154
|
+
attr_reader :boleto_payments
|
|
155
|
+
# The status of the card issuing capability of the account, or whether you can use Issuing to distribute funds on cards
|
|
156
|
+
attr_reader :card_issuing
|
|
157
|
+
# The status of the card payments capability of the account, or whether the account can directly process credit and debit card charges.
|
|
158
|
+
attr_reader :card_payments
|
|
159
|
+
# 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.
|
|
160
|
+
attr_reader :cartes_bancaires_payments
|
|
161
|
+
# The status of the Cash App Pay capability of the account, or whether the account can directly process Cash App Pay payments.
|
|
162
|
+
attr_reader :cashapp_payments
|
|
163
|
+
# The status of the Crypto capability of the account, or whether the account can directly process Crypto payments.
|
|
164
|
+
attr_reader :crypto_payments
|
|
165
|
+
# The status of the EPS payments capability of the account, or whether the account can directly process EPS charges.
|
|
166
|
+
attr_reader :eps_payments
|
|
167
|
+
# The status of the FPX payments capability of the account, or whether the account can directly process FPX charges.
|
|
168
|
+
attr_reader :fpx_payments
|
|
169
|
+
# 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.
|
|
170
|
+
attr_reader :gb_bank_transfer_payments
|
|
171
|
+
# The status of the giropay payments capability of the account, or whether the account can directly process giropay charges.
|
|
172
|
+
attr_reader :giropay_payments
|
|
173
|
+
# The status of the GrabPay payments capability of the account, or whether the account can directly process GrabPay charges.
|
|
174
|
+
attr_reader :grabpay_payments
|
|
175
|
+
# The status of the iDEAL payments capability of the account, or whether the account can directly process iDEAL charges.
|
|
176
|
+
attr_reader :ideal_payments
|
|
177
|
+
# The status of the india_international_payments capability of the account, or whether the account can process international charges (non INR) in India.
|
|
178
|
+
attr_reader :india_international_payments
|
|
179
|
+
# 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.
|
|
180
|
+
attr_reader :jcb_payments
|
|
181
|
+
# 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.
|
|
182
|
+
attr_reader :jp_bank_transfer_payments
|
|
183
|
+
# The status of the KakaoPay capability of the account, or whether the account can directly process KakaoPay payments.
|
|
184
|
+
attr_reader :kakao_pay_payments
|
|
185
|
+
# The status of the Klarna payments capability of the account, or whether the account can directly process Klarna charges.
|
|
186
|
+
attr_reader :klarna_payments
|
|
187
|
+
# The status of the konbini payments capability of the account, or whether the account can directly process konbini charges.
|
|
188
|
+
attr_reader :konbini_payments
|
|
189
|
+
# The status of the KrCard capability of the account, or whether the account can directly process KrCard payments.
|
|
190
|
+
attr_reader :kr_card_payments
|
|
191
|
+
# The status of the legacy payments capability of the account.
|
|
192
|
+
attr_reader :legacy_payments
|
|
193
|
+
# The status of the link_payments capability of the account, or whether the account can directly process Link charges.
|
|
194
|
+
attr_reader :link_payments
|
|
195
|
+
# The status of the MB WAY payments capability of the account, or whether the account can directly process MB WAY charges.
|
|
196
|
+
attr_reader :mb_way_payments
|
|
197
|
+
# The status of the MobilePay capability of the account, or whether the account can directly process MobilePay charges.
|
|
198
|
+
attr_reader :mobilepay_payments
|
|
199
|
+
# The status of the Multibanco payments capability of the account, or whether the account can directly process Multibanco charges.
|
|
200
|
+
attr_reader :multibanco_payments
|
|
201
|
+
# 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.
|
|
202
|
+
attr_reader :mx_bank_transfer_payments
|
|
203
|
+
# The status of the NaverPay capability of the account, or whether the account can directly process NaverPay payments.
|
|
204
|
+
attr_reader :naver_pay_payments
|
|
205
|
+
# 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.
|
|
206
|
+
attr_reader :nz_bank_account_becs_debit_payments
|
|
207
|
+
# The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.
|
|
208
|
+
attr_reader :oxxo_payments
|
|
209
|
+
# The status of the P24 payments capability of the account, or whether the account can directly process P24 charges.
|
|
210
|
+
attr_reader :p24_payments
|
|
211
|
+
# The status of the pay_by_bank payments capability of the account, or whether the account can directly process pay_by_bank charges.
|
|
212
|
+
attr_reader :pay_by_bank_payments
|
|
213
|
+
# The status of the Payco capability of the account, or whether the account can directly process Payco payments.
|
|
214
|
+
attr_reader :payco_payments
|
|
215
|
+
# The status of the paynow payments capability of the account, or whether the account can directly process paynow charges.
|
|
216
|
+
attr_reader :paynow_payments
|
|
217
|
+
# The status of the pix payments capability of the account, or whether the account can directly process pix charges.
|
|
218
|
+
attr_reader :pix_payments
|
|
219
|
+
# The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
|
|
220
|
+
attr_reader :promptpay_payments
|
|
221
|
+
# The status of the RevolutPay capability of the account, or whether the account can directly process RevolutPay payments.
|
|
222
|
+
attr_reader :revolut_pay_payments
|
|
223
|
+
# The status of the SamsungPay capability of the account, or whether the account can directly process SamsungPay payments.
|
|
224
|
+
attr_reader :samsung_pay_payments
|
|
225
|
+
# The status of the Satispay capability of the account, or whether the account can directly process Satispay payments.
|
|
226
|
+
attr_reader :satispay_payments
|
|
227
|
+
# 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.
|
|
228
|
+
attr_reader :sepa_bank_transfer_payments
|
|
229
|
+
# The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
|
|
230
|
+
attr_reader :sepa_debit_payments
|
|
231
|
+
# The status of the Sofort payments capability of the account, or whether the account can directly process Sofort charges.
|
|
232
|
+
attr_reader :sofort_payments
|
|
233
|
+
# The status of the Swish capability of the account, or whether the account can directly process Swish payments.
|
|
234
|
+
attr_reader :swish_payments
|
|
235
|
+
# The status of the tax reporting 1099-K (US) capability of the account.
|
|
236
|
+
attr_reader :tax_reporting_us_1099_k
|
|
237
|
+
# The status of the tax reporting 1099-MISC (US) capability of the account.
|
|
238
|
+
attr_reader :tax_reporting_us_1099_misc
|
|
239
|
+
# The status of the transfers capability of the account, or whether your platform can transfer funds to the account.
|
|
240
|
+
attr_reader :transfers
|
|
241
|
+
# The status of the banking capability, or whether the account can have bank accounts.
|
|
242
|
+
attr_reader :treasury
|
|
243
|
+
# The status of the TWINT capability of the account, or whether the account can directly process TWINT charges.
|
|
244
|
+
attr_reader :twint_payments
|
|
245
|
+
# The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges.
|
|
246
|
+
attr_reader :us_bank_account_ach_payments
|
|
247
|
+
# 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.
|
|
248
|
+
attr_reader :us_bank_transfer_payments
|
|
249
|
+
# The status of the Zip capability of the account, or whether the account can directly process Zip charges.
|
|
250
|
+
attr_reader :zip_payments
|
|
251
|
+
|
|
252
|
+
def self.inner_class_types
|
|
253
|
+
@inner_class_types = {}
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
def self.field_remappings
|
|
257
|
+
@field_remappings = {}
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
class Company < Stripe::StripeObject
|
|
262
|
+
class Address < Stripe::StripeObject
|
|
263
|
+
# City, district, suburb, town, or village.
|
|
264
|
+
attr_reader :city
|
|
265
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
266
|
+
attr_reader :country
|
|
267
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
268
|
+
attr_reader :line1
|
|
269
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
270
|
+
attr_reader :line2
|
|
271
|
+
# ZIP or postal code.
|
|
272
|
+
attr_reader :postal_code
|
|
273
|
+
# State, county, province, or region.
|
|
274
|
+
attr_reader :state
|
|
275
|
+
|
|
276
|
+
def self.inner_class_types
|
|
277
|
+
@inner_class_types = {}
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
def self.field_remappings
|
|
281
|
+
@field_remappings = {}
|
|
282
|
+
end
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
class AddressKana < Stripe::StripeObject
|
|
286
|
+
# City/Ward.
|
|
287
|
+
attr_reader :city
|
|
288
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
289
|
+
attr_reader :country
|
|
290
|
+
# Block/Building number.
|
|
291
|
+
attr_reader :line1
|
|
292
|
+
# Building details.
|
|
293
|
+
attr_reader :line2
|
|
294
|
+
# ZIP or postal code.
|
|
295
|
+
attr_reader :postal_code
|
|
296
|
+
# Prefecture.
|
|
297
|
+
attr_reader :state
|
|
298
|
+
# Town/cho-me.
|
|
299
|
+
attr_reader :town
|
|
300
|
+
|
|
301
|
+
def self.inner_class_types
|
|
302
|
+
@inner_class_types = {}
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
def self.field_remappings
|
|
306
|
+
@field_remappings = {}
|
|
307
|
+
end
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
class AddressKanji < Stripe::StripeObject
|
|
311
|
+
# City/Ward.
|
|
312
|
+
attr_reader :city
|
|
313
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
314
|
+
attr_reader :country
|
|
315
|
+
# Block/Building number.
|
|
316
|
+
attr_reader :line1
|
|
317
|
+
# Building details.
|
|
318
|
+
attr_reader :line2
|
|
319
|
+
# ZIP or postal code.
|
|
320
|
+
attr_reader :postal_code
|
|
321
|
+
# Prefecture.
|
|
322
|
+
attr_reader :state
|
|
323
|
+
# Town/cho-me.
|
|
324
|
+
attr_reader :town
|
|
325
|
+
|
|
326
|
+
def self.inner_class_types
|
|
327
|
+
@inner_class_types = {}
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
def self.field_remappings
|
|
331
|
+
@field_remappings = {}
|
|
332
|
+
end
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
class DirectorshipDeclaration < Stripe::StripeObject
|
|
336
|
+
# The Unix timestamp marking when the directorship declaration attestation was made.
|
|
337
|
+
attr_reader :date
|
|
338
|
+
# The IP address from which the directorship declaration attestation was made.
|
|
339
|
+
attr_reader :ip
|
|
340
|
+
# The user-agent string from the browser where the directorship declaration attestation was made.
|
|
341
|
+
attr_reader :user_agent
|
|
342
|
+
|
|
343
|
+
def self.inner_class_types
|
|
344
|
+
@inner_class_types = {}
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
def self.field_remappings
|
|
348
|
+
@field_remappings = {}
|
|
349
|
+
end
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
class OwnershipDeclaration < Stripe::StripeObject
|
|
353
|
+
# The Unix timestamp marking when the beneficial owner attestation was made.
|
|
354
|
+
attr_reader :date
|
|
355
|
+
# The IP address from which the beneficial owner attestation was made.
|
|
356
|
+
attr_reader :ip
|
|
357
|
+
# The user-agent string from the browser where the beneficial owner attestation was made.
|
|
358
|
+
attr_reader :user_agent
|
|
359
|
+
|
|
360
|
+
def self.inner_class_types
|
|
361
|
+
@inner_class_types = {}
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
def self.field_remappings
|
|
365
|
+
@field_remappings = {}
|
|
366
|
+
end
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
class RegistrationDate < Stripe::StripeObject
|
|
370
|
+
# The day of registration, between 1 and 31.
|
|
371
|
+
attr_reader :day
|
|
372
|
+
# The month of registration, between 1 and 12.
|
|
373
|
+
attr_reader :month
|
|
374
|
+
# The four-digit year of registration.
|
|
375
|
+
attr_reader :year
|
|
376
|
+
|
|
377
|
+
def self.inner_class_types
|
|
378
|
+
@inner_class_types = {}
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
def self.field_remappings
|
|
382
|
+
@field_remappings = {}
|
|
383
|
+
end
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
class Verification < Stripe::StripeObject
|
|
387
|
+
class Document < Stripe::StripeObject
|
|
388
|
+
# The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](/file-upload#uploading-a-file).
|
|
389
|
+
attr_reader :back
|
|
390
|
+
# A user-displayable string describing the verification state of this document.
|
|
391
|
+
attr_reader :details
|
|
392
|
+
# 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.
|
|
393
|
+
attr_reader :details_code
|
|
394
|
+
# The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](/file-upload#uploading-a-file).
|
|
395
|
+
attr_reader :front
|
|
396
|
+
|
|
397
|
+
def self.inner_class_types
|
|
398
|
+
@inner_class_types = {}
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
def self.field_remappings
|
|
402
|
+
@field_remappings = {}
|
|
403
|
+
end
|
|
404
|
+
end
|
|
405
|
+
# Attribute for field document
|
|
406
|
+
attr_reader :document
|
|
407
|
+
|
|
408
|
+
def self.inner_class_types
|
|
409
|
+
@inner_class_types = { document: Document }
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
def self.field_remappings
|
|
413
|
+
@field_remappings = {}
|
|
414
|
+
end
|
|
415
|
+
end
|
|
416
|
+
# Attribute for field address
|
|
417
|
+
attr_reader :address
|
|
418
|
+
# The Kana variation of the company's primary address (Japan only).
|
|
419
|
+
attr_reader :address_kana
|
|
420
|
+
# The Kanji variation of the company's primary address (Japan only).
|
|
421
|
+
attr_reader :address_kanji
|
|
422
|
+
# 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).
|
|
423
|
+
attr_reader :directors_provided
|
|
424
|
+
# This hash is used to attest that the director information provided to Stripe is both current and correct.
|
|
425
|
+
attr_reader :directorship_declaration
|
|
426
|
+
# 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.
|
|
427
|
+
attr_reader :executives_provided
|
|
428
|
+
# The export license ID number of the company, also referred as Import Export Code (India only).
|
|
429
|
+
attr_reader :export_license_id
|
|
430
|
+
# The purpose code to use for export transactions (India only).
|
|
431
|
+
attr_reader :export_purpose_code
|
|
432
|
+
# The company's legal name. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
|
|
433
|
+
attr_reader :name
|
|
434
|
+
# 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`.
|
|
435
|
+
attr_reader :name_kana
|
|
436
|
+
# 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`.
|
|
437
|
+
attr_reader :name_kanji
|
|
438
|
+
# 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).
|
|
439
|
+
attr_reader :owners_provided
|
|
440
|
+
# This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
|
|
441
|
+
attr_reader :ownership_declaration
|
|
442
|
+
# 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.
|
|
443
|
+
attr_reader :ownership_exemption_reason
|
|
444
|
+
# The company's phone number (used for verification).
|
|
445
|
+
attr_reader :phone
|
|
446
|
+
# Attribute for field registration_date
|
|
447
|
+
attr_reader :registration_date
|
|
448
|
+
# 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.
|
|
449
|
+
attr_reader :structure
|
|
450
|
+
# Whether the company's business ID number was provided.
|
|
451
|
+
attr_reader :tax_id_provided
|
|
452
|
+
# The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
|
|
453
|
+
attr_reader :tax_id_registrar
|
|
454
|
+
# Whether the company's business VAT number was provided.
|
|
455
|
+
attr_reader :vat_id_provided
|
|
456
|
+
# Information on the verification state of the company.
|
|
457
|
+
attr_reader :verification
|
|
458
|
+
|
|
459
|
+
def self.inner_class_types
|
|
460
|
+
@inner_class_types = {
|
|
461
|
+
address: Address,
|
|
462
|
+
address_kana: AddressKana,
|
|
463
|
+
address_kanji: AddressKanji,
|
|
464
|
+
directorship_declaration: DirectorshipDeclaration,
|
|
465
|
+
ownership_declaration: OwnershipDeclaration,
|
|
466
|
+
registration_date: RegistrationDate,
|
|
467
|
+
verification: Verification,
|
|
468
|
+
}
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
def self.field_remappings
|
|
472
|
+
@field_remappings = {}
|
|
473
|
+
end
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
class Controller < Stripe::StripeObject
|
|
477
|
+
class Fees < Stripe::StripeObject
|
|
478
|
+
# 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).
|
|
479
|
+
attr_reader :payer
|
|
480
|
+
|
|
481
|
+
def self.inner_class_types
|
|
482
|
+
@inner_class_types = {}
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
def self.field_remappings
|
|
486
|
+
@field_remappings = {}
|
|
487
|
+
end
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
class Losses < Stripe::StripeObject
|
|
491
|
+
# A value indicating who is liable when this account can't pay back negative balances from payments.
|
|
492
|
+
attr_reader :payments
|
|
493
|
+
|
|
494
|
+
def self.inner_class_types
|
|
495
|
+
@inner_class_types = {}
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
def self.field_remappings
|
|
499
|
+
@field_remappings = {}
|
|
500
|
+
end
|
|
501
|
+
end
|
|
502
|
+
|
|
503
|
+
class StripeDashboard < Stripe::StripeObject
|
|
504
|
+
# A value indicating the Stripe dashboard this account has access to independent of the Connect application.
|
|
505
|
+
attr_reader :type
|
|
506
|
+
|
|
507
|
+
def self.inner_class_types
|
|
508
|
+
@inner_class_types = {}
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
def self.field_remappings
|
|
512
|
+
@field_remappings = {}
|
|
513
|
+
end
|
|
514
|
+
end
|
|
515
|
+
# Attribute for field fees
|
|
516
|
+
attr_reader :fees
|
|
517
|
+
# `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.
|
|
518
|
+
attr_reader :is_controller
|
|
519
|
+
# Attribute for field losses
|
|
520
|
+
attr_reader :losses
|
|
521
|
+
# A value indicating responsibility for collecting requirements on this account. Only returned when the Connect application retrieving the resource controls the account.
|
|
522
|
+
attr_reader :requirement_collection
|
|
523
|
+
# Attribute for field stripe_dashboard
|
|
524
|
+
attr_reader :stripe_dashboard
|
|
525
|
+
# The controller type. Can be `application`, if a Connect application controls the account, or `account`, if the account controls itself.
|
|
526
|
+
attr_reader :type
|
|
527
|
+
|
|
528
|
+
def self.inner_class_types
|
|
529
|
+
@inner_class_types = { fees: Fees, losses: Losses, stripe_dashboard: StripeDashboard }
|
|
530
|
+
end
|
|
531
|
+
|
|
532
|
+
def self.field_remappings
|
|
533
|
+
@field_remappings = {}
|
|
534
|
+
end
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
class FutureRequirements < Stripe::StripeObject
|
|
538
|
+
class Alternative < Stripe::StripeObject
|
|
539
|
+
# Fields that can be provided to satisfy all fields in `original_fields_due`.
|
|
540
|
+
attr_reader :alternative_fields_due
|
|
541
|
+
# Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`.
|
|
542
|
+
attr_reader :original_fields_due
|
|
543
|
+
|
|
544
|
+
def self.inner_class_types
|
|
545
|
+
@inner_class_types = {}
|
|
546
|
+
end
|
|
547
|
+
|
|
548
|
+
def self.field_remappings
|
|
549
|
+
@field_remappings = {}
|
|
550
|
+
end
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
class Error < Stripe::StripeObject
|
|
554
|
+
# The code for the type of error.
|
|
555
|
+
attr_reader :code
|
|
556
|
+
# An informative message that indicates the error type and provides additional details about the error.
|
|
557
|
+
attr_reader :reason
|
|
558
|
+
# The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
|
559
|
+
attr_reader :requirement
|
|
560
|
+
|
|
561
|
+
def self.inner_class_types
|
|
562
|
+
@inner_class_types = {}
|
|
563
|
+
end
|
|
564
|
+
|
|
565
|
+
def self.field_remappings
|
|
566
|
+
@field_remappings = {}
|
|
567
|
+
end
|
|
568
|
+
end
|
|
569
|
+
# Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
|
570
|
+
attr_reader :alternatives
|
|
571
|
+
# 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.
|
|
572
|
+
attr_reader :current_deadline
|
|
573
|
+
# 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.
|
|
574
|
+
attr_reader :currently_due
|
|
575
|
+
# This is typed as an enum for consistency with `requirements.disabled_reason`.
|
|
576
|
+
attr_reader :disabled_reason
|
|
577
|
+
# Fields that are `currently_due` and need to be collected again because validation or verification failed.
|
|
578
|
+
attr_reader :errors
|
|
579
|
+
# Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well.
|
|
580
|
+
attr_reader :eventually_due
|
|
581
|
+
# 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`.
|
|
582
|
+
attr_reader :past_due
|
|
583
|
+
# 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.
|
|
584
|
+
attr_reader :pending_verification
|
|
585
|
+
|
|
586
|
+
def self.inner_class_types
|
|
587
|
+
@inner_class_types = { alternatives: Alternative, errors: Error }
|
|
588
|
+
end
|
|
589
|
+
|
|
590
|
+
def self.field_remappings
|
|
591
|
+
@field_remappings = {}
|
|
592
|
+
end
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
class Groups < Stripe::StripeObject
|
|
596
|
+
# 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.
|
|
597
|
+
attr_reader :payments_pricing
|
|
598
|
+
|
|
599
|
+
def self.inner_class_types
|
|
600
|
+
@inner_class_types = {}
|
|
601
|
+
end
|
|
602
|
+
|
|
603
|
+
def self.field_remappings
|
|
604
|
+
@field_remappings = {}
|
|
605
|
+
end
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
class Requirements < Stripe::StripeObject
|
|
609
|
+
class Alternative < Stripe::StripeObject
|
|
610
|
+
# Fields that can be provided to satisfy all fields in `original_fields_due`.
|
|
611
|
+
attr_reader :alternative_fields_due
|
|
612
|
+
# Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`.
|
|
613
|
+
attr_reader :original_fields_due
|
|
614
|
+
|
|
615
|
+
def self.inner_class_types
|
|
616
|
+
@inner_class_types = {}
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
def self.field_remappings
|
|
620
|
+
@field_remappings = {}
|
|
621
|
+
end
|
|
622
|
+
end
|
|
623
|
+
|
|
624
|
+
class Error < Stripe::StripeObject
|
|
625
|
+
# The code for the type of error.
|
|
626
|
+
attr_reader :code
|
|
627
|
+
# An informative message that indicates the error type and provides additional details about the error.
|
|
628
|
+
attr_reader :reason
|
|
629
|
+
# The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
|
630
|
+
attr_reader :requirement
|
|
631
|
+
|
|
632
|
+
def self.inner_class_types
|
|
633
|
+
@inner_class_types = {}
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
def self.field_remappings
|
|
637
|
+
@field_remappings = {}
|
|
638
|
+
end
|
|
639
|
+
end
|
|
640
|
+
# Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
|
641
|
+
attr_reader :alternatives
|
|
642
|
+
# 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.
|
|
643
|
+
attr_reader :current_deadline
|
|
644
|
+
# 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.
|
|
645
|
+
attr_reader :currently_due
|
|
646
|
+
# If the account is disabled, this enum describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification).
|
|
647
|
+
attr_reader :disabled_reason
|
|
648
|
+
# Fields that are `currently_due` and need to be collected again because validation or verification failed.
|
|
649
|
+
attr_reader :errors
|
|
650
|
+
# 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.
|
|
651
|
+
attr_reader :eventually_due
|
|
652
|
+
# Fields that weren't collected by `current_deadline`. These fields need to be collected to enable the account.
|
|
653
|
+
attr_reader :past_due
|
|
654
|
+
# 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.
|
|
655
|
+
attr_reader :pending_verification
|
|
656
|
+
|
|
657
|
+
def self.inner_class_types
|
|
658
|
+
@inner_class_types = { alternatives: Alternative, errors: Error }
|
|
659
|
+
end
|
|
660
|
+
|
|
661
|
+
def self.field_remappings
|
|
662
|
+
@field_remappings = {}
|
|
663
|
+
end
|
|
664
|
+
end
|
|
665
|
+
|
|
666
|
+
class Settings < Stripe::StripeObject
|
|
667
|
+
class BacsDebitPayments < Stripe::StripeObject
|
|
668
|
+
# 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.
|
|
669
|
+
attr_reader :display_name
|
|
670
|
+
# 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.
|
|
671
|
+
attr_reader :service_user_number
|
|
672
|
+
|
|
673
|
+
def self.inner_class_types
|
|
674
|
+
@inner_class_types = {}
|
|
675
|
+
end
|
|
676
|
+
|
|
677
|
+
def self.field_remappings
|
|
678
|
+
@field_remappings = {}
|
|
679
|
+
end
|
|
680
|
+
end
|
|
681
|
+
|
|
682
|
+
class Branding < Stripe::StripeObject
|
|
683
|
+
# (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.
|
|
684
|
+
attr_reader :icon
|
|
685
|
+
# (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.
|
|
686
|
+
attr_reader :logo
|
|
687
|
+
# A CSS hex color value representing the primary branding color for this account
|
|
688
|
+
attr_reader :primary_color
|
|
689
|
+
# A CSS hex color value representing the secondary branding color for this account
|
|
690
|
+
attr_reader :secondary_color
|
|
691
|
+
|
|
692
|
+
def self.inner_class_types
|
|
693
|
+
@inner_class_types = {}
|
|
694
|
+
end
|
|
695
|
+
|
|
696
|
+
def self.field_remappings
|
|
697
|
+
@field_remappings = {}
|
|
698
|
+
end
|
|
699
|
+
end
|
|
700
|
+
|
|
701
|
+
class CardIssuing < Stripe::StripeObject
|
|
702
|
+
class TosAcceptance < Stripe::StripeObject
|
|
703
|
+
# The Unix timestamp marking when the account representative accepted the service agreement.
|
|
704
|
+
attr_reader :date
|
|
705
|
+
# The IP address from which the account representative accepted the service agreement.
|
|
706
|
+
attr_reader :ip
|
|
707
|
+
# The user agent of the browser from which the account representative accepted the service agreement.
|
|
708
|
+
attr_reader :user_agent
|
|
709
|
+
|
|
710
|
+
def self.inner_class_types
|
|
711
|
+
@inner_class_types = {}
|
|
712
|
+
end
|
|
713
|
+
|
|
714
|
+
def self.field_remappings
|
|
715
|
+
@field_remappings = {}
|
|
716
|
+
end
|
|
717
|
+
end
|
|
718
|
+
# Attribute for field tos_acceptance
|
|
719
|
+
attr_reader :tos_acceptance
|
|
720
|
+
|
|
721
|
+
def self.inner_class_types
|
|
722
|
+
@inner_class_types = { tos_acceptance: TosAcceptance }
|
|
723
|
+
end
|
|
724
|
+
|
|
725
|
+
def self.field_remappings
|
|
726
|
+
@field_remappings = {}
|
|
727
|
+
end
|
|
728
|
+
end
|
|
729
|
+
|
|
730
|
+
class CardPayments < Stripe::StripeObject
|
|
731
|
+
class DeclineOn < Stripe::StripeObject
|
|
732
|
+
# 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.
|
|
733
|
+
attr_reader :avs_failure
|
|
734
|
+
# Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
|
|
735
|
+
attr_reader :cvc_failure
|
|
736
|
+
|
|
737
|
+
def self.inner_class_types
|
|
738
|
+
@inner_class_types = {}
|
|
739
|
+
end
|
|
740
|
+
|
|
741
|
+
def self.field_remappings
|
|
742
|
+
@field_remappings = {}
|
|
743
|
+
end
|
|
744
|
+
end
|
|
745
|
+
# Attribute for field decline_on
|
|
746
|
+
attr_reader :decline_on
|
|
747
|
+
# 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.
|
|
748
|
+
attr_reader :statement_descriptor_prefix
|
|
749
|
+
# 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.
|
|
750
|
+
attr_reader :statement_descriptor_prefix_kana
|
|
751
|
+
# 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.
|
|
752
|
+
attr_reader :statement_descriptor_prefix_kanji
|
|
753
|
+
|
|
754
|
+
def self.inner_class_types
|
|
755
|
+
@inner_class_types = { decline_on: DeclineOn }
|
|
756
|
+
end
|
|
757
|
+
|
|
758
|
+
def self.field_remappings
|
|
759
|
+
@field_remappings = {}
|
|
760
|
+
end
|
|
761
|
+
end
|
|
762
|
+
|
|
763
|
+
class Dashboard < Stripe::StripeObject
|
|
764
|
+
# The display name for this account. This is used on the Stripe Dashboard to differentiate between accounts.
|
|
765
|
+
attr_reader :display_name
|
|
766
|
+
# 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).
|
|
767
|
+
attr_reader :timezone
|
|
768
|
+
|
|
769
|
+
def self.inner_class_types
|
|
770
|
+
@inner_class_types = {}
|
|
771
|
+
end
|
|
772
|
+
|
|
773
|
+
def self.field_remappings
|
|
774
|
+
@field_remappings = {}
|
|
775
|
+
end
|
|
776
|
+
end
|
|
777
|
+
|
|
778
|
+
class Invoices < Stripe::StripeObject
|
|
779
|
+
# The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
|
|
780
|
+
attr_reader :default_account_tax_ids
|
|
781
|
+
# Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
|
|
782
|
+
attr_reader :hosted_payment_method_save
|
|
783
|
+
|
|
784
|
+
def self.inner_class_types
|
|
785
|
+
@inner_class_types = {}
|
|
786
|
+
end
|
|
787
|
+
|
|
788
|
+
def self.field_remappings
|
|
789
|
+
@field_remappings = {}
|
|
790
|
+
end
|
|
791
|
+
end
|
|
792
|
+
|
|
793
|
+
class Payments < Stripe::StripeObject
|
|
794
|
+
# 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.
|
|
795
|
+
attr_reader :statement_descriptor
|
|
796
|
+
# 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).
|
|
797
|
+
attr_reader :statement_descriptor_kana
|
|
798
|
+
# 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).
|
|
799
|
+
attr_reader :statement_descriptor_kanji
|
|
800
|
+
# 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).
|
|
801
|
+
attr_reader :statement_descriptor_prefix_kana
|
|
802
|
+
# 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).
|
|
803
|
+
attr_reader :statement_descriptor_prefix_kanji
|
|
804
|
+
|
|
805
|
+
def self.inner_class_types
|
|
806
|
+
@inner_class_types = {}
|
|
807
|
+
end
|
|
808
|
+
|
|
809
|
+
def self.field_remappings
|
|
810
|
+
@field_remappings = {}
|
|
811
|
+
end
|
|
812
|
+
end
|
|
813
|
+
|
|
814
|
+
class Payouts < Stripe::StripeObject
|
|
815
|
+
class Schedule < Stripe::StripeObject
|
|
816
|
+
# The number of days charges for the account will be held before being paid out.
|
|
817
|
+
attr_reader :delay_days
|
|
818
|
+
# How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`.
|
|
819
|
+
attr_reader :interval
|
|
820
|
+
# 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.
|
|
821
|
+
attr_reader :monthly_anchor
|
|
822
|
+
# The days 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.
|
|
823
|
+
attr_reader :monthly_payout_days
|
|
824
|
+
# The day of the week funds will be paid out, of the style 'monday', 'tuesday', etc. Only shown if `interval` is weekly.
|
|
825
|
+
attr_reader :weekly_anchor
|
|
826
|
+
# The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
|
|
827
|
+
attr_reader :weekly_payout_days
|
|
828
|
+
|
|
829
|
+
def self.inner_class_types
|
|
830
|
+
@inner_class_types = {}
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
def self.field_remappings
|
|
834
|
+
@field_remappings = {}
|
|
835
|
+
end
|
|
836
|
+
end
|
|
837
|
+
# 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`.
|
|
838
|
+
attr_reader :debit_negative_balances
|
|
839
|
+
# Attribute for field schedule
|
|
840
|
+
attr_reader :schedule
|
|
841
|
+
# 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.
|
|
842
|
+
attr_reader :statement_descriptor
|
|
843
|
+
|
|
844
|
+
def self.inner_class_types
|
|
845
|
+
@inner_class_types = { schedule: Schedule }
|
|
846
|
+
end
|
|
847
|
+
|
|
848
|
+
def self.field_remappings
|
|
849
|
+
@field_remappings = {}
|
|
850
|
+
end
|
|
851
|
+
end
|
|
852
|
+
|
|
853
|
+
class SepaDebitPayments < Stripe::StripeObject
|
|
854
|
+
# SEPA creditor identifier that identifies the company making the payment.
|
|
855
|
+
attr_reader :creditor_id
|
|
856
|
+
|
|
857
|
+
def self.inner_class_types
|
|
858
|
+
@inner_class_types = {}
|
|
859
|
+
end
|
|
860
|
+
|
|
861
|
+
def self.field_remappings
|
|
862
|
+
@field_remappings = {}
|
|
863
|
+
end
|
|
864
|
+
end
|
|
865
|
+
|
|
866
|
+
class Treasury < Stripe::StripeObject
|
|
867
|
+
class TosAcceptance < Stripe::StripeObject
|
|
868
|
+
# The Unix timestamp marking when the account representative accepted the service agreement.
|
|
869
|
+
attr_reader :date
|
|
870
|
+
# The IP address from which the account representative accepted the service agreement.
|
|
871
|
+
attr_reader :ip
|
|
872
|
+
# The user agent of the browser from which the account representative accepted the service agreement.
|
|
873
|
+
attr_reader :user_agent
|
|
874
|
+
|
|
875
|
+
def self.inner_class_types
|
|
876
|
+
@inner_class_types = {}
|
|
877
|
+
end
|
|
878
|
+
|
|
879
|
+
def self.field_remappings
|
|
880
|
+
@field_remappings = {}
|
|
881
|
+
end
|
|
882
|
+
end
|
|
883
|
+
# Attribute for field tos_acceptance
|
|
884
|
+
attr_reader :tos_acceptance
|
|
885
|
+
|
|
886
|
+
def self.inner_class_types
|
|
887
|
+
@inner_class_types = { tos_acceptance: TosAcceptance }
|
|
888
|
+
end
|
|
889
|
+
|
|
890
|
+
def self.field_remappings
|
|
891
|
+
@field_remappings = {}
|
|
892
|
+
end
|
|
893
|
+
end
|
|
894
|
+
# Attribute for field bacs_debit_payments
|
|
895
|
+
attr_reader :bacs_debit_payments
|
|
896
|
+
# Attribute for field branding
|
|
897
|
+
attr_reader :branding
|
|
898
|
+
# Attribute for field card_issuing
|
|
899
|
+
attr_reader :card_issuing
|
|
900
|
+
# Attribute for field card_payments
|
|
901
|
+
attr_reader :card_payments
|
|
902
|
+
# Attribute for field dashboard
|
|
903
|
+
attr_reader :dashboard
|
|
904
|
+
# Attribute for field invoices
|
|
905
|
+
attr_reader :invoices
|
|
906
|
+
# Attribute for field payments
|
|
907
|
+
attr_reader :payments
|
|
908
|
+
# Attribute for field payouts
|
|
909
|
+
attr_reader :payouts
|
|
910
|
+
# Attribute for field sepa_debit_payments
|
|
911
|
+
attr_reader :sepa_debit_payments
|
|
912
|
+
# Attribute for field treasury
|
|
913
|
+
attr_reader :treasury
|
|
914
|
+
|
|
915
|
+
def self.inner_class_types
|
|
916
|
+
@inner_class_types = {
|
|
917
|
+
bacs_debit_payments: BacsDebitPayments,
|
|
918
|
+
branding: Branding,
|
|
919
|
+
card_issuing: CardIssuing,
|
|
920
|
+
card_payments: CardPayments,
|
|
921
|
+
dashboard: Dashboard,
|
|
922
|
+
invoices: Invoices,
|
|
923
|
+
payments: Payments,
|
|
924
|
+
payouts: Payouts,
|
|
925
|
+
sepa_debit_payments: SepaDebitPayments,
|
|
926
|
+
treasury: Treasury,
|
|
927
|
+
}
|
|
928
|
+
end
|
|
929
|
+
|
|
930
|
+
def self.field_remappings
|
|
931
|
+
@field_remappings = {}
|
|
932
|
+
end
|
|
933
|
+
end
|
|
934
|
+
|
|
935
|
+
class TosAcceptance < Stripe::StripeObject
|
|
936
|
+
# The Unix timestamp marking when the account representative accepted their service agreement
|
|
937
|
+
attr_reader :date
|
|
938
|
+
# The IP address from which the account representative accepted their service agreement
|
|
939
|
+
attr_reader :ip
|
|
940
|
+
# The user's service agreement type
|
|
941
|
+
attr_reader :service_agreement
|
|
942
|
+
# The user agent of the browser from which the account representative accepted their service agreement
|
|
943
|
+
attr_reader :user_agent
|
|
944
|
+
|
|
945
|
+
def self.inner_class_types
|
|
946
|
+
@inner_class_types = {}
|
|
947
|
+
end
|
|
948
|
+
|
|
949
|
+
def self.field_remappings
|
|
950
|
+
@field_remappings = {}
|
|
951
|
+
end
|
|
952
|
+
end
|
|
953
|
+
# Business information about the account.
|
|
954
|
+
attr_reader :business_profile
|
|
955
|
+
# The business type.
|
|
956
|
+
attr_reader :business_type
|
|
957
|
+
# Attribute for field capabilities
|
|
958
|
+
attr_reader :capabilities
|
|
959
|
+
# Whether the account can process charges.
|
|
960
|
+
attr_reader :charges_enabled
|
|
961
|
+
# Attribute for field company
|
|
962
|
+
attr_reader :company
|
|
963
|
+
# Attribute for field controller
|
|
964
|
+
attr_reader :controller
|
|
965
|
+
# The account's country.
|
|
966
|
+
attr_reader :country
|
|
967
|
+
# Time at which the account was connected. Measured in seconds since the Unix epoch.
|
|
968
|
+
attr_reader :created
|
|
969
|
+
# 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).
|
|
970
|
+
attr_reader :default_currency
|
|
971
|
+
# 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.
|
|
972
|
+
attr_reader :details_submitted
|
|
973
|
+
# 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.
|
|
974
|
+
attr_reader :email
|
|
975
|
+
# 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.
|
|
976
|
+
attr_reader :external_accounts
|
|
977
|
+
# Attribute for field future_requirements
|
|
978
|
+
attr_reader :future_requirements
|
|
979
|
+
# The groups associated with the account.
|
|
980
|
+
attr_reader :groups
|
|
981
|
+
# Unique identifier for the object.
|
|
982
|
+
attr_reader :id
|
|
983
|
+
# This is an object representing a person associated with a Stripe account.
|
|
984
|
+
#
|
|
985
|
+
# 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.
|
|
986
|
+
#
|
|
987
|
+
# 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).
|
|
988
|
+
attr_reader :individual
|
|
989
|
+
# 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.
|
|
990
|
+
attr_reader :metadata
|
|
991
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
992
|
+
attr_reader :object
|
|
993
|
+
# Whether the funds in this account can be paid out.
|
|
994
|
+
attr_reader :payouts_enabled
|
|
995
|
+
# Attribute for field requirements
|
|
996
|
+
attr_reader :requirements
|
|
997
|
+
# Options for customizing how the account functions within Stripe.
|
|
998
|
+
attr_reader :settings
|
|
999
|
+
# Attribute for field tos_acceptance
|
|
1000
|
+
attr_reader :tos_acceptance
|
|
1001
|
+
# The Stripe account type. Can be `standard`, `express`, `custom`, or `none`.
|
|
1002
|
+
attr_reader :type
|
|
1003
|
+
# Always true for a deleted object
|
|
1004
|
+
attr_reader :deleted
|
|
1005
|
+
|
|
1006
|
+
# With [Connect](https://docs.stripe.com/docs/connect), you can create Stripe accounts for your users.
|
|
38
1007
|
# To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).
|
|
39
1008
|
#
|
|
40
|
-
# If you've already collected information for your connected accounts, you [can prefill that information](https://stripe.com/docs/connect/best-practices#onboarding) when
|
|
1009
|
+
# If you've already collected information for your connected accounts, you [can prefill that information](https://docs.stripe.com/docs/connect/best-practices#onboarding) when
|
|
41
1010
|
# creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding.
|
|
42
1011
|
# You can prefill any information on the account.
|
|
43
1012
|
def self.create(params = {}, opts = {})
|
|
44
1013
|
request_stripe_object(method: :post, path: "/v1/accounts", params: params, opts: opts)
|
|
45
1014
|
end
|
|
46
1015
|
|
|
47
|
-
# With [Connect](https://stripe.com/connect), you can delete accounts you manage.
|
|
1016
|
+
# With [Connect](https://docs.stripe.com/connect), you can delete accounts you manage.
|
|
48
1017
|
#
|
|
49
1018
|
# Test-mode accounts can be deleted at any time.
|
|
50
1019
|
#
|
|
51
|
-
# Live-mode accounts
|
|
1020
|
+
# Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
|
|
52
1021
|
#
|
|
53
1022
|
# 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
1023
|
def self.delete(account, params = {}, opts = {})
|
|
@@ -60,11 +1029,11 @@ module Stripe
|
|
|
60
1029
|
)
|
|
61
1030
|
end
|
|
62
1031
|
|
|
63
|
-
# With [Connect](https://stripe.com/connect), you can delete accounts you manage.
|
|
1032
|
+
# With [Connect](https://docs.stripe.com/connect), you can delete accounts you manage.
|
|
64
1033
|
#
|
|
65
1034
|
# Test-mode accounts can be deleted at any time.
|
|
66
1035
|
#
|
|
67
|
-
# Live-mode accounts
|
|
1036
|
+
# Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
|
|
68
1037
|
#
|
|
69
1038
|
# 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
1039
|
def delete(params = {}, opts = {})
|
|
@@ -76,7 +1045,7 @@ module Stripe
|
|
|
76
1045
|
)
|
|
77
1046
|
end
|
|
78
1047
|
|
|
79
|
-
# 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.
|
|
1048
|
+
# Returns a list of accounts connected to your platform via [Connect](https://docs.stripe.com/docs/connect). If you're not a platform, the list is empty.
|
|
80
1049
|
def self.list(params = {}, opts = {})
|
|
81
1050
|
request_stripe_object(method: :get, path: "/v1/accounts", params: params, opts: opts)
|
|
82
1051
|
end
|
|
@@ -101,7 +1070,7 @@ module Stripe
|
|
|
101
1070
|
)
|
|
102
1071
|
end
|
|
103
1072
|
|
|
104
|
-
# With [Connect](https://stripe.com/connect), you can reject accounts that you have flagged as suspicious.
|
|
1073
|
+
# With [Connect](https://docs.stripe.com/connect), you can reject accounts that you have flagged as suspicious.
|
|
105
1074
|
#
|
|
106
1075
|
# Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero.
|
|
107
1076
|
def reject(params = {}, opts = {})
|
|
@@ -113,7 +1082,7 @@ module Stripe
|
|
|
113
1082
|
)
|
|
114
1083
|
end
|
|
115
1084
|
|
|
116
|
-
# With [Connect](https://stripe.com/connect), you can reject accounts that you have flagged as suspicious.
|
|
1085
|
+
# With [Connect](https://docs.stripe.com/connect), you can reject accounts that you have flagged as suspicious.
|
|
117
1086
|
#
|
|
118
1087
|
# Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero.
|
|
119
1088
|
def self.reject(account, params = {}, opts = {})
|
|
@@ -125,19 +1094,19 @@ module Stripe
|
|
|
125
1094
|
)
|
|
126
1095
|
end
|
|
127
1096
|
|
|
128
|
-
# Updates a [connected account](https://stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
|
|
1097
|
+
# Updates a [connected account](https://docs.stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
|
|
129
1098
|
# left unchanged.
|
|
130
1099
|
#
|
|
131
|
-
# For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
|
1100
|
+
# For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
|
132
1101
|
# is application, which includes Custom accounts, you can update any information on the account.
|
|
133
1102
|
#
|
|
134
|
-
# For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
|
1103
|
+
# For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
|
135
1104
|
# is stripe, which includes Standard and Express accounts, you can update all information until you create
|
|
136
|
-
# an [Account Link or <a href="/api/account_sessions">Account Session](https://stripe.com/api/account_links) to start Connect onboarding,
|
|
1105
|
+
# an [Account Link or <a href="/api/account_sessions">Account Session](https://docs.stripe.com/api/account_links) to start Connect onboarding,
|
|
137
1106
|
# after which some properties can no longer be updated.
|
|
138
1107
|
#
|
|
139
1108
|
# To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our
|
|
140
|
-
# [Connect](https://stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
|
|
1109
|
+
# [Connect](https://docs.stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
|
|
141
1110
|
def self.update(account, params = {}, opts = {})
|
|
142
1111
|
request_stripe_object(
|
|
143
1112
|
method: :post,
|
|
@@ -170,7 +1139,7 @@ module Stripe
|
|
|
170
1139
|
opts = id
|
|
171
1140
|
id = nil
|
|
172
1141
|
end
|
|
173
|
-
super
|
|
1142
|
+
super
|
|
174
1143
|
end
|
|
175
1144
|
|
|
176
1145
|
# We are not adding a helper for capabilities here as the Account object
|
|
@@ -210,7 +1179,7 @@ module Stripe
|
|
|
210
1179
|
entity_update[:additional_owners] =
|
|
211
1180
|
serialize_additional_owners(entity, owners)
|
|
212
1181
|
end
|
|
213
|
-
if (individual = @values[:individual]) &&
|
|
1182
|
+
if (individual = @values[:individual]) && individual.is_a?(Person) && !update_hash.key?(:individual)
|
|
214
1183
|
update_hash[:individual] = individual.serialize_params(options)
|
|
215
1184
|
end
|
|
216
1185
|
update_hash
|
|
@@ -270,5 +1239,23 @@ module Stripe
|
|
|
270
1239
|
end
|
|
271
1240
|
update_hash
|
|
272
1241
|
end
|
|
1242
|
+
|
|
1243
|
+
def self.inner_class_types
|
|
1244
|
+
@inner_class_types = {
|
|
1245
|
+
business_profile: BusinessProfile,
|
|
1246
|
+
capabilities: Capabilities,
|
|
1247
|
+
company: Company,
|
|
1248
|
+
controller: Controller,
|
|
1249
|
+
future_requirements: FutureRequirements,
|
|
1250
|
+
groups: Groups,
|
|
1251
|
+
requirements: Requirements,
|
|
1252
|
+
settings: Settings,
|
|
1253
|
+
tos_acceptance: TosAcceptance,
|
|
1254
|
+
}
|
|
1255
|
+
end
|
|
1256
|
+
|
|
1257
|
+
def self.field_remappings
|
|
1258
|
+
@field_remappings = {}
|
|
1259
|
+
end
|
|
273
1260
|
end
|
|
274
1261
|
end
|