Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Bitcapital

The main interface for the Bitcapital SDK, holds credentials, instance options and all internal modules.

Hierarchy

  • Bitcapital

Index

Constructors

Protected constructor

  • Construct a new Bitcapital instance, not safe to call directly, use the init() method.

    Parameters

    Returns Bitcapital

Properties

Protected _session

_session: Session

Protected options

The bitcapital options and credentials

Static Protected _instance

_instance: Bitcapital

Methods

addresses

  • Interface for the Addresses service.

    Returns AddressWebService

assets

  • Interface for the Assets service.

    Returns AssetWebService

bankings

  • Interface for the Bankings service.

    Returns BankingWebService

boletos

  • Interface for the Boleto service.

    Returns BoletoWebService

cards

  • Interface for the Card service.

    Returns CardWebService

consumers

  • Interface for the Consumers service.

    Returns ConsumerWebService

current

  • current(): User | undefined
  • Get the currently authenticated user in the SDK, if any.

    Returns User | undefined

documents

  • Interface for the Documents service.

    Returns DocumentWebService

domains

  • Interface for the Domains service.

    Returns DomainWebService

mediators

  • Interface for the Mediators service.

    Returns MediatorWebService

oauth

  • Interface for the OAuth 2.0 service.

    Returns OAuthWebService

payments

  • Interface for the Payments service.

    Returns PaymentWebService

phones

  • Interface for the Phones service.

    Returns PhoneWebService

products

  • Interface for the Product service.

    Returns ProductWebService

session

  • Get the Bitcapital session instance.

    Returns Session

sign

  • sign(request: RequestSigningOptions): RequestSigningHeaders
  • Generate signature headers for the specificed request.

    Parameters

    • request: RequestSigningOptions

      The request object

    Returns RequestSigningHeaders

status

transactions

users

  • Interface for the Users service.

    Returns UserWebService

wallets

  • Interface for the Wallets service.

    Returns WalletWebService

Static getInstance

  • Gets the singleton instance, if already initialized and available.

    Returns Bitcapital | undefined

Static initialize

  • Initialize the Bitcapital SDK with credentials.

    Parameters

    Returns Bitcapital

Generated using TypeDoc