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_duties_taxes_paid_surcharge_fee ⇒ Object
- .ratecard_emergency_situation_surcharge_fee ⇒ Object
- .ratecard_fuel_surcharge ⇒ Object
- .ratecard_oversized_shipment_fee ⇒ Object
- .ratecard_peak_surcharge_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.
18639 18640 18641 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18639 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
18637 18638 18639 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18637 def value @value end |
Class Method Details
.ALL ⇒ Object
.apply(value) ⇒ Object
Returns the instance of DeliveryOptionCostDetailComponentKey for this value, creating a new instance for an unknown value
18644 18645 18646 18647 18648 18649 18650 18651 |
# 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 ⇒ Object
18695 18696 18697 |
# 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 ⇒ Object
18699 18700 18701 |
# 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 ⇒ Object
18703 18704 18705 |
# 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) ⇒ Object
Returns the instance of DeliveryOptionCostDetailComponentKey for this value, or nil if not found
18654 18655 18656 18657 |
# 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 |
.ratecard_base_cost ⇒ Object
18663 18664 18665 |
# 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 ⇒ Object
18667 18668 18669 |
# 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 ⇒ Object
18691 18692 18693 |
# 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 ⇒ Object
18683 18684 18685 |
# 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 ⇒ Object
18671 18672 18673 |
# 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 ⇒ Object
18675 18676 18677 |
# 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 ⇒ Object
18687 18688 18689 |
# 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 ⇒ Object
18679 18680 18681 |
# 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 |
Instance Method Details
#to_hash ⇒ Object
18707 18708 18709 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18707 def to_hash value end |