CRM V2

ArcadiaMailGame extends CrmClientModel
in package

This class represents the customer info with the account validation status

Tags
category

Api Models

subpackage

models

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
jsonSerialize()  : array<string|int, mixed>
Serialize this object to an array
send()  : bool
Send The actual mail

Properties

$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'

$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_format:Y/m/d H:i:s', '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

$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
throws
TypeError

if the field has an incorrect value

Return values
mixed|null —

The input value or null is this prop does not exists

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(Customer $customer) : bool
Parameters
$customer : Customer
Tags
throws
CrmException

if an error occurs on server side or on getting response

throws
ApiErrorException

If any error or \LDC\LDCCRM\Enums\ApiError occurs

Return values
bool —

true if succeeded

Search results