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

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

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ InboundWireTransfers

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 InboundWireTransfers.



94
95
96
# File 'lib/increase/resources/simulations/inbound_wire_transfers.rb', line 94

def initialize(client:)
  @client = client
end

Instance Method Details

#create(account_number_id:, amount:, creditor_address_line1: nil, creditor_address_line2: nil, creditor_address_line3: nil, creditor_name: nil, debtor_address_line1: nil, debtor_address_line2: nil, debtor_address_line3: nil, debtor_name: nil, end_to_end_identification: nil, instructing_agent_routing_number: nil, instruction_identification: nil, purpose: nil, unique_end_to_end_transaction_reference: nil, unstructured_remittance_information: nil, wire_drawdown_request_id: nil, request_options: {}) ⇒ Increase::Models::InboundWireTransfer

Simulates an Inbound Wire Transfer to your account.



80
81
82
83
84
85
86
87
88
89
# File 'lib/increase/resources/simulations/inbound_wire_transfers.rb', line 80

def create(params)
  parsed, options = Increase::Simulations::InboundWireTransferCreateParams.dump_request(params)
  @client.request(
    method: :post,
    path: "simulations/inbound_wire_transfers",
    body: parsed,
    model: Increase::InboundWireTransfer,
    options: options
  )
end