n8n-nodes-base
Version:
Base nodes of n8n
49 lines (44 loc) • 1.19 kB
text/typescript
/**
* Wise Node - Version 1
* Discriminator: resource=account, operation=getBalances
*/
interface Credentials {
wiseApi: CredentialReference;
}
/** Retrieve balances for all account currencies of this user */
export type WiseV1AccountGetBalancesParams = {
resource: 'account';
operation: 'getBalances';
/**
* ID of the user profile to retrieve the balance of. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @default []
*/
profileId?: string | Expression<string>;
};
export type WiseV1AccountGetBalancesOutput = {
active?: boolean;
balances?: Array<{
amount?: {
currency?: string;
};
balanceType?: string;
currency?: string;
id?: number;
reservedAmount?: {
currency?: string;
};
}>;
creationTime?: string;
eligible?: boolean;
id?: number;
modificationTime?: string;
profileId?: number;
recipientId?: number;
};
export type WiseV1AccountGetBalancesNode = {
type: 'n8n-nodes-base.wise';
version: 1;
credentials?: Credentials;
config: NodeConfig<WiseV1AccountGetBalancesParams>;
output?: Items<WiseV1AccountGetBalancesOutput>;
};