@portone/browser-sdk 0.0.22 → 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.
- package/dist/v2/entity/Address.d.ts +24 -4
- package/dist/v2/entity/Bank.d.ts +276 -2
- package/dist/v2/entity/BillingKeyAndPayMethod.d.ts +10 -1
- package/dist/v2/entity/BillingKeyMethod.d.ts +19 -1
- package/dist/v2/entity/CardCompany.d.ts +76 -1
- package/dist/v2/entity/Carrier.d.ts +22 -7
- package/dist/v2/entity/CashReceiptType.d.ts +16 -1
- package/dist/v2/entity/ChannelGroupId.d.ts +8 -0
- package/dist/v2/entity/ChannelKey.d.ts +10 -0
- package/dist/v2/entity/Country.d.ts +758 -1
- package/dist/v2/entity/Currency.d.ts +546 -4
- package/dist/v2/entity/Customer.d.ts +90 -15
- package/dist/v2/entity/EasyPayPaymentMethod.d.ts +19 -1
- package/dist/v2/entity/EasyPayProvider.d.ts +157 -1
- package/dist/v2/entity/FreeInstallmentPlan.d.ts +25 -4
- package/dist/v2/entity/Gender.d.ts +16 -1
- package/dist/v2/entity/GiftCertificateType.d.ts +20 -2
- package/dist/v2/entity/Iframe.d.ts +9 -0
- package/dist/v2/entity/Installment.d.ts +53 -20
- package/dist/v2/entity/InstallmentMonthOption.d.ts +41 -0
- package/dist/v2/entity/IssueBillingKeyUIType.d.ts +1 -1
- package/dist/v2/entity/Locale.d.ts +63 -1
- package/dist/v2/entity/OfferPeriod.d.ts +30 -12
- package/dist/v2/entity/OfferPeriodRange.d.ts +7 -0
- package/dist/v2/entity/OfferPeriodRangeFrom.d.ts +9 -0
- package/dist/v2/entity/OfferPeriodRangeFromTo.d.ts +13 -0
- package/dist/v2/entity/OfferPeriodRangeTo.d.ts +9 -0
- package/dist/v2/entity/PayMethod.d.ts +27 -1
- package/dist/v2/entity/PaymentCurrency.d.ts +191 -0
- package/dist/v2/entity/PaymentOrderName.d.ts +4 -0
- package/dist/v2/entity/PaymentPayMethod.d.ts +53 -0
- package/dist/v2/entity/PaymentTotalAmount.d.ts +14 -0
- package/dist/v2/entity/PaymentUIType.d.ts +1 -1
- package/dist/v2/entity/PgCode.d.ts +6 -0
- package/dist/v2/entity/PgMessage.d.ts +6 -0
- package/dist/v2/entity/PgProvider.d.ts +7 -52
- package/dist/v2/entity/Popup.d.ts +10 -1
- package/dist/v2/entity/Product.d.ts +36 -3
- package/dist/v2/entity/ProductType.d.ts +11 -4
- package/dist/v2/entity/RedirectUrl.d.ts +6 -0
- package/dist/v2/entity/StoreDetails.d.ts +59 -20
- package/dist/v2/entity/StoreDetailsOpeningHours.d.ts +13 -0
- package/dist/v2/entity/StoreId.d.ts +6 -0
- package/dist/v2/entity/TaxFreeAmount.d.ts +6 -0
- package/dist/v2/entity/TransactionType.d.ts +26 -5
- package/dist/v2/entity/VatAmount.d.ts +6 -0
- package/dist/v2/entity/WindowType.d.ts +1 -9
- package/dist/v2/entity/WindowTypes.d.ts +18 -0
- package/dist/v2/entity/bypass/IdentityVerificationBypass.d.ts +20 -0
- package/dist/v2/entity/bypass/IssueBillingKeyAndPayBypass.d.ts +17 -0
- package/dist/v2/entity/bypass/IssueBillingKeyBypass.d.ts +37 -0
- package/dist/v2/entity/bypass/LoadIssueBillingKeyUIBypass.d.ts +7 -0
- package/dist/v2/entity/bypass/LoadPaymentUIBypass.d.ts +7 -0
- package/dist/v2/entity/bypass/PaymentBypass.d.ts +92 -0
- package/dist/v2/entity/bypass/identityVerification/Danal.d.ts +21 -14
- package/dist/v2/entity/bypass/identityVerification/InicisUnified.d.ts +30 -11
- package/dist/v2/entity/bypass/identityVerification/InicisUnifiedDirectAgency.d.ts +69 -0
- package/dist/v2/entity/bypass/identityVerification/InicisUnifiedFlgFixedUser.d.ts +19 -0
- package/dist/v2/entity/bypass/identityVerification/KcpV2.d.ts +5 -2
- package/dist/v2/entity/bypass/identityVerification/index.d.ts +5 -8
- package/dist/v2/entity/bypass/index.d.ts +12 -0
- package/dist/v2/entity/bypass/issueBillingKey/InicisV2.d.ts +7 -5
- package/dist/v2/entity/bypass/issueBillingKey/InicisV2CardUse.d.ts +17 -0
- package/dist/v2/entity/bypass/issueBillingKey/KcpV2.d.ts +6 -2
- package/dist/v2/entity/bypass/issueBillingKey/KcpV2BatchSocChoice.d.ts +17 -0
- package/dist/v2/entity/bypass/issueBillingKey/Naverpay.d.ts +9 -4
- package/dist/v2/entity/bypass/issueBillingKey/SmartroV2.d.ts +11 -4
- package/dist/v2/entity/bypass/issueBillingKey/SmartroV2IsPwdPass.d.ts +17 -0
- package/dist/v2/entity/bypass/issueBillingKey/SmartroV2SkinColor.d.ts +13 -0
- package/dist/v2/entity/bypass/issueBillingKey/TosspayV2.d.ts +5 -3
- package/dist/v2/entity/bypass/issueBillingKey/Welcome.d.ts +12 -5
- package/dist/v2/entity/bypass/issueBillingKey/index.d.ts +10 -16
- package/dist/v2/entity/bypass/issueBillingKeyAndPay/EximbayV2.d.ts +25 -28
- package/dist/v2/entity/bypass/issueBillingKeyAndPay/EximbayV2BillTo.d.ts +37 -0
- package/dist/v2/entity/bypass/issueBillingKeyAndPay/EximbayV2Merchant.d.ts +6 -0
- package/dist/v2/entity/bypass/issueBillingKeyAndPay/EximbayV2Payment.d.ts +13 -0
- package/dist/v2/entity/bypass/issueBillingKeyAndPay/EximbayV2ShipTo.d.ts +37 -0
- package/dist/v2/entity/bypass/issueBillingKeyAndPay/EximbayV2Surcharge.d.ts +14 -0
- package/dist/v2/entity/bypass/issueBillingKeyAndPay/PayletterGlobal.d.ts +16 -6
- package/dist/v2/entity/bypass/issueBillingKeyAndPay/Welcome.d.ts +50 -52
- package/dist/v2/entity/bypass/issueBillingKeyAndPay/index.d.ts +8 -8
- package/dist/v2/entity/bypass/loadIssueBillingKeyUI/PaypalV2.d.ts +15 -22
- package/dist/v2/entity/bypass/loadIssueBillingKeyUI/PaypalV2AdditionalData.d.ts +4 -0
- package/dist/v2/entity/bypass/{PaypalV2Country.d.ts → loadIssueBillingKeyUI/PaypalV2Country.d.ts} +7 -1
- package/dist/v2/entity/bypass/loadIssueBillingKeyUI/PaypalV2ShippingAddress.d.ts +31 -0
- package/dist/v2/entity/bypass/loadIssueBillingKeyUI/PaypalV2Style.d.ts +33 -0
- package/dist/v2/entity/bypass/loadIssueBillingKeyUI/PaypalV2StyleColor.d.ts +14 -0
- package/dist/v2/entity/bypass/loadIssueBillingKeyUI/PaypalV2StyleLabel.d.ts +16 -0
- package/dist/v2/entity/bypass/loadIssueBillingKeyUI/PaypalV2StyleLayout.d.ts +11 -0
- package/dist/v2/entity/bypass/loadIssueBillingKeyUI/PaypalV2StyleShape.d.ts +11 -0
- package/dist/v2/entity/bypass/loadIssueBillingKeyUI/index.d.ts +9 -4
- package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2.d.ts +28 -55
- package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2AdditionalData.d.ts +4 -0
- package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2Payer.d.ts +9 -0
- package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2PayerAddress.d.ts +18 -0
- package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2PayerTaxInfo.d.ts +10 -0
- package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2PurchaseUnit.d.ts +7 -0
- package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2PurchaseUnitShipping.d.ts +10 -0
- package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2PurchaseUnitShippingAddress.d.ts +21 -0
- package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2Style.d.ts +37 -0
- package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2StyleColor.d.ts +14 -0
- package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2StyleLabel.d.ts +16 -0
- package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2StyleLayout.d.ts +11 -0
- package/dist/v2/entity/bypass/loadPaymentUI/PaypalV2StyleShape.d.ts +11 -0
- package/dist/v2/entity/bypass/loadPaymentUI/index.d.ts +13 -4
- package/dist/v2/entity/bypass/payment/EximbayV2.d.ts +38 -41
- package/dist/v2/entity/bypass/payment/EximbayV2BillTo.d.ts +37 -0
- package/dist/v2/entity/bypass/payment/EximbayV2Merchant.d.ts +13 -0
- package/dist/v2/entity/bypass/payment/EximbayV2Payment.d.ts +13 -0
- package/dist/v2/entity/bypass/payment/EximbayV2Settings.d.ts +18 -0
- package/dist/v2/entity/bypass/payment/EximbayV2SettingsCallFromApp.d.ts +11 -0
- package/dist/v2/entity/bypass/payment/EximbayV2ShipTo.d.ts +37 -0
- package/dist/v2/entity/bypass/payment/EximbayV2Surcharge.d.ts +14 -0
- package/dist/v2/entity/bypass/payment/EximbayV2Tax.d.ts +10 -0
- package/dist/v2/entity/bypass/payment/EximbayV2TaxReceiptStatus.d.ts +11 -0
- package/dist/v2/entity/bypass/payment/Hyphen.d.ts +5 -1
- package/dist/v2/entity/bypass/payment/HyphenDesignCd.d.ts +1 -0
- package/dist/v2/entity/bypass/payment/InicisJp.d.ts +8 -23
- package/dist/v2/entity/bypass/payment/InicisJpPaymentUI.d.ts +33 -0
- package/dist/v2/entity/bypass/payment/InicisV2.d.ts +111 -78
- package/dist/v2/entity/bypass/payment/Kakaopay.d.ts +7 -1
- package/dist/v2/entity/bypass/payment/KcpV2.d.ts +23 -10
- package/dist/v2/entity/bypass/payment/KcpV2ComplexPnt.d.ts +11 -0
- package/dist/v2/entity/bypass/payment/KcpV2DispTax.d.ts +13 -0
- package/dist/v2/entity/bypass/payment/Kpn.d.ts +7 -9
- package/dist/v2/entity/bypass/payment/KpnCardSelect.d.ts +19 -0
- package/dist/v2/entity/bypass/payment/Ksnet.d.ts +10 -4
- package/dist/v2/entity/bypass/payment/KsnetSndQpayType.d.ts +17 -0
- package/dist/v2/entity/bypass/payment/Naverpay.d.ts +16 -27
- package/dist/v2/entity/bypass/payment/NaverpayProductItem.d.ts +39 -0
- package/dist/v2/entity/bypass/payment/NaverpayProductItemPayReferrer.d.ts +19 -0
- package/dist/v2/entity/bypass/payment/NaverpaySubMerchantInfo.d.ts +29 -0
- package/dist/v2/entity/bypass/payment/NiceV2.d.ts +48 -22
- package/dist/v2/entity/bypass/payment/NiceV2DirectCoupon.d.ts +21 -0
- package/dist/v2/entity/bypass/payment/NiceV2DirectShow.d.ts +17 -0
- package/dist/v2/entity/bypass/payment/NiceV2DisableScroll.d.ts +11 -0
- package/dist/v2/entity/bypass/payment/NiceV2SamPayMallType.d.ts +17 -0
- package/dist/v2/entity/bypass/payment/NiceV2SkinType.d.ts +18 -0
- package/dist/v2/entity/bypass/payment/PayletterGlobal.d.ts +16 -6
- package/dist/v2/entity/bypass/payment/PaypalV2.d.ts +15 -47
- package/dist/v2/entity/bypass/payment/PaypalV2PaymentSource.d.ts +4 -0
- package/dist/v2/entity/bypass/payment/PaypalV2PaymentSourcePaypal.d.ts +4 -0
- package/dist/v2/entity/bypass/payment/PaypalV2PaymentSourcePaypalExperienceContext.d.ts +9 -0
- package/dist/v2/entity/bypass/payment/PaypalV2PaymentSourcePaypalExperienceContextLandingPage.d.ts +6 -0
- package/dist/v2/entity/bypass/payment/PaypalV2PaymentSourcePaypalExperienceContextPaymentMethodPreference.d.ts +5 -0
- package/dist/v2/entity/bypass/payment/PaypalV2PaymentSourcePaypalExperienceContextShippingPreference.d.ts +6 -0
- package/dist/v2/entity/bypass/payment/SmartroV2.d.ts +19 -5
- package/dist/v2/entity/bypass/payment/SmartroV2OpenType.d.ts +15 -0
- package/dist/v2/entity/bypass/payment/SmartroV2SkinColor.d.ts +17 -0
- package/dist/v2/entity/bypass/payment/TossBrandpay.d.ts +17 -40
- package/dist/v2/entity/bypass/payment/TossBrandpayBrandpayOptions.d.ts +7 -0
- package/dist/v2/entity/bypass/payment/TossBrandpayBrandpayOptionsUi.d.ts +18 -0
- package/dist/v2/entity/bypass/payment/TossBrandpayBrandpayOptionsUiButtonStyle.d.ts +23 -0
- package/dist/v2/entity/bypass/payment/TossBrandpayBrandpayOptionsUiLabels.d.ts +6 -0
- package/dist/v2/entity/bypass/payment/TossBrandpayBrandpayOptionsUiNavigationBar.d.ts +10 -0
- package/dist/v2/entity/bypass/payment/TossBrandpayWidgetOptions.d.ts +16 -0
- package/dist/v2/entity/bypass/payment/TossBrandpayWidgetOptionsMethodType.d.ts +11 -0
- package/dist/v2/entity/bypass/payment/TossBrandpayWidgetOptionsUi.d.ts +4 -0
- package/dist/v2/entity/bypass/payment/TossBrandpayWidgetOptionsUiPromotionSection.d.ts +6 -0
- package/dist/v2/entity/bypass/payment/TossBrandpayWidgetOptionsUiPromotionSectionDescription.d.ts +10 -0
- package/dist/v2/entity/bypass/payment/TossBrandpayWidgetOptionsUiPromotionSectionSummary.d.ts +6 -0
- package/dist/v2/entity/bypass/payment/TosspayV2.d.ts +8 -7
- package/dist/v2/entity/bypass/payment/TosspayV2CashReceiptTradeOption.d.ts +29 -0
- package/dist/v2/entity/bypass/payment/Tosspayments.d.ts +9 -4
- package/dist/v2/entity/bypass/payment/Welcome.d.ts +84 -96
- package/dist/v2/entity/bypass/payment/index.d.ts +60 -36
- package/dist/v2/entity/index.d.ts +50 -36
- package/dist/v2/exception/CheckoutServiceErrorCode.d.ts +11 -1
- package/dist/v2/exception/GrpcErrorCode.d.ts +71 -1
- package/dist/v2/exception/IdentityVerificationError.d.ts +57 -10
- package/dist/v2/exception/IssueBillingKeyAndPayError.d.ts +60 -14
- package/dist/v2/exception/IssueBillingKeyError.d.ts +55 -9
- package/dist/v2/exception/LoadIssueBillingKeyUIError.d.ts +27 -2
- package/dist/v2/exception/LoadPaymentUIError.d.ts +27 -2
- package/dist/v2/exception/ModuleError.d.ts +22 -3
- package/dist/v2/exception/PaymentError.d.ts +57 -10
- package/dist/v2/exception/TxServiceIdentityVerificationErrorCode.d.ts +11 -1
- package/dist/v2/exception/TxServiceIssueErrorCode.d.ts +12 -1
- package/dist/v2/exception/TxServicePayErrorCode.d.ts +16 -1
- package/dist/v2/exception/index.d.ts +5 -0
- package/dist/v2/index.d.ts +14 -11
- package/dist/v2/loadIssueBillingKeyUI.d.ts +3 -22
- package/dist/v2/loadPaymentUI.d.ts +3 -34
- package/dist/v2/loader.d.ts +20 -15
- package/dist/v2/request/IdentityVerificationRequest.d.ts +66 -0
- package/dist/v2/request/IssueBillingKeyAndPayRequest.d.ts +3 -0
- package/dist/v2/request/IssueBillingKeyAndPayRequestBase.d.ts +207 -0
- package/dist/v2/request/IssueBillingKeyAndPayRequestUnion.d.ts +4 -0
- package/dist/v2/request/IssueBillingKeyAndPayRequestUnionMobile.d.ts +11 -0
- package/dist/v2/request/IssueBillingKeyRequest.d.ts +3 -0
- package/dist/v2/request/IssueBillingKeyRequestBase.d.ts +142 -0
- package/dist/v2/request/IssueBillingKeyRequestUnion.d.ts +10 -0
- package/dist/v2/request/IssueBillingKeyRequestUnionCard.d.ts +7 -0
- package/dist/v2/request/IssueBillingKeyRequestUnionEasyPay.d.ts +17 -0
- package/dist/v2/request/IssueBillingKeyRequestUnionMobile.d.ts +11 -0
- package/dist/v2/request/IssueBillingKeyRequestUnionPaypal.d.ts +1 -0
- package/dist/v2/request/LoadIssueBillingKeyUIRequest.d.ts +84 -0
- package/dist/v2/request/LoadPaymentUIRequest.d.ts +198 -0
- package/dist/v2/request/PaymentRequest.d.ts +3 -0
- package/dist/v2/request/PaymentRequestBase.d.ts +253 -0
- package/dist/v2/request/PaymentRequestUnion.d.ts +35 -0
- package/dist/v2/request/PaymentRequestUnionAlipay.d.ts +1 -0
- package/dist/v2/request/PaymentRequestUnionCard.d.ts +79 -0
- package/dist/v2/request/PaymentRequestUnionConvenienceStore.d.ts +7 -0
- package/dist/v2/request/PaymentRequestUnionConvenienceStorePaymentDeadline.d.ts +16 -0
- package/dist/v2/request/PaymentRequestUnionEasyPay.d.ts +110 -0
- package/dist/v2/request/PaymentRequestUnionGiftCertificate.d.ts +10 -0
- package/dist/v2/request/PaymentRequestUnionMobile.d.ts +16 -0
- package/dist/v2/request/PaymentRequestUnionPaypal.d.ts +1 -0
- package/dist/v2/request/PaymentRequestUnionTransfer.d.ts +23 -0
- package/dist/v2/request/PaymentRequestUnionVirtualAccount.d.ts +45 -0
- package/dist/v2/request/PaymentRequestUnionVirtualAccountAccountExpiry.d.ts +25 -0
- package/dist/v2/request/PaymentRequestUnionVirtualAccountFixedOption.d.ts +14 -0
- package/dist/v2/request/index.d.ts +29 -0
- package/dist/v2/requestIdentityVerification.d.ts +2 -27
- package/dist/v2/requestIssueBillingKey.d.ts +2 -55
- package/dist/v2/requestIssueBillingKeyAndPay.d.ts +2 -55
- package/dist/v2/requestPayment.d.ts +2 -109
- package/dist/v2/response/IdentityVerificationResponse.d.ts +49 -0
- package/dist/v2/response/IssueBillingKeyAndPayResponse.d.ts +53 -0
- package/dist/v2/response/IssueBillingKeyResponse.d.ts +41 -0
- package/dist/v2/response/PaymentResponse.d.ts +47 -0
- package/dist/v2/response/index.d.ts +4 -0
- package/dist/v2/updateLoadIssueBillingKeyUIRequest.d.ts +1 -1
- package/dist/v2/updateLoadPaymentUIRequest.d.ts +1 -1
- package/dist/v2.cjs +3230 -343
- package/dist/v2.js +3179 -344
- package/package.json +8 -8
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { EasyPayProvider } from '../entity/EasyPayProvider.js';
|
|
2
|
+
import { CardCompany } from '../entity/CardCompany.js';
|
|
3
|
+
import type { Installment } from '../entity/Installment.js';
|
|
4
|
+
import { CashReceiptType } from '../entity/CashReceiptType.js';
|
|
5
|
+
import { EasyPayPaymentMethod } from '../entity/EasyPayPaymentMethod.js';
|
|
6
|
+
export type PaymentRequestUnionEasyPay = {
|
|
7
|
+
/**
|
|
8
|
+
* **간편결제 UI 직접 호출**
|
|
9
|
+
*
|
|
10
|
+
* PG 제휴 간편결제의 UI를 직접 호출하기 위해, 간편결제 서비스를 지정합니다.
|
|
11
|
+
*/
|
|
12
|
+
easyPayProvider?: EasyPayProvider | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* **상점분담 무이자 활성화 여부**
|
|
15
|
+
*/
|
|
16
|
+
useFreeInterestFromMall?: boolean | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* **일부 카드사만 노출 설정**
|
|
19
|
+
*
|
|
20
|
+
* 일부 카드사만을 선택 가능하게 하고 싶은 경우 사용하는 옵션입니다.
|
|
21
|
+
*/
|
|
22
|
+
availableCards?: CardCompany[] | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* **할부 설정**
|
|
25
|
+
*
|
|
26
|
+
* 신용카드 결제 시 할부 관련 설정을 제어합니다.
|
|
27
|
+
*
|
|
28
|
+
* ## 사용 예시
|
|
29
|
+
*
|
|
30
|
+
* ### 3개월 고정 할부
|
|
31
|
+
*
|
|
32
|
+
* ```typescript
|
|
33
|
+
* installment: {
|
|
34
|
+
* monthOption: {
|
|
35
|
+
* fixedMonth: 3
|
|
36
|
+
* }
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* ### 2~6개월 할부 선택
|
|
41
|
+
*
|
|
42
|
+
* ```typescript
|
|
43
|
+
* installment: {
|
|
44
|
+
* monthOption: {
|
|
45
|
+
* availableMonthList: [2, 3, 4, 5, 6]
|
|
46
|
+
* }
|
|
47
|
+
* }
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* ### 무이자 할부 설정 (삼성카드 2,3개월)
|
|
51
|
+
*
|
|
52
|
+
* ```typescript
|
|
53
|
+
* installment: {
|
|
54
|
+
* freeInstallmentPlans: [{
|
|
55
|
+
* cardCompany: 'CARD_COMPANY_SAMSUNG',
|
|
56
|
+
* months: [2, 3]
|
|
57
|
+
* }]
|
|
58
|
+
* }
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* ## 주의사항
|
|
62
|
+
*
|
|
63
|
+
* - 일반적으로 5만원 이상부터 할부가 가능합니다
|
|
64
|
+
* - 1개월 할부는 일시불과 동일하게 처리됩니다
|
|
65
|
+
* - 카드 다이렉트 호출 시 고정 할부만 가능한 PG사가 있습니다
|
|
66
|
+
* - 무이자 할부는 가맹점이 수수료를 부담하는 방식입니다
|
|
67
|
+
*/
|
|
68
|
+
installment?: Installment | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* **현금영수증 유형**
|
|
71
|
+
*
|
|
72
|
+
* 나이스페이먼츠, 토스페이먼츠 브랜드페이에서 사용합니다.
|
|
73
|
+
*/
|
|
74
|
+
cashReceiptType?: CashReceiptType | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* **현금영수증 구매자 번호**
|
|
77
|
+
*
|
|
78
|
+
* 카드일련번호, 주민등록번호, 사업자등록번호, 휴대전화번호 중 하나입니다.
|
|
79
|
+
*
|
|
80
|
+
* `cashReceiptType`이 있고 `ANONYMOUS`가 아닐 때 필수입니다.
|
|
81
|
+
*/
|
|
82
|
+
customerIdentifier?: string | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* **카드사 포인트 사용 여부**
|
|
85
|
+
*
|
|
86
|
+
* 토스페이먼츠 브랜드페이에서 사용합니다.
|
|
87
|
+
* `true`로 설정하면 카드사 포인트 사용이 켜진 상태로 UI가 표시됩니다.
|
|
88
|
+
* 이외의 경우 구매자가 카드사 포인트 사용 여부를 선택할 수 있습니다.
|
|
89
|
+
* 토스페이먼츠와의 추가 게약이 필요합니다.
|
|
90
|
+
*/
|
|
91
|
+
useCardPoint?: boolean | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* **표시할 간편결제 수단 목록**
|
|
94
|
+
*
|
|
95
|
+
* 나이스페이먼츠, NHN KCP, KSNET에서 일부 간편결제의 UI를 직접 호출할 때 사용합니다.
|
|
96
|
+
*
|
|
97
|
+
* PG 제휴를 통해 간편결제를 이용할 때에는 복합결제가 불가능한 경우가 많습니다. 즉, 전액 카드 결제나 전액 포인트 결제 등만 가능합니다.
|
|
98
|
+
* 보통 UI 안에서 결제 수단을 선택하게 되나, 일부 PG에서는 UI를 호출할 때 수단 중 하나를 지정할 수 있는 기능을 제공하기도 합니다.
|
|
99
|
+
* 이때 `availablePayMethods`가 사용됩니다.
|
|
100
|
+
*
|
|
101
|
+
* 단, 나이스페이먼츠를 통해 네이버페이 UI를 직접 호출할 때에는 **필수**임에 유의합니다.
|
|
102
|
+
*/
|
|
103
|
+
availablePayMethods?: EasyPayPaymentMethod[] | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* **할부 사용 가능 여부**
|
|
106
|
+
*
|
|
107
|
+
* `false`로 지정하면 신용카드 할부 사용을 금지합니다. 토스페이(직계약)에서 지원합니다.
|
|
108
|
+
*/
|
|
109
|
+
useInstallment?: boolean | undefined;
|
|
110
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Carrier } from '../entity/Carrier.js';
|
|
2
|
+
/**
|
|
3
|
+
* **휴대전화 결제 설정**
|
|
4
|
+
*/
|
|
5
|
+
export type PaymentRequestUnionMobile = {
|
|
6
|
+
/**
|
|
7
|
+
* **휴대폰 소액결제 통신사 바로 호출을 위한 통신사 구분 값**
|
|
8
|
+
*/
|
|
9
|
+
carrier?: Carrier | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* **일부 통신사만 노출 설정**
|
|
12
|
+
*
|
|
13
|
+
* 일부 통신사만을 선택 가능하게 하고 싶은 경우 사용하는 옵션입니다.
|
|
14
|
+
*/
|
|
15
|
+
avaliableCarriers?: Carrier[] | undefined;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type PaymentRequestUnionPaypal = Record<string, never>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CashReceiptType } from '../entity/CashReceiptType.js';
|
|
2
|
+
import { Bank } from '../entity/Bank.js';
|
|
3
|
+
/**
|
|
4
|
+
* **계좌이체 결제 설정**
|
|
5
|
+
*/
|
|
6
|
+
export type PaymentRequestUnionTransfer = {
|
|
7
|
+
/**
|
|
8
|
+
* **현금영수증 유형**
|
|
9
|
+
*
|
|
10
|
+
* 토스페이먼츠, NICE페이먼츠, KG이니시스, 스마트로, KSNET, 웰컴페이먼츠, 한국결제네트웍스에서 지원합니다. 동작은 PG에 따라 다릅니다.
|
|
11
|
+
*/
|
|
12
|
+
cashReceiptType?: CashReceiptType | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* **현금영수증 구매자 번호**
|
|
15
|
+
*
|
|
16
|
+
* 카드일련번호, 주민등록번호, 사업자등록번호, 휴대전화번호 중 하나입니다. NICE페이먼츠와 스마트로에서 PG UI를 건너뛸 때 사용합니다.
|
|
17
|
+
*/
|
|
18
|
+
customerIdentifier?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* 가상계좌 발급시 사용되는 은행 코드
|
|
21
|
+
*/
|
|
22
|
+
bankCode?: Bank | undefined;
|
|
23
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CashReceiptType } from '../entity/CashReceiptType.js';
|
|
2
|
+
import type { PaymentRequestUnionVirtualAccountFixedOption } from './PaymentRequestUnionVirtualAccountFixedOption.js';
|
|
3
|
+
import { Bank } from '../entity/Bank.js';
|
|
4
|
+
import type { PaymentRequestUnionVirtualAccountAccountExpiry } from './PaymentRequestUnionVirtualAccountAccountExpiry.js';
|
|
5
|
+
/**
|
|
6
|
+
* **가상계좌 결제 설정**
|
|
7
|
+
*/
|
|
8
|
+
export type PaymentRequestUnionVirtualAccount = {
|
|
9
|
+
/**
|
|
10
|
+
* **현금영수증 유형**
|
|
11
|
+
*
|
|
12
|
+
* 토스페이먼츠, KG이니시스, 스마트로, 웰컴페이먼츠, 한국결제네트웍스에서 지원합니다. 동작은 PG에 따라 다릅니다.
|
|
13
|
+
*/
|
|
14
|
+
cashReceiptType?: CashReceiptType | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* **현금영수증 구매자 번호**
|
|
17
|
+
*
|
|
18
|
+
* 카드일련번호, 주민등록번호, 사업자등록번호, 휴대전화번호 중 하나입니다. 스마트로에서 PG UI를 건너뛸 때 사용합니다.
|
|
19
|
+
*/
|
|
20
|
+
customerIdentifier?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* **고정식 가상계좌 설정**
|
|
23
|
+
*/
|
|
24
|
+
fixedOption?: PaymentRequestUnionVirtualAccountFixedOption | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* **은행**
|
|
27
|
+
*
|
|
28
|
+
* 가상계좌를 발급할 은행입니다. KCP와 스마트로에서 지원합니다.
|
|
29
|
+
*/
|
|
30
|
+
bankCode?: Bank | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* **가상계좌 입금 만료 기한**
|
|
33
|
+
*
|
|
34
|
+
* 토스페이먼츠, KG이니시스, NHN KCP에서 지원합니다.
|
|
35
|
+
*
|
|
36
|
+
* `validHours`와 `dueDate` 중 하나만 지정합니다.
|
|
37
|
+
*/
|
|
38
|
+
accountExpiry?: PaymentRequestUnionVirtualAccountAccountExpiry | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* **선택 가능 은행 목록**
|
|
41
|
+
*
|
|
42
|
+
* 가상계좌 발급 UI에서 선택할 수 있는 은행 목록을 지정합니다. KCP에서만 지원합니다.
|
|
43
|
+
*/
|
|
44
|
+
availableBanks?: Bank[] | undefined;
|
|
45
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { OneOfType } from '../../utils.js';
|
|
2
|
+
/**
|
|
3
|
+
* **가상계좌 입금 만료 기한**
|
|
4
|
+
*
|
|
5
|
+
* 토스페이먼츠, KG이니시스, NHN KCP에서 지원합니다.
|
|
6
|
+
*
|
|
7
|
+
* `validHours`와 `dueDate` 중 하나만 지정합니다.
|
|
8
|
+
*/
|
|
9
|
+
export type PaymentRequestUnionVirtualAccountAccountExpiry = OneOfType<{
|
|
10
|
+
/**
|
|
11
|
+
* **유효 시간**
|
|
12
|
+
*
|
|
13
|
+
* 예) 3을 전달하면 지금으로부터 3시간 후가 만료 기한으로 지정 됨
|
|
14
|
+
*/
|
|
15
|
+
validHours: number;
|
|
16
|
+
/**
|
|
17
|
+
* **만료 시각**
|
|
18
|
+
*
|
|
19
|
+
* - YYYYMMDD
|
|
20
|
+
* - YYYYMMDDHHmmss
|
|
21
|
+
* - YYYY-MM-DD
|
|
22
|
+
* - YYYY-MM-DD HH:mm:ss
|
|
23
|
+
*/
|
|
24
|
+
dueDate: string;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { OneOfType } from '../../utils.js';
|
|
2
|
+
/**
|
|
3
|
+
* **고정식 가상계좌 설정**
|
|
4
|
+
*/
|
|
5
|
+
export type PaymentRequestUnionVirtualAccountFixedOption = OneOfType<{
|
|
6
|
+
/**
|
|
7
|
+
* PG사로부터 사전에 가상계좌에 대한 ID를 발급받아 사용하는 경우의 가상계좌 ID
|
|
8
|
+
*/
|
|
9
|
+
pgAccountId: string;
|
|
10
|
+
/**
|
|
11
|
+
* 고정식으로 사용할 가상계좌 번호
|
|
12
|
+
*/
|
|
13
|
+
accountNumber: string;
|
|
14
|
+
}>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export * from './LoadIssueBillingKeyUIRequest.js';
|
|
2
|
+
export * from './LoadPaymentUIRequest.js';
|
|
3
|
+
export * from './IdentityVerificationRequest.js';
|
|
4
|
+
export * from './IssueBillingKeyRequest.js';
|
|
5
|
+
export * from './IssueBillingKeyAndPayRequest.js';
|
|
6
|
+
export * from './PaymentRequest.js';
|
|
7
|
+
export * from './IssueBillingKeyRequestBase.js';
|
|
8
|
+
export * from './IssueBillingKeyRequestUnion.js';
|
|
9
|
+
export * from './IssueBillingKeyAndPayRequestBase.js';
|
|
10
|
+
export * from './IssueBillingKeyAndPayRequestUnion.js';
|
|
11
|
+
export * from './PaymentRequestBase.js';
|
|
12
|
+
export * from './PaymentRequestUnion.js';
|
|
13
|
+
export * from './IssueBillingKeyRequestUnionCard.js';
|
|
14
|
+
export * from './IssueBillingKeyRequestUnionMobile.js';
|
|
15
|
+
export * from './IssueBillingKeyRequestUnionEasyPay.js';
|
|
16
|
+
export * from './IssueBillingKeyRequestUnionPaypal.js';
|
|
17
|
+
export * from './IssueBillingKeyAndPayRequestUnionMobile.js';
|
|
18
|
+
export * from './PaymentRequestUnionCard.js';
|
|
19
|
+
export * from './PaymentRequestUnionVirtualAccount.js';
|
|
20
|
+
export * from './PaymentRequestUnionTransfer.js';
|
|
21
|
+
export * from './PaymentRequestUnionMobile.js';
|
|
22
|
+
export * from './PaymentRequestUnionGiftCertificate.js';
|
|
23
|
+
export * from './PaymentRequestUnionEasyPay.js';
|
|
24
|
+
export * from './PaymentRequestUnionPaypal.js';
|
|
25
|
+
export * from './PaymentRequestUnionAlipay.js';
|
|
26
|
+
export * from './PaymentRequestUnionConvenienceStore.js';
|
|
27
|
+
export * from './PaymentRequestUnionVirtualAccountAccountExpiry.js';
|
|
28
|
+
export * from './PaymentRequestUnionVirtualAccountFixedOption.js';
|
|
29
|
+
export * from './PaymentRequestUnionConvenienceStorePaymentDeadline.js';
|
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IdentityVerificationRequest } from './request/IdentityVerificationRequest.js';
|
|
2
|
+
import type { IdentityVerificationResponse } from './response/IdentityVerificationResponse.js';
|
|
2
3
|
export declare function requestIdentityVerification(request: IdentityVerificationRequest): Promise<IdentityVerificationResponse | undefined>;
|
|
3
|
-
export type IdentityVerificationRequest = {
|
|
4
|
-
storeId: string;
|
|
5
|
-
identityVerificationId: string;
|
|
6
|
-
channelKey?: string;
|
|
7
|
-
pgProvider?: Entity.PgProvider;
|
|
8
|
-
isTestChannel?: boolean;
|
|
9
|
-
customer?: Entity.Customer;
|
|
10
|
-
windowType?: Entity.WindowTypes;
|
|
11
|
-
redirectUrl?: string;
|
|
12
|
-
customData?: string;
|
|
13
|
-
bypass?: Entity.IdentityVerificationBypass;
|
|
14
|
-
popup?: Entity.Popup;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* iframe/popup 방식으로 PG사 창이 렌더링 된 경우
|
|
18
|
-
* 프로세스 종료 후, 콜백 함수로 전달 될 본인인증 정보 데이터
|
|
19
|
-
*/
|
|
20
|
-
export type IdentityVerificationResponse = {
|
|
21
|
-
transactionType: typeof Entity.TransactionType.IDENTITY_VERIFICATION;
|
|
22
|
-
identityVerificationId: string;
|
|
23
|
-
identityVerificationTxId: string;
|
|
24
|
-
code?: string;
|
|
25
|
-
message?: string;
|
|
26
|
-
pgCode?: string;
|
|
27
|
-
pgMessage?: string;
|
|
28
|
-
};
|
|
@@ -1,56 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { IssueBillingKeyRequest } from './request/IssueBillingKeyRequest.js';
|
|
2
|
+
import type { IssueBillingKeyResponse } from './response/IssueBillingKeyResponse.js';
|
|
3
3
|
export declare function requestIssueBillingKey(request: IssueBillingKeyRequest): Promise<IssueBillingKeyResponse | undefined>;
|
|
4
|
-
export type IssueBillingKeyRequest = {
|
|
5
|
-
displayAmount?: number;
|
|
6
|
-
currency?: Entity.Currency;
|
|
7
|
-
storeId: string;
|
|
8
|
-
channelKey?: string;
|
|
9
|
-
pgProvider?: Entity.PgProvider;
|
|
10
|
-
isTestChannel?: boolean;
|
|
11
|
-
billingKeyMethod: Entity.BillingKeyMethod;
|
|
12
|
-
issueName?: string;
|
|
13
|
-
issueId?: string;
|
|
14
|
-
customer?: Entity.Customer;
|
|
15
|
-
windowType?: Entity.WindowTypes;
|
|
16
|
-
redirectUrl?: string;
|
|
17
|
-
locale?: Entity.Locale;
|
|
18
|
-
customData?: Record<string, any>;
|
|
19
|
-
offerPeriod?: Entity.OfferPeriod;
|
|
20
|
-
appScheme?: string;
|
|
21
|
-
noticeUrls?: string[];
|
|
22
|
-
productType?: Entity.ProductType;
|
|
23
|
-
bypass?: Entity.IssueBillingKeyBypass;
|
|
24
|
-
popup?: Entity.Popup;
|
|
25
|
-
} & (BillingKeyMethodOptions<'CARD', Card> | BillingKeyMethodOptions<'MOBILE', Mobile> | BillingKeyMethodOptions<'EASY_PAY', EasyPay> | BillingKeyMethodOptions<'PAYPAL', Paypal>);
|
|
26
|
-
/**
|
|
27
|
-
* iframe/popup 방식으로 PG사 창이 렌더링 된 경우
|
|
28
|
-
* 프로세스 종료 후, 콜백 함수로 전달 될 빌링키 발급 정보 데이터
|
|
29
|
-
*/
|
|
30
|
-
export type IssueBillingKeyResponse = {
|
|
31
|
-
transactionType: typeof Entity.TransactionType.ISSUE_BILLING_KEY;
|
|
32
|
-
billingKey: string;
|
|
33
|
-
code?: string;
|
|
34
|
-
message?: string;
|
|
35
|
-
pgCode?: string;
|
|
36
|
-
pgMessage?: string;
|
|
37
|
-
};
|
|
38
|
-
type BillingKeyMethodOptions<Method extends Entity.BillingKeyMethod, T> = {
|
|
39
|
-
billingKeyMethod: Method;
|
|
40
|
-
} & {
|
|
41
|
-
[K in Method as CapsToCamel<K>]?: T;
|
|
42
|
-
};
|
|
43
|
-
type Card = {
|
|
44
|
-
cardCompany?: Entity.CardCompany;
|
|
45
|
-
};
|
|
46
|
-
type EasyPay = {
|
|
47
|
-
availableCards?: Entity.CardCompany[];
|
|
48
|
-
easyPayProvider?: Entity.EasyPayProvider;
|
|
49
|
-
availablePayMethods?: Entity.EasyPayPaymentMethod[];
|
|
50
|
-
};
|
|
51
|
-
type Mobile = {
|
|
52
|
-
carrier?: Entity.Carrier;
|
|
53
|
-
availableCarriers?: Entity.Carrier[];
|
|
54
|
-
};
|
|
55
|
-
type Paypal = Record<string, never>;
|
|
56
|
-
export {};
|
|
@@ -1,56 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { IssueBillingKeyAndPayRequest } from './request/IssueBillingKeyAndPayRequest.js';
|
|
2
|
+
import type { IssueBillingKeyAndPayResponse } from './response/IssueBillingKeyAndPayResponse.js';
|
|
3
3
|
export declare function requestIssueBillingKeyAndPay(request: IssueBillingKeyAndPayRequest): Promise<IssueBillingKeyAndPayResponse>;
|
|
4
|
-
export type IssueBillingKeyAndPayRequest = {
|
|
5
|
-
storeId: string;
|
|
6
|
-
paymentId: string;
|
|
7
|
-
orderName: string;
|
|
8
|
-
totalAmount: number;
|
|
9
|
-
currency: Entity.Currency;
|
|
10
|
-
channelKey?: string;
|
|
11
|
-
pgProvider?: Entity.PgProvider;
|
|
12
|
-
isTestChannel?: boolean;
|
|
13
|
-
taxFreeAmount?: number;
|
|
14
|
-
vatAmount?: number;
|
|
15
|
-
customer?: Entity.Customer;
|
|
16
|
-
billingKeyAndPayMethod: Entity.BillingKeyAndPayMethod;
|
|
17
|
-
windowType?: Entity.WindowTypes;
|
|
18
|
-
redirectUrl?: string;
|
|
19
|
-
noticeUrls?: string[];
|
|
20
|
-
locale?: Entity.Locale;
|
|
21
|
-
isCulturalExpense?: boolean;
|
|
22
|
-
customData?: Record<string, any>;
|
|
23
|
-
offerPeriod?: Entity.OfferPeriod;
|
|
24
|
-
appScheme?: string;
|
|
25
|
-
productType?: Entity.ProductType;
|
|
26
|
-
storeDetails?: Entity.StoreDetails;
|
|
27
|
-
country?: Entity.Country;
|
|
28
|
-
bypass?: Entity.IssueBillingKeyAndPayBypass;
|
|
29
|
-
popup?: Entity.Popup;
|
|
30
|
-
} & (BillingKeyAndPayMethodOptions<'MOBILE', Mobile> | {
|
|
31
|
-
billingKeyAndPayMethod?: undefined;
|
|
32
|
-
});
|
|
33
|
-
/**
|
|
34
|
-
* iframe/popup 방식으로 PG사 창이 렌더링 된 경우
|
|
35
|
-
* 프로세스 종료 후, 콜백 함수로 전달 될 빌링키 발급 및 결제 정보 데이터
|
|
36
|
-
*/
|
|
37
|
-
export type IssueBillingKeyAndPayResponse = {
|
|
38
|
-
transactionType: typeof Entity.TransactionType.ISSUE_BILLING_KEY_AND_PAY;
|
|
39
|
-
txId: string;
|
|
40
|
-
paymentId: string;
|
|
41
|
-
billingKey: string;
|
|
42
|
-
code?: string;
|
|
43
|
-
message?: string;
|
|
44
|
-
pgCode?: string;
|
|
45
|
-
pgMessage?: string;
|
|
46
|
-
};
|
|
47
|
-
type BillingKeyAndPayMethodOptions<Method extends Entity.BillingKeyAndPayMethod, T> = {
|
|
48
|
-
billingKeyAndPayMethod: Method;
|
|
49
|
-
} & {
|
|
50
|
-
[K in Method as CapsToCamel<K>]?: T;
|
|
51
|
-
};
|
|
52
|
-
type Mobile = {
|
|
53
|
-
carrier?: Entity.Carrier;
|
|
54
|
-
availableCarriers?: Entity.Carrier[];
|
|
55
|
-
};
|
|
56
|
-
export {};
|
|
@@ -1,110 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { PaymentRequest } from './request/PaymentRequest.js';
|
|
2
|
+
import type { PaymentResponse } from './response/PaymentResponse.js';
|
|
3
3
|
export declare function requestPayment(request: PaymentRequest): Promise<PaymentResponse | undefined>;
|
|
4
|
-
export type PaymentRequest = {
|
|
5
|
-
storeId: string;
|
|
6
|
-
paymentId: string;
|
|
7
|
-
orderName: string;
|
|
8
|
-
totalAmount: number;
|
|
9
|
-
channelKey?: string;
|
|
10
|
-
pgProvider?: Entity.PgProvider;
|
|
11
|
-
isTestChannel?: boolean;
|
|
12
|
-
channelGroupId?: string;
|
|
13
|
-
taxFreeAmount?: number;
|
|
14
|
-
vatAmount?: number;
|
|
15
|
-
customer?: Entity.Customer;
|
|
16
|
-
windowType?: Entity.WindowTypes;
|
|
17
|
-
redirectUrl?: string;
|
|
18
|
-
noticeUrls?: string[];
|
|
19
|
-
confirmUrl?: string;
|
|
20
|
-
appScheme?: string;
|
|
21
|
-
isEscrow?: boolean;
|
|
22
|
-
products?: Entity.Product[];
|
|
23
|
-
isCulturalExpense?: boolean;
|
|
24
|
-
currency: Entity.Currency;
|
|
25
|
-
locale?: Entity.Locale;
|
|
26
|
-
customData?: Record<string, any>;
|
|
27
|
-
offerPeriod?: Entity.OfferPeriod;
|
|
28
|
-
productType?: Entity.ProductType;
|
|
29
|
-
storeDetails?: Entity.StoreDetails;
|
|
30
|
-
bypass?: Entity.PaymentBypass;
|
|
31
|
-
country?: Entity.Country;
|
|
32
|
-
shippingAddress?: Entity.Address;
|
|
33
|
-
promotionId?: string;
|
|
34
|
-
popup?: Entity.Popup;
|
|
35
|
-
} & (PayMethodOptions<'CARD', Card> | PayMethodOptions<'VIRTUAL_ACCOUNT', VirtualAccount> | PayMethodOptions<'TRANSFER', Transfer> | PayMethodOptions<'MOBILE', Mobile> | PayMethodOptions<'GIFT_CERTIFICATE', GiftCertificate> | PayMethodOptions<'EASY_PAY', EasyPay> | PayMethodOptions<'PAYPAL', Paypal> | PayMethodOptions<'ALIPAY', Alipay> | PayMethodOptions<'CONVENIENCE_STORE', ConvenienceStore> | {
|
|
36
|
-
payMethod?: undefined;
|
|
37
|
-
});
|
|
38
|
-
/**
|
|
39
|
-
* iframe/popup 방식으로 PG사 창이 렌더링 된 경우
|
|
40
|
-
* 프로세스 종료 후, 콜백 함수로 전달 될 결제 정보 데이터
|
|
41
|
-
*/
|
|
42
|
-
export type PaymentResponse = {
|
|
43
|
-
transactionType: typeof Entity.TransactionType.PAYMENT;
|
|
44
|
-
paymentId: string;
|
|
45
|
-
txId: string;
|
|
46
|
-
code?: string;
|
|
47
|
-
message?: string;
|
|
48
|
-
pgCode?: string;
|
|
49
|
-
pgMessage?: string;
|
|
50
|
-
};
|
|
51
|
-
type PayMethodOptions<Method extends Entity.PayMethod, T> = {
|
|
52
|
-
payMethod: Method;
|
|
53
|
-
} & {
|
|
54
|
-
[K in Method as CapsToCamel<K>]?: T;
|
|
55
|
-
};
|
|
56
|
-
type Card = {
|
|
57
|
-
cardCompany?: Entity.CardCompany;
|
|
58
|
-
installment?: Entity.Installment;
|
|
59
|
-
useCardPoint?: boolean;
|
|
60
|
-
useAppCardOnly?: boolean;
|
|
61
|
-
availableCards?: Entity.CardCompany[];
|
|
62
|
-
useFreeInterestFromMall?: boolean;
|
|
63
|
-
useInstallment?: boolean;
|
|
64
|
-
};
|
|
65
|
-
type VirtualAccount = {
|
|
66
|
-
cashReceiptType?: Entity.CashReceiptType;
|
|
67
|
-
customerIdentifier?: string;
|
|
68
|
-
accountExpiry?: OneOfType<{
|
|
69
|
-
validHours: number;
|
|
70
|
-
dueDate: string;
|
|
71
|
-
}>;
|
|
72
|
-
bankCode?: Entity.Bank;
|
|
73
|
-
availableBanks?: Entity.Bank[];
|
|
74
|
-
fixedOption?: OneOfType<{
|
|
75
|
-
pgAccountId: string;
|
|
76
|
-
accountNumber: string;
|
|
77
|
-
}>;
|
|
78
|
-
};
|
|
79
|
-
type Transfer = {
|
|
80
|
-
cashReceiptType?: Entity.CashReceiptType;
|
|
81
|
-
customerIdentifier?: string;
|
|
82
|
-
bankCode?: Entity.Bank;
|
|
83
|
-
};
|
|
84
|
-
type Mobile = {
|
|
85
|
-
carrier?: Entity.Carrier;
|
|
86
|
-
availableCarriers?: Entity.Carrier[];
|
|
87
|
-
};
|
|
88
|
-
type GiftCertificate = {
|
|
89
|
-
giftCertificateType?: Entity.GiftCertificateType;
|
|
90
|
-
};
|
|
91
|
-
type EasyPay = {
|
|
92
|
-
easyPayProvider?: Entity.EasyPayProvider;
|
|
93
|
-
installment?: Entity.Installment;
|
|
94
|
-
availableCards?: Entity.CardCompany[];
|
|
95
|
-
useFreeInterestFromMall?: boolean;
|
|
96
|
-
cashReceiptType?: Entity.CashReceiptType;
|
|
97
|
-
customerIdentifier?: string;
|
|
98
|
-
useCardPoint?: boolean;
|
|
99
|
-
availablePayMethods?: Entity.EasyPayPaymentMethod[];
|
|
100
|
-
useInstallment?: boolean;
|
|
101
|
-
};
|
|
102
|
-
type Paypal = Record<string, never>;
|
|
103
|
-
type Alipay = Record<string, never>;
|
|
104
|
-
type ConvenienceStore = {
|
|
105
|
-
paymentDeadline?: OneOfType<{
|
|
106
|
-
validHours: number;
|
|
107
|
-
dueDate: string;
|
|
108
|
-
}>;
|
|
109
|
-
};
|
|
110
|
-
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { PgCode } from '../entity/PgCode.js';
|
|
2
|
+
import type { PgMessage } from '../entity/PgMessage.js';
|
|
3
|
+
/**
|
|
4
|
+
* **리디렉션 없이 결제 UI가 표시된 경우 반환값**
|
|
5
|
+
*/
|
|
6
|
+
export type IdentityVerificationResponse = {
|
|
7
|
+
/**
|
|
8
|
+
* **트랜잭션 유형**
|
|
9
|
+
*
|
|
10
|
+
* 본인인증의 경우 경우 항상 `IDENTITY_VERIFICATION`으로 전달됩니다.
|
|
11
|
+
*/
|
|
12
|
+
transactionType: 'IDENTITY_VERIFICATION';
|
|
13
|
+
/**
|
|
14
|
+
* **본인인증 ID**
|
|
15
|
+
*
|
|
16
|
+
* 본인인증 ID입니다.
|
|
17
|
+
*/
|
|
18
|
+
identityVerificationId: string;
|
|
19
|
+
/**
|
|
20
|
+
* **본인인증 시도 ID**
|
|
21
|
+
*
|
|
22
|
+
* 요청마다 고유하게 생성되는 본인인증 시도 ID입니다.
|
|
23
|
+
*/
|
|
24
|
+
identityVerificationTxId: string;
|
|
25
|
+
/**
|
|
26
|
+
* **오류 코드**
|
|
27
|
+
*
|
|
28
|
+
* 실패한 경우 오류 코드입니다.
|
|
29
|
+
*/
|
|
30
|
+
code?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* **오류 메시지**
|
|
33
|
+
*
|
|
34
|
+
* 실패한 경우 오류 메시지입니다.
|
|
35
|
+
*/
|
|
36
|
+
message?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* **PG 오류 코드**
|
|
39
|
+
*
|
|
40
|
+
* PG에서 오류 코드를 내려 주는 경우 이 오류 코드를 그대로 반환합니다.
|
|
41
|
+
*/
|
|
42
|
+
pgCode?: PgCode | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* **PG 오류 메시지**
|
|
45
|
+
*
|
|
46
|
+
* PG에서 오류 메시지를 내려 주는 경우 이 오류 메시지를 그대로 반환합니다.
|
|
47
|
+
*/
|
|
48
|
+
pgMessage?: PgMessage | undefined;
|
|
49
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { PgCode } from '../entity/PgCode.js';
|
|
2
|
+
import type { PgMessage } from '../entity/PgMessage.js';
|
|
3
|
+
/**
|
|
4
|
+
* **리디렉션 없이 빌링키 발급 및 초회결제 UI가 표시된 경우 반환값**
|
|
5
|
+
*/
|
|
6
|
+
export type IssueBillingKeyAndPayResponse = {
|
|
7
|
+
/**
|
|
8
|
+
* `ISSUE_BILLING_KEY_AND_PAY`
|
|
9
|
+
*/
|
|
10
|
+
transactionType: 'ISSUE_BILLING_KEY_AND_PAY';
|
|
11
|
+
/**
|
|
12
|
+
* **결제 시도 ID**
|
|
13
|
+
*
|
|
14
|
+
* 초회결제에 해당하는, 요청마다 고유하게 생성되는 결제 시도 ID입니다.
|
|
15
|
+
*/
|
|
16
|
+
txId: string;
|
|
17
|
+
/**
|
|
18
|
+
* **결제 ID**
|
|
19
|
+
*
|
|
20
|
+
* 초회결제의 결제 ID입니다.
|
|
21
|
+
*/
|
|
22
|
+
paymentId: string;
|
|
23
|
+
/**
|
|
24
|
+
* **빌링키**
|
|
25
|
+
*
|
|
26
|
+
* 빌링결제를 일으킬 때 사용하는 빌링키입니다.
|
|
27
|
+
*/
|
|
28
|
+
billingKey: string;
|
|
29
|
+
/**
|
|
30
|
+
* **오류 코드**
|
|
31
|
+
*
|
|
32
|
+
* 실패한 경우 오류 코드입니다.
|
|
33
|
+
*/
|
|
34
|
+
code?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* **오류 메시지**
|
|
37
|
+
*
|
|
38
|
+
* 실패한 경우 오류 메시지입니다.
|
|
39
|
+
*/
|
|
40
|
+
message?: string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* **PG 오류 코드**
|
|
43
|
+
*
|
|
44
|
+
* PG에서 오류 코드를 내려 주는 경우 이 오류 코드를 그대로 반환합니다.
|
|
45
|
+
*/
|
|
46
|
+
pgCode?: PgCode | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* **PG 오류 메시지**
|
|
49
|
+
*
|
|
50
|
+
* PG에서 오류 메시지를 내려 주는 경우 이 오류 메시지를 그대로 반환합니다.
|
|
51
|
+
*/
|
|
52
|
+
pgMessage?: PgMessage | undefined;
|
|
53
|
+
};
|