public class TradeParty extends java.lang.Object implements IZUGFeRDExportableTradeParty
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
additionalAddress |
protected java.lang.String |
additionalAddressExtension |
protected java.util.List<BankDetails> |
bankDetails |
protected Contact |
contact |
protected java.lang.String |
country |
protected java.util.List<IZUGFeRDTradeSettlementDebit> |
debitDetails |
protected SchemedID |
globalId |
protected java.lang.String |
ID |
protected LegalOrganisation |
legalOrg |
protected java.lang.String |
location |
protected java.lang.String |
name |
protected java.lang.String |
street |
protected java.lang.String |
taxID |
protected java.lang.String |
vatID |
protected java.lang.String |
zip |
| Constructor and Description |
|---|
TradeParty()
Default constructor.
|
TradeParty(org.w3c.dom.NodeList nodes)
XML parsing constructor
|
TradeParty(java.lang.String name,
java.lang.String street,
java.lang.String zip,
java.lang.String location,
java.lang.String country) |
| Modifier and Type | Method and Description |
|---|---|
TradeParty |
addBankDetails(BankDetails s)
required (for senders, if payment is not debit): the BIC and IBAN
|
TradeParty |
addDebitDetails(IZUGFeRDTradeSettlementDebit debitDetail)
(optional)
|
TradeParty |
addGlobalID(SchemedID schemedID) |
TradeParty |
addTaxID(java.lang.String taxID)
a general tax ID
|
TradeParty |
addVATID(java.lang.String vatID)
the USt-ID
|
java.lang.String |
getAdditionalAddress()
returns additional address information which is display in xml tag "LineTwo"
e.g.
|
java.lang.String |
getAdditionalAddressExtension()
Returns even advanced additional address information,
e.g. which floor (if LineTwo=setAdditionalAddress has already been used e.g. for which building)
|
IZUGFeRDTradeSettlement[] |
getAsTradeSettlement() |
java.util.List<BankDetails> |
getBankDetails() |
IZUGFeRDExportableContact |
getContact() |
java.lang.String |
getCountry()
two-letter country code of the contact
|
java.lang.String |
getGlobalID()
customer global identification assigned by the seller
|
java.lang.String |
getGlobalIDScheme()
customer global identification scheme
|
java.lang.String |
getID()
customer identification assigned by the seller
|
IZUGFeRDLegalOrganisation |
getLegalOrganisation()
gets the official representation
|
java.lang.String |
getLocation()
Returns the city of the contact
|
java.lang.String |
getName()
First and last name of the recipient
|
java.lang.String |
getStreet()
Returns the street address (street+number) of the contact
|
java.lang.String |
getTaxID()
obligatory for sender but not for recipient
|
java.lang.String |
getVatID() |
java.lang.String |
getVATID()
VAT ID (Umsatzsteueridentifikationsnummer) of the contact
|
java.lang.String |
getZIP()
Postal code of the recipient
|
TradeParty |
setAdditionalAddress(java.lang.String additionalAddress)
additional info of the address, e.g. which building or which floor.
|
TradeParty |
setAdditionalAddress(java.lang.String additionalAddress1,
java.lang.String additionalAddress2)
Sets two parts of additional address at once, e.g. which building and which floor
(if building is not in question which floor can also be set with the first part only :-))
|
TradeParty |
setAdditionalAddressExtension(java.lang.String additionalAddress2)
Sets even advanced additional address information,
e.g. which floor (if LineTwo has already been used e.g. for which building)
This could sometimes be BT-165?
|
TradeParty |
setContact(Contact c)
(optional) a named contact person
|
TradeParty |
setCountry(java.lang.String country)
two-letter ISO code of the country
|
TradeParty |
setID(java.lang.String ID)
if it's a customer, this can e.g. be the customer ID
|
TradeParty |
setLegalOrganisation(LegalOrganisation legalOrganisation) |
TradeParty |
setLocation(java.lang.String location)
usually set in constructor, usually required in germany, the city of the organisation
|
TradeParty |
setName(java.lang.String name)
required, usually done in the constructor: the complete name of the organisation
|
TradeParty |
setStreet(java.lang.String street)
usually set in constructor, required in germany, street and house number
|
TradeParty |
setTaxID(java.lang.String tax) |
TradeParty |
setVATID(java.lang.String VATid) |
TradeParty |
setZIP(java.lang.String zip)
usually set in the constructor, required for recipients in german invoices: postcode
|
protected java.lang.String name
protected java.lang.String zip
protected java.lang.String street
protected java.lang.String location
protected java.lang.String country
protected java.lang.String taxID
protected java.lang.String vatID
protected java.lang.String ID
protected java.lang.String additionalAddress
protected java.lang.String additionalAddressExtension
protected java.util.List<BankDetails> bankDetails
protected java.util.List<IZUGFeRDTradeSettlementDebit> debitDetails
protected Contact contact
protected LegalOrganisation legalOrg
protected SchemedID globalId
public TradeParty()
public TradeParty(java.lang.String name,
java.lang.String street,
java.lang.String zip,
java.lang.String location,
java.lang.String country)
name - of the companystreet - street and number (use setAdditionalAddress for more parts)zip - postcode of the companylocation - city of the companycountry - two letter ISO codepublic TradeParty(org.w3c.dom.NodeList nodes)
nodes - the nodelist returned e.g. from xpathpublic java.lang.String getID()
IZUGFeRDExportableTradePartygetID in interface IZUGFeRDExportableTradePartypublic java.lang.String getGlobalID()
IZUGFeRDExportableTradePartygetGlobalID in interface IZUGFeRDExportableTradePartypublic java.lang.String getGlobalIDScheme()
IZUGFeRDExportableTradePartygetGlobalIDScheme in interface IZUGFeRDExportableTradePartypublic TradeParty setID(java.lang.String ID)
ID - customer/seller numberpublic TradeParty setContact(Contact c)
c - the named contact personContactpublic TradeParty addGlobalID(SchemedID schemedID)
public TradeParty addBankDetails(BankDetails s)
s - bank credentialspublic TradeParty addDebitDetails(IZUGFeRDTradeSettlementDebit debitDetail)
debitDetail - e.g. containing IBAN and mandatepublic IZUGFeRDLegalOrganisation getLegalOrganisation()
IZUGFeRDExportableTradePartygetLegalOrganisation in interface IZUGFeRDExportableTradePartypublic TradeParty setLegalOrganisation(LegalOrganisation legalOrganisation)
public java.util.List<BankDetails> getBankDetails()
public TradeParty addTaxID(java.lang.String taxID)
taxID - tax number of the organisationpublic TradeParty addVATID(java.lang.String vatID)
vatID - Ust-IDpublic java.lang.String getVATID()
IZUGFeRDExportableTradePartygetVATID in interface IZUGFeRDExportableTradePartypublic TradeParty setVATID(java.lang.String VATid)
public java.lang.String getTaxID()
IZUGFeRDExportableTradePartygetTaxID in interface IZUGFeRDExportableTradePartypublic TradeParty setTaxID(java.lang.String tax)
public java.lang.String getName()
IZUGFeRDExportableTradePartygetName in interface IZUGFeRDExportableTradePartypublic TradeParty setName(java.lang.String name)
name - complete legal namepublic java.lang.String getZIP()
IZUGFeRDExportableTradePartygetZIP in interface IZUGFeRDExportableTradePartypublic TradeParty setZIP(java.lang.String zip)
zip - postcodepublic java.lang.String getStreet()
IZUGFeRDExportableTradePartygetStreet in interface IZUGFeRDExportableTradePartypublic TradeParty setStreet(java.lang.String street)
street - street name and numberpublic java.lang.String getLocation()
IZUGFeRDExportableTradePartygetLocation in interface IZUGFeRDExportableTradePartypublic TradeParty setLocation(java.lang.String location)
location - citypublic java.lang.String getCountry()
IZUGFeRDExportableTradePartygetCountry in interface IZUGFeRDExportableTradePartypublic TradeParty setCountry(java.lang.String country)
country - two-letter-codepublic java.lang.String getVatID()
public IZUGFeRDExportableContact getContact()
getContact in interface IZUGFeRDExportableTradePartypublic IZUGFeRDTradeSettlement[] getAsTradeSettlement()
public java.lang.String getAdditionalAddress()
IZUGFeRDExportableTradePartygetAdditionalAddress in interface IZUGFeRDExportableTradePartypublic TradeParty setAdditionalAddress(java.lang.String additionalAddress)
additionalAddress - additional address descriptionpublic TradeParty setAdditionalAddress(java.lang.String additionalAddress1, java.lang.String additionalAddress2)
additionalAddress1 - first part of additional info, e.g. "Rear building"additionalAddress2 - second part of additional address info, e.g. "2nd floor"public TradeParty setAdditionalAddressExtension(java.lang.String additionalAddress2)
additionalAddress2 - public java.lang.String getAdditionalAddressExtension()
getAdditionalAddressExtension in interface IZUGFeRDExportableTradePartyCopyright © 2023. All rights reserved.