ForeignFiscalIdentifier
extends Model
in package
Identificador fiscal de fuera de España
Tags
Table of Contents
Properties
- $country : string
- Código del país (ISO 3166-1 alpha-2 codes)
- $name : string
- Nombre-razón social
- $type : ForeignIdType
- Clave para establecer el tipo de identificación en el país de residencia
- $value : string
- Número de identificación en el país de residencia
Methods
- validate() : void
- Validate this instance
- validateCountry() : void
- validateType() : void
- validateVatNumber() : void
Properties
$country
Código del país (ISO 3166-1 alpha-2 codes)
public
string
$country
Tags
Attributes
- #[NotBlank]
- #[Regex]
- $pattern: '/^[A-Z]{2}$/'
$name
Nombre-razón social
public
string
$name
Tags
Attributes
- #[Length]
- $max: 120
- #[NotBlank]
$type
Clave para establecer el tipo de identificación en el país de residencia
public
ForeignIdType
$type
Tags
Attributes
- #[NotBlank]
$value
Número de identificación en el país de residencia
public
string
$value
Tags
Attributes
- #[Length]
- $max: 20
- #[NotBlank]
Methods
validate()
Validate this instance
public
final validate() : void
Tags
validateCountry()
public
final validateCountry(ExecutionContextInterface $context) : void
Parameters
- $context : ExecutionContextInterface
Attributes
- #[Callback]
validateType()
public
final validateType(ExecutionContextInterface $context) : void
Parameters
- $context : ExecutionContextInterface
Attributes
- #[Callback]
validateVatNumber()
public
final validateVatNumber(ExecutionContextInterface $context) : void
Parameters
- $context : ExecutionContextInterface
Attributes
- #[Callback]