juno-sdk 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/juno.rb +1 -1
- data/lib/juno/charges.rb +27 -0
- data/lib/juno/configuration.rb +1 -1
- data/lib/juno/version.rb +1 -1
- metadata +2 -2
- data/lib/juno/transaction/charges.rb +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34ec3ae9f2f08d115b9b3099b17c98121f9ced15ab0f3e308e01dd6fa590d329
|
4
|
+
data.tar.gz: '01848a37496cce680752e33bc356d24a94524b399bf19c168506c5d97db53b92'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1973471c2eff5ccd8033e237ee6628790ccb24a37274f631f9783cb862e454b64a3f7bd4f24188e1e7304a5cedd7e9be6db206f0b2107198a85e6f4de8243b65
|
7
|
+
data.tar.gz: 6f39d1adf870556bf075ecb22aeee3f63c9d6af95bd5e68f4b25787b2e4991bd5e569d8b6e1beb28131c9ef10303cdc65a8ec1815ce07c6ad49608ff3c57328a
|
data/lib/juno.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
module Juno
|
4
4
|
autoload :Authorization, 'juno/authorization.rb'
|
5
5
|
autoload :Configuration, 'juno/configuration.rb'
|
6
|
-
autoload :Charges, 'juno/
|
6
|
+
autoload :Charges, 'juno/charges.rb'
|
7
7
|
autoload :Webhooks, 'juno/webhooks.rb'
|
8
8
|
autoload :Resource, 'juno/resource.rb'
|
9
9
|
|
data/lib/juno/charges.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Juno
|
4
|
+
class Charges < Juno::Resource
|
5
|
+
class << self
|
6
|
+
def create(body)
|
7
|
+
post('/charges', body)
|
8
|
+
end
|
9
|
+
|
10
|
+
def list
|
11
|
+
get('/charges')
|
12
|
+
end
|
13
|
+
|
14
|
+
def show(id)
|
15
|
+
get("/charges/#{id}")
|
16
|
+
end
|
17
|
+
|
18
|
+
def cancel(id)
|
19
|
+
put("/charges/#{id}/cancelation")
|
20
|
+
end
|
21
|
+
|
22
|
+
def update_split(id)
|
23
|
+
put("/charges/#{id}/split")
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/juno/configuration.rb
CHANGED
data/lib/juno/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: juno-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nullbug
|
@@ -61,9 +61,9 @@ extra_rdoc_files: []
|
|
61
61
|
files:
|
62
62
|
- lib/juno.rb
|
63
63
|
- lib/juno/authorization.rb
|
64
|
+
- lib/juno/charges.rb
|
64
65
|
- lib/juno/configuration.rb
|
65
66
|
- lib/juno/resource.rb
|
66
|
-
- lib/juno/transaction/charges.rb
|
67
67
|
- lib/juno/version.rb
|
68
68
|
- lib/juno/webhooks.rb
|
69
69
|
homepage: ''
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Juno
|
4
|
-
module Transaction
|
5
|
-
class Charges < Juno::Resource
|
6
|
-
class << self
|
7
|
-
def create(body)
|
8
|
-
post('/charges', body)
|
9
|
-
end
|
10
|
-
|
11
|
-
def list
|
12
|
-
get('/charges')
|
13
|
-
end
|
14
|
-
|
15
|
-
def show(id)
|
16
|
-
get("/charges/#{id}")
|
17
|
-
end
|
18
|
-
|
19
|
-
def cancel(id)
|
20
|
-
put("/charges/#{id}/cancelation")
|
21
|
-
end
|
22
|
-
|
23
|
-
def update_split(id)
|
24
|
-
put("/charges/#{id}/split")
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|