yandex-money-client 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +25 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +8 -0
  5. data/.yardopts +1 -0
  6. data/CHANGELOG.md +43 -0
  7. data/Gemfile +11 -0
  8. data/LICENSE.txt +22 -0
  9. data/README.md +159 -0
  10. data/Rakefile +7 -0
  11. data/lib/yandex_money/api.rb +10 -0
  12. data/lib/yandex_money/api/version.rb +5 -0
  13. data/lib/yandex_money/client.rb +56 -0
  14. data/lib/yandex_money/config.rb +26 -0
  15. data/lib/yandex_money/exceptions.rb +71 -0
  16. data/lib/yandex_money/external_payment.rb +81 -0
  17. data/lib/yandex_money/wallet.rb +215 -0
  18. data/spec/account_info_spec.rb +64 -0
  19. data/spec/auth_spec.rb +35 -0
  20. data/spec/cards_spec.rb +55 -0
  21. data/spec/config_spec.rb +50 -0
  22. data/spec/exceptions_spec.rb +55 -0
  23. data/spec/fixtures/vcr_cassettes/accept_incoming_transfer_with_protection_code.yml +40 -0
  24. data/spec/fixtures/vcr_cassettes/accept_incoming_transfer_with_protection_code_with_wrong_code.yml +40 -0
  25. data/spec/fixtures/vcr_cassettes/get_account_info.yml +40 -0
  26. data/spec/fixtures/vcr_cassettes/get_instance_id_fail.yml +38 -0
  27. data/spec/fixtures/vcr_cassettes/get_instance_id_success.yml +38 -0
  28. data/spec/fixtures/vcr_cassettes/get_operation_details.yml +233 -0
  29. data/spec/fixtures/vcr_cassettes/get_operation_history.yml +186 -0
  30. data/spec/fixtures/vcr_cassettes/get_operation_history_with_params.yml +46 -0
  31. data/spec/fixtures/vcr_cassettes/get_token_from_authorization_code.yml +48 -0
  32. data/spec/fixtures/vcr_cassettes/get_wrong_operation_details.yml +40 -0
  33. data/spec/fixtures/vcr_cassettes/init_without_client_secret.yml +843 -0
  34. data/spec/fixtures/vcr_cassettes/initialize_with_token.yml +40 -0
  35. data/spec/fixtures/vcr_cassettes/insufficient_scope_error.yml +40 -0
  36. data/spec/fixtures/vcr_cassettes/invalid_request_error.yml +40 -0
  37. data/spec/fixtures/vcr_cassettes/process_external_payment.yml +114 -0
  38. data/spec/fixtures/vcr_cassettes/process_payment_to_an_account_with_failure.yml +41 -0
  39. data/spec/fixtures/vcr_cassettes/reject_payment.yml +40 -0
  40. data/spec/fixtures/vcr_cassettes/reject_payment_fail.yml +40 -0
  41. data/spec/fixtures/vcr_cassettes/request_external_payment.yml +79 -0
  42. data/spec/fixtures/vcr_cassettes/request_payment_to_an_account_with_failure.yml +41 -0
  43. data/spec/fixtures/vcr_cassettes/success_process_payment_to_an_account.yml +40 -0
  44. data/spec/fixtures/vcr_cassettes/success_request_payment_to_an_account.yml +41 -0
  45. data/spec/fixtures/vcr_cassettes/unauthorized_error.yml +41 -0
  46. data/spec/fixtures/vcr_cassettes/unauthorized_exception.yml +41 -0
  47. data/spec/logger_spec.rb +1 -0
  48. data/spec/payments_spec.rb +80 -0
  49. data/spec/spec_helper.rb +27 -0
  50. data/spec/support/constants.example.rb +13 -0
  51. data/yandex-money-client.gemspec +31 -0
  52. metadata +269 -0
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://money.yandex.ru/api/process-payment
6
+ body:
7
+ encoding: UTF-8
8
+ string: request_id=test-p2p&test_payment=true&test_result=success
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
+ - '160'
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","balance":6.88,"payer":"<WALLET_NUMBER>","payee":"test","credit_amount":28.86,"payee_uid":56809635,"test_payment":"true","payment_id":"test"}'
38
+ http_version:
39
+ recorded_at: Mon, 10 Nov 2014 19:24:30 GMT
40
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,41 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://money.yandex.ru/api/request-payment
6
+ body:
7
+ encoding: UTF-8
8
+ string: pattern_id=p2p&to=410011161616877&amount=0.02&comment=test%20payment%20comment%20from%20yandex-money-ruby&message=test%20payment%20message%20from%20yandex-money-ruby&label=testPayment&test_payment=true&test_result=success
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
+ - '339'
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","contract":"The generated test outgoing money transfer
38
+ to 410011161616877, amount 0.02","balance":6.88,"recipient_account_type":"personal","recipient_account_status":"identified","request_id":"test-p2p","test_payment":"true","contract_amount":0.02,"recipient_identified":true,"money_source":{"wallet":{"allowed":true}}}'
39
+ http_version:
40
+ recorded_at: Mon, 10 Nov 2014 19:24:29 GMT
41
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,41 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://money.yandex.ru/api/request-payment
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - Bearer <WALLET_NUMBER>.AEF04DD8614B6C66AF082793D71FF624C92989E7F98D1EE377C3707BC54DE72E0DDC8EAB79470803254178F40F4712F6EBD8C5E1FDA01D041A5C4A110C8E1940DE0928FF45F4E49500EA79D8F21D2D5C7A79CCCA142AE216C69D7B6DC6378FE9CB87769E9EB37DAC22A67BD8A33CADB6F18C4C2C22D28434914970575109FDB3
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ response:
15
+ status:
16
+ code: 401
17
+ message: Unauthorized
18
+ headers:
19
+ Server:
20
+ - nginx
21
+ Date:
22
+ - Fri, 21 Nov 2014 07:33:32 GMT
23
+ Content-Type:
24
+ - application/json;charset=UTF-8
25
+ Content-Length:
26
+ - '0'
27
+ Connection:
28
+ - keep-alive
29
+ Keep-Alive:
30
+ - timeout=120
31
+ Cache-Control:
32
+ - no-cache
33
+ Www-Authenticate:
34
+ - Bearer error="invalid_token", error_description="The specified access token
35
+ isn't found yet."
36
+ body:
37
+ encoding: UTF-8
38
+ string: ''
39
+ http_version:
40
+ recorded_at: Fri, 21 Nov 2014 07:33:33 GMT
41
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,41 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://money.yandex.ru/api/operation-details
6
+ body:
7
+ encoding: UTF-8
8
+ string: operation_id=462449992116028008
9
+ headers:
10
+ Authorization:
11
+ - Bearer wrong_token
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ response:
15
+ status:
16
+ code: 401
17
+ message: Unauthorized
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
+ - '0'
27
+ Connection:
28
+ - keep-alive
29
+ Keep-Alive:
30
+ - timeout=120
31
+ Cache-Control:
32
+ - no-cache
33
+ Www-Authenticate:
34
+ - Bearer error="invalid_token", error_description="The specified access token
35
+ isn't found yet."
36
+ body:
37
+ encoding: UTF-8
38
+ string: ''
39
+ http_version:
40
+ recorded_at: Mon, 10 Nov 2014 19:24:28 GMT
41
+ recorded_with: VCR 2.9.3
@@ -0,0 +1 @@
1
+ require "spec_helper"
@@ -0,0 +1,80 @@
1
+ require "spec_helper"
2
+
3
+ describe "Payments from the Yandex.Money wallet" do
4
+ describe "make payment to an account" do
5
+ before :all do
6
+ @api = YandexMoney::Wallet.new(ACCESS_TOKEN)
7
+ end
8
+
9
+ it "success request payment" do
10
+ VCR.use_cassette "success request payment to an account" do
11
+ server_response = @api.request_payment(
12
+ pattern_id: "p2p",
13
+ to: "410011161616877",
14
+ amount: "0.02",
15
+ comment: "test payment comment from yandex-money-ruby",
16
+ message: "test payment message from yandex-money-ruby",
17
+ label: "testPayment",
18
+ test_payment: "true",
19
+ test_result: "success"
20
+ )
21
+ expect(server_response.status).to eq "success"
22
+ end
23
+ end
24
+
25
+ it "raise exception without requered params when request payment" do
26
+ VCR.use_cassette "request payment to an account with failure" do
27
+ result = @api.request_payment(
28
+ pattern_id: "p2p",
29
+ to: "410011161616877",
30
+ test_payment: "true",
31
+ test_result: "success"
32
+ )
33
+ expect(result.status).to eq "refused"
34
+ end
35
+ end
36
+
37
+ it "success process payment" do
38
+ VCR.use_cassette "success process payment to an account" do
39
+ server_response = @api.process_payment(
40
+ request_id: "test-p2p",
41
+ test_payment: "true",
42
+ test_result: "success"
43
+ )
44
+ expect(server_response.status).to eq "success"
45
+ end
46
+ end
47
+
48
+ it "raise exception without requered params when process payment" do
49
+ VCR.use_cassette "process payment to an account with failure" do
50
+ result = @api.process_payment(
51
+ test_payment: "true",
52
+ test_result: "success"
53
+ )
54
+ expect(result.status).to eq "refused"
55
+ end
56
+ end
57
+
58
+ it "accept incoming transfer with protection code" do
59
+ VCR.use_cassette "accept incoming transfer with protection code" do
60
+ expect(
61
+ @api.incoming_transfer_accept("463937708331015004", "0208").status
62
+ ).to eq "success"
63
+ end
64
+ end
65
+
66
+ it "can reject payment" do
67
+ VCR.use_cassette "reject payment" do
68
+ expect(
69
+ @api.incoming_transfer_reject("463947376678019004").status
70
+ ).to eq "success"
71
+ end
72
+ end
73
+
74
+ it "raise exception when reject wrong payment" do
75
+ VCR.use_cassette "reject payment fail" do
76
+ expect(@api.incoming_transfer_reject("").status).to eq "refused"
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,27 @@
1
+ require 'coveralls'
2
+ Coveralls.wear!
3
+
4
+ require 'bundler/setup'
5
+ Bundler.setup
6
+
7
+ require 'yandex_money/api'
8
+ require 'vcr'
9
+ require 'pry'
10
+
11
+ IGNORED = %w(
12
+ ./spec/support/constants.example.rb
13
+ )
14
+ RSpec.configure do |config|
15
+ (Dir["./spec/support/**/*.rb"] - IGNORED).each {|f| require f}
16
+ end
17
+
18
+ VCR.configure do |c|
19
+ c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
20
+ c.hook_into :webmock
21
+ c.filter_sensitive_data('<ACCESS_TOKEN>') { ACCESS_TOKEN }
22
+ c.filter_sensitive_data('<CLIENT_ID>') { CLIENT_ID }
23
+ c.filter_sensitive_data('<INSTANCE_ID>') { INSTANCE_ID }
24
+ c.filter_sensitive_data('<WALLET_NUMBER>') { WALLET_NUMBER }
25
+ c.filter_sensitive_data('<OPERATION_ID>') { OPERATION_ID }
26
+ end
27
+
@@ -0,0 +1,13 @@
1
+ # Shared constants for specs
2
+
3
+ ACCESS_TOKEN = ""
4
+ CLIENT_ID = ""
5
+ REDIRECT_URI = "http://127.0.0.1:4567/redirect"
6
+ INSTANCE_ID = ""
7
+
8
+ # Just wallet number for test
9
+ WALLET_NUMBER = "<WALLET_NUMBER>"
10
+ # Any operation from this wallet
11
+ OPERATION_ID = ""
12
+ # Payment request ID
13
+ REQUEST_ID = ""
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ require 'yandex_money/api/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = "yandex-money-client"
9
+ spec.description = "Client for Yandex Money API"
10
+ spec.version = YandexMoney::Api::VERSION
11
+ spec.authors = ["Alexander Maslov"]
12
+ spec.email = ["drakmail@delta.pm"]
13
+ spec.summary = %q{Yandex money API for ruby.}
14
+ spec.homepage = "https://github.com/serverscom/yandex-money-client"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0")
18
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_dependency 'faraday'
23
+ spec.add_dependency 'faraday_middleware'
24
+ spec.add_dependency "recursive-open-struct", '~> 1.0.0'
25
+
26
+ spec.add_development_dependency "rake", "~> 10.3", ">= 10.3.2"
27
+ spec.add_development_dependency "vcr", "~> 2.9", ">= 2.9.3"
28
+ spec.add_development_dependency "webmock", "~> 1.8", ">= 1.8.0"
29
+ spec.add_development_dependency "rspec", "~> 3.1", ">= 3.1.0"
30
+ spec.add_development_dependency "rspec-mocks", "~> 3.1", ">= 3.1.0"
31
+ end
metadata ADDED
@@ -0,0 +1,269 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: yandex-money-client
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.6
5
+ platform: ruby
6
+ authors:
7
+ - Alexander Maslov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-10-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday_middleware
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: recursive-open-struct
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.0.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.0.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.3'
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: 10.3.2
65
+ type: :development
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '10.3'
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: 10.3.2
75
+ - !ruby/object:Gem::Dependency
76
+ name: vcr
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '2.9'
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: 2.9.3
85
+ type: :development
86
+ prerelease: false
87
+ version_requirements: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: '2.9'
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: 2.9.3
95
+ - !ruby/object:Gem::Dependency
96
+ name: webmock
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '1.8'
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: 1.8.0
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '1.8'
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: 1.8.0
115
+ - !ruby/object:Gem::Dependency
116
+ name: rspec
117
+ requirement: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - "~>"
120
+ - !ruby/object:Gem::Version
121
+ version: '3.1'
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: 3.1.0
125
+ type: :development
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '3.1'
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: 3.1.0
135
+ - !ruby/object:Gem::Dependency
136
+ name: rspec-mocks
137
+ requirement: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - "~>"
140
+ - !ruby/object:Gem::Version
141
+ version: '3.1'
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: 3.1.0
145
+ type: :development
146
+ prerelease: false
147
+ version_requirements: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: '3.1'
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: 3.1.0
155
+ description: Client for Yandex Money API
156
+ email:
157
+ - drakmail@delta.pm
158
+ executables: []
159
+ extensions: []
160
+ extra_rdoc_files: []
161
+ files:
162
+ - ".gitignore"
163
+ - ".rspec"
164
+ - ".travis.yml"
165
+ - ".yardopts"
166
+ - CHANGELOG.md
167
+ - Gemfile
168
+ - LICENSE.txt
169
+ - README.md
170
+ - Rakefile
171
+ - lib/yandex_money/api.rb
172
+ - lib/yandex_money/api/version.rb
173
+ - lib/yandex_money/client.rb
174
+ - lib/yandex_money/config.rb
175
+ - lib/yandex_money/exceptions.rb
176
+ - lib/yandex_money/external_payment.rb
177
+ - lib/yandex_money/wallet.rb
178
+ - spec/account_info_spec.rb
179
+ - spec/auth_spec.rb
180
+ - spec/cards_spec.rb
181
+ - spec/config_spec.rb
182
+ - spec/exceptions_spec.rb
183
+ - spec/fixtures/vcr_cassettes/accept_incoming_transfer_with_protection_code.yml
184
+ - spec/fixtures/vcr_cassettes/accept_incoming_transfer_with_protection_code_with_wrong_code.yml
185
+ - spec/fixtures/vcr_cassettes/get_account_info.yml
186
+ - spec/fixtures/vcr_cassettes/get_instance_id_fail.yml
187
+ - spec/fixtures/vcr_cassettes/get_instance_id_success.yml
188
+ - spec/fixtures/vcr_cassettes/get_operation_details.yml
189
+ - spec/fixtures/vcr_cassettes/get_operation_history.yml
190
+ - spec/fixtures/vcr_cassettes/get_operation_history_with_params.yml
191
+ - spec/fixtures/vcr_cassettes/get_token_from_authorization_code.yml
192
+ - spec/fixtures/vcr_cassettes/get_wrong_operation_details.yml
193
+ - spec/fixtures/vcr_cassettes/init_without_client_secret.yml
194
+ - spec/fixtures/vcr_cassettes/initialize_with_token.yml
195
+ - spec/fixtures/vcr_cassettes/insufficient_scope_error.yml
196
+ - spec/fixtures/vcr_cassettes/invalid_request_error.yml
197
+ - spec/fixtures/vcr_cassettes/process_external_payment.yml
198
+ - spec/fixtures/vcr_cassettes/process_payment_to_an_account_with_failure.yml
199
+ - spec/fixtures/vcr_cassettes/reject_payment.yml
200
+ - spec/fixtures/vcr_cassettes/reject_payment_fail.yml
201
+ - spec/fixtures/vcr_cassettes/request_external_payment.yml
202
+ - spec/fixtures/vcr_cassettes/request_payment_to_an_account_with_failure.yml
203
+ - spec/fixtures/vcr_cassettes/success_process_payment_to_an_account.yml
204
+ - spec/fixtures/vcr_cassettes/success_request_payment_to_an_account.yml
205
+ - spec/fixtures/vcr_cassettes/unauthorized_error.yml
206
+ - spec/fixtures/vcr_cassettes/unauthorized_exception.yml
207
+ - spec/logger_spec.rb
208
+ - spec/payments_spec.rb
209
+ - spec/spec_helper.rb
210
+ - spec/support/constants.example.rb
211
+ - yandex-money-client.gemspec
212
+ homepage: https://github.com/serverscom/yandex-money-client
213
+ licenses:
214
+ - MIT
215
+ metadata: {}
216
+ post_install_message:
217
+ rdoc_options: []
218
+ require_paths:
219
+ - lib
220
+ required_ruby_version: !ruby/object:Gem::Requirement
221
+ requirements:
222
+ - - ">="
223
+ - !ruby/object:Gem::Version
224
+ version: '0'
225
+ required_rubygems_version: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ requirements: []
231
+ rubyforge_project:
232
+ rubygems_version: 2.5.1
233
+ signing_key:
234
+ specification_version: 4
235
+ summary: Yandex money API for ruby.
236
+ test_files:
237
+ - spec/account_info_spec.rb
238
+ - spec/auth_spec.rb
239
+ - spec/cards_spec.rb
240
+ - spec/config_spec.rb
241
+ - spec/exceptions_spec.rb
242
+ - spec/fixtures/vcr_cassettes/accept_incoming_transfer_with_protection_code.yml
243
+ - spec/fixtures/vcr_cassettes/accept_incoming_transfer_with_protection_code_with_wrong_code.yml
244
+ - spec/fixtures/vcr_cassettes/get_account_info.yml
245
+ - spec/fixtures/vcr_cassettes/get_instance_id_fail.yml
246
+ - spec/fixtures/vcr_cassettes/get_instance_id_success.yml
247
+ - spec/fixtures/vcr_cassettes/get_operation_details.yml
248
+ - spec/fixtures/vcr_cassettes/get_operation_history.yml
249
+ - spec/fixtures/vcr_cassettes/get_operation_history_with_params.yml
250
+ - spec/fixtures/vcr_cassettes/get_token_from_authorization_code.yml
251
+ - spec/fixtures/vcr_cassettes/get_wrong_operation_details.yml
252
+ - spec/fixtures/vcr_cassettes/init_without_client_secret.yml
253
+ - spec/fixtures/vcr_cassettes/initialize_with_token.yml
254
+ - spec/fixtures/vcr_cassettes/insufficient_scope_error.yml
255
+ - spec/fixtures/vcr_cassettes/invalid_request_error.yml
256
+ - spec/fixtures/vcr_cassettes/process_external_payment.yml
257
+ - spec/fixtures/vcr_cassettes/process_payment_to_an_account_with_failure.yml
258
+ - spec/fixtures/vcr_cassettes/reject_payment.yml
259
+ - spec/fixtures/vcr_cassettes/reject_payment_fail.yml
260
+ - spec/fixtures/vcr_cassettes/request_external_payment.yml
261
+ - spec/fixtures/vcr_cassettes/request_payment_to_an_account_with_failure.yml
262
+ - spec/fixtures/vcr_cassettes/success_process_payment_to_an_account.yml
263
+ - spec/fixtures/vcr_cassettes/success_request_payment_to_an_account.yml
264
+ - spec/fixtures/vcr_cassettes/unauthorized_error.yml
265
+ - spec/fixtures/vcr_cassettes/unauthorized_exception.yml
266
+ - spec/logger_spec.rb
267
+ - spec/payments_spec.rb
268
+ - spec/spec_helper.rb
269
+ - spec/support/constants.example.rb