Added transactionResponseState and completedSuccessfully() to the ApiResponse class.