leetchi-wallet-services 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +1 -11
- data/Gemfile.lock +27 -18
- data/README.md +3 -3
- data/Rakefile +3 -6
- data/lib/leetchi/beneficiary.rb +0 -1
- data/lib/leetchi/expense.rb +2 -2
- data/lib/leetchi/recurrent_contribution.rb +24 -0
- data/lib/leetchi/ressource.rb +24 -3
- data/lib/leetchi/strong_authentication.rb +13 -0
- data/lib/leetchi/withdrawal.rb +0 -1
- data/lib/leetchi/withdrawal_contribution.rb +32 -0
- data/lib/leetchi-wallet-services.rb +2 -2
- data/spec/cassettes/card.yml +1381 -0
- data/spec/cassettes/contribution.yml +691 -0
- data/spec/cassettes/expense.yml +89 -0
- data/spec/cassettes/operation.yml +89 -0
- data/spec/cassettes/transfer.yml +347 -0
- data/spec/cassettes/user.yml +1262 -0
- data/spec/cassettes/wallet.yml +863 -0
- data/spec/cassettes/withdrawal.yml +433 -0
- data/spec/lib/leetchi/beneficiary_spec.rb +26 -32
- data/spec/lib/leetchi/card_spec.rb +8 -14
- data/spec/lib/leetchi/contribution_spec.rb +11 -17
- data/spec/lib/leetchi/expense_spec.rb +0 -7
- data/spec/lib/leetchi/operation_spec.rb +0 -6
- data/spec/lib/leetchi/recurrent_contribution_spec.rb +48 -41
- data/spec/lib/leetchi/ressource_spec.rb +1 -3
- data/spec/lib/leetchi/strong_authentication_spec.rb +50 -10
- data/spec/lib/leetchi/transfer_spec.rb +9 -14
- data/spec/lib/leetchi/user_spec.rb +27 -34
- data/spec/lib/leetchi/wallet_spec.rb +16 -22
- data/spec/lib/leetchi/withdrawal_contribution_spec.rb +44 -0
- data/spec/lib/leetchi/withdrawal_spec.rb +13 -19
- data/spec/spec_helper.rb +60 -24
- data/spec/support-files/test_upload.gif +0 -0
- data/spec/support-files/test_upload.jpg +0 -0
- data/spec/support-files/test_upload.pdf +0 -0
- data/spec/support-files/test_upload.png +0 -0
- metadata +150 -170
- data/spec/fixtures/leetchi_cassettes/beneficiary.yml +0 -40500
- data/spec/fixtures/leetchi_cassettes/card.yml +0 -15985
- data/spec/fixtures/leetchi_cassettes/contribution.yml +0 -35737
- data/spec/fixtures/leetchi_cassettes/expense-site.yml +0 -45
- data/spec/fixtures/leetchi_cassettes/expense.yml +0 -495
- data/spec/fixtures/leetchi_cassettes/operation.yml +0 -495
- data/spec/fixtures/leetchi_cassettes/recurrent_contribution.yml +0 -2060
- data/spec/fixtures/leetchi_cassettes/strong_authentication.yml +0 -577
- data/spec/fixtures/leetchi_cassettes/transfer.yml +0 -31387
- data/spec/fixtures/leetchi_cassettes/user.yml +0 -44428
- data/spec/fixtures/leetchi_cassettes/wallet.yml +0 -35099
- data/spec/fixtures/leetchi_cassettes/withdrawal.yml +0 -20722
@@ -18,30 +18,24 @@ describe Leetchi::Wallet do
|
|
18
18
|
'RaisingGoalAmount' => 12000
|
19
19
|
})
|
20
20
|
}
|
21
|
-
before do
|
22
|
-
VCR.insert_cassette 'wallet', :record => :new_episodes
|
23
|
-
end
|
24
|
-
after do
|
25
|
-
VCR.eject_cassette
|
26
|
-
end
|
27
21
|
|
28
22
|
describe "CREATE" do
|
29
23
|
it "should create a new wallet" do
|
30
|
-
new_wallet["ID"].
|
31
|
-
new_wallet["Name"].
|
32
|
-
new_wallet["RaisingGoalAmount"].
|
33
|
-
new_wallet["CollectedAmount"].
|
34
|
-
new_wallet["SpentAmount"].
|
24
|
+
expect(new_wallet["ID"]).not_to be_nil
|
25
|
+
expect(new_wallet["Name"]).to eq('test')
|
26
|
+
expect(new_wallet["RaisingGoalAmount"]).to eq(12000)
|
27
|
+
expect(new_wallet["CollectedAmount"]).to eq(0)
|
28
|
+
expect(new_wallet["SpentAmount"]).to eq(0)
|
35
29
|
end
|
36
30
|
end
|
37
31
|
|
38
32
|
describe "GET" do
|
39
33
|
it "get the wallet" do
|
40
34
|
wallet = Leetchi::Wallet.details(new_wallet["ID"])
|
41
|
-
wallet['ID'].
|
42
|
-
wallet['Name'].
|
43
|
-
wallet['Owners'].
|
44
|
-
wallet['RaisingGoalAmount'].
|
35
|
+
expect(wallet['ID']).to eq(new_wallet['ID'])
|
36
|
+
expect(wallet['Name']).to eq(new_wallet['Name'])
|
37
|
+
expect(wallet['Owners']).to eq(new_wallet['Owners'])
|
38
|
+
expect(wallet['RaisingGoalAmount']).to eq(new_wallet['RaisingGoalAmount'])
|
45
39
|
end
|
46
40
|
end
|
47
41
|
|
@@ -51,37 +45,37 @@ describe Leetchi::Wallet do
|
|
51
45
|
'Name' => 'test_update',
|
52
46
|
'RaisingGoalAmount' => 5000
|
53
47
|
})
|
54
|
-
wallet['ID'].
|
55
|
-
wallet['Name'].
|
56
|
-
wallet['RaisingGoalAmount'].
|
48
|
+
expect(wallet['ID']).to eq(wallet['ID'])
|
49
|
+
expect(wallet['Name']).to eq('test_update')
|
50
|
+
expect(wallet['RaisingGoalAmount']).to eq(5000)
|
57
51
|
end
|
58
52
|
end
|
59
53
|
|
60
54
|
describe "GET_OWNERS" do
|
61
55
|
it "get the wallet's owners" do
|
62
56
|
wallet = Leetchi::Wallet.get_owners(new_wallet["ID"])
|
63
|
-
wallet[0]['ID'].
|
57
|
+
expect(wallet[0]['ID']).to eq(new_user['ID'])
|
64
58
|
end
|
65
59
|
end
|
66
60
|
|
67
61
|
describe "GET_CONTRIBUTORS" do
|
68
62
|
it "get the wallet's contributors" do
|
69
63
|
wallet = Leetchi::Wallet.get_contributors(new_wallet["ID"])
|
70
|
-
wallet[0]['ID'].
|
64
|
+
expect(wallet[0]['ID']).to eq(new_user['ID'])
|
71
65
|
end
|
72
66
|
end
|
73
67
|
|
74
68
|
describe "GET_REFUNDED" do
|
75
69
|
it "get the wallet's refunded" do
|
76
70
|
wallet = Leetchi::Wallet.get_refunded(new_wallet["ID"])
|
77
|
-
wallet[0]['ID'].
|
71
|
+
expect(wallet[0]['ID']).to eq(new_user['ID'])
|
78
72
|
end
|
79
73
|
end
|
80
74
|
|
81
75
|
describe "OPERATIONS" do
|
82
76
|
it "gets the wallet operations" do
|
83
77
|
operations = Leetchi::Wallet.operations(new_wallet['ID'])
|
84
|
-
operations.
|
78
|
+
expect(operations).to be_kind_of(Array)
|
85
79
|
end
|
86
80
|
end
|
87
81
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require_relative '../../spec_helper'
|
2
|
+
|
3
|
+
describe Leetchi::WithdrawalContribution do
|
4
|
+
|
5
|
+
let(:new_user) {
|
6
|
+
Leetchi::User.create({
|
7
|
+
'Tag' => 'test',
|
8
|
+
'Email' => 'my@email.com',
|
9
|
+
'FirstName' => 'John',
|
10
|
+
'LastName' => 'Doe',
|
11
|
+
'CanRegisterMeanOfPayment' => true
|
12
|
+
})
|
13
|
+
}
|
14
|
+
|
15
|
+
let(:new_wallet) {
|
16
|
+
Leetchi::Wallet.create({
|
17
|
+
'Name' => 'test',
|
18
|
+
'Owners' => [ new_user['ID'] ],
|
19
|
+
'RaisingGoalAmount' => 10000
|
20
|
+
})
|
21
|
+
}
|
22
|
+
|
23
|
+
let(:new_withdrawal_contribution) do
|
24
|
+
withdrawal_contribution = Leetchi::WithdrawalContribution.create({
|
25
|
+
'Tag' => 'test_withdrawal_contribution',
|
26
|
+
'UserID' => new_user['ID'],
|
27
|
+
'WalletID' => new_wallet['ID'],
|
28
|
+
'AmountDeclared' => 1000
|
29
|
+
})
|
30
|
+
end
|
31
|
+
|
32
|
+
describe "CREATE" do
|
33
|
+
it "creates a withdrawal contribution to a shared wallet" do
|
34
|
+
expect(new_withdrawal_contribution['ID']).not_to be_nil
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe "GET" do
|
39
|
+
it "fetches a withdrawal contribution" do
|
40
|
+
withdrawal_contribution = Leetchi::WithdrawalContribution.get(new_withdrawal_contribution['ID'])
|
41
|
+
expect(withdrawal_contribution['ID']).to eq(new_withdrawal_contribution['ID'])
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -1,15 +1,6 @@
|
|
1
1
|
require_relative '../../spec_helper'
|
2
2
|
|
3
|
-
describe Leetchi::Withdrawal do
|
4
|
-
|
5
|
-
include Capybara::DSL
|
6
|
-
|
7
|
-
before do
|
8
|
-
VCR.insert_cassette 'withdrawal', :record => :new_episodes
|
9
|
-
end
|
10
|
-
after do
|
11
|
-
VCR.eject_cassette
|
12
|
-
end
|
3
|
+
describe Leetchi::Withdrawal, :type => :feature do
|
13
4
|
|
14
5
|
let(:new_user) {
|
15
6
|
user = Leetchi::User.create({
|
@@ -24,13 +15,16 @@ describe Leetchi::Withdrawal do
|
|
24
15
|
'UserID' => user['ID'],
|
25
16
|
'WalletID' => 0,
|
26
17
|
'Amount' => 10000,
|
27
|
-
'ReturnURL' => 'https://leetchi.com'
|
28
|
-
'BankAccountBIC' => 'AGRIFRPP879'
|
18
|
+
'ReturnURL' => 'https://leetchi.com'
|
29
19
|
})
|
30
20
|
visit(contribution['PaymentURL'])
|
31
21
|
fill_in('number', :with => '4970100000000154')
|
32
22
|
fill_in('cvv', :with => '123')
|
33
23
|
click_button('paybutton')
|
24
|
+
contribution = Leetchi::Contribution.details(contribution['ID'])
|
25
|
+
while contribution["IsSucceeded"] == false do
|
26
|
+
contribution = Leetchi::Contribution.details(contribution['ID'])
|
27
|
+
end
|
34
28
|
user
|
35
29
|
}
|
36
30
|
|
@@ -57,9 +51,9 @@ describe Leetchi::Withdrawal do
|
|
57
51
|
|
58
52
|
describe "CREATE" do
|
59
53
|
it "create a withdrawal" do
|
60
|
-
new_withdrawal['ID'].
|
61
|
-
new_withdrawal['UserID'].
|
62
|
-
new_withdrawal['BeneficiaryID'].
|
54
|
+
expect(new_withdrawal['ID']).not_to be_nil
|
55
|
+
expect(new_withdrawal['UserID']).to eq(new_user['ID'])
|
56
|
+
expect(new_withdrawal['BeneficiaryID']).to eq(new_beneficiary['ID'])
|
63
57
|
end
|
64
58
|
it "fails and return a 2001 error code: Invalid withdrawal amount" do
|
65
59
|
fail_withdrawal = Leetchi::Withdrawal.create({
|
@@ -69,7 +63,7 @@ describe Leetchi::Withdrawal do
|
|
69
63
|
'Amount' => -123,
|
70
64
|
'BeneficiaryID' => new_beneficiary['ID']
|
71
65
|
})
|
72
|
-
fail_withdrawal['ErrorCode'].
|
66
|
+
expect(fail_withdrawal['ErrorCode']).to eq(2001)
|
73
67
|
end
|
74
68
|
it "fails and return a 2002 error code: Both parameters are specified: Amount and AmountWithoutFees" do
|
75
69
|
fail_withdrawal = Leetchi::Withdrawal.create({
|
@@ -80,7 +74,7 @@ describe Leetchi::Withdrawal do
|
|
80
74
|
'AmountWithoutFees' => 2500,
|
81
75
|
'BeneficiaryID' => new_beneficiary['ID']
|
82
76
|
})
|
83
|
-
fail_withdrawal['ErrorCode'].
|
77
|
+
expect(fail_withdrawal['ErrorCode']).to eq(2002)
|
84
78
|
end
|
85
79
|
it "fails and return a 2003 error code: Invalid withdrawal ClientFeeAmount" do
|
86
80
|
fail_withdrawal = Leetchi::Withdrawal.create({
|
@@ -91,14 +85,14 @@ describe Leetchi::Withdrawal do
|
|
91
85
|
'BeneficiaryID' => new_beneficiary['ID'],
|
92
86
|
'ClientFeeAmount' => -3000
|
93
87
|
})
|
94
|
-
fail_withdrawal['ErrorCode'].
|
88
|
+
expect(fail_withdrawal['ErrorCode']).to eq(2003)
|
95
89
|
end
|
96
90
|
end
|
97
91
|
|
98
92
|
describe "GET" do
|
99
93
|
it "get the withdrawal" do
|
100
94
|
withdrawal = Leetchi::Withdrawal.details(new_withdrawal['ID'])
|
101
|
-
withdrawal['ID'].
|
95
|
+
expect(withdrawal['ID']).to eq(new_withdrawal['ID'])
|
102
96
|
end
|
103
97
|
end
|
104
98
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,36 +1,72 @@
|
|
1
|
-
|
1
|
+
require 'rubygems'
|
2
|
+
require 'spork'
|
3
|
+
#uncomment the following line to use spork with the debugger
|
4
|
+
#require 'spork/ext/ruby-debug'
|
2
5
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
require '
|
8
|
-
require '
|
6
|
+
Spork.prefork do
|
7
|
+
# Loading more in this block will cause your tests to run faster. However,
|
8
|
+
# if you change any configuration or code from libraries loaded here, you'll
|
9
|
+
# need to restart spork for it take effect.
|
10
|
+
require 'vcr'
|
11
|
+
require 'webmock/rspec'
|
12
|
+
require 'capybara'
|
13
|
+
require 'capybara/rspec'
|
14
|
+
require 'capybara-webkit'
|
9
15
|
|
10
|
-
Capybara.
|
11
|
-
Capybara
|
12
|
-
end
|
13
|
-
Capybara.javascript_driver = :poltergeist
|
14
|
-
Capybara.default_driver = :poltergeist
|
16
|
+
Capybara.javascript_driver = :webkit
|
17
|
+
Capybara.default_driver = :webkit
|
15
18
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
VCR.configure do |c|
|
20
|
+
c.cassette_library_dir = 'spec/cassettes'
|
21
|
+
c.hook_into :webmock
|
22
|
+
c.default_cassette_options = { :record => :new_episodes }
|
23
|
+
c.allow_http_connections_when_no_cassette = true
|
24
|
+
c.configure_rspec_metadata!
|
25
|
+
end
|
22
26
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
c.allow_http_connections_when_no_cassette = true
|
27
|
+
RSpec.configure do |c|
|
28
|
+
c.treat_symbols_as_metadata_keys_with_true_values = true
|
29
|
+
c.order = "random"
|
30
|
+
end
|
28
31
|
end
|
29
32
|
|
30
|
-
|
33
|
+
Spork.each_run do
|
34
|
+
require_relative '../lib/leetchi-wallet-services'
|
35
|
+
# This code will be run each time you run your specs.
|
36
|
+
Leetchi.configure do |c|
|
31
37
|
c.preproduction = true
|
32
38
|
c.partner_id = 'example'
|
33
39
|
c.key_path = './spec/support-files/example.pem'
|
34
40
|
c.key_password = ''
|
41
|
+
end
|
35
42
|
end
|
36
43
|
|
44
|
+
# --- Instructions ---
|
45
|
+
# Sort the contents of this file into a Spork.prefork and a Spork.each_run
|
46
|
+
# block.
|
47
|
+
#
|
48
|
+
# The Spork.prefork block is run only once when the spork server is started.
|
49
|
+
# You typically want to place most of your (slow) initializer code in here, in
|
50
|
+
# particular, require'ing any 3rd-party gems that you don't normally modify
|
51
|
+
# during development.
|
52
|
+
#
|
53
|
+
# The Spork.each_run block is run each time you run your specs. In case you
|
54
|
+
# need to load files that tend to change during development, require them here.
|
55
|
+
# With Rails, your application modules are loaded automatically, so sometimes
|
56
|
+
# this block can remain empty.
|
57
|
+
#
|
58
|
+
# Note: You can modify files loaded *from* the Spork.each_run block without
|
59
|
+
# restarting the spork server. However, this file itself will not be reloaded,
|
60
|
+
# so if you change any of the code inside the each_run block, you still need to
|
61
|
+
# restart the server. In general, if you have non-trivial code in this file,
|
62
|
+
# it's advisable to move it into a separate file so you can easily edit it
|
63
|
+
# without restarting spork. (For example, with RSpec, you could move
|
64
|
+
# non-trivial code into a file spec/support/my_helper.rb, making sure that the
|
65
|
+
# spec/support/* files are require'd from inside the each_run block.)
|
66
|
+
#
|
67
|
+
# Any code that is left outside the two blocks will be run during preforking
|
68
|
+
# *and* during each_run -- that's probably not what you want.
|
69
|
+
#
|
70
|
+
# These instructions should self-destruct in 10 seconds. If they don't, feel
|
71
|
+
# free to delete them.
|
72
|
+
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,160 +1,152 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: leetchi-wallet-services
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 0
|
10
|
-
version: 1.0.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
- Vincent Cogne
|
6
|
+
authors:
|
14
7
|
- Geoffroy Lorieux
|
8
|
+
- Vincent Cogne
|
15
9
|
autorequire:
|
16
10
|
bindir: bin
|
17
11
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-05-30 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: json
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ~>
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 1.7.7
|
21
|
+
type: :runtime
|
23
22
|
prerelease: false
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 5
|
30
|
-
segments:
|
31
|
-
- 1
|
32
|
-
- 7
|
33
|
-
- 7
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ~>
|
26
|
+
- !ruby/object:Gem::Version
|
34
27
|
version: 1.7.7
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: multipart-post
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ~>
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 1.2.0
|
35
35
|
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: minitest
|
39
36
|
prerelease: false
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ~>
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 1.2.0
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rake
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ~>
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 10.0.3
|
51
49
|
type: :development
|
52
|
-
version_requirements: *id002
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: webmock
|
55
50
|
prerelease: false
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ~>
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 10.0.3
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: spork
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ~>
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 0.9.2
|
67
63
|
type: :development
|
68
|
-
version_requirements: *id003
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: capybara
|
71
64
|
prerelease: false
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.9.2
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: rspec
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 2.13.0
|
83
77
|
type: :development
|
84
|
-
version_requirements: *id004
|
85
|
-
- !ruby/object:Gem::Dependency
|
86
|
-
name: poltergeist
|
87
78
|
prerelease: false
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
segments:
|
95
|
-
- 1
|
96
|
-
- 1
|
97
|
-
- 0
|
98
|
-
version: 1.1.0
|
99
|
-
type: :development
|
100
|
-
version_requirements: *id005
|
101
|
-
- !ruby/object:Gem::Dependency
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ~>
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 2.13.0
|
84
|
+
- !ruby/object:Gem::Dependency
|
102
85
|
name: vcr
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ~>
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 2.4.0
|
91
|
+
type: :development
|
103
92
|
prerelease: false
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
hash: 31
|
110
|
-
segments:
|
111
|
-
- 2
|
112
|
-
- 4
|
113
|
-
- 0
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ~>
|
96
|
+
- !ruby/object:Gem::Version
|
114
97
|
version: 2.4.0
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: webmock
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ~>
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: 1.11.0
|
115
105
|
type: :development
|
116
|
-
version_requirements: *id006
|
117
|
-
- !ruby/object:Gem::Dependency
|
118
|
-
name: turn
|
119
106
|
prerelease: false
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ~>
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: 1.11.0
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: capybara
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ~>
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: 2.0.2
|
131
119
|
type: :development
|
132
|
-
version_requirements: *id007
|
133
|
-
- !ruby/object:Gem::Dependency
|
134
|
-
name: rake
|
135
120
|
prerelease: false
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 2.0.2
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: capybara-webkit
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ~>
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 0.14.2
|
147
133
|
type: :development
|
148
|
-
|
149
|
-
|
150
|
-
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ~>
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: 0.14.2
|
140
|
+
description: |2
|
141
|
+
The Leetchi API Gem makes interacting with MangoPay Services much easier.
|
142
|
+
For any questions regarding the use of Leetchi's Wallet Services feel free to contact us at http://www.mangopay.com/contact-us/
|
143
|
+
You can find more documentation about MangoPay Services at http://www.mangopay.com/
|
144
|
+
email: it-support@leetchi.com
|
151
145
|
executables: []
|
152
|
-
|
153
146
|
extensions: []
|
154
|
-
|
155
147
|
extra_rdoc_files: []
|
156
|
-
|
157
|
-
|
148
|
+
files:
|
149
|
+
- lib/leetchi-wallet-services.rb
|
158
150
|
- lib/leetchi/beneficiary.rb
|
159
151
|
- lib/leetchi/card.rb
|
160
152
|
- lib/leetchi/contribution.rb
|
@@ -167,24 +159,20 @@ files:
|
|
167
159
|
- lib/leetchi/user.rb
|
168
160
|
- lib/leetchi/wallet.rb
|
169
161
|
- lib/leetchi/withdrawal.rb
|
170
|
-
- lib/leetchi
|
162
|
+
- lib/leetchi/withdrawal_contribution.rb
|
171
163
|
- CONTRIBUTING.md
|
172
164
|
- Gemfile
|
173
165
|
- Gemfile.lock
|
174
|
-
- Rakefile
|
175
166
|
- README.md
|
176
|
-
-
|
177
|
-
- spec/
|
178
|
-
- spec/
|
179
|
-
- spec/
|
180
|
-
- spec/
|
181
|
-
- spec/
|
182
|
-
- spec/
|
183
|
-
- spec/
|
184
|
-
- spec/
|
185
|
-
- spec/fixtures/leetchi_cassettes/user.yml
|
186
|
-
- spec/fixtures/leetchi_cassettes/wallet.yml
|
187
|
-
- spec/fixtures/leetchi_cassettes/withdrawal.yml
|
167
|
+
- Rakefile
|
168
|
+
- spec/cassettes/card.yml
|
169
|
+
- spec/cassettes/contribution.yml
|
170
|
+
- spec/cassettes/expense.yml
|
171
|
+
- spec/cassettes/operation.yml
|
172
|
+
- spec/cassettes/transfer.yml
|
173
|
+
- spec/cassettes/user.yml
|
174
|
+
- spec/cassettes/wallet.yml
|
175
|
+
- spec/cassettes/withdrawal.yml
|
188
176
|
- spec/lib/leetchi/beneficiary_spec.rb
|
189
177
|
- spec/lib/leetchi/card_spec.rb
|
190
178
|
- spec/lib/leetchi/contribution_spec.rb
|
@@ -196,43 +184,35 @@ files:
|
|
196
184
|
- spec/lib/leetchi/transfer_spec.rb
|
197
185
|
- spec/lib/leetchi/user_spec.rb
|
198
186
|
- spec/lib/leetchi/wallet_spec.rb
|
187
|
+
- spec/lib/leetchi/withdrawal_contribution_spec.rb
|
199
188
|
- spec/lib/leetchi/withdrawal_spec.rb
|
200
189
|
- spec/spec_helper.rb
|
201
190
|
- spec/support-files/example.pem
|
202
|
-
|
191
|
+
- spec/support-files/test_upload.gif
|
192
|
+
- spec/support-files/test_upload.jpg
|
193
|
+
- spec/support-files/test_upload.pdf
|
194
|
+
- spec/support-files/test_upload.png
|
195
|
+
homepage: http://www.mangopay.com/
|
203
196
|
licenses: []
|
204
|
-
|
197
|
+
metadata: {}
|
205
198
|
post_install_message:
|
206
199
|
rdoc_options: []
|
207
|
-
|
208
|
-
require_paths:
|
200
|
+
require_paths:
|
209
201
|
- lib
|
210
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
hash: 55
|
216
|
-
segments:
|
217
|
-
- 1
|
218
|
-
- 9
|
219
|
-
- 2
|
202
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - '>='
|
205
|
+
- !ruby/object:Gem::Version
|
220
206
|
version: 1.9.2
|
221
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
hash: 3
|
227
|
-
segments:
|
228
|
-
- 0
|
229
|
-
version: "0"
|
207
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
|
+
requirements:
|
209
|
+
- - '>='
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
version: '0'
|
230
212
|
requirements: []
|
231
|
-
|
232
213
|
rubyforge_project:
|
233
|
-
rubygems_version:
|
214
|
+
rubygems_version: 2.0.3
|
234
215
|
signing_key:
|
235
|
-
specification_version:
|
216
|
+
specification_version: 4
|
236
217
|
summary: Gem for interacting with the Leetchi Wallet Services
|
237
218
|
test_files: []
|
238
|
-
|