Skip to content

Commit

Permalink
Remove unused fields, remove refund status (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioannis-kody authored Nov 19, 2024
1 parent 86c32e2 commit a0c8520
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/main/proto/com/kodypay/grpc/pay/v1/pay.proto
Original file line number Diff line number Diff line change
Expand Up @@ -73,23 +73,19 @@ message RefundRequest {
string store_id = 1; // UUID of store
string order_id = 2;
string amount = 3; // amount in BigDecimal/2.dp (0.00)
optional bool print_merchant_receipt = 4;
optional bool print_shopper_receipt = 5;
}
message RefundResponse {
RefundStatus status = 1;
optional string failure_reason = 2; // only populated on failure
optional string receipt_json = 3; // json blob containing the receipt data
string order_id = 4;
google.protobuf.Timestamp date_created = 5;
string total_paid_amount = 6;
string total_amount_refunded = 7;
string remaining_amount = 8;
string total_amount_requested = 9;
string order_id = 3;
google.protobuf.Timestamp date_created = 4;
string total_paid_amount = 5;
string total_amount_refunded = 6;
string remaining_amount = 7;
string total_amount_requested = 8;
enum RefundStatus {
PENDING = 0;
REQUESTED = 1;
FAILED = 2;
REFUNDED = 3;
}
}

0 comments on commit a0c8520

Please sign in to comment.