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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16d804e90a8b503b281fdcacb0a84cecc056d95dc613dc8772ebfe5a2a6a5c8b
4
- data.tar.gz: 0ca796a44f4ca8b043134906401b0aaa1b75288ffa2da6f749789bcc1ab659e3
3
+ metadata.gz: 34ec3ae9f2f08d115b9b3099b17c98121f9ced15ab0f3e308e01dd6fa590d329
4
+ data.tar.gz: '01848a37496cce680752e33bc356d24a94524b399bf19c168506c5d97db53b92'
5
5
  SHA512:
6
- metadata.gz: 6bd9aae782a99c9c7467ad0cbcdc87bec9655acfc1a09642eb3d31ceeada44e8a42ead73357be04f1b14384cb34948bb481fc3b5d1707406a1ec4bc444a321e9
7
- data.tar.gz: e9445615b4151954a00768522e8acb17f927983b6ce8467ad74d349e28cc5ee354ced1bb3ad2d6fa15bc9818cc9cf5fc6e40c84058e47341a928c17ee70a082b
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/transaction/charges.rb'
6
+ autoload :Charges, 'juno/charges.rb'
7
7
  autoload :Webhooks, 'juno/webhooks.rb'
8
8
  autoload :Resource, 'juno/resource.rb'
9
9
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- #
2
+
3
3
  module Juno
4
4
  class Configuration
5
5
  POSSIBLES_ENVIRONMENTS = %i[sandbox production].freeze
data/lib/juno/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Juno
4
- VERSION = '0.2.1'
4
+ VERSION = '0.3.0'
5
5
  end
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.2.1
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