paidy 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +15 -15
- data/lib/paidy/charge.rb +6 -1
- data/lib/paidy/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5764ed1d662ae3072a47862efc0e6c8916f0cd22bec360f87b16ed7ffdb1ad99
|
4
|
+
data.tar.gz: 88ca24ecc8524edd16c7985dea8d5e3270c0cbc0c1510cf506e4d8fd65ea3c93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c3636a8c91a71f95685ce69ed6fb5c381b60efae6cc79aa12be3d309a191d2ffe9ce875c7d6d476ffdef6689ef1b8b58c40f4c988739586a8c70d505f92e65f
|
7
|
+
data.tar.gz: 7c9241cb5e481ba0b67c0effdb372b109bc74b1123875b07ce6d81038e32b47a88fda767308ce2e732800e99ae6c568419e19974020bce5042b5a247ee39f563
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
3.2.1
|
data/Gemfile.lock
CHANGED
@@ -1,26 +1,26 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
paidy (0.0.
|
4
|
+
paidy (0.0.6)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
diff-lcs (1.
|
10
|
-
rake (13.0.
|
11
|
-
rspec (3.
|
12
|
-
rspec-core (~> 3.
|
13
|
-
rspec-expectations (~> 3.
|
14
|
-
rspec-mocks (~> 3.
|
15
|
-
rspec-core (3.
|
16
|
-
rspec-support (~> 3.
|
17
|
-
rspec-expectations (3.
|
9
|
+
diff-lcs (1.5.0)
|
10
|
+
rake (13.0.6)
|
11
|
+
rspec (3.12.0)
|
12
|
+
rspec-core (~> 3.12.0)
|
13
|
+
rspec-expectations (~> 3.12.0)
|
14
|
+
rspec-mocks (~> 3.12.0)
|
15
|
+
rspec-core (3.12.2)
|
16
|
+
rspec-support (~> 3.12.0)
|
17
|
+
rspec-expectations (3.12.3)
|
18
18
|
diff-lcs (>= 1.2.0, < 2.0)
|
19
|
-
rspec-support (~> 3.
|
20
|
-
rspec-mocks (3.
|
19
|
+
rspec-support (~> 3.12.0)
|
20
|
+
rspec-mocks (3.12.6)
|
21
21
|
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
-
rspec-support (~> 3.
|
23
|
-
rspec-support (3.
|
22
|
+
rspec-support (~> 3.12.0)
|
23
|
+
rspec-support (3.12.1)
|
24
24
|
|
25
25
|
PLATFORMS
|
26
26
|
ruby
|
@@ -32,4 +32,4 @@ DEPENDENCIES
|
|
32
32
|
rspec (~> 3.0)
|
33
33
|
|
34
34
|
BUNDLED WITH
|
35
|
-
2.
|
35
|
+
2.4.19
|
data/lib/paidy/charge.rb
CHANGED
@@ -18,9 +18,11 @@ module Paidy
|
|
18
18
|
def initialize(id)
|
19
19
|
@id = id
|
20
20
|
@capture_id = nil
|
21
|
+
@amount = nil
|
22
|
+
@status = nil
|
21
23
|
end
|
22
24
|
|
23
|
-
attr_reader :id, :capture_id
|
25
|
+
attr_reader :id, :capture_id, :amount, :status
|
24
26
|
|
25
27
|
def capture
|
26
28
|
res = Paidy.request(:post, "#{base_path}/captures", {}, {})
|
@@ -56,6 +58,9 @@ module Paidy
|
|
56
58
|
def refresh
|
57
59
|
res = Paidy.request(:get, "payments/#{id}")
|
58
60
|
|
61
|
+
@amount = res['amount']
|
62
|
+
@status = res['status']
|
63
|
+
|
59
64
|
if res['status'] == 'closed' && res['captures'].present?
|
60
65
|
@capture_id = res['captures'][0]['id']
|
61
66
|
end
|
data/lib/paidy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paidy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rn0rno
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -85,7 +85,7 @@ licenses:
|
|
85
85
|
metadata:
|
86
86
|
homepage_uri: https://github.com/rn0rno
|
87
87
|
source_code_uri: https://github.com/rn0rno/paidy-ruby
|
88
|
-
post_install_message:
|
88
|
+
post_install_message:
|
89
89
|
rdoc_options: []
|
90
90
|
require_paths:
|
91
91
|
- lib
|
@@ -100,8 +100,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
100
|
- !ruby/object:Gem::Version
|
101
101
|
version: '0'
|
102
102
|
requirements: []
|
103
|
-
rubygems_version: 3.
|
104
|
-
signing_key:
|
103
|
+
rubygems_version: 3.4.6
|
104
|
+
signing_key:
|
105
105
|
specification_version: 4
|
106
106
|
summary: Ruby bindings for the Paidy API
|
107
107
|
test_files: []
|