class Io::Flow::V0::Models::TransactionSource
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28000 def TransactionSource.ALL @@all ||= [TransactionSource.capture, TransactionSource.refund, TransactionSource.dispute, TransactionSource.adjustment, TransactionSource.reversal, TransactionSource.shipping_label, TransactionSource.shipping_label_service, TransactionSource.shipping_label_revenue_share, TransactionSource.platform_fee, TransactionSource.tax, TransactionSource.duty, TransactionSource.withholding, TransactionSource.other_adjustment, TransactionSource.tax_adjustment, TransactionSource.channel, TransactionSource.channel_billed, TransactionSource.order_service, TransactionSource.virtual_card_capture, TransactionSource.virtual_card_refund] end
adjustment()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28016 def TransactionSource.adjustment @@_adjustment ||= TransactionSource.new('adjustment') end
apply(value)
click to toggle source
Returns the instance of TransactionSource
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 27985 def TransactionSource.apply(value) if value.instance_of?(TransactionSource) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || TransactionSource.new(value)) end end
capture()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28004 def TransactionSource.capture @@_capture ||= TransactionSource.new('capture') end
channel()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28060 def TransactionSource.channel @@_channel ||= TransactionSource.new('channel') end
channel_billed()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28064 def TransactionSource.channel_billed @@_channel_billed ||= TransactionSource.new('channel_billed') end
dispute()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28012 def TransactionSource.dispute @@_dispute ||= TransactionSource.new('dispute') end
duty()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28044 def TransactionSource.duty @@_duty ||= TransactionSource.new('duty') end
from_string(value)
click to toggle source
Returns the instance of TransactionSource
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 27995 def TransactionSource.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) TransactionSource.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 27980 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
order_service()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28068 def TransactionSource.order_service @@_order_service ||= TransactionSource.new('order_service') end
other_adjustment()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28052 def TransactionSource.other_adjustment @@_other_adjustment ||= TransactionSource.new('other_adjustment') end
platform_fee()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28036 def TransactionSource.platform_fee @@_platform_fee ||= TransactionSource.new('platform_fee') end
refund()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28008 def TransactionSource.refund @@_refund ||= TransactionSource.new('refund') end
reversal()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28020 def TransactionSource.reversal @@_reversal ||= TransactionSource.new('reversal') end
shipping_label()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28024 def TransactionSource.shipping_label @@_shipping_label ||= TransactionSource.new('shipping_label') end
shipping_label_service()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28028 def TransactionSource.shipping_label_service @@_shipping_label_service ||= TransactionSource.new('shipping_label_service') end
tax()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28040 def TransactionSource.tax @@_tax ||= TransactionSource.new('tax') end
tax_adjustment()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28056 def TransactionSource.tax_adjustment @@_tax_adjustment ||= TransactionSource.new('tax_adjustment') end
virtual_card_capture()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28072 def TransactionSource.virtual_card_capture @@_virtual_card_capture ||= TransactionSource.new('virtual_card_capture') end
virtual_card_refund()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28076 def TransactionSource.virtual_card_refund @@_virtual_card_refund ||= TransactionSource.new('virtual_card_refund') end
withholding()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28048 def TransactionSource.withholding @@_withholding ||= TransactionSource.new('withholding') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 28080 def to_hash value end