Class: Io::Flow::V0::Models::AccountTransactionsExportType
- Inherits:
-
ExportType
- Object
- ExportType
- Io::Flow::V0::Models::AccountTransactionsExportType
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#created_after ⇒ Object
readonly
Returns the value of attribute created_after.
-
#created_before ⇒ Object
readonly
Returns the value of attribute created_before.
-
#created_from ⇒ Object
readonly
Returns the value of attribute created_from.
-
#created_on_or_after ⇒ Object
readonly
Returns the value of attribute created_on_or_after.
-
#created_on_or_before ⇒ Object
readonly
Returns the value of attribute created_on_or_before.
-
#created_to ⇒ Object
readonly
Returns the value of attribute created_to.
-
#posted_after ⇒ Object
readonly
Returns the value of attribute posted_after.
-
#posted_before ⇒ Object
readonly
Returns the value of attribute posted_before.
-
#posted_from ⇒ Object
readonly
Returns the value of attribute posted_from.
-
#posted_on_or_after ⇒ Object
readonly
Returns the value of attribute posted_on_or_after.
-
#posted_on_or_before ⇒ Object
readonly
Returns the value of attribute posted_on_or_before.
-
#posted_to ⇒ Object
readonly
Returns the value of attribute posted_to.
-
#statement_id ⇒ Object
readonly
Returns the value of attribute statement_id.
-
#transaction_summary_id ⇒ Object
readonly
Returns the value of attribute transaction_summary_id.
Attributes inherited from ExportType
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ AccountTransactionsExportType
constructor
A new instance of AccountTransactionsExportType.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from ExportType
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::ACCOUNT_TRANSACTIONS_EXPORT_TYPE) 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_after ⇒ Object (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_before ⇒ Object (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_from ⇒ Object (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_after ⇒ Object (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_before ⇒ Object (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_to ⇒ Object (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_after ⇒ Object (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_before ⇒ Object (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_from ⇒ Object (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_after ⇒ Object (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_before ⇒ Object (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_to ⇒ Object (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_id ⇒ Object (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_id ⇒ Object (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_hash ⇒ Object
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_json ⇒ Object
28943 28944 28945 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28943 def to_json JSON.dump(to_hash) end |