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
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module MoneyManagement
|
|
7
|
+
# TransactionEntries represent individual money movements across different states within a Transaction.
|
|
8
|
+
class TransactionEntry < APIResource
|
|
9
|
+
OBJECT_NAME = "v2.money_management.transaction_entry"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"v2.money_management.transaction_entry"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
class BalanceImpact < ::Stripe::StripeObject
|
|
15
|
+
class Available < ::Stripe::StripeObject
|
|
16
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
17
|
+
attr_reader :value
|
|
18
|
+
# 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).
|
|
19
|
+
attr_reader :currency
|
|
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
|
+
|
|
30
|
+
class InboundPending < ::Stripe::StripeObject
|
|
31
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
32
|
+
attr_reader :value
|
|
33
|
+
# 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).
|
|
34
|
+
attr_reader :currency
|
|
35
|
+
|
|
36
|
+
def self.inner_class_types
|
|
37
|
+
@inner_class_types = {}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def self.field_remappings
|
|
41
|
+
@field_remappings = {}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
class OutboundPending < ::Stripe::StripeObject
|
|
46
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
47
|
+
attr_reader :value
|
|
48
|
+
# 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).
|
|
49
|
+
attr_reader :currency
|
|
50
|
+
|
|
51
|
+
def self.inner_class_types
|
|
52
|
+
@inner_class_types = {}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def self.field_remappings
|
|
56
|
+
@field_remappings = {}
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
# Impact to the available balance.
|
|
60
|
+
attr_reader :available
|
|
61
|
+
# Impact to the inbound_pending balance.
|
|
62
|
+
attr_reader :inbound_pending
|
|
63
|
+
# Impact to the outbound_pending balance.
|
|
64
|
+
attr_reader :outbound_pending
|
|
65
|
+
|
|
66
|
+
def self.inner_class_types
|
|
67
|
+
@inner_class_types = {
|
|
68
|
+
available: Available,
|
|
69
|
+
inbound_pending: InboundPending,
|
|
70
|
+
outbound_pending: OutboundPending,
|
|
71
|
+
}
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
def self.field_remappings
|
|
75
|
+
@field_remappings = {}
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
class TransactionDetails < ::Stripe::StripeObject
|
|
80
|
+
class Flow < ::Stripe::StripeObject
|
|
81
|
+
# Open Enum. Type of the flow that created the Transaction. The field matching this value will contain the ID of the flow.
|
|
82
|
+
attr_reader :type
|
|
83
|
+
# If applicable, the ID of the Adjustment that created this Transaction.
|
|
84
|
+
attr_reader :adjustment
|
|
85
|
+
# In the future, this will be the ID of the currency conversion that created this Transaction. For now, this field is always null.
|
|
86
|
+
attr_reader :currency_conversion
|
|
87
|
+
# If applicable, the ID of the FeeTransaction that created this Transaction.
|
|
88
|
+
attr_reader :fee_transaction
|
|
89
|
+
# If applicable, the ID of the InboundTransfer that created this Transaction.
|
|
90
|
+
attr_reader :inbound_transfer
|
|
91
|
+
# If applicable, the ID of the OutboundPayment that created this Transaction.
|
|
92
|
+
attr_reader :outbound_payment
|
|
93
|
+
# If applicable, the ID of the OutboundTransfer that created this Transaction.
|
|
94
|
+
attr_reader :outbound_transfer
|
|
95
|
+
# If applicable, the ID of the ReceivedCredit that created this Transaction.
|
|
96
|
+
attr_reader :received_credit
|
|
97
|
+
# If applicable, the ID of the ReceivedDebit that created this Transaction.
|
|
98
|
+
attr_reader :received_debit
|
|
99
|
+
|
|
100
|
+
def self.inner_class_types
|
|
101
|
+
@inner_class_types = {}
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
def self.field_remappings
|
|
105
|
+
@field_remappings = {}
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
# Closed Enum for now, and will be turned into an Open Enum soon. A descriptive category used to classify the Transaction.
|
|
109
|
+
attr_reader :category
|
|
110
|
+
# Indicates the FinancialAccount affected by this Transaction.
|
|
111
|
+
attr_reader :financial_account
|
|
112
|
+
# Details about the Flow object that created the Transaction.
|
|
113
|
+
attr_reader :flow
|
|
114
|
+
|
|
115
|
+
def self.inner_class_types
|
|
116
|
+
@inner_class_types = { flow: Flow }
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
def self.field_remappings
|
|
120
|
+
@field_remappings = {}
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
# The delta to the FinancialAccount's balance.
|
|
124
|
+
attr_reader :balance_impact
|
|
125
|
+
# Time at which the object was created.
|
|
126
|
+
attr_reader :created
|
|
127
|
+
# Time at which the entry impacted (or will impact if it's in the future) the FinancialAccount balance.
|
|
128
|
+
attr_reader :effective_at
|
|
129
|
+
# Unique identifier for the object.
|
|
130
|
+
attr_reader :id
|
|
131
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
132
|
+
attr_reader :object
|
|
133
|
+
# The Transaction that this TransactionEntry belongs to.
|
|
134
|
+
attr_reader :transaction
|
|
135
|
+
# Details copied from the transaction that this TransactionEntry belongs to.
|
|
136
|
+
attr_reader :transaction_details
|
|
137
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
138
|
+
attr_reader :livemode
|
|
139
|
+
|
|
140
|
+
def self.inner_class_types
|
|
141
|
+
@inner_class_types = {
|
|
142
|
+
balance_impact: BalanceImpact,
|
|
143
|
+
transaction_details: TransactionDetails,
|
|
144
|
+
}
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
def self.field_remappings
|
|
148
|
+
@field_remappings = {}
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
data/lib/stripe/resources.rb
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
require "stripe/resources/account"
|
|
5
5
|
require "stripe/resources/account_link"
|
|
6
|
+
require "stripe/resources/account_notice"
|
|
6
7
|
require "stripe/resources/account_session"
|
|
7
8
|
require "stripe/resources/apple_pay_domain"
|
|
8
9
|
require "stripe/resources/application"
|
|
@@ -15,6 +16,8 @@ require "stripe/resources/balance_transaction"
|
|
|
15
16
|
require "stripe/resources/bank_account"
|
|
16
17
|
require "stripe/resources/billing/alert"
|
|
17
18
|
require "stripe/resources/billing/alert_triggered"
|
|
19
|
+
require "stripe/resources/billing/analytics/meter_usage"
|
|
20
|
+
require "stripe/resources/billing/analytics/meter_usage_row"
|
|
18
21
|
require "stripe/resources/billing/credit_balance_summary"
|
|
19
22
|
require "stripe/resources/billing/credit_balance_transaction"
|
|
20
23
|
require "stripe/resources/billing/credit_grant"
|
|
@@ -25,6 +28,9 @@ require "stripe/resources/billing/meter_event_summary"
|
|
|
25
28
|
require "stripe/resources/billing_portal/configuration"
|
|
26
29
|
require "stripe/resources/billing_portal/session"
|
|
27
30
|
require "stripe/resources/capability"
|
|
31
|
+
require "stripe/resources/capital/financing_offer"
|
|
32
|
+
require "stripe/resources/capital/financing_summary"
|
|
33
|
+
require "stripe/resources/capital/financing_transaction"
|
|
28
34
|
require "stripe/resources/card"
|
|
29
35
|
require "stripe/resources/cash_balance"
|
|
30
36
|
require "stripe/resources/charge"
|
|
@@ -53,12 +59,15 @@ require "stripe/resources/exchange_rate"
|
|
|
53
59
|
require "stripe/resources/file"
|
|
54
60
|
require "stripe/resources/file_link"
|
|
55
61
|
require "stripe/resources/financial_connections/account"
|
|
62
|
+
require "stripe/resources/financial_connections/account_inferred_balance"
|
|
56
63
|
require "stripe/resources/financial_connections/account_owner"
|
|
57
64
|
require "stripe/resources/financial_connections/account_ownership"
|
|
65
|
+
require "stripe/resources/financial_connections/institution"
|
|
58
66
|
require "stripe/resources/financial_connections/session"
|
|
59
67
|
require "stripe/resources/financial_connections/transaction"
|
|
60
68
|
require "stripe/resources/forwarding/request"
|
|
61
69
|
require "stripe/resources/funding_instructions"
|
|
70
|
+
require "stripe/resources/fx_quote"
|
|
62
71
|
require "stripe/resources/identity/verification_report"
|
|
63
72
|
require "stripe/resources/identity/verification_session"
|
|
64
73
|
require "stripe/resources/invoice"
|
|
@@ -69,14 +78,20 @@ require "stripe/resources/invoice_rendering_template"
|
|
|
69
78
|
require "stripe/resources/issuing/authorization"
|
|
70
79
|
require "stripe/resources/issuing/card"
|
|
71
80
|
require "stripe/resources/issuing/cardholder"
|
|
81
|
+
require "stripe/resources/issuing/credit_underwriting_record"
|
|
72
82
|
require "stripe/resources/issuing/dispute"
|
|
83
|
+
require "stripe/resources/issuing/dispute_settlement_detail"
|
|
84
|
+
require "stripe/resources/issuing/fraud_liability_debit"
|
|
73
85
|
require "stripe/resources/issuing/personalization_design"
|
|
74
86
|
require "stripe/resources/issuing/physical_bundle"
|
|
87
|
+
require "stripe/resources/issuing/settlement"
|
|
75
88
|
require "stripe/resources/issuing/token"
|
|
76
89
|
require "stripe/resources/issuing/transaction"
|
|
77
90
|
require "stripe/resources/line_item"
|
|
78
91
|
require "stripe/resources/login_link"
|
|
79
92
|
require "stripe/resources/mandate"
|
|
93
|
+
require "stripe/resources/margin"
|
|
94
|
+
require "stripe/resources/order"
|
|
80
95
|
require "stripe/resources/payment_attempt_record"
|
|
81
96
|
require "stripe/resources/payment_intent"
|
|
82
97
|
require "stripe/resources/payment_intent_amount_details_line_item"
|
|
@@ -89,16 +104,24 @@ require "stripe/resources/payout"
|
|
|
89
104
|
require "stripe/resources/person"
|
|
90
105
|
require "stripe/resources/plan"
|
|
91
106
|
require "stripe/resources/price"
|
|
107
|
+
require "stripe/resources/privacy/redaction_job"
|
|
108
|
+
require "stripe/resources/privacy/redaction_job_validation_error"
|
|
92
109
|
require "stripe/resources/product"
|
|
93
110
|
require "stripe/resources/product_feature"
|
|
94
111
|
require "stripe/resources/promotion_code"
|
|
95
112
|
require "stripe/resources/quote"
|
|
113
|
+
require "stripe/resources/quote_line"
|
|
114
|
+
require "stripe/resources/quote_preview_invoice"
|
|
115
|
+
require "stripe/resources/quote_preview_subscription_schedule"
|
|
96
116
|
require "stripe/resources/radar/early_fraud_warning"
|
|
97
117
|
require "stripe/resources/radar/value_list"
|
|
98
118
|
require "stripe/resources/radar/value_list_item"
|
|
99
119
|
require "stripe/resources/refund"
|
|
100
120
|
require "stripe/resources/reporting/report_run"
|
|
101
121
|
require "stripe/resources/reporting/report_type"
|
|
122
|
+
require "stripe/resources/reserve/hold"
|
|
123
|
+
require "stripe/resources/reserve/plan"
|
|
124
|
+
require "stripe/resources/reserve/release"
|
|
102
125
|
require "stripe/resources/reserve_transaction"
|
|
103
126
|
require "stripe/resources/reversal"
|
|
104
127
|
require "stripe/resources/review"
|
|
@@ -115,6 +138,7 @@ require "stripe/resources/subscription_schedule"
|
|
|
115
138
|
require "stripe/resources/tax/association"
|
|
116
139
|
require "stripe/resources/tax/calculation"
|
|
117
140
|
require "stripe/resources/tax/calculation_line_item"
|
|
141
|
+
require "stripe/resources/tax/form"
|
|
118
142
|
require "stripe/resources/tax/registration"
|
|
119
143
|
require "stripe/resources/tax/settings"
|
|
120
144
|
require "stripe/resources/tax/transaction"
|
|
@@ -128,6 +152,7 @@ require "stripe/resources/terminal/connection_token"
|
|
|
128
152
|
require "stripe/resources/terminal/location"
|
|
129
153
|
require "stripe/resources/terminal/onboarding_link"
|
|
130
154
|
require "stripe/resources/terminal/reader"
|
|
155
|
+
require "stripe/resources/terminal/reader_collected_data"
|
|
131
156
|
require "stripe/resources/test_helpers/test_clock"
|
|
132
157
|
require "stripe/resources/token"
|
|
133
158
|
require "stripe/resources/topup"
|
|
@@ -143,9 +168,15 @@ require "stripe/resources/treasury/received_credit"
|
|
|
143
168
|
require "stripe/resources/treasury/received_debit"
|
|
144
169
|
require "stripe/resources/treasury/transaction"
|
|
145
170
|
require "stripe/resources/treasury/transaction_entry"
|
|
171
|
+
require "stripe/resources/v2/billing/bill_setting"
|
|
172
|
+
require "stripe/resources/v2/billing/bill_setting_version"
|
|
173
|
+
require "stripe/resources/v2/billing/cadence"
|
|
174
|
+
require "stripe/resources/v2/billing/collection_setting"
|
|
175
|
+
require "stripe/resources/v2/billing/collection_setting_version"
|
|
146
176
|
require "stripe/resources/v2/billing/meter_event"
|
|
147
177
|
require "stripe/resources/v2/billing/meter_event_adjustment"
|
|
148
178
|
require "stripe/resources/v2/billing/meter_event_session"
|
|
179
|
+
require "stripe/resources/v2/billing/profile"
|
|
149
180
|
require "stripe/resources/v2/core/account"
|
|
150
181
|
require "stripe/resources/v2/core/account_link"
|
|
151
182
|
require "stripe/resources/v2/core/account_person"
|
|
@@ -153,8 +184,81 @@ require "stripe/resources/v2/core/account_person_token"
|
|
|
153
184
|
require "stripe/resources/v2/core/account_token"
|
|
154
185
|
require "stripe/resources/v2/core/event"
|
|
155
186
|
require "stripe/resources/v2/core/event_destination"
|
|
187
|
+
require "stripe/resources/v2/core/vault/gb_bank_account"
|
|
188
|
+
require "stripe/resources/v2/core/vault/us_bank_account"
|
|
156
189
|
require "stripe/resources/v2/deleted_object"
|
|
190
|
+
require "stripe/resources/v2/financial_address_credit_simulation"
|
|
191
|
+
require "stripe/resources/v2/financial_address_generated_microdeposits"
|
|
192
|
+
require "stripe/resources/v2/money_management/adjustment"
|
|
193
|
+
require "stripe/resources/v2/money_management/financial_account"
|
|
194
|
+
require "stripe/resources/v2/money_management/financial_address"
|
|
195
|
+
require "stripe/resources/v2/money_management/inbound_transfer"
|
|
196
|
+
require "stripe/resources/v2/money_management/outbound_payment"
|
|
197
|
+
require "stripe/resources/v2/money_management/outbound_payment_quote"
|
|
198
|
+
require "stripe/resources/v2/money_management/outbound_setup_intent"
|
|
199
|
+
require "stripe/resources/v2/money_management/outbound_transfer"
|
|
200
|
+
require "stripe/resources/v2/money_management/payout_method"
|
|
201
|
+
require "stripe/resources/v2/money_management/payout_methods_bank_account_spec"
|
|
202
|
+
require "stripe/resources/v2/money_management/received_credit"
|
|
203
|
+
require "stripe/resources/v2/money_management/received_debit"
|
|
204
|
+
require "stripe/resources/v2/money_management/transaction"
|
|
205
|
+
require "stripe/resources/v2/money_management/transaction_entry"
|
|
157
206
|
require "stripe/resources/webhook_endpoint"
|
|
158
207
|
require "stripe/events/v1_billing_meter_error_report_triggered_event"
|
|
159
208
|
require "stripe/events/v1_billing_meter_no_meter_found_event"
|
|
209
|
+
require "stripe/events/v2_core_account_closed_event"
|
|
210
|
+
require "stripe/events/v2_core_account_created_event"
|
|
211
|
+
require "stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event"
|
|
212
|
+
require "stripe/events/v2_core_account_including_configuration_customer_updated_event"
|
|
213
|
+
require "stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event"
|
|
214
|
+
require "stripe/events/v2_core_account_including_configuration_merchant_updated_event"
|
|
215
|
+
require "stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event"
|
|
216
|
+
require "stripe/events/v2_core_account_including_configuration_recipient_updated_event"
|
|
217
|
+
require "stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event"
|
|
218
|
+
require "stripe/events/v2_core_account_including_configuration_storer_updated_event"
|
|
219
|
+
require "stripe/events/v2_core_account_including_defaults_updated_event"
|
|
220
|
+
require "stripe/events/v2_core_account_including_identity_updated_event"
|
|
221
|
+
require "stripe/events/v2_core_account_including_requirements_updated_event"
|
|
222
|
+
require "stripe/events/v2_core_account_link_returned_event"
|
|
223
|
+
require "stripe/events/v2_core_account_person_created_event"
|
|
224
|
+
require "stripe/events/v2_core_account_person_deleted_event"
|
|
225
|
+
require "stripe/events/v2_core_account_person_updated_event"
|
|
226
|
+
require "stripe/events/v2_core_account_updated_event"
|
|
160
227
|
require "stripe/events/v2_core_event_destination_ping_event"
|
|
228
|
+
require "stripe/events/v2_core_health_event_generation_failure_resolved_event"
|
|
229
|
+
require "stripe/events/v2_money_management_adjustment_created_event"
|
|
230
|
+
require "stripe/events/v2_money_management_financial_account_created_event"
|
|
231
|
+
require "stripe/events/v2_money_management_financial_account_updated_event"
|
|
232
|
+
require "stripe/events/v2_money_management_financial_address_activated_event"
|
|
233
|
+
require "stripe/events/v2_money_management_financial_address_failed_event"
|
|
234
|
+
require "stripe/events/v2_money_management_inbound_transfer_available_event"
|
|
235
|
+
require "stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event"
|
|
236
|
+
require "stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event"
|
|
237
|
+
require "stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event"
|
|
238
|
+
require "stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event"
|
|
239
|
+
require "stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event"
|
|
240
|
+
require "stripe/events/v2_money_management_outbound_payment_canceled_event"
|
|
241
|
+
require "stripe/events/v2_money_management_outbound_payment_created_event"
|
|
242
|
+
require "stripe/events/v2_money_management_outbound_payment_failed_event"
|
|
243
|
+
require "stripe/events/v2_money_management_outbound_payment_posted_event"
|
|
244
|
+
require "stripe/events/v2_money_management_outbound_payment_returned_event"
|
|
245
|
+
require "stripe/events/v2_money_management_outbound_payment_updated_event"
|
|
246
|
+
require "stripe/events/v2_money_management_outbound_transfer_canceled_event"
|
|
247
|
+
require "stripe/events/v2_money_management_outbound_transfer_created_event"
|
|
248
|
+
require "stripe/events/v2_money_management_outbound_transfer_failed_event"
|
|
249
|
+
require "stripe/events/v2_money_management_outbound_transfer_posted_event"
|
|
250
|
+
require "stripe/events/v2_money_management_outbound_transfer_returned_event"
|
|
251
|
+
require "stripe/events/v2_money_management_outbound_transfer_updated_event"
|
|
252
|
+
require "stripe/events/v2_money_management_payout_method_created_event"
|
|
253
|
+
require "stripe/events/v2_money_management_payout_method_updated_event"
|
|
254
|
+
require "stripe/events/v2_money_management_received_credit_available_event"
|
|
255
|
+
require "stripe/events/v2_money_management_received_credit_failed_event"
|
|
256
|
+
require "stripe/events/v2_money_management_received_credit_returned_event"
|
|
257
|
+
require "stripe/events/v2_money_management_received_credit_succeeded_event"
|
|
258
|
+
require "stripe/events/v2_money_management_received_debit_canceled_event"
|
|
259
|
+
require "stripe/events/v2_money_management_received_debit_failed_event"
|
|
260
|
+
require "stripe/events/v2_money_management_received_debit_pending_event"
|
|
261
|
+
require "stripe/events/v2_money_management_received_debit_succeeded_event"
|
|
262
|
+
require "stripe/events/v2_money_management_received_debit_updated_event"
|
|
263
|
+
require "stripe/events/v2_money_management_transaction_created_event"
|
|
264
|
+
require "stripe/events/v2_money_management_transaction_updated_event"
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class AccountNoticeService < StripeService
|
|
6
|
+
# Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
|
|
7
|
+
def list(params = {}, opts = {})
|
|
8
|
+
request(
|
|
9
|
+
method: :get,
|
|
10
|
+
path: "/v1/account_notices",
|
|
11
|
+
params: params,
|
|
12
|
+
opts: opts,
|
|
13
|
+
base_address: :api
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# Retrieves an AccountNotice object.
|
|
18
|
+
def retrieve(account_notice, params = {}, opts = {})
|
|
19
|
+
request(
|
|
20
|
+
method: :get,
|
|
21
|
+
path: format("/v1/account_notices/%<account_notice>s", { account_notice: CGI.escape(account_notice) }),
|
|
22
|
+
params: params,
|
|
23
|
+
opts: opts,
|
|
24
|
+
base_address: :api
|
|
25
|
+
)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Updates an AccountNotice object.
|
|
29
|
+
def update(account_notice, params = {}, opts = {})
|
|
30
|
+
request(
|
|
31
|
+
method: :post,
|
|
32
|
+
path: format("/v1/account_notices/%<account_notice>s", { account_notice: CGI.escape(account_notice) }),
|
|
33
|
+
params: params,
|
|
34
|
+
opts: opts,
|
|
35
|
+
base_address: :api
|
|
36
|
+
)
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Billing
|
|
6
|
+
module Analytics
|
|
7
|
+
class MeterUsageService < StripeService
|
|
8
|
+
# Returns aggregated meter usage data for a customer within a specified time interval. The data can be grouped by various dimensions and can include multiple meters if specified.
|
|
9
|
+
def retrieve(params = {}, opts = {})
|
|
10
|
+
request(
|
|
11
|
+
method: :get,
|
|
12
|
+
path: "/v1/billing/analytics/meter_usage",
|
|
13
|
+
params: params,
|
|
14
|
+
opts: opts,
|
|
15
|
+
base_address: :api
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Billing
|
|
6
|
+
class AnalyticsService < StripeService
|
|
7
|
+
attr_reader :meter_usage
|
|
8
|
+
|
|
9
|
+
def initialize(requestor)
|
|
10
|
+
super
|
|
11
|
+
@meter_usage = Stripe::Billing::Analytics::MeterUsageService.new(@requestor)
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class BillingService < StripeService
|
|
6
|
-
attr_reader :alerts, :credit_balance_summary, :credit_balance_transactions, :credit_grants, :meters, :meter_events, :meter_event_adjustments
|
|
6
|
+
attr_reader :alerts, :analytics, :credit_balance_summary, :credit_balance_transactions, :credit_grants, :meters, :meter_events, :meter_event_adjustments
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
9
|
super
|
|
10
10
|
@alerts = Stripe::Billing::AlertService.new(@requestor)
|
|
11
|
+
@analytics = Stripe::Billing::AnalyticsService.new(@requestor)
|
|
11
12
|
@credit_balance_summary = Stripe::Billing::CreditBalanceSummaryService.new(@requestor)
|
|
12
13
|
@credit_balance_transactions = Stripe::Billing::CreditBalanceTransactionService
|
|
13
14
|
.new(@requestor)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Capital
|
|
6
|
+
class FinancingOfferService < StripeService
|
|
7
|
+
# Retrieves the financing offers available for Connected accounts that belong to your platform.
|
|
8
|
+
def list(params = {}, opts = {})
|
|
9
|
+
request(
|
|
10
|
+
method: :get,
|
|
11
|
+
path: "/v1/capital/financing_offers",
|
|
12
|
+
params: params,
|
|
13
|
+
opts: opts,
|
|
14
|
+
base_address: :api
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# Acknowledges that platform has received and delivered the financing_offer to
|
|
19
|
+
# the intended merchant recipient.
|
|
20
|
+
def mark_delivered(financing_offer, params = {}, opts = {})
|
|
21
|
+
request(
|
|
22
|
+
method: :post,
|
|
23
|
+
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(financing_offer) }),
|
|
24
|
+
params: params,
|
|
25
|
+
opts: opts,
|
|
26
|
+
base_address: :api
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Get the details of the financing offer
|
|
31
|
+
def retrieve(financing_offer, params = {}, opts = {})
|
|
32
|
+
request(
|
|
33
|
+
method: :get,
|
|
34
|
+
path: format("/v1/capital/financing_offers/%<financing_offer>s", { financing_offer: CGI.escape(financing_offer) }),
|
|
35
|
+
params: params,
|
|
36
|
+
opts: opts,
|
|
37
|
+
base_address: :api
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Capital
|
|
6
|
+
class FinancingSummaryService < StripeService
|
|
7
|
+
# Retrieve the financing summary object for the account.
|
|
8
|
+
def retrieve(params = {}, opts = {})
|
|
9
|
+
request(
|
|
10
|
+
method: :get,
|
|
11
|
+
path: "/v1/capital/financing_summary",
|
|
12
|
+
params: params,
|
|
13
|
+
opts: opts,
|
|
14
|
+
base_address: :api
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Capital
|
|
6
|
+
class FinancingTransactionService < StripeService
|
|
7
|
+
# Returns a list of financing transactions. The transactions are returned in sorted order,
|
|
8
|
+
# with the most recent transactions appearing first.
|
|
9
|
+
def list(params = {}, opts = {})
|
|
10
|
+
request(
|
|
11
|
+
method: :get,
|
|
12
|
+
path: "/v1/capital/financing_transactions",
|
|
13
|
+
params: params,
|
|
14
|
+
opts: opts,
|
|
15
|
+
base_address: :api
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
# Retrieves a financing transaction for a financing offer.
|
|
20
|
+
def retrieve(financing_transaction, params = {}, opts = {})
|
|
21
|
+
request(
|
|
22
|
+
method: :get,
|
|
23
|
+
path: format("/v1/capital/financing_transactions/%<financing_transaction>s", { financing_transaction: CGI.escape(financing_transaction) }),
|
|
24
|
+
params: params,
|
|
25
|
+
opts: opts,
|
|
26
|
+
base_address: :api
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class CapitalService < StripeService
|
|
6
|
+
attr_reader :financing_offers, :financing_summary, :financing_transactions
|
|
7
|
+
|
|
8
|
+
def initialize(requestor)
|
|
9
|
+
super
|
|
10
|
+
@financing_offers = Stripe::Capital::FinancingOfferService.new(@requestor)
|
|
11
|
+
@financing_summary = Stripe::Capital::FinancingSummaryService.new(@requestor)
|
|
12
|
+
@financing_transactions = Stripe::Capital::FinancingTransactionService.new(@requestor)
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class ExternalAccountService < StripeService
|
|
6
|
+
# Create an external account for a given connected account.
|
|
7
|
+
def create(params = {}, opts = {})
|
|
8
|
+
request(
|
|
9
|
+
method: :post,
|
|
10
|
+
path: "/v1/external_accounts",
|
|
11
|
+
params: params,
|
|
12
|
+
opts: opts,
|
|
13
|
+
base_address: :api
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# Delete a specified external account for a given account.
|
|
18
|
+
def delete(id, params = {}, opts = {})
|
|
19
|
+
request(
|
|
20
|
+
method: :delete,
|
|
21
|
+
path: format("/v1/external_accounts/%<id>s", { id: CGI.escape(id) }),
|
|
22
|
+
params: params,
|
|
23
|
+
opts: opts,
|
|
24
|
+
base_address: :api
|
|
25
|
+
)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# List external accounts for an account.
|
|
29
|
+
def list(params = {}, opts = {})
|
|
30
|
+
request(
|
|
31
|
+
method: :get,
|
|
32
|
+
path: "/v1/external_accounts",
|
|
33
|
+
params: params,
|
|
34
|
+
opts: opts,
|
|
35
|
+
base_address: :api
|
|
36
|
+
)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Retrieve a specified external account for a given account.
|
|
40
|
+
def retrieve(id, params = {}, opts = {})
|
|
41
|
+
request(
|
|
42
|
+
method: :get,
|
|
43
|
+
path: format("/v1/external_accounts/%<id>s", { id: CGI.escape(id) }),
|
|
44
|
+
params: params,
|
|
45
|
+
opts: opts,
|
|
46
|
+
base_address: :api
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Updates the metadata, account holder name, account holder type of a bank account belonging to
|
|
51
|
+
# a connected account and optionally sets it as the default for its currency. Other bank account
|
|
52
|
+
# details are not editable by design.
|
|
53
|
+
#
|
|
54
|
+
# You can only update bank accounts when [account.controller.requirement_collection is application, which includes <a href="/connect/custom-accounts">Custom accounts](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection).
|
|
55
|
+
#
|
|
56
|
+
# You can re-enable a disabled bank account by performing an update call without providing any
|
|
57
|
+
# arguments or changes.
|
|
58
|
+
def update(id, params = {}, opts = {})
|
|
59
|
+
request(
|
|
60
|
+
method: :post,
|
|
61
|
+
path: format("/v1/external_accounts/%<id>s", { id: CGI.escape(id) }),
|
|
62
|
+
params: params,
|
|
63
|
+
opts: opts,
|
|
64
|
+
base_address: :api
|
|
65
|
+
)
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module FinancialConnections
|
|
6
|
+
class AccountInferredBalanceService < StripeService
|
|
7
|
+
# Lists the recorded inferred balances for a Financial Connections Account.
|
|
8
|
+
def list(account, params = {}, opts = {})
|
|
9
|
+
request(
|
|
10
|
+
method: :get,
|
|
11
|
+
path: format("/v1/financial_connections/accounts/%<account>s/inferred_balances", { account: CGI.escape(account) }),
|
|
12
|
+
params: params,
|
|
13
|
+
opts: opts,
|
|
14
|
+
base_address: :api
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module FinancialConnections
|
|
6
6
|
class AccountService < StripeService
|
|
7
|
-
attr_reader :owners
|
|
7
|
+
attr_reader :inferred_balances, :owners
|
|
8
8
|
|
|
9
9
|
def initialize(requestor)
|
|
10
10
|
super
|
|
11
|
+
@inferred_balances = Stripe::FinancialConnections::AccountInferredBalanceService
|
|
12
|
+
.new(@requestor)
|
|
11
13
|
@owners = Stripe::FinancialConnections::AccountOwnerService.new(@requestor)
|
|
12
14
|
end
|
|
13
15
|
|