Item
in package
uses
Immutable
Read onlyYes
FinalYes
Item information (BG-31).
Table of Contents
Properties
- $attributes : array<string|int, mixed>
- $buyerId : string|null
- $classifications : array<string|int, mixed>
- $description : string|null
- $name : string
- $originCountry : string|null
- $sellerId : string|null
- $standardId : Identifier|null
Methods
- __construct() : mixed
- with() : static
- Returns a copy with the given properties replaced.
Properties
$attributes
public
array<string|int, mixed>
$attributes
= []
Attributes
- #[Bt]
- 'BG-32'
- #[Cardinality]
- '0..n'
- #[Cii]
- 'ram:SpecifiedTradeProduct/ram:ApplicableProductCharacteristic'
- #[ListOf]
- ItemAttribute::class
- #[Ubl]
- 'cac:Item/cac:AdditionalItemProperty'
$buyerId
public
string|null
$buyerId
= null
Attributes
- #[Bt]
- 'BT-156'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:SpecifiedTradeProduct/ram:BuyerAssignedID'
- #[Ubl]
- 'cac:Item/cac:BuyersItemIdentification/cbc:ID'
$classifications
public
array<string|int, mixed>
$classifications
= []
Attributes
- #[Bt]
- 'BT-158'
- #[Cardinality]
- '0..n'
- #[Cii]
- 'ram:SpecifiedTradeProduct/ram:DesignatedProductClassification'
- #[ListOf]
- Classification::class
- #[Ubl]
- 'cac:Item/cac:CommodityClassification'
$description
public
string|null
$description
= null
Attributes
- #[Bt]
- 'BT-154'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:SpecifiedTradeProduct/ram:Description'
- #[Ubl]
- 'cac:Item/cbc:Description'
$name
public
string
$name
Attributes
- #[Bt]
- 'BT-153'
- #[Cardinality]
- '1'
- #[Cii]
- 'ram:SpecifiedTradeProduct/ram:Name'
- #[Level]
- ProfileLevel::Basic
- #[Ubl]
- 'cac:Item/cbc:Name'
$originCountry
public
string|null
$originCountry
= null
Attributes
- #[Bt]
- 'BT-159'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:SpecifiedTradeProduct/ram:OriginTradeCountry/ram:ID'
- #[Ubl]
- 'cac:Item/cac:OriginCountry/cbc:IdentificationCode'
$sellerId
public
string|null
$sellerId
= null
Attributes
- #[Bt]
- 'BT-155'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:SpecifiedTradeProduct/ram:SellerAssignedID'
- #[Ubl]
- 'cac:Item/cac:SellersItemIdentification/cbc:ID'
$standardId
public
Identifier|null
$standardId
= null
Attributes
- #[Bt]
- 'BT-157'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:SpecifiedTradeProduct/ram:GlobalID'
- #[Level]
- ProfileLevel::Basic
- #[Ubl]
- 'cac:Item/cac:StandardItemIdentification/cbc:ID'
Methods
__construct()
public
__construct(string $name[, string|null $description = null ][, string|null $sellerId = null ][, string|null $buyerId = null ][, Identifier|null $standardId = null ][, array<int, Classification> $classifications = [] ][, string|null $originCountry = null ][, array<int, ItemAttribute> $attributes = [] ]) : mixed
Parameters
- $name : string
- $description : string|null = null
- $sellerId : string|null = null
- $buyerId : string|null = null
- $standardId : Identifier|null = null
- $classifications : array<int, Classification> = []
- $originCountry : string|null = null
- $attributes : array<int, ItemAttribute> = []
with()
Returns a copy with the given properties replaced.
public
with(array<string, mixed> $changes) : static
Parameters
- $changes : array<string, mixed>