Class: GOBL::Bill::CorrectionOptions

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

Overview

CorrectionOptions defines a structure used to pass configuration options to correct a previous invoice.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL CorrectionOptions structure

'https://gobl.org/draft-0/bill/correction-options'

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

#extGOBL::Tax::Extensions (readonly)

Extensions for region specific requirements.



44
# File 'lib/generated/gobl/bill/correction_options.rb', line 44

property :ext, GOBL::Tax::Extensions

#issue_dateGOBL::Cal::Date (readonly)

When the new corrective invoice’s issue date should be set to.

Returns:



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

property :issue_date, GOBL::Cal::Date

#reasonString (readonly)

Human readable reason for the corrective operation.

Returns:

  • (String)


39
# File 'lib/generated/gobl/bill/correction_options.rb', line 39

property :reason, String

#seriesGOBL::CBC::Code (readonly)

Series to assign to the new corrective invoice.

Returns:



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

property :series, GOBL::CBC::Code

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

Stamps of the previous document to include in the preceding data.

Returns:



34
# File 'lib/generated/gobl/bill/correction_options.rb', line 34

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

#typeGOBL::CBC::Key (readonly)

The type of corrective invoice to produce.

Returns:



18
# File 'lib/generated/gobl/bill/correction_options.rb', line 18

property :type, GOBL::CBC::Key