통합거래조회 UI api

This commit is contained in:
focp212@naver.com
2025-09-11 13:40:21 +09:00
parent 409a711b9a
commit 1b4af7a82f
27 changed files with 1056 additions and 390 deletions

View File

@@ -37,7 +37,7 @@ export interface SortOptionsBoxProps {
sortBy: SortByKeys;
onCliCkToSort: (sortBy: SortByKeys) => void;
};
export interface ListItemProps extends ListItem{
export interface ListItemProps extends AllTransactionListItem, CashReceiptListItem, EscrowListItem, BillingListItem {
transactionCategory?: TransactionCategory;
};
export interface ListDateGroupProps {
@@ -61,10 +61,8 @@ export interface BillingListProps {
transactionCategory: TransactionCategory;
listItems: Record<string, Array<ListItemProps>>
};
export interface ListItem {
export interface AllTransactionListItem {
tid?: string;
issueNumber?: number;
billKey?: string;
mid?: string;
stateDate?: string;
stateCode?: string;
@@ -75,11 +73,35 @@ export interface ListItem {
serviceDetailName?: string;
goodsAmount?: number;
};
export interface CashReceiptListItem {
id?: number;
amount?: number;
customerName?: string;
issueNumber?: number;
issueStatus?: string;
paymentMethod?: string;
processResult?: string;
transactionDateTime?: string;
};
export interface EscrowListItem {
id?: number;
mid?: string;
transactionDateTime?: string;
customerName?: string;
issueNumber?: number;
transactionAmount?: number;
deliveryStatus?: string;
settlementStatus?: string;
cancelStatus?: string;
};
export interface BillingListItem extends BillingItem {
};
export interface BillingItem {
billKey: string;
tid: string;
orderNumber: string;
billKey?: string;
tid?: string;
orderNumber?: string;
approvalNumber?: string;
approvalDate?: string;
transactionDateTime?: string;
@@ -142,28 +164,28 @@ export interface CashReceiptListParams {
};
export interface EscrowListParams {
mid: string;
searchType: string;
searchKeyword: string;
startDate: string;
endDate: string;
deliveryStatus: string;
settlementStatus: string;
minAmount: number;
maxAmount: number;
pagination: DefaultRequestPagination;
mid?: string;
searchType?: string;
searchKeyword?: string;
startDate?: string;
endDate?: string;
deliveryStatus?: string;
settlementStatus?: string;
minAmount?: number;
maxAmount?: number;
pagination?: DefaultRequestPagination;
};
export interface BillingListParams {
mid: string;
searchType: string;
searchKeyword: string;
startDate: string;
endDate: string;
requestStatus: string;
processResult: string;
paymentMethod: string;
pagination: DefaultRequestPagination
mid?: string;
searchType?: string;
searchKeyword?: string;
startDate?: string;
endDate?: string;
requestStatus?: string;
processResult?: string;
paymentMethod?: string;
pagination?: DefaultRequestPagination
};
export interface AllTransactionDetailParams {
@@ -309,18 +331,7 @@ export interface EscrowInfo {
deliveryAddress: string;
};
export interface DetailResponse {
amountInfo?: AmountInfo;
importantInfo?: ImportantInfo;
paymentInfo?: PaymentInfo;
transactionInfo?: TransactionInfo;
settlementInfo?: SettlementInfo;
partCancelInfo?: PartCancelInfo;
issueInfo?: IssueInfo;
detailInfo?: DetailInfo;
escrowInfo?: EscrowInfo;
};
export interface BillingDetailResponse {
export interface BillingInfo {
billKey: string;
tid: string;
orderNumber: string;
@@ -333,10 +344,27 @@ export interface BillingDetailResponse {
buyerName: string;
}
export interface DetailInfoProps extends DetailResponse{
export interface DetailResponse {
amountInfo?: AmountInfo;
importantInfo?: ImportantInfo;
paymentInfo?: PaymentInfo;
transactionInfo?: TransactionInfo;
settlementInfo?: SettlementInfo;
partCancelInfo?: PartCancelInfo;
issueInfo?: IssueInfo;
detailInfo?: DetailInfo;
escrowInfo?: EscrowInfo;
billingInfo?: BillingInfo;
};
export interface BillingDetailResponse extends BillingInfo {
}
export interface DetailInfoProps extends DetailResponse {
transactionCategory: TransactionCategory;
show?: boolean;
tid?: string;
serviceCode?: string;
issueNumber?: number;
onClickToShowInfo?: (info: InfoWrapKeys) => void;
}