UNPKG

kucoin-universal-sdk

Version:
74 lines (73 loc) 1.79 kB
import { Serializable } from '../../../internal/interfaces/serializable'; export declare class PurchaseReq implements Serializable { /** * Currency */ currency: string; /** * Purchase amount */ size: string; /** * Purchase interest rate */ interestRate: string; /** * Private constructor, please use the corresponding static methods to construct the object. */ private constructor(); /** * Creates a new instance of the `PurchaseReq` class. * The builder pattern allows step-by-step construction of a `PurchaseReq` object. */ static builder(): PurchaseReqBuilder; /** * Creates a new instance of the `PurchaseReq` class with the given data. */ static create(data: { /** * Currency */ currency: string; /** * Purchase amount */ size: string; /** * Purchase interest rate */ interestRate: string; }): PurchaseReq; /** * Convert the object to a JSON string. */ toJson(): string; /** * Create an object from a JSON string. */ static fromJson(input: string): PurchaseReq; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): PurchaseReq; } export declare class PurchaseReqBuilder { readonly obj: PurchaseReq; constructor(obj: PurchaseReq); /** * Currency */ setCurrency(value: string): PurchaseReqBuilder; /** * Purchase amount */ setSize(value: string): PurchaseReqBuilder; /** * Purchase interest rate */ setInterestRate(value: string): PurchaseReqBuilder; /** * Get the final object. */ build(): PurchaseReq; }