/* 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.2 * 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 ExitErrorOneOf31 */ export interface ExitErrorOneOf31 { /** * * @type {ExitErrorOneOf31TypeEnum} * @memberof ExitErrorOneOf31 */ type: ExitErrorOneOf31TypeEnum; /** * * @type {string} * @memberof ExitErrorOneOf31 */ vtxo: string; } /** * @export */ export const ExitErrorOneOf31TypeEnum = { VtxoAlreadySpent: 'vtxo-already-spent' } as const; export type ExitErrorOneOf31TypeEnum = typeof ExitErrorOneOf31TypeEnum[keyof typeof ExitErrorOneOf31TypeEnum]; /** * Check if a given object implements the ExitErrorOneOf31 interface. */ export function instanceOfExitErrorOneOf31(value: object): value is ExitErrorOneOf31 { if (!('type' in value) || value['type'] === undefined) return false; if (!('vtxo' in value) || value['vtxo'] === undefined) return false; return true; } export function ExitErrorOneOf31FromJSON(json: any): ExitErrorOneOf31 { return ExitErrorOneOf31FromJSONTyped(json, false); } export function ExitErrorOneOf31FromJSONTyped(json: any, ignoreDiscriminator: boolean): ExitErrorOneOf31 { if (json == null) { return json; } return { 'type': json['type'], 'vtxo': json['vtxo'], }; } export function ExitErrorOneOf31ToJSON(json: any): ExitErrorOneOf31 { return ExitErrorOneOf31ToJSONTyped(json, false); } export function ExitErrorOneOf31ToJSONTyped(value?: ExitErrorOneOf31 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'type': value['type'], 'vtxo': value['vtxo'], }; }