@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.
- package/dist/v2/entity/Address.d.ts +24 -4
- package/dist/v2/entity/Bank.d.ts +350 -76
- 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 +99 -24
- package/dist/v2/entity/Carrier.d.ts +28 -13
- package/dist/v2/entity/CashReceiptType.d.ts +19 -4
- 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 +1007 -250
- package/dist/v2/entity/Currency.d.ts +723 -181
- 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 +178 -22
- package/dist/v2/entity/FreeInstallmentPlan.d.ts +25 -4
- package/dist/v2/entity/Gender.d.ts +19 -4
- package/dist/v2/entity/GiftCertificateType.d.ts +24 -6
- package/dist/v2/entity/Iframe.d.ts +7 -1
- 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 +51 -96
- 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 +13 -6
- 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/loadIssueBillingKeyUI/PaypalV2Country.d.ts +212 -0
- 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 -37
- 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 -28
- package/dist/v2/requestIssueBillingKey.d.ts +2 -56
- package/dist/v2/requestIssueBillingKeyAndPay.d.ts +2 -56
- package/dist/v2/requestPayment.d.ts +2 -110
- package/dist/v2/response/IdentityVerificationResponse.d.ts +49 -0
- package/dist/v2/response/IssueBillingKeyAndPayResponse.d.ts +57 -0
- package/dist/v2/response/IssueBillingKeyResponse.d.ts +45 -0
- package/dist/v2/response/PaymentResponse.d.ts +53 -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 +3563 -676
- package/dist/v2.js +3512 -677
- package/package.json +8 -8
- package/dist/v2/entity/bypass/PaypalV2Country.d.ts +0 -206
|
@@ -2,24 +2,71 @@ import { PortOneError } from './index.js';
|
|
|
2
2
|
import { CheckoutServiceErrorCode } from './CheckoutServiceErrorCode.js';
|
|
3
3
|
import { GrpcErrorCode } from './GrpcErrorCode.js';
|
|
4
4
|
import { TxServiceIdentityVerificationErrorCode } from './TxServiceIdentityVerificationErrorCode.js';
|
|
5
|
-
|
|
5
|
+
import type { PgCode } from '../entity/PgCode.js';
|
|
6
|
+
import type { PgMessage } from '../entity/PgMessage.js';
|
|
6
7
|
export declare function isIdentityVerificationError(error: unknown): error is IdentityVerificationError;
|
|
8
|
+
/**
|
|
9
|
+
* **오류 코드**
|
|
10
|
+
*
|
|
11
|
+
* - 실패한 경우 오류 코드입니다.
|
|
12
|
+
*/
|
|
13
|
+
export type IdentityVerificationErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServiceIdentityVerificationErrorCode;
|
|
7
14
|
export declare class IdentityVerificationError extends Error implements PortOneError {
|
|
8
15
|
static [Symbol.hasInstance](instance: unknown): boolean;
|
|
9
16
|
__portOneErrorType: string;
|
|
10
|
-
transactionType:
|
|
17
|
+
transactionType: string;
|
|
18
|
+
/**
|
|
19
|
+
* **오류 코드**
|
|
20
|
+
*
|
|
21
|
+
* - 실패한 경우 오류 코드입니다.
|
|
22
|
+
*/
|
|
11
23
|
code: IdentityVerificationErrorCode;
|
|
24
|
+
/**
|
|
25
|
+
* **오류 메시지**
|
|
26
|
+
*
|
|
27
|
+
* - 실패한 경우 오류 메시지입니다.
|
|
28
|
+
*/
|
|
12
29
|
message: string;
|
|
13
|
-
identityVerificationId?: string;
|
|
14
|
-
identityVerificationTxId?: string;
|
|
15
|
-
|
|
16
|
-
|
|
30
|
+
identityVerificationId?: string | undefined;
|
|
31
|
+
identityVerificationTxId?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* **PG 오류 코드**
|
|
34
|
+
*
|
|
35
|
+
* PG에서 오류 코드를 내려 주는 경우 이 오류 코드를 그대로 반환합니다.
|
|
36
|
+
*/
|
|
37
|
+
pgCode?: PgCode | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* **PG 오류 메시지**
|
|
40
|
+
*
|
|
41
|
+
* PG에서 오류 메시지를 내려 주는 경우 이 오류 메시지를 그대로 반환합니다.
|
|
42
|
+
*/
|
|
43
|
+
pgMessage?: PgMessage | undefined;
|
|
17
44
|
constructor({ code, message, identityVerificationId, identityVerificationTxId, pgCode, pgMessage, }: {
|
|
45
|
+
/**
|
|
46
|
+
* **오류 코드**
|
|
47
|
+
*
|
|
48
|
+
* - 실패한 경우 오류 코드입니다.
|
|
49
|
+
*/
|
|
18
50
|
code: IdentityVerificationErrorCode;
|
|
51
|
+
/**
|
|
52
|
+
* **오류 메시지**
|
|
53
|
+
*
|
|
54
|
+
* - 실패한 경우 오류 메시지입니다.
|
|
55
|
+
*/
|
|
19
56
|
message: string;
|
|
20
|
-
identityVerificationId?: string;
|
|
21
|
-
identityVerificationTxId?: string;
|
|
22
|
-
|
|
23
|
-
|
|
57
|
+
identityVerificationId?: string | undefined;
|
|
58
|
+
identityVerificationTxId?: string | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* **PG 오류 코드**
|
|
61
|
+
*
|
|
62
|
+
* PG에서 오류 코드를 내려 주는 경우 이 오류 코드를 그대로 반환합니다.
|
|
63
|
+
*/
|
|
64
|
+
pgCode?: PgCode | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* **PG 오류 메시지**
|
|
67
|
+
*
|
|
68
|
+
* PG에서 오류 메시지를 내려 주는 경우 이 오류 메시지를 그대로 반환합니다.
|
|
69
|
+
*/
|
|
70
|
+
pgMessage?: PgMessage | undefined;
|
|
24
71
|
});
|
|
25
72
|
}
|
|
@@ -1,29 +1,75 @@
|
|
|
1
|
+
import { PortOneError } from './index.js';
|
|
1
2
|
import { CheckoutServiceErrorCode } from './CheckoutServiceErrorCode.js';
|
|
2
3
|
import { GrpcErrorCode } from './GrpcErrorCode.js';
|
|
3
|
-
import { PortOneError } from './index.js';
|
|
4
4
|
import { TxServiceIssueErrorCode } from './TxServiceIssueErrorCode.js';
|
|
5
5
|
import { TxServicePayErrorCode } from './TxServicePayErrorCode.js';
|
|
6
|
-
|
|
6
|
+
import type { PgCode } from '../entity/PgCode.js';
|
|
7
|
+
import type { PgMessage } from '../entity/PgMessage.js';
|
|
7
8
|
export declare function isIssueBillingKeyAndPayError(error: unknown): error is IssueBillingKeyAndPayError;
|
|
9
|
+
/**
|
|
10
|
+
* **오류 코드**
|
|
11
|
+
*
|
|
12
|
+
* 실패한 경우 오류 코드입니다.
|
|
13
|
+
*/
|
|
14
|
+
export type IssueBillingKeyAndPayErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServiceIssueErrorCode | TxServicePayErrorCode;
|
|
8
15
|
export declare class IssueBillingKeyAndPayError extends Error implements PortOneError {
|
|
9
16
|
static [Symbol.hasInstance](instance: unknown): boolean;
|
|
10
17
|
__portOneErrorType: string;
|
|
11
|
-
transactionType:
|
|
12
|
-
txId?: string;
|
|
13
|
-
paymentId?: string;
|
|
14
|
-
billingKey?: string;
|
|
18
|
+
transactionType: string;
|
|
19
|
+
txId?: string | undefined;
|
|
20
|
+
paymentId?: string | undefined;
|
|
21
|
+
billingKey?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* **오류 코드**
|
|
24
|
+
*
|
|
25
|
+
* 실패한 경우 오류 코드입니다.
|
|
26
|
+
*/
|
|
15
27
|
code: IssueBillingKeyAndPayErrorCode;
|
|
28
|
+
/**
|
|
29
|
+
* **오류 메시지**
|
|
30
|
+
*
|
|
31
|
+
* 실패한 경우 오류 메시지입니다.
|
|
32
|
+
*/
|
|
16
33
|
message: string;
|
|
17
|
-
|
|
18
|
-
|
|
34
|
+
/**
|
|
35
|
+
* **PG 오류 코드**
|
|
36
|
+
*
|
|
37
|
+
* PG에서 오류 코드를 내려 주는 경우 이 오류 코드를 그대로 반환합니다.
|
|
38
|
+
*/
|
|
39
|
+
pgCode?: PgCode | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* **PG 오류 메시지**
|
|
42
|
+
*
|
|
43
|
+
* PG에서 오류 메시지를 내려 주는 경우 이 오류 메시지를 그대로 반환합니다.
|
|
44
|
+
*/
|
|
45
|
+
pgMessage?: PgMessage | undefined;
|
|
19
46
|
constructor({ txId, paymentId, billingKey, code, message, pgCode, pgMessage, }: {
|
|
20
|
-
txId?: string;
|
|
21
|
-
paymentId?: string;
|
|
22
|
-
billingKey?: string;
|
|
47
|
+
txId?: string | undefined;
|
|
48
|
+
paymentId?: string | undefined;
|
|
49
|
+
billingKey?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* **오류 코드**
|
|
52
|
+
*
|
|
53
|
+
* 실패한 경우 오류 코드입니다.
|
|
54
|
+
*/
|
|
23
55
|
code: IssueBillingKeyAndPayErrorCode;
|
|
56
|
+
/**
|
|
57
|
+
* **오류 메시지**
|
|
58
|
+
*
|
|
59
|
+
* 실패한 경우 오류 메시지입니다.
|
|
60
|
+
*/
|
|
24
61
|
message: string;
|
|
25
|
-
|
|
26
|
-
|
|
62
|
+
/**
|
|
63
|
+
* **PG 오류 코드**
|
|
64
|
+
*
|
|
65
|
+
* PG에서 오류 코드를 내려 주는 경우 이 오류 코드를 그대로 반환합니다.
|
|
66
|
+
*/
|
|
67
|
+
pgCode?: PgCode | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* **PG 오류 메시지**
|
|
70
|
+
*
|
|
71
|
+
* PG에서 오류 메시지를 내려 주는 경우 이 오류 메시지를 그대로 반환합니다.
|
|
72
|
+
*/
|
|
73
|
+
pgMessage?: PgMessage | undefined;
|
|
27
74
|
});
|
|
28
75
|
}
|
|
29
|
-
export default IssueBillingKeyAndPayError;
|
|
@@ -2,23 +2,69 @@ import { PortOneError } from './index.js';
|
|
|
2
2
|
import { CheckoutServiceErrorCode } from './CheckoutServiceErrorCode.js';
|
|
3
3
|
import { GrpcErrorCode } from './GrpcErrorCode.js';
|
|
4
4
|
import { TxServiceIssueErrorCode } from './TxServiceIssueErrorCode.js';
|
|
5
|
-
|
|
5
|
+
import type { PgCode } from '../entity/PgCode.js';
|
|
6
|
+
import type { PgMessage } from '../entity/PgMessage.js';
|
|
6
7
|
export declare function isIssueBillingKeyError(error: unknown): error is IssueBillingKeyError;
|
|
8
|
+
/**
|
|
9
|
+
* **오류 코드**
|
|
10
|
+
*
|
|
11
|
+
* 실패한 경우 오류 코드입니다.
|
|
12
|
+
*/
|
|
13
|
+
export type IssueBillingKeyErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServiceIssueErrorCode;
|
|
7
14
|
export declare class IssueBillingKeyError extends Error implements PortOneError {
|
|
8
15
|
static [Symbol.hasInstance](instance: unknown): boolean;
|
|
9
16
|
__portOneErrorType: string;
|
|
10
|
-
transactionType:
|
|
17
|
+
transactionType: string;
|
|
18
|
+
/**
|
|
19
|
+
* **오류 코드**
|
|
20
|
+
*
|
|
21
|
+
* 실패한 경우 오류 코드입니다.
|
|
22
|
+
*/
|
|
11
23
|
code: IssueBillingKeyErrorCode;
|
|
24
|
+
/**
|
|
25
|
+
* **오류 메시지**
|
|
26
|
+
*
|
|
27
|
+
* 실패한 경우 오류 메시지입니다.
|
|
28
|
+
*/
|
|
12
29
|
message: string;
|
|
13
|
-
billingKey?: string;
|
|
14
|
-
|
|
15
|
-
|
|
30
|
+
billingKey?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* **PG 오류 코드**
|
|
33
|
+
*
|
|
34
|
+
* PG에서 오류 코드를 내려 주는 경우 이 오류 코드를 그대로 반환합니다.
|
|
35
|
+
*/
|
|
36
|
+
pgCode?: PgCode | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* **PG 오류 메시지**
|
|
39
|
+
*
|
|
40
|
+
* PG에서 오류 메시지를 내려 주는 경우 이 오류 메시지를 그대로 반환합니다.
|
|
41
|
+
*/
|
|
42
|
+
pgMessage?: PgMessage | undefined;
|
|
16
43
|
constructor({ code, message, billingKey, pgCode, pgMessage, }: {
|
|
44
|
+
/**
|
|
45
|
+
* **오류 코드**
|
|
46
|
+
*
|
|
47
|
+
* 실패한 경우 오류 코드입니다.
|
|
48
|
+
*/
|
|
17
49
|
code: IssueBillingKeyErrorCode;
|
|
50
|
+
/**
|
|
51
|
+
* **오류 메시지**
|
|
52
|
+
*
|
|
53
|
+
* 실패한 경우 오류 메시지입니다.
|
|
54
|
+
*/
|
|
18
55
|
message: string;
|
|
19
|
-
billingKey?: string;
|
|
20
|
-
|
|
21
|
-
|
|
56
|
+
billingKey?: string | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* **PG 오류 코드**
|
|
59
|
+
*
|
|
60
|
+
* PG에서 오류 코드를 내려 주는 경우 이 오류 코드를 그대로 반환합니다.
|
|
61
|
+
*/
|
|
62
|
+
pgCode?: PgCode | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* **PG 오류 메시지**
|
|
65
|
+
*
|
|
66
|
+
* PG에서 오류 메시지를 내려 주는 경우 이 오류 메시지를 그대로 반환합니다.
|
|
67
|
+
*/
|
|
68
|
+
pgMessage?: PgMessage | undefined;
|
|
22
69
|
});
|
|
23
70
|
}
|
|
24
|
-
export default IssueBillingKeyError;
|
|
@@ -2,16 +2,41 @@ import { PortOneError } from './index.js';
|
|
|
2
2
|
import { CheckoutServiceErrorCode } from './CheckoutServiceErrorCode.js';
|
|
3
3
|
import { GrpcErrorCode } from './GrpcErrorCode.js';
|
|
4
4
|
import { TxServiceIssueErrorCode } from './TxServiceIssueErrorCode.js';
|
|
5
|
-
export type LoadIssueBillingKeyUIErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServiceIssueErrorCode;
|
|
6
5
|
export declare function isLoadIssueBillingKeyUIError(error: unknown): error is LoadIssueBillingKeyUIError;
|
|
6
|
+
/**
|
|
7
|
+
* **오류 코드**
|
|
8
|
+
*
|
|
9
|
+
* 실패한 경우 오류 코드입니다.
|
|
10
|
+
*/
|
|
11
|
+
export type LoadIssueBillingKeyUIErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServiceIssueErrorCode;
|
|
7
12
|
export declare class LoadIssueBillingKeyUIError extends Error implements PortOneError {
|
|
8
13
|
static [Symbol.hasInstance](instance: unknown): boolean;
|
|
9
14
|
__portOneErrorType: string;
|
|
10
|
-
transactionType:
|
|
15
|
+
transactionType: string;
|
|
16
|
+
/**
|
|
17
|
+
* **오류 코드**
|
|
18
|
+
*
|
|
19
|
+
* 실패한 경우 오류 코드입니다.
|
|
20
|
+
*/
|
|
11
21
|
code: LoadIssueBillingKeyUIErrorCode;
|
|
22
|
+
/**
|
|
23
|
+
* **오류 메시지**
|
|
24
|
+
*
|
|
25
|
+
* 실패한 경우 오류 메시지입니다.
|
|
26
|
+
*/
|
|
12
27
|
message: string;
|
|
13
28
|
constructor({ code, message, }: {
|
|
29
|
+
/**
|
|
30
|
+
* **오류 코드**
|
|
31
|
+
*
|
|
32
|
+
* 실패한 경우 오류 코드입니다.
|
|
33
|
+
*/
|
|
14
34
|
code: LoadIssueBillingKeyUIErrorCode;
|
|
35
|
+
/**
|
|
36
|
+
* **오류 메시지**
|
|
37
|
+
*
|
|
38
|
+
* 실패한 경우 오류 메시지입니다.
|
|
39
|
+
*/
|
|
15
40
|
message: string;
|
|
16
41
|
});
|
|
17
42
|
}
|
|
@@ -2,16 +2,41 @@ import { PortOneError } from './index.js';
|
|
|
2
2
|
import { CheckoutServiceErrorCode } from './CheckoutServiceErrorCode.js';
|
|
3
3
|
import { GrpcErrorCode } from './GrpcErrorCode.js';
|
|
4
4
|
import { TxServicePayErrorCode } from './TxServicePayErrorCode.js';
|
|
5
|
-
export type LoadPaymentUIErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServicePayErrorCode;
|
|
6
5
|
export declare function isLoadPaymentUIError(error: unknown): error is LoadPaymentUIError;
|
|
6
|
+
/**
|
|
7
|
+
* **오류 코드**
|
|
8
|
+
*
|
|
9
|
+
* 실패한 경우 오류 코드입니다.
|
|
10
|
+
*/
|
|
11
|
+
export type LoadPaymentUIErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServicePayErrorCode;
|
|
7
12
|
export declare class LoadPaymentUIError extends Error implements PortOneError {
|
|
8
13
|
static [Symbol.hasInstance](instance: unknown): boolean;
|
|
9
14
|
__portOneErrorType: string;
|
|
10
|
-
transactionType:
|
|
15
|
+
transactionType: string;
|
|
16
|
+
/**
|
|
17
|
+
* **오류 코드**
|
|
18
|
+
*
|
|
19
|
+
* 실패한 경우 오류 코드입니다.
|
|
20
|
+
*/
|
|
11
21
|
code: LoadPaymentUIErrorCode;
|
|
22
|
+
/**
|
|
23
|
+
* **오류 메시지**
|
|
24
|
+
*
|
|
25
|
+
* 실패한 경우 오류 메시지입니다.
|
|
26
|
+
*/
|
|
12
27
|
message: string;
|
|
13
28
|
constructor({ code, message, }: {
|
|
29
|
+
/**
|
|
30
|
+
* **오류 코드**
|
|
31
|
+
*
|
|
32
|
+
* 실패한 경우 오류 코드입니다.
|
|
33
|
+
*/
|
|
14
34
|
code: LoadPaymentUIErrorCode;
|
|
35
|
+
/**
|
|
36
|
+
* **오류 메시지**
|
|
37
|
+
*
|
|
38
|
+
* 실패한 경우 오류 메시지입니다.
|
|
39
|
+
*/
|
|
15
40
|
message: string;
|
|
16
41
|
});
|
|
17
42
|
}
|
|
@@ -1,15 +1,34 @@
|
|
|
1
|
+
import { PortOneError } from './index.js';
|
|
1
2
|
import { CheckoutServiceErrorCode } from './CheckoutServiceErrorCode.js';
|
|
2
3
|
import { GrpcErrorCode } from './GrpcErrorCode.js';
|
|
3
|
-
import { PortOneError } from './index.js';
|
|
4
|
-
export type ModuleErrorCode = CheckoutServiceErrorCode | GrpcErrorCode;
|
|
5
4
|
export declare function isModuleError(error: unknown): error is ModuleError;
|
|
5
|
+
/**
|
|
6
|
+
* **오류 코드**
|
|
7
|
+
*/
|
|
8
|
+
export type ModuleErrorCode = CheckoutServiceErrorCode | GrpcErrorCode;
|
|
6
9
|
export declare class ModuleError extends Error implements PortOneError {
|
|
7
10
|
static [Symbol.hasInstance](instance: unknown): boolean;
|
|
8
11
|
__portOneErrorType: string;
|
|
12
|
+
/**
|
|
13
|
+
* **오류 코드**
|
|
14
|
+
*/
|
|
9
15
|
code: ModuleErrorCode;
|
|
16
|
+
/**
|
|
17
|
+
* **오류 메시지**
|
|
18
|
+
*
|
|
19
|
+
* 실패한 경우 오류 메시지입니다.
|
|
20
|
+
*/
|
|
10
21
|
message: string;
|
|
11
|
-
constructor({ code, message }: {
|
|
22
|
+
constructor({ code, message, }: {
|
|
23
|
+
/**
|
|
24
|
+
* **오류 코드**
|
|
25
|
+
*/
|
|
12
26
|
code: ModuleErrorCode;
|
|
27
|
+
/**
|
|
28
|
+
* **오류 메시지**
|
|
29
|
+
*
|
|
30
|
+
* 실패한 경우 오류 메시지입니다.
|
|
31
|
+
*/
|
|
13
32
|
message: string;
|
|
14
33
|
});
|
|
15
34
|
}
|
|
@@ -2,24 +2,71 @@ import { PortOneError } from './index.js';
|
|
|
2
2
|
import { CheckoutServiceErrorCode } from './CheckoutServiceErrorCode.js';
|
|
3
3
|
import { GrpcErrorCode } from './GrpcErrorCode.js';
|
|
4
4
|
import { TxServicePayErrorCode } from './TxServicePayErrorCode.js';
|
|
5
|
-
|
|
5
|
+
import type { PgCode } from '../entity/PgCode.js';
|
|
6
|
+
import type { PgMessage } from '../entity/PgMessage.js';
|
|
6
7
|
export declare function isPaymentError(error: unknown): error is PaymentError;
|
|
8
|
+
/**
|
|
9
|
+
* **오류 코드**
|
|
10
|
+
*
|
|
11
|
+
* 실패한 경우 오류 코드입니다.
|
|
12
|
+
*/
|
|
13
|
+
export type PaymentErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServicePayErrorCode;
|
|
7
14
|
export declare class PaymentError extends Error implements PortOneError {
|
|
8
15
|
static [Symbol.hasInstance](instance: unknown): boolean;
|
|
9
16
|
__portOneErrorType: string;
|
|
10
|
-
transactionType:
|
|
17
|
+
transactionType: string;
|
|
18
|
+
/**
|
|
19
|
+
* **오류 코드**
|
|
20
|
+
*
|
|
21
|
+
* 실패한 경우 오류 코드입니다.
|
|
22
|
+
*/
|
|
11
23
|
code: PaymentErrorCode;
|
|
24
|
+
/**
|
|
25
|
+
* **오류 메시지**
|
|
26
|
+
*
|
|
27
|
+
* 실패한 경우 오류 메시지입니다.
|
|
28
|
+
*/
|
|
12
29
|
message: string;
|
|
13
|
-
txId?: string;
|
|
14
|
-
paymentId?: string;
|
|
15
|
-
|
|
16
|
-
|
|
30
|
+
txId?: string | undefined;
|
|
31
|
+
paymentId?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* **PG 오류 코드**
|
|
34
|
+
*
|
|
35
|
+
* PG에서 오류 코드를 내려 주는 경우 이 오류 코드를 그대로 반환합니다.
|
|
36
|
+
*/
|
|
37
|
+
pgCode?: PgCode | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* **PG 오류 메시지**
|
|
40
|
+
*
|
|
41
|
+
* PG에서 오류 메시지를 내려 주는 경우 이 오류 메시지를 그대로 반환합니다.
|
|
42
|
+
*/
|
|
43
|
+
pgMessage?: PgMessage | undefined;
|
|
17
44
|
constructor({ code, message, txId, paymentId, pgCode, pgMessage, }: {
|
|
45
|
+
/**
|
|
46
|
+
* **오류 코드**
|
|
47
|
+
*
|
|
48
|
+
* 실패한 경우 오류 코드입니다.
|
|
49
|
+
*/
|
|
18
50
|
code: PaymentErrorCode;
|
|
51
|
+
/**
|
|
52
|
+
* **오류 메시지**
|
|
53
|
+
*
|
|
54
|
+
* 실패한 경우 오류 메시지입니다.
|
|
55
|
+
*/
|
|
19
56
|
message: string;
|
|
20
|
-
txId?: string;
|
|
21
|
-
paymentId?: string;
|
|
22
|
-
|
|
23
|
-
|
|
57
|
+
txId?: string | undefined;
|
|
58
|
+
paymentId?: string | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* **PG 오류 코드**
|
|
61
|
+
*
|
|
62
|
+
* PG에서 오류 코드를 내려 주는 경우 이 오류 코드를 그대로 반환합니다.
|
|
63
|
+
*/
|
|
64
|
+
pgCode?: PgCode | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* **PG 오류 메시지**
|
|
67
|
+
*
|
|
68
|
+
* PG에서 오류 메시지를 내려 주는 경우 이 오류 메시지를 그대로 반환합니다.
|
|
69
|
+
*/
|
|
70
|
+
pgMessage?: PgMessage | undefined;
|
|
24
71
|
});
|
|
25
72
|
}
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const TxServiceIdentityVerificationErrorCode: {
|
|
2
|
+
readonly RequestParseFailed: "RequestParseFailed";
|
|
3
|
+
readonly InvalidEntityState: "InvalidEntityState";
|
|
4
|
+
readonly StoreNotFound: "StoreNotFound";
|
|
5
|
+
readonly ChannelNotFound: "ChannelNotFound";
|
|
6
|
+
readonly PGProviderError: "PGProviderError";
|
|
7
|
+
readonly IdentityVerificationAlreadyVerified: "IdentityVerificationAlreadyVerified";
|
|
8
|
+
readonly AllChannelsNotSatisfied: "AllChannelsNotSatisfied";
|
|
9
|
+
readonly UnknownError: "UnknownError";
|
|
10
|
+
};
|
|
11
|
+
export type TxServiceIdentityVerificationErrorCode = (typeof TxServiceIdentityVerificationErrorCode)[keyof typeof TxServiceIdentityVerificationErrorCode];
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const TxServiceIssueErrorCode: {
|
|
2
|
+
readonly RequestParseFailed: "RequestParseFailed";
|
|
3
|
+
readonly InvalidEntityState: "InvalidEntityState";
|
|
4
|
+
readonly ConfirmUrlRequired: "ConfirmUrlRequired";
|
|
5
|
+
readonly StoreNotFound: "StoreNotFound";
|
|
6
|
+
readonly ChannelNotFound: "ChannelNotFound";
|
|
7
|
+
readonly PGProviderError: "PGProviderError";
|
|
8
|
+
readonly AllChannelsNotSatisfied: "AllChannelsNotSatisfied";
|
|
9
|
+
readonly BillingKeyNotFound: "BillingKeyNotFound";
|
|
10
|
+
readonly UnknownError: "UnknownError";
|
|
11
|
+
};
|
|
12
|
+
export type TxServiceIssueErrorCode = (typeof TxServiceIssueErrorCode)[keyof typeof TxServiceIssueErrorCode];
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const TxServicePayErrorCode: {
|
|
2
|
+
readonly RequestParseFailed: "RequestParseFailed";
|
|
3
|
+
readonly InvalidEntityState: "InvalidEntityState";
|
|
4
|
+
readonly ConfirmUrlRequired: "ConfirmUrlRequired";
|
|
5
|
+
readonly StoreNotFound: "StoreNotFound";
|
|
6
|
+
readonly ChannelNotFound: "ChannelNotFound";
|
|
7
|
+
readonly PGProviderError: "PGProviderError";
|
|
8
|
+
readonly PaymentNotFound: "PaymentNotFound";
|
|
9
|
+
readonly PaymentAlreadyPaid: "PaymentAlreadyPaid";
|
|
10
|
+
readonly TransactionNotFound: "TransactionNotFound";
|
|
11
|
+
readonly AllChannelsNotSatisfied: "AllChannelsNotSatisfied";
|
|
12
|
+
readonly AmountNotEqualToPredefined: "AmountNotEqualToPredefined";
|
|
13
|
+
readonly ConfirmProcessFailed: "ConfirmProcessFailed";
|
|
14
|
+
readonly UnknownError: "UnknownError";
|
|
15
|
+
};
|
|
16
|
+
export type TxServicePayErrorCode = (typeof TxServicePayErrorCode)[keyof typeof TxServicePayErrorCode];
|
|
@@ -2,6 +2,11 @@ export interface PortOneError extends Error {
|
|
|
2
2
|
__portOneErrorType: string;
|
|
3
3
|
}
|
|
4
4
|
export declare function isPortOneError(error: unknown): error is PortOneError;
|
|
5
|
+
export * from './CheckoutServiceErrorCode.js';
|
|
6
|
+
export * from './GrpcErrorCode.js';
|
|
7
|
+
export * from './TxServiceIdentityVerificationErrorCode.js';
|
|
8
|
+
export * from './TxServiceIssueErrorCode.js';
|
|
9
|
+
export * from './TxServicePayErrorCode.js';
|
|
5
10
|
export * from './IdentityVerificationError.js';
|
|
6
11
|
export * from './IssueBillingKeyAndPayError.js';
|
|
7
12
|
export * from './IssueBillingKeyError.js';
|
package/dist/v2/index.d.ts
CHANGED
|
@@ -1,31 +1,34 @@
|
|
|
1
|
+
import { requestPayment } from './requestPayment.js';
|
|
1
2
|
import { requestIdentityVerification } from './requestIdentityVerification.js';
|
|
2
3
|
import { requestIssueBillingKeyAndPay } from './requestIssueBillingKeyAndPay.js';
|
|
3
4
|
import { requestIssueBillingKey } from './requestIssueBillingKey.js';
|
|
4
|
-
import { requestPayment } from './requestPayment.js';
|
|
5
5
|
import { loadPaymentUI } from './loadPaymentUI.js';
|
|
6
6
|
import { loadIssueBillingKeyUI } from './loadIssueBillingKeyUI.js';
|
|
7
7
|
import { updateLoadPaymentUIRequest } from './updateLoadPaymentUIRequest.js';
|
|
8
8
|
import { updateLoadIssueBillingKeyUIRequest } from './updateLoadIssueBillingKeyUIRequest.js';
|
|
9
9
|
declare const PortOne: {
|
|
10
|
+
requestPayment: typeof requestPayment;
|
|
10
11
|
requestIdentityVerification: typeof requestIdentityVerification;
|
|
11
12
|
requestIssueBillingKeyAndPay: typeof requestIssueBillingKeyAndPay;
|
|
12
13
|
requestIssueBillingKey: typeof requestIssueBillingKey;
|
|
13
|
-
requestPayment: typeof requestPayment;
|
|
14
14
|
loadPaymentUI: typeof loadPaymentUI;
|
|
15
15
|
loadIssueBillingKeyUI: typeof loadIssueBillingKeyUI;
|
|
16
16
|
updateLoadPaymentUIRequest: typeof updateLoadPaymentUIRequest;
|
|
17
17
|
updateLoadIssueBillingKeyUIRequest: typeof updateLoadIssueBillingKeyUIRequest;
|
|
18
18
|
};
|
|
19
19
|
export { setPortOneJsSdkUrl as __INTERNAL__setPortOneSdkUrl } from './loader.js';
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
20
|
+
export * from './requestPayment.js';
|
|
21
|
+
export * from './requestIdentityVerification.js';
|
|
22
|
+
export * from './requestIssueBillingKeyAndPay.js';
|
|
23
|
+
export * from './requestIssueBillingKey.js';
|
|
24
|
+
export * from './loadPaymentUI.js';
|
|
25
|
+
export * from './loadIssueBillingKeyUI.js';
|
|
26
|
+
export * from './updateLoadPaymentUIRequest.js';
|
|
27
|
+
export * from './updateLoadIssueBillingKeyUIRequest.js';
|
|
28
|
+
export * from './entity/index.js';
|
|
29
|
+
export * from './exception/index.js';
|
|
30
|
+
export * from './request/index.js';
|
|
31
|
+
export * from './response/index.js';
|
|
28
32
|
export * as Entity from './entity/index.js';
|
|
29
33
|
export * as errors from './exception/index.js';
|
|
30
|
-
export * from './exception/index.js';
|
|
31
34
|
export default PortOne;
|
|
@@ -1,26 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { LoadIssueBillingKeyUIRequest } from './request/LoadIssueBillingKeyUIRequest.js';
|
|
2
|
+
import type { IssueBillingKeyResponse } from './response/IssueBillingKeyResponse.js';
|
|
3
|
+
import type { IssueBillingKeyError } from './exception/IssueBillingKeyError.js';
|
|
3
4
|
export declare function loadIssueBillingKeyUI(request: LoadIssueBillingKeyUIRequest, callbacks: {
|
|
4
5
|
onIssueBillingKeySuccess: (response: IssueBillingKeyResponse) => void;
|
|
5
6
|
onIssueBillingKeyFail: (error: IssueBillingKeyError) => void;
|
|
6
7
|
}): Promise<void>;
|
|
7
|
-
export type LoadIssueBillingKeyUIRequest = {
|
|
8
|
-
uiType: IssueBillingKeyUIType;
|
|
9
|
-
displayAmount?: number;
|
|
10
|
-
currency?: Entity.Currency;
|
|
11
|
-
storeId: string;
|
|
12
|
-
channelKey: string;
|
|
13
|
-
pgProvider?: Entity.PgProvider;
|
|
14
|
-
isTestChannel?: boolean;
|
|
15
|
-
billingKeyMethod: Entity.BillingKeyMethod;
|
|
16
|
-
issueName?: string;
|
|
17
|
-
issueId?: string;
|
|
18
|
-
customer?: Entity.Customer;
|
|
19
|
-
redirectUrl?: string;
|
|
20
|
-
locale?: Entity.Locale;
|
|
21
|
-
customData?: Record<string, any>;
|
|
22
|
-
appScheme?: string;
|
|
23
|
-
noticeUrls?: string[];
|
|
24
|
-
productType?: Entity.ProductType;
|
|
25
|
-
bypass?: Entity.LoadIssueBillingKeyUIBypass;
|
|
26
|
-
};
|
|
@@ -1,38 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { LoadPaymentUIRequest } from './request/LoadPaymentUIRequest.js';
|
|
2
|
+
import type { PaymentResponse } from './response/PaymentResponse.js';
|
|
3
|
+
import type { PaymentError } from './exception/PaymentError.js';
|
|
4
4
|
export declare function loadPaymentUI(request: LoadPaymentUIRequest, callbacks: {
|
|
5
5
|
onPaymentSuccess: (response: PaymentResponse) => void;
|
|
6
6
|
onPaymentFail: (error: PaymentError) => void;
|
|
7
7
|
}): Promise<void>;
|
|
8
|
-
export type LoadPaymentUIRequest = Prettify<{
|
|
9
|
-
uiType: PaymentUIType;
|
|
10
|
-
storeId: string;
|
|
11
|
-
paymentId: string;
|
|
12
|
-
orderName: string;
|
|
13
|
-
totalAmount: number;
|
|
14
|
-
channelKey: string;
|
|
15
|
-
pgProvider?: Entity.PgProvider;
|
|
16
|
-
isTestChannel?: boolean;
|
|
17
|
-
taxFreeAmount?: number;
|
|
18
|
-
vatAmount?: number;
|
|
19
|
-
customer?: Entity.Customer;
|
|
20
|
-
redirectUrl?: string;
|
|
21
|
-
noticeUrls?: string[];
|
|
22
|
-
confirmUrl?: string;
|
|
23
|
-
appScheme?: string;
|
|
24
|
-
isEscrow?: boolean;
|
|
25
|
-
products?: Entity.Product[];
|
|
26
|
-
isCulturalExpense?: boolean;
|
|
27
|
-
currency: Entity.Currency;
|
|
28
|
-
locale?: Entity.Locale;
|
|
29
|
-
customData?: Record<string, any>;
|
|
30
|
-
offerPeriod?: Entity.OfferPeriod;
|
|
31
|
-
productType?: Entity.ProductType;
|
|
32
|
-
storeDetails?: Entity.StoreDetails;
|
|
33
|
-
bypass?: Entity.LoadPaymentUIBypass;
|
|
34
|
-
country?: Entity.Country;
|
|
35
|
-
shippingAddress?: Entity.Address;
|
|
36
|
-
promotionGroupId?: string;
|
|
37
|
-
promotionIds?: string[];
|
|
38
|
-
}>;
|