class Io::Flow::V0::Models::DeliveryOptionCostDetailComponentKey
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18659 def DeliveryOptionCostDetailComponentKey.ALL @@all ||= [DeliveryOptionCostDetailComponentKey.ratecard_base_cost, DeliveryOptionCostDetailComponentKey.ratecard_ddp_fee, DeliveryOptionCostDetailComponentKey.ratecard_fuel_surcharge, DeliveryOptionCostDetailComponentKey.ratecard_oversized_shipment_fee, DeliveryOptionCostDetailComponentKey.ratecard_rural_shipment_fee, DeliveryOptionCostDetailComponentKey.ratecard_emergency_situation_surcharge_fee, DeliveryOptionCostDetailComponentKey.ratecard_peak_surcharge_fee, DeliveryOptionCostDetailComponentKey.ratecard_duties_taxes_paid_surcharge_fee, DeliveryOptionCostDetailComponentKey.center_commercial_invoice_fee, DeliveryOptionCostDetailComponentKey.center_inbound_carton_fee, DeliveryOptionCostDetailComponentKey.center_outbound_carton_fee] end
apply(value)
click to toggle source
Returns the instance of DeliveryOptionCostDetailComponentKey
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 18644 def DeliveryOptionCostDetailComponentKey.apply(value) if value.instance_of?(DeliveryOptionCostDetailComponentKey) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || DeliveryOptionCostDetailComponentKey.new(value)) end end
center_commercial_invoice_fee()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18695 def DeliveryOptionCostDetailComponentKey.center_commercial_invoice_fee @@_center_commercial_invoice_fee ||= DeliveryOptionCostDetailComponentKey.new('center_commercial_invoice_fee') end
center_inbound_carton_fee()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18699 def DeliveryOptionCostDetailComponentKey.center_inbound_carton_fee @@_center_inbound_carton_fee ||= DeliveryOptionCostDetailComponentKey.new('center_inbound_carton_fee') end
center_outbound_carton_fee()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18703 def DeliveryOptionCostDetailComponentKey.center_outbound_carton_fee @@_center_outbound_carton_fee ||= DeliveryOptionCostDetailComponentKey.new('center_outbound_carton_fee') end
from_string(value)
click to toggle source
Returns the instance of DeliveryOptionCostDetailComponentKey
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 18654 def DeliveryOptionCostDetailComponentKey.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) DeliveryOptionCostDetailComponentKey.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18639 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
ratecard_base_cost()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18663 def DeliveryOptionCostDetailComponentKey.ratecard_base_cost @@_ratecard_base_cost ||= DeliveryOptionCostDetailComponentKey.new('ratecard_base_cost') end
ratecard_ddp_fee()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18667 def DeliveryOptionCostDetailComponentKey.ratecard_ddp_fee @@_ratecard_ddp_fee ||= DeliveryOptionCostDetailComponentKey.new('ratecard_ddp_fee') end
ratecard_duties_taxes_paid_surcharge_fee()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18691 def DeliveryOptionCostDetailComponentKey.ratecard_duties_taxes_paid_surcharge_fee @@_ratecard_duties_taxes_paid_surcharge_fee ||= DeliveryOptionCostDetailComponentKey.new('ratecard_duties_taxes_paid_surcharge_fee') end
ratecard_emergency_situation_surcharge_fee()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18683 def DeliveryOptionCostDetailComponentKey.ratecard_emergency_situation_surcharge_fee @@_ratecard_emergency_situation_surcharge_fee ||= DeliveryOptionCostDetailComponentKey.new('ratecard_emergency_situation_surcharge_fee') end
ratecard_fuel_surcharge()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18671 def DeliveryOptionCostDetailComponentKey.ratecard_fuel_surcharge @@_ratecard_fuel_surcharge ||= DeliveryOptionCostDetailComponentKey.new('ratecard_fuel_surcharge') end
ratecard_oversized_shipment_fee()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18675 def DeliveryOptionCostDetailComponentKey.ratecard_oversized_shipment_fee @@_ratecard_oversized_shipment_fee ||= DeliveryOptionCostDetailComponentKey.new('ratecard_oversized_shipment_fee') end
ratecard_peak_surcharge_fee()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18687 def DeliveryOptionCostDetailComponentKey.ratecard_peak_surcharge_fee @@_ratecard_peak_surcharge_fee ||= DeliveryOptionCostDetailComponentKey.new('ratecard_peak_surcharge_fee') end
ratecard_rural_shipment_fee()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18679 def DeliveryOptionCostDetailComponentKey.ratecard_rural_shipment_fee @@_ratecard_rural_shipment_fee ||= DeliveryOptionCostDetailComponentKey.new('ratecard_rural_shipment_fee') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18707 def to_hash value end