coins_paid_api 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/coins_paid_api.gemspec +1 -1
- data/lib/coins_paid/api/callback_data.rb +2 -0
- data/spec/callback_spec.rb +6 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14dc12db1d0e7f9f90746feb4e0ec39f491bdf2533984282e197cc87babad6dd
|
4
|
+
data.tar.gz: 34baccc03be0e0fd327f7240f71a58fa181805ae835a105e158db3863722610b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb016be8a69caefbb956d4d7939164f78e4d6fed5b6f3d3b1dba050284a57e6c882725e60a7f2439a80483aad724e3eb9b6647ba76286ffff696bfa1edd70e2d
|
7
|
+
data.tar.gz: 345be14c726a21cd9f4f21ac98dc11aa46ff1a95b92cf690a445f0d2dbad90252106bf1d4fb7aec0f1f41fc59d42f497f83b04bdcfaeec7b303f498a8cacab50
|
data/coins_paid_api.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'coins_paid_api'
|
3
3
|
s.authors = ['Artem Biserov(artembiserov)', 'Oleg Ivanov(morhekil)']
|
4
|
-
s.version = '1.
|
4
|
+
s.version = '1.2.0'
|
5
5
|
s.files = `git ls-files`.split("\n")
|
6
6
|
s.summary = 'Coins Paid Integration'
|
7
7
|
s.license = 'MIT'
|
@@ -23,10 +23,12 @@ module CoinsPaid
|
|
23
23
|
end
|
24
24
|
|
25
25
|
attribute? :currency_sent do
|
26
|
+
attribute :currency, Types::String
|
26
27
|
attribute :amount, Types::String
|
27
28
|
end
|
28
29
|
|
29
30
|
attribute? :currency_received do
|
31
|
+
attribute :currency, Types::String
|
30
32
|
attribute :amount, Types::String
|
31
33
|
attribute? :amount_minus_fee, Types::String
|
32
34
|
end
|
data/spec/callback_spec.rb
CHANGED
@@ -42,11 +42,8 @@ describe CoinsPaid::API, '.callback' do
|
|
42
42
|
{ transaction_type: 'blockchain', type: 'deposit', id: 714576 },
|
43
43
|
{ transaction_type: 'exchange', type: 'exchange', id: 714577 }
|
44
44
|
],
|
45
|
-
currency_sent: { amount: '0.01000000' },
|
46
|
-
currency_received: {
|
47
|
-
amount_minus_fee: '90',
|
48
|
-
amount: '84.17070222'
|
49
|
-
}
|
45
|
+
currency_sent: { currency: 'BTC', amount: '0.01000000' },
|
46
|
+
currency_received: { currency: 'EUR', amount_minus_fee: '90', amount: '84.17070222' }
|
50
47
|
}
|
51
48
|
end
|
52
49
|
|
@@ -91,10 +88,8 @@ describe CoinsPaid::API, '.callback' do
|
|
91
88
|
{ transaction_type: 'exchange', type: 'exchange', id: 1 },
|
92
89
|
{ transaction_type: 'blockchain', type: 'withdrawal', id: 1 }
|
93
90
|
],
|
94
|
-
currency_sent: { amount: '381' },
|
95
|
-
currency_received: {
|
96
|
-
amount: '0.01000000'
|
97
|
-
}
|
91
|
+
currency_sent: { currency: 'EUR', amount: '381' },
|
92
|
+
currency_received: { currency: 'BTC', amount: '0.01000000' }
|
98
93
|
}
|
99
94
|
end
|
100
95
|
|
@@ -132,8 +127,8 @@ describe CoinsPaid::API, '.callback' do
|
|
132
127
|
status: 'confirmed',
|
133
128
|
foreign_id: '',
|
134
129
|
error: '',
|
135
|
-
currency_sent: { amount:
|
136
|
-
currency_received: { amount:
|
130
|
+
currency_sent: { currency: 'ETH', amount: '0.56114000'},
|
131
|
+
currency_received: { currency: 'EUR', amount: '80.21790617'},
|
137
132
|
transactions: [
|
138
133
|
{ transaction_type: 'exchange', type: 'exchange', id: 714576 },
|
139
134
|
]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coins_paid_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Biserov(artembiserov)
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-03-
|
12
|
+
date: 2022-03-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dry-struct
|