Table of content



The DiscountCampaignCustomerGroup entity within the microservice architecture

Entity-Relationship-Model of <DiscountCampaignService>

Entity Name: DiscountCampaignCustomerGroup

Data Schema: Shop

Master Service: DiscountCampaignService


Dataflow of entity of DiscountCampaignCustomerGroup

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
CustomerGroupLONGDiscountCampaignCustomerGroupCustomerGroup
DiscountCampaignLONGDiscountCampaignCustomerGroupDiscountCampaign
PrimaryKeyLONGDiscountCampaignCustomerGroup
ServerReplicationVersionLONGDiscountCampaignCustomerGroup
ShopOwnerLONGDiscountCampaignCustomerGroup

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/discountcampaigncustomergroupPOSTinsertDiscountCampaignCustomerGroup(discountcampaigncustomergroup)DiscountCampaignServiceDiscountCampaignCustomerGroup
/discountcampaigncustomergroup/{id}PUTupdateDiscountCampaignCustomerGroupById(discountcampaigncustomergroup)DiscountCampaignServiceDiscountCampaignCustomerGroup
/discountcampaigncustomergroup/{id}DELETEdeleteDiscountCampaignCustomerGroupById(id)DiscountCampaignServiceDiscountCampaignCustomerGroup
/discountcampaigncustomergroup/customergroup/{id}GETfindAllDiscountCampaignCustomerGroupOfCustomerGroup(id)DiscountCampaignServiceCustomerGroup DiscountCampaignCustomerGroup
/discountcampaigncustomergroup/discountcampaign/{id}GETfindAllDiscountCampaignCustomerGroupOfDiscountCampaign(id)DiscountCampaignServiceDiscountCampaign DiscountCampaignCustomerGroup
/discountcampaigncustomergroup/{id}GETfindDiscountCampaignCustomerGroupById(id)DiscountCampaignServiceDiscountCampaignCustomerGroup
/discountcampaigncustomergroupGETfindAllDiscountCampaignCustomerGroup()DiscountCampaignServiceDiscountCampaignCustomerGroup

Distributed transaction of <DiscountCampaignCustomerGroup>

Pseudo code snippet

final DiscountCampaignCustomerGroup discountcampaigncustomergroup = (DiscountCampaignCustomerGroup) this.callMicroservice(ServiceNames.DISCOUNT_CAMPAIGN_SERVICE + "/discountcampaigncustomergroup/" + id, DiscountCampaignCustomerGroup.class);
if (discountcampaigncustomergroup != null) {
    final CustomerGroup customergroup1 = (CustomerGroup) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/customergroup/" + discountcampaigncustomergroup.getCustomerGroup().getId(), CustomerGroup.class);
    if (customergroup1 != null) {
    }
    final DiscountCampaign discountcampaign2 = (DiscountCampaign) this.callMicroservice(ServiceNames.DISCOUNT_CAMPAIGN_SERVICE + "/discountcampaign/" + discountcampaigncustomergroup.getDiscountCampaign().getId(), DiscountCampaign.class);
    if (discountcampaign2 != null) {
        final DiscountType discounttype3 = (DiscountType) this.callMicroservice(ServiceNames.DISCOUNT_CAMPAIGN_SERVICE + "/discounttype/" + discountcampaign2.getDiscountType().getId(), DiscountType.class);
        if (discounttype3 != null) {
        }
    }
}
return discountcampaigncustomergroup;


Table of content