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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ccc1bf1ca520dd1c060f67d7cafbbb031d361afa643bed0018f600ea34e4af69
4
- data.tar.gz: fbf3c4991c2906cf6071c27e1896c0d97b2439392ef8a2672e5da114301af951
3
+ metadata.gz: 14dc12db1d0e7f9f90746feb4e0ec39f491bdf2533984282e197cc87babad6dd
4
+ data.tar.gz: 34baccc03be0e0fd327f7240f71a58fa181805ae835a105e158db3863722610b
5
5
  SHA512:
6
- metadata.gz: 12a086063c8d671e6c9efbfc186e801bb3e099116adc02ee98eed280a82b675c836acf817dccf660ef772ee66d4420ebc9e9717bf1c693b971e4b1d2509e29af
7
- data.tar.gz: ce88ae1135b1bd64bb809311072e899b357c31634de096a11e14ca2d39427c71b4769ba47e620a5c693f9e204ed9d4bcf210b2c98d28d32164cd7c227d2f5020
6
+ metadata.gz: cb016be8a69caefbb956d4d7939164f78e4d6fed5b6f3d3b1dba050284a57e6c882725e60a7f2439a80483aad724e3eb9b6647ba76286ffff696bfa1edd70e2d
7
+ data.tar.gz: 345be14c726a21cd9f4f21ac98dc11aa46ff1a95b92cf690a445f0d2dbad90252106bf1d4fb7aec0f1f41fc59d42f497f83b04bdcfaeec7b303f498a8cacab50
@@ -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.1.0'
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
@@ -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: "0.56114000"},
136
- currency_received: { amount: "80.21790617"},
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.1.0
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-30 00:00:00.000000000 Z
12
+ date: 2022-03-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dry-struct