ArcadiaMailGame
extends CrmClientModel
in package
This class represents the customer info with the account validation status
Tags
Table of Contents
- $code_on_pack : string
- $code_unique : string
- $label_type_support : string
- $operation : int
- $order_date : string
- $support_code : int
- $modelFields : array<string|int, mixed>
- The crm customer fields
- $validation : array<string|int, mixed>
- Validation rules
- $code_on_pack : string
- The arcadia code on pack
- $code_unique : string
- The arcadia code unique
- $label_type_support : string
- The arcadia type support label
- $operation : int
- $order_date : string
- The arcadia order date
- $support_code : int
- The arcadia support code
- __construct() : mixed
- __set() : mixed|null
- Set prop
- send() : bool
- Send The actual mail
Properties
$code_on_pack
public
string
$code_on_pack
The arcadia code on pack
$code_unique
public
string
$code_unique
The arcadia code unique
$label_type_support
public
string
$label_type_support
The arcadia type support label
$operation
public
int
$operation
The arcadia operation code Validate: int Required
$order_date
public
string
$order_date
The arcadia order date 'yyyy-mm-dd HH:ii:ss'
$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', 'code_unique', 'code_on_pack']
$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', 'code_unique' => 'required|string', 'code_on_pack' => 'sometimes|string']
$code_on_pack
The arcadia code on pack
private
string
$code_on_pack
= null
Validate: sometimes
Required
$code_unique
The arcadia code unique
private
string
$code_unique
= null
Validate: string
Required
$label_type_support
The arcadia type support label
private
string
$label_type_support
= null
Validate: string
Required
$operation
private
int
$operation
= null
Tags
$order_date
The arcadia order date
private
string
$order_date
= null
Validate: date
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 —__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
send()
Send The actual mail
public
send(Customer $customer) : bool
Parameters
- $customer : Customer
Return values
bool —true if succeeded