ProtocolErrorEvent.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // ProtocolErrorEvent.h
  3. // CardinalEMVCoSDK
  4. //
  5. // Copyright © 2018 Cardinal Commerce. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "ErrorMessage.h"
  9. /**
  10. * A protocol error is any error message that is returned by the ACS or an error message that is generated by the 3DS SDK to be returned to the ACS.
  11. * The ProtocolErrorEvent class represents an error message of this type.
  12. * The SDK sends the error code and details from this error message as part of the notification to the 3DS Requestor App.
  13. */
  14. @interface ProtocolErrorEvent : NSObject
  15. - (id _Nonnull ) initWithSDKTransactionID: (nonnull NSString *) sdkTransactionID
  16. errorMessage: (nonnull ErrorMessage *) errorMessage;
  17. @property (nonatomic, strong, nonnull, readonly) NSString* sdkTransactionID;
  18. @property (nonatomic, strong, nonnull, readonly) ErrorMessage* errorMessage;
  19. /**
  20. * Returns the error message.
  21. * @return ErrorMessage
  22. */
  23. - (nonnull ErrorMessage *) getErrorMessage;
  24. /**
  25. * Returns the SDK Transaction ID.
  26. * @return NSString
  27. */
  28. - (nonnull NSString *) getSDKTransactionID;
  29. + (instancetype _Nonnull )new NS_UNAVAILABLE;
  30. - (instancetype _Nonnull )init NS_UNAVAILABLE;
  31. @end