stripe 19.2.0 → 19.3.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 +36 -3
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +87 -0
- data/lib/stripe/event_types.rb +228 -0
- data/lib/stripe/events/unknown_event_notification.rb +1 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_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_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_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_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_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_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_money_management_transaction_created_event.rb +63 -0
- data/lib/stripe/events/v2_money_management_transaction_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/object_types.rb +61 -0
- data/lib/stripe/params/account_create_params.rb +374 -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 +226 -1
- data/lib/stripe/params/account_update_params.rb +336 -0
- 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 +126 -3
- data/lib/stripe/params/checkout/session_update_params.rb +176 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +78 -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/dispute_update_params.rb +10 -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 +64 -2
- 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 +48 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +70 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +790 -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 +48 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +48 -1
- data/lib/stripe/params/invoice_update_params.rb +70 -2
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- 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 +3022 -87
- data/lib/stripe/params/payment_intent_create_params.rb +3034 -99
- 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 +3023 -57
- data/lib/stripe/params/payment_link_create_params.rb +15 -0
- 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 +74 -0
- data/lib/stripe/params/plan_create_params.rb +15 -0
- data/lib/stripe/params/price_create_params.rb +15 -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/product_catalog/trial_offer_create_params.rb +63 -0
- data/lib/stripe/params/product_create_params.rb +16 -0
- data/lib/stripe/params/product_update_params.rb +16 -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/reserve/hold_list_params.rb +53 -0
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -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 +108 -3
- data/lib/stripe/params/setup_intent_create_params.rb +108 -3
- data/lib/stripe/params/setup_intent_update_params.rb +108 -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 +67 -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 +170 -6
- data/lib/stripe/params/subscription_item_create_params.rb +62 -2
- data/lib/stripe/params/subscription_item_update_params.rb +45 -1
- data/lib/stripe/params/subscription_pause_params.rb +50 -0
- data/lib/stripe/params/subscription_resume_params.rb +4 -0
- 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 +153 -5
- data/lib/stripe/params/tax/calculation_create_params.rb +4 -0
- 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/location_create_params.rb +54 -0
- data/lib/stripe/params/tax/location_list_params.rb +27 -0
- data/lib/stripe/params/tax/location_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_create_params.rb +104 -0
- data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +78 -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 +4 -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 +282 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +13 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +274 -4
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +58 -0
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +58 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +37 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -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/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/adjustment_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +102 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +92 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +88 -0
- 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 +77 -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_archive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_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/transaction_entry_list_params.rb +43 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -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/test_helpers/financial_address_credit_params.rb +23 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params.rb +426 -0
- data/lib/stripe/resources/account.rb +259 -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/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 +142 -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 +2 -0
- data/lib/stripe/resources/charge.rb +211 -1
- data/lib/stripe/resources/checkout/session.rb +75 -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_session.rb +36 -0
- data/lib/stripe/resources/dispute.rb +22 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +57 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/authorization.rb +82 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +125 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/invoice.rb +117 -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/credit_underwriting_record.rb +263 -0
- 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 +2 -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 +1561 -8
- data/lib/stripe/resources/payment_method.rb +135 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -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/product.rb +18 -0
- data/lib/stripe/resources/product_catalog/trial_offer.rb +106 -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 +1183 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +736 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.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 +22 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +1792 -0
- data/lib/stripe/resources/shared_payment/issued_token.rb +291 -0
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +167 -0
- data/lib/stripe/resources/subscription_item.rb +41 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax/location.rb +72 -0
- data/lib/stripe/resources/tax/registration.rb +128 -0
- data/lib/stripe/resources/tax_code.rb +15 -1
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- 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 +597 -3
- data/lib/stripe/resources/v2/core/batch_job.rb +488 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +136 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +105 -0
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +142 -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/financial_address_credit_simulation.rb +29 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +31 -0
- data/lib/stripe/resources/v2/iam/activity_log.rb +187 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +160 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +181 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +219 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +145 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +83 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +230 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +135 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -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.rb +417 -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/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/product_catalog/trial_offer_service.rb +19 -0
- data/lib/stripe/services/product_catalog_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/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +19 -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 +56 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax/location_service.rb +45 -0
- data/lib/stripe/services/tax_service.rb +3 -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/batch_job_service.rb +43 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +3 -1
- 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_service.rb +15 -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/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +66 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
- data/lib/stripe/services/v2/money_management_service.rb +31 -0
- 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/test_helper_service.rb +15 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
- data/lib/stripe/services/v2_services.rb +8 -1
- data/lib/stripe/services.rb +209 -0
- data/lib/stripe/stripe_client.rb +8 -1
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_event_notification_handler.rb +582 -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 +54 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +3 -0
- data/rbi/stripe/stripe_client.rbi +13 -0
- data/rbi/stripe.rbi +124159 -57389
- metadata +378 -3
|
@@ -40,6 +40,15 @@ module Stripe
|
|
|
40
40
|
end
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
class ReaderSecurity < ::Stripe::RequestParams
|
|
44
|
+
# Passcode used to access a reader's admin menu.
|
|
45
|
+
attr_accessor :admin_menu_passcode
|
|
46
|
+
|
|
47
|
+
def initialize(admin_menu_passcode: nil)
|
|
48
|
+
@admin_menu_passcode = admin_menu_passcode
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
43
52
|
class RebootWindow < ::Stripe::RequestParams
|
|
44
53
|
# Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
|
|
45
54
|
attr_accessor :end_hour
|
|
@@ -610,6 +619,8 @@ module Stripe
|
|
|
610
619
|
attr_accessor :name
|
|
611
620
|
# Configurations for collecting transactions offline.
|
|
612
621
|
attr_accessor :offline
|
|
622
|
+
# Configurations for reader security settings.
|
|
623
|
+
attr_accessor :reader_security
|
|
613
624
|
# Reboot time settings for readers. that support customized reboot time configuration.
|
|
614
625
|
attr_accessor :reboot_window
|
|
615
626
|
# An object containing device type specific settings for Stripe S700 readers.
|
|
@@ -638,6 +649,7 @@ module Stripe
|
|
|
638
649
|
expand: nil,
|
|
639
650
|
name: nil,
|
|
640
651
|
offline: nil,
|
|
652
|
+
reader_security: nil,
|
|
641
653
|
reboot_window: nil,
|
|
642
654
|
stripe_s700: nil,
|
|
643
655
|
stripe_s710: nil,
|
|
@@ -655,6 +667,7 @@ module Stripe
|
|
|
655
667
|
@expand = expand
|
|
656
668
|
@name = name
|
|
657
669
|
@offline = offline
|
|
670
|
+
@reader_security = reader_security
|
|
658
671
|
@reboot_window = reboot_window
|
|
659
672
|
@stripe_s700 = stripe_s700
|
|
660
673
|
@stripe_s710 = stripe_s710
|
|
@@ -40,6 +40,15 @@ module Stripe
|
|
|
40
40
|
end
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
class ReaderSecurity < ::Stripe::RequestParams
|
|
44
|
+
# Passcode used to access a reader's admin menu.
|
|
45
|
+
attr_accessor :admin_menu_passcode
|
|
46
|
+
|
|
47
|
+
def initialize(admin_menu_passcode: nil)
|
|
48
|
+
@admin_menu_passcode = admin_menu_passcode
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
43
52
|
class RebootWindow < ::Stripe::RequestParams
|
|
44
53
|
# Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
|
|
45
54
|
attr_accessor :end_hour
|
|
@@ -610,6 +619,8 @@ module Stripe
|
|
|
610
619
|
attr_accessor :name
|
|
611
620
|
# Configurations for collecting transactions offline.
|
|
612
621
|
attr_accessor :offline
|
|
622
|
+
# Configurations for reader security settings.
|
|
623
|
+
attr_accessor :reader_security
|
|
613
624
|
# Reboot time settings for readers. that support customized reboot time configuration.
|
|
614
625
|
attr_accessor :reboot_window
|
|
615
626
|
# An object containing device type specific settings for Stripe S700 readers.
|
|
@@ -638,6 +649,7 @@ module Stripe
|
|
|
638
649
|
expand: nil,
|
|
639
650
|
name: nil,
|
|
640
651
|
offline: nil,
|
|
652
|
+
reader_security: nil,
|
|
641
653
|
reboot_window: nil,
|
|
642
654
|
stripe_s700: nil,
|
|
643
655
|
stripe_s710: nil,
|
|
@@ -655,6 +667,7 @@ module Stripe
|
|
|
655
667
|
@expand = expand
|
|
656
668
|
@name = name
|
|
657
669
|
@offline = offline
|
|
670
|
+
@reader_security = reader_security
|
|
658
671
|
@reboot_window = reboot_window
|
|
659
672
|
@stripe_s700 = stripe_s700
|
|
660
673
|
@stripe_s710 = stripe_s710
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Terminal
|
|
6
|
+
class ReaderCollectedDataRetrieveParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
|
|
10
|
+
def initialize(expand: nil)
|
|
11
|
+
@expand = expand
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -142,8 +142,18 @@ module Stripe
|
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
class Giropay < ::Stripe::RequestParams; end
|
|
145
|
+
class Gopay < ::Stripe::RequestParams; end
|
|
145
146
|
class Grabpay < ::Stripe::RequestParams; end
|
|
146
147
|
|
|
148
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
149
|
+
# Bank where the account is held.
|
|
150
|
+
attr_accessor :bank
|
|
151
|
+
|
|
152
|
+
def initialize(bank: nil)
|
|
153
|
+
@bank = bank
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
147
157
|
class Ideal < ::Stripe::RequestParams
|
|
148
158
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
149
159
|
attr_accessor :bank
|
|
@@ -241,6 +251,7 @@ module Stripe
|
|
|
241
251
|
class Payco < ::Stripe::RequestParams; end
|
|
242
252
|
class Paynow < ::Stripe::RequestParams; end
|
|
243
253
|
class Paypal < ::Stripe::RequestParams; end
|
|
254
|
+
class Paypay < ::Stripe::RequestParams; end
|
|
244
255
|
|
|
245
256
|
class Payto < ::Stripe::RequestParams
|
|
246
257
|
# The account number for the bank account.
|
|
@@ -259,6 +270,7 @@ module Stripe
|
|
|
259
270
|
|
|
260
271
|
class Pix < ::Stripe::RequestParams; end
|
|
261
272
|
class Promptpay < ::Stripe::RequestParams; end
|
|
273
|
+
class Qris < ::Stripe::RequestParams; end
|
|
262
274
|
|
|
263
275
|
class RadarOptions < ::Stripe::RequestParams
|
|
264
276
|
# A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
@@ -269,6 +281,29 @@ module Stripe
|
|
|
269
281
|
end
|
|
270
282
|
end
|
|
271
283
|
|
|
284
|
+
class Rechnung < ::Stripe::RequestParams
|
|
285
|
+
class Dob < ::Stripe::RequestParams
|
|
286
|
+
# The day of birth, between 1 and 31.
|
|
287
|
+
attr_accessor :day
|
|
288
|
+
# The month of birth, between 1 and 12.
|
|
289
|
+
attr_accessor :month
|
|
290
|
+
# The four-digit year of birth.
|
|
291
|
+
attr_accessor :year
|
|
292
|
+
|
|
293
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
294
|
+
@day = day
|
|
295
|
+
@month = month
|
|
296
|
+
@year = year
|
|
297
|
+
end
|
|
298
|
+
end
|
|
299
|
+
# Customer's date of birth
|
|
300
|
+
attr_accessor :dob
|
|
301
|
+
|
|
302
|
+
def initialize(dob: nil)
|
|
303
|
+
@dob = dob
|
|
304
|
+
end
|
|
305
|
+
end
|
|
306
|
+
|
|
272
307
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
273
308
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
274
309
|
class Satispay < ::Stripe::RequestParams; end
|
|
@@ -283,6 +318,8 @@ module Stripe
|
|
|
283
318
|
end
|
|
284
319
|
end
|
|
285
320
|
|
|
321
|
+
class Shopeepay < ::Stripe::RequestParams; end
|
|
322
|
+
|
|
286
323
|
class Sofort < ::Stripe::RequestParams
|
|
287
324
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
288
325
|
attr_accessor :country
|
|
@@ -292,6 +329,15 @@ module Stripe
|
|
|
292
329
|
end
|
|
293
330
|
end
|
|
294
331
|
|
|
332
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
333
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
334
|
+
attr_accessor :account
|
|
335
|
+
|
|
336
|
+
def initialize(account: nil)
|
|
337
|
+
@account = account
|
|
338
|
+
end
|
|
339
|
+
end
|
|
340
|
+
|
|
295
341
|
class Sunbit < ::Stripe::RequestParams; end
|
|
296
342
|
class Swish < ::Stripe::RequestParams; end
|
|
297
343
|
class Twint < ::Stripe::RequestParams; end
|
|
@@ -393,8 +439,12 @@ module Stripe
|
|
|
393
439
|
attr_accessor :fpx
|
|
394
440
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
395
441
|
attr_accessor :giropay
|
|
442
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
443
|
+
attr_accessor :gopay
|
|
396
444
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
397
445
|
attr_accessor :grabpay
|
|
446
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
447
|
+
attr_accessor :id_bank_transfer
|
|
398
448
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
399
449
|
attr_accessor :ideal
|
|
400
450
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -433,14 +483,20 @@ module Stripe
|
|
|
433
483
|
attr_accessor :paynow
|
|
434
484
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
|
435
485
|
attr_accessor :paypal
|
|
486
|
+
# If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
|
|
487
|
+
attr_accessor :paypay
|
|
436
488
|
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
437
489
|
attr_accessor :payto
|
|
438
490
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
439
491
|
attr_accessor :pix
|
|
440
492
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
441
493
|
attr_accessor :promptpay
|
|
494
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
495
|
+
attr_accessor :qris
|
|
442
496
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
443
497
|
attr_accessor :radar_options
|
|
498
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
499
|
+
attr_accessor :rechnung
|
|
444
500
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
445
501
|
attr_accessor :revolut_pay
|
|
446
502
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -451,8 +507,14 @@ module Stripe
|
|
|
451
507
|
attr_accessor :scalapay
|
|
452
508
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
|
453
509
|
attr_accessor :sepa_debit
|
|
510
|
+
# ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
|
|
511
|
+
attr_accessor :shared_payment_granted_token
|
|
512
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
513
|
+
attr_accessor :shopeepay
|
|
454
514
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
455
515
|
attr_accessor :sofort
|
|
516
|
+
# This hash contains details about the Stripe balance payment method.
|
|
517
|
+
attr_accessor :stripe_balance
|
|
456
518
|
# If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method.
|
|
457
519
|
attr_accessor :sunbit
|
|
458
520
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
@@ -492,7 +554,9 @@ module Stripe
|
|
|
492
554
|
eps: nil,
|
|
493
555
|
fpx: nil,
|
|
494
556
|
giropay: nil,
|
|
557
|
+
gopay: nil,
|
|
495
558
|
grabpay: nil,
|
|
559
|
+
id_bank_transfer: nil,
|
|
496
560
|
ideal: nil,
|
|
497
561
|
interac_present: nil,
|
|
498
562
|
kakao_pay: nil,
|
|
@@ -512,16 +576,22 @@ module Stripe
|
|
|
512
576
|
payco: nil,
|
|
513
577
|
paynow: nil,
|
|
514
578
|
paypal: nil,
|
|
579
|
+
paypay: nil,
|
|
515
580
|
payto: nil,
|
|
516
581
|
pix: nil,
|
|
517
582
|
promptpay: nil,
|
|
583
|
+
qris: nil,
|
|
518
584
|
radar_options: nil,
|
|
585
|
+
rechnung: nil,
|
|
519
586
|
revolut_pay: nil,
|
|
520
587
|
samsung_pay: nil,
|
|
521
588
|
satispay: nil,
|
|
522
589
|
scalapay: nil,
|
|
523
590
|
sepa_debit: nil,
|
|
591
|
+
shared_payment_granted_token: nil,
|
|
592
|
+
shopeepay: nil,
|
|
524
593
|
sofort: nil,
|
|
594
|
+
stripe_balance: nil,
|
|
525
595
|
sunbit: nil,
|
|
526
596
|
swish: nil,
|
|
527
597
|
twint: nil,
|
|
@@ -552,7 +622,9 @@ module Stripe
|
|
|
552
622
|
@eps = eps
|
|
553
623
|
@fpx = fpx
|
|
554
624
|
@giropay = giropay
|
|
625
|
+
@gopay = gopay
|
|
555
626
|
@grabpay = grabpay
|
|
627
|
+
@id_bank_transfer = id_bank_transfer
|
|
556
628
|
@ideal = ideal
|
|
557
629
|
@interac_present = interac_present
|
|
558
630
|
@kakao_pay = kakao_pay
|
|
@@ -572,16 +644,22 @@ module Stripe
|
|
|
572
644
|
@payco = payco
|
|
573
645
|
@paynow = paynow
|
|
574
646
|
@paypal = paypal
|
|
647
|
+
@paypay = paypay
|
|
575
648
|
@payto = payto
|
|
576
649
|
@pix = pix
|
|
577
650
|
@promptpay = promptpay
|
|
651
|
+
@qris = qris
|
|
578
652
|
@radar_options = radar_options
|
|
653
|
+
@rechnung = rechnung
|
|
579
654
|
@revolut_pay = revolut_pay
|
|
580
655
|
@samsung_pay = samsung_pay
|
|
581
656
|
@satispay = satispay
|
|
582
657
|
@scalapay = scalapay
|
|
583
658
|
@sepa_debit = sepa_debit
|
|
659
|
+
@shared_payment_granted_token = shared_payment_granted_token
|
|
660
|
+
@shopeepay = shopeepay
|
|
584
661
|
@sofort = sofort
|
|
662
|
+
@stripe_balance = stripe_balance
|
|
585
663
|
@sunbit = sunbit
|
|
586
664
|
@swish = swish
|
|
587
665
|
@twint = twint
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module TestHelpers
|
|
6
|
+
module SharedPayment
|
|
7
|
+
class GrantedTokenCreateParams < ::Stripe::RequestParams
|
|
8
|
+
class UsageLimits < ::Stripe::RequestParams
|
|
9
|
+
# 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).
|
|
10
|
+
attr_accessor :currency
|
|
11
|
+
# Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent.
|
|
12
|
+
attr_accessor :expires_at
|
|
13
|
+
# Max amount that can be captured using this SharedPaymentToken
|
|
14
|
+
attr_accessor :max_amount
|
|
15
|
+
|
|
16
|
+
def initialize(currency: nil, expires_at: nil, max_amount: nil)
|
|
17
|
+
@currency = currency
|
|
18
|
+
@expires_at = expires_at
|
|
19
|
+
@max_amount = max_amount
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
# The Customer that the SharedPaymentGrantedToken belongs to. Should match the Customer that the PaymentMethod is attached to if any.
|
|
23
|
+
attr_accessor :customer
|
|
24
|
+
# Specifies which fields in the response should be expanded.
|
|
25
|
+
attr_accessor :expand
|
|
26
|
+
# The PaymentMethod that is going to be shared by the SharedPaymentGrantedToken.
|
|
27
|
+
attr_accessor :payment_method
|
|
28
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to the SharedPaymentGrantedToken.
|
|
29
|
+
attr_accessor :shared_metadata
|
|
30
|
+
# Limits on how this SharedPaymentGrantedToken can be used.
|
|
31
|
+
attr_accessor :usage_limits
|
|
32
|
+
|
|
33
|
+
def initialize(
|
|
34
|
+
customer: nil,
|
|
35
|
+
expand: nil,
|
|
36
|
+
payment_method: nil,
|
|
37
|
+
shared_metadata: nil,
|
|
38
|
+
usage_limits: nil
|
|
39
|
+
)
|
|
40
|
+
@customer = customer
|
|
41
|
+
@expand = expand
|
|
42
|
+
@payment_method = payment_method
|
|
43
|
+
@shared_metadata = shared_metadata
|
|
44
|
+
@usage_limits = usage_limits
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module TestHelpers
|
|
6
|
+
module SharedPayment
|
|
7
|
+
class GrantedTokenRevokeParams < ::Stripe::RequestParams
|
|
8
|
+
# Specifies which fields in the response should be expanded.
|
|
9
|
+
attr_accessor :expand
|
|
10
|
+
|
|
11
|
+
def initialize(expand: nil)
|
|
12
|
+
@expand = expand
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -30,6 +30,26 @@ module Stripe
|
|
|
30
30
|
@us_bank_account = us_bank_account
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
|
+
|
|
34
|
+
class NetworkDetails < ::Stripe::RequestParams
|
|
35
|
+
class Ach < ::Stripe::RequestParams
|
|
36
|
+
# ACH Addenda record
|
|
37
|
+
attr_accessor :addenda
|
|
38
|
+
|
|
39
|
+
def initialize(addenda: nil)
|
|
40
|
+
@addenda = addenda
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
# Optional fields for `ach`.
|
|
44
|
+
attr_accessor :ach
|
|
45
|
+
# The type of flow that originated the ReceivedCredit.
|
|
46
|
+
attr_accessor :type
|
|
47
|
+
|
|
48
|
+
def initialize(ach: nil, type: nil)
|
|
49
|
+
@ach = ach
|
|
50
|
+
@type = type
|
|
51
|
+
end
|
|
52
|
+
end
|
|
33
53
|
# Amount (in cents) to be transferred.
|
|
34
54
|
attr_accessor :amount
|
|
35
55
|
# 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).
|
|
@@ -44,6 +64,8 @@ module Stripe
|
|
|
44
64
|
attr_accessor :initiating_payment_method_details
|
|
45
65
|
# Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
|
|
46
66
|
attr_accessor :network
|
|
67
|
+
# Details about the network used for the ReceivedCredit.
|
|
68
|
+
attr_accessor :network_details
|
|
47
69
|
|
|
48
70
|
def initialize(
|
|
49
71
|
amount: nil,
|
|
@@ -52,7 +74,8 @@ module Stripe
|
|
|
52
74
|
expand: nil,
|
|
53
75
|
financial_account: nil,
|
|
54
76
|
initiating_payment_method_details: nil,
|
|
55
|
-
network: nil
|
|
77
|
+
network: nil,
|
|
78
|
+
network_details: nil
|
|
56
79
|
)
|
|
57
80
|
@amount = amount
|
|
58
81
|
@currency = currency
|
|
@@ -61,6 +84,7 @@ module Stripe
|
|
|
61
84
|
@financial_account = financial_account
|
|
62
85
|
@initiating_payment_method_details = initiating_payment_method_details
|
|
63
86
|
@network = network
|
|
87
|
+
@network_details = network_details
|
|
64
88
|
end
|
|
65
89
|
end
|
|
66
90
|
end
|
|
@@ -30,6 +30,26 @@ module Stripe
|
|
|
30
30
|
@us_bank_account = us_bank_account
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
|
+
|
|
34
|
+
class NetworkDetails < ::Stripe::RequestParams
|
|
35
|
+
class Ach < ::Stripe::RequestParams
|
|
36
|
+
# Addenda record data associated with this ReceivedDebit.
|
|
37
|
+
attr_accessor :addenda
|
|
38
|
+
|
|
39
|
+
def initialize(addenda: nil)
|
|
40
|
+
@addenda = addenda
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
# Optional fields for `ach`.
|
|
44
|
+
attr_accessor :ach
|
|
45
|
+
# The type of flow that originated the ReceivedDebit.
|
|
46
|
+
attr_accessor :type
|
|
47
|
+
|
|
48
|
+
def initialize(ach: nil, type: nil)
|
|
49
|
+
@ach = ach
|
|
50
|
+
@type = type
|
|
51
|
+
end
|
|
52
|
+
end
|
|
33
53
|
# Amount (in cents) to be transferred.
|
|
34
54
|
attr_accessor :amount
|
|
35
55
|
# 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).
|
|
@@ -44,6 +64,8 @@ module Stripe
|
|
|
44
64
|
attr_accessor :initiating_payment_method_details
|
|
45
65
|
# Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
|
|
46
66
|
attr_accessor :network
|
|
67
|
+
# Details about the network used for the ReceivedDebit.
|
|
68
|
+
attr_accessor :network_details
|
|
47
69
|
|
|
48
70
|
def initialize(
|
|
49
71
|
amount: nil,
|
|
@@ -52,7 +74,8 @@ module Stripe
|
|
|
52
74
|
expand: nil,
|
|
53
75
|
financial_account: nil,
|
|
54
76
|
initiating_payment_method_details: nil,
|
|
55
|
-
network: nil
|
|
77
|
+
network: nil,
|
|
78
|
+
network_details: nil
|
|
56
79
|
)
|
|
57
80
|
@amount = amount
|
|
58
81
|
@currency = currency
|
|
@@ -61,6 +84,7 @@ module Stripe
|
|
|
61
84
|
@financial_account = financial_account
|
|
62
85
|
@initiating_payment_method_details = initiating_payment_method_details
|
|
63
86
|
@network = network
|
|
87
|
+
@network_details = network_details
|
|
64
88
|
end
|
|
65
89
|
end
|
|
66
90
|
end
|
|
@@ -13,6 +13,8 @@ module Stripe
|
|
|
13
13
|
attr_accessor :destination
|
|
14
14
|
# Specifies which fields in the response should be expanded.
|
|
15
15
|
attr_accessor :expand
|
|
16
|
+
# The FX rate in the quote is validated and used to convert the transfer amount to the destination currency.
|
|
17
|
+
attr_accessor :fx_quote
|
|
16
18
|
# 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`.
|
|
17
19
|
attr_accessor :metadata
|
|
18
20
|
# You can use this parameter to transfer funds from a charge before they are added to your available balance. A pending balance will transfer immediately but the funds will not become available until the original charge becomes available. [See the Connect documentation](https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-availability) for details.
|
|
@@ -28,6 +30,7 @@ module Stripe
|
|
|
28
30
|
description: nil,
|
|
29
31
|
destination: nil,
|
|
30
32
|
expand: nil,
|
|
33
|
+
fx_quote: nil,
|
|
31
34
|
metadata: nil,
|
|
32
35
|
source_transaction: nil,
|
|
33
36
|
source_type: nil,
|
|
@@ -38,6 +41,7 @@ module Stripe
|
|
|
38
41
|
@description = description
|
|
39
42
|
@destination = destination
|
|
40
43
|
@expand = expand
|
|
44
|
+
@fx_quote = fx_quote
|
|
41
45
|
@metadata = metadata
|
|
42
46
|
@source_transaction = source_transaction
|
|
43
47
|
@source_type = source_type
|
|
@@ -25,10 +25,13 @@ module Stripe
|
|
|
25
25
|
|
|
26
26
|
class FinancialAddresses < ::Stripe::RequestParams
|
|
27
27
|
class Aba < ::Stripe::RequestParams
|
|
28
|
+
# Requested bank partner
|
|
29
|
+
attr_accessor :bank
|
|
28
30
|
# Whether the FinancialAccount should have the Feature.
|
|
29
31
|
attr_accessor :requested
|
|
30
32
|
|
|
31
|
-
def initialize(requested: nil)
|
|
33
|
+
def initialize(bank: nil, requested: nil)
|
|
34
|
+
@bank = bank
|
|
32
35
|
@requested = requested
|
|
33
36
|
end
|
|
34
37
|
end
|
|
@@ -168,6 +171,8 @@ module Stripe
|
|
|
168
171
|
@outbound_flows = outbound_flows
|
|
169
172
|
end
|
|
170
173
|
end
|
|
174
|
+
# The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
|
|
175
|
+
attr_accessor :display_name
|
|
171
176
|
# Specifies which fields in the response should be expanded.
|
|
172
177
|
attr_accessor :expand
|
|
173
178
|
# Encodes whether a FinancialAccount has access to a particular feature. Stripe or the platform can control features via the requested field.
|
|
@@ -182,6 +187,7 @@ module Stripe
|
|
|
182
187
|
attr_accessor :supported_currencies
|
|
183
188
|
|
|
184
189
|
def initialize(
|
|
190
|
+
display_name: nil,
|
|
185
191
|
expand: nil,
|
|
186
192
|
features: nil,
|
|
187
193
|
metadata: nil,
|
|
@@ -189,6 +195,7 @@ module Stripe
|
|
|
189
195
|
platform_restrictions: nil,
|
|
190
196
|
supported_currencies: nil
|
|
191
197
|
)
|
|
198
|
+
@display_name = display_name
|
|
192
199
|
@expand = expand
|
|
193
200
|
@features = features
|
|
194
201
|
@metadata = metadata
|
|
@@ -24,10 +24,13 @@ module Stripe
|
|
|
24
24
|
|
|
25
25
|
class FinancialAddresses < ::Stripe::RequestParams
|
|
26
26
|
class Aba < ::Stripe::RequestParams
|
|
27
|
+
# Requested bank partner
|
|
28
|
+
attr_accessor :bank
|
|
27
29
|
# Whether the FinancialAccount should have the Feature.
|
|
28
30
|
attr_accessor :requested
|
|
29
31
|
|
|
30
|
-
def initialize(requested: nil)
|
|
32
|
+
def initialize(bank: nil, requested: nil)
|
|
33
|
+
@bank = bank
|
|
31
34
|
@requested = requested
|
|
32
35
|
end
|
|
33
36
|
end
|
|
@@ -24,10 +24,13 @@ module Stripe
|
|
|
24
24
|
|
|
25
25
|
class FinancialAddresses < ::Stripe::RequestParams
|
|
26
26
|
class Aba < ::Stripe::RequestParams
|
|
27
|
+
# Requested bank partner
|
|
28
|
+
attr_accessor :bank
|
|
27
29
|
# Whether the FinancialAccount should have the Feature.
|
|
28
30
|
attr_accessor :requested
|
|
29
31
|
|
|
30
|
-
def initialize(requested: nil)
|
|
32
|
+
def initialize(bank: nil, requested: nil)
|
|
33
|
+
@bank = bank
|
|
31
34
|
@requested = requested
|
|
32
35
|
end
|
|
33
36
|
end
|
|
@@ -25,10 +25,13 @@ module Stripe
|
|
|
25
25
|
|
|
26
26
|
class FinancialAddresses < ::Stripe::RequestParams
|
|
27
27
|
class Aba < ::Stripe::RequestParams
|
|
28
|
+
# Requested bank partner
|
|
29
|
+
attr_accessor :bank
|
|
28
30
|
# Whether the FinancialAccount should have the Feature.
|
|
29
31
|
attr_accessor :requested
|
|
30
32
|
|
|
31
|
-
def initialize(requested: nil)
|
|
33
|
+
def initialize(bank: nil, requested: nil)
|
|
34
|
+
@bank = bank
|
|
32
35
|
@requested = requested
|
|
33
36
|
end
|
|
34
37
|
end
|
|
@@ -183,6 +186,8 @@ module Stripe
|
|
|
183
186
|
@outbound_flows = outbound_flows
|
|
184
187
|
end
|
|
185
188
|
end
|
|
189
|
+
# The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
|
|
190
|
+
attr_accessor :display_name
|
|
186
191
|
# Specifies which fields in the response should be expanded.
|
|
187
192
|
attr_accessor :expand
|
|
188
193
|
# Encodes whether a FinancialAccount has access to a particular feature, with a status enum and associated `status_details`. Stripe or the platform may control features via the requested field.
|
|
@@ -197,6 +202,7 @@ module Stripe
|
|
|
197
202
|
attr_accessor :platform_restrictions
|
|
198
203
|
|
|
199
204
|
def initialize(
|
|
205
|
+
display_name: nil,
|
|
200
206
|
expand: nil,
|
|
201
207
|
features: nil,
|
|
202
208
|
forwarding_settings: nil,
|
|
@@ -204,6 +210,7 @@ module Stripe
|
|
|
204
210
|
nickname: nil,
|
|
205
211
|
platform_restrictions: nil
|
|
206
212
|
)
|
|
213
|
+
@display_name = display_name
|
|
207
214
|
@expand = expand
|
|
208
215
|
@features = features
|
|
209
216
|
@forwarding_settings = forwarding_settings
|
|
@@ -155,6 +155,8 @@ module Stripe
|
|
|
155
155
|
attr_accessor :financial_account
|
|
156
156
|
# 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`.
|
|
157
157
|
attr_accessor :metadata
|
|
158
|
+
# The purpose of the OutboundPayment, if applicable. This list is not exhaustive, do not specify this parameter if your purpose does not match any that are provided.
|
|
159
|
+
attr_accessor :purpose
|
|
158
160
|
# The description that appears on the receiving end for this OutboundPayment (for example, bank statement for external bank transfer). Maximum 10 characters for `ach` payments, 140 characters for `us_domestic_wire` payments, or 500 characters for `stripe` network transfers. Can only include -#.$&*, spaces, and alphanumeric characters. The default value is "payment".
|
|
159
161
|
attr_accessor :statement_descriptor
|
|
160
162
|
|
|
@@ -170,6 +172,7 @@ module Stripe
|
|
|
170
172
|
expand: nil,
|
|
171
173
|
financial_account: nil,
|
|
172
174
|
metadata: nil,
|
|
175
|
+
purpose: nil,
|
|
173
176
|
statement_descriptor: nil
|
|
174
177
|
)
|
|
175
178
|
@amount = amount
|
|
@@ -183,6 +186,7 @@ module Stripe
|
|
|
183
186
|
@expand = expand
|
|
184
187
|
@financial_account = financial_account
|
|
185
188
|
@metadata = metadata
|
|
189
|
+
@purpose = purpose
|
|
186
190
|
@statement_descriptor = statement_descriptor
|
|
187
191
|
end
|
|
188
192
|
end
|