n8n/packages/nodes-base/credentials/PayPalApi.credentials.ts
2021-01-07 13:43:42 +01:00

42 lines
696 B
TypeScript

import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
export class PayPalApi implements ICredentialType {
name = 'payPalApi';
displayName = 'PayPal API';
documentationUrl = 'payPal';
properties = [
{
displayName: 'Client ID',
name: 'clientId',
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'Secret',
name: 'secret',
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'Environment',
name: 'env',
type: 'options' as NodePropertyTypes,
default: 'live',
options: [
{
name: 'Sanbox',
value: 'sanbox',
},
{
name: 'Live',
value: 'live',
},
],
},
];
}