UNPKG

stripe

Version:
403 lines (402 loc) 18.6 kB
export interface FinancialAccountFeatures { /** * String representing the object's type. Objects of the same type share the same value. */ object: 'treasury.financial_account_features'; /** * Toggle settings for enabling/disabling a feature */ card_issuing?: Treasury.FinancialAccountFeatures.CardIssuing; /** * Toggle settings for enabling/disabling a feature */ deposit_insurance?: Treasury.FinancialAccountFeatures.DepositInsurance; /** * Settings related to Financial Addresses features on a Financial Account */ financial_addresses?: Treasury.FinancialAccountFeatures.FinancialAddresses; /** * InboundTransfers contains inbound transfers features for a FinancialAccount. */ inbound_transfers?: Treasury.FinancialAccountFeatures.InboundTransfers; /** * Toggle settings for enabling/disabling a feature */ intra_stripe_flows?: Treasury.FinancialAccountFeatures.IntraStripeFlows; /** * Settings related to Outbound Payments features on a Financial Account */ outbound_payments?: Treasury.FinancialAccountFeatures.OutboundPayments; /** * OutboundTransfers contains outbound transfers features for a FinancialAccount. */ outbound_transfers?: Treasury.FinancialAccountFeatures.OutboundTransfers; } export declare namespace Treasury { namespace FinancialAccountFeatures { interface CardIssuing { /** * Whether the FinancialAccount should have the Feature. */ requested: boolean; /** * Whether the Feature is operational. */ status: CardIssuing.Status; /** * Additional details; includes at least one entry when the status is not `active`. */ status_details: Array<CardIssuing.StatusDetail>; } interface DepositInsurance { /** * Whether the FinancialAccount should have the Feature. */ requested: boolean; /** * Whether the Feature is operational. */ status: DepositInsurance.Status; /** * Additional details; includes at least one entry when the status is not `active`. */ status_details: Array<DepositInsurance.StatusDetail>; } interface FinancialAddresses { /** * Toggle settings for enabling/disabling the ABA address feature */ aba?: FinancialAddresses.Aba; } interface InboundTransfers { /** * Toggle settings for enabling/disabling an inbound ACH specific feature */ ach?: InboundTransfers.Ach; } interface IntraStripeFlows { /** * Whether the FinancialAccount should have the Feature. */ requested: boolean; /** * Whether the Feature is operational. */ status: IntraStripeFlows.Status; /** * Additional details; includes at least one entry when the status is not `active`. */ status_details: Array<IntraStripeFlows.StatusDetail>; } interface OutboundPayments { /** * Toggle settings for enabling/disabling an outbound ACH specific feature */ ach?: OutboundPayments.Ach; /** * Toggle settings for enabling/disabling a feature */ us_domestic_wire?: OutboundPayments.UsDomesticWire; } interface OutboundTransfers { /** * Toggle settings for enabling/disabling an outbound ACH specific feature */ ach?: OutboundTransfers.Ach; /** * Toggle settings for enabling/disabling a feature */ us_domestic_wire?: OutboundTransfers.UsDomesticWire; } namespace CardIssuing { type Status = 'active' | 'pending' | 'restricted'; interface StatusDetail { /** * Represents the reason why the status is `pending` or `restricted`. */ code: StatusDetail.Code; /** * Represents what the user should do, if anything, to activate the Feature. */ resolution: StatusDetail.Resolution | null; /** * The `platform_restrictions` that are restricting this Feature. */ restriction?: StatusDetail.Restriction; } namespace StatusDetail { type Code = 'activating' | 'capability_not_requested' | 'financial_account_closed' | 'rejected_other' | 'rejected_unsupported_business' | 'requirements_past_due' | 'requirements_pending_verification' | 'restricted_by_platform' | 'restricted_other'; type Resolution = 'contact_stripe' | 'provide_information' | 'remove_restriction'; type Restriction = 'inbound_flows' | 'outbound_flows'; } } namespace DepositInsurance { type Status = 'active' | 'pending' | 'restricted'; interface StatusDetail { /** * Represents the reason why the status is `pending` or `restricted`. */ code: StatusDetail.Code; /** * Represents what the user should do, if anything, to activate the Feature. */ resolution: StatusDetail.Resolution | null; /** * The `platform_restrictions` that are restricting this Feature. */ restriction?: StatusDetail.Restriction; } namespace StatusDetail { type Code = 'activating' | 'capability_not_requested' | 'financial_account_closed' | 'rejected_other' | 'rejected_unsupported_business' | 'requirements_past_due' | 'requirements_pending_verification' | 'restricted_by_platform' | 'restricted_other'; type Resolution = 'contact_stripe' | 'provide_information' | 'remove_restriction'; type Restriction = 'inbound_flows' | 'outbound_flows'; } } namespace FinancialAddresses { interface Aba { /** * Whether the FinancialAccount should have the Feature. */ requested: boolean; /** * Whether the Feature is operational. */ status: Aba.Status; /** * Additional details; includes at least one entry when the status is not `active`. */ status_details: Array<Aba.StatusDetail>; } namespace Aba { type Status = 'active' | 'pending' | 'restricted'; interface StatusDetail { /** * Represents the reason why the status is `pending` or `restricted`. */ code: StatusDetail.Code; /** * Represents what the user should do, if anything, to activate the Feature. */ resolution: StatusDetail.Resolution | null; /** * The `platform_restrictions` that are restricting this Feature. */ restriction?: StatusDetail.Restriction; } namespace StatusDetail { type Code = 'activating' | 'capability_not_requested' | 'financial_account_closed' | 'rejected_other' | 'rejected_unsupported_business' | 'requirements_past_due' | 'requirements_pending_verification' | 'restricted_by_platform' | 'restricted_other'; type Resolution = 'contact_stripe' | 'provide_information' | 'remove_restriction'; type Restriction = 'inbound_flows' | 'outbound_flows'; } } } namespace InboundTransfers { interface Ach { /** * Whether the FinancialAccount should have the Feature. */ requested: boolean; /** * Whether the Feature is operational. */ status: Ach.Status; /** * Additional details; includes at least one entry when the status is not `active`. */ status_details: Array<Ach.StatusDetail>; } namespace Ach { type Status = 'active' | 'pending' | 'restricted'; interface StatusDetail { /** * Represents the reason why the status is `pending` or `restricted`. */ code: StatusDetail.Code; /** * Represents what the user should do, if anything, to activate the Feature. */ resolution: StatusDetail.Resolution | null; /** * The `platform_restrictions` that are restricting this Feature. */ restriction?: StatusDetail.Restriction; } namespace StatusDetail { type Code = 'activating' | 'capability_not_requested' | 'financial_account_closed' | 'rejected_other' | 'rejected_unsupported_business' | 'requirements_past_due' | 'requirements_pending_verification' | 'restricted_by_platform' | 'restricted_other'; type Resolution = 'contact_stripe' | 'provide_information' | 'remove_restriction'; type Restriction = 'inbound_flows' | 'outbound_flows'; } } } namespace IntraStripeFlows { type Status = 'active' | 'pending' | 'restricted'; interface StatusDetail { /** * Represents the reason why the status is `pending` or `restricted`. */ code: StatusDetail.Code; /** * Represents what the user should do, if anything, to activate the Feature. */ resolution: StatusDetail.Resolution | null; /** * The `platform_restrictions` that are restricting this Feature. */ restriction?: StatusDetail.Restriction; } namespace StatusDetail { type Code = 'activating' | 'capability_not_requested' | 'financial_account_closed' | 'rejected_other' | 'rejected_unsupported_business' | 'requirements_past_due' | 'requirements_pending_verification' | 'restricted_by_platform' | 'restricted_other'; type Resolution = 'contact_stripe' | 'provide_information' | 'remove_restriction'; type Restriction = 'inbound_flows' | 'outbound_flows'; } } namespace OutboundPayments { interface Ach { /** * Whether the FinancialAccount should have the Feature. */ requested: boolean; /** * Whether the Feature is operational. */ status: Ach.Status; /** * Additional details; includes at least one entry when the status is not `active`. */ status_details: Array<Ach.StatusDetail>; } interface UsDomesticWire { /** * Whether the FinancialAccount should have the Feature. */ requested: boolean; /** * Whether the Feature is operational. */ status: UsDomesticWire.Status; /** * Additional details; includes at least one entry when the status is not `active`. */ status_details: Array<UsDomesticWire.StatusDetail>; } namespace Ach { type Status = 'active' | 'pending' | 'restricted'; interface StatusDetail { /** * Represents the reason why the status is `pending` or `restricted`. */ code: StatusDetail.Code; /** * Represents what the user should do, if anything, to activate the Feature. */ resolution: StatusDetail.Resolution | null; /** * The `platform_restrictions` that are restricting this Feature. */ restriction?: StatusDetail.Restriction; } namespace StatusDetail { type Code = 'activating' | 'capability_not_requested' | 'financial_account_closed' | 'rejected_other' | 'rejected_unsupported_business' | 'requirements_past_due' | 'requirements_pending_verification' | 'restricted_by_platform' | 'restricted_other'; type Resolution = 'contact_stripe' | 'provide_information' | 'remove_restriction'; type Restriction = 'inbound_flows' | 'outbound_flows'; } } namespace UsDomesticWire { type Status = 'active' | 'pending' | 'restricted'; interface StatusDetail { /** * Represents the reason why the status is `pending` or `restricted`. */ code: StatusDetail.Code; /** * Represents what the user should do, if anything, to activate the Feature. */ resolution: StatusDetail.Resolution | null; /** * The `platform_restrictions` that are restricting this Feature. */ restriction?: StatusDetail.Restriction; } namespace StatusDetail { type Code = 'activating' | 'capability_not_requested' | 'financial_account_closed' | 'rejected_other' | 'rejected_unsupported_business' | 'requirements_past_due' | 'requirements_pending_verification' | 'restricted_by_platform' | 'restricted_other'; type Resolution = 'contact_stripe' | 'provide_information' | 'remove_restriction'; type Restriction = 'inbound_flows' | 'outbound_flows'; } } } namespace OutboundTransfers { interface Ach { /** * Whether the FinancialAccount should have the Feature. */ requested: boolean; /** * Whether the Feature is operational. */ status: Ach.Status; /** * Additional details; includes at least one entry when the status is not `active`. */ status_details: Array<Ach.StatusDetail>; } interface UsDomesticWire { /** * Whether the FinancialAccount should have the Feature. */ requested: boolean; /** * Whether the Feature is operational. */ status: UsDomesticWire.Status; /** * Additional details; includes at least one entry when the status is not `active`. */ status_details: Array<UsDomesticWire.StatusDetail>; } namespace Ach { type Status = 'active' | 'pending' | 'restricted'; interface StatusDetail { /** * Represents the reason why the status is `pending` or `restricted`. */ code: StatusDetail.Code; /** * Represents what the user should do, if anything, to activate the Feature. */ resolution: StatusDetail.Resolution | null; /** * The `platform_restrictions` that are restricting this Feature. */ restriction?: StatusDetail.Restriction; } namespace StatusDetail { type Code = 'activating' | 'capability_not_requested' | 'financial_account_closed' | 'rejected_other' | 'rejected_unsupported_business' | 'requirements_past_due' | 'requirements_pending_verification' | 'restricted_by_platform' | 'restricted_other'; type Resolution = 'contact_stripe' | 'provide_information' | 'remove_restriction'; type Restriction = 'inbound_flows' | 'outbound_flows'; } } namespace UsDomesticWire { type Status = 'active' | 'pending' | 'restricted'; interface StatusDetail { /** * Represents the reason why the status is `pending` or `restricted`. */ code: StatusDetail.Code; /** * Represents what the user should do, if anything, to activate the Feature. */ resolution: StatusDetail.Resolution | null; /** * The `platform_restrictions` that are restricting this Feature. */ restriction?: StatusDetail.Restriction; } namespace StatusDetail { type Code = 'activating' | 'capability_not_requested' | 'financial_account_closed' | 'rejected_other' | 'rejected_unsupported_business' | 'requirements_past_due' | 'requirements_pending_verification' | 'restricted_by_platform' | 'restricted_other'; type Resolution = 'contact_stripe' | 'provide_information' | 'remove_restriction'; type Restriction = 'inbound_flows' | 'outbound_flows'; } } } } }