2024-12-26 21:35:53 +01:00

37 lines
754 B
TypeScript

export interface PaymentGatewaysSetting {
id: string;
label: string;
description: string;
type:
| 'text'
| 'email'
| 'number'
| 'color'
| 'password'
| 'textarea'
| 'select'
| 'multiselect'
| 'radio'
| 'image_width'
| 'checkbox';
value: string;
default: string;
tip: string;
placeholder: string;
}
export interface PaymentGateways {
id: string;
title: string;
description: string;
order: number;
enabled: boolean;
method_title: string;
method_description: string;
method_supports: string[];
settings: Partial<PaymentGatewaysSetting>[];
}
export type PaymentGatewayParams = Partial<PaymentGateways>;
export type PaymentGatewaySettingsParams = Partial<PaymentGatewaysSetting>;