Method EinvoiceAddress():setCountryCode() Professional

Sets the country code (BT-40/BT-55/BT-80).

Syntax
:setCountryCode( <cValue> ) --> self
Parameters
<cValue>
The ISO 3166-1 alpha-2 country code, for example "DE". The code can be specified in upper or lower case.
Return

This method returns self.

Description

Assigns the country code (BT-40 for the seller, BT-55 for the buyer and BT-80 for the deliver-to address). A non-empty value is converted to upper case.

The country code is required. EinvFactory():createInvoice() raises a runtime error if the country code of the seller or buyer address is missing, because the countries determine the tax scenario. AbstractEinvoice:validate() reports an error for rule BR-09 or BR-11 if the country code of the seller or buyer is missing, and for rule BR-57 if a deliver-to address has no country code.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.