mangopay 3.0.15 → 3.0.16
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/lib/mangopay.rb +5 -1
- data/lib/mangopay/version.rb +1 -1
- data/mangopay.gemspec +1 -1
- data/spec/mangopay/bank_account_spec.rb +3 -2
- data/spec/mangopay/shared_resources.rb +34 -6
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e8037f34a179e57dd6129b966739592ec9cec3d
|
|
4
|
+
data.tar.gz: e1556e1207e2e08e39aae7eced01d6f04f5bff54
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7416eae6bb736ac9e65ff6d2a1ea481e754d61fc8dec80272a3130ec27c83e549973b0b457b149bef4cf32a3cb834b057d9734ba1b7b1366cb483e2c3cbbe358
|
|
7
|
+
data.tar.gz: fb788550efb3dda9db7b1e8dda9487e6230c09102b41ea7a7be20f56c07e9283f71b830e3f1cc8141a95ca256cd4bac0116f9362b094273280c40c8763e67e55
|
data/lib/mangopay.rb
CHANGED
|
@@ -51,8 +51,12 @@ module MangoPay
|
|
|
51
51
|
class << self
|
|
52
52
|
attr_accessor :configuration
|
|
53
53
|
|
|
54
|
+
def version_code
|
|
55
|
+
"v2.01"
|
|
56
|
+
end
|
|
57
|
+
|
|
54
58
|
def api_path
|
|
55
|
-
"
|
|
59
|
+
"/#{version_code}/#{MangoPay.configuration.client_id}"
|
|
56
60
|
end
|
|
57
61
|
|
|
58
62
|
def configure
|
data/lib/mangopay/version.rb
CHANGED
data/mangopay.gemspec
CHANGED
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
|
12
12
|
You can find more documentation about MangoPay Services at http://docs.mangopay.com/
|
|
13
13
|
EOF
|
|
14
14
|
s.authors = ['Geoffroy Lorieux', 'Sergiusz Woznicki']
|
|
15
|
-
s.email = '
|
|
15
|
+
s.email = 'support@mangopay.com'
|
|
16
16
|
s.homepage = 'http://docs.mangopay.com/'
|
|
17
17
|
s.license = 'MIT'
|
|
18
18
|
|
|
@@ -2,8 +2,9 @@ describe MangoPay::BankAccount do
|
|
|
2
2
|
include_context 'bank_accounts'
|
|
3
3
|
|
|
4
4
|
def create(params)
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
user = new_natural_user
|
|
6
|
+
params_fixed = { OwnerName: 'John', OwnerAddress: user['Address'] }.merge(params)
|
|
7
|
+
MangoPay::BankAccount.create(user['Id'], params_fixed)
|
|
7
8
|
end
|
|
8
9
|
|
|
9
10
|
describe 'CREATE' do
|
|
@@ -40,7 +40,14 @@ shared_context 'users' do
|
|
|
40
40
|
Email: 'my@email.com',
|
|
41
41
|
FirstName: 'John',
|
|
42
42
|
LastName: 'Doe',
|
|
43
|
-
Address:
|
|
43
|
+
Address: {
|
|
44
|
+
AddressLine1: 'Le Palais Royal',
|
|
45
|
+
AddressLine2: '8 Rue de Montpensier',
|
|
46
|
+
City: 'Paris',
|
|
47
|
+
Region: '',
|
|
48
|
+
PostalCode: '75001',
|
|
49
|
+
Country: 'FR'
|
|
50
|
+
},
|
|
44
51
|
Birthday: 1300186358,
|
|
45
52
|
Birthplace: 'Paris',
|
|
46
53
|
Nationality: 'FR',
|
|
@@ -55,10 +62,24 @@ shared_context 'users' do
|
|
|
55
62
|
Name: 'Super',
|
|
56
63
|
Email: 'super@email.com',
|
|
57
64
|
LegalPersonType: 'BUSINESS',
|
|
58
|
-
HeadquartersAddress:
|
|
65
|
+
HeadquartersAddress: {
|
|
66
|
+
AddressLine1: '6 Parvis Notre-Dame',
|
|
67
|
+
AddressLine2: 'Pl. Jean-Paul II',
|
|
68
|
+
City: 'Paris',
|
|
69
|
+
Region: '',
|
|
70
|
+
PostalCode: '75004',
|
|
71
|
+
Country: 'FR'
|
|
72
|
+
},
|
|
59
73
|
LegalRepresentativeFirstName: 'John',
|
|
60
74
|
LegalRepresentativeLastName: 'Doe',
|
|
61
|
-
LegalRepresentativeAdress:
|
|
75
|
+
LegalRepresentativeAdress: {
|
|
76
|
+
AddressLine1: '38 Rue de Montpensier',
|
|
77
|
+
AddressLine2: '',
|
|
78
|
+
City: 'Paris',
|
|
79
|
+
Region: '',
|
|
80
|
+
PostalCode: '75001',
|
|
81
|
+
Country: 'FR'
|
|
82
|
+
},
|
|
62
83
|
LegalRepresentativeEmail: 'john@doe.com',
|
|
63
84
|
LegalRepresentativeBirthday: 1300186358,
|
|
64
85
|
LegalRepresentativeNationality: 'FR',
|
|
@@ -107,9 +128,16 @@ shared_context 'bank_accounts' do
|
|
|
107
128
|
MangoPay::BankAccount.create(new_natural_user['Id'], {
|
|
108
129
|
Type: 'IBAN',
|
|
109
130
|
OwnerName: 'John',
|
|
110
|
-
OwnerAddress:
|
|
111
|
-
|
|
112
|
-
|
|
131
|
+
OwnerAddress: {
|
|
132
|
+
AddressLine1: 'Le Palais Royal',
|
|
133
|
+
AddressLine2: '8 Rue de Montpensier',
|
|
134
|
+
City: 'Paris',
|
|
135
|
+
Region: '',
|
|
136
|
+
PostalCode: '75001',
|
|
137
|
+
Country: 'FR'
|
|
138
|
+
},
|
|
139
|
+
IBAN: 'FR7618829754160173622224154',
|
|
140
|
+
BIC: 'CMBRFR2BCME',
|
|
113
141
|
Tag: 'Test bank account'
|
|
114
142
|
})
|
|
115
143
|
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mangopay
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Geoffroy Lorieux
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-
|
|
12
|
+
date: 2015-07-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: multi_json
|
|
@@ -57,7 +57,7 @@ description: |2
|
|
|
57
57
|
The mangopay Gem makes interacting with MangoPay Services much easier.
|
|
58
58
|
For any questions regarding the use of MangoPay's Services feel free to contact us at http://www.mangopay.com/get-started-2/
|
|
59
59
|
You can find more documentation about MangoPay Services at http://docs.mangopay.com/
|
|
60
|
-
email:
|
|
60
|
+
email: support@mangopay.com
|
|
61
61
|
executables:
|
|
62
62
|
- mangopay
|
|
63
63
|
extensions: []
|