/* 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'; /** * Query parameters for building a BIP 321 URI. * @export * @interface Bip321UriQuery */ export interface Bip321UriQuery { /** * Whether to upper-case the returned `bip321` URI so QR encoders can use * the compact alphanumeric mode. Defaults to `false`. * Requesting an upper-case URI fails when it carries case-sensitive data * (a label or message with lowercase characters, or base58 address) that * cannot be upper-cased. * @type {boolean} * @memberof Bip321UriQuery */ uppercase?: boolean | null; } /** * Check if a given object implements the Bip321UriQuery interface. */ export function instanceOfBip321UriQuery(value: object): value is Bip321UriQuery { return true; } export function Bip321UriQueryFromJSON(json: any): Bip321UriQuery { return Bip321UriQueryFromJSONTyped(json, false); } export function Bip321UriQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): Bip321UriQuery { if (json == null) { return json; } return { 'uppercase': json['uppercase'] == null ? undefined : json['uppercase'], }; } export function Bip321UriQueryToJSON(json: any): Bip321UriQuery { return Bip321UriQueryToJSONTyped(json, false); } export function Bip321UriQueryToJSONTyped(value?: Bip321UriQuery | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'uppercase': value['uppercase'], }; }