Class PaymentController.PaymentResponse

java.lang.Object
io.github.ravocode.avoonce.sample.PaymentController.PaymentResponse
Enclosing class:
PaymentController

public static class PaymentController.PaymentResponse extends Object
Response payload returned after processing a payment request.
  • Field Details

    • transactionId

      public String transactionId
      The generated transaction identifier.
    • status

      public String status
      The processing status for the payment.
    • processedAttempts

      public int processedAttempts
      The number of processing attempts observed so far.
  • Constructor Details

    • PaymentResponse

      public PaymentResponse()
      Default constructor for serialization frameworks.
    • PaymentResponse

      public PaymentResponse(String transactionId, String status, int processedAttempts)
      Creates a payment response with the supplied outcome details.
      Parameters:
      transactionId - the generated transaction identifier
      status - the processing status
      processedAttempts - the number of attempts seen so far