Class: Io::Flow::V0::Models::AccountOrdersExportType
- Inherits:
-
ExportType
- Object
- ExportType
- Io::Flow::V0::Models::AccountOrdersExportType
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#statement_id ⇒ Object
readonly
Returns the value of attribute statement_id.
-
#transaction_created_after ⇒ Object
readonly
Returns the value of attribute transaction_created_after.
-
#transaction_created_before ⇒ Object
readonly
Returns the value of attribute transaction_created_before.
-
#transaction_created_from ⇒ Object
readonly
Returns the value of attribute transaction_created_from.
-
#transaction_created_on_or_after ⇒ Object
readonly
Returns the value of attribute transaction_created_on_or_after.
-
#transaction_created_on_or_before ⇒ Object
readonly
Returns the value of attribute transaction_created_on_or_before.
-
#transaction_created_to ⇒ Object
readonly
Returns the value of attribute transaction_created_to.
-
#transaction_posted_after ⇒ Object
readonly
Returns the value of attribute transaction_posted_after.
-
#transaction_posted_before ⇒ Object
readonly
Returns the value of attribute transaction_posted_before.
-
#transaction_posted_from ⇒ Object
readonly
Returns the value of attribute transaction_posted_from.
-
#transaction_posted_on_or_after ⇒ Object
readonly
Returns the value of attribute transaction_posted_on_or_after.
-
#transaction_posted_on_or_before ⇒ Object
readonly
Returns the value of attribute transaction_posted_on_or_before.
-
#transaction_posted_to ⇒ Object
readonly
Returns the value of attribute transaction_posted_to.
-
#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 = {}) ⇒ AccountOrdersExportType
constructor
A new instance of AccountOrdersExportType.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from ExportType
Constructor Details
#initialize(incoming = {}) ⇒ AccountOrdersExportType
Returns a new instance of AccountOrdersExportType.
26697 26698 26699 26700 26701 26702 26703 26704 26705 26706 26707 26708 26709 26710 26711 26712 26713 26714 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26697 def initialize(incoming={}) super(:discriminator => ExportType::Types::ACCOUNT_ORDERS_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)) @transaction_created_from = (x = opts.delete(:transaction_created_from); x.nil? ? nil : HttpClient::Preconditions.assert_class('transaction_created_from', HttpClient::Helper.to_date_iso8601(x), Date)) @transaction_created_to = (x = opts.delete(:transaction_created_to); x.nil? ? nil : HttpClient::Preconditions.assert_class('transaction_created_to', HttpClient::Helper.to_date_iso8601(x), Date)) @transaction_created_on_or_after = (x = opts.delete(:transaction_created_on_or_after); x.nil? ? nil : HttpClient::Preconditions.assert_class('transaction_created_on_or_after', HttpClient::Helper.to_date_time_iso8601(x), DateTime)) @transaction_created_after = (x = opts.delete(:transaction_created_after); x.nil? ? nil : HttpClient::Preconditions.assert_class('transaction_created_after', HttpClient::Helper.to_date_time_iso8601(x), DateTime)) @transaction_created_on_or_before = (x = opts.delete(:transaction_created_on_or_before); x.nil? ? nil : HttpClient::Preconditions.assert_class('transaction_created_on_or_before', HttpClient::Helper.to_date_time_iso8601(x), DateTime)) @transaction_created_before = (x = opts.delete(:transaction_created_before); x.nil? ? nil : HttpClient::Preconditions.assert_class('transaction_created_before', HttpClient::Helper.to_date_time_iso8601(x), DateTime)) @transaction_posted_from = (x = opts.delete(:transaction_posted_from); x.nil? ? nil : HttpClient::Preconditions.assert_class('transaction_posted_from', HttpClient::Helper.to_date_iso8601(x), Date)) @transaction_posted_to = (x = opts.delete(:transaction_posted_to); x.nil? ? nil : HttpClient::Preconditions.assert_class('transaction_posted_to', HttpClient::Helper.to_date_iso8601(x), Date)) @transaction_posted_on_or_after = (x = opts.delete(:transaction_posted_on_or_after); x.nil? ? nil : HttpClient::Preconditions.assert_class('transaction_posted_on_or_after', HttpClient::Helper.to_date_time_iso8601(x), DateTime)) @transaction_posted_after = (x = opts.delete(:transaction_posted_after); x.nil? ? nil : HttpClient::Preconditions.assert_class('transaction_posted_after', HttpClient::Helper.to_date_time_iso8601(x), DateTime)) @transaction_posted_on_or_before = (x = opts.delete(:transaction_posted_on_or_before); x.nil? ? nil : HttpClient::Preconditions.assert_class('transaction_posted_on_or_before', HttpClient::Helper.to_date_time_iso8601(x), DateTime)) @transaction_posted_before = (x = opts.delete(:transaction_posted_before); x.nil? ? nil : HttpClient::Preconditions.assert_class('transaction_posted_before', HttpClient::Helper.to_date_time_iso8601(x), DateTime)) end |
Instance Attribute Details
#statement_id ⇒ Object (readonly)
Returns the value of attribute statement_id.
26695 26696 26697 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26695 def statement_id @statement_id end |
#transaction_created_after ⇒ Object (readonly)
Returns the value of attribute transaction_created_after.
26695 26696 26697 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26695 def transaction_created_after @transaction_created_after end |
#transaction_created_before ⇒ Object (readonly)
Returns the value of attribute transaction_created_before.
26695 26696 26697 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26695 def transaction_created_before @transaction_created_before end |
#transaction_created_from ⇒ Object (readonly)
Returns the value of attribute transaction_created_from.
26695 26696 26697 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26695 def transaction_created_from @transaction_created_from end |
#transaction_created_on_or_after ⇒ Object (readonly)
Returns the value of attribute transaction_created_on_or_after.
26695 26696 26697 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26695 def transaction_created_on_or_after @transaction_created_on_or_after end |
#transaction_created_on_or_before ⇒ Object (readonly)
Returns the value of attribute transaction_created_on_or_before.
26695 26696 26697 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26695 def transaction_created_on_or_before @transaction_created_on_or_before end |
#transaction_created_to ⇒ Object (readonly)
Returns the value of attribute transaction_created_to.
26695 26696 26697 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26695 def transaction_created_to @transaction_created_to end |
#transaction_posted_after ⇒ Object (readonly)
Returns the value of attribute transaction_posted_after.
26695 26696 26697 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26695 def transaction_posted_after @transaction_posted_after end |
#transaction_posted_before ⇒ Object (readonly)
Returns the value of attribute transaction_posted_before.
26695 26696 26697 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26695 def transaction_posted_before @transaction_posted_before end |
#transaction_posted_from ⇒ Object (readonly)
Returns the value of attribute transaction_posted_from.
26695 26696 26697 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26695 def transaction_posted_from @transaction_posted_from end |
#transaction_posted_on_or_after ⇒ Object (readonly)
Returns the value of attribute transaction_posted_on_or_after.
26695 26696 26697 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26695 def transaction_posted_on_or_after @transaction_posted_on_or_after end |
#transaction_posted_on_or_before ⇒ Object (readonly)
Returns the value of attribute transaction_posted_on_or_before.
26695 26696 26697 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26695 def transaction_posted_on_or_before @transaction_posted_on_or_before end |
#transaction_posted_to ⇒ Object (readonly)
Returns the value of attribute transaction_posted_to.
26695 26696 26697 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26695 def transaction_posted_to @transaction_posted_to end |
#transaction_summary_id ⇒ Object (readonly)
Returns the value of attribute transaction_summary_id.
26695 26696 26697 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26695 def transaction_summary_id @transaction_summary_id end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
26720 26721 26722 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26720 def copy(incoming={}) AccountOrdersExportType.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
26724 26725 26726 26727 26728 26729 26730 26731 26732 26733 26734 26735 26736 26737 26738 26739 26740 26741 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26724 def subtype_to_hash { :statement_id => statement_id, :transaction_summary_id => transaction_summary_id, :transaction_created_from => transaction_created_from, :transaction_created_to => transaction_created_to, :transaction_created_on_or_after => transaction_created_on_or_after, :transaction_created_after => transaction_created_after, :transaction_created_on_or_before => transaction_created_on_or_before, :transaction_created_before => transaction_created_before, :transaction_posted_from => transaction_posted_from, :transaction_posted_to => transaction_posted_to, :transaction_posted_on_or_after => transaction_posted_on_or_after, :transaction_posted_after => transaction_posted_after, :transaction_posted_on_or_before => transaction_posted_on_or_before, :transaction_posted_before => transaction_posted_before } end |
#to_json ⇒ Object
26716 26717 26718 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26716 def to_json JSON.dump(to_hash) end |