@@ -21,7 +21,7 @@ We also provide an out-of-the-box [Hyperwallet Android UI SDK](https://github.c
21
21
To install Hyperwallet Core SDK, you just need to add the dependency into your build.gradle file in Android Studio (or Gradle). For example:
22
22
23
23
``` bash
24
- api ' com.hyperwallet.android:core-sdk:1.0.0-beta07 '
24
+ api ' com.hyperwallet.android:core-sdk:1.0.0-beta08 '
25
25
```
26
26
27
27
### Proguard
@@ -204,6 +204,56 @@ Hyperwallet.getDefault().listVenmoAccounts(queryParam, mListener);
204
204
// onFailure: error (ErrorType) will contain Errors containing information about what caused the failure
205
205
```
206
206
207
+ ### Create Paper Check
208
+ ``` java
209
+ final PaperCheck paperCheck = new PaperCheck .Builder ()
210
+ .transferMethodCountry(" US" )
211
+ .transferMethodCurrency(" USD" )
212
+ .build();
213
+
214
+ Hyperwallet . getDefault(). createPaperCheck(paperCheck, listener);
215
+ // onSuccess: response (PaperCheck in this case) will contain information about the Paper Check created
216
+ // onFailure: error (ErrorType) will contain Errors containing information about what caused the failure
217
+ ```
218
+
219
+ ### Get Paper Check
220
+ ``` java
221
+ Hyperwallet . getDefault(). getPaperCheck(" trm-fake-token" , listener);
222
+ // onSuccess: response (PaperCheck in this case) will contain information about the user’s Paper Check or null if not exist.
223
+ // onFailure: error (ErrorType) will contain Errors containing information about what caused the failure
224
+ ```
225
+
226
+ ### Update Paper Check
227
+ ``` java
228
+ final PaperCheck paperCheck = new PaperCheck
229
+ .Builder ()
230
+ .token(" trm-fake-token" )
231
+ .build();
232
+
233
+ Hyperwallet . getDefault(). updatePaperCheck(paperCheck, listener);
234
+ // Code to handle successful response or error
235
+ // onSuccess: response (PaperCheck in this case) will contain information about the user’s PaperCheck
236
+ // onFailure: error (ErrorType) will contain Errors containing information about what caused the failure of PaperCheck updating
237
+ ```
238
+
239
+ ### Deactivate Paper Check
240
+ ``` java
241
+ Hyperwallet . getDefault(). deactivatePaperCheck(" trm-fake-token" , " deactivate Paper Check" , listener);
242
+ // Code to handle successful response or error
243
+ // onSuccess: response (StatusTransition in this case) will contain information about the status transition
244
+ // onFailure: error (ErrorType) will contain Errors containing information about what caused the failure of Paper Check deactivation
245
+ ```
246
+
247
+ ### List Paper Check
248
+ ``` java
249
+ PaperCheckQueryParam queryParam = new PaperCheckQueryParam .Builder ()
250
+ .status(ACTIVATED )
251
+ .build();
252
+ Hyperwallet . getDefault(). listPaperChecks(queryParam, listener);
253
+ // onSuccess: response (PageList<PaperCheck>) will contain a PageList of PaperCheck or null if not exists
254
+ // onFailure: error (ErrorType) will contain Errors containing information about what caused the failure
255
+ ```
256
+
207
257
### Create Bank Account
208
258
``` java
209
259
final BankAccount bankAccount = new BankAccount .Builder ()
@@ -463,6 +513,16 @@ result.getProcessingTime();
463
513
result. getFields();
464
514
result. getFields(). getTransferMethodType();
465
515
```
516
+ ### Update fields for a transfer method type
517
+ ``` java
518
+ TransferMethodUpdateConfigurationFieldQuery fieldQuery = new TransferMethodUpdateConfigurationFieldQuery (
519
+ " trmToken" );
520
+ Hyperwallet . getDefault(). retrieveTransferMethodUpdateConfigurationFields(fieldQuery, listener);
521
+ // onSuccess: response (TransferMethodUpdateConfigurationFieldResult)
522
+ // will contain a dataset of available Transfer Method Configuration Fields for the specified query
523
+ // onFailure: error (ErrorType) will contain Errors containing information about what caused the failure
466
524
525
+ result. getFields();
526
+ ```
467
527
## License
468
528
The Hyperwallet Android Core SDK is open source and available under the [ MIT] ( https://github.com/hyperwallet/hyperwallet-android-sdk/blob/master/LICENSE ) license.
0 commit comments