Class: Increase::Resources::Simulations::CheckDeposits

Inherits:
Object
  • Object
show all
Defined in:
lib/increase/resources/simulations/check_deposits.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ CheckDeposits

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of CheckDeposits.

Parameters:



74
75
76
# File 'lib/increase/resources/simulations/check_deposits.rb', line 74

def initialize(client:)
  @client = client
end

Instance Method Details

#reject(check_deposit_id, request_options: {}) ⇒ Increase::Models::CheckDeposit

Simulates the rejection of a [Check Deposit](#check-deposits) by Increase due to factors like poor image quality. This Check Deposit must first have a ‘status` of `pending`.

Parameters:

  • check_deposit_id (String)

    The identifier of the Check Deposit you wish to reject.

  • request_options (Increase::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



20
21
22
23
24
25
26
27
# File 'lib/increase/resources/simulations/check_deposits.rb', line 20

def reject(check_deposit_id, params = {})
  @client.request(
    method: :post,
    path: ["simulations/check_deposits/%1$s/reject", check_deposit_id],
    model: Increase::CheckDeposit,
    options: params[:request_options]
  )
end

#return_(check_deposit_id, request_options: {}) ⇒ Increase::Models::CheckDeposit

Simulates the return of a [Check Deposit](#check-deposits). This Check Deposit must first have a ‘status` of `submitted`.

Parameters:

  • check_deposit_id (String)

    The identifier of the Check Deposit you wish to return.

  • request_options (Increase::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



41
42
43
44
45
46
47
48
# File 'lib/increase/resources/simulations/check_deposits.rb', line 41

def return_(check_deposit_id, params = {})
  @client.request(
    method: :post,
    path: ["simulations/check_deposits/%1$s/return", check_deposit_id],
    model: Increase::CheckDeposit,
    options: params[:request_options]
  )
end

#submit(check_deposit_id, request_options: {}) ⇒ Increase::Models::CheckDeposit

Simulates the submission of a [Check Deposit](#check-deposits) to the Federal Reserve. This Check Deposit must first have a ‘status` of `pending`.

Parameters:

  • check_deposit_id (String)

    The identifier of the Check Deposit you wish to submit.

  • request_options (Increase::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



62
63
64
65
66
67
68
69
# File 'lib/increase/resources/simulations/check_deposits.rb', line 62

def submit(check_deposit_id, params = {})
  @client.request(
    method: :post,
    path: ["simulations/check_deposits/%1$s/submit", check_deposit_id],
    model: Increase::CheckDeposit,
    options: params[:request_options]
  )
end