public class Product extends java.lang.Object implements IZUGFeRDExportableProduct
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
buyerAssignedID |
protected java.lang.String |
description |
protected SchemedID |
globalId |
protected boolean |
isIntraCommunitySupply |
protected boolean |
isReverseCharge |
protected java.lang.String |
name |
protected java.lang.String |
sellerAssignedID |
protected java.lang.String |
unit |
protected java.math.BigDecimal |
VATPercent |
| Constructor and Description |
|---|
Product()
empty constructor
just for jackson etc
|
Product(java.lang.String name,
java.lang.String description,
java.lang.String unit,
java.math.BigDecimal VATPercent)
default constructor
|
| Modifier and Type | Method and Description |
|---|---|
Product |
addGlobalID(SchemedID schemedID) |
java.lang.String |
getBuyerAssignedID()
Get the ID that had been assigned by the buyer to
identify the product
|
java.lang.String |
getDescription()
long description of the product
|
java.lang.String |
getGlobalID()
customer global identification assigned by the seller
|
java.lang.String |
getGlobalIDScheme()
customer global identification scheme
|
java.lang.String |
getName()
Short name of the product
|
java.lang.String |
getSellerAssignedID()
Get the ID that had been assigned by the seller to
identify the product
|
java.lang.String |
getUnit()
Unit code of the product
Most common ones are
C62 one (piece)
DAY day
HAR hectare
HUR hour
KGM kilogram
KTM kilometre
KWH kilowatt hour
LS lump sum
LTR litre
MIN minute
MMK square millimetre
MMT millimetre
MTK square metre
MTQ cubic metre
MTR metre
NAR number of articles
NPR number of pairs
P1 percent
SET set
TNE tonne (metric ton)
WEE week
|
java.math.BigDecimal |
getVATPercent()
VAT percent of the product (e.g. 19, or 5.1 if you like)
|
boolean |
isIntraCommunitySupply() |
boolean |
isReverseCharge() |
Product |
setBuyerAssignedID(java.lang.String buyerAssignedID)
if the buyer provided an ID how he refers to this product
|
Product |
setDescription(java.lang.String description)
description of the product (required)
|
Product |
setIntraCommunitySupply()
sets intra community supply(=delivery outside the country inside the EU)
|
Product |
setName(java.lang.String name)
name of the product
|
Product |
setReverseCharge()
sets reverse charge(=delivery to outside EU)
|
Product |
setSellerAssignedID(java.lang.String sellerAssignedID)
how the seller identifies this type of product
|
Product |
setUnit(java.lang.String unit)
sets a UN/ECE rec 20 or 21 code which unit the product ships in, e.g.
|
Product |
setVATPercent(java.math.BigDecimal VATPercent)
VAT rate of the product
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTaxCategoryCode, getTaxExemptionReasonprotected java.lang.String unit
protected java.lang.String name
protected java.lang.String description
protected java.lang.String sellerAssignedID
protected java.lang.String buyerAssignedID
protected java.math.BigDecimal VATPercent
protected boolean isReverseCharge
protected boolean isIntraCommunitySupply
protected SchemedID globalId
public Product(java.lang.String name,
java.lang.String description,
java.lang.String unit,
java.math.BigDecimal VATPercent)
name - product short namedescription - product long nameunit - a two/three letter UN/ECE rec 20 unit code, e.g. "C62" for pieceVATPercent - product vat ratepublic Product()
public java.lang.String getGlobalID()
IZUGFeRDExportableProductgetGlobalID in interface IZUGFeRDExportableProductpublic java.lang.String getGlobalIDScheme()
IZUGFeRDExportableProductgetGlobalIDScheme in interface IZUGFeRDExportableProductpublic java.lang.String getSellerAssignedID()
IZUGFeRDExportableProductgetSellerAssignedID in interface IZUGFeRDExportableProductpublic Product setSellerAssignedID(java.lang.String sellerAssignedID)
sellerAssignedID - a unique Stringpublic java.lang.String getBuyerAssignedID()
IZUGFeRDExportableProductgetBuyerAssignedID in interface IZUGFeRDExportableProductpublic Product setBuyerAssignedID(java.lang.String buyerAssignedID)
buyerAssignedID - a string the buyer providedpublic boolean isReverseCharge()
isReverseCharge in interface IZUGFeRDExportableProductpublic boolean isIntraCommunitySupply()
isIntraCommunitySupply in interface IZUGFeRDExportableProductpublic Product setReverseCharge()
public Product setIntraCommunitySupply()
public java.lang.String getUnit()
IZUGFeRDExportableProductgetUnit in interface IZUGFeRDExportableProductpublic Product setUnit(java.lang.String unit)
unit - 2-3 letter UN/ECE rec 20 or 21public java.lang.String getName()
IZUGFeRDExportableProductgetName in interface IZUGFeRDExportableProductpublic Product setName(java.lang.String name)
name - short namepublic java.lang.String getDescription()
IZUGFeRDExportableProductgetDescription in interface IZUGFeRDExportableProductpublic Product setDescription(java.lang.String description)
description - long namepublic java.math.BigDecimal getVATPercent()
IZUGFeRDExportableProductgetVATPercent in interface IZUGFeRDExportableProductpublic Product setVATPercent(java.math.BigDecimal VATPercent)
VATPercent - vat rate of the productCopyright © 2023. All rights reserved.