sk-front-lib 0.19.13 → 0.19.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,8 @@ export declare enum SkPaymentStatus {
10
10
  NaverPG = "NAVER_PG",
11
11
  Kakao = "KAKAO",
12
12
  Toss = "TOSS",
13
- Payco = "PAYCO"
13
+ Payco = "PAYCO",
14
+ Vbank = "VBANK"
14
15
  }
15
16
  export interface ISkPayment {
16
17
  id?: string;
@@ -26,8 +27,23 @@ export interface ISkPayment {
26
27
  bankExpireDate?: string;
27
28
  cardName?: string;
28
29
  cardQuota?: string;
30
+ vbankAccount?: string;
31
+ vbankCode?: string;
29
32
  rawResponse?: string;
30
33
  rawCancelResponse?: string;
31
34
  paidDate?: string;
32
35
  }
33
- export declare function getSkPaymentStatusText(status: SkPaymentStatus): "무통장입금" | "카드결제 (일반 무이자)" | "카드결제 (분담 무이자)" | "카카오페이" | "토스페이" | "PAYCO" | "네이버페이";
36
+ export declare function getSkPaymentStatusText(status: SkPaymentStatus): "무통장입금" | "카드결제 (일반 무이자)" | "카드결제 (분담 무이자)" | "카카오페이" | "토스페이" | "PAYCO" | "네이버페이" | "가상계좌";
37
+ /**
38
+ * Design Ref: §3.1 — 가상계좌(VBANK) 은행코드 → 은행명 매핑.
39
+ * Plan SC-G: sk-api VbankBankCodeMap.MAP과 14개 엔트리 정합 유지.
40
+ *
41
+ * MUST sync with: sk-api/src/main/java/works/skullacy/api/domain/commerce/payment/util/VbankBankCodeMap.java
42
+ * Drift check: gap-detector rule — Object.keys(VBANK_BANK_CODE_MAP).length === 14
43
+ */
44
+ export declare const VBANK_BANK_CODE_MAP: Readonly<Record<string, string>>;
45
+ /**
46
+ * VBANK 은행코드를 은행명으로 변환. 알 수 없는 코드는 null 반환.
47
+ * (백엔드 toName은 fallback으로 code 자체 반환 — 프론트는 표시 제어 용이성을 위해 null. Design §3.1 Note 참조)
48
+ */
49
+ export declare function getVbankBankName(code: string | null | undefined): string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sk-front-lib",
3
- "version": "0.19.13",
3
+ "version": "0.19.15",
4
4
  "peerDependencies": {
5
5
  "@angular/router": "^15.2.10",
6
6
  "@angular/animations": "^15.2.10",