@portone/browser-sdk 0.0.23 → 0.1.0

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 (229) hide show
  1. package/dist/v2/entity/Address.d.ts +24 -4
  2. package/dist/v2/entity/Bank.d.ts +350 -76
  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 +99 -24
  6. package/dist/v2/entity/Carrier.d.ts +28 -13
  7. package/dist/v2/entity/CashReceiptType.d.ts +19 -4
  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 +1007 -250
  11. package/dist/v2/entity/Currency.d.ts +723 -181
  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 +178 -22
  15. package/dist/v2/entity/FreeInstallmentPlan.d.ts +25 -4
  16. package/dist/v2/entity/Gender.d.ts +19 -4
  17. package/dist/v2/entity/GiftCertificateType.d.ts +24 -6
  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 +51 -96
  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 +13 -6
  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/loadIssueBillingKeyUI/PaypalV2Country.d.ts +212 -0
  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 +57 -0
  221. package/dist/v2/response/IssueBillingKeyResponse.d.ts +45 -0
  222. package/dist/v2/response/PaymentResponse.d.ts +53 -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 +3563 -676
  227. package/dist/v2.js +3512 -677
  228. package/package.json +8 -8
  229. package/dist/v2/entity/bypass/PaypalV2Country.d.ts +0 -206
@@ -0,0 +1,198 @@
1
+ import { PaymentUIType } from '../entity/PaymentUIType.js';
2
+ import type { StoreId } from '../entity/StoreId.js';
3
+ import type { PaymentOrderName } from '../entity/PaymentOrderName.js';
4
+ import type { PaymentTotalAmount } from '../entity/PaymentTotalAmount.js';
5
+ import type { ChannelKey } from '../entity/ChannelKey.js';
6
+ import type { TaxFreeAmount } from '../entity/TaxFreeAmount.js';
7
+ import type { VatAmount } from '../entity/VatAmount.js';
8
+ import type { Customer } from '../entity/Customer.js';
9
+ import type { RedirectUrl } from '../entity/RedirectUrl.js';
10
+ import type { Product } from '../entity/Product.js';
11
+ import { Currency } from '../entity/Currency.js';
12
+ import { Locale } from '../entity/Locale.js';
13
+ import type { OfferPeriod } from '../entity/OfferPeriod.js';
14
+ import { ProductType } from '../entity/ProductType.js';
15
+ import type { StoreDetails } from '../entity/StoreDetails.js';
16
+ import type { LoadPaymentUIBypass } from '../entity/bypass/LoadPaymentUIBypass.js';
17
+ import { Country } from '../entity/Country.js';
18
+ import type { Address } from '../entity/Address.js';
19
+ export type LoadPaymentUIRequest = {
20
+ uiType: PaymentUIType;
21
+ /**
22
+ * **상점 아이디**
23
+ *
24
+ * 포트원 계정에 생성된 상점을 식별하는 고유한 값으로 [관리자 콘솔 > 연동 정보](https://admin.portone.io/integration-v2/manage/channel) 우측 상단에서 확인할 수 있습니다.
25
+ */
26
+ storeId: StoreId;
27
+ /**
28
+ * **결제 ID**
29
+ *
30
+ * 고객사에서 임의로 ID를 정합니다.
31
+ *
32
+ * 이미 결제 완료된 `paymentId`로 결제를 요청하는 경우 실패합니다.
33
+ */
34
+ paymentId: string;
35
+ /**
36
+ * **주문명**
37
+ */
38
+ orderName: PaymentOrderName;
39
+ /**
40
+ * **결제 금액**
41
+ *
42
+ * 결제 금액을 정수로 나타냅니다.
43
+ *
44
+ * 해외 통화의 경우 통화의 최소 단위(minor unit)를 기준으로 합니다. 예를 들어, USD의 최소 단위는 센트(0.01 USD)이므로, 6 USD의 경우 100배하여 600으로 입력합니다.
45
+ *
46
+ * 최소 단위는 [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html)에 표준화된 것을 기준으로 합니다.
47
+ *
48
+ * - KRW: 1배
49
+ * - USD: 100배
50
+ * - JPY: 1배
51
+ */
52
+ totalAmount: PaymentTotalAmount;
53
+ /**
54
+ * **채널 키**
55
+ *
56
+ * 포트원에 등록된 결제 채널 중 하나를 지정합니다.
57
+ *
58
+ * [관리자 콘솔 > 연동 정보](https://admin.portone.io/integration-v2/manage/channel)에서 채널 연동 후 채널 키를 확인할 수 있습니다.
59
+ *
60
+ * 채널 키와 채널 그룹 ID 중 하나를 지정해야 합니다.
61
+ */
62
+ channelKey: ChannelKey;
63
+ /**
64
+ * **면세 금액**
65
+ *
66
+ * 미입력 시 0으로 취급됩니다.
67
+ */
68
+ taxFreeAmount?: TaxFreeAmount | undefined;
69
+ /**
70
+ * **부가세 금액**
71
+ *
72
+ * 미입력 시 과세 금액의 1/11로 자동 계산됩니다.
73
+ */
74
+ vatAmount?: VatAmount | undefined;
75
+ customer?: Customer | undefined;
76
+ /**
77
+ * **리디렉션 방식에서 결제 완료 후 이동할 URL**
78
+ *
79
+ * 결제사 페이지로 이동하여 진행하는 리디렉션 방식의 경우 필수로 설정해야 합니다. 대부분의 모바일 환경이 리디렉션 방식에 해당됩니다.
80
+ */
81
+ redirectUrl?: RedirectUrl | undefined;
82
+ /**
83
+ * 웹훅 URL
84
+ */
85
+ noticeUrls?: string[] | undefined;
86
+ /**
87
+ * Confirm URL
88
+ */
89
+ confirmUrl?: string | undefined;
90
+ /**
91
+ * 앱 URL Scheme
92
+ */
93
+ appScheme?: string | undefined;
94
+ /**
95
+ * 에스크로 결제 여부
96
+ */
97
+ isEscrow?: boolean | undefined;
98
+ /**
99
+ * **구매 상품 정보**
100
+ */
101
+ products?: Product[] | undefined;
102
+ /**
103
+ * 문화비 지출 여부
104
+ */
105
+ isCulturalExpense?: boolean | undefined;
106
+ /**
107
+ * **화폐**
108
+ *
109
+ * [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 화폐 코드
110
+ *
111
+ * 대한민국 원, 일본 엔이 아닌 화폐를 사용할 때에는 금액을 minor unit 단위로 입력해야 함에 유의하세요.
112
+ */
113
+ currency: Currency;
114
+ /**
115
+ * **UI 언어**
116
+ *
117
+ * KG이니시스, 스마트로, KSNET, 웰컴페이먼츠 (PC), 한국결제네트웍스, 엑심베이에서 설정 가능하며, PG마다 지원하는 언어 목록은 차이가 있습니다.
118
+ */
119
+ locale?: Locale | undefined;
120
+ /**
121
+ * **결제 정보와 함께 관리하고 싶은 고객사 커스텀 JSON 데이터**
122
+ */
123
+ customData?: Record<string, any> | undefined;
124
+ /**
125
+ * **서비스 제공 기간**
126
+ *
127
+ * range와 interval 중 하나를 입력해주세요.
128
+ *
129
+ * - range: 제공 기간 범위
130
+ * - interval: 제공 기간 주기
131
+ *
132
+ * 예1) 2023년 1월 1일 00시 00분 00초(KST) ~
133
+ *
134
+ * ```js
135
+ * range: {
136
+ * from: '2023-01-01T00:00:00+09:00'
137
+ * }
138
+ * ```
139
+ *
140
+ * 예2) ~ 2023년 1월 1일 00시 00분 00초(KST)
141
+ *
142
+ * ```js
143
+ * range: {
144
+ * to: '2023-01-01T00:00:00+09:00'
145
+ * }
146
+ * ```
147
+ *
148
+ * 예3) 2023년 1월 1일 00시 00분 00초(KST) ~ 2023년 12월 31일 23시 59분 59초(KST)
149
+ *
150
+ * ```js
151
+ * range: {
152
+ * from: '2023-12-31T23:59:59+09:00'
153
+ * to: '2023-01-01T00:00:00+09:00'
154
+ * }
155
+ * ```
156
+ *
157
+ * 예4) 30일 주기
158
+ * `interval: '30d'`
159
+ *
160
+ * 예5) 6개월 주기
161
+ * `interval: '6m'`
162
+ *
163
+ * 예6) 1년 주기
164
+ * `interval: '1y'`
165
+ */
166
+ offerPeriod?: OfferPeriod | undefined;
167
+ /**
168
+ * **상품 유형**
169
+ */
170
+ productType?: ProductType | undefined;
171
+ /**
172
+ * **상점 정보**
173
+ *
174
+ * - KSNET 카카오페이의 경우 필수 입력
175
+ * - 나이스페이먼츠의 경우 매출 전표에 표기 할 용도로 선택 입력
176
+ * - KG이니시스 일본결제의 경우 JPPG(gmoPayment) 결제의 상점정보로 사용되거나 편의점 결제 시 영수증 표시 정보로 사용됨.
177
+ */
178
+ storeDetails?: StoreDetails | undefined;
179
+ bypass?: LoadPaymentUIBypass | undefined;
180
+ /**
181
+ * **국가**
182
+ *
183
+ * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) 코드입니다.
184
+ */
185
+ country?: Country | undefined;
186
+ /**
187
+ * 배송지 주소
188
+ */
189
+ shippingAddress?: Address | undefined;
190
+ /**
191
+ * 프로모션 그룹 ID
192
+ */
193
+ promotionGroupId?: string | undefined;
194
+ /**
195
+ * 프로모션 ID 목록
196
+ */
197
+ promotionIds?: string[] | undefined;
198
+ };
@@ -0,0 +1,3 @@
1
+ import type { PaymentRequestBase } from './PaymentRequestBase.js';
2
+ import type { PaymentRequestUnion } from './PaymentRequestUnion.js';
3
+ export type PaymentRequest = PaymentRequestBase & PaymentRequestUnion;
@@ -0,0 +1,253 @@
1
+ import type { StoreId } from '../entity/StoreId.js';
2
+ import type { PaymentOrderName } from '../entity/PaymentOrderName.js';
3
+ import type { PaymentTotalAmount } from '../entity/PaymentTotalAmount.js';
4
+ import type { PaymentCurrency } from '../entity/PaymentCurrency.js';
5
+ import { PaymentPayMethod } from '../entity/PaymentPayMethod.js';
6
+ import type { ChannelKey } from '../entity/ChannelKey.js';
7
+ import type { ChannelGroupId } from '../entity/ChannelGroupId.js';
8
+ import type { TaxFreeAmount } from '../entity/TaxFreeAmount.js';
9
+ import type { VatAmount } from '../entity/VatAmount.js';
10
+ import type { Customer } from '../entity/Customer.js';
11
+ import type { WindowTypes } from '../entity/WindowTypes.js';
12
+ import type { RedirectUrl } from '../entity/RedirectUrl.js';
13
+ import type { Product } from '../entity/Product.js';
14
+ import { Locale } from '../entity/Locale.js';
15
+ import type { PaymentBypass } from '../entity/bypass/PaymentBypass.js';
16
+ import { Country } from '../entity/Country.js';
17
+ import { ProductType } from '../entity/ProductType.js';
18
+ import type { OfferPeriod } from '../entity/OfferPeriod.js';
19
+ import type { StoreDetails } from '../entity/StoreDetails.js';
20
+ import type { Address } from '../entity/Address.js';
21
+ import type { Popup } from '../entity/Popup.js';
22
+ import type { Iframe } from '../entity/Iframe.js';
23
+ export type PaymentRequestBase = {
24
+ /**
25
+ * **상점 아이디**
26
+ *
27
+ * 포트원 계정에 생성된 상점을 식별하는 고유한 값으로 [관리자 콘솔 > 연동 정보](https://admin.portone.io/integration-v2/manage/channel) 우측 상단에서 확인할 수 있습니다.
28
+ */
29
+ storeId: StoreId;
30
+ /**
31
+ * **결제 ID**
32
+ *
33
+ * 고객사에서 임의로 ID를 정합니다.
34
+ *
35
+ * 이미 결제 완료된 `paymentId`로 결제를 요청하는 경우 실패합니다.
36
+ */
37
+ paymentId: string;
38
+ /**
39
+ * **주문명**
40
+ */
41
+ orderName: PaymentOrderName;
42
+ /**
43
+ * **결제 금액**
44
+ *
45
+ * 결제 금액을 정수로 나타냅니다.
46
+ *
47
+ * 해외 통화의 경우 통화의 최소 단위(minor unit)를 기준으로 합니다. 예를 들어, USD의 최소 단위는 센트(0.01 USD)이므로, 6 USD의 경우 100배하여 600으로 입력합니다.
48
+ *
49
+ * 최소 단위는 [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html)에 표준화된 것을 기준으로 합니다.
50
+ *
51
+ * - KRW: 1배
52
+ * - USD: 100배
53
+ * - JPY: 1배
54
+ */
55
+ totalAmount: PaymentTotalAmount;
56
+ /**
57
+ * **결제 통화**
58
+ *
59
+ * 원화 결제 시 `KRW`입니다.
60
+ */
61
+ currency: PaymentCurrency;
62
+ /**
63
+ * **결제수단 구분코드**
64
+ *
65
+ * PG사별 지원되는 결제수단이 모두 상이합니다.
66
+ *
67
+ * [각 PG사별 결제 연동 가이드](https://developers.portone.io/opi/ko/integration/pg/v2/readme?v=v2)를 참고하세요
68
+ */
69
+ payMethod: PaymentPayMethod;
70
+ /**
71
+ * **채널 키**
72
+ *
73
+ * 포트원에 등록된 결제 채널 중 하나를 지정합니다.
74
+ *
75
+ * [관리자 콘솔 > 연동 정보](https://admin.portone.io/integration-v2/manage/channel)에서 채널 연동 후 채널 키를 확인할 수 있습니다.
76
+ *
77
+ * 채널 키와 채널 그룹 ID 중 하나를 지정해야 합니다.
78
+ */
79
+ channelKey?: ChannelKey | undefined;
80
+ /**
81
+ * **채널 그룹 ID**
82
+ *
83
+ * 채널 그룹 ID를 지정하여 결제창을 호출하면, 채널 그룹 내 설정된 비율에 따라 확률적으로 하나의 채널이 선택됩니다. [관리자 콘솔 > 연동 관리 > 스마트 라우팅](https://admin.portone.io/integration-v2/smart-routing)에서 설정합니다.
84
+ *
85
+ * 채널 키와 채널 그룹 ID 중 하나를 지정해야 합니다.
86
+ */
87
+ channelGroupId?: ChannelGroupId | undefined;
88
+ /**
89
+ * **면세 금액**
90
+ *
91
+ * 미입력 시 0으로 취급됩니다.
92
+ */
93
+ taxFreeAmount?: TaxFreeAmount | undefined;
94
+ /**
95
+ * **부가세 금액**
96
+ *
97
+ * 미입력 시 과세 금액의 1/11로 자동 계산됩니다.
98
+ */
99
+ vatAmount?: VatAmount | undefined;
100
+ customer?: Customer | undefined;
101
+ /**
102
+ * **환경 별 제공되는 결제/본인인증 창 유형**
103
+ *
104
+ * - PG사에 따라 가능한 창 유형이 다릅니다.
105
+ * - 전달되지 않았을 때 결정되는 기본 창이 다릅니다.
106
+ * - 미입력 시, 해당 PG사의 기본 창 방식을 따릅니다.
107
+ */
108
+ windowType?: WindowTypes | undefined;
109
+ /**
110
+ * **리디렉션 방식에서 결제 완료 후 이동할 URL**
111
+ *
112
+ * 결제사 페이지로 이동하여 진행하는 리디렉션 방식의 경우 필수로 설정해야 합니다. 대부분의 모바일 환경이 리디렉션 방식에 해당됩니다.
113
+ */
114
+ redirectUrl?: RedirectUrl | undefined;
115
+ /**
116
+ * **웹훅 수신 URL**
117
+ *
118
+ * 포트원 관리자 콘솔에 설정한 웹훅 URL 대신 사용할 웹훅 URL을 결제시마다 설정할 수 있습니다.
119
+ *
120
+ * 올바른 HTTP(S) URL이어야 합니다.
121
+ */
122
+ noticeUrls?: string[] | undefined;
123
+ /**
124
+ * **결제 승인 여부 확인 URL**
125
+ *
126
+ * 컨펌 프로세스 웹훅을 수신할 URL입니다.
127
+ *
128
+ * 올바른 HTTP(S) URL이어야 합니다.
129
+ *
130
+ * 별도 요청이 필요합니다. (<tech.support@portone.io>)
131
+ */
132
+ confirmUrl?: string | undefined;
133
+ /**
134
+ * **모바일 결제 후 고객사 앱으로 복귀를 위한 URL scheme**
135
+ *
136
+ * - WebView 환경 결제시 필수설정 항목 입니다.
137
+ * - ISP/앱카드 앱에서 결제정보인증 후 기존 앱으로 복귀할 때 사용합니다.
138
+ */
139
+ appScheme?: string | undefined;
140
+ /**
141
+ * **에스크로 결제 여부**
142
+ *
143
+ * 미입력 시 기본값: `false`
144
+ *
145
+ * - 에스크로 설정은 PG사와 협의 이후 진행되어야 합니다.
146
+ */
147
+ isEscrow?: boolean | undefined;
148
+ /**
149
+ * **구매 상품 정보**
150
+ */
151
+ products?: Product[] | undefined;
152
+ /**
153
+ * **문화비 지출 여부**
154
+ *
155
+ * 도서, 공연, 박물관 등 문화비 지출 여부
156
+ */
157
+ isCulturalExpense?: boolean | undefined;
158
+ /**
159
+ * **UI 언어**
160
+ *
161
+ * KG이니시스, 스마트로, KSNET, 웰컴페이먼츠 (PC), 한국결제네트웍스, 엑심베이에서 설정 가능하며, PG마다 지원하는 언어 목록은 차이가 있습니다.
162
+ */
163
+ locale?: Locale | undefined;
164
+ /**
165
+ * **결제 정보에 포함할 고객사 커스텀 JSON 데이터**
166
+ */
167
+ customData?: Record<string, any> | undefined;
168
+ /**
169
+ * **PG사 결제창 호출 시 PG사로 그대로 bypass할 값들의 모음**
170
+ */
171
+ bypass?: PaymentBypass | undefined;
172
+ /**
173
+ * **국가**
174
+ *
175
+ * [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) 코드입니다.
176
+ */
177
+ country?: Country | undefined;
178
+ /**
179
+ * **상품 유형**
180
+ */
181
+ productType?: ProductType | undefined;
182
+ /**
183
+ * **서비스 제공 기간**
184
+ *
185
+ * range와 interval 중 하나를 입력해주세요.
186
+ *
187
+ * - range: 제공 기간 범위
188
+ * - interval: 제공 기간 주기
189
+ *
190
+ * 예1) 2023년 1월 1일 00시 00분 00초(KST) ~
191
+ *
192
+ * ```js
193
+ * range: {
194
+ * from: '2023-01-01T00:00:00+09:00'
195
+ * }
196
+ * ```
197
+ *
198
+ * 예2) ~ 2023년 1월 1일 00시 00분 00초(KST)
199
+ *
200
+ * ```js
201
+ * range: {
202
+ * to: '2023-01-01T00:00:00+09:00'
203
+ * }
204
+ * ```
205
+ *
206
+ * 예3) 2023년 1월 1일 00시 00분 00초(KST) ~ 2023년 12월 31일 23시 59분 59초(KST)
207
+ *
208
+ * ```js
209
+ * range: {
210
+ * from: '2023-12-31T23:59:59+09:00'
211
+ * to: '2023-01-01T00:00:00+09:00'
212
+ * }
213
+ * ```
214
+ *
215
+ * 예4) 30일 주기
216
+ * `interval: '30d'`
217
+ *
218
+ * 예5) 6개월 주기
219
+ * `interval: '6m'`
220
+ *
221
+ * 예6) 1년 주기
222
+ * `interval: '1y'`
223
+ */
224
+ offerPeriod?: OfferPeriod | undefined;
225
+ /**
226
+ * **상점 정보**
227
+ *
228
+ * - KSNET 카카오페이의 경우 필수 입력
229
+ * - 나이스페이먼츠의 경우 매출 전표에 표기 할 용도로 선택 입력
230
+ * - KG이니시스 일본결제의 경우 JPPG(gmoPayment) 결제의 상점정보로 사용되거나 편의점 결제 시 영수증 표시 정보로 사용됨.
231
+ */
232
+ storeDetails?: StoreDetails | undefined;
233
+ /**
234
+ * 배송지 주소 (토스 브랜드페이의 FDS를 위해 사용됨)
235
+ */
236
+ shippingAddress?: Address | undefined;
237
+ /**
238
+ * **프로모션 아이디**
239
+ *
240
+ * 포트원의 프로모션 기능 이용시 지정합니다.
241
+ */
242
+ promotionId?: string | undefined;
243
+ /**
244
+ * **팝업 관련 필드**
245
+ *
246
+ * UI가 팝업 창으로 열릴 때 적용되는 속성입니다.
247
+ */
248
+ popup?: Popup | undefined;
249
+ /**
250
+ * **결제창이 iframe 방식일 경우 결제창에 적용할 속성**
251
+ */
252
+ iframe?: Iframe | undefined;
253
+ };
@@ -0,0 +1,35 @@
1
+ import type { PaymentRequestUnionCard } from './PaymentRequestUnionCard.js';
2
+ import type { PaymentRequestUnionVirtualAccount } from './PaymentRequestUnionVirtualAccount.js';
3
+ import type { PaymentRequestUnionTransfer } from './PaymentRequestUnionTransfer.js';
4
+ import type { PaymentRequestUnionMobile } from './PaymentRequestUnionMobile.js';
5
+ import type { PaymentRequestUnionGiftCertificate } from './PaymentRequestUnionGiftCertificate.js';
6
+ import type { PaymentRequestUnionEasyPay } from './PaymentRequestUnionEasyPay.js';
7
+ import type { PaymentRequestUnionPaypal } from './PaymentRequestUnionPaypal.js';
8
+ import type { PaymentRequestUnionAlipay } from './PaymentRequestUnionAlipay.js';
9
+ import type { PaymentRequestUnionConvenienceStore } from './PaymentRequestUnionConvenienceStore.js';
10
+ export type PaymentRequestUnion = {
11
+ /**
12
+ * **카드 결제 설정**
13
+ */
14
+ card?: PaymentRequestUnionCard | undefined;
15
+ /**
16
+ * **가상계좌 결제 설정**
17
+ */
18
+ virtualAccount?: PaymentRequestUnionVirtualAccount | undefined;
19
+ /**
20
+ * **계좌이체 결제 설정**
21
+ */
22
+ transfer?: PaymentRequestUnionTransfer | undefined;
23
+ /**
24
+ * **휴대전화 결제 설정**
25
+ */
26
+ mobile?: PaymentRequestUnionMobile | undefined;
27
+ /**
28
+ * **상품권 결제 설정**
29
+ */
30
+ giftCertificate?: PaymentRequestUnionGiftCertificate | undefined;
31
+ easyPay?: PaymentRequestUnionEasyPay | undefined;
32
+ paypal?: PaymentRequestUnionPaypal | undefined;
33
+ alipay?: PaymentRequestUnionAlipay | undefined;
34
+ convenienceStore?: PaymentRequestUnionConvenienceStore | undefined;
35
+ };
@@ -0,0 +1 @@
1
+ export type PaymentRequestUnionAlipay = Record<string, never>;
@@ -0,0 +1,79 @@
1
+ import { CardCompany } from '../entity/CardCompany.js';
2
+ import type { Installment } from '../entity/Installment.js';
3
+ /**
4
+ * **카드 결제 설정**
5
+ */
6
+ export type PaymentRequestUnionCard = {
7
+ /**
8
+ * **카드사 다이렉트 호출 시 필요한 카드사 식별 값**
9
+ */
10
+ cardCompany?: CardCompany | undefined;
11
+ /**
12
+ * **일부 카드사만 노출 설정**
13
+ *
14
+ * 일부 카드사만을 선택 가능하게 하고 싶은 경우 사용하는 옵션입니다.
15
+ */
16
+ availableCards?: CardCompany[] | undefined;
17
+ /**
18
+ * **상점분담 무이자 활성화 여부**
19
+ */
20
+ useFreeInterestFromMall?: boolean | undefined;
21
+ /**
22
+ * **할부 설정**
23
+ *
24
+ * 신용카드 결제 시 할부 관련 설정을 제어합니다.
25
+ *
26
+ * ## 사용 예시
27
+ *
28
+ * ### 3개월 고정 할부
29
+ *
30
+ * ```typescript
31
+ * installment: {
32
+ * monthOption: {
33
+ * fixedMonth: 3
34
+ * }
35
+ * }
36
+ * ```
37
+ *
38
+ * ### 2~6개월 할부 선택
39
+ *
40
+ * ```typescript
41
+ * installment: {
42
+ * monthOption: {
43
+ * availableMonthList: [2, 3, 4, 5, 6]
44
+ * }
45
+ * }
46
+ * ```
47
+ *
48
+ * ### 무이자 할부 설정 (삼성카드 2,3개월)
49
+ *
50
+ * ```typescript
51
+ * installment: {
52
+ * freeInstallmentPlans: [{
53
+ * cardCompany: 'CARD_COMPANY_SAMSUNG',
54
+ * months: [2, 3]
55
+ * }]
56
+ * }
57
+ * ```
58
+ *
59
+ * ## 주의사항
60
+ *
61
+ * - 일반적으로 5만원 이상부터 할부가 가능합니다
62
+ * - 1개월 할부는 일시불과 동일하게 처리됩니다
63
+ * - 카드 다이렉트 호출 시 고정 할부만 가능한 PG사가 있습니다
64
+ * - 무이자 할부는 가맹점이 수수료를 부담하는 방식입니다
65
+ */
66
+ installment?: Installment | undefined;
67
+ /**
68
+ * **카드 포인트 사용 설정**
69
+ */
70
+ useCardPoint?: boolean | undefined;
71
+ /**
72
+ * **앱 카드만 허용할지 여부**
73
+ */
74
+ useAppCardOnly?: boolean | undefined;
75
+ /**
76
+ * 할부 사용 가능 여부
77
+ */
78
+ useInstallment?: boolean | undefined;
79
+ };
@@ -0,0 +1,7 @@
1
+ import type { PaymentRequestUnionConvenienceStorePaymentDeadline } from './PaymentRequestUnionConvenienceStorePaymentDeadline.js';
2
+ export type PaymentRequestUnionConvenienceStore = {
3
+ /**
4
+ * **편의점결제 지불기한**
5
+ */
6
+ paymentDeadline?: PaymentRequestUnionConvenienceStorePaymentDeadline | undefined;
7
+ };
@@ -0,0 +1,16 @@
1
+ import type { OneOfType } from '../../utils.js';
2
+ /**
3
+ * **편의점결제 지불기한**
4
+ */
5
+ export type PaymentRequestUnionConvenienceStorePaymentDeadline = OneOfType<{
6
+ /**
7
+ * **유효 시간 (단위: 시간)**
8
+ */
9
+ validHours: number;
10
+ /**
11
+ * **만료일시**
12
+ *
13
+ * RFC 3339 형식입니다.
14
+ */
15
+ dueDate: string;
16
+ }>;