mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-28 14:09:43 -08:00
41 lines
662 B
TypeScript
41 lines
662 B
TypeScript
import {
|
|
ICredentialType,
|
|
NodePropertyTypes,
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
export class PayPalApi implements ICredentialType {
|
|
name = 'payPalApi';
|
|
displayName = 'PayPal API';
|
|
properties = [
|
|
{
|
|
displayName: 'Client ID',
|
|
name: 'clientId',
|
|
type: 'string' as NodePropertyTypes,
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Secret',
|
|
name: 'secret',
|
|
type: 'string' as NodePropertyTypes,
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Enviroment',
|
|
name: 'env',
|
|
type: 'options' as NodePropertyTypes,
|
|
default: 'live',
|
|
options: [
|
|
{
|
|
name: 'Sanbox',
|
|
value: 'sanbox'
|
|
},
|
|
{
|
|
name: 'Live',
|
|
value: 'live'
|
|
},
|
|
]
|
|
},
|
|
];
|
|
}
|