Commit cfcc382f authored by sgandhi's avatar sgandhi

endOfSale end point created.

parent 8dc94187
......@@ -16,7 +16,7 @@ configurations {
repositories {
flatDir {
dirs 'C:\\Users\\kpadhi\\.m2\\repository\\com\\nisum\\exceptionservice\\0.0.1'
dirs 'C:\\Users\\sgandhi\\.m2\\repository\\com\\nisum\\exceptionservice\\0.0.1'
}
mavenCentral()
}
......
......@@ -13,7 +13,6 @@ import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.List;
import java.util.UUID;
@Data
......@@ -30,17 +29,10 @@ public class EndOfSaleEntity {
@Id
@Column(name = "uuid")
UUID uuid;
@Type(type = "jsonb")
@Column(name = "offertransactionresponse")
String offerTransactionResponse;
//OfferTransactionResponse offerTransactionResponse;
@Type(type = "jsonb")
@Column(name = "offers")
String offers;
//List<OfferLookup> offers;
}
......@@ -24,8 +24,6 @@ public class EndOfSaleService {
ObjectMapper mapper = new ObjectMapper();
String offerTransactionResponseJson = mapper.writeValueAsString(endOfSaleReq.getOfferTransactionResponse());
String offersJosn = mapper.writeValueAsString(endOfSaleReq.getOffers());
EndOfSaleEntity endOfSaleEntity = new EndOfSaleEntity();
endOfSaleEntity.setOfferTransactionResponse(offerTransactionResponseJson);
endOfSaleEntity.setOffers(offersJosn);
......
spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/postgres
spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/user
spring.datasource.username=user
spring.datasource.password=password123
promotion.engine.calculate.discount.url=/promotionEngine/calculateDiscount
......
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