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
|
@@ -146,6 +146,8 @@ module Stripe
|
|
|
146
146
|
attr_reader :app_distribution
|
|
147
147
|
# 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.
|
|
148
148
|
attr_reader :au_becs_debit_payments
|
|
149
|
+
# The status of the automatic_indirect_tax capability of the account.
|
|
150
|
+
attr_reader :automatic_indirect_tax
|
|
149
151
|
# The status of the Bacs Direct Debits payments capability of the account, or whether the account can directly process Bacs Direct Debits charges.
|
|
150
152
|
attr_reader :bacs_debit_payments
|
|
151
153
|
# The status of the Bancontact payments capability of the account, or whether the account can directly process Bancontact charges.
|
|
@@ -180,8 +182,14 @@ module Stripe
|
|
|
180
182
|
attr_reader :gb_bank_transfer_payments
|
|
181
183
|
# The status of the giropay payments capability of the account, or whether the account can directly process giropay charges.
|
|
182
184
|
attr_reader :giropay_payments
|
|
185
|
+
# The status of the Gopay capability of the account, or whether the account can directly process Gopay payments.
|
|
186
|
+
attr_reader :gopay_payments
|
|
183
187
|
# The status of the GrabPay payments capability of the account, or whether the account can directly process GrabPay charges.
|
|
184
188
|
attr_reader :grabpay_payments
|
|
189
|
+
# The status of the Indonesia Bank Transfer payments capability of the account, or whether the account can directly process Indonesia Bank Transfer charges.
|
|
190
|
+
attr_reader :id_bank_transfer_payments
|
|
191
|
+
# The status of Bank BCA onboarding of the account.
|
|
192
|
+
attr_reader :id_bank_transfer_payments_bca
|
|
185
193
|
# The status of the iDEAL payments capability of the account, or whether the account can directly process iDEAL charges.
|
|
186
194
|
attr_reader :ideal_payments
|
|
187
195
|
# The status of the india_international_payments capability of the account, or whether the account can process international charges (non INR) in India.
|
|
@@ -224,6 +232,8 @@ module Stripe
|
|
|
224
232
|
attr_reader :payco_payments
|
|
225
233
|
# The status of the paynow payments capability of the account, or whether the account can directly process paynow charges.
|
|
226
234
|
attr_reader :paynow_payments
|
|
235
|
+
# The status of the PayPal payments capability of the account, or whether the account can directly process PayPal charges.
|
|
236
|
+
attr_reader :paypal_payments
|
|
227
237
|
# The status of the Paypay capability of the account, or whether the account can directly process Paypay payments.
|
|
228
238
|
attr_reader :paypay_payments
|
|
229
239
|
# The status of the PayTo capability of the account, or whether the account can directly process PayTo charges.
|
|
@@ -232,6 +242,10 @@ module Stripe
|
|
|
232
242
|
attr_reader :pix_payments
|
|
233
243
|
# The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
|
|
234
244
|
attr_reader :promptpay_payments
|
|
245
|
+
# The status of the Qris capability of the account, or whether the account can directly process Qris payments.
|
|
246
|
+
attr_reader :qris_payments
|
|
247
|
+
# The status of the Rechnung capability of the account, or whether the account can directly process Rechnung payments.
|
|
248
|
+
attr_reader :rechnung_payments
|
|
235
249
|
# The status of the RevolutPay capability of the account, or whether the account can directly process RevolutPay payments.
|
|
236
250
|
attr_reader :revolut_pay_payments
|
|
237
251
|
# The status of the SamsungPay capability of the account, or whether the account can directly process SamsungPay payments.
|
|
@@ -246,8 +260,12 @@ module Stripe
|
|
|
246
260
|
attr_reader :sepa_debit_payments
|
|
247
261
|
# The status of the SeQura capability of the account, or whether the account can directly process SeQura payments.
|
|
248
262
|
attr_reader :sequra_payments
|
|
263
|
+
# The status of the ShopeePay capability of the account, or whether the account can directly process ShopeePay payments.
|
|
264
|
+
attr_reader :shopeepay_payments
|
|
249
265
|
# The status of the Sofort payments capability of the account, or whether the account can directly process Sofort charges.
|
|
250
266
|
attr_reader :sofort_payments
|
|
267
|
+
# The status of the stripe_balance payments capability of the account, or whether the account can directly process stripe_balance charges.
|
|
268
|
+
attr_reader :stripe_balance_payments
|
|
251
269
|
# The status of the Sunbit capability of the account, or whether the account can directly process Sunbit payments.
|
|
252
270
|
attr_reader :sunbit_payments
|
|
253
271
|
# The status of the Swish capability of the account, or whether the account can directly process Swish payments.
|
|
@@ -260,6 +278,12 @@ module Stripe
|
|
|
260
278
|
attr_reader :transfers
|
|
261
279
|
# The status of the banking capability, or whether the account can have bank accounts.
|
|
262
280
|
attr_reader :treasury
|
|
281
|
+
# The status of the treasury_evolve capability of the account.
|
|
282
|
+
attr_reader :treasury_evolve
|
|
283
|
+
# The status of the treasury_fifth_third capability of the account.
|
|
284
|
+
attr_reader :treasury_fifth_third
|
|
285
|
+
# The status of the treasury_goldman_sachs capability of the account.
|
|
286
|
+
attr_reader :treasury_goldman_sachs
|
|
263
287
|
# The status of the TWINT capability of the account, or whether the account can directly process TWINT charges.
|
|
264
288
|
attr_reader :twint_payments
|
|
265
289
|
# The status of the upi payments capability of the account, or whether the account can directly process upi charges.
|
|
@@ -596,6 +620,36 @@ module Stripe
|
|
|
596
620
|
end
|
|
597
621
|
|
|
598
622
|
class Controller < ::Stripe::StripeObject
|
|
623
|
+
class Application < ::Stripe::StripeObject
|
|
624
|
+
# `true` if the Connect application is responsible for negative balances and should manage credit and fraud risk on the account.
|
|
625
|
+
attr_reader :loss_liable
|
|
626
|
+
# `true` if the Connect application is responsible for onboarding the account.
|
|
627
|
+
attr_reader :onboarding_owner
|
|
628
|
+
# `true` if the Connect application is responsible for paying Stripe fees on pricing-control eligible products.
|
|
629
|
+
attr_reader :pricing_controls
|
|
630
|
+
|
|
631
|
+
def self.inner_class_types
|
|
632
|
+
@inner_class_types = {}
|
|
633
|
+
end
|
|
634
|
+
|
|
635
|
+
def self.field_remappings
|
|
636
|
+
@field_remappings = {}
|
|
637
|
+
end
|
|
638
|
+
end
|
|
639
|
+
|
|
640
|
+
class Dashboard < ::Stripe::StripeObject
|
|
641
|
+
# Whether this account has access to the full Stripe dashboard (`full`), to the Express dashboard (`express`), or to no dashboard (`none`).
|
|
642
|
+
attr_reader :type
|
|
643
|
+
|
|
644
|
+
def self.inner_class_types
|
|
645
|
+
@inner_class_types = {}
|
|
646
|
+
end
|
|
647
|
+
|
|
648
|
+
def self.field_remappings
|
|
649
|
+
@field_remappings = {}
|
|
650
|
+
end
|
|
651
|
+
end
|
|
652
|
+
|
|
599
653
|
class Fees < ::Stripe::StripeObject
|
|
600
654
|
# 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).
|
|
601
655
|
attr_reader :payer
|
|
@@ -634,6 +688,10 @@ module Stripe
|
|
|
634
688
|
@field_remappings = {}
|
|
635
689
|
end
|
|
636
690
|
end
|
|
691
|
+
# Attribute for field application
|
|
692
|
+
attr_reader :application
|
|
693
|
+
# Attribute for field dashboard
|
|
694
|
+
attr_reader :dashboard
|
|
637
695
|
# Attribute for field fees
|
|
638
696
|
attr_reader :fees
|
|
639
697
|
# `true` if the Connect application retrieving the resource controls the account and can therefore exercise [platform controls](https://docs.stripe.com/connect/platform-controls-for-standard-accounts). Otherwise, this field is null.
|
|
@@ -648,7 +706,13 @@ module Stripe
|
|
|
648
706
|
attr_reader :type
|
|
649
707
|
|
|
650
708
|
def self.inner_class_types
|
|
651
|
-
@inner_class_types = {
|
|
709
|
+
@inner_class_types = {
|
|
710
|
+
application: Application,
|
|
711
|
+
dashboard: Dashboard,
|
|
712
|
+
fees: Fees,
|
|
713
|
+
losses: Losses,
|
|
714
|
+
stripe_dashboard: StripeDashboard,
|
|
715
|
+
}
|
|
652
716
|
end
|
|
653
717
|
|
|
654
718
|
def self.field_remappings
|
|
@@ -785,6 +849,48 @@ module Stripe
|
|
|
785
849
|
end
|
|
786
850
|
end
|
|
787
851
|
|
|
852
|
+
class RiskControls < ::Stripe::StripeObject
|
|
853
|
+
class Charges < ::Stripe::StripeObject
|
|
854
|
+
# Whether a pause of the risk control has been requested.
|
|
855
|
+
attr_reader :pause_requested
|
|
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 Payouts < ::Stripe::StripeObject
|
|
867
|
+
# Whether a pause of the risk control has been requested.
|
|
868
|
+
attr_reader :pause_requested
|
|
869
|
+
|
|
870
|
+
def self.inner_class_types
|
|
871
|
+
@inner_class_types = {}
|
|
872
|
+
end
|
|
873
|
+
|
|
874
|
+
def self.field_remappings
|
|
875
|
+
@field_remappings = {}
|
|
876
|
+
end
|
|
877
|
+
end
|
|
878
|
+
# Attribute for field charges
|
|
879
|
+
attr_reader :charges
|
|
880
|
+
# Attribute for field payouts
|
|
881
|
+
attr_reader :payouts
|
|
882
|
+
# Represents the rejected reason of the account. Empty if account is not rejected, or rejected by Stripe. Please see [this page for more details](https://docs.stripe.com/connect/)
|
|
883
|
+
attr_reader :rejected_reason
|
|
884
|
+
|
|
885
|
+
def self.inner_class_types
|
|
886
|
+
@inner_class_types = { charges: Charges, payouts: Payouts }
|
|
887
|
+
end
|
|
888
|
+
|
|
889
|
+
def self.field_remappings
|
|
890
|
+
@field_remappings = {}
|
|
891
|
+
end
|
|
892
|
+
end
|
|
893
|
+
|
|
788
894
|
class Settings < ::Stripe::StripeObject
|
|
789
895
|
class BacsDebitPayments < ::Stripe::StripeObject
|
|
790
896
|
# 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.
|
|
@@ -801,6 +907,21 @@ module Stripe
|
|
|
801
907
|
end
|
|
802
908
|
end
|
|
803
909
|
|
|
910
|
+
class BankBcaOnboarding < ::Stripe::StripeObject
|
|
911
|
+
# Bank BCA business account holder name.
|
|
912
|
+
attr_reader :account_holder_name
|
|
913
|
+
# Bank BCA business account number.
|
|
914
|
+
attr_reader :business_account_number
|
|
915
|
+
|
|
916
|
+
def self.inner_class_types
|
|
917
|
+
@inner_class_types = {}
|
|
918
|
+
end
|
|
919
|
+
|
|
920
|
+
def self.field_remappings
|
|
921
|
+
@field_remappings = {}
|
|
922
|
+
end
|
|
923
|
+
end
|
|
924
|
+
|
|
804
925
|
class Branding < ::Stripe::StripeObject
|
|
805
926
|
# (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.
|
|
806
927
|
attr_reader :icon
|
|
@@ -913,6 +1034,8 @@ module Stripe
|
|
|
913
1034
|
end
|
|
914
1035
|
|
|
915
1036
|
class Payments < ::Stripe::StripeObject
|
|
1037
|
+
# When enabled, the customer of this Account will receive an email receipt when their payment is successful. If this parameter is not set, the default value is `false`.
|
|
1038
|
+
attr_reader :email_customers_on_successful_payment
|
|
916
1039
|
# 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.
|
|
917
1040
|
attr_reader :statement_descriptor
|
|
918
1041
|
# 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).
|
|
@@ -1061,6 +1184,46 @@ module Stripe
|
|
|
1061
1184
|
end
|
|
1062
1185
|
end
|
|
1063
1186
|
|
|
1187
|
+
class SmartDisputes < ::Stripe::StripeObject
|
|
1188
|
+
class AutoRespond < ::Stripe::StripeObject
|
|
1189
|
+
# The preference setting for auto-respond. Can be 'on', 'off', or 'inherit'.
|
|
1190
|
+
attr_reader :preference
|
|
1191
|
+
# The effective value for auto-respond. Can be 'on' or 'off'.
|
|
1192
|
+
attr_reader :value
|
|
1193
|
+
|
|
1194
|
+
def self.inner_class_types
|
|
1195
|
+
@inner_class_types = {}
|
|
1196
|
+
end
|
|
1197
|
+
|
|
1198
|
+
def self.field_remappings
|
|
1199
|
+
@field_remappings = {}
|
|
1200
|
+
end
|
|
1201
|
+
end
|
|
1202
|
+
# Attribute for field auto_respond
|
|
1203
|
+
attr_reader :auto_respond
|
|
1204
|
+
|
|
1205
|
+
def self.inner_class_types
|
|
1206
|
+
@inner_class_types = { auto_respond: AutoRespond }
|
|
1207
|
+
end
|
|
1208
|
+
|
|
1209
|
+
def self.field_remappings
|
|
1210
|
+
@field_remappings = {}
|
|
1211
|
+
end
|
|
1212
|
+
end
|
|
1213
|
+
|
|
1214
|
+
class TaxForms < ::Stripe::StripeObject
|
|
1215
|
+
# Whether the account opted out of receiving their tax forms by postal delivery.
|
|
1216
|
+
attr_reader :consented_to_paperless_delivery
|
|
1217
|
+
|
|
1218
|
+
def self.inner_class_types
|
|
1219
|
+
@inner_class_types = {}
|
|
1220
|
+
end
|
|
1221
|
+
|
|
1222
|
+
def self.field_remappings
|
|
1223
|
+
@field_remappings = {}
|
|
1224
|
+
end
|
|
1225
|
+
end
|
|
1226
|
+
|
|
1064
1227
|
class Treasury < ::Stripe::StripeObject
|
|
1065
1228
|
class TosAcceptance < ::Stripe::StripeObject
|
|
1066
1229
|
# The Unix timestamp marking when the account representative accepted the service agreement.
|
|
@@ -1091,6 +1254,8 @@ module Stripe
|
|
|
1091
1254
|
end
|
|
1092
1255
|
# Attribute for field bacs_debit_payments
|
|
1093
1256
|
attr_reader :bacs_debit_payments
|
|
1257
|
+
# Attribute for field bank_bca_onboarding
|
|
1258
|
+
attr_reader :bank_bca_onboarding
|
|
1094
1259
|
# Attribute for field branding
|
|
1095
1260
|
attr_reader :branding
|
|
1096
1261
|
# Attribute for field card_issuing
|
|
@@ -1109,12 +1274,17 @@ module Stripe
|
|
|
1109
1274
|
attr_reader :paypay_payments
|
|
1110
1275
|
# Attribute for field sepa_debit_payments
|
|
1111
1276
|
attr_reader :sepa_debit_payments
|
|
1277
|
+
# Attribute for field smart_disputes
|
|
1278
|
+
attr_reader :smart_disputes
|
|
1279
|
+
# Attribute for field tax_forms
|
|
1280
|
+
attr_reader :tax_forms
|
|
1112
1281
|
# Attribute for field treasury
|
|
1113
1282
|
attr_reader :treasury
|
|
1114
1283
|
|
|
1115
1284
|
def self.inner_class_types
|
|
1116
1285
|
@inner_class_types = {
|
|
1117
1286
|
bacs_debit_payments: BacsDebitPayments,
|
|
1287
|
+
bank_bca_onboarding: BankBcaOnboarding,
|
|
1118
1288
|
branding: Branding,
|
|
1119
1289
|
card_issuing: CardIssuing,
|
|
1120
1290
|
card_payments: CardPayments,
|
|
@@ -1124,6 +1294,8 @@ module Stripe
|
|
|
1124
1294
|
payouts: Payouts,
|
|
1125
1295
|
paypay_payments: PaypayPayments,
|
|
1126
1296
|
sepa_debit_payments: SepaDebitPayments,
|
|
1297
|
+
smart_disputes: SmartDisputes,
|
|
1298
|
+
tax_forms: TaxForms,
|
|
1127
1299
|
treasury: Treasury,
|
|
1128
1300
|
}
|
|
1129
1301
|
end
|
|
@@ -1197,6 +1369,8 @@ module Stripe
|
|
|
1197
1369
|
attr_reader :payouts_enabled
|
|
1198
1370
|
# Attribute for field requirements
|
|
1199
1371
|
attr_reader :requirements
|
|
1372
|
+
# Attribute for field risk_controls
|
|
1373
|
+
attr_reader :risk_controls
|
|
1200
1374
|
# Options for customizing how the account functions within Stripe.
|
|
1201
1375
|
attr_reader :settings
|
|
1202
1376
|
# Attribute for field tos_acceptance
|
|
@@ -1478,6 +1652,7 @@ module Stripe
|
|
|
1478
1652
|
future_requirements: FutureRequirements,
|
|
1479
1653
|
groups: Groups,
|
|
1480
1654
|
requirements: Requirements,
|
|
1655
|
+
risk_controls: RiskControls,
|
|
1481
1656
|
settings: Settings,
|
|
1482
1657
|
tos_acceptance: TosAcceptance,
|
|
1483
1658
|
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
# A notice to a Connected account. Notice can be sent by Stripe on your behalf or you can opt to send the notices yourself.
|
|
6
|
+
#
|
|
7
|
+
# See the [guide to send notices](https://docs.stripe.com/issuing/compliance-us/issuing-regulated-customer-notices) to your connected accounts.
|
|
8
|
+
class AccountNotice < APIResource
|
|
9
|
+
extend Stripe::APIOperations::List
|
|
10
|
+
include Stripe::APIOperations::Save
|
|
11
|
+
|
|
12
|
+
OBJECT_NAME = "account_notice"
|
|
13
|
+
def self.object_name
|
|
14
|
+
"account_notice"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
class Email < ::Stripe::StripeObject
|
|
18
|
+
# Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use.
|
|
19
|
+
attr_reader :plain_text
|
|
20
|
+
# Email address of the recipient.
|
|
21
|
+
attr_reader :recipient
|
|
22
|
+
# Subject of the email.
|
|
23
|
+
attr_reader :subject
|
|
24
|
+
|
|
25
|
+
def self.inner_class_types
|
|
26
|
+
@inner_class_types = {}
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def self.field_remappings
|
|
30
|
+
@field_remappings = {}
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
class LinkedObjects < ::Stripe::StripeObject
|
|
35
|
+
# Associated [Capability](https://docs.stripe.com/api/capabilities)
|
|
36
|
+
attr_reader :capability
|
|
37
|
+
# Associated [Credit Underwriting Record](https://docs.stripe.com/api/issuing/credit_underwriting_record)
|
|
38
|
+
attr_reader :issuing_credit_underwriting_record
|
|
39
|
+
# Associated [Issuing Dispute](https://docs.stripe.com/api/issuing/disputes)
|
|
40
|
+
attr_reader :issuing_dispute
|
|
41
|
+
|
|
42
|
+
def self.inner_class_types
|
|
43
|
+
@inner_class_types = {}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def self.field_remappings
|
|
47
|
+
@field_remappings = {}
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
51
|
+
attr_reader :created
|
|
52
|
+
# When present, the deadline for sending the notice to meet the relevant regulations.
|
|
53
|
+
attr_reader :deadline
|
|
54
|
+
# Information about the email when sent.
|
|
55
|
+
attr_reader :email
|
|
56
|
+
# Unique identifier for the object.
|
|
57
|
+
attr_reader :id
|
|
58
|
+
# Information about objects related to the notice.
|
|
59
|
+
attr_reader :linked_objects
|
|
60
|
+
# If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
61
|
+
attr_reader :livemode
|
|
62
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
63
|
+
attr_reader :metadata
|
|
64
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
65
|
+
attr_reader :object
|
|
66
|
+
# Reason the notice is being sent. The reason determines what copy the notice must contain. See the [regulated customer notices](https://docs.stripe.com/issuing/compliance-us/issuing-regulated-customer-notices) guide. All reasons might not apply to your integration, and Stripe might add new reasons in the future, so we recommend an internal warning when you receive an unknown reason.
|
|
67
|
+
attr_reader :reason
|
|
68
|
+
# Date when the notice was sent. When absent, you must send the notice, update the content of the email and date when it was sent.
|
|
69
|
+
attr_reader :sent_at
|
|
70
|
+
|
|
71
|
+
# Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
|
|
72
|
+
def self.list(params = {}, opts = {})
|
|
73
|
+
request_stripe_object(method: :get, path: "/v1/account_notices", params: params, opts: opts)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Updates an AccountNotice object.
|
|
77
|
+
def self.update(account_notice, params = {}, opts = {})
|
|
78
|
+
request_stripe_object(
|
|
79
|
+
method: :post,
|
|
80
|
+
path: format("/v1/account_notices/%<account_notice>s", { account_notice: CGI.escape(account_notice) }),
|
|
81
|
+
params: params,
|
|
82
|
+
opts: opts
|
|
83
|
+
)
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
def self.inner_class_types
|
|
87
|
+
@inner_class_types = { email: Email, linked_objects: LinkedObjects }
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
def self.field_remappings
|
|
91
|
+
@field_remappings = {}
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -135,6 +135,78 @@ module Stripe
|
|
|
135
135
|
end
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
+
class CapitalFinancing < ::Stripe::StripeObject
|
|
139
|
+
class Features < ::Stripe::StripeObject
|
|
140
|
+
def self.inner_class_types
|
|
141
|
+
@inner_class_types = {}
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
def self.field_remappings
|
|
145
|
+
@field_remappings = {}
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
# Whether the embedded component is enabled.
|
|
149
|
+
attr_reader :enabled
|
|
150
|
+
# Attribute for field features
|
|
151
|
+
attr_reader :features
|
|
152
|
+
|
|
153
|
+
def self.inner_class_types
|
|
154
|
+
@inner_class_types = { features: Features }
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
def self.field_remappings
|
|
158
|
+
@field_remappings = {}
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
class CapitalFinancingApplication < ::Stripe::StripeObject
|
|
163
|
+
class Features < ::Stripe::StripeObject
|
|
164
|
+
def self.inner_class_types
|
|
165
|
+
@inner_class_types = {}
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
def self.field_remappings
|
|
169
|
+
@field_remappings = {}
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
# Whether the embedded component is enabled.
|
|
173
|
+
attr_reader :enabled
|
|
174
|
+
# Attribute for field features
|
|
175
|
+
attr_reader :features
|
|
176
|
+
|
|
177
|
+
def self.inner_class_types
|
|
178
|
+
@inner_class_types = { features: Features }
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
def self.field_remappings
|
|
182
|
+
@field_remappings = {}
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
class CapitalFinancingPromotion < ::Stripe::StripeObject
|
|
187
|
+
class Features < ::Stripe::StripeObject
|
|
188
|
+
def self.inner_class_types
|
|
189
|
+
@inner_class_types = {}
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
def self.field_remappings
|
|
193
|
+
@field_remappings = {}
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
# Whether the embedded component is enabled.
|
|
197
|
+
attr_reader :enabled
|
|
198
|
+
# Attribute for field features
|
|
199
|
+
attr_reader :features
|
|
200
|
+
|
|
201
|
+
def self.inner_class_types
|
|
202
|
+
@inner_class_types = { features: Features }
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
def self.field_remappings
|
|
206
|
+
@field_remappings = {}
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
|
|
138
210
|
class DisputesList < ::Stripe::StripeObject
|
|
139
211
|
class Features < ::Stripe::StripeObject
|
|
140
212
|
# Whether to allow capturing and cancelling payment intents. This is `true` by default.
|
|
@@ -746,6 +818,12 @@ module Stripe
|
|
|
746
818
|
attr_reader :balance_report
|
|
747
819
|
# Attribute for field balances
|
|
748
820
|
attr_reader :balances
|
|
821
|
+
# Attribute for field capital_financing
|
|
822
|
+
attr_reader :capital_financing
|
|
823
|
+
# Attribute for field capital_financing_application
|
|
824
|
+
attr_reader :capital_financing_application
|
|
825
|
+
# Attribute for field capital_financing_promotion
|
|
826
|
+
attr_reader :capital_financing_promotion
|
|
749
827
|
# Attribute for field disputes_list
|
|
750
828
|
attr_reader :disputes_list
|
|
751
829
|
# Attribute for field documents
|
|
@@ -795,6 +873,9 @@ module Stripe
|
|
|
795
873
|
account_onboarding: AccountOnboarding,
|
|
796
874
|
balance_report: BalanceReport,
|
|
797
875
|
balances: Balances,
|
|
876
|
+
capital_financing: CapitalFinancing,
|
|
877
|
+
capital_financing_application: CapitalFinancingApplication,
|
|
878
|
+
capital_financing_promotion: CapitalFinancingPromotion,
|
|
798
879
|
disputes_list: DisputesList,
|
|
799
880
|
documents: Documents,
|
|
800
881
|
financial_account: FinancialAccount,
|
|
@@ -305,6 +305,86 @@ module Stripe
|
|
|
305
305
|
@field_remappings = {}
|
|
306
306
|
end
|
|
307
307
|
end
|
|
308
|
+
|
|
309
|
+
class RiskReserved < ::Stripe::StripeObject
|
|
310
|
+
class Available < ::Stripe::StripeObject
|
|
311
|
+
class SourceTypes < ::Stripe::StripeObject
|
|
312
|
+
# Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
|
313
|
+
attr_reader :bank_account
|
|
314
|
+
# Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
|
315
|
+
attr_reader :card
|
|
316
|
+
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
|
317
|
+
attr_reader :fpx
|
|
318
|
+
|
|
319
|
+
def self.inner_class_types
|
|
320
|
+
@inner_class_types = {}
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
def self.field_remappings
|
|
324
|
+
@field_remappings = {}
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
# Balance amount.
|
|
328
|
+
attr_reader :amount
|
|
329
|
+
# 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).
|
|
330
|
+
attr_reader :currency
|
|
331
|
+
# Attribute for field source_types
|
|
332
|
+
attr_reader :source_types
|
|
333
|
+
|
|
334
|
+
def self.inner_class_types
|
|
335
|
+
@inner_class_types = { source_types: SourceTypes }
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
def self.field_remappings
|
|
339
|
+
@field_remappings = {}
|
|
340
|
+
end
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
class Pending < ::Stripe::StripeObject
|
|
344
|
+
class SourceTypes < ::Stripe::StripeObject
|
|
345
|
+
# Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
|
346
|
+
attr_reader :bank_account
|
|
347
|
+
# Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
|
348
|
+
attr_reader :card
|
|
349
|
+
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
|
350
|
+
attr_reader :fpx
|
|
351
|
+
|
|
352
|
+
def self.inner_class_types
|
|
353
|
+
@inner_class_types = {}
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
def self.field_remappings
|
|
357
|
+
@field_remappings = {}
|
|
358
|
+
end
|
|
359
|
+
end
|
|
360
|
+
# Balance amount.
|
|
361
|
+
attr_reader :amount
|
|
362
|
+
# 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).
|
|
363
|
+
attr_reader :currency
|
|
364
|
+
# Attribute for field source_types
|
|
365
|
+
attr_reader :source_types
|
|
366
|
+
|
|
367
|
+
def self.inner_class_types
|
|
368
|
+
@inner_class_types = { source_types: SourceTypes }
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
def self.field_remappings
|
|
372
|
+
@field_remappings = {}
|
|
373
|
+
end
|
|
374
|
+
end
|
|
375
|
+
# Funds that are available for use.
|
|
376
|
+
attr_reader :available
|
|
377
|
+
# Funds that are pending
|
|
378
|
+
attr_reader :pending
|
|
379
|
+
|
|
380
|
+
def self.inner_class_types
|
|
381
|
+
@inner_class_types = { available: Available, pending: Pending }
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
def self.field_remappings
|
|
385
|
+
@field_remappings = {}
|
|
386
|
+
end
|
|
387
|
+
end
|
|
308
388
|
# Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://docs.stripe.com/api#transfers) or [Payouts API](https://docs.stripe.com/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
|
|
309
389
|
attr_reader :available
|
|
310
390
|
# Funds held due to negative balances on connected accounts where [account.controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. You can find the connect reserve balance for each currency and payment type in the `source_types` property.
|
|
@@ -321,6 +401,8 @@ module Stripe
|
|
|
321
401
|
attr_reader :pending
|
|
322
402
|
# Attribute for field refund_and_dispute_prefunding
|
|
323
403
|
attr_reader :refund_and_dispute_prefunding
|
|
404
|
+
# Attribute for field risk_reserved
|
|
405
|
+
attr_reader :risk_reserved
|
|
324
406
|
|
|
325
407
|
def self.inner_class_types
|
|
326
408
|
@inner_class_types = {
|
|
@@ -330,6 +412,7 @@ module Stripe
|
|
|
330
412
|
issuing: Issuing,
|
|
331
413
|
pending: Pending,
|
|
332
414
|
refund_and_dispute_prefunding: RefundAndDisputePrefunding,
|
|
415
|
+
risk_reserved: RiskReserved,
|
|
333
416
|
}
|
|
334
417
|
end
|
|
335
418
|
|
|
@@ -103,8 +103,12 @@ module Stripe
|
|
|
103
103
|
end
|
|
104
104
|
# 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`.
|
|
105
105
|
attr_reader :debit_negative_balances
|
|
106
|
+
# The default settlement currency for the account.
|
|
107
|
+
attr_reader :default_settlement_currency
|
|
106
108
|
# Settings specific to the account's payouts.
|
|
107
109
|
attr_reader :payouts
|
|
110
|
+
# A hash of settlement currencies and their states. Each key is an ISO 4217 currency code, and the value is one of `enabled`, `disabled`, or `restricted_by_application`.
|
|
111
|
+
attr_reader :settlement_currencies
|
|
108
112
|
# Attribute for field settlement_timing
|
|
109
113
|
attr_reader :settlement_timing
|
|
110
114
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Billing
|
|
6
|
+
module Analytics
|
|
7
|
+
# A billing meter usage event represents an aggregated view of a customer's billing meter events within a specified timeframe.
|
|
8
|
+
class MeterUsage < SingletonAPIResource
|
|
9
|
+
OBJECT_NAME = "billing.analytics.meter_usage"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"billing.analytics.meter_usage"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
15
|
+
attr_reader :livemode
|
|
16
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
17
|
+
attr_reader :object
|
|
18
|
+
# The timestamp to indicate data freshness, measured in seconds since the Unix epoch.
|
|
19
|
+
attr_reader :refreshed_at
|
|
20
|
+
# Attribute for field rows
|
|
21
|
+
attr_reader :rows
|
|
22
|
+
|
|
23
|
+
def self.inner_class_types
|
|
24
|
+
@inner_class_types = {}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def self.field_remappings
|
|
28
|
+
@field_remappings = {}
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|