class Io::Flow::V0::Models::FeeDeductionType

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20506
def FeeDeductionType.ALL
  @@all ||= [FeeDeductionType.duty_guarantee, FeeDeductionType.mor, FeeDeductionType.fraud, FeeDeductionType.fx, FeeDeductionType.processing, FeeDeductionType.rate_lock, FeeDeductionType.transfer]
end
apply(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 20491
def FeeDeductionType.apply(value)
  if value.instance_of?(FeeDeductionType)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || FeeDeductionType.new(value))
  end
end
duty_guarantee() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20510
def FeeDeductionType.duty_guarantee
  @@_duty_guarantee ||= FeeDeductionType.new('duty_guarantee')
end
fraud() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20518
def FeeDeductionType.fraud
  @@_fraud ||= FeeDeductionType.new('fraud')
end
from_string(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 20501
def FeeDeductionType.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  FeeDeductionType.ALL.find { |v| v.value == value }
end
fx() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20522
def FeeDeductionType.fx
  @@_fx ||= FeeDeductionType.new('fx')
end
mor() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20514
def FeeDeductionType.mor
  @@_mor ||= FeeDeductionType.new('mor')
end
new(value) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20486
def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end
processing() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20526
def FeeDeductionType.processing
  @@_processing ||= FeeDeductionType.new('processing')
end
rate_lock() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20530
def FeeDeductionType.rate_lock
  @@_rate_lock ||= FeeDeductionType.new('rate_lock')
end
transfer() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20534
def FeeDeductionType.transfer
  @@_transfer ||= FeeDeductionType.new('transfer')
end

Public Instance Methods

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