import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { ExternalWalletBankModel } from '../model/externalWallet'; import { ExternalWalletListBankModel } from '../model/externalWalletList'; import { PostExternalWalletBankModel } from '../model/postExternalWallet'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare class ExternalWalletsService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); private addToHttpParams; private addToHttpParamsRecursive; /** * Create ExternalWallet * Create an ExternalWallet. ## Wallet creation External Wallets can be created for a Bank or a Customer. To create a wallet for your Bank, omit the `customer_guid` parameter in the request body. To create a wallet for your Customers, include the `customer_guid` parameter in the request body. ## State | State | Description | |-------|-------------| | storing | The Platform is storing the external wallet details in our private store | | pending | The Platform is waiting for the external wallet to be created | | reviewing | The Platform is reviewing the external wallet for compliance | | completed | The Platform has created the external wallet | | failed | The Platform was not able to successfully create the external wallet | | deleting | The Platform is deleting the external wallet | | deleted | The Platform has deleted the external wallet | ## Failure Codes | Code | Description | |-------|-------------| | invalid_address | The provided wallet address is invalid | | prohibited_address | The provided wallet address failed screening | External wallets can be added to the bank by leaving the customer_guid blank. External wallets added to the bank can be used by any customer of the bank. External wallets can also be added to a specific customer by providing the customer_guid. External wallets added to a customer can only be used by that customer. Required scope: **external_wallets:execute** * @param postExternalWalletBankModel * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ createExternalWallet(postExternalWalletBankModel: PostExternalWalletBankModel, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; createExternalWallet(postExternalWalletBankModel: PostExternalWalletBankModel, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; createExternalWallet(postExternalWalletBankModel: PostExternalWalletBankModel, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * Delete External Wallet * Deletes an external wallet. Required scope: **external_wallets:execute** * @param externalWalletGuid Identifier for the external wallet. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ deleteExternalWallet(externalWalletGuid: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; deleteExternalWallet(externalWalletGuid: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; deleteExternalWallet(externalWalletGuid: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * Get External Wallet * Retrieves an external_wallet. Required scope: **external_wallets:read** * @param externalWalletGuid Identifier for the external_wallet. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ getExternalWallet(externalWalletGuid: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; getExternalWallet(externalWalletGuid: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; getExternalWallet(externalWalletGuid: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * Get external wallets list * Retrieves a listing of external wallets. Records are sorted by creation date in descending order. Required scope: **external_wallets:read** * @param page The page index to retrieve. * @param perPage The number of entities per page to return. * @param owner The owner of the entity. * @param guid Comma separated external_wallet_guids to list external_wallets for. * @param bankGuid Comma separated bank_guids to list external_wallets for. * @param customerGuid Comma separated customer_guids to list external_wallets for. * @param counterpartyGuid Comma separated counterparty_guids to list external_wallets for. * @param asset Comma separated assets to list external_wallets for. * @param state Comma separated states to list external_wallets for. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ listExternalWallets(page?: string, perPage?: string, owner?: string, guid?: string, bankGuid?: string, customerGuid?: string, counterpartyGuid?: string, asset?: string, state?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; listExternalWallets(page?: string, perPage?: string, owner?: string, guid?: string, bankGuid?: string, customerGuid?: string, counterpartyGuid?: string, asset?: string, state?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; listExternalWallets(page?: string, perPage?: string, owner?: string, guid?: string, bankGuid?: string, customerGuid?: string, counterpartyGuid?: string, asset?: string, state?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }