@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
@@ -0,0 +1,18 @@
1
+ /**
2
+ * 결제창 스킨 색상 설정
3
+ *
4
+ * `"red", "green", "purple", "gray", "dark"` 중 하나의 값으로 입력해주세요.
5
+ */
6
+ export declare const NiceV2SkinType: {
7
+ readonly red: "red";
8
+ readonly green: "green";
9
+ readonly purple: "purple";
10
+ readonly gray: "gray";
11
+ readonly dark: "dark";
12
+ };
13
+ /**
14
+ * 결제창 스킨 색상 설정
15
+ *
16
+ * `"red", "green", "purple", "gray", "dark"` 중 하나의 값으로 입력해주세요.
17
+ */
18
+ export type NiceV2SkinType = (typeof NiceV2SkinType)[keyof typeof NiceV2SkinType];
@@ -1,10 +1,20 @@
1
1
  /**
2
- * 정규화가 어려운 Payletter Global bypass 파라미터
3
- * 가맹점으로부터 전달 된 값을 PG사로 그대로 전달
2
+ * 페이레터 해외결제 bypass 파라미터
4
3
  */
5
4
  export type PayletterGlobalBypass = {
6
- pginfo?: PayletterGlobalPgInfo;
7
- servicename?: string;
5
+ /**
6
+ * **결제수단 지정용 파라미터**
7
+ *
8
+ * - 해외카드 인증 : `PLCreditCard`
9
+ * - 해외카드 비인증(3DS) : `PLCreditCardMpi`
10
+ * - 유니온페이 : `PLUnionPay_HC`
11
+ * - 위챗페이 PC결제: `WeChatPayQRCodePayment`
12
+ * - 위챗페이 모바일결제 : `WeChatPayH5Payment`
13
+ * - 알리페이 : `ICBAlipay`
14
+ */
15
+ pginfo?: string | undefined;
16
+ /**
17
+ * 고객사 서비스명, WeChatPay, Alipay 이용 시 필수 입력
18
+ */
19
+ servicename?: string | undefined;
8
20
  };
9
- type PayletterGlobalPgInfo = 'PLCreditCard' | 'PLCreditCardMpi' | 'PLUnionPay' | 'PLUnionPay_HC' | 'WeChatPayH5Payment' | 'WeChatPayQRCodePayment' | 'ICBAlipay';
10
- export {};
@@ -1,51 +1,19 @@
1
- import { Entity } from '../../../index.js';
2
- import { PaypalV2Country } from '../PaypalV2Country.js';
1
+ import type { PaypalV2PurchaseUnit } from '../loadPaymentUI/PaypalV2PurchaseUnit.js';
2
+ import type { PaypalV2Payer } from '../loadPaymentUI/PaypalV2Payer.js';
3
+ import type { PaypalV2PaymentSource } from './PaypalV2PaymentSource.js';
4
+ import type { PaypalV2AdditionalData } from '../loadPaymentUI/PaypalV2AdditionalData.js';
3
5
  /**
4
- * 정규화가 어려운 페이팔 bypass 파라미터
5
- * 가맹점으로부터 전달 된 값을 PG사로 그대로 전달
6
+ * **Paypal bypass 파라미터**
6
7
  */
7
8
  export type PaypalV2PaymentBypass = {
8
- purchase_units?: {
9
- payee?: {
10
- merchant_id: string;
11
- };
12
- shipping?: {
13
- address?: {
14
- address_line_1: string;
15
- address_line_2?: string;
16
- admin_area_1?: string;
17
- admin_area_2: string;
18
- postal_code?: string;
19
- country_code: PaypalV2Country;
20
- };
21
- };
22
- }[];
23
- payer?: {
24
- tax_info?: {
25
- tax_id: string;
26
- tax_id_type: string;
27
- };
28
- address?: {
29
- address_line_1?: string;
30
- address_line_2?: string;
31
- admin_area_1?: string;
32
- admin_area_2?: string;
33
- postal_code?: string;
34
- country_code: Entity.Country;
35
- };
36
- };
37
- payment_source?: {
38
- paypal?: {
39
- experience_context?: {
40
- brand_name?: string;
41
- shipping_preference?: 'GET_FROM_FILE' | 'NO_SHIPPING' | 'SET_PROVIDED_ADDRESS';
42
- landing_page?: 'LOGIN' | 'GUEST_CHECKOUT' | 'NO_PREFERENCE';
43
- payment_method_preference?: 'UNRESTRICTED' | 'IMMEDIATE_PAYMENT_REQUIRED';
44
- };
45
- };
46
- };
47
- additional_data?: {
48
- key: string;
49
- value: string;
50
- }[];
9
+ /**
10
+ * create order API 호출에 필요한 파라미터
11
+ */
12
+ purchase_units?: PaypalV2PurchaseUnit[] | undefined;
13
+ payer?: PaypalV2Payer | undefined;
14
+ payment_source?: PaypalV2PaymentSource | undefined;
15
+ /**
16
+ * STC 파라미터
17
+ */
18
+ additional_data?: PaypalV2AdditionalData[] | undefined;
51
19
  };
@@ -0,0 +1,4 @@
1
+ import type { PaypalV2PaymentSourcePaypal } from './PaypalV2PaymentSourcePaypal.js';
2
+ export type PaypalV2PaymentSource = {
3
+ paypal?: PaypalV2PaymentSourcePaypal | undefined;
4
+ } | undefined;
@@ -0,0 +1,4 @@
1
+ import type { PaypalV2PaymentSourcePaypalExperienceContext } from './PaypalV2PaymentSourcePaypalExperienceContext.js';
2
+ export type PaypalV2PaymentSourcePaypal = {
3
+ experience_context?: PaypalV2PaymentSourcePaypalExperienceContext | undefined;
4
+ };
@@ -0,0 +1,9 @@
1
+ import { PaypalV2PaymentSourcePaypalExperienceContextShippingPreference } from './PaypalV2PaymentSourcePaypalExperienceContextShippingPreference.js';
2
+ import { PaypalV2PaymentSourcePaypalExperienceContextLandingPage } from './PaypalV2PaymentSourcePaypalExperienceContextLandingPage.js';
3
+ import { PaypalV2PaymentSourcePaypalExperienceContextPaymentMethodPreference } from './PaypalV2PaymentSourcePaypalExperienceContextPaymentMethodPreference.js';
4
+ export type PaypalV2PaymentSourcePaypalExperienceContext = {
5
+ brand_name?: string | undefined;
6
+ shipping_preference?: PaypalV2PaymentSourcePaypalExperienceContextShippingPreference | undefined;
7
+ landing_page?: PaypalV2PaymentSourcePaypalExperienceContextLandingPage | undefined;
8
+ payment_method_preference?: PaypalV2PaymentSourcePaypalExperienceContextPaymentMethodPreference | undefined;
9
+ };
@@ -0,0 +1,6 @@
1
+ export declare const PaypalV2PaymentSourcePaypalExperienceContextLandingPage: {
2
+ readonly LOGIN: "LOGIN";
3
+ readonly GUEST_CHECKOUT: "GUEST_CHECKOUT";
4
+ readonly NO_PREFERENCE: "NO_PREFERENCE";
5
+ };
6
+ export type PaypalV2PaymentSourcePaypalExperienceContextLandingPage = (typeof PaypalV2PaymentSourcePaypalExperienceContextLandingPage)[keyof typeof PaypalV2PaymentSourcePaypalExperienceContextLandingPage];
@@ -0,0 +1,5 @@
1
+ export declare const PaypalV2PaymentSourcePaypalExperienceContextPaymentMethodPreference: {
2
+ readonly UNRESTRICTED: "UNRESTRICTED";
3
+ readonly IMMEDIATE_PAYMENT_REQUIRED: "IMMEDIATE_PAYMENT_REQUIRED";
4
+ };
5
+ export type PaypalV2PaymentSourcePaypalExperienceContextPaymentMethodPreference = (typeof PaypalV2PaymentSourcePaypalExperienceContextPaymentMethodPreference)[keyof typeof PaypalV2PaymentSourcePaypalExperienceContextPaymentMethodPreference];
@@ -0,0 +1,6 @@
1
+ export declare const PaypalV2PaymentSourcePaypalExperienceContextShippingPreference: {
2
+ readonly GET_FROM_FILE: "GET_FROM_FILE";
3
+ readonly NO_SHIPPING: "NO_SHIPPING";
4
+ readonly SET_PROVIDED_ADDRESS: "SET_PROVIDED_ADDRESS";
5
+ };
6
+ export type PaypalV2PaymentSourcePaypalExperienceContextShippingPreference = (typeof PaypalV2PaymentSourcePaypalExperienceContextShippingPreference)[keyof typeof PaypalV2PaymentSourcePaypalExperienceContextShippingPreference];
@@ -1,9 +1,23 @@
1
+ import { SmartroV2SkinColor } from './SmartroV2SkinColor.js';
2
+ import { SmartroV2OpenType } from './SmartroV2OpenType.js';
1
3
  /**
2
- * 정규화가 어려운 스마트로 bypass 파라미터
3
- * 가맹점으로부터 전달 된 값을 PG사로 그대로 전달
4
+ * 스마트로 V2 bypass 파라미터
4
5
  */
5
6
  export type SmartroV2PaymentBypass = {
6
- GoodsCnt?: number;
7
- SkinColor?: 'RED' | 'GREEN' | 'BLUE' | 'PURPLE';
8
- OpenType?: 'KR' | 'EN';
7
+ /**
8
+ * 결제 상품 품목 개수
9
+ */
10
+ GoodsCnt?: number | undefined;
11
+ /**
12
+ * UI 스타일 (기본값: `"RED"`)
13
+ *
14
+ * `"RED"`, `"GREEN"`, `"BLUE"`, `"PURPLE"` 중 하나의 값으로 입력해주세요.
15
+ */
16
+ SkinColor?: SmartroV2SkinColor | undefined;
17
+ /**
18
+ * 해외 카드만 결제를 허용할지 여부(기본값: `"KR"`)
19
+ *
20
+ * `"KR"`, `"EN"` 중 하나의 값으로 입력해주세요.
21
+ */
22
+ OpenType?: SmartroV2OpenType | undefined;
9
23
  };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 해외 카드만 결제를 허용할지 여부(기본값: `"KR"`)
3
+ *
4
+ * `"KR"`, `"EN"` 중 하나의 값으로 입력해주세요.
5
+ */
6
+ export declare const SmartroV2OpenType: {
7
+ readonly KR: "KR";
8
+ readonly EN: "EN";
9
+ };
10
+ /**
11
+ * 해외 카드만 결제를 허용할지 여부(기본값: `"KR"`)
12
+ *
13
+ * `"KR"`, `"EN"` 중 하나의 값으로 입력해주세요.
14
+ */
15
+ export type SmartroV2OpenType = (typeof SmartroV2OpenType)[keyof typeof SmartroV2OpenType];
@@ -0,0 +1,17 @@
1
+ /**
2
+ * UI 스타일 (기본값: `"RED"`)
3
+ *
4
+ * `"RED"`, `"GREEN"`, `"BLUE"`, `"PURPLE"` 중 하나의 값으로 입력해주세요.
5
+ */
6
+ export declare const SmartroV2SkinColor: {
7
+ readonly RED: "RED";
8
+ readonly GREEN: "GREEN";
9
+ readonly BLUE: "BLUE";
10
+ readonly PURPLE: "PURPLE";
11
+ };
12
+ /**
13
+ * UI 스타일 (기본값: `"RED"`)
14
+ *
15
+ * `"RED"`, `"GREEN"`, `"BLUE"`, `"PURPLE"` 중 하나의 값으로 입력해주세요.
16
+ */
17
+ export type SmartroV2SkinColor = (typeof SmartroV2SkinColor)[keyof typeof SmartroV2SkinColor];
@@ -1,46 +1,23 @@
1
+ import type { TossBrandpayBrandpayOptions } from './TossBrandpayBrandpayOptions.js';
2
+ import type { TossBrandpayWidgetOptions } from './TossBrandpayWidgetOptions.js';
1
3
  /**
2
- * 정규화가 어려운 토스페이먼츠 브랜드페이 bypass 파라미터
3
- * 가맹점으로부터 전달 된 값을 PG사로 그대로 전달
4
+ * 토스 브랜드페이 bypass 파라미터
4
5
  */
5
6
  export type TossBrandpayPaymentBypass = {
6
- brandpayOptions?: {
7
- ui?: BrandpayUi;
8
- };
9
- widgetOptions?: {
10
- methodType?: '카드' | '계좌';
11
- methodId?: string;
12
- ui?: BrandpayWidgetUi;
13
- };
14
- discountCode?: string;
15
- methodId?: string;
16
- };
17
- type BrandpayUi = {
18
- highlightColor?: string;
19
7
  /**
20
- * 버튼 스타일
21
- * - default(기본값): 모서리가 둥글고 주변에 여백을 가진 버튼
22
- * - full: 하단 영역이 전부 채워지는 형태의 버튼
8
+ * loadBrandpay 호출시 전달하는 세번째 파라미터
23
9
  */
24
- buttonStyle?: 'default' | 'full';
25
- labels?: Labels;
26
- navigationBar?: NavigationBar;
27
- };
28
- type Labels = {
29
- oneTouchPay?: string;
30
- };
31
- type NavigationBar = {
32
- visible?: boolean;
33
- paddingTop?: number;
34
- };
35
- type BrandpayWidgetUi = {
36
- promotionSection?: {
37
- summary?: {
38
- visible?: boolean;
39
- };
40
- description?: {
41
- visible?: boolean;
42
- defaultOpen?: boolean;
43
- };
44
- };
10
+ brandpayOptions?: TossBrandpayBrandpayOptions | undefined;
11
+ /**
12
+ * 브랜드페이 위젯 render() 함수 호출시 전달하는 두번째 파라미터
13
+ */
14
+ widgetOptions?: TossBrandpayWidgetOptions | undefined;
15
+ /**
16
+ * 카드사 할인코드
17
+ */
18
+ discountCode?: string | undefined;
19
+ /**
20
+ * 등록되어 있는 결제수단 중 하나를 지정해서 바로 결제하고 싶을 때 사용
21
+ */
22
+ methodId?: string | undefined;
45
23
  };
46
- export {};
@@ -0,0 +1,7 @@
1
+ import type { TossBrandpayBrandpayOptionsUi } from './TossBrandpayBrandpayOptionsUi.js';
2
+ /**
3
+ * loadBrandpay 호출시 전달하는 세번째 파라미터
4
+ */
5
+ export type TossBrandpayBrandpayOptions = {
6
+ ui?: TossBrandpayBrandpayOptionsUi | undefined;
7
+ };
@@ -0,0 +1,18 @@
1
+ import { TossBrandpayBrandpayOptionsUiButtonStyle } from './TossBrandpayBrandpayOptionsUiButtonStyle.js';
2
+ import type { TossBrandpayBrandpayOptionsUiLabels } from './TossBrandpayBrandpayOptionsUiLabels.js';
3
+ import type { TossBrandpayBrandpayOptionsUiNavigationBar } from './TossBrandpayBrandpayOptionsUiNavigationBar.js';
4
+ export type TossBrandpayBrandpayOptionsUi = {
5
+ /**
6
+ * UI의 메인 색상. (기본값: #3182f6)
7
+ */
8
+ highlightColor?: string | undefined;
9
+ /**
10
+ * 버튼 스타일
11
+ *
12
+ * - default(기본값): 모서리가 둥글고 주변에 여백을 가진 버튼
13
+ * - full: 하단 영역이 전부 채워지는 형태의 버튼
14
+ */
15
+ buttonStyle?: TossBrandpayBrandpayOptionsUiButtonStyle | undefined;
16
+ labels?: TossBrandpayBrandpayOptionsUiLabels | undefined;
17
+ navigationBar?: TossBrandpayBrandpayOptionsUiNavigationBar | undefined;
18
+ };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * 버튼 스타일
3
+ *
4
+ * - default(기본값): 모서리가 둥글고 주변에 여백을 가진 버튼
5
+ * - full: 하단 영역이 전부 채워지는 형태의 버튼
6
+ */
7
+ export declare const TossBrandpayBrandpayOptionsUiButtonStyle: {
8
+ /**
9
+ * 모서리가 둥글고 주변에 여백을 가진 버튼(기본값)
10
+ */
11
+ readonly default: "default";
12
+ /**
13
+ * 하단 영역이 전부 채워지는 형태의 버튼
14
+ */
15
+ readonly full: "full";
16
+ };
17
+ /**
18
+ * 버튼 스타일
19
+ *
20
+ * - default(기본값): 모서리가 둥글고 주변에 여백을 가진 버튼
21
+ * - full: 하단 영역이 전부 채워지는 형태의 버튼
22
+ */
23
+ export type TossBrandpayBrandpayOptionsUiButtonStyle = (typeof TossBrandpayBrandpayOptionsUiButtonStyle)[keyof typeof TossBrandpayBrandpayOptionsUiButtonStyle];
@@ -0,0 +1,6 @@
1
+ export type TossBrandpayBrandpayOptionsUiLabels = {
2
+ /**
3
+ * UI에 표시되는 원터치 결제를 대신해 사용할 텍스트. (기본값: "원터치 결제")
4
+ */
5
+ oneTouchPay?: string | undefined;
6
+ };
@@ -0,0 +1,10 @@
1
+ export type TossBrandpayBrandpayOptionsUiNavigationBar = {
2
+ /**
3
+ * 내비게이션 바 사용 여부. (기본값: true)
4
+ */
5
+ visible?: boolean | undefined;
6
+ /**
7
+ * 내비게이션 바 위쪽에 설정할 여백 값. 값의 단위는 px
8
+ */
9
+ paddingTop?: number | undefined;
10
+ };
@@ -0,0 +1,16 @@
1
+ import { TossBrandpayWidgetOptionsMethodType } from './TossBrandpayWidgetOptionsMethodType.js';
2
+ import type { TossBrandpayWidgetOptionsUi } from './TossBrandpayWidgetOptionsUi.js';
3
+ /**
4
+ * 브랜드페이 위젯 render() 함수 호출시 전달하는 두번째 파라미터
5
+ */
6
+ export type TossBrandpayWidgetOptions = {
7
+ /**
8
+ * 위젯에 보여줄 결제 수단. 예) 카드 전달시 등록한 결제 수단 중 카드만 노출 됨
9
+ */
10
+ methodType?: TossBrandpayWidgetOptionsMethodType | undefined;
11
+ /**
12
+ * 위젯에서 기본 결제 수단으로 선택할 결제 수단의 ID
13
+ */
14
+ methodId?: string | undefined;
15
+ ui?: TossBrandpayWidgetOptionsUi | undefined;
16
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 위젯에 보여줄 결제 수단. 예) 카드 전달시 등록한 결제 수단 중 카드만 노출 됨
3
+ */
4
+ export declare const TossBrandpayWidgetOptionsMethodType: {
5
+ readonly CARD: "카드";
6
+ readonly ACCOUNT: "계좌";
7
+ };
8
+ /**
9
+ * 위젯에 보여줄 결제 수단. 예) 카드 전달시 등록한 결제 수단 중 카드만 노출 됨
10
+ */
11
+ export type TossBrandpayWidgetOptionsMethodType = (typeof TossBrandpayWidgetOptionsMethodType)[keyof typeof TossBrandpayWidgetOptionsMethodType];
@@ -0,0 +1,4 @@
1
+ import type { TossBrandpayWidgetOptionsUiPromotionSection } from './TossBrandpayWidgetOptionsUiPromotionSection.js';
2
+ export type TossBrandpayWidgetOptionsUi = {
3
+ promotionSection?: TossBrandpayWidgetOptionsUiPromotionSection | undefined;
4
+ };
@@ -0,0 +1,6 @@
1
+ import type { TossBrandpayWidgetOptionsUiPromotionSectionSummary } from './TossBrandpayWidgetOptionsUiPromotionSectionSummary.js';
2
+ import type { TossBrandpayWidgetOptionsUiPromotionSectionDescription } from './TossBrandpayWidgetOptionsUiPromotionSectionDescription.js';
3
+ export type TossBrandpayWidgetOptionsUiPromotionSection = {
4
+ summary?: TossBrandpayWidgetOptionsUiPromotionSectionSummary | undefined;
5
+ description?: TossBrandpayWidgetOptionsUiPromotionSectionDescription | undefined;
6
+ };
@@ -0,0 +1,10 @@
1
+ export type TossBrandpayWidgetOptionsUiPromotionSectionDescription = {
2
+ /**
3
+ * 결제 혜택 영역을 보여줄지 여부. 기본값은 true
4
+ */
5
+ visible?: boolean | undefined;
6
+ /**
7
+ * 결제 혜택의 상세 설명을 보여줄지 여부. 각 카드사의 결제 혜택을 자세히 설명 함. 기본값은 false
8
+ */
9
+ defaultOpen?: boolean | undefined;
10
+ };
@@ -0,0 +1,6 @@
1
+ export type TossBrandpayWidgetOptionsUiPromotionSectionSummary = {
2
+ /**
3
+ * 혜택 배지 영역을 보여줄지 여부. 혜택 배지 영역에서는 즉시 할인 대상 카드 정보 등을 간략히 보여 줌. 기본값은 true
4
+ */
5
+ visible?: boolean | undefined;
6
+ };
@@ -1,17 +1,18 @@
1
+ import { TosspayV2CashReceiptTradeOption } from './TosspayV2CashReceiptTradeOption.js';
1
2
  /**
2
- * 정규화가 어려운 토스페이 bypass 파라미터
3
- * 가맹점으로부터 전달 된 값을 PG사로 그대로 전달
3
+ * 토스페이 bypass 파라미터
4
4
  */
5
5
  export type TosspayV2PaymentBypass = {
6
6
  /**
7
7
  * 결제 만료 기한 (yyyy-MM-dd HH:mm:ss)
8
8
  */
9
- expiredTime?: string;
9
+ expiredTime?: string | undefined;
10
10
  /**
11
11
  * 현금영수증 발급타입
12
- * CULTURE : 문화비
13
- * GENERAL : 일반 (default)
14
- * PUBLIC_TP 교통비
12
+ *
13
+ * - CULTURE: 문화비
14
+ * - GENERAL: 일반 (기본값)
15
+ * - PUBLIC\_TP: 교통비
15
16
  */
16
- cashReceiptTradeOption?: 'CULTURE' | 'GENERAL' | 'PUBLIC_TP';
17
+ cashReceiptTradeOption?: TosspayV2CashReceiptTradeOption | undefined;
17
18
  };
@@ -0,0 +1,29 @@
1
+ /**
2
+ * 현금영수증 발급타입
3
+ *
4
+ * - CULTURE: 문화비
5
+ * - GENERAL: 일반 (기본값)
6
+ * - PUBLIC\_TP: 교통비
7
+ */
8
+ export declare const TosspayV2CashReceiptTradeOption: {
9
+ /**
10
+ * 문화비
11
+ */
12
+ readonly CULTURE: "CULTURE";
13
+ /**
14
+ * 일반 (기본값)
15
+ */
16
+ readonly GENERAL: "GENERAL";
17
+ /**
18
+ * 교통비
19
+ */
20
+ readonly PUBLIC_TP: "PUBLIC_TP";
21
+ };
22
+ /**
23
+ * 현금영수증 발급타입
24
+ *
25
+ * - CULTURE: 문화비
26
+ * - GENERAL: 일반 (기본값)
27
+ * - PUBLIC\_TP: 교통비
28
+ */
29
+ export type TosspayV2CashReceiptTradeOption = (typeof TosspayV2CashReceiptTradeOption)[keyof typeof TosspayV2CashReceiptTradeOption];
@@ -1,8 +1,13 @@
1
1
  /**
2
- * 정규화가 어려운 토스페이먼츠 bypass 파라미터
3
- * 가맹점으로부터 전달 된 값을 PG사로 그대로 전달
2
+ * 토스페이먼츠 bypass 파라미터
4
3
  */
5
4
  export type TosspaymentsPaymentBypass = {
6
- discountCode?: string;
7
- useInternationalCardOnly?: boolean;
5
+ /**
6
+ * 토스페이먼츠 <-> 고객사 계약에 따라 프로모션 적용이 가능한 코드
7
+ */
8
+ discountCode?: string | undefined;
9
+ /**
10
+ * 해외 카드로만 결제가 가능하도록 할 지 여부
11
+ */
12
+ useInternationalCardOnly?: boolean | undefined;
8
13
  };