Class: MangoModel::ClientWallet

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

Overview

Client Wallet entity The Client Wallet is very similar to a normal Wallet except the parameters description and owners are removed. Currently, there are two types of Client Wallet (specified by the funds_type parameter) - FEES where your collected turnover is stored and +CREDIT_ where repudiations are taken from. A normal wallet for a user has the FundsType of DEFAULT.

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



15
16
17
# File 'lib/mangopay/model/entity/client_wallet.rb', line 15

def balance
  @balance
end

#currencyObject

CurrencyIso

Its funds’ currency



21
22
23
# File 'lib/mangopay/model/entity/client_wallet.rb', line 21

def currency
  @currency
end

#funds_typeObject

FundsType

Its funds’ type



18
19
20
# File 'lib/mangopay/model/entity/client_wallet.rb', line 18

def funds_type
  @funds_type
end