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
$currency_id
protected
mixed
$currency_id
$discount
protected
mixed
$discount
$event_date
protected
mixed
$event_date
$from_country_id
protected
mixed
$from_country_id
$from_currency_change
protected
mixed
$from_currency_change
$from_currency_id
protected
mixed
$from_currency_id
$id_list
protected
mixed
$id_list
$movement_type_id
protected
mixed
$movement_type_id
$price
protected
mixed
$price
$product_id
protected
mixed
$product_id
$quantity
protected
mixed
$quantity
$ship
protected
mixed
$ship
$source_type
protected
mixed
$source_type
$status_code
protected
mixed
$status_code
$to_country_id
protected
mixed
$to_country_id
$to_currency_change
protected
mixed
$to_currency_change
$to_currency_id
protected
mixed
$to_currency_id
$transid
protected
mixed
$transid
$user_id
protected
mixed
$user_id
$vatrate
protected
mixed
$vatrate
$movementList
private
mixed
$movementList
= null
Methods
create()
public
static create(mixed $attr) : mixed
Parameters
- $attr : mixed
getCurrencyId()
public
getCurrencyId() : mixed
getDiscount()
public
getDiscount() : mixed
getEventDate()
public
getEventDate() : mixed
getFirstMovement()
public
getFirstMovement() : mixed
getFromCountryId()
public
getFromCountryId() : mixed
getFromCurrencyChange()
public
getFromCurrencyChange() : mixed
getFromCurrencyId()
public
getFromCurrencyId() : mixed
getGross()
public
getGross() : mixed
getIdList()
public
getIdList() : mixed
getMovementClass()
public
getMovementClass() : mixed
getMovementList()
public
getMovementList() : array<string|int, mixed>
Return values
array<string|int, mixed>getMovementTypeId()
public
getMovementTypeId() : mixed
getPrice()
public
getPrice() : mixed
getProductId()
public
getProductId() : 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
getQuantity()
public
getQuantity() : mixed
getShip()
public
getShip() : mixed
getSourceType()
public
getSourceType() : mixed
getStatusCode()
public
getStatusCode() : mixed
getToCountryId()
public
getToCountryId() : mixed
getToCurrencyChange()
public
getToCurrencyChange() : mixed
getToCurrencyId()
public
getToCurrencyId() : mixed
getTransid()
public
getTransid() : mixed
getUserId()
public
getUserId() : mixed
getVatrate()
public
getVatrate() : mixed
hasError()
public
hasError() : bool
Return values
boolhasMissingValues()
public
hasMissingValues() : mixed
isMovementCredit()
public
isMovementCredit() : bool
Return values
boolisMovementProduct()
public
isMovementProduct() : bool
Return values
boolloadMovementList()
private
loadMovementList() : array<string|int, mixed>
Return values
array<string|int, mixed>setIdList()
private
setIdList(mixed $id_list) : Transaction
Parameters
- $id_list : mixed