mangopay 2.0.0 → 3.0.0
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/.gitignore +24 -0
- data/.rspec +2 -0
- data/Gemfile +1 -2
- data/LICENSE +20 -0
- data/README.md +19 -90
- data/bin/mangopay +9 -0
- data/lib/generators/mangopay/install_generator.rb +60 -0
- data/lib/generators/templates/mangopay.rb +5 -0
- data/lib/mangopay.rb +94 -24
- data/lib/mangopay/bank_account.rb +21 -0
- data/lib/mangopay/client.rb +17 -0
- data/lib/mangopay/errors.rb +4 -0
- data/lib/mangopay/http_calls.rb +53 -0
- data/lib/mangopay/json.rb +21 -0
- data/lib/mangopay/legal_user.rb +14 -0
- data/lib/mangopay/natural_user.rb +14 -0
- data/lib/mangopay/payin.rb +17 -0
- data/lib/mangopay/payout.rb +15 -0
- data/lib/mangopay/resource.rb +22 -0
- data/lib/mangopay/transaction.rb +11 -0
- data/lib/mangopay/transfer.rb +4 -55
- data/lib/mangopay/user.rb +4 -145
- data/lib/mangopay/version.rb +3 -0
- data/lib/mangopay/wallet.rb +4 -90
- data/mangopay.gemspec +33 -0
- data/spec/lib/mangopay/bank_account_spec.rb +26 -0
- data/spec/lib/mangopay/client_spec.rb +27 -0
- data/spec/lib/mangopay/payin_spec.rb +31 -0
- data/spec/lib/mangopay/payout_spec.rb +24 -0
- data/spec/lib/mangopay/shared_resources.rb +183 -0
- data/spec/lib/mangopay/transaction_spec.rb +14 -0
- data/spec/lib/mangopay/transfer_spec.rb +25 -81
- data/spec/lib/mangopay/user_spec.rb +37 -103
- data/spec/lib/mangopay/wallet_spec.rb +24 -73
- data/spec/spec_helper.rb +9 -38
- metadata +60 -97
- data/CONTRIBUTING.md +0 -51
- data/Rakefile +0 -5
- data/lib/mangopay/beneficiary.rb +0 -72
- data/lib/mangopay/card.rb +0 -42
- data/lib/mangopay/contribution.rb +0 -61
- data/lib/mangopay/expense.rb +0 -17
- data/lib/mangopay/immediate_contribution.rb +0 -58
- data/lib/mangopay/operation.rb +0 -16
- data/lib/mangopay/recurrent_contribution.rb +0 -62
- data/lib/mangopay/ressource.rb +0 -96
- data/lib/mangopay/strong_authentication.rb +0 -28
- data/lib/mangopay/withdrawal.rb +0 -40
- data/lib/mangopay/withdrawal_contribution.rb +0 -32
- data/spec/lib/mangopay/beneficiary_spec.rb +0 -124
- data/spec/lib/mangopay/card_spec.rb +0 -52
- data/spec/lib/mangopay/contribution_spec.rb +0 -65
- data/spec/lib/mangopay/expense_spec.rb +0 -10
- data/spec/lib/mangopay/immediate_contribution_spec.rb +0 -73
- data/spec/lib/mangopay/operation_spec.rb +0 -8
- data/spec/lib/mangopay/recurrent_contribution_spec.rb +0 -55
- data/spec/lib/mangopay/ressource_spec.rb +0 -5
- data/spec/lib/mangopay/strong_authentication_spec.rb +0 -82
- data/spec/lib/mangopay/withdrawal_contribution_spec.rb +0 -44
- data/spec/lib/mangopay/withdrawal_spec.rb +0 -98
- data/spec/support-files/example.pem +0 -49
- 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
@@ -1,124 +1,58 @@
|
|
1
1
|
require_relative '../../spec_helper'
|
2
2
|
|
3
3
|
describe MangoPay::User do
|
4
|
+
include_context 'users'
|
4
5
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
'Email' => 'my@email.com',
|
9
|
-
'FirstName' => 'John',
|
10
|
-
'LastName' => 'Doe',
|
11
|
-
'CanRegisterMeanOfPayment' => true
|
12
|
-
})
|
13
|
-
}
|
14
|
-
|
15
|
-
let(:new_wallet) {
|
16
|
-
MangoPay::Wallet.create({
|
17
|
-
'Name' => 'test',
|
18
|
-
'Owners' => [ new_user['ID'] ],
|
19
|
-
'RaisingGoalAmount' => 12000
|
20
|
-
})
|
21
|
-
}
|
22
|
-
|
23
|
-
let(:new_strong_authentication) {
|
24
|
-
MangoPay::User.create_strong_authentication(new_user['ID'], {
|
25
|
-
'Tag' => 'test_strong_auth'
|
26
|
-
})
|
27
|
-
}
|
28
|
-
|
29
|
-
describe "CREATE" do
|
30
|
-
it "create a user" do
|
31
|
-
expect(new_user["FirstName"]).to eq('John')
|
32
|
-
expect(new_user["LastName"]).to eq('Doe')
|
33
|
-
expect(new_user["Email"]).to eq('my@email.com')
|
34
|
-
expect(new_user["CanRegisterMeanOfPayment"]).to be_true
|
35
|
-
expect(new_user["ID"]).not_to be_nil
|
36
|
-
end
|
6
|
+
describe 'CREATE' do
|
7
|
+
it 'creates a new natural user' do
|
8
|
+
expect(new_natural_user["FirstName"]).to eq('John')
|
37
9
|
end
|
38
10
|
|
39
|
-
|
40
|
-
|
41
|
-
|
11
|
+
it 'creates a new legal user' do
|
12
|
+
expect(new_legal_user["LegalRepresentativeFirstName"]).to eq('John')
|
13
|
+
end
|
14
|
+
end
|
42
15
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
16
|
+
describe 'UPDATE' do
|
17
|
+
it 'updates a natural user' do
|
18
|
+
updated_user = MangoPay::NaturalUser.update(new_natural_user['Id'] ,{
|
19
|
+
FirstName: 'Jack'
|
20
|
+
})
|
21
|
+
expect(updated_user['FirstName']).to eq('Jack')
|
48
22
|
end
|
49
23
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
'FirstName' => 'Jack',
|
56
|
-
'LastName' => 'Black',
|
57
|
-
'CanRegisterMeanOfPayment' => false
|
58
|
-
})
|
59
|
-
expect(user["FirstName"]).to eq('Jack')
|
60
|
-
expect(user["LastName"]).to eq('Black')
|
61
|
-
expect(user["Email"]).to eq('mynew@email.com')
|
62
|
-
expect(user["CanRegisterMeanOfPayment"]).to be_false
|
63
|
-
expect(user["ID"]).to eq(new_user["ID"])
|
64
|
-
end
|
24
|
+
it 'updates a legal user' do
|
25
|
+
updated_user = MangoPay::LegalUser.update(new_legal_user['Id'], {
|
26
|
+
LegalRepresentativeFirstName: 'Jack'
|
27
|
+
})
|
28
|
+
expect(updated_user['LegalRepresentativeFirstName']).to eq('Jack')
|
65
29
|
end
|
30
|
+
end
|
66
31
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
end
|
72
|
-
it "gets a new wallet for the user" do
|
73
|
-
new_wallet
|
74
|
-
wallets = MangoPay::User.get_wallets(new_user['ID'])
|
75
|
-
expect(wallets).not_to be_empty
|
76
|
-
expect(wallets[0]["Owners"][0]).to eq(new_user['ID'])
|
77
|
-
end
|
32
|
+
describe 'FETCH' do
|
33
|
+
it 'fetches all the users' do
|
34
|
+
users = MangoPay::User.fetch()
|
35
|
+
expect(users).to be_kind_of(Array)
|
78
36
|
end
|
79
37
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
expect(cards).to be_empty
|
84
|
-
end
|
38
|
+
it 'fetches a legal user using the User module' do
|
39
|
+
legal_user = MangoPay::User.fetch(new_legal_user['Id'])
|
40
|
+
expect(legal_user['Id']).to eq(new_legal_user['Id'])
|
85
41
|
end
|
86
42
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
expect(operations).to be_empty
|
91
|
-
end
|
92
|
-
it "gets all the users personal operation" do
|
93
|
-
personal_operations = MangoPay::User.personal_operations(new_user['ID'])
|
94
|
-
expect(personal_operations).to be_empty
|
95
|
-
end
|
43
|
+
it 'fetches a natural user using the User module' do
|
44
|
+
natural_user = MangoPay::User.fetch(new_natural_user['Id'])
|
45
|
+
expect(natural_user['Id']).to eq(new_natural_user['Id'])
|
96
46
|
end
|
97
47
|
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
end
|
102
|
-
it "gets the user strong authentication request" do
|
103
|
-
strong_authentication = MangoPay::User.get_strong_authentication(new_strong_authentication['UserID'])
|
104
|
-
expect(strong_authentication['ID']).to eq(new_strong_authentication['ID'])
|
105
|
-
end
|
106
|
-
it "updates the user strong authentication request" do
|
107
|
-
strong_authentication = MangoPay::User.update_strong_authentication(new_strong_authentication['UserID'], {
|
108
|
-
'Tag' => 'test_strong_authentication2',
|
109
|
-
'IsDocumentsTransmitted' => true
|
110
|
-
})
|
111
|
-
expect(strong_authentication['ID']).to eq(new_strong_authentication['ID'])
|
112
|
-
expect(strong_authentication['UserID']).to eq(new_strong_authentication['UserID'])
|
113
|
-
expect(strong_authentication['Tag']).to eq('test_strong_authentication2')
|
114
|
-
expect(strong_authentication['IsDocumentsTransmitted']).to be_true
|
115
|
-
end
|
48
|
+
it 'fetches a legal user' do
|
49
|
+
user = MangoPay::LegalUser.fetch(new_legal_user['Id'])
|
50
|
+
expect(user['Id']).to eq(new_legal_user['Id'])
|
116
51
|
end
|
117
52
|
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
expect(expense_sites).to be_kind_of(Array)
|
122
|
-
end
|
53
|
+
it 'fetches a natural user' do
|
54
|
+
user = MangoPay::NaturalUser.fetch(new_natural_user['Id'])
|
55
|
+
expect(user['Id']).to eq(new_natural_user['Id'])
|
123
56
|
end
|
57
|
+
end
|
124
58
|
end
|
@@ -1,81 +1,32 @@
|
|
1
1
|
require_relative '../../spec_helper'
|
2
2
|
|
3
3
|
describe MangoPay::Wallet do
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
})
|
13
|
-
}
|
14
|
-
let(:new_wallet) {
|
15
|
-
MangoPay::Wallet.create({
|
16
|
-
'Name' => 'test',
|
17
|
-
'Owners' => [ new_user['ID'] ],
|
18
|
-
'RaisingGoalAmount' => 12000
|
19
|
-
})
|
20
|
-
}
|
21
|
-
|
22
|
-
describe "CREATE" do
|
23
|
-
it "should create a new wallet" do
|
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)
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
describe "GET" do
|
33
|
-
it "get the wallet" do
|
34
|
-
wallet = MangoPay::Wallet.details(new_wallet["ID"])
|
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'])
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
describe "UPDATE" do
|
43
|
-
it "update the wallet" do
|
44
|
-
wallet = MangoPay::Wallet.update(new_wallet["ID"], {
|
45
|
-
'Name' => 'test_update',
|
46
|
-
'RaisingGoalAmount' => 5000
|
47
|
-
})
|
48
|
-
expect(wallet['ID']).to eq(wallet['ID'])
|
49
|
-
expect(wallet['Name']).to eq('test_update')
|
50
|
-
expect(wallet['RaisingGoalAmount']).to eq(5000)
|
51
|
-
end
|
4
|
+
include_context 'users'
|
5
|
+
include_context 'wallets'
|
6
|
+
|
7
|
+
describe 'CREATE' do
|
8
|
+
it 'creates a wallet' do
|
9
|
+
expect(new_wallet['Id']).to_not be_nil
|
10
|
+
expect(new_wallet['Balance']['Currency']).to eq('EUR')
|
11
|
+
expect(new_wallet['Balance']['Amount']).to eq(0)
|
52
12
|
end
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
wallet = MangoPay::Wallet.get_contributors(new_wallet["ID"])
|
64
|
-
expect(wallet[0]['ID']).to eq(new_user['ID'])
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
describe "GET_REFUNDED" do
|
69
|
-
it "get the wallet's refunded" do
|
70
|
-
wallet = MangoPay::Wallet.get_refunded(new_wallet["ID"])
|
71
|
-
expect(wallet[0]['ID']).to eq(new_user['ID'])
|
72
|
-
end
|
13
|
+
end
|
14
|
+
|
15
|
+
describe 'UPDATE' do
|
16
|
+
it 'updates a wallet' do
|
17
|
+
updated_wallet = MangoPay::Wallet.update(new_wallet['Id'], {
|
18
|
+
Description: 'Updated Description',
|
19
|
+
Tag: 'Updated Tag'
|
20
|
+
})
|
21
|
+
expect(updated_wallet['Description']).to eq('Updated Description')
|
22
|
+
expect(updated_wallet['Tag']).to eq('Updated Tag')
|
73
23
|
end
|
24
|
+
end
|
74
25
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
end
|
26
|
+
describe 'FETCH' do
|
27
|
+
it 'fetches a wallet' do
|
28
|
+
wallet = MangoPay::Wallet.fetch(new_wallet['Id'])
|
29
|
+
expect(wallet['Id']).to eq(new_wallet['Id'])
|
80
30
|
end
|
31
|
+
end
|
81
32
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,42 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
#uncomment the following line to use spork with the debugger
|
4
|
-
#require 'spork/ext/ruby-debug'
|
1
|
+
require_relative '../lib/mangopay'
|
2
|
+
require_relative './lib/mangopay/shared_resources'
|
5
3
|
|
6
|
-
|
7
|
-
|
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'
|
4
|
+
require 'capybara/rspec'
|
5
|
+
require 'capybara-webkit'
|
15
6
|
|
16
|
-
|
17
|
-
Capybara.default_driver = :webkit
|
7
|
+
Capybara.default_driver = :webkit
|
18
8
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
c.allow_http_connections_when_no_cassette = true
|
24
|
-
c.configure_rspec_metadata!
|
25
|
-
end
|
26
|
-
|
27
|
-
RSpec.configure do |c|
|
28
|
-
c.treat_symbols_as_metadata_keys_with_true_values = true
|
29
|
-
c.order = "random"
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
Spork.each_run do
|
34
|
-
require_relative '../lib/mangopay'
|
35
|
-
# This code will be run each time you run your specs.
|
36
|
-
MangoPay.configure do |c|
|
37
|
-
c.preproduction = true
|
38
|
-
c.partner_id = 'example'
|
39
|
-
c.key_path = './spec/support-files/example.pem'
|
40
|
-
c.key_password = ''
|
41
|
-
end
|
9
|
+
MangoPay.configure do |c|
|
10
|
+
c.preproduction = true
|
11
|
+
c.client_id = 'example'
|
12
|
+
c.client_passphrase = 'uyWsmnwMQyTnqKgi8Y35A3eVB7bGhqrebYqA1tL6x2vYNpGPiY'
|
42
13
|
end
|
metadata
CHANGED
@@ -1,191 +1,144 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mangopay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geoffroy Lorieux
|
8
|
-
- Vincent Cogne
|
9
|
-
- Eric Larch
|
10
8
|
autorequire:
|
11
9
|
bindir: bin
|
12
10
|
cert_chain: []
|
13
|
-
date: 2013-
|
11
|
+
date: 2013-08-29 00:00:00.000000000 Z
|
14
12
|
dependencies:
|
15
13
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
14
|
+
name: multi_json
|
17
15
|
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
19
|
+
version: 1.7.7
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
23
|
requirements:
|
26
24
|
- - ~>
|
27
25
|
- !ruby/object:Gem::Version
|
28
|
-
version: 1.
|
29
|
-
- !ruby/object:Gem::Dependency
|
30
|
-
name: multipart-post
|
31
|
-
requirement: !ruby/object:Gem::Requirement
|
32
|
-
requirements:
|
33
|
-
- - ~>
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: 1.2.0
|
36
|
-
type: :runtime
|
37
|
-
prerelease: false
|
38
|
-
version_requirements: !ruby/object:Gem::Requirement
|
39
|
-
requirements:
|
40
|
-
- - ~>
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 1.2.0
|
26
|
+
version: 1.7.7
|
43
27
|
- !ruby/object:Gem::Dependency
|
44
28
|
name: rake
|
45
29
|
requirement: !ruby/object:Gem::Requirement
|
46
30
|
requirements:
|
47
31
|
- - ~>
|
48
32
|
- !ruby/object:Gem::Version
|
49
|
-
version: 10.0
|
33
|
+
version: 10.1.0
|
50
34
|
type: :development
|
51
35
|
prerelease: false
|
52
36
|
version_requirements: !ruby/object:Gem::Requirement
|
53
37
|
requirements:
|
54
38
|
- - ~>
|
55
39
|
- !ruby/object:Gem::Version
|
56
|
-
version: 10.0
|
57
|
-
- !ruby/object:Gem::Dependency
|
58
|
-
name: spork
|
59
|
-
requirement: !ruby/object:Gem::Requirement
|
60
|
-
requirements:
|
61
|
-
- - ~>
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: 0.9.2
|
64
|
-
type: :development
|
65
|
-
prerelease: false
|
66
|
-
version_requirements: !ruby/object:Gem::Requirement
|
67
|
-
requirements:
|
68
|
-
- - ~>
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: 0.9.2
|
40
|
+
version: 10.1.0
|
71
41
|
- !ruby/object:Gem::Dependency
|
72
42
|
name: rspec
|
73
43
|
requirement: !ruby/object:Gem::Requirement
|
74
44
|
requirements:
|
75
45
|
- - ~>
|
76
46
|
- !ruby/object:Gem::Version
|
77
|
-
version: 2.
|
47
|
+
version: 2.14.1
|
78
48
|
type: :development
|
79
49
|
prerelease: false
|
80
50
|
version_requirements: !ruby/object:Gem::Requirement
|
81
51
|
requirements:
|
82
52
|
- - ~>
|
83
53
|
- !ruby/object:Gem::Version
|
84
|
-
version: 2.
|
54
|
+
version: 2.14.1
|
85
55
|
- !ruby/object:Gem::Dependency
|
86
|
-
name:
|
87
|
-
requirement: !ruby/object:Gem::Requirement
|
88
|
-
requirements:
|
89
|
-
- - ~>
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
version: 2.4.0
|
92
|
-
type: :development
|
93
|
-
prerelease: false
|
94
|
-
version_requirements: !ruby/object:Gem::Requirement
|
95
|
-
requirements:
|
96
|
-
- - ~>
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
version: 2.4.0
|
99
|
-
- !ruby/object:Gem::Dependency
|
100
|
-
name: webmock
|
56
|
+
name: capybara
|
101
57
|
requirement: !ruby/object:Gem::Requirement
|
102
58
|
requirements:
|
103
59
|
- - ~>
|
104
60
|
- !ruby/object:Gem::Version
|
105
|
-
version: 1.
|
61
|
+
version: 2.1.0
|
106
62
|
type: :development
|
107
63
|
prerelease: false
|
108
64
|
version_requirements: !ruby/object:Gem::Requirement
|
109
65
|
requirements:
|
110
66
|
- - ~>
|
111
67
|
- !ruby/object:Gem::Version
|
112
|
-
version: 1.
|
68
|
+
version: 2.1.0
|
113
69
|
- !ruby/object:Gem::Dependency
|
114
|
-
name: capybara
|
70
|
+
name: capybara-webkit
|
115
71
|
requirement: !ruby/object:Gem::Requirement
|
116
72
|
requirements:
|
117
73
|
- - ~>
|
118
74
|
- !ruby/object:Gem::Version
|
119
|
-
version:
|
75
|
+
version: 1.0.0
|
120
76
|
type: :development
|
121
77
|
prerelease: false
|
122
78
|
version_requirements: !ruby/object:Gem::Requirement
|
123
79
|
requirements:
|
124
80
|
- - ~>
|
125
81
|
- !ruby/object:Gem::Version
|
126
|
-
version:
|
82
|
+
version: 1.0.0
|
127
83
|
- !ruby/object:Gem::Dependency
|
128
|
-
name:
|
84
|
+
name: rails
|
129
85
|
requirement: !ruby/object:Gem::Requirement
|
130
86
|
requirements:
|
131
87
|
- - ~>
|
132
88
|
- !ruby/object:Gem::Version
|
133
|
-
version: 0.
|
89
|
+
version: 4.0.0
|
134
90
|
type: :development
|
135
91
|
prerelease: false
|
136
92
|
version_requirements: !ruby/object:Gem::Requirement
|
137
93
|
requirements:
|
138
94
|
- - ~>
|
139
95
|
- !ruby/object:Gem::Version
|
140
|
-
version: 0.
|
96
|
+
version: 4.0.0
|
141
97
|
description: |2
|
142
98
|
The mangopay Gem makes interacting with MangoPay Services much easier.
|
143
|
-
For any questions regarding the use of MangoPay's
|
99
|
+
For any questions regarding the use of MangoPay's Services feel free to contact us at http://www.mangopay.com/contact-us/
|
144
100
|
You can find more documentation about MangoPay Services at http://www.mangopay.com/
|
145
101
|
email: it-support@mangopay.com
|
146
|
-
executables:
|
102
|
+
executables:
|
103
|
+
- mangopay
|
147
104
|
extensions: []
|
148
105
|
extra_rdoc_files: []
|
149
106
|
files:
|
107
|
+
- .gitignore
|
108
|
+
- .rspec
|
109
|
+
- Gemfile
|
110
|
+
- LICENSE
|
111
|
+
- README.md
|
112
|
+
- bin/mangopay
|
113
|
+
- lib/generators/mangopay/install_generator.rb
|
114
|
+
- lib/generators/templates/mangopay.rb
|
150
115
|
- lib/mangopay.rb
|
151
|
-
- lib/mangopay/
|
152
|
-
- lib/mangopay/
|
153
|
-
- lib/mangopay/
|
154
|
-
- lib/mangopay/
|
155
|
-
- lib/mangopay/
|
156
|
-
- lib/mangopay/
|
157
|
-
- lib/mangopay/
|
158
|
-
- lib/mangopay/
|
159
|
-
- lib/mangopay/
|
116
|
+
- lib/mangopay/bank_account.rb
|
117
|
+
- lib/mangopay/client.rb
|
118
|
+
- lib/mangopay/errors.rb
|
119
|
+
- lib/mangopay/http_calls.rb
|
120
|
+
- lib/mangopay/json.rb
|
121
|
+
- lib/mangopay/legal_user.rb
|
122
|
+
- lib/mangopay/natural_user.rb
|
123
|
+
- lib/mangopay/payin.rb
|
124
|
+
- lib/mangopay/payout.rb
|
125
|
+
- lib/mangopay/resource.rb
|
126
|
+
- lib/mangopay/transaction.rb
|
160
127
|
- lib/mangopay/transfer.rb
|
161
128
|
- lib/mangopay/user.rb
|
129
|
+
- lib/mangopay/version.rb
|
162
130
|
- lib/mangopay/wallet.rb
|
163
|
-
-
|
164
|
-
- lib/mangopay/
|
165
|
-
-
|
166
|
-
-
|
167
|
-
-
|
168
|
-
-
|
169
|
-
- spec/lib/mangopay/
|
170
|
-
- spec/lib/mangopay/card_spec.rb
|
171
|
-
- spec/lib/mangopay/contribution_spec.rb
|
172
|
-
- spec/lib/mangopay/expense_spec.rb
|
173
|
-
- spec/lib/mangopay/immediate_contribution_spec.rb
|
174
|
-
- spec/lib/mangopay/operation_spec.rb
|
175
|
-
- spec/lib/mangopay/recurrent_contribution_spec.rb
|
176
|
-
- spec/lib/mangopay/ressource_spec.rb
|
177
|
-
- spec/lib/mangopay/strong_authentication_spec.rb
|
131
|
+
- mangopay.gemspec
|
132
|
+
- spec/lib/mangopay/bank_account_spec.rb
|
133
|
+
- spec/lib/mangopay/client_spec.rb
|
134
|
+
- spec/lib/mangopay/payin_spec.rb
|
135
|
+
- spec/lib/mangopay/payout_spec.rb
|
136
|
+
- spec/lib/mangopay/shared_resources.rb
|
137
|
+
- spec/lib/mangopay/transaction_spec.rb
|
178
138
|
- spec/lib/mangopay/transfer_spec.rb
|
179
139
|
- spec/lib/mangopay/user_spec.rb
|
180
140
|
- spec/lib/mangopay/wallet_spec.rb
|
181
|
-
- spec/lib/mangopay/withdrawal_contribution_spec.rb
|
182
|
-
- spec/lib/mangopay/withdrawal_spec.rb
|
183
141
|
- spec/spec_helper.rb
|
184
|
-
- spec/support-files/example.pem
|
185
|
-
- spec/support-files/test_upload.gif
|
186
|
-
- spec/support-files/test_upload.jpg
|
187
|
-
- spec/support-files/test_upload.pdf
|
188
|
-
- spec/support-files/test_upload.png
|
189
142
|
homepage: http://www.mangopay.com/
|
190
143
|
licenses:
|
191
144
|
- MIT
|
@@ -209,5 +162,15 @@ rubyforge_project:
|
|
209
162
|
rubygems_version: 2.0.3
|
210
163
|
signing_key:
|
211
164
|
specification_version: 4
|
212
|
-
summary:
|
213
|
-
test_files:
|
165
|
+
summary: Ruby bindings for the version 2 of the MangoPay API
|
166
|
+
test_files:
|
167
|
+
- spec/lib/mangopay/bank_account_spec.rb
|
168
|
+
- spec/lib/mangopay/client_spec.rb
|
169
|
+
- spec/lib/mangopay/payin_spec.rb
|
170
|
+
- spec/lib/mangopay/payout_spec.rb
|
171
|
+
- spec/lib/mangopay/shared_resources.rb
|
172
|
+
- spec/lib/mangopay/transaction_spec.rb
|
173
|
+
- spec/lib/mangopay/transfer_spec.rb
|
174
|
+
- spec/lib/mangopay/user_spec.rb
|
175
|
+
- spec/lib/mangopay/wallet_spec.rb
|
176
|
+
- spec/spec_helper.rb
|