Package com.plaid.client.model
Class Item
java.lang.Object
com.plaid.client.model.Item
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2021-10-15T19:47:39.714Z[GMT]")
public class Item
extends java.lang.Object
Metadata about the Item.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Item.UpdateTypeEnum
Indicates whether an Item requires user interaction to be updated, which can be the case for Items with some forms of two-factor authentication. -
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SERIALIZED_NAME_AVAILABLE_PRODUCTS
static java.lang.String
SERIALIZED_NAME_BILLED_PRODUCTS
static java.lang.String
SERIALIZED_NAME_CONSENT_EXPIRATION_TIME
static java.lang.String
SERIALIZED_NAME_ERROR
static java.lang.String
SERIALIZED_NAME_INSTITUTION_ID
static java.lang.String
SERIALIZED_NAME_ITEM_ID
static java.lang.String
SERIALIZED_NAME_UPDATE_TYPE
static java.lang.String
SERIALIZED_NAME_WEBHOOK
-
Constructor Summary
Constructors Constructor Description Item()
-
Method Summary
Modifier and Type Method Description Item
addAvailableProductsItem(Products availableProductsItem)
Item
addBilledProductsItem(Products billedProductsItem)
Item
availableProducts(java.util.List<Products> availableProducts)
Item
billedProducts(java.util.List<Products> billedProducts)
Item
consentExpirationTime(java.time.OffsetDateTime consentExpirationTime)
boolean
equals(java.lang.Object o)
Item
error(Error error)
java.util.List<Products>
getAvailableProducts()
A list of products available for the Item that have not yet been accessed.java.util.List<Products>
getBilledProducts()
A list of products that have been billed for the Item.java.time.OffsetDateTime
getConsentExpirationTime()
The RFC 3339 timestamp after which the consent provided by the end user will expire.Error
getError()
Get errorjava.lang.String
getInstitutionId()
The Plaid Institution ID associated with the Item.java.lang.String
getItemId()
The Plaid Item ID.Item.UpdateTypeEnum
getUpdateType()
Indicates whether an Item requires user interaction to be updated, which can be the case for Items with some forms of two-factor authentication.java.lang.String
getWebhook()
The URL registered to receive webhooks for the Item.int
hashCode()
Item
institutionId(java.lang.String institutionId)
Item
itemId(java.lang.String itemId)
void
setAvailableProducts(java.util.List<Products> availableProducts)
void
setBilledProducts(java.util.List<Products> billedProducts)
void
setConsentExpirationTime(java.time.OffsetDateTime consentExpirationTime)
void
setError(Error error)
void
setInstitutionId(java.lang.String institutionId)
void
setItemId(java.lang.String itemId)
void
setUpdateType(Item.UpdateTypeEnum updateType)
void
setWebhook(java.lang.String webhook)
java.lang.String
toString()
Item
updateType(Item.UpdateTypeEnum updateType)
Item
webhook(java.lang.String webhook)
-
Field Details
-
SERIALIZED_NAME_ITEM_ID
public static final java.lang.String SERIALIZED_NAME_ITEM_ID- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INSTITUTION_ID
public static final java.lang.String SERIALIZED_NAME_INSTITUTION_ID- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WEBHOOK
public static final java.lang.String SERIALIZED_NAME_WEBHOOK- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERROR
public static final java.lang.String SERIALIZED_NAME_ERROR- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AVAILABLE_PRODUCTS
public static final java.lang.String SERIALIZED_NAME_AVAILABLE_PRODUCTS- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BILLED_PRODUCTS
public static final java.lang.String SERIALIZED_NAME_BILLED_PRODUCTS- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONSENT_EXPIRATION_TIME
public static final java.lang.String SERIALIZED_NAME_CONSENT_EXPIRATION_TIME- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATE_TYPE
public static final java.lang.String SERIALIZED_NAME_UPDATE_TYPE- See Also:
- Constant Field Values
-
-
Constructor Details
-
Item
public Item()
-
-
Method Details
-
itemId
-
getItemId
public java.lang.String getItemId()The Plaid Item ID. The `item_id` is always unique; linking the same account at the same institution twice will result in two Items with different `item_id` values. Like all Plaid identifiers, the `item_id` is case-sensitive.- Returns:
- itemId
-
setItemId
public void setItemId(java.lang.String itemId) -
institutionId
-
getInstitutionId
@Nullable public java.lang.String getInstitutionId()The Plaid Institution ID associated with the Item. Field is `null` for Items created via Same Day Micro-deposits.- Returns:
- institutionId
-
setInstitutionId
public void setInstitutionId(java.lang.String institutionId) -
webhook
-
getWebhook
@Nullable public java.lang.String getWebhook()The URL registered to receive webhooks for the Item.- Returns:
- webhook
-
setWebhook
public void setWebhook(java.lang.String webhook) -
error
-
getError
Get error- Returns:
- error
-
setError
-
availableProducts
-
addAvailableProductsItem
-
getAvailableProducts
A list of products available for the Item that have not yet been accessed.- Returns:
- availableProducts
-
setAvailableProducts
-
billedProducts
-
addBilledProductsItem
-
getBilledProducts
A list of products that have been billed for the Item. Note - `billed_products` is populated in all environments but only requests in Production are billed.- Returns:
- billedProducts
-
setBilledProducts
-
consentExpirationTime
-
getConsentExpirationTime
@Nullable public java.time.OffsetDateTime getConsentExpirationTime()The RFC 3339 timestamp after which the consent provided by the end user will expire. Upon consent expiration, the item will enter the `ITEM_LOGIN_REQUIRED` error state. To circumvent the `ITEM_LOGIN_REQUIRED` error and maintain continuous consent, the end user can reauthenticate via Link’s update mode in advance of the consent expiration time. Note - This is only relevant for certain OAuth-based institutions. For all other institutions, this field will be null.- Returns:
- consentExpirationTime
-
setConsentExpirationTime
public void setConsentExpirationTime(java.time.OffsetDateTime consentExpirationTime) -
updateType
-
getUpdateType
Indicates whether an Item requires user interaction to be updated, which can be the case for Items with some forms of two-factor authentication. `background` - Item can be updated in the background `user_present_required` - Item requires user interaction to be updated- Returns:
- updateType
-
setUpdateType
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-