DocumentReference

receipt~ DocumentReference

Any document to hold its identity.

Constructor

new DocumentReference(referenceType)

Source:
Parameters:
Name Type Description
referenceType number

Methods

getId() → {string}

Description:
  • Get identifier of document reference like F000-12345678.

Source:
Returns:
Type
string

getIssuerId() → {string}

Source:
Returns:
Type
string

getReferenceType() → {number}

Source:
Returns:
Type
number

getTypeCode(withFormat) → {string|number}

Source:
Parameters:
Name Type Default Description
withFormat boolean false
Returns:
Type
string | number

setId(id)

Description:
  • Set identifier of document reference like F000-12345678.

Source:
Parameters:
Name Type Description
id string

setIssuerId(issuerId)

Description:
  • Set number of identification of issuer document.
    It's not neccessary to set this if you will be using your same RUC.
    ID is RUC.

Source:
Parameters:
Name Type Description
issuerId string

setTypeCode(code)

Source:
Parameters:
Name Type Description
code number