1 | //
|
2 | // TPSError.h
|
3 | // TPSStripe
|
4 | //
|
5 | // Created by Dmytro Zavgorodniy on 10/18/17.
|
6 | // Copyright © 2017 Tipsi. All rights reserved.
|
7 | //
|
8 |
|
9 |
|
10 |
|
11 | extern NSString *const TPSErrorDomain;
|
12 |
|
13 | typedef NS_ENUM(NSInteger, TPSErrorCode)
|
14 | {
|
15 | /// Apple Pay is not configured.
|
16 | TPSErrorCodeApplePayNotConfigured = -1,
|
17 |
|
18 | /// Previous request is not completed.
|
19 | TPSErrorCodePreviousRequestNotCompleted = -2,
|
20 |
|
21 | /// Canceled by user.
|
22 | TPSErrorCodeUserCancel = -3,
|
23 | };
|
24 |
|
25 | @interface EXTPSError : NSObject
|
26 |
|
27 | + (NSError *)applePayNotConfiguredError;
|
28 |
|
29 | + (NSError *)previousRequestNotCompletedError;
|
30 |
|
31 | + (NSError *)userCancelError;
|
32 |
|
33 | @end
|