Class: FacturX::ReferencedInvoice

Inherits:
Object
  • Object
show all
Defined in:
lib/factur_x/allowance_charge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(number:, issued_on: nil, type_code: nil) ⇒ ReferencedInvoice

Returns a new instance of ReferencedInvoice.



44
45
46
47
48
# File 'lib/factur_x/allowance_charge.rb', line 44

def initialize(number:, issued_on: nil, type_code: nil)
  @number = number
  @issued_on = issued_on
  @type_code = type_code
end

Instance Attribute Details

#issued_onObject (readonly)

Returns the value of attribute issued_on.



42
43
44
# File 'lib/factur_x/allowance_charge.rb', line 42

def issued_on
  @issued_on
end

#numberObject (readonly)

Returns the value of attribute number.



42
43
44
# File 'lib/factur_x/allowance_charge.rb', line 42

def number
  @number
end

#type_codeObject (readonly)

Returns the value of attribute type_code.



42
43
44
# File 'lib/factur_x/allowance_charge.rb', line 42

def type_code
  @type_code
end