Table of content



3.3. ProductService


Entity-Relationship-Model of ProductService

Schema Entities

Entity NameAlias NameMicroserviceData Schema
CountryCountryCountryServiceShop
CustomerDeliveryCustomerDeliveryProductServiceShop
CustomerOrderCustomerOrderCountryServiceShop
DeliveryDeliveryCountryServiceShop
DiscountCampaignProductDiscountCampaignProductDiscountCampaignServiceShop
DiscountCampaignProductCategoryDiscountCampaignProductCategoryDiscountCampaignServiceShop
DistributorDistributorProductServiceShop
OrderItemOrderItemProductServiceShop
ProductProductProductServiceShop
ProductCategoryProductCategoryProductServiceShop
ProductDeliveryProductDeliveryProductServiceShop
ProductPriceProductPriceProductServiceShop
PurchaseRulePurchaseRuleProductServiceShop
SalesTaxSalesTaxProductServiceShop
WarehouseWarehouseCountryServiceShop

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/purchaseruleGETfindAllPurchaseRule()ProductServicePurchaseRule
/productprice/{id}PUTupdateProductPriceById(productprice)ProductServiceProductPrice
/purchaserule/{id}PUTupdatePurchaseRuleById(purchaserule)ProductServicePurchaseRule
/customerdelivery/orderitem/{id}GETfindAllCustomerDeliveryOfOrderItem(id)ProductServiceOrderItem CustomerDelivery
/orderitem/{id}DELETEdeleteOrderItemById(id)ProductServiceOrderItem
/productcategoryPOSTinsertProductCategory(productcategory)ProductServiceProductCategory
/productcategory/{id}PUTupdateProductCategoryById(productcategory)ProductServiceProductCategory
/productcategory/{id}GETfindProductCategoryById(id)ProductServiceProductCategory
/productdelivery/distributor/{id}GETfindAllProductDeliveryOfDistributor(id)ProductServiceDistributor ProductDelivery
/salestax/{id}DELETEdeleteSalesTaxById(id)ProductServiceSalesTax
/salestax/country/{id}GETfindAllSalesTaxOfCountry(id)ProductServiceCountry SalesTax
/customerdelivery/{id}PUTupdateCustomerDeliveryById(customerdelivery)ProductServiceCustomerDelivery
/product/countryoforigin/{id}GETfindAllProductOfCountryOfOrigin(id)ProductServiceCountry Product
/distributor/{id}GETfindDistributorById(id)ProductServiceDistributor
/productprice/product/{id}GETfindAllProductPriceOfProduct(id)ProductServiceProduct ProductPrice
/distributor/{id}PUTupdateDistributorById(distributor)ProductServiceDistributor
/productcategory/{id}DELETEdeleteProductCategoryById(id)ProductServiceProductCategory
/customerdeliveryPOSTinsertCustomerDelivery(customerdelivery)ProductServiceCustomerDelivery
/purchaserule/{id}DELETEdeletePurchaseRuleById(id)ProductServicePurchaseRule
/customerdelivery/{id}GETfindCustomerDeliveryById(id)ProductServiceCustomerDelivery
/product/salestax/{id}GETfindAllProductOfSalesTax(id)ProductServiceSalesTax Product
/productprice/{id}GETfindProductPriceById(id)ProductServiceProductPrice
/productdelivery/{id}PUTupdateProductDeliveryById(productdelivery)ProductServiceProductDelivery
/purchaserulePOSTinsertPurchaseRule(purchaserule)ProductServicePurchaseRule
/customerdelivery/delivery/{id}GETfindAllCustomerDeliveryOfDelivery(id)ProductServiceDelivery CustomerDelivery
/distributor/{id}DELETEdeleteDistributorById(id)ProductServiceDistributor
/productpricePOSTinsertProductPrice(productprice)ProductServiceProductPrice
/salestaxPOSTinsertSalesTax(salestax)ProductServiceSalesTax
/product/{id}DELETEdeleteProductById(id)ProductServiceProduct
/orderitem/customerorder/{id}GETfindAllOrderItemOfCustomerOrder(id)ProductServiceCustomerOrder OrderItem
/productdeliveryPOSTinsertProductDelivery(productdelivery)ProductServiceProductDelivery
/product/{id}PUTupdateProductById(product)ProductServiceProduct
/productdelivery/{id}GETfindProductDeliveryById(id)ProductServiceProductDelivery
/orderitemGETfindAllOrderItem()ProductServiceOrderItem
/customerdeliveryGETfindAllCustomerDelivery()ProductServiceCustomerDelivery
/purchaserule/{id}GETfindPurchaseRuleById(id)ProductServicePurchaseRule
/productdeliveryGETfindAllProductDelivery()ProductServiceProductDelivery
/distributorGETfindAllDistributor()ProductServiceDistributor
/productcategoryGETfindAllProductCategory()ProductServiceProductCategory
/productdelivery/{id}DELETEdeleteProductDeliveryById(id)ProductServiceProductDelivery
/orderitem/product/{id}GETfindAllOrderItemOfProduct(id)ProductServiceProduct OrderItem
/productdelivery/product/{id}GETfindAllProductDeliveryOfProduct(id)ProductServiceProduct ProductDelivery
/productprice/{id}DELETEdeleteProductPriceById(id)ProductServiceProductPrice
/productPOSTinsertProduct(product)ProductServiceProduct
/productprice/country/{id}GETfindAllProductPriceOfCountry(id)ProductServiceCountry ProductPrice
/productdelivery/warehouse/{id}GETfindAllProductDeliveryOfWarehouse(id)ProductServiceWarehouse ProductDelivery
/salestax/{id}GETfindSalesTaxById(id)ProductServiceSalesTax
/orderitem/{id}GETfindOrderItemById(id)ProductServiceOrderItem
/customerdelivery/{id}DELETEdeleteCustomerDeliveryById(id)ProductServiceCustomerDelivery
/salestax/{id}PUTupdateSalesTaxById(salestax)ProductServiceSalesTax
/distributorPOSTinsertDistributor(distributor)ProductServiceDistributor
/purchaserule/product/{id}GETfindAllPurchaseRuleOfProduct(id)ProductServiceProduct PurchaseRule
/productGETfindAllProduct()ProductServiceProduct
/salestaxGETfindAllSalesTax()ProductServiceSalesTax
/productpriceGETfindAllProductPrice()ProductServiceProductPrice
/orderitemPOSTinsertOrderItem(orderitem)ProductServiceOrderItem
/orderitem/{id}PUTupdateOrderItemById(orderitem)ProductServiceOrderItem
/product/productcategory/{id}GETfindAllProductOfProductCategory(id)ProductServiceProductCategory Product
/purchaserule/warehouse/{id}GETfindAllPurchaseRuleOfWarehouse(id)ProductServiceWarehouse PurchaseRule
/product/{id}GETfindProductById(id)ProductServiceProduct

ProductService inside the microservice architecture

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService





3.3.1 CustomerDelivery


Entity Name: CustomerDelivery

Data Schema: Shop

Master Service: ProductService


Call graph of entity of CustomerDelivery

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
DeliveryLONGCustomerDeliveryDelivery
OrderItemLONGCustomerDeliveryOrderItem
PrimaryKeyLONGCustomerDelivery
ReferenceNumberSTRINGCustomerDelivery
ServerReplicationVersionLONGCustomerDelivery
ShopOwnerLONGCustomerDelivery

Pseudo code snippet

final CustomerDelivery customerdelivery = (CustomerDelivery) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/customerdelivery/" + id, CustomerDelivery.class);
if (customerdelivery != null) {
    final Delivery delivery1 = (Delivery) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/delivery/" + customerdelivery.getDelivery().getId(), Delivery.class);
    if (delivery1 != null) {
        final ShopCustomer shopcustomer2 = (ShopCustomer) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/shopcustomer/" + delivery1.getShopCustomer().getId(), ShopCustomer.class);
        if (shopcustomer2 != null) {
            final Country country3 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + shopcustomer2.getCountry().getId(), Country.class);
            if (country3 != null) {
            }
        }
    }
    final OrderItem orderitem4 = (OrderItem) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/orderitem/" + customerdelivery.getOrderItem().getId(), OrderItem.class);
    if (orderitem4 != null) {
        final Product product5 = (Product) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/product/" + orderitem4.getProduct().getId(), Product.class);
        if (product5 != null) {
            final SalesTax salestax6 = (SalesTax) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/salestax/" + product5.getSalesTax().getId(), SalesTax.class);
            if (salestax6 != null) {
                final Country country7 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + salestax6.getCountry().getId(), Country.class);
                if (country7 != null) {
                }
            }
            final ProductCategory productcategory8 = (ProductCategory) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/productcategory/" + product5.getProductCategory().getId(), ProductCategory.class);
            if (productcategory8 != null) {
            }
            final Country countryoforigin9 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + product5.getCountryOfOrigin().getId(), Country.class);
            if (countryoforigin9 != null) {
            }
        }
        final CustomerOrder customerorder10 = (CustomerOrder) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/customerorder/" + orderitem4.getCustomerOrder().getId(), CustomerOrder.class);
        if (customerorder10 != null) {
            final ShopCustomer shopcustomer11 = (ShopCustomer) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/shopcustomer/" + customerorder10.getShopCustomer().getId(), ShopCustomer.class);
            if (shopcustomer11 != null) {
                final Country country12 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + shopcustomer11.getCountry().getId(), Country.class);
                if (country12 != null) {
                }
            }
        }
    }
}
return customerdelivery;


3.3.2 Distributor


Entity Name: Distributor

Data Schema: Shop

Master Service: ProductService


Call graph of entity of Distributor

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
DistributorNameSTRINGDistributor
EmailSTRINGDistributor
PhoneNoSTRINGDistributor
PrimaryKeyLONGDistributor
ServerReplicationVersionLONGDistributor
ShopOwnerLONGDistributor

Pseudo code snippet

final Distributor distributor = (Distributor) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/distributor/" + id, Distributor.class);
if (distributor != null) {
}
return distributor;


3.3.3 OrderItem


Entity Name: OrderItem

Data Schema: Shop

Master Service: ProductService


Call graph of entity of OrderItem

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
AmountDOUBLEOrderItem
CustomerOrderLONGOrderItemCustomerOrder
PrimaryKeyLONGOrderItem
ProductLONGOrderItemProduct
ServerReplicationVersionLONGOrderItem
ShopOwnerLONGOrderItem

Pseudo code snippet

final OrderItem orderitem = (OrderItem) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/orderitem/" + id, OrderItem.class);
if (orderitem != null) {
    final Product product1 = (Product) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/product/" + orderitem.getProduct().getId(), Product.class);
    if (product1 != null) {
        final SalesTax salestax2 = (SalesTax) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/salestax/" + product1.getSalesTax().getId(), SalesTax.class);
        if (salestax2 != null) {
            final Country country3 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + salestax2.getCountry().getId(), Country.class);
            if (country3 != null) {
            }
        }
        final ProductCategory productcategory4 = (ProductCategory) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/productcategory/" + product1.getProductCategory().getId(), ProductCategory.class);
        if (productcategory4 != null) {
        }
        final Country countryoforigin5 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + product1.getCountryOfOrigin().getId(), Country.class);
        if (countryoforigin5 != null) {
        }
    }
    final CustomerOrder customerorder6 = (CustomerOrder) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/customerorder/" + orderitem.getCustomerOrder().getId(), CustomerOrder.class);
    if (customerorder6 != null) {
        final ShopCustomer shopcustomer7 = (ShopCustomer) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/shopcustomer/" + customerorder6.getShopCustomer().getId(), ShopCustomer.class);
        if (shopcustomer7 != null) {
            final Country country8 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + shopcustomer7.getCountry().getId(), Country.class);
            if (country8 != null) {
            }
        }
    }
}
return orderitem;


3.3.4 Product


Entity Name: Product

Data Schema: Shop

Master Service: ProductService


Call graph of entity of Product

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
ArticleNumberSTRINGProduct
BarCodeSTRINGProduct
CountryOfOriginLONGProductCountry
HarmonizedCodeSTRINGProduct
MetaDescriptionSTRINGProduct
NeedsShipmentBOOLProduct
PageTitleSTRINGProduct
PageURLSTRINGProduct
PrimaryKeyLONGProduct
ProductCategoryLONGProductProductCategory
ProductTitleSTRINGProduct
SalesTaxLONGProductSalesTax
ServerReplicationVersionLONGProduct
ShopOwnerLONGProduct
ShopVisibilityBOOLProduct
StopSalesIfStockEmptyBOOLProduct
TagsSTRINGProduct
WeightDOUBLEProduct

Pseudo code snippet

final Product product = (Product) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/product/" + id, Product.class);
if (product != null) {
    final SalesTax salestax1 = (SalesTax) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/salestax/" + product.getSalesTax().getId(), SalesTax.class);
    if (salestax1 != null) {
        final Country country2 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + salestax1.getCountry().getId(), Country.class);
        if (country2 != null) {
        }
    }
    final ProductCategory productcategory3 = (ProductCategory) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/productcategory/" + product.getProductCategory().getId(), ProductCategory.class);
    if (productcategory3 != null) {
    }
    final Country countryoforigin4 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + product.getCountryOfOrigin().getId(), Country.class);
    if (countryoforigin4 != null) {
    }
}
return product;


3.3.5 ProductCategory


Entity Name: ProductCategory

Data Schema: Shop

Master Service: ProductService


Call graph of entity of ProductCategory

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
CategoryNameSTRINGProductCategory
DescriptionSTRINGProductCategory
PrimaryKeyLONGProductCategory
ServerReplicationVersionLONGProductCategory
ShopOwnerLONGProductCategory

Pseudo code snippet

final ProductCategory productcategory = (ProductCategory) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/productcategory/" + id, ProductCategory.class);
if (productcategory != null) {
}
return productcategory;


3.3.6 ProductDelivery


Entity Name: ProductDelivery

Data Schema: Shop

Master Service: ProductService


Call graph of entity of ProductDelivery

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
AmountDOUBLEProductDelivery
DeliveryDateLONGProductDelivery
DistributorLONGProductDeliveryDistributor
PrimaryKeyLONGProductDelivery
ProductLONGProductDeliveryProduct
RemarksSTRINGProductDelivery
ServerReplicationVersionLONGProductDelivery
ShopOwnerLONGProductDelivery
WarehouseLONGProductDeliveryWarehouse

Pseudo code snippet

final ProductDelivery productdelivery = (ProductDelivery) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/productdelivery/" + id, ProductDelivery.class);
if (productdelivery != null) {
    final Warehouse warehouse1 = (Warehouse) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/warehouse/" + productdelivery.getWarehouse().getId(), Warehouse.class);
    if (warehouse1 != null) {
        final Country country2 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + warehouse1.getCountry().getId(), Country.class);
        if (country2 != null) {
        }
    }
    final Product product3 = (Product) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/product/" + productdelivery.getProduct().getId(), Product.class);
    if (product3 != null) {
        final SalesTax salestax4 = (SalesTax) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/salestax/" + product3.getSalesTax().getId(), SalesTax.class);
        if (salestax4 != null) {
            final Country country5 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + salestax4.getCountry().getId(), Country.class);
            if (country5 != null) {
            }
        }
        final ProductCategory productcategory6 = (ProductCategory) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/productcategory/" + product3.getProductCategory().getId(), ProductCategory.class);
        if (productcategory6 != null) {
        }
        final Country countryoforigin7 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + product3.getCountryOfOrigin().getId(), Country.class);
        if (countryoforigin7 != null) {
        }
    }
    final Distributor distributor8 = (Distributor) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/distributor/" + productdelivery.getDistributor().getId(), Distributor.class);
    if (distributor8 != null) {
    }
}
return productdelivery;


3.3.7 ProductPrice


Entity Name: ProductPrice

Data Schema: Shop

Master Service: ProductService


Call graph of entity of ProductPrice

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
CountryLONGProductPriceCountry
PriceDOUBLEProductPrice
PrimaryKeyLONGProductPrice
ProductLONGProductPriceProduct
ServerReplicationVersionLONGProductPrice
ShopOwnerLONGProductPrice
ValidFromLONGProductPrice

Pseudo code snippet

final ProductPrice productprice = (ProductPrice) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/productprice/" + id, ProductPrice.class);
if (productprice != null) {
    final Product product1 = (Product) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/product/" + productprice.getProduct().getId(), Product.class);
    if (product1 != null) {
        final SalesTax salestax2 = (SalesTax) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/salestax/" + product1.getSalesTax().getId(), SalesTax.class);
        if (salestax2 != null) {
            final Country country3 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + salestax2.getCountry().getId(), Country.class);
            if (country3 != null) {
            }
        }
        final ProductCategory productcategory4 = (ProductCategory) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/productcategory/" + product1.getProductCategory().getId(), ProductCategory.class);
        if (productcategory4 != null) {
        }
        final Country countryoforigin5 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + product1.getCountryOfOrigin().getId(), Country.class);
        if (countryoforigin5 != null) {
        }
    }
    final Country country6 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + productprice.getCountry().getId(), Country.class);
    if (country6 != null) {
    }
}
return productprice;


3.3.8 PurchaseRule


Entity Name: PurchaseRule

Data Schema: Shop

Master Service: ProductService


Call graph of entity of PurchaseRule

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
CreationDateLONGPurchaseRule
NotificationEmailSTRINGPurchaseRule
PrimaryKeyLONGPurchaseRule
ProductLONGPurchaseRuleProduct
ServerReplicationVersionLONGPurchaseRule
ShopOwnerLONGPurchaseRule
ThresholdINTPurchaseRule
WarehouseLONGPurchaseRuleWarehouse

Pseudo code snippet

final PurchaseRule purchaserule = (PurchaseRule) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/purchaserule/" + id, PurchaseRule.class);
if (purchaserule != null) {
    final Product product1 = (Product) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/product/" + purchaserule.getProduct().getId(), Product.class);
    if (product1 != null) {
        final SalesTax salestax2 = (SalesTax) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/salestax/" + product1.getSalesTax().getId(), SalesTax.class);
        if (salestax2 != null) {
            final Country country3 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + salestax2.getCountry().getId(), Country.class);
            if (country3 != null) {
            }
        }
        final ProductCategory productcategory4 = (ProductCategory) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/productcategory/" + product1.getProductCategory().getId(), ProductCategory.class);
        if (productcategory4 != null) {
        }
        final Country countryoforigin5 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + product1.getCountryOfOrigin().getId(), Country.class);
        if (countryoforigin5 != null) {
        }
    }
    final Warehouse warehouse6 = (Warehouse) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/warehouse/" + purchaserule.getWarehouse().getId(), Warehouse.class);
    if (warehouse6 != null) {
        final Country country7 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + warehouse6.getCountry().getId(), Country.class);
        if (country7 != null) {
        }
    }
}
return purchaserule;


3.3.9 SalesTax


Entity Name: SalesTax

Data Schema: Shop

Master Service: ProductService


Call graph of entity of SalesTax

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
CategoryINTSalesTax
CountryLONGSalesTaxCountry
PrimaryKeyLONGSalesTax
ServerReplicationVersionLONGSalesTax
ShopOwnerLONGSalesTax
TaxInPercentDOUBLESalesTax
ValidFromLONGSalesTax

Pseudo code snippet

final SalesTax salestax = (SalesTax) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/salestax/" + id, SalesTax.class);
if (salestax != null) {
    final Country country1 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + salestax.getCountry().getId(), Country.class);
    if (country1 != null) {
    }
}
return salestax;


Table of content