@portone/server-sdk
Version:
PortOne JavaScript SDK for server-side usage
44 lines (43 loc) • 5.06 kB
TypeScript
import type { Unrecognized } from "../../utils/unrecognized.js";
import { RestError } from "../RestError.js";
import type { AlreadyPaidError } from "../payment/AlreadyPaidError.js";
import type { AlreadyPaidOrWaitingError } from "../payment/paymentSchedule/AlreadyPaidOrWaitingError.js";
import type { BillingKeyAlreadyDeletedError } from "../common/BillingKeyAlreadyDeletedError.js";
import type { BillingKeyNotFoundError } from "../common/BillingKeyNotFoundError.js";
import type { BillingKeyNotIssuedError } from "../payment/billingKey/BillingKeyNotIssuedError.js";
import type { CancelAmountExceedsCancellableAmountError } from "../payment/CancelAmountExceedsCancellableAmountError.js";
import type { CancelTaxAmountExceedsCancellableTaxAmountError } from "../payment/CancelTaxAmountExceedsCancellableTaxAmountError.js";
import type { CancelTaxFreeAmountExceedsCancellableTaxFreeAmountError } from "../payment/CancelTaxFreeAmountExceedsCancellableTaxFreeAmountError.js";
import type { CancellableAmountConsistencyBrokenError } from "../payment/CancellableAmountConsistencyBrokenError.js";
import type { CashReceiptAlreadyIssuedError } from "../payment/cashReceipt/CashReceiptAlreadyIssuedError.js";
import type { CashReceiptNotFoundError } from "../payment/cashReceipt/CashReceiptNotFoundError.js";
import type { CashReceiptNotIssuedError } from "../payment/cashReceipt/CashReceiptNotIssuedError.js";
import type { ChannelNotFoundError } from "../common/ChannelNotFoundError.js";
import type { ChannelSpecificError } from "../payment/billingKey/ChannelSpecificError.js";
import type { DiscountAmountExceedsTotalAmountError } from "../payment/DiscountAmountExceedsTotalAmountError.js";
import type { ForbiddenError } from "../common/ForbiddenError.js";
import type { InvalidRequestError } from "../common/InvalidRequestError.js";
import type { MaxTransactionCountReachedError } from "../common/MaxTransactionCountReachedError.js";
import type { MaxWebhookRetryCountReachedError } from "../payment/MaxWebhookRetryCountReachedError.js";
import type { NegativePromotionAdjustedCancelAmountError } from "../payment/NegativePromotionAdjustedCancelAmountError.js";
import type { PaymentAlreadyCancelledError } from "../payment/PaymentAlreadyCancelledError.js";
import type { PaymentNotFoundError } from "../payment/PaymentNotFoundError.js";
import type { PaymentNotPaidError } from "../payment/PaymentNotPaidError.js";
import type { PaymentNotWaitingForDepositError } from "../payment/PaymentNotWaitingForDepositError.js";
import type { PaymentScheduleAlreadyExistsError } from "../common/PaymentScheduleAlreadyExistsError.js";
import type { PaymentScheduleAlreadyProcessedError } from "../payment/paymentSchedule/PaymentScheduleAlreadyProcessedError.js";
import type { PaymentScheduleAlreadyRevokedError } from "../payment/paymentSchedule/PaymentScheduleAlreadyRevokedError.js";
import type { PaymentScheduleNotFoundError } from "../payment/paymentSchedule/PaymentScheduleNotFoundError.js";
import type { PgProviderError } from "../common/PgProviderError.js";
import type { PromotionDiscountRetainOptionShouldNotBeChangedError } from "../payment/PromotionDiscountRetainOptionShouldNotBeChangedError.js";
import type { PromotionNotFoundError } from "../payment/promotion/PromotionNotFoundError.js";
import type { PromotionPayMethodDoesNotMatchError } from "../payment/PromotionPayMethodDoesNotMatchError.js";
import type { SumOfPartsExceedsCancelAmountError } from "../payment/SumOfPartsExceedsCancelAmountError.js";
import type { SumOfPartsExceedsTotalAmountError } from "../common/SumOfPartsExceedsTotalAmountError.js";
import type { UnauthorizedError } from "../common/UnauthorizedError.js";
import type { WebhookNotFoundError } from "../payment/WebhookNotFoundError.js";
export declare abstract class PaymentError extends RestError {
readonly data: AlreadyPaidError | AlreadyPaidOrWaitingError | BillingKeyAlreadyDeletedError | BillingKeyNotFoundError | BillingKeyNotIssuedError | CancelAmountExceedsCancellableAmountError | CancelTaxAmountExceedsCancellableTaxAmountError | CancelTaxFreeAmountExceedsCancellableTaxFreeAmountError | CancellableAmountConsistencyBrokenError | CashReceiptAlreadyIssuedError | CashReceiptNotFoundError | CashReceiptNotIssuedError | ChannelNotFoundError | ChannelSpecificError | DiscountAmountExceedsTotalAmountError | ForbiddenError | InvalidRequestError | MaxTransactionCountReachedError | MaxWebhookRetryCountReachedError | NegativePromotionAdjustedCancelAmountError | PaymentAlreadyCancelledError | PaymentNotFoundError | PaymentNotPaidError | PaymentNotWaitingForDepositError | PaymentScheduleAlreadyExistsError | PaymentScheduleAlreadyProcessedError | PaymentScheduleAlreadyRevokedError | PaymentScheduleNotFoundError | PgProviderError | PromotionDiscountRetainOptionShouldNotBeChangedError | PromotionNotFoundError | PromotionPayMethodDoesNotMatchError | SumOfPartsExceedsCancelAmountError | SumOfPartsExceedsTotalAmountError | UnauthorizedError | WebhookNotFoundError | {
readonly type: Unrecognized;
};
}