class Io::Flow::V0::Models::OperationsContact

Defines structured fields for a operations contact person. Typically used for specifying operations contact person for a third party logistics partner

Attributes

company[R]
email[R]
full_name[R]
phone[R]

Public Class Methods

new(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 51096
def initialize(incoming={})
  opts = HttpClient::Helper.symbolize_keys(incoming)
  @full_name = (x = opts.delete(:full_name); x.nil? ? nil : HttpClient::Preconditions.assert_class('full_name', x, String))
  @company = (x = opts.delete(:company); x.nil? ? nil : HttpClient::Preconditions.assert_class('company', x, String))
  @email = (x = opts.delete(:email); x.nil? ? nil : HttpClient::Preconditions.assert_class('email', x, String))
  @phone = (x = opts.delete(:phone); x.nil? ? nil : HttpClient::Preconditions.assert_class('phone', x, String))
end

Public Instance Methods

copy(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 51108
def copy(incoming={})
  OperationsContact.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 51112
def to_hash
  {
    :full_name => full_name,
    :company => company,
    :email => email,
    :phone => phone
  }
end
to_json() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 51104
def to_json
  JSON.dump(to_hash)
end