class Io::Flow::V0::Models::B2bInvoiceType
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17370 def B2bInvoiceType.ALL @@all ||= [B2bInvoiceType.self_bill_invoice, B2bInvoiceType.invoice] end
apply(value)
click to toggle source
Returns the instance of B2bInvoiceType
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 17355 def B2bInvoiceType.apply(value) if value.instance_of?(B2bInvoiceType) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || B2bInvoiceType.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of B2bInvoiceType
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 17365 def B2bInvoiceType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) B2bInvoiceType.ALL.find { |v| v.value == value } end
invoice()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17378 def B2bInvoiceType.invoice @@_invoice ||= B2bInvoiceType.new('invoice') end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17350 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
self_bill_invoice()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17374 def B2bInvoiceType.self_bill_invoice @@_self_bill_invoice ||= B2bInvoiceType.new('self_bill_invoice') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17382 def to_hash value end