Wallet - Mangopay/mangopay2-ruby-sdk GitHub Wiki
Property | Type | More |
---|---|---|
Id | Integer | |
Tag | String | |
CreationDate | Time | |
Owners | Array | |
Description | String | < 200 chars |
Balance | Money | Hash { Currency: 'EUR', Amount: 10 } |
Currency | String | ISO ("EUR", "USD", "GBP", "PLN" or "CHF") |
- wallet: a Hash:
A Wallet Object
MangoPay::Wallet.create({
Owners: [43243],
Description: 'A test wallet',
Currency: 'EUR',
Tag: 'Test Time'
})
- wallet_id: the id of the hash you want to update
- wallet: a Hash:
- Description
- Tag
A Wallet Object
MangoPay::Wallet.update(new_wallet['Id'], {
Description: 'Updated Description',
Tag: 'Updated Tag'
})
- wallet_id: the id of the wallet you want to retrieve
A Wallet Object
MangoPay::Wallet.fetch(32132)