use of un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.SalesPrice in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getSalesPrice.
private static SalesPrice getSalesPrice(AmountType amountType) {
SalesPrice salesPrice = new SalesPrice();
salesPrice.setChargeAmounts(Arrays.asList(amountType));
return salesPrice;
}
use of un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.SalesPrice in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getAapProduct.
public static AAPProduct getAapProduct() {
CodeType speciesCode = getCodeType("Species 1", "qbdcg-3fhr5-rd4kd5-er5tgd5k");
QuantityType quantityType = getQuantityType(123);
MeasureType measureType = getMeasureType(123, "C62", "qbdcg-3fhr5-rd4kd5-er5tgd5k");
CodeType weighingMeansCode = getCodeType("Weighing Means 1", "qbd43cg-3fhr5t65-rd4kd5rt4-er5tgd5k");
CodeType usageCode = getCodeType("Usage Code 1", "qbd43cg-3fhr5t65-rd4kd5rt4-er5tgd5k");
QuantityType packagingUnitQuantity = getQuantityType(1234);
CodeType packagingTypeCode = getCodeType("packaging type 1", "FISH_PACKAGING");
MeasureType packagingUnitAverageWeightMeasure = getMeasureType(123, "C62", "qbdcg-3fhr5-rd4kd5-er5tgd5k");
SalesPrice totalSalesPrice = getSalesPrice(getAmountType(123, "qbd43cg-3fhr5t65-rd4kd5rt4-er5tgd5k", "1"));
SizeDistribution specifiedSizeDistribution = getSizeDistribution(getCodeType("catagory 1", "qbd43cg-3fhr5t65-rd4kd5rt4-er5tgd5k"), getCodeType("class code1", "qbd43cg-3fhr5t65-rd45674-er5tgd5k"));
AAPProduct aapProduct = new AAPProduct(speciesCode, quantityType, measureType, weighingMeansCode, usageCode, packagingUnitQuantity, packagingTypeCode, packagingUnitAverageWeightMeasure, null, totalSalesPrice, specifiedSizeDistribution, null, null);
return aapProduct;
}
Aggregations