class Io::Flow::V0::Models::OrderRefundSummaryIncludes

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23688
def OrderRefundSummaryIncludes.ALL
  @@all ||= [OrderRefundSummaryIncludes.duties, OrderRefundSummaryIncludes.vat, OrderRefundSummaryIncludes.shipping]
end
apply(value) click to toggle source

Returns the instance of OrderRefundSummaryIncludes for this value, creating a new instance for an unknown value

# File lib/flow_commerce/flow_api_v0_client.rb, line 23673
def OrderRefundSummaryIncludes.apply(value)
  if value.instance_of?(OrderRefundSummaryIncludes)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || OrderRefundSummaryIncludes.new(value))
  end
end
duties() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23692
def OrderRefundSummaryIncludes.duties
  @@_duties ||= OrderRefundSummaryIncludes.new('duties')
end
from_string(value) click to toggle source

Returns the instance of OrderRefundSummaryIncludes for this value, or nil if not found

# File lib/flow_commerce/flow_api_v0_client.rb, line 23683
def OrderRefundSummaryIncludes.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  OrderRefundSummaryIncludes.ALL.find { |v| v.value == value }
end
new(value) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23668
def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end
shipping() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23700
def OrderRefundSummaryIncludes.shipping
  @@_shipping ||= OrderRefundSummaryIncludes.new('shipping')
end
vat() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23696
def OrderRefundSummaryIncludes.vat
  @@_vat ||= OrderRefundSummaryIncludes.new('vat')
end

Public Instance Methods

to_hash() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23704
def to_hash
  value
end