This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from karlsmarx/master
Transfer and Balance Support
- Loading branch information
Showing
12 changed files
with
1,276 additions
and
1,024 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
'use strict'; | ||
|
||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
|
||
var _api = require('../client/api'); | ||
|
||
var _api2 = _interopRequireDefault(_api); | ||
|
||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
|
||
var getOne = function getOne(opts) { | ||
return _api2.default.get(opts, '/balances'); | ||
}; | ||
|
||
exports.default = { | ||
getOne: getOne | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
'use strict'; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
|
||
var _api = require('../client/api'); | ||
|
||
var _api2 = _interopRequireDefault(_api); | ||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
|
||
var getOne = function getOne(opts, _id) { | ||
return _api2.default.get(opts, '/transfers', _id); | ||
}; | ||
|
||
var getAll = function getAll(opts) { | ||
return _api2.default.get(opts, '/transfers'); | ||
}; | ||
|
||
var reverse = function reverse(opts, _id) { | ||
return _api2.default.post(opts, '/transfers/' + _id + '/reverse'); | ||
}; | ||
|
||
var create = function create(opts, transfer) { | ||
return _api2.default.post(opts, '/transfers', transfer); | ||
}; | ||
|
||
exports.default = { | ||
getOne: getOne, | ||
getAll: getAll, | ||
reverse: reverse, | ||
create: create | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
'use strict'; | ||
|
||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
|
||
var _api = require('../client/api'); | ||
|
||
var _api2 = _interopRequireDefault(_api); | ||
|
||
function _interopRequireDefault (obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
|
||
var getOne = function getOne (opts) { | ||
return _api2.default.get(opts, '/balances'); | ||
}; | ||
|
||
exports.default = { | ||
getOne: getOne | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import api from '../client/api' | ||
|
||
const getOne = (opts, _id) => api.get(opts, '/transfers', _id) | ||
|
||
const getAll = (opts) => api.get(opts, '/transfers') | ||
|
||
const reverse = (opts, _id) => api.post(opts, `/transfers/${_id}/reverse`) | ||
|
||
const create = (opts, transfer) => api.post(opts, '/transfers', transfer) | ||
|
||
export default { | ||
getOne, | ||
getAll, | ||
reverse, | ||
create | ||
} |
Oops, something went wrong.