public final class PlaidClient extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
PlaidClient.Builder |
|
static class |
PlaidClient.PlaidApiHeadersInterceptor |
Modifier and Type | Method | Description |
---|---|---|
retrofit2.Retrofit |
getRetrofit() |
Visible for testing.
|
static PlaidClient.Builder |
newBuilder() |
Start here! Creates a new
PlaidClient.Builder so you can make a PlaidClient . |
ErrorResponse |
parseError(retrofit2.Response response) |
A helper to assist with decoding unsuccessful responses.
|
PlaidApiService |
service() |
Get the Retrofit
PlaidApiService which backs this client. |
public PlaidApiService service()
PlaidApiService
which backs this client.
All Plaid API calls are called on this service object.PlaidApiService
public ErrorResponse parseError(retrofit2.Response response)
response
- the unsuccessful response object to deserialize.ErrorResponse
, assuming deserialization succeeded.RuntimeException
- if the response cannot be deserializedpublic retrofit2.Retrofit getRetrofit()
public static PlaidClient.Builder newBuilder()
PlaidClient.Builder
so you can make a PlaidClient
.PlaidClient.Builder
Copyright © 2017–2018 Plaid Technologies, Inc.. All rights reserved.