Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#72 Fixed documentation for *TaxRegistration-Methods #76

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 27 additions & 22 deletions src/ZugferdDocumentBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,10 @@ 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 Type of tax number of the seller
* @param string|null $taxregid Tax number of the seller or sales tax identification number of the (FC = Tax number, VA = Sales tax number)
* @param string|null $taxregtype
* Type of tax number of the seller (FC = Tax number, VA = Sales tax identification number)
* @param string|null $taxregid
* 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
Expand Down Expand Up @@ -661,9 +663,10 @@ public function addDocumentBuyerGlobalId(?string $globalID = null, ?string $glob
* identification number, unless he uses a tax agent.
*
* @param string|null $taxregtype
* Type of tax number of the buyers
* Type of tax number of the seller (FC = Tax number, VA = Sales tax identification number)
* @param string|null $taxregid
* Tax number of the buyers or sales tax identification number of the (FC = Tax number, VA = Sales tax number)
* Tax number of the seller or sales tax identification number of the seller
* Tax number of the seller or sales tax identification number of the (FC = Tax number, VA = Sales tax number)
* @return ZugferdDocumentBuilder
*/
public function addDocumentBuyerTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder
Expand Down Expand Up @@ -832,7 +835,9 @@ public function addDocumentSellerTaxRepresentativeGlobalId(?string $globalID = n
* Add Tax registration to tax representative party
*
* @param string|null $taxregtype
* Type of tax number of the seller (FC = Tax number, VA = Sales tax identification number)
* @param string|null $taxregid
* Tax number of the seller or sales tax identification number of the seller
* @return ZugferdDocumentBuilder
*/
public function addDocumentSellerTaxRepresentativeTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder
Expand Down Expand Up @@ -994,9 +999,9 @@ public function addDocumentProductEndUserGlobalId(?string $globalID = null, ?str
* identification number, unless he uses a tax agent.
*
* @param string|null $taxregtype
* Type of tax number of the party
* Type of tax number of the seller (FC = Tax number, VA = Sales tax identification number)
* @param string|null $taxregid
* Tax number of the party or sales tax identification number of the (FC = Tax number, VA = Sales tax number)
* Tax number of the seller or sales tax identification number of the seller
* @return ZugferdDocumentBuilder
*/
public function addDocumentProductEndUserTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder
Expand Down Expand Up @@ -1153,9 +1158,9 @@ public function addDocumentShipToGlobalId(?string $globalID = null, ?string $glo
* Add Tax registration to Ship-To Trade party
*
* @param string|null $taxregtype
* Type of tax number of the party
* Type of tax number of the seller (FC = Tax number, VA = Sales tax identification number)
* @param string|null $taxregid
* Tax number of the party or sales tax identification number of the (FC = Tax number, VA = Sales tax number)
* Tax number of the seller or sales tax identification number of the seller
* @return ZugferdDocumentBuilder
*/
public function addDocumentShipToTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder
Expand Down Expand Up @@ -1317,9 +1322,9 @@ public function addDocumentUltimateShipToGlobalId(?string $globalID = null, ?str
* - This is only available in the EXTENDED profile
*
* @param string|null $taxregtype
* Type of tax number of the party
* Type of tax number of the seller (FC = Tax number, VA = Sales tax identification number)
* @param string|null $taxregid
* Tax number of the party or sales tax identification number of the (FC = Tax number, VA = Sales tax number)
* Tax number of the seller or sales tax identification number of the seller
* @return ZugferdDocumentBuilder
*/
public function addDocumentUltimateShipToTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder
Expand Down Expand Up @@ -1487,9 +1492,9 @@ public function addDocumentShipFromGlobalId(?string $globalID = null, ?string $g
* - This is only available in the EXTENDED profile
*
* @param string|null $taxregtype
* Type of tax number of the party
* Type of tax number of the seller (FC = Tax number, VA = Sales tax identification number)
* @param string|null $taxregid
* Tax number of the party or sales tax identification number of the (FC = Tax number, VA = Sales tax number)
* Tax number of the seller or sales tax identification number of the seller
* @return ZugferdDocumentBuilder
*/
public function addDocumentShipFromTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder
Expand Down Expand Up @@ -1654,9 +1659,9 @@ public function addDocumentInvoicerGlobalId(?string $globalID = null, ?string $g
* - This is only available in the EXTENDED profile
*
* @param string|null $taxregtype
* Type of tax number of the party
* Type of tax number of the seller (FC = Tax number, VA = Sales tax identification number)
* @param string|null $taxregid
* Tax number of the party or sales tax identification number of the (FC = Tax number, VA = Sales tax number)
* Tax number of the seller or sales tax identification number of the seller
* @return ZugferdDocumentBuilder
*/
public function addDocumentInvoicerTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder
Expand Down Expand Up @@ -1826,9 +1831,9 @@ public function addDocumentInvoiceeGlobalId(?string $globalID = null, ?string $g
* - This is only available in the EXTENDED profile
*
* @param string|null $taxregtype
* Type of tax number of the party
* Type of tax number of the seller (FC = Tax number, VA = Sales tax identification number)
* @param string|null $taxregid
* Tax number of the party or sales tax identification number of the (FC = Tax number, VA = Sales tax number)
* Tax number of the seller or sales tax identification number of the seller
* @return ZugferdDocumentBuilder
*/
public function addDocumentInvoiceeTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder
Expand Down Expand Up @@ -1992,9 +1997,9 @@ public function addDocumentPayeeGlobalId(?string $globalID = null, ?string $glob
* Add Tax registration to payee trade party
*
* @param string|null $taxregtype
* Type of tax number of the party
* Type of tax number of the seller (FC = Tax number, VA = Sales tax identification number)
* @param string|null $taxregid
* Tax number of the party or sales tax identification number of the (FC = Tax number, VA = Sales tax number)
* Tax number of the seller or sales tax identification number of the seller
* @return ZugferdDocumentBuilder
*/
public function addDocumentPayeeTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder
Expand Down Expand Up @@ -3377,9 +3382,9 @@ public function addDocumentPositionShipToGlobalId(?string $globalID = null, ?str
* identification number, unless he uses a tax agent.
*
* @param string|null $taxregtype
* Type of tax number of the party
* Type of tax number of the seller (FC = Tax number, VA = Sales tax identification number)
* @param string|null $taxregid
* Tax number of the party or sales tax identification number of the (FC = Tax number, VA = Sales tax number)
* Tax number of the seller or sales tax identification number of the seller
* @return ZugferdDocumentBuilder
*/
public function addDocumentPositionShipToTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder
Expand Down Expand Up @@ -3539,9 +3544,9 @@ public function addDocumentPositionUltimateShipToGlobalId(?string $globalID = nu
* Add Tax registration to Ship-To Trade party
*
* @param string|null $taxregtype
* Type of tax number of the party
* Type of tax number of the seller (FC = Tax number, VA = Sales tax identification number)
* @param string|null $taxregid
* Tax number of the party or sales tax identification number of the (FC = Tax number, VA = Sales tax number)
* Tax number of the seller or sales tax identification number of the seller
* @return ZugferdDocumentBuilder
*/
public function addDocumentPositionUltimateShipToTaxRegistration(?string $taxregtype = null, ?string $taxregid = null): ZugferdDocumentBuilder
Expand Down
30 changes: 10 additions & 20 deletions src/ZugferdDocumentReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,7 @@ public function getDocumentSellerGlobalId(?array &$globalID): ZugferdDocumentRea
* for tax, the buyer will withhold the tax amount and pay it on behalf of the seller
*
* @param array|null $taxreg
* Array of sales tax identification numbers of the seller indexed by __FC__ for _Tax number of the seller_ and __VA__
* for _Sales tax identification number of the seller_
* Array of tax numbers indexed by __FC__ for _Tax number_ and __VA__ for _Sales tax identification number_
* @return ZugferdDocumentReader
*/
public function getDocumentSellerTaxRegistration(?array &$taxreg): ZugferdDocumentReader
Expand Down Expand Up @@ -713,8 +712,7 @@ public function getDocumentBuyerGlobalId(?array &$globalID): ZugferdDocumentRead
* enables the buyer to indicate his reporting status for tax purposes.
*
* @param array|null $taxreg
* Array of sales tax identification numbers of the buyer indexed by __VA__ for _Sales tax identification number of the buyer_
* Only the code __VA__ is permitted as an identification scheme
* Array of tax numbers indexed by __FC__ for _Tax number_ and __VA__ for _Sales tax identification number_
* @return ZugferdDocumentReader
*/
public function getDocumentBuyerTaxRegistration(?array &$taxreg): ZugferdDocumentReader
Expand Down Expand Up @@ -891,8 +889,7 @@ public function getDocumentSellerTaxRepresentativeGlobalId(?array &$globalID): Z
* or a reference that enables the sellers tax agent to indicate his reporting status for tax purposes.
*
* @param array|null $taxreg
* Array of sales tax identification numbers of the sellers tax agent indexed by __VA__ for _Sales tax identification
* number of the tax agent. _ Only the code __VA__ is permitted as an identification scheme
* Array of tax numbers indexed by __FC__ for _Tax number_ and __VA__ for _Sales tax identification number_
* @return ZugferdDocumentReader
*/
public function getDocumentSellerTaxRepresentativeTaxRegistration(?array &$taxreg): ZugferdDocumentReader
Expand Down Expand Up @@ -1070,8 +1067,7 @@ public function getDocumentProductEndUserGlobalId(?array &$globalID): ZugferdDoc
* Get detailed information on the tax number of the product end user
*
* @param array|null $taxreg
* Array of sales tax identification numbers of the product end user indexed by __FC__ for _Tax number of the product end user_ and __VA__
* for _Sales tax identification number of the product end user_
* Array of tax numbers indexed by __FC__ for _Tax number_ and __VA__ for _Sales tax identification number_
* @return ZugferdDocumentReader
*/
public function getDocumentProductEndUserTaxRegistration(?array &$taxreg): ZugferdDocumentReader
Expand Down Expand Up @@ -1247,8 +1243,7 @@ public function getDocumentShipToGlobalId(?array &$globalID): ZugferdDocumentRea
* Get detailed information on tax details of the goods recipient
*
* @param array|null $taxreg
* Array of sales tax identification numbers of the party indexed by __FC__ for _Tax number of the party_ and __VA__
* for _Sales tax identification number of the party_
* Array of tax numbers indexed by __FC__ for _Tax number_ and __VA__ for _Sales tax identification number_
* @return ZugferdDocumentReader
*/
public function getDocumentShipToTaxRegistration(?array &$taxreg): ZugferdDocumentReader
Expand Down Expand Up @@ -1433,8 +1428,7 @@ public function getDocumentUltimateShipToGlobalId(?array &$globalID): ZugferdDoc
* - This is only available in the EXTENDED profile
*
* @param array|null $taxreg
* Array of sales tax identification numbers of the party indexed by __FC__ for _Tax number of the party_ and __VA__
* for _Sales tax identification number of the party_
* Array of tax numbers indexed by __FC__ for _Tax number_ and __VA__ for _Sales tax identification number_
* @return ZugferdDocumentReader
*/
public function getDocumentUltimateShipToTaxRegistration(?array &$taxreg): ZugferdDocumentReader
Expand Down Expand Up @@ -1626,8 +1620,7 @@ public function getDocumentShipFromGlobalId(?array &$globalID): ZugferdDocumentR
* - This is only available in the EXTENDED profile
*
* @param array|null $taxreg
* Array of sales tax identification numbers of the party indexed by __FC__ for _Tax number of the party_ and __VA__
* for _Sales tax identification number of the party_
* Array of tax numbers indexed by __FC__ for _Tax number_ and __VA__ for _Sales tax identification number_
* @return ZugferdDocumentReader
*/
public function getDocumentShipFromTaxRegistration(?array &$taxreg): ZugferdDocumentReader
Expand Down Expand Up @@ -1817,8 +1810,7 @@ public function getDocumentInvoicerGlobalId(?array &$globalID): ZugferdDocumentR
* - This is only available in the EXTENDED profile
*
* @param array|null $taxreg
* Array of sales tax identification numbers of the party indexed by __FC__ for _Tax number of the party_ and __VA__
* for _Sales tax identification number of the party_
* Array of tax numbers indexed by __FC__ for _Tax number_ and __VA__ for _Sales tax identification number_
* @return ZugferdDocumentReader
*/
public function getDocumentInvoicerTaxRegistration(?array &$taxreg): ZugferdDocumentReader
Expand Down Expand Up @@ -2008,8 +2000,7 @@ public function getDocumentInvoiceeGlobalId(?array &$globalID): ZugferdDocumentR
* - This is only available in the EXTENDED profile
*
* @param array|null $taxreg
* Array of sales tax identification numbers of the party indexed by __FC__ for _Tax number of the party_ and __VA__
* for _Sales tax identification number of the party_
* Array of tax numbers indexed by __FC__ for _Tax number_ and __VA__ for _Sales tax identification number_
* @return ZugferdDocumentReader
*/
public function getDocumentInvoiceeTaxRegistration(?array &$taxreg): ZugferdDocumentReader
Expand Down Expand Up @@ -2192,8 +2183,7 @@ public function getDocumentPayeeGlobalId(?array &$globalID): ZugferdDocumentRead
* Get detailed information on tax details of the payee party
*
* @param array|null $taxreg
* Array of sales tax identification numbers of the party indexed by __FC__ for _Tax number of the party_ and __VA__
* for _Sales tax identification number of the party_
* Array of tax numbers indexed by __FC__ for _Tax number_ and __VA__ for _Sales tax identification number_
* @return ZugferdDocumentReader
*/
public function getDocumentPayeeTaxRegistration(?array &$taxreg): ZugferdDocumentReader
Expand Down
Loading