/* tslint:disable */ /* eslint-disable */ /** * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface ReqGetWithdrawHistory */ export interface ReqGetWithdrawHistory { /** * made optional to support header auth clients * @type {string} * @memberof ReqGetWithdrawHistory */ auth?: string; /** * * @type {number} * @memberof ReqGetWithdrawHistory */ account_index: number; /** * * @type {string} * @memberof ReqGetWithdrawHistory */ cursor?: string; /** * * @type {string} * @memberof ReqGetWithdrawHistory */ filter?: ReqGetWithdrawHistoryFilterEnum; } /** * @export */ export const ReqGetWithdrawHistoryFilterEnum = { All: 'all', Pending: 'pending', Claimable: 'claimable' } as const; export type ReqGetWithdrawHistoryFilterEnum = typeof ReqGetWithdrawHistoryFilterEnum[keyof typeof ReqGetWithdrawHistoryFilterEnum]; /** * Check if a given object implements the ReqGetWithdrawHistory interface. */ export function instanceOfReqGetWithdrawHistory(value: object): value is ReqGetWithdrawHistory { if (!('account_index' in value) || value['account_index'] === undefined) return false; return true; } export function ReqGetWithdrawHistoryFromJSON(json: any): ReqGetWithdrawHistory { return ReqGetWithdrawHistoryFromJSONTyped(json, false); } export function ReqGetWithdrawHistoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetWithdrawHistory { if (json == null) { return json; } return { 'auth': json['auth'] == null ? undefined : json['auth'], 'account_index': json['account_index'], 'cursor': json['cursor'] == null ? undefined : json['cursor'], 'filter': json['filter'] == null ? undefined : json['filter'], }; } export function ReqGetWithdrawHistoryToJSON(value?: ReqGetWithdrawHistory | null): any { if (value == null) { return value; } return { 'auth': value['auth'], 'account_index': value['account_index'], 'cursor': value['cursor'], 'filter': value['filter'], }; }