Commit a6e32025 authored by Kali Padhi's avatar Kali Padhi

update the new field discountDesc

parent 7739e942
...@@ -19,7 +19,7 @@ configurations { ...@@ -19,7 +19,7 @@ configurations {
repositories { repositories {
flatDir { 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() mavenCentral()
} }
......
...@@ -20,4 +20,5 @@ public class OfferTransactionResponse { ...@@ -20,4 +20,5 @@ public class OfferTransactionResponse {
String hhid; String hhid;
String transactionId; String transactionId;
List<Item> discountedItemList = newArrayList(); List<Item> discountedItemList = newArrayList();
String discountDesc;
} }
...@@ -19,4 +19,5 @@ public class PEResponse { ...@@ -19,4 +19,5 @@ public class PEResponse {
Long hhid; Long hhid;
List<Item> discountedItemList = newArrayList(); List<Item> discountedItemList = newArrayList();
String discountDesc;
} }
...@@ -51,6 +51,8 @@ class OfferTransactionControllerTest { ...@@ -51,6 +51,8 @@ class OfferTransactionControllerTest {
private String UU_ID_FOR_END_OF_TRANSACTION = "id01"; private String UU_ID_FOR_END_OF_TRANSACTION = "id01";
private String DISCOUNT_DESC = "10 percent";
@Mock @Mock
private OfferCallingPEService offerCallingPEService; private OfferCallingPEService offerCallingPEService;
...@@ -104,7 +106,7 @@ class OfferTransactionControllerTest { ...@@ -104,7 +106,7 @@ class OfferTransactionControllerTest {
} }
private EndOfSaleReq buildEndOfSaleReq() { 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()); EndOfSaleReq endOfSaleReq = new EndOfSaleReq(offerTransactionResponse, getOffers());
return endOfSaleReq; return endOfSaleReq;
} }
......
spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/storedb spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/storedb
spring.datasource.username=postgres spring.datasource.username=postgres
spring.datasource.password=welcome123 spring.datasource.password=dbpwd
endpoint.url.promotionEngineUrl=/promotionEngine/calculateDiscount endpoint.url.promotionEngineUrl=/promotionEngine/calculateDiscount
endpoint.url.peBaseUrl=http://localhost:7073 endpoint.url.peBaseUrl=http://localhost:7073
endpoint.url.storeProducerUrl=/store/producer 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