mirror of
https://github.com/vercel/commerce.git
synced 2025-06-28 09:21:22 +00:00
37 lines
754 B
TypeScript
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>;
|