Class: Moov::Models::Components::BillingSummary

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/billingsummary.rb

Overview

A summary of all fees included in a statement.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(card_acquiring: nil, ach: nil, instant_payments: nil, platform_fees: nil, account_fees: nil, adjustment_fees: nil, other_fees: nil, other_card_fees: nil, total: nil, net_income_subtotal: nil, revenue_share: nil, residual_subtotal: nil, monthly_partner_costs: nil, net_partner_payment: nil) ⇒ BillingSummary

Returns a new instance of BillingSummary.



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/moov/models/components/billingsummary.rb', line 51

def initialize(card_acquiring: nil, ach: nil, instant_payments: nil, platform_fees: nil, account_fees: nil, adjustment_fees: nil, other_fees: nil, other_card_fees: nil, total: nil, net_income_subtotal: nil, revenue_share: nil, residual_subtotal: nil, monthly_partner_costs: nil, net_partner_payment: nil)
  @card_acquiring = card_acquiring
  @ach = ach
  @instant_payments = instant_payments
  @platform_fees = platform_fees
  @account_fees = 
  @adjustment_fees = adjustment_fees
  @other_fees = other_fees
  @other_card_fees = other_card_fees
  @total = total
  @net_income_subtotal = net_income_subtotal
  @revenue_share = revenue_share
  @residual_subtotal = residual_subtotal
  @monthly_partner_costs = monthly_partner_costs
  @net_partner_payment = net_partner_payment
end

Instance Method Details

#==(other) ⇒ Object



69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/moov/models/components/billingsummary.rb', line 69

def ==(other)
  return false unless other.is_a? self.class
  return false unless @card_acquiring == other.card_acquiring
  return false unless @ach == other.ach
  return false unless @instant_payments == other.instant_payments
  return false unless @platform_fees == other.platform_fees
  return false unless @account_fees == other.
  return false unless @adjustment_fees == other.adjustment_fees
  return false unless @other_fees == other.other_fees
  return false unless @other_card_fees == other.other_card_fees
  return false unless @total == other.total
  return false unless @net_income_subtotal == other.net_income_subtotal
  return false unless @revenue_share == other.revenue_share
  return false unless @residual_subtotal == other.residual_subtotal
  return false unless @monthly_partner_costs == other.monthly_partner_costs
  return false unless @net_partner_payment == other.net_partner_payment
  true
end