public class TaxRegistration extends java.lang.Object implements java.io.Serializable
Represents the tax number and its type.
The ID.getValue()
is value added tax identification number
The ID.getSchemeId()
is the Tax payer’s number or VAT number according to (UNCL 1153) eg. FC or VA
Constructor and Description |
---|
TaxRegistration()
Instantiates a new tax registration.
|
TaxRegistration(java.lang.String taxNumber)
Instantiates a new tax registration without a type.
|
TaxRegistration(java.lang.String taxNumber,
Reference typeOfTax)
Instantiates a new tax registration.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTaxNumber()
Gets the tax number.
|
Reference |
getType()
Gets the tax type.
|
TaxRegistration |
setTaxNumber(java.lang.String taxNumber)
Sets the tax number.
|
TaxRegistration |
setType(Reference taxType)
Sets the UNCL 1153 tax type.
|
public TaxRegistration()
Instantiates a new tax registration.
public TaxRegistration(java.lang.String taxNumber)
Instantiates a new tax registration without a type.
taxNumber
- the idpublic TaxRegistration(java.lang.String taxNumber, Reference typeOfTax)
Instantiates a new tax registration.
taxNumber
- the tax idtypeOfTax
- the scheme id@NotBlank public java.lang.String getTaxNumber()
Gets the tax number.
DE234567891
@NotNull public Reference getType()
Gets the tax type. The UNCL 1153 tax type.
VA
public TaxRegistration setTaxNumber(java.lang.String taxNumber)
Sets the tax number.
DE234567891
taxNumber
- the new valuepublic TaxRegistration setType(Reference taxType)
Sets the UNCL 1153 tax type.
VA
taxType
- the new typeCopyright © 2014-2018 Konik.io. All Rights Reserved.