Skip to content

Class.DocumentType

github-actions[bot] edited this page Dec 8, 2024 · 6 revisions

einvoicing / DocumentType

Class: DocumentType

Extends

Constructors

new DocumentType()

protected new DocumentType(props): DocumentType

Parameters

props
type

number

Returns

DocumentType

Inherited from

ValueObject.constructor

Defined in

base/ValueObject.ts:18

Properties

props

readonly props: object

type

type: number

Inherited from

ValueObject.props

Defined in

base/ValueObject.ts:16

Accessors

type

Get Signature

get type(): number

Get the document type.

Returns

number

Set Signature

set type(value): void

Set the document type.

Parameters
value

number

Returns

void

Defined in

valueObject/DocumentType.ts:22

Methods

equals()

equals(vo?): boolean

Parameters

vo?

ValueObject<{ type: number; }>

Returns

boolean

Inherited from

ValueObject.equals

Defined in

base/ValueObject.ts:22


toPrimitive()

toPrimitive(): number

Returns

number

Defined in

valueObject/DocumentType.ts:33


create()

static create(type): DocumentType

Parameters

type

string | number

Returns

DocumentType

Defined in

valueObject/DocumentType.ts:13

Clone this wiki locally