From eec0b99c92a263be3ec84ea7af7852332e68322e Mon Sep 17 00:00:00 2001 From: Ioannis Petridis Date: Fri, 22 Nov 2024 15:41:02 +0000 Subject: [PATCH 1/2] Add link_id for ecom refund request, add paymentTransactionId in response --- src/main/proto/com/kodypay/grpc/pay/v1/pay.proto | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/proto/com/kodypay/grpc/pay/v1/pay.proto b/src/main/proto/com/kodypay/grpc/pay/v1/pay.proto index af46e0e..e4a3e08 100644 --- a/src/main/proto/com/kodypay/grpc/pay/v1/pay.proto +++ b/src/main/proto/com/kodypay/grpc/pay/v1/pay.proto @@ -71,7 +71,10 @@ message PaymentDetailsRequest { // requires X-API-Key header with 'API Key' value message RefundRequest { string store_id = 1; // UUID of store - string order_id = 2; + oneof id { + string order_id = 2; + string link_id = 4; //LinkId created by wombat + } string amount = 3; // amount in BigDecimal/2.dp (0.00) } message RefundResponse { @@ -83,6 +86,7 @@ message RefundResponse { string total_amount_refunded = 6; string remaining_amount = 7; string total_amount_requested = 8; + string paymentTransactionId = 9; enum RefundStatus { PENDING = 0; REQUESTED = 1; From 7aab9410973aa1d663ec3fc074b1d0174b09745f Mon Sep 17 00:00:00 2001 From: ioannis-kody Date: Fri, 22 Nov 2024 16:02:32 +0000 Subject: [PATCH 2/2] Update pay.proto --- src/main/proto/com/kodypay/grpc/pay/v1/pay.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/proto/com/kodypay/grpc/pay/v1/pay.proto b/src/main/proto/com/kodypay/grpc/pay/v1/pay.proto index e4a3e08..a4ce459 100644 --- a/src/main/proto/com/kodypay/grpc/pay/v1/pay.proto +++ b/src/main/proto/com/kodypay/grpc/pay/v1/pay.proto @@ -73,7 +73,7 @@ message RefundRequest { string store_id = 1; // UUID of store oneof id { string order_id = 2; - string link_id = 4; //LinkId created by wombat + string payment_id = 4; //Payment id created by wombat } string amount = 3; // amount in BigDecimal/2.dp (0.00) }