Class: Regaliator::V30::Bill

Inherits:
Endpoint show all
Defined in:
lib/regaliator/v30/bill.rb

Instance Attribute Summary

Attributes inherited from Endpoint

#config

Instance Method Summary collapse

Methods inherited from Endpoint

#initialize

Constructor Details

This class inherits a constructor from Regaliator::Endpoint

Instance Method Details

#create(params = {}) ⇒ Object



6
7
8
# File 'lib/regaliator/v30/bill.rb', line 6

def create(params = {})
  request('/bills', params).post
end

#list(params = {}) ⇒ Object



30
31
32
# File 'lib/regaliator/v30/bill.rb', line 30

def list(params = {})
  request('/bills', params).get
end

#pay(id, params = {}) ⇒ Object



22
23
24
# File 'lib/regaliator/v30/bill.rb', line 22

def pay(id, params = {})
  request("/bills/#{id}/pay", params).post
end

#refresh(id) ⇒ Object



18
19
20
# File 'lib/regaliator/v30/bill.rb', line 18

def refresh(id)
  request("/bills/#{id}/refresh").post
end

#show(id) ⇒ Object



10
11
12
# File 'lib/regaliator/v30/bill.rb', line 10

def show(id)
  request("/bills/#{id}").get
end

#update(id, params = {}) ⇒ Object



14
15
16
# File 'lib/regaliator/v30/bill.rb', line 14

def update(id, params = {})
  request("/bills/#{id}", params).patch
end

#xdata(id) ⇒ Object



26
27
28
# File 'lib/regaliator/v30/bill.rb', line 26

def xdata(id)
  request("/bills/#{id}/xdata").get
end