Skip to content

Class.Tax

github-actions[bot] edited this page Jan 7, 2025 · 12 revisions

einvoicing / Tax

Class: Tax

Extends

Constructors

new Tax()

protected new Tax(props, id?): Tax

Parameters

props

ITax

id?

string | TaxId

Returns

Tax

Inherited from

Entity.constructor

Defined in

base/Entity.ts:20

Properties

_id

protected readonly _id: TaxId

Inherited from

Entity._id

Defined in

base/Entity.ts:17


props

protected props: ITax

Inherited from

Entity.props

Defined in

base/Entity.ts:18

Accessors

currency

Get Signature

get currency(): CurrencyCode

Get the currency.

Returns

CurrencyCode

Set Signature

set currency(value): void

Set the currency.

Parameters
value

CurrencyCode

Returns

void

Defined in

entity/Tax.ts:34


id

Get Signature

get id(): TaxId

Get the tax ID.

Returns

TaxId

Set Signature

set id(value): void

Set the tax ID.

Parameters
value

TaxId

Returns

void

Overrides

Entity.id

Defined in

entity/Tax.ts:20


percent

Get Signature

get percent(): number

Get the percent.

Returns

number

Set Signature

set percent(value): void

Set the percent.

Parameters
value

number

Returns

void

Defined in

entity/Tax.ts:76


taxableAmount

Get Signature

get taxableAmount(): number

Get the taxable amount.

Returns

number

Set Signature

set taxableAmount(value): void

Set the taxable amount.

Parameters
value

number

Returns

void

Defined in

entity/Tax.ts:48


taxAmount

Get Signature

get taxAmount(): number

Get the tax amount.

Returns

number

Set Signature

set taxAmount(value): void

Set the tax amount.

Parameters
value

number

Returns

void

Defined in

entity/Tax.ts:62


taxExemptionReason

Get Signature

get taxExemptionReason(): string

Get the tax exemption reason.

Returns

string

Set Signature

set taxExemptionReason(value): void

Set the tax exemption reason.

Parameters
value

string

Returns

void

Defined in

entity/Tax.ts:90


taxExemptionReasonCode

Get Signature

get taxExemptionReasonCode(): string

Get the tax exemption reason code.

Returns

string

Set Signature

set taxExemptionReasonCode(value): void

Set the tax exemption reason code.

Parameters
value

string

Returns

void

Defined in

entity/Tax.ts:104

Methods

equals()

equals(object?): boolean

Parameters

object?

Entity<ITax, string, TaxId>

Returns

boolean

Inherited from

Entity.equals

Defined in

base/Entity.ts:29


toJSON()

toJSON(): ITax

Returns

ITax

Inherited from

Entity.toJSON

Defined in

base/Entity.ts:53


toPrimitive()

toPrimitive(): ITax

Returns

ITax

Overrides

Entity.toPrimitive

Defined in

entity/Tax.ts:115


create()

static create(props): Tax

Parameters

props

ITax

Returns

Tax

Defined in

entity/Tax.ts:13

Clone this wiki locally