Class: WellsFargo::Endpoints::ACH

Inherits:
Base
  • Object
show all
Defined in:
lib/wells_fargo/endpoints/ach.rb

Constant Summary collapse

SCOPE =
'ACH-Payments ACH-Payments-Status'

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from WellsFargo::Endpoints::Base

Instance Method Details

#check_status(payment_id) ⇒ Object



16
17
18
19
20
21
# File 'lib/wells_fargo/endpoints/ach.rb', line 16

def check_status(payment_id)
  client.execute(
    :get, "ach/v1/payments/#{payment_id}",
    headers: headers
  )
end

#create_payment(payload) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/wells_fargo/endpoints/ach.rb', line 8

def create_payment(payload)
  client.execute(
    :post, 'ach/v1/payments',
    headers: headers.merge('Content-Type' => 'application/json'),
    body: payload
  )
end