Class: GOBL::Bill::Preceding

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

Overview

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

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL Preceding structure

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

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/generated/gobl/bill/preceding.rb', line 29

property :code, String

#correction_methodGOBL::CBC::Key (readonly)

Tax regime specific keys reflecting the method used to correct the preceding invoice.

Returns:



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

property :correction_method, GOBL::CBC::Key

#correctionsArray<GOBL::CBC::Key> (readonly)

Tax regime specific keys reflecting why the preceding invoice is being replaced.

Returns:



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

property :corrections, [GOBL::CBC::Key]

#issue_dateGOBL::Cal::Date (readonly)

The issue date of the previous document.

Returns:



35
# File 'lib/generated/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:



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

property :meta, GOBL::CBC::Meta

#periodGOBL::Cal::Period (readonly)

Tax period in which the previous invoice had an effect required by some tax regimes and formats.

Returns:



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

property :period, GOBL::Cal::Period

#reasonString (readonly)

Human readable description on why the preceding invoice is being replaced.

Returns:

  • (String)


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

property :reason, String

#seriesString (readonly)

Series identification code

Returns:

  • (String)


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

property :series, String

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

Seals of approval from other organisations that may need to be listed.

Returns:



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

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

#uuidGOBL::UUID::UUID (readonly)

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

Returns:



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

property :uuid, GOBL::UUID::UUID