class

Plaid::DepositSwitchGetResponse

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

DepositSwitchGetResponse defines the response schema for /deposit_switch/get

Constants

ERROR_MESSAGE_FOR_STATE = "invalid value for \"state\", must be one of [initialized, processing, completed, error]."
ERROR_MESSAGE_FOR_SWITCH_METHOD = "invalid value for \"switch_method\", must be one of [instant, mail, pdf, null]."
VALID_VALUES_FOR_STATE = String.static_array("initialized", "processing", "completed", "error")
VALID_VALUES_FOR_SWITCH_METHOD = String.static_array("instant", "mail", "pdf", "null")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, deposit_switch_id : String | Nil = nil, target_account_id : String | Nil = nil, target_item_id : String | Nil = nil, state : String | Nil = nil, account_has_multiple_allocations : Bool | Nil = nil, is_allocated_remainder : Bool | Nil = nil, percent_allocated : Float64 | Nil = nil, amount_allocated : Float64 | Nil = nil, date_created : Time | Nil = nil, date_completed : Time | Nil = nil, request_id : String | Nil = nil, switch_method : String | Nil = nil, employer_name : String | Nil = nil, employer_id : String | Nil = nil, institution_name : String | Nil = nil, institution_id : String | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

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

account_has_multiple_allocations

When true, user’s direct deposit goes to multiple banks. When false, user’s direct deposit only goes to the target account. Always null if the deposit switch has not been completed.

Source
account_has_multiple_allocations=(new_value : Bool | Nil)

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

Source
amount_allocated

The dollar amount of direct deposit allocated to the target account. Always null if the target account is not allocated an amount or if the deposit switch has not been completed.

Source
amount_allocated=(new_value : Float64 | Nil)

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

Source
date_completed

ISO 8601 date the deposit switch was completed. Always null if the deposit switch has not been completed.

Source
date_completed=(new_value : Time | Nil)

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

Source
date_created

ISO 8601 date the deposit switch was created.

Source
date_created=(new_value : Time | Nil)

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

Source
deposit_switch_id

The ID of the deposit switch.

Source
deposit_switch_id=(new_value : String | Nil)

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

Source
employer_id

The ID of the employer selected by the user. If the user did not select an employer, the value returned is null.

Source
employer_id=(new_value : String | Nil)

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

Source
employer_id_present=(employer_id_present : Bool)
Source
employer_id_present?
Source
employer_name

The name of the employer selected by the user. If the user did not select an employer, the value returned is null.

Source
employer_name=(new_value : String | Nil)

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

Source
employer_name_present=(employer_name_present : Bool)
Source
employer_name_present?
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

institution_id

The ID of the institution selected by the user. If the user did not select an institution, the value returned is null.

Source
institution_id=(new_value : String | Nil)

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

Source
institution_id_present=(institution_id_present : Bool)
Source
institution_id_present?
Source
institution_name

The name of the institution selected by the user. If the user did not select an institution, the value returned is null.

Source
institution_name=(new_value : String | Nil)

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

Source
institution_name_present=(institution_name_present : Bool)
Source
institution_name_present?
Source
is_allocated_remainder

When true, the target account is allocated the remainder of direct deposit after all other allocations have been deducted. When false, user’s direct deposit is allocated as a percent or amount. Always null if the deposit switch has not been completed.

Source
is_allocated_remainder=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] is_allocated_remainder 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
percent_allocated

The percentage of direct deposit allocated to the target account. Always null if the target account is not allocated a percentage or if the deposit switch has not been completed or if is_allocated_remainder is true.

Source
percent_allocated=(new_value : Float64 | Nil)

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

Source
request_id

A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.

Source
request_id=(new_value : String | Nil)

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

Source
state

The state, or status, of the deposit switch. - initialized – The deposit switch has been initialized with the user entering the information required to submit the deposit switch request. - processing – The deposit switch request has been submitted and is being processed. - completed – The user's employer has fulfilled the deposit switch request. - error – There was an error processing the deposit switch request.

Source
state=(new_value : String | Nil)

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

Source
switch_method

The method used to make the deposit switch. - instant – User instantly switched their direct deposit to a new or existing bank account by connecting their payroll or employer account. - mail – User requested that Plaid contact their employer by mail to make the direct deposit switch. - pdf – User generated a PDF or email to be sent to their employer with the information necessary to make the deposit switch.'

Source
switch_method=(new_value : String | Nil)

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

Source
switch_method_present=(switch_method_present : Bool)
Source
switch_method_present?
Source
target_account_id

The ID of the bank account the direct deposit was switched to.

Source
target_account_id=(new_value : String | Nil)

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

Source
target_item_id

The ID of the Item the direct deposit was switched to.

Source
target_item_id=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] target_item_id 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