Entity Name: DiscountCampaignCustomer
Data Schema: Shop
Master Service: CountryService
3.1 CountryService | 3.2 DiscountCampaignService | 3.3 ProductService | 3.4 ShopLicenseService |
Property Name | Datatype | Data Entity | Reference Entity |
DiscountCampaign | LONG | DiscountCampaignCustomer | DiscountCampaign |
MaxDiscounts | INT | DiscountCampaignCustomer | |
PrimaryKey | LONG | DiscountCampaignCustomer | |
ServerReplicationVersion | LONG | DiscountCampaignCustomer | |
ShopCustomer | LONG | DiscountCampaignCustomer | ShopCustomer |
ShopOwner | LONG | DiscountCampaignCustomer | |
UsedDiscounts | INT | DiscountCampaignCustomer |
Relative mapping URL | Request Method | Method Name | Microservice | Involved Entities |
/discountcampaigncustomer/{id} | DELETE | deleteDiscountCampaignCustomerById(id) | CountryService | DiscountCampaignCustomer |
/discountcampaigncustomer/{id} | PUT | updateDiscountCampaignCustomerById(discountcampaigncustomer) | CountryService | DiscountCampaignCustomer |
/discountcampaigncustomer/{id} | GET | findDiscountCampaignCustomerById(id) | CountryService | DiscountCampaignCustomer |
/discountcampaigncustomer | GET | findAllDiscountCampaignCustomer() | CountryService | DiscountCampaignCustomer |
/discountcampaigncustomer/discountcampaign/{id} | GET | findAllDiscountCampaignCustomerOfDiscountCampaign(id) | CountryService | DiscountCampaign DiscountCampaignCustomer |
/discountcampaigncustomer/shopcustomer/{id} | GET | findAllDiscountCampaignCustomerOfShopCustomer(id) | CountryService | ShopCustomer DiscountCampaignCustomer |
/discountcampaigncustomer | POST | insertDiscountCampaignCustomer(discountcampaigncustomer) | CountryService | DiscountCampaignCustomer |
Pseudo code snippet
final DiscountCampaignCustomer discountcampaigncustomer = (DiscountCampaignCustomer) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/discountcampaigncustomer/" + id, DiscountCampaignCustomer.class);