PPOTSwitchRequest.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // PPOTSwitchRequest.h
  3. // PayPalOneTouch
  4. //
  5. // Copyright © 2015 PayPal, Inc. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "PPOTAppSwitchUtil.h"
  9. @interface PPOTSwitchRequest : NSObject
  10. @property (nonatomic, readonly) NSNumber *protocolVersion;
  11. @property (nonatomic, readonly) NSString *appGuid;
  12. @property (nonatomic, readonly) NSString *clientID;
  13. @property (nonatomic, readonly) NSString *environment;
  14. @property (nonatomic, readonly) NSString *callbackURLScheme;
  15. @property (nonatomic, readonly) NSString *clientMetadataID;
  16. @property (nonatomic, strong, readwrite) NSString *targetAppURLScheme;
  17. @property (nonatomic, assign, readwrite) PPAppSwitchResponseType responseType;
  18. @property (nonatomic, strong, readwrite) NSString *customURL;
  19. - (instancetype)initWithProtocolVersion:(NSNumber *)protocolVersion
  20. appGuid:(NSString *)appGuid
  21. clientID:(NSString *)clientID
  22. environment:(NSString *)environment
  23. callbackURLScheme:(NSString *)callbackURLScheme;
  24. - (instancetype)initWithProtocolVersion:(NSNumber *)protocolVersion
  25. appGuid:(NSString *)appGuid
  26. clientID:(NSString *)clientID
  27. environment:(NSString *)environment
  28. callbackURLScheme:(NSString *)callbackURLScheme
  29. pairingId:(NSString *)pairingId;
  30. - (NSDictionary *)payloadDictionary; // used by v1, v2, v3 protocols (but not v0)
  31. - (NSURL *)encodedURL;
  32. - (void)addDataToPersistentRequestDataDictionary:(NSMutableDictionary *)requestDataDictionary;
  33. @end