moneta-api 1.12.1 → 1.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/moneta/api.rb +1 -0
- data/lib/moneta/api/version.rb +1 -1
- data/lib/moneta/constants/withdrawal.rb +20 -0
- data/spec/lib/moneta/constants/withdrawal_spec.rb +67 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9779b2a97597c25998505dca8ccd62465238c80
|
4
|
+
data.tar.gz: 54e0f362b3db29eedafbf9556cc89c19cb01c9e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92c1318ae589e6c493733fb394e936303591063e887d0d9705f72b9ebebce37cd06224e9993792a18cd7451f7efa586742fba241b74d65c486c83096c967ca1b
|
7
|
+
data.tar.gz: 02ad270488056e22c5f30a056c002a01839489f00bc325212136be62ad3214c8aec4f0555679fa894b10e701ee2b8578db0292ad043ba5e9b3c9ece744d80d5c
|
data/lib/moneta/api.rb
CHANGED
data/lib/moneta/api/version.rb
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
module Moneta
|
2
|
+
module Constants
|
3
|
+
module Withdrawal
|
4
|
+
BANK = 5
|
5
|
+
YANDEX_MONEY = 13
|
6
|
+
VKONTAKTE = 139
|
7
|
+
CYBER_PLAT = 1144
|
8
|
+
CARD_RUSSIAN_STANDARD = 275
|
9
|
+
CARD_ALFA_BANK = 279
|
10
|
+
MAIL_MONEY = 268
|
11
|
+
QIWI = 255
|
12
|
+
|
13
|
+
module Webmoney
|
14
|
+
WMR = 2
|
15
|
+
WMZ = 3
|
16
|
+
WME = 4
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
describe 'Moneta withdrawal types' do
|
2
|
+
describe 'Bank Account' do
|
3
|
+
subject { Moneta::Constants::Withdrawal::BANK }
|
4
|
+
|
5
|
+
it { is_expected.to eq 5 }
|
6
|
+
end
|
7
|
+
|
8
|
+
describe 'Yandex Money' do
|
9
|
+
subject { Moneta::Constants::Withdrawal::YANDEX_MONEY }
|
10
|
+
|
11
|
+
it { is_expected.to eq 13 }
|
12
|
+
end
|
13
|
+
|
14
|
+
describe 'VKontakte' do
|
15
|
+
subject { Moneta::Constants::Withdrawal::VKONTAKTE }
|
16
|
+
|
17
|
+
it { is_expected.to eq 139 }
|
18
|
+
end
|
19
|
+
|
20
|
+
describe 'CyberPlat' do
|
21
|
+
subject { Moneta::Constants::Withdrawal::CYBER_PLAT }
|
22
|
+
|
23
|
+
it { is_expected.to eq 1144 }
|
24
|
+
end
|
25
|
+
|
26
|
+
describe 'Credit Card via Russian Standard Bank' do
|
27
|
+
subject { Moneta::Constants::Withdrawal::CARD_RUSSIAN_STANDARD }
|
28
|
+
|
29
|
+
it { is_expected.to eq 275 }
|
30
|
+
end
|
31
|
+
|
32
|
+
describe 'Credit Card via Alpha Bank' do
|
33
|
+
subject { Moneta::Constants::Withdrawal::CARD_ALFA_BANK }
|
34
|
+
|
35
|
+
it { is_expected.to eq 279 }
|
36
|
+
end
|
37
|
+
|
38
|
+
describe 'Money@Mail.ru' do
|
39
|
+
subject { Moneta::Constants::Withdrawal::MAIL_MONEY }
|
40
|
+
|
41
|
+
it { is_expected.to eq 268 }
|
42
|
+
end
|
43
|
+
|
44
|
+
describe 'QIWI' do
|
45
|
+
subject { Moneta::Constants::Withdrawal::QIWI }
|
46
|
+
|
47
|
+
it { is_expected.to eq 255 }
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'Webmoney WMR' do
|
51
|
+
subject { Moneta::Constants::Withdrawal::Webmoney::WMR }
|
52
|
+
|
53
|
+
it { is_expected.to eq 2 }
|
54
|
+
end
|
55
|
+
|
56
|
+
describe 'Webmoney WMZ' do
|
57
|
+
subject { Moneta::Constants::Withdrawal::Webmoney::WMZ }
|
58
|
+
|
59
|
+
it { is_expected.to eq 3 }
|
60
|
+
end
|
61
|
+
|
62
|
+
describe 'Webmoney WME' do
|
63
|
+
subject { Moneta::Constants::Withdrawal::Webmoney::WME }
|
64
|
+
|
65
|
+
it { is_expected.to eq 4 }
|
66
|
+
end
|
67
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moneta-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.
|
4
|
+
version: 1.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ssnikolay
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-09-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|
@@ -277,6 +277,7 @@ files:
|
|
277
277
|
- lib/moneta/api/types/verify_transaction_response_type.rb
|
278
278
|
- lib/moneta/api/types/verify_transfer_response_type.rb
|
279
279
|
- lib/moneta/api/version.rb
|
280
|
+
- lib/moneta/constants/withdrawal.rb
|
280
281
|
- lib/moneta/core_ext/string.rb
|
281
282
|
- moneta-api.gemspec
|
282
283
|
- spec/lib/moneta/api/connection_exception_spec.rb
|
@@ -306,6 +307,7 @@ files:
|
|
306
307
|
- spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
|
307
308
|
- spec/lib/moneta/api/types/operation_info_spec.rb
|
308
309
|
- spec/lib/moneta/api/types/profile/client_spec.rb
|
310
|
+
- spec/lib/moneta/constants/withdrawal_spec.rb
|
309
311
|
- spec/spec_helper.rb
|
310
312
|
- spec/support/context.rb
|
311
313
|
- spec/support/matchers.rb
|
@@ -401,6 +403,7 @@ test_files:
|
|
401
403
|
- spec/lib/moneta/api/types/confirm_transaction_batch_request_type_spec.rb
|
402
404
|
- spec/lib/moneta/api/types/operation_info_spec.rb
|
403
405
|
- spec/lib/moneta/api/types/profile/client_spec.rb
|
406
|
+
- spec/lib/moneta/constants/withdrawal_spec.rb
|
404
407
|
- spec/spec_helper.rb
|
405
408
|
- spec/support/context.rb
|
406
409
|
- spec/support/matchers.rb
|