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 {
|
2019-12-01 07:15:02 -08:00
|
|
|
name = 'payPalApi';
|
2019-11-23 16:36:47 -08:00
|
|
|
displayName = 'PayPal API';
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'payPal';
|
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',
|
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
|
|
|
];
|
|
|
|
}
|