ArcadiaMailDefault
extends CrmClientModel
in package
This class represents the customer info with the account validation status
Tags
Table of Contents
- $label_type_support : string
- $operation : int
- $order_date : string
- $order_num : int
- $package_unit_weight : int
- $state_order : ArcadiaOrderType
- $support_code : int
- $modelFields : array<string|int, mixed>
- The crm customer fields
- $validation : array<string|int, mixed>
- Validation rules
- $label_type_support : string
- The arcadia type support label
- $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
- $state_order : int
- The arcadia state order
- $support_code : int
- The arcadia support code
- __construct() : mixed
- __get() : mixed
- __set() : mixed|null
- Set prop
- fill() : void
- Fill data into this model using validation rules
- send() : bool
- Send The actual mail
- validateAllValues() : array<string|int, mixed>
- Validate all model properties
Properties
$label_type_support
public
string
$label_type_support
The arcadia type support label
$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
$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
= ['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
= ['operation' => 'required|int', 'support_code' => 'required|int', 'label_type_support' => 'required|string|min:2|max:255', 'order_date' => 'required|date', 'order_num' => 'required|int', 'state_order' => ['required'], 'package_unit_weight' => 'required|int']
$label_type_support
The arcadia type support label
private
string
$label_type_support
= null
Validate: string
Required
$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
$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()
public
__construct([array<string|int, mixed> $properties = [] ]) : mixed
Parameters
- $properties : array<string|int, mixed> = []
Return values
mixed —__get()
public
__get(string $field) : mixed
Parameters
- $field : string
Return values
mixed —__set()
Set prop
public
__set(string $field, mixed $value) : mixed|null
Parameters
- $field : string
- $value : mixed
Tags
Return values
mixed|null —The input value or null is this prop does not exists
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 —send()
Send The actual mail
public
send(Customer $customer) : bool
Parameters
- $customer : Customer
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> = []
Return values
array<string|int, mixed> —the validated values