Class: Increase::Resources::Simulations::InboundWireTransfers

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

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ InboundWireTransfers

Returns a new instance of InboundWireTransfers.



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

def initialize(client:)
  @client = client
end

Instance Method Details

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

Simulates an inbound Wire Transfer to your account.

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):

  • :account_number_id (String)

    The identifier of the Account Number the inbound Wire Transfer is for.

  • :amount (Integer)

    The transfer amount in cents. Must be positive.

  • :beneficiary_address_line1 (String)

    The sending bank will set beneficiary_address_line1 in production. You can simulate any value here.

  • :beneficiary_address_line2 (String)

    The sending bank will set beneficiary_address_line2 in production. You can simulate any value here.

  • :beneficiary_address_line3 (String)

    The sending bank will set beneficiary_address_line3 in production. You can simulate any value here.

  • :beneficiary_name (String)

    The sending bank will set beneficiary_name in production. You can simulate any value here.

  • :beneficiary_reference (String)

    The sending bank will set beneficiary_reference in production. You can simulate any value here.

  • :originator_address_line1 (String)

    The sending bank will set originator_address_line1 in production. You can simulate any value here.

  • :originator_address_line2 (String)

    The sending bank will set originator_address_line2 in production. You can simulate any value here.

  • :originator_address_line3 (String)

    The sending bank will set originator_address_line3 in production. You can simulate any value here.

  • :originator_name (String)

    The sending bank will set originator_name in production. You can simulate any value here.

  • :originator_routing_number (String)

    The sending bank will set originator_routing_number in production. You can simulate any value here.

  • :originator_to_beneficiary_information_line1 (String)

    The sending bank will set originator_to_beneficiary_information_line1 in production. You can simulate any value here.

  • :originator_to_beneficiary_information_line2 (String)

    The sending bank will set originator_to_beneficiary_information_line2 in production. You can simulate any value here.

  • :originator_to_beneficiary_information_line3 (String)

    The sending bank will set originator_to_beneficiary_information_line3 in production. You can simulate any value here.

  • :originator_to_beneficiary_information_line4 (String)

    The sending bank will set originator_to_beneficiary_information_line4 in production. You can simulate any value here.

  • :sender_reference (String)

    The sending bank will set sender_reference in production. You can simulate any value here.

Returns:



50
51
52
53
54
55
56
57
# File 'lib/increase/resources/simulations/inbound_wire_transfers.rb', line 50

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