export interface ResponseRecipientAccountHistoryList {
    status: number,
    message: string,
    data?: RecipientAccountHistoryListItem[]
}

export interface RecipientAccountHistoryListItem {
    id?: string,
    member_id?: string,
    price?: string,
    trade_number?: string,
    country_name?: string,
    country_code?: string,
    bank_name?: string,
    bank_code?: string,
    branch_name?: string,
    recipient_name?: string,
    recipient_eng_name?: string,
    bank_account?: string,
    swift_code?: string,
    remark?: string,
    create_at?: string,
    status?: 'pending' | 'complete' | 'fail' | 'cancel',  // 只有這3種狀態
}

export class ResponseRecipientAccountHistoryListConvert {
    public static toMap(json: string): ResponseRecipientAccountHistoryList {
        return JSON.parse(json);
    }

    public static toJson(value: ResponseRecipientAccountHistoryList): string {
        return JSON.stringify(value);
    }
}
