Shipment extends CollectableEntity implements IBusinessValueProvider, IEntityMarker
Class Shipment
Table of Contents
Interfaces
- IBusinessValueProvider
- IEntityMarker
- Bitrix Framework
Methods
- allowDelivery() : Result
- calculateDelivery() : CalculationResult
- canAutoFixError() : bool
- canMarked() : bool
- clearStartField() : bool
- create() : mixed
- delete() : Result
- Deletes shipment
- deliver() : Result
- disallowDelivery() : Result
- doFinalAction() : Result
- fixReserveErrors() : Result
- fixShipErrors() : Result
- getAllFields() : array<string|int, mixed>
- getAllowDeliveryDate() : DateTime
- getAllowDeliveryUserId() : int
- getAutoFixErrorsList() : array<string|int, mixed>
- getAvailableFields() : array<string|int, mixed>
- getAvailableFieldsMap() : array<string|int, mixed>|null
- getBasketItemQuantity() : float|int
- getBusinessValueProviderInstance() : Shipment|null|string
- getClassName() : string
- getCollection() : EntityCollection
- getCompanyId() : int
- getCurrency() : string
- getCustomizableFields() : array<string|int, mixed>
- getDelivery() : Base
- getDeliveryId() : int
- getDeliveryName() : string
- getErrorEntity() : string
- getExtraServices() : array<string|int, mixed>
- getExtraServicesObjects() : array<string|int, Base>
- getField() : string|null
- getFieldsDescription() : array<string|int, mixed>
- getFieldValues() : array<string|int, mixed>
- getId() : int
- getInternalIndex() : null|int
- getList() : Result
- getMarkField() : string
- getOrder() : Order|null
- getParentOrder() : Order|null
- getParentOrderId() : bool|int
- getPersonTypeId() : int|null
- getPrice() : float
- getPropertyCollection() : ShipmentPropertyValueCollection
- getRegistryEntity() : string|void
- getRegistryType() : string
- getServiceParams() : array<string|int, mixed>
- getShipmentCode() : int
- getShipmentItemCollection() : array<string|int, mixed>|ShipmentItemCollection
- getShippedDate() : DateTime
- getShippedUserId() : int
- getStoreId() : int
- getUfId() : null
- getUnshipReason() : string
- getVatRate() : float|int
- getVatSum() : float
- getWeight() : float
- hasMeaningfulField() : bool
- isAllowDelivery() : bool
- isCanceled() : bool
- isChanged() : bool
- isClone() : bool
- isCustomPrice() : bool
- isEmpty() : bool
- isExistBasketItem() : bool
- isMarked() : bool
- isMarkedFieldCustom() : bool
- isMathActionOnly() : bool
- isReserved() : bool
- isShipped() : bool
- isStartField() : bool
- isSystem() : bool
- loadForOrder() : array<string|int, mixed>
- loadPropertyCollection() : ShipmentPropertyValueCollection
- markFieldCustom() : mixed
- needShip() : mixed
- onBasketModify() : Result
- onBeforeBasketItemDelete() : Result
- onShipmentItemCollectionModify() : Result
- resetData() : mixed
- setAccountNumber() : Result
- setBasePriceDelivery() : Result
- setCollection() : mixed
- setDeliveryService() : mixed
- setExtraServices() : mixed
- setField() : Result
- Sets new value to specified field of shipment item
- setFields() : Result
- setMathActionOnly() : bool
- setOrderId() : mixed
- setServiceParams() : mixed
- setStoreId() : mixed
- setWeight() : string|null
- toArray() : array<string|int, mixed>
- tryFixError() : Result
- tryReserve() : mixed
- tryShip() : Result
- tryUnreserve() : mixed
- tryUnship() : Result
- unmarkFieldCustom() : mixed
- updateReservedFlag() : Result
- verify() : Result
Methods
allowDelivery()
public
allowDelivery() : Result
Tags
Return values
ResultcalculateDelivery()
public
calculateDelivery() : CalculationResult
Tags
Return values
CalculationResultcanAutoFixError()
public
canAutoFixError(mixed $value) : bool
Parameters
- $value : mixed
Return values
boolcanMarked()
public
canMarked() : bool
Return values
boolclearStartField()
public
clearStartField() : bool
Return values
boolcreate()
public
static create(ShipmentCollection $collection[, Base|null $service = null ]) : mixed
Parameters
- $collection : ShipmentCollection
- $service : Base|null = null
Tags
delete()
Deletes shipment
public
delete() : Result
Tags
Return values
Resultdeliver()
public
deliver() : Result
Tags
Return values
ResultdisallowDelivery()
public
disallowDelivery() : Result
Tags
Return values
ResultdoFinalAction()
public
doFinalAction([mixed $hasMeaningfulField = false ]) : Result
Parameters
- $hasMeaningfulField : mixed = false
Return values
ResultfixReserveErrors()
public
static fixReserveErrors(Shipment $entity) : Result
Parameters
- $entity : Shipment
Tags
Return values
ResultfixShipErrors()
public
static fixShipErrors(Shipment $entity) : Result
Parameters
- $entity : Shipment
Tags
Return values
ResultgetAllFields()
public
static getAllFields() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getAllowDeliveryDate()
public
getAllowDeliveryDate() : DateTime
Return values
DateTimegetAllowDeliveryUserId()
public
getAllowDeliveryUserId() : int
Return values
intgetAutoFixErrorsList()
public
getAutoFixErrorsList() : array<string|int, mixed>
Return values
array<string|int, mixed>getAvailableFields()
public
static getAvailableFields() : array<string|int, mixed>
Return values
array<string|int, mixed>getAvailableFieldsMap()
public
static getAvailableFieldsMap() : array<string|int, mixed>|null
Tags
Return values
array<string|int, mixed>|nullgetBasketItemQuantity()
public
getBasketItemQuantity(BasketItem $basketItem) : float|int
Parameters
- $basketItem : BasketItem
Tags
Return values
float|intgetBusinessValueProviderInstance()
public
getBusinessValueProviderInstance(mixed $mapping) : Shipment|null|string
Parameters
- $mapping : mixed
Return values
Shipment|null|stringgetClassName()
public
static getClassName() : string
Return values
stringgetCollection()
public
getCollection() : EntityCollection
Return values
EntityCollectiongetCompanyId()
public
getCompanyId() : int
Return values
intgetCurrency()
public
getCurrency() : string
Return values
stringgetCustomizableFields()
public
static getCustomizableFields() : array<string|int, mixed>
Return values
array<string|int, mixed>getDelivery()
public
getDelivery() : Base
Tags
Return values
BasegetDeliveryId()
public
getDeliveryId() : int
Return values
intgetDeliveryName()
public
getDeliveryName() : string
Return values
stringgetErrorEntity()
public
getErrorEntity(mixed $value) : string
Parameters
- $value : mixed
Return values
stringgetExtraServices()
public
getExtraServices() : array<string|int, mixed>
Return values
array<string|int, mixed>getExtraServicesObjects()
public
getExtraServicesObjects() : array<string|int, Base>
Return values
array<string|int, Base>getField()
public
getField(mixed $name) : string|null
Parameters
- $name : mixed
Return values
string|nullgetFieldsDescription()
public
static getFieldsDescription() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getFieldValues()
public
getFieldValues() : array<string|int, mixed>
Return values
array<string|int, mixed>getId()
public
getId() : int
Return values
intgetInternalIndex()
public
getInternalIndex() : null|int
Return values
null|intgetList()
public
static getList(array<string|int, mixed> $parameters) : Result
Parameters
- $parameters : array<string|int, mixed>
Tags
Return values
ResultgetMarkField()
public
getMarkField() : string
Return values
stringgetOrder()
public
getOrder() : Order|null
Return values
Order|nullgetParentOrder()
public
getParentOrder() : Order|null
Use getOrder instead
Return values
Order|nullgetParentOrderId()
public
getParentOrderId() : bool|int
Return values
bool|intgetPersonTypeId()
public
getPersonTypeId() : int|null
Return values
int|nullgetPrice()
public
getPrice() : float
Return values
floatgetPropertyCollection()
public
getPropertyCollection() : ShipmentPropertyValueCollection
Return values
ShipmentPropertyValueCollectiongetRegistryEntity()
public
static getRegistryEntity() : string|void
Return values
string|voidgetRegistryType()
public
static getRegistryType() : string
Return values
stringgetServiceParams()
public
getServiceParams() : array<string|int, mixed>
Return values
array<string|int, mixed>getShipmentCode()
public
getShipmentCode() : int
Return values
intgetShipmentItemCollection()
public
getShipmentItemCollection() : array<string|int, mixed>|ShipmentItemCollection
Tags
Return values
array<string|int, mixed>|ShipmentItemCollectiongetShippedDate()
public
getShippedDate() : DateTime
Return values
DateTimegetShippedUserId()
public
getShippedUserId() : int
Return values
intgetStoreId()
public
getStoreId() : int
Return values
intgetUfId()
public
static getUfId() : null
Return values
nullgetUnshipReason()
public
getUnshipReason() : string
Return values
stringgetVatRate()
public
getVatRate() : float|int
Tags
Return values
float|intgetVatSum()
public
getVatSum() : float
Tags
Return values
floatgetWeight()
public
getWeight() : float
Return values
floathasMeaningfulField()
public
hasMeaningfulField() : bool
Return values
boolisAllowDelivery()
public
isAllowDelivery() : bool
Return values
boolisCanceled()
public
isCanceled() : bool
Return values
boolisChanged()
public
isChanged() : bool
Return values
boolisClone()
public
isClone() : bool
Return values
boolisCustomPrice()
public
isCustomPrice() : bool
Tags
Return values
boolisEmpty()
public
isEmpty() : bool
Return values
boolisExistBasketItem()
public
isExistBasketItem(BasketItem $basketItem) : bool
Parameters
- $basketItem : BasketItem
Tags
Return values
boolisMarked()
public
isMarked() : bool
Return values
boolisMarkedFieldCustom()
public
isMarkedFieldCustom(string $name) : bool
Parameters
- $name : string
Return values
boolisMathActionOnly()
public
isMathActionOnly() : bool
Return values
boolisReserved()
public
isReserved() : bool
Tags
Return values
boolisShipped()
public
isShipped() : bool
Return values
boolisStartField()
public
isStartField([bool $isMeaningfulField = false ]) : bool
Parameters
- $isMeaningfulField : bool = false
Return values
boolisSystem()
public
isSystem() : bool
Return values
boolloadForOrder()
public
static loadForOrder(mixed $id) : array<string|int, mixed>
Parameters
- $id : mixed
Tags
Return values
array<string|int, mixed>loadPropertyCollection()
public
loadPropertyCollection() : ShipmentPropertyValueCollection
Return values
ShipmentPropertyValueCollectionmarkFieldCustom()
public
markFieldCustom(string $name) : mixed
Parameters
- $name : string
Tags
needShip()
public
needShip() : mixed
onBasketModify()
public
onBasketModify(mixed $action, BasketItem $basketItem[, null $name = null ][, null $oldValue = null ][, null $value = null ]) : Result
Parameters
- $action : mixed
- $basketItem : BasketItem
- $name : null = null
- $oldValue : null = null
- $value : null = null
Tags
Return values
ResultonBeforeBasketItemDelete()
public
onBeforeBasketItemDelete(BasketItem $basketItem) : Result
Parameters
- $basketItem : BasketItem
Tags
Return values
ResultonShipmentItemCollectionModify()
public
onShipmentItemCollectionModify(mixed $action, ShipmentItem $shipmentItem[, null $name = null ][, null $oldValue = null ][, null $value = null ]) : Result
Parameters
- $action : mixed
- $shipmentItem : ShipmentItem
- $name : null = null
- $oldValue : null = null
- $value : null = null
Tags
Return values
ResultresetData()
public
resetData() : mixed
Tags
setAccountNumber()
public
setAccountNumber(mixed $id) : Result
Parameters
- $id : mixed
Tags
Return values
ResultsetBasePriceDelivery()
public
setBasePriceDelivery(mixed $value[, bool $custom = false ]) : Result
Parameters
- $value : mixed
- $custom : bool = false
Tags
Return values
ResultsetCollection()
public
setCollection(EntityCollection $collection) : mixed
Parameters
- $collection : EntityCollection
setDeliveryService()
public
setDeliveryService(Base $service) : mixed
Parameters
- $service : Base
Tags
setExtraServices()
public
setExtraServices(array<string|int, mixed> $extraServices) : mixed
Parameters
- $extraServices : array<string|int, mixed>
setField()
Sets new value to specified field of shipment item
public
setField(string $name, mixed $value) : Result
Parameters
- $name : string
- $value : mixed
Tags
Return values
ResultsetFields()
public
setFields(array<string|int, mixed> $values) : Result
Parameters
- $values : array<string|int, mixed>
Tags
Return values
ResultsetMathActionOnly()
public
setMathActionOnly([bool|false $value = false ]) : bool
Parameters
- $value : bool|false = false
Return values
boolsetOrderId()
public
setOrderId(mixed $orderId) : mixed
Parameters
- $orderId : mixed
setServiceParams()
public
setServiceParams(array<string|int, mixed> $serviceParams) : mixed
Parameters
- $serviceParams : array<string|int, mixed>
Tags
setStoreId()
public
setStoreId(int $storeId) : mixed
Parameters
- $storeId : int
setWeight()
public
setWeight(float $weight) : string|null
Parameters
- $weight : float
Return values
string|nulltoArray()
public
toArray() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>tryFixError()
public
tryFixError(mixed $code) : Result
Parameters
- $code : mixed
Return values
ResulttryReserve()
public
tryReserve() : mixed
Tags
tryShip()
public
tryShip() : Result
Tags
Return values
ResulttryUnreserve()
public
tryUnreserve() : mixed
Tags
tryUnship()
public
tryUnship() : Result
Tags
Return values
ResultunmarkFieldCustom()
public
unmarkFieldCustom(string $name) : mixed
Parameters
- $name : string
Tags
updateReservedFlag()
public
static updateReservedFlag(Shipment $shipment) : Result
Parameters
- $shipment : Shipment
Tags
Return values
Resultverify()
public
verify() : Result