Class: Io::Flow::V0::Models::OrderPriceDetailComponentKey
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::OrderPriceDetailComponentKey
- 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
-
.adjustment ⇒ Object
A general purpose adjustment applied to the order.
- .ALL ⇒ Object
-
.apply(value) ⇒ Object
Returns the instance of OrderPriceDetailComponentKey for this value, creating a new instance for an unknown value.
-
.duties_freight ⇒ Object
The duty owed on the freight cost of the order.
-
.duties_insurance ⇒ Object
The duty owed on the insurance cost of the order.
-
.duties_item_price ⇒ Object
The VAT owed on the price of the order’s items, including any added margins and rounding.
-
.duty_deminimus ⇒ Object
An adjustment based on whether the duty deminimus applies to the order.
-
.from_string(value) ⇒ Object
Returns the instance of OrderPriceDetailComponentKey for this value, or nil if not found.
-
.insurance ⇒ Object
The insurance cost for the order.
-
.item_price ⇒ Object
The sum of the price of the order’s items with their currency margins, percent margins, and fixed margins included.
-
.order_discount ⇒ Object
A discount applied to the entire order.
-
.rounding ⇒ Object
The sum of any rounding applied to the order’s items.
-
.shipping ⇒ Object
The shipping cost for the order.
-
.tax_deminimus ⇒ Object
An adjustment based on whether the tax deminimus applies to the order.
-
.vat_duties_freight ⇒ Object
The VAT owed on the duties on the freight cost of the order.
-
.vat_duties_insurance ⇒ Object
The VAT owed on the duties on the insurance cost of the order.
-
.vat_duties_item_price ⇒ Object
The VAT owed on the duties on the price of the order’s items, including any added margins and rounding.
-
.vat_freight ⇒ Object
The VAT owed on the freight cost of the order.
-
.vat_insurance ⇒ Object
The VAT owed on the insurance cost of the order.
-
.vat_item_price ⇒ Object
The VAT owed on the price of the order’s items, including any added margins and rounding.
Instance Method Summary collapse
-
#initialize(value) ⇒ OrderPriceDetailComponentKey
constructor
A new instance of OrderPriceDetailComponentKey.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ OrderPriceDetailComponentKey
Returns a new instance of OrderPriceDetailComponentKey.
5824 5825 5826 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5824 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
5822 5823 5824 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5822 def value @value end |
Class Method Details
.adjustment ⇒ Object
A general purpose adjustment applied to the order.
5849 5850 5851 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5849 def OrderPriceDetailComponentKey.adjustment @@_adjustment ||= OrderPriceDetailComponentKey.new('adjustment') end |
.ALL ⇒ Object
.apply(value) ⇒ Object
Returns the instance of OrderPriceDetailComponentKey for this value, creating a new instance for an unknown value
5829 5830 5831 5832 5833 5834 5835 5836 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5829 def OrderPriceDetailComponentKey.apply(value) if value.instance_of?(OrderPriceDetailComponentKey) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || OrderPriceDetailComponentKey.new(value)) end end |
.duties_freight ⇒ Object
The duty owed on the freight cost of the order.
5870 5871 5872 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5870 def OrderPriceDetailComponentKey.duties_freight @@_duties_freight ||= OrderPriceDetailComponentKey.new('duties_freight') end |
.duties_insurance ⇒ Object
The duty owed on the insurance cost of the order.
5875 5876 5877 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5875 def OrderPriceDetailComponentKey.duties_insurance @@_duties_insurance ||= OrderPriceDetailComponentKey.new('duties_insurance') end |
.duties_item_price ⇒ Object
The VAT owed on the price of the order’s items, including any added margins and rounding.
5865 5866 5867 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5865 def OrderPriceDetailComponentKey.duties_item_price @@_duties_item_price ||= OrderPriceDetailComponentKey.new('duties_item_price') end |
.duty_deminimus ⇒ Object
An adjustment based on whether the duty deminimus applies to the order.
5859 5860 5861 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5859 def OrderPriceDetailComponentKey.duty_deminimus @@_duty_deminimus ||= OrderPriceDetailComponentKey.new('duty_deminimus') end |
.from_string(value) ⇒ Object
Returns the instance of OrderPriceDetailComponentKey for this value, or nil if not found
5839 5840 5841 5842 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5839 def OrderPriceDetailComponentKey.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) OrderPriceDetailComponentKey.ALL.find { |v| v.value == value } end |
.insurance ⇒ Object
The insurance cost for the order.
5923 5924 5925 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5923 def OrderPriceDetailComponentKey.insurance @@_insurance ||= OrderPriceDetailComponentKey.new('insurance') end |
.item_price ⇒ Object
The sum of the price of the order’s items with their currency margins, percent margins, and fixed margins included.
5913 5914 5915 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5913 def OrderPriceDetailComponentKey.item_price @@_item_price ||= OrderPriceDetailComponentKey.new('item_price') end |
.order_discount ⇒ Object
A discount applied to the entire order.
5933 5934 5935 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5933 def OrderPriceDetailComponentKey.order_discount @@_order_discount ||= OrderPriceDetailComponentKey.new('order_discount') end |
.rounding ⇒ Object
The sum of any rounding applied to the order’s items.
5918 5919 5920 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5918 def OrderPriceDetailComponentKey.rounding @@_rounding ||= OrderPriceDetailComponentKey.new('rounding') end |
.shipping ⇒ Object
The shipping cost for the order.
5928 5929 5930 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5928 def OrderPriceDetailComponentKey.shipping @@_shipping ||= OrderPriceDetailComponentKey.new('shipping') end |
.tax_deminimus ⇒ Object
An adjustment based on whether the tax deminimus applies to the order.
5854 5855 5856 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5854 def OrderPriceDetailComponentKey.tax_deminimus @@_tax_deminimus ||= OrderPriceDetailComponentKey.new('tax_deminimus') end |
.vat_duties_freight ⇒ Object
The VAT owed on the duties on the freight cost of the order.
5902 5903 5904 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5902 def OrderPriceDetailComponentKey.vat_duties_freight @@_vat_duties_freight ||= OrderPriceDetailComponentKey.new('vat_duties_freight') end |
.vat_duties_insurance ⇒ Object
The VAT owed on the duties on the insurance cost of the order.
5907 5908 5909 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5907 def OrderPriceDetailComponentKey.vat_duties_insurance @@_vat_duties_insurance ||= OrderPriceDetailComponentKey.new('vat_duties_insurance') end |
.vat_duties_item_price ⇒ Object
The VAT owed on the duties on the price of the order’s items, including any added margins and rounding.
5897 5898 5899 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5897 def OrderPriceDetailComponentKey.vat_duties_item_price @@_vat_duties_item_price ||= OrderPriceDetailComponentKey.new('vat_duties_item_price') end |
.vat_freight ⇒ Object
The VAT owed on the freight cost of the order.
5886 5887 5888 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5886 def OrderPriceDetailComponentKey.vat_freight @@_vat_freight ||= OrderPriceDetailComponentKey.new('vat_freight') end |
.vat_insurance ⇒ Object
The VAT owed on the insurance cost of the order.
5891 5892 5893 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5891 def OrderPriceDetailComponentKey.vat_insurance @@_vat_insurance ||= OrderPriceDetailComponentKey.new('vat_insurance') end |
.vat_item_price ⇒ Object
The VAT owed on the price of the order’s items, including any added margins and rounding.
5881 5882 5883 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5881 def OrderPriceDetailComponentKey.vat_item_price @@_vat_item_price ||= OrderPriceDetailComponentKey.new('vat_item_price') end |
Instance Method Details
#to_hash ⇒ Object
5937 5938 5939 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5937 def to_hash value end |