Wt
4.11.1
|
A class that represents the result of a payment API call. More...
#include <Wt/Payment/Result.h>
Public Member Functions | |
Result () | |
Default constructor. More... | |
Result (const WString &errorMessage) | |
Constructor with an error message. More... | |
bool | error () const |
Returns whether the result indicates success. | |
WString | errorMessage () const |
Returns the error message. | |
void | setRequestMessage (const std::map< std::string, std::string > &msg) |
Sets the request parameters. More... | |
std::map< std::string, std::string > | requestMessage () const |
Returns the request parameters. More... | |
void | setResponseMessage (const std::map< std::string, std::string > &msg) |
Sets the response parameters. More... | |
std::map< std::string, std::string > | responseMessage () const |
Returns the response parameters. More... | |
A class that represents the result of a payment API call.
This class indicates the result of an asynchronous call: error() indicates whether there was an error.
Wt::Payment::Result::Result | ( | ) |
Default constructor.
This creates a successful result.
Wt::Payment::Result::Result | ( | const WString & | errorMessage | ) |
Constructor with an error message.
This creates an unsuccessful result. The error message cannot be empty.
std::map< std::string, std::string > Wt::Payment::Result::requestMessage | ( | ) | const |
Returns the request parameters.
std::map< std::string, std::string > Wt::Payment::Result::responseMessage | ( | ) | const |
Returns the response parameters.
void Wt::Payment::Result::setRequestMessage | ( | const std::map< std::string, std::string > & | msg | ) |
Sets the request parameters.
For an asynchronous API call that uses name value pairs, this sets the underlying values that were sent in the request.
void Wt::Payment::Result::setResponseMessage | ( | const std::map< std::string, std::string > & | msg | ) |
Sets the response parameters.
For an asynchronous API call that uses name value pairs, this sets the underlying values that were returned in the response.