Table of content



The DiscountType entity within the microservice architecture

Entity-Relationship-Model of <DiscountCampaignService>

Entity Name: DiscountType

Data Schema: Shop

Master Service: DiscountCampaignService


Dataflow of entity of DiscountType

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
BuyINTDiscountType
FixedAmountDOUBLEDiscountType
FreeShippingBOOLDiscountType
PayINTDiscountType
PercentageDOUBLEDiscountType
PrimaryKeyLONGDiscountType
ServerReplicationVersionLONGDiscountType
ShopOwnerLONGDiscountType

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/discounttype/{id}PUTupdateDiscountTypeById(discounttype)DiscountCampaignServiceDiscountType
/discounttypePOSTinsertDiscountType(discounttype)DiscountCampaignServiceDiscountType
/discountcampaign/discounttype/{id}GETfindAllDiscountCampaignOfDiscountType(id)DiscountCampaignServiceDiscountType DiscountCampaign
/discounttype/{id}DELETEdeleteDiscountTypeById(id)DiscountCampaignServiceDiscountType
/discounttypeGETfindAllDiscountType()DiscountCampaignServiceDiscountType
/discounttype/{id}GETfindDiscountTypeById(id)DiscountCampaignServiceDiscountType

Distributed transaction of <DiscountType>

Pseudo code snippet

final DiscountType discounttype = (DiscountType) this.callMicroservice(ServiceNames.DISCOUNT_CAMPAIGN_SERVICE + "/discounttype/" + id, DiscountType.class);
if (discounttype != null) {
}
return discounttype;


Table of content