Class used to call the Deposit Switch product.

Sections
Namespace
Methods
C
G
Public
Instance Public methods
create(target_account_id, target_access_token)

Create Deposit Switch.

Does a POST /deposit_switch/create call which creates a deposit switch

target_account_id

ID of the bank account for the deposit switch

target_access_token

access token for the switch

Returns

Returns the DepositSwitchResponse object with deposit switch data.

# File lib/plaid/products/deposit_switch.rb, line 58
def create(target_account_id, target_access_token)
  post_with_auth 'deposit_switch/create',
                 CreateResponse,
                 target_account_id: target_account_id,
                 target_access_token: target_access_token
end
create_token(deposit_switch_id)

Create Deposit Switch token.

Does a POST /deposit_switch/token/create call which creates a deposit switch.

deposit_switch_item

ID of the deposit switch

Returns

Returns the CreateTokenResponse object.

# File lib/plaid/products/deposit_switch.rb, line 80
def create_token(deposit_switch_id)
  post_with_auth 'deposit_switch/token/create',
                 CreateTokenResponse,
                 deposit_switch_id: deposit_switch_id
end
get(deposit_switch_id)

Get Deposit Switch information.

Does a POST /deposit_switch/get call which fetches deposit switch associated with a deposit switch id.

deposit_switch_id

Returns

deposit_switch_id to fetch deposit switch Returns the DepositSwitchResponse object with deposit switch data.

# File lib/plaid/products/deposit_switch.rb, line 11
def get(deposit_switch_id)
  post_with_auth 'deposit_switch/get',
                 GetResponse,
                 deposit_switch_id: deposit_switch_id
end