Documentation

Order
in package

YetiForce register class.

Table of Contents

URL  = 'https://api.yetiforce.eu/registrations/orders'
COMPANY_FORM_FIELDS  = ['name', 'vat_id', 'country', 'post_code', 'city', 'address']
Array of company form fields.
$error  : string|null
$data  : array<string|int, mixed>
$id  : string|null
$packageId  : string
$success  : bool
getError()  : string
Get last error.
getFieldInstances()  : array<string|int, Settings_Vtiger_Field_Model>
Function determines fields available in payment view.
getId()  : string
Get order ID.
send()  : bool
Send order data.
set()  : $this
Set value.
setPackageId()  : self
Set product package ID.
getData()  : array<string|int, string>
Get registration data.
setId()  : self
set order ID.

Constants

URL

public string URL = 'https://api.yetiforce.eu/registrations/orders'

URL

COMPANY_FORM_FIELDS

Array of company form fields.

private mixed COMPANY_FORM_FIELDS = ['name', 'vat_id', 'country', 'post_code', 'city', 'address']

Properties

$error

public string|null $error = null

Last error.

$data

private array<string|int, mixed> $data = []

Raw data

$id

private string|null $id

Order ID

$packageId

private string $packageId

package ID

$success

private bool $success

Response result

Methods

getError()

Get last error.

public getError() : string
Return values
string

getId()

Get order ID.

public getId() : string
Return values
string

send()

Send order data.

public send() : bool
Return values
bool

set()

Set value.

public set(string $key, mixed $value) : $this
Parameters
$key : string
$value : mixed
Return values
$this

setPackageId()

Set product package ID.

public setPackageId(string $packageId) : self
Parameters
$packageId : string
Return values
self

getData()

Get registration data.

private getData() : array<string|int, string>
Return values
array<string|int, string>

setId()

set order ID.

private setId(string $id) : self
Parameters
$id : string
Return values
self

        

Search results