Class: Moov::Models::Components::AccountFees
- Inherits:
-
Object
- Object
- Moov::Models::Components::AccountFees
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/accountfees.rb
Overview
A detailed breakdown of account fees.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(wallet_fee:, merchant_pci_fee:, total:, kyb_fee: nil, kyc_fee: nil, transaction_monitoring_fee: nil) ⇒ AccountFees
constructor
A new instance of AccountFees.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(wallet_fee:, merchant_pci_fee:, total:, kyb_fee: nil, kyc_fee: nil, transaction_monitoring_fee: nil) ⇒ AccountFees
Returns a new instance of AccountFees.
29 30 31 32 33 34 35 36 |
# File 'lib/moov/models/components/accountfees.rb', line 29 def initialize(wallet_fee:, merchant_pci_fee:, total:, kyb_fee: nil, kyc_fee: nil, transaction_monitoring_fee: nil) @wallet_fee = wallet_fee @merchant_pci_fee = merchant_pci_fee @total = total @kyb_fee = kyb_fee @kyc_fee = kyc_fee @transaction_monitoring_fee = transaction_monitoring_fee end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/moov/models/components/accountfees.rb', line 39 def ==(other) return false unless other.is_a? self.class return false unless @wallet_fee == other.wallet_fee return false unless @merchant_pci_fee == other.merchant_pci_fee return false unless @total == other.total return false unless @kyb_fee == other.kyb_fee return false unless @kyc_fee == other.kyc_fee return false unless @transaction_monitoring_fee == other.transaction_monitoring_fee true end |