Commit a6e32025 authored by Kali Padhi's avatar Kali Padhi

update the new field discountDesc

parent 7739e942
......@@ -19,7 +19,7 @@ configurations {
repositories {
flatDir {
dirs '/Users/sivanagasomeswaragandhijatla/.m2/repository/com/nisum/exceptionservice/0.0.1'
dirs 'C:\\Users\\kpadhi\\.m2\\repository\\com\\nisum\\exceptionservice\\0.0.1'
}
mavenCentral()
}
......
......@@ -20,4 +20,5 @@ public class OfferTransactionResponse {
String hhid;
String transactionId;
List<Item> discountedItemList = newArrayList();
String discountDesc;
}
......@@ -19,4 +19,5 @@ public class PEResponse {
Long hhid;
List<Item> discountedItemList = newArrayList();
String discountDesc;
}
......@@ -51,6 +51,8 @@ class OfferTransactionControllerTest {
private String UU_ID_FOR_END_OF_TRANSACTION = "id01";
private String DISCOUNT_DESC = "10 percent";
@Mock
private OfferCallingPEService offerCallingPEService;
......@@ -104,7 +106,7 @@ class OfferTransactionControllerTest {
}
private EndOfSaleReq buildEndOfSaleReq() {
OfferTransactionResponse offerTransactionResponse = new OfferTransactionResponse(HH_ID_FOR_END_OF_SALE, TRANSACTION_ID_FOR_END_OF_SALE, getItemList());
OfferTransactionResponse offerTransactionResponse = new OfferTransactionResponse(HH_ID_FOR_END_OF_SALE, TRANSACTION_ID_FOR_END_OF_SALE, getItemList(),DISCOUNT_DESC);
EndOfSaleReq endOfSaleReq = new EndOfSaleReq(offerTransactionResponse, getOffers());
return endOfSaleReq;
}
......
spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/storedb
spring.datasource.username=postgres
spring.datasource.password=welcome123
spring.datasource.password=dbpwd
endpoint.url.promotionEngineUrl=/promotionEngine/calculateDiscount
endpoint.url.peBaseUrl=http://localhost:7073
endpoint.url.storeProducerUrl=/store/producer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment