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
|
@@ -222,6 +222,21 @@ module Stripe
|
|
|
222
222
|
end
|
|
223
223
|
end
|
|
224
224
|
|
|
225
|
+
class IdBankTransfer < ::Stripe::StripeObject
|
|
226
|
+
# The reference assigned to the refund.
|
|
227
|
+
attr_reader :reference
|
|
228
|
+
# Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.
|
|
229
|
+
attr_reader :reference_status
|
|
230
|
+
|
|
231
|
+
def self.inner_class_types
|
|
232
|
+
@inner_class_types = {}
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
def self.field_remappings
|
|
236
|
+
@field_remappings = {}
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
|
|
225
240
|
class JpBankTransfer < ::Stripe::StripeObject
|
|
226
241
|
# The reference assigned to the refund.
|
|
227
242
|
attr_reader :reference
|
|
@@ -480,6 +495,8 @@ module Stripe
|
|
|
480
495
|
attr_reader :giropay
|
|
481
496
|
# Attribute for field grabpay
|
|
482
497
|
attr_reader :grabpay
|
|
498
|
+
# Attribute for field id_bank_transfer
|
|
499
|
+
attr_reader :id_bank_transfer
|
|
483
500
|
# Attribute for field jp_bank_transfer
|
|
484
501
|
attr_reader :jp_bank_transfer
|
|
485
502
|
# Attribute for field klarna
|
|
@@ -538,6 +555,7 @@ module Stripe
|
|
|
538
555
|
gb_bank_transfer: GbBankTransfer,
|
|
539
556
|
giropay: Giropay,
|
|
540
557
|
grabpay: Grabpay,
|
|
558
|
+
id_bank_transfer: IdBankTransfer,
|
|
541
559
|
jp_bank_transfer: JpBankTransfer,
|
|
542
560
|
klarna: Klarna,
|
|
543
561
|
mb_way: MbWay,
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Reserve
|
|
6
|
+
# ReserveHolds are used to place a temporary ReserveHold on a merchant's funds.
|
|
7
|
+
class Hold < APIResource
|
|
8
|
+
extend Stripe::APIOperations::List
|
|
9
|
+
|
|
10
|
+
OBJECT_NAME = "reserve.hold"
|
|
11
|
+
def self.object_name
|
|
12
|
+
"reserve.hold"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
class ReleaseSchedule < ::Stripe::StripeObject
|
|
16
|
+
# The time after which the ReserveHold is requested to be released.
|
|
17
|
+
attr_reader :release_after
|
|
18
|
+
# The time at which the ReserveHold is scheduled to be released, automatically set to midnight UTC of the day after `release_after`.
|
|
19
|
+
attr_reader :scheduled_release
|
|
20
|
+
|
|
21
|
+
def self.inner_class_types
|
|
22
|
+
@inner_class_types = {}
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self.field_remappings
|
|
26
|
+
@field_remappings = {}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
# Amount reserved. A positive integer representing how much is reserved in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
30
|
+
attr_reader :amount
|
|
31
|
+
# Amount in cents that can be released from this ReserveHold
|
|
32
|
+
attr_reader :amount_releasable
|
|
33
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
34
|
+
attr_reader :created
|
|
35
|
+
# Indicates which party created this ReserveHold.
|
|
36
|
+
attr_reader :created_by
|
|
37
|
+
# 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).
|
|
38
|
+
attr_reader :currency
|
|
39
|
+
# Unique identifier for the object.
|
|
40
|
+
attr_reader :id
|
|
41
|
+
# Whether there are any funds available to release on this ReserveHold. Note that if the ReserveHold is in the process of being released, this could be false, even though the funds haven't been fully released yet.
|
|
42
|
+
attr_reader :is_releasable
|
|
43
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
44
|
+
attr_reader :livemode
|
|
45
|
+
# 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.
|
|
46
|
+
attr_reader :metadata
|
|
47
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
48
|
+
attr_reader :object
|
|
49
|
+
# The reason for the ReserveHold.
|
|
50
|
+
attr_reader :reason
|
|
51
|
+
# Attribute for field release_schedule
|
|
52
|
+
attr_reader :release_schedule
|
|
53
|
+
# The ReservePlan which produced this ReserveHold (i.e., resplan_123)
|
|
54
|
+
attr_reader :reserve_plan
|
|
55
|
+
# The Charge which funded this ReserveHold (e.g., ch_123)
|
|
56
|
+
attr_reader :source_charge
|
|
57
|
+
# Which source balance type this ReserveHold reserves funds from. One of `bank_account`, `card`, or `fpx`.
|
|
58
|
+
attr_reader :source_type
|
|
59
|
+
|
|
60
|
+
# Returns a list of ReserveHolds previously created. The ReserveHolds are returned in sorted order, with the most recent ReserveHolds appearing first.
|
|
61
|
+
def self.list(params = {}, opts = {})
|
|
62
|
+
request_stripe_object(method: :get, path: "/v1/reserve/holds", params: params, opts: opts)
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
def self.inner_class_types
|
|
66
|
+
@inner_class_types = { release_schedule: ReleaseSchedule }
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
def self.field_remappings
|
|
70
|
+
@field_remappings = {}
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Reserve
|
|
6
|
+
# ReservePlans are used to automatically place holds on a merchant's funds until the plan expires. It takes a portion of each incoming Charge (including those resulting from a Transfer from a platform account).
|
|
7
|
+
class Plan < APIResource
|
|
8
|
+
OBJECT_NAME = "reserve.plan"
|
|
9
|
+
def self.object_name
|
|
10
|
+
"reserve.plan"
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
class FixedRelease < ::Stripe::StripeObject
|
|
14
|
+
# The time after which all reserved funds are requested for release.
|
|
15
|
+
attr_reader :release_after
|
|
16
|
+
# The time at which reserved funds are scheduled for release, automatically set to midnight UTC of the day after `release_after`.
|
|
17
|
+
attr_reader :scheduled_release
|
|
18
|
+
|
|
19
|
+
def self.inner_class_types
|
|
20
|
+
@inner_class_types = {}
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.field_remappings
|
|
24
|
+
@field_remappings = {}
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
class RollingRelease < ::Stripe::StripeObject
|
|
29
|
+
# The number of days to reserve funds before releasing.
|
|
30
|
+
attr_reader :days_after_charge
|
|
31
|
+
# The time at which the ReservePlan expires.
|
|
32
|
+
attr_reader :expires_on
|
|
33
|
+
|
|
34
|
+
def self.inner_class_types
|
|
35
|
+
@inner_class_types = {}
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def self.field_remappings
|
|
39
|
+
@field_remappings = {}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
43
|
+
attr_reader :created
|
|
44
|
+
# Indicates which party created this ReservePlan.
|
|
45
|
+
attr_reader :created_by
|
|
46
|
+
# 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). An unset currency indicates that the plan applies to all currencies.
|
|
47
|
+
attr_reader :currency
|
|
48
|
+
# Time at which the ReservePlan was disabled.
|
|
49
|
+
attr_reader :disabled_at
|
|
50
|
+
# Attribute for field fixed_release
|
|
51
|
+
attr_reader :fixed_release
|
|
52
|
+
# Unique identifier for the object.
|
|
53
|
+
attr_reader :id
|
|
54
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
55
|
+
attr_reader :livemode
|
|
56
|
+
# 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.
|
|
57
|
+
attr_reader :metadata
|
|
58
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
59
|
+
attr_reader :object
|
|
60
|
+
# The percent of each Charge to reserve.
|
|
61
|
+
attr_reader :percent
|
|
62
|
+
# Attribute for field rolling_release
|
|
63
|
+
attr_reader :rolling_release
|
|
64
|
+
# The current status of the ReservePlan. The ReservePlan only affects charges if it is `active`.
|
|
65
|
+
attr_reader :status
|
|
66
|
+
# The type of the ReservePlan.
|
|
67
|
+
attr_reader :type
|
|
68
|
+
|
|
69
|
+
def self.inner_class_types
|
|
70
|
+
@inner_class_types = { fixed_release: FixedRelease, rolling_release: RollingRelease }
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
def self.field_remappings
|
|
74
|
+
@field_remappings = {}
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Reserve
|
|
6
|
+
# ReserveReleases represent the release of funds from a ReserveHold.
|
|
7
|
+
class Release < APIResource
|
|
8
|
+
extend Stripe::APIOperations::List
|
|
9
|
+
|
|
10
|
+
OBJECT_NAME = "reserve.release"
|
|
11
|
+
def self.object_name
|
|
12
|
+
"reserve.release"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
class SourceTransaction < ::Stripe::StripeObject
|
|
16
|
+
# The ID of the dispute.
|
|
17
|
+
attr_reader :dispute
|
|
18
|
+
# The ID of the refund.
|
|
19
|
+
attr_reader :refund
|
|
20
|
+
# The type of source transaction.
|
|
21
|
+
attr_reader :type
|
|
22
|
+
|
|
23
|
+
def self.inner_class_types
|
|
24
|
+
@inner_class_types = {}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def self.field_remappings
|
|
28
|
+
@field_remappings = {}
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
# Amount released. A positive integer representing how much is released in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
32
|
+
attr_reader :amount
|
|
33
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
34
|
+
attr_reader :created
|
|
35
|
+
# Indicates which party created this ReserveRelease.
|
|
36
|
+
attr_reader :created_by
|
|
37
|
+
# 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).
|
|
38
|
+
attr_reader :currency
|
|
39
|
+
# Unique identifier for the object.
|
|
40
|
+
attr_reader :id
|
|
41
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
42
|
+
attr_reader :livemode
|
|
43
|
+
# 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.
|
|
44
|
+
attr_reader :metadata
|
|
45
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
46
|
+
attr_reader :object
|
|
47
|
+
# The reason for the ReserveRelease, indicating why the funds were released.
|
|
48
|
+
attr_reader :reason
|
|
49
|
+
# The release timestamp of the funds.
|
|
50
|
+
attr_reader :released_at
|
|
51
|
+
# The ReserveHold this ReserveRelease is associated with.
|
|
52
|
+
attr_reader :reserve_hold
|
|
53
|
+
# The ReservePlan ID this ReserveRelease is associated with. This field is only populated if a ReserveRelease is created by a ReservePlan disable operation, or from a scheduled ReservedHold expiry.
|
|
54
|
+
attr_reader :reserve_plan
|
|
55
|
+
# Attribute for field source_transaction
|
|
56
|
+
attr_reader :source_transaction
|
|
57
|
+
|
|
58
|
+
# Returns a list of ReserveReleases previously created. The ReserveReleases are returned in sorted order, with the most recent ReserveReleases appearing first.
|
|
59
|
+
def self.list(params = {}, opts = {})
|
|
60
|
+
request_stripe_object(
|
|
61
|
+
method: :get,
|
|
62
|
+
path: "/v1/reserve/releases",
|
|
63
|
+
params: params,
|
|
64
|
+
opts: opts
|
|
65
|
+
)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
def self.inner_class_types
|
|
69
|
+
@inner_class_types = { source_transaction: SourceTransaction }
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def self.field_remappings
|
|
73
|
+
@field_remappings = {}
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -253,6 +253,25 @@ module Stripe
|
|
|
253
253
|
end
|
|
254
254
|
end
|
|
255
255
|
|
|
256
|
+
class IdBankTransfer < ::Stripe::StripeObject
|
|
257
|
+
# Bank where the account is located.
|
|
258
|
+
attr_reader :bank
|
|
259
|
+
# Local bank code of the bank.
|
|
260
|
+
attr_reader :bank_code
|
|
261
|
+
# Name of the bank associated with the bank account.
|
|
262
|
+
attr_reader :bank_name
|
|
263
|
+
# Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
|
|
264
|
+
attr_reader :display_name
|
|
265
|
+
|
|
266
|
+
def self.inner_class_types
|
|
267
|
+
@inner_class_types = {}
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
def self.field_remappings
|
|
271
|
+
@field_remappings = {}
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
|
|
256
275
|
class Ideal < ::Stripe::StripeObject
|
|
257
276
|
# The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
258
277
|
attr_reader :bank
|
|
@@ -360,6 +379,16 @@ module Stripe
|
|
|
360
379
|
end
|
|
361
380
|
end
|
|
362
381
|
|
|
382
|
+
class Pix < ::Stripe::StripeObject
|
|
383
|
+
def self.inner_class_types
|
|
384
|
+
@inner_class_types = {}
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
def self.field_remappings
|
|
388
|
+
@field_remappings = {}
|
|
389
|
+
end
|
|
390
|
+
end
|
|
391
|
+
|
|
363
392
|
class RevolutPay < ::Stripe::StripeObject
|
|
364
393
|
def self.inner_class_types
|
|
365
394
|
@inner_class_types = {}
|
|
@@ -409,6 +438,16 @@ module Stripe
|
|
|
409
438
|
end
|
|
410
439
|
end
|
|
411
440
|
|
|
441
|
+
class StripeBalance < ::Stripe::StripeObject
|
|
442
|
+
def self.inner_class_types
|
|
443
|
+
@inner_class_types = {}
|
|
444
|
+
end
|
|
445
|
+
|
|
446
|
+
def self.field_remappings
|
|
447
|
+
@field_remappings = {}
|
|
448
|
+
end
|
|
449
|
+
end
|
|
450
|
+
|
|
412
451
|
class UsBankAccount < ::Stripe::StripeObject
|
|
413
452
|
def self.inner_class_types
|
|
414
453
|
@inner_class_types = {}
|
|
@@ -436,6 +475,8 @@ module Stripe
|
|
|
436
475
|
attr_reader :card_present
|
|
437
476
|
# Attribute for field cashapp
|
|
438
477
|
attr_reader :cashapp
|
|
478
|
+
# Attribute for field id_bank_transfer
|
|
479
|
+
attr_reader :id_bank_transfer
|
|
439
480
|
# Attribute for field ideal
|
|
440
481
|
attr_reader :ideal
|
|
441
482
|
# Attribute for field kakao_pay
|
|
@@ -454,12 +495,16 @@ module Stripe
|
|
|
454
495
|
attr_reader :paypal
|
|
455
496
|
# Attribute for field payto
|
|
456
497
|
attr_reader :payto
|
|
498
|
+
# Attribute for field pix
|
|
499
|
+
attr_reader :pix
|
|
457
500
|
# Attribute for field revolut_pay
|
|
458
501
|
attr_reader :revolut_pay
|
|
459
502
|
# Attribute for field sepa_debit
|
|
460
503
|
attr_reader :sepa_debit
|
|
461
504
|
# Attribute for field sofort
|
|
462
505
|
attr_reader :sofort
|
|
506
|
+
# Attribute for field stripe_balance
|
|
507
|
+
attr_reader :stripe_balance
|
|
463
508
|
# The type of the payment method used in the SetupIntent (e.g., `card`). An additional hash is included on `payment_method_details` with a name matching this value. It contains confirmation-specific information for the payment method.
|
|
464
509
|
attr_reader :type
|
|
465
510
|
# Attribute for field us_bank_account
|
|
@@ -476,6 +521,7 @@ module Stripe
|
|
|
476
521
|
card: Card,
|
|
477
522
|
card_present: CardPresent,
|
|
478
523
|
cashapp: Cashapp,
|
|
524
|
+
id_bank_transfer: IdBankTransfer,
|
|
479
525
|
ideal: Ideal,
|
|
480
526
|
kakao_pay: KakaoPay,
|
|
481
527
|
klarna: Klarna,
|
|
@@ -485,9 +531,11 @@ module Stripe
|
|
|
485
531
|
nz_bank_account: NzBankAccount,
|
|
486
532
|
paypal: Paypal,
|
|
487
533
|
payto: Payto,
|
|
534
|
+
pix: Pix,
|
|
488
535
|
revolut_pay: RevolutPay,
|
|
489
536
|
sepa_debit: SepaDebit,
|
|
490
537
|
sofort: Sofort,
|
|
538
|
+
stripe_balance: StripeBalance,
|
|
491
539
|
us_bank_account: UsBankAccount,
|
|
492
540
|
}
|
|
493
541
|
end
|
|
@@ -161,6 +161,27 @@ module Stripe
|
|
|
161
161
|
end
|
|
162
162
|
end
|
|
163
163
|
|
|
164
|
+
class PixDisplayQrCode < ::Stripe::StripeObject
|
|
165
|
+
# The raw data string used to generate QR code, it should be used together with QR code library.
|
|
166
|
+
attr_reader :data
|
|
167
|
+
# The date (unix timestamp) when the PIX expires.
|
|
168
|
+
attr_reader :expires_at
|
|
169
|
+
# The URL to the hosted pix instructions page, which allows customers to view the pix QR code.
|
|
170
|
+
attr_reader :hosted_instructions_url
|
|
171
|
+
# The image_url_png string used to render png QR code
|
|
172
|
+
attr_reader :image_url_png
|
|
173
|
+
# The image_url_svg string used to render svg QR code
|
|
174
|
+
attr_reader :image_url_svg
|
|
175
|
+
|
|
176
|
+
def self.inner_class_types
|
|
177
|
+
@inner_class_types = {}
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
def self.field_remappings
|
|
181
|
+
@field_remappings = {}
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
|
|
164
185
|
class RedirectToUrl < ::Stripe::StripeObject
|
|
165
186
|
# If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
|
|
166
187
|
attr_reader :return_url
|
|
@@ -194,6 +215,8 @@ module Stripe
|
|
|
194
215
|
end
|
|
195
216
|
# Attribute for field cashapp_handle_redirect_or_display_qr_code
|
|
196
217
|
attr_reader :cashapp_handle_redirect_or_display_qr_code
|
|
218
|
+
# Attribute for field pix_display_qr_code
|
|
219
|
+
attr_reader :pix_display_qr_code
|
|
197
220
|
# Attribute for field redirect_to_url
|
|
198
221
|
attr_reader :redirect_to_url
|
|
199
222
|
# Type of the next action to perform. Refer to the other child attributes under `next_action` for available values. Examples include: `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`.
|
|
@@ -206,6 +229,7 @@ module Stripe
|
|
|
206
229
|
def self.inner_class_types
|
|
207
230
|
@inner_class_types = {
|
|
208
231
|
cashapp_handle_redirect_or_display_qr_code: CashappHandleRedirectOrDisplayQrCode,
|
|
232
|
+
pix_display_qr_code: PixDisplayQrCode,
|
|
209
233
|
redirect_to_url: RedirectToUrl,
|
|
210
234
|
verify_with_microdeposits: VerifyWithMicrodeposits,
|
|
211
235
|
}
|
|
@@ -392,6 +416,10 @@ module Stripe
|
|
|
392
416
|
class Paypal < ::Stripe::StripeObject
|
|
393
417
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
394
418
|
attr_reader :billing_agreement_id
|
|
419
|
+
# 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).
|
|
420
|
+
attr_reader :currency
|
|
421
|
+
# The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
|
422
|
+
attr_reader :subsellers
|
|
395
423
|
|
|
396
424
|
def self.inner_class_types
|
|
397
425
|
@inner_class_types = {}
|
|
@@ -439,6 +467,45 @@ module Stripe
|
|
|
439
467
|
end
|
|
440
468
|
end
|
|
441
469
|
|
|
470
|
+
class Pix < ::Stripe::StripeObject
|
|
471
|
+
class MandateOptions < ::Stripe::StripeObject
|
|
472
|
+
# Amount to be charged for future payments.
|
|
473
|
+
attr_reader :amount
|
|
474
|
+
# Determines if the amount includes the IOF tax.
|
|
475
|
+
attr_reader :amount_includes_iof
|
|
476
|
+
# Type of amount.
|
|
477
|
+
attr_reader :amount_type
|
|
478
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
|
|
479
|
+
attr_reader :currency
|
|
480
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
|
|
481
|
+
attr_reader :end_date
|
|
482
|
+
# Schedule at which the future payments will be charged.
|
|
483
|
+
attr_reader :payment_schedule
|
|
484
|
+
# Subscription name displayed to buyers in their bank app.
|
|
485
|
+
attr_reader :reference
|
|
486
|
+
# Start date of the mandate, in `YYYY-MM-DD`.
|
|
487
|
+
attr_reader :start_date
|
|
488
|
+
|
|
489
|
+
def self.inner_class_types
|
|
490
|
+
@inner_class_types = {}
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
def self.field_remappings
|
|
494
|
+
@field_remappings = {}
|
|
495
|
+
end
|
|
496
|
+
end
|
|
497
|
+
# Attribute for field mandate_options
|
|
498
|
+
attr_reader :mandate_options
|
|
499
|
+
|
|
500
|
+
def self.inner_class_types
|
|
501
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
def self.field_remappings
|
|
505
|
+
@field_remappings = {}
|
|
506
|
+
end
|
|
507
|
+
end
|
|
508
|
+
|
|
442
509
|
class SepaDebit < ::Stripe::StripeObject
|
|
443
510
|
class MandateOptions < ::Stripe::StripeObject
|
|
444
511
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
|
@@ -469,6 +536,21 @@ module Stripe
|
|
|
469
536
|
class Filters < ::Stripe::StripeObject
|
|
470
537
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
471
538
|
attr_reader :account_subcategories
|
|
539
|
+
# The institution to use to filter for possible accounts to link.
|
|
540
|
+
attr_reader :institution
|
|
541
|
+
|
|
542
|
+
def self.inner_class_types
|
|
543
|
+
@inner_class_types = {}
|
|
544
|
+
end
|
|
545
|
+
|
|
546
|
+
def self.field_remappings
|
|
547
|
+
@field_remappings = {}
|
|
548
|
+
end
|
|
549
|
+
end
|
|
550
|
+
|
|
551
|
+
class ManualEntry < ::Stripe::StripeObject
|
|
552
|
+
# Settings for configuring manual entry of account details.
|
|
553
|
+
attr_reader :mode
|
|
472
554
|
|
|
473
555
|
def self.inner_class_types
|
|
474
556
|
@inner_class_types = {}
|
|
@@ -480,6 +562,8 @@ module Stripe
|
|
|
480
562
|
end
|
|
481
563
|
# Attribute for field filters
|
|
482
564
|
attr_reader :filters
|
|
565
|
+
# Attribute for field manual_entry
|
|
566
|
+
attr_reader :manual_entry
|
|
483
567
|
# The list of permissions to request. The `payment_method` permission must be included.
|
|
484
568
|
attr_reader :permissions
|
|
485
569
|
# Data features requested to be retrieved upon account creation.
|
|
@@ -488,7 +572,7 @@ module Stripe
|
|
|
488
572
|
attr_reader :return_url
|
|
489
573
|
|
|
490
574
|
def self.inner_class_types
|
|
491
|
-
@inner_class_types = { filters: Filters }
|
|
575
|
+
@inner_class_types = { filters: Filters, manual_entry: ManualEntry }
|
|
492
576
|
end
|
|
493
577
|
|
|
494
578
|
def self.field_remappings
|
|
@@ -544,6 +628,8 @@ module Stripe
|
|
|
544
628
|
attr_reader :paypal
|
|
545
629
|
# Attribute for field payto
|
|
546
630
|
attr_reader :payto
|
|
631
|
+
# Attribute for field pix
|
|
632
|
+
attr_reader :pix
|
|
547
633
|
# Attribute for field sepa_debit
|
|
548
634
|
attr_reader :sepa_debit
|
|
549
635
|
# Attribute for field us_bank_account
|
|
@@ -560,6 +646,7 @@ module Stripe
|
|
|
560
646
|
link: Link,
|
|
561
647
|
paypal: Paypal,
|
|
562
648
|
payto: Payto,
|
|
649
|
+
pix: Pix,
|
|
563
650
|
sepa_debit: SepaDebit,
|
|
564
651
|
us_bank_account: UsBankAccount,
|
|
565
652
|
}
|
|
@@ -169,6 +169,8 @@ module Stripe
|
|
|
169
169
|
attr_reader :address_zip_check
|
|
170
170
|
# Attribute for field brand
|
|
171
171
|
attr_reader :brand
|
|
172
|
+
# Attribute for field brand_product
|
|
173
|
+
attr_reader :brand_product
|
|
172
174
|
# Attribute for field country
|
|
173
175
|
attr_reader :country
|
|
174
176
|
# Attribute for field cvc_check
|
|
@@ -218,6 +220,8 @@ module Stripe
|
|
|
218
220
|
attr_reader :authorization_response_code
|
|
219
221
|
# Attribute for field brand
|
|
220
222
|
attr_reader :brand
|
|
223
|
+
# Attribute for field brand_product
|
|
224
|
+
attr_reader :brand_product
|
|
221
225
|
# Attribute for field country
|
|
222
226
|
attr_reader :country
|
|
223
227
|
# Attribute for field cvm_type
|
|
@@ -517,6 +521,35 @@ module Stripe
|
|
|
517
521
|
end
|
|
518
522
|
end
|
|
519
523
|
|
|
524
|
+
class Paypal < ::Stripe::StripeObject
|
|
525
|
+
# Attribute for field billing_agreement
|
|
526
|
+
attr_reader :billing_agreement
|
|
527
|
+
# Attribute for field fingerprint
|
|
528
|
+
attr_reader :fingerprint
|
|
529
|
+
# Attribute for field payer_id
|
|
530
|
+
attr_reader :payer_id
|
|
531
|
+
# Attribute for field reference_id
|
|
532
|
+
attr_reader :reference_id
|
|
533
|
+
# Attribute for field reference_transaction_amount
|
|
534
|
+
attr_reader :reference_transaction_amount
|
|
535
|
+
# Attribute for field reference_transaction_charged
|
|
536
|
+
attr_reader :reference_transaction_charged
|
|
537
|
+
# Attribute for field statement_descriptor
|
|
538
|
+
attr_reader :statement_descriptor
|
|
539
|
+
# Attribute for field transaction_id
|
|
540
|
+
attr_reader :transaction_id
|
|
541
|
+
# Attribute for field verified_email
|
|
542
|
+
attr_reader :verified_email
|
|
543
|
+
|
|
544
|
+
def self.inner_class_types
|
|
545
|
+
@inner_class_types = {}
|
|
546
|
+
end
|
|
547
|
+
|
|
548
|
+
def self.field_remappings
|
|
549
|
+
@field_remappings = {}
|
|
550
|
+
end
|
|
551
|
+
end
|
|
552
|
+
|
|
520
553
|
class Receiver < ::Stripe::StripeObject
|
|
521
554
|
# The address of the receiver source. This is the value that should be communicated to the customer to send their funds to.
|
|
522
555
|
attr_reader :address
|
|
@@ -737,6 +770,8 @@ module Stripe
|
|
|
737
770
|
attr_reader :authenticated
|
|
738
771
|
# Attribute for field brand
|
|
739
772
|
attr_reader :brand
|
|
773
|
+
# Attribute for field brand_product
|
|
774
|
+
attr_reader :brand_product
|
|
740
775
|
# Attribute for field card
|
|
741
776
|
attr_reader :card
|
|
742
777
|
# Attribute for field country
|
|
@@ -849,6 +884,8 @@ module Stripe
|
|
|
849
884
|
attr_reader :owner
|
|
850
885
|
# Attribute for field p24
|
|
851
886
|
attr_reader :p24
|
|
887
|
+
# Attribute for field paypal
|
|
888
|
+
attr_reader :paypal
|
|
852
889
|
# Attribute for field receiver
|
|
853
890
|
attr_reader :receiver
|
|
854
891
|
# Attribute for field redirect
|
|
@@ -954,6 +991,7 @@ module Stripe
|
|
|
954
991
|
multibanco: Multibanco,
|
|
955
992
|
owner: Owner,
|
|
956
993
|
p24: P24,
|
|
994
|
+
paypal: Paypal,
|
|
957
995
|
receiver: Receiver,
|
|
958
996
|
redirect: Redirect,
|
|
959
997
|
sepa_credit_transfer: SepaCreditTransfer,
|