Skip to content

Commit 506e70b

Browse files
authored
Add refunds list in the PayResponse (#82)
1 parent 6637e31 commit 506e70b

File tree

1 file changed

+10
-0
lines changed
  • src/main/proto/com/kodypay/grpc/pay/v1

1 file changed

+10
-0
lines changed

src/main/proto/com/kodypay/grpc/pay/v1/pay.proto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ message PayResponse {
8282
optional string order_id = 13;
8383
repeated PayRequest.PaymentMethods accepts_only = 14;
8484
optional bool is_payment_declined = 15; // Field to be able to differentiate cancelled from declined, for Oracle use, without breaking backwards compatibility.
85+
repeated RefundDetails refunds = 16;
8586

8687
message PaymentData {
8788
google.protobuf.Timestamp date_paid = 1;
@@ -104,6 +105,15 @@ message PayResponse {
104105
string auth_code = 5;
105106
}
106107
}
108+
109+
message RefundDetails {
110+
string payment_id = 1;
111+
optional string psp_reference = 2; // Might not have a PSP yet reference if pending
112+
string payment_transaction_id = 3;
113+
string total_paid_amount = 4;
114+
google.protobuf.Timestamp event_date = 5;
115+
optional string terminal_id = 6;
116+
}
107117
}
108118

109119
enum PaymentStatus {

0 commit comments

Comments
 (0)