PPOTPersistentRequestData.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // PPOTPersistentRequestData.h
  3. // PayPalOneTouch
  4. //
  5. // Copyright © 2015 PayPal, Inc. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #if __has_include("PPOTMacros.h")
  9. #import "PPOTMacros.h"
  10. #else
  11. #import <PayPalUtils/PPOTMacros.h>
  12. #endif
  13. #define kPPOTRequestDataDataDictionaryMsgIdKey CARDIO_STR(@"msg_id")
  14. #define kPPOTRequestDataDataDictionaryEncryptionKey CARDIO_STR(@"encryption_key")
  15. #define kPPOTRequestDataDataDictionaryHermesTokenKey CARDIO_STR(@"hermes_token")
  16. #define kPPOTRequestDataDataDictionaryEnvironmentKey CARDIO_STR(@"environment")
  17. @class PPOTSwitchRequest;
  18. @class PPOTConfigurationRecipe;
  19. @interface PPOTPersistentRequestData : NSObject <NSCoding>
  20. @property (nonatomic, strong, readwrite) PPOTConfigurationRecipe *configurationRecipe;
  21. @property (nonatomic, strong, readwrite) NSString *environment;
  22. @property (nonatomic, strong, readwrite) NSString *clientID;
  23. @property (nonatomic, strong, readwrite) NSMutableDictionary *requestData;
  24. + (PPOTPersistentRequestData *)fetch;
  25. + (void)storeWithConfigurationRecipe:(PPOTConfigurationRecipe *)configurationRecipe
  26. withRequest:(PPOTSwitchRequest *)request;
  27. + (void)remove;
  28. @end