@@ -28,6 +28,7 @@ CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
...
@@ -28,6 +28,7 @@ CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE TABLE transaction_recorder(uuid uuid NOT NULL DEFAULT uuid_generate_v1(),offertransactionresponse jsonb NOT NULL,offers jsonb NOT NULL,isprocessed boolean);
CREATE TABLE transaction_recorder(uuid uuid NOT NULL DEFAULT uuid_generate_v1(),offertransactionresponse jsonb NOT NULL,offers jsonb NOT NULL,isprocessed boolean);
insert into transaction_recorder VALUES(uuid_generate_v4(), '{"hhid":"54321","transactionId":"a9f71725-ae55-42f2-a2a9-a2d3c84d631c","discountedItemList":[{"itemName":"Coke","itemId":"1","price":11.007},{"itemName":"Thumpsup","itemId":"2","price":14.202}],"discountDesc":"10 Percent"}','[{"id":"1","idType":"UPC","offerId":12,"storeId":"A","terminal":"B","preCondition":"AND"},{"id":"2","idType":"CUST","offerId":13,"storeId":"C","terminal":"B","preCondition":"OR"}]', true);
select* from transaction_recorder;
select* from transaction_recorder;
...
@@ -36,7 +37,12 @@ select * from transaction_recorder;
...
@@ -36,7 +37,12 @@ select * from transaction_recorder;
Create following topic Name : transactionRecord
Create following topic Name : transactionRecord
```bash
```bash
When we get following rest end point from OfferTransactionService with transactionId.
Access service using below URL. Please pass the UUID after transaction/ which is there in database.