class Io::Flow::V0::Models::BridgeManifest
Represents closeout of a group of labels that have been transferred to the carrier for shipping
Attributes
data[R]
id[R]
pdf[R]
service[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 32448 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:id, :service, :pdf, :data], 'BridgeManifest') @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String) @service = (x = opts.delete(:service); x.is_a?(::Io::Flow::V0::Models::ServiceSummary) ? x : ::Io::Flow::V0::Models::ServiceSummary.new(x)) @pdf = HttpClient::Preconditions.assert_class('pdf', opts.delete(:pdf), String) @data = HttpClient::Preconditions.assert_class('data', opts.delete(:data), String) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 32461 def copy(incoming={}) BridgeManifest.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 32465 def to_hash { :id => id, :service => service.to_hash, :pdf => pdf, :data => data } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 32457 def to_json JSON.dump(to_hash) end