{
  "iface": "futoin.xfer.peer",
  "version": "1.0",
  "ftn3rev": "1.7",
  "imports": [
    "futoin.ping:1.0",
    "futoin.xfer.types:1.0"
  ],
  "funcs": {
    "pair": {
      "params": {
        "ext_id": "AccountExternalID",
        "currency": "CurrencyCode",
        "alias": "AccountAlias"
      },
      "result": "AccountID",
      "throws": [
        "CurrencyMismatch"
      ]
    },
    "rawXfer": {
      "params": {
        "to_external": "boolean",
        "xfer_type": "XferType",
        "orig_currency": "CurrencyCode",
        "orig_amount": "Amount",
        "src_account": "AccountID",
        "src_currency": "CurrencyCode",
        "src_amount": "Amount",
        "dst_account": "AccountID",
        "dst_currency": "CurrencyCode",
        "dst_amount": "Amount",
        "ext_id": "XferExtID",
        "ext_info": "XferExtInfo",
        "orig_ts": "XferTimestamp"
      },
      "result": "XferID",
      "throws": [
        "UnknownAccountID",
        "CurrencyMismatch",
        "InvalidAmount",
        "LimitReject",
        "OriginalTooOld",
        "OriginalMismatch",
        "NotEnoughFunds",
        "AlreadyCanceled"
      ]
    },
    "cancelXfer": {
      "params": {
        "to_external": "boolean",
        "xfer_type": "XferType",
        "orig_currency": "CurrencyCode",
        "orig_amount": "Amount",
        "src_account": "AccountID",
        "src_currency": "CurrencyCode",
        "src_amount": "Amount",
        "dst_account": "AccountID",
        "dst_currency": "CurrencyCode",
        "dst_amount": "Amount",
        "ext_id": "XferExtID",
        "ext_info": "XferExtInfo",
        "orig_ts": "XferTimestamp",
        "reason": "Reason"
      },
      "result": "boolean",
      "throws": [
        "UnknownAccountID",
        "CurrencyMismatch",
        "InvalidAmount",
        "LimitReject",
        "OriginalTooOld",
        "OriginalMismatch"
      ]
    }
  },
  "requires": [
    "SecureChannel"
  ]
}