create an updated class diagram with the information presented in the sequence diagram for the “Order Payment” use case.
the class diagram to update:
the Sequence Diagram for Order payment-
title Order Payment
Customer --> Database: Select book
Database --> GUI: Retrieve total amount
GUI --> Customer: Display amount
Customer --> GUI: Place Order
GUI --> PaymentProcessor: Verify Payment
alt Payment Verified?
opt [Subsequence: Charge Payment & Save Information]
PaymentProcessor -> Bank: Charge Payment
Bank --> PaymentProcessor: Confirmation
PaymentProcessor -> Database: Save Order and Account Information
Database --> PaymentProcessor: Order and Account Confirmation
end
loop for each item in order
PaymentProcessor --> Database: Update Inventory
Database --> PaymentProcessor: Inventory Update Confirmation
end loop
PaymentProcessor --> GUI: Sign Out Customer, Empty Cart
GUI --> Customer: Display Order Number
else Payment Not Verified
PaymentProcessor --> GUI: Display Payment Error Message
GUI --> Customer: Display Error Message
end
WILL UPVOTE IF PROVIDED GOOD EXPLANATION AND DIAGRAM. THANKS