/* 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 { Movement } from './Movement'; import { MovementFromJSON, MovementFromJSONTyped, MovementToJSON, MovementToJSONTyped, } from './Movement'; /** * An existing movement was updated * @export * @interface WalletNotificationOneOf1 */ export interface WalletNotificationOneOf1 { /** * * @type {Movement} * @memberof WalletNotificationOneOf1 */ movement: Movement; /** * * @type {WalletNotificationOneOf1TypeEnum} * @memberof WalletNotificationOneOf1 */ type: WalletNotificationOneOf1TypeEnum; } /** * @export */ export const WalletNotificationOneOf1TypeEnum = { MovementUpdated: 'movement-updated' } as const; export type WalletNotificationOneOf1TypeEnum = typeof WalletNotificationOneOf1TypeEnum[keyof typeof WalletNotificationOneOf1TypeEnum]; /** * Check if a given object implements the WalletNotificationOneOf1 interface. */ export function instanceOfWalletNotificationOneOf1(value: object): value is WalletNotificationOneOf1 { if (!('movement' in value) || value['movement'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; return true; } export function WalletNotificationOneOf1FromJSON(json: any): WalletNotificationOneOf1 { return WalletNotificationOneOf1FromJSONTyped(json, false); } export function WalletNotificationOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletNotificationOneOf1 { if (json == null) { return json; } return { 'movement': MovementFromJSON(json['movement']), 'type': json['type'], }; } export function WalletNotificationOneOf1ToJSON(json: any): WalletNotificationOneOf1 { return WalletNotificationOneOf1ToJSONTyped(json, false); } export function WalletNotificationOneOf1ToJSONTyped(value?: WalletNotificationOneOf1 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'movement': MovementToJSON(value['movement']), 'type': value['type'], }; }