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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
691 B
TypeScript
Raw Permalink 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',
typeOptions: { password: true },
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
];
}