coins_paid_api 2.0.0 → 2.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 +8 -4
- 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: e5d489dc45445bd1c540d17b87cf573edc01b71ff5d00646ddd626b299799706
|
4
|
+
data.tar.gz: 974d2626ced65fa33ffa1a8515b691572d5b358975f1c2bbd14eca88a466deeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a98748bdae00c48d8793875f257ba369290f021336e6d73a9654dea05e61aa0e09c920c59ee88b3ee93378a9696956a2eb22cb30f3c0e8176b6f2362124a7bf
|
7
|
+
data.tar.gz: f2a4bdfd176b5d27cff6733cba59e2b711ea2fe5186c15a7639b3a84db627724bbc5faa0f9c26dd0895eadfc47660b0fa538a086abb4495e82898abe84a09bca
|
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 = '2.
|
4
|
+
s.version = '2.2.0'
|
5
5
|
s.files = `git ls-files`.split("\n")
|
6
6
|
s.summary = 'Coins Paid Integration'
|
7
7
|
s.license = 'MIT'
|
@@ -14,12 +14,14 @@ module CoinsPaid
|
|
14
14
|
|
15
15
|
attribute? :crypto_address do
|
16
16
|
attribute :currency, Types::String
|
17
|
+
attribute :address, Types::String
|
17
18
|
end
|
18
19
|
|
19
20
|
attribute? :transactions, Types::Array do
|
20
21
|
attribute :transaction_type, Types::String
|
21
22
|
attribute :type, Types::String
|
22
23
|
attribute :id, Types::Integer
|
24
|
+
attribute? :txid, Types::String
|
23
25
|
end
|
24
26
|
|
25
27
|
attribute? :currency_sent do
|
data/spec/callback_spec.rb
CHANGED
@@ -36,10 +36,11 @@ describe CoinsPaid::API, '.callback' do
|
|
36
36
|
status: 'confirmed',
|
37
37
|
error: '',
|
38
38
|
crypto_address: {
|
39
|
+
address: '123abc',
|
39
40
|
currency: 'BTC'
|
40
41
|
},
|
41
42
|
transactions: [
|
42
|
-
{ transaction_type: 'blockchain', type: 'deposit', id: 714576 },
|
43
|
+
{ transaction_type: 'blockchain', type: 'deposit', id: 714576, txid: '3a491da90a1ce5a318d0aeff6867ab98a03219abae29ed68d702291703c3538b' },
|
43
44
|
{ transaction_type: 'exchange', type: 'exchange', id: 714577 }
|
44
45
|
],
|
45
46
|
currency_sent: { currency: 'BTC', amount: '0.01000000' },
|
@@ -60,10 +61,11 @@ describe CoinsPaid::API, '.callback' do
|
|
60
61
|
status: 'cancelled',
|
61
62
|
error: 'Invalid params: expected a hex-encoded hash with 0x prefix.',
|
62
63
|
crypto_address: {
|
64
|
+
address: '123abc',
|
63
65
|
currency: 'BTC'
|
64
66
|
},
|
65
67
|
transactions: [
|
66
|
-
{ transaction_type: 'blockchain', type: 'deposit', id: 714576 },
|
68
|
+
{ transaction_type: 'blockchain', type: 'deposit', id: 714576, txid: '3a491da90a1ce5a318d0aeff6867ab98a03219abae29ed68d702291703c3538b' },
|
67
69
|
{ transaction_type: 'exchange', type: 'exchange', id: 714577 }
|
68
70
|
]
|
69
71
|
}
|
@@ -82,11 +84,12 @@ describe CoinsPaid::API, '.callback' do
|
|
82
84
|
foreign_id: '20',
|
83
85
|
error: '',
|
84
86
|
crypto_address: {
|
87
|
+
address: '1k2btnz8cqnfbphaq729mdj8w6g3w2nbbl',
|
85
88
|
currency: 'EUR'
|
86
89
|
},
|
87
90
|
transactions: [
|
88
91
|
{ transaction_type: 'exchange', type: 'exchange', id: 1 },
|
89
|
-
{ transaction_type: 'blockchain', type: 'withdrawal', id: 1 }
|
92
|
+
{ transaction_type: 'blockchain', type: 'withdrawal', id: 1, txid: 'aa3345b96389e126f1ce88a670d1b1e38f2c3f73fb3ecfff8d9da1b1ce6964a6' }
|
90
93
|
],
|
91
94
|
currency_sent: { currency: 'EUR', amount: '381' },
|
92
95
|
currency_received: { currency: 'BTC', amount: '0.01000000' }
|
@@ -106,11 +109,12 @@ describe CoinsPaid::API, '.callback' do
|
|
106
109
|
foreign_id: '20',
|
107
110
|
error: 'Invalid params: expected a hex-encoded hash with 0x prefix.',
|
108
111
|
crypto_address: {
|
112
|
+
address: '1k2btnz8cqnfbphaq729mdj8w6g3w2nbbl',
|
109
113
|
currency: 'EUR'
|
110
114
|
},
|
111
115
|
transactions: [
|
112
116
|
{ transaction_type: 'exchange', type: 'exchange', id: 714576 },
|
113
|
-
{ transaction_type: 'blockchain', type: 'withdrawal', id: 714577 }
|
117
|
+
{ transaction_type: 'blockchain', type: 'withdrawal', id: 714577, txid: '3a491da90a1ce5a318d0aeff6867ab98a03219abae29ed68d702291703c3538b' }
|
114
118
|
]
|
115
119
|
}
|
116
120
|
end
|
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: 2.
|
4
|
+
version: 2.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: 2024-
|
12
|
+
date: 2024-08-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dry-struct
|