-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDashlaneExtensionConstants.h
124 lines (82 loc) · 4.9 KB
/
DashlaneExtensionConstants.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
//
// DashlaneExtensionConstants.h
// DashlanePhoneFinal
//
// Created by Samir on 06/08/14.
// Copyright (c) 2014 Dashlane. All rights reserved.
//
#import <Foundation/Foundation.h>
#pragma mark - Request Identifiers
/**
@brief Identifiers for supported request types.
A request identifier is required for each type of data to be requested. When creating an NSItemProvide ([NSItemProvide initWithItem:typeIdentifier:]) to initiate a request,
the typeIdentifier argument will be one of the request identifiers below.
*/
extern NSString * const DASHLANE_EXTENSION_REQUEST_LOGIN;
extern NSString * const DASHLANE_EXTENSION_REQUEST_ADDRESS;
extern NSString * const DASHLANE_EXTENSION_REQUEST_CREDIT_CARD;
extern NSString * const DASHLANE_EXTENSION_REQUEST_IDENTITY_INFO;//first name, date of birth etc.
extern NSString * const DASHLANE_EXTENSION_REQUEST_PHONE_NUMBER;
extern NSString * const DASHLANE_EXTENSION_REQUEST_PASSPORT_INFO;
#pragma mark - Request userInfo Keys
/**
@brief Mandatory information to provide with each request
Each request (i.e. NSExtensionItem) must include non empty app name in its userInfo
*/
extern NSString * const DASHLANE_EXTENSION_REQUEST_APP_NAME_KEY;
#pragma mark - Request NSItemProvider Info Keys
/**
@brief An optional string that can be used to filter the requested data.
*/
extern NSString * const DASHLANE_EXTENSION_REQUEST_STRING_TO_MATCH_KEY;
#pragma mark - Reply keys
/**
@brief Keys of the returned requested data.
Dashlane Extension returns an NSDictionary of dictionaries. The keys are the requested "request identifiers".
The values are dictionaries of the requested data. The keys of these last dictionaries depend on the type of requested
data and can be found below
*/
#pragma mark - Login and Password
/**
For Login and Password request, if the parameter "DASHLANE_EXTENSION_REQUEST_STRING_TO_MATCH_KEY" is nil. Dashlane Extension
will present items that are matching the app name (i.e. DASHLANE_EXTENSION_REQUEST_APP_NAME_KEY)
*/
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_LOGIN_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_PASSWORD_KEY;
#pragma mark - Address
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_ADDRESS_STREET_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_ADDRESS_STATE_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_ADDRESS_COUNTRY_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_ADDRESS_ZIP_CODE_KEY;
#pragma mark - Credit Card
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_CREDIT_CARD_COUNTRY_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_CREDIT_CARD_CARD_HOLDER_NAME_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_CREDIT_CARD_NUMBER_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_CREDIT_CARD_NUMBER_CCV_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_CREDIT_CARD_NUMBER_ISSUE_NUMBER_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_CREDIT_CARD_NUMBER_EXPIRATION_MONTH_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_CREDIT_CARD_NUMBER_EXPIRATION_YEAR_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_CREDIT_CARD_NUMBER_ISSUE_MONTH_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_CREDIT_CARD_NUMBER_ISSUE_YEAR_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_CREDIT_CARD_NUMBER_ISSUING_BANK_KEY;
#pragma mark - Identity
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_IDENTITY_FIRST_NAME_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_IDENTITY_LAST_NAME_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_IDENTITY_MIDDLE_NAME_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_IDENTITY_BIRTH_DATE_KEY;//A string containing timestamp
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_IDENTITY_BIRTH_PLACE_KEY;
#pragma mark - Phone Number
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_PHONE_NUMBER_KEY;//A string containing a non formatted phone number;
#pragma mark - Passport
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_PASSPORT_NUMBER_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_PASSPORT_DELIVERY_DATE_KEY;//A string containing timestamp
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_PASSPORT_DELIVERY_PLACE_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_PASSPORT_EXPIRE_DATE_KEY;//A string containing timestamp
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_PASSPORT_FULL_NAME_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_PASSPORT_SEX_KEY;
extern NSString * const DASHLANE_EXTENSION_REQUEST_REPLY_PASSPORT_BIRTH_DATE_KEY;//A string containing timestamp
#pragma mark - Error codes
extern NSString * const DASHLANE_EXTENSION_ERROR;
extern NSInteger const DashlaneExtensionErrorInvalidRequest;
extern NSInteger const DashlaneExtensionErrorNoDataFound;
extern NSInteger const DashlaneExtensionErrorUserCancelled;