WePay iOS SDK  7.0.0-prerelease-1
WPConfig.h
1 //
2 // WPConfig.h
3 // WePay
4 //
5 // Created by Chaitanya Bagaria on 11/7/14.
6 // Copyright (c) 2014 WePay. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import <WePay/WPMockConfig.h>
11 
15 @interface WPConfig : NSObject
16 
20 @property (nonatomic, strong, readonly) NSString *clientId;
21 
25 @property (nonatomic, strong, readonly) NSString *environment;
26 
30 @property (nonatomic, assign) BOOL useLocation;
31 
35 @property (nonatomic, assign) BOOL useTestEMVCards;
36 
40 @property (nonatomic, assign) BOOL callDelegateMethodsOnMainThread;
41 
45 @property (nonatomic, assign) BOOL restartTransactionAfterSuccess;
46 
50 @property (nonatomic, assign) BOOL restartTransactionAfterGeneralError;
51 
55 @property (nonatomic, assign) BOOL restartTransactionAfterOtherErrors;
56 
60 @property (nonatomic, assign) BOOL stopCardReaderAfterOperation;
61 
65 @property (nonatomic, strong) NSString *logLevel;
66 
70 @property (nonatomic, strong) WPMockConfig* mockConfig;
71 
80 - (instancetype) initWithClientId:(NSString *)clientId
81  environment:(NSString *)environment;
82 
98 - (instancetype) initWithClientId:(NSString *)clientId
99  environment:(NSString *)environment
100  useLocation:(BOOL)useLocation
101  useTestEMVCards:(BOOL)useTestEMVCards
102  callDelegateMethodsOnMainThread:(BOOL)callDelegateMethodsOnMainThread
103  restartTransactionAfterSuccess:(BOOL)restartTransactionAfterSuccess
104 restartTransactionAfterGeneralError:(BOOL)restartTransactionAfterGeneralError
105 restartTransactionAfterOtherErrors:(BOOL)restartTransactionAfterOtherErrors
106  stopCardReaderAfterOperation:(BOOL)stopCardReaderAfterOperation
107  logLevel:(NSString *)logLevel;
108 
109 @end
Definition: WPMockConfig.h:14
BOOL restartTransactionAfterSuccess
Definition: WPConfig.h:45
NSString * logLevel
Definition: WPConfig.h:65
NSString * clientId
Definition: WPConfig.h:20
BOOL restartTransactionAfterOtherErrors
Definition: WPConfig.h:55
BOOL stopCardReaderAfterOperation
Definition: WPConfig.h:60
BOOL useLocation
Definition: WPConfig.h:30
BOOL useTestEMVCards
Definition: WPConfig.h:35
BOOL callDelegateMethodsOnMainThread
Definition: WPConfig.h:40
BOOL restartTransactionAfterGeneralError
Definition: WPConfig.h:50
NSString * environment
Definition: WPConfig.h:25
WPMockConfig * mockConfig
Definition: WPConfig.h:70
Definition: WPConfig.h:15