Documentation

Transaction extends Injectable
in package
uses TraitTransaction

Table of Contents

Constants

ATTR_LIST  = ['id_list', 'movement_type_id', 'user_id', 'source_type', 'status_code', 'event_date', 'transid', 'from_country_id', 'to_country_id', 'currency_id', 'price', 'ship', 'discount', 'quantity', 'product_id', 'from_currency_change', 'to_currency_change', 'from_currency_id', 'to_currency_id', 'vatrate']
MOVEMENT_CLASS  = [1 => \Vatjar\Movement\Model\MovementCredit::class, 2 => \Vatjar\Movement\Model\MovementProduct::class]

Properties

$currency_id  : mixed
$discount  : mixed
$event_date  : mixed
$from_country_id  : mixed
$from_currency_change  : mixed
$from_currency_id  : mixed
$id_list  : mixed
$movement_type_id  : mixed
$price  : mixed
$product_id  : mixed
$quantity  : mixed
$ship  : mixed
$source_type  : mixed
$status_code  : mixed
$to_country_id  : mixed
$to_currency_change  : mixed
$to_currency_id  : mixed
$transid  : mixed
$user_id  : mixed
$vatrate  : mixed
$movementList  : mixed

Methods

create()  : mixed
getCurrencyId()  : mixed
getDiscount()  : mixed
getEventDate()  : mixed
getFirstMovement()  : mixed
getFromCountryId()  : mixed
getFromCurrencyChange()  : mixed
getFromCurrencyId()  : mixed
getGross()  : mixed
getIdList()  : mixed
getMovementClass()  : mixed
getMovementList()  : array<string|int, mixed>
getMovementTypeId()  : mixed
getPrice()  : mixed
getProductId()  : mixed
getProductIdentityArray()  : array<string|int, mixed>
for product filter url ['asin' => 'b07....'].
getProductIdentityName()  : mixed
getProductIdentityType()  : mixed
getProductIdentityTypeAndName()  : mixed
getQuantity()  : mixed
getShip()  : mixed
getSourceType()  : mixed
getStatusCode()  : mixed
getToCountryId()  : mixed
getToCurrencyChange()  : mixed
getToCurrencyId()  : mixed
getTransid()  : mixed
getUserId()  : mixed
getVatrate()  : mixed
hasError()  : bool
hasMissingValues()  : mixed
isMovementCredit()  : bool
isMovementProduct()  : bool
loadMovementList()  : array<string|int, mixed>
setIdList()  : Transaction

Constants

ATTR_LIST

public mixed ATTR_LIST = ['id_list', 'movement_type_id', 'user_id', 'source_type', 'status_code', 'event_date', 'transid', 'from_country_id', 'to_country_id', 'currency_id', 'price', 'ship', 'discount', 'quantity', 'product_id', 'from_currency_change', 'to_currency_change', 'from_currency_id', 'to_currency_id', 'vatrate']

MOVEMENT_CLASS

public mixed MOVEMENT_CLASS = [1 => \Vatjar\Movement\Model\MovementCredit::class, 2 => \Vatjar\Movement\Model\MovementProduct::class]

Properties

$from_currency_change

protected mixed $from_currency_change

$to_currency_change

protected mixed $to_currency_change

Methods

create()

public static create(mixed $attr) : mixed
Parameters
$attr : mixed

getFirstMovement()

public getFirstMovement() : mixed

getMovementClass()

public getMovementClass() : mixed

getMovementList()

public getMovementList() : array<string|int, mixed>
Return values
array<string|int, mixed>

getProductIdentityArray()

for product filter url ['asin' => 'b07....'].

public getProductIdentityArray([bool $idOk = false ]) : array<string|int, mixed>
Parameters
$idOk : bool = false
Return values
array<string|int, mixed>

getProductIdentityName()

public getProductIdentityName([mixed $idOk = false ]) : mixed
Parameters
$idOk : mixed = false

getProductIdentityType()

public getProductIdentityType([mixed $idOk = false ]) : mixed
Parameters
$idOk : mixed = false

getProductIdentityTypeAndName()

public getProductIdentityTypeAndName([mixed $idOk = false ]) : mixed
Parameters
$idOk : mixed = false

hasError()

public hasError() : bool
Return values
bool

hasMissingValues()

public hasMissingValues() : mixed

isMovementProduct()

public isMovementProduct() : bool
Return values
bool

loadMovementList()

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

        
On this page

Search results