Class: Io::Flow::V0::Models::DeliveryOptionCostDetailComponentKey
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::DeliveryOptionCostDetailComponentKey
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
- .ALL ⇒ Object
-
.apply(value) ⇒ Object
Returns the instance of DeliveryOptionCostDetailComponentKey for this value, creating a new instance for an unknown value.
- .center_commercial_invoice_fee ⇒ Object
- .center_inbound_carton_fee ⇒ Object
- .center_outbound_carton_fee ⇒ Object
-
.from_string(value) ⇒ Object
Returns the instance of DeliveryOptionCostDetailComponentKey for this value, or nil if not found.
- .ratecard_base_cost ⇒ Object
- .ratecard_ddp_fee ⇒ Object
- .ratecard_emergency_situation_surcharge_fee ⇒ Object
- .ratecard_fuel_surcharge ⇒ Object
- .ratecard_oversized_shipment_fee ⇒ Object
- .ratecard_rural_shipment_fee ⇒ Object
Instance Method Summary collapse
-
#initialize(value) ⇒ DeliveryOptionCostDetailComponentKey
constructor
A new instance of DeliveryOptionCostDetailComponentKey.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ DeliveryOptionCostDetailComponentKey
Returns a new instance of DeliveryOptionCostDetailComponentKey.
13787 13788 13789 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13787 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
13785 13786 13787 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13785 def value @value end |
Class Method Details
.ALL ⇒ Object
13807 13808 13809 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13807 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.center_commercial_invoice_fee, DeliveryOptionCostDetailComponentKey.center_inbound_carton_fee, DeliveryOptionCostDetailComponentKey.center_outbound_carton_fee] end |
.apply(value) ⇒ Object
Returns the instance of DeliveryOptionCostDetailComponentKey for this value, creating a new instance for an unknown value
13792 13793 13794 13795 13796 13797 13798 13799 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13792 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 ⇒ Object
13835 13836 13837 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13835 def DeliveryOptionCostDetailComponentKey.center_commercial_invoice_fee @@_center_commercial_invoice_fee ||= DeliveryOptionCostDetailComponentKey.new('center_commercial_invoice_fee') end |
.center_inbound_carton_fee ⇒ Object
13839 13840 13841 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13839 def DeliveryOptionCostDetailComponentKey.center_inbound_carton_fee @@_center_inbound_carton_fee ||= DeliveryOptionCostDetailComponentKey.new('center_inbound_carton_fee') end |
.center_outbound_carton_fee ⇒ Object
13843 13844 13845 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13843 def DeliveryOptionCostDetailComponentKey.center_outbound_carton_fee @@_center_outbound_carton_fee ||= DeliveryOptionCostDetailComponentKey.new('center_outbound_carton_fee') end |
.from_string(value) ⇒ Object
Returns the instance of DeliveryOptionCostDetailComponentKey for this value, or nil if not found
13802 13803 13804 13805 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13802 def DeliveryOptionCostDetailComponentKey.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) DeliveryOptionCostDetailComponentKey.ALL.find { |v| v.value == value } end |
.ratecard_base_cost ⇒ Object
13811 13812 13813 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13811 def DeliveryOptionCostDetailComponentKey.ratecard_base_cost @@_ratecard_base_cost ||= DeliveryOptionCostDetailComponentKey.new('ratecard_base_cost') end |
.ratecard_ddp_fee ⇒ Object
13815 13816 13817 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13815 def DeliveryOptionCostDetailComponentKey.ratecard_ddp_fee @@_ratecard_ddp_fee ||= DeliveryOptionCostDetailComponentKey.new('ratecard_ddp_fee') end |
.ratecard_emergency_situation_surcharge_fee ⇒ Object
13831 13832 13833 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13831 def DeliveryOptionCostDetailComponentKey.ratecard_emergency_situation_surcharge_fee @@_ratecard_emergency_situation_surcharge_fee ||= DeliveryOptionCostDetailComponentKey.new('ratecard_emergency_situation_surcharge_fee') end |
.ratecard_fuel_surcharge ⇒ Object
13819 13820 13821 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13819 def DeliveryOptionCostDetailComponentKey.ratecard_fuel_surcharge @@_ratecard_fuel_surcharge ||= DeliveryOptionCostDetailComponentKey.new('ratecard_fuel_surcharge') end |
.ratecard_oversized_shipment_fee ⇒ Object
13823 13824 13825 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13823 def DeliveryOptionCostDetailComponentKey.ratecard_oversized_shipment_fee @@_ratecard_oversized_shipment_fee ||= DeliveryOptionCostDetailComponentKey.new('ratecard_oversized_shipment_fee') end |
.ratecard_rural_shipment_fee ⇒ Object
13827 13828 13829 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13827 def DeliveryOptionCostDetailComponentKey.ratecard_rural_shipment_fee @@_ratecard_rural_shipment_fee ||= DeliveryOptionCostDetailComponentKey.new('ratecard_rural_shipment_fee') end |
Instance Method Details
#to_hash ⇒ Object
13847 13848 13849 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 13847 def to_hash value end |