Extends
Methods
clearData()
- Description:
Clear all taxpayer's sensitive data and others member fields
- Source:
getCert()
- Source:
Returns:
Buffer created from base64 in setCert()
getKey()
- Source:
Returns:
Buffer created from base64 in setKey()
setCert()
- Source:
Returns:
int -1 when now is out of range of validity or major than -1 for remaining days
setEmail(em)
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
em |
string | Email address |
setName(n)
- Description:
The main name.
- Source:
- Overrides:
Parameters:
| Name | Type | Description |
|---|---|---|
n |
string | Real name of person, the legal name. |
setSolId(id)
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string | Client ID in Sunat SOL for generate token |
setSolPass(sp)
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
sp |
string | Password of secondary user in Sunat SOL |
setSolSecret(secret)
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
secret |
string | Secret of application in Sunat SOL for generate token |
setSolUser(su)
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
su |
string | Secondary user in Sunat SOL |
setTelephone(t)
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
t |
string | Telephone number |
setTradeName(tn)
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
tn |
string | Trade name |
setWeb(w)
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
w |
string | Website address |
(static) transformPemToDer()
- Source:
Returns:
array containing PEM in single string and DER.