class Io::Flow::V0::Models::InvoiceExportForm
Attributes
date_from[R]
date_to[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 46794 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) @date_from = (x = opts.delete(:date_from); x.nil? ? nil : HttpClient::Preconditions.assert_class('date_from', HttpClient::Helper.to_date_iso8601(x), Date)) @date_to = (x = opts.delete(:date_to); x.nil? ? nil : HttpClient::Preconditions.assert_class('date_to', HttpClient::Helper.to_date_iso8601(x), Date)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 46804 def copy(incoming={}) InvoiceExportForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 46808 def to_hash { :date_from => date_from, :date_to => date_to } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 46800 def to_json JSON.dump(to_hash) end