@portone/server-sdk
Version:
PortOne JavaScript SDK for server-side usage
91 lines (90 loc) • 14.4 kB
TypeScript
import type { Unrecognized } from "../../utils/unrecognized.js";
import { RestError } from "../RestError.js";
import type { B2bExternalServiceError } from "../platform/company/B2bExternalServiceError.js";
import type { B2bNotEnabledError } from "../platform/company/B2bNotEnabledError.js";
import type { ForbiddenError } from "../common/ForbiddenError.js";
import type { InvalidRequestError } from "../common/InvalidRequestError.js";
import type { PlatformAccountVerificationAlreadyUsedError } from "../platform/PlatformAccountVerificationAlreadyUsedError.js";
import type { PlatformAccountVerificationFailedError } from "../platform/PlatformAccountVerificationFailedError.js";
import type { PlatformAccountVerificationNotFoundError } from "../platform/PlatformAccountVerificationNotFoundError.js";
import type { PlatformAdditionalFeePoliciesNotFoundError } from "../platform/transfer/PlatformAdditionalFeePoliciesNotFoundError.js";
import type { PlatformAdditionalFeePolicyAlreadyExistsError } from "../platform/policy/PlatformAdditionalFeePolicyAlreadyExistsError.js";
import type { PlatformAdditionalFeePolicyNotFoundError } from "../platform/PlatformAdditionalFeePolicyNotFoundError.js";
import type { PlatformAdditionalFeePolicyScheduleAlreadyExistsError } from "../platform/PlatformAdditionalFeePolicyScheduleAlreadyExistsError.js";
import type { PlatformAdditionalFixedAmountFeeCurrencyAndSettlementCurrencyMismatchedError } from "../platform/transfer/PlatformAdditionalFixedAmountFeeCurrencyAndSettlementCurrencyMismatchedError.js";
import type { PlatformArchivedAdditionalFeePolicyError } from "../platform/PlatformArchivedAdditionalFeePolicyError.js";
import type { PlatformArchivedContractError } from "../platform/PlatformArchivedContractError.js";
import type { PlatformArchivedDiscountSharePolicyError } from "../platform/PlatformArchivedDiscountSharePolicyError.js";
import type { PlatformArchivedPartnerError } from "../platform/PlatformArchivedPartnerError.js";
import type { PlatformArchivedPartnersCannotBeScheduledError } from "../platform/PlatformArchivedPartnersCannotBeScheduledError.js";
import type { PlatformBtxNotEnabledError } from "../platform/partner/PlatformBtxNotEnabledError.js";
import type { PlatformCancelOrderTransfersExistsError } from "../platform/transfer/PlatformCancelOrderTransfersExistsError.js";
import type { PlatformCancellableAmountExceededError } from "../platform/transfer/PlatformCancellableAmountExceededError.js";
import type { PlatformCancellableDiscountAmountExceededError } from "../platform/transfer/PlatformCancellableDiscountAmountExceededError.js";
import type { PlatformCancellableDiscountTaxFreeAmountExceededError } from "../platform/transfer/PlatformCancellableDiscountTaxFreeAmountExceededError.js";
import type { PlatformCancellableProductQuantityExceededError } from "../platform/transfer/PlatformCancellableProductQuantityExceededError.js";
import type { PlatformCancellationAndPaymentTypeMismatchedError } from "../platform/transfer/PlatformCancellationAndPaymentTypeMismatchedError.js";
import type { PlatformCancellationNotFoundError } from "../platform/transfer/PlatformCancellationNotFoundError.js";
import type { PlatformCannotArchiveScheduledAdditionalFeePolicyError } from "../platform/policy/PlatformCannotArchiveScheduledAdditionalFeePolicyError.js";
import type { PlatformCannotArchiveScheduledContractError } from "../platform/policy/PlatformCannotArchiveScheduledContractError.js";
import type { PlatformCannotArchiveScheduledDiscountSharePolicyError } from "../platform/policy/PlatformCannotArchiveScheduledDiscountSharePolicyError.js";
import type { PlatformCannotArchiveScheduledPartnerError } from "../platform/partner/PlatformCannotArchiveScheduledPartnerError.js";
import type { PlatformCannotSpecifyTransferError } from "../platform/transfer/PlatformCannotSpecifyTransferError.js";
import type { PlatformCompanyNotFoundError } from "../platform/company/PlatformCompanyNotFoundError.js";
import type { PlatformCompanyVerificationAlreadyUsedError } from "../platform/PlatformCompanyVerificationAlreadyUsedError.js";
import type { PlatformContractAlreadyExistsError } from "../platform/policy/PlatformContractAlreadyExistsError.js";
import type { PlatformContractNotFoundError } from "../platform/PlatformContractNotFoundError.js";
import type { PlatformContractPlatformFixedAmountFeeCurrencyAndSettlementCurrencyMismatchedError } from "../platform/transfer/PlatformContractPlatformFixedAmountFeeCurrencyAndSettlementCurrencyMismatchedError.js";
import type { PlatformContractScheduleAlreadyExistsError } from "../platform/PlatformContractScheduleAlreadyExistsError.js";
import type { PlatformContractsNotFoundError } from "../platform/partner/PlatformContractsNotFoundError.js";
import type { PlatformCurrencyNotSupportedError } from "../platform/PlatformCurrencyNotSupportedError.js";
import type { PlatformDiscountSharePoliciesNotFoundError } from "../platform/transfer/PlatformDiscountSharePoliciesNotFoundError.js";
import type { PlatformDiscountSharePolicyAlreadyExistsError } from "../platform/policy/PlatformDiscountSharePolicyAlreadyExistsError.js";
import type { PlatformDiscountSharePolicyIdDuplicatedError } from "../platform/transfer/PlatformDiscountSharePolicyIdDuplicatedError.js";
import type { PlatformDiscountSharePolicyNotFoundError } from "../platform/PlatformDiscountSharePolicyNotFoundError.js";
import type { PlatformDiscountSharePolicyScheduleAlreadyExistsError } from "../platform/PlatformDiscountSharePolicyScheduleAlreadyExistsError.js";
import type { PlatformExternalApiFailedError } from "../platform/PlatformExternalApiFailedError.js";
import type { PlatformExternalApiTemporarilyFailedError } from "../platform/account/PlatformExternalApiTemporarilyFailedError.js";
import type { PlatformInsufficientDataToChangePartnerTypeError } from "../platform/PlatformInsufficientDataToChangePartnerTypeError.js";
import type { PlatformMemberCompanyConnectedPartnerBrnUnchangeableError } from "../platform/PlatformMemberCompanyConnectedPartnerBrnUnchangeableError.js";
import type { PlatformMemberCompanyConnectedPartnerCannotBeScheduledError } from "../platform/PlatformMemberCompanyConnectedPartnerCannotBeScheduledError.js";
import type { PlatformMemberCompanyConnectedPartnerTypeUnchangeableError } from "../platform/PlatformMemberCompanyConnectedPartnerTypeUnchangeableError.js";
import type { PlatformMemberCompanyConnectedPartnersCannotBeScheduledError } from "../platform/PlatformMemberCompanyConnectedPartnersCannotBeScheduledError.js";
import type { PlatformMemberCompanyNotConnectableStatusError } from "../platform/partner/PlatformMemberCompanyNotConnectableStatusError.js";
import type { PlatformMemberCompanyNotConnectedError } from "../platform/partner/PlatformMemberCompanyNotConnectedError.js";
import type { PlatformNotEnabledError } from "../platform/PlatformNotEnabledError.js";
import type { PlatformNotSupportedBankError } from "../platform/account/PlatformNotSupportedBankError.js";
import type { PlatformOngoingTaxInvoiceExistsError } from "../platform/partner/PlatformOngoingTaxInvoiceExistsError.js";
import type { PlatformOrderDetailMismatchedError } from "../platform/transfer/PlatformOrderDetailMismatchedError.js";
import type { PlatformOrderTransferAlreadyCancelledError } from "../platform/transfer/PlatformOrderTransferAlreadyCancelledError.js";
import type { PlatformPartnerIdAlreadyExistsError } from "../platform/partner/PlatformPartnerIdAlreadyExistsError.js";
import type { PlatformPartnerIdsAlreadyExistError } from "../platform/partner/PlatformPartnerIdsAlreadyExistError.js";
import type { PlatformPartnerIdsDuplicatedError } from "../platform/partner/PlatformPartnerIdsDuplicatedError.js";
import type { PlatformPartnerNotFoundError } from "../platform/PlatformPartnerNotFoundError.js";
import type { PlatformPartnerScheduleAlreadyExistsError } from "../platform/PlatformPartnerScheduleAlreadyExistsError.js";
import type { PlatformPartnerScheduleExistsError } from "../platform/partner/PlatformPartnerScheduleExistsError.js";
import type { PlatformPartnerSchedulesAlreadyExistError } from "../platform/PlatformPartnerSchedulesAlreadyExistError.js";
import type { PlatformPartnerTaxationTypeIsSimpleError } from "../platform/partner/PlatformPartnerTaxationTypeIsSimpleError.js";
import type { PlatformPartnerTypeIsNotBusinessError } from "../platform/partner/PlatformPartnerTypeIsNotBusinessError.js";
import type { PlatformPaymentNotFoundError } from "../platform/transfer/PlatformPaymentNotFoundError.js";
import type { PlatformProductIdDuplicatedError } from "../platform/transfer/PlatformProductIdDuplicatedError.js";
import type { PlatformProductIdNotFoundError } from "../platform/transfer/PlatformProductIdNotFoundError.js";
import type { PlatformSettlementAmountExceededError } from "../platform/transfer/PlatformSettlementAmountExceededError.js";
import type { PlatformSettlementCancelAmountExceededPortOneCancelError } from "../platform/transfer/PlatformSettlementCancelAmountExceededPortOneCancelError.js";
import type { PlatformSettlementDateEarlierThanSettlementStartDateError } from "../platform/transfer/PlatformSettlementDateEarlierThanSettlementStartDateError.js";
import type { PlatformSettlementParameterNotFoundError } from "../platform/transfer/PlatformSettlementParameterNotFoundError.js";
import type { PlatformSettlementPaymentAmountExceededPortOnePaymentError } from "../platform/transfer/PlatformSettlementPaymentAmountExceededPortOnePaymentError.js";
import type { PlatformSettlementSupplyWithVatAmountExceededPortOnePaymentError } from "../platform/transfer/PlatformSettlementSupplyWithVatAmountExceededPortOnePaymentError.js";
import type { PlatformSettlementTaxFreeAmountExceededPortOnePaymentError } from "../platform/transfer/PlatformSettlementTaxFreeAmountExceededPortOnePaymentError.js";
import type { PlatformTargetPartnerNotFoundError } from "../platform/partner/PlatformTargetPartnerNotFoundError.js";
import type { PlatformTransferAlreadyExistsError } from "../platform/transfer/PlatformTransferAlreadyExistsError.js";
import type { PlatformTransferDiscountSharePolicyNotFoundError } from "../platform/transfer/PlatformTransferDiscountSharePolicyNotFoundError.js";
import type { PlatformTransferNonDeletableStatusError } from "../platform/transfer/PlatformTransferNonDeletableStatusError.js";
import type { PlatformTransferNotFoundError } from "../platform/transfer/PlatformTransferNotFoundError.js";
import type { PlatformUserDefinedPropertyNotFoundError } from "../platform/PlatformUserDefinedPropertyNotFoundError.js";
import type { UnauthorizedError } from "../common/UnauthorizedError.js";
export declare abstract class PlatformError extends RestError {
readonly data: B2bExternalServiceError | B2bNotEnabledError | ForbiddenError | InvalidRequestError | PlatformAccountVerificationAlreadyUsedError | PlatformAccountVerificationFailedError | PlatformAccountVerificationNotFoundError | PlatformAdditionalFeePoliciesNotFoundError | PlatformAdditionalFeePolicyAlreadyExistsError | PlatformAdditionalFeePolicyNotFoundError | PlatformAdditionalFeePolicyScheduleAlreadyExistsError | PlatformAdditionalFixedAmountFeeCurrencyAndSettlementCurrencyMismatchedError | PlatformArchivedAdditionalFeePolicyError | PlatformArchivedContractError | PlatformArchivedDiscountSharePolicyError | PlatformArchivedPartnerError | PlatformArchivedPartnersCannotBeScheduledError | PlatformBtxNotEnabledError | PlatformCancelOrderTransfersExistsError | PlatformCancellableAmountExceededError | PlatformCancellableDiscountAmountExceededError | PlatformCancellableDiscountTaxFreeAmountExceededError | PlatformCancellableProductQuantityExceededError | PlatformCancellationAndPaymentTypeMismatchedError | PlatformCancellationNotFoundError | PlatformCannotArchiveScheduledAdditionalFeePolicyError | PlatformCannotArchiveScheduledContractError | PlatformCannotArchiveScheduledDiscountSharePolicyError | PlatformCannotArchiveScheduledPartnerError | PlatformCannotSpecifyTransferError | PlatformCompanyNotFoundError | PlatformCompanyVerificationAlreadyUsedError | PlatformContractAlreadyExistsError | PlatformContractNotFoundError | PlatformContractPlatformFixedAmountFeeCurrencyAndSettlementCurrencyMismatchedError | PlatformContractScheduleAlreadyExistsError | PlatformContractsNotFoundError | PlatformCurrencyNotSupportedError | PlatformDiscountSharePoliciesNotFoundError | PlatformDiscountSharePolicyAlreadyExistsError | PlatformDiscountSharePolicyIdDuplicatedError | PlatformDiscountSharePolicyNotFoundError | PlatformDiscountSharePolicyScheduleAlreadyExistsError | PlatformExternalApiFailedError | PlatformExternalApiTemporarilyFailedError | PlatformInsufficientDataToChangePartnerTypeError | PlatformMemberCompanyConnectedPartnerBrnUnchangeableError | PlatformMemberCompanyConnectedPartnerCannotBeScheduledError | PlatformMemberCompanyConnectedPartnerTypeUnchangeableError | PlatformMemberCompanyConnectedPartnersCannotBeScheduledError | PlatformMemberCompanyNotConnectableStatusError | PlatformMemberCompanyNotConnectedError | PlatformNotEnabledError | PlatformNotSupportedBankError | PlatformOngoingTaxInvoiceExistsError | PlatformOrderDetailMismatchedError | PlatformOrderTransferAlreadyCancelledError | PlatformPartnerIdAlreadyExistsError | PlatformPartnerIdsAlreadyExistError | PlatformPartnerIdsDuplicatedError | PlatformPartnerNotFoundError | PlatformPartnerScheduleAlreadyExistsError | PlatformPartnerScheduleExistsError | PlatformPartnerSchedulesAlreadyExistError | PlatformPartnerTaxationTypeIsSimpleError | PlatformPartnerTypeIsNotBusinessError | PlatformPaymentNotFoundError | PlatformProductIdDuplicatedError | PlatformProductIdNotFoundError | PlatformSettlementAmountExceededError | PlatformSettlementCancelAmountExceededPortOneCancelError | PlatformSettlementDateEarlierThanSettlementStartDateError | PlatformSettlementParameterNotFoundError | PlatformSettlementPaymentAmountExceededPortOnePaymentError | PlatformSettlementSupplyWithVatAmountExceededPortOnePaymentError | PlatformSettlementTaxFreeAmountExceededPortOnePaymentError | PlatformTargetPartnerNotFoundError | PlatformTransferAlreadyExistsError | PlatformTransferDiscountSharePolicyNotFoundError | PlatformTransferNonDeletableStatusError | PlatformTransferNotFoundError | PlatformUserDefinedPropertyNotFoundError | UnauthorizedError | {
readonly type: Unrecognized;
};
}