/* 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'; import type { ExitTxOrigin } from './ExitTxOrigin'; import { ExitTxOriginFromJSON, ExitTxOriginFromJSONTyped, ExitTxOriginToJSON, ExitTxOriginToJSONTyped, } from './ExitTxOrigin'; /** * * @export * @interface ExitTxStatusOneOf3 */ export interface ExitTxStatusOneOf3 { /** * * @type {string} * @memberof ExitTxStatusOneOf3 */ childTxid: string; /** * * @type {ExitTxOrigin} * @memberof ExitTxStatusOneOf3 */ origin: ExitTxOrigin; /** * * @type {ExitTxStatusOneOf3TypeEnum} * @memberof ExitTxStatusOneOf3 */ type: ExitTxStatusOneOf3TypeEnum; } /** * @export */ export const ExitTxStatusOneOf3TypeEnum = { AwaitingConfirmation: 'awaiting-confirmation' } as const; export type ExitTxStatusOneOf3TypeEnum = typeof ExitTxStatusOneOf3TypeEnum[keyof typeof ExitTxStatusOneOf3TypeEnum]; /** * Check if a given object implements the ExitTxStatusOneOf3 interface. */ export function instanceOfExitTxStatusOneOf3(value: object): value is ExitTxStatusOneOf3 { if (!('childTxid' in value) || value['childTxid'] === undefined) return false; if (!('origin' in value) || value['origin'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; return true; } export function ExitTxStatusOneOf3FromJSON(json: any): ExitTxStatusOneOf3 { return ExitTxStatusOneOf3FromJSONTyped(json, false); } export function ExitTxStatusOneOf3FromJSONTyped(json: any, ignoreDiscriminator: boolean): ExitTxStatusOneOf3 { if (json == null) { return json; } return { 'childTxid': json['child_txid'], 'origin': ExitTxOriginFromJSON(json['origin']), 'type': json['type'], }; } export function ExitTxStatusOneOf3ToJSON(json: any): ExitTxStatusOneOf3 { return ExitTxStatusOneOf3ToJSONTyped(json, false); } export function ExitTxStatusOneOf3ToJSONTyped(value?: ExitTxStatusOneOf3 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'child_txid': value['childTxid'], 'origin': ExitTxOriginToJSON(value['origin']), 'type': value['type'], }; }