stripe 18.1.0 → 18.2.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +34 -0
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +63 -0
- data/lib/stripe/event_types.rb +213 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -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_account_including_defaults_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -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 +61 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +52 -0
- data/lib/stripe/params/account_create_params.rb +304 -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 +266 -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 +1648 -0
- data/lib/stripe/params/charge_update_params.rb +1648 -0
- data/lib/stripe/params/checkout/session_create_params.rb +129 -3
- data/lib/stripe/params/checkout/session_update_params.rb +141 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +77 -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/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 +30 -1
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +107 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +822 -9
- data/lib/stripe/params/invoice_item_create_params.rb +33 -1
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +107 -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_cancel_params.rb +13 -0
- data/lib/stripe/params/order_create_params.rb +2061 -0
- data/lib/stripe/params/order_line_item_list_params.rb +22 -0
- data/lib/stripe/params/order_list_line_items_params.rb +22 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_reopen_params.rb +13 -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 +2065 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1627 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +2971 -11
- data/lib/stripe/params/payment_intent_create_params.rb +2971 -11
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +21 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3003 -12
- 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 +77 -0
- data/lib/stripe/params/price_update_params.rb +19 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/quote_create_params.rb +801 -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 +809 -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 +158 -3
- data/lib/stripe/params/setup_intent_create_params.rb +158 -3
- data/lib/stripe/params/setup_intent_update_params.rb +158 -3
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +254 -5
- data/lib/stripe/params/subscription_item_create_params.rb +46 -2
- data/lib/stripe/params/subscription_item_update_params.rb +29 -1
- data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +163 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
- data/lib/stripe/params/subscription_update_params.rb +237 -4
- 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/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 +77 -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_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 +223 -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 +229 -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 +251 -4
- data/lib/stripe/params/v2/core/account_token_create_params.rb +13 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +243 -3
- 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 +50 -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 +33 -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/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 +62 -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 +110 -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 +79 -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 +85 -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 +80 -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 +89 -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/test_helpers/financial_address_credit_params.rb +34 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params.rb +151 -0
- data/lib/stripe/resources/account.rb +182 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -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 +215 -1
- data/lib/stripe/resources/checkout/session.rb +104 -4
- data/lib/stripe/resources/confirmation_token.rb +133 -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 +25 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +65 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/invoice.rb +150 -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 +66 -1
- data/lib/stripe/resources/mandate.rb +43 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +987 -0
- data/lib/stripe/resources/payment_attempt_record.rb +181 -1
- data/lib/stripe/resources/payment_intent.rb +737 -4
- 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 +181 -1
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/quote.rb +569 -2
- data/lib/stripe/resources/quote_line.rb +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1182 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.rb +74 -0
- data/lib/stripe/resources/reserve/plan.rb +78 -0
- data/lib/stripe/resources/reserve/release.rb +77 -0
- data/lib/stripe/resources/setup_attempt.rb +48 -0
- data/lib/stripe/resources/setup_intent.rb +88 -1
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +230 -0
- data/lib/stripe/resources/subscription_item.rb +20 -1
- data/lib/stripe/resources/subscription_schedule.rb +196 -3
- data/lib/stripe/resources/tax/form.rb +264 -0
- 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_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 +90 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
- data/lib/stripe/resources/v2/billing/profile.rb +46 -0
- data/lib/stripe/resources/v2/core/account.rb +565 -3
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +83 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +44 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +82 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +188 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +197 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +261 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +202 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +240 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +111 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +246 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +152 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +180 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +153 -0
- data/lib/stripe/resources.rb +104 -0
- data/lib/stripe/services/account_notice_service.rb +39 -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/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/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -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_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -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/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/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +9 -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 +61 -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/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 +2 -1
- 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 +65 -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/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 +3 -1
- data/lib/stripe/services.rb +55 -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 +425 -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/stripe_client.rbi +13 -0
- data/rbi/stripe.rbi +93543 -33169
- metadata +314 -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
|
|
@@ -281,6 +316,8 @@ module Stripe
|
|
|
281
316
|
end
|
|
282
317
|
end
|
|
283
318
|
|
|
319
|
+
class Shopeepay < ::Stripe::RequestParams; end
|
|
320
|
+
|
|
284
321
|
class Sofort < ::Stripe::RequestParams
|
|
285
322
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
286
323
|
attr_accessor :country
|
|
@@ -290,6 +327,18 @@ module Stripe
|
|
|
290
327
|
end
|
|
291
328
|
end
|
|
292
329
|
|
|
330
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
331
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
332
|
+
attr_accessor :account
|
|
333
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
334
|
+
attr_accessor :source_type
|
|
335
|
+
|
|
336
|
+
def initialize(account: nil, source_type: nil)
|
|
337
|
+
@account = account
|
|
338
|
+
@source_type = source_type
|
|
339
|
+
end
|
|
340
|
+
end
|
|
341
|
+
|
|
293
342
|
class Swish < ::Stripe::RequestParams; end
|
|
294
343
|
class Twint < ::Stripe::RequestParams; end
|
|
295
344
|
|
|
@@ -362,8 +411,12 @@ module Stripe
|
|
|
362
411
|
attr_accessor :fpx
|
|
363
412
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
364
413
|
attr_accessor :giropay
|
|
414
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
415
|
+
attr_accessor :gopay
|
|
365
416
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
366
417
|
attr_accessor :grabpay
|
|
418
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
419
|
+
attr_accessor :id_bank_transfer
|
|
367
420
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
368
421
|
attr_accessor :ideal
|
|
369
422
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -402,14 +455,20 @@ module Stripe
|
|
|
402
455
|
attr_accessor :paynow
|
|
403
456
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
|
404
457
|
attr_accessor :paypal
|
|
458
|
+
# If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
|
|
459
|
+
attr_accessor :paypay
|
|
405
460
|
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
406
461
|
attr_accessor :payto
|
|
407
462
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
408
463
|
attr_accessor :pix
|
|
409
464
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
410
465
|
attr_accessor :promptpay
|
|
466
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
467
|
+
attr_accessor :qris
|
|
411
468
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
412
469
|
attr_accessor :radar_options
|
|
470
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
471
|
+
attr_accessor :rechnung
|
|
413
472
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
414
473
|
attr_accessor :revolut_pay
|
|
415
474
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -418,8 +477,12 @@ module Stripe
|
|
|
418
477
|
attr_accessor :satispay
|
|
419
478
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
|
420
479
|
attr_accessor :sepa_debit
|
|
480
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
481
|
+
attr_accessor :shopeepay
|
|
421
482
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
422
483
|
attr_accessor :sofort
|
|
484
|
+
# This hash contains details about the Stripe balance payment method.
|
|
485
|
+
attr_accessor :stripe_balance
|
|
423
486
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
424
487
|
attr_accessor :swish
|
|
425
488
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
@@ -454,7 +517,9 @@ module Stripe
|
|
|
454
517
|
eps: nil,
|
|
455
518
|
fpx: nil,
|
|
456
519
|
giropay: nil,
|
|
520
|
+
gopay: nil,
|
|
457
521
|
grabpay: nil,
|
|
522
|
+
id_bank_transfer: nil,
|
|
458
523
|
ideal: nil,
|
|
459
524
|
interac_present: nil,
|
|
460
525
|
kakao_pay: nil,
|
|
@@ -474,15 +539,20 @@ module Stripe
|
|
|
474
539
|
payco: nil,
|
|
475
540
|
paynow: nil,
|
|
476
541
|
paypal: nil,
|
|
542
|
+
paypay: nil,
|
|
477
543
|
payto: nil,
|
|
478
544
|
pix: nil,
|
|
479
545
|
promptpay: nil,
|
|
546
|
+
qris: nil,
|
|
480
547
|
radar_options: nil,
|
|
548
|
+
rechnung: nil,
|
|
481
549
|
revolut_pay: nil,
|
|
482
550
|
samsung_pay: nil,
|
|
483
551
|
satispay: nil,
|
|
484
552
|
sepa_debit: nil,
|
|
553
|
+
shopeepay: nil,
|
|
485
554
|
sofort: nil,
|
|
555
|
+
stripe_balance: nil,
|
|
486
556
|
swish: nil,
|
|
487
557
|
twint: nil,
|
|
488
558
|
type: nil,
|
|
@@ -510,7 +580,9 @@ module Stripe
|
|
|
510
580
|
@eps = eps
|
|
511
581
|
@fpx = fpx
|
|
512
582
|
@giropay = giropay
|
|
583
|
+
@gopay = gopay
|
|
513
584
|
@grabpay = grabpay
|
|
585
|
+
@id_bank_transfer = id_bank_transfer
|
|
514
586
|
@ideal = ideal
|
|
515
587
|
@interac_present = interac_present
|
|
516
588
|
@kakao_pay = kakao_pay
|
|
@@ -530,15 +602,20 @@ module Stripe
|
|
|
530
602
|
@payco = payco
|
|
531
603
|
@paynow = paynow
|
|
532
604
|
@paypal = paypal
|
|
605
|
+
@paypay = paypay
|
|
533
606
|
@payto = payto
|
|
534
607
|
@pix = pix
|
|
535
608
|
@promptpay = promptpay
|
|
609
|
+
@qris = qris
|
|
536
610
|
@radar_options = radar_options
|
|
611
|
+
@rechnung = rechnung
|
|
537
612
|
@revolut_pay = revolut_pay
|
|
538
613
|
@samsung_pay = samsung_pay
|
|
539
614
|
@satispay = satispay
|
|
540
615
|
@sepa_debit = sepa_debit
|
|
616
|
+
@shopeepay = shopeepay
|
|
541
617
|
@sofort = sofort
|
|
618
|
+
@stripe_balance = stripe_balance
|
|
542
619
|
@swish = swish
|
|
543
620
|
@twint = twint
|
|
544
621
|
@type = type
|
|
@@ -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
|
|
@@ -32,6 +32,26 @@ module Stripe
|
|
|
32
32
|
@us_bank_account = us_bank_account
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
|
+
|
|
36
|
+
class NetworkDetails < ::Stripe::RequestParams
|
|
37
|
+
class Ach < ::Stripe::RequestParams
|
|
38
|
+
# Addenda record data associated with this OutboundTransfer.
|
|
39
|
+
attr_accessor :addenda
|
|
40
|
+
|
|
41
|
+
def initialize(addenda: nil)
|
|
42
|
+
@addenda = addenda
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
# Optional fields for `ach`.
|
|
46
|
+
attr_accessor :ach
|
|
47
|
+
# The type of flow that originated the OutboundTransfer.
|
|
48
|
+
attr_accessor :type
|
|
49
|
+
|
|
50
|
+
def initialize(ach: nil, type: nil)
|
|
51
|
+
@ach = ach
|
|
52
|
+
@type = type
|
|
53
|
+
end
|
|
54
|
+
end
|
|
35
55
|
# Amount (in cents) to be transferred.
|
|
36
56
|
attr_accessor :amount
|
|
37
57
|
# 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).
|
|
@@ -50,6 +70,8 @@ module Stripe
|
|
|
50
70
|
attr_accessor :financial_account
|
|
51
71
|
# 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`.
|
|
52
72
|
attr_accessor :metadata
|
|
73
|
+
# Details about the network used for the OutboundTransfer.
|
|
74
|
+
attr_accessor :network_details
|
|
53
75
|
# Statement descriptor to be shown on the receiving end of an OutboundTransfer. Maximum 10 characters for `ach` transfers or 140 characters for `us_domestic_wire` transfers. The default value is "transfer". Can only include -#.$&*, spaces, and alphanumeric characters.
|
|
54
76
|
attr_accessor :statement_descriptor
|
|
55
77
|
|
|
@@ -63,6 +85,7 @@ module Stripe
|
|
|
63
85
|
expand: nil,
|
|
64
86
|
financial_account: nil,
|
|
65
87
|
metadata: nil,
|
|
88
|
+
network_details: nil,
|
|
66
89
|
statement_descriptor: nil
|
|
67
90
|
)
|
|
68
91
|
@amount = amount
|
|
@@ -74,6 +97,7 @@ module Stripe
|
|
|
74
97
|
@expand = expand
|
|
75
98
|
@financial_account = financial_account
|
|
76
99
|
@metadata = metadata
|
|
100
|
+
@network_details = network_details
|
|
77
101
|
@statement_descriptor = statement_descriptor
|
|
78
102
|
end
|
|
79
103
|
end
|
|
@@ -29,6 +29,26 @@ module Stripe
|
|
|
29
29
|
@us_bank_account = us_bank_account
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
|
+
|
|
33
|
+
class NetworkDetails < ::Stripe::RequestParams
|
|
34
|
+
class Ach < ::Stripe::RequestParams
|
|
35
|
+
# ACH Addenda record
|
|
36
|
+
attr_accessor :addenda
|
|
37
|
+
|
|
38
|
+
def initialize(addenda: nil)
|
|
39
|
+
@addenda = addenda
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
# Optional fields for `ach`.
|
|
43
|
+
attr_accessor :ach
|
|
44
|
+
# The type of flow that originated the ReceivedCredit.
|
|
45
|
+
attr_accessor :type
|
|
46
|
+
|
|
47
|
+
def initialize(ach: nil, type: nil)
|
|
48
|
+
@ach = ach
|
|
49
|
+
@type = type
|
|
50
|
+
end
|
|
51
|
+
end
|
|
32
52
|
# Amount (in cents) to be transferred.
|
|
33
53
|
attr_accessor :amount
|
|
34
54
|
# 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).
|
|
@@ -43,6 +63,8 @@ module Stripe
|
|
|
43
63
|
attr_accessor :initiating_payment_method_details
|
|
44
64
|
# 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.
|
|
45
65
|
attr_accessor :network
|
|
66
|
+
# Details about the network used for the ReceivedCredit.
|
|
67
|
+
attr_accessor :network_details
|
|
46
68
|
|
|
47
69
|
def initialize(
|
|
48
70
|
amount: nil,
|
|
@@ -51,7 +73,8 @@ module Stripe
|
|
|
51
73
|
expand: nil,
|
|
52
74
|
financial_account: nil,
|
|
53
75
|
initiating_payment_method_details: nil,
|
|
54
|
-
network: nil
|
|
76
|
+
network: nil,
|
|
77
|
+
network_details: nil
|
|
55
78
|
)
|
|
56
79
|
@amount = amount
|
|
57
80
|
@currency = currency
|
|
@@ -60,6 +83,7 @@ module Stripe
|
|
|
60
83
|
@financial_account = financial_account
|
|
61
84
|
@initiating_payment_method_details = initiating_payment_method_details
|
|
62
85
|
@network = network
|
|
86
|
+
@network_details = network_details
|
|
63
87
|
end
|
|
64
88
|
end
|
|
65
89
|
end
|
|
@@ -29,6 +29,26 @@ module Stripe
|
|
|
29
29
|
@us_bank_account = us_bank_account
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
|
+
|
|
33
|
+
class NetworkDetails < ::Stripe::RequestParams
|
|
34
|
+
class Ach < ::Stripe::RequestParams
|
|
35
|
+
# Addenda record data associated with this ReceivedDebit.
|
|
36
|
+
attr_accessor :addenda
|
|
37
|
+
|
|
38
|
+
def initialize(addenda: nil)
|
|
39
|
+
@addenda = addenda
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
# Optional fields for `ach`.
|
|
43
|
+
attr_accessor :ach
|
|
44
|
+
# The type of flow that originated the ReceivedDebit.
|
|
45
|
+
attr_accessor :type
|
|
46
|
+
|
|
47
|
+
def initialize(ach: nil, type: nil)
|
|
48
|
+
@ach = ach
|
|
49
|
+
@type = type
|
|
50
|
+
end
|
|
51
|
+
end
|
|
32
52
|
# Amount (in cents) to be transferred.
|
|
33
53
|
attr_accessor :amount
|
|
34
54
|
# 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).
|
|
@@ -43,6 +63,8 @@ module Stripe
|
|
|
43
63
|
attr_accessor :initiating_payment_method_details
|
|
44
64
|
# 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.
|
|
45
65
|
attr_accessor :network
|
|
66
|
+
# Details about the network used for the ReceivedDebit.
|
|
67
|
+
attr_accessor :network_details
|
|
46
68
|
|
|
47
69
|
def initialize(
|
|
48
70
|
amount: nil,
|
|
@@ -51,7 +73,8 @@ module Stripe
|
|
|
51
73
|
expand: nil,
|
|
52
74
|
financial_account: nil,
|
|
53
75
|
initiating_payment_method_details: nil,
|
|
54
|
-
network: nil
|
|
76
|
+
network: nil,
|
|
77
|
+
network_details: nil
|
|
55
78
|
)
|
|
56
79
|
@amount = amount
|
|
57
80
|
@currency = currency
|
|
@@ -60,6 +83,7 @@ module Stripe
|
|
|
60
83
|
@financial_account = financial_account
|
|
61
84
|
@initiating_payment_method_details = initiating_payment_method_details
|
|
62
85
|
@network = network
|
|
86
|
+
@network_details = network_details
|
|
63
87
|
end
|
|
64
88
|
end
|
|
65
89
|
end
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Billing
|
|
7
|
+
class BillSettingCreateParams < ::Stripe::RequestParams
|
|
8
|
+
class Calculation < ::Stripe::RequestParams
|
|
9
|
+
class Tax < ::Stripe::RequestParams
|
|
10
|
+
# Determines if tax will be calculated automatically based on a PTC or manually based on rules defined by the merchant. Defaults to "manual".
|
|
11
|
+
attr_accessor :type
|
|
12
|
+
|
|
13
|
+
def initialize(type: nil)
|
|
14
|
+
@type = type
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
# Settings for calculating tax.
|
|
18
|
+
attr_accessor :tax
|
|
19
|
+
|
|
20
|
+
def initialize(tax: nil)
|
|
21
|
+
@tax = tax
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
class Invoice < ::Stripe::RequestParams
|
|
26
|
+
class TimeUntilDue < ::Stripe::RequestParams
|
|
27
|
+
# The interval unit for the time until due.
|
|
28
|
+
attr_accessor :interval
|
|
29
|
+
# The number of interval units. For example, if interval=day and interval_count=30,
|
|
30
|
+
# the invoice will be due in 30 days.
|
|
31
|
+
attr_accessor :interval_count
|
|
32
|
+
|
|
33
|
+
def initialize(interval: nil, interval_count: nil)
|
|
34
|
+
@interval = interval
|
|
35
|
+
@interval_count = interval_count
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
# The amount of time until the invoice will be overdue for payment.
|
|
39
|
+
attr_accessor :time_until_due
|
|
40
|
+
|
|
41
|
+
def initialize(time_until_due: nil)
|
|
42
|
+
@time_until_due = time_until_due
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
# Settings related to calculating a bill.
|
|
46
|
+
attr_accessor :calculation
|
|
47
|
+
# An optional customer-facing display name for the CollectionSetting object.
|
|
48
|
+
# Maximum length of 250 characters.
|
|
49
|
+
attr_accessor :display_name
|
|
50
|
+
# Settings related to invoice behavior.
|
|
51
|
+
attr_accessor :invoice
|
|
52
|
+
# The ID of the invoice rendering template to be used when generating invoices.
|
|
53
|
+
attr_accessor :invoice_rendering_template
|
|
54
|
+
# A lookup key used to retrieve settings dynamically from a static string.
|
|
55
|
+
# This may be up to 200 characters.
|
|
56
|
+
attr_accessor :lookup_key
|
|
57
|
+
|
|
58
|
+
def initialize(
|
|
59
|
+
calculation: nil,
|
|
60
|
+
display_name: nil,
|
|
61
|
+
invoice: nil,
|
|
62
|
+
invoice_rendering_template: nil,
|
|
63
|
+
lookup_key: nil
|
|
64
|
+
)
|
|
65
|
+
@calculation = calculation
|
|
66
|
+
@display_name = display_name
|
|
67
|
+
@invoice = invoice
|
|
68
|
+
@invoice_rendering_template = invoice_rendering_template
|
|
69
|
+
@lookup_key = lookup_key
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|