- 자금이체 : 이체신청 API 추가
- 은행목록 추가 - 알림톡: 상세 페이지 및 Types 수정
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { ProcessResult } from "../types";
|
||||
import { AccountHolderResultStatus } from "./types";
|
||||
|
||||
|
||||
export const resultStatusBtnGroup = [
|
||||
{ name: '전체', value: ProcessResult.ALL },
|
||||
{ name: '성공', value: ProcessResult.SUCCESS },
|
||||
{ name: '실패', value: ProcessResult.FAIL },
|
||||
{ name: '전체', value: AccountHolderResultStatus.ALL },
|
||||
{ name: '성공', value: AccountHolderResultStatus.SUCCESS },
|
||||
{ name: '실패', value: AccountHolderResultStatus.FAIL },
|
||||
]
|
||||
@@ -2,15 +2,15 @@
|
||||
// 계좌성명 조회 관련 타입들
|
||||
// ========================================
|
||||
|
||||
export enum AccountHolderSearchType {
|
||||
export enum AccountHolderSearchCl {
|
||||
ACCOUNT_NAME = 'ACCOUNT_NAME',
|
||||
ACCOUNT_NO = 'ACCOUNT_NO'
|
||||
}
|
||||
|
||||
export enum AccountHolderResultStatus {
|
||||
ALL = "ALL",
|
||||
ALL = "",
|
||||
SUCCESS = "SUCCESS",
|
||||
FAIl = "FAIL"
|
||||
FAIL = "FAIL"
|
||||
}
|
||||
|
||||
export interface AccountHolderSearchListItem {
|
||||
@@ -28,19 +28,19 @@ export interface AccountHolderSearchListProps {
|
||||
|
||||
export interface AccountHolderSearchFilterProps extends FilterProps {
|
||||
mid: string;
|
||||
searchType: AccountHolderSearchType;
|
||||
searchType: AccountHolderSearchCl;
|
||||
searchKeyword: string;
|
||||
startDate: string;
|
||||
endDate: string;
|
||||
bank: string;
|
||||
processResult: ProcessResult;
|
||||
resultStatus: AccountHolderResultStatus;
|
||||
setMid: (mid: string) => void;
|
||||
setSearchType: (searchType: AccountHolderSearchType) => void;
|
||||
setSearchType: (searchType: AccountHolderSearchCl) => void;
|
||||
setSearchKeyword: (searchKeyWorld: string) => void;
|
||||
setStartDate: (startDate: string) => void;
|
||||
setEndDate: (endDate: string) => void;
|
||||
setBank: (bank: string) => void;
|
||||
setProcessResult: (processResult: ProcessResult) => void;
|
||||
setResultStatus: (resultStatus: AccountHolderResultStatus) => void;
|
||||
}
|
||||
|
||||
// 계좌 성명 조회 확장 서비스
|
||||
|
||||
@@ -1,55 +1,91 @@
|
||||
import { AlimtalkAlimCl, AlimtalkSearchCl, AlimTalkSendCl, AlimtalkSendType, ServiceCode } from "./types";
|
||||
|
||||
export const AlimtalkSearchClOptionGroup = [
|
||||
{name: '주문자', value: AlimtalkSearchCl.BUYER_NAME },
|
||||
{name: 'TID', value: AlimtalkSearchCl.TID },
|
||||
{ name: '주문자', value: AlimtalkSearchCl.BUYER_NAME },
|
||||
{ name: 'TID', value: AlimtalkSearchCl.TID },
|
||||
];
|
||||
|
||||
export const AlimtalkServiceCodeOptionGroup = [
|
||||
{name: '전체', value: ''},
|
||||
{name: '카드', value: ServiceCode.CARD },
|
||||
{name: '계좌이체', value: ServiceCode.BANK },
|
||||
{name: '가상계좌', value: ServiceCode.VBANK },
|
||||
{name: '휴대폰', value: ServiceCode.PHONE }
|
||||
{ name: '전체', value: '' },
|
||||
{ name: '카드', value: ServiceCode.CARD },
|
||||
{ name: '계좌이체', value: ServiceCode.BANK },
|
||||
{ name: '가상계좌', value: ServiceCode.VBANK },
|
||||
{ name: '휴대폰', value: ServiceCode.PHONE }
|
||||
]
|
||||
|
||||
// 알림구분 - 카드/계좌이체/휴대폰용
|
||||
export const AlimtalkAlimClBtnGroupForGeneral = [
|
||||
{name: '전체', value: '' },
|
||||
{name: '승인', value: AlimtalkAlimCl.APPROVAL },
|
||||
{name: '취소', value: AlimtalkAlimCl.CANCEL }
|
||||
{ name: '전체', value: '' },
|
||||
{ name: '승인', value: AlimtalkAlimCl.APPROVAL },
|
||||
{ name: '취소', value: AlimtalkAlimCl.CANCEL }
|
||||
]
|
||||
|
||||
// 알림구분 - 가상계좌용
|
||||
export const AlimtalkAlimClBtnGroupForVBank = [
|
||||
{name: '전체', value: '' },
|
||||
{name: '입금요청', value: AlimtalkAlimCl.DEPOSIT_REQUEST },
|
||||
{name: '입금완료', value: AlimtalkAlimCl.DEPOSIT_COMPLETE },
|
||||
{name: '환불', value: AlimtalkAlimCl.REFUND }
|
||||
{ name: '전체', value: '' },
|
||||
{ name: '입금요청', value: AlimtalkAlimCl.DEPOSIT_REQUEST },
|
||||
{ name: '입금완료', value: AlimtalkAlimCl.DEPOSIT_COMPLETE },
|
||||
{ name: '환불', value: AlimtalkAlimCl.REFUND }
|
||||
]
|
||||
|
||||
export const AlimtalkSendTypeBtnGroup = [
|
||||
{name: '전체', value: AlimtalkSendType.ALL },
|
||||
{name: '카카오톡', value: AlimtalkSendType.KAKAOTALK },
|
||||
{name: 'FB SMS', value: AlimtalkSendType.FB_SMS }
|
||||
{ name: '전체', value: AlimtalkSendType.ALL },
|
||||
{ name: '카카오톡', value: AlimtalkSendType.KAKAOTALK },
|
||||
{ name: 'FB SMS', value: AlimtalkSendType.FB_SMS }
|
||||
]
|
||||
|
||||
export const AlimtalkSendClBtnGroup = [
|
||||
{name: '전체', value: AlimTalkSendCl.ALL },
|
||||
{name: '요청', value: AlimTalkSendCl.REQUEST },
|
||||
{name: '성공', value: AlimTalkSendCl.SUCCESS },
|
||||
{name: '실패', value: AlimTalkSendCl.FAIL }
|
||||
{ name: '전체', value: AlimTalkSendCl.ALL },
|
||||
{ name: '요청', value: AlimTalkSendCl.REQUEST },
|
||||
{ name: '성공', value: AlimTalkSendCl.SUCCESS },
|
||||
{ name: '실패', value: AlimTalkSendCl.FAIL }
|
||||
]
|
||||
|
||||
export const getAlimtalkAlimClText = (status?: string): string => {
|
||||
if (!status) return '';
|
||||
|
||||
const alimClMap: Record<string, string> = {
|
||||
'APPROVAL' : '승인',
|
||||
'CANCEL' : '취소',
|
||||
'DEPOSIT_REQUEST' : '입금요청',
|
||||
'DEPOSIT_COMPLETE' : '입금완료',
|
||||
'REFUND' : '환불'
|
||||
}
|
||||
return alimClMap[status] || status;
|
||||
|
||||
}
|
||||
|
||||
export const getAlimtalkSendTypeText = (status?: string): string => {
|
||||
if (!status) return '';
|
||||
|
||||
const sendTypeMap: Record<string, string> = {
|
||||
"KAKAOTALK": '카카오톡',
|
||||
'FB SMS': '페이스북',
|
||||
};
|
||||
|
||||
return sendTypeMap[status] || status;
|
||||
}
|
||||
|
||||
export const getAlimtalkSendClTypeText = (status?: string): string => {
|
||||
if (!status) return '';
|
||||
|
||||
const sendClMap: Record<string, string> = {
|
||||
'REQUEST': '요청',
|
||||
'SUCCESS': '성공',
|
||||
'FAIL': '실패'
|
||||
};
|
||||
return sendClMap[status] || status;
|
||||
}
|
||||
|
||||
export const getAlimtalkServiceCodeText = (status?: string): string => {
|
||||
if (!status) return '';
|
||||
|
||||
const serviceCodeMap: Record<string, string> = {
|
||||
'CARD': '카드',
|
||||
'BANK': '계좌이체',
|
||||
'VBANK': '가상계좌',
|
||||
'PHONE': '휴대폰'
|
||||
};
|
||||
'01': '카드',
|
||||
'02': '신용카드',
|
||||
'03': '가상계좌',
|
||||
'05': '휴대폰'
|
||||
}
|
||||
|
||||
return serviceCodeMap[status] || status;
|
||||
}
|
||||
@@ -33,6 +33,7 @@ export enum AlimTalkSendCl {
|
||||
};
|
||||
|
||||
export enum ServiceCode {
|
||||
ALL = '',
|
||||
CARD = 'CARD',
|
||||
BANK = 'BANK',
|
||||
VBANK = 'VBANK',
|
||||
@@ -128,7 +129,7 @@ export interface ExtensionAlimtalkDetailResponse {
|
||||
sendDate: string;
|
||||
mid: string;
|
||||
tid: string;
|
||||
serviceName: string;
|
||||
extensionServiceName: string;
|
||||
sendType: AlimtalkSendType;
|
||||
senderName: string;
|
||||
paymentMethod: string;
|
||||
|
||||
@@ -43,8 +43,4 @@ export const FundAccountResultSearchDateTypeBtnGroup = [
|
||||
export const FundAccountSearchClOptionsGroup = [
|
||||
{ name: '수취인', value: FundAccountSearchCl.ACCOUNT_NAME },
|
||||
{ name: '계좌번호', value: FundAccountSearchCl.ACCOUNT_NO },
|
||||
];
|
||||
|
||||
export const FundAccountReceiveBankCodeOptionsGroup = [
|
||||
{ name: 'KB', value: 'KB' }
|
||||
];
|
||||
@@ -35,11 +35,11 @@ export interface ExtensionFundAccountTransferRegistResponse {
|
||||
};
|
||||
|
||||
export interface ExtensionFundAccountTransferRequestParams {
|
||||
|
||||
seq: string;
|
||||
}
|
||||
|
||||
export interface ExtensionFundAccountTransferRequestResponse {
|
||||
|
||||
status: boolean
|
||||
}
|
||||
|
||||
export enum FundAccountSearchCl {
|
||||
|
||||
Reference in New Issue
Block a user