Class: Moov::Models::Components::Statement

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

Overview

A billing statement for a Moov account.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(statement_id:, statement_name:, file_name:, file_size:, billing_period_start_date_time:, billing_period_end_date_time:, subscription_i_ds:, summary:, created_on:, updated_on:, card_acquiring_fees: nil, ach_fees: nil, instant_payment_fees: nil, platform_fees: nil, account_fees: nil, other_card_fees: nil, partner_fees: nil) ⇒ Statement

Returns a new instance of Statement.



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/moov/models/components/statement.rb', line 53

def initialize(statement_id:, statement_name:, file_name:, file_size:, billing_period_start_date_time:, billing_period_end_date_time:, subscription_i_ds:, summary:, created_on:, updated_on:, card_acquiring_fees: nil, ach_fees: nil, instant_payment_fees: nil, platform_fees: nil, account_fees: nil, other_card_fees: nil, partner_fees: nil)
  @statement_id = statement_id
  @statement_name = statement_name
  @file_name = file_name
  @file_size = file_size
  @billing_period_start_date_time = billing_period_start_date_time
  @billing_period_end_date_time = billing_period_end_date_time
  @subscription_i_ds = subscription_i_ds
  @summary = summary
  @created_on = created_on
  @updated_on = updated_on
  @card_acquiring_fees = card_acquiring_fees
  @ach_fees = ach_fees
  @instant_payment_fees = instant_payment_fees
  @platform_fees = platform_fees
  @account_fees = 
  @other_card_fees = other_card_fees
  @partner_fees = partner_fees
end

Instance Method Details

#==(other) ⇒ Object



74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/moov/models/components/statement.rb', line 74

def ==(other)
  return false unless other.is_a? self.class
  return false unless @statement_id == other.statement_id
  return false unless @statement_name == other.statement_name
  return false unless @file_name == other.file_name
  return false unless @file_size == other.file_size
  return false unless @billing_period_start_date_time == other.billing_period_start_date_time
  return false unless @billing_period_end_date_time == other.billing_period_end_date_time
  return false unless @subscription_i_ds == other.subscription_i_ds
  return false unless @summary == other.summary
  return false unless @created_on == other.created_on
  return false unless @updated_on == other.updated_on
  return false unless @card_acquiring_fees == other.card_acquiring_fees
  return false unless @ach_fees == other.ach_fees
  return false unless @instant_payment_fees == other.instant_payment_fees
  return false unless @platform_fees == other.platform_fees
  return false unless @account_fees == other.
  return false unless @other_card_fees == other.other_card_fees
  return false unless @partner_fees == other.partner_fees
  true
end