react-native-plaid-link-sdk 12.8.5 → 12.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3369 -0
- package/README.md +4 -0
- package/android/build.gradle +1 -1
- package/android/src/main/AndroidManifest.xml +1 -1
- package/dist/src/Types.d.ts +1 -0
- package/dist/src/fabric/EmbeddedLinkViewNativeComponent.d.ts +2 -0
- package/ios/Frameworks/LinkKit.xcframework/Info.plist +44 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Headers/LinkKit-Swift.h +364 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Headers/LinkKit.h +25 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Headers/PLKPlaid+PrivateInitializers.h +122 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Headers/PLKPlaid.h +648 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Info.plist +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/LinkKit +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.abi.json +57717 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.private.swiftinterface +724 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.swiftinterface +724 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/module.modulemap +11 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/PrivacyInfo.xcprivacy +32 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Threads_Threads.bundle/Assets.car +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Threads_Threads.bundle/Info.plist +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/_CodeSignature/CodeResources +245 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Headers/LinkKit-Swift.h +724 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Headers/LinkKit.h +25 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Headers/PLKPlaid+PrivateInitializers.h +122 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Headers/PLKPlaid.h +648 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Info.plist +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/LinkKit +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.abi.json +57717 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +724 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +724 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftmodule +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +57717 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +724 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +724 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/module.modulemap +11 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/PrivacyInfo.xcprivacy +32 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Threads_Threads.bundle/Assets.car +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Threads_Threads.bundle/Info.plist +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/_CodeSignature/CodeResources +300 -0
- package/ios/RNLinksdk.mm +1 -1
- package/package.json +30 -4
- package/react-native-plaid-link-sdk.podspec +6 -2
- package/dist/EmbeddedLink/EmbeddedLinkView.d.ts +0 -13
- package/dist/EmbeddedLink/EmbeddedLinkView.js +0 -55
- package/dist/EmbeddedLink/EmbeddedLinkView.web.d.ts +0 -1
- package/dist/EmbeddedLink/EmbeddedLinkView.web.js +0 -1
- package/dist/EmbeddedLink/NativeEmbeddedLinkView.d.ts +0 -2
- package/dist/EmbeddedLink/NativeEmbeddedLinkView.js +0 -2
- package/dist/PlaidLink.d.ts +0 -27
- package/dist/PlaidLink.js +0 -124
- package/dist/Types.d.ts +0 -539
- package/dist/Types.js +0 -454
- package/dist/__tests__/Types.tests.d.ts +0 -1
- package/dist/__tests__/Types.tests.js +0 -14
- package/dist/build/PlaidEmbeddedSearchView.d.ts +0 -2
- package/dist/build/PlaidEmbeddedSearchView.js +0 -19
- package/dist/build/ReactNativePlaidLinkSdk.types.d.ts +0 -108
- package/dist/build/ReactNativePlaidLinkSdk.types.js +0 -470
- package/dist/build/ReactNativePlaidLinkSdkModule.d.ts +0 -2
- package/dist/build/ReactNativePlaidLinkSdkModule.js +0 -4
- package/dist/build/index.d.ts +0 -14
- package/dist/build/index.js +0 -104
- package/dist/fabric/EmbeddedLinkViewNativeComponent.d.ts +0 -15
- package/dist/fabric/EmbeddedLinkViewNativeComponent.js +0 -2
- package/dist/fabric/NativePlaidLinkModuleAndroid.d.ts +0 -14
- package/dist/fabric/NativePlaidLinkModuleAndroid.js +0 -4
- package/dist/fabric/NativePlaidLinkModuleiOS.d.ts +0 -15
- package/dist/fabric/NativePlaidLinkModuleiOS.js +0 -4
- package/dist/fabric/fabricUtils.d.ts +0 -1
- package/dist/fabric/fabricUtils.js +0 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -6
- package/dist/scripts/check-package-entrypoints.d.ts +0 -1
- package/dist/scripts/check-package-entrypoints.js +0 -61
|
@@ -0,0 +1,648 @@
|
|
|
1
|
+
#import <UIKit/UIKit.h>
|
|
2
|
+
|
|
3
|
+
/// PLKPlaid.h exposes an Objective-C API to interact with LinkKit. The Swift API is the preferred means of integration, so
|
|
4
|
+
/// prefer to use the Swift API where possible.
|
|
5
|
+
|
|
6
|
+
typedef NSString PLKRawJSONMetadata;
|
|
7
|
+
typedef NSString PLKLanguage;
|
|
8
|
+
typedef NSString PLKCountryCode;
|
|
9
|
+
|
|
10
|
+
/// An NSError instance containing metadata about the error. The domain will be a kPLKExitErrorDomain value
|
|
11
|
+
/// and the code will be a case in the enum associated with that domain. For example, an API error will have
|
|
12
|
+
/// the domain value be kPLKExitErrorApiDomain and the code will be a case in the PLKApiErrorCode enum.
|
|
13
|
+
/// NOTE: To ensure forwards compatability, if the server returns an error in a domain that's not yet
|
|
14
|
+
/// supported by LinkKit it will have a domain of PLKExitErrorDomainUnknownError, a code of `-1`, and
|
|
15
|
+
/// an NSString * value in its userInfo dictionary for the kPLKExitErrorUnknownDomainCodeKey key.
|
|
16
|
+
typedef NSError PLKExitError;
|
|
17
|
+
|
|
18
|
+
typedef NS_ENUM(NSInteger, PLKProduct) {
|
|
19
|
+
PLKProductAssets,
|
|
20
|
+
PLKProductAuth,
|
|
21
|
+
PLKProductDepositSwitch,
|
|
22
|
+
PLKProductIdentity,
|
|
23
|
+
PLKProductIncome,
|
|
24
|
+
PLKProductInvestments,
|
|
25
|
+
PLKProductLiabilities,
|
|
26
|
+
PLKProductLiabilitiesReport,
|
|
27
|
+
PLKProductPaymentInitiation,
|
|
28
|
+
PLKProductTransactions,
|
|
29
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
typedef NS_ENUM(NSInteger, PLKVerificationStatusValue) {
|
|
33
|
+
PLKVerificationStatusValueNone = -1,
|
|
34
|
+
PLKVerificationStatusValuePendingAutomaticVerification,
|
|
35
|
+
PLKVerificationStatusValuePendingManualVerification,
|
|
36
|
+
PLKVerificationStatusValueManuallyVerified,
|
|
37
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
typedef NS_ENUM(NSInteger, PLKEventNameValue) {
|
|
41
|
+
PLKEventNameValueNone = -1,
|
|
42
|
+
PLKEventNameValueCloseOAuth,
|
|
43
|
+
PLKEventNameValueError,
|
|
44
|
+
PLKEventNameValueExit,
|
|
45
|
+
PLKEventNameValueFailOAuth,
|
|
46
|
+
PLKEventNameValueHandoff,
|
|
47
|
+
PLKEventNameValueOpen,
|
|
48
|
+
PLKEventNameValueOpenMyPlaid,
|
|
49
|
+
PLKEventNameValueOpenOAuth,
|
|
50
|
+
PLKEventNameValueProfileEligibilityCheckReady,
|
|
51
|
+
PLKEventNameValueProfileEligibilityCheckError,
|
|
52
|
+
PLKEventNameValueSearchInstitution,
|
|
53
|
+
PLKEventNameValueSelectInstitution,
|
|
54
|
+
PLKEventNameValueSubmitCredentials,
|
|
55
|
+
PLKEventNameValueSubmitMFA,
|
|
56
|
+
PLKEventNameValueTransitionView,
|
|
57
|
+
PLKEventNameValueMatchedSelectInstitution,
|
|
58
|
+
PLKEventNameValueMatchedSelectVerifyMethod,
|
|
59
|
+
PLKEventNameValueBankIncomeInsightsCompleted,
|
|
60
|
+
PLKEventNameValueSelectDegradedInstitution,
|
|
61
|
+
PLKEventNameValueSelectDownInstitution,
|
|
62
|
+
PLKEventNameValueIdentityVerificationStartStep,
|
|
63
|
+
PLKEventNameValueIdentityVerificationPassStep,
|
|
64
|
+
PLKEventNameValueIdentityVerificationFailStep,
|
|
65
|
+
PLKEventNameValueIdentityVerificationPendingReviewStep,
|
|
66
|
+
PLKEventNameValueIdentityVerificationPendingReviewSession,
|
|
67
|
+
PLKEventNameValueIdentityVerificationCreateSession,
|
|
68
|
+
PLKEventNameValueIdentityVerificationResumeSession,
|
|
69
|
+
PLKEventNameValueIdentityVerificationPassSession,
|
|
70
|
+
PLKEventNameValueIdentityVerificationFailSession,
|
|
71
|
+
PLKEventNameValueIdentityVerificationOpenUI,
|
|
72
|
+
PLKEventNameValueIdentityVerificationResumeUI,
|
|
73
|
+
PLKEventNameValueIdentityVerificationCloseUI,
|
|
74
|
+
PLKEventNameValueSelectFilteredInstitution,
|
|
75
|
+
PLKEventNameValueSelectBrand,
|
|
76
|
+
PLKEventNameValueSelectAuthType,
|
|
77
|
+
PLKEventNameValueSubmitAccountNumber,
|
|
78
|
+
PLKEventNameValueSubmitDocuments,
|
|
79
|
+
PLKEventNameValueSubmitDocumentsSuccess,
|
|
80
|
+
PLKEventNameValueSubmitDocumentsError,
|
|
81
|
+
PLKEventNameValueSubmitOTP,
|
|
82
|
+
PLKEventNameValueSubmitRoutingNumber,
|
|
83
|
+
PLKEventNameValueViewDataTypes,
|
|
84
|
+
PLKEventNameValueSubmitPhone,
|
|
85
|
+
PLKEventNameValueSkipSubmitPhone,
|
|
86
|
+
PLKEventNameValueVerifyPhone,
|
|
87
|
+
PLKEventNameValueConnectNewInstitution,
|
|
88
|
+
PLKEventNameValueLayerReady,
|
|
89
|
+
PLKEventNameValueLayerNotAvailable,
|
|
90
|
+
PLKEventNameValueSubmitEmail,
|
|
91
|
+
PLKEventNameValueSkipSubmitEmail,
|
|
92
|
+
PLKEventNameValueRememberMeEnabled,
|
|
93
|
+
PLKEventNameValueRememberMeDisabled,
|
|
94
|
+
PLKEventNameValueRememberMeHoldout,
|
|
95
|
+
PLKEventNameValueSelectSavedInstitution,
|
|
96
|
+
PLKEventNameValueSelectSavedAccount,
|
|
97
|
+
PLKEventNameValueAutoSelectSavedInstitution,
|
|
98
|
+
PLKEventNameValuePlaidCheckPane,
|
|
99
|
+
PLKEventNameValueAutoSubmitPhone,
|
|
100
|
+
PLKEventNameValueIdentityMatchPassed,
|
|
101
|
+
PLKEventNameValueIdentityMatchFailed,
|
|
102
|
+
PLKEventNameValueIssueFollowed,
|
|
103
|
+
PLKEventNameValueSelectAccount,
|
|
104
|
+
PLKEventNameValueLayerAutoFillNotAvailable,
|
|
105
|
+
PLKEventNameValueSelectDenylistedInstitution,
|
|
106
|
+
PLKEventNameValueSelectFallbackRoutingInstitution,
|
|
107
|
+
PLKEventNameValueSelectRememberMeDuplicateInstitution
|
|
108
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
typedef NS_ENUM(NSInteger, PLKExitStatusValue) {
|
|
113
|
+
PLKExitStatusValueNone = -1,
|
|
114
|
+
PLKExitStatusValueRequiresQuestions,
|
|
115
|
+
PLKExitStatusValueRequiresSelections,
|
|
116
|
+
PLKExitStatusValueRequiresCode,
|
|
117
|
+
PLKExitStatusValueChooseDevice,
|
|
118
|
+
PLKExitStatusValueRequiresCredentials,
|
|
119
|
+
PLKExitStatusValueInstitutionNotFound,
|
|
120
|
+
PLKExitStatusValueRequiresAccountSelection,
|
|
121
|
+
PLKExitStatusValueContinueToThridParty
|
|
122
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
typedef NS_ENUM(NSInteger, PLKMFAType) {
|
|
126
|
+
PLKMFATypeNone = -1,
|
|
127
|
+
PLKMFATypeCode,
|
|
128
|
+
PLKMFATypeDevice,
|
|
129
|
+
PLKMFATypeQuestions,
|
|
130
|
+
PLKMFATypeSelections,
|
|
131
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
typedef NS_ENUM(NSInteger, PLKViewNameValue) {
|
|
135
|
+
PLKViewNameValueNone = -1,
|
|
136
|
+
PLKViewNameValueConnected,
|
|
137
|
+
PLKViewNameValueConsent,
|
|
138
|
+
PLKViewNameValueCredential,
|
|
139
|
+
PLKViewNameValueError,
|
|
140
|
+
PLKViewNameValueExit,
|
|
141
|
+
PLKViewNameValueLoading,
|
|
142
|
+
PLKViewNameValueMFA,
|
|
143
|
+
PLKViewNameValueNumbers,
|
|
144
|
+
PLKViewNameValueRecaptcha,
|
|
145
|
+
PLKViewNameValueSelectAccount,
|
|
146
|
+
PLKViewNameValueSelectInstitution,
|
|
147
|
+
PLKViewNameValueMatchedConsent,
|
|
148
|
+
PLKViewNameValueMatchedCredential,
|
|
149
|
+
PLKViewNameValueMatchedMFA,
|
|
150
|
+
PLKViewNameValueUploadDocuments,
|
|
151
|
+
PLKViewNameValueSubmitDocuments,
|
|
152
|
+
PLKViewNameValueSubmitDocumentsSuccess,
|
|
153
|
+
PLKViewNameValueSubmitDocumentsError,
|
|
154
|
+
PLKViewNameValueProfileDataReview,
|
|
155
|
+
PLKViewNameValueOauth,
|
|
156
|
+
PLKViewNameValueAcceptTOS,
|
|
157
|
+
PLKViewNameValueDocumentaryVerification,
|
|
158
|
+
PLKViewNameValueKYCCheck,
|
|
159
|
+
PLKViewNameValueSelfieCheck,
|
|
160
|
+
PLKViewNameValueRiskCheck,
|
|
161
|
+
PLKViewNameValueScreening,
|
|
162
|
+
PLKViewNameValueVerifySMS,
|
|
163
|
+
PLKViewNameValueDataTransparency,
|
|
164
|
+
PLKViewNameValueDataTransparencyConsent,
|
|
165
|
+
PLKViewNameValueSelectAuthType,
|
|
166
|
+
PLKViewNameValueSelectBrand,
|
|
167
|
+
PLKViewNameValueNumbersSelectInstitution,
|
|
168
|
+
PLKViewNameValueSubmitPhone,
|
|
169
|
+
PLKViewNameValueVerifyPhone,
|
|
170
|
+
PLKViewNameValueSelectSavedInstitution,
|
|
171
|
+
PLKViewNameValueSelectSavedAccount,
|
|
172
|
+
PLKViewNameValueSubmitEmail,
|
|
173
|
+
PLKViewNameValueVerifyEmail,
|
|
174
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
typedef NS_ENUM(NSInteger, PLKAccountSubtypeValueOther) {
|
|
178
|
+
PLKAccountSubtypeValueOtherNone = -1,
|
|
179
|
+
PLKAccountSubtypeValueOtherAll,
|
|
180
|
+
PLKAccountSubtypeValueOtherOther,
|
|
181
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
typedef NS_ENUM(NSInteger, PLKAccountSubtypeValueCredit) {
|
|
185
|
+
PLKAccountSubtypeValueCreditNone = -1,
|
|
186
|
+
PLKAccountSubtypeValueCreditAll,
|
|
187
|
+
PLKAccountSubtypeValueCreditCreditCard,
|
|
188
|
+
PLKAccountSubtypeValueCreditPaypal,
|
|
189
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
typedef NS_ENUM(NSInteger, PLKAccountSubtypeValueLoan) {
|
|
193
|
+
PLKAccountSubtypeValueLoanNone = -1,
|
|
194
|
+
PLKAccountSubtypeValueLoanAll,
|
|
195
|
+
PLKAccountSubtypeValueLoanAuto,
|
|
196
|
+
PLKAccountSubtypeValueLoanBusiness,
|
|
197
|
+
PLKAccountSubtypeValueLoanCommercial,
|
|
198
|
+
PLKAccountSubtypeValueLoanConstruction,
|
|
199
|
+
PLKAccountSubtypeValueLoanConsumer,
|
|
200
|
+
PLKAccountSubtypeValueLoanHomeEquity,
|
|
201
|
+
PLKAccountSubtypeValueLoanLineOfCredit,
|
|
202
|
+
PLKAccountSubtypeValueLoanLoan,
|
|
203
|
+
PLKAccountSubtypeValueLoanMortgage,
|
|
204
|
+
PLKAccountSubtypeValueLoanOverdraft,
|
|
205
|
+
PLKAccountSubtypeValueLoanStudent,
|
|
206
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
typedef NS_ENUM(NSInteger, PLKAccountSubtypeValueDepository) {
|
|
210
|
+
PLKAccountSubtypeValueDepositoryNone = -1,
|
|
211
|
+
PLKAccountSubtypeValueDepositoryAll,
|
|
212
|
+
PLKAccountSubtypeValueDepositoryCashManagement,
|
|
213
|
+
PLKAccountSubtypeValueDepositoryCd,
|
|
214
|
+
PLKAccountSubtypeValueDepositoryChecking,
|
|
215
|
+
PLKAccountSubtypeValueDepositoryEbt,
|
|
216
|
+
PLKAccountSubtypeValueDepositoryHsa,
|
|
217
|
+
PLKAccountSubtypeValueDepositoryMoneyMarket,
|
|
218
|
+
PLKAccountSubtypeValueDepositoryPaypal,
|
|
219
|
+
PLKAccountSubtypeValueDepositoryPrepaid,
|
|
220
|
+
PLKAccountSubtypeValueDepositorySavings,
|
|
221
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
typedef NS_ENUM(NSInteger, PLKAccountSubtypeValueInvestment) {
|
|
225
|
+
PLKAccountSubtypeValueInvestmentNone = -1,
|
|
226
|
+
PLKAccountSubtypeValueInvestmentAll,
|
|
227
|
+
PLKAccountSubtypeValueInvestment401a,
|
|
228
|
+
PLKAccountSubtypeValueInvestment401k,
|
|
229
|
+
PLKAccountSubtypeValueInvestment403B,
|
|
230
|
+
PLKAccountSubtypeValueInvestment457b,
|
|
231
|
+
PLKAccountSubtypeValueInvestment529,
|
|
232
|
+
PLKAccountSubtypeValueInvestmentBrokerage,
|
|
233
|
+
PLKAccountSubtypeValueInvestmentCashIsa,
|
|
234
|
+
PLKAccountSubtypeValueInvestmentEducationSavingsAccount,
|
|
235
|
+
PLKAccountSubtypeValueInvestmentFixedAnnuity,
|
|
236
|
+
PLKAccountSubtypeValueInvestmentGic,
|
|
237
|
+
PLKAccountSubtypeValueInvestmentHealthReimbursementArrangement,
|
|
238
|
+
PLKAccountSubtypeValueInvestmentHsa,
|
|
239
|
+
PLKAccountSubtypeValueInvestmentIra,
|
|
240
|
+
PLKAccountSubtypeValueInvestmentIsa,
|
|
241
|
+
PLKAccountSubtypeValueInvestmentKeogh,
|
|
242
|
+
PLKAccountSubtypeValueInvestmentLif,
|
|
243
|
+
PLKAccountSubtypeValueInvestmentLira,
|
|
244
|
+
PLKAccountSubtypeValueInvestmentLrif,
|
|
245
|
+
PLKAccountSubtypeValueInvestmentLrsp,
|
|
246
|
+
PLKAccountSubtypeValueInvestmentMutualFund,
|
|
247
|
+
PLKAccountSubtypeValueInvestmentNonTaxableBrokerageAccount,
|
|
248
|
+
PLKAccountSubtypeValueInvestmentPension,
|
|
249
|
+
PLKAccountSubtypeValueInvestmentPlan,
|
|
250
|
+
PLKAccountSubtypeValueInvestmentPrif,
|
|
251
|
+
PLKAccountSubtypeValueInvestmentProfitSharingPlan,
|
|
252
|
+
PLKAccountSubtypeValueInvestmentRdsp,
|
|
253
|
+
PLKAccountSubtypeValueInvestmentResp,
|
|
254
|
+
PLKAccountSubtypeValueInvestmentRetirement,
|
|
255
|
+
PLKAccountSubtypeValueInvestmentRlif,
|
|
256
|
+
PLKAccountSubtypeValueInvestmentRoth401k,
|
|
257
|
+
PLKAccountSubtypeValueInvestmentRoth,
|
|
258
|
+
PLKAccountSubtypeValueInvestmentRrif,
|
|
259
|
+
PLKAccountSubtypeValueInvestmentRrsp,
|
|
260
|
+
PLKAccountSubtypeValueInvestmentSarsep,
|
|
261
|
+
PLKAccountSubtypeValueInvestmentSepIra,
|
|
262
|
+
PLKAccountSubtypeValueInvestmentSimpleIra,
|
|
263
|
+
PLKAccountSubtypeValueInvestmentSipp,
|
|
264
|
+
PLKAccountSubtypeValueInvestmentStockPlan,
|
|
265
|
+
PLKAccountSubtypeValueInvestmentTfsa,
|
|
266
|
+
PLKAccountSubtypeValueInvestmentThriftSavingsPlan,
|
|
267
|
+
PLKAccountSubtypeValueInvestmentTrust,
|
|
268
|
+
PLKAccountSubtypeValueInvestmentUgma,
|
|
269
|
+
PLKAccountSubtypeValueInvestmentUtma,
|
|
270
|
+
PLKAccountSubtypeValueInvestmentVariableAnnuity,
|
|
271
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
typedef NS_ENUM(NSInteger, PLKApiErrorCode) {
|
|
275
|
+
PLKApiErrorCodeInternalServerError,
|
|
276
|
+
PLKApiErrorCodePlannedMaintenance
|
|
277
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
typedef NS_ENUM(NSInteger, PLKInvalidRequestErrorCode) {
|
|
281
|
+
PLKInvalidRequestErrorCodeMissingFields,
|
|
282
|
+
PLKInvalidRequestErrorCodeUnknownFields,
|
|
283
|
+
PLKInvalidRequestErrorCodeInvalidField,
|
|
284
|
+
PLKInvalidRequestErrorCodeInvalidBody,
|
|
285
|
+
PLKInvalidRequestErrorCodeInvalidAddress,
|
|
286
|
+
PLKInvalidRequestErrorCodeNotFound,
|
|
287
|
+
PLKInvalidRequestErrorCodeSandboxOnly,
|
|
288
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
typedef NS_ENUM(NSInteger, PLKInvalidInputErrorCode) {
|
|
292
|
+
PLKInvalidInputErrorCodeInvalidApiKeys,
|
|
293
|
+
PLKInvalidInputErrorCodeUnauthorizedEnvironment,
|
|
294
|
+
PLKInvalidInputErrorCodeInvalidAccessToken,
|
|
295
|
+
PLKInvalidInputErrorCodeInvalidPublicToken,
|
|
296
|
+
PLKInvalidInputErrorCodeInvalidProduct,
|
|
297
|
+
PLKInvalidInputErrorCodeInvalidAccountId,
|
|
298
|
+
PLKInvalidInputErrorCodeInvalidInstitution,
|
|
299
|
+
PLKInvalidInputErrorCodeTooManyVerificationAttempts,
|
|
300
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
typedef NS_ENUM(NSInteger, PLKInstitutionErrorCode) {
|
|
304
|
+
PLKInstitutionErrorCodeInstitutionDown,
|
|
305
|
+
PLKInstitutionErrorCodeInstitutionNotResponding,
|
|
306
|
+
PLKInstitutionErrorCodeInstitutionNotAvailable,
|
|
307
|
+
PLKInstitutionErrorCodeInstitutionNoLongerSupported,
|
|
308
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
typedef NS_ENUM(NSInteger, PLKRateLimitErrorCode) {
|
|
312
|
+
PLKRateLimitErrorCodeAccountsLimit,
|
|
313
|
+
PLKRateLimitErrorCodeAdditionLimit,
|
|
314
|
+
PLKRateLimitErrorCodeAuthLimit,
|
|
315
|
+
PLKRateLimitErrorCodeIdentityLimit,
|
|
316
|
+
PLKRateLimitErrorCodeIncomeLimit,
|
|
317
|
+
PLKRateLimitErrorCodeItemGetLimit,
|
|
318
|
+
PLKRateLimitErrorCodeRateLimit,
|
|
319
|
+
PLKRateLimitErrorCodeTransactionsLimit,
|
|
320
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
typedef NS_ENUM(NSInteger, PLKItemErrorCode) {
|
|
324
|
+
PLKItemErrorCodeInsufficientCredentials,
|
|
325
|
+
PLKItemErrorCodeInvalidCredentials,
|
|
326
|
+
PLKItemErrorCodeInvalidMfa,
|
|
327
|
+
PLKItemErrorCodeInvalidSendMethod,
|
|
328
|
+
PLKItemErrorCodeInvalidUpdatedUsername,
|
|
329
|
+
PLKItemErrorCodeItemLocked,
|
|
330
|
+
PLKItemErrorCodeItemLoginRequired,
|
|
331
|
+
PLKItemErrorCodeItemNoError,
|
|
332
|
+
PLKItemErrorCodeItemNotSupported,
|
|
333
|
+
PLKItemErrorCodeIncorrectDepositAmounts,
|
|
334
|
+
PLKItemErrorCodeUserSetupRequired,
|
|
335
|
+
PLKItemErrorCodeMfaNotSupported,
|
|
336
|
+
PLKItemErrorCodeNoAccounts,
|
|
337
|
+
PLKItemErrorCodeNoAuthAccounts,
|
|
338
|
+
PLKItemErrorCodeNoInvestmentAccounts,
|
|
339
|
+
PLKItemErrorCodeNoLiabilityAccounts,
|
|
340
|
+
PLKItemErrorCodeProductNotReady,
|
|
341
|
+
PLKItemErrorCodeProductsNotSupported,
|
|
342
|
+
PLKItemErrorCodeInstantMatchFailed,
|
|
343
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
typedef NS_ENUM(NSInteger, PLKAuthErrorCode) {
|
|
347
|
+
PLKAuthErrorCodeProductNotReady,
|
|
348
|
+
PLKAuthErrorCodeVerificationExpired,
|
|
349
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
typedef NS_ENUM(NSInteger, PLKAssetReportErrorCode) {
|
|
353
|
+
PLKAssetReportErrorCodeProductNotEnabled,
|
|
354
|
+
PLKAssetReportErrorCodeDataUnavailable,
|
|
355
|
+
PLKAssetReportErrorCodeProductNotReady,
|
|
356
|
+
PLKAssetReportErrorCodeAssetReportGenerationFailed,
|
|
357
|
+
PLKAssetReportErrorCodeInvalidParent,
|
|
358
|
+
PLKAssetReportErrorCodeInsightsNotEnabled,
|
|
359
|
+
PLKAssetReportErrorCodeInsightsPreviouslyNotEnabled,
|
|
360
|
+
// Add new enum cases directly above this line to avoid breaking API changes
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
364
|
+
|
|
365
|
+
static NSString *const kPLKExitErrorMessageKey = @"PLKExitErrorMessageKey";
|
|
366
|
+
static NSString *const kPLKExitErrorDisplayMessageKey = @"PLKExitErrorDisplayMessageKey";
|
|
367
|
+
static NSString *const kPLKExitErrorRawJSONKey = @"PLKExitErrorRawJSONKey";
|
|
368
|
+
static NSString *const kPLKExitErrorUnknownTypeKey = @"kPLKExitErrorUnknownTypeKey";
|
|
369
|
+
static NSString *const kPLKExitErrorCodeKey = @"kPLKExitErrorCodeKey";
|
|
370
|
+
|
|
371
|
+
static NSString *const kPLKExitErrorInvalidRequestDomain = @"PLKExitErrorInvalidRequestDomain";
|
|
372
|
+
static NSString *const kPLKExitErrorInvalidInputDomain = @"PLKExitErrorInvalidInputDomain";
|
|
373
|
+
static NSString *const kPLKExitErrorInstitutionErrorDomain = @"PLKExitErrorInstitutionErrorDomain";
|
|
374
|
+
static NSString *const kPLKExitErrorRateLimitExceededDomain = @"PLKExitErrorRateLimitExceededDomain";
|
|
375
|
+
static NSString *const kPLKExitErrorApiDomain = @"PLKExitErrorApiDomain";
|
|
376
|
+
static NSString *const kPLKExitErrorItemDomain = @"PLKExitErrorItemDomain";
|
|
377
|
+
static NSString *const kPLKExitErrorAuthDomain = @"PLKExitErrorAuthDomain";
|
|
378
|
+
static NSString *const kPLKExitErrorAssetReportDomain = @"PLKExitErrorAssetReportDomain";
|
|
379
|
+
static NSString *const kPLKExitErrorInternalDomain = @"PLKExitErrorInternalDomain";
|
|
380
|
+
static NSString *const kPLKExitErrorUnknownDomain = @"PLKExitErrorUnknownDomain";
|
|
381
|
+
static NSString *const kPLKDefaultErrorDomain = @"com.plaid.link";
|
|
382
|
+
|
|
383
|
+
@interface PLKVerificationStatus : NSObject
|
|
384
|
+
|
|
385
|
+
/// If the server returned a verification status value the SDK is not aware of, unknownStringValue will be non-nil
|
|
386
|
+
@property(nonatomic, readonly, nullable, copy) NSString *unknownStringValue;
|
|
387
|
+
@property(nonatomic, readonly) PLKVerificationStatusValue value;
|
|
388
|
+
|
|
389
|
+
@end
|
|
390
|
+
|
|
391
|
+
@interface PLKEventName : NSObject
|
|
392
|
+
|
|
393
|
+
/// If the server returned an event name value the SDK is not aware of, unknownStringValue will be non-nil
|
|
394
|
+
@property(nonatomic, readonly, nullable, copy) NSString *unknownStringValue;
|
|
395
|
+
@property(nonatomic, readonly) PLKEventNameValue value;
|
|
396
|
+
|
|
397
|
+
@end
|
|
398
|
+
|
|
399
|
+
@interface PLKViewName : NSObject
|
|
400
|
+
|
|
401
|
+
/// If the server returned an event name value the SDK is not aware of, unknownStringValue will be non-nil
|
|
402
|
+
@property(nonatomic, readonly, nullable, copy) NSString *unknownStringValue;
|
|
403
|
+
@property(nonatomic, readonly) PLKViewNameValue value;
|
|
404
|
+
|
|
405
|
+
@end
|
|
406
|
+
|
|
407
|
+
@interface PLKExitStatus : NSObject
|
|
408
|
+
|
|
409
|
+
/// If the server returned an event name value the SDK is not aware of, unknownStringValue will be non-nil
|
|
410
|
+
@property(nonatomic, readonly, nullable, copy) NSString *unknownStringValue;
|
|
411
|
+
@property(nonatomic, readonly) PLKExitStatusValue value;
|
|
412
|
+
|
|
413
|
+
@end
|
|
414
|
+
|
|
415
|
+
@protocol PLKAccountSubtype <NSObject>
|
|
416
|
+
|
|
417
|
+
@property(nonatomic, readonly, nullable, copy) NSString *rawStringValue;
|
|
418
|
+
|
|
419
|
+
@end
|
|
420
|
+
|
|
421
|
+
@interface PLKAccountSubtypeUnknown : NSObject <PLKAccountSubtype>
|
|
422
|
+
|
|
423
|
+
@property(nonatomic, readonly, nullable, copy) NSString *rawSubtypeStringValue;
|
|
424
|
+
|
|
425
|
+
+ (instancetype)createWithRawTypeStringValue:(NSString *)rawTypeStringValue
|
|
426
|
+
rawSubtypeStringValue:(NSString *)rawTypeSubStringValue;
|
|
427
|
+
|
|
428
|
+
@end
|
|
429
|
+
|
|
430
|
+
@interface PLKAccountSubtypeOther : NSObject <PLKAccountSubtype>
|
|
431
|
+
|
|
432
|
+
+ (instancetype)createWithValue:(PLKAccountSubtypeValueOther)value;
|
|
433
|
+
+ (instancetype)createWithRawStringValue:(NSString *)rawStringValue;
|
|
434
|
+
|
|
435
|
+
@end
|
|
436
|
+
|
|
437
|
+
@interface PLKAccountSubtypeCredit : NSObject <PLKAccountSubtype>
|
|
438
|
+
|
|
439
|
+
@property(nonatomic, readonly) PLKAccountSubtypeValueCredit subtype;
|
|
440
|
+
|
|
441
|
+
+ (instancetype)createWithValue:(PLKAccountSubtypeValueCredit)value;
|
|
442
|
+
+ (instancetype)createWithUnknownValue:(NSString *)unknownValue;
|
|
443
|
+
|
|
444
|
+
@end
|
|
445
|
+
|
|
446
|
+
@interface PLKAccountSubtypeLoan : NSObject <PLKAccountSubtype>
|
|
447
|
+
|
|
448
|
+
@property(nonatomic, readonly) PLKAccountSubtypeValueLoan subtype;
|
|
449
|
+
|
|
450
|
+
+ (instancetype)createWithValue:(PLKAccountSubtypeValueLoan)value;
|
|
451
|
+
+ (instancetype)createWithUnknownValue:(NSString *)unknownValue;
|
|
452
|
+
|
|
453
|
+
@end
|
|
454
|
+
|
|
455
|
+
@interface PLKAccountSubtypeDepository : NSObject <PLKAccountSubtype>
|
|
456
|
+
|
|
457
|
+
@property(nonatomic, readonly) PLKAccountSubtypeValueDepository subtype;
|
|
458
|
+
|
|
459
|
+
+ (instancetype)createWithValue:(PLKAccountSubtypeValueDepository)value;
|
|
460
|
+
+ (instancetype)createWithUnknownValue:(NSString *)unknownValue;
|
|
461
|
+
|
|
462
|
+
@end
|
|
463
|
+
|
|
464
|
+
@interface PLKAccountSubtypeInvestment : NSObject <PLKAccountSubtype>
|
|
465
|
+
|
|
466
|
+
@property(nonatomic, readonly) PLKAccountSubtypeValueInvestment subtype;
|
|
467
|
+
|
|
468
|
+
+ (instancetype)createWithValue:(PLKAccountSubtypeValueInvestment)value;
|
|
469
|
+
+ (instancetype)createWithUnknownValue:(NSString *)unknownValue;
|
|
470
|
+
|
|
471
|
+
@end
|
|
472
|
+
|
|
473
|
+
@interface PLKInstitution : NSObject
|
|
474
|
+
|
|
475
|
+
@property(nonatomic, readonly, copy) NSString *name;
|
|
476
|
+
@property(nonatomic, readonly, copy) NSString *ID;
|
|
477
|
+
|
|
478
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
479
|
+
|
|
480
|
+
@end
|
|
481
|
+
|
|
482
|
+
@interface PLKAccount : NSObject
|
|
483
|
+
|
|
484
|
+
@property(nonatomic, readonly, copy) NSString *ID;
|
|
485
|
+
@property(nonatomic, readonly, copy) NSString *name;
|
|
486
|
+
@property(nonatomic, readonly, nullable, copy) NSString *mask;
|
|
487
|
+
@property(nonatomic, readonly) id<PLKAccountSubtype> subtype;
|
|
488
|
+
@property(nonatomic, readonly, nullable) PLKVerificationStatus *verificationStatus;
|
|
489
|
+
|
|
490
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
491
|
+
|
|
492
|
+
@end
|
|
493
|
+
|
|
494
|
+
@interface PLKSuccessMetadata : NSObject
|
|
495
|
+
|
|
496
|
+
@property(nonatomic, readonly, copy) NSString *linkSessionID;
|
|
497
|
+
@property(nonatomic, readonly) PLKInstitution *institution;
|
|
498
|
+
@property(nonatomic, readonly, copy) NSArray<PLKAccount *> *accounts;
|
|
499
|
+
@property(nonatomic, readonly, nullable, copy) PLKRawJSONMetadata *metadataJSON;
|
|
500
|
+
|
|
501
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
502
|
+
|
|
503
|
+
@end
|
|
504
|
+
|
|
505
|
+
@interface PLKLinkSuccess : NSObject
|
|
506
|
+
|
|
507
|
+
@property(nonatomic, readonly, copy) NSString *publicToken;
|
|
508
|
+
@property(nonatomic, readonly) PLKSuccessMetadata *metadata;
|
|
509
|
+
|
|
510
|
+
- (instancetype)initWithPublicToken:(NSString *)publicToken
|
|
511
|
+
metadata:(PLKSuccessMetadata *)metadata NS_DESIGNATED_INITIALIZER;
|
|
512
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
513
|
+
|
|
514
|
+
@end
|
|
515
|
+
|
|
516
|
+
@interface PLKExitMetadata : NSObject
|
|
517
|
+
|
|
518
|
+
@property(nonatomic, readonly, nullable) PLKExitStatus *status;
|
|
519
|
+
@property(nonatomic, readonly, nullable) PLKInstitution *institution;
|
|
520
|
+
@property(nonatomic, readonly, copy) NSString *requestID;
|
|
521
|
+
@property(nonatomic, readonly, copy) NSString *linkSessionID;
|
|
522
|
+
@property(nonatomic, readonly, nullable) PLKRawJSONMetadata *metadataJSON;
|
|
523
|
+
|
|
524
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
525
|
+
|
|
526
|
+
@end
|
|
527
|
+
|
|
528
|
+
@interface PLKLinkExit : NSObject
|
|
529
|
+
|
|
530
|
+
@property(nonatomic, readonly, nullable) NSError *error;
|
|
531
|
+
@property(nonatomic, readonly) PLKExitMetadata *metadata;
|
|
532
|
+
|
|
533
|
+
- (instancetype)initWithError:(NSError * __nullable)error
|
|
534
|
+
metadata:(PLKExitMetadata *)metadata NS_DESIGNATED_INITIALIZER;
|
|
535
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
536
|
+
|
|
537
|
+
@end
|
|
538
|
+
|
|
539
|
+
@interface PLKSubmissionData : NSObject
|
|
540
|
+
@property (nonatomic, copy, nullable) NSString *phoneNumber;
|
|
541
|
+
@property (nonatomic, copy, nullable) NSString *dateOfBirth;
|
|
542
|
+
@property (nonatomic, copy, nullable) NSDictionary<NSString *, NSString *> *params;
|
|
543
|
+
@end
|
|
544
|
+
|
|
545
|
+
@interface PLKEventMetadata : NSObject
|
|
546
|
+
|
|
547
|
+
@property(nonatomic, readonly, nullable) PLKExitError *error;
|
|
548
|
+
@property(nonatomic, readonly, nullable) PLKExitStatus *exitStatus;
|
|
549
|
+
@property(nonatomic, readonly, nullable, copy) NSString *institutionID;
|
|
550
|
+
@property(nonatomic, readonly, nullable, copy) NSString *institutionName;
|
|
551
|
+
@property(nonatomic, readonly, nullable, copy) NSString *institutionSearchQuery;
|
|
552
|
+
@property(nonatomic, readonly, nullable, copy) NSString *accountNumberMask;
|
|
553
|
+
@property(nonatomic, readonly, nullable, copy) NSString *isUpdateMode;
|
|
554
|
+
@property(nonatomic, readonly, nullable, copy) NSString *matchReason;
|
|
555
|
+
@property(nonatomic, readonly, nullable, copy) NSString *issueID;
|
|
556
|
+
@property(nonatomic, readonly, nullable, copy) NSString *issueDescription;
|
|
557
|
+
@property(nonatomic, readonly, nullable, copy) NSDate *issueDetectedAt;
|
|
558
|
+
@property(nonatomic, readonly, nullable, copy) NSString *routingNumber;
|
|
559
|
+
@property(nonatomic, readonly, nullable, copy) NSString *selection;
|
|
560
|
+
@property(nonatomic, readonly, copy) NSString *linkSessionID;
|
|
561
|
+
@property(nonatomic, readonly) PLKMFAType mfaType;
|
|
562
|
+
@property(nonatomic, readonly, nullable, copy) NSString *requestID;
|
|
563
|
+
@property(nonatomic, readonly) NSDate *timestamp;
|
|
564
|
+
@property(nonatomic, readonly, nullable) PLKViewName *viewName;
|
|
565
|
+
@property(nonatomic, readonly) PLKRawJSONMetadata *metadataJSON;
|
|
566
|
+
|
|
567
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
568
|
+
|
|
569
|
+
@end
|
|
570
|
+
|
|
571
|
+
@interface PLKLinkEvent : NSObject
|
|
572
|
+
|
|
573
|
+
@property(nonatomic, readonly) PLKEventName *eventName;
|
|
574
|
+
@property(nonatomic, readonly) PLKEventMetadata *eventMetadata;
|
|
575
|
+
|
|
576
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
577
|
+
|
|
578
|
+
@end
|
|
579
|
+
|
|
580
|
+
typedef void(^PLKOnSuccessHandler)(PLKLinkSuccess *);
|
|
581
|
+
typedef void(^PLKOnExitHandler)(PLKLinkExit *);
|
|
582
|
+
typedef void(^PLKOnEventHandler)(PLKLinkEvent *);
|
|
583
|
+
|
|
584
|
+
@interface PLKLinkTokenConfiguration : NSObject
|
|
585
|
+
|
|
586
|
+
@property(nonatomic, copy, readonly) NSString *token;
|
|
587
|
+
/// A BOOL indicating that Link should skip displaying a loading animation and Link UI will be presented once it is fully loaded.
|
|
588
|
+
/// This can be used to display custom loading UI while Link content is loading (and will skip any initial loading UI in Link).
|
|
589
|
+
/// Note: Dismiss custom loading UI on the OPEN & EXIT events.
|
|
590
|
+
///
|
|
591
|
+
/// Note: This should be set to `YES` when setting the `eu_config.headless` field in /link/token/create requests to `true`.
|
|
592
|
+
/// For reference, see https://plaid.com/docs/api/tokens/#link-token-create-request-eu-config-headless
|
|
593
|
+
@property(nonatomic) BOOL noLoadingState;
|
|
594
|
+
|
|
595
|
+
/// A Boolean value that determines whether Link displays a transparent gradient background.
|
|
596
|
+
///
|
|
597
|
+
/// When set to `true`, Link will display a solid background instead of the default transparent gradient.
|
|
598
|
+
///
|
|
599
|
+
/// - Note: To achieve the intended visual result, you may also need to set `noLoadingState` to `true`.
|
|
600
|
+
/// This ensures that the initial loading UI is skipped, allowing your custom background or UI
|
|
601
|
+
/// to remain visible during the loading process.
|
|
602
|
+
///
|
|
603
|
+
/// - Note: The use of a custom presentation animation can also enhance the UX of Link.
|
|
604
|
+
@property(nonatomic) BOOL showGradientBackground;
|
|
605
|
+
@property(nonatomic) PLKOnSuccessHandler onSuccess;
|
|
606
|
+
@property(nonatomic, strong) PLKOnExitHandler onExit;
|
|
607
|
+
@property(nonatomic, strong) PLKOnEventHandler onEvent;
|
|
608
|
+
|
|
609
|
+
- (instancetype)initWithToken:(NSString *)token onSuccess:(PLKOnSuccessHandler)successHandler NS_DESIGNATED_INITIALIZER;
|
|
610
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
611
|
+
+ (instancetype)createWithToken:(NSString *)token onSuccess:(PLKOnSuccessHandler)successHandler;
|
|
612
|
+
|
|
613
|
+
@end
|
|
614
|
+
|
|
615
|
+
typedef NS_ENUM(NSInteger, PLKEnvironment) {
|
|
616
|
+
PLKEnvironmentProduction,
|
|
617
|
+
PLKEnvironmentSandbox,
|
|
618
|
+
};
|
|
619
|
+
|
|
620
|
+
/// Both `PLKPresentationHandler` and `PLKDismissalHandler` clsoures take the Plaid Link View Controller to be
|
|
621
|
+
/// presented or dismissed as a parameter.
|
|
622
|
+
typedef void(^PLKPresentationHandler)(UIViewController *);
|
|
623
|
+
typedef void(^PLKDismissalHandler)(UIViewController *);
|
|
624
|
+
|
|
625
|
+
@protocol PLKHandler <NSObject>
|
|
626
|
+
|
|
627
|
+
- (void)openWithContextViewController:(UIViewController *)viewController;
|
|
628
|
+
|
|
629
|
+
- (void)openWithPresentationHandler:(PLKPresentationHandler)presentationHandler
|
|
630
|
+
dismissalHandler:(PLKDismissalHandler)dismissalHandler;
|
|
631
|
+
|
|
632
|
+
- (UIView *)createEmbeddedView:(PLKPresentationHandler)presentationHandler
|
|
633
|
+
dismissalHandler:(PLKDismissalHandler)dismissalHandler;
|
|
634
|
+
|
|
635
|
+
- (UIView *) createEmbeddedView:(UIViewController *)viewController;
|
|
636
|
+
|
|
637
|
+
- (void)resumeAfterTermination:(NSURL *)redirectUri;
|
|
638
|
+
|
|
639
|
+
- (void) submit:(PLKSubmissionData *)data;
|
|
640
|
+
|
|
641
|
+
@end
|
|
642
|
+
|
|
643
|
+
typedef NS_ENUM(NSInteger, PLKSyncBehavior) {
|
|
644
|
+
PLKSyncBehaviorLive,
|
|
645
|
+
PLKSyncBehaviorSimulated
|
|
646
|
+
};
|
|
647
|
+
|
|
648
|
+
NS_ASSUME_NONNULL_END
|