@bit-ui-libs/common
Version:
This library was generated with [Nx](https://nx.dev).
30 lines (26 loc) • 766 B
text/typescript
import { FilteredRequest } from '../../common';
import { PaymentTypeEnum } from '../enums';
import { PaymentTypeInfoData } from '../interfaces';
import { PaymentDetailsService } from './payment-details.service';
export interface WithPaymentDetails {
paymentDetails: PaymentDetailsService;
}
export type ListPaymentDetailsRequest = FilteredRequest<{
userId?: string;
paymentDetailId?: string;
}>;
export interface AddPaymentDetailRequest {
paymentDetailId?: string;
profileId: string;
userId?: string;
type?: PaymentTypeEnum;
data?: PaymentTypeInfoData;
isDefault: boolean;
}
export interface EditPaymentDetailRequest {
paymentDetailId: string;
profileId: string;
type: PaymentTypeEnum;
data: PaymentTypeInfoData;
isDefault: boolean;
}