/* tslint:disable */ /* eslint-disable */ /** * barkd REST API * A simple REST API for barkd, a wallet daemon for integrating bitcoin payments into your app over HTTP. Supports self-custodial Lightning, Ark, and on-chain out of the box. barkd is a long-running daemon best suited for always-on or high-connectivity environments like nodes, servers, desktops, and point-of-sale terminals. All endpoints return JSON. Amounts are denominated in satoshis. * * The version of the OpenAPI document: 0.6.1 * Contact: hello@second.tech * * 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 ExitErrorOneOf16 */ export interface ExitErrorOneOf16 { /** * * @type {number} * @memberof ExitErrorOneOf16 */ available: number; /** * * @type {number} * @memberof ExitErrorOneOf16 */ needed: number; /** * * @type {ExitErrorOneOf16TypeEnum} * @memberof ExitErrorOneOf16 */ type: ExitErrorOneOf16TypeEnum; } /** * @export */ export const ExitErrorOneOf16TypeEnum = { InsufficientConfirmedFunds: 'insufficient-confirmed-funds' } as const; export type ExitErrorOneOf16TypeEnum = typeof ExitErrorOneOf16TypeEnum[keyof typeof ExitErrorOneOf16TypeEnum]; /** * Check if a given object implements the ExitErrorOneOf16 interface. */ export function instanceOfExitErrorOneOf16(value: object): value is ExitErrorOneOf16 { if (!('available' in value) || value['available'] === undefined) return false; if (!('needed' in value) || value['needed'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; return true; } export function ExitErrorOneOf16FromJSON(json: any): ExitErrorOneOf16 { return ExitErrorOneOf16FromJSONTyped(json, false); } export function ExitErrorOneOf16FromJSONTyped(json: any, ignoreDiscriminator: boolean): ExitErrorOneOf16 { if (json == null) { return json; } return { 'available': json['available'], 'needed': json['needed'], 'type': json['type'], }; } export function ExitErrorOneOf16ToJSON(json: any): ExitErrorOneOf16 { return ExitErrorOneOf16ToJSONTyped(json, false); } export function ExitErrorOneOf16ToJSONTyped(value?: ExitErrorOneOf16 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'available': value['available'], 'needed': value['needed'], 'type': value['type'], }; }