class Io::Flow::V0::Models::ConsumerInvoiceReference

Attributes

id[R]
key[R]
number[R]

Public Class Methods

new(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 36913
def initialize(incoming={})
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:id, :key, :number], 'ConsumerInvoiceReference')
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
  @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
  @number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
end

Public Instance Methods

copy(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 36925
def copy(incoming={})
  ConsumerInvoiceReference.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 36929
def to_hash
  {
    :id => id,
    :key => key,
    :number => number
  }
end
to_json() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 36921
def to_json
  JSON.dump(to_hash)
end