Class: WellsFargo::Endpoints::ACH
- Inherits:
-
Base
- Object
- Base
- WellsFargo::Endpoints::ACH
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
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:
)
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: .merge('Content-Type' => 'application/json'),
body: payload
)
end
|