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
|
@@ -218,6 +218,15 @@ module Stripe
|
|
|
218
218
|
end
|
|
219
219
|
end
|
|
220
220
|
|
|
221
|
+
class AutomaticIndirectTax < ::Stripe::RequestParams
|
|
222
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
223
|
+
attr_accessor :requested
|
|
224
|
+
|
|
225
|
+
def initialize(requested: nil)
|
|
226
|
+
@requested = requested
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
|
|
221
230
|
class BacsDebitPayments < ::Stripe::RequestParams
|
|
222
231
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
223
232
|
attr_accessor :requested
|
|
@@ -371,6 +380,15 @@ module Stripe
|
|
|
371
380
|
end
|
|
372
381
|
end
|
|
373
382
|
|
|
383
|
+
class GopayPayments < ::Stripe::RequestParams
|
|
384
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
385
|
+
attr_accessor :requested
|
|
386
|
+
|
|
387
|
+
def initialize(requested: nil)
|
|
388
|
+
@requested = requested
|
|
389
|
+
end
|
|
390
|
+
end
|
|
391
|
+
|
|
374
392
|
class GrabpayPayments < ::Stripe::RequestParams
|
|
375
393
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
376
394
|
attr_accessor :requested
|
|
@@ -380,6 +398,24 @@ module Stripe
|
|
|
380
398
|
end
|
|
381
399
|
end
|
|
382
400
|
|
|
401
|
+
class IdBankTransferPayments < ::Stripe::RequestParams
|
|
402
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
403
|
+
attr_accessor :requested
|
|
404
|
+
|
|
405
|
+
def initialize(requested: nil)
|
|
406
|
+
@requested = requested
|
|
407
|
+
end
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
class IdBankTransferPaymentsBca < ::Stripe::RequestParams
|
|
411
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
412
|
+
attr_accessor :requested
|
|
413
|
+
|
|
414
|
+
def initialize(requested: nil)
|
|
415
|
+
@requested = requested
|
|
416
|
+
end
|
|
417
|
+
end
|
|
418
|
+
|
|
383
419
|
class IdealPayments < ::Stripe::RequestParams
|
|
384
420
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
385
421
|
attr_accessor :requested
|
|
@@ -569,6 +605,15 @@ module Stripe
|
|
|
569
605
|
end
|
|
570
606
|
end
|
|
571
607
|
|
|
608
|
+
class PaypalPayments < ::Stripe::RequestParams
|
|
609
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
610
|
+
attr_accessor :requested
|
|
611
|
+
|
|
612
|
+
def initialize(requested: nil)
|
|
613
|
+
@requested = requested
|
|
614
|
+
end
|
|
615
|
+
end
|
|
616
|
+
|
|
572
617
|
class PaypayPayments < ::Stripe::RequestParams
|
|
573
618
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
574
619
|
attr_accessor :requested
|
|
@@ -605,6 +650,24 @@ module Stripe
|
|
|
605
650
|
end
|
|
606
651
|
end
|
|
607
652
|
|
|
653
|
+
class QrisPayments < ::Stripe::RequestParams
|
|
654
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
655
|
+
attr_accessor :requested
|
|
656
|
+
|
|
657
|
+
def initialize(requested: nil)
|
|
658
|
+
@requested = requested
|
|
659
|
+
end
|
|
660
|
+
end
|
|
661
|
+
|
|
662
|
+
class RechnungPayments < ::Stripe::RequestParams
|
|
663
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
664
|
+
attr_accessor :requested
|
|
665
|
+
|
|
666
|
+
def initialize(requested: nil)
|
|
667
|
+
@requested = requested
|
|
668
|
+
end
|
|
669
|
+
end
|
|
670
|
+
|
|
608
671
|
class RevolutPayPayments < ::Stripe::RequestParams
|
|
609
672
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
610
673
|
attr_accessor :requested
|
|
@@ -668,6 +731,15 @@ module Stripe
|
|
|
668
731
|
end
|
|
669
732
|
end
|
|
670
733
|
|
|
734
|
+
class ShopeepayPayments < ::Stripe::RequestParams
|
|
735
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
736
|
+
attr_accessor :requested
|
|
737
|
+
|
|
738
|
+
def initialize(requested: nil)
|
|
739
|
+
@requested = requested
|
|
740
|
+
end
|
|
741
|
+
end
|
|
742
|
+
|
|
671
743
|
class SofortPayments < ::Stripe::RequestParams
|
|
672
744
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
673
745
|
attr_accessor :requested
|
|
@@ -677,6 +749,15 @@ module Stripe
|
|
|
677
749
|
end
|
|
678
750
|
end
|
|
679
751
|
|
|
752
|
+
class StripeBalancePayments < ::Stripe::RequestParams
|
|
753
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
754
|
+
attr_accessor :requested
|
|
755
|
+
|
|
756
|
+
def initialize(requested: nil)
|
|
757
|
+
@requested = requested
|
|
758
|
+
end
|
|
759
|
+
end
|
|
760
|
+
|
|
680
761
|
class SunbitPayments < ::Stripe::RequestParams
|
|
681
762
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
682
763
|
attr_accessor :requested
|
|
@@ -731,6 +812,33 @@ module Stripe
|
|
|
731
812
|
end
|
|
732
813
|
end
|
|
733
814
|
|
|
815
|
+
class TreasuryEvolve < ::Stripe::RequestParams
|
|
816
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
817
|
+
attr_accessor :requested
|
|
818
|
+
|
|
819
|
+
def initialize(requested: nil)
|
|
820
|
+
@requested = requested
|
|
821
|
+
end
|
|
822
|
+
end
|
|
823
|
+
|
|
824
|
+
class TreasuryFifthThird < ::Stripe::RequestParams
|
|
825
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
826
|
+
attr_accessor :requested
|
|
827
|
+
|
|
828
|
+
def initialize(requested: nil)
|
|
829
|
+
@requested = requested
|
|
830
|
+
end
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
class TreasuryGoldmanSachs < ::Stripe::RequestParams
|
|
834
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
835
|
+
attr_accessor :requested
|
|
836
|
+
|
|
837
|
+
def initialize(requested: nil)
|
|
838
|
+
@requested = requested
|
|
839
|
+
end
|
|
840
|
+
end
|
|
841
|
+
|
|
734
842
|
class TwintPayments < ::Stripe::RequestParams
|
|
735
843
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
736
844
|
attr_accessor :requested
|
|
@@ -798,6 +906,8 @@ module Stripe
|
|
|
798
906
|
attr_accessor :app_distribution
|
|
799
907
|
# The au_becs_debit_payments capability.
|
|
800
908
|
attr_accessor :au_becs_debit_payments
|
|
909
|
+
# The automatic_indirect_tax capability.
|
|
910
|
+
attr_accessor :automatic_indirect_tax
|
|
801
911
|
# The bacs_debit_payments capability.
|
|
802
912
|
attr_accessor :bacs_debit_payments
|
|
803
913
|
# The bancontact_payments capability.
|
|
@@ -832,8 +942,14 @@ module Stripe
|
|
|
832
942
|
attr_accessor :gb_bank_transfer_payments
|
|
833
943
|
# The giropay_payments capability.
|
|
834
944
|
attr_accessor :giropay_payments
|
|
945
|
+
# The gopay_payments capability.
|
|
946
|
+
attr_accessor :gopay_payments
|
|
835
947
|
# The grabpay_payments capability.
|
|
836
948
|
attr_accessor :grabpay_payments
|
|
949
|
+
# The id_bank_transfer_payments capability.
|
|
950
|
+
attr_accessor :id_bank_transfer_payments
|
|
951
|
+
# The id_bank_transfer_payments_bca capability.
|
|
952
|
+
attr_accessor :id_bank_transfer_payments_bca
|
|
837
953
|
# The ideal_payments capability.
|
|
838
954
|
attr_accessor :ideal_payments
|
|
839
955
|
# The india_international_payments capability.
|
|
@@ -876,6 +992,8 @@ module Stripe
|
|
|
876
992
|
attr_accessor :payco_payments
|
|
877
993
|
# The paynow_payments capability.
|
|
878
994
|
attr_accessor :paynow_payments
|
|
995
|
+
# The paypal_payments capability.
|
|
996
|
+
attr_accessor :paypal_payments
|
|
879
997
|
# The paypay_payments capability.
|
|
880
998
|
attr_accessor :paypay_payments
|
|
881
999
|
# The payto_payments capability.
|
|
@@ -884,6 +1002,10 @@ module Stripe
|
|
|
884
1002
|
attr_accessor :pix_payments
|
|
885
1003
|
# The promptpay_payments capability.
|
|
886
1004
|
attr_accessor :promptpay_payments
|
|
1005
|
+
# The qris_payments capability.
|
|
1006
|
+
attr_accessor :qris_payments
|
|
1007
|
+
# The rechnung_payments capability.
|
|
1008
|
+
attr_accessor :rechnung_payments
|
|
887
1009
|
# The revolut_pay_payments capability.
|
|
888
1010
|
attr_accessor :revolut_pay_payments
|
|
889
1011
|
# The samsung_pay_payments capability.
|
|
@@ -898,8 +1020,12 @@ module Stripe
|
|
|
898
1020
|
attr_accessor :sepa_debit_payments
|
|
899
1021
|
# The sequra_payments capability.
|
|
900
1022
|
attr_accessor :sequra_payments
|
|
1023
|
+
# The shopeepay_payments capability.
|
|
1024
|
+
attr_accessor :shopeepay_payments
|
|
901
1025
|
# The sofort_payments capability.
|
|
902
1026
|
attr_accessor :sofort_payments
|
|
1027
|
+
# The stripe_balance_payments capability.
|
|
1028
|
+
attr_accessor :stripe_balance_payments
|
|
903
1029
|
# The sunbit_payments capability.
|
|
904
1030
|
attr_accessor :sunbit_payments
|
|
905
1031
|
# The swish_payments capability.
|
|
@@ -912,6 +1038,12 @@ module Stripe
|
|
|
912
1038
|
attr_accessor :transfers
|
|
913
1039
|
# The treasury capability.
|
|
914
1040
|
attr_accessor :treasury
|
|
1041
|
+
# The treasury_evolve capability.
|
|
1042
|
+
attr_accessor :treasury_evolve
|
|
1043
|
+
# The treasury_fifth_third capability.
|
|
1044
|
+
attr_accessor :treasury_fifth_third
|
|
1045
|
+
# The treasury_goldman_sachs capability.
|
|
1046
|
+
attr_accessor :treasury_goldman_sachs
|
|
915
1047
|
# The twint_payments capability.
|
|
916
1048
|
attr_accessor :twint_payments
|
|
917
1049
|
# The upi_payments capability.
|
|
@@ -933,6 +1065,7 @@ module Stripe
|
|
|
933
1065
|
amazon_pay_payments: nil,
|
|
934
1066
|
app_distribution: nil,
|
|
935
1067
|
au_becs_debit_payments: nil,
|
|
1068
|
+
automatic_indirect_tax: nil,
|
|
936
1069
|
bacs_debit_payments: nil,
|
|
937
1070
|
bancontact_payments: nil,
|
|
938
1071
|
bank_transfer_payments: nil,
|
|
@@ -950,7 +1083,10 @@ module Stripe
|
|
|
950
1083
|
fpx_payments: nil,
|
|
951
1084
|
gb_bank_transfer_payments: nil,
|
|
952
1085
|
giropay_payments: nil,
|
|
1086
|
+
gopay_payments: nil,
|
|
953
1087
|
grabpay_payments: nil,
|
|
1088
|
+
id_bank_transfer_payments: nil,
|
|
1089
|
+
id_bank_transfer_payments_bca: nil,
|
|
954
1090
|
ideal_payments: nil,
|
|
955
1091
|
india_international_payments: nil,
|
|
956
1092
|
jcb_payments: nil,
|
|
@@ -972,10 +1108,13 @@ module Stripe
|
|
|
972
1108
|
pay_by_bank_payments: nil,
|
|
973
1109
|
payco_payments: nil,
|
|
974
1110
|
paynow_payments: nil,
|
|
1111
|
+
paypal_payments: nil,
|
|
975
1112
|
paypay_payments: nil,
|
|
976
1113
|
payto_payments: nil,
|
|
977
1114
|
pix_payments: nil,
|
|
978
1115
|
promptpay_payments: nil,
|
|
1116
|
+
qris_payments: nil,
|
|
1117
|
+
rechnung_payments: nil,
|
|
979
1118
|
revolut_pay_payments: nil,
|
|
980
1119
|
samsung_pay_payments: nil,
|
|
981
1120
|
satispay_payments: nil,
|
|
@@ -983,13 +1122,18 @@ module Stripe
|
|
|
983
1122
|
sepa_bank_transfer_payments: nil,
|
|
984
1123
|
sepa_debit_payments: nil,
|
|
985
1124
|
sequra_payments: nil,
|
|
1125
|
+
shopeepay_payments: nil,
|
|
986
1126
|
sofort_payments: nil,
|
|
1127
|
+
stripe_balance_payments: nil,
|
|
987
1128
|
sunbit_payments: nil,
|
|
988
1129
|
swish_payments: nil,
|
|
989
1130
|
tax_reporting_us_1099_k: nil,
|
|
990
1131
|
tax_reporting_us_1099_misc: nil,
|
|
991
1132
|
transfers: nil,
|
|
992
1133
|
treasury: nil,
|
|
1134
|
+
treasury_evolve: nil,
|
|
1135
|
+
treasury_fifth_third: nil,
|
|
1136
|
+
treasury_goldman_sachs: nil,
|
|
993
1137
|
twint_payments: nil,
|
|
994
1138
|
upi_payments: nil,
|
|
995
1139
|
us_bank_account_ach_payments: nil,
|
|
@@ -1004,6 +1148,7 @@ module Stripe
|
|
|
1004
1148
|
@amazon_pay_payments = amazon_pay_payments
|
|
1005
1149
|
@app_distribution = app_distribution
|
|
1006
1150
|
@au_becs_debit_payments = au_becs_debit_payments
|
|
1151
|
+
@automatic_indirect_tax = automatic_indirect_tax
|
|
1007
1152
|
@bacs_debit_payments = bacs_debit_payments
|
|
1008
1153
|
@bancontact_payments = bancontact_payments
|
|
1009
1154
|
@bank_transfer_payments = bank_transfer_payments
|
|
@@ -1021,7 +1166,10 @@ module Stripe
|
|
|
1021
1166
|
@fpx_payments = fpx_payments
|
|
1022
1167
|
@gb_bank_transfer_payments = gb_bank_transfer_payments
|
|
1023
1168
|
@giropay_payments = giropay_payments
|
|
1169
|
+
@gopay_payments = gopay_payments
|
|
1024
1170
|
@grabpay_payments = grabpay_payments
|
|
1171
|
+
@id_bank_transfer_payments = id_bank_transfer_payments
|
|
1172
|
+
@id_bank_transfer_payments_bca = id_bank_transfer_payments_bca
|
|
1025
1173
|
@ideal_payments = ideal_payments
|
|
1026
1174
|
@india_international_payments = india_international_payments
|
|
1027
1175
|
@jcb_payments = jcb_payments
|
|
@@ -1043,10 +1191,13 @@ module Stripe
|
|
|
1043
1191
|
@pay_by_bank_payments = pay_by_bank_payments
|
|
1044
1192
|
@payco_payments = payco_payments
|
|
1045
1193
|
@paynow_payments = paynow_payments
|
|
1194
|
+
@paypal_payments = paypal_payments
|
|
1046
1195
|
@paypay_payments = paypay_payments
|
|
1047
1196
|
@payto_payments = payto_payments
|
|
1048
1197
|
@pix_payments = pix_payments
|
|
1049
1198
|
@promptpay_payments = promptpay_payments
|
|
1199
|
+
@qris_payments = qris_payments
|
|
1200
|
+
@rechnung_payments = rechnung_payments
|
|
1050
1201
|
@revolut_pay_payments = revolut_pay_payments
|
|
1051
1202
|
@samsung_pay_payments = samsung_pay_payments
|
|
1052
1203
|
@satispay_payments = satispay_payments
|
|
@@ -1054,13 +1205,18 @@ module Stripe
|
|
|
1054
1205
|
@sepa_bank_transfer_payments = sepa_bank_transfer_payments
|
|
1055
1206
|
@sepa_debit_payments = sepa_debit_payments
|
|
1056
1207
|
@sequra_payments = sequra_payments
|
|
1208
|
+
@shopeepay_payments = shopeepay_payments
|
|
1057
1209
|
@sofort_payments = sofort_payments
|
|
1210
|
+
@stripe_balance_payments = stripe_balance_payments
|
|
1058
1211
|
@sunbit_payments = sunbit_payments
|
|
1059
1212
|
@swish_payments = swish_payments
|
|
1060
1213
|
@tax_reporting_us_1099_k = tax_reporting_us_1099_k
|
|
1061
1214
|
@tax_reporting_us_1099_misc = tax_reporting_us_1099_misc
|
|
1062
1215
|
@transfers = transfers
|
|
1063
1216
|
@treasury = treasury
|
|
1217
|
+
@treasury_evolve = treasury_evolve
|
|
1218
|
+
@treasury_fifth_third = treasury_fifth_third
|
|
1219
|
+
@treasury_goldman_sachs = treasury_goldman_sachs
|
|
1064
1220
|
@twint_payments = twint_payments
|
|
1065
1221
|
@upi_payments = upi_payments
|
|
1066
1222
|
@us_bank_account_ach_payments = us_bank_account_ach_payments
|
|
@@ -2012,6 +2168,37 @@ module Stripe
|
|
|
2012
2168
|
end
|
|
2013
2169
|
end
|
|
2014
2170
|
|
|
2171
|
+
class RiskControls < ::Stripe::RequestParams
|
|
2172
|
+
class Charges < ::Stripe::RequestParams
|
|
2173
|
+
# To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
|
|
2174
|
+
# There can be a delay before the risk control is paused or unpaused.
|
|
2175
|
+
attr_accessor :pause_requested
|
|
2176
|
+
|
|
2177
|
+
def initialize(pause_requested: nil)
|
|
2178
|
+
@pause_requested = pause_requested
|
|
2179
|
+
end
|
|
2180
|
+
end
|
|
2181
|
+
|
|
2182
|
+
class Payouts < ::Stripe::RequestParams
|
|
2183
|
+
# To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
|
|
2184
|
+
# There can be a delay before the risk control is paused or unpaused.
|
|
2185
|
+
attr_accessor :pause_requested
|
|
2186
|
+
|
|
2187
|
+
def initialize(pause_requested: nil)
|
|
2188
|
+
@pause_requested = pause_requested
|
|
2189
|
+
end
|
|
2190
|
+
end
|
|
2191
|
+
# Represents the risk control status of charges. Please see [this page for more details](https://docs.stripe.com/connect/pausing-payments-or-payouts-on-connected-accounts).
|
|
2192
|
+
attr_accessor :charges
|
|
2193
|
+
# Represents the risk control status of payouts. Please see [this page for more details](https://docs.stripe.com/connect/pausing-payments-or-payouts-on-connected-accounts).
|
|
2194
|
+
attr_accessor :payouts
|
|
2195
|
+
|
|
2196
|
+
def initialize(charges: nil, payouts: nil)
|
|
2197
|
+
@charges = charges
|
|
2198
|
+
@payouts = payouts
|
|
2199
|
+
end
|
|
2200
|
+
end
|
|
2201
|
+
|
|
2015
2202
|
class Settings < ::Stripe::RequestParams
|
|
2016
2203
|
class BacsDebitPayments < ::Stripe::RequestParams
|
|
2017
2204
|
# The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free.
|
|
@@ -2022,6 +2209,18 @@ module Stripe
|
|
|
2022
2209
|
end
|
|
2023
2210
|
end
|
|
2024
2211
|
|
|
2212
|
+
class BankBcaOnboarding < ::Stripe::RequestParams
|
|
2213
|
+
# Bank BCA business account holder name
|
|
2214
|
+
attr_accessor :account_holder_name
|
|
2215
|
+
# Bank BCA business account number
|
|
2216
|
+
attr_accessor :business_account_number
|
|
2217
|
+
|
|
2218
|
+
def initialize(account_holder_name: nil, business_account_number: nil)
|
|
2219
|
+
@account_holder_name = account_holder_name
|
|
2220
|
+
@business_account_number = business_account_number
|
|
2221
|
+
end
|
|
2222
|
+
end
|
|
2223
|
+
|
|
2025
2224
|
class Branding < ::Stripe::RequestParams
|
|
2026
2225
|
# (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.
|
|
2027
2226
|
attr_accessor :icon
|
|
@@ -2040,6 +2239,18 @@ module Stripe
|
|
|
2040
2239
|
end
|
|
2041
2240
|
end
|
|
2042
2241
|
|
|
2242
|
+
class Capital < ::Stripe::RequestParams
|
|
2243
|
+
# Per-currency mapping of user-selected destination accounts used to pay out loans.
|
|
2244
|
+
attr_accessor :payout_destination
|
|
2245
|
+
# Per-currency mapping of all destination accounts eligible to receive Capital financing payouts.
|
|
2246
|
+
attr_accessor :payout_destination_selector
|
|
2247
|
+
|
|
2248
|
+
def initialize(payout_destination: nil, payout_destination_selector: nil)
|
|
2249
|
+
@payout_destination = payout_destination
|
|
2250
|
+
@payout_destination_selector = payout_destination_selector
|
|
2251
|
+
end
|
|
2252
|
+
end
|
|
2253
|
+
|
|
2043
2254
|
class CardIssuing < ::Stripe::RequestParams
|
|
2044
2255
|
class TosAcceptance < ::Stripe::RequestParams
|
|
2045
2256
|
# The Unix timestamp marking when the account representative accepted the service agreement.
|
|
@@ -2110,6 +2321,8 @@ module Stripe
|
|
|
2110
2321
|
end
|
|
2111
2322
|
|
|
2112
2323
|
class Payments < ::Stripe::RequestParams
|
|
2324
|
+
# When you enable this parameter, the customer of this Account receives an email receipt when their payment succeeds. If this parameter isn't set, the default value is `false`.
|
|
2325
|
+
attr_accessor :email_customers_on_successful_payment
|
|
2113
2326
|
# The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors).
|
|
2114
2327
|
attr_accessor :statement_descriptor
|
|
2115
2328
|
# 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).
|
|
@@ -2118,10 +2331,12 @@ module Stripe
|
|
|
2118
2331
|
attr_accessor :statement_descriptor_kanji
|
|
2119
2332
|
|
|
2120
2333
|
def initialize(
|
|
2334
|
+
email_customers_on_successful_payment: nil,
|
|
2121
2335
|
statement_descriptor: nil,
|
|
2122
2336
|
statement_descriptor_kana: nil,
|
|
2123
2337
|
statement_descriptor_kanji: nil
|
|
2124
2338
|
)
|
|
2339
|
+
@email_customers_on_successful_payment = email_customers_on_successful_payment
|
|
2125
2340
|
@statement_descriptor = statement_descriptor
|
|
2126
2341
|
@statement_descriptor_kana = statement_descriptor_kana
|
|
2127
2342
|
@statement_descriptor_kanji = statement_descriptor_kanji
|
|
@@ -2236,6 +2451,32 @@ module Stripe
|
|
|
2236
2451
|
end
|
|
2237
2452
|
end
|
|
2238
2453
|
|
|
2454
|
+
class SmartDisputes < ::Stripe::RequestParams
|
|
2455
|
+
class AutoRespond < ::Stripe::RequestParams
|
|
2456
|
+
# The preference setting for auto-respond. Can be 'on', 'off', or 'inherit'.
|
|
2457
|
+
attr_accessor :preference
|
|
2458
|
+
|
|
2459
|
+
def initialize(preference: nil)
|
|
2460
|
+
@preference = preference
|
|
2461
|
+
end
|
|
2462
|
+
end
|
|
2463
|
+
# Smart Disputes auto-respond settings for the account.
|
|
2464
|
+
attr_accessor :auto_respond
|
|
2465
|
+
|
|
2466
|
+
def initialize(auto_respond: nil)
|
|
2467
|
+
@auto_respond = auto_respond
|
|
2468
|
+
end
|
|
2469
|
+
end
|
|
2470
|
+
|
|
2471
|
+
class TaxForms < ::Stripe::RequestParams
|
|
2472
|
+
# Whether the account opted out of receiving their tax forms by postal delivery.
|
|
2473
|
+
attr_accessor :consented_to_paperless_delivery
|
|
2474
|
+
|
|
2475
|
+
def initialize(consented_to_paperless_delivery: nil)
|
|
2476
|
+
@consented_to_paperless_delivery = consented_to_paperless_delivery
|
|
2477
|
+
end
|
|
2478
|
+
end
|
|
2479
|
+
|
|
2239
2480
|
class Treasury < ::Stripe::RequestParams
|
|
2240
2481
|
class TosAcceptance < ::Stripe::RequestParams
|
|
2241
2482
|
# The Unix timestamp marking when the account representative accepted the service agreement.
|
|
@@ -2260,8 +2501,12 @@ module Stripe
|
|
|
2260
2501
|
end
|
|
2261
2502
|
# Settings specific to Bacs Direct Debit payments.
|
|
2262
2503
|
attr_accessor :bacs_debit_payments
|
|
2504
|
+
# Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
|
|
2505
|
+
attr_accessor :bank_bca_onboarding
|
|
2263
2506
|
# Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
|
|
2264
2507
|
attr_accessor :branding
|
|
2508
|
+
# Settings specific to the account's use of the Capital product.
|
|
2509
|
+
attr_accessor :capital
|
|
2265
2510
|
# Settings specific to the account's use of the Card Issuing product.
|
|
2266
2511
|
attr_accessor :card_issuing
|
|
2267
2512
|
# Settings specific to card charging on the account.
|
|
@@ -2276,12 +2521,18 @@ module Stripe
|
|
|
2276
2521
|
attr_accessor :paypay_payments
|
|
2277
2522
|
# Settings specific to SEPA Direct Debit payments.
|
|
2278
2523
|
attr_accessor :sepa_debit_payments
|
|
2524
|
+
# Settings specific to the account's use of Smart Disputes.
|
|
2525
|
+
attr_accessor :smart_disputes
|
|
2526
|
+
# Settings specific to the account's tax forms.
|
|
2527
|
+
attr_accessor :tax_forms
|
|
2279
2528
|
# Settings specific to the account's Treasury FinancialAccounts.
|
|
2280
2529
|
attr_accessor :treasury
|
|
2281
2530
|
|
|
2282
2531
|
def initialize(
|
|
2283
2532
|
bacs_debit_payments: nil,
|
|
2533
|
+
bank_bca_onboarding: nil,
|
|
2284
2534
|
branding: nil,
|
|
2535
|
+
capital: nil,
|
|
2285
2536
|
card_issuing: nil,
|
|
2286
2537
|
card_payments: nil,
|
|
2287
2538
|
invoices: nil,
|
|
@@ -2289,10 +2540,14 @@ module Stripe
|
|
|
2289
2540
|
payouts: nil,
|
|
2290
2541
|
paypay_payments: nil,
|
|
2291
2542
|
sepa_debit_payments: nil,
|
|
2543
|
+
smart_disputes: nil,
|
|
2544
|
+
tax_forms: nil,
|
|
2292
2545
|
treasury: nil
|
|
2293
2546
|
)
|
|
2294
2547
|
@bacs_debit_payments = bacs_debit_payments
|
|
2548
|
+
@bank_bca_onboarding = bank_bca_onboarding
|
|
2295
2549
|
@branding = branding
|
|
2550
|
+
@capital = capital
|
|
2296
2551
|
@card_issuing = card_issuing
|
|
2297
2552
|
@card_payments = card_payments
|
|
2298
2553
|
@invoices = invoices
|
|
@@ -2300,6 +2555,8 @@ module Stripe
|
|
|
2300
2555
|
@payouts = payouts
|
|
2301
2556
|
@paypay_payments = paypay_payments
|
|
2302
2557
|
@sepa_debit_payments = sepa_debit_payments
|
|
2558
|
+
@smart_disputes = smart_disputes
|
|
2559
|
+
@tax_forms = tax_forms
|
|
2303
2560
|
@treasury = treasury
|
|
2304
2561
|
end
|
|
2305
2562
|
end
|
|
@@ -2354,6 +2611,8 @@ module Stripe
|
|
|
2354
2611
|
attr_accessor :individual
|
|
2355
2612
|
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
2356
2613
|
attr_accessor :metadata
|
|
2614
|
+
# A hash to configure risk controls on the account. Please see [this page for more details](/connect/pausing-payments-or-payouts-on-connected-accounts).
|
|
2615
|
+
attr_accessor :risk_controls
|
|
2357
2616
|
# Options for customizing how the account functions within Stripe.
|
|
2358
2617
|
attr_accessor :settings
|
|
2359
2618
|
# Details on the account's acceptance of the [Stripe Services Agreement](/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
|
|
@@ -2373,6 +2632,7 @@ module Stripe
|
|
|
2373
2632
|
groups: nil,
|
|
2374
2633
|
individual: nil,
|
|
2375
2634
|
metadata: nil,
|
|
2635
|
+
risk_controls: nil,
|
|
2376
2636
|
settings: nil,
|
|
2377
2637
|
tos_acceptance: nil
|
|
2378
2638
|
)
|
|
@@ -2389,6 +2649,7 @@ module Stripe
|
|
|
2389
2649
|
@groups = groups
|
|
2390
2650
|
@individual = individual
|
|
2391
2651
|
@metadata = metadata
|
|
2652
|
+
@risk_controls = risk_controls
|
|
2392
2653
|
@settings = settings
|
|
2393
2654
|
@tos_acceptance = tos_acceptance
|
|
2394
2655
|
end
|
|
@@ -85,12 +85,20 @@ module Stripe
|
|
|
85
85
|
attr_accessor :debit_negative_balances
|
|
86
86
|
# Settings specific to the account's payouts.
|
|
87
87
|
attr_accessor :payouts
|
|
88
|
+
# A hash of settlement currencies to update. Each key is an ISO 4217 currency code, and the value is either `enabled` or `disabled`.
|
|
89
|
+
attr_accessor :settlement_currencies
|
|
88
90
|
# Settings related to the account's balance settlement timing.
|
|
89
91
|
attr_accessor :settlement_timing
|
|
90
92
|
|
|
91
|
-
def initialize(
|
|
93
|
+
def initialize(
|
|
94
|
+
debit_negative_balances: nil,
|
|
95
|
+
payouts: nil,
|
|
96
|
+
settlement_currencies: nil,
|
|
97
|
+
settlement_timing: nil
|
|
98
|
+
)
|
|
92
99
|
@debit_negative_balances = debit_negative_balances
|
|
93
100
|
@payouts = payouts
|
|
101
|
+
@settlement_currencies = settlement_currencies
|
|
94
102
|
@settlement_timing = settlement_timing
|
|
95
103
|
end
|
|
96
104
|
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Billing
|
|
6
|
+
module Analytics
|
|
7
|
+
class MeterUsageRetrieveParams < ::Stripe::RequestParams
|
|
8
|
+
class Meter < ::Stripe::RequestParams
|
|
9
|
+
# Key-value pairs used to filter usage events by meter dimension values. Each value is an array that can include multiple values for the key. If specified, usage is filtered for matching usage events.
|
|
10
|
+
attr_accessor :dimension_filters
|
|
11
|
+
# List of meter dimension keys to group by. If specified, usage events will be grouped by the given meter dimension key's values.
|
|
12
|
+
attr_accessor :dimension_group_by_keys
|
|
13
|
+
# Meter id to query usage for.
|
|
14
|
+
attr_accessor :meter
|
|
15
|
+
# Key-value pairs used to filter usage events by high cardinality tenant dimension values. Each value is an array that can include multiple values for the key. If specified, usage is filtered for matching usage events.
|
|
16
|
+
attr_accessor :tenant_filters
|
|
17
|
+
|
|
18
|
+
def initialize(
|
|
19
|
+
dimension_filters: nil,
|
|
20
|
+
dimension_group_by_keys: nil,
|
|
21
|
+
meter: nil,
|
|
22
|
+
tenant_filters: nil
|
|
23
|
+
)
|
|
24
|
+
@dimension_filters = dimension_filters
|
|
25
|
+
@dimension_group_by_keys = dimension_group_by_keys
|
|
26
|
+
@meter = meter
|
|
27
|
+
@tenant_filters = tenant_filters
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
# The customer id to fetch meter usage data for.
|
|
31
|
+
attr_accessor :customer
|
|
32
|
+
# The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries.
|
|
33
|
+
attr_accessor :ends_at
|
|
34
|
+
# Specifies which fields in the response should be expanded.
|
|
35
|
+
attr_accessor :expand
|
|
36
|
+
# An array of meter parameters to specify which meters to include in the usage data. If not specified, usage across all meters for the customer is included.
|
|
37
|
+
attr_accessor :meters
|
|
38
|
+
# The timestamp from when to start aggregating meter events (inclusive). Must be aligned with minute boundaries.
|
|
39
|
+
attr_accessor :starts_at
|
|
40
|
+
# The timezone to use for the start and end times. Defaults to UTC if not specified.
|
|
41
|
+
attr_accessor :timezone
|
|
42
|
+
# Specifies what granularity to use when aggregating meter usage events. If not specified, a single event would be returned for the specified time range.
|
|
43
|
+
attr_accessor :value_grouping_window
|
|
44
|
+
|
|
45
|
+
def initialize(
|
|
46
|
+
customer: nil,
|
|
47
|
+
ends_at: nil,
|
|
48
|
+
expand: nil,
|
|
49
|
+
meters: nil,
|
|
50
|
+
starts_at: nil,
|
|
51
|
+
timezone: nil,
|
|
52
|
+
value_grouping_window: nil
|
|
53
|
+
)
|
|
54
|
+
@customer = customer
|
|
55
|
+
@ends_at = ends_at
|
|
56
|
+
@expand = expand
|
|
57
|
+
@meters = meters
|
|
58
|
+
@starts_at = starts_at
|
|
59
|
+
@timezone = timezone
|
|
60
|
+
@value_grouping_window = value_grouping_window
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Capital
|
|
6
|
+
class FinancingOfferListParams < ::Stripe::RequestParams
|
|
7
|
+
class Created < ::Stripe::RequestParams
|
|
8
|
+
# Minimum value to filter by (exclusive)
|
|
9
|
+
attr_accessor :gt
|
|
10
|
+
# Minimum value to filter by (inclusive)
|
|
11
|
+
attr_accessor :gte
|
|
12
|
+
# Maximum value to filter by (exclusive)
|
|
13
|
+
attr_accessor :lt
|
|
14
|
+
# Maximum value to filter by (inclusive)
|
|
15
|
+
attr_accessor :lte
|
|
16
|
+
|
|
17
|
+
def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
|
|
18
|
+
@gt = gt
|
|
19
|
+
@gte = gte
|
|
20
|
+
@lt = lt
|
|
21
|
+
@lte = lte
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
# limit list to offers belonging to given connected account
|
|
25
|
+
attr_accessor :connected_account
|
|
26
|
+
# Only return offers that were created during the given date interval.
|
|
27
|
+
attr_accessor :created
|
|
28
|
+
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
|
29
|
+
attr_accessor :ending_before
|
|
30
|
+
# Specifies which fields in the response should be expanded.
|
|
31
|
+
attr_accessor :expand
|
|
32
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
|
33
|
+
attr_accessor :limit
|
|
34
|
+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
|
35
|
+
attr_accessor :starting_after
|
|
36
|
+
# limit list to offers with given status
|
|
37
|
+
attr_accessor :status
|
|
38
|
+
|
|
39
|
+
def initialize(
|
|
40
|
+
connected_account: nil,
|
|
41
|
+
created: nil,
|
|
42
|
+
ending_before: nil,
|
|
43
|
+
expand: nil,
|
|
44
|
+
limit: nil,
|
|
45
|
+
starting_after: nil,
|
|
46
|
+
status: nil
|
|
47
|
+
)
|
|
48
|
+
@connected_account = connected_account
|
|
49
|
+
@created = created
|
|
50
|
+
@ending_before = ending_before
|
|
51
|
+
@expand = expand
|
|
52
|
+
@limit = limit
|
|
53
|
+
@starting_after = starting_after
|
|
54
|
+
@status = status
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|