Class: MangoModel::Wallet

Inherits:
EntityBase show all
Includes:
MangoPay::Jsonifier
Defined in:
lib/mangopay/model/entity/wallet.rb

Overview

Wallet entity A Wallet is an object in which PayIns and Transfers from users are stored in order to collect money. Wallets can be paid into, funds can be withdrawn from them or transferred from one Wallet to another.

Constant Summary

Constants included from MangoPay::Jsonifier

MangoPay::Jsonifier::LOG

Instance Attribute Summary collapse

Attributes inherited from EntityBase

#creation_date, #id, #tag

Method Summary

Methods included from MangoPay::Jsonifier

#dejsonify, #jsonify!

Methods included from NonInstantiable

#initialize

Instance Attribute Details

#balanceObject

Money

Its current balance



17
18
19
# File 'lib/mangopay/model/entity/wallet.rb', line 17

def balance
  @balance
end

#currencyObject

CurrencyIso

Its funds’ currency



26
27
28
# File 'lib/mangopay/model/entity/wallet.rb', line 26

def currency
  @currency
end

#descriptionObject

String

Its description



23
24
25
# File 'lib/mangopay/model/entity/wallet.rb', line 23

def description
  @description
end

#funds_typeObject

FundsType

Its funds’ type



20
21
22
# File 'lib/mangopay/model/entity/wallet.rb', line 20

def funds_type
  @funds_type
end

#ownersObject

Array

Its owners (currently only one may be specified)



14
15
16
# File 'lib/mangopay/model/entity/wallet.rb', line 14

def owners
  @owners
end