Search in sources :

Example 1 with SalesPrice

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;
}
Also used : SalesPrice(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.SalesPrice)

Example 2 with 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;
}
Also used : SalesPrice(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.SalesPrice) QuantityType(un.unece.uncefact.data.standard.unqualifieddatatype._20.QuantityType) SizeDistribution(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.SizeDistribution) AAPProduct(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.AAPProduct) CodeType(un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType) MeasureType(un.unece.uncefact.data.standard.unqualifieddatatype._20.MeasureType)

Aggregations

SalesPrice (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.SalesPrice)2 AAPProduct (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.AAPProduct)1 SizeDistribution (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.SizeDistribution)1 CodeType (un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType)1 MeasureType (un.unece.uncefact.data.standard.unqualifieddatatype._20.MeasureType)1 QuantityType (un.unece.uncefact.data.standard.unqualifieddatatype._20.QuantityType)1