@portone/browser-sdk 0.0.10 → 0.0.11

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.
@@ -44,3 +44,53 @@ export declare const PgProvider: {
44
44
  readonly HYPHEN: "PG_PROVIDER_HYPHEN";
45
45
  };
46
46
  export type PgProvider = typeof PgProvider[keyof typeof PgProvider];
47
+ type InversionMap<T extends Record<keyof T, keyof any>> = {
48
+ [K in keyof T as T[K]]: K;
49
+ };
50
+ export declare const InversionPgProvider: InversionMap<{
51
+ readonly HTML5_INICIS: "PG_PROVIDER_HTML5_INICIS";
52
+ readonly PAYPAL: "PG_PROVIDER_PAYPAL";
53
+ readonly INICIS: "PG_PROVIDER_INICIS";
54
+ readonly DANAL: "PG_PROVIDER_DANAL";
55
+ readonly NICE: "PG_PROVIDER_NICE";
56
+ readonly DANAL_TPAY: "PG_PROVIDER_DANAL_TPAY";
57
+ readonly UPLUS: "PG_PROVIDER_UPLUS";
58
+ readonly NAVERPAY: "PG_PROVIDER_NAVERPAY";
59
+ readonly SETTLE: "PG_PROVIDER_SETTLE";
60
+ readonly KCP: "PG_PROVIDER_KCP";
61
+ readonly MOBILIANS: "PG_PROVIDER_MOBILIANS";
62
+ readonly KAKAOPAY: "PG_PROVIDER_KAKAOPAY";
63
+ readonly NAVERCO: "PG_PROVIDER_NAVERCO";
64
+ readonly KICC: "PG_PROVIDER_KICC";
65
+ readonly EXIMBAY: "PG_PROVIDER_EXIMBAY";
66
+ readonly SMILEPAY: "PG_PROVIDER_SMILEPAY";
67
+ readonly PAYCO: "PG_PROVIDER_PAYCO";
68
+ readonly KCP_BILLING: "PG_PROVIDER_KCP_BILLING";
69
+ readonly ALIPAY: "PG_PROVIDER_ALIPAY";
70
+ readonly CHAI: "PG_PROVIDER_CHAI";
71
+ readonly BLUEWALNUT: "PG_PROVIDER_BLUEWALNUT";
72
+ readonly SMARTRO: "PG_PROVIDER_SMARTRO";
73
+ readonly PAYMENTWALL: "PG_PROVIDER_PAYMENTWALL";
74
+ readonly TOSSPAYMENTS: "PG_PROVIDER_TOSSPAYMENTS";
75
+ readonly KCP_QUICK: "PG_PROVIDER_KCP_QUICK";
76
+ readonly DAOU: "PG_PROVIDER_DAOU";
77
+ readonly GALAXIA: "PG_PROVIDER_GALAXIA";
78
+ readonly TOSSPAY: "PG_PROVIDER_TOSSPAY";
79
+ readonly KCP_DIRECT: "PG_PROVIDER_KCP_DIRECT";
80
+ readonly SETTLE_ACC: "PG_PROVIDER_SETTLE_ACC";
81
+ readonly SETTLE_FIRM: "PG_PROVIDER_SETTLE_FIRM";
82
+ readonly INICIS_UNIFIED: "PG_PROVIDER_INICIS_UNIFIED";
83
+ readonly KSNET: "PG_PROVIDER_KSNET";
84
+ readonly PAYPAL_V2: "PG_PROVIDER_PAYPAL_V2";
85
+ readonly SMARTRO_V2: "PG_PROVIDER_SMARTRO_V2";
86
+ readonly NICE_V2: "PG_PROVIDER_NICE_V2";
87
+ readonly TOSS_BRANDPAY: "PG_PROVIDER_TOSS_BRANDPAY";
88
+ readonly WELCOME: "PG_PROVIDER_WELCOME";
89
+ readonly TOSSPAY_V2: "PG_PROVIDER_TOSSPAY_V2";
90
+ readonly INICIS_V2: "PG_PROVIDER_INICIS_V2";
91
+ readonly KPN: "PG_PROVIDER_KPN";
92
+ readonly KCP_V2: "PG_PROVIDER_KCP_V2";
93
+ readonly HYPHEN: "PG_PROVIDER_HYPHEN";
94
+ }>;
95
+ export type InversionPgProvider = typeof InversionPgProvider[keyof typeof InversionPgProvider];
96
+ export {};
@@ -1,3 +1,3 @@
1
1
  export type HyphenBypass = {
2
- disgnCd?: string;
2
+ designCd?: string;
3
3
  };
@@ -15,6 +15,7 @@ export { WindowType } from './WindowType.js';
15
15
  export { LoadableUIType } from './LoadableUIType.js';
16
16
  export { PaymentUIType } from './PaymentUIType.js';
17
17
  export { IssueBillingKeyUIType } from './IssueBillingKeyUIType.js';
18
+ export { InversionPgProvider } from './PgProvider.js';
18
19
  export type { Address } from './Address.js';
19
20
  export type { CashReceiptType } from './CashReceiptType.js';
20
21
  export type { Customer } from './Customer.js';
@@ -33,4 +33,5 @@ export type LoadPaymentUIRequest = Prettify<{
33
33
  bypass?: Entity.LoadPaymentUIBypass;
34
34
  country?: Entity.Country;
35
35
  shippingAddress?: Entity.Address;
36
+ promotionGroupId?: string;
36
37
  }>;
@@ -18,8 +18,10 @@ export type IdentityVerificationRequest = {
18
18
  */
19
19
  export type IdentityVerificationResponse = {
20
20
  transactionType: typeof Entity.TransactionType.IDENTITY_VERIFICATION;
21
- identityVerificationId?: string;
21
+ identityVerificationId: string;
22
22
  identityVerificationTxId: string;
23
23
  code?: string;
24
24
  message?: string;
25
+ pgCode?: string;
26
+ pgMessage?: string;
25
27
  };
@@ -31,6 +31,8 @@ export type IssueBillingKeyResponse = {
31
31
  billingKey: string;
32
32
  code?: string;
33
33
  message?: string;
34
+ pgCode?: string;
35
+ pgMessage?: string;
34
36
  };
35
37
  type BillingKeyMethodOptions<Method extends Entity.BillingKeyMethod, T> = {
36
38
  billingKeyMethod: Method;
@@ -38,6 +38,8 @@ export type IssueBillingKeyAndPayResponse = {
38
38
  billingKey: string;
39
39
  code?: string;
40
40
  message?: string;
41
+ pgCode?: string;
42
+ pgMessage?: string;
41
43
  };
42
44
  type BillingKeyAndPayMethodOptions<Method extends Entity.BillingKeyAndPayMethod, T> = {
43
45
  billingKeyAndPayMethod: Method;
@@ -38,10 +38,12 @@ export type PaymentRequest = {
38
38
  */
39
39
  export type PaymentResponse = {
40
40
  transactionType: typeof Entity.TransactionType.PAYMENT;
41
+ paymentId: string;
41
42
  txId: string;
42
- paymentId?: string;
43
43
  code?: string;
44
44
  message?: string;
45
+ pgCode?: string;
46
+ pgMessage?: string;
45
47
  };
46
48
  type PayMethodOptions<Method extends Entity.PayMethod, T> = {
47
49
  payMethod: Method;
package/dist/v2.cjs CHANGED
@@ -748,6 +748,7 @@ const PgProvider = {
748
748
  KCP_V2: 'PG_PROVIDER_KCP_V2',
749
749
  HYPHEN: 'PG_PROVIDER_HYPHEN',
750
750
  };
751
+ const InversionPgProvider = Object.entries(PgProvider).reduce((acc, [k, v]) => (Object.assign(Object.assign({}, acc), { [v]: k })), {});
751
752
 
752
753
  /**
753
754
  * 트랜잭션 유형
@@ -794,6 +795,7 @@ var index$1 = {
794
795
  EasyPayProvider: EasyPayProvider,
795
796
  Gender: Gender,
796
797
  GiftCertificateType: GiftCertificateType,
798
+ InversionPgProvider: InversionPgProvider,
797
799
  IssueBillingKeyUIType: IssueBillingKeyUIType,
798
800
  Locale: Locale,
799
801
  PaymentUIType: PaymentUIType,
package/dist/v2.js CHANGED
@@ -744,6 +744,7 @@ const PgProvider = {
744
744
  KCP_V2: 'PG_PROVIDER_KCP_V2',
745
745
  HYPHEN: 'PG_PROVIDER_HYPHEN',
746
746
  };
747
+ const InversionPgProvider = Object.entries(PgProvider).reduce((acc, [k, v]) => (Object.assign(Object.assign({}, acc), { [v]: k })), {});
747
748
 
748
749
  /**
749
750
  * 트랜잭션 유형
@@ -790,6 +791,7 @@ var index$1 = {
790
791
  EasyPayProvider: EasyPayProvider,
791
792
  Gender: Gender,
792
793
  GiftCertificateType: GiftCertificateType,
794
+ InversionPgProvider: InversionPgProvider,
793
795
  IssueBillingKeyUIType: IssueBillingKeyUIType,
794
796
  Locale: Locale,
795
797
  PaymentUIType: PaymentUIType,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@portone/browser-sdk",
3
3
  "type": "module",
4
- "version": "0.0.10",
4
+ "version": "0.0.11",
5
5
  "description": "PortOne SDK for browser",
6
6
  "keywords": [
7
7
  "PortOne",