@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.
- 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 +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 +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 -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 +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,207 @@
|
|
|
1
|
+
import type { StoreId } from '../entity/StoreId.js';
|
|
2
|
+
import type { PaymentOrderName } from '../entity/PaymentOrderName.js';
|
|
3
|
+
import type { PaymentTotalAmount } from '../entity/PaymentTotalAmount.js';
|
|
4
|
+
import { Currency } from '../entity/Currency.js';
|
|
5
|
+
import type { ChannelKey } from '../entity/ChannelKey.js';
|
|
6
|
+
import { BillingKeyAndPayMethod } from '../entity/BillingKeyAndPayMethod.js';
|
|
7
|
+
import type { TaxFreeAmount } from '../entity/TaxFreeAmount.js';
|
|
8
|
+
import type { VatAmount } from '../entity/VatAmount.js';
|
|
9
|
+
import type { Customer } from '../entity/Customer.js';
|
|
10
|
+
import type { Product } from '../entity/Product.js';
|
|
11
|
+
import type { WindowTypes } from '../entity/WindowTypes.js';
|
|
12
|
+
import type { RedirectUrl } from '../entity/RedirectUrl.js';
|
|
13
|
+
import { Locale } from '../entity/Locale.js';
|
|
14
|
+
import type { OfferPeriod } from '../entity/OfferPeriod.js';
|
|
15
|
+
import { ProductType } from '../entity/ProductType.js';
|
|
16
|
+
import type { StoreDetails } from '../entity/StoreDetails.js';
|
|
17
|
+
import { Country } from '../entity/Country.js';
|
|
18
|
+
import type { IssueBillingKeyAndPayBypass } from '../entity/bypass/IssueBillingKeyAndPayBypass.js';
|
|
19
|
+
import type { Popup } from '../entity/Popup.js';
|
|
20
|
+
import type { Iframe } from '../entity/Iframe.js';
|
|
21
|
+
export type IssueBillingKeyAndPayRequestBase = {
|
|
22
|
+
/**
|
|
23
|
+
* **상점 아이디**
|
|
24
|
+
*
|
|
25
|
+
* 포트원 계정에 생성된 상점을 식별하는 고유한 값으로 [관리자 콘솔 > 연동 정보](https://admin.portone.io/integration-v2/manage/channel) 우측 상단에서 확인할 수 있습니다.
|
|
26
|
+
*/
|
|
27
|
+
storeId: StoreId;
|
|
28
|
+
/**
|
|
29
|
+
* **결제 ID**
|
|
30
|
+
*
|
|
31
|
+
* 고객사에서 임의로 ID를 정합니다.
|
|
32
|
+
*
|
|
33
|
+
* 이미 결제 완료된 `paymentId`로 결제를 요청하는 경우 실패합니다.
|
|
34
|
+
*/
|
|
35
|
+
paymentId: string;
|
|
36
|
+
/**
|
|
37
|
+
* **주문명**
|
|
38
|
+
*/
|
|
39
|
+
orderName: PaymentOrderName;
|
|
40
|
+
/**
|
|
41
|
+
* **결제 금액**
|
|
42
|
+
*
|
|
43
|
+
* 결제 금액을 정수로 나타냅니다.
|
|
44
|
+
*
|
|
45
|
+
* 해외 통화의 경우 통화의 최소 단위(minor unit)를 기준으로 합니다. 예를 들어, USD의 최소 단위는 센트(0.01 USD)이므로, 6 USD의 경우 100배하여 600으로 입력합니다.
|
|
46
|
+
*
|
|
47
|
+
* 최소 단위는 [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html)에 표준화된 것을 기준으로 합니다.
|
|
48
|
+
*
|
|
49
|
+
* - KRW: 1배
|
|
50
|
+
* - USD: 100배
|
|
51
|
+
* - JPY: 1배
|
|
52
|
+
*/
|
|
53
|
+
totalAmount: PaymentTotalAmount;
|
|
54
|
+
/**
|
|
55
|
+
* **화폐**
|
|
56
|
+
*
|
|
57
|
+
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 화폐 코드
|
|
58
|
+
*
|
|
59
|
+
* 대한민국 원, 일본 엔이 아닌 화폐를 사용할 때에는 금액을 minor unit 단위로 입력해야 함에 유의하세요.
|
|
60
|
+
*/
|
|
61
|
+
currency: Currency;
|
|
62
|
+
/**
|
|
63
|
+
* **채널 키**
|
|
64
|
+
*
|
|
65
|
+
* 포트원에 등록된 결제 채널 중 하나를 지정합니다.
|
|
66
|
+
*
|
|
67
|
+
* [관리자 콘솔 > 연동 정보](https://admin.portone.io/integration-v2/manage/channel)에서 채널 연동 후 채널 키를 확인할 수 있습니다.
|
|
68
|
+
*
|
|
69
|
+
* 채널 키와 채널 그룹 ID 중 하나를 지정해야 합니다.
|
|
70
|
+
*/
|
|
71
|
+
channelKey?: ChannelKey | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* 빌링키 발급 및 초회결제 수단
|
|
74
|
+
*/
|
|
75
|
+
billingKeyAndPayMethod: BillingKeyAndPayMethod;
|
|
76
|
+
/**
|
|
77
|
+
* **면세 금액**
|
|
78
|
+
*
|
|
79
|
+
* 미입력 시 0으로 취급됩니다.
|
|
80
|
+
*/
|
|
81
|
+
taxFreeAmount?: TaxFreeAmount | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* **부가세 금액**
|
|
84
|
+
*
|
|
85
|
+
* 미입력 시 과세 금액의 1/11로 자동 계산됩니다.
|
|
86
|
+
*/
|
|
87
|
+
vatAmount?: VatAmount | undefined;
|
|
88
|
+
customer?: Customer | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* **구매 상품 정보**
|
|
91
|
+
*/
|
|
92
|
+
products?: Product[] | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* **환경 별 제공되는 결제/본인인증 창 유형**
|
|
95
|
+
*
|
|
96
|
+
* - PG사에 따라 가능한 창 유형이 다릅니다.
|
|
97
|
+
* - 전달되지 않았을 때 결정되는 기본 창이 다릅니다.
|
|
98
|
+
* - 미입력 시, 해당 PG사의 기본 창 방식을 따릅니다.
|
|
99
|
+
*/
|
|
100
|
+
windowType?: WindowTypes | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* **리디렉션 방식에서 결제 완료 후 이동할 URL**
|
|
103
|
+
*
|
|
104
|
+
* 결제사 페이지로 이동하여 진행하는 리디렉션 방식의 경우 필수로 설정해야 합니다. 대부분의 모바일 환경이 리디렉션 방식에 해당됩니다.
|
|
105
|
+
*/
|
|
106
|
+
redirectUrl?: RedirectUrl | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* **웹훅 URL**
|
|
109
|
+
*
|
|
110
|
+
* 웹훅을 받을 URL 목록입니다. 값이 있으면 관리자 콘솔에 설정한 URL로는 웹훅이 발송되지 않습니다.
|
|
111
|
+
*/
|
|
112
|
+
noticeUrls?: string[] | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* **UI 언어**
|
|
115
|
+
*
|
|
116
|
+
* KG이니시스, 스마트로, KSNET, 웰컴페이먼츠 (PC), 한국결제네트웍스, 엑심베이에서 설정 가능하며, PG마다 지원하는 언어 목록은 차이가 있습니다.
|
|
117
|
+
*/
|
|
118
|
+
locale?: Locale | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* **문화비 지출 여부**
|
|
121
|
+
*
|
|
122
|
+
* 도서, 공연, 박물관 등 문화비 지출 여부
|
|
123
|
+
*/
|
|
124
|
+
isCulturalExpense?: boolean | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* **결제 정보와 함께 관리하고 싶은 고객사 커스텀 JSON 데이터**
|
|
127
|
+
*/
|
|
128
|
+
customData?: Record<string, any> | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* **서비스 제공 기간**
|
|
131
|
+
*
|
|
132
|
+
* range와 interval 중 하나를 입력해주세요.
|
|
133
|
+
*
|
|
134
|
+
* - range: 제공 기간 범위
|
|
135
|
+
* - interval: 제공 기간 주기
|
|
136
|
+
*
|
|
137
|
+
* 예1) 2023년 1월 1일 00시 00분 00초(KST) ~
|
|
138
|
+
*
|
|
139
|
+
* ```js
|
|
140
|
+
* range: {
|
|
141
|
+
* from: '2023-01-01T00:00:00+09:00'
|
|
142
|
+
* }
|
|
143
|
+
* ```
|
|
144
|
+
*
|
|
145
|
+
* 예2) ~ 2023년 1월 1일 00시 00분 00초(KST)
|
|
146
|
+
*
|
|
147
|
+
* ```js
|
|
148
|
+
* range: {
|
|
149
|
+
* to: '2023-01-01T00:00:00+09:00'
|
|
150
|
+
* }
|
|
151
|
+
* ```
|
|
152
|
+
*
|
|
153
|
+
* 예3) 2023년 1월 1일 00시 00분 00초(KST) ~ 2023년 12월 31일 23시 59분 59초(KST)
|
|
154
|
+
*
|
|
155
|
+
* ```js
|
|
156
|
+
* range: {
|
|
157
|
+
* from: '2023-12-31T23:59:59+09:00'
|
|
158
|
+
* to: '2023-01-01T00:00:00+09:00'
|
|
159
|
+
* }
|
|
160
|
+
* ```
|
|
161
|
+
*
|
|
162
|
+
* 예4) 30일 주기
|
|
163
|
+
* `interval: '30d'`
|
|
164
|
+
*
|
|
165
|
+
* 예5) 6개월 주기
|
|
166
|
+
* `interval: '6m'`
|
|
167
|
+
*
|
|
168
|
+
* 예6) 1년 주기
|
|
169
|
+
* `interval: '1y'`
|
|
170
|
+
*/
|
|
171
|
+
offerPeriod?: OfferPeriod | undefined;
|
|
172
|
+
/**
|
|
173
|
+
* **앱 URL 스킴**
|
|
174
|
+
*/
|
|
175
|
+
appScheme?: string | undefined;
|
|
176
|
+
/**
|
|
177
|
+
* **상품 유형**
|
|
178
|
+
*
|
|
179
|
+
* 휴대폰 빌링키 발급시 필수 입력입니다.
|
|
180
|
+
*/
|
|
181
|
+
productType?: ProductType | undefined;
|
|
182
|
+
/**
|
|
183
|
+
* **상점 정보**
|
|
184
|
+
*
|
|
185
|
+
* - KSNET 카카오페이의 경우 필수 입력
|
|
186
|
+
* - 나이스페이먼츠의 경우 매출 전표에 표기 할 용도로 선택 입력
|
|
187
|
+
* - KG이니시스 일본결제의 경우 JPPG(gmoPayment) 결제의 상점정보로 사용되거나 편의점 결제 시 영수증 표시 정보로 사용됨.
|
|
188
|
+
*/
|
|
189
|
+
storeDetails?: StoreDetails | undefined;
|
|
190
|
+
/**
|
|
191
|
+
* **국가**
|
|
192
|
+
*
|
|
193
|
+
* [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) 코드입니다.
|
|
194
|
+
*/
|
|
195
|
+
country?: Country | undefined;
|
|
196
|
+
bypass?: IssueBillingKeyAndPayBypass | undefined;
|
|
197
|
+
/**
|
|
198
|
+
* **팝업 관련 필드**
|
|
199
|
+
*
|
|
200
|
+
* UI가 팝업 창으로 열릴 때 적용되는 속성입니다.
|
|
201
|
+
*/
|
|
202
|
+
popup?: Popup | undefined;
|
|
203
|
+
/**
|
|
204
|
+
* **결제창이 iframe 방식일 경우 결제창에 적용할 속성**
|
|
205
|
+
*/
|
|
206
|
+
iframe?: Iframe | undefined;
|
|
207
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { Currency } from '../entity/Currency.js';
|
|
2
|
+
import type { StoreId } from '../entity/StoreId.js';
|
|
3
|
+
import type { ChannelKey } from '../entity/ChannelKey.js';
|
|
4
|
+
import { BillingKeyMethod } from '../entity/BillingKeyMethod.js';
|
|
5
|
+
import type { Customer } from '../entity/Customer.js';
|
|
6
|
+
import type { WindowTypes } from '../entity/WindowTypes.js';
|
|
7
|
+
import type { RedirectUrl } from '../entity/RedirectUrl.js';
|
|
8
|
+
import { Locale } from '../entity/Locale.js';
|
|
9
|
+
import type { OfferPeriod } from '../entity/OfferPeriod.js';
|
|
10
|
+
import { ProductType } from '../entity/ProductType.js';
|
|
11
|
+
import type { IssueBillingKeyBypass } from '../entity/bypass/IssueBillingKeyBypass.js';
|
|
12
|
+
import type { Popup } from '../entity/Popup.js';
|
|
13
|
+
import type { Iframe } from '../entity/Iframe.js';
|
|
14
|
+
export type IssueBillingKeyRequestBase = {
|
|
15
|
+
/**
|
|
16
|
+
* 빌링키 발급 창에 디스플레이 용으로 띄우는 금액
|
|
17
|
+
*/
|
|
18
|
+
displayAmount?: number | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* displayAmount 의 화폐
|
|
21
|
+
*/
|
|
22
|
+
currency?: Currency | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* **상점 아이디**
|
|
25
|
+
*
|
|
26
|
+
* 포트원 계정에 생성된 상점을 식별하는 고유한 값으로 [관리자 콘솔 > 연동 정보](https://admin.portone.io/integration-v2/manage/channel) 우측 상단에서 확인할 수 있습니다.
|
|
27
|
+
*/
|
|
28
|
+
storeId: StoreId;
|
|
29
|
+
/**
|
|
30
|
+
* **채널 키**
|
|
31
|
+
*
|
|
32
|
+
* 포트원에 등록된 결제 채널 중 하나를 지정합니다.
|
|
33
|
+
*
|
|
34
|
+
* [관리자 콘솔 > 연동 정보](https://admin.portone.io/integration-v2/manage/channel)에서 채널 연동 후 채널 키를 확인할 수 있습니다.
|
|
35
|
+
*
|
|
36
|
+
* 채널 키와 채널 그룹 ID 중 하나를 지정해야 합니다.
|
|
37
|
+
*/
|
|
38
|
+
channelKey?: ChannelKey | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* 빌링키 발급 수단
|
|
41
|
+
*/
|
|
42
|
+
billingKeyMethod: BillingKeyMethod;
|
|
43
|
+
/**
|
|
44
|
+
* 빌링키 발급 주문 명
|
|
45
|
+
*/
|
|
46
|
+
issueName?: string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* 빌링키 발급 주문 고유 번호
|
|
49
|
+
*/
|
|
50
|
+
issueId?: string | undefined;
|
|
51
|
+
customer?: Customer | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* **환경 별 제공되는 결제/본인인증 창 유형**
|
|
54
|
+
*
|
|
55
|
+
* - PG사에 따라 가능한 창 유형이 다릅니다.
|
|
56
|
+
* - 전달되지 않았을 때 결정되는 기본 창이 다릅니다.
|
|
57
|
+
* - 미입력 시, 해당 PG사의 기본 창 방식을 따릅니다.
|
|
58
|
+
*/
|
|
59
|
+
windowType?: WindowTypes | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* **리디렉션 방식에서 결제 완료 후 이동할 URL**
|
|
62
|
+
*
|
|
63
|
+
* 결제사 페이지로 이동하여 진행하는 리디렉션 방식의 경우 필수로 설정해야 합니다. 대부분의 모바일 환경이 리디렉션 방식에 해당됩니다.
|
|
64
|
+
*/
|
|
65
|
+
redirectUrl?: RedirectUrl | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* **UI 언어**
|
|
68
|
+
*
|
|
69
|
+
* KG이니시스, 스마트로, KSNET, 웰컴페이먼츠 (PC), 한국결제네트웍스, 엑심베이에서 설정 가능하며, PG마다 지원하는 언어 목록은 차이가 있습니다.
|
|
70
|
+
*/
|
|
71
|
+
locale?: Locale | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* **빌링키 발급 정보와 함께 관리하고 싶은 고객사 커스텀 JSON 데이터**
|
|
74
|
+
*/
|
|
75
|
+
customData?: Record<string, any> | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* **서비스 제공 기간**
|
|
78
|
+
*
|
|
79
|
+
* range와 interval 중 하나를 입력해주세요.
|
|
80
|
+
*
|
|
81
|
+
* - range: 제공 기간 범위
|
|
82
|
+
* - interval: 제공 기간 주기
|
|
83
|
+
*
|
|
84
|
+
* 예1) 2023년 1월 1일 00시 00분 00초(KST) ~
|
|
85
|
+
*
|
|
86
|
+
* ```js
|
|
87
|
+
* range: {
|
|
88
|
+
* from: '2023-01-01T00:00:00+09:00'
|
|
89
|
+
* }
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* 예2) ~ 2023년 1월 1일 00시 00분 00초(KST)
|
|
93
|
+
*
|
|
94
|
+
* ```js
|
|
95
|
+
* range: {
|
|
96
|
+
* to: '2023-01-01T00:00:00+09:00'
|
|
97
|
+
* }
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
100
|
+
* 예3) 2023년 1월 1일 00시 00분 00초(KST) ~ 2023년 12월 31일 23시 59분 59초(KST)
|
|
101
|
+
*
|
|
102
|
+
* ```js
|
|
103
|
+
* range: {
|
|
104
|
+
* from: '2023-12-31T23:59:59+09:00'
|
|
105
|
+
* to: '2023-01-01T00:00:00+09:00'
|
|
106
|
+
* }
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* 예4) 30일 주기
|
|
110
|
+
* `interval: '30d'`
|
|
111
|
+
*
|
|
112
|
+
* 예5) 6개월 주기
|
|
113
|
+
* `interval: '6m'`
|
|
114
|
+
*
|
|
115
|
+
* 예6) 1년 주기
|
|
116
|
+
* `interval: '1y'`
|
|
117
|
+
*/
|
|
118
|
+
offerPeriod?: OfferPeriod | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* 앱 URL Scheme
|
|
121
|
+
*/
|
|
122
|
+
appScheme?: string | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* 웹훅 URL
|
|
125
|
+
*/
|
|
126
|
+
noticeUrls?: string[] | undefined;
|
|
127
|
+
/**
|
|
128
|
+
* **상품 유형**
|
|
129
|
+
*/
|
|
130
|
+
productType?: ProductType | undefined;
|
|
131
|
+
bypass?: IssueBillingKeyBypass | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* **팝업 관련 필드**
|
|
134
|
+
*
|
|
135
|
+
* UI가 팝업 창으로 열릴 때 적용되는 속성입니다.
|
|
136
|
+
*/
|
|
137
|
+
popup?: Popup | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* **결제창이 iframe 방식일 경우 결제창에 적용할 속성**
|
|
140
|
+
*/
|
|
141
|
+
iframe?: Iframe | undefined;
|
|
142
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IssueBillingKeyRequestUnionCard } from './IssueBillingKeyRequestUnionCard.js';
|
|
2
|
+
import type { IssueBillingKeyRequestUnionMobile } from './IssueBillingKeyRequestUnionMobile.js';
|
|
3
|
+
import type { IssueBillingKeyRequestUnionEasyPay } from './IssueBillingKeyRequestUnionEasyPay.js';
|
|
4
|
+
import type { IssueBillingKeyRequestUnionPaypal } from './IssueBillingKeyRequestUnionPaypal.js';
|
|
5
|
+
export type IssueBillingKeyRequestUnion = {
|
|
6
|
+
card?: IssueBillingKeyRequestUnionCard | undefined;
|
|
7
|
+
mobile?: IssueBillingKeyRequestUnionMobile | undefined;
|
|
8
|
+
easyPay?: IssueBillingKeyRequestUnionEasyPay | undefined;
|
|
9
|
+
paypal?: IssueBillingKeyRequestUnionPaypal | undefined;
|
|
10
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CardCompany } from '../entity/CardCompany.js';
|
|
2
|
+
import { EasyPayProvider } from '../entity/EasyPayProvider.js';
|
|
3
|
+
import { EasyPayPaymentMethod } from '../entity/EasyPayPaymentMethod.js';
|
|
4
|
+
export type IssueBillingKeyRequestUnionEasyPay = {
|
|
5
|
+
/**
|
|
6
|
+
* 카드 결제시 사용되는 카드사 코드
|
|
7
|
+
*/
|
|
8
|
+
availableCards?: CardCompany[] | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* PG 제휴로 간편결제를 이용할 때, 간편결제 UI를 직접 호출할 수 있는 간편결제
|
|
11
|
+
*/
|
|
12
|
+
easyPayProvider?: EasyPayProvider | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* 노출을 허용할 결제 수단의 종류
|
|
15
|
+
*/
|
|
16
|
+
availablePayMethods?: EasyPayPaymentMethod[] | undefined;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type IssueBillingKeyRequestUnionPaypal = Record<string, never>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { IssueBillingKeyUIType } from '../entity/IssueBillingKeyUIType.js';
|
|
2
|
+
import { Currency } from '../entity/Currency.js';
|
|
3
|
+
import type { StoreId } from '../entity/StoreId.js';
|
|
4
|
+
import type { ChannelKey } from '../entity/ChannelKey.js';
|
|
5
|
+
import { BillingKeyMethod } from '../entity/BillingKeyMethod.js';
|
|
6
|
+
import type { Customer } from '../entity/Customer.js';
|
|
7
|
+
import type { RedirectUrl } from '../entity/RedirectUrl.js';
|
|
8
|
+
import { Locale } from '../entity/Locale.js';
|
|
9
|
+
import { ProductType } from '../entity/ProductType.js';
|
|
10
|
+
import type { LoadIssueBillingKeyUIBypass } from '../entity/bypass/LoadIssueBillingKeyUIBypass.js';
|
|
11
|
+
export type LoadIssueBillingKeyUIRequest = {
|
|
12
|
+
uiType: IssueBillingKeyUIType;
|
|
13
|
+
/**
|
|
14
|
+
* 빌링 등록 UI에 표시되는 금액
|
|
15
|
+
*/
|
|
16
|
+
displayAmount?: number | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* `displayAmount`의 화폐
|
|
19
|
+
*/
|
|
20
|
+
currency?: Currency | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* **상점 아이디**
|
|
23
|
+
*
|
|
24
|
+
* 포트원 계정에 생성된 상점을 식별하는 고유한 값으로 [관리자 콘솔 > 연동 정보](https://admin.portone.io/integration-v2/manage/channel) 우측 상단에서 확인할 수 있습니다.
|
|
25
|
+
*/
|
|
26
|
+
storeId: StoreId;
|
|
27
|
+
/**
|
|
28
|
+
* **채널 키**
|
|
29
|
+
*
|
|
30
|
+
* 포트원에 등록된 결제 채널 중 하나를 지정합니다.
|
|
31
|
+
*
|
|
32
|
+
* [관리자 콘솔 > 연동 정보](https://admin.portone.io/integration-v2/manage/channel)에서 채널 연동 후 채널 키를 확인할 수 있습니다.
|
|
33
|
+
*
|
|
34
|
+
* 채널 키와 채널 그룹 ID 중 하나를 지정해야 합니다.
|
|
35
|
+
*/
|
|
36
|
+
channelKey: ChannelKey;
|
|
37
|
+
/**
|
|
38
|
+
* **결제 수단 정보**
|
|
39
|
+
*/
|
|
40
|
+
billingKeyMethod: BillingKeyMethod;
|
|
41
|
+
/**
|
|
42
|
+
* **주문명**
|
|
43
|
+
*/
|
|
44
|
+
issueName?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* **빌링 등록 주문 번호**
|
|
47
|
+
*/
|
|
48
|
+
issueId?: string | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* **구매자 정보**
|
|
51
|
+
*/
|
|
52
|
+
customer?: Customer | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* **리디렉션 방식에서 결제 완료 후 이동할 URL**
|
|
55
|
+
*
|
|
56
|
+
* 결제사 페이지로 이동하여 진행하는 리디렉션 방식의 경우 필수로 설정해야 합니다. 대부분의 모바일 환경이 리디렉션 방식에 해당됩니다.
|
|
57
|
+
*/
|
|
58
|
+
redirectUrl?: RedirectUrl | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* **UI 언어**
|
|
61
|
+
*/
|
|
62
|
+
locale?: Locale | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* **빌링키 커스텀 JSON 데이터**
|
|
65
|
+
*
|
|
66
|
+
* 자유롭게 데이터를 넣어 이후 조회할 수 있습니다.
|
|
67
|
+
*/
|
|
68
|
+
customData?: Record<string, any> | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* **앱 URL 스킴**
|
|
71
|
+
*/
|
|
72
|
+
appScheme?: string | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* **웹훅 URL**
|
|
75
|
+
*/
|
|
76
|
+
noticeUrls?: string[] | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* **상품 유형**
|
|
79
|
+
*
|
|
80
|
+
* 휴대폰 빌링키 발급시 필수 입력입니다.
|
|
81
|
+
*/
|
|
82
|
+
productType?: ProductType | undefined;
|
|
83
|
+
bypass?: LoadIssueBillingKeyUIBypass | undefined;
|
|
84
|
+
};
|