/* 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'; /** * Fees for lightning receive operations. * @export * @interface LightningReceiveFees */ export interface LightningReceiveFees { /** * A fee applied to every transaction regardless of value. * @type {number} * @memberof LightningReceiveFees */ baseFeeSat: number; /** * PPM (parts per million) fee rate to apply based on the value of the transaction. * @type {number} * @memberof LightningReceiveFees */ ppm: number; } /** * Check if a given object implements the LightningReceiveFees interface. */ export function instanceOfLightningReceiveFees(value: object): value is LightningReceiveFees { if (!('baseFeeSat' in value) || value['baseFeeSat'] === undefined) return false; if (!('ppm' in value) || value['ppm'] === undefined) return false; return true; } export function LightningReceiveFeesFromJSON(json: any): LightningReceiveFees { return LightningReceiveFeesFromJSONTyped(json, false); } export function LightningReceiveFeesFromJSONTyped(json: any, ignoreDiscriminator: boolean): LightningReceiveFees { if (json == null) { return json; } return { 'baseFeeSat': json['base_fee_sat'], 'ppm': json['ppm'], }; } export function LightningReceiveFeesToJSON(json: any): LightningReceiveFees { return LightningReceiveFeesToJSONTyped(json, false); } export function LightningReceiveFeesToJSONTyped(value?: LightningReceiveFees | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'base_fee_sat': value['baseFeeSat'], 'ppm': value['ppm'], }; }