Class: GOBL::Bill::Preceding

Inherits:
Object show all
Defined in:
lib/gobl/bill/preceding.rb

Overview

Preceding allows for information to be provided about a previous invoice that this one will replace or subtract from.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL Preceding structure

'https://gobl.org/draft-0/bill/invoice#/$defs/Preceding'

Constants included from Hashme

Hashme::Boolean

Instance Attribute Summary collapse

Method Summary

Methods inherited from Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#codeString (readonly)

Code of the previous document.

Returns:

  • (String)


29
# File 'lib/gobl/bill/preceding.rb', line 29

property :code, String

#correction_methodString (readonly)

How has the previous invoice been corrected?

Returns:

  • (String)


51
# File 'lib/gobl/bill/preceding.rb', line 51

property :correction_method, String

#correctionsArray<String> (readonly)

Specific codes for the corrections made.

Returns:

  • (Array<String>)


46
# File 'lib/gobl/bill/preceding.rb', line 46

property :corrections, [String]

#issue_dateGOBL::Cal::Date (readonly)

The issue date if the previous document.

Returns:



35
# File 'lib/gobl/bill/preceding.rb', line 35

property :issue_date, GOBL::Cal::Date

#metaGOBL::CBC::Meta (readonly)

Additional semi-structured data that may be useful in specific regions

Returns:



66
# File 'lib/gobl/bill/preceding.rb', line 66

property :meta, GOBL::CBC::Meta

#notesString (readonly)

Additional details regarding preceding invoice

Returns:

  • (String)


61
# File 'lib/gobl/bill/preceding.rb', line 61

property :notes, String

#periodGOBL::Cal::Period (readonly)

Tax period in which the previous invoice had an effect.

Returns:



41
# File 'lib/gobl/bill/preceding.rb', line 41

property :period, GOBL::Cal::Period

#seriesString (readonly)

Series identification code

Returns:

  • (String)


24
# File 'lib/gobl/bill/preceding.rb', line 24

property :series, String

#stampsArray<GOBL::CBC::Stamp> (readonly)

Seals of approval from other organisations.

Returns:



56
# File 'lib/gobl/bill/preceding.rb', line 56

property :stamps, [GOBL::CBC::Stamp]

#uuidGOBL::UUID::UUID (readonly)

Preceding document’s UUID if available can be useful for tracing.

Returns:



19
# File 'lib/gobl/bill/preceding.rb', line 19

property :uuid, GOBL::UUID::UUID