- 부가서비스 공통 ListDateGroupProps,ListItemProps 추가
This commit is contained in:
@@ -68,6 +68,92 @@ export interface SortOptionsBoxProps {
|
||||
sortBy: SortByKeys;
|
||||
onClickToSort: (sortBy: SortByKeys) => void;
|
||||
};
|
||||
|
||||
// 부가서비스 카테고리 enum
|
||||
export enum AdditionalServiceCategory {
|
||||
KeyInPayment = 'KeyInPayment',
|
||||
AccountHolderSearch = 'AccountHolderSearch',
|
||||
LinkPaymentShipping = 'LinkPaymentShipping',
|
||||
LinkPaymentPending = 'LinkPaymentPending',
|
||||
FundTransfer = 'FundTransfer',
|
||||
SettlementAgency = 'SettlementAgency',
|
||||
}
|
||||
|
||||
// 각 서비스별 개별 타입들
|
||||
export interface KeyInPaymentListItem {
|
||||
tid?: string;
|
||||
mid?: string;
|
||||
stateDate?: string;
|
||||
stateCode?: string;
|
||||
stateName?: string;
|
||||
installmentMonth?: string;
|
||||
serviceCode?: string;
|
||||
serviceName?: string;
|
||||
serviceDetailName?: string;
|
||||
goodsAmount?: number;
|
||||
}
|
||||
|
||||
export interface AccountHolderSearchListItem {
|
||||
requestId?: string;
|
||||
requestDate?: string;
|
||||
bank?: string;
|
||||
accountNumber?: string;
|
||||
accountHolder?: string;
|
||||
processResult?: string;
|
||||
}
|
||||
|
||||
export interface LinkPaymentShippingListItem {
|
||||
transactionId?: string;
|
||||
customerName?: string;
|
||||
status?: string;
|
||||
channel?: string;
|
||||
amount?: number;
|
||||
sendDate?: string;
|
||||
transactionDate?: string;
|
||||
}
|
||||
|
||||
export interface LinkPaymentPendingListItem {
|
||||
transactionId?: string;
|
||||
customerName?: string;
|
||||
status?: string;
|
||||
channel?: string;
|
||||
amount?: number;
|
||||
requestDate?: string;
|
||||
}
|
||||
|
||||
// 공통 ListItemProps (transaction과 동일한 패턴)
|
||||
export interface ListItemProps extends KeyInPaymentListItem, AccountHolderSearchListItem, LinkPaymentShippingListItem, LinkPaymentPendingListItem {
|
||||
additionalServiceCategory?: AdditionalServiceCategory;
|
||||
}
|
||||
|
||||
// 공통 ListDateGroupProps
|
||||
export interface ListDateGroupProps {
|
||||
additionalServiceCategory?: AdditionalServiceCategory;
|
||||
date?: string;
|
||||
items?: Array<ListItemProps>;
|
||||
}
|
||||
// 공통 리스트 Props
|
||||
export interface AdditionalServiceListProps {
|
||||
additionalServiceCategory: AdditionalServiceCategory;
|
||||
listItems: Record<string, Array<ListItemProps>>;
|
||||
}
|
||||
export interface LinkPaymentShippingListProps {
|
||||
additionalServiceCategory: AdditionalServiceCategory;
|
||||
listItems: Record<string, Array<ListItemProps>>;
|
||||
}
|
||||
export interface LinkPaymentPendingListProps {
|
||||
additionalServiceCategory: AdditionalServiceCategory;
|
||||
listItems: Record<string, Array<ListItemProps>>;
|
||||
}
|
||||
export interface AccountHolderSearchListProps {
|
||||
additionalServiceCategory: AdditionalServiceCategory;
|
||||
listItems: Record<string, Array<ListItemProps>>;
|
||||
}
|
||||
export interface KeyInPaymentListProps {
|
||||
additionalServiceCategory: AdditionalServiceCategory;
|
||||
listItems: Record<string, Array<ListItemProps>>;
|
||||
}
|
||||
|
||||
export interface SettlementAgencyTabProps {
|
||||
activeTab: SettlementAgencyTabKeys;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user