Class: Increase::Resources::Simulations::InboundWireDrawdownRequests

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

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ InboundWireDrawdownRequests

Returns a new instance of InboundWireDrawdownRequests.



7
8
9
# File 'lib/increase/resources/simulations/inbound_wire_drawdown_requests.rb', line 7

def initialize(client:)
  @client = client
end

Instance Method Details

#create(params = {}, opts = {}) ⇒ Increase::Models::InboundWireDrawdownRequest

Simulates receiving an Inbound Wire Drawdown Request.

Parameters:

  • params (Hash) (defaults to: {})

    Attributes to send in this request.

  • opts (Hash|RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Options Hash (params):

  • :amount (Integer)

    The amount being requested in cents.

  • :beneficiary_account_number (String)

    The drawdown request's beneficiary's account number.

  • :beneficiary_routing_number (String)

    The drawdown request's beneficiary's routing number.

  • :currency (String)

    The ISO 4217 code for the amount being requested. Will always be "USD".

  • :message_to_recipient (String)

    A message from the drawdown request's originator.

  • :originator_account_number (String)

    The drawdown request's originator's account number.

  • :originator_routing_number (String)

    The drawdown request's originator's routing number.

  • :recipient_account_number_id (String)

    The Account Number to which the recipient of this request is being requested to send funds from.

  • :beneficiary_address_line1 (String)

    Line 1 of the drawdown request's beneficiary's address.

  • :beneficiary_address_line2 (String)

    Line 2 of the drawdown request's beneficiary's address.

  • :beneficiary_address_line3 (String)

    Line 3 of the drawdown request's beneficiary's address.

  • :beneficiary_name (String)

    The drawdown request's beneficiary's name.

  • :originator_address_line1 (String)

    Line 1 of the drawdown request's originator's address.

  • :originator_address_line2 (String)

    Line 2 of the drawdown request's originator's address.

  • :originator_address_line3 (String)

    Line 3 of the drawdown request's originator's address.

  • :originator_name (String)

    The drawdown request's originator's name.

  • :originator_to_beneficiary_information_line1 (String)

    Line 1 of the information conveyed from the originator of the message to the beneficiary.

  • :originator_to_beneficiary_information_line2 (String)

    Line 2 of the information conveyed from the originator of the message to the beneficiary.

  • :originator_to_beneficiary_information_line3 (String)

    Line 3 of the information conveyed from the originator of the message to the beneficiary.

  • :originator_to_beneficiary_information_line4 (String)

    Line 4 of the information conveyed from the originator of the message to the beneficiary.

Returns:



45
46
47
48
49
50
51
52
# File 'lib/increase/resources/simulations/inbound_wire_drawdown_requests.rb', line 45

def create(params = {}, opts = {})
  req = {}
  req[:method] = :post
  req[:path] = "/simulations/inbound_wire_drawdown_requests"
  req[:body] = params
  req[:model] = Increase::Models::InboundWireDrawdownRequest
  @client.request(req, opts)
end