yandex-money-client 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +25 -0
- data/.rspec +2 -0
- data/.travis.yml +8 -0
- data/.yardopts +1 -0
- data/CHANGELOG.md +43 -0
- data/Gemfile +11 -0
- data/LICENSE.txt +22 -0
- data/README.md +159 -0
- data/Rakefile +7 -0
- data/lib/yandex_money/api.rb +10 -0
- data/lib/yandex_money/api/version.rb +5 -0
- data/lib/yandex_money/client.rb +56 -0
- data/lib/yandex_money/config.rb +26 -0
- data/lib/yandex_money/exceptions.rb +71 -0
- data/lib/yandex_money/external_payment.rb +81 -0
- data/lib/yandex_money/wallet.rb +215 -0
- data/spec/account_info_spec.rb +64 -0
- data/spec/auth_spec.rb +35 -0
- data/spec/cards_spec.rb +55 -0
- data/spec/config_spec.rb +50 -0
- data/spec/exceptions_spec.rb +55 -0
- data/spec/fixtures/vcr_cassettes/accept_incoming_transfer_with_protection_code.yml +40 -0
- data/spec/fixtures/vcr_cassettes/accept_incoming_transfer_with_protection_code_with_wrong_code.yml +40 -0
- data/spec/fixtures/vcr_cassettes/get_account_info.yml +40 -0
- data/spec/fixtures/vcr_cassettes/get_instance_id_fail.yml +38 -0
- data/spec/fixtures/vcr_cassettes/get_instance_id_success.yml +38 -0
- data/spec/fixtures/vcr_cassettes/get_operation_details.yml +233 -0
- data/spec/fixtures/vcr_cassettes/get_operation_history.yml +186 -0
- data/spec/fixtures/vcr_cassettes/get_operation_history_with_params.yml +46 -0
- data/spec/fixtures/vcr_cassettes/get_token_from_authorization_code.yml +48 -0
- data/spec/fixtures/vcr_cassettes/get_wrong_operation_details.yml +40 -0
- data/spec/fixtures/vcr_cassettes/init_without_client_secret.yml +843 -0
- data/spec/fixtures/vcr_cassettes/initialize_with_token.yml +40 -0
- data/spec/fixtures/vcr_cassettes/insufficient_scope_error.yml +40 -0
- data/spec/fixtures/vcr_cassettes/invalid_request_error.yml +40 -0
- data/spec/fixtures/vcr_cassettes/process_external_payment.yml +114 -0
- data/spec/fixtures/vcr_cassettes/process_payment_to_an_account_with_failure.yml +41 -0
- data/spec/fixtures/vcr_cassettes/reject_payment.yml +40 -0
- data/spec/fixtures/vcr_cassettes/reject_payment_fail.yml +40 -0
- data/spec/fixtures/vcr_cassettes/request_external_payment.yml +79 -0
- data/spec/fixtures/vcr_cassettes/request_payment_to_an_account_with_failure.yml +41 -0
- data/spec/fixtures/vcr_cassettes/success_process_payment_to_an_account.yml +40 -0
- data/spec/fixtures/vcr_cassettes/success_request_payment_to_an_account.yml +41 -0
- data/spec/fixtures/vcr_cassettes/unauthorized_error.yml +41 -0
- data/spec/fixtures/vcr_cassettes/unauthorized_exception.yml +41 -0
- data/spec/logger_spec.rb +1 -0
- data/spec/payments_spec.rb +80 -0
- data/spec/spec_helper.rb +27 -0
- data/spec/support/constants.example.rb +13 -0
- data/yandex-money-client.gemspec +31 -0
- metadata +269 -0
data/spec/config_spec.rb
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe "YandexMoney config" do
|
4
|
+
after :all do
|
5
|
+
YandexMoney.reset_config
|
6
|
+
end
|
7
|
+
|
8
|
+
let(:default_money_url) { "https://money.yandex.ru" }
|
9
|
+
let(:default_sp_money_url) { "https://sp-money.yandex.ru" }
|
10
|
+
|
11
|
+
it "should have methods: config, configure, reset_config" do
|
12
|
+
yandex = class_double("YandexMoney")
|
13
|
+
expect(yandex).to receive_messages([:config, :configure, :reset_config])
|
14
|
+
yandex.config & yandex.configure & yandex.reset_config
|
15
|
+
end
|
16
|
+
|
17
|
+
it "should yield block in configure" do
|
18
|
+
expect {|b| YandexMoney.configure(&b)}.to yield_control
|
19
|
+
end
|
20
|
+
|
21
|
+
it "should return a YandexMoney::Config instance" do
|
22
|
+
expect(YandexMoney.config).to be_a_kind_of(YandexMoney::Config)
|
23
|
+
end
|
24
|
+
|
25
|
+
it "should reset_config" do
|
26
|
+
YandexMoney.configure { |c| c.money_url = "http://example1.com" }
|
27
|
+
YandexMoney.reset_config
|
28
|
+
expect(YandexMoney.config.money_url).to eq(default_money_url)
|
29
|
+
end
|
30
|
+
|
31
|
+
it "should have correct defaults" do
|
32
|
+
expect(YandexMoney.config.money_url).to eq(default_money_url)
|
33
|
+
expect(YandexMoney.config.sp_money_url).to eq(default_sp_money_url)
|
34
|
+
end
|
35
|
+
|
36
|
+
it "can write config url directly" do
|
37
|
+
YandexMoney.config.money_url = "http://example3.com"
|
38
|
+
expect(YandexMoney.config.money_url).to eq "http://example3.com"
|
39
|
+
end
|
40
|
+
|
41
|
+
it "should correct configure hosts addresses" do
|
42
|
+
YandexMoney.configure do |config|
|
43
|
+
config.money_url = "http://example1.com"
|
44
|
+
config.sp_money_url = "http://example2.com"
|
45
|
+
end
|
46
|
+
expect(YandexMoney.config.money_url).to eq "http://example1.com"
|
47
|
+
expect(YandexMoney.config.sp_money_url).to eq "http://example2.com"
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe "Exceptions for Yandex.Money" do
|
4
|
+
describe "exceptions for wallet" do
|
5
|
+
|
6
|
+
it "should raise invalid request error" do
|
7
|
+
VCR.use_cassette "invalid request error" do
|
8
|
+
@api = YandexMoney::Wallet.new("WRONG TOKEN")
|
9
|
+
expect {
|
10
|
+
@api.request_payment(nil)
|
11
|
+
}.to raise_error YandexMoney::InvalidRequestError
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
it "should raise unauthorized error" do
|
16
|
+
VCR.use_cassette "unauthorized error" do
|
17
|
+
@api = YandexMoney::Wallet.new("41001565326286.AEF04DD8614B6C66AF082793D71FF624C92989E7F98D1EE377C3707BC54DE72E0DDC8EAB79470803254178F40F4712F6EBD8C5E1FDA01D041A5C4A110C8E1940DE0928FF45F4E49500EA79D8F21D2D5C7A79CCCA142AE216C69D7B6DC6378FE9CB87769E9EB37DAC22A67BD8A33CADB6F18C4C2C22D28434914970575109FDB3")
|
18
|
+
expect {
|
19
|
+
@api.request_payment(nil)
|
20
|
+
}.to raise_error YandexMoney::UnauthorizedError
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
it "should raise insufficient scope error" do
|
25
|
+
VCR.use_cassette "insufficient scope error" do
|
26
|
+
@api = YandexMoney::Wallet.new(ACCESS_TOKEN)
|
27
|
+
expect {
|
28
|
+
@api.request_payment(
|
29
|
+
pattern_id: "p2p",
|
30
|
+
to: "example@example.com",
|
31
|
+
amount: 5
|
32
|
+
)
|
33
|
+
}.to raise_error YandexMoney::InsufficientScopeError
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
|
39
|
+
describe "exceptions for external payment" do
|
40
|
+
# it "should raise invalid request error" do
|
41
|
+
# VCR.use_cassette "invalid request error external payment" do
|
42
|
+
# end
|
43
|
+
# end
|
44
|
+
|
45
|
+
# it "should raise unauthorized error" do
|
46
|
+
# VCR.use_cassette "unauthorized error external payment" do
|
47
|
+
# end
|
48
|
+
# end
|
49
|
+
|
50
|
+
# it "should raise insufficient scope error" do
|
51
|
+
# VCR.use_cassette "insufficient scope error external payment" do
|
52
|
+
# end
|
53
|
+
# end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://money.yandex.ru/api/incoming-transfer-accept
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: operation_id=463937708331015004&protection_code=0208
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <ACCESS_TOKEN>
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Server:
|
20
|
+
- nginx
|
21
|
+
Date:
|
22
|
+
- Mon, 10 Nov 2014 19:24:28 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json;charset=UTF-8
|
25
|
+
Content-Length:
|
26
|
+
- '20'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=120
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"status":"success"}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Mon, 10 Nov 2014 19:24:30 GMT
|
40
|
+
recorded_with: VCR 2.9.3
|
data/spec/fixtures/vcr_cassettes/accept_incoming_transfer_with_protection_code_with_wrong_code.yml
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://money.yandex.ru/api/incoming-transfer-accept
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: operation_id=463937921796020004&protection_code=WRONG
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <ACCESS_TOKEN>
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Server:
|
20
|
+
- nginx
|
21
|
+
Date:
|
22
|
+
- Fri, 21 Nov 2014 07:16:29 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json;charset=UTF-8
|
25
|
+
Content-Length:
|
26
|
+
- '20'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=120
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"status":"success"}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Fri, 21 Nov 2014 07:16:31 GMT
|
40
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://money.yandex.ru/api/account-info
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: recurse_over_arrays=true
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <ACCESS_TOKEN>
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Server:
|
20
|
+
- nginx
|
21
|
+
Date:
|
22
|
+
- Mon, 10 Nov 2014 19:24:25 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json;charset=UTF-8
|
25
|
+
Content-Length:
|
26
|
+
- '281'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=120
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"account":"<WALLET_NUMBER>","balance":6.88,"currency":"643","avatar":{"ts":"2012-05-02T17:22:59.000+04:00","url":"https://avatars.yandex.net/get-yamoney-profile/yamoney-profile-56809635-2/normal?1335964979000"},"account_type":"personal","identified":false,"account_status":"named"}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Mon, 10 Nov 2014 19:24:27 GMT
|
40
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://money.yandex.ru/api/instance-id
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: client_id=
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/x-www-form-urlencoded
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- nginx
|
19
|
+
Date:
|
20
|
+
- Mon, 10 Nov 2014 19:24:27 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json;charset=UTF-8
|
23
|
+
Content-Length:
|
24
|
+
- '54'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Keep-Alive:
|
28
|
+
- timeout=120
|
29
|
+
Vary:
|
30
|
+
- Accept-Encoding
|
31
|
+
Cache-Control:
|
32
|
+
- no-cache
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"status":"refused","error":"illegal_param_client_id"}'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Mon, 10 Nov 2014 19:24:29 GMT
|
38
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://money.yandex.ru/api/instance-id
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: client_id=<CLIENT_ID>
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/x-www-form-urlencoded
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- nginx
|
19
|
+
Date:
|
20
|
+
- Mon, 10 Nov 2014 19:24:27 GMT
|
21
|
+
Content-Type:
|
22
|
+
- application/json;charset=UTF-8
|
23
|
+
Content-Length:
|
24
|
+
- '101'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Keep-Alive:
|
28
|
+
- timeout=120
|
29
|
+
Vary:
|
30
|
+
- Accept-Encoding
|
31
|
+
Cache-Control:
|
32
|
+
- no-cache
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"status":"success","instance_id":"PCDJvk7tJBR0VxIBwtq+Eh+mAMrs+ftItQZ/i03aIKaXq8BWYU/FBviAO0z3KUOG"}'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Mon, 10 Nov 2014 19:24:29 GMT
|
38
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,233 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://money.yandex.ru/api/operation-history
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <ACCESS_TOKEN>
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Server:
|
20
|
+
- nginx
|
21
|
+
Date:
|
22
|
+
- Mon, 10 Nov 2014 19:24:26 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json;charset=UTF-8
|
25
|
+
Content-Length:
|
26
|
+
- '6545'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Keep-Alive:
|
30
|
+
- timeout=120
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
body:
|
36
|
+
encoding: ASCII-8BIT
|
37
|
+
string: !binary |-
|
38
|
+
eyJuZXh0X3JlY29yZCI6IjMwIiwib3BlcmF0aW9ucyI6W3sicGF0dGVybl9p
|
39
|
+
ZCI6IjMzNyIsIm9wZXJhdGlvbl9pZCI6IjQ2NTkzOTQyMzYzNzExMDAxOCIs
|
40
|
+
InRpdGxlIjoi0JzQtdCz0LDQpNC+0L0gKNCg0L7RgdGB0LjRjyk6ICs3OTIx
|
41
|
+
ICoqKiAwMDUyIiwiYW1vdW50IjoyLjAwLCJkaXJlY3Rpb24iOiJvdXQiL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0bGUiOiLQn9C10YDQtdCy
|
180
|
+
0L7QtCDQvdCwINGB0YfQtdGCIDQxMDAxMTcwOTcwMzY5NyIsImFtb3VudCI6
|
181
|
+
NDkuMjUsImRpcmVjdGlvbiI6Im91dCIsImRhdGV0aW1lIjoiMjAxNC0wOC0x
|
182
|
+
MlQxMjo0NzowOVoiLCJzdGF0dXMiOiJzdWNjZXNzIiwidHlwZSI6Im91dGdv
|
183
|
+
aW5nLXRyYW5zZmVyIn1dfQ==
|
184
|
+
http_version:
|
185
|
+
recorded_at: Mon, 10 Nov 2014 19:24:28 GMT
|
186
|
+
- request:
|
187
|
+
method: post
|
188
|
+
uri: https://money.yandex.ru/api/operation-details
|
189
|
+
body:
|
190
|
+
encoding: UTF-8
|
191
|
+
string: operation_id=465939423637110018
|
192
|
+
headers:
|
193
|
+
Authorization:
|
194
|
+
- Bearer <ACCESS_TOKEN>
|
195
|
+
Content-Type:
|
196
|
+
- application/x-www-form-urlencoded
|
197
|
+
response:
|
198
|
+
status:
|
199
|
+
code: 200
|
200
|
+
message: OK
|
201
|
+
headers:
|
202
|
+
Server:
|
203
|
+
- nginx
|
204
|
+
Date:
|
205
|
+
- Mon, 10 Nov 2014 19:24:26 GMT
|
206
|
+
Content-Type:
|
207
|
+
- application/json;charset=UTF-8
|
208
|
+
Content-Length:
|
209
|
+
- '443'
|
210
|
+
Connection:
|
211
|
+
- keep-alive
|
212
|
+
Keep-Alive:
|
213
|
+
- timeout=120
|
214
|
+
Vary:
|
215
|
+
- Accept-Encoding
|
216
|
+
Cache-Control:
|
217
|
+
- no-cache
|
218
|
+
body:
|
219
|
+
encoding: ASCII-8BIT
|
220
|
+
string: !binary |-
|
221
|
+
eyJwYXR0ZXJuX2lkIjoiMzM3Iiwib3BlcmF0aW9uX2lkIjoiNDY1OTM5NDIz
|
222
|
+
NjM3MTEwMDE4IiwidGl0bGUiOiLQnNC10LPQsNCk0L7QvSAo0KDQvtGB0YHQ
|
223
|
+
uNGPKTogKzc5MjEgKioqIDAwNTIiLCJhbW91bnQiOjIuMDAsImRpcmVjdGlv
|
224
|
+
biI6Im91dCIsImRhdGV0aW1lIjoiMjAxNC0xMC0wNlQxOTozNzoyM1oiLCJz
|
225
|
+
dGF0dXMiOiJzdWNjZXNzIiwidHlwZSI6InBheW1lbnQtc2hvcCIsImRldGFp
|
226
|
+
bHMiOiLQo9GB0LvRg9Cz0Lgg0YHQvtGC0L7QstC+0Lkg0YHQstGP0LfQuCDQ
|
227
|
+
nNC10LPQsNCk0L7QvVxuwqBcbtCg0LXQutCy0LjQt9C40YLRiyDQv9C70LDR
|
228
|
+
gtC10LbQsDpcbsKgXG5D0YPQvNC80LAg0L/Qu9Cw0YLQtdC20LA6IDIuMDAg
|
229
|
+
UlVCXG7QotC10LvQtdGE0L7QvTogOTIxMzAyMDA1Mlxu0J3QvtC80LXRgCDR
|
230
|
+
gtGA0LDQvdC30LDQutGG0LjQuDogMjAwMDE4MTYwNDU5MlxuIn0=
|
231
|
+
http_version:
|
232
|
+
recorded_at: Mon, 10 Nov 2014 19:24:28 GMT
|
233
|
+
recorded_with: VCR 2.9.3
|