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
|
@@ -141,8 +141,18 @@ module Stripe
|
|
|
141
141
|
end
|
|
142
142
|
|
|
143
143
|
class Giropay < ::Stripe::RequestParams; end
|
|
144
|
+
class Gopay < ::Stripe::RequestParams; end
|
|
144
145
|
class Grabpay < ::Stripe::RequestParams; end
|
|
145
146
|
|
|
147
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
148
|
+
# Bank where the account is held.
|
|
149
|
+
attr_accessor :bank
|
|
150
|
+
|
|
151
|
+
def initialize(bank: nil)
|
|
152
|
+
@bank = bank
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
146
156
|
class Ideal < ::Stripe::RequestParams
|
|
147
157
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
148
158
|
attr_accessor :bank
|
|
@@ -240,6 +250,7 @@ module Stripe
|
|
|
240
250
|
class Payco < ::Stripe::RequestParams; end
|
|
241
251
|
class Paynow < ::Stripe::RequestParams; end
|
|
242
252
|
class Paypal < ::Stripe::RequestParams; end
|
|
253
|
+
class Paypay < ::Stripe::RequestParams; end
|
|
243
254
|
|
|
244
255
|
class Payto < ::Stripe::RequestParams
|
|
245
256
|
# The account number for the bank account.
|
|
@@ -258,6 +269,7 @@ module Stripe
|
|
|
258
269
|
|
|
259
270
|
class Pix < ::Stripe::RequestParams; end
|
|
260
271
|
class Promptpay < ::Stripe::RequestParams; end
|
|
272
|
+
class Qris < ::Stripe::RequestParams; end
|
|
261
273
|
|
|
262
274
|
class RadarOptions < ::Stripe::RequestParams
|
|
263
275
|
# 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.
|
|
@@ -268,6 +280,29 @@ module Stripe
|
|
|
268
280
|
end
|
|
269
281
|
end
|
|
270
282
|
|
|
283
|
+
class Rechnung < ::Stripe::RequestParams
|
|
284
|
+
class Dob < ::Stripe::RequestParams
|
|
285
|
+
# The day of birth, between 1 and 31.
|
|
286
|
+
attr_accessor :day
|
|
287
|
+
# The month of birth, between 1 and 12.
|
|
288
|
+
attr_accessor :month
|
|
289
|
+
# The four-digit year of birth.
|
|
290
|
+
attr_accessor :year
|
|
291
|
+
|
|
292
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
293
|
+
@day = day
|
|
294
|
+
@month = month
|
|
295
|
+
@year = year
|
|
296
|
+
end
|
|
297
|
+
end
|
|
298
|
+
# Customer's date of birth
|
|
299
|
+
attr_accessor :dob
|
|
300
|
+
|
|
301
|
+
def initialize(dob: nil)
|
|
302
|
+
@dob = dob
|
|
303
|
+
end
|
|
304
|
+
end
|
|
305
|
+
|
|
271
306
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
272
307
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
273
308
|
class Satispay < ::Stripe::RequestParams; end
|
|
@@ -282,6 +317,8 @@ module Stripe
|
|
|
282
317
|
end
|
|
283
318
|
end
|
|
284
319
|
|
|
320
|
+
class Shopeepay < ::Stripe::RequestParams; end
|
|
321
|
+
|
|
285
322
|
class Sofort < ::Stripe::RequestParams
|
|
286
323
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
287
324
|
attr_accessor :country
|
|
@@ -291,6 +328,15 @@ module Stripe
|
|
|
291
328
|
end
|
|
292
329
|
end
|
|
293
330
|
|
|
331
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
332
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
333
|
+
attr_accessor :account
|
|
334
|
+
|
|
335
|
+
def initialize(account: nil)
|
|
336
|
+
@account = account
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
|
|
294
340
|
class Sunbit < ::Stripe::RequestParams; end
|
|
295
341
|
class Swish < ::Stripe::RequestParams; end
|
|
296
342
|
class Twint < ::Stripe::RequestParams; end
|
|
@@ -392,8 +438,12 @@ module Stripe
|
|
|
392
438
|
attr_accessor :fpx
|
|
393
439
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
394
440
|
attr_accessor :giropay
|
|
441
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
442
|
+
attr_accessor :gopay
|
|
395
443
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
396
444
|
attr_accessor :grabpay
|
|
445
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
446
|
+
attr_accessor :id_bank_transfer
|
|
397
447
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
398
448
|
attr_accessor :ideal
|
|
399
449
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -432,14 +482,20 @@ module Stripe
|
|
|
432
482
|
attr_accessor :paynow
|
|
433
483
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
|
434
484
|
attr_accessor :paypal
|
|
485
|
+
# If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
|
|
486
|
+
attr_accessor :paypay
|
|
435
487
|
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
436
488
|
attr_accessor :payto
|
|
437
489
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
438
490
|
attr_accessor :pix
|
|
439
491
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
440
492
|
attr_accessor :promptpay
|
|
493
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
494
|
+
attr_accessor :qris
|
|
441
495
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
442
496
|
attr_accessor :radar_options
|
|
497
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
498
|
+
attr_accessor :rechnung
|
|
443
499
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
444
500
|
attr_accessor :revolut_pay
|
|
445
501
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -450,8 +506,14 @@ module Stripe
|
|
|
450
506
|
attr_accessor :scalapay
|
|
451
507
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
|
452
508
|
attr_accessor :sepa_debit
|
|
509
|
+
# ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
|
|
510
|
+
attr_accessor :shared_payment_granted_token
|
|
511
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
512
|
+
attr_accessor :shopeepay
|
|
453
513
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
454
514
|
attr_accessor :sofort
|
|
515
|
+
# This hash contains details about the Stripe balance payment method.
|
|
516
|
+
attr_accessor :stripe_balance
|
|
455
517
|
# If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method.
|
|
456
518
|
attr_accessor :sunbit
|
|
457
519
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
@@ -491,7 +553,9 @@ module Stripe
|
|
|
491
553
|
eps: nil,
|
|
492
554
|
fpx: nil,
|
|
493
555
|
giropay: nil,
|
|
556
|
+
gopay: nil,
|
|
494
557
|
grabpay: nil,
|
|
558
|
+
id_bank_transfer: nil,
|
|
495
559
|
ideal: nil,
|
|
496
560
|
interac_present: nil,
|
|
497
561
|
kakao_pay: nil,
|
|
@@ -511,16 +575,22 @@ module Stripe
|
|
|
511
575
|
payco: nil,
|
|
512
576
|
paynow: nil,
|
|
513
577
|
paypal: nil,
|
|
578
|
+
paypay: nil,
|
|
514
579
|
payto: nil,
|
|
515
580
|
pix: nil,
|
|
516
581
|
promptpay: nil,
|
|
582
|
+
qris: nil,
|
|
517
583
|
radar_options: nil,
|
|
584
|
+
rechnung: nil,
|
|
518
585
|
revolut_pay: nil,
|
|
519
586
|
samsung_pay: nil,
|
|
520
587
|
satispay: nil,
|
|
521
588
|
scalapay: nil,
|
|
522
589
|
sepa_debit: nil,
|
|
590
|
+
shared_payment_granted_token: nil,
|
|
591
|
+
shopeepay: nil,
|
|
523
592
|
sofort: nil,
|
|
593
|
+
stripe_balance: nil,
|
|
524
594
|
sunbit: nil,
|
|
525
595
|
swish: nil,
|
|
526
596
|
twint: nil,
|
|
@@ -551,7 +621,9 @@ module Stripe
|
|
|
551
621
|
@eps = eps
|
|
552
622
|
@fpx = fpx
|
|
553
623
|
@giropay = giropay
|
|
624
|
+
@gopay = gopay
|
|
554
625
|
@grabpay = grabpay
|
|
626
|
+
@id_bank_transfer = id_bank_transfer
|
|
555
627
|
@ideal = ideal
|
|
556
628
|
@interac_present = interac_present
|
|
557
629
|
@kakao_pay = kakao_pay
|
|
@@ -571,16 +643,22 @@ module Stripe
|
|
|
571
643
|
@payco = payco
|
|
572
644
|
@paynow = paynow
|
|
573
645
|
@paypal = paypal
|
|
646
|
+
@paypay = paypay
|
|
574
647
|
@payto = payto
|
|
575
648
|
@pix = pix
|
|
576
649
|
@promptpay = promptpay
|
|
650
|
+
@qris = qris
|
|
577
651
|
@radar_options = radar_options
|
|
652
|
+
@rechnung = rechnung
|
|
578
653
|
@revolut_pay = revolut_pay
|
|
579
654
|
@samsung_pay = samsung_pay
|
|
580
655
|
@satispay = satispay
|
|
581
656
|
@scalapay = scalapay
|
|
582
657
|
@sepa_debit = sepa_debit
|
|
658
|
+
@shared_payment_granted_token = shared_payment_granted_token
|
|
659
|
+
@shopeepay = shopeepay
|
|
583
660
|
@sofort = sofort
|
|
661
|
+
@stripe_balance = stripe_balance
|
|
584
662
|
@sunbit = sunbit
|
|
585
663
|
@swish = swish
|
|
586
664
|
@twint = twint
|
|
@@ -20,6 +20,18 @@ module Stripe
|
|
|
20
20
|
@amount_off = amount_off
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
|
+
|
|
24
|
+
class Script < ::Stripe::RequestParams
|
|
25
|
+
# The configuration values of the script. The keys and values are specific to the script implementation.
|
|
26
|
+
attr_accessor :configuration
|
|
27
|
+
# The script implementation ID for this coupon.
|
|
28
|
+
attr_accessor :id
|
|
29
|
+
|
|
30
|
+
def initialize(configuration: nil, id: nil)
|
|
31
|
+
@configuration = configuration
|
|
32
|
+
@id = id
|
|
33
|
+
end
|
|
34
|
+
end
|
|
23
35
|
# A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed).
|
|
24
36
|
attr_accessor :amount_off
|
|
25
37
|
# A hash containing directions for what this Coupon will apply discounts to.
|
|
@@ -46,6 +58,8 @@ module Stripe
|
|
|
46
58
|
attr_accessor :percent_off
|
|
47
59
|
# Unix timestamp specifying the last time at which the coupon can be redeemed (cannot be set to more than 5 years in the future). After the redeem_by date, the coupon can no longer be applied to new customers.
|
|
48
60
|
attr_accessor :redeem_by
|
|
61
|
+
# Configuration of the [script](https://docs.stripe.com/billing/subscriptions/script-coupons) used to calculate the discount.
|
|
62
|
+
attr_accessor :script
|
|
49
63
|
|
|
50
64
|
def initialize(
|
|
51
65
|
amount_off: nil,
|
|
@@ -60,7 +74,8 @@ module Stripe
|
|
|
60
74
|
metadata: nil,
|
|
61
75
|
name: nil,
|
|
62
76
|
percent_off: nil,
|
|
63
|
-
redeem_by: nil
|
|
77
|
+
redeem_by: nil,
|
|
78
|
+
script: nil
|
|
64
79
|
)
|
|
65
80
|
@amount_off = amount_off
|
|
66
81
|
@applies_to = applies_to
|
|
@@ -75,6 +90,7 @@ module Stripe
|
|
|
75
90
|
@name = name
|
|
76
91
|
@percent_off = percent_off
|
|
77
92
|
@redeem_by = redeem_by
|
|
93
|
+
@script = script
|
|
78
94
|
end
|
|
79
95
|
end
|
|
80
96
|
end
|
|
@@ -144,6 +144,33 @@ module Stripe
|
|
|
144
144
|
@enabled = enabled
|
|
145
145
|
end
|
|
146
146
|
end
|
|
147
|
+
|
|
148
|
+
class TaxIdElement < ::Stripe::RequestParams
|
|
149
|
+
class Features < ::Stripe::RequestParams
|
|
150
|
+
# Controls whether the Tax ID Element displays saved tax IDs for the customer. This parameter defaults to `disabled`.
|
|
151
|
+
#
|
|
152
|
+
# When enabled, the Tax ID Element will show existing tax IDs associated with the customer, allowing them to select from previously saved tax identification numbers.
|
|
153
|
+
attr_accessor :tax_id_redisplay
|
|
154
|
+
# Controls whether the Tax ID Element allows merchants to save new tax IDs for their customer. This parameter defaults to `disabled`.
|
|
155
|
+
#
|
|
156
|
+
# When enabled, customers can enter and save new tax identification numbers during the payment flow, which will be stored securely and associated with their customer object for future use.
|
|
157
|
+
attr_accessor :tax_id_save
|
|
158
|
+
|
|
159
|
+
def initialize(tax_id_redisplay: nil, tax_id_save: nil)
|
|
160
|
+
@tax_id_redisplay = tax_id_redisplay
|
|
161
|
+
@tax_id_save = tax_id_save
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
# Whether the Tax ID Element is enabled.
|
|
165
|
+
attr_accessor :enabled
|
|
166
|
+
# This hash defines whether the Tax ID Element supports certain features.
|
|
167
|
+
attr_accessor :features
|
|
168
|
+
|
|
169
|
+
def initialize(enabled: nil, features: nil)
|
|
170
|
+
@enabled = enabled
|
|
171
|
+
@features = features
|
|
172
|
+
end
|
|
173
|
+
end
|
|
147
174
|
# Configuration for buy button.
|
|
148
175
|
attr_accessor :buy_button
|
|
149
176
|
# Configuration for the customer sheet.
|
|
@@ -154,19 +181,23 @@ module Stripe
|
|
|
154
181
|
attr_accessor :payment_element
|
|
155
182
|
# Configuration for the pricing table.
|
|
156
183
|
attr_accessor :pricing_table
|
|
184
|
+
# Configuration for the Tax ID Element.
|
|
185
|
+
attr_accessor :tax_id_element
|
|
157
186
|
|
|
158
187
|
def initialize(
|
|
159
188
|
buy_button: nil,
|
|
160
189
|
customer_sheet: nil,
|
|
161
190
|
mobile_payment_element: nil,
|
|
162
191
|
payment_element: nil,
|
|
163
|
-
pricing_table: nil
|
|
192
|
+
pricing_table: nil,
|
|
193
|
+
tax_id_element: nil
|
|
164
194
|
)
|
|
165
195
|
@buy_button = buy_button
|
|
166
196
|
@customer_sheet = customer_sheet
|
|
167
197
|
@mobile_payment_element = mobile_payment_element
|
|
168
198
|
@payment_element = payment_element
|
|
169
199
|
@pricing_table = pricing_table
|
|
200
|
+
@tax_id_element = tax_id_element
|
|
170
201
|
end
|
|
171
202
|
end
|
|
172
203
|
# Configuration for each component. At least 1 component must be enabled.
|
|
@@ -293,14 +293,23 @@ module Stripe
|
|
|
293
293
|
attr_accessor :evidence
|
|
294
294
|
# Specifies which fields in the response should be expanded.
|
|
295
295
|
attr_accessor :expand
|
|
296
|
+
# Intended submission method for the dispute.
|
|
297
|
+
attr_accessor :intended_submission_method
|
|
296
298
|
# 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`.
|
|
297
299
|
attr_accessor :metadata
|
|
298
300
|
# Whether to immediately submit evidence to the bank. If `false`, evidence is staged on the dispute. Staged evidence is visible in the API and Dashboard, and can be submitted to the bank by making another request with this attribute set to `true` (the default).
|
|
299
301
|
attr_accessor :submit
|
|
300
302
|
|
|
301
|
-
def initialize(
|
|
303
|
+
def initialize(
|
|
304
|
+
evidence: nil,
|
|
305
|
+
expand: nil,
|
|
306
|
+
intended_submission_method: nil,
|
|
307
|
+
metadata: nil,
|
|
308
|
+
submit: nil
|
|
309
|
+
)
|
|
302
310
|
@evidence = evidence
|
|
303
311
|
@expand = expand
|
|
312
|
+
@intended_submission_method = intended_submission_method
|
|
304
313
|
@metadata = metadata
|
|
305
314
|
@submit = submit
|
|
306
315
|
end
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class ExternalAccountCreateParams < ::Stripe::RequestParams
|
|
6
|
+
class BankAccount < ::Stripe::RequestParams
|
|
7
|
+
# Attribute for param field object
|
|
8
|
+
attr_accessor :object
|
|
9
|
+
# The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object.
|
|
10
|
+
attr_accessor :account_holder_name
|
|
11
|
+
# The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
|
|
12
|
+
attr_accessor :account_holder_type
|
|
13
|
+
# The account number for the bank account, in string form. Must be a checking account.
|
|
14
|
+
attr_accessor :account_number
|
|
15
|
+
# The country in which the bank account is located.
|
|
16
|
+
attr_accessor :country
|
|
17
|
+
# The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
|
|
18
|
+
attr_accessor :currency
|
|
19
|
+
# The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required.
|
|
20
|
+
attr_accessor :routing_number
|
|
21
|
+
|
|
22
|
+
def initialize(
|
|
23
|
+
object: nil,
|
|
24
|
+
account_holder_name: nil,
|
|
25
|
+
account_holder_type: nil,
|
|
26
|
+
account_number: nil,
|
|
27
|
+
country: nil,
|
|
28
|
+
currency: nil,
|
|
29
|
+
routing_number: nil
|
|
30
|
+
)
|
|
31
|
+
@object = object
|
|
32
|
+
@account_holder_name = account_holder_name
|
|
33
|
+
@account_holder_type = account_holder_type
|
|
34
|
+
@account_number = account_number
|
|
35
|
+
@country = country
|
|
36
|
+
@currency = currency
|
|
37
|
+
@routing_number = routing_number
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
class Card < ::Stripe::RequestParams
|
|
42
|
+
# Attribute for param field object
|
|
43
|
+
attr_accessor :object
|
|
44
|
+
# Attribute for param field address_city
|
|
45
|
+
attr_accessor :address_city
|
|
46
|
+
# Attribute for param field address_country
|
|
47
|
+
attr_accessor :address_country
|
|
48
|
+
# Attribute for param field address_line1
|
|
49
|
+
attr_accessor :address_line1
|
|
50
|
+
# Attribute for param field address_line2
|
|
51
|
+
attr_accessor :address_line2
|
|
52
|
+
# Attribute for param field address_state
|
|
53
|
+
attr_accessor :address_state
|
|
54
|
+
# Attribute for param field address_zip
|
|
55
|
+
attr_accessor :address_zip
|
|
56
|
+
# Attribute for param field currency
|
|
57
|
+
attr_accessor :currency
|
|
58
|
+
# Attribute for param field cvc
|
|
59
|
+
attr_accessor :cvc
|
|
60
|
+
# Attribute for param field exp_month
|
|
61
|
+
attr_accessor :exp_month
|
|
62
|
+
# Attribute for param field exp_year
|
|
63
|
+
attr_accessor :exp_year
|
|
64
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
65
|
+
attr_accessor :metadata
|
|
66
|
+
# Attribute for param field name
|
|
67
|
+
attr_accessor :name
|
|
68
|
+
# Attribute for param field number
|
|
69
|
+
attr_accessor :number
|
|
70
|
+
|
|
71
|
+
def initialize(
|
|
72
|
+
object: nil,
|
|
73
|
+
address_city: nil,
|
|
74
|
+
address_country: nil,
|
|
75
|
+
address_line1: nil,
|
|
76
|
+
address_line2: nil,
|
|
77
|
+
address_state: nil,
|
|
78
|
+
address_zip: nil,
|
|
79
|
+
currency: nil,
|
|
80
|
+
cvc: nil,
|
|
81
|
+
exp_month: nil,
|
|
82
|
+
exp_year: nil,
|
|
83
|
+
metadata: nil,
|
|
84
|
+
name: nil,
|
|
85
|
+
number: nil
|
|
86
|
+
)
|
|
87
|
+
@object = object
|
|
88
|
+
@address_city = address_city
|
|
89
|
+
@address_country = address_country
|
|
90
|
+
@address_line1 = address_line1
|
|
91
|
+
@address_line2 = address_line2
|
|
92
|
+
@address_state = address_state
|
|
93
|
+
@address_zip = address_zip
|
|
94
|
+
@currency = currency
|
|
95
|
+
@cvc = cvc
|
|
96
|
+
@exp_month = exp_month
|
|
97
|
+
@exp_year = exp_year
|
|
98
|
+
@metadata = metadata
|
|
99
|
+
@name = name
|
|
100
|
+
@number = number
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
class CardToken < ::Stripe::RequestParams
|
|
105
|
+
# Attribute for param field object
|
|
106
|
+
attr_accessor :object
|
|
107
|
+
# Attribute for param field currency
|
|
108
|
+
attr_accessor :currency
|
|
109
|
+
# Attribute for param field token
|
|
110
|
+
attr_accessor :token
|
|
111
|
+
|
|
112
|
+
def initialize(object: nil, currency: nil, token: nil)
|
|
113
|
+
@object = object
|
|
114
|
+
@currency = currency
|
|
115
|
+
@token = token
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
# When set to true, or if this is the first external account added in this currency, this account becomes the default external account for its currency.
|
|
119
|
+
attr_accessor :default_for_currency
|
|
120
|
+
# Specifies which fields in the response should be expanded.
|
|
121
|
+
attr_accessor :expand
|
|
122
|
+
# Either a token, like the ones returned by [Stripe.js](https://docs.stripe.com/js), or a dictionary containing a user’s external account details (with the options shown below).
|
|
123
|
+
attr_accessor :external_account
|
|
124
|
+
# 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`.
|
|
125
|
+
attr_accessor :metadata
|
|
126
|
+
|
|
127
|
+
def initialize(default_for_currency: nil, expand: nil, external_account: nil, metadata: nil)
|
|
128
|
+
@default_for_currency = default_for_currency
|
|
129
|
+
@expand = expand
|
|
130
|
+
@external_account = external_account
|
|
131
|
+
@metadata = metadata
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class ExternalAccountListParams < ::Stripe::RequestParams
|
|
6
|
+
# 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.
|
|
7
|
+
attr_accessor :ending_before
|
|
8
|
+
# Specifies which fields in the response should be expanded.
|
|
9
|
+
attr_accessor :expand
|
|
10
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
|
11
|
+
attr_accessor :limit
|
|
12
|
+
# Filter external accounts according to a particular object type.
|
|
13
|
+
attr_accessor :object
|
|
14
|
+
# 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.
|
|
15
|
+
attr_accessor :starting_after
|
|
16
|
+
|
|
17
|
+
def initialize(ending_before: nil, expand: nil, limit: nil, object: nil, starting_after: nil)
|
|
18
|
+
@ending_before = ending_before
|
|
19
|
+
@expand = expand
|
|
20
|
+
@limit = limit
|
|
21
|
+
@object = object
|
|
22
|
+
@starting_after = starting_after
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class ExternalAccountRetrieveParams < ::Stripe::RequestParams
|
|
6
|
+
# Specifies which fields in the response should be expanded.
|
|
7
|
+
attr_accessor :expand
|
|
8
|
+
|
|
9
|
+
def initialize(expand: nil)
|
|
10
|
+
@expand = expand
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class ExternalAccountUpdateParams < ::Stripe::RequestParams
|
|
6
|
+
class Documents < ::Stripe::RequestParams
|
|
7
|
+
class BankAccountOwnershipVerification < ::Stripe::RequestParams
|
|
8
|
+
# One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
|
|
9
|
+
attr_accessor :files
|
|
10
|
+
|
|
11
|
+
def initialize(files: nil)
|
|
12
|
+
@files = files
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
# One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a check.
|
|
16
|
+
attr_accessor :bank_account_ownership_verification
|
|
17
|
+
|
|
18
|
+
def initialize(bank_account_ownership_verification: nil)
|
|
19
|
+
@bank_account_ownership_verification = bank_account_ownership_verification
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
# The name of the person or business that owns the bank account.
|
|
23
|
+
attr_accessor :account_holder_name
|
|
24
|
+
# The type of entity that holds the account. This can be either `individual` or `company`.
|
|
25
|
+
attr_accessor :account_holder_type
|
|
26
|
+
# The bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`.
|
|
27
|
+
attr_accessor :account_type
|
|
28
|
+
# City/District/Suburb/Town/Village.
|
|
29
|
+
attr_accessor :address_city
|
|
30
|
+
# Billing address country, if provided when creating card.
|
|
31
|
+
attr_accessor :address_country
|
|
32
|
+
# Address line 1 (Street address/PO Box/Company name).
|
|
33
|
+
attr_accessor :address_line1
|
|
34
|
+
# Address line 2 (Apartment/Suite/Unit/Building).
|
|
35
|
+
attr_accessor :address_line2
|
|
36
|
+
# State/County/Province/Region.
|
|
37
|
+
attr_accessor :address_state
|
|
38
|
+
# ZIP or postal code.
|
|
39
|
+
attr_accessor :address_zip
|
|
40
|
+
# When set to true, this becomes the default external account for its currency.
|
|
41
|
+
attr_accessor :default_for_currency
|
|
42
|
+
# Documents that may be submitted to satisfy various informational requests.
|
|
43
|
+
attr_accessor :documents
|
|
44
|
+
# Two digit number representing the card’s expiration month.
|
|
45
|
+
attr_accessor :exp_month
|
|
46
|
+
# Four digit number representing the card’s expiration year.
|
|
47
|
+
attr_accessor :exp_year
|
|
48
|
+
# Specifies which fields in the response should be expanded.
|
|
49
|
+
attr_accessor :expand
|
|
50
|
+
# 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`.
|
|
51
|
+
attr_accessor :metadata
|
|
52
|
+
# Cardholder name.
|
|
53
|
+
attr_accessor :name
|
|
54
|
+
|
|
55
|
+
def initialize(
|
|
56
|
+
account_holder_name: nil,
|
|
57
|
+
account_holder_type: nil,
|
|
58
|
+
account_type: nil,
|
|
59
|
+
address_city: nil,
|
|
60
|
+
address_country: nil,
|
|
61
|
+
address_line1: nil,
|
|
62
|
+
address_line2: nil,
|
|
63
|
+
address_state: nil,
|
|
64
|
+
address_zip: nil,
|
|
65
|
+
default_for_currency: nil,
|
|
66
|
+
documents: nil,
|
|
67
|
+
exp_month: nil,
|
|
68
|
+
exp_year: nil,
|
|
69
|
+
expand: nil,
|
|
70
|
+
metadata: nil,
|
|
71
|
+
name: nil
|
|
72
|
+
)
|
|
73
|
+
@account_holder_name = account_holder_name
|
|
74
|
+
@account_holder_type = account_holder_type
|
|
75
|
+
@account_type = account_type
|
|
76
|
+
@address_city = address_city
|
|
77
|
+
@address_country = address_country
|
|
78
|
+
@address_line1 = address_line1
|
|
79
|
+
@address_line2 = address_line2
|
|
80
|
+
@address_state = address_state
|
|
81
|
+
@address_zip = address_zip
|
|
82
|
+
@default_for_currency = default_for_currency
|
|
83
|
+
@documents = documents
|
|
84
|
+
@exp_month = exp_month
|
|
85
|
+
@exp_year = exp_year
|
|
86
|
+
@expand = expand
|
|
87
|
+
@metadata = metadata
|
|
88
|
+
@name = name
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module FinancialConnections
|
|
6
|
+
class AccountInferredBalanceListParams < ::Stripe::RequestParams
|
|
7
|
+
# 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.
|
|
8
|
+
attr_accessor :ending_before
|
|
9
|
+
# Specifies which fields in the response should be expanded.
|
|
10
|
+
attr_accessor :expand
|
|
11
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
|
12
|
+
attr_accessor :limit
|
|
13
|
+
# 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.
|
|
14
|
+
attr_accessor :starting_after
|
|
15
|
+
|
|
16
|
+
def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
|
|
17
|
+
@ending_before = ending_before
|
|
18
|
+
@expand = expand
|
|
19
|
+
@limit = limit
|
|
20
|
+
@starting_after = starting_after
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module FinancialConnections
|
|
6
|
+
class AuthorizationRetrieveParams < ::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
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module FinancialConnections
|
|
6
|
+
class InstitutionListParams < ::Stripe::RequestParams
|
|
7
|
+
# 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.
|
|
8
|
+
attr_accessor :ending_before
|
|
9
|
+
# Specifies which fields in the response should be expanded.
|
|
10
|
+
attr_accessor :expand
|
|
11
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
|
12
|
+
attr_accessor :limit
|
|
13
|
+
# 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.
|
|
14
|
+
attr_accessor :starting_after
|
|
15
|
+
|
|
16
|
+
def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
|
|
17
|
+
@ending_before = ending_before
|
|
18
|
+
@expand = expand
|
|
19
|
+
@limit = limit
|
|
20
|
+
@starting_after = starting_after
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|