ArcadiaMailDefault
extends CrmClientModel
in package
This class represents the customer info with the account validation status
Tags
Table of Contents
- $address : string
- $address2 : string
- $city : string
- $email : string
- $firstname : string
- $label_type_support : string
- $lastname : string
- $operation : int
- $order_date : string
- $order_num : int
- $package_unit_weight : int
- $phone : string
- $postcode : string
- $state_order : ArcadiaOrderType
- $support_code : int
- $modelFields : array<string|int, mixed>
- The crm customer fields
- $validation : array<string|int, mixed>
- Validation rules
- $address : string
- The user address (street number, name, etc)
- $address2 : string
- The user address 2nd part (street number, name, more, etc)
- $city : string
- The user address city
- $email : string
- An RFC Valid Email
- $firstname : string
- First name
- $label_type_support : string
- The arcadia type support label
- $lastname : string
- Last name
- $operation : int
- The arcadia operation code
- $order_date : string
- The arcadia order date
- $order_num : int
- The arcadia order number
- $package_unit_weight : int
- The arcadia package unit weight
- $phone : string
- The user phone
- $postcode : string
- The user address postcode
- $state_order : int
- The arcadia state order
- $support_code : int
- The arcadia support code
- __construct() : mixed
- ArcadiaMailDefault
- __get() : mixed
- Generic accessor
- __set() : void
- Set prop
- fill() : void
- Fill data into this model using validation rules
- jsonSerialize() : array<string|int, mixed>
- Serialize this object to an array
- send() : bool
- Send The actual mail
- validateAllValues() : array<string|int, mixed>
- Validate all model properties
Properties
$address
public
string
$address
The account address (street number, name, build, flat number)
$address2
public
string
$address2
The account phone (address complement)
$city
public
string
$city
The account city name
public
string
$email
Must be a rfc valid email on a valid domain name
$firstname
public
string
$firstname
The account first name
$label_type_support
public
string
$label_type_support
The arcadia type support label
$lastname
public
string
$lastname
The account last name
$operation
public
int
$operation
The arcadia operation code
$order_date
public
string
$order_date
The arcadia order date 'yyyy-mm-dd HH:ii:ss'
$order_num
public
int
$order_num
The arcadia order number
$package_unit_weight
public
int
$package_unit_weight
The arcadia package unit weight
$phone
public
string
$phone
The account phone
$postcode
public
string
$postcode
The account city postcode
$state_order
public
ArcadiaOrderType
$state_order
The arcadia order date
$support_code
public
int
$support_code
The arcadia support code
$modelFields
The crm customer fields
protected
array<string|int, mixed>
$modelFields
= ['email', 'firstname', 'lastname', 'phone', 'address', 'address2', 'city', 'postcode', 'operation', 'support_code', 'label_type_support', 'order_date', 'order_num', 'state_order', 'package_unit_weight']
$validation
Validation rules
protected
static array<string|int, mixed>
$validation
= ['email' => 'required|email', 'firstname' => 'required|string|min:2|max:255', 'lastname' => 'required|string|min:2|max:255', 'phone' => 'sometimes|string|min:10|max:255', 'address' => 'sometimes|string|max:255', 'address2' => 'sometimes|string|max:255', 'city' => 'sometimes|string|max:255', 'postcode' => 'sometimes|string|max:255', 'operation' => 'required|int', 'support_code' => 'required|int', 'label_type_support' => 'required|string|min:2|max:255', 'order_date' => 'required|date_format:Y/m/d H:i:s', 'order_num' => 'required|int', 'state_order' => ['required'], 'package_unit_weight' => 'required|int']
$address
The user address (street number, name, etc)
private
string
$address
= null
Validate: sometimes,string
Min length NA Max length 255 Field Type varchar
$address2
The user address 2nd part (street number, name, more, etc)
private
string
$address2
= null
Validate: sometimes,string
Min length NA Max length 255 Field Type varchar
$city
The user address city
private
string
$city
= null
Validate: sometimes,string
Min length NA Max length 255 Field Type varchar
An RFC Valid Email
private
string
$email
= null
Validate: rfc,dns,spoof,filter
Required Min length N/A Max length 255 Field Type varchar
$firstname
First name
private
string
$firstname
= null
Required Min length 2 Max length 255 Field Type varchar
$label_type_support
The arcadia type support label
private
string
$label_type_support
= null
Validate: string
Required
$lastname
Last name
private
string
$lastname
= null
Required Min length 2 Max length 255 Field Type varchar
$operation
The arcadia operation code
private
int
$operation
= null
Validate: int
Required
$order_date
The arcadia order date
private
string
$order_date
= null
Validate: date
Required
$order_num
The arcadia order number
private
int
$order_num
= null
Validate: numeric,digits:9
Required
$package_unit_weight
The arcadia package unit weight
private
int
$package_unit_weight
= null
Validate: integer
Required
$phone
The user phone
private
string
$phone
= null
Validate: sometimes,string
Required Min length NA Max length 255 Field Type varchar
$postcode
The user address postcode
private
string
$postcode
= null
Validate: string
Required Min length NA Max length 255 Field Type varchar
$state_order
The arcadia state order
private
int
$state_order
= null
Validate: in ArcadiaOrderType::toValues()
Required
$support_code
The arcadia support code
private
int
$support_code
= null
Validate: int
Required
Methods
__construct()
ArcadiaMailDefault
public
__construct([array<string|int, mixed> $properties = [] ]) : mixed
Parameters
- $properties : array<string|int, mixed> = []
Tags
Return values
mixed —__get()
Generic accessor
public
__get(string $field) : mixed
Parameters
- $field : string
Return values
mixed —__set()
Set prop
public
__set(string $field, mixed $value) : void
Parameters
- $field : string
- $value : mixed
Tags
Return values
void —fill()
Fill data into this model using validation rules
public
fill(array<string|int, mixed> $properties) : void
Parameters
- $properties : array<string|int, mixed>
Tags
Return values
void —jsonSerialize()
Serialize this object to an array
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —send()
Send The actual mail
public
send() : bool
Tags
Return values
bool —true if succeeded
validateAllValues()
Validate all model properties
protected
validateAllValues([array<string|int, mixed> $ignore = [] ]) : array<string|int, mixed>
Parameters
- $ignore : array<string|int, mixed> = []
Tags
Return values
array<string|int, mixed> —the validated values