class Plaid::DepositSwitchGetResponse

Overview

DepositSwitchGetResponse defines the response schema for /deposit_switch/get

Included Modules

Defined in:

plaid/models/deposit_switch_get_response.cr

Constant Summary

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

Instance Method Summary

Instance methods inherited from module OpenApi::Json

after_initialize after_initialize, eql?(o : self) eql?, to_hash : Hash(String, JSON::Any) to_hash, to_json_any : JSON::Any to_json_any

Class methods inherited from module OpenApi::Json

build_from_hash(hash : Hash) build_from_hash, build_from_json_any(json_any : JSON::Any) build_from_json_any

Instance methods inherited from module OpenApi::Validatable

list_invalid_properties : Array(String) list_invalid_properties, list_invalid_properties_for(key : String) : Array(String) list_invalid_properties_for, valid? : Bool valid?, validate : Nil validate

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.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


[View source]

Instance Method Detail

def ==(other : self) #

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


def account_has_multiple_allocations : Bool | Nil #

[View source]
def 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


[View source]
def amount_allocated : Float64 | Nil #

[View source]
def amount_allocated=(new_value : Float64 | Nil) #

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


[View source]
def date_completed : Time | Nil #

[View source]
def date_completed=(new_value : Time | Nil) #

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


[View source]
def date_created : Time | Nil #

[View source]
def date_created=(new_value : Time | Nil) #

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


[View source]
def deposit_switch_id : String | Nil #

[View source]
def deposit_switch_id=(new_value : String | Nil) #

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


[View source]
def employer_id : String | Nil #

[View source]
def employer_id=(new_value : String | Nil) #

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


[View source]
def employer_id_present=(employer_id_present : Bool) #

[View source]
def employer_id_present? : Bool #

[View source]
def employer_name : String | Nil #

[View source]
def employer_name=(new_value : String | Nil) #

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


[View source]
def employer_name_present=(employer_name_present : Bool) #

[View source]
def employer_name_present? : Bool #

[View source]
def hash(hasher) #

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


def institution_id : String | Nil #

[View source]
def institution_id=(new_value : String | Nil) #

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


[View source]
def institution_id_present=(institution_id_present : Bool) #

[View source]
def institution_id_present? : Bool #

[View source]
def institution_name : String | Nil #

[View source]
def institution_name=(new_value : String | Nil) #

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


[View source]
def institution_name_present=(institution_name_present : Bool) #

[View source]
def institution_name_present? : Bool #

[View source]
def is_allocated_remainder : Bool | Nil #

[View source]
def is_allocated_remainder=(new_value : Bool | Nil) #

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


[View source]
def list_invalid_properties : Array(String) #

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


[View source]
def percent_allocated : Float64 | Nil #

[View source]
def percent_allocated=(new_value : Float64 | Nil) #

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


[View source]
def request_id : String | Nil #

[View source]
def request_id=(new_value : String | Nil) #

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


[View source]
def state : String | Nil #

[View source]
def state=(new_value : String | Nil) #

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


[View source]
def switch_method : String | Nil #

[View source]
def switch_method=(new_value : String | Nil) #

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


[View source]
def switch_method_present=(switch_method_present : Bool) #

[View source]
def switch_method_present? : Bool #

[View source]
def target_account_id : String | Nil #

[View source]
def target_account_id=(new_value : String | Nil) #

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


[View source]
def target_item_id : String | Nil #

[View source]
def target_item_id=(new_value : String | Nil) #

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


[View source]
def valid? : Bool #

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


[View source]