Class: Io::Flow::V0::Models::AccountTransactionsExportType

Inherits:
ExportType
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Attributes inherited from ExportType

#discriminator

Instance Method Summary collapse

Methods inherited from ExportType

from_json, #to_hash

Constructor Details

#initialize(incoming = {}) ⇒ AccountTransactionsExportType

Returns a new instance of AccountTransactionsExportType.



28924
28925
28926
28927
28928
28929
28930
28931
28932
28933
28934
28935
28936
28937
28938
28939
28940
28941
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28924

def initialize(incoming={})
  super(:discriminator => ExportType::Types::)
  opts = HttpClient::Helper.symbolize_keys(incoming)
  @statement_id = (x = opts.delete(:statement_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('statement_id', x, String))
  @transaction_summary_id = (x = opts.delete(:transaction_summary_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('transaction_summary_id', x, String))
  @created_from = (x = opts.delete(:created_from); x.nil? ? nil : HttpClient::Preconditions.assert_class('created_from', HttpClient::Helper.to_date_iso8601(x), Date))
  @created_to = (x = opts.delete(:created_to); x.nil? ? nil : HttpClient::Preconditions.assert_class('created_to', HttpClient::Helper.to_date_iso8601(x), Date))
  @created_on_or_after = (x = opts.delete(:created_on_or_after); x.nil? ? nil : HttpClient::Preconditions.assert_class('created_on_or_after', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
  @created_after = (x = opts.delete(:created_after); x.nil? ? nil : HttpClient::Preconditions.assert_class('created_after', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
  @created_on_or_before = (x = opts.delete(:created_on_or_before); x.nil? ? nil : HttpClient::Preconditions.assert_class('created_on_or_before', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
  @created_before = (x = opts.delete(:created_before); x.nil? ? nil : HttpClient::Preconditions.assert_class('created_before', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
  @posted_from = (x = opts.delete(:posted_from); x.nil? ? nil : HttpClient::Preconditions.assert_class('posted_from', HttpClient::Helper.to_date_iso8601(x), Date))
  @posted_to = (x = opts.delete(:posted_to); x.nil? ? nil : HttpClient::Preconditions.assert_class('posted_to', HttpClient::Helper.to_date_iso8601(x), Date))
  @posted_on_or_after = (x = opts.delete(:posted_on_or_after); x.nil? ? nil : HttpClient::Preconditions.assert_class('posted_on_or_after', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
  @posted_after = (x = opts.delete(:posted_after); x.nil? ? nil : HttpClient::Preconditions.assert_class('posted_after', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
  @posted_on_or_before = (x = opts.delete(:posted_on_or_before); x.nil? ? nil : HttpClient::Preconditions.assert_class('posted_on_or_before', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
  @posted_before = (x = opts.delete(:posted_before); x.nil? ? nil : HttpClient::Preconditions.assert_class('posted_before', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
end

Instance Attribute Details

#created_afterObject (readonly)

Returns the value of attribute created_after.



28922
28923
28924
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28922

def created_after
  @created_after
end

#created_beforeObject (readonly)

Returns the value of attribute created_before.



28922
28923
28924
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28922

def created_before
  @created_before
end

#created_fromObject (readonly)

Returns the value of attribute created_from.



28922
28923
28924
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28922

def created_from
  @created_from
end

#created_on_or_afterObject (readonly)

Returns the value of attribute created_on_or_after.



28922
28923
28924
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28922

def created_on_or_after
  @created_on_or_after
end

#created_on_or_beforeObject (readonly)

Returns the value of attribute created_on_or_before.



28922
28923
28924
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28922

def created_on_or_before
  @created_on_or_before
end

#created_toObject (readonly)

Returns the value of attribute created_to.



28922
28923
28924
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28922

def created_to
  @created_to
end

#posted_afterObject (readonly)

Returns the value of attribute posted_after.



28922
28923
28924
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28922

def posted_after
  @posted_after
end

#posted_beforeObject (readonly)

Returns the value of attribute posted_before.



28922
28923
28924
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28922

def posted_before
  @posted_before
end

#posted_fromObject (readonly)

Returns the value of attribute posted_from.



28922
28923
28924
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28922

def posted_from
  @posted_from
end

#posted_on_or_afterObject (readonly)

Returns the value of attribute posted_on_or_after.



28922
28923
28924
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28922

def posted_on_or_after
  @posted_on_or_after
end

#posted_on_or_beforeObject (readonly)

Returns the value of attribute posted_on_or_before.



28922
28923
28924
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28922

def posted_on_or_before
  @posted_on_or_before
end

#posted_toObject (readonly)

Returns the value of attribute posted_to.



28922
28923
28924
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28922

def posted_to
  @posted_to
end

#statement_idObject (readonly)

Returns the value of attribute statement_id.



28922
28923
28924
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28922

def statement_id
  @statement_id
end

#transaction_summary_idObject (readonly)

Returns the value of attribute transaction_summary_id.



28922
28923
28924
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28922

def transaction_summary_id
  @transaction_summary_id
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



28947
28948
28949
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28947

def copy(incoming={})
  AccountTransactionsExportType.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end

#subtype_to_hashObject



28951
28952
28953
28954
28955
28956
28957
28958
28959
28960
28961
28962
28963
28964
28965
28966
28967
28968
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28951

def subtype_to_hash
  {
    :statement_id => statement_id,
    :transaction_summary_id => transaction_summary_id,
    :created_from => created_from,
    :created_to => created_to,
    :created_on_or_after => created_on_or_after,
    :created_after => created_after,
    :created_on_or_before => created_on_or_before,
    :created_before => created_before,
    :posted_from => posted_from,
    :posted_to => posted_to,
    :posted_on_or_after => posted_on_or_after,
    :posted_after => posted_after,
    :posted_on_or_before => posted_on_or_before,
    :posted_before => posted_before
  }
end

#to_jsonObject



28943
28944
28945
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28943

def to_json
  JSON.dump(to_hash)
end