Class: Juno::Transaction::Charges
Class Method Summary
collapse
Methods inherited from Resource
delete, get, patch, post, put
Class Method Details
.cancel(id) ⇒ Object
19
20
21
|
# File 'lib/juno/transaction/charges.rb', line 19
def cancel(id)
put("/charges/#{id}/cancelation")
end
|
.create(body) ⇒ Object
7
8
9
|
# File 'lib/juno/transaction/charges.rb', line 7
def create(body)
post('/charges', body)
end
|
.list ⇒ Object
11
12
13
|
# File 'lib/juno/transaction/charges.rb', line 11
def list
get('/charges')
end
|
.show(id) ⇒ Object
15
16
17
|
# File 'lib/juno/transaction/charges.rb', line 15
def show(id)
get("/charges/#{id}")
end
|
.update_split(id) ⇒ Object
23
24
25
|
# File 'lib/juno/transaction/charges.rb', line 23
def update_split(id)
put("/charges/#{id}/split")
end
|