stripe 20.1.0 → 20.2.0.pre.beta.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_requestor.rb +4 -0
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/errors.rb +6 -0
- data/lib/stripe/event_types.rb +193 -0
- data/lib/stripe/events/unknown_event_notification.rb +1 -0
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_approved_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_completed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validating_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
- data/lib/stripe/events/v2_data_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_query_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_query_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_query_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +75 -0
- data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +44 -0
- data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_under_review_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
- data/lib/stripe/events/v2_signals_account_evaluation_complete_event.rb +44 -0
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +44 -0
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_event.rb +44 -0
- data/lib/stripe/object_types.rb +53 -0
- data/lib/stripe/params/account_create_params.rb +299 -1
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_session_create_params.rb +191 -0
- data/lib/stripe/params/account_update_params.rb +261 -0
- data/lib/stripe/params/balance_settings_update_params.rb +9 -1
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
- data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +1646 -0
- data/lib/stripe/params/charge_update_params.rb +1646 -0
- data/lib/stripe/params/checkout/session_create_params.rb +87 -3
- data/lib/stripe/params/checkout/session_update_params.rb +161 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +92 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/customer_session_create_params.rb +32 -1
- data/lib/stripe/params/external_account_create_params.rb +134 -0
- data/lib/stripe/params/external_account_delete_params.rb +6 -0
- data/lib/stripe/params/external_account_list_params.rb +25 -0
- data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/external_account_update_params.rb +91 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +38 -1
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +64 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +772 -9
- data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
- data/lib/stripe/params/invoice_item_create_params.rb +33 -1
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +64 -2
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/cardholder_update_params.rb +4 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
- data/lib/stripe/params/mandate_list_params.rb +39 -0
- data/lib/stripe/params/margin_create_params.rb +25 -0
- data/lib/stripe/params/margin_list_params.rb +25 -0
- data/lib/stripe/params/margin_retrieve_params.rb +13 -0
- data/lib/stripe/params/margin_update_params.rb +22 -0
- data/lib/stripe/params/order_create_params.rb +2083 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +2087 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1643 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +3038 -85
- data/lib/stripe/params/payment_intent_create_params.rb +3050 -97
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +297 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +37 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3039 -55
- data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
- data/lib/stripe/params/payment_method_create_params.rb +88 -0
- data/lib/stripe/params/payment_plan_create_params.rb +128 -0
- data/lib/stripe/params/payment_plan_list_params.rb +25 -0
- data/lib/stripe/params/payment_plan_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_plan_update_params.rb +105 -0
- data/lib/stripe/params/price_update_params.rb +19 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/quote_create_params.rb +809 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +4 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +817 -4
- data/lib/stripe/params/radar/billing_evaluation_create_params.rb +231 -0
- data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/plan_list_params.rb +37 -0
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/release_list_params.rb +41 -0
- data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +122 -3
- data/lib/stripe/params/setup_intent_create_params.rb +122 -3
- data/lib/stripe/params/setup_intent_update_params.rb +122 -3
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +71 -0
- data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
- data/lib/stripe/params/subscription_create_params.rb +133 -6
- data/lib/stripe/params/subscription_item_create_params.rb +50 -3
- data/lib/stripe/params/subscription_item_update_params.rb +33 -2
- data/lib/stripe/params/subscription_schedule_amend_params.rb +578 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +167 -5
- data/lib/stripe/params/subscription_update_params.rb +116 -5
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_create_params.rb +13 -1
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +92 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/transfer_create_params.rb +4 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +19 -0
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +257 -0
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +263 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +392 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +29 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +376 -4
- data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/approval_request_list_params.rb +47 -0
- data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/approval_request_update_params.rb +17 -0
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +53 -0
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +21 -0
- data/lib/stripe/params/v2/data/query_run_create_params.rb +50 -0
- data/lib/stripe/params/v2/data/query_run_retrieve_params.rb +23 -0
- data/lib/stripe/params/v2/data/report_list_params.rb +23 -0
- data/lib/stripe/params/v2/data/report_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/data/report_run_create_params.rb +48 -0
- data/lib/stripe/params/v2/data/report_run_retrieve_params.rb +23 -0
- data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/data/schema_list_params.rb +26 -0
- data/lib/stripe/params/v2/data/schema_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
- data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
- data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
- data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/activity_log_list_params.rb +23 -0
- data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +30 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +35 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +21 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +113 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +40 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +112 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_disable_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/test_helpers/financial_address_generate_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/network/business_profile_me_params.rb +10 -0
- data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_activity_create_params.rb +200 -0
- data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +192 -0
- data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
- data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
- data/lib/stripe/params.rb +364 -0
- data/lib/stripe/resources/account.rb +176 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/balance_settings.rb +4 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +4 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
- data/lib/stripe/resources/capital/financing_offer.rb +144 -0
- data/lib/stripe/resources/capital/financing_summary.rb +82 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +18 -1
- data/lib/stripe/resources/charge.rb +227 -1
- data/lib/stripe/resources/checkout/session.rb +91 -3
- data/lib/stripe/resources/confirmation_token.rb +131 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer.rb +16 -0
- data/lib/stripe/resources/customer_session.rb +36 -0
- data/lib/stripe/resources/dispute.rb +18 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +45 -1
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/authorization.rb +24 -1
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +92 -0
- data/lib/stripe/resources/fx_quote.rb +149 -0
- data/lib/stripe/resources/invoice.rb +106 -1
- data/lib/stripe/resources/invoice_item.rb +2 -0
- data/lib/stripe/resources/invoice_line_item.rb +40 -0
- data/lib/stripe/resources/issuing/authorization.rb +16 -0
- data/lib/stripe/resources/issuing/card.rb +16 -0
- data/lib/stripe/resources/issuing/cardholder.rb +16 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute.rb +16 -1
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +18 -0
- data/lib/stripe/resources/line_item.rb +42 -0
- data/lib/stripe/resources/mandate.rb +12 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +927 -0
- data/lib/stripe/resources/payment_attempt_record.rb +177 -1
- data/lib/stripe/resources/payment_intent.rb +1588 -10
- data/lib/stripe/resources/payment_method.rb +151 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -0
- data/lib/stripe/resources/payment_plan.rb +213 -0
- data/lib/stripe/resources/payment_record.rb +177 -1
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +189 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/quote.rb +569 -2
- data/lib/stripe/resources/quote_line.rb +525 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1241 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +968 -0
- data/lib/stripe/resources/radar/billing_evaluation.rb +281 -0
- data/lib/stripe/resources/radar/value_list_item.rb +15 -1
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.rb +7 -0
- data/lib/stripe/resources/reserve/plan.rb +7 -0
- data/lib/stripe/resources/reserve/release.rb +12 -0
- data/lib/stripe/resources/setup_attempt.rb +35 -0
- data/lib/stripe/resources/setup_intent.rb +38 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +681 -0
- data/lib/stripe/resources/shared_payment/issued_token.rb +310 -0
- data/lib/stripe/resources/source.rb +54 -0
- data/lib/stripe/resources/subscription.rb +73 -0
- data/lib/stripe/resources/subscription_item.rb +22 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax/registration.rb +16 -1
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/token.rb +15 -1
- data/lib/stripe/resources/transfer.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +91 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +710 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
- data/lib/stripe/resources/v2/billing/profile.rb +47 -0
- data/lib/stripe/resources/v2/core/account.rb +802 -2
- data/lib/stripe/resources/v2/core/approval_request.rb +395 -0
- data/lib/stripe/resources/v2/core/batch_job.rb +536 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +91 -1
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +26 -1
- data/lib/stripe/resources/v2/data/query_run.rb +255 -0
- data/lib/stripe/resources/v2/data/report.rb +104 -0
- data/lib/stripe/resources/v2/data/report_run.rb +246 -0
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +142 -0
- data/lib/stripe/resources/v2/data/schema.rb +121 -0
- data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
- data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
- data/lib/stripe/resources/v2/iam/activity_log.rb +368 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +4 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +50 -1
- data/lib/stripe/resources/v2/money_management/financial_address_generated_microdeposits.rb +33 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +63 -1
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +255 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +31 -1
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +260 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +50 -1
- data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +137 -0
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +2 -0
- data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
- data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
- data/lib/stripe/resources/v2/signals/account_activity.rb +252 -0
- data/lib/stripe/resources/v2/signals/account_evaluation.rb +249 -0
- data/lib/stripe/resources/v2/signals/account_signal.rb +184 -0
- data/lib/stripe/resources.rb +341 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/account_service.rb +15 -0
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
- data/lib/stripe/services/billing/analytics_service.rb +15 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/coupon_service.rb +14 -0
- data/lib/stripe/services/customer_service.rb +15 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/authorization_service.rb +19 -0
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +3 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/invoice_service.rb +11 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +5 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_service.rb +53 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/payment_plan_service.rb +50 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/promotion_code_service.rb +29 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/radar/billing_evaluation_service.rb +19 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +30 -0
- data/lib/stripe/services/reserve/release_service.rb +30 -0
- data/lib/stripe/services/reserve_service.rb +15 -0
- data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
- data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
- data/lib/stripe/services/shared_payment_service.rb +14 -0
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +45 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +11 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +69 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing_service.rb +5 -1
- data/lib/stripe/services/v2/core/approval_request_service.rb +58 -0
- data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
- data/lib/stripe/services/v2/core_service.rb +3 -1
- data/lib/stripe/services/v2/data/query_run_service.rb +34 -0
- data/lib/stripe/services/v2/data/report_run_service.rb +36 -0
- data/lib/stripe/services/v2/data/report_service.rb +34 -0
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
- data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
- data/lib/stripe/services/v2/data/schema_service.rb +32 -0
- data/lib/stripe/services/v2/data_service.rb +19 -0
- data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
- data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
- data/lib/stripe/services/v2/extend_service.rb +16 -0
- data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
- data/lib/stripe/services/v2/iam_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +27 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +35 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +61 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +13 -0
- data/lib/stripe/services/v2/money_management_service.rb +5 -1
- data/lib/stripe/services/v2/network/business_profile_service.rb +32 -0
- data/lib/stripe/services/v2/network_service.rb +15 -0
- data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
- data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
- data/lib/stripe/services/v2/signals/account_activity_service.rb +43 -0
- data/lib/stripe/services/v2/signals/account_evaluation_service.rb +32 -0
- data/lib/stripe/services/v2/signals/account_signal_service.rb +32 -0
- data/lib/stripe/services/v2/signals_service.rb +17 -0
- data/lib/stripe/services/v2_services.rb +7 -1
- data/lib/stripe/services.rb +181 -0
- data/lib/stripe/stripe_client.rb +4 -1
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_event_notification_handler.rb +216 -0
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +2 -0
- data/rbi/stripe.rbi +133319 -66595
- metadata +331 -3
|
@@ -180,8 +180,18 @@ module Stripe
|
|
|
180
180
|
end
|
|
181
181
|
|
|
182
182
|
class Giropay < ::Stripe::RequestParams; end
|
|
183
|
+
class Gopay < ::Stripe::RequestParams; end
|
|
183
184
|
class Grabpay < ::Stripe::RequestParams; end
|
|
184
185
|
|
|
186
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
187
|
+
# Bank where the account is held.
|
|
188
|
+
attr_accessor :bank
|
|
189
|
+
|
|
190
|
+
def initialize(bank: nil)
|
|
191
|
+
@bank = bank
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
|
|
185
195
|
class Ideal < ::Stripe::RequestParams
|
|
186
196
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
187
197
|
attr_accessor :bank
|
|
@@ -298,6 +308,7 @@ module Stripe
|
|
|
298
308
|
|
|
299
309
|
class Pix < ::Stripe::RequestParams; end
|
|
300
310
|
class Promptpay < ::Stripe::RequestParams; end
|
|
311
|
+
class Qris < ::Stripe::RequestParams; end
|
|
301
312
|
|
|
302
313
|
class RadarOptions < ::Stripe::RequestParams
|
|
303
314
|
# A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
@@ -308,6 +319,29 @@ module Stripe
|
|
|
308
319
|
end
|
|
309
320
|
end
|
|
310
321
|
|
|
322
|
+
class Rechnung < ::Stripe::RequestParams
|
|
323
|
+
class Dob < ::Stripe::RequestParams
|
|
324
|
+
# The day of birth, between 1 and 31.
|
|
325
|
+
attr_accessor :day
|
|
326
|
+
# The month of birth, between 1 and 12.
|
|
327
|
+
attr_accessor :month
|
|
328
|
+
# The four-digit year of birth.
|
|
329
|
+
attr_accessor :year
|
|
330
|
+
|
|
331
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
332
|
+
@day = day
|
|
333
|
+
@month = month
|
|
334
|
+
@year = year
|
|
335
|
+
end
|
|
336
|
+
end
|
|
337
|
+
# Customer's date of birth
|
|
338
|
+
attr_accessor :dob
|
|
339
|
+
|
|
340
|
+
def initialize(dob: nil)
|
|
341
|
+
@dob = dob
|
|
342
|
+
end
|
|
343
|
+
end
|
|
344
|
+
|
|
311
345
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
312
346
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
313
347
|
class Satispay < ::Stripe::RequestParams; end
|
|
@@ -323,6 +357,7 @@ module Stripe
|
|
|
323
357
|
end
|
|
324
358
|
|
|
325
359
|
class Sequra < ::Stripe::RequestParams; end
|
|
360
|
+
class Shopeepay < ::Stripe::RequestParams; end
|
|
326
361
|
|
|
327
362
|
class Sofort < ::Stripe::RequestParams
|
|
328
363
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -333,6 +368,15 @@ module Stripe
|
|
|
333
368
|
end
|
|
334
369
|
end
|
|
335
370
|
|
|
371
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
372
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
373
|
+
attr_accessor :account
|
|
374
|
+
|
|
375
|
+
def initialize(account: nil)
|
|
376
|
+
@account = account
|
|
377
|
+
end
|
|
378
|
+
end
|
|
379
|
+
|
|
336
380
|
class Sunbit < ::Stripe::RequestParams; end
|
|
337
381
|
class Swish < ::Stripe::RequestParams; end
|
|
338
382
|
class Twint < ::Stripe::RequestParams; end
|
|
@@ -364,12 +408,25 @@ module Stripe
|
|
|
364
408
|
end
|
|
365
409
|
|
|
366
410
|
class UsBankAccount < ::Stripe::RequestParams
|
|
411
|
+
class ExternalToken < ::Stripe::RequestParams
|
|
412
|
+
# The Plaid processor token to use for this bank account.
|
|
413
|
+
attr_accessor :plaid_processor_token
|
|
414
|
+
# The type of external token.
|
|
415
|
+
attr_accessor :type
|
|
416
|
+
|
|
417
|
+
def initialize(plaid_processor_token: nil, type: nil)
|
|
418
|
+
@plaid_processor_token = plaid_processor_token
|
|
419
|
+
@type = type
|
|
420
|
+
end
|
|
421
|
+
end
|
|
367
422
|
# Account holder type: individual or company.
|
|
368
423
|
attr_accessor :account_holder_type
|
|
369
424
|
# Account number of the bank account.
|
|
370
425
|
attr_accessor :account_number
|
|
371
426
|
# Account type: checkings or savings. Defaults to checking if omitted.
|
|
372
427
|
attr_accessor :account_type
|
|
428
|
+
# An external token used to create a payment method.
|
|
429
|
+
attr_accessor :external_token
|
|
373
430
|
# The ID of a Financial Connections Account to use as a payment method.
|
|
374
431
|
attr_accessor :financial_connections_account
|
|
375
432
|
# Routing number of the bank account.
|
|
@@ -379,18 +436,21 @@ module Stripe
|
|
|
379
436
|
account_holder_type: nil,
|
|
380
437
|
account_number: nil,
|
|
381
438
|
account_type: nil,
|
|
439
|
+
external_token: nil,
|
|
382
440
|
financial_connections_account: nil,
|
|
383
441
|
routing_number: nil
|
|
384
442
|
)
|
|
385
443
|
@account_holder_type = account_holder_type
|
|
386
444
|
@account_number = account_number
|
|
387
445
|
@account_type = account_type
|
|
446
|
+
@external_token = external_token
|
|
388
447
|
@financial_connections_account = financial_connections_account
|
|
389
448
|
@routing_number = routing_number
|
|
390
449
|
end
|
|
391
450
|
end
|
|
392
451
|
|
|
393
452
|
class WechatPay < ::Stripe::RequestParams; end
|
|
453
|
+
class Wero < ::Stripe::RequestParams; end
|
|
394
454
|
class Zip < ::Stripe::RequestParams; end
|
|
395
455
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
396
456
|
attr_accessor :acss_debit
|
|
@@ -434,8 +494,12 @@ module Stripe
|
|
|
434
494
|
attr_accessor :fpx
|
|
435
495
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
436
496
|
attr_accessor :giropay
|
|
497
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
498
|
+
attr_accessor :gopay
|
|
437
499
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
438
500
|
attr_accessor :grabpay
|
|
501
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
502
|
+
attr_accessor :id_bank_transfer
|
|
439
503
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
440
504
|
attr_accessor :ideal
|
|
441
505
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -482,8 +546,12 @@ module Stripe
|
|
|
482
546
|
attr_accessor :pix
|
|
483
547
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
484
548
|
attr_accessor :promptpay
|
|
549
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
550
|
+
attr_accessor :qris
|
|
485
551
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
486
552
|
attr_accessor :radar_options
|
|
553
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
554
|
+
attr_accessor :rechnung
|
|
487
555
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
488
556
|
attr_accessor :revolut_pay
|
|
489
557
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -496,8 +564,14 @@ module Stripe
|
|
|
496
564
|
attr_accessor :sepa_debit
|
|
497
565
|
# If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method.
|
|
498
566
|
attr_accessor :sequra
|
|
567
|
+
# ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
|
|
568
|
+
attr_accessor :shared_payment_granted_token
|
|
569
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
570
|
+
attr_accessor :shopeepay
|
|
499
571
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
500
572
|
attr_accessor :sofort
|
|
573
|
+
# This hash contains details about the Stripe balance payment method.
|
|
574
|
+
attr_accessor :stripe_balance
|
|
501
575
|
# If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
|
|
502
576
|
attr_accessor :sunbit
|
|
503
577
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
@@ -512,6 +586,8 @@ module Stripe
|
|
|
512
586
|
attr_accessor :us_bank_account
|
|
513
587
|
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
|
514
588
|
attr_accessor :wechat_pay
|
|
589
|
+
# If this is a Wero PaymentMethod, this hash contains details about the Wero payment method.
|
|
590
|
+
attr_accessor :wero
|
|
515
591
|
# If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
|
|
516
592
|
attr_accessor :zip
|
|
517
593
|
|
|
@@ -537,7 +613,9 @@ module Stripe
|
|
|
537
613
|
eps: nil,
|
|
538
614
|
fpx: nil,
|
|
539
615
|
giropay: nil,
|
|
616
|
+
gopay: nil,
|
|
540
617
|
grabpay: nil,
|
|
618
|
+
id_bank_transfer: nil,
|
|
541
619
|
ideal: nil,
|
|
542
620
|
interac_present: nil,
|
|
543
621
|
kakao_pay: nil,
|
|
@@ -561,14 +639,19 @@ module Stripe
|
|
|
561
639
|
payto: nil,
|
|
562
640
|
pix: nil,
|
|
563
641
|
promptpay: nil,
|
|
642
|
+
qris: nil,
|
|
564
643
|
radar_options: nil,
|
|
644
|
+
rechnung: nil,
|
|
565
645
|
revolut_pay: nil,
|
|
566
646
|
samsung_pay: nil,
|
|
567
647
|
satispay: nil,
|
|
568
648
|
scalapay: nil,
|
|
569
649
|
sepa_debit: nil,
|
|
570
650
|
sequra: nil,
|
|
651
|
+
shared_payment_granted_token: nil,
|
|
652
|
+
shopeepay: nil,
|
|
571
653
|
sofort: nil,
|
|
654
|
+
stripe_balance: nil,
|
|
572
655
|
sunbit: nil,
|
|
573
656
|
swish: nil,
|
|
574
657
|
twint: nil,
|
|
@@ -576,6 +659,7 @@ module Stripe
|
|
|
576
659
|
upi: nil,
|
|
577
660
|
us_bank_account: nil,
|
|
578
661
|
wechat_pay: nil,
|
|
662
|
+
wero: nil,
|
|
579
663
|
zip: nil
|
|
580
664
|
)
|
|
581
665
|
@acss_debit = acss_debit
|
|
@@ -599,7 +683,9 @@ module Stripe
|
|
|
599
683
|
@eps = eps
|
|
600
684
|
@fpx = fpx
|
|
601
685
|
@giropay = giropay
|
|
686
|
+
@gopay = gopay
|
|
602
687
|
@grabpay = grabpay
|
|
688
|
+
@id_bank_transfer = id_bank_transfer
|
|
603
689
|
@ideal = ideal
|
|
604
690
|
@interac_present = interac_present
|
|
605
691
|
@kakao_pay = kakao_pay
|
|
@@ -623,14 +709,19 @@ module Stripe
|
|
|
623
709
|
@payto = payto
|
|
624
710
|
@pix = pix
|
|
625
711
|
@promptpay = promptpay
|
|
712
|
+
@qris = qris
|
|
626
713
|
@radar_options = radar_options
|
|
714
|
+
@rechnung = rechnung
|
|
627
715
|
@revolut_pay = revolut_pay
|
|
628
716
|
@samsung_pay = samsung_pay
|
|
629
717
|
@satispay = satispay
|
|
630
718
|
@scalapay = scalapay
|
|
631
719
|
@sepa_debit = sepa_debit
|
|
632
720
|
@sequra = sequra
|
|
721
|
+
@shared_payment_granted_token = shared_payment_granted_token
|
|
722
|
+
@shopeepay = shopeepay
|
|
633
723
|
@sofort = sofort
|
|
724
|
+
@stripe_balance = stripe_balance
|
|
634
725
|
@sunbit = sunbit
|
|
635
726
|
@swish = swish
|
|
636
727
|
@twint = twint
|
|
@@ -638,6 +729,7 @@ module Stripe
|
|
|
638
729
|
@upi = upi
|
|
639
730
|
@us_bank_account = us_bank_account
|
|
640
731
|
@wechat_pay = wechat_pay
|
|
732
|
+
@wero = wero
|
|
641
733
|
@zip = zip
|
|
642
734
|
end
|
|
643
735
|
end
|
|
@@ -974,9 +1066,15 @@ module Stripe
|
|
|
974
1066
|
class Paypal < ::Stripe::RequestParams
|
|
975
1067
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
976
1068
|
attr_accessor :billing_agreement_id
|
|
1069
|
+
# Attribute for param field currency
|
|
1070
|
+
attr_accessor :currency
|
|
1071
|
+
# The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
|
1072
|
+
attr_accessor :subsellers
|
|
977
1073
|
|
|
978
|
-
def initialize(billing_agreement_id: nil)
|
|
1074
|
+
def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil)
|
|
979
1075
|
@billing_agreement_id = billing_agreement_id
|
|
1076
|
+
@currency = currency
|
|
1077
|
+
@subsellers = subsellers
|
|
980
1078
|
end
|
|
981
1079
|
end
|
|
982
1080
|
|
|
@@ -1121,13 +1219,27 @@ module Stripe
|
|
|
1121
1219
|
class Filters < ::Stripe::RequestParams
|
|
1122
1220
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1123
1221
|
attr_accessor :account_subcategories
|
|
1222
|
+
# ID of the institution to use to filter for selectable accounts.
|
|
1223
|
+
attr_accessor :institution
|
|
1124
1224
|
|
|
1125
|
-
def initialize(account_subcategories: nil)
|
|
1225
|
+
def initialize(account_subcategories: nil, institution: nil)
|
|
1126
1226
|
@account_subcategories = account_subcategories
|
|
1227
|
+
@institution = institution
|
|
1228
|
+
end
|
|
1229
|
+
end
|
|
1230
|
+
|
|
1231
|
+
class ManualEntry < ::Stripe::RequestParams
|
|
1232
|
+
# Settings for configuring manual entry of account details.
|
|
1233
|
+
attr_accessor :mode
|
|
1234
|
+
|
|
1235
|
+
def initialize(mode: nil)
|
|
1236
|
+
@mode = mode
|
|
1127
1237
|
end
|
|
1128
1238
|
end
|
|
1129
1239
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
1130
1240
|
attr_accessor :filters
|
|
1241
|
+
# Customize manual entry behavior
|
|
1242
|
+
attr_accessor :manual_entry
|
|
1131
1243
|
# The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
|
1132
1244
|
attr_accessor :permissions
|
|
1133
1245
|
# List of data features that you would like to retrieve upon account creation.
|
|
@@ -1135,8 +1247,15 @@ module Stripe
|
|
|
1135
1247
|
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
|
1136
1248
|
attr_accessor :return_url
|
|
1137
1249
|
|
|
1138
|
-
def initialize(
|
|
1250
|
+
def initialize(
|
|
1251
|
+
filters: nil,
|
|
1252
|
+
manual_entry: nil,
|
|
1253
|
+
permissions: nil,
|
|
1254
|
+
prefetch: nil,
|
|
1255
|
+
return_url: nil
|
|
1256
|
+
)
|
|
1139
1257
|
@filters = filters
|
|
1258
|
+
@manual_entry = manual_entry
|
|
1140
1259
|
@permissions = permissions
|
|
1141
1260
|
@prefetch = prefetch
|
|
1142
1261
|
@return_url = return_url
|
|
@@ -194,8 +194,18 @@ module Stripe
|
|
|
194
194
|
end
|
|
195
195
|
|
|
196
196
|
class Giropay < ::Stripe::RequestParams; end
|
|
197
|
+
class Gopay < ::Stripe::RequestParams; end
|
|
197
198
|
class Grabpay < ::Stripe::RequestParams; end
|
|
198
199
|
|
|
200
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
201
|
+
# Bank where the account is held.
|
|
202
|
+
attr_accessor :bank
|
|
203
|
+
|
|
204
|
+
def initialize(bank: nil)
|
|
205
|
+
@bank = bank
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
|
|
199
209
|
class Ideal < ::Stripe::RequestParams
|
|
200
210
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
201
211
|
attr_accessor :bank
|
|
@@ -312,6 +322,7 @@ module Stripe
|
|
|
312
322
|
|
|
313
323
|
class Pix < ::Stripe::RequestParams; end
|
|
314
324
|
class Promptpay < ::Stripe::RequestParams; end
|
|
325
|
+
class Qris < ::Stripe::RequestParams; end
|
|
315
326
|
|
|
316
327
|
class RadarOptions < ::Stripe::RequestParams
|
|
317
328
|
# A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
@@ -322,6 +333,29 @@ module Stripe
|
|
|
322
333
|
end
|
|
323
334
|
end
|
|
324
335
|
|
|
336
|
+
class Rechnung < ::Stripe::RequestParams
|
|
337
|
+
class Dob < ::Stripe::RequestParams
|
|
338
|
+
# The day of birth, between 1 and 31.
|
|
339
|
+
attr_accessor :day
|
|
340
|
+
# The month of birth, between 1 and 12.
|
|
341
|
+
attr_accessor :month
|
|
342
|
+
# The four-digit year of birth.
|
|
343
|
+
attr_accessor :year
|
|
344
|
+
|
|
345
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
346
|
+
@day = day
|
|
347
|
+
@month = month
|
|
348
|
+
@year = year
|
|
349
|
+
end
|
|
350
|
+
end
|
|
351
|
+
# Customer's date of birth
|
|
352
|
+
attr_accessor :dob
|
|
353
|
+
|
|
354
|
+
def initialize(dob: nil)
|
|
355
|
+
@dob = dob
|
|
356
|
+
end
|
|
357
|
+
end
|
|
358
|
+
|
|
325
359
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
326
360
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
327
361
|
class Satispay < ::Stripe::RequestParams; end
|
|
@@ -337,6 +371,7 @@ module Stripe
|
|
|
337
371
|
end
|
|
338
372
|
|
|
339
373
|
class Sequra < ::Stripe::RequestParams; end
|
|
374
|
+
class Shopeepay < ::Stripe::RequestParams; end
|
|
340
375
|
|
|
341
376
|
class Sofort < ::Stripe::RequestParams
|
|
342
377
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -347,6 +382,15 @@ module Stripe
|
|
|
347
382
|
end
|
|
348
383
|
end
|
|
349
384
|
|
|
385
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
386
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
387
|
+
attr_accessor :account
|
|
388
|
+
|
|
389
|
+
def initialize(account: nil)
|
|
390
|
+
@account = account
|
|
391
|
+
end
|
|
392
|
+
end
|
|
393
|
+
|
|
350
394
|
class Sunbit < ::Stripe::RequestParams; end
|
|
351
395
|
class Swish < ::Stripe::RequestParams; end
|
|
352
396
|
class Twint < ::Stripe::RequestParams; end
|
|
@@ -378,12 +422,25 @@ module Stripe
|
|
|
378
422
|
end
|
|
379
423
|
|
|
380
424
|
class UsBankAccount < ::Stripe::RequestParams
|
|
425
|
+
class ExternalToken < ::Stripe::RequestParams
|
|
426
|
+
# The Plaid processor token to use for this bank account.
|
|
427
|
+
attr_accessor :plaid_processor_token
|
|
428
|
+
# The type of external token.
|
|
429
|
+
attr_accessor :type
|
|
430
|
+
|
|
431
|
+
def initialize(plaid_processor_token: nil, type: nil)
|
|
432
|
+
@plaid_processor_token = plaid_processor_token
|
|
433
|
+
@type = type
|
|
434
|
+
end
|
|
435
|
+
end
|
|
381
436
|
# Account holder type: individual or company.
|
|
382
437
|
attr_accessor :account_holder_type
|
|
383
438
|
# Account number of the bank account.
|
|
384
439
|
attr_accessor :account_number
|
|
385
440
|
# Account type: checkings or savings. Defaults to checking if omitted.
|
|
386
441
|
attr_accessor :account_type
|
|
442
|
+
# An external token used to create a payment method.
|
|
443
|
+
attr_accessor :external_token
|
|
387
444
|
# The ID of a Financial Connections Account to use as a payment method.
|
|
388
445
|
attr_accessor :financial_connections_account
|
|
389
446
|
# Routing number of the bank account.
|
|
@@ -393,18 +450,21 @@ module Stripe
|
|
|
393
450
|
account_holder_type: nil,
|
|
394
451
|
account_number: nil,
|
|
395
452
|
account_type: nil,
|
|
453
|
+
external_token: nil,
|
|
396
454
|
financial_connections_account: nil,
|
|
397
455
|
routing_number: nil
|
|
398
456
|
)
|
|
399
457
|
@account_holder_type = account_holder_type
|
|
400
458
|
@account_number = account_number
|
|
401
459
|
@account_type = account_type
|
|
460
|
+
@external_token = external_token
|
|
402
461
|
@financial_connections_account = financial_connections_account
|
|
403
462
|
@routing_number = routing_number
|
|
404
463
|
end
|
|
405
464
|
end
|
|
406
465
|
|
|
407
466
|
class WechatPay < ::Stripe::RequestParams; end
|
|
467
|
+
class Wero < ::Stripe::RequestParams; end
|
|
408
468
|
class Zip < ::Stripe::RequestParams; end
|
|
409
469
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
410
470
|
attr_accessor :acss_debit
|
|
@@ -448,8 +508,12 @@ module Stripe
|
|
|
448
508
|
attr_accessor :fpx
|
|
449
509
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
450
510
|
attr_accessor :giropay
|
|
511
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
512
|
+
attr_accessor :gopay
|
|
451
513
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
452
514
|
attr_accessor :grabpay
|
|
515
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
516
|
+
attr_accessor :id_bank_transfer
|
|
453
517
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
454
518
|
attr_accessor :ideal
|
|
455
519
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -496,8 +560,12 @@ module Stripe
|
|
|
496
560
|
attr_accessor :pix
|
|
497
561
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
498
562
|
attr_accessor :promptpay
|
|
563
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
564
|
+
attr_accessor :qris
|
|
499
565
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
500
566
|
attr_accessor :radar_options
|
|
567
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
568
|
+
attr_accessor :rechnung
|
|
501
569
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
502
570
|
attr_accessor :revolut_pay
|
|
503
571
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -510,8 +578,14 @@ module Stripe
|
|
|
510
578
|
attr_accessor :sepa_debit
|
|
511
579
|
# If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method.
|
|
512
580
|
attr_accessor :sequra
|
|
581
|
+
# ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
|
|
582
|
+
attr_accessor :shared_payment_granted_token
|
|
583
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
584
|
+
attr_accessor :shopeepay
|
|
513
585
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
514
586
|
attr_accessor :sofort
|
|
587
|
+
# This hash contains details about the Stripe balance payment method.
|
|
588
|
+
attr_accessor :stripe_balance
|
|
515
589
|
# If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
|
|
516
590
|
attr_accessor :sunbit
|
|
517
591
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
@@ -526,6 +600,8 @@ module Stripe
|
|
|
526
600
|
attr_accessor :us_bank_account
|
|
527
601
|
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
|
528
602
|
attr_accessor :wechat_pay
|
|
603
|
+
# If this is a Wero PaymentMethod, this hash contains details about the Wero payment method.
|
|
604
|
+
attr_accessor :wero
|
|
529
605
|
# If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
|
|
530
606
|
attr_accessor :zip
|
|
531
607
|
|
|
@@ -551,7 +627,9 @@ module Stripe
|
|
|
551
627
|
eps: nil,
|
|
552
628
|
fpx: nil,
|
|
553
629
|
giropay: nil,
|
|
630
|
+
gopay: nil,
|
|
554
631
|
grabpay: nil,
|
|
632
|
+
id_bank_transfer: nil,
|
|
555
633
|
ideal: nil,
|
|
556
634
|
interac_present: nil,
|
|
557
635
|
kakao_pay: nil,
|
|
@@ -575,14 +653,19 @@ module Stripe
|
|
|
575
653
|
payto: nil,
|
|
576
654
|
pix: nil,
|
|
577
655
|
promptpay: nil,
|
|
656
|
+
qris: nil,
|
|
578
657
|
radar_options: nil,
|
|
658
|
+
rechnung: nil,
|
|
579
659
|
revolut_pay: nil,
|
|
580
660
|
samsung_pay: nil,
|
|
581
661
|
satispay: nil,
|
|
582
662
|
scalapay: nil,
|
|
583
663
|
sepa_debit: nil,
|
|
584
664
|
sequra: nil,
|
|
665
|
+
shared_payment_granted_token: nil,
|
|
666
|
+
shopeepay: nil,
|
|
585
667
|
sofort: nil,
|
|
668
|
+
stripe_balance: nil,
|
|
586
669
|
sunbit: nil,
|
|
587
670
|
swish: nil,
|
|
588
671
|
twint: nil,
|
|
@@ -590,6 +673,7 @@ module Stripe
|
|
|
590
673
|
upi: nil,
|
|
591
674
|
us_bank_account: nil,
|
|
592
675
|
wechat_pay: nil,
|
|
676
|
+
wero: nil,
|
|
593
677
|
zip: nil
|
|
594
678
|
)
|
|
595
679
|
@acss_debit = acss_debit
|
|
@@ -613,7 +697,9 @@ module Stripe
|
|
|
613
697
|
@eps = eps
|
|
614
698
|
@fpx = fpx
|
|
615
699
|
@giropay = giropay
|
|
700
|
+
@gopay = gopay
|
|
616
701
|
@grabpay = grabpay
|
|
702
|
+
@id_bank_transfer = id_bank_transfer
|
|
617
703
|
@ideal = ideal
|
|
618
704
|
@interac_present = interac_present
|
|
619
705
|
@kakao_pay = kakao_pay
|
|
@@ -637,14 +723,19 @@ module Stripe
|
|
|
637
723
|
@payto = payto
|
|
638
724
|
@pix = pix
|
|
639
725
|
@promptpay = promptpay
|
|
726
|
+
@qris = qris
|
|
640
727
|
@radar_options = radar_options
|
|
728
|
+
@rechnung = rechnung
|
|
641
729
|
@revolut_pay = revolut_pay
|
|
642
730
|
@samsung_pay = samsung_pay
|
|
643
731
|
@satispay = satispay
|
|
644
732
|
@scalapay = scalapay
|
|
645
733
|
@sepa_debit = sepa_debit
|
|
646
734
|
@sequra = sequra
|
|
735
|
+
@shared_payment_granted_token = shared_payment_granted_token
|
|
736
|
+
@shopeepay = shopeepay
|
|
647
737
|
@sofort = sofort
|
|
738
|
+
@stripe_balance = stripe_balance
|
|
648
739
|
@sunbit = sunbit
|
|
649
740
|
@swish = swish
|
|
650
741
|
@twint = twint
|
|
@@ -652,6 +743,7 @@ module Stripe
|
|
|
652
743
|
@upi = upi
|
|
653
744
|
@us_bank_account = us_bank_account
|
|
654
745
|
@wechat_pay = wechat_pay
|
|
746
|
+
@wero = wero
|
|
655
747
|
@zip = zip
|
|
656
748
|
end
|
|
657
749
|
end
|
|
@@ -988,9 +1080,15 @@ module Stripe
|
|
|
988
1080
|
class Paypal < ::Stripe::RequestParams
|
|
989
1081
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
990
1082
|
attr_accessor :billing_agreement_id
|
|
1083
|
+
# Attribute for param field currency
|
|
1084
|
+
attr_accessor :currency
|
|
1085
|
+
# The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
|
1086
|
+
attr_accessor :subsellers
|
|
991
1087
|
|
|
992
|
-
def initialize(billing_agreement_id: nil)
|
|
1088
|
+
def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil)
|
|
993
1089
|
@billing_agreement_id = billing_agreement_id
|
|
1090
|
+
@currency = currency
|
|
1091
|
+
@subsellers = subsellers
|
|
994
1092
|
end
|
|
995
1093
|
end
|
|
996
1094
|
|
|
@@ -1135,13 +1233,27 @@ module Stripe
|
|
|
1135
1233
|
class Filters < ::Stripe::RequestParams
|
|
1136
1234
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1137
1235
|
attr_accessor :account_subcategories
|
|
1236
|
+
# ID of the institution to use to filter for selectable accounts.
|
|
1237
|
+
attr_accessor :institution
|
|
1138
1238
|
|
|
1139
|
-
def initialize(account_subcategories: nil)
|
|
1239
|
+
def initialize(account_subcategories: nil, institution: nil)
|
|
1140
1240
|
@account_subcategories = account_subcategories
|
|
1241
|
+
@institution = institution
|
|
1242
|
+
end
|
|
1243
|
+
end
|
|
1244
|
+
|
|
1245
|
+
class ManualEntry < ::Stripe::RequestParams
|
|
1246
|
+
# Settings for configuring manual entry of account details.
|
|
1247
|
+
attr_accessor :mode
|
|
1248
|
+
|
|
1249
|
+
def initialize(mode: nil)
|
|
1250
|
+
@mode = mode
|
|
1141
1251
|
end
|
|
1142
1252
|
end
|
|
1143
1253
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
1144
1254
|
attr_accessor :filters
|
|
1255
|
+
# Customize manual entry behavior
|
|
1256
|
+
attr_accessor :manual_entry
|
|
1145
1257
|
# The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
|
1146
1258
|
attr_accessor :permissions
|
|
1147
1259
|
# List of data features that you would like to retrieve upon account creation.
|
|
@@ -1149,8 +1261,15 @@ module Stripe
|
|
|
1149
1261
|
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
|
1150
1262
|
attr_accessor :return_url
|
|
1151
1263
|
|
|
1152
|
-
def initialize(
|
|
1264
|
+
def initialize(
|
|
1265
|
+
filters: nil,
|
|
1266
|
+
manual_entry: nil,
|
|
1267
|
+
permissions: nil,
|
|
1268
|
+
prefetch: nil,
|
|
1269
|
+
return_url: nil
|
|
1270
|
+
)
|
|
1153
1271
|
@filters = filters
|
|
1272
|
+
@manual_entry = manual_entry
|
|
1154
1273
|
@permissions = permissions
|
|
1155
1274
|
@prefetch = prefetch
|
|
1156
1275
|
@return_url = return_url
|