@portone/browser-sdk 0.0.23 → 0.0.24

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.
Files changed (228) hide show
  1. package/dist/v2/entity/Address.d.ts +24 -4
  2. package/dist/v2/entity/Bank.d.ts +276 -2
  3. package/dist/v2/entity/BillingKeyAndPayMethod.d.ts +10 -1
  4. package/dist/v2/entity/BillingKeyMethod.d.ts +19 -1
  5. package/dist/v2/entity/CardCompany.d.ts +76 -1
  6. package/dist/v2/entity/Carrier.d.ts +22 -7
  7. package/dist/v2/entity/CashReceiptType.d.ts +16 -1
  8. package/dist/v2/entity/ChannelGroupId.d.ts +8 -0
  9. package/dist/v2/entity/ChannelKey.d.ts +10 -0
  10. package/dist/v2/entity/Country.d.ts +758 -1
  11. package/dist/v2/entity/Currency.d.ts +546 -4
  12. package/dist/v2/entity/Customer.d.ts +90 -15
  13. package/dist/v2/entity/EasyPayPaymentMethod.d.ts +19 -1
  14. package/dist/v2/entity/EasyPayProvider.d.ts +157 -1
  15. package/dist/v2/entity/FreeInstallmentPlan.d.ts +25 -4
  16. package/dist/v2/entity/Gender.d.ts +16 -1
  17. package/dist/v2/entity/GiftCertificateType.d.ts +20 -2
  18. package/dist/v2/entity/Iframe.d.ts +7 -1
  19. package/dist/v2/entity/Installment.d.ts +53 -20
  20. package/dist/v2/entity/InstallmentMonthOption.d.ts +41 -0
  21. package/dist/v2/entity/IssueBillingKeyUIType.d.ts +1 -1
  22. package/dist/v2/entity/Locale.d.ts +63 -1
  23. package/dist/v2/entity/OfferPeriod.d.ts +30 -12
  24. package/dist/v2/entity/OfferPeriodRange.d.ts +7 -0
  25. package/dist/v2/entity/OfferPeriodRangeFrom.d.ts +9 -0
  26. package/dist/v2/entity/OfferPeriodRangeFromTo.d.ts +13 -0
  27. package/dist/v2/entity/OfferPeriodRangeTo.d.ts +9 -0
  28. package/dist/v2/entity/PayMethod.d.ts +27 -1
  29. package/dist/v2/entity/PaymentCurrency.d.ts +191 -0
  30. package/dist/v2/entity/PaymentOrderName.d.ts +4 -0
  31. package/dist/v2/entity/PaymentPayMethod.d.ts +53 -0
  32. package/dist/v2/entity/PaymentTotalAmount.d.ts +14 -0
  33. package/dist/v2/entity/PaymentUIType.d.ts +1 -1
  34. package/dist/v2/entity/PgCode.d.ts +6 -0
  35. package/dist/v2/entity/PgMessage.d.ts +6 -0
  36. package/dist/v2/entity/PgProvider.d.ts +7 -52
  37. package/dist/v2/entity/Popup.d.ts +10 -1
  38. package/dist/v2/entity/Product.d.ts +36 -3
  39. package/dist/v2/entity/ProductType.d.ts +11 -4
  40. package/dist/v2/entity/RedirectUrl.d.ts +6 -0
  41. package/dist/v2/entity/StoreDetails.d.ts +59 -20
  42. package/dist/v2/entity/StoreDetailsOpeningHours.d.ts +13 -0
  43. package/dist/v2/entity/StoreId.d.ts +6 -0
  44. package/dist/v2/entity/TaxFreeAmount.d.ts +6 -0
  45. package/dist/v2/entity/TransactionType.d.ts +26 -5
  46. package/dist/v2/entity/VatAmount.d.ts +6 -0
  47. package/dist/v2/entity/WindowType.d.ts +1 -9
  48. package/dist/v2/entity/WindowTypes.d.ts +18 -0
  49. package/dist/v2/entity/bypass/IdentityVerificationBypass.d.ts +20 -0
  50. package/dist/v2/entity/bypass/IssueBillingKeyAndPayBypass.d.ts +17 -0
  51. package/dist/v2/entity/bypass/IssueBillingKeyBypass.d.ts +37 -0
  52. package/dist/v2/entity/bypass/LoadIssueBillingKeyUIBypass.d.ts +7 -0
  53. package/dist/v2/entity/bypass/LoadPaymentUIBypass.d.ts +7 -0
  54. package/dist/v2/entity/bypass/PaymentBypass.d.ts +92 -0
  55. package/dist/v2/entity/bypass/identityVerification/Danal.d.ts +21 -14
  56. package/dist/v2/entity/bypass/identityVerification/InicisUnified.d.ts +30 -11
  57. package/dist/v2/entity/bypass/identityVerification/InicisUnifiedDirectAgency.d.ts +69 -0
  58. package/dist/v2/entity/bypass/identityVerification/InicisUnifiedFlgFixedUser.d.ts +19 -0
  59. package/dist/v2/entity/bypass/identityVerification/KcpV2.d.ts +5 -2
  60. package/dist/v2/entity/bypass/identityVerification/index.d.ts +5 -8
  61. package/dist/v2/entity/bypass/index.d.ts +12 -0
  62. package/dist/v2/entity/bypass/issueBillingKey/InicisV2.d.ts +7 -5
  63. package/dist/v2/entity/bypass/issueBillingKey/InicisV2CardUse.d.ts +17 -0
  64. package/dist/v2/entity/bypass/issueBillingKey/KcpV2.d.ts +6 -2
  65. package/dist/v2/entity/bypass/issueBillingKey/KcpV2BatchSocChoice.d.ts +17 -0
  66. package/dist/v2/entity/bypass/issueBillingKey/Naverpay.d.ts +9 -4
  67. package/dist/v2/entity/bypass/issueBillingKey/SmartroV2.d.ts +11 -4
  68. package/dist/v2/entity/bypass/issueBillingKey/SmartroV2IsPwdPass.d.ts +17 -0
  69. package/dist/v2/entity/bypass/issueBillingKey/SmartroV2SkinColor.d.ts +13 -0
  70. package/dist/v2/entity/bypass/issueBillingKey/TosspayV2.d.ts +5 -3
  71. package/dist/v2/entity/bypass/issueBillingKey/Welcome.d.ts +12 -5
  72. package/dist/v2/entity/bypass/issueBillingKey/index.d.ts +10 -16
  73. package/dist/v2/entity/bypass/issueBillingKeyAndPay/EximbayV2.d.ts +25 -28
  74. package/dist/v2/entity/bypass/issueBillingKeyAndPay/EximbayV2BillTo.d.ts +37 -0
  75. package/dist/v2/entity/bypass/issueBillingKeyAndPay/EximbayV2Merchant.d.ts +6 -0
  76. package/dist/v2/entity/bypass/issueBillingKeyAndPay/EximbayV2Payment.d.ts +13 -0
  77. package/dist/v2/entity/bypass/issueBillingKeyAndPay/EximbayV2ShipTo.d.ts +37 -0
  78. package/dist/v2/entity/bypass/issueBillingKeyAndPay/EximbayV2Surcharge.d.ts +14 -0
  79. package/dist/v2/entity/bypass/issueBillingKeyAndPay/PayletterGlobal.d.ts +16 -6
  80. package/dist/v2/entity/bypass/issueBillingKeyAndPay/Welcome.d.ts +50 -52
  81. package/dist/v2/entity/bypass/issueBillingKeyAndPay/index.d.ts +8 -8
  82. package/dist/v2/entity/bypass/loadIssueBillingKeyUI/PaypalV2.d.ts +15 -22
  83. package/dist/v2/entity/bypass/loadIssueBillingKeyUI/PaypalV2AdditionalData.d.ts +4 -0
  84. package/dist/v2/entity/bypass/{PaypalV2Country.d.ts → loadIssueBillingKeyUI/PaypalV2Country.d.ts} +7 -1
  85. package/dist/v2/entity/bypass/loadIssueBillingKeyUI/PaypalV2ShippingAddress.d.ts +31 -0
  86. package/dist/v2/entity/bypass/loadIssueBillingKeyUI/PaypalV2Style.d.ts +33 -0
  87. package/dist/v2/entity/bypass/loadIssueBillingKeyUI/PaypalV2StyleColor.d.ts +14 -0
  88. package/dist/v2/entity/bypass/loadIssueBillingKeyUI/PaypalV2StyleLabel.d.ts +16 -0
  89. package/dist/v2/entity/bypass/loadIssueBillingKeyUI/PaypalV2StyleLayout.d.ts +11 -0
  90. package/dist/v2/entity/bypass/loadIssueBillingKeyUI/PaypalV2StyleShape.d.ts +11 -0
  91. package/dist/v2/entity/bypass/loadIssueBillingKeyUI/index.d.ts +9 -4
  92. package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2.d.ts +28 -55
  93. package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2AdditionalData.d.ts +4 -0
  94. package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2Payer.d.ts +9 -0
  95. package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2PayerAddress.d.ts +18 -0
  96. package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2PayerTaxInfo.d.ts +10 -0
  97. package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2PurchaseUnit.d.ts +7 -0
  98. package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2PurchaseUnitShipping.d.ts +10 -0
  99. package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2PurchaseUnitShippingAddress.d.ts +21 -0
  100. package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2Style.d.ts +37 -0
  101. package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2StyleColor.d.ts +14 -0
  102. package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2StyleLabel.d.ts +16 -0
  103. package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2StyleLayout.d.ts +11 -0
  104. package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2StyleShape.d.ts +11 -0
  105. package/dist/v2/entity/bypass/loadPaymentUI/index.d.ts +13 -4
  106. package/dist/v2/entity/bypass/payment/EximbayV2.d.ts +38 -41
  107. package/dist/v2/entity/bypass/payment/EximbayV2BillTo.d.ts +37 -0
  108. package/dist/v2/entity/bypass/payment/EximbayV2Merchant.d.ts +13 -0
  109. package/dist/v2/entity/bypass/payment/EximbayV2Payment.d.ts +13 -0
  110. package/dist/v2/entity/bypass/payment/EximbayV2Settings.d.ts +18 -0
  111. package/dist/v2/entity/bypass/payment/EximbayV2SettingsCallFromApp.d.ts +11 -0
  112. package/dist/v2/entity/bypass/payment/EximbayV2ShipTo.d.ts +37 -0
  113. package/dist/v2/entity/bypass/payment/EximbayV2Surcharge.d.ts +14 -0
  114. package/dist/v2/entity/bypass/payment/EximbayV2Tax.d.ts +10 -0
  115. package/dist/v2/entity/bypass/payment/EximbayV2TaxReceiptStatus.d.ts +11 -0
  116. package/dist/v2/entity/bypass/payment/Hyphen.d.ts +5 -1
  117. package/dist/v2/entity/bypass/payment/HyphenDesignCd.d.ts +1 -0
  118. package/dist/v2/entity/bypass/payment/InicisJp.d.ts +8 -23
  119. package/dist/v2/entity/bypass/payment/InicisJpPaymentUI.d.ts +33 -0
  120. package/dist/v2/entity/bypass/payment/InicisV2.d.ts +111 -78
  121. package/dist/v2/entity/bypass/payment/Kakaopay.d.ts +7 -1
  122. package/dist/v2/entity/bypass/payment/KcpV2.d.ts +23 -10
  123. package/dist/v2/entity/bypass/payment/KcpV2ComplexPnt.d.ts +11 -0
  124. package/dist/v2/entity/bypass/payment/KcpV2DispTax.d.ts +13 -0
  125. package/dist/v2/entity/bypass/payment/Kpn.d.ts +7 -9
  126. package/dist/v2/entity/bypass/payment/KpnCardSelect.d.ts +19 -0
  127. package/dist/v2/entity/bypass/payment/Ksnet.d.ts +10 -4
  128. package/dist/v2/entity/bypass/payment/KsnetSndQpayType.d.ts +17 -0
  129. package/dist/v2/entity/bypass/payment/Naverpay.d.ts +16 -27
  130. package/dist/v2/entity/bypass/payment/NaverpayProductItem.d.ts +39 -0
  131. package/dist/v2/entity/bypass/payment/NaverpayProductItemPayReferrer.d.ts +19 -0
  132. package/dist/v2/entity/bypass/payment/NaverpaySubMerchantInfo.d.ts +29 -0
  133. package/dist/v2/entity/bypass/payment/NiceV2.d.ts +48 -22
  134. package/dist/v2/entity/bypass/payment/NiceV2DirectCoupon.d.ts +21 -0
  135. package/dist/v2/entity/bypass/payment/NiceV2DirectShow.d.ts +17 -0
  136. package/dist/v2/entity/bypass/payment/NiceV2DisableScroll.d.ts +11 -0
  137. package/dist/v2/entity/bypass/payment/NiceV2SamPayMallType.d.ts +17 -0
  138. package/dist/v2/entity/bypass/payment/NiceV2SkinType.d.ts +18 -0
  139. package/dist/v2/entity/bypass/payment/PayletterGlobal.d.ts +16 -6
  140. package/dist/v2/entity/bypass/payment/PaypalV2.d.ts +15 -47
  141. package/dist/v2/entity/bypass/payment/PaypalV2PaymentSource.d.ts +4 -0
  142. package/dist/v2/entity/bypass/payment/PaypalV2PaymentSourcePaypal.d.ts +4 -0
  143. package/dist/v2/entity/bypass/payment/PaypalV2PaymentSourcePaypalExperienceContext.d.ts +9 -0
  144. package/dist/v2/entity/bypass/payment/PaypalV2PaymentSourcePaypalExperienceContextLandingPage.d.ts +6 -0
  145. package/dist/v2/entity/bypass/payment/PaypalV2PaymentSourcePaypalExperienceContextPaymentMethodPreference.d.ts +5 -0
  146. package/dist/v2/entity/bypass/payment/PaypalV2PaymentSourcePaypalExperienceContextShippingPreference.d.ts +6 -0
  147. package/dist/v2/entity/bypass/payment/SmartroV2.d.ts +19 -5
  148. package/dist/v2/entity/bypass/payment/SmartroV2OpenType.d.ts +15 -0
  149. package/dist/v2/entity/bypass/payment/SmartroV2SkinColor.d.ts +17 -0
  150. package/dist/v2/entity/bypass/payment/TossBrandpay.d.ts +17 -40
  151. package/dist/v2/entity/bypass/payment/TossBrandpayBrandpayOptions.d.ts +7 -0
  152. package/dist/v2/entity/bypass/payment/TossBrandpayBrandpayOptionsUi.d.ts +18 -0
  153. package/dist/v2/entity/bypass/payment/TossBrandpayBrandpayOptionsUiButtonStyle.d.ts +23 -0
  154. package/dist/v2/entity/bypass/payment/TossBrandpayBrandpayOptionsUiLabels.d.ts +6 -0
  155. package/dist/v2/entity/bypass/payment/TossBrandpayBrandpayOptionsUiNavigationBar.d.ts +10 -0
  156. package/dist/v2/entity/bypass/payment/TossBrandpayWidgetOptions.d.ts +16 -0
  157. package/dist/v2/entity/bypass/payment/TossBrandpayWidgetOptionsMethodType.d.ts +11 -0
  158. package/dist/v2/entity/bypass/payment/TossBrandpayWidgetOptionsUi.d.ts +4 -0
  159. package/dist/v2/entity/bypass/payment/TossBrandpayWidgetOptionsUiPromotionSection.d.ts +6 -0
  160. package/dist/v2/entity/bypass/payment/TossBrandpayWidgetOptionsUiPromotionSectionDescription.d.ts +10 -0
  161. package/dist/v2/entity/bypass/payment/TossBrandpayWidgetOptionsUiPromotionSectionSummary.d.ts +6 -0
  162. package/dist/v2/entity/bypass/payment/TosspayV2.d.ts +8 -7
  163. package/dist/v2/entity/bypass/payment/TosspayV2CashReceiptTradeOption.d.ts +29 -0
  164. package/dist/v2/entity/bypass/payment/Tosspayments.d.ts +9 -4
  165. package/dist/v2/entity/bypass/payment/Welcome.d.ts +84 -96
  166. package/dist/v2/entity/bypass/payment/index.d.ts +60 -36
  167. package/dist/v2/entity/index.d.ts +50 -37
  168. package/dist/v2/exception/CheckoutServiceErrorCode.d.ts +11 -1
  169. package/dist/v2/exception/GrpcErrorCode.d.ts +71 -1
  170. package/dist/v2/exception/IdentityVerificationError.d.ts +57 -10
  171. package/dist/v2/exception/IssueBillingKeyAndPayError.d.ts +60 -14
  172. package/dist/v2/exception/IssueBillingKeyError.d.ts +55 -9
  173. package/dist/v2/exception/LoadIssueBillingKeyUIError.d.ts +27 -2
  174. package/dist/v2/exception/LoadPaymentUIError.d.ts +27 -2
  175. package/dist/v2/exception/ModuleError.d.ts +22 -3
  176. package/dist/v2/exception/PaymentError.d.ts +57 -10
  177. package/dist/v2/exception/TxServiceIdentityVerificationErrorCode.d.ts +11 -1
  178. package/dist/v2/exception/TxServiceIssueErrorCode.d.ts +12 -1
  179. package/dist/v2/exception/TxServicePayErrorCode.d.ts +16 -1
  180. package/dist/v2/exception/index.d.ts +5 -0
  181. package/dist/v2/index.d.ts +14 -11
  182. package/dist/v2/loadIssueBillingKeyUI.d.ts +3 -22
  183. package/dist/v2/loadPaymentUI.d.ts +3 -34
  184. package/dist/v2/loader.d.ts +20 -15
  185. package/dist/v2/request/IdentityVerificationRequest.d.ts +66 -0
  186. package/dist/v2/request/IssueBillingKeyAndPayRequest.d.ts +3 -0
  187. package/dist/v2/request/IssueBillingKeyAndPayRequestBase.d.ts +207 -0
  188. package/dist/v2/request/IssueBillingKeyAndPayRequestUnion.d.ts +4 -0
  189. package/dist/v2/request/IssueBillingKeyAndPayRequestUnionMobile.d.ts +11 -0
  190. package/dist/v2/request/IssueBillingKeyRequest.d.ts +3 -0
  191. package/dist/v2/request/IssueBillingKeyRequestBase.d.ts +142 -0
  192. package/dist/v2/request/IssueBillingKeyRequestUnion.d.ts +10 -0
  193. package/dist/v2/request/IssueBillingKeyRequestUnionCard.d.ts +7 -0
  194. package/dist/v2/request/IssueBillingKeyRequestUnionEasyPay.d.ts +17 -0
  195. package/dist/v2/request/IssueBillingKeyRequestUnionMobile.d.ts +11 -0
  196. package/dist/v2/request/IssueBillingKeyRequestUnionPaypal.d.ts +1 -0
  197. package/dist/v2/request/LoadIssueBillingKeyUIRequest.d.ts +84 -0
  198. package/dist/v2/request/LoadPaymentUIRequest.d.ts +198 -0
  199. package/dist/v2/request/PaymentRequest.d.ts +3 -0
  200. package/dist/v2/request/PaymentRequestBase.d.ts +253 -0
  201. package/dist/v2/request/PaymentRequestUnion.d.ts +35 -0
  202. package/dist/v2/request/PaymentRequestUnionAlipay.d.ts +1 -0
  203. package/dist/v2/request/PaymentRequestUnionCard.d.ts +79 -0
  204. package/dist/v2/request/PaymentRequestUnionConvenienceStore.d.ts +7 -0
  205. package/dist/v2/request/PaymentRequestUnionConvenienceStorePaymentDeadline.d.ts +16 -0
  206. package/dist/v2/request/PaymentRequestUnionEasyPay.d.ts +110 -0
  207. package/dist/v2/request/PaymentRequestUnionGiftCertificate.d.ts +10 -0
  208. package/dist/v2/request/PaymentRequestUnionMobile.d.ts +16 -0
  209. package/dist/v2/request/PaymentRequestUnionPaypal.d.ts +1 -0
  210. package/dist/v2/request/PaymentRequestUnionTransfer.d.ts +23 -0
  211. package/dist/v2/request/PaymentRequestUnionVirtualAccount.d.ts +45 -0
  212. package/dist/v2/request/PaymentRequestUnionVirtualAccountAccountExpiry.d.ts +25 -0
  213. package/dist/v2/request/PaymentRequestUnionVirtualAccountFixedOption.d.ts +14 -0
  214. package/dist/v2/request/index.d.ts +29 -0
  215. package/dist/v2/requestIdentityVerification.d.ts +2 -28
  216. package/dist/v2/requestIssueBillingKey.d.ts +2 -56
  217. package/dist/v2/requestIssueBillingKeyAndPay.d.ts +2 -56
  218. package/dist/v2/requestPayment.d.ts +2 -110
  219. package/dist/v2/response/IdentityVerificationResponse.d.ts +49 -0
  220. package/dist/v2/response/IssueBillingKeyAndPayResponse.d.ts +53 -0
  221. package/dist/v2/response/IssueBillingKeyResponse.d.ts +41 -0
  222. package/dist/v2/response/PaymentResponse.d.ts +47 -0
  223. package/dist/v2/response/index.d.ts +4 -0
  224. package/dist/v2/updateLoadIssueBillingKeyUIRequest.d.ts +1 -1
  225. package/dist/v2/updateLoadPaymentUIRequest.d.ts +1 -1
  226. package/dist/v2.cjs +3230 -343
  227. package/dist/v2.js +3179 -344
  228. package/package.json +8 -8
@@ -2,23 +2,69 @@ import { PortOneError } from './index.js';
2
2
  import { CheckoutServiceErrorCode } from './CheckoutServiceErrorCode.js';
3
3
  import { GrpcErrorCode } from './GrpcErrorCode.js';
4
4
  import { TxServiceIssueErrorCode } from './TxServiceIssueErrorCode.js';
5
- export type IssueBillingKeyErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServiceIssueErrorCode;
5
+ import type { PgCode } from '../entity/PgCode.js';
6
+ import type { PgMessage } from '../entity/PgMessage.js';
6
7
  export declare function isIssueBillingKeyError(error: unknown): error is IssueBillingKeyError;
8
+ /**
9
+ * **오류 코드**
10
+ *
11
+ * 실패한 경우 오류 코드입니다.
12
+ */
13
+ export type IssueBillingKeyErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServiceIssueErrorCode;
7
14
  export declare class IssueBillingKeyError extends Error implements PortOneError {
8
15
  static [Symbol.hasInstance](instance: unknown): boolean;
9
16
  __portOneErrorType: string;
10
- transactionType: "ISSUE_BILLING_KEY";
17
+ transactionType: string;
18
+ /**
19
+ * **오류 코드**
20
+ *
21
+ * 실패한 경우 오류 코드입니다.
22
+ */
11
23
  code: IssueBillingKeyErrorCode;
24
+ /**
25
+ * **오류 메시지**
26
+ *
27
+ * 실패한 경우 오류 메시지입니다.
28
+ */
12
29
  message: string;
13
- billingKey?: string;
14
- pgCode?: string;
15
- pgMessage?: string;
30
+ billingKey?: string | undefined;
31
+ /**
32
+ * **PG 오류 코드**
33
+ *
34
+ * PG에서 오류 코드를 내려 주는 경우 이 오류 코드를 그대로 반환합니다.
35
+ */
36
+ pgCode?: PgCode | undefined;
37
+ /**
38
+ * **PG 오류 메시지**
39
+ *
40
+ * PG에서 오류 메시지를 내려 주는 경우 이 오류 메시지를 그대로 반환합니다.
41
+ */
42
+ pgMessage?: PgMessage | undefined;
16
43
  constructor({ code, message, billingKey, pgCode, pgMessage, }: {
44
+ /**
45
+ * **오류 코드**
46
+ *
47
+ * 실패한 경우 오류 코드입니다.
48
+ */
17
49
  code: IssueBillingKeyErrorCode;
50
+ /**
51
+ * **오류 메시지**
52
+ *
53
+ * 실패한 경우 오류 메시지입니다.
54
+ */
18
55
  message: string;
19
- billingKey?: string;
20
- pgCode?: string;
21
- pgMessage?: string;
56
+ billingKey?: string | undefined;
57
+ /**
58
+ * **PG 오류 코드**
59
+ *
60
+ * PG에서 오류 코드를 내려 주는 경우 이 오류 코드를 그대로 반환합니다.
61
+ */
62
+ pgCode?: PgCode | undefined;
63
+ /**
64
+ * **PG 오류 메시지**
65
+ *
66
+ * PG에서 오류 메시지를 내려 주는 경우 이 오류 메시지를 그대로 반환합니다.
67
+ */
68
+ pgMessage?: PgMessage | undefined;
22
69
  });
23
70
  }
24
- export default IssueBillingKeyError;
@@ -2,16 +2,41 @@ import { PortOneError } from './index.js';
2
2
  import { CheckoutServiceErrorCode } from './CheckoutServiceErrorCode.js';
3
3
  import { GrpcErrorCode } from './GrpcErrorCode.js';
4
4
  import { TxServiceIssueErrorCode } from './TxServiceIssueErrorCode.js';
5
- export type LoadIssueBillingKeyUIErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServiceIssueErrorCode;
6
5
  export declare function isLoadIssueBillingKeyUIError(error: unknown): error is LoadIssueBillingKeyUIError;
6
+ /**
7
+ * **오류 코드**
8
+ *
9
+ * 실패한 경우 오류 코드입니다.
10
+ */
11
+ export type LoadIssueBillingKeyUIErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServiceIssueErrorCode;
7
12
  export declare class LoadIssueBillingKeyUIError extends Error implements PortOneError {
8
13
  static [Symbol.hasInstance](instance: unknown): boolean;
9
14
  __portOneErrorType: string;
10
- transactionType: "ISSUE_BILLING_KEY";
15
+ transactionType: string;
16
+ /**
17
+ * **오류 코드**
18
+ *
19
+ * 실패한 경우 오류 코드입니다.
20
+ */
11
21
  code: LoadIssueBillingKeyUIErrorCode;
22
+ /**
23
+ * **오류 메시지**
24
+ *
25
+ * 실패한 경우 오류 메시지입니다.
26
+ */
12
27
  message: string;
13
28
  constructor({ code, message, }: {
29
+ /**
30
+ * **오류 코드**
31
+ *
32
+ * 실패한 경우 오류 코드입니다.
33
+ */
14
34
  code: LoadIssueBillingKeyUIErrorCode;
35
+ /**
36
+ * **오류 메시지**
37
+ *
38
+ * 실패한 경우 오류 메시지입니다.
39
+ */
15
40
  message: string;
16
41
  });
17
42
  }
@@ -2,16 +2,41 @@ import { PortOneError } from './index.js';
2
2
  import { CheckoutServiceErrorCode } from './CheckoutServiceErrorCode.js';
3
3
  import { GrpcErrorCode } from './GrpcErrorCode.js';
4
4
  import { TxServicePayErrorCode } from './TxServicePayErrorCode.js';
5
- export type LoadPaymentUIErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServicePayErrorCode;
6
5
  export declare function isLoadPaymentUIError(error: unknown): error is LoadPaymentUIError;
6
+ /**
7
+ * **오류 코드**
8
+ *
9
+ * 실패한 경우 오류 코드입니다.
10
+ */
11
+ export type LoadPaymentUIErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServicePayErrorCode;
7
12
  export declare class LoadPaymentUIError extends Error implements PortOneError {
8
13
  static [Symbol.hasInstance](instance: unknown): boolean;
9
14
  __portOneErrorType: string;
10
- transactionType: "PAYMENT";
15
+ transactionType: string;
16
+ /**
17
+ * **오류 코드**
18
+ *
19
+ * 실패한 경우 오류 코드입니다.
20
+ */
11
21
  code: LoadPaymentUIErrorCode;
22
+ /**
23
+ * **오류 메시지**
24
+ *
25
+ * 실패한 경우 오류 메시지입니다.
26
+ */
12
27
  message: string;
13
28
  constructor({ code, message, }: {
29
+ /**
30
+ * **오류 코드**
31
+ *
32
+ * 실패한 경우 오류 코드입니다.
33
+ */
14
34
  code: LoadPaymentUIErrorCode;
35
+ /**
36
+ * **오류 메시지**
37
+ *
38
+ * 실패한 경우 오류 메시지입니다.
39
+ */
15
40
  message: string;
16
41
  });
17
42
  }
@@ -1,15 +1,34 @@
1
+ import { PortOneError } from './index.js';
1
2
  import { CheckoutServiceErrorCode } from './CheckoutServiceErrorCode.js';
2
3
  import { GrpcErrorCode } from './GrpcErrorCode.js';
3
- import { PortOneError } from './index.js';
4
- export type ModuleErrorCode = CheckoutServiceErrorCode | GrpcErrorCode;
5
4
  export declare function isModuleError(error: unknown): error is ModuleError;
5
+ /**
6
+ * **오류 코드**
7
+ */
8
+ export type ModuleErrorCode = CheckoutServiceErrorCode | GrpcErrorCode;
6
9
  export declare class ModuleError extends Error implements PortOneError {
7
10
  static [Symbol.hasInstance](instance: unknown): boolean;
8
11
  __portOneErrorType: string;
12
+ /**
13
+ * **오류 코드**
14
+ */
9
15
  code: ModuleErrorCode;
16
+ /**
17
+ * **오류 메시지**
18
+ *
19
+ * 실패한 경우 오류 메시지입니다.
20
+ */
10
21
  message: string;
11
- constructor({ code, message }: {
22
+ constructor({ code, message, }: {
23
+ /**
24
+ * **오류 코드**
25
+ */
12
26
  code: ModuleErrorCode;
27
+ /**
28
+ * **오류 메시지**
29
+ *
30
+ * 실패한 경우 오류 메시지입니다.
31
+ */
13
32
  message: string;
14
33
  });
15
34
  }
@@ -2,24 +2,71 @@ import { PortOneError } from './index.js';
2
2
  import { CheckoutServiceErrorCode } from './CheckoutServiceErrorCode.js';
3
3
  import { GrpcErrorCode } from './GrpcErrorCode.js';
4
4
  import { TxServicePayErrorCode } from './TxServicePayErrorCode.js';
5
- export type PaymentErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServicePayErrorCode;
5
+ import type { PgCode } from '../entity/PgCode.js';
6
+ import type { PgMessage } from '../entity/PgMessage.js';
6
7
  export declare function isPaymentError(error: unknown): error is PaymentError;
8
+ /**
9
+ * **오류 코드**
10
+ *
11
+ * 실패한 경우 오류 코드입니다.
12
+ */
13
+ export type PaymentErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServicePayErrorCode;
7
14
  export declare class PaymentError extends Error implements PortOneError {
8
15
  static [Symbol.hasInstance](instance: unknown): boolean;
9
16
  __portOneErrorType: string;
10
- transactionType: "PAYMENT";
17
+ transactionType: string;
18
+ /**
19
+ * **오류 코드**
20
+ *
21
+ * 실패한 경우 오류 코드입니다.
22
+ */
11
23
  code: PaymentErrorCode;
24
+ /**
25
+ * **오류 메시지**
26
+ *
27
+ * 실패한 경우 오류 메시지입니다.
28
+ */
12
29
  message: string;
13
- txId?: string;
14
- paymentId?: string;
15
- pgCode?: string;
16
- pgMessage?: string;
30
+ txId?: string | undefined;
31
+ paymentId?: string | undefined;
32
+ /**
33
+ * **PG 오류 코드**
34
+ *
35
+ * PG에서 오류 코드를 내려 주는 경우 이 오류 코드를 그대로 반환합니다.
36
+ */
37
+ pgCode?: PgCode | undefined;
38
+ /**
39
+ * **PG 오류 메시지**
40
+ *
41
+ * PG에서 오류 메시지를 내려 주는 경우 이 오류 메시지를 그대로 반환합니다.
42
+ */
43
+ pgMessage?: PgMessage | undefined;
17
44
  constructor({ code, message, txId, paymentId, pgCode, pgMessage, }: {
45
+ /**
46
+ * **오류 코드**
47
+ *
48
+ * 실패한 경우 오류 코드입니다.
49
+ */
18
50
  code: PaymentErrorCode;
51
+ /**
52
+ * **오류 메시지**
53
+ *
54
+ * 실패한 경우 오류 메시지입니다.
55
+ */
19
56
  message: string;
20
- txId?: string;
21
- paymentId?: string;
22
- pgCode?: string;
23
- pgMessage?: string;
57
+ txId?: string | undefined;
58
+ paymentId?: string | undefined;
59
+ /**
60
+ * **PG 오류 코드**
61
+ *
62
+ * PG에서 오류 코드를 내려 주는 경우 이 오류 코드를 그대로 반환합니다.
63
+ */
64
+ pgCode?: PgCode | undefined;
65
+ /**
66
+ * **PG 오류 메시지**
67
+ *
68
+ * PG에서 오류 메시지를 내려 주는 경우 이 오류 메시지를 그대로 반환합니다.
69
+ */
70
+ pgMessage?: PgMessage | undefined;
24
71
  });
25
72
  }
@@ -1 +1,11 @@
1
- export type TxServiceIdentityVerificationErrorCode = 'RequestParseFailed' | 'InvalidEntityState' | 'StoreNotFound' | 'ChannelNotFound' | 'PGProviderError' | 'IdentityVerificationAlreadyVerified' | 'AllChannelsNotSatisfied' | 'UnknownError';
1
+ export declare const TxServiceIdentityVerificationErrorCode: {
2
+ readonly RequestParseFailed: "RequestParseFailed";
3
+ readonly InvalidEntityState: "InvalidEntityState";
4
+ readonly StoreNotFound: "StoreNotFound";
5
+ readonly ChannelNotFound: "ChannelNotFound";
6
+ readonly PGProviderError: "PGProviderError";
7
+ readonly IdentityVerificationAlreadyVerified: "IdentityVerificationAlreadyVerified";
8
+ readonly AllChannelsNotSatisfied: "AllChannelsNotSatisfied";
9
+ readonly UnknownError: "UnknownError";
10
+ };
11
+ export type TxServiceIdentityVerificationErrorCode = (typeof TxServiceIdentityVerificationErrorCode)[keyof typeof TxServiceIdentityVerificationErrorCode];
@@ -1 +1,12 @@
1
- export type TxServiceIssueErrorCode = 'RequestParseFailed' | 'InvalidEntityState' | 'ConfirmUrlRequired' | 'StoreNotFound' | 'ChannelNotFound' | 'PGProviderError' | 'AllChannelsNotSatisfied' | 'BillingKeyNotFound' | 'UnknownError';
1
+ export declare const TxServiceIssueErrorCode: {
2
+ readonly RequestParseFailed: "RequestParseFailed";
3
+ readonly InvalidEntityState: "InvalidEntityState";
4
+ readonly ConfirmUrlRequired: "ConfirmUrlRequired";
5
+ readonly StoreNotFound: "StoreNotFound";
6
+ readonly ChannelNotFound: "ChannelNotFound";
7
+ readonly PGProviderError: "PGProviderError";
8
+ readonly AllChannelsNotSatisfied: "AllChannelsNotSatisfied";
9
+ readonly BillingKeyNotFound: "BillingKeyNotFound";
10
+ readonly UnknownError: "UnknownError";
11
+ };
12
+ export type TxServiceIssueErrorCode = (typeof TxServiceIssueErrorCode)[keyof typeof TxServiceIssueErrorCode];
@@ -1 +1,16 @@
1
- export type TxServicePayErrorCode = 'RequestParseFailed' | 'InvalidEntityState' | 'ConfirmUrlRequired' | 'StoreNotFound' | 'ChannelNotFound' | 'PGProviderError' | 'PaymentNotFound' | 'PaymentAlreadyPaid' | 'TransactionNotFound' | 'AllChannelsNotSatisfied' | 'AmountNotEqualToPredefined' | 'ConfirmProcessFailed' | 'UnknownError';
1
+ export declare const TxServicePayErrorCode: {
2
+ readonly RequestParseFailed: "RequestParseFailed";
3
+ readonly InvalidEntityState: "InvalidEntityState";
4
+ readonly ConfirmUrlRequired: "ConfirmUrlRequired";
5
+ readonly StoreNotFound: "StoreNotFound";
6
+ readonly ChannelNotFound: "ChannelNotFound";
7
+ readonly PGProviderError: "PGProviderError";
8
+ readonly PaymentNotFound: "PaymentNotFound";
9
+ readonly PaymentAlreadyPaid: "PaymentAlreadyPaid";
10
+ readonly TransactionNotFound: "TransactionNotFound";
11
+ readonly AllChannelsNotSatisfied: "AllChannelsNotSatisfied";
12
+ readonly AmountNotEqualToPredefined: "AmountNotEqualToPredefined";
13
+ readonly ConfirmProcessFailed: "ConfirmProcessFailed";
14
+ readonly UnknownError: "UnknownError";
15
+ };
16
+ export type TxServicePayErrorCode = (typeof TxServicePayErrorCode)[keyof typeof TxServicePayErrorCode];
@@ -2,6 +2,11 @@ export interface PortOneError extends Error {
2
2
  __portOneErrorType: string;
3
3
  }
4
4
  export declare function isPortOneError(error: unknown): error is PortOneError;
5
+ export * from './CheckoutServiceErrorCode.js';
6
+ export * from './GrpcErrorCode.js';
7
+ export * from './TxServiceIdentityVerificationErrorCode.js';
8
+ export * from './TxServiceIssueErrorCode.js';
9
+ export * from './TxServicePayErrorCode.js';
5
10
  export * from './IdentityVerificationError.js';
6
11
  export * from './IssueBillingKeyAndPayError.js';
7
12
  export * from './IssueBillingKeyError.js';
@@ -1,31 +1,34 @@
1
+ import { requestPayment } from './requestPayment.js';
1
2
  import { requestIdentityVerification } from './requestIdentityVerification.js';
2
3
  import { requestIssueBillingKeyAndPay } from './requestIssueBillingKeyAndPay.js';
3
4
  import { requestIssueBillingKey } from './requestIssueBillingKey.js';
4
- import { requestPayment } from './requestPayment.js';
5
5
  import { loadPaymentUI } from './loadPaymentUI.js';
6
6
  import { loadIssueBillingKeyUI } from './loadIssueBillingKeyUI.js';
7
7
  import { updateLoadPaymentUIRequest } from './updateLoadPaymentUIRequest.js';
8
8
  import { updateLoadIssueBillingKeyUIRequest } from './updateLoadIssueBillingKeyUIRequest.js';
9
9
  declare const PortOne: {
10
+ requestPayment: typeof requestPayment;
10
11
  requestIdentityVerification: typeof requestIdentityVerification;
11
12
  requestIssueBillingKeyAndPay: typeof requestIssueBillingKeyAndPay;
12
13
  requestIssueBillingKey: typeof requestIssueBillingKey;
13
- requestPayment: typeof requestPayment;
14
14
  loadPaymentUI: typeof loadPaymentUI;
15
15
  loadIssueBillingKeyUI: typeof loadIssueBillingKeyUI;
16
16
  updateLoadPaymentUIRequest: typeof updateLoadPaymentUIRequest;
17
17
  updateLoadIssueBillingKeyUIRequest: typeof updateLoadIssueBillingKeyUIRequest;
18
18
  };
19
19
  export { setPortOneJsSdkUrl as __INTERNAL__setPortOneSdkUrl } from './loader.js';
20
- export { requestIdentityVerification, type IdentityVerificationRequest, type IdentityVerificationResponse, } from './requestIdentityVerification.js';
21
- export { requestIssueBillingKeyAndPay, type IssueBillingKeyAndPayRequest, type IssueBillingKeyAndPayResponse, } from './requestIssueBillingKeyAndPay.js';
22
- export { requestIssueBillingKey, type IssueBillingKeyRequest, type IssueBillingKeyResponse, } from './requestIssueBillingKey.js';
23
- export { requestPayment, type PaymentRequest, type PaymentResponse, } from './requestPayment.js';
24
- export { loadPaymentUI, type LoadPaymentUIRequest } from './loadPaymentUI.js';
25
- export { loadIssueBillingKeyUI, type LoadIssueBillingKeyUIRequest, } from './loadIssueBillingKeyUI.js';
26
- export { updateLoadPaymentUIRequest } from './updateLoadPaymentUIRequest.js';
27
- export { updateLoadIssueBillingKeyUIRequest } from './updateLoadIssueBillingKeyUIRequest.js';
20
+ export * from './requestPayment.js';
21
+ export * from './requestIdentityVerification.js';
22
+ export * from './requestIssueBillingKeyAndPay.js';
23
+ export * from './requestIssueBillingKey.js';
24
+ export * from './loadPaymentUI.js';
25
+ export * from './loadIssueBillingKeyUI.js';
26
+ export * from './updateLoadPaymentUIRequest.js';
27
+ export * from './updateLoadIssueBillingKeyUIRequest.js';
28
+ export * from './entity/index.js';
29
+ export * from './exception/index.js';
30
+ export * from './request/index.js';
31
+ export * from './response/index.js';
28
32
  export * as Entity from './entity/index.js';
29
33
  export * as errors from './exception/index.js';
30
- export * from './exception/index.js';
31
34
  export default PortOne;
@@ -1,26 +1,7 @@
1
- import { Entity, IssueBillingKeyError, IssueBillingKeyResponse } from './index.js';
2
- import { IssueBillingKeyUIType } from './entity/index.js';
1
+ import type { LoadIssueBillingKeyUIRequest } from './request/LoadIssueBillingKeyUIRequest.js';
2
+ import type { IssueBillingKeyResponse } from './response/IssueBillingKeyResponse.js';
3
+ import type { IssueBillingKeyError } from './exception/IssueBillingKeyError.js';
3
4
  export declare function loadIssueBillingKeyUI(request: LoadIssueBillingKeyUIRequest, callbacks: {
4
5
  onIssueBillingKeySuccess: (response: IssueBillingKeyResponse) => void;
5
6
  onIssueBillingKeyFail: (error: IssueBillingKeyError) => void;
6
7
  }): Promise<void>;
7
- export type LoadIssueBillingKeyUIRequest = {
8
- uiType: IssueBillingKeyUIType;
9
- displayAmount?: number;
10
- currency?: Entity.Currency;
11
- storeId: string;
12
- channelKey: string;
13
- pgProvider?: Entity.PgProvider;
14
- isTestChannel?: boolean;
15
- billingKeyMethod: Entity.BillingKeyMethod;
16
- issueName?: string;
17
- issueId?: string;
18
- customer?: Entity.Customer;
19
- redirectUrl?: string;
20
- locale?: Entity.Locale;
21
- customData?: Record<string, any>;
22
- appScheme?: string;
23
- noticeUrls?: string[];
24
- productType?: Entity.ProductType;
25
- bypass?: Entity.LoadIssueBillingKeyUIBypass;
26
- };
@@ -1,38 +1,7 @@
1
- import { Entity, PaymentError, PaymentResponse } from './index.js';
2
- import { PaymentUIType } from './entity/index.js';
3
- import { Prettify } from '../utils.js';
1
+ import type { LoadPaymentUIRequest } from './request/LoadPaymentUIRequest.js';
2
+ import type { PaymentResponse } from './response/PaymentResponse.js';
3
+ import type { PaymentError } from './exception/PaymentError.js';
4
4
  export declare function loadPaymentUI(request: LoadPaymentUIRequest, callbacks: {
5
5
  onPaymentSuccess: (response: PaymentResponse) => void;
6
6
  onPaymentFail: (error: PaymentError) => void;
7
7
  }): Promise<void>;
8
- export type LoadPaymentUIRequest = Prettify<{
9
- uiType: PaymentUIType;
10
- storeId: string;
11
- paymentId: string;
12
- orderName: string;
13
- totalAmount: number;
14
- channelKey: string;
15
- pgProvider?: Entity.PgProvider;
16
- isTestChannel?: boolean;
17
- taxFreeAmount?: number;
18
- vatAmount?: number;
19
- customer?: Entity.Customer;
20
- redirectUrl?: string;
21
- noticeUrls?: string[];
22
- confirmUrl?: string;
23
- appScheme?: string;
24
- isEscrow?: boolean;
25
- products?: Entity.Product[];
26
- isCulturalExpense?: boolean;
27
- currency: Entity.Currency;
28
- locale?: Entity.Locale;
29
- customData?: Record<string, any>;
30
- offerPeriod?: Entity.OfferPeriod;
31
- productType?: Entity.ProductType;
32
- storeDetails?: Entity.StoreDetails;
33
- bypass?: Entity.LoadPaymentUIBypass;
34
- country?: Entity.Country;
35
- shippingAddress?: Entity.Address;
36
- promotionGroupId?: string;
37
- promotionIds?: string[];
38
- }>;
@@ -1,20 +1,20 @@
1
- import type { IdentityVerificationRequest, IdentityVerificationResponse } from './requestIdentityVerification.js';
2
- import type { IssueBillingKeyAndPayRequest, IssueBillingKeyAndPayResponse } from './requestIssueBillingKeyAndPay.js';
3
- import type { IssueBillingKeyRequest, IssueBillingKeyResponse } from './requestIssueBillingKey.js';
4
- import type { PaymentRequest, PaymentResponse } from './requestPayment.js';
5
- import { LoadPaymentUIRequest } from './loadPaymentUI.js';
6
- import { LoadIssueBillingKeyUIRequest } from './loadIssueBillingKeyUI.js';
7
- import { IssueBillingKeyError, PaymentError } from './exception/index.js';
8
- declare global {
9
- interface Window {
10
- PortOne: PortOne | undefined;
11
- }
12
- }
1
+ import type { PaymentRequest } from './request/PaymentRequest.js';
2
+ import type { PaymentResponse } from './response/PaymentResponse.js';
3
+ import type { IdentityVerificationRequest } from './request/IdentityVerificationRequest.js';
4
+ import type { IdentityVerificationResponse } from './response/IdentityVerificationResponse.js';
5
+ import type { IssueBillingKeyAndPayRequest } from './request/IssueBillingKeyAndPayRequest.js';
6
+ import type { IssueBillingKeyAndPayResponse } from './response/IssueBillingKeyAndPayResponse.js';
7
+ import type { IssueBillingKeyRequest } from './request/IssueBillingKeyRequest.js';
8
+ import type { IssueBillingKeyResponse } from './response/IssueBillingKeyResponse.js';
9
+ import type { LoadPaymentUIRequest } from './request/LoadPaymentUIRequest.js';
10
+ import type { PaymentError } from './exception/PaymentError.js';
11
+ import type { LoadIssueBillingKeyUIRequest } from './request/LoadIssueBillingKeyUIRequest.js';
12
+ import type { IssueBillingKeyError } from './exception/IssueBillingKeyError.js';
13
13
  interface PortOne {
14
- requestPayment(request: PaymentRequest): Promise<PaymentResponse>;
14
+ requestPayment(request: PaymentRequest): Promise<PaymentResponse | undefined>;
15
+ requestIdentityVerification(request: IdentityVerificationRequest): Promise<IdentityVerificationResponse | undefined>;
15
16
  requestIssueBillingKeyAndPay(request: IssueBillingKeyAndPayRequest): Promise<IssueBillingKeyAndPayResponse>;
16
- requestIssueBillingKey(request: IssueBillingKeyRequest): Promise<IssueBillingKeyResponse>;
17
- requestIdentityVerification(request: IdentityVerificationRequest): Promise<IdentityVerificationResponse>;
17
+ requestIssueBillingKey(request: IssueBillingKeyRequest): Promise<IssueBillingKeyResponse | undefined>;
18
18
  loadPaymentUI(request: LoadPaymentUIRequest, callbacks: {
19
19
  onPaymentSuccess: (response: PaymentResponse) => void;
20
20
  onPaymentFail: (error: PaymentError) => void;
@@ -26,6 +26,11 @@ interface PortOne {
26
26
  updateLoadPaymentUIRequest(request: LoadPaymentUIRequest): Promise<void>;
27
27
  updateLoadIssueBillingKeyUIRequest(request: LoadIssueBillingKeyUIRequest): Promise<void>;
28
28
  }
29
+ declare global {
30
+ interface Window {
31
+ PortOne: PortOne | undefined;
32
+ }
33
+ }
29
34
  export declare function loadScript(): Promise<PortOne>;
30
35
  export declare function setPortOneJsSdkUrl(url: string): string;
31
36
  export {};
@@ -0,0 +1,66 @@
1
+ import type { StoreId } from '../entity/StoreId.js';
2
+ import type { ChannelKey } from '../entity/ChannelKey.js';
3
+ import type { Customer } from '../entity/Customer.js';
4
+ import type { WindowTypes } from '../entity/WindowTypes.js';
5
+ import type { RedirectUrl } from '../entity/RedirectUrl.js';
6
+ import type { IdentityVerificationBypass } from '../entity/bypass/IdentityVerificationBypass.js';
7
+ import type { Popup } from '../entity/Popup.js';
8
+ import type { Iframe } from '../entity/Iframe.js';
9
+ export type IdentityVerificationRequest = {
10
+ /**
11
+ * **상점 아이디**
12
+ *
13
+ * 포트원 계정에 생성된 상점을 식별하는 고유한 값으로 [관리자 콘솔 > 연동 정보](https://admin.portone.io/integration-v2/manage/channel) 우측 상단에서 확인할 수 있습니다.
14
+ */
15
+ storeId: StoreId;
16
+ /**
17
+ * **본인인증 건 ID**
18
+ *
19
+ * - 임의로 ID를 정하여 입력합니다.
20
+ * - 이미 본인인증이 완료된 `identityVerificationId`로 다시 본인인증을 시도하는 경우 실패합니다.
21
+ */
22
+ identityVerificationId: string;
23
+ /**
24
+ * **채널 키**
25
+ *
26
+ * 포트원에 등록된 결제 채널 중 하나를 지정합니다.
27
+ *
28
+ * [관리자 콘솔 > 연동 정보](https://admin.portone.io/integration-v2/manage/channel)에서 채널 연동 후 채널 키를 확인할 수 있습니다.
29
+ *
30
+ * 채널 키와 채널 그룹 ID 중 하나를 지정해야 합니다.
31
+ */
32
+ channelKey?: ChannelKey | undefined;
33
+ customer?: Customer | undefined;
34
+ /**
35
+ * **환경 별 제공되는 결제/본인인증 창 유형**
36
+ *
37
+ * - PG사에 따라 가능한 창 유형이 다릅니다.
38
+ * - 전달되지 않았을 때 결정되는 기본 창이 다릅니다.
39
+ * - 미입력 시, 해당 PG사의 기본 창 방식을 따릅니다.
40
+ */
41
+ windowType?: WindowTypes | undefined;
42
+ /**
43
+ * **리디렉션 방식에서 결제 완료 후 이동할 URL**
44
+ *
45
+ * 결제사 페이지로 이동하여 진행하는 리디렉션 방식의 경우 필수로 설정해야 합니다. 대부분의 모바일 환경이 리디렉션 방식에 해당됩니다.
46
+ */
47
+ redirectUrl?: RedirectUrl | undefined;
48
+ /**
49
+ * **본인인증 정보와 함께 관리하고 싶은 고객사 커스텀 JSON 데이터**
50
+ */
51
+ customData?: string | undefined;
52
+ /**
53
+ * **PG사 본인인증 창 호출 시 PG사로 그대로 bypass할 값들의 모음**
54
+ */
55
+ bypass?: IdentityVerificationBypass | undefined;
56
+ /**
57
+ * **팝업 관련 필드**
58
+ *
59
+ * UI가 팝업 창으로 열릴 때 적용되는 속성입니다.
60
+ */
61
+ popup?: Popup | undefined;
62
+ /**
63
+ * **결제창이 iframe 방식일 경우 결제창에 적용할 속성**
64
+ */
65
+ iframe?: Iframe | undefined;
66
+ };
@@ -0,0 +1,3 @@
1
+ import type { IssueBillingKeyAndPayRequestBase } from './IssueBillingKeyAndPayRequestBase.js';
2
+ import type { IssueBillingKeyAndPayRequestUnion } from './IssueBillingKeyAndPayRequestUnion.js';
3
+ export type IssueBillingKeyAndPayRequest = IssueBillingKeyAndPayRequestBase & IssueBillingKeyAndPayRequestUnion;