2023-01-27 03:22:44 -08:00
|
|
|
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2020-08-25 01:50:39 -07:00
|
|
|
|
|
|
|
export class PaddleApi implements ICredentialType {
|
|
|
|
name = 'paddleApi';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2020-08-25 01:50:39 -07:00
|
|
|
displayName = 'Paddle API';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2020-09-14 00:58:01 -07:00
|
|
|
documentationUrl = 'paddle';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
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
|
|
|
{
|
2022-04-13 23:32:27 -07:00
|
|
|
displayName: 'Use Sandbox Environment API',
|
2021-05-12 11:50:53 -07:00
|
|
|
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
|
|
|
];
|
|
|
|
}
|