UNPKG

kucoin-universal-sdk

Version:
50 lines (49 loc) 1.79 kB
import { Serializable } from '../../../internal/interfaces/serializable'; export declare class AddSubAccountReq implements Serializable { /** * Sub-account Name. Note that this name is unique across the exchange. It is recommended to add a special identifier to prevent name duplication. */ accountName: string; /** * Private constructor, please use the corresponding static methods to construct the object. */ private constructor(); /** * Creates a new instance of the `AddSubAccountReq` class. * The builder pattern allows step-by-step construction of a `AddSubAccountReq` object. */ static builder(): AddSubAccountReqBuilder; /** * Creates a new instance of the `AddSubAccountReq` class with the given data. */ static create(data: { /** * Sub-account Name. Note that this name is unique across the exchange. It is recommended to add a special identifier to prevent name duplication. */ accountName: string; }): AddSubAccountReq; /** * Convert the object to a JSON string. */ toJson(): string; /** * Create an object from a JSON string. */ static fromJson(input: string): AddSubAccountReq; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): AddSubAccountReq; } export declare class AddSubAccountReqBuilder { readonly obj: AddSubAccountReq; constructor(obj: AddSubAccountReq); /** * Sub-account Name. Note that this name is unique across the exchange. It is recommended to add a special identifier to prevent name duplication. */ setAccountName(value: string): AddSubAccountReqBuilder; /** * Get the final object. */ build(): AddSubAccountReq; }