class Io::Flow::V0::Models::OrderIdentifierForm
Attributes
identifier[R]
name[R]
number[R]
order[R]
primary[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 52116 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:order], 'OrderIdentifierForm') @order = HttpClient::Preconditions.assert_class('order', opts.delete(:order), String) @name = (x = opts.delete(:name); x.nil? ? nil : HttpClient::Preconditions.assert_class('name', x, String)) @identifier = (x = opts.delete(:identifier); x.nil? ? nil : HttpClient::Preconditions.assert_class('identifier', x, String)) @number = (x = opts.delete(:number); x.nil? ? nil : HttpClient::Preconditions.assert_class('number', x, String)) @primary = (x = opts.delete(:primary); x.nil? ? nil : HttpClient::Preconditions.assert_boolean('primary', x)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 52130 def copy(incoming={}) OrderIdentifierForm.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 52134 def to_hash { :order => order, :name => name, :identifier => identifier, :number => number, :primary => primary } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 52126 def to_json JSON.dump(to_hash) end