Skip to content

Commit

Permalink
update PreAuthorizedEvent adding payment type
Browse files Browse the repository at this point in the history
  • Loading branch information
fupelaqu committed Sep 20, 2024
1 parent d0ef930 commit 18b9c71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/src/main/protobuf/message/payment/transaction.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ message PreAuthorizedEvent {
required string transactionId = 5;
required string paymentMethodId = 6;
optional bool printReceipt = 7;
required app.softnetwork.payment.model.Transaction.PaymentType paymentType = 8;
}

message PreAuthorizationFailedEvent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ trait PreAuthorizationCommandHandler
.withDebitedAmount(transaction.amount)
.withLastUpdated(lastUpdated)
.withPrintReceipt(printReceipt)
.withPaymentType(transaction.paymentType)
) :+
PaymentAccountUpsertedEvent.defaultInstance
.withDocument(updatedPaymentAccount)
Expand Down

0 comments on commit 18b9c71

Please sign in to comment.