Public Member Functions | |
String | getSessionId () |
String | getType () |
String | getEventId () |
int | getStatus () |
void | setStatus (int status) |
void | setSuccessful () |
void | setFailed () |
String | getMessage () |
void | setMessage (String message) |
CommerceResponse (Parcel in, int parcelVersion) | |
void | writeToParcel (Parcel dest, int flags) |
int | describeContents () |
![]() | |
BaseParcel (Parcel in, int parcelVersion) | |
void | setParcelVersion (int targetParcelVersion) |
final int | getParcelVersion () |
String | getClassName () |
void | writeToParcel (Parcel dest, int flags) |
int | describeContents () |
Static Public Attributes | |
static final Parcelable.Creator< CommerceResponse > | CREATOR |
![]() | |
static final Parcelable.Creator< BaseParcel > | CREATOR |
Protected Member Functions | |
CommerceResponse (String sessionId, String type, String eventId) | |
Additional Inherited Members | |
![]() | |
static void | safelySetParcelVersion (final int targetParcelVersion, @Nullable BaseParcel item) |
static void | safelySetParcelVersion (final int targetParcelVersion, @Nullable List<? extends BaseParcel > items) |
static< T extends BaseParcel > void | safelySetParcelVersion (final int targetParcelVersion, @Nullable T[] items) |
The main factory for all commerce responses. Please refer to the individual events that generate the response for specific information.
Definition at line 21 of file CommerceResponse.java.
String getEventId | ( | ) |
Returns an optional event ID as copied from the originating event.
Definition at line 46 of file CommerceResponse.java.
String getMessage | ( | ) |
Returns the message associated with the response, if it is conveying an error.
Definition at line 81 of file CommerceResponse.java.
String getSessionId | ( | ) |
Returns the session ID associated with this event, or null if detached from a session.
Definition at line 31 of file CommerceResponse.java.
int getStatus | ( | ) |
Returns the status of the response, non-zero if it encountered an error during handling.
Definition at line 53 of file CommerceResponse.java.
String getType | ( | ) |
Returns the response type, generally a copy of the event type, or otherwise linked to the type of event that generated this response.
Definition at line 39 of file CommerceResponse.java.
void setFailed | ( | ) |
Sets the status to a general failed value.
Definition at line 74 of file CommerceResponse.java.
void setMessage | ( | String | message | ) |
Refer to getMessage().
Definition at line 88 of file CommerceResponse.java.
void setStatus | ( | int | status | ) |
Refer to getStatus().
Definition at line 60 of file CommerceResponse.java.
void setSuccessful | ( | ) |
Sets the status to the successful value, namely, 0.
Definition at line 67 of file CommerceResponse.java.
|
static |
Definition at line 128 of file CommerceResponse.java.
This document is the confidential property of Verifone, Inc. Any reproduction or distribution of this document, in whole or in part, or the disclosure of any of the information contained herein, without the prior written consent of Verifone, Inc. is prohibited. This document and any supplemental material supplied as part of any review must be returned to Verifone, Inc. upon request. Notice: This document may go through material revisions over time. While the Company will make every effort to keep readers updated as changes occur, care must be taken by the reader to make sure they are reading the latest version. Version numbers appear in the title page and revision history page of this document. All rights reserved. Verifone, the Verifone logo are either trademarks or registered trademarks of Verifone in the United States and/or other countries. All other trademarks or brand names are properties of their respective holders.