Class: WellsFargo::Endpoints::Wires
- Inherits:
-
Base
- Object
- Base
- WellsFargo::Endpoints::Wires
show all
- Defined in:
- lib/wells_fargo/endpoints/wires.rb
Constant Summary
collapse
- SCOPE =
'Wires-Payments-Template Wires-Payments Wires-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
22
|
# File 'lib/wells_fargo/endpoints/wires.rb', line 16
def check_status(payment_id)
client.execute(
:get, "wires/v1/payments/#{payment_id}",
headers: ,
query: { detail: :no }
)
end
|
#create_payment(payload) ⇒ Object
8
9
10
11
12
13
14
|
# File 'lib/wells_fargo/endpoints/wires.rb', line 8
def create_payment(payload)
client.execute(
:post, 'wires/v1/payments',
headers: .merge('Content-Type' => 'application/json'),
body: payload
)
end
|