diff --git a/src/ZugferdDocumentBuilder.php b/src/ZugferdDocumentBuilder.php index 95f4fee..8cb65d0 100644 --- a/src/ZugferdDocumentBuilder.php +++ b/src/ZugferdDocumentBuilder.php @@ -171,22 +171,22 @@ public function writeFile(string $xmlfilename): ZugferdDocument /** * Set main information about this document * - * @param string $documentno __BT-1, From MINIMUM__ The document no issued by the seller - * @param string $documenttypecode __BT-3, From MINIMUM__ The type of the document, See \horstoeko\codelists\ZugferdInvoiceType for details - * @param DateTime $documentdate __BT-2, From MINIMUM__ Date of invoice. The date when the document was issued by the seller + * @param string $documentNo __BT-1, From MINIMUM__ The document no issued by the seller + * @param string $documentTypeCode __BT-3, From MINIMUM__ The type of the document, See \horstoeko\codelists\ZugferdInvoiceType for details + * @param DateTime $documentDate __BT-2, From MINIMUM__ Date of invoice. The date when the document was issued by the seller * @param string $invoiceCurrency __BT-5, From MINIMUM__ Code for the invoice currency - * @param string|null $documentname __BT-X-2, From EXTENDED__ Document Type. The documenttype (free text) - * @param string|null $documentlanguage __BT-X-4, From EXTENDED__ Language indicator. The language code in which the document was written + * @param string|null $documentName __BT-X-2, From EXTENDED__ Document Type. The documenttype (free text) + * @param string|null $documentLanguage __BT-X-4, From EXTENDED__ Language indicator. The language code in which the document was written * @param DateTime|null $effectiveSpecifiedPeriod __BT-X-6-000, From EXTENDED__ The contractual due date of the invoice * @return ZugferdDocumentBuilder */ - public function setDocumentInformation(string $documentno, string $documenttypecode, DateTime $documentdate, string $invoiceCurrency, ?string $documentname = null, ?string $documentlanguage = null, ?DateTime $effectiveSpecifiedPeriod = null): ZugferdDocumentBuilder + public function setDocumentInformation(string $documentNo, string $documentTypeCode, DateTime $documentDate, string $invoiceCurrency, ?string $documentName = null, ?string $documentLanguage = null, ?DateTime $effectiveSpecifiedPeriod = null): ZugferdDocumentBuilder { - $this->getObjectHelper()->tryCall($this->getInvoiceObject()->getExchangedDocument(), "setID", $this->getObjectHelper()->getIdType($documentno)); - $this->getObjectHelper()->tryCall($this->getInvoiceObject()->getExchangedDocument(), "setName", $this->getObjectHelper()->getTextType($documentname)); - $this->getObjectHelper()->tryCall($this->getInvoiceObject()->getExchangedDocument(), "setTypeCode", $this->getObjectHelper()->getDocumentCodeType($documenttypecode)); - $this->getObjectHelper()->tryCall($this->getInvoiceObject()->getExchangedDocument(), "setIssueDateTime", $this->getObjectHelper()->getDateTimeType($documentdate)); - $this->getObjectHelper()->tryCall($this->getInvoiceObject()->getExchangedDocument(), "addToLanguageID", $this->getObjectHelper()->getIdType($documentlanguage)); + $this->getObjectHelper()->tryCall($this->getInvoiceObject()->getExchangedDocument(), "setID", $this->getObjectHelper()->getIdType($documentNo)); + $this->getObjectHelper()->tryCall($this->getInvoiceObject()->getExchangedDocument(), "setName", $this->getObjectHelper()->getTextType($documentName)); + $this->getObjectHelper()->tryCall($this->getInvoiceObject()->getExchangedDocument(), "setTypeCode", $this->getObjectHelper()->getDocumentCodeType($documentTypeCode)); + $this->getObjectHelper()->tryCall($this->getInvoiceObject()->getExchangedDocument(), "setIssueDateTime", $this->getObjectHelper()->getDateTimeType($documentDate)); + $this->getObjectHelper()->tryCall($this->getInvoiceObject()->getExchangedDocument(), "addToLanguageID", $this->getObjectHelper()->getIdType($documentLanguage)); $this->getObjectHelper()->tryCall($this->getInvoiceObject()->getExchangedDocument(), "setEffectiveSpecifiedPeriod", $this->getObjectHelper()->getSpecifiedPeriodType(null, null, $effectiveSpecifiedPeriod, null)); $this->getObjectHelper()->tryCall($this->headerTradeSettlement, "setInvoiceCurrencyCode", $this->getObjectHelper()->getIdType($invoiceCurrency)); @@ -376,15 +376,15 @@ public function addDocumentSellerGlobalId(?string $globalID = null, ?string $glo * seller. Sales tax number with a prefixed country code. A supplier registered as subject to VAT must provide his sales tax * identification number, unless he uses a tax agent. * - * @param string|null $taxregtype __BT-31-0/BT-32-0, From MINIMUM/EN 16931__ Type of tax number of the seller (FC = Tax number, VA = Sales tax identification number) - * @param string|null $taxregid __BT-31/32, From MINIMUM/EN 16931__ Tax number of the seller or sales tax identification number of the seller + * @param string|null $taxRegType __BT-31-0/BT-32-0, From MINIMUM/EN 16931__ Type of tax number of the seller (FC = Tax number, VA = Sales tax identification number) + * @param string|null $taxRegId __BT-31/32, From MINIMUM/EN 16931__ Tax number of the seller or sales tax identification number of the seller * @return ZugferdDocumentBuilder */ - public function addDocumentSellerTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder + public function addDocumentSellerTaxRegistration(?string $taxRegType = null, ?string $taxRegId = null): ZugferdDocumentBuilder { $sellerTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getSellerTradeParty"); - $taxreg = $this->getObjectHelper()->getTaxRegistrationType($taxregtype, $taxregid); - $this->getObjectHelper()->tryCall($sellerTradeParty, "addToSpecifiedTaxRegistration", $taxreg); + $taxReg = $this->getObjectHelper()->getTaxRegistrationType($taxRegType, $taxRegId); + $this->getObjectHelper()->tryCall($sellerTradeParty, "addToSpecifiedTaxRegistration", $taxReg); return $this; } @@ -413,19 +413,19 @@ public function addDocumentSellerTaxNumber(?string $taxNo = null): ZugferdDocume /** * Sets detailed information on the business address of the seller * - * @param string|null $lineone __BT-35, From BASIC WL__ The main line in the sellers address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT-36, From BASIC WL__ 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 used to provide additional details in addition to the main line - * @param string|null $linethree __BT-162, From BASIC WL__ 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 - * @param string|null $postcode __BT-38, From BASIC WL__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-35, From BASIC WL__ The main line in the sellers address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT-36, From BASIC WL__ 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 used to provide additional details in addition to the main line + * @param string|null $lineThree __BT-162, From BASIC WL__ 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 + * @param string|null $postCode __BT-38, From BASIC WL__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-37, From BASIC WL__ Usual name of the city or municipality in which the seller's address is located * @param string|null $country __BT-40, From MINIMUM__ 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” - * @param string|null $subdivision __BT-39, From BASIC WL__ The sellers state + * @param string|null $subDivision __BT-39, From BASIC WL__ The sellers state * @return ZugferdDocumentBuilder */ - public function setDocumentSellerAddress(?string $lineone = null, ?string $linetwo = null, ?string $linethree = null, ?string $postcode = null, ?string $city = null, ?string $country = null, ?string $subdivision = null): ZugferdDocumentBuilder + public function setDocumentSellerAddress(?string $lineOne = null, ?string $lineTwo = null, ?string $lineThree = null, ?string $postCode = null, ?string $city = null, ?string $country = null, ?string $subDivision = null): ZugferdDocumentBuilder { $sellerTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getSellerTradeParty"); - $address = $this->getObjectHelper()->getTradeAddress($lineone, $linetwo, $linethree, $postcode, $city, $country, $subdivision); + $address = $this->getObjectHelper()->getTradeAddress($lineOne, $lineTwo, $lineThree, $postCode, $city, $country, $subDivision); $this->getObjectHelper()->tryCall($sellerTradeParty, "setPostalTradeAddress", $address); return $this; } @@ -433,33 +433,33 @@ public function setDocumentSellerAddress(?string $lineone = null, ?string $linet /** * Set Organization details * - * @param string|null $legalorgid __BT-30, From MINIMUM__ 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 - * @param string|null $legalorgtype __BT-30-1, From MINIMUM__ The identifier for the identification scheme of the legal registration of the seller. If the identification scheme is used, it must be selected from ISO/IEC 6523 list - * @param string|null $legalorgname __BT-28, From BASIC WL__ 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. + * @param string|null $legalOrgId __BT-30, From MINIMUM__ 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 + * @param string|null $legalOrgType __BT-30-1, From MINIMUM__ The identifier for the identification scheme of the legal registration of the seller. If the identification scheme is used, it must be selected from ISO/IEC 6523 list + * @param string|null $legalOrgName __BT-28, From BASIC WL__ 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. * @return ZugferdDocumentBuilder */ - public function setDocumentSellerLegalOrganisation(?string $legalorgid, ?string $legalorgtype, ?string $legalorgname): ZugferdDocumentBuilder + public function setDocumentSellerLegalOrganisation(?string $legalOrgId, ?string $legalOrgType, ?string $legalOrgName): ZugferdDocumentBuilder { $sellerTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getSellerTradeParty"); - $legalorg = $this->getObjectHelper()->getLegalOrganization($legalorgid, $legalorgtype, $legalorgname); - $this->getObjectHelper()->tryCall($sellerTradeParty, "setSpecifiedLegalOrganization", $legalorg); + $legalOrg = $this->getObjectHelper()->getLegalOrganization($legalOrgId, $legalOrgType, $legalOrgName); + $this->getObjectHelper()->tryCall($sellerTradeParty, "setSpecifiedLegalOrganization", $legalOrg); return $this; } /** * Set detailed information on the seller's contact person * - * @param string|null $contactpersonname __BT-41, From EN 16931__ Such as personal name, name of contact person or department or office - * @param string|null $contactdepartmentname __BT-41-0, From EN 16931__ If a contact person is specified, either the name or the department must be transmitted. - * @param string|null $contactphoneno __BT-42, From EN 16931__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-107, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-43, From EN 16931__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-41, From EN 16931__ Such as personal name, name of contact person or department or office + * @param string|null $contactDepartmentName __BT-41-0, From EN 16931__ If a contact person is specified, either the name or the department must be transmitted. + * @param string|null $contactPhoneNo __BT-42, From EN 16931__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-107, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-43, From EN 16931__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function setDocumentSellerContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function setDocumentSellerContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $sellerTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getSellerTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCallIfMethodExists($sellerTradeParty, "addToDefinedTradeContact", "setDefinedTradeContact", [$contact], $contact); return $this; } @@ -467,17 +467,17 @@ public function setDocumentSellerContact(?string $contactpersonname, ?string $co /** * Add an (additional) contact to the seller party (EXTENDED Profile only) * - * @param string|null $contactpersonname __BT-41, From EN 16931__ Such as personal name, name of contact person or department or office - * @param string|null $contactdepartmentname __BT-41-0, From EN 16931__ If a contact person is specified, either the name or the department must be transmitted. - * @param string|null $contactphoneno __BT-42, From EN 16931__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-107, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-43, From EN 16931__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-41, From EN 16931__ Such as personal name, name of contact person or department or office + * @param string|null $contactDepartmentName __BT-41-0, From EN 16931__ If a contact person is specified, either the name or the department must be transmitted. + * @param string|null $contactPhoneNo __BT-42, From EN 16931__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-107, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-43, From EN 16931__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function addDocumentSellerContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function addDocumentSellerContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $sellerTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getSellerTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCall($sellerTradeParty, "addToDefinedTradeContact", $contact); return $this; } @@ -549,34 +549,34 @@ public function addDocumentBuyerGlobalId(?string $globalID = null, ?string $glob * buyers. Sales tax number with a prefixed country code. A supplier registered as subject to VAT must provide his sales tax * identification number, unless he uses a tax agent. * - * @param string|null $taxregtype __BT-48-0, From BASIC WL__ Type of tax number (FC = Tax number, VA = Sales tax identification number) - * @param string|null $taxregid __BT-48, From BASIC WL__ Tax number or sales tax identification number + * @param string|null $taxRegType __BT-48-0, From BASIC WL__ Type of tax number (FC = Tax number, VA = Sales tax identification number) + * @param string|null $taxRegId __BT-48, From BASIC WL__ Tax number or sales tax identification number * @return ZugferdDocumentBuilder */ - public function addDocumentBuyerTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder + public function addDocumentBuyerTaxRegistration(?string $taxRegType = null, ?string $taxRegId = null): ZugferdDocumentBuilder { $buyerTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getBuyerTradeParty"); - $taxreg = $this->getObjectHelper()->getTaxRegistrationType($taxregtype, $taxregid); - $this->getObjectHelper()->tryCall($buyerTradeParty, "addToSpecifiedTaxRegistration", $taxreg); + $taxReg = $this->getObjectHelper()->getTaxRegistrationType($taxRegType, $taxRegId); + $this->getObjectHelper()->tryCall($buyerTradeParty, "addToSpecifiedTaxRegistration", $taxReg); return $this; } /** * Sets detailed information on the business address of the buyer * - * @param string|null $lineone __BT-50, From BASIC WL__ The main line in the buyers address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT-51, From BASIC WL__ 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 - * @param string|null $linethree __BT-163, From BASIC WL__ 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 - * @param string|null $postcode __BT-53, From BASIC WL__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-50, From BASIC WL__ The main line in the buyers address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT-51, From BASIC WL__ 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 + * @param string|null $lineThree __BT-163, From BASIC WL__ 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 + * @param string|null $postCode __BT-53, From BASIC WL__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-52, From BASIC WL__ Usual name of the city or municipality in which the buyers address is located * @param string|null $country __BT-55, From BASIC WL__ 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” - * @param string|null $subdivision __BT-54, From BASIC WL__ The buyers state + * @param string|null $subDivision __BT-54, From BASIC WL__ The buyers state * @return ZugferdDocumentBuilder */ - public function setDocumentBuyerAddress(?string $lineone = null, ?string $linetwo = null, ?string $linethree = null, ?string $postcode = null, ?string $city = null, ?string $country = null, ?string $subdivision = null): ZugferdDocumentBuilder + public function setDocumentBuyerAddress(?string $lineOne = null, ?string $lineTwo = null, ?string $lineThree = null, ?string $postCode = null, ?string $city = null, ?string $country = null, ?string $subDivision = null): ZugferdDocumentBuilder { $buyerTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getBuyerTradeParty"); - $address = $this->getObjectHelper()->getTradeAddress($lineone, $linetwo, $linethree, $postcode, $city, $country, $subdivision); + $address = $this->getObjectHelper()->getTradeAddress($lineOne, $lineTwo, $lineThree, $postCode, $city, $country, $subDivision); $this->getObjectHelper()->tryCall($buyerTradeParty, "setPostalTradeAddress", $address); return $this; } @@ -584,33 +584,33 @@ public function setDocumentBuyerAddress(?string $lineone = null, ?string $linetw /** * Set legal organisation of the buyer party * - * @param string|null $legalorgid __BT-47, From MINIMUM__ 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 - * @param string|null $legalorgtype __BT-47-1, From MINIMUM__ 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 - * @param string|null $legalorgname __BT-45, From EN 16931__ A name by which the buyer is known, if different from the buyers name (also known as the company name) + * @param string|null $legalOrgId __BT-47, From MINIMUM__ 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 + * @param string|null $legalOrgType __BT-47-1, From MINIMUM__ 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 + * @param string|null $legalOrgName __BT-45, From EN 16931__ A name by which the buyer is known, if different from the buyers name (also known as the company name) * @return ZugferdDocumentBuilder */ - public function setDocumentBuyerLegalOrganisation(?string $legalorgid, ?string $legalorgtype, ?string $legalorgname): ZugferdDocumentBuilder + public function setDocumentBuyerLegalOrganisation(?string $legalOrgId, ?string $legalOrgType, ?string $legalOrgName): ZugferdDocumentBuilder { $buyerTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getBuyerTradeParty"); - $legalorg = $this->getObjectHelper()->getLegalOrganization($legalorgid, $legalorgtype, $legalorgname); - $this->getObjectHelper()->tryCall($buyerTradeParty, "setSpecifiedLegalOrganization", $legalorg); + $legalOrg = $this->getObjectHelper()->getLegalOrganization($legalOrgId, $legalOrgType, $legalOrgName); + $this->getObjectHelper()->tryCall($buyerTradeParty, "setSpecifiedLegalOrganization", $legalOrg); return $this; } /** * Set contact of the buyer party * - * @param string|null $contactpersonname __BT-56, From EN 16931__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-56-0, From EN 16931__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-57, From EN 16931__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-115, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-58, From EN 16931__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-56, From EN 16931__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-56-0, From EN 16931__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-57, From EN 16931__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-115, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-58, From EN 16931__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function setDocumentBuyerContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function setDocumentBuyerContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $buyerTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getBuyerTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCallIfMethodExists($buyerTradeParty, "addToDefinedTradeContact", "setDefinedTradeContact", [$contact], $contact); return $this; } @@ -618,17 +618,17 @@ public function setDocumentBuyerContact(?string $contactpersonname, ?string $con /** * Add an (additional) contact to the buyer party contact person (EXTENDED Profile only) * - * @param string|null $contactpersonname __BT-56, From EN 16931__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-56-0, From EN 16931__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-57, From EN 16931__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-115, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-58, From EN 16931__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-56, From EN 16931__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-56-0, From EN 16931__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-57, From EN 16931__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-115, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-58, From EN 16931__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function addDocumentBuyerContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function addDocumentBuyerContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $buyerTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getBuyerTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCall($buyerTradeParty, "addToDefinedTradeContact", $contact); return $this; } @@ -680,34 +680,34 @@ public function addDocumentSellerTaxRepresentativeGlobalId(?string $globalID = n /** * Add Tax registration to seller's tax representative party * - * @param string|null $taxregtype __BT-63-0, From BASIC WL__ Type of tax number (FC = Tax number, VA = Sales tax identification number) - * @param string|null $taxregid __BT-63, From BASIC WL__ Tax number or sales tax identification number + * @param string|null $taxRegType __BT-63-0, From BASIC WL__ Type of tax number (FC = Tax number, VA = Sales tax identification number) + * @param string|null $taxRegId __BT-63, From BASIC WL__ Tax number or sales tax identification number * @return ZugferdDocumentBuilder */ - public function addDocumentSellerTaxRepresentativeTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder + public function addDocumentSellerTaxRepresentativeTaxRegistration(?string $taxRegType = null, ?string $taxRegId = null): ZugferdDocumentBuilder { $taxrepresentativeTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getSellerTaxRepresentativeTradeParty"); - $taxreg = $this->getObjectHelper()->getTaxRegistrationType($taxregtype, $taxregid); - $this->getObjectHelper()->tryCall($taxrepresentativeTradeParty, "addToSpecifiedTaxRegistration", $taxreg); + $taxReg = $this->getObjectHelper()->getTaxRegistrationType($taxRegType, $taxRegId); + $this->getObjectHelper()->tryCall($taxrepresentativeTradeParty, "addToSpecifiedTaxRegistration", $taxReg); return $this; } /** * Sets the postal address of the seller's tax representative party * - * @param string|null $lineone __BT-64, From BASIC WL__ The main line in the sellers tax agent address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT-65, From BASIC WL__ Line 2 of the sellers tax agent address. This is an additional address line in an address that can be used to provide additional details in addition to the main line - * @param string|null $linethree __BT-164, From BASIC WL__ Line 3 of the sellers tax agent address. This is an additional address line in an address that can be used to provide additional details in addition to the main line - * @param string|null $postcode __BT-67, From BASIC WL__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-64, From BASIC WL__ The main line in the sellers tax agent address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT-65, From BASIC WL__ Line 2 of the sellers tax agent address. This is an additional address line in an address that can be used to provide additional details in addition to the main line + * @param string|null $lineThree __BT-164, From BASIC WL__ Line 3 of the sellers tax agent address. This is an additional address line in an address that can be used to provide additional details in addition to the main line + * @param string|null $postCode __BT-67, From BASIC WL__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-66, From BASIC WL__ Usual name of the city or municipality in which the sellers tax agent address is located * @param string|null $country __BT-69, From BASIC WL__ 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” - * @param string|null $subdivision __BT-68, From BASIC WL__ The sellers tax agent state + * @param string|null $subDivision __BT-68, From BASIC WL__ The sellers tax agent state * @return ZugferdDocumentBuilder */ - public function setDocumentSellerTaxRepresentativeAddress(?string $lineone = null, ?string $linetwo = null, ?string $linethree = null, ?string $postcode = null, ?string $city = null, ?string $country = null, ?string $subdivision = null): ZugferdDocumentBuilder + public function setDocumentSellerTaxRepresentativeAddress(?string $lineOne = null, ?string $lineTwo = null, ?string $lineThree = null, ?string $postCode = null, ?string $city = null, ?string $country = null, ?string $subDivision = null): ZugferdDocumentBuilder { $taxrepresentativeTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getSellerTaxRepresentativeTradeParty"); - $address = $this->getObjectHelper()->getTradeAddress($lineone, $linetwo, $linethree, $postcode, $city, $country, $subdivision); + $address = $this->getObjectHelper()->getTradeAddress($lineOne, $lineTwo, $lineThree, $postCode, $city, $country, $subDivision); $this->getObjectHelper()->tryCall($taxrepresentativeTradeParty, "setPostalTradeAddress", $address); return $this; } @@ -715,33 +715,33 @@ public function setDocumentSellerTaxRepresentativeAddress(?string $lineone = nul /** * Set legal organisation of the seller's tax representative party * - * @param string|null $legalorgid __BT-, From __ An identifier issued by an official registrar that identifies the seller tax agent as a legal entity or legal person. - * @param string|null $legalorgtype __BT-, From __ The identifier for the identification scheme of the legal registration of the sellers tax agent. If the identification scheme is used, it must be selected from ISO/IEC 6523 list - * @param string|null $legalorgname __BT-, From __ A name by which the sellers tax agent is known, if different from the sellers tax agent name (also known as the company name) + * @param string|null $legalOrgId __BT-, From __ An identifier issued by an official registrar that identifies the seller tax agent as a legal entity or legal person. + * @param string|null $legalOrgType __BT-, From __ The identifier for the identification scheme of the legal registration of the sellers tax agent. If the identification scheme is used, it must be selected from ISO/IEC 6523 list + * @param string|null $legalOrgName __BT-, From __ A name by which the sellers tax agent is known, if different from the sellers tax agent name (also known as the company name) * @return ZugferdDocumentBuilder */ - public function setDocumentSellerTaxRepresentativeLegalOrganisation(?string $legalorgid, ?string $legalorgtype, ?string $legalorgname): ZugferdDocumentBuilder + public function setDocumentSellerTaxRepresentativeLegalOrganisation(?string $legalOrgId, ?string $legalOrgType, ?string $legalOrgName): ZugferdDocumentBuilder { $taxrepresentativeTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getSellerTaxRepresentativeTradeParty"); - $legalorg = $this->getObjectHelper()->getLegalOrganization($legalorgid, $legalorgtype, $legalorgname); - $this->getObjectHelper()->tryCall($taxrepresentativeTradeParty, "setSpecifiedLegalOrganization", $legalorg); + $legalOrg = $this->getObjectHelper()->getLegalOrganization($legalOrgId, $legalOrgType, $legalOrgName); + $this->getObjectHelper()->tryCall($taxrepresentativeTradeParty, "setSpecifiedLegalOrganization", $legalOrg); return $this; } /** * Set detailed information on the seller's tax representative party contact person * - * @param string|null $contactpersonname __BT-X-120, From EXTENDED__ Such as personal name, name of contact person or department or office - * @param string|null $contactdepartmentname __BT-X-121, From EXTENDED__ If a contact person is specified, either the name or the department must be transmitted. - * @param string|null $contactphoneno __BT-X-122, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-123, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-124, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-120, From EXTENDED__ Such as personal name, name of contact person or department or office + * @param string|null $contactDepartmentName __BT-X-121, From EXTENDED__ If a contact person is specified, either the name or the department must be transmitted. + * @param string|null $contactPhoneNo __BT-X-122, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-123, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-124, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function setDocumentSellerTaxRepresentativeContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function setDocumentSellerTaxRepresentativeContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $taxrepresentativeTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getSellerTaxRepresentativeTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCallIfMethodExists($taxrepresentativeTradeParty, "addToDefinedTradeContact", "setDefinedTradeContact", [$contact], $contact); return $this; } @@ -749,17 +749,17 @@ public function setDocumentSellerTaxRepresentativeContact(?string $contactperson /** * Add an (additional) contact to the seller's tax representative party (EXTENDED Profile only) * - * @param string|null $contactpersonname __BT-X-120, From EXTENDED__ Such as personal name, name of contact person or department or office - * @param string|null $contactdepartmentname __BT-X-121, From EXTENDED__ If a contact person is specified, either the name or the department must be transmitted. - * @param string|null $contactphoneno __BT-X-122, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-123, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-124, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-120, From EXTENDED__ Such as personal name, name of contact person or department or office + * @param string|null $contactDepartmentName __BT-X-121, From EXTENDED__ If a contact person is specified, either the name or the department must be transmitted. + * @param string|null $contactPhoneNo __BT-X-122, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-123, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-124, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function addDocumentSellerTaxRepresentativeContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function addDocumentSellerTaxRepresentativeContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $taxrepresentativeTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getSellerTaxRepresentativeTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCall($taxrepresentativeTradeParty, "addToDefinedTradeContact", $contact); return $this; } @@ -796,34 +796,34 @@ public function addDocumentProductEndUserGlobalId(?string $globalID = null, ?str /** * Add Tax registration to the deviating end user * - * @param string|null $taxregtype __BT-, From __ Type of tax number (FC = Tax number, VA = Sales tax identification number) - * @param string|null $taxregid __BT-, From __ Tax number or sales tax identification number + * @param string|null $taxRegType __BT-, From __ Type of tax number (FC = Tax number, VA = Sales tax identification number) + * @param string|null $taxRegId __BT-, From __ Tax number or sales tax identification number * @return ZugferdDocumentBuilder */ - public function addDocumentProductEndUserTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder + public function addDocumentProductEndUserTaxRegistration(?string $taxRegType = null, ?string $taxRegId = null): ZugferdDocumentBuilder { $productEndUserTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getProductEndUserTradeParty"); - $taxreg = $this->getObjectHelper()->getTaxRegistrationType($taxregtype, $taxregid); - $this->getObjectHelper()->tryCall($productEndUserTradeParty, "addToSpecifiedTaxRegistration", $taxreg); + $taxReg = $this->getObjectHelper()->getTaxRegistrationType($taxRegType, $taxRegId); + $this->getObjectHelper()->tryCall($productEndUserTradeParty, "addToSpecifiedTaxRegistration", $taxReg); return $this; } /** * Sets the postal address of the Product Enduser party * - * @param string|null $lineone __BT-X-397, From EXTENDED__ The main line in the product end users address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT-X-398, From EXTENDED__ Line 2 of the product end users address. This is an additional address line in an address that can be used to provide additional details in addition to the main line - * @param string|null $linethree __BT-X-399, From EXTENDED__ Line 3 of the product end users address. This is an additional address line in an address that can be used to provide additional details in addition to the main line - * @param string|null $postcode __BT-X-396, From EXTENDED__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-X-397, From EXTENDED__ The main line in the product end users address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT-X-398, From EXTENDED__ Line 2 of the product end users address. This is an additional address line in an address that can be used to provide additional details in addition to the main line + * @param string|null $lineThree __BT-X-399, From EXTENDED__ Line 3 of the product end users address. This is an additional address line in an address that can be used to provide additional details in addition to the main line + * @param string|null $postCode __BT-X-396, From EXTENDED__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-X-400, From EXTENDED__ Usual name of the city or municipality in which the product end users address is located * @param string|null $country __BT-X-401, From EXTENDED__ 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” - * @param string|null $subdivision __BT-X-402, From EXTENDED__ The product end users state + * @param string|null $subDivision __BT-X-402, From EXTENDED__ The product end users state * @return ZugferdDocumentBuilder */ - public function setDocumentProductEndUserAddress(?string $lineone = null, ?string $linetwo = null, ?string $linethree = null, ?string $postcode = null, ?string $city = null, ?string $country = null, ?string $subdivision = null): ZugferdDocumentBuilder + public function setDocumentProductEndUserAddress(?string $lineOne = null, ?string $lineTwo = null, ?string $lineThree = null, ?string $postCode = null, ?string $city = null, ?string $country = null, ?string $subDivision = null): ZugferdDocumentBuilder { $productEndUserTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getProductEndUserTradeParty"); - $address = $this->getObjectHelper()->getTradeAddress($lineone, $linetwo, $linethree, $postcode, $city, $country, $subdivision); + $address = $this->getObjectHelper()->getTradeAddress($lineOne, $lineTwo, $lineThree, $postCode, $city, $country, $subDivision); $this->getObjectHelper()->tryCall($productEndUserTradeParty, "setPostalTradeAddress", $address); return $this; } @@ -831,33 +831,33 @@ public function setDocumentProductEndUserAddress(?string $lineone = null, ?strin /** * Set legal organisation of the Product Enduser party * - * @param string|null $legalorgid __BT-X-129, From EXTENDED__ An identifier issued by an official registrar that identifies the product end user as a legal entity or legal person. If no identification scheme ($legalorgtype) is provided, it should be known to all trade parties - * @param string|null $legalorgtype __BT-X-129-0, From EXTENDED__The identifier for the identification scheme of the legal registration of the product end user. If the identification scheme is used, it must be selected from ISO/IEC 6523 list - * @param string|null $legalorgname __BT-X-130, From EXTENDED__ A name by which the product end user is known, if different from the product end users name (also known as the company name) + * @param string|null $legalOrgId __BT-X-129, From EXTENDED__ An identifier issued by an official registrar that identifies the product end user as a legal entity or legal person. If no identification scheme ($legalorgtype) is provided, it should be known to all trade parties + * @param string|null $legalOrgType __BT-X-129-0, From EXTENDED__The identifier for the identification scheme of the legal registration of the product end user. If the identification scheme is used, it must be selected from ISO/IEC 6523 list + * @param string|null $legalOrgName __BT-X-130, From EXTENDED__ A name by which the product end user is known, if different from the product end users name (also known as the company name) * @return ZugferdDocumentBuilder */ - public function setDocumentProductEndUserLegalOrganisation(?string $legalorgid, ?string $legalorgtype, ?string $legalorgname): ZugferdDocumentBuilder + public function setDocumentProductEndUserLegalOrganisation(?string $legalOrgId, ?string $legalOrgType, ?string $legalOrgName): ZugferdDocumentBuilder { $productEndUserTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getProductEndUserTradeParty"); - $legalorg = $this->getObjectHelper()->getLegalOrganization($legalorgid, $legalorgtype, $legalorgname); - $this->getObjectHelper()->tryCall($productEndUserTradeParty, "setSpecifiedLegalOrganization", $legalorg); + $legalOrg = $this->getObjectHelper()->getLegalOrganization($legalOrgId, $legalOrgType, $legalOrgName); + $this->getObjectHelper()->tryCall($productEndUserTradeParty, "setSpecifiedLegalOrganization", $legalOrg); return $this; } /** * Set contact of the Product Enduser party * - * @param string|null $contactpersonname __BT-X-131, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-132, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-133, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-134, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-135, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-131, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-132, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-133, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-134, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-135, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function setDocumentProductEndUserContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function setDocumentProductEndUserContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $productEndUserTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getProductEndUserTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCallIfMethodExists($productEndUserTradeParty, "addToDefinedTradeContact", "setDefinedTradeContact", [$contact], $contact); return $this; } @@ -865,17 +865,17 @@ public function setDocumentProductEndUserContact(?string $contactpersonname, ?st /** * Add an (additional) contact to the Product Enduser party (EXTENDED Profile only) * - * @param string|null $contactpersonname __BT-X-131, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-132, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-133, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-134, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-135, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-131, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-132, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-133, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-134, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-135, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function addDocumentProductEndUserContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function addDocumentProductEndUserContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $productEndUserTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeAgreement, "getProductEndUserTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCall($productEndUserTradeParty, "addToDefinedTradeContact", $contact); return $this; } @@ -925,34 +925,34 @@ public function addDocumentShipToGlobalId(?string $globalID = null, ?string $glo /** * Add Tax registration to Ship-To Trade party * - * @param string|null $taxregtype __BT-X-161-0, From EXTENDED__ Type of tax number (FC = Tax number, VA = Sales tax identification number) - * @param string|null $taxregid __BT-X-161, From EXTENDED__ Tax number or sales tax identification number + * @param string|null $taxRegType __BT-X-161-0, From EXTENDED__ Type of tax number (FC = Tax number, VA = Sales tax identification number) + * @param string|null $taxRegId __BT-X-161, From EXTENDED__ Tax number or sales tax identification number * @return ZugferdDocumentBuilder */ - public function addDocumentShipToTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder + public function addDocumentShipToTaxRegistration(?string $taxRegType = null, ?string $taxRegId = null): ZugferdDocumentBuilder { $shipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeDelivery, "getShipToTradeParty"); - $taxreg = $this->getObjectHelper()->getTaxRegistrationType($taxregtype, $taxregid); - $this->getObjectHelper()->tryCall($shipToTradeParty, "addToSpecifiedTaxRegistration", $taxreg); + $taxReg = $this->getObjectHelper()->getTaxRegistrationType($taxRegType, $taxRegId); + $this->getObjectHelper()->tryCall($shipToTradeParty, "addToSpecifiedTaxRegistration", $taxReg); return $this; } /** * Sets the postal address of the Ship-To party * - * @param string|null $lineone __BT-75, From BASIC WL__ The main line in the party's address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT-76, From BASIC WL__ 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 - * @param string|null $linethree __BT-165, From BASIC WL__ 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 - * @param string|null $postcode __BT-78, From BASIC WL__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-75, From BASIC WL__ The main line in the party's address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT-76, From BASIC WL__ 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 + * @param string|null $lineThree __BT-165, From BASIC WL__ 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 + * @param string|null $postCode __BT-78, From BASIC WL__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-77, From BASIC WL__ Usual name of the city or municipality in which the party's address is located * @param string|null $country __BT-80, From BASIC WL__ 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” - * @param string|null $subdivision __BT-79, From BASIC WL__ The party's state + * @param string|null $subDivision __BT-79, From BASIC WL__ The party's state * @return ZugferdDocumentBuilder */ - public function setDocumentShipToAddress(?string $lineone = null, ?string $linetwo = null, ?string $linethree = null, ?string $postcode = null, ?string $city = null, ?string $country = null, ?string $subdivision = null): ZugferdDocumentBuilder + public function setDocumentShipToAddress(?string $lineOne = null, ?string $lineTwo = null, ?string $lineThree = null, ?string $postCode = null, ?string $city = null, ?string $country = null, ?string $subDivision = null): ZugferdDocumentBuilder { $shipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeDelivery, "getShipToTradeParty"); - $address = $this->getObjectHelper()->getTradeAddress($lineone, $linetwo, $linethree, $postcode, $city, $country, $subdivision); + $address = $this->getObjectHelper()->getTradeAddress($lineOne, $lineTwo, $lineThree, $postCode, $city, $country, $subDivision); $this->getObjectHelper()->tryCall($shipToTradeParty, "setPostalTradeAddress", $address); return $this; } @@ -960,33 +960,33 @@ public function setDocumentShipToAddress(?string $lineone = null, ?string $linet /** * Set legal organisation of the Ship-To party * - * @param string|null $legalorgid __BT-X-153, From EXTENDED__ 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 - * @param string|null $legalorgtype __BT-X-153-0, From EXTENDED__ 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 - * @param string|null $legalorgname __BT-X-154, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) + * @param string|null $legalOrgId __BT-X-153, From EXTENDED__ 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 + * @param string|null $legalOrgType __BT-X-153-0, From EXTENDED__ 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 + * @param string|null $legalOrgName __BT-X-154, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) * @return ZugferdDocumentBuilder */ - public function setDocumentShipToLegalOrganisation(?string $legalorgid, ?string $legalorgtype, ?string $legalorgname): ZugferdDocumentBuilder + public function setDocumentShipToLegalOrganisation(?string $legalOrgId, ?string $legalOrgType, ?string $legalOrgName): ZugferdDocumentBuilder { $shipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeDelivery, "getShipToTradeParty"); - $legalorg = $this->getObjectHelper()->getLegalOrganization($legalorgid, $legalorgtype, $legalorgname); - $this->getObjectHelper()->tryCall($shipToTradeParty, "setSpecifiedLegalOrganization", $legalorg); + $legalOrg = $this->getObjectHelper()->getLegalOrganization($legalOrgId, $legalOrgType, $legalOrgName); + $this->getObjectHelper()->tryCall($shipToTradeParty, "setSpecifiedLegalOrganization", $legalOrg); return $this; } /** * Set contact of the Ship-To party * - * @param string|null $contactpersonname __BT-X-155, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-156, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-157, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-158, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-159, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-155, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-156, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-157, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-158, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-159, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function setDocumentShipToContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function setDocumentShipToContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $shipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeDelivery, "getShipToTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCallIfMethodExists($shipToTradeParty, "addToDefinedTradeContact", "setDefinedTradeContact", [$contact], $contact); return $this; } @@ -994,17 +994,17 @@ public function setDocumentShipToContact(?string $contactpersonname, ?string $co /** * Add an (additional) contact to the Ship-To party * - * @param string|null $contactpersonname __BT-X-155, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-156, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-157, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-158, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-159, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-155, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-156, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-157, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-158, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-159, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function addDocumentShipToContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function addDocumentShipToContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $shipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeDelivery, "getShipToTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCall($shipToTradeParty, "addToDefinedTradeContact", $contact); return $this; } @@ -1054,34 +1054,34 @@ public function addDocumentUltimateShipToGlobalId(?string $globalID = null, ?str /** * Add Tax registration to the different end recipient * - * @param string|null $taxregtype __BT-X-180-0, From EXTENDED__ Type of tax number (FC = Tax number, VA = Sales tax identification number) - * @param string|null $taxregid __BT-X-180, From EXTENDED__ Tax number or sales tax identification number + * @param string|null $taxRegType __BT-X-180-0, From EXTENDED__ Type of tax number (FC = Tax number, VA = Sales tax identification number) + * @param string|null $taxRegId __BT-X-180, From EXTENDED__ Tax number or sales tax identification number * @return ZugferdDocumentBuilder */ - public function addDocumentUltimateShipToTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder + public function addDocumentUltimateShipToTaxRegistration(?string $taxRegType = null, ?string $taxRegId = null): ZugferdDocumentBuilder { $UltimateShipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeDelivery, "getUltimateShipToTradeParty"); - $taxreg = $this->getObjectHelper()->getTaxRegistrationType($taxregtype, $taxregid); - $this->getObjectHelper()->tryCall($UltimateShipToTradeParty, "addToSpecifiedTaxRegistration", $taxreg); + $taxReg = $this->getObjectHelper()->getTaxRegistrationType($taxRegType, $taxRegId); + $this->getObjectHelper()->tryCall($UltimateShipToTradeParty, "addToSpecifiedTaxRegistration", $taxReg); return $this; } /** * Sets the postal address of the different end recipient * - * @param string|null $lineone __BT-X-173, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box. For major customer addresses, this field must be filled with "-". - * @param string|null $linetwo __BT-X-174, From EXTENDED__ 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 - * @param string|null $linethree __BT-X-175, From EXTENDED__ 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 - * @param string|null $postcode __BT-X-172, From EXTENDED__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-X-173, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box. For major customer addresses, this field must be filled with "-". + * @param string|null $lineTwo __BT-X-174, From EXTENDED__ 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 + * @param string|null $lineThree __BT-X-175, From EXTENDED__ 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 + * @param string|null $postCode __BT-X-172, From EXTENDED__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-X-176, From EXTENDED__ Usual name of the city or municipality in which the party's address is located * @param string|null $country __BT-X-177, From EXTENDED__ 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” - * @param string|null $subdivision __BT-X-178, From EXTENDED__ The party's state + * @param string|null $subDivision __BT-X-178, From EXTENDED__ The party's state * @return ZugferdDocumentBuilder */ - public function setDocumentUltimateShipToAddress(?string $lineone = null, ?string $linetwo = null, ?string $linethree = null, ?string $postcode = null, ?string $city = null, ?string $country = null, ?string $subdivision = null): ZugferdDocumentBuilder + public function setDocumentUltimateShipToAddress(?string $lineOne = null, ?string $lineTwo = null, ?string $lineThree = null, ?string $postCode = null, ?string $city = null, ?string $country = null, ?string $subDivision = null): ZugferdDocumentBuilder { $UltimateShipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeDelivery, "getUltimateShipToTradeParty"); - $address = $this->getObjectHelper()->getTradeAddress($lineone, $linetwo, $linethree, $postcode, $city, $country, $subdivision); + $address = $this->getObjectHelper()->getTradeAddress($lineOne, $lineTwo, $lineThree, $postCode, $city, $country, $subDivision); $this->getObjectHelper()->tryCall($UltimateShipToTradeParty, "setPostalTradeAddress", $address); return $this; } @@ -1089,33 +1089,33 @@ public function setDocumentUltimateShipToAddress(?string $lineone = null, ?strin /** * Set legal organisation of the different end recipient * - * @param string|null $legalorgid __BT-X-165, From EXTENDED__ 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 - * @param string|null $legalorgtype __BT-X-165-0, From EXTENDED__ 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 - * @param string|null $legalorgname __BT-X-166, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) + * @param string|null $legalOrgId __BT-X-165, From EXTENDED__ 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 + * @param string|null $legalOrgType __BT-X-165-0, From EXTENDED__ 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 + * @param string|null $legalOrgName __BT-X-166, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) * @return ZugferdDocumentBuilder */ - public function setDocumentUltimateShipToLegalOrganisation(?string $legalorgid, ?string $legalorgtype, ?string $legalorgname): ZugferdDocumentBuilder + public function setDocumentUltimateShipToLegalOrganisation(?string $legalOrgId, ?string $legalOrgType, ?string $legalOrgName): ZugferdDocumentBuilder { $UltimateShipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeDelivery, "getUltimateShipToTradeParty"); - $legalorg = $this->getObjectHelper()->getLegalOrganization($legalorgid, $legalorgtype, $legalorgname); - $this->getObjectHelper()->tryCall($UltimateShipToTradeParty, "setSpecifiedLegalOrganization", $legalorg); + $legalOrg = $this->getObjectHelper()->getLegalOrganization($legalOrgId, $legalOrgType, $legalOrgName); + $this->getObjectHelper()->tryCall($UltimateShipToTradeParty, "setSpecifiedLegalOrganization", $legalOrg); return $this; } /** * Set contact of the different end recipient * - * @param string|null $contactpersonname __BT-X-167, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-168, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-169, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-170, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-171, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-167, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-168, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-169, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-170, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-171, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function setDocumentUltimateShipToContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function setDocumentUltimateShipToContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $UltimateShipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeDelivery, "getUltimateShipToTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCallIfMethodExists($UltimateShipToTradeParty, "addToDefinedTradeContact", "setDefinedTradeContact", [$contact], $contact); return $this; } @@ -1123,17 +1123,17 @@ public function setDocumentUltimateShipToContact(?string $contactpersonname, ?st /** * Add an (additional) contact to the different end recipient. * - * @param string|null $contactpersonname __BT-X-167, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-168, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-169, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-170, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-171, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-167, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-168, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-169, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-170, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-171, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function addDocumentUltimateShipToContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function addDocumentUltimateShipToContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $UltimateShipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeDelivery, "getUltimateShipToTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCall($UltimateShipToTradeParty, "addToDefinedTradeContact", $contact); return $this; } @@ -1183,34 +1183,34 @@ public function addDocumentShipFromGlobalId(?string $globalID = null, ?string $g /** * Add Tax registration to the deviating consignor party * - * @param string|null $taxregtype __BT-, From __ Type of tax number (FC = Tax number, VA = Sales tax identification number) - * @param string|null $taxregid __BT-, From __ Tax number or sales tax identification number + * @param string|null $taxRegType __BT-, From __ Type of tax number (FC = Tax number, VA = Sales tax identification number) + * @param string|null $taxRegId __BT-, From __ Tax number or sales tax identification number * @return ZugferdDocumentBuilder */ - public function addDocumentShipFromTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder + public function addDocumentShipFromTaxRegistration(?string $taxRegType = null, ?string $taxRegId = null): ZugferdDocumentBuilder { $shipFromTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeDelivery, "getShipFromTradeParty"); - $taxreg = $this->getObjectHelper()->getTaxRegistrationType($taxregtype, $taxregid); - $this->getObjectHelper()->tryCall($shipFromTradeParty, "addToSpecifiedTaxRegistration", $taxreg); + $taxReg = $this->getObjectHelper()->getTaxRegistrationType($taxRegType, $taxRegId); + $this->getObjectHelper()->tryCall($shipFromTradeParty, "addToSpecifiedTaxRegistration", $taxReg); return $this; } /** * Sets the postal address of the deviating consignor party * - * @param string|null $lineone __BT-X-192, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT-X-193, From EXTENDED__ 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 - * @param string|null $linethree __BT-X-194, From EXTENDED__ 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 - * @param string|null $postcode __BT-X-191, From EXTENDED__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-X-192, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT-X-193, From EXTENDED__ 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 + * @param string|null $lineThree __BT-X-194, From EXTENDED__ 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 + * @param string|null $postCode __BT-X-191, From EXTENDED__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-X-195, From EXTENDED__ Usual name of the city or municipality in which the party's address is located * @param string|null $country __BT-X-196, From EXTENDED__ 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” - * @param string|null $subdivision __BT-X-197, From EXTENDED__ The party's state + * @param string|null $subDivision __BT-X-197, From EXTENDED__ The party's state * @return ZugferdDocumentBuilder */ - public function setDocumentShipFromAddress(?string $lineone = null, ?string $linetwo = null, ?string $linethree = null, ?string $postcode = null, ?string $city = null, ?string $country = null, ?string $subdivision = null): ZugferdDocumentBuilder + public function setDocumentShipFromAddress(?string $lineOne = null, ?string $lineTwo = null, ?string $lineThree = null, ?string $postCode = null, ?string $city = null, ?string $country = null, ?string $subDivision = null): ZugferdDocumentBuilder { $shipFromTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeDelivery, "getShipFromTradeParty"); - $address = $this->getObjectHelper()->getTradeAddress($lineone, $linetwo, $linethree, $postcode, $city, $country, $subdivision); + $address = $this->getObjectHelper()->getTradeAddress($lineOne, $lineTwo, $lineThree, $postCode, $city, $country, $subDivision); $this->getObjectHelper()->tryCall($shipFromTradeParty, "setPostalTradeAddress", $address); return $this; } @@ -1218,33 +1218,33 @@ public function setDocumentShipFromAddress(?string $lineone = null, ?string $lin /** * Set legal organisation of the deviating consignor party * - * @param string|null $legalorgid __BT-X-184, From EXTENDED__ 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 - * @param string|null $legalorgtype __BT-X-184-0, From EXTENDED__ 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 - * @param string|null $legalorgname __BT-X-185, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) + * @param string|null $legalOrgId __BT-X-184, From EXTENDED__ 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 + * @param string|null $legalOrgType __BT-X-184-0, From EXTENDED__ 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 + * @param string|null $legalOrgName __BT-X-185, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) * @return ZugferdDocumentBuilder */ - public function setDocumentShipFromLegalOrganisation(?string $legalorgid, ?string $legalorgtype, ?string $legalorgname): ZugferdDocumentBuilder + public function setDocumentShipFromLegalOrganisation(?string $legalOrgId, ?string $legalOrgType, ?string $legalOrgName): ZugferdDocumentBuilder { $shipFromTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeDelivery, "getShipFromTradeParty"); - $legalorg = $this->getObjectHelper()->getLegalOrganization($legalorgid, $legalorgtype, $legalorgname); - $this->getObjectHelper()->tryCall($shipFromTradeParty, "setSpecifiedLegalOrganization", $legalorg); + $legalOrg = $this->getObjectHelper()->getLegalOrganization($legalOrgId, $legalOrgType, $legalOrgName); + $this->getObjectHelper()->tryCall($shipFromTradeParty, "setSpecifiedLegalOrganization", $legalOrg); return $this; } /** * Set contact of the deviating consignor party * - * @param string|null $contactpersonname __BT-X-186, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-187, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-188, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-189, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-190, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-186, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-187, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-188, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-189, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-190, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function setDocumentShipFromContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function setDocumentShipFromContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $shipFromTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeDelivery, "getShipFromTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCallIfMethodExists($shipFromTradeParty, "addToDefinedTradeContact", "setDefinedTradeContact", [$contact], $contact); return $this; } @@ -1252,17 +1252,17 @@ public function setDocumentShipFromContact(?string $contactpersonname, ?string $ /** * Add an (additional) contact to the deviating consignor party * - * @param string|null $contactpersonname __BT-X-186, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-187, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-188, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-189, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-190, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-186, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-187, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-188, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-189, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-190, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function addDocumentShipFromContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function addDocumentShipFromContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $shipFromTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeDelivery, "getShipFromTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCall($shipFromTradeParty, "addToDefinedTradeContact", $contact); return $this; } @@ -1312,34 +1312,34 @@ public function addDocumentInvoicerGlobalId(?string $globalID = null, ?string $g /** * Add Tax registration to Invoicer Party * - * @param string|null $taxregtype __BT-, From __ Type of tax number (FC = Tax number, VA = Sales tax identification number) - * @param string|null $taxregid __BT-, From __ Tax number or sales tax identification number + * @param string|null $taxRegType __BT-, From __ Type of tax number (FC = Tax number, VA = Sales tax identification number) + * @param string|null $taxRegId __BT-, From __ Tax number or sales tax identification number * @return ZugferdDocumentBuilder */ - public function addDocumentInvoicerTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder + public function addDocumentInvoicerTaxRegistration(?string $taxRegType = null, ?string $taxRegId = null): ZugferdDocumentBuilder { $invoicerTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeSettlement, "getInvoicerTradeParty"); - $taxreg = $this->getObjectHelper()->getTaxRegistrationType($taxregtype, $taxregid); - $this->getObjectHelper()->tryCall($invoicerTradeParty, "addToSpecifiedTaxRegistration", $taxreg); + $taxReg = $this->getObjectHelper()->getTaxRegistrationType($taxRegType, $taxRegId); + $this->getObjectHelper()->tryCall($invoicerTradeParty, "addToSpecifiedTaxRegistration", $taxReg); return $this; } /** * Sets the postal address of the Invoicer Party * - * @param string|null $lineone __BT-X-216, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT-X-217, From EXTENDED__ 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 - * @param string|null $linethree __BT-X-218, From EXTENDED__ 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 - * @param string|null $postcode __BT-X-215, From EXTENDED__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-X-216, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT-X-217, From EXTENDED__ 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 + * @param string|null $lineThree __BT-X-218, From EXTENDED__ 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 + * @param string|null $postCode __BT-X-215, From EXTENDED__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-X-219, From EXTENDED__ Usual name of the city or municipality in which the party's address is located * @param string|null $country __BT-X-220, From EXTENDED__ 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” - * @param string|null $subdivision __BT-X-221, From EXTENDED__ The party's state + * @param string|null $subDivision __BT-X-221, From EXTENDED__ The party's state * @return ZugferdDocumentBuilder */ - public function setDocumentInvoicerAddress(?string $lineone = null, ?string $linetwo = null, ?string $linethree = null, ?string $postcode = null, ?string $city = null, ?string $country = null, ?string $subdivision = null): ZugferdDocumentBuilder + public function setDocumentInvoicerAddress(?string $lineOne = null, ?string $lineTwo = null, ?string $lineThree = null, ?string $postCode = null, ?string $city = null, ?string $country = null, ?string $subDivision = null): ZugferdDocumentBuilder { $invoicerTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeSettlement, "getInvoicerTradeParty"); - $address = $this->getObjectHelper()->getTradeAddress($lineone, $linetwo, $linethree, $postcode, $city, $country, $subdivision); + $address = $this->getObjectHelper()->getTradeAddress($lineOne, $lineTwo, $lineThree, $postCode, $city, $country, $subDivision); $this->getObjectHelper()->tryCall($invoicerTradeParty, "setPostalTradeAddress", $address); return $this; } @@ -1347,33 +1347,33 @@ public function setDocumentInvoicerAddress(?string $lineone = null, ?string $lin /** * Set legal organisation of the Invoicer Party * - * @param string|null $legalorgid __BT-X-208, From EXTENDED__ 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 - * @param string|null $legalorgtype __BT-X-208-0, From EXTENDED__ 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 - * @param string|null $legalorgname __BT-X-209, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) + * @param string|null $legalOrgId __BT-X-208, From EXTENDED__ 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 + * @param string|null $legalOrgType __BT-X-208-0, From EXTENDED__ 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 + * @param string|null $legalOrgName __BT-X-209, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) * @return ZugferdDocumentBuilder */ - public function setDocumentInvoicerLegalOrganisation(?string $legalorgid, ?string $legalorgtype, ?string $legalorgname): ZugferdDocumentBuilder + public function setDocumentInvoicerLegalOrganisation(?string $legalOrgId, ?string $legalOrgType, ?string $legalOrgName): ZugferdDocumentBuilder { $invoicerTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeSettlement, "getInvoicerTradeParty"); - $legalorg = $this->getObjectHelper()->getLegalOrganization($legalorgid, $legalorgtype, $legalorgname); - $this->getObjectHelper()->tryCall($invoicerTradeParty, "setSpecifiedLegalOrganization", $legalorg); + $legalOrg = $this->getObjectHelper()->getLegalOrganization($legalOrgId, $legalOrgType, $legalOrgName); + $this->getObjectHelper()->tryCall($invoicerTradeParty, "setSpecifiedLegalOrganization", $legalOrg); return $this; } /** * Set contact of the Invoicer Party * - * @param string|null $contactpersonname __BT-X-210, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-211, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-212, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-213, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-214, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-210, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-211, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-212, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-213, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-214, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function setDocumentInvoicerContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function setDocumentInvoicerContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $invoicerTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeSettlement, "getInvoicerTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCallIfMethodExists($invoicerTradeParty, "addToDefinedTradeContact", "setDefinedTradeContact", [$contact], $contact); return $this; } @@ -1381,17 +1381,17 @@ public function setDocumentInvoicerContact(?string $contactpersonname, ?string $ /** * Add an (additional) contact to the Invoicer Party * - * @param string|null $contactpersonname __BT-X-210, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-211, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-212, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-213, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-214, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-210, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-211, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-212, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-213, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-214, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function addDocumentInvoicerContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function addDocumentInvoicerContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $invoicerTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeSettlement, "getInvoicerTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCall($invoicerTradeParty, "addToDefinedTradeContact", $contact); return $this; } @@ -1441,34 +1441,34 @@ public function addDocumentInvoiceeGlobalId(?string $globalID = null, ?string $g /** * Add Tax registration to the Invoicee Party * - * @param string|null $taxregtype __BT-X-242-0, From EXTENDED__ Type of tax number (FC = Tax number, VA = Sales tax identification number) - * @param string|null $taxregid __BT-X-242, From EXTENDED__ Tax number or sales tax identification number + * @param string|null $taxRegType __BT-X-242-0, From EXTENDED__ Type of tax number (FC = Tax number, VA = Sales tax identification number) + * @param string|null $taxRegId __BT-X-242, From EXTENDED__ Tax number or sales tax identification number * @return ZugferdDocumentBuilder */ - public function addDocumentInvoiceeTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder + public function addDocumentInvoiceeTaxRegistration(?string $taxRegType = null, ?string $taxRegId = null): ZugferdDocumentBuilder { $invoiceeTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeSettlement, "getInvoiceeTradeParty"); - $taxreg = $this->getObjectHelper()->getTaxRegistrationType($taxregtype, $taxregid); - $this->getObjectHelper()->tryCall($invoiceeTradeParty, "addToSpecifiedTaxRegistration", $taxreg); + $taxReg = $this->getObjectHelper()->getTaxRegistrationType($taxRegType, $taxRegId); + $this->getObjectHelper()->tryCall($invoiceeTradeParty, "addToSpecifiedTaxRegistration", $taxReg); return $this; } /** * Sets the postal address of the Invoicee Party * - * @param string|null $lineone __BT-X-235, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT-X-236, From EXTENDED__ 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 - * @param string|null $linethree __BT-X-237, From EXTENDED__ 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 - * @param string|null $postcode __BT-X-234, From EXTENDED__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-X-235, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT-X-236, From EXTENDED__ 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 + * @param string|null $lineThree __BT-X-237, From EXTENDED__ 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 + * @param string|null $postCode __BT-X-234, From EXTENDED__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-X-238, From EXTENDED__ Usual name of the city or municipality in which the party's address is located * @param string|null $country __BT-X-239, From EXTENDED__ 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” - * @param string|null $subdivision __BT-X-240, From EXTENDED__ The party's state + * @param string|null $subDivision __BT-X-240, From EXTENDED__ The party's state * @return ZugferdDocumentBuilder */ - public function setDocumentInvoiceeAddress(?string $lineone = null, ?string $linetwo = null, ?string $linethree = null, ?string $postcode = null, ?string $city = null, ?string $country = null, ?string $subdivision = null): ZugferdDocumentBuilder + public function setDocumentInvoiceeAddress(?string $lineOne = null, ?string $lineTwo = null, ?string $lineThree = null, ?string $postCode = null, ?string $city = null, ?string $country = null, ?string $subDivision = null): ZugferdDocumentBuilder { $invoiceeTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeSettlement, "getInvoiceeTradeParty"); - $address = $this->getObjectHelper()->getTradeAddress($lineone, $linetwo, $linethree, $postcode, $city, $country, $subdivision); + $address = $this->getObjectHelper()->getTradeAddress($lineOne, $lineTwo, $lineThree, $postCode, $city, $country, $subDivision); $this->getObjectHelper()->tryCall($invoiceeTradeParty, "setPostalTradeAddress", $address); return $this; } @@ -1476,33 +1476,33 @@ public function setDocumentInvoiceeAddress(?string $lineone = null, ?string $lin /** * Set legal organisation of the Invoicee Party * - * @param string|null $legalorgid __BT-X-227, From EXTENDED__ 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 - * @param string|null $legalorgtype __BT-X-227-0, From EXTENDED__ 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 - * @param string|null $legalorgname __BT-X-228, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) + * @param string|null $legalOrgId __BT-X-227, From EXTENDED__ 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 + * @param string|null $legalOrgType __BT-X-227-0, From EXTENDED__ 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 + * @param string|null $legalOrgName __BT-X-228, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) * @return ZugferdDocumentBuilder */ - public function setDocumentInvoiceeLegalOrganisation(?string $legalorgid, ?string $legalorgtype, ?string $legalorgname): ZugferdDocumentBuilder + public function setDocumentInvoiceeLegalOrganisation(?string $legalOrgId, ?string $legalOrgType, ?string $legalOrgName): ZugferdDocumentBuilder { $invoiceeTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeSettlement, "getInvoiceeTradeParty"); - $legalorg = $this->getObjectHelper()->getLegalOrganization($legalorgid, $legalorgtype, $legalorgname); - $this->getObjectHelper()->tryCall($invoiceeTradeParty, "setSpecifiedLegalOrganization", $legalorg); + $legalOrg = $this->getObjectHelper()->getLegalOrganization($legalOrgId, $legalOrgType, $legalOrgName); + $this->getObjectHelper()->tryCall($invoiceeTradeParty, "setSpecifiedLegalOrganization", $legalOrg); return $this; } /** * Set contact of the Invoicee Party * - * @param string|null $contactpersonname __BT-X-229, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-230, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-231, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-232, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-233, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-229, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-230, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-231, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-232, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-233, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function setDocumentInvoiceeContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function setDocumentInvoiceeContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $invoiceeTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeSettlement, "getInvoiceeTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCallIfMethodExists($invoiceeTradeParty, "addToDefinedTradeContact", "setDefinedTradeContact", [$contact], $contact); return $this; } @@ -1510,17 +1510,17 @@ public function setDocumentInvoiceeContact(?string $contactpersonname, ?string $ /** * Add an (additional) contact to the Invoicee Party * - * @param string|null $contactpersonname __BT-X-229, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-230, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-231, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-232, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-233, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-229, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-230, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-231, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-232, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-233, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function addDocumentInvoiceeContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function addDocumentInvoiceeContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $invoiceeTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeSettlement, "getInvoiceeTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCall($invoiceeTradeParty, "addToDefinedTradeContact", $contact); return $this; } @@ -1571,34 +1571,34 @@ public function addDocumentPayeeGlobalId(?string $globalID = null, ?string $glob /** * Add Tax registration to payee trade party * - * @param string|null $taxregtype __BT-X-257-0, From EXTENDED__ Type of tax number (FC = Tax number, VA = Sales tax identification number) - * @param string|null $taxregid __BT-X-257, From EXTENDED Tax number or sales tax identification number + * @param string|null $taxRegType __BT-X-257-0, From EXTENDED__ Type of tax number (FC = Tax number, VA = Sales tax identification number) + * @param string|null $taxRegId __BT-X-257, From EXTENDED Tax number or sales tax identification number * @return ZugferdDocumentBuilder */ - public function addDocumentPayeeTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder + public function addDocumentPayeeTaxRegistration(?string $taxRegType = null, ?string $taxRegId = null): ZugferdDocumentBuilder { $payeeTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeSettlement, "getPayeeTradeParty"); - $taxreg = $this->getObjectHelper()->getTaxRegistrationType($taxregtype, $taxregid); - $this->getObjectHelper()->tryCall($payeeTradeParty, "addToSpecifiedTaxRegistration", $taxreg); + $taxReg = $this->getObjectHelper()->getTaxRegistrationType($taxRegType, $taxRegId); + $this->getObjectHelper()->tryCall($payeeTradeParty, "addToSpecifiedTaxRegistration", $taxReg); return $this; } /** * Sets the postal address of the payee trade party * - * @param string|null $lineone __BT-X-250, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT-X-251, From EXTENDED__ 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 - * @param string|null $linethree __BT-X-252, From EXTENDED__ 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 - * @param string|null $postcode __BT-X-249, From EXTENDED__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-X-250, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT-X-251, From EXTENDED__ 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 + * @param string|null $lineThree __BT-X-252, From EXTENDED__ 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 + * @param string|null $postCode __BT-X-249, From EXTENDED__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-X-253, From EXTENDED__ Usual name of the city or municipality in which the party's address is located * @param string|null $country __BT-X-254, From EXTENDED__ 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” - * @param string|null $subdivision __BT-X-255, From EXTENDED__ The party's state + * @param string|null $subDivision __BT-X-255, From EXTENDED__ The party's state * @return ZugferdDocumentBuilder */ - public function setDocumentPayeeAddress(?string $lineone = null, ?string $linetwo = null, ?string $linethree = null, ?string $postcode = null, ?string $city = null, ?string $country = null, ?string $subdivision = null): ZugferdDocumentBuilder + public function setDocumentPayeeAddress(?string $lineOne = null, ?string $lineTwo = null, ?string $lineThree = null, ?string $postCode = null, ?string $city = null, ?string $country = null, ?string $subDivision = null): ZugferdDocumentBuilder { $payeeTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeSettlement, "getPayeeTradeParty"); - $address = $this->getObjectHelper()->getTradeAddress($lineone, $linetwo, $linethree, $postcode, $city, $country, $subdivision); + $address = $this->getObjectHelper()->getTradeAddress($lineOne, $lineTwo, $lineThree, $postCode, $city, $country, $subDivision); $this->getObjectHelper()->tryCall($payeeTradeParty, "setPostalTradeAddress", $address); return $this; } @@ -1606,33 +1606,33 @@ public function setDocumentPayeeAddress(?string $lineone = null, ?string $linetw /** * Set legal organisation of the payee trade party * - * @param string|null $legalorgid __BT-61, From BASIC WL__ 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 - * @param string|null $legalorgtype __BT-61-1, From BASIC WL__ 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 - * @param string|null $legalorgname __BT-X-243, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) + * @param string|null $legalOrgId __BT-61, From BASIC WL__ 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 + * @param string|null $legalOrgType __BT-61-1, From BASIC WL__ 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 + * @param string|null $legalOrgName __BT-X-243, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) * @return ZugferdDocumentBuilder */ - public function setDocumentPayeeLegalOrganisation(?string $legalorgid, ?string $legalorgtype, ?string $legalorgname): ZugferdDocumentBuilder + public function setDocumentPayeeLegalOrganisation(?string $legalOrgId, ?string $legalOrgType, ?string $legalOrgName): ZugferdDocumentBuilder { $payeeTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeSettlement, "getPayeeTradeParty"); - $legalorg = $this->getObjectHelper()->getLegalOrganization($legalorgid, $legalorgtype, $legalorgname); - $this->getObjectHelper()->tryCall($payeeTradeParty, "setSpecifiedLegalOrganization", $legalorg); + $legalOrg = $this->getObjectHelper()->getLegalOrganization($legalOrgId, $legalOrgType, $legalOrgName); + $this->getObjectHelper()->tryCall($payeeTradeParty, "setSpecifiedLegalOrganization", $legalOrg); return $this; } /** * Set contact of the payee trade party * - * @param string|null $contactpersonname __BT-X-244, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-245, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-246, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-247, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-248, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-244, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-245, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-246, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-247, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-248, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function setDocumentPayeeContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function setDocumentPayeeContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $payeeTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeSettlement, "getPayeeTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCallIfMethodExists($payeeTradeParty, "addToDefinedTradeContact", "setDefinedTradeContact", [$contact], $contact); return $this; } @@ -1640,17 +1640,17 @@ public function setDocumentPayeeContact(?string $contactpersonname, ?string $con /** * Add an (additional) contact to the payee trade party * - * @param string|null $contactpersonname __BT-X-244, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-245, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-246, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-247, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-248, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-244, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-245, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-246, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-247, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-248, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentBuilder */ - public function addDocumentPayeeContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function addDocumentPayeeContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $payeeTradeParty = $this->getObjectHelper()->tryCallAndReturn($this->headerTradeSettlement, "getPayeeTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCall($payeeTradeParty, "addToDefinedTradeContact", $contact); return $this; } @@ -1671,13 +1671,13 @@ public function setDocumentDeliveryTerms(?string $code): ZugferdDocumentBuilder /** * Set details of the associated order confirmation * - * @param string $issuerassignedid __BT-14, From EN 16931__ An identifier issued by the seller for a referenced sales order (Order confirmation number) - * @param DateTime|null $issueddate __BT-X-146, From EXTENDED__ Order confirmation date + * @param string $issuerAssignedId __BT-14, From EN 16931__ An identifier issued by the seller for a referenced sales order (Order confirmation number) + * @param DateTime|null $issueDate __BT-X-146, From EXTENDED__ Order confirmation date * @return ZugferdDocumentBuilder */ - public function setDocumentSellerOrderReferencedDocument(string $issuerassignedid, ?DateTime $issueddate = null): ZugferdDocumentBuilder + public function setDocumentSellerOrderReferencedDocument(string $issuerAssignedId, ?DateTime $issueDate = null): ZugferdDocumentBuilder { - $sellerorderrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, null, null, null, null, null, $issueddate, null); + $sellerorderrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, null, null, null, null, null, $issueDate, null); $this->getObjectHelper()->tryCall($this->headerTradeAgreement, "setSellerOrderReferencedDocument", $sellerorderrefdoc); return $this; } @@ -1685,13 +1685,13 @@ public function setDocumentSellerOrderReferencedDocument(string $issuerassignedi /** * Set details of the related buyer order * - * @param string $issuerassignedid __BT-13, From MINIMUM__ An identifier issued by the buyer for a referenced order (order number) - * @param DateTime|null $issueddate __BT-X-147, From EXTENDED__ Date of order + * @param string $issuerAssignedId __BT-13, From MINIMUM__ An identifier issued by the buyer for a referenced order (order number) + * @param DateTime|null $issueDate __BT-X-147, From EXTENDED__ Date of order * @return ZugferdDocumentBuilder */ - public function setDocumentBuyerOrderReferencedDocument(?string $issuerassignedid, ?DateTime $issueddate = null): ZugferdDocumentBuilder + public function setDocumentBuyerOrderReferencedDocument(?string $issuerAssignedId, ?DateTime $issueDate = null): ZugferdDocumentBuilder { - $buyerorderrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, null, null, null, null, null, $issueddate, null); + $buyerorderrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, null, null, null, null, null, $issueDate, null); $this->getObjectHelper()->tryCall($this->headerTradeAgreement, "setBuyerOrderReferencedDocument", $buyerorderrefdoc); return $this; } @@ -1699,13 +1699,13 @@ public function setDocumentBuyerOrderReferencedDocument(?string $issuerassignedi /** * Set details of the associated offer * - * @param string $issuerassignedid __BT-X-403, From EXTENDED__ Offer number - * @param DateTime|null $issueddate __BT-X-404, From EXTENDED__ Date of offer + * @param string $issuerAssignedId __BT-X-403, From EXTENDED__ Offer number + * @param DateTime|null $issueDate __BT-X-404, From EXTENDED__ Date of offer * @return ZugferdDocumentBuilder */ - public function setDocumentQuotationReferencedDocument(?string $issuerassignedid, ?DateTime $issueddate = null): ZugferdDocumentBuilder + public function setDocumentQuotationReferencedDocument(?string $issuerAssignedId, ?DateTime $issueDate = null): ZugferdDocumentBuilder { - $quotationrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, null, null, null, null, null, $issueddate, null); + $quotationrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, null, null, null, null, null, $issueDate, null); $this->getObjectHelper()->tryCall($this->headerTradeAgreement, "setQuotationReferencedDocument", $quotationrefdoc); return $this; } @@ -1713,13 +1713,13 @@ public function setDocumentQuotationReferencedDocument(?string $issuerassignedid /** * Set details of the associated contract * - * @param string $issuerassignedid __BT-12, From BASIC WL__ The contract reference should be assigned once in the context of the specific trade relationship and for a defined period of time (contract number) - * @param DateTime|null $issueddate __BT-X-26, From EXTENDED__ Contract date + * @param string $issuerAssignedId __BT-12, From BASIC WL__ The contract reference should be assigned once in the context of the specific trade relationship and for a defined period of time (contract number) + * @param DateTime|null $issueDate __BT-X-26, From EXTENDED__ Contract date * @return ZugferdDocumentBuilder */ - public function setDocumentContractReferencedDocument(?string $issuerassignedid, ?DateTime $issueddate = null): ZugferdDocumentBuilder + public function setDocumentContractReferencedDocument(?string $issuerAssignedId, ?DateTime $issueDate = null): ZugferdDocumentBuilder { - $contractrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, null, null, null, null, null, $issueddate, null); + $contractrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, null, null, null, null, null, $issueDate, null); $this->getObjectHelper()->tryCall($this->headerTradeAgreement, "setContractReferencedDocument", $contractrefdoc); return $this; } @@ -1734,22 +1734,22 @@ public function setDocumentContractReferencedDocument(?string $issuerassignedid, * to large attachments and / or sensitive information, e.g. for personal services, which must be separated * from the bill * - * @param string $issuerassignedid __BT-122, From EN 16931__ 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. - * @param string $typecode __BT-122-0, From EN 16931__ Type of referenced document (See codelist UNTDID 1001) + * @param string $issuerAssignedId __BT-122, From EN 16931__ 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. + * @param string $typeCode __BT-122-0, From EN 16931__ 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. - * @param string|null $uriid __BT-124, From EN 16931__ A means of locating the resource, including the primary access method intended for it, e.g. http:// or ftp://. The storage location of the external document must be used if the buyer requires further information as + * @param string|null $uriId __BT-124, From EN 16931__ A means of locating the resource, including the primary access method intended for it, e.g. http:// or ftp://. The storage location of the external document must be used if the buyer requires further information as * supporting documents for the invoiced amounts. External documents are not part of the invoice. Invoice processing should be possible without access to external documents. Access to external documents can entail certain risks. * @param string|array|null $name __BT-123, From EN 16931__ A description of the document, e.g. Hourly billing, usage or consumption report, etc. - * @param string|null $reftypecode __BT-, From __ 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. - * @param DateTime|null $issueddate __BT-X-149, From EXTENDED__ Document date - * @param string|null $binarydatafilename __BT-125, From EN 16931__ Contains a file name of an attachment document embedded as a binary object + * @param string|null $refTypeCode __BT-, From __ 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. + * @param DateTime|null $issueDate __BT-X-149, From EXTENDED__ Document date + * @param string|null $binaryDataFilename __BT-125, From EN 16931__ Contains a file name of an attachment document embedded as a binary object * @return ZugferdDocumentBuilder */ - public function addDocumentAdditionalReferencedDocument(string $issuerassignedid, string $typecode, ?string $uriid = null, $name = null, ?string $reftypecode = null, ?DateTime $issueddate = null, ?string $binarydatafilename = null): ZugferdDocumentBuilder + public function addDocumentAdditionalReferencedDocument(string $issuerAssignedId, string $typeCode, ?string $uriId = null, $name = null, ?string $refTypeCode = null, ?DateTime $issueDate = null, ?string $binaryDataFilename = null): ZugferdDocumentBuilder { - $additionalrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, $uriid, null, $typecode, $name, $reftypecode, $issueddate, $binarydatafilename); + $additionalrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, $uriId, null, $typeCode, $name, $refTypeCode, $issueDate, $binaryDataFilename); $this->getObjectHelper()->tryCall($this->headerTradeAgreement, "addToAdditionalReferencedDocument", $additionalrefdoc); return $this; } @@ -1762,14 +1762,14 @@ public function addDocumentAdditionalReferencedDocument(string $issuerassignedid * - reference is made from a final invoice to previous partial invoices * - reference is made from a final invoice to previous invoices for advance payments. * * - * @param string $issuerassignedid __BT-25, From BASIC WL__ The identification of an invoice previously sent by the seller - * @param string|null $typecode __BT-X-555, From EXTENDED__ Type of previous invoice (code) - * @param DateTime|null $issueddate __BT-26, From BASIC WL__ Date of the previous invoice + * @param string $issuerAssignedId __BT-25, From BASIC WL__ The identification of an invoice previously sent by the seller + * @param string|null $typeCode __BT-X-555, From EXTENDED__ Type of previous invoice (code) + * @param DateTime|null $issueDate __BT-26, From BASIC WL__ Date of the previous invoice * @return ZugferdDocumentBuilder */ - public function setDocumentInvoiceReferencedDocument(string $issuerassignedid, ?string $typecode = null, ?DateTime $issueddate = null): ZugferdDocumentBuilder + public function setDocumentInvoiceReferencedDocument(string $issuerAssignedId, ?string $typeCode = null, ?DateTime $issueDate = null): ZugferdDocumentBuilder { - $invoicerefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, null, null, $typecode, null, null, $issueddate, null); + $invoicerefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, null, null, $typeCode, null, null, $issueDate, null); $this->getObjectHelper()->tryCallIfMethodExists($this->headerTradeSettlement, "addToInvoiceReferencedDocument", "setInvoiceReferencedDocument", [$invoicerefdoc], $invoicerefdoc); return $this; } @@ -1782,14 +1782,14 @@ public function setDocumentInvoiceReferencedDocument(string $issuerassignedid, ? * - reference is made from a final invoice to previous partial invoices * - reference is made from a final invoice to previous invoices for advance payments. * * - * @param string $issuerassignedid __BT-25, From BASIC WL__ The identification of an invoice previously sent by the seller - * @param string|null $typecode __BT-X-555, From EXTENDED__ Type of previous invoice (code) - * @param DateTime|null $issueddate __BT-26, From BASIC WL__ Date of the previous invoice + * @param string $issuerAssignedId __BT-25, From BASIC WL__ The identification of an invoice previously sent by the seller + * @param string|null $typeCode __BT-X-555, From EXTENDED__ Type of previous invoice (code) + * @param DateTime|null $issueDate __BT-26, From BASIC WL__ Date of the previous invoice * @return ZugferdDocumentBuilder */ - public function addDocumentInvoiceReferencedDocument(string $issuerassignedid, ?string $typecode = null, ?DateTime $issueddate = null): ZugferdDocumentBuilder + public function addDocumentInvoiceReferencedDocument(string $issuerAssignedId, ?string $typeCode = null, ?DateTime $issueDate = null): ZugferdDocumentBuilder { - $invoicerefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, null, null, $typecode, null, null, $issueddate, null); + $invoicerefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, null, null, $typeCode, null, null, $issueDate, null); $this->getObjectHelper()->tryCall($this->headerTradeSettlement, "addToInvoiceReferencedDocument", $invoicerefdoc); return $this; } @@ -1811,13 +1811,13 @@ public function setDocumentProcuringProject(string $id, string $name = "Project /** * Details of the associated end customer order * - * @param string $issuerassignedid __BT-X-150, From EXTENDED__ Order number of the end customer - * @param DateTime|null $issueddate __BT-X-151, From EXTENDED__ Date of the order issued by the end customer + * @param string $issuerAssignedId __BT-X-150, From EXTENDED__ Order number of the end customer + * @param DateTime|null $issueDate __BT-X-151, From EXTENDED__ Date of the order issued by the end customer * @return ZugferdDocumentBuilder */ - public function addDocumentUltimateCustomerOrderReferencedDocument(string $issuerassignedid, ?DateTime $issueddate = null): ZugferdDocumentBuilder + public function addDocumentUltimateCustomerOrderReferencedDocument(string $issuerAssignedId, ?DateTime $issueDate = null): ZugferdDocumentBuilder { - $additionalrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, null, null, null, null, null, $issueddate, null); + $additionalrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, null, null, null, null, null, $issueDate, null); $this->getObjectHelper()->tryCall($this->headerTradeAgreement, "addToUltimateCustomerOrderReferencedDocument", $additionalrefdoc); return $this; } @@ -1838,13 +1838,13 @@ public function setDocumentSupplyChainEvent(?DateTime $date): ZugferdDocumentBui /** * Set Detailed information on the actual delivery * - * @param string $issuerassignedid __BT-16, From BASIC WL__ Shipping notification reference - * @param DateTime|null $issueddate __BT-X-200, From EXTENDED__ Shipping notification date + * @param string $issuerAssignedId __BT-16, From BASIC WL__ Shipping notification reference + * @param DateTime|null $issueDate __BT-X-200, From EXTENDED__ Shipping notification date * @return ZugferdDocumentBuilder */ - public function setDocumentDespatchAdviceReferencedDocument(?string $issuerassignedid, ?DateTime $issueddate = null): ZugferdDocumentBuilder + public function setDocumentDespatchAdviceReferencedDocument(?string $issuerAssignedId, ?DateTime $issueDate = null): ZugferdDocumentBuilder { - $despatchddvicerefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, null, null, null, null, null, $issueddate, null); + $despatchddvicerefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, null, null, null, null, null, $issueDate, null); $this->getObjectHelper()->tryCall($this->headerTradeDelivery, "setDespatchAdviceReferencedDocument", $despatchddvicerefdoc); return $this; } @@ -1852,13 +1852,13 @@ public function setDocumentDespatchAdviceReferencedDocument(?string $issuerassig /** * Set detailed information on the associated goods receipt notification * - * @param string $issuerassignedid __BT-15, From EN 16931__ An identifier for a referenced goods receipt notification (Goods receipt number) - * @param DateTime|null $issueddate __BT-X-201, From EXTENDED__ Goods receipt date + * @param string $issuerAssignedId __BT-15, From EN 16931__ An identifier for a referenced goods receipt notification (Goods receipt number) + * @param DateTime|null $issueDate __BT-X-201, From EXTENDED__ Goods receipt date * @return ZugferdDocumentBuilder */ - public function setDocumentReceivingAdviceReferencedDocument(string $issuerassignedid, ?DateTime $issueddate = null): ZugferdDocumentBuilder + public function setDocumentReceivingAdviceReferencedDocument(string $issuerAssignedId, ?DateTime $issueDate = null): ZugferdDocumentBuilder { - $receivingadvicerefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, null, null, null, null, null, $issueddate, null); + $receivingadvicerefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, null, null, null, null, null, $issueDate, null); $this->getObjectHelper()->tryCall($this->headerTradeDelivery, "setReceivingAdviceReferencedDocument", $receivingadvicerefdoc); return $this; } @@ -1866,13 +1866,13 @@ public function setDocumentReceivingAdviceReferencedDocument(string $issuerassig /** * Set detailed information on the associated delivery bill * - * @param string $issuerassignedid __BT-X-202, From EXTENDED__ Delivery slip number - * @param DateTime|null $issueddate __BT-X-203, From EXTENDED__ Delivery slip date + * @param string $issuerAssignedId __BT-X-202, From EXTENDED__ Delivery slip number + * @param DateTime|null $issueDate __BT-X-203, From EXTENDED__ Delivery slip date * @return ZugferdDocumentBuilder */ - public function setDocumentDeliveryNoteReferencedDocument(string $issuerassignedid, ?DateTime $issueddate = null): ZugferdDocumentBuilder + public function setDocumentDeliveryNoteReferencedDocument(string $issuerAssignedId, ?DateTime $issueDate = null): ZugferdDocumentBuilder { - $deliverynoterefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, null, null, null, null, null, $issueddate, null); + $deliverynoterefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, null, null, null, null, null, $issueDate, null); $this->getObjectHelper()->tryCall($this->headerTradeDelivery, "setDeliveryNoteReferencedDocument", $deliverynoterefdoc); return $this; } @@ -1901,7 +1901,7 @@ public function setDocumentGeneralPaymentInformation(?string $creditorReferenceI * element must therefore not differ in the repetitions. The elements ApplicableTradeSettlementFinancialCard * and PayerPartyDebtorFinancialAccount must not be specified for bank transfers. * - * @param string $typecode __BT-81, From BASIC WL__ The expected or used means of payment, expressed as a code. The entries from the UNTDID 4461 code list must be used. A distinction should be made between SEPA and non-SEPA payments as well as between credit payments, direct debits, card payments and other means of payment In particular, the following codes can be used: + * @param string $typeCode __BT-81, From BASIC WL__ The expected or used means of payment, expressed as a code. The entries from the UNTDID 4461 code list must be used. A distinction should be made between SEPA and non-SEPA payments as well as between credit payments, direct debits, card payments and other means of payment In particular, the following codes can be used: * - 10: cash * - 20: check * - 30: transfer @@ -1923,11 +1923,11 @@ public function setDocumentGeneralPaymentInformation(?string $creditorReferenceI * @param string|null $payeeBic __BT-86, From EN 16931__ An identifier for the payment service provider with which the payment account is held * @return ZugferdDocumentBuilder */ - public function addDocumentPaymentMean(string $typecode, ?string $information = null, ?string $cardType = null, ?string $cardId = null, ?string $cardHolderName = null, ?string $buyerIban = null, ?string $payeeIban = null, ?string $payeeAccountName = null, ?string $payeePropId = null, ?string $payeeBic = null): ZugferdDocumentBuilder + public function addDocumentPaymentMean(string $typeCode, ?string $information = null, ?string $cardType = null, ?string $cardId = null, ?string $cardHolderName = null, ?string $buyerIban = null, ?string $payeeIban = null, ?string $payeeAccountName = null, ?string $payeePropId = null, ?string $payeeBic = null): ZugferdDocumentBuilder { $cardId = substr($cardId ?? "", -4); - $paymentMeans = $this->getObjectHelper()->getTradeSettlementPaymentMeansType($typecode, $information); + $paymentMeans = $this->getObjectHelper()->getTradeSettlementPaymentMeansType($typeCode, $information); $financialCard = $this->getObjectHelper()->getTradeSettlementFinancialCardType($cardType, $cardId, $cardHolderName); $buyerfinancialaccount = $this->getObjectHelper()->getDebtorFinancialAccountType($buyerIban); $payeefinancialaccount = $this->getObjectHelper()->getCreditorFinancialAccountType($payeeIban, $payeeAccountName, $payeePropId); @@ -2098,14 +2098,14 @@ public function addDocumentTaxSimple(string $categoryCode, string $typeCode, flo /** * Get detailed information on the billing period * - * @param DateTime|null $startdate __BT-73, From BASIC WL__ Start of the billing period + * @param DateTime|null $startDate __BT-73, From BASIC WL__ Start of the billing period * @param DateTime|null $endDate __BT-74, From BASIC WL__ End of the billing period * @param string|null $description __BT-X-264, From EXTENDED__ Further information of the billing period (Obsolete) * @return ZugferdDocumentBuilder */ - public function setDocumentBillingPeriod(?DateTime $startdate, ?DateTime $endDate, ?string $description): ZugferdDocumentBuilder + public function setDocumentBillingPeriod(?DateTime $startDate, ?DateTime $endDate, ?string $description): ZugferdDocumentBuilder { - $period = $this->getObjectHelper()->getSpecifiedPeriodType($startdate, $endDate, null, $description); + $period = $this->getObjectHelper()->getSpecifiedPeriodType($startDate, $endDate, null, $description); $this->getObjectHelper()->tryCall($this->headerTradeSettlement, "setBillingSpecifiedPeriod", $period); return $this; } @@ -2311,12 +2311,12 @@ public function addDocumentReceivableSpecifiedTradeAccountingAccount(?string $id * standard, two syntaxes are permitted for displaying electronic invoices: Universal Business Language (UBL) and UN/CEFACT * Cross Industry Invoice (CII). * - * @param string $buyerreference __BT-10, From MINIMUM__ An identifier assigned by the buyer and used for internal routing + * @param string $buyerReference __BT-10, From MINIMUM__ An identifier assigned by the buyer and used for internal routing * @return ZugferdDocumentBuilder */ - public function setDocumentBuyerReference(?string $buyerreference): ZugferdDocumentBuilder + public function setDocumentBuyerReference(?string $buyerReference): ZugferdDocumentBuilder { - $reference = $this->getObjectHelper()->getTextType($buyerreference); + $reference = $this->getObjectHelper()->getTextType($buyerReference); $this->getObjectHelper()->tryCall($this->headerTradeAgreement, "setBuyerReference", $reference); return $this; } @@ -2455,15 +2455,15 @@ public function setDocumentPositionProductDetails(string $name, ?string $descrip * * @param string $description __BT-160, From EN 16931__ The name of the attribute or property of the product such as "Colour" * @param string $value __BT-161, From EN 16931__ The value of the attribute or property of the product such as "Red" - * @param string|null $typecode __BT-X-11, From EXTENDED__ Type of product characteristic (code). The codes must be taken from the UNTDID 6313 codelist. + * @param string|null $typeCode __BT-X-11, From EXTENDED__ Type of product characteristic (code). The codes must be taken from the UNTDID 6313 codelist. * @param float|null $valueMeasure __BT-X-12, From EXTENDED__ Value of the product property (numerical measured variable) * @param string|null $valueMeasureUnitCode __BT-X-12-0, From EXTENDED__ Unit of measurement code * @return ZugferdDocumentBuilder */ - public function addDocumentPositionProductCharacteristic(string $description, string $value, ?string $typecode = null, ?float $valueMeasure = null, ?string $valueMeasureUnitCode = null): ZugferdDocumentBuilder + public function addDocumentPositionProductCharacteristic(string $description, string $value, ?string $typeCode = null, ?float $valueMeasure = null, ?string $valueMeasureUnitCode = null): ZugferdDocumentBuilder { $product = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedTradeProduct"); - $productCharacteristic = $this->getObjectHelper()->getProductCharacteristicType($typecode, $description, $valueMeasure, $valueMeasureUnitCode, $value); + $productCharacteristic = $this->getObjectHelper()->getProductCharacteristicType($typeCode, $description, $valueMeasure, $valueMeasureUnitCode, $value); $this->getObjectHelper()->tryCall($product, "addToApplicableProductCharacteristic", $productCharacteristic); return $this; } @@ -2473,14 +2473,14 @@ public function addDocumentPositionProductCharacteristic(string $description, st * * @param string $classCode __BT-158, From EN 16931__ Item classification identifier. Classification codes are used for grouping similar items that can serve different purposes, such as public procurement (according to the Common Procurement Vocabulary ([CPV]), e-commerce (UNSPSC), etc. * @param string|null $className __BT-X-138, From EXTENDED__ Name with which an article can be classified according to type or quality. - * @param string|null $listID __BT-158-1, From EN 16931__ The identifier for the identification scheme of the item classification identifier. The identification scheme must be selected from the entries in UNTDID 7143 [6]. - * @param string|null $listVersionID __BT-158-2, From EN 16931__ The version of the identification scheme + * @param string|null $listId __BT-158-1, From EN 16931__ The identifier for the identification scheme of the item classification identifier. The identification scheme must be selected from the entries in UNTDID 7143 [6]. + * @param string|null $listVersionId __BT-158-2, From EN 16931__ The version of the identification scheme * @return ZugferdDocumentBuilder */ - public function addDocumentPositionProductClassification(string $classCode, ?string $className = null, ?string $listID = null, ?string $listVersionID = null): ZugferdDocumentBuilder + public function addDocumentPositionProductClassification(string $classCode, ?string $className = null, ?string $listId = null, ?string $listVersionId = null): ZugferdDocumentBuilder { $product = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedTradeProduct"); - $productClassification = $this->getObjectHelper()->getProductClassificationType($classCode, $className, $listID, $listVersionID); + $productClassification = $this->getObjectHelper()->getProductClassificationType($classCode, $className, $listId, $listVersionId); $this->getObjectHelper()->tryCall($product, "addToDesignatedProductClassification", $productClassification); return $this; } @@ -2524,14 +2524,14 @@ public function addDocumentPositionReferencedProduct(string $name, ?string $desc /** * Set details of a sales order reference * - * @param string $issuerassignedid __BT-X-537, From EXTENDED__ Document number of a sales order reference - * @param string $lineid __BT-X-538, From EXTENDED__ An identifier for a position within a sales order. - * @param DateTime|null $issueddate __BT-X-539, From EXTENDED__ Date of sales order + * @param string $issuerAssignedId __BT-X-537, From EXTENDED__ Document number of a sales order reference + * @param string $lineId __BT-X-538, From EXTENDED__ An identifier for a position within a sales order. + * @param DateTime|null $issueDate __BT-X-539, From EXTENDED__ Date of sales order * @return ZugferdDocumentBuilder */ - public function setDocumentPositionSellerOrderReferencedDocument(string $issuerassignedid, string $lineid, ?DateTime $issueddate = null): ZugferdDocumentBuilder + public function setDocumentPositionSellerOrderReferencedDocument(string $issuerAssignedId, string $lineId, ?DateTime $issueDate = null): ZugferdDocumentBuilder { - $buyerorderrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, null, $lineid, null, null, null, $issueddate, null); + $buyerorderrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, null, $lineId, null, null, null, $issueDate, null); $positionagreement = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeAgreement"); $this->getObjectHelper()->tryCall($positionagreement, "setSellerOrderReferencedDocument", $buyerorderrefdoc); return $this; @@ -2540,14 +2540,14 @@ public function setDocumentPositionSellerOrderReferencedDocument(string $issuera /** * Set details of the related buyer order position * - * @param string $issuerassignedid __BT-X-21, From EXTENDED__ An identifier issued by the buyer for a referenced order (order number) - * @param string $lineid __BT-132, From EN 16931__ An identifier for a position within an order placed by the buyer. Note: Reference is made to the order reference at the document level. - * @param DateTime|null $issueddate __BT-X-22, From EXTENDED__ Date of order + * @param string $issuerAssignedId __BT-X-21, From EXTENDED__ An identifier issued by the buyer for a referenced order (order number) + * @param string $lineId __BT-132, From EN 16931__ An identifier for a position within an order placed by the buyer. Note: Reference is made to the order reference at the document level. + * @param DateTime|null $issueDate __BT-X-22, From EXTENDED__ Date of order * @return ZugferdDocumentBuilder */ - public function setDocumentPositionBuyerOrderReferencedDocument(string $issuerassignedid, string $lineid, ?DateTime $issueddate = null): ZugferdDocumentBuilder + public function setDocumentPositionBuyerOrderReferencedDocument(string $issuerAssignedId, string $lineId, ?DateTime $issueDate = null): ZugferdDocumentBuilder { - $buyerorderrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, null, $lineid, null, null, null, $issueddate, null); + $buyerorderrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, null, $lineId, null, null, null, $issueDate, null); $positionagreement = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeAgreement"); $this->getObjectHelper()->tryCall($positionagreement, "setBuyerOrderReferencedDocument", $buyerorderrefdoc); return $this; @@ -2556,14 +2556,14 @@ public function setDocumentPositionBuyerOrderReferencedDocument(string $issueras /** * Set details of the associated offer position * - * @param string $issuerassignedid __BT-X-310, From EXTENDED__ Offer number - * @param string $lineid __BT-X-311, From EXTENDED__ Position identifier within the offer - * @param DateTime|null $issueddate __BT-X-312, From EXTENDED__ Date of offder + * @param string $issuerAssignedId __BT-X-310, From EXTENDED__ Offer number + * @param string $lineId __BT-X-311, From EXTENDED__ Position identifier within the offer + * @param DateTime|null $issueDate __BT-X-312, From EXTENDED__ Date of offder * @return ZugferdDocumentBuilder */ - public function setDocumentPositionQuotationReferencedDocument(string $issuerassignedid, string $lineid, ?DateTime $issueddate = null): ZugferdDocumentBuilder + public function setDocumentPositionQuotationReferencedDocument(string $issuerAssignedId, string $lineId, ?DateTime $issueDate = null): ZugferdDocumentBuilder { - $quotationrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, null, $lineid, null, null, null, $issueddate, null); + $quotationrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, null, $lineId, null, null, null, $issueDate, null); $positionagreement = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeAgreement"); $this->getObjectHelper()->tryCall($positionagreement, "setQuotationReferencedDocument", $quotationrefdoc); return $this; @@ -2572,14 +2572,14 @@ public function setDocumentPositionQuotationReferencedDocument(string $issuerass /** * Set details of the related contract position * - * @param string $issuerassignedid __BT-X-24, From EXTENDED__ The contract reference should be assigned once in the context of the specific trade relationship and for a defined period of time (contract number) - * @param string $lineid __BT-X-25, From EXTENDED__ Identifier of the according contract position - * @param DateTime|null $issueddate __BT-X-26, From EXTENDED__ Contract date + * @param string $issuerAssignedId __BT-X-24, From EXTENDED__ The contract reference should be assigned once in the context of the specific trade relationship and for a defined period of time (contract number) + * @param string $lineId __BT-X-25, From EXTENDED__ Identifier of the according contract position + * @param DateTime|null $issueDate __BT-X-26, From EXTENDED__ Contract date * @return ZugferdDocumentBuilder */ - public function setDocumentPositionContractReferencedDocument(string $issuerassignedid, string $lineid, ?DateTime $issueddate = null): ZugferdDocumentBuilder + public function setDocumentPositionContractReferencedDocument(string $issuerAssignedId, string $lineId, ?DateTime $issueDate = null): ZugferdDocumentBuilder { - $contractrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, null, $lineid, null, null, null, $issueddate, null); + $contractrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, null, $lineId, null, null, null, $issueDate, null); $positionagreement = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeAgreement"); $this->getObjectHelper()->tryCall($positionagreement, "setContractReferencedDocument", $contractrefdoc); return $this; @@ -2597,19 +2597,19 @@ public function setDocumentPositionContractReferencedDocument(string $issuerassi * ZugferdDocumentReader::nextDocumentAdditionalReferencedDocument to seek between multiple additional referenced * documents * - * @param string $issuerassignedid __BT-X-27, From EXTENDED__ 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. - * @param string $typecode __BT-X-30, From EXTENDED__ Type of referenced document (See codelist UNTDID 1001) - * @param string|null $uriid __BT-X-28, From EXTENDED__ 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. - * @param string|null $lineid __BT-X-29, From EXTENDED__ The referenced position identifier in the additional document + * @param string $issuerAssignedId __BT-X-27, From EXTENDED__ 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. + * @param string $typeCode __BT-X-30, From EXTENDED__ Type of referenced document (See codelist UNTDID 1001) + * @param string|null $uriId __BT-X-28, From EXTENDED__ 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. + * @param string|null $lineId __BT-X-29, From EXTENDED__ The referenced position identifier in the additional document * @param string|null $name __BT-X-299, From EXTENDED__ A description of the document, e.g. Hourly billing, usage or consumption report, etc. - * @param string|null $reftypecode __BT-X-32, From EXTENDED__ 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. - * @param DateTime|null $issueddate __BT-X-33, From EXTENDED__ Document date - * @param string|null $binarydatafilename __BT-X-31, From EXTENDED__ Contains a file name of an attachment document embedded as a binary object + * @param string|null $refTypeCode __BT-X-32, From EXTENDED__ 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. + * @param DateTime|null $issueDate __BT-X-33, From EXTENDED__ Document date + * @param string|null $binaryDataFilename __BT-X-31, From EXTENDED__ Contains a file name of an attachment document embedded as a binary object * @return ZugferdDocumentBuilder */ - public function addDocumentPositionAdditionalReferencedDocument(string $issuerassignedid, string $typecode, ?string $uriid = null, ?string $lineid = null, ?string $name = null, ?string $reftypecode = null, ?DateTime $issueddate = null, ?string $binarydatafilename = null): ZugferdDocumentBuilder + public function addDocumentPositionAdditionalReferencedDocument(string $issuerAssignedId, string $typeCode, ?string $uriId = null, ?string $lineId = null, ?string $name = null, ?string $refTypeCode = null, ?DateTime $issueDate = null, ?string $binaryDataFilename = null): ZugferdDocumentBuilder { - $contractrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, $uriid, $lineid, $typecode, $name, $reftypecode, $issueddate, $binarydatafilename); + $contractrefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, $uriId, $lineId, $typeCode, $name, $refTypeCode, $issueDate, $binaryDataFilename); $positionagreement = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeAgreement"); $this->getObjectHelper()->tryCall($positionagreement, "addToAdditionalReferencedDocument", $contractrefdoc); return $this; @@ -2618,14 +2618,14 @@ public function addDocumentPositionAdditionalReferencedDocument(string $issueras /** * Add a referennce of a associated end customer order * - * @param string $issuerassignedid __BT-X-43, From EXTENDED__ Order number of the end customer - * @param string $lineid __BT-X-44, From EXTENDED__ Order item (end customer) - * @param DateTime|null $issueddate __BT-X-45, From EXTENDED__ Document date of end customer order + * @param string $issuerAssignedId __BT-X-43, From EXTENDED__ Order number of the end customer + * @param string $lineId __BT-X-44, From EXTENDED__ Order item (end customer) + * @param DateTime|null $issueDate __BT-X-45, From EXTENDED__ Document date of end customer order * @return ZugferdDocumentBuilder */ - public function addDocumentPositionUltimateCustomerOrderReferencedDocument(string $issuerassignedid, string $lineid, ?DateTime $issueddate = null): ZugferdDocumentBuilder + public function addDocumentPositionUltimateCustomerOrderReferencedDocument(string $issuerAssignedId, string $lineId, ?DateTime $issueDate = null): ZugferdDocumentBuilder { - $ultimaterefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, null, $lineid, null, null, null, $issueddate, null); + $ultimaterefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, null, $lineId, null, null, null, $issueDate, null); $positionagreement = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeAgreement"); $this->getObjectHelper()->tryCall($positionagreement, "addToUltimateCustomerOrderReferencedDocument", $ultimaterefdoc); return $this; @@ -2763,36 +2763,36 @@ public function addDocumentPositionShipToGlobalId(?string $globalID = null, ?str /** * Add Tax registration to Ship-To Trade party at position level * - * @param string|null $taxregtype __BT-X-66-0, From EXTENDED__ Type of tax number (FC = Tax number, VA = Sales tax identification number) - * @param string|null $taxregid __BT-X-66, From EXTENDED__ Tax number or sales tax identification number + * @param string|null $taxRegType __BT-X-66-0, From EXTENDED__ Type of tax number (FC = Tax number, VA = Sales tax identification number) + * @param string|null $taxRegId __BT-X-66, From EXTENDED__ Tax number or sales tax identification number * @return ZugferdDocumentBuilder */ - public function addDocumentPositionShipToTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder + public function addDocumentPositionShipToTaxRegistration(?string $taxRegType = null, ?string $taxRegId = null): ZugferdDocumentBuilder { $positiondelivery = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeDelivery"); $shipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($positiondelivery, "getShipToTradeParty"); - $taxreg = $this->getObjectHelper()->getTaxRegistrationType($taxregtype, $taxregid); - $this->getObjectHelper()->tryCall($shipToTradeParty, "addToSpecifiedTaxRegistration", $taxreg); + $taxReg = $this->getObjectHelper()->getTaxRegistrationType($taxRegType, $taxRegId); + $this->getObjectHelper()->tryCall($shipToTradeParty, "addToSpecifiedTaxRegistration", $taxReg); return $this; } /** * Sets the postal address of the Ship-To party at position level * - * @param string|null $lineone __BG-X-59, From EXTENDED__ The main line in the product end users address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BG-X-60, From EXTENDED__ Line 2 of the product end users address. This is an additional address line in an address that can be used to provide additional details in addition to the main line - * @param string|null $linethree __BG-X-61, From EXTENDED__ Line 3 of the product end users address. This is an additional address line in an address that can be used to provide additional details in addition to the main line - * @param string|null $postcode __BG-X-58, From EXTENDED__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BG-X-59, From EXTENDED__ The main line in the product end users address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BG-X-60, From EXTENDED__ Line 2 of the product end users address. This is an additional address line in an address that can be used to provide additional details in addition to the main line + * @param string|null $lineThree __BG-X-61, From EXTENDED__ Line 3 of the product end users address. This is an additional address line in an address that can be used to provide additional details in addition to the main line + * @param string|null $postCode __BG-X-58, From EXTENDED__ Identifier for a group of properties, such as a zip code * @param string|null $city __BG-X-62, From EXTENDED__ Usual name of the city or municipality in which the product end users address is located * @param string|null $country __BG-X-63, From EXTENDED__ 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” - * @param string|null $subdivision __BG-X-64, From EXTENDED__ The product end users state + * @param string|null $subDivision __BG-X-64, From EXTENDED__ The product end users state * @return ZugferdDocumentBuilder */ - public function setDocumentPositionShipToAddress(?string $lineone = null, ?string $linetwo = null, ?string $linethree = null, ?string $postcode = null, ?string $city = null, ?string $country = null, ?string $subdivision = null): ZugferdDocumentBuilder + public function setDocumentPositionShipToAddress(?string $lineOne = null, ?string $lineTwo = null, ?string $lineThree = null, ?string $postCode = null, ?string $city = null, ?string $country = null, ?string $subDivision = null): ZugferdDocumentBuilder { $positiondelivery = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeDelivery"); $shipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($positiondelivery, "getShipToTradeParty"); - $address = $this->getObjectHelper()->getTradeAddress($lineone, $linetwo, $linethree, $postcode, $city, $country, $subdivision); + $address = $this->getObjectHelper()->getTradeAddress($lineOne, $lineTwo, $lineThree, $postCode, $city, $country, $subDivision); $this->getObjectHelper()->tryCall($shipToTradeParty, "setPostalTradeAddress", $address); return $this; } @@ -2800,35 +2800,35 @@ public function setDocumentPositionShipToAddress(?string $lineone = null, ?strin /** * Set legal organisation of the Ship-To party on position level * - * @param string|null $legalorgid __BT-X-51, From EXTENDED__ 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 - * @param string|null $legalorgtype __BT-X-51-0, From EXTENDED__ Registration of the party. In particular, the following scheme codes are used: 0021 : SWIFT, 0088 : EAN, 0060 : DUNS, 0177 : ODETTE - * @param string|null $legalorgname __BT-X-52, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) + * @param string|null $legalOrgId __BT-X-51, From EXTENDED__ 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 + * @param string|null $legalOrgType __BT-X-51-0, From EXTENDED__ Registration of the party. In particular, the following scheme codes are used: 0021 : SWIFT, 0088 : EAN, 0060 : DUNS, 0177 : ODETTE + * @param string|null $legalOrgName __BT-X-52, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) * @return ZugferdDocumentBuilder */ - public function setDocumentPositionShipToLegalOrganisation(?string $legalorgid, ?string $legalorgtype, ?string $legalorgname): ZugferdDocumentBuilder + public function setDocumentPositionShipToLegalOrganisation(?string $legalOrgId, ?string $legalOrgType, ?string $legalOrgName): ZugferdDocumentBuilder { $positiondelivery = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeDelivery"); $shipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($positiondelivery, "getShipToTradeParty"); - $legalorg = $this->getObjectHelper()->getLegalOrganization($legalorgid, $legalorgtype, $legalorgname); - $this->getObjectHelper()->tryCall($shipToTradeParty, "setSpecifiedLegalOrganization", $legalorg); + $legalOrg = $this->getObjectHelper()->getLegalOrganization($legalOrgId, $legalOrgType, $legalOrgName); + $this->getObjectHelper()->tryCall($shipToTradeParty, "setSpecifiedLegalOrganization", $legalOrg); return $this; } /** * Set contact of the Ship-To party on position level * - * @param string|null $contactpersonname __BT-X-54, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-54-1, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-55, From EXTENDED__ Detailed information on the party's phone number - * @param string|null $contactfaxno __BT-X-56, From EXTENDED__ Detailed information on the party's fax number - * @param string|null $contactemailadd __BT-X-57, From EXTENDED__ Detailed information on the party's email address + * @param string|null $contactPersonName __BT-X-54, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-54-1, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-55, From EXTENDED__ Detailed information on the party's phone number + * @param string|null $contactFaxNo __BT-X-56, From EXTENDED__ Detailed information on the party's fax number + * @param string|null $contactEmailAddress __BT-X-57, From EXTENDED__ Detailed information on the party's email address * @return ZugferdDocumentBuilder */ - public function setDocumentPositionShipToContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function setDocumentPositionShipToContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $positiondelivery = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeDelivery"); $shipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($positiondelivery, "getShipToTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCallIfMethodExists($shipToTradeParty, "addToDefinedTradeContact", "setDefinedTradeContact", [$contact], $contact); return $this; } @@ -2836,18 +2836,18 @@ public function setDocumentPositionShipToContact(?string $contactpersonname, ?st /** * Add an additional contact to the Ship-To party on position level * - * @param string|null $contactpersonname __BT-X-54, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-54-1, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-55, From EXTENDED__ Detailed information on the party's phone number - * @param string|null $contactfaxno __BT-X-56, From EXTENDED__ Detailed information on the party's fax number - * @param string|null $contactemailadd __BT-X-57, From EXTENDED__ Detailed information on the party's email address + * @param string|null $contactPersonName __BT-X-54, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-54-1, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-55, From EXTENDED__ Detailed information on the party's phone number + * @param string|null $contactFaxNo __BT-X-56, From EXTENDED__ Detailed information on the party's fax number + * @param string|null $contactEmailAddress __BT-X-57, From EXTENDED__ Detailed information on the party's email address * @return ZugferdDocumentBuilder */ - public function addDocumentPositionShipToContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function addDocumentPositionShipToContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $positiondelivery = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeDelivery"); $shipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($positiondelivery, "getShipToTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCall($shipToTradeParty, "addToDefinedTradeContact", $contact); return $this; } @@ -2886,36 +2886,36 @@ public function addDocumentPositionUltimateShipToGlobalId(?string $globalID = nu /** * Add Tax registration to Ship-To Trade party on position level * - * @param string|null $taxregtype __BT-X-84-0, From EXTENDED__ Type of tax number (FC = Tax number, VA = Sales tax identification number) - * @param string|null $taxregid __BT-X-84, From EXTENDED__ Tax number or sales tax identification number + * @param string|null $taxRegType __BT-X-84-0, From EXTENDED__ Type of tax number (FC = Tax number, VA = Sales tax identification number) + * @param string|null $taxRegId __BT-X-84, From EXTENDED__ Tax number or sales tax identification number * @return ZugferdDocumentBuilder */ - public function addDocumentPositionUltimateShipToTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder + public function addDocumentPositionUltimateShipToTaxRegistration(?string $taxRegType = null, ?string $taxRegId = null): ZugferdDocumentBuilder { $positiondelivery = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeDelivery"); $ultimateShipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($positiondelivery, "getUltimateShipToTradeParty"); - $taxreg = $this->getObjectHelper()->getTaxRegistrationType($taxregtype, $taxregid); - $this->getObjectHelper()->tryCall($ultimateShipToTradeParty, "addToSpecifiedTaxRegistration", $taxreg); + $taxReg = $this->getObjectHelper()->getTaxRegistrationType($taxRegType, $taxRegId); + $this->getObjectHelper()->tryCall($ultimateShipToTradeParty, "addToSpecifiedTaxRegistration", $taxReg); return $this; } /** * Sets the postal address of the Ship-To party on position level * - * @param string|null $lineone __BT_X-77, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT_X-78, From EXTENDED__ 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 - * @param string|null $linethree __BT_X-79, From EXTENDED__ 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 - * @param string|null $postcode __BT_X-76, From EXTENDED__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT_X-77, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT_X-78, From EXTENDED__ 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 + * @param string|null $lineThree __BT_X-79, From EXTENDED__ 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 + * @param string|null $postCode __BT_X-76, From EXTENDED__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT_X-80, From EXTENDED__ Usual name of the city or municipality in which the party's address is located * @param string|null $country __BT_X-81, From EXTENDED__ 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” - * @param string|null $subdivision __BT_X-82, From EXTENDED__ The party's state + * @param string|null $subDivision __BT_X-82, From EXTENDED__ The party's state * @return ZugferdDocumentBuilder */ - public function setDocumentPositionUltimateShipToAddress(?string $lineone = null, ?string $linetwo = null, ?string $linethree = null, ?string $postcode = null, ?string $city = null, ?string $country = null, ?string $subdivision = null): ZugferdDocumentBuilder + public function setDocumentPositionUltimateShipToAddress(?string $lineOne = null, ?string $lineTwo = null, ?string $lineThree = null, ?string $postCode = null, ?string $city = null, ?string $country = null, ?string $subDivision = null): ZugferdDocumentBuilder { $positiondelivery = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeDelivery"); $ultimateShipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($positiondelivery, "getUltimateShipToTradeParty"); - $address = $this->getObjectHelper()->getTradeAddress($lineone, $linetwo, $linethree, $postcode, $city, $country, $subdivision); + $address = $this->getObjectHelper()->getTradeAddress($lineOne, $lineTwo, $lineThree, $postCode, $city, $country, $subDivision); $this->getObjectHelper()->tryCall($ultimateShipToTradeParty, "setPostalTradeAddress", $address); return $this; } @@ -2923,35 +2923,35 @@ public function setDocumentPositionUltimateShipToAddress(?string $lineone = null /** * Set legal organisation of the Ship-To party on position level * - * @param string|null $legalorgid __BT_X-70, From EXTENDED__ 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 - * @param string|null $legalorgtype __BT_X-70-0, From EXTENDED__ 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 - * @param string|null $legalorgname __BT_X-71, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) + * @param string|null $legalOrgId __BT_X-70, From EXTENDED__ 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 + * @param string|null $legalOrgType __BT_X-70-0, From EXTENDED__ 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 + * @param string|null $legalOrgName __BT_X-71, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) * @return ZugferdDocumentBuilder */ - public function setDocumentPositionUltimateShipToLegalOrganisation(?string $legalorgid, ?string $legalorgtype, ?string $legalorgname): ZugferdDocumentBuilder + public function setDocumentPositionUltimateShipToLegalOrganisation(?string $legalOrgId, ?string $legalOrgType, ?string $legalOrgName): ZugferdDocumentBuilder { $positiondelivery = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeDelivery"); $ultimateShipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($positiondelivery, "getUltimateShipToTradeParty"); - $legalorg = $this->getObjectHelper()->getLegalOrganization($legalorgid, $legalorgtype, $legalorgname); - $this->getObjectHelper()->tryCall($ultimateShipToTradeParty, "setSpecifiedLegalOrganization", $legalorg); + $legalOrg = $this->getObjectHelper()->getLegalOrganization($legalOrgId, $legalOrgType, $legalOrgName); + $this->getObjectHelper()->tryCall($ultimateShipToTradeParty, "setSpecifiedLegalOrganization", $legalOrg); return $this; } /** * Set contact of the Ship-To party on position level * - * @param string|null $contactpersonname __BT_X-72, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT_X-72-1, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT_X-73, From EXTENDED__ Detailed information on the party's phone number - * @param string|null $contactfaxno __BT_X-74, From EXTENDED__ Detailed information on the party's fax number - * @param string|null $contactemailadd __BT_X-75, From EXTENDED__ Detailed information on the party's email address + * @param string|null $contactPersonName __BT_X-72, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT_X-72-1, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT_X-73, From EXTENDED__ Detailed information on the party's phone number + * @param string|null $contactFaxNo __BT_X-74, From EXTENDED__ Detailed information on the party's fax number + * @param string|null $contactEmailAddress __BT_X-75, From EXTENDED__ Detailed information on the party's email address * @return ZugferdDocumentBuilder */ - public function setDocumentPositionUltimateShipToContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function setDocumentPositionUltimateShipToContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $positiondelivery = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeDelivery"); $ultimateShipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($positiondelivery, "getUltimateShipToTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCallIfMethodExists($ultimateShipToTradeParty, "addToDefinedTradeContact", "setDefinedTradeContact", [$contact], $contact); return $this; } @@ -2959,18 +2959,18 @@ public function setDocumentPositionUltimateShipToContact(?string $contactpersonn /** * Add an additional contact of the Ship-To party on position level * - * @param string|null $contactpersonname __BT_X-72, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT_X-72-1, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT_X-73, From EXTENDED__ Detailed information on the party's phone number - * @param string|null $contactfaxno __BT_X-74, From EXTENDED__ Detailed information on the party's fax number - * @param string|null $contactemailadd __BT_X-75, From EXTENDED__ Detailed information on the party's email address + * @param string|null $contactPersonName __BT_X-72, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT_X-72-1, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT_X-73, From EXTENDED__ Detailed information on the party's phone number + * @param string|null $contactFaxNo __BT_X-74, From EXTENDED__ Detailed information on the party's fax number + * @param string|null $contactEmailAddress __BT_X-75, From EXTENDED__ Detailed information on the party's email address * @return ZugferdDocumentBuilder */ - public function addDocumentPositionUltimateShipToContact(?string $contactpersonname, ?string $contactdepartmentname, ?string $contactphoneno, ?string $contactfaxno, ?string $contactemailadd): ZugferdDocumentBuilder + public function addDocumentPositionUltimateShipToContact(?string $contactPersonName, ?string $contactDepartmentName, ?string $contactPhoneNo, ?string $contactFaxNo, ?string $contactEmailAddress): ZugferdDocumentBuilder { $positiondelivery = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeDelivery"); $ultimateShipToTradeParty = $this->getObjectHelper()->tryCallAndReturn($positiondelivery, "getUltimateShipToTradeParty"); - $contact = $this->getObjectHelper()->getTradeContact($contactpersonname, $contactdepartmentname, $contactphoneno, $contactfaxno, $contactemailadd); + $contact = $this->getObjectHelper()->getTradeContact($contactPersonName, $contactDepartmentName, $contactPhoneNo, $contactFaxNo, $contactEmailAddress); $this->getObjectHelper()->tryCall($ultimateShipToTradeParty, "addToDefinedTradeContact", $contact); return $this; } @@ -2992,15 +2992,15 @@ public function setDocumentPositionSupplyChainEvent(?DateTime $date): ZugferdDoc /** * Detailed information on the associated shipping notification on item level * - * @param string $issuerassignedid __BT-X-86, From EXTENDED__ Shipping notification number - * @param string|null $lineid __BT-X-87, From EXTENDED__ Shipping notification position - * @param DateTime|null $issueddate __BT-X-88, From EXTENDED__ Date of Shipping notification number + * @param string $issuerAssignedId __BT-X-86, From EXTENDED__ Shipping notification number + * @param string|null $lineId __BT-X-87, From EXTENDED__ Shipping notification position + * @param DateTime|null $issueDate __BT-X-88, From EXTENDED__ Date of Shipping notification number * @return ZugferdDocumentBuilder */ - public function setDocumentPositionDespatchAdviceReferencedDocument(string $issuerassignedid, ?string $lineid = null, ?DateTime $issueddate = null): ZugferdDocumentBuilder + public function setDocumentPositionDespatchAdviceReferencedDocument(string $issuerAssignedId, ?string $lineId = null, ?DateTime $issueDate = null): ZugferdDocumentBuilder { $positiondelivery = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeDelivery"); - $despatchddvicerefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, null, $lineid, null, null, null, $issueddate, null); + $despatchddvicerefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, null, $lineId, null, null, null, $issueDate, null); $this->getObjectHelper()->tryCall($positiondelivery, "setDespatchAdviceReferencedDocument", $despatchddvicerefdoc); return $this; } @@ -3008,15 +3008,15 @@ public function setDocumentPositionDespatchAdviceReferencedDocument(string $issu /** * Detailed information on the associated goods receipt notification * - * @param string $issuerassignedid __BT-X-89, From EXTENDED__ Goods receipt number - * @param string|null $lineid __BT-X-90, From EXTENDED__ Goods receipt position - * @param DateTime|null $issueddate __BT-X-91, From EXTENDED__ Date of Goods receipt + * @param string $issuerAssignedId __BT-X-89, From EXTENDED__ Goods receipt number + * @param string|null $lineId __BT-X-90, From EXTENDED__ Goods receipt position + * @param DateTime|null $issueDate __BT-X-91, From EXTENDED__ Date of Goods receipt * @return ZugferdDocumentBuilder */ - public function setDocumentPositionReceivingAdviceReferencedDocument(string $issuerassignedid, ?string $lineid = null, ?DateTime $issueddate = null): ZugferdDocumentBuilder + public function setDocumentPositionReceivingAdviceReferencedDocument(string $issuerAssignedId, ?string $lineId = null, ?DateTime $issueDate = null): ZugferdDocumentBuilder { $positiondelivery = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeDelivery"); - $receivingadvicerefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, null, $lineid, null, null, null, $issueddate, null); + $receivingadvicerefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, null, $lineId, null, null, null, $issueDate, null); $this->getObjectHelper()->tryCall($positiondelivery, "setReceivingAdviceReferencedDocument", $receivingadvicerefdoc); return $this; } @@ -3024,15 +3024,15 @@ public function setDocumentPositionReceivingAdviceReferencedDocument(string $iss /** * Detailed information on the associated delivery bill on item level * - * @param string $issuerassignedid __BT-X-92, From EXTENDED__ Delivery note number - * @param string|null $lineid __BT-X-93, From EXTENDED__ Delivery note position - * @param DateTime|null $issueddate __BT-X-94, From EXTENDED__ Date of Delivery note + * @param string $issuerAssignedId __BT-X-92, From EXTENDED__ Delivery note number + * @param string|null $lineId __BT-X-93, From EXTENDED__ Delivery note position + * @param DateTime|null $issueDate __BT-X-94, From EXTENDED__ Date of Delivery note * @return ZugferdDocumentBuilder */ - public function setDocumentPositionDeliveryNoteReferencedDocument(string $issuerassignedid, ?string $lineid = null, ?DateTime $issueddate = null): ZugferdDocumentBuilder + public function setDocumentPositionDeliveryNoteReferencedDocument(string $issuerAssignedId, ?string $lineId = null, ?DateTime $issueDate = null): ZugferdDocumentBuilder { $positiondelivery = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeDelivery"); - $deliverynoterefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerassignedid, null, $lineid, null, null, null, $issueddate, null); + $deliverynoterefdoc = $this->getObjectHelper()->getReferencedDocumentType($issuerAssignedId, null, $lineId, null, null, null, $issueDate, null); $this->getObjectHelper()->tryCall($positiondelivery, "setDeliveryNoteReferencedDocument", $deliverynoterefdoc); return $this; } @@ -3106,6 +3106,25 @@ public function setDocumentPositionLineSummation(float $lineTotalAmount): Zugfer return $this; } + /** + * Set information on item totals (with support for EXTENDED profile) + * + * @param float $lineTotalAmount __BT-131, From BASIC__ The total amount of the invoice item + * @param float $chargeTotalAmount __BT-X-327, From EXTENDED__ Total amount of item surcharges + * @param float $allowanceTotalAmount __BT-X-328, From EXTENDED__ Total amount of item discounts + * @param float $taxTotalAmount __BT-X-329, From EXTENDED__ Total amount of item taxes + * @param float $grandTotalAmount __BT-X-330, From EXTENDED__ Total gross amount of the item + * @param float $totalAllowanceChargeAmount __BT-X-98, From EXTENDED__ Total amount of item surcharges and discounts + * @return ZugferdDocumentBuilder + */ + public function setDocumentPositionLineSummationExt(float $lineTotalAmount, ?float $chargeTotalAmount = null, ?float $allowanceTotalAmount = null, ?float $taxTotalAmount = null, ?float $grandTotalAmount = null, ?float $totalAllowanceChargeAmount = null): ZugferdDocumentBuilder + { + $positionsettlement = $this->getObjectHelper()->tryCallAndReturn($this->currentPosition, "getSpecifiedLineTradeSettlement"); + $summation = $this->getObjectHelper()->getTradeSettlementLineMonetarySummationType($lineTotalAmount, $chargeTotalAmount, $allowanceTotalAmount, $taxTotalAmount, $grandTotalAmount, $totalAllowanceChargeAmount); + $this->getObjectHelper()->tryCall($positionsettlement, "setSpecifiedTradeSettlementLineMonetarySummation", $summation); + return $this; + } + /** * Add an AccountingAccount on position level * diff --git a/src/ZugferdDocumentReader.php b/src/ZugferdDocumentReader.php index e13e452..fb67d08 100644 --- a/src/ZugferdDocumentReader.php +++ b/src/ZugferdDocumentReader.php @@ -232,7 +232,7 @@ class ZugferdDocumentReader extends ZugferdDocument /** * Guess the profile type of a xml file * - * @param string $xmlfilename + * @param string $xmlFilename * @return ZugferdDocumentReader * @throws ZugferdFileNotFoundException * @throws ZugferdFileNotReadableException @@ -241,16 +241,16 @@ class ZugferdDocumentReader extends ZugferdDocument * @throws ZugferdUnknownProfileParameterException * @throws RuntimeException */ - public static function readAndGuessFromFile(string $xmlfilename): ZugferdDocumentReader + public static function readAndGuessFromFile(string $xmlFilename): ZugferdDocumentReader { - if (!file_exists($xmlfilename)) { - throw new ZugferdFileNotFoundException($xmlfilename); + if (!file_exists($xmlFilename)) { + throw new ZugferdFileNotFoundException($xmlFilename); } - $xmlContent = file_get_contents($xmlfilename); + $xmlContent = file_get_contents($xmlFilename); if ($xmlContent === false) { - throw new ZugferdFileNotReadableException($xmlfilename); + throw new ZugferdFileNotReadableException($xmlFilename); } return self::readAndGuessFromContent($xmlContent); @@ -259,32 +259,32 @@ public static function readAndGuessFromFile(string $xmlfilename): ZugferdDocumen /** * Guess the profile type of the readden xml document * - * @param string $xmlcontent The XML content as a string to read the invoice data from + * @param string $xmlContent The XML content as a string to read the invoice data from * @return ZugferdDocumentReader * @throws ZugferdUnknownXmlContentException * @throws ZugferdUnknownProfileException * @throws ZugferdUnknownProfileParameterException * @throws RuntimeException */ - public static function readAndGuessFromContent(string $xmlcontent): ZugferdDocumentReader + public static function readAndGuessFromContent(string $xmlContent): ZugferdDocumentReader { - $profileId = ZugferdProfileResolver::resolveProfileId($xmlcontent); + $profileId = ZugferdProfileResolver::resolveProfileId($xmlContent); - return (new static($profileId))->readContent($xmlcontent); + return (new static($profileId))->readContent($xmlContent); } /** * Set the directory where the attached binary data from * additional referenced documents are temporary stored * - * @param string $binarydatadirectory + * @param string $binaryDataDirectory * @return ZugferdDocumentReader */ - public function setBinaryDataDirectory(string $binarydatadirectory): ZugferdDocumentReader + public function setBinaryDataDirectory(string $binaryDataDirectory): ZugferdDocumentReader { - if ($binarydatadirectory) { - if (is_dir($binarydatadirectory)) { - $this->binarydatadirectory = $binarydatadirectory; + if ($binaryDataDirectory) { + if (is_dir($binaryDataDirectory)) { + $this->binarydatadirectory = $binaryDataDirectory; } } @@ -294,14 +294,14 @@ public function setBinaryDataDirectory(string $binarydatadirectory): ZugferdDocu /** * Read content of a zuferd/xrechnung xml from a string * - * @param string $xmlcontent The XML content as a string to read the invoice data from + * @param string $xmlContent The XML content as a string to read the invoice data from * @return ZugferdDocumentReader * @throws ZugferdUnknownProfileParameterException * @throws RuntimeException */ - protected function readContent(string $xmlcontent): ZugferdDocumentReader + protected function readContent(string $xmlContent): ZugferdDocumentReader { - $this->deserialize($xmlcontent); + $this->deserialize($xmlContent); return $this; } @@ -309,29 +309,29 @@ protected function readContent(string $xmlcontent): ZugferdDocumentReader /** * Read general information about the document * - * @param string|null $documentno __BT-1, From MINIMUM__ The document no issued by the seller - * @param string|null $documenttypecode __BT-3, From MINIMUM__ The type of the document, See \horstoeko\codelists\ZugferdInvoiceType for details - * @param DateTime|null $documentdate __BT-2, From MINIMUM__ Date of invoice. The date when the document was issued by the seller + * @param string|null $documentNo __BT-1, From MINIMUM__ The document no issued by the seller + * @param string|null $documentTypeCode __BT-3, From MINIMUM__ The type of the document, See \horstoeko\codelists\ZugferdInvoiceType for details + * @param DateTime|null $documentDate __BT-2, From MINIMUM__ Date of invoice. The date when the document was issued by the seller * @param string|null $invoiceCurrency __BT-5, From MINIMUM__ Code for the invoice currency * @param string|null $taxCurrency __BT-6, From BASIC WL__ Code for the currency of the VAT entry - * @param string|null $documentname __BT-X-2, From EXTENDED__ Document Type. The documenttype (free text) - * @param string|null $documentlanguage __BT-X-4, From EXTENDED__ Language indicator. The language code in which the document was written + * @param string|null $documentName __BT-X-2, From EXTENDED__ Document Type. The documenttype (free text) + * @param string|null $documentLanguage __BT-X-4, From EXTENDED__ Language indicator. The language code in which the document was written * @param DateTime|null $effectiveSpecifiedPeriod __BT-X-6-000, From EXTENDED__ The contractual due date of the invoice * @return ZugferdDocumentReader * @throws ZugferdUnknownDateFormatException */ - public function getDocumentInformation(?string &$documentno, ?string &$documenttypecode, ?DateTime &$documentdate, ?string &$invoiceCurrency, ?string &$taxCurrency, ?string &$documentname, ?string &$documentlanguage, ?DateTime &$effectiveSpecifiedPeriod): ZugferdDocumentReader + public function getDocumentInformation(?string &$documentNo, ?string &$documentTypeCode, ?DateTime &$documentDate, ?string &$invoiceCurrency, ?string &$taxCurrency, ?string &$documentName, ?string &$documentLanguage, ?DateTime &$effectiveSpecifiedPeriod): ZugferdDocumentReader { - $documentno = $this->getInvoiceValueByPath("getExchangedDocument.getID.value", ""); - $documenttypecode = $this->getInvoiceValueByPath("getExchangedDocument.getTypeCode.value", ""); - $documentdate = $this->getObjectHelper()->toDateTime( + $documentNo = $this->getInvoiceValueByPath("getExchangedDocument.getID.value", ""); + $documentTypeCode = $this->getInvoiceValueByPath("getExchangedDocument.getTypeCode.value", ""); + $documentDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPath("getExchangedDocument.getIssueDateTime.getDateTimeString", ""), $this->getInvoiceValueByPath("getExchangedDocument.getIssueDateTime.getDateTimeString.getFormat", "") ); $invoiceCurrency = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceCurrencyCode.value", ""); $taxCurrency = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getTaxCurrencyCode.value", ""); - $documentname = $this->getInvoiceValueByPath("getExchangedDocument.getName.value", ""); - $documentlanguage = $this->getInvoiceValueByPath("getExchangedDocument.getLanguageID.value", ""); + $documentName = $this->getInvoiceValueByPath("getExchangedDocument.getName.value", ""); + $documentLanguage = $this->getInvoiceValueByPath("getExchangedDocument.getLanguageID.value", ""); $effectiveSpecifiedPeriod = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPath("getExchangedDocument.getEffectiveSpecifiedPeriod.getDateTimeString", ""), $this->getInvoiceValueByPath("getExchangedDocument.getEffectiveSpecifiedPeriod.getDateTimeString.getFormat", "") @@ -356,24 +356,24 @@ public function getDocumentGeneralPaymentInformation(?string &$creditorReference /** * Read copy indicator * - * @param boolean|null $copyindicator __BT-X-3-00, BT-X-3, From EXTENDED__ Returns true if this document is a copy from the original document + * @param boolean|null $copyIndicator __BT-X-3-00, BT-X-3, From EXTENDED__ Returns true if this document is a copy from the original document * @return ZugferdDocumentReader */ - public function getIsDocumentCopy(?bool &$copyindicator): ZugferdDocumentReader + public function getIsDocumentCopy(?bool &$copyIndicator): ZugferdDocumentReader { - $copyindicator = $this->getInvoiceValueByPath("getExchangedDocument.getCopyIndicator.getIndicator", false); + $copyIndicator = $this->getInvoiceValueByPath("getExchangedDocument.getCopyIndicator.getIndicator", false); return $this; } /** * Read a test document indicator * - * @param boolean|null $testdocumentindicator Returns true if this document is only for test purposes + * @param boolean|null $testDocumentIndicator Returns true if this document is only for test purposes * @return ZugferdDocumentReader */ - public function getIsTestDocument(?bool &$testdocumentindicator): ZugferdDocumentReader + public function getIsTestDocument(?bool &$testDocumentIndicator): ZugferdDocumentReader { - $testdocumentindicator = $this->getInvoiceValueByPath("getExchangedDocumentContext.getTestIndicator.getIndicator", false); + $testDocumentIndicator = $this->getInvoiceValueByPath("getExchangedDocumentContext.getTestIndicator.getIndicator", false); return $this; } @@ -447,12 +447,12 @@ public function getDocumentNotes(?array &$notes): ZugferdDocumentReader * standard, two syntaxes are permitted for displaying electronic invoices: Universal Business Language (UBL) and UN/CEFACT * Cross Industry Invoice (CII). * - * @param string|null $buyerreference __BT-10, From MINIMUM__ An identifier assigned by the buyer and used for internal routing + * @param string|null $buyerReference __BT-10, From MINIMUM__ An identifier assigned by the buyer and used for internal routing * @return ZugferdDocumentReader */ - public function getDocumentBuyerReference(?string &$buyerreference): ZugferdDocumentReader + public function getDocumentBuyerReference(?string &$buyerReference): ZugferdDocumentReader { - $buyerreference = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerReference.value", ""); + $buyerReference = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerReference.value", ""); return $this; } @@ -492,13 +492,13 @@ public function getDocumentSellerGlobalId(?array &$globalID): ZugferdDocumentRea /** * Get detailed information on the seller's tax information. * - * @param array|null $taxreg _BT-31/32, From MINIMUM/EN 16931__ Array of tax numbers indexed by the schemeid (VA, FC, etc.) + * @param array|null $taxReg _BT-31/32, From MINIMUM/EN 16931__ Array of tax numbers indexed by the schemeid (VA, FC, etc.) * @return ZugferdDocumentReader */ - public function getDocumentSellerTaxRegistration(?array &$taxreg): ZugferdDocumentReader + public function getDocumentSellerTaxRegistration(?array &$taxReg): ZugferdDocumentReader { - $taxreg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getSpecifiedTaxRegistration", []); - $taxreg = $this->convertToAssociativeArray($taxreg, "getID.getSchemeID", "getID.value"); + $taxReg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getSpecifiedTaxRegistration", []); + $taxReg = $this->convertToAssociativeArray($taxReg, "getID.getSchemeID", "getID.value"); return $this; } @@ -506,24 +506,24 @@ public function getDocumentSellerTaxRegistration(?array &$taxreg): ZugferdDocume /** * Get the address of seller trade party * - * @param string|null $lineone __BT-35, From BASIC WL__ The main line in the sellers address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT-36, From BASIC WL__ 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 used to provide additional details in addition to the main line - * @param string|null $linethree __BT-162, From BASIC WL__ 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 - * @param string|null $postcode __BT-38, From BASIC WL__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-35, From BASIC WL__ The main line in the sellers address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT-36, From BASIC WL__ 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 used to provide additional details in addition to the main line + * @param string|null $lineThree __BT-162, From BASIC WL__ 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 + * @param string|null $postCode __BT-38, From BASIC WL__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-37, From BASIC WL__ Usual name of the city or municipality in which the seller's address is located * @param string|null $country __BT-40, From MINIMUM__ 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” - * @param array|null $subdivision __BT-39, From BASIC WL__ The sellers state + * @param array|null $subDivision __BT-39, From BASIC WL__ The sellers state * @return ZugferdDocumentReader */ - public function getDocumentSellerAddress(?string &$lineone, ?string &$linetwo, ?string &$linethree, ?string &$postcode, ?string &$city, ?string &$country, ?array &$subdivision): ZugferdDocumentReader + public function getDocumentSellerAddress(?string &$lineOne, ?string &$lineTwo, ?string &$lineThree, ?string &$postCode, ?string &$city, ?string &$country, ?array &$subDivision): ZugferdDocumentReader { - $lineone = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getPostalTradeAddress.getLineOne.value", ""); - $linetwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getPostalTradeAddress.getLineTwo.value", ""); - $linethree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getPostalTradeAddress.getLineThree.value", ""); - $postcode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); + $lineOne = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getPostalTradeAddress.getLineOne.value", ""); + $lineTwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getPostalTradeAddress.getLineTwo.value", ""); + $lineThree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getPostalTradeAddress.getLineThree.value", ""); + $postCode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); $city = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getPostalTradeAddress.getCityName.value", ""); $country = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getPostalTradeAddress.getCountryID.value", ""); - $subdivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); + $subDivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); return $this; } @@ -531,23 +531,22 @@ public function getDocumentSellerAddress(?string &$lineone, ?string &$linetwo, ? /** * Get the legal organisation of seller trade party * - * @param string|null $legalorgid __BT-30, From MINIMUM__ 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 - * @param string|null $legalorgtype __BT-30-1, From MINIMUM__ The identifier for the identification scheme of the legal registration of the seller. If the identification scheme is used, it must be selected from ISO/IEC 6523 list - * @param string|null $legalorgname __BT-28, From BASIC WL__ 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. + * @param string|null $legalOrgId __BT-30, From MINIMUM__ 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 + * @param string|null $legalOrgType __BT-30-1, From MINIMUM__ The identifier for the identification scheme of the legal registration of the seller. If the identification scheme is used, it must be selected from ISO/IEC 6523 list + * @param string|null $legalOrgName __BT-28, From BASIC WL__ 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. * @return ZugferdDocumentReader */ - public function getDocumentSellerLegalOrganisation(?string &$legalorgid, ?string &$legalorgtype, ?string &$legalorgname): ZugferdDocumentReader + public function getDocumentSellerLegalOrganisation(?string &$legalOrgId, ?string &$legalOrgType, ?string &$legalOrgName): ZugferdDocumentReader { - $legalorgid = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getSpecifiedLegalOrganization.getID.value", ""); - $legalorgtype = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); - $legalorgname = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); + $legalOrgId = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getSpecifiedLegalOrganization.getID.value", ""); + $legalOrgType = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); + $legalOrgName = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); return $this; } /** - * Seek to the first seller contact of the document. - * Returns true if a first seller contact is available, otherwise false + * 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 ZugferdDocumentReader::getDocumentSellerContact * * @return boolean @@ -560,8 +559,7 @@ public function firstDocumentSellerContact(): bool } /** - * Seek to the next available seller contact of the document. - * Returns true if another seller contact is available, otherwise false + * Seek to the next available seller contact of the document. Returns true if another seller contact is available, otherwise false * You may use this together with ZugferdDocumentReader::getDocumentSellerContact * * @return boolean @@ -576,22 +574,22 @@ public function nextDocumentSellerContact(): bool /** * Get detailed information on the seller's contact person * - * @param string|null $contactpersonname __BT-41, From EN 16931__ Such as personal name, name of contact person or department or office - * @param string|null $contactdepartmentname __BT-41-0, From EN 16931__ If a contact person is specified, either the name or the department must be transmitted. - * @param string|null $contactphoneno __BT-42, From EN 16931__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-107, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-43, From EN 16931__ An e-mail address of the contact point + * @param string|null $contactPersonname __BT-41, From EN 16931__ Such as personal name, name of contact person or department or office + * @param string|null $contactDepartmentname __BT-41-0, From EN 16931__ If a contact person is specified, either the name or the department must be transmitted. + * @param string|null $contactPhoneNo __BT-42, From EN 16931__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-107, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-43, From EN 16931__ An e-mail address of the contact point * @return ZugferdDocumentReader */ - public function getDocumentSellerContact(?string &$contactpersonname, ?string &$contactdepartmentname, ?string &$contactphoneno, ?string &$contactfaxno, ?string &$contactemailadd): ZugferdDocumentReader + public function getDocumentSellerContact(?string &$contactPersonname, ?string &$contactDepartmentname, ?string &$contactPhoneNo, ?string &$contactFaxNo, ?string &$contactEmailAddress): ZugferdDocumentReader { $contacts = $this->getObjectHelper()->ensureArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTradeParty.getDefinedTradeContact", [])); $contact = $contacts[$this->documentSellerContactPointer]; - $contactpersonname = $this->getInvoiceValueByPathFrom($contact, "getPersonName.value", ""); - $contactdepartmentname = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName.value", ""); - $contactphoneno = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber.value", ""); - $contactfaxno = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber.value", ""); - $contactemailadd = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID.value", ""); + $contactPersonname = $this->getInvoiceValueByPathFrom($contact, "getPersonName.value", ""); + $contactDepartmentname = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName.value", ""); + $contactPhoneNo = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber.value", ""); + $contactFaxNo = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber.value", ""); + $contactEmailAddress = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID.value", ""); return $this; } @@ -647,13 +645,13 @@ public function getDocumentBuyerGlobalId(?array &$globalID): ZugferdDocumentRead /** * Get detailed information on the buyer's tax information. * - * @param array|null $taxreg _BT-48, From MINIMUM/EN 16931__ Array of tax numbers indexed by the schemeid (VA, FC, etc.) + * @param array|null $taxReg _BT-48, From MINIMUM/EN 16931__ Array of tax numbers indexed by the schemeid (VA, FC, etc.) * @return ZugferdDocumentReader */ - public function getDocumentBuyerTaxRegistration(?array &$taxreg): ZugferdDocumentReader + public function getDocumentBuyerTaxRegistration(?array &$taxReg): ZugferdDocumentReader { - $taxreg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getSpecifiedTaxRegistration", []); - $taxreg = $this->convertToAssociativeArray($taxreg, "getID.getSchemeID", "getID.value"); + $taxReg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getSpecifiedTaxRegistration", []); + $taxReg = $this->convertToAssociativeArray($taxReg, "getID.getSchemeID", "getID.value"); return $this; } @@ -661,24 +659,24 @@ public function getDocumentBuyerTaxRegistration(?array &$taxreg): ZugferdDocumen /** * Get the address of buyer trade party * - * @param string|null $lineone __BT-50, From BASIC WL__ The main line in the buyers address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT-51, From BASIC WL__ 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 - * @param string|null $linethree __BT-163, From BASIC WL__ 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 - * @param string|null $postcode __BT-53, From BASIC WL__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-50, From BASIC WL__ The main line in the buyers address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT-51, From BASIC WL__ 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 + * @param string|null $lineThree __BT-163, From BASIC WL__ 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 + * @param string|null $postCode __BT-53, From BASIC WL__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-52, From BASIC WL__ Usual name of the city or municipality in which the buyers address is located * @param string|null $country __BT-55, From BASIC WL__ 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” - * @param array|null $subdivision __BT-54, From BASIC WL__ The buyers state + * @param array|null $subDivision __BT-54, From BASIC WL__ The buyers state * @return ZugferdDocumentReader */ - public function getDocumentBuyerAddress(?string &$lineone, ?string &$linetwo, ?string &$linethree, ?string &$postcode, ?string &$city, ?string &$country, ?array &$subdivision): ZugferdDocumentReader + public function getDocumentBuyerAddress(?string &$lineOne, ?string &$lineTwo, ?string &$lineThree, ?string &$postCode, ?string &$city, ?string &$country, ?array &$subDivision): ZugferdDocumentReader { - $lineone = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getPostalTradeAddress.getLineOne.value", ""); - $linetwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getPostalTradeAddress.getLineTwo.value", ""); - $linethree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getPostalTradeAddress.getLineThree.value", ""); - $postcode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); + $lineOne = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getPostalTradeAddress.getLineOne.value", ""); + $lineTwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getPostalTradeAddress.getLineTwo.value", ""); + $lineThree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getPostalTradeAddress.getLineThree.value", ""); + $postCode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); $city = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getPostalTradeAddress.getCityName.value", ""); $country = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getPostalTradeAddress.getCountryID.value", ""); - $subdivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); + $subDivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); return $this; } @@ -686,16 +684,16 @@ public function getDocumentBuyerAddress(?string &$lineone, ?string &$linetwo, ?s /** * Get the legal organisation of buyer trade party * - * @param string|null $legalorgid __BT-47, From MINIMUM__ 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 - * @param string|null $legalorgtype __BT-47-1, From MINIMUM__ 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 - * @param string|null $legalorgname __BT-45, From EN 16931__ A name by which the buyer is known, if different from the buyers name (also known as the company name) + * @param string|null $legalOrgId __BT-47, From MINIMUM__ 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 + * @param string|null $legalOrgType __BT-47-1, From MINIMUM__ 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 + * @param string|null $legalOrgName __BT-45, From EN 16931__ A name by which the buyer is known, if different from the buyers name (also known as the company name) * @return ZugferdDocumentReader */ - public function getDocumentBuyerLegalOrganisation(?string &$legalorgid, ?string &$legalorgtype, ?string &$legalorgname): ZugferdDocumentReader + public function getDocumentBuyerLegalOrganisation(?string &$legalOrgId, ?string &$legalOrgType, ?string &$legalOrgName): ZugferdDocumentReader { - $legalorgid = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getSpecifiedLegalOrganization.getID.value", ""); - $legalorgtype = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); - $legalorgname = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); + $legalOrgId = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getSpecifiedLegalOrganization.getID.value", ""); + $legalOrgType = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); + $legalOrgName = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); return $this; } @@ -729,22 +727,22 @@ public function nextDocumentBuyerContact(): bool /** * Get contact information of buyer trade party * - * @param string|null $contactpersonname __BT-56, From EN 16931__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-56-0, From EN 16931__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-57, From EN 16931__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-115, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-58, From EN 16931__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-56, From EN 16931__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-56-0, From EN 16931__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-57, From EN 16931__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-115, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-58, From EN 16931__ An e-mail address of the contact point * @return ZugferdDocumentReader */ - public function getDocumentBuyerContact(?string &$contactpersonname, ?string &$contactdepartmentname, ?string &$contactphoneno, ?string &$contactfaxno, ?string &$contactemailadd): ZugferdDocumentReader + public function getDocumentBuyerContact(?string &$contactPersonName, ?string &$contactDepartmentName, ?string &$contactPhoneNo, ?string &$contactFaxNo, ?string &$contactEmailAddress): ZugferdDocumentReader { $contacts = $this->getObjectHelper()->ensureArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerTradeParty.getDefinedTradeContact", [])); $contact = $contacts[$this->documentBuyerContactPointer]; - $contactpersonname = $this->getInvoiceValueByPathFrom($contact, "getPersonName.value", ""); - $contactdepartmentname = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName.value", ""); - $contactphoneno = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber.value", ""); - $contactfaxno = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber.value", ""); - $contactemailadd = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID.value", ""); + $contactPersonName = $this->getInvoiceValueByPathFrom($contact, "getPersonName.value", ""); + $contactDepartmentName = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName.value", ""); + $contactPhoneNo = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber.value", ""); + $contactFaxNo = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber.value", ""); + $contactEmailAddress = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID.value", ""); return $this; } @@ -800,13 +798,13 @@ public function getDocumentSellerTaxRepresentativeGlobalId(?array &$globalID): Z /** * Get detailed information on the seller's tax agent tax information. * - * @param array|null $taxreg __BT-63/BT-63-0, From BASIC WL__ Array of tax numbers indexed by the schemeid (VA, FC, etc.) + * @param array|null $taxReg __BT-63/BT-63-0, From BASIC WL__ Array of tax numbers indexed by the schemeid (VA, FC, etc.) * @return ZugferdDocumentReader */ - public function getDocumentSellerTaxRepresentativeTaxRegistration(?array &$taxreg): ZugferdDocumentReader + public function getDocumentSellerTaxRepresentativeTaxRegistration(?array &$taxReg): ZugferdDocumentReader { - $taxreg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getSpecifiedTaxRegistration", []); - $taxreg = $this->convertToAssociativeArray($taxreg, "getID.getSchemeID", "getID.value"); + $taxReg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getSpecifiedTaxRegistration", []); + $taxReg = $this->convertToAssociativeArray($taxReg, "getID.getSchemeID", "getID.value"); return $this; } @@ -814,24 +812,24 @@ public function getDocumentSellerTaxRepresentativeTaxRegistration(?array &$taxre /** * Get the address of sellers tax agent * - * @param string|null $lineone __BT-64, From BASIC WL__ The main line in the sellers tax agent address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT-65, From BASIC WL__ Line 2 of the sellers tax agent address. This is an additional address line in an address that can be used to provide additional details in addition to the main line - * @param string|null $linethree __BT-164, From BASIC WL__ Line 3 of the sellers tax agent address. This is an additional address line in an address that can be used to provide additional details in addition to the main line - * @param string|null $postcode __BT-67, From BASIC WL__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-64, From BASIC WL__ The main line in the sellers tax agent address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT-65, From BASIC WL__ Line 2 of the sellers tax agent address. This is an additional address line in an address that can be used to provide additional details in addition to the main line + * @param string|null $lineThree __BT-164, From BASIC WL__ Line 3 of the sellers tax agent address. This is an additional address line in an address that can be used to provide additional details in addition to the main line + * @param string|null $postCode __BT-67, From BASIC WL__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-66, From BASIC WL__ Usual name of the city or municipality in which the sellers tax agent address is located * @param string|null $country __BT-69, From BASIC WL__ 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” - * @param array|null $subdivision __BT-68, From BASIC WL__ The sellers tax agent state + * @param array|null $subDivision __BT-68, From BASIC WL__ The sellers tax agent state * @return ZugferdDocumentReader */ - public function getDocumentSellerTaxRepresentativeAddress(?string &$lineone, ?string &$linetwo, ?string &$linethree, ?string &$postcode, ?string &$city, ?string &$country, ?array &$subdivision): ZugferdDocumentReader + public function getDocumentSellerTaxRepresentativeAddress(?string &$lineOne, ?string &$lineTwo, ?string &$lineThree, ?string &$postCode, ?string &$city, ?string &$country, ?array &$subDivision): ZugferdDocumentReader { - $lineone = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getPostalTradeAddress.getLineOne.value", ""); - $linetwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getPostalTradeAddress.getLineTwo.value", ""); - $linethree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getPostalTradeAddress.getLineThree.value", ""); - $postcode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); + $lineOne = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getPostalTradeAddress.getLineOne.value", ""); + $lineTwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getPostalTradeAddress.getLineTwo.value", ""); + $lineThree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getPostalTradeAddress.getLineThree.value", ""); + $postCode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); $city = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getPostalTradeAddress.getCityName.value", ""); $country = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getPostalTradeAddress.getCountryID.value", ""); - $subdivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); + $subDivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); return $this; } @@ -839,16 +837,16 @@ public function getDocumentSellerTaxRepresentativeAddress(?string &$lineone, ?st /** * Get the legal organisation of sellers tax agent * - * @param string|null $legalorgid __BT-, From __ An identifier issued by an official registrar that identifies the seller tax agent as a legal entity or legal person. - * @param string|null $legalorgtype __BT-, From __ The identifier for the identification scheme of the legal registration of the sellers tax agent. If the identification scheme is used, it must be selected from ISO/IEC 6523 list - * @param string|null $legalorgname __BT-, From __ A name by which the sellers tax agent is known, if different from the sellers tax agent name (also known as the company name) + * @param string|null $legalOrgId __BT-, From __ An identifier issued by an official registrar that identifies the seller tax agent as a legal entity or legal person. + * @param string|null $legalOrgType __BT-, From __ The identifier for the identification scheme of the legal registration of the sellers tax agent. If the identification scheme is used, it must be selected from ISO/IEC 6523 list + * @param string|null $legalOrgName __BT-, From __ A name by which the sellers tax agent is known, if different from the sellers tax agent name (also known as the company name) * @return ZugferdDocumentReader */ - public function getDocumentSellerTaxRepresentativeLegalOrganisation(?string &$legalorgid, ?string &$legalorgtype, ?string &$legalorgname): ZugferdDocumentReader + public function getDocumentSellerTaxRepresentativeLegalOrganisation(?string &$legalOrgId, ?string &$legalOrgType, ?string &$legalOrgName): ZugferdDocumentReader { - $legalorgid = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getSpecifiedLegalOrganization.getID.value", ""); - $legalorgtype = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); - $legalorgname = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); + $legalOrgId = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getSpecifiedLegalOrganization.getID.value", ""); + $legalOrgType = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); + $legalOrgName = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); return $this; } @@ -882,22 +880,22 @@ public function nextDocumentSellerTaxRepresentativeContact(): bool /** * Get contact information of sellers tax agent * - * @param string|null $contactpersonname __BT-X-120, From EXTENDED__ Such as personal name, name of contact person or department or office - * @param string|null $contactdepartmentname __BT-X-121, From EXTENDED__ If a contact person is specified, either the name or the department must be transmitted. - * @param string|null $contactphoneno __BT-X-122, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-123, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-124, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-120, From EXTENDED__ Such as personal name, name of contact person or department or office + * @param string|null $contactDepartmentName __BT-X-121, From EXTENDED__ If a contact person is specified, either the name or the department must be transmitted. + * @param string|null $contactPhoneNo __BT-X-122, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-123, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-124, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentReader */ - public function getDocumentSellerTaxRepresentativeContact(?string &$contactpersonname, ?string &$contactdepartmentname, ?string &$contactphoneno, ?string &$contactfaxno, ?string &$contactemailadd): ZugferdDocumentReader + public function getDocumentSellerTaxRepresentativeContact(?string &$contactPersonName, ?string &$contactDepartmentName, ?string &$contactPhoneNo, ?string &$contactFaxNo, ?string &$contactEmailAddress): ZugferdDocumentReader { $contacts = $this->getObjectHelper()->ensureArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerTaxRepresentativeTradeParty.getDefinedTradeContact", [])); $contact = $contacts[$this->documentSellerTaxRepresentativeContactPointer]; - $contactpersonname = $this->getInvoiceValueByPathFrom($contact, "getPersonName.value", ""); - $contactdepartmentname = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName.value", ""); - $contactphoneno = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber.value", ""); - $contactfaxno = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber.value", ""); - $contactemailadd = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID.value", ""); + $contactPersonName = $this->getInvoiceValueByPathFrom($contact, "getPersonName.value", ""); + $contactDepartmentName = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName.value", ""); + $contactPhoneNo = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber.value", ""); + $contactFaxNo = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber.value", ""); + $contactEmailAddress = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID.value", ""); return $this; } @@ -938,13 +936,13 @@ public function getDocumentProductEndUserGlobalId(?array &$globalID): ZugferdDoc /** * Get detailed information on the tax number of the product end user * - * @param array|null $taxreg __BT-, From __ Array of tax numbers indexed by the schemeid (VA, FC, etc.) + * @param array|null $taxReg __BT-, From __ Array of tax numbers indexed by the schemeid (VA, FC, etc.) * @return ZugferdDocumentReader */ - public function getDocumentProductEndUserTaxRegistration(?array &$taxreg): ZugferdDocumentReader + public function getDocumentProductEndUserTaxRegistration(?array &$taxReg): ZugferdDocumentReader { - $taxreg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getSpecifiedTaxRegistration", []); - $taxreg = $this->convertToAssociativeArray($taxreg, "getID.getSchemeID", "getID.value"); + $taxReg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getSpecifiedTaxRegistration", []); + $taxReg = $this->convertToAssociativeArray($taxReg, "getID.getSchemeID", "getID.value"); return $this; } @@ -952,24 +950,24 @@ public function getDocumentProductEndUserTaxRegistration(?array &$taxreg): Zugfe /** * Get the address of product end user * - * @param string|null $lineone __BT-X-397, From EXTENDED__ The main line in the product end users address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT-X-398, From EXTENDED__ Line 2 of the product end users address. This is an additional address line in an address that can be used to provide additional details in addition to the main line - * @param string|null $linethree __BT-X-399, From EXTENDED__ Line 3 of the product end users address. This is an additional address line in an address that can be used to provide additional details in addition to the main line - * @param string|null $postcode __BT-X-396, From EXTENDED__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-X-397, From EXTENDED__ The main line in the product end users address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT-X-398, From EXTENDED__ Line 2 of the product end users address. This is an additional address line in an address that can be used to provide additional details in addition to the main line + * @param string|null $lineThree __BT-X-399, From EXTENDED__ Line 3 of the product end users address. This is an additional address line in an address that can be used to provide additional details in addition to the main line + * @param string|null $postCode __BT-X-396, From EXTENDED__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-X-400, From EXTENDED__ Usual name of the city or municipality in which the product end users address is located * @param string|null $country __BT-X-401, From EXTENDED__ 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” - * @param array|null $subdivision __BT-X-402, From EXTENDED__ The product end users state + * @param array|null $subDivision __BT-X-402, From EXTENDED__ The product end users state * @return ZugferdDocumentReader */ - public function getDocumentProductEndUserAddress(?string &$lineone, ?string &$linetwo, ?string &$linethree, ?string &$postcode, ?string &$city, ?string &$country, ?array &$subdivision): ZugferdDocumentReader + public function getDocumentProductEndUserAddress(?string &$lineOne, ?string &$lineTwo, ?string &$lineThree, ?string &$postCode, ?string &$city, ?string &$country, ?array &$subDivision): ZugferdDocumentReader { - $lineone = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getPostalTradeAddress.getLineOne.value", ""); - $linetwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getPostalTradeAddress.getLineTwo.value", ""); - $linethree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getPostalTradeAddress.getLineThree.value", ""); - $postcode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); + $lineOne = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getPostalTradeAddress.getLineOne.value", ""); + $lineTwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getPostalTradeAddress.getLineTwo.value", ""); + $lineThree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getPostalTradeAddress.getLineThree.value", ""); + $postCode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); $city = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getPostalTradeAddress.getCityName.value", ""); $country = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getPostalTradeAddress.getCountryID.value", ""); - $subdivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); + $subDivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); return $this; } @@ -977,16 +975,16 @@ public function getDocumentProductEndUserAddress(?string &$lineone, ?string &$li /** * Get the legal organisation of product end user * - * @param string|null $legalorgid __BT-X-129, From EXTENDED__ An identifier issued by an official registrar that identifies the product end user as a legal entity or legal person. If no identification scheme ($legalorgtype) is provided, it should be known to all trade parties - * @param string|null $legalorgtype __BT-X-129-0, From EXTENDED__The identifier for the identification scheme of the legal registration of the product end user. If the identification scheme is used, it must be selected from ISO/IEC 6523 list - * @param string|null $legalorgname __BT-X-130, From EXTENDED__ A name by which the product end user is known, if different from the product end users name (also known as the company name) + * @param string|null $legalOrgId __BT-X-129, From EXTENDED__ An identifier issued by an official registrar that identifies the product end user as a legal entity or legal person. If no identification scheme ($legalorgtype) is provided, it should be known to all trade parties + * @param string|null $legalOrgType __BT-X-129-0, From EXTENDED__The identifier for the identification scheme of the legal registration of the product end user. If the identification scheme is used, it must be selected from ISO/IEC 6523 list + * @param string|null $legalOrgName __BT-X-130, From EXTENDED__ A name by which the product end user is known, if different from the product end users name (also known as the company name) * @return ZugferdDocumentReader */ - public function getDocumentProductEndUserLegalOrganisation(?string &$legalorgid, ?string &$legalorgtype, ?string &$legalorgname): ZugferdDocumentReader + public function getDocumentProductEndUserLegalOrganisation(?string &$legalOrgId, ?string &$legalOrgType, ?string &$legalOrgName): ZugferdDocumentReader { - $legalorgid = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getSpecifiedLegalOrganization.getID.value", ""); - $legalorgtype = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); - $legalorgname = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); + $legalOrgId = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getSpecifiedLegalOrganization.getID.value", ""); + $legalOrgType = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); + $legalOrgName = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); return $this; } @@ -1020,22 +1018,22 @@ public function nextDocumentProductEndUserContactContact(): bool /** * Get detailed information on the product end user's contact person * - * @param string|null $contactpersonname __BT-X-131, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-132, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-133, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-134, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-135, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-131, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-132, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-133, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-134, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-135, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentReader */ - public function getDocumentProductEndUserContact(?string &$contactpersonname, ?string &$contactdepartmentname, ?string &$contactphoneno, ?string &$contactfaxno, ?string &$contactemailadd): ZugferdDocumentReader + public function getDocumentProductEndUserContact(?string &$contactPersonName, ?string &$contactDepartmentName, ?string &$contactPhoneNo, ?string &$contactFaxNo, ?string &$contactEmailAddress): ZugferdDocumentReader { $contacts = $this->getObjectHelper()->ensureArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getProductEndUserTradeParty.getDefinedTradeContact", [])); $contact = $contacts[$this->documentProductEndUserContactPointer]; - $contactpersonname = $this->getInvoiceValueByPathFrom($contact, "getPersonName.value", ""); - $contactdepartmentname = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName.value", ""); - $contactphoneno = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber.value", ""); - $contactfaxno = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber.value", ""); - $contactemailadd = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID.value", ""); + $contactPersonName = $this->getInvoiceValueByPathFrom($contact, "getPersonName.value", ""); + $contactDepartmentName = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName.value", ""); + $contactPhoneNo = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber.value", ""); + $contactFaxNo = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber.value", ""); + $contactEmailAddress = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID.value", ""); return $this; } @@ -1076,13 +1074,13 @@ public function getDocumentShipToGlobalId(?array &$globalID): ZugferdDocumentRea /** * Get detailed information on tax details of the Ship-To party * - * @param array|null $taxreg __BT-X-161/BT-X-161-0, From EXTENDED__ Array of tax numbers indexed by the schemeid (VA, FC, etc.) + * @param array|null $taxReg __BT-X-161/BT-X-161-0, From EXTENDED__ Array of tax numbers indexed by the schemeid (VA, FC, etc.) * @return ZugferdDocumentReader */ - public function getDocumentShipToTaxRegistration(?array &$taxreg): ZugferdDocumentReader + public function getDocumentShipToTaxRegistration(?array &$taxReg): ZugferdDocumentReader { - $taxreg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getSpecifiedTaxRegistration", []); - $taxreg = $this->convertToAssociativeArray($taxreg, "getID.getSchemeID", "getID.value"); + $taxReg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getSpecifiedTaxRegistration", []); + $taxReg = $this->convertToAssociativeArray($taxReg, "getID.getSchemeID", "getID.value"); return $this; } @@ -1090,24 +1088,24 @@ public function getDocumentShipToTaxRegistration(?array &$taxreg): ZugferdDocume /** * Get the postal address of the Ship-To party * - * @param string|null $lineone __BT-75, From BASIC WL__ The main line in the party's address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT-76, From BASIC WL__ 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 - * @param string|null $linethree __BT-165, From BASIC WL__ 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 - * @param string|null $postcode __BT-78, From BASIC WL__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-75, From BASIC WL__ The main line in the party's address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT-76, From BASIC WL__ 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 + * @param string|null $lineThree __BT-165, From BASIC WL__ 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 + * @param string|null $postCode __BT-78, From BASIC WL__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-77, From BASIC WL__ Usual name of the city or municipality in which the party's address is located * @param string|null $country __BT-80, From BASIC WL__ 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” - * @param array|null $subdivision __BT-79, From BASIC WL__ The party's state + * @param array|null $subDivision __BT-79, From BASIC WL__ The party's state * @return ZugferdDocumentReader */ - public function getDocumentShipToAddress(?string &$lineone, ?string &$linetwo, ?string &$linethree, ?string &$postcode, ?string &$city, ?string &$country, ?array &$subdivision): ZugferdDocumentReader + public function getDocumentShipToAddress(?string &$lineOne, ?string &$lineTwo, ?string &$lineThree, ?string &$postCode, ?string &$city, ?string &$country, ?array &$subDivision): ZugferdDocumentReader { - $lineone = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getPostalTradeAddress.getLineOne.value", ""); - $linetwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getPostalTradeAddress.getLineTwo.value", ""); - $linethree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getPostalTradeAddress.getLineThree.value", ""); - $postcode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); + $lineOne = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getPostalTradeAddress.getLineOne.value", ""); + $lineTwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getPostalTradeAddress.getLineTwo.value", ""); + $lineThree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getPostalTradeAddress.getLineThree.value", ""); + $postCode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); $city = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getPostalTradeAddress.getCityName.value", ""); $country = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getPostalTradeAddress.getCountryID.value", ""); - $subdivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); + $subDivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); return $this; } @@ -1115,16 +1113,16 @@ public function getDocumentShipToAddress(?string &$lineone, ?string &$linetwo, ? /** * Legal organisation of Ship-To trade party * - * @param string|null $legalorgid __BT-X-153, From EXTENDED__ 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 - * @param string|null $legalorgtype __BT-X-153-0, From EXTENDED__ 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 - * @param string|null $legalorgname __BT-X-154, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) + * @param string|null $legalOrgid __BT-X-153, From EXTENDED__ 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 + * @param string|null $legalOrgType __BT-X-153-0, From EXTENDED__ 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 + * @param string|null $legalOrgName __BT-X-154, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) * @return ZugferdDocumentReader */ - public function getDocumentShipToLegalOrganisation(?string &$legalorgid, ?string &$legalorgtype, ?string &$legalorgname): ZugferdDocumentReader + public function getDocumentShipToLegalOrganisation(?string &$legalOrgid, ?string &$legalOrgType, ?string &$legalOrgName): ZugferdDocumentReader { - $legalorgid = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getSpecifiedLegalOrganization.getID.value", ""); - $legalorgtype = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); - $legalorgname = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); + $legalOrgid = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getSpecifiedLegalOrganization.getID.value", ""); + $legalOrgType = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); + $legalOrgName = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); return $this; } @@ -1158,22 +1156,22 @@ public function nextDocumentShipToContact(): bool /** * Get detailed information on the contact person of the goods recipient * - * @param string|null $contactpersonname __BT-X-155, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-156, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-157, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-158, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-159, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-155, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-156, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-157, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-158, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-159, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentReader */ - public function getDocumentShipToContact(?string &$contactpersonname, ?string &$contactdepartmentname, ?string &$contactphoneno, ?string &$contactfaxno, ?string &$contactemailadd): ZugferdDocumentReader + public function getDocumentShipToContact(?string &$contactPersonName, ?string &$contactDepartmentName, ?string &$contactPhoneNo, ?string &$contactFaxNo, ?string &$contactEmailAddress): ZugferdDocumentReader { $contacts = $this->getObjectHelper()->ensureArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipToTradeParty.getDefinedTradeContact", [])); $contact = $contacts[$this->documentShipToContactPointer]; - $contactpersonname = $this->getInvoiceValueByPathFrom($contact, "getPersonName", ""); - $contactdepartmentname = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName", ""); - $contactphoneno = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber", ""); - $contactfaxno = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber", ""); - $contactemailadd = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID", ""); + $contactPersonName = $this->getInvoiceValueByPathFrom($contact, "getPersonName", ""); + $contactDepartmentName = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName", ""); + $contactPhoneNo = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber", ""); + $contactFaxNo = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber", ""); + $contactEmailAddress = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID", ""); return $this; } @@ -1214,13 +1212,13 @@ public function getDocumentUltimateShipToGlobalId(?array &$globalID): ZugferdDoc /** * Get detailed information on tax details of the different end recipient party * - * @param array|null $taxreg __BT-X-180/BT-X-180-0, From EXTENDED__ Array of tax numbers indexed by the schemeid (VA, FC, etc.) + * @param array|null $taxReg __BT-X-180/BT-X-180-0, From EXTENDED__ Array of tax numbers indexed by the schemeid (VA, FC, etc.) * @return ZugferdDocumentReader */ - public function getDocumentUltimateShipToTaxRegistration(?array &$taxreg): ZugferdDocumentReader + public function getDocumentUltimateShipToTaxRegistration(?array &$taxReg): ZugferdDocumentReader { - $taxreg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getSpecifiedTaxRegistration", []); - $taxreg = $this->convertToAssociativeArray($taxreg, "getID.getSchemeID", "getID.value"); + $taxReg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getSpecifiedTaxRegistration", []); + $taxReg = $this->convertToAssociativeArray($taxReg, "getID.getSchemeID", "getID.value"); return $this; } @@ -1228,24 +1226,24 @@ public function getDocumentUltimateShipToTaxRegistration(?array &$taxreg): Zugfe /** * Get detailed information on the address of the different end recipient party * - * @param string|null $lineone __BT-X-173, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box. For major customer addresses, this field must be filled with "-". - * @param string|null $linetwo __BT-X-174, From EXTENDED__ 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 - * @param string|null $linethree __BT-X-175, From EXTENDED__ 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 - * @param string|null $postcode __BT-X-172, From EXTENDED__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-X-173, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box. For major customer addresses, this field must be filled with "-". + * @param string|null $lineTwo __BT-X-174, From EXTENDED__ 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 + * @param string|null $lineThree __BT-X-175, From EXTENDED__ 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 + * @param string|null $postCode __BT-X-172, From EXTENDED__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-X-176, From EXTENDED__ Usual name of the city or municipality in which the party's address is located * @param string|null $country __BT-X-177, From EXTENDED__ 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” - * @param array|null $subdivision __BT-X-178, From EXTENDED__ The party's state + * @param array|null $subDivision __BT-X-178, From EXTENDED__ The party's state * @return ZugferdDocumentReader */ - public function getDocumentUltimateShipToAddress(?string &$lineone, ?string &$linetwo, ?string &$linethree, ?string &$postcode, ?string &$city, ?string &$country, ?array &$subdivision): ZugferdDocumentReader + public function getDocumentUltimateShipToAddress(?string &$lineOne, ?string &$lineTwo, ?string &$lineThree, ?string &$postCode, ?string &$city, ?string &$country, ?array &$subDivision): ZugferdDocumentReader { - $lineone = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getPostalTradeAddress.getLineOne.value", ""); - $linetwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getPostalTradeAddress.getLineTwo.value", ""); - $linethree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getPostalTradeAddress.getLineThree.value", ""); - $postcode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); + $lineOne = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getPostalTradeAddress.getLineOne.value", ""); + $lineTwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getPostalTradeAddress.getLineTwo.value", ""); + $lineThree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getPostalTradeAddress.getLineThree.value", ""); + $postCode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); $city = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getPostalTradeAddress.getCityName.value", ""); $country = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getPostalTradeAddress.getCountryID.value", ""); - $subdivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); + $subDivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); return $this; } @@ -1253,16 +1251,16 @@ public function getDocumentUltimateShipToAddress(?string &$lineone, ?string &$li /** * Get detailed information about the Legal organisation of the different end recipient party * - * @param string|null $legalorgid __BT-X-165, From EXTENDED__ 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 - * @param string|null $legalorgtype __BT-X-165-0, From EXTENDED__ 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 - * @param string|null $legalorgname __BT-X-166, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) + * @param string|null $legalOrgId __BT-X-165, From EXTENDED__ 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 + * @param string|null $legalOrgType __BT-X-165-0, From EXTENDED__ 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 + * @param string|null $legalOrgName __BT-X-166, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) * @return ZugferdDocumentReader */ - public function getDocumentUltimateShipToLegalOrganisation(?string &$legalorgid, ?string &$legalorgtype, ?string &$legalorgname): ZugferdDocumentReader + public function getDocumentUltimateShipToLegalOrganisation(?string &$legalOrgId, ?string &$legalOrgType, ?string &$legalOrgName): ZugferdDocumentReader { - $legalorgid = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getSpecifiedLegalOrganization.getID.value", ""); - $legalorgtype = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); - $legalorgname = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); + $legalOrgId = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getSpecifiedLegalOrganization.getID.value", ""); + $legalOrgType = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); + $legalOrgName = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); return $this; } @@ -1296,22 +1294,22 @@ public function nextDocumentUltimateShipToContact(): bool /** * Get detailed information on the contact person of the different end recipient party * - * @param string|null $contactpersonname __BT-X-167, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-168, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-169, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-170, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-171, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-167, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-168, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-169, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-170, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-171, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentReader */ - public function getDocumentUltimateShipToContact(?string &$contactpersonname, ?string &$contactdepartmentname, ?string &$contactphoneno, ?string &$contactfaxno, ?string &$contactemailadd): ZugferdDocumentReader + public function getDocumentUltimateShipToContact(?string &$contactPersonName, ?string &$contactDepartmentName, ?string &$contactPhoneNo, ?string &$contactFaxNo, ?string &$contactEmailAddress): ZugferdDocumentReader { $contacts = $this->getObjectHelper()->ensureArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getUltimateShipToTradeParty.getDefinedTradeContact", [])); $contact = $contacts[$this->documentUltimateShipToContactPointer]; - $contactpersonname = $this->getInvoiceValueByPathFrom($contact, "getPersonName.value", ""); - $contactdepartmentname = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName.value", ""); - $contactphoneno = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber.value", ""); - $contactfaxno = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber.value", ""); - $contactemailadd = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID.value", ""); + $contactPersonName = $this->getInvoiceValueByPathFrom($contact, "getPersonName.value", ""); + $contactDepartmentName = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName.value", ""); + $contactPhoneNo = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber.value", ""); + $contactFaxNo = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber.value", ""); + $contactEmailAddress = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID.value", ""); return $this; } @@ -1352,13 +1350,13 @@ public function getDocumentShipFromGlobalId(?array &$globalID): ZugferdDocumentR /** * Get detailed information on tax details of the deviating consignor party * - * @param array|null $taxreg __BT-, From __ Array of tax numbers indexed by the schemeid (VA, FC, etc.) + * @param array|null $taxReg __BT-, From __ Array of tax numbers indexed by the schemeid (VA, FC, etc.) * @return ZugferdDocumentReader */ - public function getDocumentShipFromTaxRegistration(?array &$taxreg): ZugferdDocumentReader + public function getDocumentShipFromTaxRegistration(?array &$taxReg): ZugferdDocumentReader { - $taxreg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getSpecifiedTaxRegistration", []); - $taxreg = $this->convertToAssociativeArray($taxreg, "getID.getSchemeID", "getID.value"); + $taxReg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getSpecifiedTaxRegistration", []); + $taxReg = $this->convertToAssociativeArray($taxReg, "getID.getSchemeID", "getID.value"); return $this; } @@ -1366,24 +1364,24 @@ public function getDocumentShipFromTaxRegistration(?array &$taxreg): ZugferdDocu /** * Get Detailed information on the address of the deviating consignor party * - * @param string|null $lineone __BT-X-192, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT-X-193, From EXTENDED__ 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 - * @param string|null $linethree __BT-X-194, From EXTENDED__ 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 - * @param string|null $postcode __BT-X-191, From EXTENDED__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-X-192, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT-X-193, From EXTENDED__ 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 + * @param string|null $lineThree __BT-X-194, From EXTENDED__ 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 + * @param string|null $postCode __BT-X-191, From EXTENDED__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-X-195, From EXTENDED__ Usual name of the city or municipality in which the party's address is located * @param string|null $country __BT-X-196, From EXTENDED__ 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” - * @param array|null $subdivision __BT-X-197, From EXTENDED__ The party's state + * @param array|null $subDivision __BT-X-197, From EXTENDED__ The party's state * @return ZugferdDocumentReader */ - public function getDocumentShipFromAddress(?string &$lineone, ?string &$linetwo, ?string &$linethree, ?string &$postcode, ?string &$city, ?string &$country, ?array &$subdivision): ZugferdDocumentReader + public function getDocumentShipFromAddress(?string &$lineOne, ?string &$lineTwo, ?string &$lineThree, ?string &$postCode, ?string &$city, ?string &$country, ?array &$subDivision): ZugferdDocumentReader { - $lineone = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getPostalTradeAddress.getLineOne.value", ""); - $linetwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getPostalTradeAddress.getLineTwo.value", ""); - $linethree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getPostalTradeAddress.getLineThree.value", ""); - $postcode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); + $lineOne = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getPostalTradeAddress.getLineOne.value", ""); + $lineTwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getPostalTradeAddress.getLineTwo.value", ""); + $lineThree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getPostalTradeAddress.getLineThree.value", ""); + $postCode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); $city = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getPostalTradeAddress.getCityName.value", ""); $country = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getPostalTradeAddress.getCountryID.value.value", ""); - $subdivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); + $subDivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); return $this; } @@ -1391,16 +1389,16 @@ public function getDocumentShipFromAddress(?string &$lineone, ?string &$linetwo, /** * Get information about the legal organisation of the deviating consignor party * - * @param string|null $legalorgid __BT-X-184, From EXTENDED__ 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 - * @param string|null $legalorgtype __BT-X-184-0, From EXTENDED__ 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 - * @param string|null $legalorgname __BT-X-185, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) + * @param string|null $legalOrgId __BT-X-184, From EXTENDED__ 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 + * @param string|null $legalOrgType __BT-X-184-0, From EXTENDED__ 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 + * @param string|null $legalOrgName __BT-X-185, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) * @return ZugferdDocumentReader */ - public function getDocumentShipFromLegalOrganisation(?string &$legalorgid, ?string &$legalorgtype, ?string &$legalorgname): ZugferdDocumentReader + public function getDocumentShipFromLegalOrganisation(?string &$legalOrgId, ?string &$legalOrgType, ?string &$legalOrgName): ZugferdDocumentReader { - $legalorgid = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getSpecifiedLegalOrganization.getID.value", ""); - $legalorgtype = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); - $legalorgname = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); + $legalOrgId = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getSpecifiedLegalOrganization.getID.value", ""); + $legalOrgType = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); + $legalOrgName = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); return $this; } @@ -1434,22 +1432,22 @@ public function nextDocumentShipFromContact(): bool /** * Get contact information of the deviating consignor party * - * @param string|null $contactpersonname __BT-X-186, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-187, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-188, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-189, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-190, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-186, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-187, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-188, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-189, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-190, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentReader */ - public function getDocumentShipFromContact(?string &$contactpersonname, ?string &$contactdepartmentname, ?string &$contactphoneno, ?string &$contactfaxno, ?string &$contactemailadd): ZugferdDocumentReader + public function getDocumentShipFromContact(?string &$contactPersonName, ?string &$contactDepartmentName, ?string &$contactPhoneNo, ?string &$contactFaxNo, ?string &$contactEmailAddress): ZugferdDocumentReader { $contacts = $this->getObjectHelper()->ensureArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getShipFromTradeParty.getDefinedTradeContact", [])); $contact = $contacts[$this->documentShipFromContactPointer]; - $contactpersonname = $this->getInvoiceValueByPathFrom($contact, "getPersonName.value", ""); - $contactdepartmentname = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName.value", ""); - $contactphoneno = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber.value", ""); - $contactfaxno = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber.value", ""); - $contactemailadd = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID.value", ""); + $contactPersonName = $this->getInvoiceValueByPathFrom($contact, "getPersonName.value", ""); + $contactDepartmentName = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName.value", ""); + $contactPhoneNo = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber.value", ""); + $contactFaxNo = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber.value", ""); + $contactEmailAddress = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID.value", ""); return $this; } @@ -1490,13 +1488,13 @@ public function getDocumentInvoicerGlobalId(?array &$globalID): ZugferdDocumentR /** * Get detailed information on tax details of the invoicer party * - * @param array|null $taxreg __BT-, From __ Array of tax numbers indexed by the schemeid (VA, FC, etc.) + * @param array|null $taxReg __BT-, From __ Array of tax numbers indexed by the schemeid (VA, FC, etc.) * @return ZugferdDocumentReader */ - public function getDocumentInvoicerTaxRegistration(?array &$taxreg): ZugferdDocumentReader + public function getDocumentInvoicerTaxRegistration(?array &$taxReg): ZugferdDocumentReader { - $taxreg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getSpecifiedTaxRegistration", []); - $taxreg = $this->convertToAssociativeArray($taxreg, "getID.getSchemeID", "getID.value"); + $taxReg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getSpecifiedTaxRegistration", []); + $taxReg = $this->convertToAssociativeArray($taxReg, "getID.getSchemeID", "getID.value"); return $this; } @@ -1504,24 +1502,24 @@ public function getDocumentInvoicerTaxRegistration(?array &$taxreg): ZugferdDocu /** * Get Detailed information on the address of the invoicer party * - * @param string|null $lineone __BT-X-216, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT-X-217, From EXTENDED__ 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 - * @param string|null $linethree __BT-X-218, From EXTENDED__ 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 - * @param string|null $postcode __BT-X-215, From EXTENDED__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-X-216, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT-X-217, From EXTENDED__ 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 + * @param string|null $lineThree __BT-X-218, From EXTENDED__ 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 + * @param string|null $postCode __BT-X-215, From EXTENDED__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-X-219, From EXTENDED__ Usual name of the city or municipality in which the party's address is located * @param string|null $country __BT-X-220, From EXTENDED__ 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” - * @param array|null $subdivision __BT-X-221, From EXTENDED__ The party's state + * @param array|null $subDivision __BT-X-221, From EXTENDED__ The party's state * @return ZugferdDocumentReader */ - public function getDocumentInvoicerAddress(?string &$lineone, ?string &$linetwo, ?string &$linethree, ?string &$postcode, ?string &$city, ?string &$country, ?array &$subdivision): ZugferdDocumentReader + public function getDocumentInvoicerAddress(?string &$lineOne, ?string &$lineTwo, ?string &$lineThree, ?string &$postCode, ?string &$city, ?string &$country, ?array &$subDivision): ZugferdDocumentReader { - $lineone = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getPostalTradeAddress.getLineOne.value", ""); - $linetwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getPostalTradeAddress.getLineTwo.value", ""); - $linethree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getPostalTradeAddress.getLineThree.value", ""); - $postcode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); + $lineOne = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getPostalTradeAddress.getLineOne.value", ""); + $lineTwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getPostalTradeAddress.getLineTwo.value", ""); + $lineThree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getPostalTradeAddress.getLineThree.value", ""); + $postCode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); $city = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getPostalTradeAddress.getCityName.value", ""); $country = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getPostalTradeAddress.getCountryID.value", ""); - $subdivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); + $subDivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); return $this; } @@ -1529,16 +1527,16 @@ public function getDocumentInvoicerAddress(?string &$lineone, ?string &$linetwo, /** * Get information about the legal organisation of the invoicer party * - * @param string|null $legalorgid __BT-X-208, From EXTENDED__ 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 - * @param string|null $legalorgtype __BT-X-208-0, From EXTENDED__ 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 - * @param string|null $legalorgname __BT-X-209, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) + * @param string|null $legalOrgId __BT-X-208, From EXTENDED__ 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 + * @param string|null $legalOrgType __BT-X-208-0, From EXTENDED__ 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 + * @param string|null $legalOrgName __BT-X-209, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) * @return ZugferdDocumentReader */ - public function getDocumentInvoicerLegalOrganisation(?string &$legalorgid, ?string &$legalorgtype, ?string &$legalorgname): ZugferdDocumentReader + public function getDocumentInvoicerLegalOrganisation(?string &$legalOrgId, ?string &$legalOrgType, ?string &$legalOrgName): ZugferdDocumentReader { - $legalorgid = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getSpecifiedLegalOrganization.getID.value", ""); - $legalorgtype = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); - $legalorgname = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); + $legalOrgId = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getSpecifiedLegalOrganization.getID.value", ""); + $legalOrgType = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); + $legalOrgName = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); return $this; } @@ -1572,22 +1570,22 @@ public function nextDocumentInvoicerContact(): bool /** * Get contact information of the invoicer party * - * @param string|null $contactpersonname __BT-X-210, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-211, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-212, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-213, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-214, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-210, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-211, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-212, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-213, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-214, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentReader */ - public function getDocumentInvoicerContact(?string &$contactpersonname, ?string &$contactdepartmentname, ?string &$contactphoneno, ?string &$contactfaxno, ?string &$contactemailadd): ZugferdDocumentReader + public function getDocumentInvoicerContact(?string &$contactPersonName, ?string &$contactDepartmentName, ?string &$contactPhoneNo, ?string &$contactFaxNo, ?string &$contactEmailAddress): ZugferdDocumentReader { $contacts = $this->getObjectHelper()->ensureArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoicerTradeParty.getDefinedTradeContact", [])); $contact = $contacts[$this->documentInvoicerContactPointer]; - $contactpersonname = $this->getInvoiceValueByPathFrom($contact, "getPersonName.value", ""); - $contactdepartmentname = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName.value", ""); - $contactphoneno = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber.value", ""); - $contactfaxno = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber.value", ""); - $contactemailadd = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID.value", ""); + $contactPersonName = $this->getInvoiceValueByPathFrom($contact, "getPersonName.value", ""); + $contactDepartmentName = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName.value", ""); + $contactPhoneNo = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber.value", ""); + $contactFaxNo = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber.value", ""); + $contactEmailAddress = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID.value", ""); return $this; } @@ -1628,13 +1626,13 @@ public function getDocumentInvoiceeGlobalId(?array &$globalID): ZugferdDocumentR /** * Get detailed information on tax details of the different invoice recipient party * - * @param array|null $taxreg __BT-X-242/BT-X-242-0, From EXTENDED__ Array of tax numbers indexed by the schemeid (VA, FC, etc.) + * @param array|null $taxReg __BT-X-242/BT-X-242-0, From EXTENDED__ Array of tax numbers indexed by the schemeid (VA, FC, etc.) * @return ZugferdDocumentReader */ - public function getDocumentInvoiceeTaxRegistration(?array &$taxreg): ZugferdDocumentReader + public function getDocumentInvoiceeTaxRegistration(?array &$taxReg): ZugferdDocumentReader { - $taxreg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getSpecifiedTaxRegistration", []); - $taxreg = $this->convertToAssociativeArray($taxreg, "getID.getSchemeID", "getID.value"); + $taxReg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getSpecifiedTaxRegistration", []); + $taxReg = $this->convertToAssociativeArray($taxReg, "getID.getSchemeID", "getID.value"); return $this; } @@ -1642,24 +1640,24 @@ public function getDocumentInvoiceeTaxRegistration(?array &$taxreg): ZugferdDocu /** * Get Detailed information on the address of the different invoice recipient party * - * @param string|null $lineone __BT-X-235, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT-X-236, From EXTENDED__ 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 - * @param string|null $linethree __BT-X-237, From EXTENDED__ 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 - * @param string|null $postcode __BT-X-234, From EXTENDED__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-X-235, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT-X-236, From EXTENDED__ 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 + * @param string|null $lineThree __BT-X-237, From EXTENDED__ 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 + * @param string|null $postCode __BT-X-234, From EXTENDED__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-X-238, From EXTENDED__ Usual name of the city or municipality in which the party's address is located * @param string|null $country __BT-X-239, From EXTENDED__ 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” - * @param array|null $subdivision __BT-X-240, From EXTENDED__ The party's state + * @param array|null $subDivision __BT-X-240, From EXTENDED__ The party's state * @return ZugferdDocumentReader */ - public function getDocumentInvoiceeAddress(?string &$lineone, ?string &$linetwo, ?string &$linethree, ?string &$postcode, ?string &$city, ?string &$country, ?array &$subdivision): ZugferdDocumentReader + public function getDocumentInvoiceeAddress(?string &$lineOne, ?string &$lineTwo, ?string &$lineThree, ?string &$postCode, ?string &$city, ?string &$country, ?array &$subDivision): ZugferdDocumentReader { - $lineone = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getPostalTradeAddress.getLineOne.value", ""); - $linetwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getPostalTradeAddress.getLineTwo.value", ""); - $linethree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getPostalTradeAddress.getLineThree.value", ""); - $postcode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); + $lineOne = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getPostalTradeAddress.getLineOne.value", ""); + $lineTwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getPostalTradeAddress.getLineTwo.value", ""); + $lineThree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getPostalTradeAddress.getLineThree.value", ""); + $postCode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); $city = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getPostalTradeAddress.getCityName.value", ""); $country = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getPostalTradeAddress.getCountryID.value", ""); - $subdivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); + $subDivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); return $this; } @@ -1667,16 +1665,16 @@ public function getDocumentInvoiceeAddress(?string &$lineone, ?string &$linetwo, /** * Get information about the legal organisation of the different invoice recipient party * - * @param string|null $legalorgid __BT-X-227, From EXTENDED__ 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 - * @param string|null $legalorgtype __BT-X-227-0, From EXTENDED__ 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 - * @param string|null $legalorgname __BT-X-228, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) + * @param string|null $legalOrgId __BT-X-227, From EXTENDED__ 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 + * @param string|null $legalOrgType __BT-X-227-0, From EXTENDED__ 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 + * @param string|null $legalOrgName __BT-X-228, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) * @return ZugferdDocumentReader */ - public function getDocumentInvoiceeLegalOrganisation(?string &$legalorgid, ?string &$legalorgtype, ?string &$legalorgname): ZugferdDocumentReader + public function getDocumentInvoiceeLegalOrganisation(?string &$legalOrgId, ?string &$legalOrgType, ?string &$legalOrgName): ZugferdDocumentReader { - $legalorgid = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getSpecifiedLegalOrganization.getID.value", ""); - $legalorgtype = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); - $legalorgname = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); + $legalOrgId = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getSpecifiedLegalOrganization.getID.value", ""); + $legalOrgType = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); + $legalOrgName = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); return $this; } @@ -1710,22 +1708,22 @@ public function nextDocumentInvoiceeContact(): bool /** * Get contact information of the different invoice recipient party * - * @param string|null $contactpersonname __BT-X-229, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-230, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-231, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-232, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-233, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-229, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-230, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-231, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-232, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-233, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentReader */ - public function getDocumentInvoiceeContact(?string &$contactpersonname, ?string &$contactdepartmentname, ?string &$contactphoneno, ?string &$contactfaxno, ?string &$contactemailadd): ZugferdDocumentReader + public function getDocumentInvoiceeContact(?string &$contactPersonName, ?string &$contactDepartmentName, ?string &$contactPhoneNo, ?string &$contactFaxNo, ?string &$contactEmailAddress): ZugferdDocumentReader { $contacts = $this->getObjectHelper()->ensureArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceeTradeParty.getDefinedTradeContact", [])); $contact = $contacts[$this->documentInvoiceeContactPointer]; - $contactpersonname = $this->getInvoiceValueByPathFrom($contact, "getPersonName.value", ""); - $contactdepartmentname = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName.value", ""); - $contactphoneno = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber.value", ""); - $contactfaxno = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber.value", ""); - $contactemailadd = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID.value", ""); + $contactPersonName = $this->getInvoiceValueByPathFrom($contact, "getPersonName.value", ""); + $contactDepartmentName = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName.value", ""); + $contactPhoneNo = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber.value", ""); + $contactFaxNo = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber.value", ""); + $contactEmailAddress = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID.value", ""); return $this; } @@ -1767,13 +1765,13 @@ public function getDocumentPayeeGlobalId(?array &$globalID): ZugferdDocumentRead /** * Get detailed information on tax details of the payee party * - * @param array|null $taxreg __BT-X-257/BT-X-257-0, From EXTENDED__ Array of tax numbers indexed by the schemeid (VA, FC, etc.) + * @param array|null $taxReg __BT-X-257/BT-X-257-0, From EXTENDED__ Array of tax numbers indexed by the schemeid (VA, FC, etc.) * @return ZugferdDocumentReader */ - public function getDocumentPayeeTaxRegistration(?array &$taxreg): ZugferdDocumentReader + public function getDocumentPayeeTaxRegistration(?array &$taxReg): ZugferdDocumentReader { - $taxreg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getSpecifiedTaxRegistration", []); - $taxreg = $this->convertToAssociativeArray($taxreg, "getID.getSchemeID", "getID.value"); + $taxReg = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getSpecifiedTaxRegistration", []); + $taxReg = $this->convertToAssociativeArray($taxReg, "getID.getSchemeID", "getID.value"); return $this; } @@ -1781,24 +1779,24 @@ public function getDocumentPayeeTaxRegistration(?array &$taxreg): ZugferdDocumen /** * Get Detailed information on the address of the payee party * - * @param string|null $lineone __BT-X-250, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box - * @param string|null $linetwo __BT-X-251, From EXTENDED__ 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 - * @param string|null $linethree __BT-X-252, From EXTENDED__ 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 - * @param string|null $postcode __BT-X-249, From EXTENDED__ Identifier for a group of properties, such as a zip code + * @param string|null $lineOne __BT-X-250, From EXTENDED__ The main line in the party's address. This is usually the street name and house number or the post office box + * @param string|null $lineTwo __BT-X-251, From EXTENDED__ 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 + * @param string|null $lineThree __BT-X-252, From EXTENDED__ 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 + * @param string|null $postCode __BT-X-249, From EXTENDED__ Identifier for a group of properties, such as a zip code * @param string|null $city __BT-X-253, From EXTENDED__ Usual name of the city or municipality in which the party's address is located * @param string|null $country __BT-X-254, From EXTENDED__ 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” - * @param array|null $subdivision __BT-X-255, From EXTENDED__ The party's state + * @param array|null $subDivision __BT-X-255, From EXTENDED__ The party's state * @return ZugferdDocumentReader */ - public function getDocumentPayeeAddress(?string &$lineone, ?string &$linetwo, ?string &$linethree, ?string &$postcode, ?string &$city, ?string &$country, ?array &$subdivision): ZugferdDocumentReader + public function getDocumentPayeeAddress(?string &$lineOne, ?string &$lineTwo, ?string &$lineThree, ?string &$postCode, ?string &$city, ?string &$country, ?array &$subDivision): ZugferdDocumentReader { - $lineone = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getPostalTradeAddress.getLineOne.value", ""); - $linetwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getPostalTradeAddress.getLineTwo.value", ""); - $linethree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getPostalTradeAddress.getLineThree.value", ""); - $postcode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); + $lineOne = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getPostalTradeAddress.getLineOne.value", ""); + $lineTwo = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getPostalTradeAddress.getLineTwo.value", ""); + $lineThree = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getPostalTradeAddress.getLineThree.value", ""); + $postCode = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getPostalTradeAddress.getPostcodeCode.value", ""); $city = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getPostalTradeAddress.getCityName.value", ""); $country = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getPostalTradeAddress.getCountryID.value", ""); - $subdivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); + $subDivision = $this->convertToArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getPostalTradeAddress.getCountrySubDivisionName", []), ["value"]); return $this; } @@ -1806,16 +1804,16 @@ public function getDocumentPayeeAddress(?string &$lineone, ?string &$linetwo, ?s /** * Get information about the legal organisation of the payee party * - * @param string|null $legalorgid __BT-61, From BASIC WL__ 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 - * @param string|null $legalorgtype __BT-61-1, From BASIC WL__ 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 - * @param string|null $legalorgname __BT-X-243, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) + * @param string|null $legalOrgId __BT-61, From BASIC WL__ 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 + * @param string|null $legalOrgType __BT-61-1, From BASIC WL__ 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 + * @param string|null $legalOrgName __BT-X-243, From EXTENDED__ A name by which the party is known, if different from the party's name (also known as the company name) * @return ZugferdDocumentReader */ - public function getDocumentPayeeLegalOrganisation(?string &$legalorgid, ?string &$legalorgtype, ?string &$legalorgname): ZugferdDocumentReader + public function getDocumentPayeeLegalOrganisation(?string &$legalOrgId, ?string &$legalOrgType, ?string &$legalOrgName): ZugferdDocumentReader { - $legalorgid = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getSpecifiedLegalOrganization.getID.value", ""); - $legalorgtype = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); - $legalorgname = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); + $legalOrgId = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getSpecifiedLegalOrganization.getID.value", ""); + $legalOrgType = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getSpecifiedLegalOrganization.getID.getSchemeID", ""); + $legalOrgName = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getSpecifiedLegalOrganization.getTradingBusinessName.value", ""); return $this; } @@ -1849,22 +1847,22 @@ public function nextDocumentPayeeContact(): bool /** * Get contact information of the payee party * - * @param string|null $contactpersonname __BT-X-244, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person - * @param string|null $contactdepartmentname __BT-X-245, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office - * @param string|null $contactphoneno __BT-X-246, From EXTENDED__ A telephone number for the contact point - * @param string|null $contactfaxno __BT-X-247, From EXTENDED__ A fax number of the contact point - * @param string|null $contactemailadd __BT-X-248, From EXTENDED__ An e-mail address of the contact point + * @param string|null $contactPersonName __BT-X-244, From EXTENDED__ Contact point for a legal entity, such as a personal name of the contact person + * @param string|null $contactDepartmentName __BT-X-245, From EXTENDED__ Contact point for a legal entity, such as a name of the department or office + * @param string|null $contactPhoneNo __BT-X-246, From EXTENDED__ A telephone number for the contact point + * @param string|null $contactFaxNo __BT-X-247, From EXTENDED__ A fax number of the contact point + * @param string|null $contactEmailAddress __BT-X-248, From EXTENDED__ An e-mail address of the contact point * @return ZugferdDocumentReader */ - public function getDocumentPayeeContact(?string &$contactpersonname, ?string &$contactdepartmentname, ?string &$contactphoneno, ?string &$contactfaxno, ?string &$contactemailadd): ZugferdDocumentReader + public function getDocumentPayeeContact(?string &$contactPersonName, ?string &$contactDepartmentName, ?string &$contactPhoneNo, ?string &$contactFaxNo, ?string &$contactEmailAddress): ZugferdDocumentReader { $contacts = $this->getObjectHelper()->ensureArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getPayeeTradeParty.getDefinedTradeContact", [])); $contact = $contacts[$this->documentPayeeContactPointer]; - $contactpersonname = $this->getInvoiceValueByPathFrom($contact, "getPersonName.value", ""); - $contactdepartmentname = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName.value", ""); - $contactphoneno = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber.value", ""); - $contactfaxno = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber.value", ""); - $contactemailadd = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID.value", ""); + $contactPersonName = $this->getInvoiceValueByPathFrom($contact, "getPersonName.value", ""); + $contactDepartmentName = $this->getInvoiceValueByPathFrom($contact, "getDepartmentName.value", ""); + $contactPhoneNo = $this->getInvoiceValueByPathFrom($contact, "getTelephoneUniversalCommunication.getCompleteNumber.value", ""); + $contactFaxNo = $this->getInvoiceValueByPathFrom($contact, "getFaxUniversalCommunication.getCompleteNumber.value", ""); + $contactEmailAddress = $this->getInvoiceValueByPathFrom($contact, "getEmailURIUniversalCommunication.getURIID.value", ""); return $this; } @@ -1885,14 +1883,14 @@ public function getDocumentDeliveryTerms(?string &$code): ZugferdDocumentReader /** * Get details of the associated order confirmation * - * @param string|null $issuerassignedid __BT-14, From EN 16931__ An identifier issued by the seller for a referenced sales order (Order confirmation number) - * @param DateTime|null $issueddate __BT-X-146, From EXTENDED__ Order confirmation date + * @param string|null $issuerAssignedId __BT-14, From EN 16931__ An identifier issued by the seller for a referenced sales order (Order confirmation number) + * @param DateTime|null $issueDate __BT-X-146, From EXTENDED__ Order confirmation date * @return ZugferdDocumentReader */ - public function getDocumentSellerOrderReferencedDocument(?string &$issuerassignedid, ?DateTime &$issueddate): ZugferdDocumentReader + public function getDocumentSellerOrderReferencedDocument(?string &$issuerAssignedId, ?DateTime &$issueDate): ZugferdDocumentReader { - $issuerassignedid = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerOrderReferencedDocument.getIssuerAssignedID.value", ""); - $issueddate = $this->getObjectHelper()->toDateTime( + $issuerAssignedId = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerOrderReferencedDocument.getIssuerAssignedID.value", ""); + $issueDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerOrderReferencedDocument.getFormattedIssueDateTime.getDateTimeString.value", ""), $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getSellerOrderReferencedDocument.getFormattedIssueDateTime.getDateTimeString.getFormat", "") ); @@ -1903,14 +1901,14 @@ public function getDocumentSellerOrderReferencedDocument(?string &$issuerassigne /** * Get details of the related buyer order * - * @param string|null $issuerassignedid __BT-13, From MINIMUM__ An identifier issued by the buyer for a referenced order (order number) - * @param DateTime|null $issueddate __BT-X-147, From EXTENDED__ Date of order + * @param string|null $issuerAssignedId __BT-13, From MINIMUM__ An identifier issued by the buyer for a referenced order (order number) + * @param DateTime|null $issueDate __BT-X-147, From EXTENDED__ Date of order * @return ZugferdDocumentReader */ - public function getDocumentBuyerOrderReferencedDocument(?string &$issuerassignedid, ?DateTime &$issueddate): ZugferdDocumentReader + public function getDocumentBuyerOrderReferencedDocument(?string &$issuerAssignedId, ?DateTime &$issueDate): ZugferdDocumentReader { - $issuerassignedid = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerOrderReferencedDocument.getIssuerAssignedID.value", ""); - $issueddate = $this->getObjectHelper()->toDateTime( + $issuerAssignedId = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerOrderReferencedDocument.getIssuerAssignedID.value", ""); + $issueDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerOrderReferencedDocument.getFormattedIssueDateTime.getDateTimeString.value", ""), $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getBuyerOrderReferencedDocument.getFormattedIssueDateTime.getDateTimeString.getFormat", "") ); @@ -1921,14 +1919,14 @@ public function getDocumentBuyerOrderReferencedDocument(?string &$issuerassigned /** * Get details of the associated offer * - * @param string|null $issuerassignedid __BT-X-403, From EXTENDED__ Offer number - * @param DateTime|null $issueddate __BT-X-404, From EXTENDED__ Date of offer + * @param string|null $issuerAssignedId __BT-X-403, From EXTENDED__ Offer number + * @param DateTime|null $issueDate __BT-X-404, From EXTENDED__ Date of offer * @return ZugferdDocumentReader */ - public function getDocumentQuotationReferencedDocument(?string &$issuerassignedid, ?DateTime &$issueddate): ZugferdDocumentReader + public function getDocumentQuotationReferencedDocument(?string &$issuerAssignedId, ?DateTime &$issueDate): ZugferdDocumentReader { - $issuerassignedid = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getQuotationReferencedDocument.getIssuerAssignedID.value", ""); - $issueddate = $this->getObjectHelper()->toDateTime( + $issuerAssignedId = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getQuotationReferencedDocument.getIssuerAssignedID.value", ""); + $issueDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getQuotationReferencedDocument.getFormattedIssueDateTime.getDateTimeString.value", ""), $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getQuotationReferencedDocument.getFormattedIssueDateTime.getDateTimeString.getFormat", "") ); @@ -1939,14 +1937,14 @@ public function getDocumentQuotationReferencedDocument(?string &$issuerassignedi /** * Get details of the associated contract * - * @param string|null $issuerassignedid __BT-12, From BASIC WL__ The contract reference should be assigned once in the context of the specific trade relationship and for a defined period of time (contract number) - * @param DateTime|null $issueddate __BT-X-26, From EXTENDED__ Contract date + * @param string|null $issuerAssignedId __BT-12, From BASIC WL__ The contract reference should be assigned once in the context of the specific trade relationship and for a defined period of time (contract number) + * @param DateTime|null $issueDate __BT-X-26, From EXTENDED__ Contract date * @return ZugferdDocumentReader */ - public function getDocumentContractReferencedDocument(?string &$issuerassignedid, ?DateTime &$issueddate): ZugferdDocumentReader + public function getDocumentContractReferencedDocument(?string &$issuerAssignedId, ?DateTime &$issueDate): ZugferdDocumentReader { - $issuerassignedid = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getContractReferencedDocument.getIssuerAssignedID.value", ""); - $issueddate = $this->getObjectHelper()->toDateTime( + $issuerAssignedId = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getContractReferencedDocument.getIssuerAssignedID.value", ""); + $issueDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getContractReferencedDocument.getFormattedIssueDateTime.getDateTimeString.value", ""), $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getContractReferencedDocument.getFormattedIssueDateTime.getDateTimeString.getFormat", "") ); @@ -1993,43 +1991,43 @@ public function nextDocumentAdditionalReferencedDocument(): bool * ZugferdDocumentReader::nextDocumentAdditionalReferencedDocument to seek between multiple additional referenced * documents * - * @param string $issuerassignedid __BT-122, From EN 16931__ 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. - * @param string $typecode __BT-122-0, From EN 16931__ Type of referenced document (See codelist UNTDID 1001) + * @param string $issuerAssignedId __BT-122, From EN 16931__ 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. + * @param string $typeCode __BT-122-0, From EN 16931__ 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. - * @param string|null $uriid __BT-124, From EN 16931__ A means of locating the resource, including the primary access method intended for it, e.g. http:// or ftp://. The storage location of the external document must be used if the buyer requires further information as + * @param string|null $uriId __BT-124, From EN 16931__ A means of locating the resource, including the primary access method intended for it, e.g. http:// or ftp://. The storage location of the external document must be used if the buyer requires further information as * supporting documents for the invoiced amounts. External documents are not part of the invoice. Invoice processing should be possible without access to external documents. Access to external documents can entail certain risks. * @param array|null $name __BT-123, From EN 16931__ A description of the document, e.g. Hourly billing, usage or consumption report, etc. - * @param string|null $reftypecode __BT-, From __ 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. - * @param DateTime|null $issueddate __BT-X-149, From EXTENDED__ Document date - * @param string|null $binarydatafilename __BT-125, From EN 16931__ Contains a file name of an attachment document embedded as a binary object + * @param string|null $refTypeCode __BT-, From __ 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. + * @param DateTime|null $issueDate __BT-X-149, From EXTENDED__ Document date + * @param string|null $binaryDataFilename __BT-125, From EN 16931__ Contains a file name of an attachment document embedded as a binary object * @return ZugferdDocumentReader */ - public function getDocumentAdditionalReferencedDocument(?string &$issuerassignedid, ?string &$typecode, ?string &$uriid = null, ?array &$name = null, ?string &$reftypecode = null, ?DateTime &$issueddate = null, ?string &$binarydatafilename = null): ZugferdDocumentReader + public function getDocumentAdditionalReferencedDocument(?string &$issuerAssignedId, ?string &$typeCode, ?string &$uriId = null, ?array &$name = null, ?string &$refTypeCode = null, ?DateTime &$issueDate = null, ?string &$binaryDataFilename = null): ZugferdDocumentReader { $addRefDoc = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getAdditionalReferencedDocument", []); $addRefDoc = $addRefDoc[$this->documentAddRefDocPointer]; - $issuerassignedid = $this->getInvoiceValueByPathFrom($addRefDoc, "getIssuerAssignedID.value", ""); - $typecode = $this->getInvoiceValueByPathFrom($addRefDoc, "getTypeCode.value", ""); - $uriid = $this->getInvoiceValueByPathFrom($addRefDoc, "getURIID.value", ""); + $issuerAssignedId = $this->getInvoiceValueByPathFrom($addRefDoc, "getIssuerAssignedID.value", ""); + $typeCode = $this->getInvoiceValueByPathFrom($addRefDoc, "getTypeCode.value", ""); + $uriId = $this->getInvoiceValueByPathFrom($addRefDoc, "getURIID.value", ""); $name = $this->getObjectHelper()->ensureArray($this->getInvoiceValueByPathFrom($addRefDoc, "getName.value", null)); - $reftypecode = $this->getInvoiceValueByPathFrom($addRefDoc, "getReferenceTypeCode.value", ""); - $issueddate = $this->getObjectHelper()->toDateTime( + $refTypeCode = $this->getInvoiceValueByPathFrom($addRefDoc, "getReferenceTypeCode.value", ""); + $issueDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPathFrom($addRefDoc, "getFormattedIssueDateTime.getDateTimeString.value", ""), $this->getInvoiceValueByPathFrom($addRefDoc, "getFormattedIssueDateTime.getDateTimeString.getFormat", "") ); - $binarydatafilename = $this->getInvoiceValueByPathFrom($addRefDoc, "getAttachmentBinaryObject.getFilename", ""); + $binaryDataFilename = $this->getInvoiceValueByPathFrom($addRefDoc, "getAttachmentBinaryObject.getFilename", ""); $binarydata = $this->getInvoiceValueByPathFrom($addRefDoc, "getAttachmentBinaryObject.value", ""); - if (StringUtils::stringIsNullOrEmpty($binarydatafilename) === false + if (StringUtils::stringIsNullOrEmpty($binaryDataFilename) === false && StringUtils::stringIsNullOrEmpty($binarydata) === false && StringUtils::stringIsNullOrEmpty($this->binarydatadirectory) === false ) { - $binarydatafilename = PathUtils::combinePathWithFile($this->binarydatadirectory, $binarydatafilename); - FileUtils::base64ToFile($binarydata, $binarydatafilename); + $binaryDataFilename = PathUtils::combinePathWithFile($this->binarydatadirectory, $binaryDataFilename); + FileUtils::base64ToFile($binarydata, $binaryDataFilename); } else { - $binarydatafilename = ""; + $binaryDataFilename = ""; } return $this; @@ -2038,16 +2036,16 @@ public function getDocumentAdditionalReferencedDocument(?string &$issuerassigned /** * Get all additional referenced documents * - * @param array|null $refdocs + * @param array|null $refDocs * Array contains all additional referenced documents, but without extracting attached binary objects. If you * want to access attached binary objects you have to use ZugferdDocumentReader::getDocumentAdditionalReferencedDocument * @return ZugferdDocumentReader */ - public function getDocumentAdditionalReferencedDocuments(?array &$refdocs): ZugferdDocumentReader + public function getDocumentAdditionalReferencedDocuments(?array &$refDocs): ZugferdDocumentReader { - $refdocs = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getAdditionalReferencedDocument", []); - $refdocs = $this->convertToArray( - $refdocs, + $refDocs = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getAdditionalReferencedDocument", []); + $refDocs = $this->convertToArray( + $refDocs, [ "IssuerAssignedID" => ["getIssuerAssignedID.value", ""], "URIID" => ["getURIID.value", ""], @@ -2088,18 +2086,18 @@ public function nextDocumentInvoiceReferencedDocument(): bool /** * Get reference to the previous invoice * - * @param string $issuerassignedid __BT-25, From BASIC WL__ The identification of an invoice previously sent by the seller - * @param string|null $typecode __BT-X-555, From EXTENDED__ Type of previous invoice (code) - * @param DateTime|null $issueddate __BT-26, From BASIC WL__ Date of the previous invoice + * @param string $issuerAssignedId __BT-25, From BASIC WL__ The identification of an invoice previously sent by the seller + * @param string|null $typeCode __BT-X-555, From EXTENDED__ Type of previous invoice (code) + * @param DateTime|null $issueDate __BT-26, From BASIC WL__ Date of the previous invoice */ - public function getDocumentInvoiceReferencedDocument(?string &$issuerassignedid, ?string &$typecode, ?DateTime &$issueddate = null): ZugferdDocumentReader + public function getDocumentInvoiceReferencedDocument(?string &$issuerAssignedId, ?string &$typeCode, ?DateTime &$issueDate = null): ZugferdDocumentReader { $invoiceRefDoc = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceReferencedDocument", []); $invoiceRefDoc = $invoiceRefDoc[$this->documentInvRefDocPointer]; - $issuerassignedid = $this->getInvoiceValueByPathFrom($invoiceRefDoc, "getIssuerAssignedID.value", ""); - $typecode = $this->getInvoiceValueByPathFrom($invoiceRefDoc, "getTypeCode.value", ""); - $issueddate = $this->getObjectHelper()->toDateTime( + $issuerAssignedId = $this->getInvoiceValueByPathFrom($invoiceRefDoc, "getIssuerAssignedID.value", ""); + $typeCode = $this->getInvoiceValueByPathFrom($invoiceRefDoc, "getTypeCode.value", ""); + $issueDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPathFrom($invoiceRefDoc, "getFormattedIssueDateTime.getDateTimeString.value", ""), $this->getInvoiceValueByPathFrom($invoiceRefDoc, "getFormattedIssueDateTime.getDateTimeString.getFormat", "") ); @@ -2172,17 +2170,17 @@ public function nextDocumentUltimateCustomerOrderReferencedDocument(): bool /** * Get details of the ultimate customer order * - * @param string|null $issuerassignedid __BT-X-150, From EXTENDED__ Order number of the end customer - * @param DateTime|null $issueddate __BT-X-151, From EXTENDED__ Date of the order issued by the end customer + * @param string|null $issuerAssignedId __BT-X-150, From EXTENDED__ Order number of the end customer + * @param DateTime|null $issueDate __BT-X-151, From EXTENDED__ Date of the order issued by the end customer * @return ZugferdDocumentReader */ - public function getDocumentUltimateCustomerOrderReferencedDocument(?string &$issuerassignedid, ?DateTime &$issueddate): ZugferdDocumentReader + public function getDocumentUltimateCustomerOrderReferencedDocument(?string &$issuerAssignedId, ?DateTime &$issueDate): ZugferdDocumentReader { $addRefDoc = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeAgreement.getUltimateCustomerOrderReferencedDocument", []); $addRefDoc = $addRefDoc[$this->documentUltimateCustomerOrderReferencedDocumentPointer]; - $issuerassignedid = $this->getInvoiceValueByPathFrom($addRefDoc, "getIssuerAssignedID.value", ""); - $issueddate = $this->getObjectHelper()->toDateTime( + $issuerAssignedId = $this->getInvoiceValueByPathFrom($addRefDoc, "getIssuerAssignedID.value", ""); + $issueDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPathFrom($addRefDoc, "getFormattedIssueDateTime.getDateTimeString.value", ""), $this->getInvoiceValueByPathFrom($addRefDoc, "getFormattedIssueDateTime.getDateTimeString.getFormat", "") ); @@ -2220,14 +2218,14 @@ public function getDocumentSupplyChainEvent(?DateTime &$date): ZugferdDocumentRe /** * Get detailed information on the associated shipping notification * - * @param string|null $issuerassignedid __BT-16, From BASIC WL__ Shipping notification reference - * @param DateTime|null $issueddate __BT-X-200, From EXTENDED__ Shipping notification date + * @param string|null $issuerAssignedId __BT-16, From BASIC WL__ Shipping notification reference + * @param DateTime|null $issueDate __BT-X-200, From EXTENDED__ Shipping notification date * @return ZugferdDocumentReader */ - public function getDocumentDespatchAdviceReferencedDocument(?string &$issuerassignedid, ?DateTime &$issueddate): ZugferdDocumentReader + public function getDocumentDespatchAdviceReferencedDocument(?string &$issuerAssignedId, ?DateTime &$issueDate): ZugferdDocumentReader { - $issuerassignedid = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getDespatchAdviceReferencedDocument.getIssuerAssignedID.value", ""); - $issueddate = $this->getObjectHelper()->toDateTime( + $issuerAssignedId = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getDespatchAdviceReferencedDocument.getIssuerAssignedID.value", ""); + $issueDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getDespatchAdviceReferencedDocument.getFormattedIssueDateTime.getDateTimeString.value", ""), $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getDespatchAdviceReferencedDocument.getFormattedIssueDateTime.getDateTimeString.getFormat", "") ); @@ -2238,14 +2236,14 @@ public function getDocumentDespatchAdviceReferencedDocument(?string &$issuerassi /** * Get detailed information on the associated goods receipt notification * - * @param string|null $issuerassignedid __BT-15, From EN 16931__ An identifier for a referenced goods receipt notification (Goods receipt number) - * @param DateTime|null $issueddate __BT-X-201, From EXTENDED__ Goods receipt date + * @param string|null $issuerAssignedId __BT-15, From EN 16931__ An identifier for a referenced goods receipt notification (Goods receipt number) + * @param DateTime|null $issueDate __BT-X-201, From EXTENDED__ Goods receipt date * @return ZugferdDocumentReader */ - public function getDocumentReceivingAdviceReferencedDocument(?string &$issuerassignedid, ?DateTime &$issueddate): ZugferdDocumentReader + public function getDocumentReceivingAdviceReferencedDocument(?string &$issuerAssignedId, ?DateTime &$issueDate): ZugferdDocumentReader { - $issuerassignedid = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getReceivingAdviceReferencedDocument.getIssuerAssignedID.value", ""); - $issueddate = $this->getObjectHelper()->toDateTime( + $issuerAssignedId = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getReceivingAdviceReferencedDocument.getIssuerAssignedID.value", ""); + $issueDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getReceivingAdviceReferencedDocument.getFormattedIssueDateTime.getDateTimeString.value", ""), $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getReceivingAdviceReferencedDocument.getFormattedIssueDateTime.getDateTimeString.getFormat", "") ); @@ -2256,14 +2254,14 @@ public function getDocumentReceivingAdviceReferencedDocument(?string &$issuerass /** * Get detailed information on the associated delivery note * - * @param string $issuerassignedid __BT-X-202, From EXTENDED__ Delivery slip number - * @param DateTime|null $issueddate __BT-X-203, From EXTENDED__ Delivery slip date + * @param string $issuerAssignedId __BT-X-202, From EXTENDED__ Delivery slip number + * @param DateTime|null $issueDate __BT-X-203, From EXTENDED__ Delivery slip date * @return ZugferdDocumentReader */ - public function getDocumentDeliveryNoteReferencedDocument(?string &$issuerassignedid, ?DateTime &$issueddate): ZugferdDocumentReader + public function getDocumentDeliveryNoteReferencedDocument(?string &$issuerAssignedId, ?DateTime &$issueDate): ZugferdDocumentReader { - $issuerassignedid = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getDeliveryNoteReferencedDocument.getIssuerAssignedID.value", ""); - $issueddate = $this->getObjectHelper()->toDateTime( + $issuerAssignedId = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getDeliveryNoteReferencedDocument.getIssuerAssignedID.value", ""); + $issueDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getDeliveryNoteReferencedDocument.getFormattedIssueDateTime.getDateTimeString.value", ""), $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeDelivery.getDeliveryNoteReferencedDocument.getFormattedIssueDateTime.getDateTimeString.getFormat", "") ); @@ -2300,7 +2298,7 @@ public function nextGetDocumentPaymentMeans(): bool /** * Get detailed information on the payment method * - * @param string $typecode __BT-81, From BASIC WL__ The expected or used means of payment, expressed as a code. The entries from the UNTDID 4461 code list must be used. A distinction should be made between SEPA and non-SEPA payments as well as between credit payments, direct debits, card payments and other means of payment In particular, the following codes can be used: + * @param string $typeCode __BT-81, From BASIC WL__ The expected or used means of payment, expressed as a code. The entries from the UNTDID 4461 code list must be used. A distinction should be made between SEPA and non-SEPA payments as well as between credit payments, direct debits, card payments and other means of payment In particular, the following codes can be used: * - 10: cash * - 20: check * - 30: transfer @@ -2322,12 +2320,12 @@ public function nextGetDocumentPaymentMeans(): bool * @param string|null $payeeBic __BT-86, From EN 16931__ An identifier for the payment service provider with which the payment account is held * @return ZugferdDocumentReader */ - public function getDocumentPaymentMeans(?string &$typecode, ?string &$information, ?string &$cardType, ?string &$cardId, ?string &$cardHolderName, ?string &$buyerIban, ?string &$payeeIban, ?string &$payeeAccountName, ?string &$payeePropId, ?string &$payeeBic): ZugferdDocumentReader + public function getDocumentPaymentMeans(?string &$typeCode, ?string &$information, ?string &$cardType, ?string &$cardId, ?string &$cardHolderName, ?string &$buyerIban, ?string &$payeeIban, ?string &$payeeAccountName, ?string &$payeePropId, ?string &$payeeBic): ZugferdDocumentReader { $paymentMeans = $this->getObjectHelper()->ensureArray($this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getSpecifiedTradeSettlementPaymentMeans", [])); $paymentMeans = $paymentMeans[$this->documentPaymentMeansPointer]; - $typecode = $this->getInvoiceValueByPathFrom($paymentMeans, "getTypeCode.value", ""); + $typeCode = $this->getInvoiceValueByPathFrom($paymentMeans, "getTypeCode.value", ""); $information = $this->getInvoiceValueByPathFrom($paymentMeans, "getInformation.value", ""); $cardType = $this->getInvoiceValueByPathFrom($paymentMeans, "getApplicableTradeSettlementFinancialCard.getID.getSchemeID", ""); $cardId = $this->getInvoiceValueByPathFrom($paymentMeans, "getApplicableTradeSettlementFinancialCard.getID.value", ""); @@ -2408,13 +2406,13 @@ public function getDocumentTax(?string &$categoryCode, ?string &$typeCode, ?floa /** * Get detailed information on the billing period * - * @param DateTime|null $startdate __BT-73, From BASIC WL__ Start of the billing period + * @param DateTime|null $startDate __BT-73, From BASIC WL__ Start of the billing period * @param DateTime|null $endDate __BT-74, From BASIC WL__ End of the billing period * @return ZugferdDocumentReader */ - public function getDocumentBillingPeriod(?DateTime &$startdate, ?DateTime &$endDate): ZugferdDocumentReader + public function getDocumentBillingPeriod(?DateTime &$startDate, ?DateTime &$endDate): ZugferdDocumentReader { - $startdate = $this->getObjectHelper()->toDateTime( + $startDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getBillingSpecifiedPeriod.getStartDateTime.getDateTimeString.value", null), $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getBillingSpecifiedPeriod.getStartDateTime.getDateTimeString.getFormat", null) ); @@ -2759,17 +2757,17 @@ public function nextDocumentPosition(): bool /** * Get general information of the current position * - * @param string $lineid __BT-126, From BASIC__ Identification of the invoice item + * @param string $lineId __BT-126, From BASIC__ Identification of the invoice item * @param string|null $lineStatusCode __BT-X-7, From EXTENDED__ Indicates whether the invoice item contains prices that must be taken into account when calculating the invoice amount or whether only information is included. * @param string|null $lineStatusReasonCode __BT-X-8, From EXTENDED__ Adds the type to specify whether the invoice line is: * @return ZugferdDocumentReader */ - public function getDocumentPositionGenerals(?string &$lineid, ?string &$lineStatusCode, ?string &$lineStatusReasonCode): ZugferdDocumentReader + public function getDocumentPositionGenerals(?string &$lineId, ?string &$lineStatusCode, ?string &$lineStatusReasonCode): ZugferdDocumentReader { $tradeLineItem = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getIncludedSupplyChainTradeLineItem", []); $tradeLineItem = $tradeLineItem[$this->positionPointer]; - $lineid = $this->getInvoiceValueByPathFrom($tradeLineItem, "getAssociatedDocumentLineDocument.getLineID.value", ""); + $lineId = $this->getInvoiceValueByPathFrom($tradeLineItem, "getAssociatedDocumentLineDocument.getLineID.value", ""); $lineStatusCode = $this->getInvoiceValueByPathFrom($tradeLineItem, "getAssociatedDocumentLineDocument.getLineStatusCode.value", ""); $lineStatusReasonCode = $this->getInvoiceValueByPathFrom($tradeLineItem, "getAssociatedDocumentLineDocument.getLineStatusReasonCode.value", ""); @@ -2939,12 +2937,12 @@ public function nextDocumentPositionProductCharacteristic(): bool * * @param string $description __BT-160, From EN 16931__ The name of the attribute or property of the product such as "Colour" * @param string $value __BT-161, From EN 16931__ The value of the attribute or property of the product such as "Red" - * @param string|null $typecode __BT-X-11, From EXTENDED__ Type of product characteristic (code). The codes must be taken from the UNTDID 6313 codelist. + * @param string|null $typeCode __BT-X-11, From EXTENDED__ Type of product characteristic (code). The codes must be taken from the UNTDID 6313 codelist. * @param float|null $valueMeasure __BT-X-12, From EXTENDED__ Value of the product property (numerical measured variable) * @param string|null $valueMeasureUnitCode __BT-X-12-0, From EXTENDED__ Unit of measurement code * @return ZugferdDocumentReader */ - public function getDocumentPositionProductCharacteristic(?string &$description, ?string &$value, ?string &$typecode, ?float &$valueMeasure, ?string &$valueMeasureUnitCode): ZugferdDocumentReader + public function getDocumentPositionProductCharacteristic(?string &$description, ?string &$value, ?string &$typeCode, ?float &$valueMeasure, ?string &$valueMeasureUnitCode): ZugferdDocumentReader { $tradeLineItem = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getIncludedSupplyChainTradeLineItem", []); $tradeLineItem = $tradeLineItem[$this->positionPointer]; @@ -2953,7 +2951,7 @@ public function getDocumentPositionProductCharacteristic(?string &$description, $description = $this->getInvoiceValueByPathFrom($tradeLineItemProductCharacteristic, "getDescription.value", ""); $value = $this->getInvoiceValueByPathFrom($tradeLineItemProductCharacteristic, "getValue.value", ""); - $typecode = $this->getInvoiceValueByPathFrom($tradeLineItemProductCharacteristic, "getTypeCode.value", ""); + $typeCode = $this->getInvoiceValueByPathFrom($tradeLineItemProductCharacteristic, "getTypeCode.value", ""); $valueMeasure = $this->getInvoiceValueByPathFrom($tradeLineItemProductCharacteristic, "getValueMeasure.value", 0.0); $valueMeasureUnitCode = $this->getInvoiceValueByPathFrom($tradeLineItemProductCharacteristic, "getValueMeasure.getUnitCode", ""); @@ -3092,19 +3090,19 @@ public function getDocumentPositionReferencedProduct(?string &$name, ?string &$d /** * Get details of a related sales order reference * - * @param string|null $issuerassignedid __BT-X-537, From EXTENDED__ Document number of a sales order reference - * @param string|null $lineid __BT-X-538, From EXTENDED__ An identifier for a position within a sales order. - * @param DateTime|null $issueddate __BT-X-539, From EXTENDED__ Date of sales order + * @param string|null $issuerAssignedId __BT-X-537, From EXTENDED__ Document number of a sales order reference + * @param string|null $lineId __BT-X-538, From EXTENDED__ An identifier for a position within a sales order. + * @param DateTime|null $issueDate __BT-X-539, From EXTENDED__ Date of sales order * @return ZugferdDocumentReader */ - public function getDocumentPositionSellerOrderReferencedDocument(?string &$issuerassignedid, ?string &$lineid, ?DateTime &$issueddate): ZugferdDocumentReader + public function getDocumentPositionSellerOrderReferencedDocument(?string &$issuerAssignedId, ?string &$lineId, ?DateTime &$issueDate): ZugferdDocumentReader { $tradeLineItem = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getIncludedSupplyChainTradeLineItem", []); $tradeLineItem = $tradeLineItem[$this->positionPointer]; - $issuerassignedid = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getSellerOrderReferencedDocument.getIssuerAssignedID.value", ""); - $lineid = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getSellerOrderReferencedDocument.getLineID.value", ""); - $issueddate = $this->getObjectHelper()->toDateTime( + $issuerAssignedId = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getSellerOrderReferencedDocument.getIssuerAssignedID.value", ""); + $lineId = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getSellerOrderReferencedDocument.getLineID.value", ""); + $issueDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getSellerOrderReferencedDocument.getFormattedIssueDateTime.getDateTimeString.value", null), $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getSellerOrderReferencedDocument.getFormattedIssueDateTime.getDateTimeString.getFormat", null) ); @@ -3115,19 +3113,19 @@ public function getDocumentPositionSellerOrderReferencedDocument(?string &$issue /** * Get details of the related buyer order position * - * @param string|null $issuerassignedid __BT-X-21, From EXTENDED__ An identifier issued by the buyer for a referenced order (order number) - * @param string|null $lineid __BT-132, From EN 16931__ An identifier for a position within an order placed by the buyer. Note: Reference is made to the order reference at the document level. - * @param DateTime|null $issueddate __BT-X-22, From EXTENDED__ Date of order + * @param string|null $issuerAssignedId __BT-X-21, From EXTENDED__ An identifier issued by the buyer for a referenced order (order number) + * @param string|null $lineId __BT-132, From EN 16931__ An identifier for a position within an order placed by the buyer. Note: Reference is made to the order reference at the document level. + * @param DateTime|null $issueDate __BT-X-22, From EXTENDED__ Date of order * @return ZugferdDocumentReader */ - public function getDocumentPositionBuyerOrderReferencedDocument(?string &$issuerassignedid, ?string &$lineid, ?DateTime &$issueddate): ZugferdDocumentReader + public function getDocumentPositionBuyerOrderReferencedDocument(?string &$issuerAssignedId, ?string &$lineId, ?DateTime &$issueDate): ZugferdDocumentReader { $tradeLineItem = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getIncludedSupplyChainTradeLineItem", []); $tradeLineItem = $tradeLineItem[$this->positionPointer]; - $issuerassignedid = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getBuyerOrderReferencedDocument.getIssuerAssignedID.value", ""); - $lineid = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getBuyerOrderReferencedDocument.getLineID.value", ""); - $issueddate = $this->getObjectHelper()->toDateTime( + $issuerAssignedId = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getBuyerOrderReferencedDocument.getIssuerAssignedID.value", ""); + $lineId = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getBuyerOrderReferencedDocument.getLineID.value", ""); + $issueDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getBuyerOrderReferencedDocument.getFormattedIssueDateTime.getDateTimeString.value", null), $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getBuyerOrderReferencedDocument.getFormattedIssueDateTime.getDateTimeString.getFormat", null) ); @@ -3138,19 +3136,19 @@ public function getDocumentPositionBuyerOrderReferencedDocument(?string &$issuer /** * Get details of the associated offer position * - * @param string|null $issuerassignedid __BT-X-310, From EXTENDED__ Offer number - * @param string|null $lineid __BT-X-311, From EXTENDED__ Position identifier within the offer - * @param DateTime|null $issueddate __BT-X-312, From EXTENDED__ Date of offder + * @param string|null $issuerAssignedId __BT-X-310, From EXTENDED__ Offer number + * @param string|null $lineId __BT-X-311, From EXTENDED__ Position identifier within the offer + * @param DateTime|null $issueDate __BT-X-312, From EXTENDED__ Date of offder * @return ZugferdDocumentReader */ - public function getDocumentPositionQuotationReferencedDocument(?string &$issuerassignedid, ?string &$lineid, ?DateTime &$issueddate): ZugferdDocumentReader + public function getDocumentPositionQuotationReferencedDocument(?string &$issuerAssignedId, ?string &$lineId, ?DateTime &$issueDate): ZugferdDocumentReader { $tradeLineItem = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getIncludedSupplyChainTradeLineItem", []); $tradeLineItem = $tradeLineItem[$this->positionPointer]; - $issuerassignedid = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getQuotationReferencedDocument.getIssuerAssignedID.value", ""); - $lineid = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getQuotationReferencedDocument.getLineID.value", ""); - $issueddate = $this->getObjectHelper()->toDateTime( + $issuerAssignedId = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getQuotationReferencedDocument.getIssuerAssignedID.value", ""); + $lineId = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getQuotationReferencedDocument.getLineID.value", ""); + $issueDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getQuotationReferencedDocument.getFormattedIssueDateTime.getDateTimeString.value", null), $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getQuotationReferencedDocument.getFormattedIssueDateTime.getDateTimeString.getFormat", null) ); @@ -3161,19 +3159,19 @@ public function getDocumentPositionQuotationReferencedDocument(?string &$issuera /** * Get details of the related contract position * - * @param string|null $issuerassignedid __BT-X-24, From EXTENDED__ The contract reference should be assigned once in the context of the specific trade relationship and for a defined period of time (contract number) - * @param string|null $lineid __BT-X-25, From EXTENDED__ Identifier of the according contract position - * @param DateTime|null $issueddate __BT-X-26, From EXTENDED__ Contract date + * @param string|null $issuerAssignedId __BT-X-24, From EXTENDED__ The contract reference should be assigned once in the context of the specific trade relationship and for a defined period of time (contract number) + * @param string|null $lineId __BT-X-25, From EXTENDED__ Identifier of the according contract position + * @param DateTime|null $issueDate __BT-X-26, From EXTENDED__ Contract date * @return ZugferdDocumentReader */ - public function getDocumentPositionContractReferencedDocument(?string &$issuerassignedid, ?string &$lineid, ?DateTime &$issueddate): ZugferdDocumentReader + public function getDocumentPositionContractReferencedDocument(?string &$issuerAssignedId, ?string &$lineId, ?DateTime &$issueDate): ZugferdDocumentReader { $tradeLineItem = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getIncludedSupplyChainTradeLineItem", []); $tradeLineItem = $tradeLineItem[$this->positionPointer]; - $issuerassignedid = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getContractReferencedDocument.getIssuerAssignedID.value", ""); - $lineid = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getContractReferencedDocument.getLineID.value", ""); - $issueddate = $this->getObjectHelper()->toDateTime( + $issuerAssignedId = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getContractReferencedDocument.getIssuerAssignedID.value", ""); + $lineId = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getContractReferencedDocument.getLineID.value", ""); + $issueDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getContractReferencedDocument.getFormattedIssueDateTime.getDateTimeString.value", null), $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getContractReferencedDocument.getFormattedIssueDateTime.getDateTimeString.getFormat", null) ); @@ -3223,16 +3221,16 @@ public function nextDocumentPositionAdditionalReferencedDocument(): bool * ZugferdDocumentReader::nextDocumentAdditionalReferencedDocument to seek between multiple additional referenced * documents * - * @param string|null $issuerassignedid __BT-X-27, From EXTENDED__ 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. - * @param string|null $typecode __BT-X-30, From EXTENDED__ Type of referenced document (See codelist UNTDID 1001) - * @param string|null $uriid __BT-X-28, From EXTENDED__ 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. - * @param string|null $lineid __BT-X-29, From EXTENDED__ The referenced position identifier in the additional document + * @param string|null $issuerAssignedId __BT-X-27, From EXTENDED__ 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. + * @param string|null $typeCode __BT-X-30, From EXTENDED__ Type of referenced document (See codelist UNTDID 1001) + * @param string|null $uriId __BT-X-28, From EXTENDED__ 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. + * @param string|null $lineId __BT-X-29, From EXTENDED__ The referenced position identifier in the additional document * @param string|null $name __BT-X-299, From EXTENDED__ A description of the document, e.g. Hourly billing, usage or consumption report, etc. - * @param string|null $reftypecode __BT-X-32, From EXTENDED__ 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. - * @param DateTime|null $issueddate __BT-X-33, From EXTENDED__ Document date + * @param string|null $refTypeCode __BT-X-32, From EXTENDED__ 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. + * @param DateTime|null $issueDate __BT-X-33, From EXTENDED__ Document date * @return ZugferdDocumentReader */ - public function getDocumentPositionAdditionalReferencedDocument(?string &$issuerassignedid, ?string &$typecode, ?string &$uriid, ?string &$lineid, ?string &$name, ?string &$reftypecode, ?DateTime &$issueddate): ZugferdDocumentReader + public function getDocumentPositionAdditionalReferencedDocument(?string &$issuerAssignedId, ?string &$typeCode, ?string &$uriId, ?string &$lineId, ?string &$name, ?string &$refTypeCode, ?DateTime &$issueDate): ZugferdDocumentReader { $tradeLineItem = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getIncludedSupplyChainTradeLineItem", []); $tradeLineItem = $tradeLineItem[$this->positionPointer]; @@ -3240,13 +3238,13 @@ public function getDocumentPositionAdditionalReferencedDocument(?string &$issuer $addRefDoc = $this->getObjectHelper()->ensureArray($this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeAgreement.getAdditionalReferencedDocument", [])); $addRefDoc = $addRefDoc[$this->positionAddRefDocPointer]; - $typecode = $this->getInvoiceValueByPathFrom($addRefDoc, "getTypeCode.value", ""); - $issuerassignedid = $this->getInvoiceValueByPathFrom($addRefDoc, "getIssuerAssignedID.value", ""); - $reftypecode = $this->getInvoiceValueByPathFrom($addRefDoc, "getReferenceTypeCode.value", ""); - $uriid = $this->getInvoiceValueByPathFrom($addRefDoc, "getURIID.value", ""); - $lineid = $this->getInvoiceValueByPathFrom($addRefDoc, "getLineID.value", ""); + $typeCode = $this->getInvoiceValueByPathFrom($addRefDoc, "getTypeCode.value", ""); + $issuerAssignedId = $this->getInvoiceValueByPathFrom($addRefDoc, "getIssuerAssignedID.value", ""); + $refTypeCode = $this->getInvoiceValueByPathFrom($addRefDoc, "getReferenceTypeCode.value", ""); + $uriId = $this->getInvoiceValueByPathFrom($addRefDoc, "getURIID.value", ""); + $lineId = $this->getInvoiceValueByPathFrom($addRefDoc, "getLineID.value", ""); $name = $this->getObjectHelper()->ensureArray($this->getInvoiceValueByPathFrom($addRefDoc, "getName.value", null)); - $issueddate = $this->getObjectHelper()->toDateTime( + $issueDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPathFrom($addRefDoc, "getFormattedIssueDateTime.getDateTimeString.value", null), $this->getInvoiceValueByPathFrom($addRefDoc, "getFormattedIssueDateTime.getDateTimeString.getFormat", null) ); @@ -3444,19 +3442,19 @@ public function getDocumentPositionSupplyChainEvent(?DateTime &$date): ZugferdDo /** * Get detailed information on the associated shipping notification (on position level) * - * @param string|null $issuerassignedid __BT-X-86, From EXTENDED__ Shipping notification number - * @param string|null $lineid __BT-X-87, From EXTENDED__ Shipping notification position - * @param DateTime|null $issueddate __BT-X-88, From EXTENDED__ Date of Shipping notification number + * @param string|null $issuerAssignedId __BT-X-86, From EXTENDED__ Shipping notification number + * @param string|null $lineId __BT-X-87, From EXTENDED__ Shipping notification position + * @param DateTime|null $issueDate __BT-X-88, From EXTENDED__ Date of Shipping notification number * @return ZugferdDocumentReader */ - public function getDocumentPositionDespatchAdviceReferencedDocument(?string &$issuerassignedid, ?string &$lineid = null, ?DateTime &$issueddate = null): ZugferdDocumentReader + public function getDocumentPositionDespatchAdviceReferencedDocument(?string &$issuerAssignedId, ?string &$lineId = null, ?DateTime &$issueDate = null): ZugferdDocumentReader { $tradeLineItem = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getIncludedSupplyChainTradeLineItem", []); $tradeLineItem = $tradeLineItem[$this->positionPointer]; - $issuerassignedid = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeDelivery.getDespatchAdviceReferencedDocument.getIssuerAssignedID.value", ""); - $lineid = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeDelivery.getDespatchAdviceReferencedDocument.getLineID.value", ""); - $issueddate = $this->getObjectHelper()->toDateTime( + $issuerAssignedId = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeDelivery.getDespatchAdviceReferencedDocument.getIssuerAssignedID.value", ""); + $lineId = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeDelivery.getDespatchAdviceReferencedDocument.getLineID.value", ""); + $issueDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPath("getSpecifiedLineTradeDelivery.getDespatchAdviceReferencedDocument.getFormattedIssueDateTime.getDateTimeString.value", ""), $this->getInvoiceValueByPath("getSpecifiedLineTradeDelivery.getDespatchAdviceReferencedDocument.getFormattedIssueDateTime,getDateTimeString.getFormat", "") ); @@ -3467,19 +3465,19 @@ public function getDocumentPositionDespatchAdviceReferencedDocument(?string &$is /** * Detailed information on the associated shipping notification (on position level) * - * @param string|null $issuerassignedid __BT-X-89, From EXTENDED__ Goods receipt number - * @param string|null $lineid __BT-X-90, From EXTENDED__ Goods receipt position - * @param DateTime|null $issueddate __BT-X-91, From EXTENDED__ Date of Goods receipt + * @param string|null $issuerAssignedId __BT-X-89, From EXTENDED__ Goods receipt number + * @param string|null $lineId __BT-X-90, From EXTENDED__ Goods receipt position + * @param DateTime|null $issueDate __BT-X-91, From EXTENDED__ Date of Goods receipt * @return ZugferdDocumentReader */ - public function getDocumentPositionReceivingAdviceReferencedDocument(?string &$issuerassignedid, ?string &$lineid, ?DateTime &$issueddate): ZugferdDocumentReader + public function getDocumentPositionReceivingAdviceReferencedDocument(?string &$issuerAssignedId, ?string &$lineId, ?DateTime &$issueDate): ZugferdDocumentReader { $tradeLineItem = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getIncludedSupplyChainTradeLineItem", []); $tradeLineItem = $tradeLineItem[$this->positionPointer]; - $issuerassignedid = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeDelivery.getReceivingAdviceReferencedDocument.getIssuerAssignedID.value", ""); - $lineid = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeDelivery.getReceivingAdviceReferencedDocument.getLineID.value", ""); - $issueddate = $this->getObjectHelper()->toDateTime( + $issuerAssignedId = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeDelivery.getReceivingAdviceReferencedDocument.getIssuerAssignedID.value", ""); + $lineId = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeDelivery.getReceivingAdviceReferencedDocument.getLineID.value", ""); + $issueDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPath("getSpecifiedLineTradeDelivery.getReceivingAdviceReferencedDocument.getFormattedIssueDateTime.getDateTimeString.value", ""), $this->getInvoiceValueByPath("getSpecifiedLineTradeDelivery.getReceivingAdviceReferencedDocument.getFormattedIssueDateTime,getDateTimeString.getFormat", "") ); @@ -3490,19 +3488,19 @@ public function getDocumentPositionReceivingAdviceReferencedDocument(?string &$i /** * Detailed information on the associated delivery note on position level * - * @param string|null $issuerassignedid __BT-X-92, From EXTENDED__ Delivery note number - * @param string|null $lineid __BT-X-93, From EXTENDED__ Delivery note position - * @param DateTime|null $issueddate __BT-X-94, From EXTENDED__ Date of Delivery note + * @param string|null $issuerAssignedId __BT-X-92, From EXTENDED__ Delivery note number + * @param string|null $lineId __BT-X-93, From EXTENDED__ Delivery note position + * @param DateTime|null $issueDate __BT-X-94, From EXTENDED__ Date of Delivery note * @return ZugferdDocumentReader */ - public function getDocumentPositionDeliveryNoteReferencedDocument(?string &$issuerassignedid, ?string &$lineid, ?DateTime &$issueddate): ZugferdDocumentReader + public function getDocumentPositionDeliveryNoteReferencedDocument(?string &$issuerAssignedId, ?string &$lineId, ?DateTime &$issueDate): ZugferdDocumentReader { $tradeLineItem = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getIncludedSupplyChainTradeLineItem", []); $tradeLineItem = $tradeLineItem[$this->positionPointer]; - $issuerassignedid = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeDelivery.getDeliveryNoteReferencedDocument.getIssuerAssignedID.value", ""); - $lineid = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeDelivery.getDeliveryNoteReferencedDocument.getLineID.value", ""); - $issueddate = $this->getObjectHelper()->toDateTime( + $issuerAssignedId = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeDelivery.getDeliveryNoteReferencedDocument.getIssuerAssignedID.value", ""); + $lineId = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeDelivery.getDeliveryNoteReferencedDocument.getLineID.value", ""); + $issueDate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPath("getSpecifiedLineTradeDelivery.getDeliveryNoteReferencedDocument.getFormattedIssueDateTime.getDateTimeString.value", ""), $this->getInvoiceValueByPath("getSpecifiedLineTradeDelivery.getDeliveryNoteReferencedDocument.getFormattedIssueDateTime,getDateTimeString.getFormat", "") ); @@ -3741,6 +3739,32 @@ public function getDocumentPositionLineSummationSimple(?float &$lineTotalAmount) return $this; } + /** + * Get detailed information on item totals (with support for EXTENDED profile) + * + * @param float $lineTotalAmount __BT-131, From BASIC__ The total amount of the invoice item + * @param float $chargeTotalAmount __BT-X-327, From EXTENDED__ Total amount of item surcharges + * @param float $allowanceTotalAmount __BT-X-328, From EXTENDED__ Total amount of item discounts + * @param float $taxTotalAmount __BT-X-329, From EXTENDED__ Total amount of item taxes + * @param float $grandTotalAmount __BT-X-330, From EXTENDED__ Total gross amount of the item + * @param float $totalAllowanceChargeAmount __BT-X-98, From EXTENDED__ Total amount of item surcharges and discounts + * @return ZugferdDocumentReader + */ + public function getDocumentPositionLineSummationExt(?float &$lineTotalAmount, ?float &$chargeTotalAmount, ?float &$allowanceTotalAmount, ?float &$taxTotalAmount, ?float &$grandTotalAmount, ?float &$totalAllowanceChargeAmount): ZugferdDocumentReader + { + $tradeLineItem = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getIncludedSupplyChainTradeLineItem", []); + $tradeLineItem = $tradeLineItem[$this->positionPointer]; + + $lineTotalAmount = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeSettlement.getSpecifiedTradeSettlementLineMonetarySummation.getLineTotalAmount.value", 0.0); + $chargeTotalAmount = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeSettlement.getSpecifiedTradeSettlementLineMonetarySummation.getChargeTotalAmount.value", 0.0); + $allowanceTotalAmount = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeSettlement.getSpecifiedTradeSettlementLineMonetarySummation.getAllowanceTotalAmount.value", 0.0); + $taxTotalAmount = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeSettlement.getSpecifiedTradeSettlementLineMonetarySummation.getTaxTotalAmount.value", 0.0); + $grandTotalAmount = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeSettlement.getSpecifiedTradeSettlementLineMonetarySummation.getGrandTotalAmount.value", 0.0); + $totalAllowanceChargeAmount = $this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeSettlement.getSpecifiedTradeSettlementLineMonetarySummation.getTotalAllowanceChargeAmount.value", 0.0); + + return $this; + } + //TODO: Seeker for documents position TradeAccountingAccount /** diff --git a/src/ZugferdObjectHelper.php b/src/ZugferdObjectHelper.php index 58e8f38..36536f8 100644 --- a/src/ZugferdObjectHelper.php +++ b/src/ZugferdObjectHelper.php @@ -146,12 +146,12 @@ public function getCodeType2(?string $value = null, ?string $listID = null, ?str return null; } - $codetype = $this->createClassInstance('udt\CodeType', $value); + $codeType = $this->createClassInstance('udt\CodeType', $value); - $this->tryCall($codetype, 'setListID', $listID); - $this->tryCall($codetype, 'setListVersionID', $listVersionID); + $this->tryCall($codeType, 'setListID', $listID); + $this->tryCall($codeType, 'setListVersionID', $listVersionID); - return $codetype; + return $codeType; } /** @@ -166,11 +166,11 @@ public function getIndicatorType(?bool $value = null): ?object return null; } - $indicator = $this->createClassInstance('udt\IndicatorType'); + $indicatorType = $this->createClassInstance('udt\IndicatorType'); - $this->tryCall($indicator, 'setIndicator', $value); + $this->tryCall($indicatorType, 'setIndicator', $value); - return $indicator; + return $indicatorType; } /** @@ -186,83 +186,84 @@ public function getNoteType(?string $content = null, ?string $contentCode = null if (self::isAllNullOrEmpty(func_get_args())) { return null; } + if (self::isNullOrEmpty($content)) { return null; } - $note = $this->createClassInstance('ram\NoteType'); + $noteType = $this->createClassInstance('ram\NoteType'); - $this->tryCall($note, 'setContentCode', $this->getCodeType($contentCode)); - $this->tryCall($note, 'setSubjectCode', $this->getCodeType($subjectCode)); - $this->tryCall($note, 'setContent', $this->getTextType($content)); + $this->tryCall($noteType, 'setContentCode', $this->getCodeType($contentCode)); + $this->tryCall($noteType, 'setSubjectCode', $this->getCodeType($subjectCode)); + $this->tryCall($noteType, 'setContent', $this->getTextType($content)); - return $note; + return $noteType; } /** * Get formatted issue date * - * @param DateTime|null $datetime + * @param DateTime|null $dateTime * @return object|null */ - public function getFormattedDateTimeType(?DateTime $datetime = null): ?object + public function getFormattedDateTimeType(?DateTime $dateTime = null): ?object { if (self::isAllNullOrEmpty(func_get_args())) { return null; } - $date2 = $this->createClassInstance('qdt\FormattedDateTimeType\DateTimeStringAType'); - $this->tryCall($date2, "value", $datetime->format("Ymd")); - $this->tryCall($date2, "setFormat", "102"); + $dateTimeStringAType = $this->createClassInstance('qdt\FormattedDateTimeType\DateTimeStringAType'); + $this->tryCall($dateTimeStringAType, "value", $dateTime->format("Ymd")); + $this->tryCall($dateTimeStringAType, "setFormat", "102"); - $date = $this->createClassInstance('qdt\FormattedDateTimeType'); - $this->tryCall($date, "setDateTimeString", $date2); + $formattedDateTimeType = $this->createClassInstance('qdt\FormattedDateTimeType'); + $this->tryCall($formattedDateTimeType, "setDateTimeString", $dateTimeStringAType); - return $date; + return $formattedDateTimeType; } /** * Get formatted issue date * - * @param DateTime|null $datetime + * @param DateTime|null $dateTime * @return object|null */ - public function getDateTimeType(?DateTime $datetime = null): ?object + public function getDateTimeType(?DateTime $dateTime = null): ?object { if (self::isAllNullOrEmpty(func_get_args())) { return null; } - $date2 = $this->createClassInstance('udt\DateTimeType\DateTimeStringAType'); - $this->tryCall($date2, "value", $datetime->format("Ymd")); - $this->tryCall($date2, "setFormat", "102"); + $dateTimeStringAType = $this->createClassInstance('udt\DateTimeType\DateTimeStringAType'); + $this->tryCall($dateTimeStringAType, "value", $dateTime->format("Ymd")); + $this->tryCall($dateTimeStringAType, "setFormat", "102"); - $date = $this->createClassInstance('udt\DateTimeType'); - $this->tryCall($date, "setDateTimeString", $date2); + $dateTimeType = $this->createClassInstance('udt\DateTimeType'); + $this->tryCall($dateTimeType, "setDateTimeString", $dateTimeStringAType); - return $date; + return $dateTimeType; } /** * Get date * - * @param DateTime|null $datetime + * @param DateTime|null $dateTime * @return object|null */ - public function getDateType(?DateTime $datetime = null): ?object + public function getDateType(?DateTime $dateTime = null): ?object { if (self::isAllNullOrEmpty(func_get_args())) { return null; } - $date2 = $this->createClassInstance('udt\DateType\DateStringAType'); - $this->tryCall($date2, "value", $datetime->format("Ymd")); - $this->tryCall($date2, "setFormat", "102"); + $dateStringAType = $this->createClassInstance('udt\DateType\DateStringAType'); + $this->tryCall($dateStringAType, "value", $dateTime->format("Ymd")); + $this->tryCall($dateStringAType, "setFormat", "102"); - $date = $this->createClassInstance('udt\DateType'); - $this->tryCall($date, "setDateString", $date2); + $dateType = $this->createClassInstance('udt\DateType'); + $this->tryCall($dateType, "setDateString", $dateStringAType); - return $date; + return $dateType; } /** @@ -277,16 +278,17 @@ public function getAmountType(?float $value, ?string $currencyCode = null): ?obj if (self::isAllNullOrEmpty(func_get_args())) { return null; } + if (self::isNullOrEmpty($value)) { return null; } - $amount = $this->createClassInstance('udt\AmountType'); + $amountType = $this->createClassInstance('udt\AmountType'); - $this->tryCall($amount, "value", $value); - $this->tryCall($amount, "setCurrencyID", $currencyCode); + $this->tryCall($amountType, "value", $value); + $this->tryCall($amountType, "setCurrencyID", $currencyCode); - return $amount; + return $amountType; } /** @@ -301,11 +303,11 @@ public function getPercentType(?float $value): ?object return null; } - $amount = $this->createClassInstance('udt\PercentType'); + $percentType = $this->createClassInstance('udt\PercentType'); - $this->tryCall($amount, "value", $value); + $this->tryCall($percentType, "value", $value); - return $amount; + return $percentType; } /** @@ -320,16 +322,17 @@ public function getQuantityType(?float $value, ?string $unitCode = null): ?objec if (self::isAllNullOrEmpty(func_get_args())) { return null; } + if (self::isNullOrEmpty($value)) { return null; } - $amount = $this->createClassInstance('udt\QuantityType'); + $quantityType = $this->createClassInstance('udt\QuantityType'); - $this->tryCall($amount, "value", $value); - $this->tryCall($amount, "setUnitCode", $unitCode); + $this->tryCall($quantityType, "value", $value); + $this->tryCall($quantityType, "setUnitCode", $unitCode); - return $amount; + return $quantityType; } /** @@ -344,16 +347,17 @@ public function getMeasureType(?float $value, ?string $unitCode = null): ?object if (self::isAllNullOrEmpty(func_get_args())) { return null; } + if (self::isNullOrEmpty($value)) { return null; } - $measure = $this->createClassInstance('udt\MeasureType'); + $measureType = $this->createClassInstance('udt\MeasureType'); - $this->tryCall($measure, "value", $value); - $this->tryCall($measure, "setUnitCode", $unitCode); + $this->tryCall($measureType, "value", $value); + $this->tryCall($measureType, "setUnitCode", $unitCode); - return $measure; + return $measureType; } /** @@ -387,11 +391,11 @@ public function getTaxCategoryCodeType(?string $taxCategoryCode = null): ?object return null; } - $category = $this->createClassInstance('qdt\TaxCategoryCodeType'); + $taxCategoryCodeType = $this->createClassInstance('qdt\TaxCategoryCodeType'); - $this->tryCall($category, "value", $taxCategoryCode); + $this->tryCall($taxCategoryCodeType, "value", $taxCategoryCode); - return $category; + return $taxCategoryCodeType; } /** @@ -406,11 +410,11 @@ public function getTaxTypeCodeType(?string $taxTypeCode = null): ?object return null; } - $category = $this->createClassInstance('qdt\TaxTypeCodeType'); + $taxTypeCodeType = $this->createClassInstance('qdt\TaxTypeCodeType'); - $this->tryCall($category, "value", $taxTypeCode); + $this->tryCall($taxTypeCodeType, "value", $taxTypeCode); - return $category; + return $taxTypeCodeType; } /** @@ -425,105 +429,105 @@ public function getTimeReferenceCodeType(?string $value = null): ?object return null; } - $category = $this->createClassInstance('qdt\TimeReferenceCodeType'); + $timeReferenceCodeType = $this->createClassInstance('qdt\TimeReferenceCodeType'); - $this->tryCall($category, "value", $value); + $this->tryCall($timeReferenceCodeType, "value", $value); - return $category; + return $timeReferenceCodeType; } /** * Get Specified Period type * - * @param DateTime|null $startdate + * @param DateTime|null $startDate * @param DateTime|null $endDate - * @param DateTime|null $completedate + * @param DateTime|null $completeDate * @param string|null $description * @return object|null */ - public function getSpecifiedPeriodType(?DateTime $startdate = null, ?DateTime $endDate = null, ?DateTime $completedate = null, ?string $description = null): ?object + public function getSpecifiedPeriodType(?DateTime $startDate = null, ?DateTime $endDate = null, ?DateTime $completeDate = null, ?string $description = null): ?object { if (self::isAllNullOrEmpty(func_get_args())) { return null; } - $period = $this->createClassInstance('ram\SpecifiedPeriodType'); + $specifiedPeriodType = $this->createClassInstance('ram\SpecifiedPeriodType'); - $this->tryCall($period, 'setDescription', $this->getTextType($description)); - $this->tryCall($period, 'setStartDateTime', $this->getDateTimeType($startdate)); - $this->tryCall($period, 'setEndDateTime', $this->getDateTimeType($endDate)); - $this->tryCall($period, 'setCompleteDateTime', $this->getDateTimeType($completedate)); + $this->tryCall($specifiedPeriodType, 'setDescription', $this->getTextType($description)); + $this->tryCall($specifiedPeriodType, 'setStartDateTime', $this->getDateTimeType($startDate)); + $this->tryCall($specifiedPeriodType, 'setEndDateTime', $this->getDateTimeType($endDate)); + $this->tryCall($specifiedPeriodType, 'setCompleteDateTime', $this->getDateTimeType($completeDate)); - return $period; + return $specifiedPeriodType; } /** * Get a BinaryObjectType object * - * @param string|null $binarydata + * @param string|null $binaryData * @param string|null $mimetype * @param string|null $filename * @return object|null */ - public function getBinaryObjectType(?string $binarydata = null, ?string $mimetype = null, ?string $filename = null): ?object + public function getBinaryObjectType(?string $binaryData = null, ?string $mimetype = null, ?string $filename = null): ?object { - if (self::isNullOrEmpty($binarydata) || self::isNullOrEmpty($mimetype) || self::isNullOrEmpty($filename)) { + if (self::isNullOrEmpty($binaryData) || self::isNullOrEmpty($mimetype) || self::isNullOrEmpty($filename)) { return null; } - $binaryobject = $this->createClassInstance('udt\BinaryObjectType'); + $binaryObjectType = $this->createClassInstance('udt\BinaryObjectType'); - $this->tryCall($binaryobject, "value", $binarydata); - $this->tryCall($binaryobject, "setMimeCode", $mimetype); - $this->tryCall($binaryobject, "setFilename", $filename); + $this->tryCall($binaryObjectType, "value", $binaryData); + $this->tryCall($binaryObjectType, "setMimeCode", $mimetype); + $this->tryCall($binaryObjectType, "setFilename", $filename); - return $binaryobject; + return $binaryObjectType; } /** * Get a reference document object * - * @param string|null $issuerassignedid - * @param string|null $uriid - * @param string|null $lineid - * @param string|null $typecode + * @param string|null $issuerAssignedId + * @param string|null $uriId + * @param string|null $lineId + * @param string|null $typeCode * @param string|array|null $name - * @param string|null $reftypecode - * @param DateTime|null $issueddate - * @param string|null $binarydatafilename + * @param string|null $refTypeCode + * @param DateTime|null $issueDate + * @param string|null $binaryDataFilename * @return object|null */ - public function getReferencedDocumentType(?string $issuerassignedid = null, ?string $uriid = null, ?string $lineid = null, ?string $typecode = null, $name = null, ?string $reftypecode = null, ?DateTime $issueddate = null, ?string $binarydatafilename = null): ?object + public function getReferencedDocumentType(?string $issuerAssignedId = null, ?string $uriId = null, ?string $lineId = null, ?string $typeCode = null, $name = null, ?string $refTypeCode = null, ?DateTime $issueDate = null, ?string $binaryDataFilename = null): ?object { if (self::isAllNullOrEmpty(func_get_args())) { return null; } - $refdoctype = $this->createClassInstance('ram\ReferencedDocumentType', $issuerassignedid); + $referencedDocumentType = $this->createClassInstance('ram\ReferencedDocumentType', $issuerAssignedId); - $this->tryCall($refdoctype, 'setIssuerAssignedID', $this->getIdType($issuerassignedid)); - $this->tryCall($refdoctype, 'setURIID', $this->getIdType($uriid)); - $this->tryCall($refdoctype, 'setLineID', $this->getIdType($lineid)); - $this->tryCall($refdoctype, 'setTypeCode', $this->getCodeType($typecode)); - $this->tryCall($refdoctype, 'setReferenceTypeCode', $this->getCodeType($reftypecode)); - $this->tryCall($refdoctype, 'setFormattedIssueDateTime', $this->getFormattedDateTimeType($issueddate)); + $this->tryCall($referencedDocumentType, 'setIssuerAssignedID', $this->getIdType($issuerAssignedId)); + $this->tryCall($referencedDocumentType, 'setURIID', $this->getIdType($uriId)); + $this->tryCall($referencedDocumentType, 'setLineID', $this->getIdType($lineId)); + $this->tryCall($referencedDocumentType, 'setTypeCode', $this->getCodeType($typeCode)); + $this->tryCall($referencedDocumentType, 'setReferenceTypeCode', $this->getCodeType($refTypeCode)); + $this->tryCall($referencedDocumentType, 'setFormattedIssueDateTime', $this->getFormattedDateTimeType($issueDate)); foreach ($this->ensureStringArray($name) as $name) { - $this->tryCallAll($refdoctype, ['addToName', 'setName'], $this->getTextType($name)); + $this->tryCallAll($referencedDocumentType, ['addToName', 'setName'], $this->getTextType($name)); } - if (StringUtils::stringIsNullOrEmpty($binarydatafilename) === false) { - if (FileUtils::fileExists($binarydatafilename)) { + if (StringUtils::stringIsNullOrEmpty($binaryDataFilename) === false) { + if (FileUtils::fileExists($binaryDataFilename)) { $mimeDb = new MimeDb(); - $mimeTypes = $mimeDb->findAllMimeTypesByExtension(FileUtils::getFileExtension($binarydatafilename)); + $mimeTypes = $mimeDb->findAllMimeTypesByExtension(FileUtils::getFileExtension($binaryDataFilename)); if (!is_null($mimeTypes)) { $mimeTypesSupported = array_intersect($mimeTypes, self::SUPPORTEDTMIMETYPES); if (count($mimeTypesSupported) > 0) { - $content = FileUtils::fileToBase64($binarydatafilename); + $content = FileUtils::fileToBase64($binaryDataFilename); $this->tryCall( - $refdoctype, + $referencedDocumentType, 'setAttachmentBinaryObject', - $this->getBinaryObjectType($content, $mimeTypesSupported[0], FileUtils::getFilenameWithExtension($binarydatafilename)) + $this->getBinaryObjectType($content, $mimeTypesSupported[0], FileUtils::getFilenameWithExtension($binaryDataFilename)) ); } else { throw new ZugferdUnsupportedMimetype(); @@ -534,7 +538,7 @@ public function getReferencedDocumentType(?string $issuerassignedid = null, ?str } } - return $refdoctype; + return $referencedDocumentType; } /** @@ -549,9 +553,9 @@ public function getCountryIDType(?string $id = null): ?object return null; } - $countryId = $this->createClassInstance('qdt\CountryIDType', $id); + $countryIDType = $this->createClassInstance('qdt\CountryIDType', $id); - return $countryId; + return $countryIDType; } /** @@ -566,200 +570,202 @@ public function getTradeCountryType(?string $id = null): ?object return null; } - $tradeCountry = $this->createClassInstance('ram\TradeCountryType'); + $tradeCountryType = $this->createClassInstance('ram\TradeCountryType'); - $this->tryCall($tradeCountry, 'setID', $this->getCountryIDType($id)); + $this->tryCall($tradeCountryType, 'setID', $this->getCountryIDType($id)); - return $tradeCountry; + return $tradeCountryType; } /** - * Undocumented function + * Return the main invoice object * * @return \horstoeko\zugferd\entities\basic\rsm\CrossIndustryInvoice|\horstoeko\zugferd\entities\basicwl\rsm\CrossIndustryInvoice|\horstoeko\zugferd\entities\en16931\rsm\CrossIndustryInvoice|\horstoeko\zugferd\entities\extended\rsm\CrossIndustryInvoice */ public function getCrossIndustryInvoice() { - $result = $this->createClassInstance('rsm\CrossIndustryInvoice'); - $result->setExchangedDocumentContext($this->createClassInstance('ram\ExchangedDocumentContextType')); - $result->setExchangedDocument($this->createClassInstance('ram\ExchangedDocumentType')); - $result->setSupplyChainTradeTransaction($this->createClassInstance('ram\SupplyChainTradeTransactionType')); - $result->getExchangedDocumentContext()->setGuidelineSpecifiedDocumentContextParameter($this->createClassInstance('ram\DocumentContextParameterType')); - $result->getExchangedDocumentContext()->getGuidelineSpecifiedDocumentContextParameter()->setID($this->getIdType($this->profiledef['contextparameter'])); + $crossIndustryInvoice = $this->createClassInstance('rsm\CrossIndustryInvoice'); + + $crossIndustryInvoice->setExchangedDocumentContext($this->createClassInstance('ram\ExchangedDocumentContextType')); + $crossIndustryInvoice->setExchangedDocument($this->createClassInstance('ram\ExchangedDocumentType')); + $crossIndustryInvoice->setSupplyChainTradeTransaction($this->createClassInstance('ram\SupplyChainTradeTransactionType')); + $crossIndustryInvoice->getExchangedDocumentContext()->setGuidelineSpecifiedDocumentContextParameter($this->createClassInstance('ram\DocumentContextParameterType')); + $crossIndustryInvoice->getExchangedDocumentContext()->getGuidelineSpecifiedDocumentContextParameter()->setID($this->getIdType($this->profiledef['contextparameter'])); if ($this->profiledef['businessprocess']) { - $result->getExchangedDocumentContext()->setBusinessProcessSpecifiedDocumentContextParameter($this->createClassInstance('ram\DocumentContextParameterType')); - $result->getExchangedDocumentContext()->getBusinessProcessSpecifiedDocumentContextParameter()->setID($this->getIdType($this->profiledef['businessprocess'])); + $crossIndustryInvoice->getExchangedDocumentContext()->setBusinessProcessSpecifiedDocumentContextParameter($this->createClassInstance('ram\DocumentContextParameterType')); + $crossIndustryInvoice->getExchangedDocumentContext()->getBusinessProcessSpecifiedDocumentContextParameter()->setID($this->getIdType($this->profiledef['businessprocess'])); } - $result->getSupplyChainTradeTransaction()->setApplicableHeaderTradeAgreement($this->createClassInstance('ram\HeaderTradeAgreementType')); - $result->getSupplyChainTradeTransaction()->setApplicableHeaderTradeDelivery($this->createClassInstance('ram\HeaderTradeDeliveryType')); - $result->getSupplyChainTradeTransaction()->setApplicableHeaderTradeSettlement($this->createClassInstance('ram\HeaderTradeSettlementType')); + $crossIndustryInvoice->getSupplyChainTradeTransaction()->setApplicableHeaderTradeAgreement($this->createClassInstance('ram\HeaderTradeAgreementType')); + $crossIndustryInvoice->getSupplyChainTradeTransaction()->setApplicableHeaderTradeDelivery($this->createClassInstance('ram\HeaderTradeDeliveryType')); + $crossIndustryInvoice->getSupplyChainTradeTransaction()->setApplicableHeaderTradeSettlement($this->createClassInstance('ram\HeaderTradeSettlementType')); - return $result; + return $crossIndustryInvoice; } /** * Tradeparty type * * @param string|null $name - * @param string|null $ID + * @param string|null $id * @param string|null $description * @return object|null */ - public function getTradeParty(?string $name = null, ?string $ID = null, ?string $description = null): ?object + public function getTradeParty(?string $name = null, ?string $id = null, ?string $description = null): ?object { if (self::isAllNullOrEmpty(func_get_args())) { return null; } - return $this->getTradePartyAllowEmpty($name, $ID, $description); + return $this->getTradePartyAllowEmpty($name, $id, $description); } /** * Tradeparty type (allow all nulls) * * @param string|null $name - * @param string|null $ID + * @param string|null $id * @param string|null $description * @return object|null */ - public function getTradePartyAllowEmpty(?string $name = null, ?string $ID = null, ?string $description = null): ?object + public function getTradePartyAllowEmpty(?string $name = null, ?string $id = null, ?string $description = null): ?object { - $tradeParty = $this->createClassInstance('ram\TradePartyType'); + $tradePartyType = $this->createClassInstance('ram\TradePartyType'); - $this->tryCall($tradeParty, "addToID", $this->getIdType($ID)); - $this->tryCall($tradeParty, "setName", $this->getTextType($name)); - $this->tryCall($tradeParty, "setDescription", $this->getTextType($description)); + $this->tryCall($tradePartyType, "addToID", $this->getIdType($id)); + $this->tryCall($tradePartyType, "setName", $this->getTextType($name)); + $this->tryCall($tradePartyType, "setDescription", $this->getTextType($description)); - return $tradeParty; + return $tradePartyType; } /** * Address type * - * @param string|null $lineone - * @param string|null $linetwo - * @param string|null $linethree - * @param string|null $postcode + * @param string|null $lineOne + * @param string|null $lineTwo + * @param string|null $lineThree + * @param string|null $postCode * @param string|null $city * @param string|null $country - * @param string|null $subdivision + * @param string|null $subDivision * @return object|null */ - public function getTradeAddress(?string $lineone = null, ?string $linetwo = null, ?string $linethree = null, ?string $postcode = null, ?string $city = null, ?string $country = null, ?string $subdivision = null): ?object + public function getTradeAddress(?string $lineOne = null, ?string $lineTwo = null, ?string $lineThree = null, ?string $postCode = null, ?string $city = null, ?string $country = null, ?string $subDivision = null): ?object { if (self::isAllNullOrEmpty(func_get_args())) { return null; } - $address = $this->createClassInstance('ram\TradeAddressType'); + $tradeAddressType = $this->createClassInstance('ram\TradeAddressType'); - $this->tryCall($address, "setLineOne", $this->getTextType($lineone)); - $this->tryCall($address, "setLineTwo", $this->getTextType($linetwo)); - $this->tryCall($address, "setLineThree", $this->getTextType($linethree)); - $this->tryCall($address, "setPostcodeCode", $this->getCodeType($postcode)); - $this->tryCall($address, "setCityName", $this->getTextType($city)); - $this->tryCall($address, "setCountryID", $this->getCountryIDType($country)); - $this->tryCall($address, "setCountrySubDivisionName", $this->getTextType($subdivision)); + $this->tryCall($tradeAddressType, "setLineOne", $this->getTextType($lineOne)); + $this->tryCall($tradeAddressType, "setLineTwo", $this->getTextType($lineTwo)); + $this->tryCall($tradeAddressType, "setLineThree", $this->getTextType($lineThree)); + $this->tryCall($tradeAddressType, "setPostcodeCode", $this->getCodeType($postCode)); + $this->tryCall($tradeAddressType, "setCityName", $this->getTextType($city)); + $this->tryCall($tradeAddressType, "setCountryID", $this->getCountryIDType($country)); + $this->tryCall($tradeAddressType, "setCountrySubDivisionName", $this->getTextType($subDivision)); - return $address; + return $tradeAddressType; } /** * Legal organization type * - * @param string|null $legalorgid - * @param string|null $legalorgtype - * @param string|null $legalorgname + * @param string|null $legalOrgId + * @param string|null $legalOrgType + * @param string|null $legalOrgName * @return object|null */ - public function getLegalOrganization(?string $legalorgid = null, ?string $legalorgtype = null, ?string $legalorgname = null): ?object + public function getLegalOrganization(?string $legalOrgId = null, ?string $legalOrgType = null, ?string $legalOrgName = null): ?object { if (self::isAllNullOrEmpty(func_get_args())) { return null; } - $legalorg = $this->createClassInstance('ram\LegalOrganizationType', $legalorgname); + $legalOrganizationType = $this->createClassInstance('ram\LegalOrganizationType', $legalOrgName); - $this->tryCall($legalorg, "setID", $this->getIdType($legalorgid, $legalorgtype)); - $this->tryCall($legalorg, "setTradingBusinessName", $this->getTextType($legalorgname)); + $this->tryCall($legalOrganizationType, "setID", $this->getIdType($legalOrgId, $legalOrgType)); + $this->tryCall($legalOrganizationType, "setTradingBusinessName", $this->getTextType($legalOrgName)); - return $legalorg; + return $legalOrganizationType; } /** * Contact type * - * @param string|null $contactpersonname - * @param string|null $contactdepartmentname - * @param string|null $contactphoneno - * @param string|null $contactfaxno - * @param string|null $contactemailaddr + * @param string|null $contactPersonName + * @param string|null $contactDepartmentName + * @param string|null $contactPhoneNo + * @param string|null $contactFaxNo + * @param string|null $contactEmailAddress * @return object|null */ - public function getTradeContact(?string $contactpersonname = null, ?string $contactdepartmentname = null, ?string $contactphoneno = null, ?string $contactfaxno = null, ?string $contactemailaddr = null): ?object + public function getTradeContact(?string $contactPersonName = null, ?string $contactDepartmentName = null, ?string $contactPhoneNo = null, ?string $contactFaxNo = null, ?string $contactEmailAddress = null): ?object { if (self::isAllNullOrEmpty(func_get_args())) { return null; } - $contact = $this->createClassInstance('ram\TradeContactType', $contactpersonname); - $contactphone = $this->getUniversalCommunicationType($contactphoneno, null, null); - $contactfax = $this->getUniversalCommunicationType($contactfaxno, null, null); - $contactemail = $this->getUniversalCommunicationType(null, $contactemailaddr); + $tradeContactType = $this->createClassInstance('ram\TradeContactType', $contactPersonName); + + $contactPhoneNo = $this->getUniversalCommunicationType($contactPhoneNo, null, null); + $contactFaxNo = $this->getUniversalCommunicationType($contactFaxNo, null, null); + $contactEmailAddress = $this->getUniversalCommunicationType(null, $contactEmailAddress); - $this->tryCall($contact, "setPersonName", $this->getTextType($contactpersonname)); - $this->tryCall($contact, "setDepartmentName", $this->getTextType($contactdepartmentname)); - $this->tryCall($contact, "setTelephoneUniversalCommunication", $contactphone); - $this->tryCall($contact, "setFaxUniversalCommunication", $contactfax); - $this->tryCall($contact, "setEmailURIUniversalCommunication", $contactemail); + $this->tryCall($tradeContactType, "setPersonName", $this->getTextType($contactPersonName)); + $this->tryCall($tradeContactType, "setDepartmentName", $this->getTextType($contactDepartmentName)); + $this->tryCall($tradeContactType, "setTelephoneUniversalCommunication", $contactPhoneNo); + $this->tryCall($tradeContactType, "setFaxUniversalCommunication", $contactFaxNo); + $this->tryCall($tradeContactType, "setEmailURIUniversalCommunication", $contactEmailAddress); - return $contact; + return $tradeContactType; } /** * Communication type * * @param string|null $number - * @param string|null $uriid - * @param string|null $urischeme + * @param string|null $uriId + * @param string|null $uriScheme * @return object|null */ - public function getUniversalCommunicationType(?string $number = null, ?string $uriid = null, ?string $urischeme = null): ?object + public function getUniversalCommunicationType(?string $number = null, ?string $uriId = null, ?string $uriScheme = null): ?object { if (self::isAllNullOrEmpty(func_get_args())) { return null; } - $communication = $this->createClassInstance('ram\UniversalCommunicationType'); + $communicationType = $this->createClassInstance('ram\UniversalCommunicationType'); - $this->tryCall($communication, "setCompleteNumber", $this->getTextType($number)); - $this->tryCall($communication, "setURIID", $this->getIdType($uriid, $urischeme)); + $this->tryCall($communicationType, "setCompleteNumber", $this->getTextType($number)); + $this->tryCall($communicationType, "setURIID", $this->getIdType($uriId, $uriScheme)); - return $communication; + return $communicationType; } /** * Tax registration type * - * @param string|null $taxregtype - * @param string|null $taxregid + * @param string|null $taxRegType + * @param string|null $taxRegId * @return object|null */ - public function getTaxRegistrationType(?string $taxregtype = null, ?string $taxregid = null): ?object + public function getTaxRegistrationType(?string $taxRegType = null, ?string $taxRegId = null): ?object { - if (self::isNullOrEmpty($taxregtype)) { + if (self::isNullOrEmpty($taxRegType)) { return null; } - if (self::isNullOrEmpty($taxregid)) { + if (self::isNullOrEmpty($taxRegId)) { return null; } - $taxreg = $this->createClassInstance('ram\TaxRegistrationType'); + $taxRegistrationType = $this->createClassInstance('ram\TaxRegistrationType'); - $this->tryCall($taxreg, "setID", $this->getIdType($taxregid, $taxregtype)); + $this->tryCall($taxRegistrationType, "setID", $this->getIdType($taxRegId, $taxRegType)); - return $taxreg; + return $taxRegistrationType; } /** @@ -774,11 +780,11 @@ public function getTradeDeliveryTermsType(?string $code = null): ?object return null; } - $deliveryterms = $this->createClassInstance('ram\TradeDeliveryTermsType'); + $tradeDeliveryTermsType = $this->createClassInstance('ram\TradeDeliveryTermsType'); - $this->tryCall($deliveryterms, "setDeliveryTypeCode", $this->getTradeDeliveryTermsCodeType($code)); + $this->tryCall($tradeDeliveryTermsType, "setDeliveryTypeCode", $this->getTradeDeliveryTermsCodeType($code)); - return $deliveryterms; + return $tradeDeliveryTermsType; } /** @@ -809,12 +815,12 @@ public function getProcuringProjectType(?string $id = null, ?string $name = null return null; } - $procuringproject = $this->createClassInstance('ram\ProcuringProjectType'); + $procuringProjectType = $this->createClassInstance('ram\ProcuringProjectType'); - $this->tryCall($procuringproject, "setID", $this->getIdType($id)); - $this->tryCall($procuringproject, "setName", $this->getTextType($name)); + $this->tryCall($procuringProjectType, "setID", $this->getIdType($id)); + $this->tryCall($procuringProjectType, "setName", $this->getTextType($name)); - return $procuringproject; + return $procuringProjectType; } /** @@ -829,11 +835,11 @@ public function getSupplyChainEventType(?DateTime $date = null): ?object return null; } - $supplychainevent = $this->createClassInstance('ram\SupplyChainEventType'); + $supplyChainEventType = $this->createClassInstance('ram\SupplyChainEventType'); - $this->tryCall($supplychainevent, "setOccurrenceDateTime", $this->getDateTimeType($date)); + $this->tryCall($supplyChainEventType, "setOccurrenceDateTime", $this->getDateTimeType($date)); - return $supplychainevent; + return $supplyChainEventType; } /** @@ -850,12 +856,12 @@ public function getTradeSettlementFinancialCardType(?string $type = null, ?strin return null; } - $card = $this->createClassInstance('ram\TradeSettlementFinancialCardType'); + $tradeSettlementFinancialCardType = $this->createClassInstance('ram\TradeSettlementFinancialCardType'); - $this->tryCall($card, "setID", $this->getIdType($id, $type)); - $this->tryCall($card, "setCardholderName", $this->getTextType($holderName)); + $this->tryCall($tradeSettlementFinancialCardType, "setID", $this->getIdType($id, $type)); + $this->tryCall($tradeSettlementFinancialCardType, "setCardholderName", $this->getTextType($holderName)); - return $card; + return $tradeSettlementFinancialCardType; } /** @@ -870,11 +876,11 @@ public function getDebtorFinancialAccountType(?string $iban = null): ?object return null; } - $card = $this->createClassInstance('ram\DebtorFinancialAccountType'); + $debtorFinancialAccountType = $this->createClassInstance('ram\DebtorFinancialAccountType'); - $this->tryCall($card, "setIBANID", $this->getIdType($iban)); + $this->tryCall($debtorFinancialAccountType, "setIBANID", $this->getIdType($iban)); - return $card; + return $debtorFinancialAccountType; } /** @@ -882,22 +888,22 @@ public function getDebtorFinancialAccountType(?string $iban = null): ?object * * @param string|null $iban * @param string|null $accountName - * @param string|null $proprietaryID + * @param string|null $proprietaryId * @return object|null */ - public function getCreditorFinancialAccountType(?string $iban = null, ?string $accountName = null, ?string $proprietaryID = null): ?object + public function getCreditorFinancialAccountType(?string $iban = null, ?string $accountName = null, ?string $proprietaryId = null): ?object { if (self::isAllNullOrEmpty(func_get_args())) { return null; } - $account = $this->createClassInstance('ram\CreditorFinancialAccountType'); + $creditorFinancialAccountType = $this->createClassInstance('ram\CreditorFinancialAccountType'); - $this->tryCall($account, "setIBANID", $this->getIdType($iban)); - $this->tryCall($account, "setAccountName", $this->getTextType($accountName)); - $this->tryCall($account, "setProprietaryID", $this->getIdType($proprietaryID)); + $this->tryCall($creditorFinancialAccountType, "setIBANID", $this->getIdType($iban)); + $this->tryCall($creditorFinancialAccountType, "setAccountName", $this->getTextType($accountName)); + $this->tryCall($creditorFinancialAccountType, "setProprietaryID", $this->getIdType($proprietaryId)); - return $account; + return $creditorFinancialAccountType; } /** @@ -912,32 +918,32 @@ public function getCreditorFinancialInstitutionType(?string $bic = null): ?objec return null; } - $institution = $this->createClassInstance('ram\CreditorFinancialInstitutionType'); + $creditorFinancialInstitutionType = $this->createClassInstance('ram\CreditorFinancialInstitutionType'); - $this->tryCall($institution, "setBICID", $this->getIdType($bic)); + $this->tryCall($creditorFinancialInstitutionType, "setBICID", $this->getIdType($bic)); - return $institution; + return $creditorFinancialInstitutionType; } /** * Get instance of TradeSettlementPaymentMeansType * - * @param string|null $typecode + * @param string|null $typeCode * @param string|null $information * @return object|null */ - public function getTradeSettlementPaymentMeansType(?string $typecode = null, ?string $information = null): ?object + public function getTradeSettlementPaymentMeansType(?string $typeCode = null, ?string $information = null): ?object { - if (self::isNullOrEmpty($typecode)) { + if (self::isNullOrEmpty($typeCode)) { return null; } - $paymentMeans = $this->createClassInstance('ram\TradeSettlementPaymentMeansType'); + $tradeSettlementPaymentMeansType = $this->createClassInstance('ram\TradeSettlementPaymentMeansType'); - $this->tryCall($paymentMeans, "setTypeCode", $this->getCodeType($typecode)); - $this->tryCall($paymentMeans, "setInformation", $this->getTextType($information)); + $this->tryCall($tradeSettlementPaymentMeansType, "setTypeCode", $this->getCodeType($typeCode)); + $this->tryCall($tradeSettlementPaymentMeansType, "setInformation", $this->getTextType($information)); - return $paymentMeans; + return $tradeSettlementPaymentMeansType; } /** @@ -954,13 +960,13 @@ public function getTradePaymentTermsType(?string $description = null, ?DateTime return null; } - $paymentTerms = $this->createClassInstance('ram\TradePaymentTermsType'); + $tradePaymentTermsType = $this->createClassInstance('ram\TradePaymentTermsType'); - $this->tryCall($paymentTerms, "setDescription", $this->getTextType($description)); - $this->tryCall($paymentTerms, "setDueDateDateTime", $this->getDateTimeType($dueDate)); - $this->tryCall($paymentTerms, "setDirectDebitMandateID", $this->getIdType($directDebitMandateID)); + $this->tryCall($tradePaymentTermsType, "setDescription", $this->getTextType($description)); + $this->tryCall($tradePaymentTermsType, "setDueDateDateTime", $this->getDateTimeType($dueDate)); + $this->tryCall($tradePaymentTermsType, "setDirectDebitMandateID", $this->getIdType($directDebitMandateID)); - return $paymentTerms; + return $tradePaymentTermsType; } /** @@ -980,15 +986,15 @@ public function getTradePaymentDiscountTermsType(?DateTime $basisDateTime = null return null; } - $discountTerms = $this->createClassInstance('ram\TradePaymentDiscountTermsType'); + $tradePaymentDiscountTermsType = $this->createClassInstance('ram\TradePaymentDiscountTermsType'); - $this->tryCall($discountTerms, "setBasisDateTime", $this->getDateTimeType($basisDateTime)); - $this->tryCall($discountTerms, "setBasisPeriodMeasure", $this->getMeasureType($basisPeriodMeasureValue, $basisPeriodMeasureUnitCode)); - $this->tryCall($discountTerms, "setBasisAmount", $this->getAmountType($basisAmount)); - $this->tryCall($discountTerms, "setCalculationPercent", $this->getPercentType($calculationPercent)); - $this->tryCall($discountTerms, "setActualDiscountAmount", $this->getAmountType($actualDiscountAmount)); + $this->tryCall($tradePaymentDiscountTermsType, "setBasisDateTime", $this->getDateTimeType($basisDateTime)); + $this->tryCall($tradePaymentDiscountTermsType, "setBasisPeriodMeasure", $this->getMeasureType($basisPeriodMeasureValue, $basisPeriodMeasureUnitCode)); + $this->tryCall($tradePaymentDiscountTermsType, "setBasisAmount", $this->getAmountType($basisAmount)); + $this->tryCall($tradePaymentDiscountTermsType, "setCalculationPercent", $this->getPercentType($calculationPercent)); + $this->tryCall($tradePaymentDiscountTermsType, "setActualDiscountAmount", $this->getAmountType($actualDiscountAmount)); - return $discountTerms; + return $tradePaymentDiscountTermsType; } /** @@ -1014,21 +1020,21 @@ public function getTradeTaxType(?string $categoryCode = null, ?string $typeCode return null; } - $taxBreakdown = $this->createClassInstance('ram\TradeTaxType'); + $tradeTaxType = $this->createClassInstance('ram\TradeTaxType'); - $this->tryCall($taxBreakdown, "setCalculatedAmount", $this->getAmountType($calculatedAmount)); - $this->tryCall($taxBreakdown, "setTypeCode", $this->getTaxTypeCodeType($typeCode)); - $this->tryCall($taxBreakdown, "setExemptionReason", $this->getTextType($exemptionReason)); - $this->tryCall($taxBreakdown, "setBasisAmount", $this->getAmountType($basisAmount)); - $this->tryCall($taxBreakdown, "setLineTotalBasisAmount", $this->getAmountType($lineTotalBasisAmount)); - $this->tryCall($taxBreakdown, "setAllowanceChargeBasisAmount", $this->getAmountType($allowanceChargeBasisAmount)); - $this->tryCall($taxBreakdown, "setCategoryCode", $this->getTaxCategoryCodeType($categoryCode)); - $this->tryCall($taxBreakdown, "setExemptionReasonCode", $this->getCodeType($exemptionReasonCode)); - $this->tryCall($taxBreakdown, "setTaxPointDate", $this->getDateType($taxPointDate)); - $this->tryCall($taxBreakdown, "setDueDateTypeCode", $this->getTimeReferenceCodeType($dueDateTypeCode)); - $this->tryCall($taxBreakdown, "setRateApplicablePercent", $this->getPercentType($rateApplicablePercent)); + $this->tryCall($tradeTaxType, "setCalculatedAmount", $this->getAmountType($calculatedAmount)); + $this->tryCall($tradeTaxType, "setTypeCode", $this->getTaxTypeCodeType($typeCode)); + $this->tryCall($tradeTaxType, "setExemptionReason", $this->getTextType($exemptionReason)); + $this->tryCall($tradeTaxType, "setBasisAmount", $this->getAmountType($basisAmount)); + $this->tryCall($tradeTaxType, "setLineTotalBasisAmount", $this->getAmountType($lineTotalBasisAmount)); + $this->tryCall($tradeTaxType, "setAllowanceChargeBasisAmount", $this->getAmountType($allowanceChargeBasisAmount)); + $this->tryCall($tradeTaxType, "setCategoryCode", $this->getTaxCategoryCodeType($categoryCode)); + $this->tryCall($tradeTaxType, "setExemptionReasonCode", $this->getCodeType($exemptionReasonCode)); + $this->tryCall($tradeTaxType, "setTaxPointDate", $this->getDateType($taxPointDate)); + $this->tryCall($tradeTaxType, "setDueDateTypeCode", $this->getTimeReferenceCodeType($dueDateTypeCode)); + $this->tryCall($tradeTaxType, "setRateApplicablePercent", $this->getPercentType($rateApplicablePercent)); - return $taxBreakdown; + return $tradeTaxType; } /** @@ -1055,22 +1061,22 @@ public function getTradeAllowanceChargeType(?float $actualAmount = null, ?bool $ return null; } - $allowanceCharge = $this->createClassInstance('ram\TradeAllowanceChargeType'); + $tradeAllowanceChargeType = $this->createClassInstance('ram\TradeAllowanceChargeType'); - $this->tryCall($allowanceCharge, "setChargeIndicator", $this->getIndicatorType($isCharge)); - $this->tryCall($allowanceCharge, "setSequenceNumeric", $this->getNumericType($sequence)); - $this->tryCall($allowanceCharge, "setCalculationPercent", $this->getPercentType($calculationPercent)); - $this->tryCall($allowanceCharge, "setBasisAmount", $this->getAmountType($basisAmount)); - $this->tryCall($allowanceCharge, "setBasisQuantity", $this->getQuantityType($basisQuantity, $basisQuantityUnitCode)); - $this->tryCall($allowanceCharge, "setActualAmount", $this->getAmountType($actualAmount)); - $this->tryCall($allowanceCharge, "setReasonCode", $this->getCodeType($reasonCode)); - $this->tryCall($allowanceCharge, "setReason", $this->getTextType($reason)); + $this->tryCall($tradeAllowanceChargeType, "setChargeIndicator", $this->getIndicatorType($isCharge)); + $this->tryCall($tradeAllowanceChargeType, "setSequenceNumeric", $this->getNumericType($sequence)); + $this->tryCall($tradeAllowanceChargeType, "setCalculationPercent", $this->getPercentType($calculationPercent)); + $this->tryCall($tradeAllowanceChargeType, "setBasisAmount", $this->getAmountType($basisAmount)); + $this->tryCall($tradeAllowanceChargeType, "setBasisQuantity", $this->getQuantityType($basisQuantity, $basisQuantityUnitCode)); + $this->tryCall($tradeAllowanceChargeType, "setActualAmount", $this->getAmountType($actualAmount)); + $this->tryCall($tradeAllowanceChargeType, "setReasonCode", $this->getCodeType($reasonCode)); + $this->tryCall($tradeAllowanceChargeType, "setReason", $this->getTextType($reason)); if (!is_null($taxCategoryCode) && !is_null($taxTypeCode)) { - $this->tryCall($allowanceCharge, "setCategoryTradeTax", $this->getTradeTaxType($taxCategoryCode, $taxTypeCode, null, null, $rateApplicablePercent)); + $this->tryCall($tradeAllowanceChargeType, "setCategoryTradeTax", $this->getTradeTaxType($taxCategoryCode, $taxTypeCode, null, null, $rateApplicablePercent)); } - return $allowanceCharge; + return $tradeAllowanceChargeType; } /** @@ -1089,19 +1095,19 @@ public function getLogisticsServiceChargeType(?string $description = null, ?floa return null; } - $logCharge = $this->createClassInstance('ram\LogisticsServiceChargeType'); + $logisticsServiceChargeType = $this->createClassInstance('ram\LogisticsServiceChargeType'); - $this->tryCall($logCharge, "setDescription", $this->getTextType($description)); - $this->tryCall($logCharge, "setAppliedAmount", $this->getAmountType($appliedAmount)); + $this->tryCall($logisticsServiceChargeType, "setDescription", $this->getTextType($description)); + $this->tryCall($logisticsServiceChargeType, "setAppliedAmount", $this->getAmountType($appliedAmount)); if (!is_null($taxCategoryCodes) && !is_null($taxTypeCodes) && !is_null($rateApplicablePercents)) { foreach ($rateApplicablePercents as $index => $rateApplicablePercent) { $taxBreakdown = $this->getTradeTaxType($taxCategoryCodes[$index], $taxTypeCodes[$index], null, null, $rateApplicablePercent); - $this->tryCall($logCharge, "addToAppliedTradeTax", $taxBreakdown); + $this->tryCall($logisticsServiceChargeType, "addToAppliedTradeTax", $taxBreakdown); } } - return $logCharge; + return $logisticsServiceChargeType; } /** @@ -1124,19 +1130,19 @@ public function getTradeSettlementHeaderMonetarySummationType(?float $grandTotal return null; } - $summation = $this->createClassInstance('ram\TradeSettlementHeaderMonetarySummationType'); + $tradeSettlementHeaderMonetarySummationType = $this->createClassInstance('ram\TradeSettlementHeaderMonetarySummationType'); - $this->tryCall($summation, "setLineTotalAmount", $this->getAmountType($lineTotalAmount)); - $this->tryCall($summation, "setChargeTotalAmount", $this->getAmountType($chargeTotalAmount)); - $this->tryCall($summation, "setAllowanceTotalAmount", $this->getAmountType($allowanceTotalAmount)); - $this->tryCall($summation, "setTaxBasisTotalAmount", $this->getAmountType($taxBasisTotalAmount)); - $this->tryCallAll($summation, ["addToTaxTotalAmount", "setTaxTotalAmount"], $this->getAmountType($taxTotalAmount)); - $this->tryCall($summation, "setRoundingAmount", $this->getAmountType($roundingAmount)); - $this->tryCall($summation, "setGrandTotalAmount", $this->getAmountType($grandTotalAmount)); - $this->tryCall($summation, "setTotalPrepaidAmount", $this->getAmountType($totalPrepaidAmount)); - $this->tryCall($summation, "setDuePayableAmount", $this->getAmountType($duePayableAmount)); + $this->tryCall($tradeSettlementHeaderMonetarySummationType, "setLineTotalAmount", $this->getAmountType($lineTotalAmount)); + $this->tryCall($tradeSettlementHeaderMonetarySummationType, "setChargeTotalAmount", $this->getAmountType($chargeTotalAmount)); + $this->tryCall($tradeSettlementHeaderMonetarySummationType, "setAllowanceTotalAmount", $this->getAmountType($allowanceTotalAmount)); + $this->tryCall($tradeSettlementHeaderMonetarySummationType, "setTaxBasisTotalAmount", $this->getAmountType($taxBasisTotalAmount)); + $this->tryCallAll($tradeSettlementHeaderMonetarySummationType, ["addToTaxTotalAmount", "setTaxTotalAmount"], $this->getAmountType($taxTotalAmount)); + $this->tryCall($tradeSettlementHeaderMonetarySummationType, "setRoundingAmount", $this->getAmountType($roundingAmount)); + $this->tryCall($tradeSettlementHeaderMonetarySummationType, "setGrandTotalAmount", $this->getAmountType($grandTotalAmount)); + $this->tryCall($tradeSettlementHeaderMonetarySummationType, "setTotalPrepaidAmount", $this->getAmountType($totalPrepaidAmount)); + $this->tryCall($tradeSettlementHeaderMonetarySummationType, "setDuePayableAmount", $this->getAmountType($duePayableAmount)); - return $summation; + return $tradeSettlementHeaderMonetarySummationType; } /** @@ -1162,64 +1168,65 @@ public function getTradeAccountingAccountType(?string $id = null, ?string $typeC return null; } - $account = $this->createClassInstance('ram\TradeAccountingAccountType'); + $tradeAccountingAccountType = $this->createClassInstance('ram\TradeAccountingAccountType'); - $this->tryCall($account, "setID", $this->getIdType($id)); - $this->tryCall($account, "setTypeCode", $this->getCodeType($typeCode)); + $this->tryCall($tradeAccountingAccountType, "setID", $this->getIdType($id)); + $this->tryCall($tradeAccountingAccountType, "setTypeCode", $this->getCodeType($typeCode)); - return $account; + return $tradeAccountingAccountType; } /** * Get Document line * - * @param string|null $lineid + * @param string|null $lineId * @return object|null */ - public function getDocumentLineDocumentType(?string $lineid = null): ?object + public function getDocumentLineDocumentType(?string $lineId = null): ?object { if (self::isAllNullOrEmpty(func_get_args())) { return null; } - $doclinedoc = $this->createClassInstance('ram\DocumentLineDocumentType'); + $documentLineDocumentType = $this->createClassInstance('ram\DocumentLineDocumentType'); - $this->tryCall($doclinedoc, "setLineID", $this->getIdType($lineid)); + $this->tryCall($documentLineDocumentType, "setLineID", $this->getIdType($lineId)); - return $doclinedoc; + return $documentLineDocumentType; } /** * Get instance of SupplyChainTradeLineItemType * - * @param string|null $lineid + * @param string|null $lineId * @param string|null $lineStatusCode * @param string|null $lineStatusReasonCode * @param boolean $isTextPosition * @return object|null */ - public function getSupplyChainTradeLineItemType(?string $lineid = null, ?string $lineStatusCode = null, ?string $lineStatusReasonCode = null, bool $isTextPosition = false): ?object + public function getSupplyChainTradeLineItemType(?string $lineId = null, ?string $lineStatusCode = null, ?string $lineStatusReasonCode = null, bool $isTextPosition = false): ?object { if (self::isAllNullOrEmpty(func_get_args())) { return null; } - $line = $this->createClassInstance('ram\SupplyChainTradeLineItemType'); - $doclinedoc = $this->getDocumentLineDocumentType($lineid); - $lineAgreement = $this->createClassInstance('ram\LineTradeAgreementType'); - $lineDelivery = $this->createClassInstance('ram\LineTradeDeliveryType'); - $lineSettlement = $this->createClassInstance('ram\LineTradeSettlementType'); + $supplyChainTradeLineItemType = $this->createClassInstance('ram\SupplyChainTradeLineItemType'); + + $doclinedoc = $this->getDocumentLineDocumentType($lineId); + $lineTradeAgreementType = $this->createClassInstance('ram\LineTradeAgreementType'); + $lineTradeDeliveryType = $this->createClassInstance('ram\LineTradeDeliveryType'); + $lineTradeSettlementType = $this->createClassInstance('ram\LineTradeSettlementType'); - $this->tryCall($line, "setAssociatedDocumentLineDocument", $doclinedoc); + $this->tryCall($supplyChainTradeLineItemType, "setAssociatedDocumentLineDocument", $doclinedoc); $this->tryCall($doclinedoc, "setLineStatusCode", $this->getCodeType($lineStatusCode)); $this->tryCall($doclinedoc, "setLineStatusReasonCode", $this->getCodeType($lineStatusReasonCode)); if ($isTextPosition == false) { - $this->tryCall($line, "setSpecifiedLineTradeAgreement", $lineAgreement); - $this->tryCall($line, "setSpecifiedLineTradeDelivery", $lineDelivery); + $this->tryCall($supplyChainTradeLineItemType, "setSpecifiedLineTradeAgreement", $lineTradeAgreementType); + $this->tryCall($supplyChainTradeLineItemType, "setSpecifiedLineTradeDelivery", $lineTradeDeliveryType); } - $this->tryCall($line, "setSpecifiedLineTradeSettlement", $lineSettlement); + $this->tryCall($supplyChainTradeLineItemType, "setSpecifiedLineTradeSettlement", $lineTradeSettlementType); - return $line; + return $supplyChainTradeLineItemType; } /** @@ -1244,20 +1251,20 @@ public function getTradeProductType(?string $name = null, ?string $description = return null; } - $product = $this->createClassInstance('ram\TradeProductType'); + $tradeProductType = $this->createClassInstance('ram\TradeProductType'); - $this->tryCall($product, "setGlobalID", $this->getIdType($globalID, $globalIDType)); - $this->tryCall($product, "setSellerAssignedID", $this->getIdType($sellerAssignedID)); - $this->tryCall($product, "setBuyerAssignedID", $this->getIdType($buyerAssignedID)); - $this->tryCall($product, "setName", $this->getTextType($name)); - $this->tryCall($product, "setDescription", $this->getTextType($description)); - $this->tryCall($product, "setIndustryAssignedID", $this->getIdType($industryAssignedID)); - $this->tryCall($product, "setModelID", $this->getIdType($modelID)); - $this->tryCall($product, "addToBatchID", $this->getIdType($batchID)); - $this->tryCall($product, "setBrandName", $this->getTextType($brandName)); - $this->tryCall($product, "setModelName", $this->getTextType($modelName)); + $this->tryCall($tradeProductType, "setGlobalID", $this->getIdType($globalID, $globalIDType)); + $this->tryCall($tradeProductType, "setSellerAssignedID", $this->getIdType($sellerAssignedID)); + $this->tryCall($tradeProductType, "setBuyerAssignedID", $this->getIdType($buyerAssignedID)); + $this->tryCall($tradeProductType, "setName", $this->getTextType($name)); + $this->tryCall($tradeProductType, "setDescription", $this->getTextType($description)); + $this->tryCall($tradeProductType, "setIndustryAssignedID", $this->getIdType($industryAssignedID)); + $this->tryCall($tradeProductType, "setModelID", $this->getIdType($modelID)); + $this->tryCall($tradeProductType, "addToBatchID", $this->getIdType($batchID)); + $this->tryCall($tradeProductType, "setBrandName", $this->getTextType($brandName)); + $this->tryCall($tradeProductType, "setModelName", $this->getTextType($modelName)); - return $product; + return $tradeProductType; } /** @@ -1276,14 +1283,14 @@ public function getProductCharacteristicType(?string $typeCode = null, ?string $ return null; } - $productCharacteristic = $this->createClassInstance('ram\ProductCharacteristicType'); + $productCharacteristicType = $this->createClassInstance('ram\ProductCharacteristicType'); - $this->tryCall($productCharacteristic, "setTypeCode", $this->getCodeType($typeCode)); - $this->tryCall($productCharacteristic, "setDescription", $this->getTextType($description)); - $this->tryCall($productCharacteristic, "setValueMeasure", $this->getMeasureType($valueMeasure, $valueMeasureUnitCode)); - $this->tryCall($productCharacteristic, "setValue", $this->getTextType($value)); + $this->tryCall($productCharacteristicType, "setTypeCode", $this->getCodeType($typeCode)); + $this->tryCall($productCharacteristicType, "setDescription", $this->getTextType($description)); + $this->tryCall($productCharacteristicType, "setValueMeasure", $this->getMeasureType($valueMeasure, $valueMeasureUnitCode)); + $this->tryCall($productCharacteristicType, "setValue", $this->getTextType($value)); - return $productCharacteristic; + return $productCharacteristicType; } /** @@ -1301,12 +1308,12 @@ public function getProductClassificationType(?string $classCode = null, ?string return null; } - $productClassification = $this->createClassInstance('ram\ProductClassificationType'); + $productClassificationType = $this->createClassInstance('ram\ProductClassificationType'); - $this->tryCall($productClassification, "setClassCode", $this->getCodeType2($classCode, $listID, $listVersionID)); - $this->tryCall($productClassification, "setClassName", $this->getTextType($className)); + $this->tryCall($productClassificationType, "setClassCode", $this->getCodeType2($classCode, $listID, $listVersionID)); + $this->tryCall($productClassificationType, "setClassName", $this->getTextType($className)); - return $productClassification; + return $productClassificationType; } /** @@ -1329,17 +1336,17 @@ public function getReferencedProductType(?string $globalID, ?string $globalIDTyp return null; } - $referencedProduct = $this->createClassInstance('ram\ReferencedProductType'); + $referencedProductType = $this->createClassInstance('ram\ReferencedProductType'); - $this->tryCallAll($referencedProduct, ["addToGlobalID", "setGlobalID"], $this->getIdType($globalID, $globalIDType)); - $this->tryCall($referencedProduct, "setSellerAssignedID", $this->getIdType($sellerAssignedID)); - $this->tryCall($referencedProduct, "setBuyerAssignedID", $this->getIdType($buyerAssignedID)); - $this->tryCall($referencedProduct, "setIndustryAssignedID", $this->getIdType($industryAssignedID)); - $this->tryCall($referencedProduct, "setName", $this->getTextType($name)); - $this->tryCall($referencedProduct, "setDescription", $this->getTextType($description)); - $this->tryCall($referencedProduct, "setUnitQuantity", $this->getQuantityType($unitQuantity, $unitCode)); + $this->tryCallAll($referencedProductType, ["addToGlobalID", "setGlobalID"], $this->getIdType($globalID, $globalIDType)); + $this->tryCall($referencedProductType, "setSellerAssignedID", $this->getIdType($sellerAssignedID)); + $this->tryCall($referencedProductType, "setBuyerAssignedID", $this->getIdType($buyerAssignedID)); + $this->tryCall($referencedProductType, "setIndustryAssignedID", $this->getIdType($industryAssignedID)); + $this->tryCall($referencedProductType, "setName", $this->getTextType($name)); + $this->tryCall($referencedProductType, "setDescription", $this->getTextType($description)); + $this->tryCall($referencedProductType, "setUnitQuantity", $this->getQuantityType($unitQuantity, $unitCode)); - return $referencedProduct; + return $referencedProductType; } /** @@ -1356,33 +1363,41 @@ public function getTradePriceType(?float $amount = null, ?float $basisQuantity = return null; } - $tradePrice = $this->createClassInstance('ram\TradePriceType'); + $tradePriceType = $this->createClassInstance('ram\TradePriceType'); - $this->tryCall($tradePrice, "setChargeAmount", $this->getAmountType($amount)); - $this->tryCall($tradePrice, "setBasisQuantity", $this->getQuantityType($basisQuantity, $basisQuantityUnitCode)); + $this->tryCall($tradePriceType, "setChargeAmount", $this->getAmountType($amount)); + $this->tryCall($tradePriceType, "setBasisQuantity", $this->getQuantityType($basisQuantity, $basisQuantityUnitCode)); - return $tradePrice; + return $tradePriceType; } /** * Get Line Summation * - * @param float|null $lineTotalAmount - * @param float|null $totalAllowanceChargeAmount - * @return object|null + * @param null|float $lineTotalAmount + * @param null|float $chargeTotalAmount + * @param null|float $allowanceTotalAmount + * @param null|float $taxTotalAmount + * @param null|float $grandTotalAmount + * @param null|float $totalAllowanceChargeAmount + * @return null|object */ - public function getTradeSettlementLineMonetarySummationType(?float $lineTotalAmount = null, ?float $totalAllowanceChargeAmount = null): ?object + public function getTradeSettlementLineMonetarySummationType(?float $lineTotalAmount = null, ?float $chargeTotalAmount = null, ?float $allowanceTotalAmount = null, ?float $taxTotalAmount = null, ?float $grandTotalAmount = null, ?float $totalAllowanceChargeAmount = null): ?object { if (self::isAllNullOrEmpty(func_get_args())) { return null; } - $summation = $this->createClassInstance('ram\TradeSettlementLineMonetarySummationType'); + $tradeSettlementLineMonetarySummationType = $this->createClassInstance('ram\TradeSettlementLineMonetarySummationType'); - $this->tryCall($summation, "setLineTotalAmount", $this->getAmountType($lineTotalAmount)); - $this->tryCall($summation, "setTotalAllowanceChargeAmount", $this->getAmountType($totalAllowanceChargeAmount)); + $this->tryCall($tradeSettlementLineMonetarySummationType, "setLineTotalAmount", $this->getAmountType($lineTotalAmount)); + $this->tryCall($tradeSettlementLineMonetarySummationType, "setChargeTotalAmount", $this->getAmountType($chargeTotalAmount)); + $this->tryCall($tradeSettlementLineMonetarySummationType, "setAllowanceTotalAmount", $this->getAmountType($allowanceTotalAmount)); + $this->tryCall($tradeSettlementLineMonetarySummationType, "setTaxTotalAmount", $this->getAmountType($taxTotalAmount)); + $this->tryCall($tradeSettlementLineMonetarySummationType, "setGrandTotalAmount", $this->getAmountType($grandTotalAmount)); + $this->tryCall($tradeSettlementLineMonetarySummationType, "setTotalAllowanceChargeAmount", $this->getAmountType($totalAllowanceChargeAmount)); - return $summation; + return $tradeSettlementLineMonetarySummationType; } /** @@ -1400,14 +1415,14 @@ public function getTaxApplicableTradeCurrencyExchangeType(?string $sourceCurrenc return null; } - $currencyExchange = $this->createClassInstance('ram\TradeCurrencyExchangeType'); + $tradeCurrencyExchangeType = $this->createClassInstance('ram\TradeCurrencyExchangeType'); - $this->tryCall($currencyExchange, "setSourceCurrencyCode", $this->getIdType($sourceCurrencyCode)); - $this->tryCall($currencyExchange, "setTargetCurrencyCode", $this->getIdType($targetCurrencyCode)); - $this->tryCall($currencyExchange, "setConversionRate", $this->getRateType($rate)); - $this->tryCall($currencyExchange, "setConversionRateDateTime", $this->getDateTimeType($rateDateTime)); + $this->tryCall($tradeCurrencyExchangeType, "setSourceCurrencyCode", $this->getIdType($sourceCurrencyCode)); + $this->tryCall($tradeCurrencyExchangeType, "setTargetCurrencyCode", $this->getIdType($targetCurrencyCode)); + $this->tryCall($tradeCurrencyExchangeType, "setConversionRate", $this->getRateType($rate)); + $this->tryCall($tradeCurrencyExchangeType, "setConversionRateDateTime", $this->getDateTimeType($rateDateTime)); - return $currencyExchange; + return $tradeCurrencyExchangeType; } /** @@ -1447,9 +1462,11 @@ public function toDateTime(?string $dateTimeString, ?string $format): ?DateTime */ public function getRateType(?float $rateValue): ?object { - $rate = $this->createClassInstance('udt\RateType'); - $this->tryCall($rate, "value", $rateValue); - return $rate; + $rateType = $this->createClassInstance('udt\RateType'); + + $this->tryCall($rateType, "value", $rateValue); + + return $rateType; } /** diff --git a/tests/testcases/ObjectHelperEn16931Test.php b/tests/testcases/ObjectHelperEn16931Test.php index 5d4df08..53c8b50 100644 --- a/tests/testcases/ObjectHelperEn16931Test.php +++ b/tests/testcases/ObjectHelperEn16931Test.php @@ -1327,8 +1327,12 @@ public function testGetTradeSettlementLineMonetarySummationTypeAllValues(): void /** * @var \horstoeko\zugferd\entities\en16931\ram\TradeSettlementLineMonetarySummationType */ - $summation = self::$objectHelper->getTradeSettlementLineMonetarySummationType(1.0, 2.0); + $summation = self::$objectHelper->getTradeSettlementLineMonetarySummationType(1.0, 6.0, 3.0, 4.0, 5.0, 2.0); $this->assertEquals(1.0, $summation->getLineTotalAmount()->value()); + $this->assertFalse(self::$objectHelper->methodExists($summation, "getChargeTotalAmount")); + $this->assertFalse(self::$objectHelper->methodExists($summation, "getAllowanceTotalAmount")); + $this->assertFalse(self::$objectHelper->methodExists($summation, "getTaxTotalAmount")); + $this->assertFalse(self::$objectHelper->methodExists($summation, "getGrandTotalAmount")); $this->assertFalse(self::$objectHelper->methodExists($summation, "getTotalAllowanceChargeAmount")); } @@ -1337,7 +1341,7 @@ public function testGetTradeSettlementLineMonetarySummationTypeAllNull(): void /** * @var \horstoeko\zugferd\entities\en16931\ram\TradeSettlementLineMonetarySummationType */ - $summation = self::$objectHelper->getTradeSettlementLineMonetarySummationType(null, null); + $summation = self::$objectHelper->getTradeSettlementLineMonetarySummationType(); $this->assertNull($summation); } diff --git a/tests/testcases/ObjectHelperExtendedTest.php b/tests/testcases/ObjectHelperExtendedTest.php index b372c88..5b028d6 100644 --- a/tests/testcases/ObjectHelperExtendedTest.php +++ b/tests/testcases/ObjectHelperExtendedTest.php @@ -1327,8 +1327,12 @@ public function testGetTradeSettlementLineMonetarySummationTypeAllValues(): void /** * @var \horstoeko\zugferd\entities\extended\ram\TradeSettlementLineMonetarySummationType */ - $summation = self::$objectHelper->getTradeSettlementLineMonetarySummationType(1.0, 2.0); + $summation = self::$objectHelper->getTradeSettlementLineMonetarySummationType(1.0, 6.0, 3.0, 4.0, 5.0, 2.0); $this->assertEquals(1.0, $summation->getLineTotalAmount()->value()); + $this->assertEquals(6.0, $summation->getChargeTotalAmount()->value()); + $this->assertEquals(3.0, $summation->getAllowanceTotalAmount()->value()); + $this->assertEquals(4.0, $summation->getTaxTotalAmount()->value()); + $this->assertEquals(5.0, $summation->getGrandTotalAmount()->value()); $this->assertEquals(2.0, $summation->getTotalAllowanceChargeAmount()->value()); } @@ -1337,7 +1341,7 @@ public function testGetTradeSettlementLineMonetarySummationTypeAllNull(): void /** * @var \horstoeko\zugferd\entities\extended\ram\TradeSettlementLineMonetarySummationType */ - $summation = self::$objectHelper->getTradeSettlementLineMonetarySummationType(null, null); + $summation = self::$objectHelper->getTradeSettlementLineMonetarySummationType(); $this->assertNull($summation); }