Class StkStatusQueryResponse.StkStatusQueryResponseBuilder
java.lang.Object
io.github.openpaydev.mpesa.core.models.StkStatusQueryResponse.StkStatusQueryResponseBuilder
- Enclosing class:
- StkStatusQueryResponse
-
Method Summary
Modifier and TypeMethodDescriptionbuild()checkoutRequestID(String checkoutRequestID) The unique identifier for the transaction that was generated by the M-Pesa system.merchantRequestID(String merchantRequestID) The unique identifier for the transaction that was sent by the merchant.responseCode(String responseCode) The status code of the initial query request itself.responseDescription(String responseDescription) A brief description of the status of the query request.resultCode(String resultCode) The status code indicating the final result of the transaction.resultDesc(String resultDesc) A detailed description of the transaction's final result.toString()
-
Method Details
-
responseCode
The status code of the initial query request itself. A value of "0" indicates that the query request was accepted for processing.- Returns:
this.
-
responseDescription
public StkStatusQueryResponse.StkStatusQueryResponseBuilder responseDescription(String responseDescription) A brief description of the status of the query request. Example: "Accepted for processing"- Returns:
this.
-
merchantRequestID
public StkStatusQueryResponse.StkStatusQueryResponseBuilder merchantRequestID(String merchantRequestID) The unique identifier for the transaction that was sent by the merchant. This is the same ID that was used in the initial STK Push request.- Returns:
this.
-
checkoutRequestID
public StkStatusQueryResponse.StkStatusQueryResponseBuilder checkoutRequestID(String checkoutRequestID) The unique identifier for the transaction that was generated by the M-Pesa system.- Returns:
this.
-
resultCode
The status code indicating the final result of the transaction. "0" means the transaction was successful. Any other value indicates a failure or a pending state.- Returns:
this.
-
resultDesc
A detailed description of the transaction's final result. Example: "The service request is processed successfully."- Returns:
this.
-
build
-
toString
-