JSPM

svb-book-transfers

1.0.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 3
    • Score
      100M100P100Q30105F
    • License MIT

    Helper API to issue wire transfers

    Package Exports

    • svb-book-transfers

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (svb-book-transfers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    svb-book-transfers

    A NodeJS helper library to create, cancel, and retrieve records of book transfers between Silicon Valley Bank accounts.

    Uses SVB-Client module and your API credentials.

    Usage

    let client = new SVBClient({
      API_KEY: '',
      HMAC_SECRET: ''
    });
    let Transfers = new SVBBookTransfers(client);
    
    // initiate a book transfer
    Transfers.create({ ... }, (err, record) => {
      console.log(record.id);
    });
    
    // retrieve details of a book transfer (including status)
    Transfers.get(transfer_id, (err, record) => { });
    
    // get all of my book transfers
    Transfers.all((err, list) => { });
    
    // cancel a book transfer
    // you cannot change a book transfer to any other status
    Transfers.updateStatus(transfer_id, 'canceled', (err) => { });

    Installation

    npm install svb-book-transfers --save