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

41 lines
655 B
TypeScript
Raw Normal View History

import type { ICredentialType, INodeProperties } from 'n8n-workflow';
2019-11-22 09:38:08 -08:00
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';
documentationUrl = 'payPal';
properties: INodeProperties[] = [
2019-11-22 09:38:08 -08:00
{
displayName: 'Client ID',
name: 'clientId',
type: 'string',
2019-11-22 09:38:08 -08:00
default: '',
},
{
displayName: 'Secret',
name: 'secret',
type: 'string',
2019-11-22 09:38:08 -08:00
default: '',
},
2019-11-23 16:36:47 -08:00
{
displayName: 'Environment',
2019-11-23 16:36:47 -08:00
name: 'env',
type: 'options',
2019-11-23 16:36:47 -08:00
default: 'live',
options: [
{
name: 'Sandbox',
2020-10-22 06:46:03 -07:00
value: 'sanbox',
2019-11-23 16:36:47 -08:00
},
{
name: 'Live',
2020-10-22 06:46:03 -07:00
value: 'live',
2019-11-23 16:36:47 -08:00
},
2020-10-22 06:46:03 -07:00
],
2019-11-23 16:36:47 -08:00
},
2019-11-22 09:38:08 -08:00
];
}