/**
 * Cardano Wallet Backend API
 * <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
 *
 * OpenAPI spec version: 2021.3.4
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */ import globalAxios , { AxiosPromise , AxiosInstance } from 'axios' ; import { Configuration } from '../configuration' ; import { BASE_PATH , COLLECTION_FORMATS , RequestArgs , BaseAPI , RequiredError } from '../base' ; import { BadRequest } from '../models' ; import { Body12 } from '../models' ; import { Body13 } from '../models' ; import { Body14 } from '../models' ; import { InlineResponse20010 } from '../models' ; import { InlineResponse2003 } from '../models' ; import { ApiWallet } from '../models' ; import { InlineResponse2011 } from '../models' ; import { InlineResponse403 } from '../models' ; import { InlineResponse415 } from '../models' ; import { NoSuchWallet } from '../models' ; import { NotAcceptable } from '../models' ; import { UnsupportedMediaType } from '../models' ; export export const ByronWalletsApiAxiosParamCreator = function ( configuration ? ) { return { summary param { string } walletId param { * } options throws deleteByronWallet : async ( walletId , options = { } ) : Promise < RequestArgs > => { if ( walletId === null || walletId === undefined ) { throw new RequiredError ( 'walletId' , 'Required parameter walletId was null or undefined when calling deleteByronWallet.' ) ; } const localVarPath = `/byron-wallets/{walletId}` . replace ( `{${ "walletId" }}` , encodeURIComponent ( String ( walletId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'DELETE' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; const query = new URLSearchParams ( localVarUrlObj . search ) ; for ( const key in localVarQueryParameter ) { query . set ( key , localVarQueryParameter [ key ] ) ; } for ( const key in options . query ) { query . set ( key , options . query [ key ] ) ; } localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : localVarUrlObj . pathname + localVarUrlObj . search + localVarUrlObj . hash , options : localVarRequestOptions , } ; } , summary param { string } walletId param { * } options throws getByronUTxOsStatistics : async ( walletId , options = { } ) : Promise < RequestArgs > => { if ( walletId === null || walletId === undefined ) { throw new RequiredError ( 'walletId' , 'Required parameter walletId was null or undefined when calling getByronUTxOsStatistics.' ) ; } const localVarPath = `/byron-wallets/{walletId}/statistics/utxos` . replace ( `{${ "walletId" }}` , encodeURIComponent ( String ( walletId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'GET' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; const query = new URLSearchParams ( localVarUrlObj . search ) ; for ( const key in localVarQueryParameter ) { query . set ( key , localVarQueryParameter [ key ] ) ; } for ( const key in options . query ) { query . set ( key , options . query [ key ] ) ; } localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : localVarUrlObj . pathname + localVarUrlObj . search + localVarUrlObj . hash , options : localVarRequestOptions , } ; } , summary param { string } walletId param { * } options throws getByronWallet : async ( walletId , options = { } ) : Promise < RequestArgs > => { if ( walletId === null || walletId === undefined ) { throw new RequiredError ( 'walletId' , 'Required parameter walletId was null or undefined when calling getByronWallet.' ) ; } const localVarPath = `/byron-wallets/{walletId}` . replace ( `{${ "walletId" }}` , encodeURIComponent ( String ( walletId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'GET' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; const query = new URLSearchParams ( localVarUrlObj . search ) ; for ( const key in localVarQueryParameter ) { query . set ( key , localVarQueryParameter [ key ] ) ; } for ( const key in options . query ) { query . set ( key , options . query [ key ] ) ; } localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : localVarUrlObj . pathname + localVarUrlObj . search + localVarUrlObj . hash , options : localVarRequestOptions , } ; } , summary param { * } options throws listByronWallets : async ( options = { } ) : Promise < RequestArgs > => { const localVarPath = `/byron-wallets` ; const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'GET' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; const query = new URLSearchParams ( localVarUrlObj . search ) ; for ( const key in localVarQueryParameter ) { query . set ( key , localVarQueryParameter [ key ] ) ; } for ( const key in options . query ) { query . set ( key , options . query [ key ] ) ; } localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : localVarUrlObj . pathname + localVarUrlObj . search + localVarUrlObj . hash , options : localVarRequestOptions , } ; } , summary param { Body12 } body param { * } options throws postByronWallet : async ( body , options = { } ) : Promise < RequestArgs > => { if ( body === null || body === undefined ) { throw new RequiredError ( 'body' , 'Required parameter body was null or undefined when calling postByronWallet.' ) ; } const localVarPath = `/byron-wallets` ; const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'POST' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; const query = new URLSearchParams ( localVarUrlObj . search ) ; for ( const key in localVarQueryParameter ) { query . set ( key , localVarQueryParameter [ key ] ) ; } for ( const key in options . query ) { query . set ( key , options . query [ key ] ) ; } localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; const needsSerialization = ( typeof body !== "string" ) || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ; localVarRequestOptions . data = needsSerialization ? JSON . stringify ( body !== undefined ? body : { } ) : ( body || "" ) ; return { url : localVarUrlObj . pathname + localVarUrlObj . search + localVarUrlObj . hash , options : localVarRequestOptions , } ; } , summary param { Body13 } body param { string } walletId param { * } options throws putByronWallet : async ( body , walletId , options = { } ) : Promise < RequestArgs > => { if ( body === null || body === undefined ) { throw new RequiredError ( 'body' , 'Required parameter body was null or undefined when calling putByronWallet.' ) ; } if ( walletId === null || walletId === undefined ) { throw new RequiredError ( 'walletId' , 'Required parameter walletId was null or undefined when calling putByronWallet.' ) ; } const localVarPath = `/byron-wallets/{walletId}` . replace ( `{${ "walletId" }}` , encodeURIComponent ( String ( walletId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'PUT' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; const query = new URLSearchParams ( localVarUrlObj . search ) ; for ( const key in localVarQueryParameter ) { query . set ( key , localVarQueryParameter [ key ] ) ; } for ( const key in options . query ) { query . set ( key , options . query [ key ] ) ; } localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; const needsSerialization = ( typeof body !== "string" ) || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ; localVarRequestOptions . data = needsSerialization ? JSON . stringify ( body !== undefined ? body : { } ) : ( body || "" ) ; return { url : localVarUrlObj . pathname + localVarUrlObj . search + localVarUrlObj . hash , options : localVarRequestOptions , } ; } , summary param { Body14 } body param { string } walletId param { * } options throws putByronWalletPassphrase : async ( body , walletId , options = { } ) : Promise < RequestArgs > => { if ( body === null || body === undefined ) { throw new RequiredError ( 'body' , 'Required parameter body was null or undefined when calling putByronWalletPassphrase.' ) ; } if ( walletId === null || walletId === undefined ) { throw new RequiredError ( 'walletId' , 'Required parameter walletId was null or undefined when calling putByronWalletPassphrase.' ) ; } const localVarPath = `/byron-wallets/{walletId}/passphrase` . replace ( `{${ "walletId" }}` , encodeURIComponent ( String ( walletId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'PUT' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; const query = new URLSearchParams ( localVarUrlObj . search ) ; for ( const key in localVarQueryParameter ) { query . set ( key , localVarQueryParameter [ key ] ) ; } for ( const key in options . query ) { query . set ( key , options . query [ key ] ) ; } localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; const needsSerialization = ( typeof body !== "string" ) || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ; localVarRequestOptions . data = needsSerialization ? JSON . stringify ( body !== undefined ? body : { } ) : ( body || "" ) ; return { url : localVarUrlObj . pathname + localVarUrlObj . search + localVarUrlObj . hash , options : localVarRequestOptions , } ; } , } ; } ; export export const ByronWalletsApiFp = function ( configuration ? ) { return { summary param { string } walletId param { * } options throws async deleteByronWallet ( walletId , options ? ) { const localVarAxiosArgs = await ByronWalletsApiAxiosParamCreator ( configuration ) . deleteByronWallet ( walletId , options ) ; return ( axios = globalAxios , basePath = BASE_PATH ) => { const axiosRequestArgs = { ... localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ; return axios . request ( axiosRequestArgs ) ; } ; } , summary param { string } walletId param { * } options throws async getByronUTxOsStatistics ( walletId , options ? ) { const localVarAxiosArgs = await ByronWalletsApiAxiosParamCreator ( configuration ) . getByronUTxOsStatistics ( walletId , options ) ; return ( axios = globalAxios , basePath = BASE_PATH ) => { const axiosRequestArgs = { ... localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ; return axios . request ( axiosRequestArgs ) ; } ; } , summary param { string } walletId param { * } options throws async getByronWallet ( walletId , options ? ) { const localVarAxiosArgs = await ByronWalletsApiAxiosParamCreator ( configuration ) . getByronWallet ( walletId , options ) ; return ( axios = globalAxios , basePath = BASE_PATH ) => { const axiosRequestArgs = { ... localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ; return axios . request ( axiosRequestArgs ) ; } ; } , summary param { * } options throws async listByronWallets ( options ? ) { const localVarAxiosArgs = await ByronWalletsApiAxiosParamCreator ( configuration ) . listByronWallets ( options ) ; return ( axios = globalAxios , basePath = BASE_PATH ) => { const axiosRequestArgs = { ... localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ; return axios . request ( axiosRequestArgs ) ; } ; } , summary param { Body12 } body param { * } options throws async postByronWallet ( body , options ? ) { const localVarAxiosArgs = await ByronWalletsApiAxiosParamCreator ( configuration ) . postByronWallet ( body , options ) ; return ( axios = globalAxios , basePath = BASE_PATH ) => { const axiosRequestArgs = { ... localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ; return axios . request ( axiosRequestArgs ) ; } ; } , summary param { Body13 } body param { string } walletId param { * } options throws async putByronWallet ( body , walletId , options ? ) { const localVarAxiosArgs = await ByronWalletsApiAxiosParamCreator ( configuration ) . putByronWallet ( body , walletId , options ) ; return ( axios = globalAxios , basePath = BASE_PATH ) => { const axiosRequestArgs = { ... localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ; return axios . request ( axiosRequestArgs ) ; } ; } , summary param { Body14 } body param { string } walletId param { * } options throws async putByronWalletPassphrase ( body , walletId , options ? ) { const localVarAxiosArgs = await ByronWalletsApiAxiosParamCreator ( configuration ) . putByronWalletPassphrase ( body , walletId , options ) ; return ( axios = globalAxios , basePath = BASE_PATH ) => { const axiosRequestArgs = { ... localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ; return axios . request ( axiosRequestArgs ) ; } ; } , } ; } ; export export const ByronWalletsApiFactory = function ( configuration ? , basePath ? , axios ? ) { return { summary param { string } walletId param { * } options throws deleteByronWallet ( walletId , options ? ) { return ByronWalletsApiFp ( configuration ) . deleteByronWallet ( walletId , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , summary param { string } walletId param { * } options throws getByronUTxOsStatistics ( walletId , options ? ) { return ByronWalletsApiFp ( configuration ) . getByronUTxOsStatistics ( walletId , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , summary param { string } walletId param { * } options throws getByronWallet ( walletId , options ? ) { return ByronWalletsApiFp ( configuration ) . getByronWallet ( walletId , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , summary param { * } options throws listByronWallets ( options ? ) { return ByronWalletsApiFp ( configuration ) . listByronWallets ( options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , summary param { Body12 } body param { * } options throws postByronWallet ( body , options ? ) { return ByronWalletsApiFp ( configuration ) . postByronWallet ( body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , summary param { Body13 } body param { string } walletId param { * } options throws putByronWallet ( body , walletId , options ? ) { return ByronWalletsApiFp ( configuration ) . putByronWallet ( body , walletId , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , summary param { Body14 } body param { string } walletId param { * } options throws putByronWalletPassphrase ( body , walletId , options ? ) { return ByronWalletsApiFp ( configuration ) . putByronWalletPassphrase ( body , walletId , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , } ; } ; export class extends BaseAPI export class ByronWalletsApi extends BaseAPI { summary param { string } walletId param { * } options throws memberof public deleteByronWallet ( walletId , options ? ) { return ByronWalletsApiFp ( this . configuration ) . deleteByronWallet ( walletId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } summary param { string } walletId param { * } options throws memberof public getByronUTxOsStatistics ( walletId , options ? ) { return ByronWalletsApiFp ( this . configuration ) . getByronUTxOsStatistics ( walletId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } summary param { string } walletId param { * } options throws memberof public getByronWallet ( walletId , options ? ) { return ByronWalletsApiFp ( this . configuration ) . getByronWallet ( walletId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } summary param { * } options throws memberof public listByronWallets ( options ? ) { return ByronWalletsApiFp ( this . configuration ) . listByronWallets ( options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } summary param { Body12 } body param { * } options throws memberof public postByronWallet ( body , options ? ) { return ByronWalletsApiFp ( this . configuration ) . postByronWallet ( body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } summary param { Body13 } body param { string } walletId param { * } options throws memberof public putByronWallet ( body , walletId , options ? ) { return ByronWalletsApiFp ( this . configuration ) . putByronWallet ( body , walletId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } summary param { Body14 } body param { string } walletId param { * } options throws memberof public putByronWalletPassphrase ( body , walletId , options ? ) { return ByronWalletsApiFp ( this . configuration ) . putByronWalletPassphrase ( body , walletId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } }