2023-01-27 03:22:44 -08:00
|
|
|
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2021-03-10 14:51:05 -08:00
|
|
|
|
|
|
|
export class WiseApi implements ICredentialType {
|
|
|
|
name = 'wiseApi';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-03-10 14:51:05 -08:00
|
|
|
displayName = 'Wise API';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-03-10 14:51:05 -08:00
|
|
|
documentationUrl = 'wise';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2021-03-10 14:51:05 -08:00
|
|
|
{
|
|
|
|
displayName: 'API Token',
|
|
|
|
name: 'apiToken',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2023-08-01 04:08:25 -07:00
|
|
|
typeOptions: { password: true },
|
2021-03-10 14:51:05 -08:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Environment',
|
|
|
|
name: 'environment',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'options',
|
2021-03-10 14:51:05 -08:00
|
|
|
default: 'live',
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Live',
|
|
|
|
value: 'live',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Test',
|
|
|
|
value: 'test',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2022-03-06 02:41:01 -08:00
|
|
|
{
|
|
|
|
displayName: 'Private Key (Optional)',
|
|
|
|
name: 'privateKey',
|
|
|
|
type: 'string',
|
2023-08-01 04:08:25 -07:00
|
|
|
typeOptions: { password: true },
|
2022-03-06 02:41:01 -08:00
|
|
|
default: '',
|
2022-07-24 08:36:17 -07:00
|
|
|
description:
|
|
|
|
'Optional private key used for Strong Customer Authentication (SCA). Only needed to retrieve statements, and execute transfers.',
|
2022-03-06 02:41:01 -08:00
|
|
|
},
|
2021-03-10 14:51:05 -08:00
|
|
|
];
|
|
|
|
}
|