Class: Tazapay::Escrow

Inherits:
Client
  • Object
show all
Defined in:
lib/tazapay/escrow.rb

Overview

Escrow API

Instance Method Summary collapse

Methods inherited from Client

#handle_error, #interpret_response, #send_request

Instance Method Details

#create(data) ⇒ Object



9
10
11
12
# File 'lib/tazapay/escrow.rb', line 9

def create(data)
  path = "/v1/escrow"
  send_request(method: :post, path: path, body: data)
end

#create_payment(data) ⇒ Object



19
20
21
22
# File 'lib/tazapay/escrow.rb', line 19

def create_payment(data)
  path = "/v1/session/payment"
  send_request(method: :post, path: path, body: data)
end

#status(tx_no) ⇒ Object



24
25
26
27
# File 'lib/tazapay/escrow.rb', line 24

def status(tx_no)
  path = "/v1/escrow/#{tx_no}"
  send_request(method: :get, path: path)
end

#summary(tx_no) ⇒ Object



14
15
16
17
# File 'lib/tazapay/escrow.rb', line 14

def summary(tx_no)
  path = "/v1/escrow/#{tx_no}/summary"
  send_request(method: :get, path: path)
end