UNPKG

kucoin-universal-sdk

Version:
134 lines (133 loc) 3.98 kB
import { Serializable } from '../../../internal/interfaces/serializable'; export declare class GetRepayHistoryReq implements Serializable { /** * currency */ currency?: string; /** * true-isolated, false-cross; default is false */ isIsolated?: boolean; /** * symbol, mandatory for isolated margin account */ symbol?: string; /** * Repay order ID */ orderNo?: string; /** * The start and end times are not restricted. If the start time is empty or less than 1680278400000, the default value is set to 1680278400000 (April 1, 2023, 00:00:00) */ startTime?: number; /** * End time */ endTime?: number; /** * Current query page, with a starting value of 1. Default:1 */ currentPage?: number; /** * Number of results per page. Default is 50, minimum is 10, maximum is 500 */ pageSize?: number; /** * Private constructor, please use the corresponding static methods to construct the object. */ private constructor(); /** * Creates a new instance of the `GetRepayHistoryReq` class. * The builder pattern allows step-by-step construction of a `GetRepayHistoryReq` object. */ static builder(): GetRepayHistoryReqBuilder; /** * Creates a new instance of the `GetRepayHistoryReq` class with the given data. */ static create(data: { /** * currency */ currency?: string; /** * true-isolated, false-cross; default is false */ isIsolated?: boolean; /** * symbol, mandatory for isolated margin account */ symbol?: string; /** * Repay order ID */ orderNo?: string; /** * The start and end times are not restricted. If the start time is empty or less than 1680278400000, the default value is set to 1680278400000 (April 1, 2023, 00:00:00) */ startTime?: number; /** * End time */ endTime?: number; /** * Current query page, with a starting value of 1. Default:1 */ currentPage?: number; /** * Number of results per page. Default is 50, minimum is 10, maximum is 500 */ pageSize?: number; }): GetRepayHistoryReq; /** * Convert the object to a JSON string. */ toJson(): string; /** * Create an object from a JSON string. */ static fromJson(input: string): GetRepayHistoryReq; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): GetRepayHistoryReq; } export declare class GetRepayHistoryReqBuilder { readonly obj: GetRepayHistoryReq; constructor(obj: GetRepayHistoryReq); /** * currency */ setCurrency(value: string): GetRepayHistoryReqBuilder; /** * true-isolated, false-cross; default is false */ setIsIsolated(value: boolean): GetRepayHistoryReqBuilder; /** * symbol, mandatory for isolated margin account */ setSymbol(value: string): GetRepayHistoryReqBuilder; /** * Repay order ID */ setOrderNo(value: string): GetRepayHistoryReqBuilder; /** * The start and end times are not restricted. If the start time is empty or less than 1680278400000, the default value is set to 1680278400000 (April 1, 2023, 00:00:00) */ setStartTime(value: number): GetRepayHistoryReqBuilder; /** * End time */ setEndTime(value: number): GetRepayHistoryReqBuilder; /** * Current query page, with a starting value of 1. Default:1 */ setCurrentPage(value: number): GetRepayHistoryReqBuilder; /** * Number of results per page. Default is 50, minimum is 10, maximum is 500 */ setPageSize(value: number): GetRepayHistoryReqBuilder; /** * Get the final object. */ build(): GetRepayHistoryReq; }