-
Notifications
You must be signed in to change notification settings - Fork 38
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 #29 from Mangopay/MPSDK-13-implements-client-walle…
…ts-api implemented client wallet api
- Loading branch information
Showing
4 changed files
with
171 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
var EntityBase = require('./EntityBase'); | ||
var Money = require('./Money'); | ||
|
||
var ClientWallet = EntityBase.extend({ | ||
defaults : { | ||
Balance : null, | ||
Currency : null, | ||
FundsType : null | ||
}, | ||
|
||
getSubObjects: function() { | ||
return { | ||
'Balance': Money | ||
} | ||
}, | ||
|
||
/** | ||
* Get array with read-only properties | ||
* @return {Array} List of string properties | ||
*/ | ||
getReadOnlyProperties: function() { | ||
var properties = EntityBase.prototype.getReadOnlyProperties(); | ||
properties.push('Balance'); | ||
return properties; | ||
} | ||
}); | ||
|
||
module.exports = ClientWallet; |
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