n8n/packages/nodes-base/credentials/PayPalApi.credentials.ts

41 lines
662 B
TypeScript
Raw Normal View History

2019-11-22 09:38:08 -08:00
import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
2019-11-23 16:36:47 -08:00
export class PayPalApi implements ICredentialType {
name = 'payPalApi';
2019-11-23 16:36:47 -08:00
displayName = 'PayPal API';
2019-11-22 09:38:08 -08:00
properties = [
{
displayName: 'Client ID',
name: 'clientId',
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'Secret',
name: 'secret',
type: 'string' as NodePropertyTypes,
default: '',
},
2019-11-23 16:36:47 -08:00
{
displayName: 'Enviroment',
name: 'env',
type: 'options' as NodePropertyTypes,
default: 'live',
options: [
{
name: 'Sanbox',
value: 'sanbox'
},
{
name: 'Live',
value: 'live'
},
]
},
2019-11-22 09:38:08 -08:00
];
}