PayControl
PayControlSDK.h
1 //
2 // PCSDK.h
3 // PayControl
4 //
5 // Created by ООО СэйфТек on 04.09.15.
6 // Copyright (c) 2015 ООО СэйфТек. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "PCKey.h"
11 #import "PCKeyInfo.h"
12 #import "PCError.h"
13 #import "SSQRCodeReader.h"
14 
18 @interface PayControlSDK : NSObject
19 
24 
31 - (void)listKeys:(void (^)(PCError *error, NSArray *array))completion;
32 
37 - (BOOL)isEmpty;
38 
43 - (NSInteger)getKeysCount;
44 
51 - (PCError *)deleteKeyWithID:(NSString *)keyID;
52 
62 - (void)calculateConfirmationCode:(NSString *)data key:(PCKey *)key fingerprint:(NSString *)fingerprint completion:(void (^)(PCError *error, NSString *confirmationCode))completion;
63 
69 - (NSString *)getFingerPrint:(NSInteger)fingerprintLength;
70 
78 - (void)exportKey:(NSString *)keyID completion:(void (^)(PCError *error, NSString *exportedKey))completion;
79 
84 - (PCError *)clear;
85 
94 - (void)getTransactionInfo:(NSString *)data completion:(void (^)(PCError *error, NSString *transactionInfo, NSString *signatureText))completion;
95 
96 
108 - (void)getFullTransactionInfo:(NSString *)data completion:(void (^)(PCError *error, NSString *userId, NSString *transactionText, NSString *prefixSignatureText, NSString *signatureText, NSString *additionalText))completion;
109 
130 - (void)scanQRFromViewController:(UIViewController <SSQRCodeReaderDelegate> *)vc animated:(BOOL)animated textToShow:(NSString *)textToShow invalidCodeText:(NSString *)invalidCodeText qrType:(NSInteger)qrType;
131 
132 
133 @end
PayControlSDK * sharedInstance()
PCError * clear()
Definition: PayControlSDK.h:18
Definition: SSQRCodeReader.h:18
Definition: PCKey.h:17
Definition: PCError.h:38
NSInteger getKeysCount()