mangopay 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +24 -0
  3. data/.rspec +2 -0
  4. data/Gemfile +1 -2
  5. data/LICENSE +20 -0
  6. data/README.md +19 -90
  7. data/bin/mangopay +9 -0
  8. data/lib/generators/mangopay/install_generator.rb +60 -0
  9. data/lib/generators/templates/mangopay.rb +5 -0
  10. data/lib/mangopay.rb +94 -24
  11. data/lib/mangopay/bank_account.rb +21 -0
  12. data/lib/mangopay/client.rb +17 -0
  13. data/lib/mangopay/errors.rb +4 -0
  14. data/lib/mangopay/http_calls.rb +53 -0
  15. data/lib/mangopay/json.rb +21 -0
  16. data/lib/mangopay/legal_user.rb +14 -0
  17. data/lib/mangopay/natural_user.rb +14 -0
  18. data/lib/mangopay/payin.rb +17 -0
  19. data/lib/mangopay/payout.rb +15 -0
  20. data/lib/mangopay/resource.rb +22 -0
  21. data/lib/mangopay/transaction.rb +11 -0
  22. data/lib/mangopay/transfer.rb +4 -55
  23. data/lib/mangopay/user.rb +4 -145
  24. data/lib/mangopay/version.rb +3 -0
  25. data/lib/mangopay/wallet.rb +4 -90
  26. data/mangopay.gemspec +33 -0
  27. data/spec/lib/mangopay/bank_account_spec.rb +26 -0
  28. data/spec/lib/mangopay/client_spec.rb +27 -0
  29. data/spec/lib/mangopay/payin_spec.rb +31 -0
  30. data/spec/lib/mangopay/payout_spec.rb +24 -0
  31. data/spec/lib/mangopay/shared_resources.rb +183 -0
  32. data/spec/lib/mangopay/transaction_spec.rb +14 -0
  33. data/spec/lib/mangopay/transfer_spec.rb +25 -81
  34. data/spec/lib/mangopay/user_spec.rb +37 -103
  35. data/spec/lib/mangopay/wallet_spec.rb +24 -73
  36. data/spec/spec_helper.rb +9 -38
  37. metadata +60 -97
  38. data/CONTRIBUTING.md +0 -51
  39. data/Rakefile +0 -5
  40. data/lib/mangopay/beneficiary.rb +0 -72
  41. data/lib/mangopay/card.rb +0 -42
  42. data/lib/mangopay/contribution.rb +0 -61
  43. data/lib/mangopay/expense.rb +0 -17
  44. data/lib/mangopay/immediate_contribution.rb +0 -58
  45. data/lib/mangopay/operation.rb +0 -16
  46. data/lib/mangopay/recurrent_contribution.rb +0 -62
  47. data/lib/mangopay/ressource.rb +0 -96
  48. data/lib/mangopay/strong_authentication.rb +0 -28
  49. data/lib/mangopay/withdrawal.rb +0 -40
  50. data/lib/mangopay/withdrawal_contribution.rb +0 -32
  51. data/spec/lib/mangopay/beneficiary_spec.rb +0 -124
  52. data/spec/lib/mangopay/card_spec.rb +0 -52
  53. data/spec/lib/mangopay/contribution_spec.rb +0 -65
  54. data/spec/lib/mangopay/expense_spec.rb +0 -10
  55. data/spec/lib/mangopay/immediate_contribution_spec.rb +0 -73
  56. data/spec/lib/mangopay/operation_spec.rb +0 -8
  57. data/spec/lib/mangopay/recurrent_contribution_spec.rb +0 -55
  58. data/spec/lib/mangopay/ressource_spec.rb +0 -5
  59. data/spec/lib/mangopay/strong_authentication_spec.rb +0 -82
  60. data/spec/lib/mangopay/withdrawal_contribution_spec.rb +0 -44
  61. data/spec/lib/mangopay/withdrawal_spec.rb +0 -98
  62. data/spec/support-files/example.pem +0 -49
  63. data/spec/support-files/test_upload.gif +0 -0
  64. data/spec/support-files/test_upload.jpg +0 -0
  65. data/spec/support-files/test_upload.pdf +0 -0
  66. 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
- let(:new_user) {
6
- MangoPay::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
- 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
- describe "GET" do
40
- it "gets the user infos" do
41
- user = MangoPay::User.details(new_user["ID"])
11
+ it 'creates a new legal user' do
12
+ expect(new_legal_user["LegalRepresentativeFirstName"]).to eq('John')
13
+ end
14
+ end
42
15
 
43
- expect(user["FirstName"]).to eq(new_user["FirstName"])
44
- expect(user["LastName"]).to eq(new_user["LastName"])
45
- expect(user["Email"]).to eq(new_user["Email"])
46
- expect(user["ID"]).to eq(new_user["ID"])
47
- end
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
- describe "UPDATE" do
51
- it "update the user infos" do
52
- user = MangoPay::User.update(new_user["ID"], {
53
- 'Tag' => 'test-update',
54
- 'Email' => 'mynew@email.com',
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
- describe "GET_WALLETS" do
68
- it "get an empty list of wallets" do
69
- wallets = MangoPay::User.get_wallets(new_user["ID"])
70
- expect(wallets).to be_empty
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
- describe "CARDS" do
81
- it "gets the user cards" do
82
- cards = MangoPay::User.cards(new_user["ID"])
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
- describe "OPERATIONS" do
88
- it "gets all the users operations" do
89
- operations = MangoPay::User.operations(new_user['ID'])
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
- describe "STRONG_AUTHENTICATION" do
99
- it "creates a new strong authentication request" do
100
- expect(new_strong_authentication['ID']).not_to be_nil
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
- describe "EXPENSE_SITES" do
119
- it "get the expense sites for the given user" do
120
- expense_sites = MangoPay::User.expense_sites(new_user['ID'], new_wallet['ID'])
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
- let(:new_user) {
6
- MangoPay::User.create({
7
- 'Tag' => 'test',
8
- 'Email' => 'my@email.com',
9
- 'FirstName' => 'John',
10
- 'LastName' => 'Doe',
11
- 'CanRegisterMeanOfPayment' => true
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
- describe "GET_OWNERS" do
55
- it "get the wallet's owners" do
56
- wallet = MangoPay::Wallet.get_owners(new_wallet["ID"])
57
- expect(wallet[0]['ID']).to eq(new_user['ID'])
58
- end
59
- end
60
-
61
- describe "GET_CONTRIBUTORS" do
62
- it "get the wallet's contributors" do
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
- describe "OPERATIONS" do
76
- it "gets the wallet operations" do
77
- operations = MangoPay::Wallet.operations(new_wallet['ID'])
78
- expect(operations).to be_kind_of(Array)
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
- require 'rubygems'
2
- require 'spork'
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
- 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'
4
+ require 'capybara/rspec'
5
+ require 'capybara-webkit'
15
6
 
16
- Capybara.javascript_driver = :webkit
17
- Capybara.default_driver = :webkit
7
+ Capybara.default_driver = :webkit
18
8
 
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
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: 2.0.0
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-07-03 00:00:00.000000000 Z
11
+ date: 2013-08-29 00:00:00.000000000 Z
14
12
  dependencies:
15
13
  - !ruby/object:Gem::Dependency
16
- name: json
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.8.0
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.8.0
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.4
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.4
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.13.0
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.13.0
54
+ version: 2.14.1
85
55
  - !ruby/object:Gem::Dependency
86
- name: vcr
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.11.0
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.11.0
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: 2.0.2
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: 2.0.2
82
+ version: 1.0.0
127
83
  - !ruby/object:Gem::Dependency
128
- name: capybara-webkit
84
+ name: rails
129
85
  requirement: !ruby/object:Gem::Requirement
130
86
  requirements:
131
87
  - - ~>
132
88
  - !ruby/object:Gem::Version
133
- version: 0.14.2
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.14.2
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 Wallet Services feel free to contact us at http://www.mangopay.com/contact-us/
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/beneficiary.rb
152
- - lib/mangopay/card.rb
153
- - lib/mangopay/contribution.rb
154
- - lib/mangopay/expense.rb
155
- - lib/mangopay/immediate_contribution.rb
156
- - lib/mangopay/operation.rb
157
- - lib/mangopay/recurrent_contribution.rb
158
- - lib/mangopay/ressource.rb
159
- - lib/mangopay/strong_authentication.rb
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
- - lib/mangopay/withdrawal.rb
164
- - lib/mangopay/withdrawal_contribution.rb
165
- - CONTRIBUTING.md
166
- - Gemfile
167
- - README.md
168
- - Rakefile
169
- - spec/lib/mangopay/beneficiary_spec.rb
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: Gem for interacting with the Mango Pay API
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