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,246 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module MoneyManagement
|
|
7
|
+
# Use ReceivedCredits API to retrieve information on when, where, and how funds are sent into your FinancialAccount.
|
|
8
|
+
class ReceivedCredit < APIResource
|
|
9
|
+
OBJECT_NAME = "v2.money_management.received_credit"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"v2.money_management.received_credit"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
class Amount < ::Stripe::StripeObject
|
|
15
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
16
|
+
attr_reader :value
|
|
17
|
+
# 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).
|
|
18
|
+
attr_reader :currency
|
|
19
|
+
|
|
20
|
+
def self.inner_class_types
|
|
21
|
+
@inner_class_types = {}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def self.field_remappings
|
|
25
|
+
@field_remappings = {}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
class StatusDetails < ::Stripe::StripeObject
|
|
30
|
+
class Failed < ::Stripe::StripeObject
|
|
31
|
+
# Open Enum. The `failed` status reason.
|
|
32
|
+
attr_reader :reason
|
|
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
|
+
|
|
43
|
+
class Returned < ::Stripe::StripeObject
|
|
44
|
+
# Open Enum. The `returned` status reason.
|
|
45
|
+
attr_reader :reason
|
|
46
|
+
|
|
47
|
+
def self.inner_class_types
|
|
48
|
+
@inner_class_types = {}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def self.field_remappings
|
|
52
|
+
@field_remappings = {}
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
# Hash that provides additional information regarding the reason behind a `failed` ReceivedCredit status. It is only present when the ReceivedCredit status is `failed`.
|
|
56
|
+
attr_reader :failed
|
|
57
|
+
# Hash that provides additional information regarding the reason behind a `returned` ReceivedCredit status. It is only present when the ReceivedCredit status is `returned`.
|
|
58
|
+
attr_reader :returned
|
|
59
|
+
|
|
60
|
+
def self.inner_class_types
|
|
61
|
+
@inner_class_types = { failed: Failed, returned: Returned }
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
def self.field_remappings
|
|
65
|
+
@field_remappings = {}
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
class StatusTransitions < ::Stripe::StripeObject
|
|
70
|
+
# Timestamp describing when the ReceivedCredit was marked as `failed`.
|
|
71
|
+
# Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
72
|
+
attr_reader :failed_at
|
|
73
|
+
# Timestamp describing when the ReceivedCredit changed status to `returned`.
|
|
74
|
+
# Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
75
|
+
attr_reader :returned_at
|
|
76
|
+
# Timestamp describing when the ReceivedCredit was marked as `succeeded`.
|
|
77
|
+
# Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
78
|
+
attr_reader :succeeded_at
|
|
79
|
+
|
|
80
|
+
def self.inner_class_types
|
|
81
|
+
@inner_class_types = {}
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
def self.field_remappings
|
|
85
|
+
@field_remappings = {}
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
class BalanceTransfer < ::Stripe::StripeObject
|
|
90
|
+
# The ID of the account that owns the source object originated the ReceivedCredit.
|
|
91
|
+
attr_reader :from_account
|
|
92
|
+
# Open Enum. The type of Stripe Money Movement that originated the ReceivedCredit.
|
|
93
|
+
attr_reader :type
|
|
94
|
+
# The ID of the outbound payment object that originated the ReceivedCredit.
|
|
95
|
+
attr_reader :outbound_payment
|
|
96
|
+
# The ID of the outbound transfer object that originated the ReceivedCredit.
|
|
97
|
+
attr_reader :outbound_transfer
|
|
98
|
+
# The ID of the payout object that originated the ReceivedCredit.
|
|
99
|
+
attr_reader :payout_v1
|
|
100
|
+
# The ID of the v1 transfer object that originated the ReceivedCredit.
|
|
101
|
+
attr_reader :transfer
|
|
102
|
+
|
|
103
|
+
def self.inner_class_types
|
|
104
|
+
@inner_class_types = {}
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
def self.field_remappings
|
|
108
|
+
@field_remappings = {}
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
class BankTransfer < ::Stripe::StripeObject
|
|
113
|
+
class GbBankAccount < ::Stripe::StripeObject
|
|
114
|
+
# The bank name the transfer was received from.
|
|
115
|
+
attr_reader :account_holder_name
|
|
116
|
+
# The bank name the transfer was received from.
|
|
117
|
+
attr_reader :bank_name
|
|
118
|
+
# The last 4 digits of the account number that originated the transfer.
|
|
119
|
+
attr_reader :last4
|
|
120
|
+
# Open Enum. The money transmission network used to send funds for this ReceivedCredit.
|
|
121
|
+
attr_reader :network
|
|
122
|
+
# The sort code of the account that originated the transfer.
|
|
123
|
+
attr_reader :sort_code
|
|
124
|
+
|
|
125
|
+
def self.inner_class_types
|
|
126
|
+
@inner_class_types = {}
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
def self.field_remappings
|
|
130
|
+
@field_remappings = {}
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
class SepaBankAccount < ::Stripe::StripeObject
|
|
135
|
+
# The account holder name of the bank account the transfer was received from.
|
|
136
|
+
attr_reader :account_holder_name
|
|
137
|
+
# The bank name the transfer was received from.
|
|
138
|
+
attr_reader :bank_name
|
|
139
|
+
# The BIC of the SEPA account.
|
|
140
|
+
attr_reader :bic
|
|
141
|
+
# The origination country of the bank transfer.
|
|
142
|
+
attr_reader :country
|
|
143
|
+
# The IBAN that originated the transfer.
|
|
144
|
+
attr_reader :iban
|
|
145
|
+
# The money transmission network used to send funds for this ReceivedCredit.
|
|
146
|
+
attr_reader :network
|
|
147
|
+
|
|
148
|
+
def self.inner_class_types
|
|
149
|
+
@inner_class_types = {}
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
def self.field_remappings
|
|
153
|
+
@field_remappings = {}
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
class UsBankAccount < ::Stripe::StripeObject
|
|
158
|
+
# The bank name the transfer was received from.
|
|
159
|
+
attr_reader :bank_name
|
|
160
|
+
# The last 4 digits of the account number that originated the transfer.
|
|
161
|
+
attr_reader :last4
|
|
162
|
+
# Open Enum. The money transmission network used to send funds for this ReceivedCredit.
|
|
163
|
+
attr_reader :network
|
|
164
|
+
# The routing number of the account that originated the transfer.
|
|
165
|
+
attr_reader :routing_number
|
|
166
|
+
|
|
167
|
+
def self.inner_class_types
|
|
168
|
+
@inner_class_types = {}
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
def self.field_remappings
|
|
172
|
+
@field_remappings = {}
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
# Financial Address on which funds for ReceivedCredit were received.
|
|
176
|
+
attr_reader :financial_address
|
|
177
|
+
# Open Enum. Indicates the origin of source from which external funds originated from.
|
|
178
|
+
attr_reader :origin_type
|
|
179
|
+
# Freeform string set by originator of the external ReceivedCredit.
|
|
180
|
+
attr_reader :statement_descriptor
|
|
181
|
+
# Hash containing the transaction bank details. Present if `origin_type` field value is `gb_bank_account`.
|
|
182
|
+
attr_reader :gb_bank_account
|
|
183
|
+
# Hash containing the transaction bank details. Present if `origin_type` field value is `sepa_bank_account`.
|
|
184
|
+
attr_reader :sepa_bank_account
|
|
185
|
+
# Hash containing the transaction bank details. Present if `origin_type` field value is `us_bank_account`.
|
|
186
|
+
attr_reader :us_bank_account
|
|
187
|
+
|
|
188
|
+
def self.inner_class_types
|
|
189
|
+
@inner_class_types = {
|
|
190
|
+
gb_bank_account: GbBankAccount,
|
|
191
|
+
sepa_bank_account: SepaBankAccount,
|
|
192
|
+
us_bank_account: UsBankAccount,
|
|
193
|
+
}
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
def self.field_remappings
|
|
197
|
+
@field_remappings = {}
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
# The amount and currency of the ReceivedCredit.
|
|
201
|
+
attr_reader :amount
|
|
202
|
+
# Time at which the ReceivedCredit was created.
|
|
203
|
+
# Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
204
|
+
attr_reader :created
|
|
205
|
+
# Freeform string set by originator of the ReceivedCredit.
|
|
206
|
+
attr_reader :description
|
|
207
|
+
# Financial Account ID on which funds for ReceivedCredit were received.
|
|
208
|
+
attr_reader :financial_account
|
|
209
|
+
# Unique identifier for the ReceivedCredit.
|
|
210
|
+
attr_reader :id
|
|
211
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
212
|
+
attr_reader :object
|
|
213
|
+
# A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe’s money transmission licenses.
|
|
214
|
+
attr_reader :receipt_url
|
|
215
|
+
# Open Enum. The status of the ReceivedCredit.
|
|
216
|
+
attr_reader :status
|
|
217
|
+
# This hash contains detailed information that elaborates on the specific status of the ReceivedCredit. e.g the reason behind a failure if the status is marked as `failed`.
|
|
218
|
+
attr_reader :status_details
|
|
219
|
+
# Hash containing timestamps of when the object transitioned to a particular status.
|
|
220
|
+
attr_reader :status_transitions
|
|
221
|
+
# Open Enum. The type of flow that caused the ReceivedCredit.
|
|
222
|
+
attr_reader :type
|
|
223
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
224
|
+
attr_reader :livemode
|
|
225
|
+
# This object stores details about the originating Stripe transaction that resulted in the ReceivedCredit. Present if `type` field value is `balance_transfer`.
|
|
226
|
+
attr_reader :balance_transfer
|
|
227
|
+
# This object stores details about the originating banking transaction that resulted in the ReceivedCredit. Present if `type` field value is `bank_transfer`.
|
|
228
|
+
attr_reader :bank_transfer
|
|
229
|
+
|
|
230
|
+
def self.inner_class_types
|
|
231
|
+
@inner_class_types = {
|
|
232
|
+
amount: Amount,
|
|
233
|
+
status_details: StatusDetails,
|
|
234
|
+
status_transitions: StatusTransitions,
|
|
235
|
+
balance_transfer: BalanceTransfer,
|
|
236
|
+
bank_transfer: BankTransfer,
|
|
237
|
+
}
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
def self.field_remappings
|
|
241
|
+
@field_remappings = {}
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
end
|
|
245
|
+
end
|
|
246
|
+
end
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module MoneyManagement
|
|
7
|
+
# ReceivedDebit resource
|
|
8
|
+
class ReceivedDebit < APIResource
|
|
9
|
+
OBJECT_NAME = "v2.money_management.received_debit"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"v2.money_management.received_debit"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
class Amount < ::Stripe::StripeObject
|
|
15
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
16
|
+
attr_reader :value
|
|
17
|
+
# 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).
|
|
18
|
+
attr_reader :currency
|
|
19
|
+
|
|
20
|
+
def self.inner_class_types
|
|
21
|
+
@inner_class_types = {}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def self.field_remappings
|
|
25
|
+
@field_remappings = {}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
class StatusDetails < ::Stripe::StripeObject
|
|
30
|
+
class Failed < ::Stripe::StripeObject
|
|
31
|
+
# Open Enum. The reason for the failure of the ReceivedDebit.
|
|
32
|
+
attr_reader :reason
|
|
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
|
+
# Information that elaborates on the `failed` status of a ReceivedDebit.
|
|
43
|
+
# It is only present when the ReceivedDebit status is `failed`.
|
|
44
|
+
attr_reader :failed
|
|
45
|
+
|
|
46
|
+
def self.inner_class_types
|
|
47
|
+
@inner_class_types = { failed: Failed }
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def self.field_remappings
|
|
51
|
+
@field_remappings = {}
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class StatusTransitions < ::Stripe::StripeObject
|
|
56
|
+
# The time when the ReceivedDebit was marked as `canceled`.
|
|
57
|
+
# Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`.
|
|
58
|
+
attr_reader :canceled_at
|
|
59
|
+
# The time when the ReceivedDebit was marked as `failed`.
|
|
60
|
+
# Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`.
|
|
61
|
+
attr_reader :failed_at
|
|
62
|
+
# The time when the ReceivedDebit was marked as `succeeded`.
|
|
63
|
+
# Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`.
|
|
64
|
+
attr_reader :succeeded_at
|
|
65
|
+
|
|
66
|
+
def self.inner_class_types
|
|
67
|
+
@inner_class_types = {}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
def self.field_remappings
|
|
71
|
+
@field_remappings = {}
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
class BankTransfer < ::Stripe::StripeObject
|
|
76
|
+
class UsBankAccount < ::Stripe::StripeObject
|
|
77
|
+
# The name of the bank the debit originated from.
|
|
78
|
+
attr_reader :bank_name
|
|
79
|
+
# Open Enum. The bank network the debit was originated on.
|
|
80
|
+
attr_reader :network
|
|
81
|
+
# The routing number of the bank that originated the debit.
|
|
82
|
+
attr_reader :routing_number
|
|
83
|
+
|
|
84
|
+
def self.inner_class_types
|
|
85
|
+
@inner_class_types = {}
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
def self.field_remappings
|
|
89
|
+
@field_remappings = {}
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
# The Financial Address that was debited.
|
|
93
|
+
attr_reader :financial_address
|
|
94
|
+
# Open Enum. The type of the payment method used to originate the debit.
|
|
95
|
+
attr_reader :payment_method_type
|
|
96
|
+
# The statement descriptor set by the originator of the debit.
|
|
97
|
+
attr_reader :statement_descriptor
|
|
98
|
+
# The payment method used to originate the debit.
|
|
99
|
+
attr_reader :us_bank_account
|
|
100
|
+
|
|
101
|
+
def self.inner_class_types
|
|
102
|
+
@inner_class_types = { us_bank_account: UsBankAccount }
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
def self.field_remappings
|
|
106
|
+
@field_remappings = {}
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
# Amount and currency of the ReceivedDebit.
|
|
110
|
+
attr_reader :amount
|
|
111
|
+
# The time at which the ReceivedDebit was created.
|
|
112
|
+
# Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`.
|
|
113
|
+
attr_reader :created
|
|
114
|
+
# Freeform string sent by the originator of the ReceivedDebit.
|
|
115
|
+
attr_reader :description
|
|
116
|
+
# Financial Account on which funds for ReceivedDebit were debited.
|
|
117
|
+
attr_reader :financial_account
|
|
118
|
+
# Unique identifier for the ReceivedDebit.
|
|
119
|
+
attr_reader :id
|
|
120
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
121
|
+
attr_reader :object
|
|
122
|
+
# A link to the Stripe-hosted receipt for this ReceivedDebit.
|
|
123
|
+
attr_reader :receipt_url
|
|
124
|
+
# Open Enum. The status of the ReceivedDebit.
|
|
125
|
+
attr_reader :status
|
|
126
|
+
# Detailed information about the status of the ReceivedDebit.
|
|
127
|
+
attr_reader :status_details
|
|
128
|
+
# The time at which the ReceivedDebit transitioned to a particular status.
|
|
129
|
+
attr_reader :status_transitions
|
|
130
|
+
# Open enum, the type of the received debit.
|
|
131
|
+
attr_reader :type
|
|
132
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
133
|
+
attr_reader :livemode
|
|
134
|
+
# This object stores details about the originating banking transaction that resulted in the ReceivedDebit. Present if `type` field value is `bank_transfer`.
|
|
135
|
+
attr_reader :bank_transfer
|
|
136
|
+
|
|
137
|
+
def self.inner_class_types
|
|
138
|
+
@inner_class_types = {
|
|
139
|
+
amount: Amount,
|
|
140
|
+
status_details: StatusDetails,
|
|
141
|
+
status_transitions: StatusTransitions,
|
|
142
|
+
bank_transfer: BankTransfer,
|
|
143
|
+
}
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
def self.field_remappings
|
|
147
|
+
@field_remappings = {}
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module MoneyManagement
|
|
7
|
+
# Use Transactions to view changes to your FinancialAccount balance over time. Every flow that moves money, such as OutboundPayments or ReceivedCredits, will have one or more Transactions that describes how the flow impacted your balance. Note that while the FinancialAccount balance will always be up to date, be aware that Transactions and TransactionEntries are created shortly after to reflect changes.
|
|
8
|
+
class Transaction < APIResource
|
|
9
|
+
OBJECT_NAME = "v2.money_management.transaction"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"v2.money_management.transaction"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
class Amount < ::Stripe::StripeObject
|
|
15
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
16
|
+
attr_reader :value
|
|
17
|
+
# 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).
|
|
18
|
+
attr_reader :currency
|
|
19
|
+
|
|
20
|
+
def self.inner_class_types
|
|
21
|
+
@inner_class_types = {}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def self.field_remappings
|
|
25
|
+
@field_remappings = {}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
class BalanceImpact < ::Stripe::StripeObject
|
|
30
|
+
class Available < ::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 InboundPending < ::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
|
+
|
|
60
|
+
class OutboundPending < ::Stripe::StripeObject
|
|
61
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
62
|
+
attr_reader :value
|
|
63
|
+
# 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).
|
|
64
|
+
attr_reader :currency
|
|
65
|
+
|
|
66
|
+
def self.inner_class_types
|
|
67
|
+
@inner_class_types = {}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
def self.field_remappings
|
|
71
|
+
@field_remappings = {}
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
# Impact to the available balance.
|
|
75
|
+
attr_reader :available
|
|
76
|
+
# Impact to the inbound_pending balance.
|
|
77
|
+
attr_reader :inbound_pending
|
|
78
|
+
# Impact to the outbound_pending balance.
|
|
79
|
+
attr_reader :outbound_pending
|
|
80
|
+
|
|
81
|
+
def self.inner_class_types
|
|
82
|
+
@inner_class_types = {
|
|
83
|
+
available: Available,
|
|
84
|
+
inbound_pending: InboundPending,
|
|
85
|
+
outbound_pending: OutboundPending,
|
|
86
|
+
}
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
def self.field_remappings
|
|
90
|
+
@field_remappings = {}
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
class Flow < ::Stripe::StripeObject
|
|
95
|
+
# Open Enum. Type of the flow that created the Transaction. The field matching this value will contain the ID of the flow.
|
|
96
|
+
attr_reader :type
|
|
97
|
+
# If applicable, the ID of the Adjustment that created this Transaction.
|
|
98
|
+
attr_reader :adjustment
|
|
99
|
+
# In the future, this will be the ID of the currency conversion that created this Transaction. For now, this field is always null.
|
|
100
|
+
attr_reader :currency_conversion
|
|
101
|
+
# If applicable, the ID of the FeeTransaction that created this Transaction.
|
|
102
|
+
attr_reader :fee_transaction
|
|
103
|
+
# If applicable, the ID of the InboundTransfer that created this Transaction.
|
|
104
|
+
attr_reader :inbound_transfer
|
|
105
|
+
# If applicable, the ID of the OutboundPayment that created this Transaction.
|
|
106
|
+
attr_reader :outbound_payment
|
|
107
|
+
# If applicable, the ID of the OutboundTransfer that created this Transaction.
|
|
108
|
+
attr_reader :outbound_transfer
|
|
109
|
+
# If applicable, the ID of the ReceivedCredit that created this Transaction.
|
|
110
|
+
attr_reader :received_credit
|
|
111
|
+
# If applicable, the ID of the ReceivedDebit that created this Transaction.
|
|
112
|
+
attr_reader :received_debit
|
|
113
|
+
|
|
114
|
+
def self.inner_class_types
|
|
115
|
+
@inner_class_types = {}
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
def self.field_remappings
|
|
119
|
+
@field_remappings = {}
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
class StatusTransitions < ::Stripe::StripeObject
|
|
124
|
+
# The time at which the Transaction became posted. Only present if status == posted.
|
|
125
|
+
attr_reader :posted_at
|
|
126
|
+
# The time at which the Transaction became void. Only present if status == void.
|
|
127
|
+
attr_reader :void_at
|
|
128
|
+
|
|
129
|
+
def self.inner_class_types
|
|
130
|
+
@inner_class_types = {}
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
def self.field_remappings
|
|
134
|
+
@field_remappings = {}
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
# The amount of the Transaction.
|
|
138
|
+
attr_reader :amount
|
|
139
|
+
# The delta to the FinancialAccount's balance. The balance_impact for the Transaction is equal to sum of its
|
|
140
|
+
# TransactionEntries that have `effective_at`s in the past.
|
|
141
|
+
attr_reader :balance_impact
|
|
142
|
+
# Open Enum. A descriptive category used to classify the Transaction.
|
|
143
|
+
attr_reader :category
|
|
144
|
+
# Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
145
|
+
attr_reader :created
|
|
146
|
+
# Indicates the FinancialAccount affected by this Transaction.
|
|
147
|
+
attr_reader :financial_account
|
|
148
|
+
# Details about the Flow object that created the Transaction.
|
|
149
|
+
attr_reader :flow
|
|
150
|
+
# Unique identifier for the object.
|
|
151
|
+
attr_reader :id
|
|
152
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
153
|
+
attr_reader :object
|
|
154
|
+
# Closed Enum. Current status of the Transaction.
|
|
155
|
+
# A Transaction is `pending` if either `balance_impact.inbound_pending` or `balance_impact.outbound_pending` is non-zero.
|
|
156
|
+
# A Transaction is `posted` if only `balance_impact.available` is non-zero.
|
|
157
|
+
# A Transaction is `void` if there is no balance impact.
|
|
158
|
+
# `posted` and `void` are terminal states, and no additional entries will be added to the Transaction.
|
|
159
|
+
attr_reader :status
|
|
160
|
+
# Timestamps for when the Transaction transitioned to a particular status.
|
|
161
|
+
attr_reader :status_transitions
|
|
162
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
163
|
+
attr_reader :livemode
|
|
164
|
+
|
|
165
|
+
def self.inner_class_types
|
|
166
|
+
@inner_class_types = {
|
|
167
|
+
amount: Amount,
|
|
168
|
+
balance_impact: BalanceImpact,
|
|
169
|
+
flow: Flow,
|
|
170
|
+
status_transitions: StatusTransitions,
|
|
171
|
+
}
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
def self.field_remappings
|
|
175
|
+
@field_remappings = {}
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
end
|