class

Plaid::LinkTokenCreateRequest

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

LinkTokenCreateRequest defines the request schema for /link/token/create

Constants

MIN_ITEMS_FOR_COUNTRY_CODES = 1
MIN_LENGTH_FOR_ACCESS_TOKEN = 1
MIN_LENGTH_FOR_CLIENT_NAME = 1
MIN_LENGTH_FOR_LANGUAGE = 1

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

access_token

The access_token associated with the Item to update or reference, used when updating, modifying, or accessing an existing access_token. Used when launching Link in update mode, when completing the Same-day (manual) Micro-deposit flow, or (optionally) when initializing Link for a returning user as part of the Transfer UI flow.

Source
access_token=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] access_token Object to be assigned

Source
access_token_present=(access_token_present : Bool)
Source
access_token_present?
Source
access_tokens

A list of access tokens associated with the items to update in Link update mode for the Assets product. Using this instead of the access_token field allows the updating of multiple items at once. This feature is in closed beta, please contact your account manager for more info.

Source
access_tokens=(new_value : Array(String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] access_tokens Object to be assigned

Source
account_filters
Source
account_filters=(new_value : LinkTokenAccountFilters | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] account_filters Object to be assigned

Source
additional_consented_products

(Beta) This field has no effect unless you are participating in the Data Transparency beta program. List of additional Plaid product(s) you wish to collect consent for. These products will not be billed until you start using them by calling the relevant endpoints. balance is not a valid value, the Balance product does not require explicit initialization and will automatically have consent collected. Institutions that do not support these products will still be shown in Link. There should be no overlap between this array and the products or required_if_supported_products arrays.

Source
additional_consented_products=(new_value : Array(Products) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] additional_consented_products Object to be assigned

Source
additional_consented_products_present=(additional_consented_products_present : Bool)
Source
additional_consented_products_present?
Source
android_package_name

The name of your app's Android package. Required if using the link_token to initialize Link on Android. Any package name specified here must also be added to the Allowed Android package names setting on the developer dashboard. When creating a link_token for initializing Link on other platforms, android_package_name must be left blank and redirect_uri should be used instead.

Source
android_package_name=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] android_package_name Object to be assigned

Source
auth
Source
auth=(new_value : Plaid::LinkTokenCreateRequestAuth | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] auth Object to be assigned

Source
base_report
Source
base_report=(new_value : Plaid::LinkTokenCreateRequestBaseReport | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] base_report Object to be assigned

Source
card_switch
Source
card_switch=(new_value : Plaid::LinkTokenCreateCardSwitch | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] card_switch Object to be assigned

Source
client_id

Your Plaid API client_id. The client_id is required and may be provided either in the PLAID-CLIENT-ID header or as part of a request body.

Source
client_id=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] client_id Object to be assigned

Source
client_name

The name of your application, as it should be displayed in Link. Maximum length of 30 characters. If a value longer than 30 characters is provided, Link will display "This Application" instead.

Source
client_name=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] client_name Object to be assigned

Source
consumer_report_permissible_purpose
Source
consumer_report_permissible_purpose=(new_value : Plaid::ConsumerReportPermissiblePurpose | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] consumer_report_permissible_purpose Object to be assigned

Source
country_codes

Specify an array of Plaid-supported country codes using the ISO-3166-1 alpha-2 country code standard. Institutions from all listed countries will be shown. For a complete mapping of supported products by country, see https://plaid.com/global/. If using Identity Verification, country_codes should be set to the country where your company is based, not the country where your user is located. For all other products, country_codes represents the location of your user's financial institution. If Link is launched with multiple country codes, only products that you are enabled for in all countries will be used by Link. Note that while all countries are enabled by default in Sandbox and Development, in Production only US and Canada are enabled by default. Access to European institutions requires additional compliance steps. To request access to European institutions in the Production environment, file a product access Support ticket via the Plaid dashboard. If you initialize with a European country code, your users will see the European consent panel during the Link flow. If using a Link customization, make sure the country codes in the customization match those specified in country_codes, or the customization may not be applied. If using the Auth features Instant Match, Same-day Micro-deposits, or Automated Micro-deposits, country_codes must be set to ['US'].

Source
country_codes=(new_value : Array(CountryCode) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] country_codes Object to be assigned

Source
cra_enabled

If true, request a CRA connection. Defaults to false.

Source
cra_enabled=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] cra_enabled Object to be assigned

Source
deposit_switch
Source
deposit_switch=(new_value : Plaid::LinkTokenCreateRequestDepositSwitch | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] deposit_switch Object to be assigned

Source
employment
Source
employment=(new_value : Plaid::LinkTokenCreateRequestEmployment | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] employment Object to be assigned

Source
eu_config
Source
eu_config=(new_value : Plaid::LinkTokenEUConfig | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] eu_config Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

identity_verification
Source
identity_verification=(new_value : Plaid::LinkTokenCreateRequestIdentityVerification | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] identity_verification Object to be assigned

Source
income_verification
Source
income_verification=(new_value : Plaid::LinkTokenCreateRequestIncomeVerification | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] income_verification Object to be assigned

Source
institution_data
Source
institution_data=(new_value : Plaid::LinkTokenCreateInstitutionData | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] institution_data Object to be assigned

Source
institution_id

Used for certain Europe-only configurations, as well as certain legacy use cases in other regions.

Source
institution_id=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] institution_id Object to be assigned

Source
investments
Source
investments=(new_value : Plaid::LinkTokenInvestments | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] investments Object to be assigned

Source
investments_auth
Source
investments_auth=(new_value : Plaid::LinkTokenInvestmentsAuth | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] investments_auth Object to be assigned

Source
language

The language that Link should be displayed in. When initializing with Identity Verification, this field is not used; for more details, see Identity Verification supported languages. Supported languages are: - Danish ('da') - Dutch ('nl') - English ('en') - Estonian ('et') - French ('fr') - German ('de') - Italian ('it') - Latvian ('lv') - Lithuanian ('lt') - Norwegian ('no') - Polish ('pl') - Portuguese ('pt') - Romanian ('ro') - Spanish ('es') - Swedish ('sv') When using a Link customization, the language configured here must match the setting in the customization, or the customization will not be applied.

Source
language=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] language Object to be assigned

Source
list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
optional_products

List of Plaid product(s) that you may wish to use but that are not required for your use case. Plaid will attempt to fetch data for these products on a best-effort basis, and failure to support these products will not affect Item creation. There should be no overlap between this array and the products, required_if_supported_products, or additional_consented_products arrays. The products array must have at least one product. For more details on using this feature, see Optional Products.

Source
optional_products=(new_value : Array(Products) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] optional_products Object to be assigned

Source
optional_products_present=(optional_products_present : Bool)
Source
optional_products_present?
Source
payment_initiation
Source
payment_initiation=(new_value : Plaid::LinkTokenCreateRequestPaymentInitiation | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] payment_initiation Object to be assigned

Source
products

List of Plaid product(s) you wish to use. If launching Link in update mode, should be omitted (unless you are using update mode to add Income or Assets to an Item); required otherwise. balance is not a valid value, the Balance product does not require explicit initialization and will automatically be initialized when any other product is initialized. The products specified here will determine which institutions will be available to your users in Link. Only institutions that support all requested products can be selected; a if a user attempts to select an institution that does not support a listed product, a "Connectivity not supported" error message will appear in Link. To maximize the number of institutions available, initialize Link with the minimal product set required for your use case. Additional products can be included via the optional_products or required_if_supported_products fields, or can be initialized by calling the endpoint after obtaining an access token. For details and exceptions, see Choosing when to initialize products. Note that, unless you have opted to disable Instant Match support, institutions that support Instant Match will also be shown in Link if auth is specified as a product, even though these institutions do not contain auth in their product array. In Production, you will be billed for each product that you specify when initializing Link. Note that a product cannot be removed from an Item once the Item has been initialized with that product. To stop billing on an Item for subscription-based products, such as Liabilities, Investments, and Transactions, remove the Item via /item/remove.

Source
products=(new_value : Array(Products) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] products Object to be assigned

Source
products_present=(products_present : Bool)
Source
products_present?
Source
redirect_uri

A URI indicating the destination where a user should be forwarded after completing the Link flow; used to support OAuth authentication flows when launching Link in the browser or via a webview. The redirect_uri should not contain any query parameters. When used in Production or Development, must be an https URI. To specify any subdomain, use * as a wildcard character, e.g. https://*.example.com/oauth.html. Note that any redirect URI must also be added to the Allowed redirect URIs list in the developer dashboard. If initializing on Android, android_package_name must be specified instead and redirect_uri should be left blank.

Source
redirect_uri=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] redirect_uri Object to be assigned

Source
required_if_supported_products

List of Plaid product(s) you wish to use only if the institution and account(s) selected by the user support the product. Institutions that do not support these products will still be shown in Link. The products will only be extracted and billed if the user selects an institution and account type that supports them. There should be no overlap between this array and the products, optional_products, or additional_consented_products arrays. The products array must have at least one product. For more details on using this feature, see Required if Supported Products.

Source
required_if_supported_products=(new_value : Array(Products) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] required_if_supported_products Object to be assigned

Source
required_if_supported_products_present=(required_if_supported_products_present : Bool)
Source
required_if_supported_products_present?
Source
secret

Your Plaid API secret. The secret is required and may be provided either in the PLAID-SECRET header or as part of a request body.

Source
secret=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] secret Object to be assigned

Source
statements
Source
statements=(new_value : Plaid::LinkTokenCreateRequestStatements | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] statements Object to be assigned

Source
transactions
Source
transactions=(new_value : Plaid::LinkTokenTransactions | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] transactions Object to be assigned

Source
transfer
Source
transfer=(new_value : Plaid::LinkTokenCreateRequestTransfer | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] transfer Object to be assigned

Source
update
Source
update=(new_value : Plaid::LinkTokenCreateRequestUpdate | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] update Object to be assigned

Source
user
Source
user=(new_value : Plaid::LinkTokenCreateRequestUser | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] user Object to be assigned

Source
user_token

A user token generated using /user/create. Any Item created during the Link session will be associated with the user.

Source
user_token=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] user_token Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source
webhook

The destination URL to which any webhooks should be sent. Note that webhooks for Payment Initiation (e-wallet transactions only), Transfer, Bank Transfer (including Auth micro-deposit notification webhooks) and Identity Verification are configured via the Dashboard instead.

Source
webhook=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] webhook Object to be assigned

Source