Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OTSWithFeign
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Siva Naga Someswara Jatla
OTSWithFeign
Commits
a6e32025
Commit
a6e32025
authored
Apr 20, 2020
by
Kali Padhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update the new field discountDesc
parent
7739e942
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
3 deletions
+7
-3
build.gradle
build.gradle
+1
-1
OfferTransactionResponse.java
...offertransactionservice/dto/OfferTransactionResponse.java
+1
-0
PEResponse.java
...ava/com/nisum/offertransactionservice/dto/PEResponse.java
+1
-0
OfferTransactionControllerTest.java
...ionservice/controller/OfferTransactionControllerTest.java
+3
-1
application.properties
src/test/resources/application.properties
+1
-1
No files found.
build.gradle
View file @
a6e32025
...
@@ -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
()
}
}
...
...
src/main/java/com/nisum/offertransactionservice/dto/OfferTransactionResponse.java
View file @
a6e32025
...
@@ -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
;
}
}
src/main/java/com/nisum/offertransactionservice/dto/PEResponse.java
View file @
a6e32025
...
@@ -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
;
}
}
src/test/java/com/nisum/offertransactionservice/controller/OfferTransactionControllerTest.java
View file @
a6e32025
...
@@ -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
;
}
}
...
...
src/test/resources/application.properties
View file @
a6e32025
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment