@portone/server-sdk
Version:
PortOne JavaScript SDK for server-side usage
48 lines (47 loc) • 2.87 kB
TypeScript
import { BulkAccountTransferError } from "./BulkAccountTransferError.js";
import type { Unrecognized } from "./../../../utils/unrecognized.js";
import { type PortOneClientInit } from "../../../client.js";
import type { ForbiddenError } from "../../../generated/common/ForbiddenError.js";
import type { GetPlatformBulkAccountTransfersResponse } from "../../../generated/platform/bulkAccountTransfer/GetPlatformBulkAccountTransfersResponse.js";
import type { InvalidRequestError } from "../../../generated/common/InvalidRequestError.js";
import type { PageInput } from "../../../generated/common/PageInput.js";
import type { PlatformBulkAccountTransferFilterInput } from "../../../generated/platform/bulkAccountTransfer/PlatformBulkAccountTransferFilterInput.js";
import type { PlatformNotEnabledError } from "../../../generated/platform/PlatformNotEnabledError.js";
import type { UnauthorizedError } from "../../../generated/common/UnauthorizedError.js";
/**
* 포트원 API 클라이언트를 생성합니다.
*/
export declare function BulkAccountTransferClient(init: PortOneClientInit): BulkAccountTransferClient;
export type BulkAccountTransferClient = {
/**
* 일괄 이체 내역 다건 조회
*
* 성공 응답으로 조회된 일괄 이체 내역 리스트와 페이지 정보 및 상태 별 개수 정보를 반환합니다.
*
* @throws {@link GetPlatformBulkAccountTransfersError}
*/
getPlatformBulkAccountTransfers: (options?: {
/**
* 테스트 모드 여부
*
* 테스트 모드 여부를 결정합니다. true 이면 테스트 모드로 실행됩니다. Request Body에도 isForTest가 있을 수 있으나, 둘 다 제공되면 Query Parameter의 test 값을 사용하고, Request Body의 isForTest는 무시됩니다. Query Parameter의 test와 Request Body의 isForTest에 모두 값이 제공되지 않으면 기본값인 false로 적용됩니다.
*/
test?: boolean;
/**
* Query Parameter의 test에 값이 제공된 경우 Query Parameter의 test를 사용하고 해당 값은 무시됩니다.
* Query Parameter의 test와 Request Body의 isForTest에 모두 값이 제공되지 않으면 기본값인 false로 적용됩니다.
*/
isForTest?: boolean;
page?: PageInput;
filter?: PlatformBulkAccountTransferFilterInput;
}) => Promise<GetPlatformBulkAccountTransfersResponse>;
};
export declare class GetPlatformBulkAccountTransfersError extends BulkAccountTransferError {
readonly data: ForbiddenError | InvalidRequestError | PlatformNotEnabledError | UnauthorizedError | {
readonly type: Unrecognized;
};
/** @ignore */
constructor(data: ForbiddenError | InvalidRequestError | PlatformNotEnabledError | UnauthorizedError | {
readonly type: Unrecognized;
});
}