첫 커밋

This commit is contained in:
focp212@naver.com
2025-09-05 15:36:48 +09:00
commit 05238b04c1
825 changed files with 176358 additions and 0 deletions

View File

@@ -0,0 +1,336 @@
import { DefaulResponsePagination } from '@/entities/common/model/types';
export enum CancelTabKeys {
All = 'All',
Part = 'Part'
};
export enum AltMsgKeys {
Fold = '접기',
UnFold = '펼치기',
};
export enum SortByKeys {
New = 'New',
Amount = 'Amount',
};
export enum PageType {
AllTransaction = 'AllTransaction',
CashReceit = 'CashReceit',
Escro = 'Escro',
Billing = 'Billing',
};
export enum DetailInfoKeys {
Amount = 'Amount',
Payment = 'Payment',
Transaction = 'Transaction',
Settlement = 'Settlement',
PartCancel = 'PartCancel',
};
export enum ProcessStep {
One = 'One',
Two = 'Two',
};
export interface SortOptionsBoxProps {
sortBy: SortByKeys;
onCliCkToSort: (sortBy: SortByKeys) => void;
};
export interface ListItemProps extends ListItem{
pageType?: PageType;
};
export interface ListDateGroupProps {
pageType?: PageType;
date?: string;
items?: Array<ListItemProps>;
};
export interface AllTransactionListProps {
pageType: PageType;
listItems: Record<string, Array<ListItemProps>>
};
export interface CashReceitListProps {
pageType: PageType;
listItems: Record<string, Array<ListItemProps>>
};
export interface EscroListProps {
pageType: PageType;
listItems: Record<string, Array<ListItemProps>>
};
export interface BillingListProps {
pageType: PageType;
listItems: Record<string, Array<ListItemProps>>
};
export interface ListItem {
tid?: string;
mid?: string;
stateDate?: string;
stateCode?: string;
stateName?: string;
installmentMonth?: string;
serviceCode?: string;
serviceName?: string;
serviceDetailName?: string;
goodsAmount?: number;
};
export interface AllTransactionListResponse extends DefaulResponsePagination {
content: Array<ListItemProps>;
};
export interface CashReceitListResponse extends DefaulResponsePagination {
content: Array<ListItemProps>;
};
export interface EscroListResponse extends DefaulResponsePagination {
content: Array<ListItemProps>;
};
export interface BillingListResponse extends DefaulResponsePagination {
content: Array<ListItemProps>;
};
export interface AllTransactionListSummaryParams extends AllTransactionListParams {
}
export interface CashReceitListSummaryParams extends CashReceitListParams {
}
export interface AllTransactionListSummaryResponse {
totalTransactionCount: number;
totalTransactionAmount: number;
};
export interface CashReceitListSummaryResponse {
totalTransactionCount: number;
totalTransactionAmount: number;
};
export interface TransactionRequestParams {
tid?: string;
}
export interface AllTransactionListParams extends TransactionRequestParams {
moid: string;
fromDate: string;
toDate: string;
stateCode: string;
serviceCode: string;
minAmount: number;
maxAmount: number;
dateCl: string;
goodsName: string;
cardCode: string;
bankCode: string;
searchCl: string;
searchValue: string;
};
export interface CashReceitListParams extends TransactionRequestParams {
moid: string;
fromDate: string;
toDate: string;
stateCode: string;
serviceCode: string;
minAmount: number;
maxAmount: number;
dateCl: string;
goodsName: string;
cardCode: string;
bankCode: string;
searchCl: string;
searchValue: string;
};
export interface EscroListParams extends TransactionRequestParams {
moid: string;
fromDate: string;
toDate: string;
stateCode: string;
serviceCode: string;
minAmount: number;
maxAmount: number;
dateCl: string;
goodsName: string;
cardCode: string;
bankCode: string;
searchCl: string;
searchValue: string;
};
export interface BillingListParams extends TransactionRequestParams {
moid: string;
fromDate: string;
toDate: string;
stateCode: string;
serviceCode: string;
minAmount: number;
maxAmount: number;
dateCl: string;
goodsName: string;
cardCode: string;
bankCode: string;
searchCl: string;
searchValue: string;
};
export interface ListPaging {
cursor: string | null;
size: number;
sortBy: string;
sortOrder: string;
orderBy: string;
limit: number;
};
export interface AllTransactionDetailParams extends TransactionRequestParams {
svcCd: string;
};
export interface CashReceitDetailParams extends TransactionRequestParams {
svcCd: string;
};
export interface EscroDetailParams extends TransactionRequestParams {
svcCd: string;
};
export interface BillingDetailParams extends TransactionRequestParams {
svcCd: string;
};
export interface DetailAmountInfoProps {
mid: string;
amount: number;
cardAmount: number;
pointAmount: number;
couponAmount: number;
kakaoMoney: number;
kakaoPoint: number;
kakaoInstantDiscount: number;
naverPoint: number;
tossMoney: number;
tossDiscount: number;
paycoPoint: number;
paycoCoupon: number;
escrowFee: number;
};
export interface DetailImportantInfoProps {
ordNo: string;
tid: string;
tradeStatus: string;
tradeMethod: string;
productName: string;
approvalDate: string;
tradeDate: string;
requestDate: string;
cancelDate: string;
};
export interface DetailPaymentInfoProps {
approvalAcquire: string;
approvalReturn: number;
approvalReAcquire: number;
approvalVAN: string;
cancelAcquire: string;
cancelReturn: string;
cancelReAcquire: string;
acquireVAN: string;
acquireCompany: string;
cardNumber: string;
approvalNumber: string;
installmentPeriod: number;
authentication: string;
accountType: string;
bankName: string;
accountNumber: string;
depositBankName: string;
depositorName: string;
depositDeadline: string;
depositDate: string;
refundScheduleDate: string;
refundBankName: string;
refundAccountNumber: string;
accountHolder: string;
refundCompleteDate: string;
partner: string;
cpid: string;
productCategory: string;
phoneNumber: string;
customerId: string;
giftCardNumber: string;
culturelandId: string;
};
export interface DetailTransactionInfoProps {
buyerName: string;
email: string;
phoneNumber: string;
cancelReason: string;
cancelRequestor: string;
partialCancel: string;
cashReceiptIssue: string;
};
export interface DetailSettlementInfoProps {
approvalSettleDate: string;
approvalSettleAmount: number;
cancelSettleDate: string;
cancelSettleAmount: number;
};
export interface DetailPartCancelInfoProps {
originalTid: string;
originalAmount: number;
partCancelTid: string;
partCancelAmount: number;
remainingAmount: number;
};
export interface DetailResponse {
amountInfo?: DetailAmountInfoProps;
importantInfo?: DetailImportantInfoProps;
paymentInfo?: DetailPaymentInfoProps;
transactionInfo?: DetailTransactionInfoProps;
settlementInfo?: DetailSettlementInfoProps;
partCancelInfo?: DetailPartCancelInfoProps;
};
export interface DetailInfoProps extends DetailResponse{
pageType: PageType;
show?: boolean;
tid?: string;
onClickToShowInfo?: (info: DetailInfoKeys) => void;
}
export interface DetailArrowProps {
show?: boolean;
};
export interface DownloadConfirmationParams extends TransactionRequestParams {
};
export interface DownloadConfirmationResponse {
};
export interface DownloadExcelParams extends TransactionRequestParams {
};
export interface DownloadExcelResponse {
};
export interface AllTransactionCancelParams extends TransactionRequestParams {
cancelAmount: number;
cancelPassword: string;
bankCode: string;
accountNo: string;
accountHolder: string;
supplyAmount: number;
goodsVatAmount: number;
taxFreeAmount: number;
serviceAmount: number;
};
export interface AllTransactionCancelResponse {
};
export interface AllTransactionCancelInfoParams extends TransactionRequestParams {
};
export interface AllTransactionCancelInfoResponse {
remainAmount: number;
partCancelCl: boolean;
isCompoundTax: boolean;
supplyAmount: number;
goodsVatAmount: number;
taxFreeAmount: number;
serviceAmount: number;
};
export interface FilterProps {
filterOn: boolean;
setFilterOn: (filterOn: boolean) => void;
}