Skip to content

Class OrderDocumentReader

HorstOeko edited this page Dec 28, 2024 · 1 revision

Summary

Class representing the document reader for incoming XML-Documents with
XML data in BASIC-, COMFORT- and EXTENDED profile

Methods

setBinaryDataDirectory

Summary

Set the directory where the attached binary data from
additional referenced documents are temporary stored

Signature

public function setBinaryDataDirectory(string $binarydatadirectory): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
binarydatadirectory string

Returns

Returns a value of type \OrderDocumentReader

readAndGuessFromFile [static]

Summary

Guess the profile type of a xml file

Signature

public static function readAndGuessFromFile(string $xmlfilename): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
xmlfilename string The filename to read invoice data from

Returns

Returns a value of type \OrderDocumentReader

readAndGuessFromContent [static]

Summary

Guess the profile type of the readden xml document

Signature

public static function readAndGuessFromContent(string $xmlcontent): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
xmlcontent string The XML content as a string to read the invoice data from

Returns

Returns a value of type \OrderDocumentReader

getDocumentInformation

Summary

Get main information about this document

Signature

public function getDocumentInformation(
  ?string $documentNo,
  ?string $documentTypeCode,
  ?DateTime $documentDate,
  ?string $documentCurrency,
  ?string $documentName,
  ?string $documentLanguageId,
  ?DateTime $documentEffectiveSpecifiedPeriod,
  ?string $documentPurposeCode,
  ?string $documentRequestedResponseTypeCode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
documentNo string ✔️
An identifier of a referenced purchase order, issued by the Buyer.
documentTypeCode string ✔️
A code specifying the functional type of the Order
Commercial orders and credit notes are defined according the entries in UNTDID 1001
Other entries of UNTDID 1001 with specific orders may be used if applicable.
- 220 for Order
- 230 for Order Change
- 231 for Order Response
documentDate DateTime ✔️
The date when the document was issued by the buyer
documentCurrency string ✔️
The code for the order currency
documentName string ✔️
The document type (free text)
documentLanguageId string ✔️
A unique identifier for a language used in this exchanged document
documentEffectiveSpecifiedPeriod DateTime ✔️
The specified period within which this exchanged document is effective
documentPurposeCode string ✔️
The purpose, expressed as text, of this exchanged document
- 7 : Duplicate
- 9 : Original
- 35 : Retransmission
documentRequestedResponseTypeCode string ✔️
Response requested for this exchanged document. Value = AC to request an Order_Response
Value = AC to request an Order_Response

Returns

Returns a value of type \OrderDocumentReader

getIsDocumentCopy

Summary

Read copy indicator

Signature

public function getIsDocumentCopy(?bool $copyindicator): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
copyindicator bool ✔️
Returns true if this document is a copy from the original document

Returns

Returns a value of type \OrderDocumentReader

getIsTestDocument

Summary

Read a test document indicator

Signature

public function getIsTestDocument(?bool $testdocumentindicator): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
testdocumentindicator bool ✔️
Returns true if this document is only for test purposes

Returns

Returns a value of type \OrderDocumentReader

firstDocumentNote

Summary

Set the intérnal note pointer to the first document note
It will return false if there is no note on the first position

Signature

public function firstDocumentNote(): bool
{
}

Returns

Returns a value of type bool

nextDocumentNote

Summary

Set the intérnal note pointer to the next document note.

It will return false if there isn't one more document note

Signature

public function nextDocumentNote(): bool
{
}

Returns

Returns a value of type bool

getDocumentNote

Summary

Retrieve the document note. You have to check first if there is a note using
the firstDocumentNote/nextDocumentNote methods

Signature

public function getDocumentNote(?array $content, ?string $subjectCode, ?string $contentCode): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
content array ✔️
Note content
subjectCode string ✔️
Subject code. To be chosen from the entries in UNTDID 4451
contentCode string ✔️
Content code. To be chosen from the entries in UNTDID xxx

Returns

Returns a value of type \OrderDocumentReader

getDocumentSummation

Summary

Get the document money summation

Signature

public function getDocumentSummation(
  ?float $lineTotalAmount,
  ?float $grandTotalAmount,
  ?float $chargeTotalAmount,
  ?float $allowanceTotalAmount,
  ?float $taxBasisTotalAmount,
  ?float $taxTotalAmount,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
lineTotalAmount float ✔️ Sum of the net amounts of all prder items
Sum of all order line net amounts in the
order.
grandTotalAmount float ✔️ Total order amount including sales tax
The total amount of the order with
VAT.
chargeTotalAmount float ✔️ Sum of the surcharges at document level
Sum of all charges on document level in
the order.
allowanceTotalAmount float ✔️ Sum of the discounts at document level
Sum of all allowances on document level in the order.
taxBasisTotalAmount float ✔️ Total order amount excluding sales tax
The total amount of the order without
VAT.
taxTotalAmount float ✔️ Total amount of the order tax, Total tax amount in the booking currency
The total VAT amount for the order.

Returns

Returns a value of type \OrderDocumentReader

getDocumentBuyerReference

Summary

Get the identifier defined by the Buyer (e.g. contact ID, department, office id, project code).

Signature

public function getDocumentBuyerReference(?string $buyerreference): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
buyerreference string ✔️
An identifier assigned by the Buyer used for internal routing purposes

Returns

Returns a value of type \OrderDocumentReader

getDocumentSeller

Summary

Get detailed information about the seller (=service provider)

Signature

public function getDocumentSeller(?string $name, ?array $id, ?string $description): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
name string ✔️
The full formal name by which the party is registered in the national registry of
legal entities or as a Taxable person or otherwise trades as a person or persons.
id array ✔️
An identification of the Party. The identification scheme identifier of the Party identifier.
description string ✔️
Additional legal information relevant for the Paety.

Returns

Returns a value of type \OrderDocumentReader

getDocumentSellerGlobalId

Summary

Get global identifiers of the seller.

Signature

public function getDocumentSellerGlobalId(?array $globalID): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
globalID array ✔️
Array of the sellers global ids indexed by the identification scheme. The identification scheme results
from the list published by the ISO/IEC 6523 Maintenance Agency.

Returns

Returns a value of type \OrderDocumentReader

getDocumentSellerTaxRegistration

Summary

Get detailed information on the seller's tax information.

Signature

public function getDocumentSellerTaxRegistration(?array $taxreg): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
taxreg array ✔️
Array of sales tax identification numbers of the seller indexed by Scheme identifier (e.g.: FC for Tax number of the seller and VA
for Sales tax identification number of the seller)

Returns

Returns a value of type \OrderDocumentReader

getDocumentSellerAddress

Summary

Get the address of seller trade party

Signature

public function getDocumentSellerAddress(
  ?string $lineone,
  ?string $linetwo,
  ?string $linethree,
  ?string $postcode,
  ?string $city,
  ?string $country,
  ?string $subdivision,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
lineone string ✔️
The main line in the sellers address. This is usually the street name and house number or
the post office box
linetwo string ✔️
Line 2 of the seller's address. This is an additional address line in an address that can be
used to provide additional details in addition to the main line
linethree string ✔️
Line 3 of the seller's address. This is an additional address line in an address that can be
used to provide additional details in addition to the main line
postcode string ✔️
The identifier for an addressable group of properties according to the relevant postal service.
city string ✔️
Usual name of the city or municipality in which the seller's address is located
country string ✔️
Code used to identify the country. If no tax agent is specified, this is the country in which the sales tax
is due. The lists of approved countries are maintained by the EN ISO 3166-1 Maintenance Agency “Codes for the
representation of names of countries and their subdivisions”
If no tax representative is specified, this is the country where VAT is liable. The lists of valid countries
are registered with the EN ISO 3166-1 Maintenance agency, “Codes for the representation of names of countries
and their subdivisions”.
subdivision string ✔️
The subdivision of a country.

Returns

Returns a value of type \OrderDocumentReader

getDocumentSellerLegalOrganisation

Summary

Get the legal organisation of seller trade party

Signature

public function getDocumentSellerLegalOrganisation(
  ?string $legalorgid,
  ?string $legalorgtype,
  ?string $legalorgname,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
legalorgid string ✔️
An identifier issued by an official registrar that identifies the
seller as a legal entity or legal person. If no identification scheme ($legalorgtype) is provided,
it should be known to the buyer and seller
legalorgtype string ✔️
The identification scheme identifier of the Seller legal registration identifier.
If used, the identification scheme identifier shall be chosen from the entries of the list published
by the ISO/IEC 6523 maintenance agency.
legalorgname string ✔️
A name by which the seller is known, if different from the seller's name (also known as
the company name). Note: This may be used if different from the seller's name.

Returns

Returns a value of type \OrderDocumentReader

firstDocumentSellerContact

Summary

Seek to the first seller contact of the document.

Returns true if a first seller contact is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentSellerContact

Signature

public function firstDocumentSellerContact(): bool
{
}

Returns

Returns a value of type bool

nextDocumentSellerContact

Summary

Seek to the next available first seller contact of the document.

Returns true if another seller contact is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentSellerContact

Signature

public function nextDocumentSellerContact(): bool
{
}

Returns

Returns a value of type bool

getDocumentSellerContact

Summary

Get detailed information on the seller's contact person

Signature

public function getDocumentSellerContact(
  ?string $contactpersonname,
  ?string $contactdepartmentname,
  ?string $contactphoneno,
  ?string $contactfaxno,
  ?string $contactemailadd,
  ?string $contacttypecode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
contactpersonname string ✔️
Contact point for a legal entity, such as a personal name of the contact person
contactdepartmentname string ✔️
Contact point for a legal entity, such as a name of the department or office
contactphoneno string ✔️
A phone number for the contact point.
contactfaxno string ✔️
A fax number for the contact point.
contactemailadd string ✔️
An e-mail address for the contact point.
contacttypecode string ✔️
The code specifying the type of trade contact. To be chosen from the entries in UNTDID 3139

Returns

Returns a value of type \OrderDocumentReader

getDocumentSellerElectronicAddress

Summary

Set the universal communication info for the seller

Signature

public function getDocumentSellerElectronicAddress(?string $uriType, ?string $uriId): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
uriType string ✔️
Identifies the electronic address to which the application level response to the order may be delivered.
uriId string ✔️
The identification scheme identifier of the electronic address. The scheme identifier shall be chosen
from a list to be maintained by the Connecting Europe Facility.

Returns

Returns a value of type \OrderDocumentReader

getDocumentBuyer

Summary

Get information about the Buyer.

Signature

public function getDocumentBuyer(?string $name, ?array $id, ?string $description): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
name string ✔️
The full formal name by which the party is registered in the national registry of
legal entities or as a Taxable person or otherwise trades as a person or persons.
id array ✔️
An identification of the Party. The identification scheme identifier of the Party identifier.
description string ✔️
Additional legal information relevant for the Paety.

Returns

Returns a value of type \OrderDocumentReader

getDocumentBuyerGlobalId

Summary

Get global identifier of the buyer.

Signature

public function getDocumentBuyerGlobalId(?array $globalID): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
globalID array ✔️
Array of the sellers global ids indexed by the identification scheme. The identification scheme results
from the list published by the ISO/IEC 6523 Maintenance Agency.

Returns

Returns a value of type \OrderDocumentReader

getDocumentBuyerTaxRegistration

Summary

Get detailed information on the buyer's tax information.

Signature

public function getDocumentBuyerTaxRegistration(?array $taxreg): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
taxreg array ✔️
Array of sales tax identification numbers of the seller indexed by Scheme identifier (e.g.: FC for Tax number of the seller and VA
for Sales tax identification number of the seller)

Returns

Returns a value of type \OrderDocumentReader

getDocumentBuyerAddress

Summary

Get the address of buyer trade party

Signature

public function getDocumentBuyerAddress(
  ?string $lineone,
  ?string $linetwo,
  ?string $linethree,
  ?string $postcode,
  ?string $city,
  ?string $country,
  ?string $subdivision,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
lineone string ✔️
The main line in the buyers address. This is usually the street name and house number or
the post office box
linetwo string ✔️
Line 2 of the buyers address. This is an additional address line in an address that can be
used to provide additional details in addition to the main line
linethree string ✔️
Line 3 of the buyers address. This is an additional address line in an address that can be
used to provide additional details in addition to the main line
postcode string ✔️
The identifier for an addressable group of properties according to the relevant postal service.
city string ✔️
Usual name of the city or municipality in which the buyers address is located
country string ✔️
Code used to identify the country. If no tax agent is specified, this is the country in which the sales tax
is due. The lists of approved countries are maintained by the EN ISO 3166-1 Maintenance Agency “Codes for the
representation of names of countries and their subdivisions”
subdivision string ✔️
The subdivision of a country.

Returns

Returns a value of type \OrderDocumentReader

getDocumentBuyerLegalOrganisation

Summary

Get the legal organisation of buyer trade party

Signature

public function getDocumentBuyerLegalOrganisation(
  ?string $legalorgid,
  ?string $legalorgtype,
  ?string $legalorgname,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
legalorgid string ✔️
An identifier issued by an official registrar that identifies the
buyer as a legal entity or legal person. If no identification scheme ($legalorgtype) is provided,
it should be known to the buyer and buyer
legalorgtype string ✔️
The identifier for the identification scheme of the legal
registration of the buyer. If the identification scheme is used, it must be selected from
ISO/IEC 6523 list
legalorgname string ✔️
A name by which the buyer is known, if different from the buyers name
(also known as the company name)

Returns

Returns a value of type \OrderDocumentReader

firstDocumentBuyerContact

Summary

Seek to the first buyer contact of the document.

Returns true if a first buyer contact is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentBuyerContact

Signature

public function firstDocumentBuyerContact(): bool
{
}

Returns

Returns a value of type bool

nextDocumentBuyerContact

Summary

Seek to the next available first Buyer contact of the document.

Returns true if another Buyer contact is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentBuyerContact

Signature

public function nextDocumentBuyerContact(): bool
{
}

Returns

Returns a value of type bool

getDocumentBuyerContact

Summary

Get detailed information on the buyer's contact person

Signature

public function getDocumentBuyerContact(
  ?string $contactpersonname,
  ?string $contactdepartmentname,
  ?string $contactphoneno,
  ?string $contactfaxno,
  ?string $contactemailadd,
  ?string $contacttypecode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
contactpersonname string ✔️
Contact point for a legal entity, such as a personal name of the contact person
contactdepartmentname string ✔️
Contact point for a legal entity, such as a name of the department or office
contactphoneno string ✔️
A phone number for the contact point.
contactfaxno string ✔️
A fax number for the contact point.
contactemailadd string ✔️
An e-mail address for the contact point.
contacttypecode string ✔️
The code specifying the type of trade contact. To be chosen from the entries in UNTDID 3139

Returns

Returns a value of type \OrderDocumentReader

getDocumentBuyerElectronicAddress

Summary

Set the universal communication info for the buyer

Signature

public function getDocumentBuyerElectronicAddress(?string $uriType, ?string $uriId): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
uriType string ✔️
Identifies the electronic address to which the application level response to the order may be delivered.
uriId string ✔️
The identification scheme identifier of the electronic address. The scheme identifier shall be chosen
from a list to be maintained by the Connecting Europe Facility.

Returns

Returns a value of type \OrderDocumentReader

getDocumentBuyerRequisitioner

Summary

Detailed information about the party who raises the Order originally on behalf of the Buyer

Signature

public function getDocumentBuyerRequisitioner(?string $name, ?array $id, ?string $description): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
name string ✔️
The full formal name by which the party is registered in the national registry of
legal entities or as a Taxable person or otherwise trades as a person or persons.
id array ✔️
An identification of the Party. The identification scheme identifier of the Party identifier.
description string ✔️
Additional legal information relevant for the Paety.

Returns

Returns a value of type \OrderDocumentReader

getDocumentBuyerRequisitionerGlobalId

Summary

Get global id's for the party who raises the Order originally on behalf of the buyer requisitioner

Signature

public function getDocumentBuyerRequisitionerGlobalId(?array $globalID): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
globalID array ✔️
Array of the sellers global ids indexed by the identification scheme. The identification scheme results
from the list published by the ISO/IEC 6523 Maintenance Agency.

Returns

Returns a value of type \OrderDocumentReader

getDocumentBuyerRequisitionerTaxRegistration

Summary

Get detailed information on the buyer requisitioner's tax information.

Signature

public function getDocumentBuyerRequisitionerTaxRegistration(?array $taxreg): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
taxreg array ✔️
Array of sales tax identification numbers of the seller indexed by Scheme identifier (e.g.: FC for Tax number of the seller and VA
for Sales tax identification number of the seller)

Returns

Returns a value of type \OrderDocumentReader

getDocumentBuyerRequisitionerAddress

Summary

Get the address of buyer requisitioner's trade party

Signature

public function getDocumentBuyerRequisitionerAddress(
  ?string $lineone,
  ?string $linetwo,
  ?string $linethree,
  ?string $postcode,
  ?string $city,
  ?string $country,
  ?string $subdivision,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
lineone string ✔️
The main line in the buyer requisitioners address. This is usually the street name and house number or
the post office box
linetwo string ✔️
Line 2 of the buyer requisitioners address. This is an additional address line in an address that can be
used to provide additional details in addition to the main line
linethree string ✔️
Line 3 of the buyer requisitioners address. This is an additional address line in an address that can be
used to provide additional details in addition to the main line
postcode string ✔️
The identifier for an addressable group of properties according to the relevant postal service.
city string ✔️
Usual name of the city or municipality in which the buyer requisitioners address is located
country string ✔️
Code used to identify the country. If no tax agent is specified, this is the country in which the sales tax
is due. The lists of approved countries are maintained by the EN ISO 3166-1 Maintenance Agency “Codes for the
representation of names of countries and their subdivisions”
subdivision string ✔️
The subdivision of a country.

Returns

Returns a value of type \OrderDocumentReader

getDocumentBuyerRequisitionerLegalOrganisation

Summary

Get the legal organisation of buyer requisitioner trade party

Signature

public function getDocumentBuyerRequisitionerLegalOrganisation(
  ?string $legalorgid,
  ?string $legalorgtype,
  ?string $legalorgname,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
legalorgid string ✔️
An identifier issued by an official registrar that identifies the
buyer requisitioner as a legal entity or legal person.
legalorgtype string ✔️
The identifier for the identification scheme of the legal
registration of the buyer requisitioner. If the identification scheme is used, it must be selected from
ISO/IEC 6523 list
legalorgname string ✔️
A name by which the buyer requisitioner is known, if different from the buyer requisitioners name
(also known as the company name)

Returns

Returns a value of type \OrderDocumentReader

firstDocumentBuyerRequisitionerContact

Summary

Seek to the first buyer requisitioner's contact of the document.

Returns true if a first buyer contact is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentBuyerContact

Signature

public function firstDocumentBuyerRequisitionerContact(): bool
{
}

Returns

Returns a value of type bool

nextDocumentBuyerRequisitionerContact

Summary

Seek to the next available first Buyer requisitioner's contact of the document.

Returns true if another Buyer contact is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentBuyerContact

Signature

public function nextDocumentBuyerRequisitionerContact(): bool
{
}

Returns

Returns a value of type bool

getDocumentBuyerRequisitionerContact

Summary

Get detailed information on the buyer requisitioner's contact person

Signature

public function getDocumentBuyerRequisitionerContact(
  ?string $contactpersonname,
  ?string $contactdepartmentname,
  ?string $contactphoneno,
  ?string $contactfaxno,
  ?string $contactemailadd,
  ?string $contacttypecode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
contactpersonname string ✔️
Contact point for a legal entity, such as a personal name of the contact person
contactdepartmentname string ✔️
Contact point for a legal entity, such as a name of the department or office
contactphoneno string ✔️
A phone number for the contact point.
contactfaxno string ✔️
A fax number for the contact point.
contactemailadd string ✔️
An e-mail address for the contact point.
contacttypecode string ✔️
The code specifying the type of trade contact. To be chosen from the entries in UNTDID 3139

Returns

Returns a value of type \OrderDocumentReader

getDocumentBuyerRequisitionerElectronicAddress

Summary

Get the universal communication info for the buyer requisitioner

Signature

public function getDocumentBuyerRequisitionerElectronicAddress(
  ?string $uriType,
  ?string $uriId,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
uriType string ✔️
Identifies the electronic address to which the application level response to the order may be delivered.
uriId string ✔️
The identification scheme identifier of the electronic address. The scheme identifier shall be chosen
from a list to be maintained by the Connecting Europe Facility.

Returns

Returns a value of type \OrderDocumentReader

getDocumentDeliveryTerms

Summary

Get information on the delivery conditions

Signature

public function getDocumentDeliveryTerms(
  ?string $code,
  ?string $description,
  ?string $functionCode,
  ?string $relevantTradeLocationId,
  ?string $relevantTradeLocationName,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
code string ✔️
The code specifying the type of delivery for these trade delivery terms. To be chosen from the entries
in UNTDID 4053 + INCOTERMS List
- 1 : Delivery arranged by the supplier (Indicates that the supplier will arrange delivery of the goods).
- 2 : Delivery arranged by logistic service provider (Code indicating that the logistic service provider has arranged the delivery of goods).
- CFR : Cost and Freight (insert named port of destination)
- CIF : Cost, Insurance and Freight (insert named port of destination)
- CIP : Carriage and Insurance Paid to (insert named place of destination)
- CPT : Carriage Paid To (insert named place of destination)
- DAP : Delivered At Place (insert named place of destination)
- DAT : Delivered At Terminal (insert named terminal at port or place of destination)
- DDP : Delivered Duty Paid (insert named place of destination)
- EXW : Ex Works (insert named place of delivery)
- FAS : Free Alongside Ship (insert named port of shipment)
- FCA : Free Carrier (insert named place of delivery)
- FOB : Free On Board (insert named port of shipment)
description string ✔️
A textual description of these trade delivery terms
functionCode string ✔️
A code specifying a function of these trade delivery terms (Pick up,or delivered) To be chosen from the entries
in UNTDID 4055
relevantTradeLocationId string ✔️
The unique identifier of a country location used or referenced in trade.
relevantTradeLocationName string ✔️
The name, expressed as text, of this location used or referenced in trade.

Returns

Returns a value of type \OrderDocumentReader

getDocumentSellerOrderReferencedDocument

Summary

Get details of the associated order confirmation

Signature

public function getDocumentSellerOrderReferencedDocument(
  ?string $sellerOrderRefId,
  ?DateTime $sellerOrderRefDate,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
sellerOrderRefId string ✔️
An identifier of a referenced Sales order, issued by the Seller
sellerOrderRefDate DateTime ✔️
The formatted date or date time for the issuance of this referenced Sales Order.

Returns

Returns a value of type \OrderDocumentReader

getDocumentBuyerOrderReferencedDocument

Summary

Get details of the related buyer order

Signature

public function getDocumentBuyerOrderReferencedDocument(
  ?string $buyerOrderRefId,
  ?DateTime $buyerOrderRefDate,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
buyerOrderRefId string ✔️
An identifier of a referenced purchase order, issued by the Buyer.
buyerOrderRefDate DateTime ✔️
The formatted date or date time for the issuance of this referenced Buyer Order.

Returns

Returns a value of type \OrderDocumentReader

getDocumentQuotationReferencedDocument

Summary

Get details of the related quotation

Signature

public function getDocumentQuotationReferencedDocument(
  ?string $quotationRefId,
  ?DateTime $quotationRefDate,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
quotationRefId string ✔️
An Identifier of a Quotation, issued by the Seller.
quotationRefDate DateTime ✔️
Date of order

Returns

Returns a value of type \OrderDocumentReader

getDocumentContractReferencedDocument

Summary

Get details of the associated contract. The contract identifier should be unique in the context
of the specific trading relationship and for a defined time period.

Signature

public function getDocumentContractReferencedDocument(
  ?string $contractRefId,
  ?DateTime $contractRefDate,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
contractRefId string ✔️
The identification of a contract.
contractRefDate DateTime ✔️
The formatted date or date time for the issuance of this referenced Contract.

Returns

Returns a value of type \OrderDocumentReader

getDocumentRequisitionReferencedDocument

Summary

Get details of a Requisition Document, issued by the Buyer or the Buyer Requisitioner

Signature

public function getDocumentRequisitionReferencedDocument(
  ?string $requisitionRefId,
  ?DateTime $requisitionRefDate,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
requisitionRefId string ✔️
The identification of a Requisition Document, issued by the Buyer or the Buyer Requisitioner.
requisitionRefDate DateTime ✔️
The formatted date or date time for the issuance of this referenced Requisition.

Returns

Returns a value of type \OrderDocumentReader

firstDocumentAdditionalReferencedDocument

Summary

Set the intérnal additional ref. documents pointer to the first position. This method will return false if there is no
additional ref. document. This method should be used together with OrderDocumentReader::getDocumentAdditionalReferencedDocument

Signature

public function firstDocumentAdditionalReferencedDocument(): bool
{
}

Returns

Returns a value of type bool

nextDocumentAdditionalReferencedDocument

Summary

Set the intérnal additional ref. documents pointer to the next position. This method will return false if there is no more
additional ref. document. This method should be used together with OrderDocumentReader::getDocumentAdditionalReferencedDocument

Signature

public function nextDocumentAdditionalReferencedDocument(): bool
{
}

Returns

Returns a value of type bool

getDocumentAdditionalReferencedDocument

Summary

Add an information about additional supporting documents substantiating the claims made in the order.

The additional supporting documents can be used for both referencing a document number which is expected to be
known by the receiver, an external document (referenced by a URL) or as an embedded document (such as a time
report in pdf). The option to link to an external document will be needed, for example in the case of large
attachments and/or when sensitive information, e.g. person-related services, has to be separated from the order itself.

This method should be used together witd OrderDocumentReader::firstDocumentAdditionalReferencedDocument and
OrderDocumentReader::nextDocumentAdditionalReferencedDocument

Signature

public function getDocumentAdditionalReferencedDocument(
  ?string $additionalRefTypeCode,
  ?string $additionalRefId,
  ?string $additionalRefURIID,
  ?string $additionalRefName,
  ?string $additionalRefRefTypeCode,
  ?DateTime $additionalRefDate,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
additionalRefTypeCode string ✔️
Type of referenced document (See codelist UNTDID 1001)
- Code 916 "reference paper" is used to reference the identification of the document on which the invoice is based
- Code 50 "Price / sales catalog response" is used to reference the tender or the lot
- Code 130 "invoice data sheet" is used to reference an identifier for an object specified by the seller.
additionalRefId string ✔️
The identifier of the tender or lot to which the invoice relates, or an identifier specified by the seller for
an object on which the invoice is based, or an identifier of the document on which the invoice is based.
additionalRefURIID string ✔️
The Uniform Resource Locator (URL) at which the external document is available. A means of finding the resource
including the primary access method intended for it, e.g. http: // or ftp: //. The location of the external document
must be used if the buyer needs additional information to support the amounts billed. External documents are not part
of the invoice. Access to external documents can involve certain risks.
additionalRefName string ✔️
A description of the document, e.g. Hourly billing, usage or consumption report, etc.
additionalRefRefTypeCode string ✔️
The identifier for the identification scheme of the identifier of the item invoiced. If it is not clear to the
recipient which scheme is used for the identifier, an identifier of the scheme should be used, which must be selected
from UNTDID 1153 in accordance with the code list entries.
additionalRefDate DateTime ✔️
The formatted date or date time for the issuance of this referenced Additional Document.

Returns

Returns a value of type \OrderDocumentReader

getDocumentAdditionalReferencedDocumentBinaryData

Summary

Get the binary data from the current additional document. You have to
specify $binarydatadirectory-Property using the setBinaryDataDirectory method.

This method should be used together witd OrderDocumentReader::firstDocumentAdditionalReferencedDocument and
OrderDocumentReader::nextDocumentAdditionalReferencedDocument

Signature

public function getDocumentAdditionalReferencedDocumentBinaryData(?string $binarydatafilename): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
binarydatafilename string ✔️
The fuill-qualified filename where the data where stored. If no binary data are
available, this value will be empty

Returns

Returns a value of type \OrderDocumentReader

getDocumentBlanketOrderReferencedDocument

Summary

Get details of a blanket order referenced document

Signature

public function getDocumentBlanketOrderReferencedDocument(
  ?string $blanketOrderRefId,
  ?DateTime $blanketOrderRefDate,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
blanketOrderRefId string ✔️
The identification of a Blanket Order, issued by the Buyer or the Buyer Requisitioner.
blanketOrderRefDate DateTime ✔️
The formatted date or date time for the issuance of this referenced Blanket Order.

Returns

Returns a value of type \OrderDocumentReader

getDocumentPreviousOrderChangeReferencedDocument

Summary

Get details of a the Previous Order Change Document, issued by the Buyer or the Buyer Requisitioner.

Signature

public function getDocumentPreviousOrderChangeReferencedDocument(
  ?string $prevOrderChangeRefId,
  ?DateTime $prevOrderChangeRefDate,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
prevOrderChangeRefId string ✔️
The identification of a the Previous Order Change Document, issued by the Buyer or the Buyer Requisitioner.
prevOrderChangeRefDate DateTime ✔️
The formatted date or date time for the issuance of this referenced Previous Order Change.

Returns

Returns a value of type \OrderDocumentReader

getDocumentPreviousOrderResponseReferencedDocument

Summary

Set details of a the Previous Order Response Document, issued by the Seller.

Signature

public function getDocumentPreviousOrderResponseReferencedDocument(
  ?string $prevOrderResponseRefId,
  ?DateTime $prevOrderResponseRefDate,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
prevOrderResponseRefId string ✔️
The identification of a the Previous Order Response Document, issued by the Seller.
prevOrderResponseRefDate DateTime ✔️
The formatted date or date time for the issuance of this referenced Previous Order Response.

Returns

Returns a value of type \OrderDocumentReader

getDocumentProcuringProject

Summary

Set the procuring project specified for this header trade agreement.

Signature

public function getDocumentProcuringProject(
  ?string $procuringProjectId,
  ?string $procuringProjectName,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
procuringProjectId string ✔️
The unique identifier of this procuring project.
procuringProjectName string ✔️
The name of this procuring project.

Returns

Returns a value of type \OrderDocumentReader

firstDocumentUltimateCustomerOrderReferencedDocument

Summary

Seek to the first ultimate customer order referenced document (on document-level)
If an applicable document exists, this function will return true, otherwise false

Signature

public function firstDocumentUltimateCustomerOrderReferencedDocument(): bool
{
}

Returns

Returns a value of type bool

nextDocumentUltimateCustomerOrderReferencedDocument

Summary

Seek to the next ultimate customer order referenced document (on document-level)
If another applicable document exists, this function will return true, otherwise false

Signature

public function nextDocumentUltimateCustomerOrderReferencedDocument(): bool
{
}

Returns

Returns a value of type bool

getDocumentUltimateCustomerOrderReferencedDocument

Summary

Set the ultimate customer order referenced document (on document level)

Signature

public function getDocumentUltimateCustomerOrderReferencedDocument(
  ?string $ultimateCustomerOrderRefId,
  ?DateTime $ultimateCustomerOrderRefDate,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
ultimateCustomerOrderRefId string ✔️
Ultimate Customer Order Referenced Doc ID applied to this line
ultimateCustomerOrderRefDate DateTime ✔️
The formatted date or date time for the issuance of this Ultimate Customer Order Referenced Doc.

Returns

Returns a value of type \OrderDocumentReader

getDocumentShipTo

Summary

Set information about the Ship-To-Party
The Ship-To-Party provides information about where and when the goods and services ordered are delivered.

Signature

public function getDocumentShipTo(?string $name, ?array $id, ?string $description): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
name string ✔️
The name of the party to which the goods and services are delivered.
id array ✔️
An identification of the Party.
If no scheme is specified, it should be known by Buyer and Seller, e.g. a previously exchanged Buyer or Seller assigned identifier.
If used, the identification scheme shall be chosen from the entries of the list published by the ISO/IEC 6523 maintenance agency.
description string ✔️
Additional legal information relevant for the Paety.

Returns

Returns a value of type \OrderDocumentReader

getDocumentShipToGlobalId

Summary

Get global identifiers for the Ship-to Trade Party

Signature

public function getDocumentShipToGlobalId(?array $globalID): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
globalID array ✔️
Array of the sellers global ids indexed by the identification scheme. The identification scheme results
from the list published by the ISO/IEC 6523 Maintenance Agency.

Returns

Returns a value of type \OrderDocumentReader

getDocumentShipToTaxRegistration

Summary

Get Tax registration to Ship-To Trade party

Signature

public function getDocumentShipToTaxRegistration(?array $taxreg): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
taxreg array ✔️
Array of sales tax identification numbers of the seller indexed by Scheme identifier (e.g.: FC for Tax number of the seller and VA
for Sales tax identification number of the seller)

Returns

Returns a value of type \OrderDocumentReader

getDocumentShipToAddress

Summary

Get the postal address of the Ship-To party

Signature

public function getDocumentShipToAddress(
  ?string $lineone,
  ?string $linetwo,
  ?string $linethree,
  ?string $postcode,
  ?string $city,
  ?string $country,
  ?string $subdivision,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
lineone string ✔️
The main line in the party's address. This is usually the street name and house number or
the post office box
linetwo string ✔️
Line 2 of the party's address. This is an additional address line in an address that can be
used to provide additional details in addition to the main line
linethree string ✔️
Line 3 of the party's address. This is an additional address line in an address that can be
used to provide additional details in addition to the main line
postcode string ✔️
The identifier for an addressable group of properties according to the relevant postal service.
city string ✔️
Usual name of the city or municipality in which the party's address is located
country string ✔️
Code used to identify the country. If no tax agent is specified, this is the country in which the sales tax
is due. The lists of approved countries are maintained by the EN ISO 3166-1 Maintenance Agency “Codes for the
representation of names of countries and their subdivisions”
subdivision string ✔️
The subdivision of a country.

Returns

Returns a value of type \OrderDocumentReader

getDocumentShipToLegalOrganisation

Summary

Set legal organisation of the Ship-To party

Signature

public function getDocumentShipToLegalOrganisation(
  ?string $legalorgid,
  ?string $legalorgtype,
  ?string $legalorgname,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
legalorgid string ✔️
An identifier issued by an official registrar that identifies the
party as a legal entity or legal person. If no identification scheme ($legalorgtype) is provided,
it should be known to the buyer or seller party
legalorgtype string ✔️ The identifier for the identification scheme of the legal
registration of the party. In particular, the following scheme codes are used: 0021 : SWIFT, 0088 : EAN,
0060 : DUNS, 0177 : ODETTE
legalorgname string ✔️ A name by which the party is known, if different from the party's name
(also known as the company name)

Returns

Returns a value of type \OrderDocumentReader

firstDocumentShipToContact

Summary

Seek to the first ship-to contact.

Returns true if a first ship-to contact is available, otherwise false
You should use this together with OrderDocumentReader::getDocumentShipToContact

Signature

public function firstDocumentShipToContact(): bool
{
}

Returns

Returns a value of type bool

nextDocumentShipToContact

Summary

Seek to the next available ship-to contact.

Returns true if another ship-to contact is available, otherwise false
You should use this together with OrderDocumentReader::getDocumentShipToContact

Signature

public function nextDocumentShipToContact(): bool
{
}

Returns

Returns a value of type bool

getDocumentShipToContact

Summary

Get contact of the Ship-To party

Signature

public function getDocumentShipToContact(
  ?string $contactpersonname,
  ?string $contactdepartmentname,
  ?string $contactphoneno,
  ?string $contactfaxno,
  ?string $contactemailadd,
  ?string $contacttypecode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
contactpersonname string ✔️
Contact point for a legal entity, such as a personal name of the contact person
contactdepartmentname string ✔️
Contact point for a legal entity, such as a name of the department or office
contactphoneno string ✔️
A phone number for the contact point.
contactfaxno string ✔️
A fax number for the contact point.
contactemailadd string ✔️
An e-mail address for the contact point.
contacttypecode string ✔️
The code specifying the type of trade contact. To be chosen from the entries in UNTDID 3139

Returns

Returns a value of type \OrderDocumentReader

getDocumentShipToElectronicAddress

Summary

Set the universal communication info for the Ship-To Trade Party

Signature

public function getDocumentShipToElectronicAddress(?string $uriType, ?string $uriId): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
uriType string ✔️
Identifies the electronic address to which the application level response to the order may be delivered.
uriId string ✔️
The identification scheme identifier of the electronic address. The scheme identifier shall be chosen
from a list to be maintained by the Connecting Europe Facility.

Returns

Returns a value of type \OrderDocumentReader

getDocumentShipFrom

Summary

Get information about the party from which the goods and services are delivered or picked up

Signature

public function getDocumentShipFrom(?string $name, ?array $id, ?string $description): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
name string ✔️
The full formal name by which the party is registered in the national registry of
legal entities or as a Taxable person or otherwise trades as a person or persons.
id array ✔️
An identification of the Party. The identification scheme identifier of the Party identifier.
description string ✔️
Additional legal information relevant for the Paety.

Returns

Returns a value of type \OrderDocumentReader

getDocumentShipFromGlobalId

Summary

Get global identifier of the party from which the goods and services are delivered or picked up

Signature

public function getDocumentShipFromGlobalId(?array $globalID): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
globalID array ✔️
Array of the sellers global ids indexed by the identification scheme. The identification scheme results
from the list published by the ISO/IEC 6523 Maintenance Agency.

Returns

Returns a value of type \OrderDocumentReader

getDocumentShipFromTaxRegistration

Summary

Get Tax registration of the party from which the goods and services are delivered or picked up

Signature

public function getDocumentShipFromTaxRegistration(?array $taxreg): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
taxreg array ✔️
Array of sales tax identification numbers of the seller indexed by Scheme identifier (e.g.: FC for Tax number of the seller and VA
for Sales tax identification number of the seller)

Returns

Returns a value of type \OrderDocumentReader

getDocumentShipFromAddress

Summary

Get the postal address of the party from which the goods and services are delivered or picked up

Signature

public function getDocumentShipFromAddress(
  ?string $lineone,
  ?string $linetwo,
  ?string $linethree,
  ?string $postcode,
  ?string $city,
  ?string $country,
  ?string $subdivision,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
lineone string ✔️
The main line in the party's address. This is usually the street name and house number or
the post office box
linetwo string ✔️
Line 2 of the party's address. This is an additional address line in an address that can be
used to provide additional details in addition to the main line
linethree string ✔️
Line 3 of the party's address. This is an additional address line in an address that can be
used to provide additional details in addition to the main line
postcode string ✔️
The identifier for an addressable group of properties according to the relevant postal service.
city string ✔️
Usual name of the city or municipality in which the party's address is located
country string ✔️
Code used to identify the country. If no tax agent is specified, this is the country in which the sales tax
is due. The lists of approved countries are maintained by the EN ISO 3166-1 Maintenance Agency “Codes for the
representation of names of countries and their subdivisions”
subdivision string ✔️
The subdivision of a country.

Returns

Returns a value of type \OrderDocumentReader

getDocumentShipFromLegalOrganisation

Summary

Set legal organisation of the party from which the goods and services are delivered or picked up

Signature

public function getDocumentShipFromLegalOrganisation(
  ?string $legalorgid,
  ?string $legalorgtype,
  ?string $legalorgname,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
legalorgid string ✔️
An identifier issued by an official registrar that identifies the
party as a legal entity or legal person. If no identification scheme ($legalorgtype) is provided,
it should be known to the buyer or seller party
legalorgtype string ✔️ The identifier for the identification scheme of the legal
registration of the party. In particular, the following scheme codes are used: 0021 : SWIFT, 0088 : EAN,
0060 : DUNS, 0177 : ODETTE
legalorgname string ✔️ A name by which the party is known, if different from the party's name
(also known as the company name)

Returns

Returns a value of type \OrderDocumentReader

firstDocumentShipFromContact

Summary

Seek to the first ship-from contact of the document.

Returns true if a ship-to contact is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentShipFromContact

Signature

public function firstDocumentShipFromContact(): bool
{
}

Returns

Returns a value of type bool

nextDocumentShipFromContact

Summary

Seek to the next available first ship-to contact of the document.

Returns true if another ship-to contact is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentShipFromContact

Signature

public function nextDocumentShipFromContact(): bool
{
}

Returns

Returns a value of type bool

getDocumentShipFromContact

Summary

Get contact of the party from which the goods and services are delivered or picked up

Signature

public function getDocumentShipFromContact(
  ?string $contactpersonname,
  ?string $contactdepartmentname,
  ?string $contactphoneno,
  ?string $contactfaxno,
  ?string $contactemailadd,
  ?string $contacttypecode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
contactpersonname string ✔️
Contact point for a legal entity, such as a personal name of the contact person
contactdepartmentname string ✔️
Contact point for a legal entity, such as a name of the department or office
contactphoneno string ✔️
A phone number for the contact point.
contactfaxno string ✔️
A fax number for the contact point.
contactemailadd string ✔️
An e-mail address for the contact point.
contacttypecode string ✔️
The code specifying the type of trade contact. To be chosen from the entries in UNTDID 3139

Returns

Returns a value of type \OrderDocumentReader

getDocumentShipFromElectronicAddress

Summary

Get the universal communication info for the party from which the goods and services are delivered or picked up

Signature

public function getDocumentShipFromElectronicAddress(?string $uriType, ?string $uriId): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
uriType string ✔️
Identifies the electronic address to which the application level response to the order may be delivered.
uriId string ✔️
The identification scheme identifier of the electronic address. The scheme identifier shall be chosen
from a list to be maintained by the Connecting Europe Facility.

Returns

Returns a value of type \OrderDocumentReader

firstDocumentRequestedDeliverySupplyChainEvent

Summary

Seek to the first document requested delivery supply chain event of the document.

Returns true if a first event is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentRequestedDeliverySupplyChainEvent

Signature

public function firstDocumentRequestedDeliverySupplyChainEvent(): bool
{
}

Returns

Returns a value of type bool

nextDocumentRequestedDeliverySupplyChainEvent

Summary

Seek to the next document requested delivery supply chain event of the document.

Returns true if a event is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentRequestedDeliverySupplyChainEvent

Signature

public function nextDocumentRequestedDeliverySupplyChainEvent(): bool
{
}

Returns

Returns a value of type bool

getDocumentRequestedDeliverySupplyChainEvent

Summary

Get the requested date or period on which delivery is requested
This method should be used together with OrderDocumentReader::firstDocumentRequestedDeliverySupplyChainEvent
and OrderDocumentReader::nextDocumentRequestedDeliverySupplyChainEvent

Signature

public function getDocumentRequestedDeliverySupplyChainEvent(
  ?DateTime $occurrenceDateTime,
  ?DateTime $startDateTime,
  ?DateTime $endDateTime,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
occurrenceDateTime DateTime ✔️
A Requested Date on which Delivery is requested
startDateTime DateTime ✔️
The Start Date of he Requested Period on which Delivery is requested
endDateTime DateTime ✔️
The End Date of he Requested Period on which Delivery is requested

Returns

Returns a value of type \OrderDocumentReader

firstDocumentRequestedDespatchSupplyChainEvent

Summary

Seek to the first document requested despatch supply chain event of the document.

Returns true if a first event is available, otherwise false
You may use this together with OrderDocumentReader::getRequestedDespatchSupplyChainEvent
(This is the date or period on which delivery is requested)

Signature

public function firstDocumentRequestedDespatchSupplyChainEvent(): bool
{
}

Returns

Returns a value of type bool

nextDocumentRequestedDespatchSupplyChainEvent

Summary

Seek to the next document requested despatch supply chain event of the document.

Returns true if a event is available, otherwise false
You may use this together with OrderDocumentReader::getRequestedDespatchSupplyChainEvent
(This is the date or period on which delivery is requested)

Signature

public function nextDocumentRequestedDespatchSupplyChainEvent(): bool
{
}

Returns

Returns a value of type bool

getDocumentRequestedDespatchSupplyChainEvent

Summary

Get the requested date or period on which delivery is requested
This method should be used together with OrderDocumentReader::firstDocumentRequestedDespatchSupplyChainEvent
and OrderDocumentReader::nextDocumentRequestedDespatchSupplyChainEvent

Signature

public function getDocumentRequestedDespatchSupplyChainEvent(
  ?DateTime $occurrenceDateTime,
  ?DateTime $startDateTime,
  ?DateTime $endDateTime,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
occurrenceDateTime DateTime ✔️
A Requested Date on which Pick up is requested
startDateTime DateTime ✔️
The Start Date of he Requested Period on which Pick up is requested
endDateTime DateTime ✔️
The End Date of he Requested Period on which Pick up is requested

Returns

Returns a value of type \OrderDocumentReader

getDocumentInvoicee

Summary

Get detailed information on the Party to which the invoice must be sent

Signature

public function getDocumentInvoicee(?string $name, ?array $id, ?string $description): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
name string ✔️
The full formal name by which the party is registered in the national registry of
legal entities or as a Taxable person or otherwise trades as a person or persons.
id array ✔️
An identification of the Party. The identification scheme identifier of the Party identifier.
description string ✔️
Additional legal information relevant for the Paety.

Returns

Returns a value of type \OrderDocumentReader

getDocumentInvoiceeGlobalId

Summary

Get global identifier of the Party to which the invoice must be sent.

Signature

public function getDocumentInvoiceeGlobalId(?array $globalID): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
globalID array ✔️
Array of the sellers global ids indexed by the identification scheme. The identification scheme results
from the list published by the ISO/IEC 6523 Maintenance Agency.

Returns

Returns a value of type \OrderDocumentReader

getDocumentInvoiceeTaxRegistration

Summary

Get Tax registration to the Party to which the invoice must be sent

Signature

public function getDocumentInvoiceeTaxRegistration(?array $taxreg): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
taxreg array ✔️
Array of sales tax identification numbers of the seller indexed by Scheme identifier (e.g.: FC for Tax number of the seller and VA
for Sales tax identification number of the seller)

Returns

Returns a value of type \OrderDocumentReader

getDocumentInvoiceeAddress

Summary

Get the address of the Party to which the invoice must be sent

Signature

public function getDocumentInvoiceeAddress(
  ?string $lineone,
  ?string $linetwo,
  ?string $linethree,
  ?string $postcode,
  ?string $city,
  ?string $country,
  ?string $subdivision,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
lineone string ✔️
The main line in the invoicee's address. This is usually the street name and house number or
the post office box
linetwo string ✔️
Line 2 of the invoicee's address. This is an additional address line in an address that can be
used to provide additional details in addition to the main line
linethree string ✔️
Line 3 of the invoicee' address. This is an additional address line in an address that can be
used to provide additional details in addition to the main line
postcode string ✔️
The identifier for an addressable group of properties according to the relevant postal service.
city string ✔️
Usual name of the city or municipality in which the invoicee' address is located
country string ✔️
Code used to identify the country. If no tax agent is specified, this is the country in which the sales tax
is due. The lists of approved countries are maintained by the EN ISO 3166-1 Maintenance Agency “Codes for the
representation of names of countries and their subdivisions”
subdivision string ✔️
The subdivision of a country.

Returns

Returns a value of type \OrderDocumentReader

getDocumentInvoiceeLegalOrganisation

Summary

Get the legal organisation of the Party to which the invoice must be sent

Signature

public function getDocumentInvoiceeLegalOrganisation(
  ?string $legalorgid,
  ?string $legalorgtype,
  ?string $legalorgname,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
legalorgid string ✔️
An identifier issued by an official registrar that identifies the
invoice as a legal entity or legal person. If no identification scheme ($legalorgtype) is provided,
it should be known to the buyer and invoice
legalorgtype string ✔️
The identifier for the identification scheme of the legal
registration of the invoice. If the identification scheme is used, it must be selected from
ISO/IEC 6523 list
legalorgname string ✔️
A name by which the invoice is known, if different from the invoice's name
(also known as the company name)

Returns

Returns a value of type \OrderDocumentReader

firstDocumentInvoiceeContact

Summary

Seek to the first contact of the Party to which the invoice must be sent.

Returns true if a first invoice contact is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentinvoiceeContact

Signature

public function firstDocumentInvoiceeContact(): bool
{
}

Returns

Returns a value of type bool

nextDocumentInvoiceeContact

Summary

Seek to the next available contact of the Party to which the invoice must be sent.

Returns true if another invoicee contact is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentInvoiceeContact

Signature

public function nextDocumentInvoiceeContact(): bool
{
}

Returns

Returns a value of type bool

getDocumentInvoiceeContact

Summary

Get detailed information on the Party to which the invoice must be sent

Signature

public function getDocumentInvoiceeContact(
  ?string $contactpersonname,
  ?string $contactdepartmentname,
  ?string $contactphoneno,
  ?string $contactfaxno,
  ?string $contactemailadd,
  ?string $contacttypecode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
contactpersonname string ✔️
Contact point for a legal entity, such as a personal name of the contact person
contactdepartmentname string ✔️
Contact point for a legal entity, such as a name of the department or office
contactphoneno string ✔️
A phone number for the contact point.
contactfaxno string ✔️
A fax number for the contact point.
contactemailadd string ✔️
An e-mail address for the contact point.
contacttypecode string ✔️
The code specifying the type of trade contact. To be chosen from the entries in UNTDID 3139

Returns

Returns a value of type \OrderDocumentReader

getDocumentInvoiceeElectronicAddress

Summary

Set the universal communication info for the Party to which the invoice must be sent

Signature

public function getDocumentInvoiceeElectronicAddress(?string $uriType, ?string $uriId): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
uriType string ✔️
Identifies the electronic address to which the application level response to the order may be delivered.
uriId string ✔️
The identification scheme identifier of the electronic address. The scheme identifier shall be chosen
from a list to be maintained by the Connecting Europe Facility.

Returns

Returns a value of type \OrderDocumentReader

firstDocumentPaymentMeans

Summary

Seek to the first payment means of the document.

Returns true if a first payment mean is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentPaymentMeans

Signature

public function firstDocumentPaymentMeans(): bool
{
}

Returns

Returns a value of type bool

nextDocumentPaymentMeans

Summary

Seek to the next payment means of the document
Returns true if another payment mean is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentPaymentMeans

Signature

public function nextDocumentPaymentMeans(): bool
{
}

Returns

Returns a value of type bool

getDocumentPaymentMeans

Summary

Get detailed information on the payment method

Signature

public function getDocumentPaymentMeans(
  ?string $paymentMeansCode,
  ?string $paymentMeansInformation,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
paymentMeansCode string ✔️
The means, expressed as code, for how a payment is expected to be or has been settled.
Entries from the UNTDID 4461 code list shall be used. Distinction should be made between
SEPA and non-SEPA payments, and between credit payments, direct debits, card payments and
other instruments.
paymentMeansInformation string ✔️
Such as cash, credit transfer, direct debit, credit card, etc.

Returns

Returns a value of type \OrderDocumentReader

firstDocumentPaymentTerms

Summary

Seek to the first documents payment terms position
Returns true if the first position is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentPaymentTerm

Signature

public function firstDocumentPaymentTerms(): bool
{
}

Returns

Returns a value of type bool

nextDocumentPaymentTerms

Summary

Seek to the next documents payment terms position
Returns true if a other position is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentPaymentTerm

Signature

public function nextDocumentPaymentTerms(): bool
{
}

Returns

Returns a value of type bool

getDocumentPaymentTerm

Summary

Get currently seeked payment term
This controlled by firstDocumentPaymentTerms and nextDocumentPaymentTerms methods

Signature

public function getDocumentPaymentTerm(?string $paymentTermsDescription): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
paymentTermsDescription string ✔️
A text description of the payment terms that apply to the payment amount due (including a
description of possible penalties). Note: This element can contain multiple lines and
multiple conditions.

Returns

Returns a value of type \OrderDocumentReader

firstDocumentTax

Summary

Seek to the first document tax
Returns true if a first tax (at document level) is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentTax

Signature

public function firstDocumentTax(): bool
{
}

Returns

Returns a value of type bool

nextDocumentTax

Summary

Seek to the next document tax
Returns true if another tax (at document level) is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentTax

Signature

public function nextDocumentTax(): bool
{
}

Returns

Returns a value of type bool

getDocumentTax

Summary

Get current VAT breakdown (at document level)

Signature

public function getDocumentTax(
  ?string $categoryCode,
  ?string $typeCode,
  ?float $basisAmount,
  ?float $calculatedAmount,
  ?float $rateApplicablePercent,
  ?string $exemptionReason,
  ?string $exemptionReasonCode,
  ?float $lineTotalBasisAmount,
  ?float $allowanceChargeBasisAmount,
  ?string $dueDateTypeCode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
categoryCode string ✔️
Coded description of a sales tax category

The following entries from UNTDID 5305 are used (details in brackets):
- Standard rate (sales tax is due according to the normal procedure)
- Goods to be taxed according to the zero rate (sales tax is charged with a percentage of zero)
- Tax exempt (USt./IGIC/IPSI)
- Reversal of the tax liability (the rules for reversing the tax liability at USt./IGIC/IPSI apply)
- VAT exempt for intra-community deliveries of goods (USt./IGIC/IPSI not levied due to rules on intra-community deliveries)
- Free export item, tax not levied (VAT / IGIC/IPSI not levied due to export outside the EU)
- Services outside the tax scope (sales are not subject to VAT / IGIC/IPSI)
- Canary Islands general indirect tax (IGIC tax applies)
- IPSI (tax for Ceuta / Melilla) applies.

The codes for the VAT category are as follows:
- S = sales tax is due at the normal rate
- Z = goods to be taxed according to the zero rate
- E = tax exempt
- AE = reversal of tax liability
- K = VAT is not shown for intra-community deliveries
- G = tax not levied due to export outside the EU
- O = Outside the tax scope
- L = IGIC (Canary Islands)
- M = IPSI (Ceuta / Melilla)
typeCode string ✔️
Coded description of a sales tax category. Note: Fixed value = "VAT"
basisAmount float ✔️
Tax base amount, Each sales tax breakdown must show a category-specific tax base amount.
calculatedAmount float ✔️
The total amount to be paid for the relevant VAT category. Note: Calculated by multiplying
the amount to be taxed according to the sales tax category by the sales tax rate applicable
for the sales tax category concerned
rateApplicablePercent float ✔️
The sales tax rate, expressed as the percentage applicable to the sales tax category in
question. Note: The code of the sales tax category and the category-specific sales tax rate
must correspond to one another. The value to be given is the percentage. For example, the
value 20 is given for 20% (and not 0.2)
exemptionReason string ✔️
Reason for tax exemption (free text)
exemptionReasonCode string ✔️
Reason given in code form for the exemption of the amount from VAT. Note: Code list issued
and maintained by the Connecting Europe Facility.
lineTotalBasisAmount float ✔️
Tax rate goods amount
allowanceChargeBasisAmount float ✔️
Total amount of surcharges and deductions of the tax rate at document level
dueDateTypeCode string ✔️
The code for the date on which sales tax becomes relevant for the seller and the buyer.
The code must distinguish between the following entries from UNTDID 2005:
- date of issue of the invoice document
- actual delivery date
- Date of payment.

The VAT Collection Date Code is used when the VAT Collection Date is not known for VAT purposes
when the invoice is issued.

The semantic values cited in the standard, which are represented by the values 3, 35, 432 in
UNTDID2005, are mapped to the following values of UNTDID2475, which is the relevant code list
supported by CII 16B:
- 5: date of issue of the invoice
- 29: Delivery date, current status
- 72: Paid to date

In Germany, the date of delivery and service is decisive.

Returns

Returns a value of type \OrderDocumentReader

firstDocumentAllowanceCharge

Summary

Seek to the first documents allowance charge. Returns true if the first allowance/charge is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentAllowanceCharge

Signature

public function firstDocumentAllowanceCharge(): bool
{
}

Returns

Returns a value of type bool

nextDocumentAllowanceCharge

Summary

Seek to the next documents allowance charge. Returns true if another allowance/charge is available, otherwise false
You may use this together with OrderDocumentReader::getDocumentAllowanceCharge

Signature

public function nextDocumentAllowanceCharge(): bool
{
}

Returns

Returns a value of type bool

getDocumentAllowanceCharge

Summary

Get information about the currently seeked surcharges and charges applicable to the
bill as a whole, Deductions, such as for withheld taxes may also be specified in this group

Signature

public function getDocumentAllowanceCharge(
  ?float $actualAmount,
  ?bool $isCharge,
  ?string $taxCategoryCode,
  ?string $taxTypeCode,
  ?float $rateApplicablePercent,
  ?float $sequence,
  ?float $calculationPercent,
  ?float $basisAmount,
  ?float $basisQuantity,
  ?string $basisQuantityUnitCode,
  ?string $reasonCode,
  ?string $reason,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
actualAmount float ✔️
Amount of the surcharge or discount at document level
isCharge bool ✔️
Switch that indicates whether the following data refer to an allowance or a discount, true means that
this an charge
taxCategoryCode string ✔️
A coded indication of which sales tax category applies to the surcharge or deduction at document level

The following entries from UNTDID 5305 are used (details in brackets):
- Standard rate (sales tax is due according to the normal procedure)
- Goods to be taxed according to the zero rate (sales tax is charged with a percentage of zero)
- Tax exempt (USt./IGIC/IPSI)
- Reversal of the tax liability (the rules for reversing the tax liability at USt./IGIC/IPSI apply)
- VAT exempt for intra-community deliveries of goods (USt./IGIC/IPSI not levied due to rules on intra-community deliveries)
- Free export item, tax not levied (VAT / IGIC/IPSI not levied due to export outside the EU)
- Services outside the tax scope (sales are not subject to VAT / IGIC/IPSI)
- Canary Islands general indirect tax (IGIC tax applies)
- IPSI (tax for Ceuta / Melilla) applies.

The codes for the VAT category are as follows:
- S = sales tax is due at the normal rate
- Z = goods to be taxed according to the zero rate
- E = tax exempt
- AE = reversal of tax liability
- K = VAT is not shown for intra-community deliveries
- G = tax not levied due to export outside the EU
- O = Outside the tax scope
- L = IGIC (Canary Islands)
- M = IPSI (Ceuta/Melilla)
taxTypeCode string ✔️
Code for the VAT category of the surcharge or charge at document level. Note: Fixed value = "VAT"
rateApplicablePercent float ✔️
VAT rate for the surcharge or discount on document level. Note: The code of the sales tax category
and the category-specific sales tax rate must correspond to one another. The value to be given is
the percentage. For example, the value 20 is given for 20% (and not 0.2)
sequence float ✔️
Calculation order
calculationPercent float ✔️
Percentage surcharge or discount at document level
basisAmount float ✔️
The base amount that may be used in conjunction with the percentage of the surcharge or discount
at document level to calculate the amount of the discount at document level
basisQuantity float ✔️
Basismenge des Rabatts
basisQuantityUnitCode string ✔️
Einheit der Preisbasismenge
- Codeliste: Rec. N°20 Vollständige Liste, In Recommendation N°20 Intro 2.a ist beschrieben, dass
beide Listen kombiniert anzuwenden sind.
- Codeliste: Rec. N°21 Vollständige Liste, In Recommendation N°20 Intro 2.a ist beschrieben, dass
beide Listen kombiniert anzuwenden sind.
reasonCode string ✔️
The reason given as a code for the surcharge or discount at document level. Note: Use entries from
the UNTDID 5189 code list. The code of the reason for the surcharge or discount at document level
and the reason for the surcharge or discount at document level must correspond to each other

Code list: UNTDID 7161 Complete list, code list: UNTDID 5189 Restricted
Include PEPPOL subset:
- 41 - Bonus for works ahead of schedule
- 42 - Other bonus
- 60 - Manufacturer’s consumer discount
- 62 - Due to military status
- 63 - Due to work accident
- 64 - Special agreement
- 65 - Production error discount
- 66 - New outlet discount
- 67 - Sample discount
- 68 - End-of-range discount
- 70 - Incoterm discount
- 71 - Point of sales threshold allowance
- 88 - Material surcharge/deduction
- 95 - Discount
- 100 - Special rebate
- 102 - Fixed long term
- 103 - Temporary
- 104 - Standard
- 105 - Yearly turnover
reason string ✔️
The reason given in text form for the surcharge or discount at document level

Returns

Returns a value of type \OrderDocumentReader

getDocumentReceivableSpecifiedTradeAccountingAccount

Summary

Get an AccountingAccount

Signature

public function getDocumentReceivableSpecifiedTradeAccountingAccount(
  ?string $id,
  ?string $typeCode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
id string ✔️
A textual value that specifies where to book the relevant data into the Buyer's financial accounts.
typeCode string ✔️
The code specifying the type of trade accounting account, such as general (main), secondary, cost accounting or budget account.

Returns

Returns a value of type \OrderDocumentReader

firstDocumentPosition

Summary

Seek to the first document position
Returns true if the first position is available, otherwise false
You may use it together with getDocumentPositionGenerals

Signature

public function firstDocumentPosition(): bool
{
}

Returns

Returns a value of type bool

nextDocumentPosition

Summary

Seek to the next document position
Returns true if another position is available, otherwise false
You may use it together with getDocumentPositionGenerals

Signature

public function nextDocumentPosition(): bool
{
}

Returns

Returns a value of type bool

getDocumentPositionGenerals

Summary

Get general information of the current position

Signature

public function getDocumentPositionGenerals(?string $lineid, ?string $lineStatusCode): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
lineid string ✔️
A unique identifier for the relevant item within the invoice (item number)
lineStatusCode string ✔️
Indicates whether the invoice item contains prices that must be taken into account when
calculating the invoice amount, or whether it only contains information.
The following code should be used: TYPE_LINE

Returns

Returns a value of type \OrderDocumentReader

firstDocumentPositionNote

Summary

Seek to the first document position note
Returns true if the first note (at line level) is available, otherwise false
You may use it together with getDocumentPositionNote

Signature

public function firstDocumentPositionNote(): bool
{
}

Returns

Returns a value of type bool

nextDocumentPositionNote

Summary

Seek to the next document position note
Returns true if there is one more note (at line level) available, otherwise false
You may use it together with getDocumentPositionNote

Signature

public function nextDocumentPositionNote(): bool
{
}

Returns

Returns a value of type bool

getDocumentPositionNote

Summary

Get detailed information on the free text on the position

Signature

public function getDocumentPositionNote(
  ?string $content,
  ?string $contentCode,
  ?string $subjectCode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
content string ✔️
A free text that contains unstructured information that is relevant to the invoice item
contentCode string ✔️
Text modules agreed bilaterally, which are transmitted here as code.
subjectCode string ✔️
Free text for the position (code for the type)
Codelist: UNTDID 4451

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionProductDetails

Summary

Get product details to the last retrieved position (line) in the document

Signature

public function getDocumentPositionProductDetails(
  ?string $name,
  ?string $description,
  ?string $sellerAssignedID,
  ?string $buyerAssignedID,
  ?array $globalID,
  ?string $batchId,
  ?string $brandName,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
name string ✔️
A name of the item (item name)
description string ✔️
A textual description of a use of this item.
sellerAssignedID string ✔️
An identifier assigned to the item by the seller
buyerAssignedID string ✔️
An identifier, assigned by the Buyer, for the item.
globalID array ✔️
Array of the sellers global ids indexed by the identification scheme. The identification scheme results
from the list published by the ISO/IEC 6523 Maintenance Agency.
batchId string ✔️
A batch identifier for this item.
brandName string ✔️
The brand name, expressed as text, for this item.

Returns

Returns a value of type \OrderDocumentReader

firstDocumentPositionProductCharacteristic

Summary

Seek to the first document position product characteristic
Returns true if the first product characteristic is available, otherwise false
You may use it together with getDocumentPositionProductCharacteristic

Signature

public function firstDocumentPositionProductCharacteristic(): bool
{
}

Returns

Returns a value of type bool

nextDocumentPositionProductCharacteristic

Summary

Seek to the next document position product characteristic
Returns true if the next position product characteristic is available, otherwise false
You may use it together with getDocumentPositionProductCharacteristic

Signature

public function nextDocumentPositionProductCharacteristic(): bool
{
}

Returns

Returns a value of type bool

getDocumentPositionProductCharacteristic

Summary

Set (single) extra characteristics to the formerly added product.

Contains information about the characteristics of the goods and services invoiced

Signature

public function getDocumentPositionProductCharacteristic(
  ?string $description,
  ?array $values,
  ?string $typecode,
  ?float $measureValue,
  ?string $measureUnitCode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
description string ✔️
The name of the attribute or property of the product such as "Colour"
values array ✔️
The values of the attribute or property of the product such as "Red"
typecode string ✔️
Type of product property (code). The codes must be taken from the
UNTDID 6313 codelist. Available only in the Extended-Profile
measureValue float ✔️
A measure of a value for this product characteristic.
measureUnitCode string ✔️
A unit for the measure value for this product characteristic. To be chosen from the entries in UNTDID xxx

Returns

Returns a value of type \OrderDocumentReader

firstDocumentPositionProductClassification

Summary

Seek to the first document position product classification
Returns true if the first product classification is available, otherwise false
You may use it together with getDocumentPositionProductClassification

Signature

public function firstDocumentPositionProductClassification(): bool
{
}

Returns

Returns a value of type bool

nextDocumentPositionProductClassification

Summary

Seek to the next document position product classification
Returns true if the next product classification is available, otherwise false
You may use it together with getDocumentPositionProductClassification

Signature

public function nextDocumentPositionProductClassification(): bool
{
}

Returns

Returns a value of type bool

getDocumentPositionProductClassification

Summary

Get detailed information on product classification

Signature

public function getDocumentPositionProductClassification(
  ?string $classCode,
  ?string $className,
  ?string $listID,
  ?string $listVersionID,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
classCode string ✔️
A code for classifying the item by its type or nature.
Classification codes are used to allow grouping of similar items for a various purposes e.g.
public procurement (CPV), e-Commerce (UNSPSC) etc. The identification scheme shall be chosen
from the entries in UNTDID 7143
className string ✔️
A class name, expressed as text, for this product classification
listID string ✔️
The identification scheme identifier of Item classification identifier
Identification scheme must be chosen among the values available in UNTDID 7143
listVersionID string ✔️
Scheme version identifier

Returns

Returns a value of type \OrderDocumentReader

firstDocumentPositionProductInstance

Summary

Seek to the first document position product instance
Returns true if the first product instance is available, otherwise false
You may use it together with getDocumentPositionProductInstance

Signature

public function firstDocumentPositionProductInstance(): bool
{
}

Returns

Returns a value of type bool

nextDocumentPositionProductInstance

Summary

Seek to the next document position product Instance
Returns true if the next product Instance is available, otherwise false
You may use it together with getDocumentPositionProductInstance

Signature

public function nextDocumentPositionProductInstance(): bool
{
}

Returns

Returns a value of type bool

getDocumentPositionProductInstance

Summary

Get the unique batch identifier for this trade product instance and
the unique supplier assigned serial identifier for this trade product instance.

Signature

public function getDocumentPositionProductInstance(?string $batchID, ?string $serialId): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
batchID string ✔️
The unique batch identifier for this trade product instance
serialId string ✔️
The unique supplier assigned serial identifier for this trade product instance.

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionSupplyChainPackaging

Summary

Get the supply chain packaging information

Signature

public function getDocumentPositionSupplyChainPackaging(
  ?string $typeCode,
  ?float $width,
  ?string $widthUnitCode,
  ?float $length,
  ?string $lengthUnitCode,
  ?float $height,
  ?string $heightUnitCode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
typeCode string ✔️
The code specifying the type of supply chain packaging.
To be chosen from the entries in UNTDID 7065
width float ✔️
The measure of the width component of this spatial dimension.
widthUnitCode string ✔️
Unit Code of the measure of the width component of this spatial dimension.
length float ✔️
The measure of the length component of this spatial dimension.
lengthUnitCode string ✔️
Unit Code of the measure of the Length component of this spatial dimension.
height float ✔️
The measure of the height component of this spatial dimension.
heightUnitCode string ✔️
Unit Code of the measure of the Height component of this spatial dimension.

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionProductOriginTradeCountry

Summary

Get information on the product origin

Signature

public function getDocumentPositionProductOriginTradeCountry(?string $country): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
country string ✔️
The code identifying the country from which the item originates.
The lists of valid countries are registered with the EN ISO 3166-1 Maintenance agency, “Codes for the
representation of names of countries and their subdivisions”.

Returns

Returns a value of type \OrderDocumentReader

firstDocumentPositionProductReferencedDocument

Summary

Seek to the first document position product referenced document
Returns true if the first product referenced document is available, otherwise false
You may use it together with getDocumentPositionProductReferencedDocument

Signature

public function firstDocumentPositionProductReferencedDocument(): bool
{
}

Returns

Returns a value of type bool

nextDocumentPositionProductReferencedDocument

Summary

Seek to the next document position product referenced document
Returns true if the next product referenced document is available, otherwise false
You may use it together with getDocumentPositionProductReferencedDocument

Signature

public function nextDocumentPositionProductReferencedDocument(): bool
{
}

Returns

Returns a value of type bool

getDocumentPositionProductReferencedDocument

Summary

Get an additional product reference document at position level

Signature

public function getDocumentPositionProductReferencedDocument(
  ?string $issuerassignedid,
  ?string $typecode,
  ?string $uriid,
  ?string $lineid,
  ?string $name,
  ?string $reftypecode,
  ?DateTime $issueddate,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
issuerassignedid string ✔️
The unique issuer assigned identifier for this referenced document.
typecode string ✔️
The code specifying the type of referenced document.
To be chosen from the entries in UNTDID 1001
uriid string ✔️
The unique Uniform Resource Identifier (URI) for this referenced document.
lineid string ✔️
name string ✔️
A name, expressed as text, for this referenced document.
reftypecode string ✔️
issueddate DateTime ✔️

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionProductReferencedDocumentBinaryData

Summary

Get the binary data of an additional product reference document at position level

Signature

public function getDocumentPositionProductReferencedDocumentBinaryData(
  ?string $binarydatafilename,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
binarydatafilename string ✔️
The fuill-qualified filename where the data where stored. If no binary data are
available, this value will be empty

Returns

Returns a value of type \OrderDocumentReader

firstDocumentPositionAdditionalReferencedDocument

Summary

Seek to the first documents position additional referenced document
Returns true if the first position is available, otherwise false
You may use it together with getDocumentPositionAdditionalReferencedDocument

Signature

public function firstDocumentPositionAdditionalReferencedDocument(): bool
{
}

Returns

Returns a value of type bool

nextDocumentPositionAdditionalReferencedDocument

Summary

Seek to the next documents position additional referenced document
Returns true if the first position is available, otherwise false
You may use it together with getDocumentPositionAdditionalReferencedDocument

Signature

public function nextDocumentPositionAdditionalReferencedDocument(): bool
{
}

Returns

Returns a value of type bool

getDocumentPositionAdditionalReferencedDocument

Summary

Get an additional Document reference on a position

Signature

public function getDocumentPositionAdditionalReferencedDocument(
  ?string $issuerassignedid,
  ?string $typecode,
  ?string $uriid,
  ?string $lineid,
  ?string $name,
  ?string $reftypecode,
  ?DateTime $issueddate,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
issuerassignedid string ✔️
The identifier of the tender or lot to which the invoice relates, or an identifier specified by the seller for
an object on which the invoice is based, or an identifier of the document on which the invoice is based.
typecode string ✔️
Type of referenced document (See codelist UNTDID 1001)
- Code 916 "reference paper" is used to reference the identification of the document on which the invoice is based
- Code 50 "Price / sales catalog response" is used to reference the tender or the lot
- Code 130 "invoice data sheet" is used to reference an identifier for an object specified by the seller.
uriid string ✔️
The Uniform Resource Locator (URL) at which the external document is available. A means of finding the resource
including the primary access method intended for it, e.g. http: // or ftp: //. The location of the external document
must be used if the buyer needs additional information to support the amounts billed. External documents are not part
of the invoice. Access to external documents can involve certain risks.
lineid string ✔️
The referenced position identifier in the additional document
name string ✔️
A description of the document, e.g. Hourly billing, usage or consumption report, etc.
reftypecode string ✔️
The identifier for the identification scheme of the identifier of the item invoiced. If it is not clear to the
recipient which scheme is used for the identifier, an identifier of the scheme should be used, which must be selected
from UNTDID 1153 in accordance with the code list entries.
issueddate DateTime ✔️
The formatted date or date time for the issuance of this referenced Additional Document.

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionAdditionalReferencedDocumentBinaryData

Summary

Get the binary data of an additional Document reference on a position

Signature

public function getDocumentPositionAdditionalReferencedDocumentBinaryData(
  ?string $binarydatafilename,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
binarydatafilename string ✔️
The fuill-qualified filename where the data where stored. If no binary data are
available, this value will be empty

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionBuyerOrderReferencedDocument

Summary

Get details of the related buyer order position

Signature

public function getDocumentPositionBuyerOrderReferencedDocument(?string $buyerOrderRefLineId): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
buyerOrderRefLineId string ✔️
An identifier for a position within an order placed by the buyer. Note: Reference is made to the order
reference at the document level.

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionQuotationReferencedDocument

Summary

Get details of the related quotation position

Signature

public function getDocumentPositionQuotationReferencedDocument(
  ?string $quotationRefId,
  ?string $quotationRefLineId,
  ?DateTime $quotationRefDate,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
quotationRefId string ✔️
The quotation document referenced in this line trade agreement
quotationRefLineId string ✔️
The unique identifier of a line in this Quotation referenced document
quotationRefDate DateTime ✔️
The formatted date or date time for the issuance of this referenced Quotation.

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionGrossPrice

Summary

Get the unit price excluding sales tax before deduction of the discount on the item price.

Signature

public function getDocumentPositionGrossPrice(
  ?float $chargeAmount,
  ?float $basisQuantity,
  ?string $basisQuantityUnitCode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
chargeAmount float ✔️
The unit price excluding sales tax before deduction of the discount on the item price.
Note: If the price is shown according to the net calculation, the price must also be shown
according to the gross calculation.
basisQuantity float ✔️
The number of item units for which the price applies (price base quantity)
basisQuantityUnitCode string ✔️
The unit code of the number of item units for which the price applies (price base quantity)

Returns

Returns a value of type \OrderDocumentReader

firstDocumentPositionGrossPriceAllowanceCharge

Summary

Seek to the first documents position gross price allowance/charge position
Returns true if the first gross price allowance/charge position is available, otherwise false
You may use it together with getDocumentPositionGrossPriceAllowanceCharge

Signature

public function firstDocumentPositionGrossPriceAllowanceCharge(): bool
{
}

Returns

Returns a value of type bool

nextDocumentPositionGrossPriceAllowanceCharge

Summary

Seek to the next documents position gross price allowance/charge position
Returns true if a other gross price allowance/charge position is available, otherwise false
You may use it together with getDocumentPositionGrossPriceAllowanceCharge

Signature

public function nextDocumentPositionGrossPriceAllowanceCharge(): bool
{
}

Returns

Returns a value of type bool

getDocumentPositionGrossPriceAllowanceCharge

Summary

Get detailed information on surcharges and discounts

Signature

public function getDocumentPositionGrossPriceAllowanceCharge(
  ?float $actualAmount,
  ?bool $isCharge,
  ?float $calculationPercent,
  ?float $basisAmount,
  ?string $reason,
  ?string $taxTypeCode,
  ?string $taxCategoryCode,
  ?float $rateApplicablePercent,
  ?float $sequence,
  ?float $basisQuantity,
  ?string $basisQuantityUnitCode,
  ?string $reasonCode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
actualAmount float ✔️
Discount on the item price. The total discount subtracted from the gross price to calculate the
net price. Note: Only applies if the discount is given per unit and is not included in the gross price.
isCharge bool ✔️
Switch for surcharge/discount, if true then its an charge
calculationPercent float ✔️
Discount/surcharge in percent. Up to level EN16931, only the final result of the discount (ActualAmount)
is transferred
basisAmount float ✔️
Base amount of the discount/surcharge
reason string ✔️
Reason for surcharge/discount (free text)
taxTypeCode string ✔️
taxCategoryCode string ✔️
rateApplicablePercent float ✔️
sequence float ✔️
basisQuantity float ✔️
basisQuantityUnitCode string ✔️
reasonCode string ✔️

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionNetPrice

Summary

Get detailed information on the net price of the item

Signature

public function getDocumentPositionNetPrice(
  ?float $chargeAmount,
  ?float $basisQuantity,
  ?string $basisQuantityUnitCode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
chargeAmount float ✔️
The price of an item, exclusive of VAT, after subtracting item price discount.
The Item net price has to be equal with the Item gross price less the Item price discount.
basisQuantity float ✔️
The number of item units to which the price applies.
basisQuantityUnitCode string ✔️
The unit of measure that applies to the Item price base quantity.
The Item price base quantity unit of measure shall be the same as the requested quantity unit of measure.

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionNetPriceTax

Summary

Tax included for B2C on position level

Signature

public function getDocumentPositionNetPriceTax(
  ?string $categoryCode,
  ?string $typeCode,
  ?float $rateApplicablePercent,
  ?float $calculatedAmount,
  ?string $exemptionReason,
  ?string $exemptionReasonCode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
categoryCode string ✔️
Coded description of a sales tax category
The code specifying the category to which this trade related tax, levy or duty applies, such as codes
for "Exempt from Tax", "Standard Rate", "Free Export Item - Tax Not Charged". Reference United Nations Code List (UNCL) 5305.
The following entries of UNTDID 5305 are used (further clarification between brackets):
- Standard rate (Liable for TAX in a standard way)
- Zero rated goods (Liable for TAX with a percentage rate of zero)
- Exempt from tax
- VAT Reverse Charge (Reverse charge VAT/IGIC/IPSI rules apply)
- VAT exempt for intra community supply of goods (VAT/IGIC/IPSI not levied due to Intra-community supply rules)
- Free export item, tax not charged
- Services outside scope of tax (Sale is not subject to TAX)
- Canary Islands General Indirect Tax (Liable for IGIC tax)
- Liable for IPSI (Ceuta/Melilla tax)
typeCode string ✔️
The code specifying the type of trade related tax, levy or duty, such as a code for a Value Added Tax (VAT).
Reference United Nations Code List (UNCL) 5153
Value = VAT for VAT, ENV for Environmental, EXC for excise duty
rateApplicablePercent float ✔️
The VAT rate, represented as percentage that applies to the ordered item.
calculatedAmount float ✔️
A monetary value resulting from the calculation of this trade related tax, levy or duty.
exemptionReason string ✔️
Reason for tax exemption (free text)
exemptionReasonCode string ✔️
Reason given in code form for the exemption of the amount from VAT. Note: Code list issued
and maintained by the Connecting Europe Facility.

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionCatalogueReferencedDocument

Summary

Get the Referenced Catalog ID applied to this line

Signature

public function getDocumentPositionCatalogueReferencedDocument(
  ?string $catalogueRefId,
  ?string $catalogueRefLineId,
  ?DateTime $catalogueRefDate,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
catalogueRefId string ✔️
Referenced Catalog ID applied to this line
catalogueRefLineId string ✔️
Referenced Catalog LineID applied to this line
catalogueRefDate DateTime ✔️
The formatted date or date time for the issuance of this referenced Catalog.

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionBlanketOrderReferencedDocument

Summary

Get details of a blanket order referenced document on position-level

Signature

public function getDocumentPositionBlanketOrderReferencedDocument(
  ?string $blanketOrderRefLineId,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
blanketOrderRefLineId string ✔️
The unique identifier of a line in the Blanket Order referenced document

Returns

Returns a value of type \OrderDocumentReader

firstDocumentPositionUltimateCustomerOrderReferencedDocument

Summary

Seek to the first ultimate customer order referenced document (on line-level)
If an applicable document exists, this function will return true, otherwise false
You should use this together with OrderDocumentReader::getDocumentPositionUltimateCustomerOrderReferencedDocument

Signature

public function firstDocumentPositionUltimateCustomerOrderReferencedDocument(): bool
{
}

Returns

Returns a value of type bool

nextDocumentPositionUltimateCustomerOrderReferencedDocument

Summary

Seek to the next ultimate customer order referenced document (on line-level)
If another applicable document exists, this function will return true, otherwise false
You should use this together with OrderDocumentReader::getDocumentPositionUltimateCustomerOrderReferencedDocument

Signature

public function nextDocumentPositionUltimateCustomerOrderReferencedDocument(): bool
{
}

Returns

Returns a value of type bool

getDocumentPositionUltimateCustomerOrderReferencedDocument

Summary

Get the ultimate customer order referenced document (on line level)
Use this together with OrderDocumentReader::firstDocumentPositionUltimateCustomerOrderReferencedDocument
and OrderDocumentReader::nextDocumentPositionUltimateCustomerOrderReferencedDocument

Signature

public function getDocumentPositionUltimateCustomerOrderReferencedDocument(
  ?string $ultimateCustomerOrderRefId,
  ?string $ultimateCustomerOrderRefLineId,
  ?DateTime $ultimateCustomerOrderRefDate,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
ultimateCustomerOrderRefId string ✔️
Ultimate Customer Order Referenced Doc ID applied to this line
ultimateCustomerOrderRefLineId string ✔️
Ultimate Customer Order Referenced Doc LineID applied to this line
ultimateCustomerOrderRefDate DateTime ✔️
The formatted date or date time for the issuance of this Ultimate Customer Order Referenced Doc.

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionPartialDelivery

Summary

Get the indication, at line level, of whether or not this trade delivery can be partially delivered.

Signature

public function getDocumentPositionPartialDelivery(?bool $partialDelivery): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
partialDelivery bool ✔️
If TRUE partial delivery is allowed

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionDeliverReqQuantity

Summary

Get the quantity, at line level, requested for this trade delivery.

Signature

public function getDocumentPositionDeliverReqQuantity(
  ?float $requestedQuantity,
  ?string $requestedQuantityUnitCode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
requestedQuantity float ✔️
The quantity, at line level, requested for this trade delivery.
requestedQuantityUnitCode string ✔️
Unit Code for the requested quantity.

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionDeliverPackageQuantity

Summary

Get the number of packages, at line level, in this trade delivery.

Signature

public function getDocumentPositionDeliverPackageQuantity(
  ?float $packageQuantity,
  ?string $packageQuantityUnitCode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
packageQuantity float ✔️
The number of packages, at line level, in this trade delivery.
packageQuantityUnitCode string ✔️
Unit Code for the package quantity.

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionDeliverPerPackageQuantity

Summary

Get the number of packages, at line level, in this trade delivery.

Signature

public function getDocumentPositionDeliverPerPackageQuantity(
  ?float $perPackageQuantity,
  ?string $perPackageQuantityUnitCode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
perPackageQuantity float ✔️
The number of packages, at line level, in this trade delivery.
perPackageQuantityUnitCode string ✔️
Unit Code for the package quantity.

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionDeliverAgreedQuantity

Summary

Get the quantity, at line level, agreed for this trade delivery.

Signature

public function getDocumentPositionDeliverAgreedQuantity(
  ?float $agreedQuantity,
  ?string $agreedQuantityUnitCode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
agreedQuantity float ✔️
The quantity, at line level, agreed for this trade delivery.
agreedQuantityUnitCode string ✔️
Unit Code for the package quantity.

Returns

Returns a value of type \OrderDocumentReader

firstDocumentPositionRequestedDeliverySupplyChainEvent

Summary

Seek to the first document position requested delivery supply chain event
Returns true if the first requested delivery supply chain event is available, otherwise false
You may use it together with getDocumentPositionRequestedDeliverySupplyChainEvent
(The Requested Date or Period on which Delivery is requested)

Signature

public function firstDocumentPositionRequestedDeliverySupplyChainEvent(): bool
{
}

Returns

Returns a value of type bool

nextDocumentPositionRequestedDeliverySupplyChainEvent

Summary

Seek to the next document position requested delivery supply chain event
Returns true if another requested delivery supply chain event is available, otherwise false
You may use it together with getDocumentPositionRequestedDeliverySupplyChainEvent
(The Requested Date or Period on which Delivery is requested)

Signature

public function nextDocumentPositionRequestedDeliverySupplyChainEvent(): bool
{
}

Returns

Returns a value of type bool

getDocumentPositionRequestedDeliverySupplyChainEvent

Summary

Get the requested date or period on which delivery is requested (on position level)

Signature

public function getDocumentPositionRequestedDeliverySupplyChainEvent(
  ?DateTime $occurrenceDateTime,
  ?DateTime $startDateTime,
  ?DateTime $endDateTime,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
occurrenceDateTime DateTime ✔️
A Requested Date on which Delivery is requested
startDateTime DateTime ✔️
The Start Date of he Requested Period on which Delivery is requested
endDateTime DateTime ✔️
The End Date of he Requested Period on which Delivery is requested

Returns

Returns a value of type \OrderDocumentReader

firstDocumentPositionRequestedDespatchSupplyChainEvent

Summary

Seek to the first document position requested despatch supply chain event
Returns true if the first requested despatch supply chain event is available, otherwise false
You may use it together with getDocumentPositionRequestedDespatchSupplyChainEvent
This is the Requested date or period on which pick up is requested (on position level)

Signature

public function firstDocumentPositionRequestedDespatchSupplyChainEvent(): bool
{
}

Returns

Returns a value of type bool

nextDocumentPositionRequestedDespatchSupplyChainEvent

Summary

Seek to the next document position requested despatch supply chain event
Returns true if another requested despatch supply chain event is available, otherwise false
You may use it together with getDocumentPositionRequestedDespatchSupplyChainEvent
This is the Requested date or period on which pick up is requested (on position level)

Signature

public function nextDocumentPositionRequestedDespatchSupplyChainEvent(): bool
{
}

Returns

Returns a value of type bool

getDocumentPositionRequestedDespatchSupplyChainEvent

Summary

Get the requested date or period on which delivery is requested (on position level)

Signature

public function getDocumentPositionRequestedDespatchSupplyChainEvent(
  ?DateTime $occurrenceDateTime,
  ?DateTime $startDateTime,
  ?DateTime $endDateTime,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
occurrenceDateTime DateTime ✔️
A Requested Date on which Pick up is requested
startDateTime DateTime ✔️
The Start Date of he Requested Period on which Pick up is requested
endDateTime DateTime ✔️
The End Date of he Requested Period on which Pick up is requested

Returns

Returns a value of type \OrderDocumentReader

firstDocumentPositionTax

Summary

Seek to the first document position tax
Returns true if the first tax position is available, otherwise false
You may use it together with OrderDocumentReader::getDocumentPositionTax

Signature

public function firstDocumentPositionTax(): bool
{
}

Returns

Returns a value of type bool

nextDocumentPositionTax

Summary

Seek to the next document position tax
Returns true if another tax position is available, otherwise false
You may use it together with OrderDocumentReader::getDocumentPositionTax

Signature

public function nextDocumentPositionTax(): bool
{
}

Returns

Returns a value of type bool

getDocumentPositionTax

Summary

Get information about the sales tax that applies to the goods and services invoiced
in the relevant invoice line

Signature

public function getDocumentPositionTax(
  ?string $categoryCode,
  ?string $typeCode,
  ?float $rateApplicablePercent,
  ?float $calculatedAmount,
  ?string $exemptionReason,
  ?string $exemptionReasonCode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
categoryCode string ✔️
Coded description of a sales tax category
The code specifying the category to which this trade related tax, levy or duty applies, such as codes
for "Exempt from Tax", "Standard Rate", "Free Export Item - Tax Not Charged". Reference United Nations Code List (UNCL) 5305.
The following entries of UNTDID 5305 are used (further clarification between brackets):
- Standard rate (Liable for TAX in a standard way)
- Zero rated goods (Liable for TAX with a percentage rate of zero)
- Exempt from tax
- VAT Reverse Charge (Reverse charge VAT/IGIC/IPSI rules apply)
- VAT exempt for intra community supply of goods (VAT/IGIC/IPSI not levied due to Intra-community supply rules)
- Free export item, tax not charged
- Services outside scope of tax (Sale is not subject to TAX)
- Canary Islands General Indirect Tax (Liable for IGIC tax)
- Liable for IPSI (Ceuta/Melilla tax)
typeCode string ✔️
The code specifying the type of trade related tax, levy or duty, such as a code for a Value Added Tax (VAT).
Reference United Nations Code List (UNCL) 5153
Value = VAT for VAT, ENV for Environmental, EXC for excise duty
rateApplicablePercent float ✔️
The VAT rate, represented as percentage that applies to the ordered item.
calculatedAmount float ✔️
A monetary value resulting from the calculation of this trade related tax, levy or duty.
exemptionReason string ✔️
Reason for tax exemption (free text)
exemptionReasonCode string ✔️
Reason given in code form for the exemption of the amount from VAT. Note: Code list issued
and maintained by the Connecting Europe Facility.

Returns

Returns a value of type \OrderDocumentReader

firstDocumentPositionAllowanceCharge

Summary

Seek to the first allowance charge (on position level)
Returns true if the first position is available, otherwise false
You may use it together with OrderDocumentReader::getDocumentPositionAllowanceCharge

Signature

public function firstDocumentPositionAllowanceCharge(): bool
{
}

Returns

Returns a value of type bool

nextDocumentPositionAllowanceCharge

Summary

Seek to the next allowance charge (on position level)
Returns true if another position is available, otherwise false
You may use it together with OrderDocumentReader::getDocumentPositionAllowanceCharge

Signature

public function nextDocumentPositionAllowanceCharge(): bool
{
}

Returns

Returns a value of type bool

getDocumentPositionAllowanceCharge

Summary

Get surcharges and discounts on position level

Signature

public function getDocumentPositionAllowanceCharge(
  ?float $actualAmount,
  ?bool $isCharge,
  ?float $calculationPercent,
  ?float $basisAmount,
  ?string $reasonCode,
  ?string $reason,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
actualAmount float ✔️
The amount of an allowance, without VAT.
isCharge bool ✔️
Indicator indicating whether the following data is for a charge or an allowance.
calculationPercent float ✔️
The percentage that may be used, in conjunction with the order line allowance base amount,
to calculate the order line allowance amount.
basisAmount float ✔️
The base amount that may be used, in conjunction with the order line allowance percentage,
to calculate the order line allowance amount.
reasonCode string ✔️
The reason for the order line allowance, expressed as a code.
Use entries of the UNTDID 5189 code list. The order line level allowance reason code and the order
line level allowance reason shall indicate the same allowance reason.
reason string ✔️
The reason for the order line allowance, expressed as text.

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionLineSummation

Summary

Get detailed information on item totals

Signature

public function getDocumentPositionLineSummation(
  ?float $lineTotalAmount,
  ?float $totalAllowanceChargeAmount,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
lineTotalAmount float ✔️
The total amount of the order line.
The amount is “net” without VAT, i.e. inclusive of line level allowances and charges as well as other relevant taxes.
totalAllowanceChargeAmount float ✔️
A monetary value of a total allowance and charge reported in this trade settlement line monetary summation.
The amount is “net” without VAT, i.e. inclusive of line level allowances and charges as well as other relevant taxes.

Returns

Returns a value of type \OrderDocumentReader

getDocumentPositionReceivableTradeAccountingAccount

Summary

Set an AccountingAccount on position level

Signature

public function getDocumentPositionReceivableTradeAccountingAccount(
  ?string $id,
  ?string $typeCode,
): \OrderDocumentReader
{
}

Parameters

Name Type Allows Null Description
id string ✔️
The unique identifier for this trade accounting account.
typeCode string ✔️
The code specifying the type of trade accounting account, such as
general (main), secondary, cost accounting or budget account.

Returns

Returns a value of type \OrderDocumentReader

Clone this wiki locally