CompletionEvent.h 954 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // CompletionEvent.h
  3. // CardinalEMVCoSDK
  4. //
  5. // Copyright © 2018 Cardinal Commerce. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. /**
  9. * The CompletionEvent class holds data about completion of the challenge process.
  10. */
  11. @interface CompletionEvent : NSObject
  12. - (id _Nonnull ) initWithSDKTransactionID: (nonnull NSString *) sdkTransactionID
  13. transactionStatus: (nonnull NSString *) transactionStatus;
  14. @property (nonatomic, strong, nonnull, readonly) NSString* sdkTransactionID;
  15. @property (nonatomic, strong, nonnull, readonly) NSString* transactionStatus;
  16. /**
  17. * Returns the SDK Transaction ID.
  18. * @return NSString
  19. */
  20. - (nonnull NSString *) getSDKTransactionID;
  21. /**
  22. * Returns the transaction status that was received in the final CRes.
  23. * @return NSString
  24. */
  25. - (nonnull NSString *) getTransactionStatus;
  26. + (instancetype _Nonnull )new NS_UNAVAILABLE;
  27. - (instancetype _Nonnull )init NS_UNAVAILABLE;
  28. @end