2020-08-25 01:50:39 -07:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
2021-06-12 09:39:55 -07:00
|
|
|
INodeProperties,
|
2020-08-25 01:50:39 -07:00
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
export class PaddleApi implements ICredentialType {
|
|
|
|
name = 'paddleApi';
|
|
|
|
displayName = 'Paddle API';
|
2020-09-14 00:58:01 -07:00
|
|
|
documentationUrl = 'paddle';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-08-25 01:50:39 -07:00
|
|
|
{
|
|
|
|
displayName: 'Vendor Auth Code',
|
|
|
|
name: 'vendorAuthCode',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-08-25 01:50:39 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Vendor ID',
|
|
|
|
name: 'vendorId',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-08-25 01:50:39 -07:00
|
|
|
default: '',
|
|
|
|
},
|
2021-05-12 11:50:53 -07:00
|
|
|
{
|
|
|
|
displayName: 'Use Sandbox environment API',
|
|
|
|
name: 'sandbox',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'boolean',
|
2021-05-12 11:50:53 -07:00
|
|
|
default: false,
|
|
|
|
},
|
2020-08-25 01:50:39 -07:00
|
|
|
];
|
|
|
|
}
|