/* 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 ExitErrorOneOf30 */ export interface ExitErrorOneOf30 { /** * * @type {ExitErrorOneOf30TypeEnum} * @memberof ExitErrorOneOf30 */ type: ExitErrorOneOf30TypeEnum; /** * * @type {string} * @memberof ExitErrorOneOf30 */ vtxo: string; } /** * @export */ export const ExitErrorOneOf30TypeEnum = { VtxoAlreadyExited: 'vtxo-already-exited' } as const; export type ExitErrorOneOf30TypeEnum = typeof ExitErrorOneOf30TypeEnum[keyof typeof ExitErrorOneOf30TypeEnum]; /** * Check if a given object implements the ExitErrorOneOf30 interface. */ export function instanceOfExitErrorOneOf30(value: object): value is ExitErrorOneOf30 { if (!('type' in value) || value['type'] === undefined) return false; if (!('vtxo' in value) || value['vtxo'] === undefined) return false; return true; } export function ExitErrorOneOf30FromJSON(json: any): ExitErrorOneOf30 { return ExitErrorOneOf30FromJSONTyped(json, false); } export function ExitErrorOneOf30FromJSONTyped(json: any, ignoreDiscriminator: boolean): ExitErrorOneOf30 { if (json == null) { return json; } return { 'type': json['type'], 'vtxo': json['vtxo'], }; } export function ExitErrorOneOf30ToJSON(json: any): ExitErrorOneOf30 { return ExitErrorOneOf30ToJSONTyped(json, false); } export function ExitErrorOneOf30ToJSONTyped(value?: ExitErrorOneOf30 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'type': value['type'], 'vtxo': value['vtxo'], }; }