class Io::Flow::V0::Models::DeliveredDuty
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18568 def DeliveredDuty.ALL @@all ||= [DeliveredDuty.paid, DeliveredDuty.unpaid] end
apply(value)
click to toggle source
Returns the instance of DeliveredDuty
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 18553 def DeliveredDuty.apply(value) if value.instance_of?(DeliveredDuty) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || DeliveredDuty.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of DeliveredDuty
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 18563 def DeliveredDuty.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) DeliveredDuty.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18548 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
paid()
click to toggle source
Delivered Duty
Paid (DDP). See en.wikipedia.org/wiki/Incoterms for more information
# File lib/flow_commerce/flow_api_v0_client.rb, line 18574 def DeliveredDuty.paid @@_paid ||= DeliveredDuty.new('paid') end
unpaid()
click to toggle source
Delivered Duty
Unpaid (DDU). See en.wikipedia.org/wiki/Incoterms for more information
# File lib/flow_commerce/flow_api_v0_client.rb, line 18580 def DeliveredDuty.unpaid @@_unpaid ||= DeliveredDuty.new('unpaid') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18584 def to_hash value end