거래내역 관련
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { DefaulResponsePagination } from '@/entities/common/model/types';
|
||||
import { DefaulResponsePagination, DefaultRequestPagination } from '@/entities/common/model/types';
|
||||
|
||||
export enum CancelTabKeys {
|
||||
All = 'All',
|
||||
@@ -12,18 +12,22 @@ export enum SortByKeys {
|
||||
New = 'New',
|
||||
Amount = 'Amount',
|
||||
};
|
||||
export enum PageType {
|
||||
export enum TransactionCategory {
|
||||
AllTransaction = 'AllTransaction',
|
||||
CashReceit = 'CashReceit',
|
||||
Escro = 'Escro',
|
||||
CashReceipt = 'CashReceipt',
|
||||
Escrow = 'Escrow',
|
||||
Billing = 'Billing',
|
||||
};
|
||||
export enum DetailInfoKeys {
|
||||
export enum InfoWrapKeys {
|
||||
Amount = 'Amount',
|
||||
Important = 'Important',
|
||||
Payment = 'Payment',
|
||||
Transaction = 'Transaction',
|
||||
Settlement = 'Settlement',
|
||||
PartCancel = 'PartCancel',
|
||||
Issue = 'Issue',
|
||||
Detail = 'Detail',
|
||||
Escrow = 'Escrow',
|
||||
};
|
||||
export enum ProcessStep {
|
||||
One = 'One',
|
||||
@@ -34,31 +38,33 @@ export interface SortOptionsBoxProps {
|
||||
onCliCkToSort: (sortBy: SortByKeys) => void;
|
||||
};
|
||||
export interface ListItemProps extends ListItem{
|
||||
pageType?: PageType;
|
||||
transactionCategory?: TransactionCategory;
|
||||
};
|
||||
export interface ListDateGroupProps {
|
||||
pageType?: PageType;
|
||||
transactionCategory?: TransactionCategory;
|
||||
date?: string;
|
||||
items?: Array<ListItemProps>;
|
||||
};
|
||||
export interface AllTransactionListProps {
|
||||
pageType: PageType;
|
||||
transactionCategory: TransactionCategory;
|
||||
listItems: Record<string, Array<ListItemProps>>
|
||||
};
|
||||
export interface CashReceitListProps {
|
||||
pageType: PageType;
|
||||
export interface CashReceiptListProps {
|
||||
transactionCategory: TransactionCategory;
|
||||
listItems: Record<string, Array<ListItemProps>>
|
||||
};
|
||||
export interface EscroListProps {
|
||||
pageType: PageType;
|
||||
export interface EscrowListProps {
|
||||
transactionCategory: TransactionCategory;
|
||||
listItems: Record<string, Array<ListItemProps>>
|
||||
};
|
||||
export interface BillingListProps {
|
||||
pageType: PageType;
|
||||
transactionCategory: TransactionCategory;
|
||||
listItems: Record<string, Array<ListItemProps>>
|
||||
};
|
||||
export interface ListItem {
|
||||
tid?: string;
|
||||
issueNumber?: number;
|
||||
billKey?: string;
|
||||
mid?: string;
|
||||
stateDate?: string;
|
||||
stateCode?: string;
|
||||
@@ -69,242 +75,290 @@ export interface ListItem {
|
||||
serviceDetailName?: string;
|
||||
goodsAmount?: number;
|
||||
};
|
||||
|
||||
export interface BillingItem {
|
||||
billKey: string;
|
||||
tid: string;
|
||||
orderNumber: string;
|
||||
approvalNumber?: string;
|
||||
approvalDate?: string;
|
||||
transactionDateTime?: string;
|
||||
transactionAmount?: number;
|
||||
requestStatus?: string;
|
||||
processResult?: string;
|
||||
paymentMethod?: string;
|
||||
installmentMonth?: string;
|
||||
productName?: string;
|
||||
buyerName?: string;
|
||||
};
|
||||
export interface AllTransactionListResponse extends DefaulResponsePagination {
|
||||
content: Array<ListItemProps>;
|
||||
};
|
||||
export interface CashReceitListResponse extends DefaulResponsePagination {
|
||||
export interface CashReceiptListResponse extends DefaulResponsePagination {
|
||||
content: Array<ListItemProps>;
|
||||
};
|
||||
export interface EscroListResponse extends DefaulResponsePagination {
|
||||
export interface EscrowListResponse 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 {
|
||||
export interface AllTransactionListParams {
|
||||
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;
|
||||
fromDate: string;
|
||||
toDate: string;
|
||||
stateCode: string;
|
||||
serviceCode: string;
|
||||
minAmount: number;
|
||||
maxAmount: number;
|
||||
dateCl: string;
|
||||
goodsName: string;
|
||||
cardCode: string;
|
||||
bankCode: string;
|
||||
searchCl: string;
|
||||
searchValue: string;
|
||||
page?: DefaultRequestPagination;
|
||||
};
|
||||
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 CashReceiptListParams {
|
||||
mid: string;
|
||||
startDate: string;
|
||||
endDate: string;
|
||||
purposeType: string;
|
||||
issueStatus: string;
|
||||
processResult: string;
|
||||
pagination: DefaultRequestPagination
|
||||
};
|
||||
export interface DetailTransactionInfoProps {
|
||||
buyerName: string;
|
||||
email: string;
|
||||
phoneNumber: string;
|
||||
cancelReason: string;
|
||||
cancelRequestor: string;
|
||||
partialCancel: string;
|
||||
cashReceiptIssue: string;
|
||||
|
||||
export interface EscrowListParams {
|
||||
mid: string;
|
||||
searchType: string;
|
||||
searchKeyword: string;
|
||||
startDate: string;
|
||||
endDate: string;
|
||||
deliveryStatus: string;
|
||||
settlementStatus: string;
|
||||
minAmount: number;
|
||||
maxAmount: number;
|
||||
pagination: DefaultRequestPagination;
|
||||
};
|
||||
export interface DetailSettlementInfoProps {
|
||||
approvalSettleDate: string;
|
||||
approvalSettleAmount: number;
|
||||
cancelSettleDate: string;
|
||||
cancelSettleAmount: number;
|
||||
|
||||
export interface BillingListParams {
|
||||
mid: string;
|
||||
searchType: string;
|
||||
searchKeyword: string;
|
||||
startDate: string;
|
||||
endDate: string;
|
||||
requestStatus: string;
|
||||
processResult: string;
|
||||
paymentMethod: string;
|
||||
pagination: DefaultRequestPagination
|
||||
};
|
||||
export interface DetailPartCancelInfoProps {
|
||||
originalTid: string;
|
||||
originalAmount: number;
|
||||
partCancelTid: string;
|
||||
partCancelAmount: number;
|
||||
remainingAmount: number;
|
||||
|
||||
export interface AllTransactionDetailParams {
|
||||
svcCd?: string;
|
||||
tid?: string;
|
||||
};
|
||||
export interface CashReceiptDetailParams {
|
||||
issueNumber?: number;
|
||||
};
|
||||
export interface EscrowDetailParams {
|
||||
issueNumber?: number;
|
||||
};
|
||||
export interface BillingDetailParams {
|
||||
billKey?: string;
|
||||
};
|
||||
|
||||
export interface AmountInfo {
|
||||
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 ImportantInfo {
|
||||
ordNo?: string;
|
||||
tid?: string;
|
||||
tradeStatus?: string;
|
||||
tradeMethod?: string;
|
||||
productName?: string;
|
||||
approvalDate?: string;
|
||||
tradeDate?: string;
|
||||
requestDate?: string;
|
||||
cancelDate?: string;
|
||||
mid?: string;
|
||||
orderNumber?: string;
|
||||
transactionStatus?: string;
|
||||
paymentMethod?: string;
|
||||
approvalDateTime?: string;
|
||||
};
|
||||
export interface PaymentInfo {
|
||||
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;
|
||||
paymentAmount?: number;
|
||||
|
||||
};
|
||||
export interface TransactionInfo {
|
||||
buyerName?: string;
|
||||
email?: string;
|
||||
phoneNumber?: string;
|
||||
cancelReason?: string;
|
||||
cancelRequestor?: string;
|
||||
partialCancel?: string;
|
||||
cashReceiptIssue?: string;
|
||||
transactionDateTime?: string;
|
||||
transactionAmount?: number;
|
||||
};
|
||||
export interface SettlementInfo {
|
||||
approvalSettleDate?: string;
|
||||
approvalSettleAmount?: number;
|
||||
cancelSettleDate?: string;
|
||||
cancelSettleAmount?: number;
|
||||
scheduledSettlementDate?: string;
|
||||
completedSettlementDate?: string;
|
||||
};
|
||||
export interface PartCancelInfo {
|
||||
originalTid?: string;
|
||||
originalAmount?: number;
|
||||
partCancelTid?: string;
|
||||
partCancelAmount?: number;
|
||||
remainingAmount?: number;
|
||||
};
|
||||
|
||||
export interface IssueInfo {
|
||||
approvalNumber?: number;
|
||||
issueNumber?: number;
|
||||
issueDateTime?: string;
|
||||
purpose?: string;
|
||||
paymentMethod?: string;
|
||||
productName?: string;
|
||||
transmissionStatus?: string;
|
||||
transactionType?: string;
|
||||
};
|
||||
export interface DetailInfo {
|
||||
cancelDate?: string;
|
||||
cancelApprovalNumber?: number;
|
||||
receiptInfo?: string;
|
||||
tid?: string;
|
||||
merchantTid?: string;
|
||||
subMallName?: string;
|
||||
subMallBusinessNumber?: number;
|
||||
issueChannel?: string;
|
||||
failureReason?: string;
|
||||
};
|
||||
export interface EscrowInfo {
|
||||
deliveryStatus: string;
|
||||
deliveryRegistrationDate: string;
|
||||
deliveryCompleteDate: string;
|
||||
purchaseConfirmDate: string;
|
||||
purchaseRejectReason: string;
|
||||
rejectReason: string;
|
||||
escrowCertNumber: string;
|
||||
deliveryCompany: string;
|
||||
trackingNumber: number;
|
||||
deliveryAddress: string;
|
||||
};
|
||||
|
||||
export interface DetailResponse {
|
||||
amountInfo?: DetailAmountInfoProps;
|
||||
importantInfo?: DetailImportantInfoProps;
|
||||
paymentInfo?: DetailPaymentInfoProps;
|
||||
transactionInfo?: DetailTransactionInfoProps;
|
||||
settlementInfo?: DetailSettlementInfoProps;
|
||||
partCancelInfo?: DetailPartCancelInfoProps;
|
||||
amountInfo?: AmountInfo;
|
||||
importantInfo?: ImportantInfo;
|
||||
paymentInfo?: PaymentInfo;
|
||||
transactionInfo?: TransactionInfo;
|
||||
settlementInfo?: SettlementInfo;
|
||||
partCancelInfo?: PartCancelInfo;
|
||||
issueInfo?: IssueInfo;
|
||||
detailInfo?: DetailInfo;
|
||||
escrowInfo?: EscrowInfo;
|
||||
};
|
||||
export interface BillingDetailResponse {
|
||||
billKey: string;
|
||||
tid: string;
|
||||
orderNumber: string;
|
||||
approvalNumber: string;
|
||||
approvalDate: string;
|
||||
requestStatus: string;
|
||||
processResult: string;
|
||||
installmentMonth: string;
|
||||
productName: string;
|
||||
buyerName: string;
|
||||
}
|
||||
|
||||
export interface DetailInfoProps extends DetailResponse{
|
||||
pageType: PageType;
|
||||
transactionCategory: TransactionCategory;
|
||||
show?: boolean;
|
||||
tid?: string;
|
||||
onClickToShowInfo?: (info: DetailInfoKeys) => void;
|
||||
issueNumber?: number;
|
||||
onClickToShowInfo?: (info: InfoWrapKeys) => void;
|
||||
}
|
||||
export interface DetailArrowProps {
|
||||
show?: boolean;
|
||||
};
|
||||
|
||||
export interface DownloadConfirmationParams extends TransactionRequestParams {
|
||||
|
||||
export interface DownloadConfirmationParams {
|
||||
tid?: string;
|
||||
};
|
||||
export interface DownloadConfirmationResponse {
|
||||
|
||||
};
|
||||
|
||||
export interface DownloadExcelParams extends TransactionRequestParams {
|
||||
|
||||
export interface DownloadExcelParams {
|
||||
tid?: string
|
||||
};
|
||||
export interface DownloadExcelResponse {
|
||||
|
||||
};
|
||||
export interface AllTransactionCancelParams extends TransactionRequestParams {
|
||||
export interface AllTransactionCancelParams{
|
||||
tid: string;
|
||||
cancelAmount: number;
|
||||
cancelPassword: string;
|
||||
bankCode: string;
|
||||
@@ -318,8 +372,8 @@ export interface AllTransactionCancelParams extends TransactionRequestParams {
|
||||
export interface AllTransactionCancelResponse {
|
||||
|
||||
};
|
||||
export interface AllTransactionCancelInfoParams extends TransactionRequestParams {
|
||||
|
||||
export interface AllTransactionCancelInfoParams {
|
||||
tid: string;
|
||||
};
|
||||
export interface AllTransactionCancelInfoResponse {
|
||||
remainAmount: number;
|
||||
|
||||
Reference in New Issue
Block a user