leetchi-wallet-services 1.0.0 → 1.1.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 +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
@@ -0,0 +1,89 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api-preprod.leetchi.com/v1/partner/example/expenses/1?ts=1363948918
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Leetchi-Signature:
|
11
|
+
- BcYvrtrmog8szt+agdOlVbj8gcLm7hvzNZIINBMJ4V527l9CqmHAKIGOBjAeQMzMv9tenqhJK1PS2VjuLgwqnO7pczmGlsjZ+u+apXD+4Yv0mWa56wd/8PWC6c0gJ274/8i8bc+vomzbVvToEleYB2PsdjUGORfKcwIwE258nDVG7h9X0hClhcpfoQOqkEPXtLdutCrKQMxFxLPUhkvoJywkp7ubUH3IxtLQm7zR1unxDN5Uqc89/P+UvMSk3Bkojx1SDtrzQLWe6YnNJtvUyrkSPGNC6dirpprCIAao3LvYiozFbXQsBkVVRAvomchgqltZbzi881oVevzLfMFeYQ==
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- '*/*'
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 404
|
23
|
+
message: Not Found
|
24
|
+
headers:
|
25
|
+
Cache-Control:
|
26
|
+
- private
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Server:
|
30
|
+
- Microsoft-IIS/8.0
|
31
|
+
X-Aspnetmvc-Version:
|
32
|
+
- '2.0'
|
33
|
+
X-Aspnet-Version:
|
34
|
+
- 4.0.30319
|
35
|
+
X-Powered-By:
|
36
|
+
- ASP.NET
|
37
|
+
Date:
|
38
|
+
- Fri, 22 Mar 2013 10:41:57 GMT
|
39
|
+
Content-Length:
|
40
|
+
- '0'
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: ''
|
44
|
+
http_version:
|
45
|
+
recorded_at: Fri, 22 Mar 2013 10:41:58 GMT
|
46
|
+
- request:
|
47
|
+
method: get
|
48
|
+
uri: https://api-preprod.leetchi.com/v1/partner/example/expenses/1?ts=1363949151
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ''
|
52
|
+
headers:
|
53
|
+
X-Leetchi-Signature:
|
54
|
+
- p/mCRr369FTZPgoGqEa+EMaIS3aauRxbsx5mRP4/uPoDQCBX52V/JcNFJAtUoM0EbolnY1FqI4KJ+y7H1MwmFPiVMPF3L0E3PC5dGM2V+tm/MQZIWaY94KIA2tRZ75mGeRwO8xCNc/X4m+JKpdk4umgfO9gLr6SV/8IPutVakPm6a/YHF42RL3gZ/wdUgSsWEF52kZPpNJXPkJfWZiJqhTVEsCDQF/DFLBB3ZzlmX9olrrenNuhgl6dL8CSL2IJNdwPkfzdAJ0WpUxo7MPvQjD/P95Nw0qWjQJWL06emT+60MzMFyjK8o/pCbgOVehZ4RvVF+LPEnJmSif58rb8rPQ==
|
55
|
+
Content-Type:
|
56
|
+
- application/json
|
57
|
+
Accept-Encoding:
|
58
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
59
|
+
Accept:
|
60
|
+
- '*/*'
|
61
|
+
User-Agent:
|
62
|
+
- Ruby
|
63
|
+
response:
|
64
|
+
status:
|
65
|
+
code: 404
|
66
|
+
message: Not Found
|
67
|
+
headers:
|
68
|
+
Cache-Control:
|
69
|
+
- private
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
72
|
+
Server:
|
73
|
+
- Microsoft-IIS/8.0
|
74
|
+
X-Aspnetmvc-Version:
|
75
|
+
- '2.0'
|
76
|
+
X-Aspnet-Version:
|
77
|
+
- 4.0.30319
|
78
|
+
X-Powered-By:
|
79
|
+
- ASP.NET
|
80
|
+
Date:
|
81
|
+
- Fri, 22 Mar 2013 10:45:50 GMT
|
82
|
+
Content-Length:
|
83
|
+
- '0'
|
84
|
+
body:
|
85
|
+
encoding: UTF-8
|
86
|
+
string: ''
|
87
|
+
http_version:
|
88
|
+
recorded_at: Fri, 22 Mar 2013 10:45:51 GMT
|
89
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,89 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api-preprod.leetchi.com/v1/partner/example/operations/1?ts=1363948918
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Leetchi-Signature:
|
11
|
+
- opvFj81dSJV5qQAHDZhXKk/HeVSMIZSphGAHqj01TKWPG1FZP35u+o0if4MINe/cWBJDPdBL4M3qc8zUnax1W7/xJcqHBIzs4j0LYzHp6fABimvYcfcA0MvlEUF/MZ/5BFHzFYB3/bHBUSvlnfqPiYWNwVMDupOL4cXjb0QYSKlEz8PQNCroYf9amhlv+bgx7agVnwsBc5aY3f9JtZHrFA/0NYKLdiuZzJS/+g1QSfznKwZJGFuDZ1beEHmk7mMGec/b8mwGkOO6Q+xYs9gHtCiLPwWN3rzrHZH6VFseIsvzmcBDGkjMb4qfHsULQ++JIhvcLMCtmWaJX8aiUn/RhA==
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- '*/*'
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 404
|
23
|
+
message: Not Found
|
24
|
+
headers:
|
25
|
+
Cache-Control:
|
26
|
+
- private
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Server:
|
30
|
+
- Microsoft-IIS/8.0
|
31
|
+
X-Aspnetmvc-Version:
|
32
|
+
- '2.0'
|
33
|
+
X-Aspnet-Version:
|
34
|
+
- 4.0.30319
|
35
|
+
X-Powered-By:
|
36
|
+
- ASP.NET
|
37
|
+
Date:
|
38
|
+
- Fri, 22 Mar 2013 10:41:57 GMT
|
39
|
+
Content-Length:
|
40
|
+
- '0'
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: ''
|
44
|
+
http_version:
|
45
|
+
recorded_at: Fri, 22 Mar 2013 10:41:58 GMT
|
46
|
+
- request:
|
47
|
+
method: get
|
48
|
+
uri: https://api-preprod.leetchi.com/v1/partner/example/operations/1?ts=1363949151
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ''
|
52
|
+
headers:
|
53
|
+
X-Leetchi-Signature:
|
54
|
+
- fZJqHQ2FGOljl6/96/R1N6x6FnY/icK18vKMs5wDKFtz6SQdDEXWvsBxLR4eF8G6wYAKvB2G2OZ1NHo20y1t3Oi0NUE2882LC5Yjf+oq5NcVRDrIU37k+6UzIDfxfnTEYVEG3Cu/xxeVymc8MHRPCDmZUbjcqW5N2ooydiiNotTpgVgm724RWr6Wrudd2NAWF9zdsYcVduKzYt0FrZK7kwXuuMs62AZn/sAc0AY3ZaWaBprBQ5v6FKE9o4QXBpNRHirXXo3wCwZnmVLNzvxQQht4/LByw3x8u1ye3Et7WT3I4/t1xSPYuVMe9rWLaBMZ+XigplxW4WsSl/64W9Sarg==
|
55
|
+
Content-Type:
|
56
|
+
- application/json
|
57
|
+
Accept-Encoding:
|
58
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
59
|
+
Accept:
|
60
|
+
- '*/*'
|
61
|
+
User-Agent:
|
62
|
+
- Ruby
|
63
|
+
response:
|
64
|
+
status:
|
65
|
+
code: 404
|
66
|
+
message: Not Found
|
67
|
+
headers:
|
68
|
+
Cache-Control:
|
69
|
+
- private
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
72
|
+
Server:
|
73
|
+
- Microsoft-IIS/8.0
|
74
|
+
X-Aspnetmvc-Version:
|
75
|
+
- '2.0'
|
76
|
+
X-Aspnet-Version:
|
77
|
+
- 4.0.30319
|
78
|
+
X-Powered-By:
|
79
|
+
- ASP.NET
|
80
|
+
Date:
|
81
|
+
- Fri, 22 Mar 2013 10:45:50 GMT
|
82
|
+
Content-Length:
|
83
|
+
- '0'
|
84
|
+
body:
|
85
|
+
encoding: UTF-8
|
86
|
+
string: ''
|
87
|
+
http_version:
|
88
|
+
recorded_at: Fri, 22 Mar 2013 10:45:51 GMT
|
89
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,347 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api-preprod.leetchi.com/v1/partner/example/users?ts=1363949043
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"Tag":"test","Email":"my@email.com","FirstName":"John","LastName":"Doe","CanRegisterMeanOfPayment":true}'
|
9
|
+
headers:
|
10
|
+
X-Leetchi-Signature:
|
11
|
+
- iEVXmC2e+etOU0u8QGgmJ8MPv64z1UoS3VXNSsARFgoX8/EHtJSSarq23aRhQO3uD/WmuqUHYnHksaDdBJg102N7MedrZh4ZyGh8O9oDg9xoB2TgIhnLFPb8kaHxJU7LPmh6EU+ogoWLO3tpGnx52tI1ld+hOUMciRK0rPMdkmY8PFltC5gszDd4S8sO4BkQu11h61EC0MbElY9rtc7rOm3YIfvVFJTOhp7cw5jEI0mY1n73EPt/iPdwj7LlYYmtxA1wxqsAlK3HVfOV4yMJyBc/QsvIzLWvWEwOzeL464yot0U6BgIdX97H/Y5cisZIDClDkME9v9lpi1K4GJ4Lcg==
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- '*/*'
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Cache-Control:
|
26
|
+
- private
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Server:
|
30
|
+
- Microsoft-IIS/8.0
|
31
|
+
X-Aspnetmvc-Version:
|
32
|
+
- '2.0'
|
33
|
+
X-Aspnet-Version:
|
34
|
+
- 4.0.30319
|
35
|
+
X-Powered-By:
|
36
|
+
- ASP.NET
|
37
|
+
Date:
|
38
|
+
- Fri, 22 Mar 2013 10:44:04 GMT
|
39
|
+
Content-Length:
|
40
|
+
- '365'
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"Email":"my@email.com","FirstName":"John","LastName":"Doe","CanRegisterMeanOfPayment":true,"HasRegisteredMeansOfPayment":false,"IP":null,"Birthday":null,"Password":"XeuMt9zFc4mSzZDzo6bNB7YvE9nCRK","PersonalWalletAmount":0,"IsStrongAuthenticated":false,"Nationality":null,"PersonType":null,"ID":226587,"Tag":"test","CreationDate":1363949043,"UpdateDate":1363949043}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Fri, 22 Mar 2013 10:44:04 GMT
|
46
|
+
- request:
|
47
|
+
method: post
|
48
|
+
uri: https://api-preprod.leetchi.com/v1/partner/example/contributions?ts=1363949044
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"Tag":"test_contribution","UserID":226587,"WalletID":0,"Amount":10000,"ReturnURL":"https://leetchi.com","BankAccountBIC":"AGRIFRPP879"}'
|
52
|
+
headers:
|
53
|
+
X-Leetchi-Signature:
|
54
|
+
- C1UP3uKAozSRsujOYkV39Jl5yiZrW2A//OQvSdDvK1VOYN8c/su31N5GjnZNnfOiNYZ4T4PNkpm+E3y9QsjLqkgOR3rKcvaiCFBXz8dQQiBibEHVL6Tnmu9UpIRAYZ74vIXchYzBtHCzR7WfE3ZRZp1KY/l1rE2Cxm/+4hFVMx+9koYdl9YBq/fEj1X1xdA3/BTCGXQ3aqiOR76MukWhMw/hIYxnNVX/lAjMCjz5QxL/3QerjyYK5SM9mpK/q5z2CwGsZCVkENDyyJIjxKOAaAQicmXH0QrADqrDayTxAazvzMtxjL2yVMj30xIE7jHcmek0NPPobF88s3j5XmdT2Q==
|
55
|
+
Content-Type:
|
56
|
+
- application/json
|
57
|
+
Accept-Encoding:
|
58
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
59
|
+
Accept:
|
60
|
+
- '*/*'
|
61
|
+
User-Agent:
|
62
|
+
- Ruby
|
63
|
+
response:
|
64
|
+
status:
|
65
|
+
code: 200
|
66
|
+
message: OK
|
67
|
+
headers:
|
68
|
+
Cache-Control:
|
69
|
+
- private
|
70
|
+
Content-Type:
|
71
|
+
- application/json; charset=utf-8
|
72
|
+
Server:
|
73
|
+
- Microsoft-IIS/8.0
|
74
|
+
X-Aspnetmvc-Version:
|
75
|
+
- '2.0'
|
76
|
+
X-Aspnet-Version:
|
77
|
+
- 4.0.30319
|
78
|
+
X-Powered-By:
|
79
|
+
- ASP.NET
|
80
|
+
Date:
|
81
|
+
- Fri, 22 Mar 2013 10:44:05 GMT
|
82
|
+
Content-Length:
|
83
|
+
- '601'
|
84
|
+
body:
|
85
|
+
encoding: UTF-8
|
86
|
+
string: '{"UserID":226587,"WalletID":0,"Amount":10000,"ClientFeeAmount":0,"LeetchiFeeAmount":0,"IsSucceeded":false,"IsCompleted":false,"PaymentURL":"https://homologation-secure-p.payline.com/webpayment/step2.do?reqCode=prepareStep2&token=1P6jVlDl9eTRi3GnzG211363949044829","TemplateURL":null,"ReturnURL":"https://leetchi.com/?ContributionID=226588","RegisterMeanOfPayment":false,"Error":null,"PaymentCardID":0,"Culture":"fr","Type":"Payline","PaymentMethodType":"cb_visa_mastercard","AnswerCode":null,"AnswerMessage":null,"ID":226588,"Tag":"test_contribution","CreationDate":1363949044,"UpdateDate":1363949045}'
|
87
|
+
http_version:
|
88
|
+
recorded_at: Fri, 22 Mar 2013 10:44:06 GMT
|
89
|
+
- request:
|
90
|
+
method: post
|
91
|
+
uri: https://api-preprod.leetchi.com/v1/partner/example/users?ts=1363949046
|
92
|
+
body:
|
93
|
+
encoding: UTF-8
|
94
|
+
string: '{"Tag":"test","Email":"my@email.com","FirstName":"John","LastName":"Doe","CanRegisterMeanOfPayment":true}'
|
95
|
+
headers:
|
96
|
+
X-Leetchi-Signature:
|
97
|
+
- BDSFKY2vPIcBGjMSPIpysPTS4rGsZd+naZn+XRcx2CxL+Uov3B/2rXnpjk8ya493IRfPiZp5pfgOW1+hwxQocTV2RSHQAyYiVq8uVPK67WQxUTeVqoXd/FPKMGELPIYezgdGN/l59hEHUhbv922Vzid7JL2tR3u8PmNzeigYSqBZnhmNI+s3RYi+1VikTvYk/nqHNEiZSw5Lta2Yx6JoEx4uiwQ5ZsJhki5GUfF0ncJsweTf/Bme2zRj0FB5iKNbkNzVM4qz6JNDR+iuDPublKfRhsSQbdIl45tKOKl23P92iqZgp2xDvloPRlITjrHcRWpN5NjAbn8TRstP5xHfCQ==
|
98
|
+
Content-Type:
|
99
|
+
- application/json
|
100
|
+
Accept-Encoding:
|
101
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
102
|
+
Accept:
|
103
|
+
- '*/*'
|
104
|
+
User-Agent:
|
105
|
+
- Ruby
|
106
|
+
response:
|
107
|
+
status:
|
108
|
+
code: 200
|
109
|
+
message: OK
|
110
|
+
headers:
|
111
|
+
Cache-Control:
|
112
|
+
- private
|
113
|
+
Content-Type:
|
114
|
+
- application/json; charset=utf-8
|
115
|
+
Server:
|
116
|
+
- Microsoft-IIS/8.0
|
117
|
+
X-Aspnetmvc-Version:
|
118
|
+
- '2.0'
|
119
|
+
X-Aspnet-Version:
|
120
|
+
- 4.0.30319
|
121
|
+
X-Powered-By:
|
122
|
+
- ASP.NET
|
123
|
+
Date:
|
124
|
+
- Fri, 22 Mar 2013 10:44:05 GMT
|
125
|
+
Content-Length:
|
126
|
+
- '365'
|
127
|
+
body:
|
128
|
+
encoding: UTF-8
|
129
|
+
string: '{"Email":"my@email.com","FirstName":"John","LastName":"Doe","CanRegisterMeanOfPayment":true,"HasRegisteredMeansOfPayment":false,"IP":null,"Birthday":null,"Password":"UTnpRPt0UoBdSEQzmh2t3yMaP0q8gt","PersonalWalletAmount":0,"IsStrongAuthenticated":false,"Nationality":null,"PersonType":null,"ID":226589,"Tag":"test","CreationDate":1363949045,"UpdateDate":1363949045}'
|
130
|
+
http_version:
|
131
|
+
recorded_at: Fri, 22 Mar 2013 10:44:06 GMT
|
132
|
+
- request:
|
133
|
+
method: post
|
134
|
+
uri: https://api-preprod.leetchi.com/v1/partner/example/contributions?ts=1363949046
|
135
|
+
body:
|
136
|
+
encoding: UTF-8
|
137
|
+
string: '{"Tag":"test_contribution","UserID":226589,"WalletID":0,"Amount":10000,"ReturnURL":"https://leetchi.com","BankAccountBIC":"AGRIFRPP879"}'
|
138
|
+
headers:
|
139
|
+
X-Leetchi-Signature:
|
140
|
+
- XHiKjoulnPHyufjowBQhW6u/qjFYoCmqK9gVvRRmhCYaJrT1EC9k7+BSDZQ6HcPloJbkmpzW+n/5Eq/9+eqSnVBadnOVX+AxafiGUyAtb67Bdug/h4LeX7p1WCLxyHKWK37j/qf4dxPBTIfT7RdQVJyb7MqD+THfNEbALsONLzs5sl3opbEIcRdt7yC1D3v6/TaCeRrtJesl5VyBAwgg7/CK8YGmWeuqNNNulCJLYki/ZFB5YKxfYKU9EXnx09Gq6igUk8k2LfzSiqgOtSoDwLxklN5rGy8nKL/KLACVQTJP1h04D3K74ymk5DwDcHuqbmg8XM9UPdn1Vc7jtNJTQQ==
|
141
|
+
Content-Type:
|
142
|
+
- application/json
|
143
|
+
Accept-Encoding:
|
144
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
145
|
+
Accept:
|
146
|
+
- '*/*'
|
147
|
+
User-Agent:
|
148
|
+
- Ruby
|
149
|
+
response:
|
150
|
+
status:
|
151
|
+
code: 200
|
152
|
+
message: OK
|
153
|
+
headers:
|
154
|
+
Cache-Control:
|
155
|
+
- private
|
156
|
+
Content-Type:
|
157
|
+
- application/json; charset=utf-8
|
158
|
+
Server:
|
159
|
+
- Microsoft-IIS/8.0
|
160
|
+
X-Aspnetmvc-Version:
|
161
|
+
- '2.0'
|
162
|
+
X-Aspnet-Version:
|
163
|
+
- 4.0.30319
|
164
|
+
X-Powered-By:
|
165
|
+
- ASP.NET
|
166
|
+
Date:
|
167
|
+
- Fri, 22 Mar 2013 10:44:07 GMT
|
168
|
+
Content-Length:
|
169
|
+
- '601'
|
170
|
+
body:
|
171
|
+
encoding: UTF-8
|
172
|
+
string: '{"UserID":226589,"WalletID":0,"Amount":10000,"ClientFeeAmount":0,"LeetchiFeeAmount":0,"IsSucceeded":false,"IsCompleted":false,"PaymentURL":"https://homologation-secure-p.payline.com/webpayment/step2.do?reqCode=prepareStep2&token=1VvZjlnzJnR2rouZsx601363949046759","TemplateURL":null,"ReturnURL":"https://leetchi.com/?ContributionID=226590","RegisterMeanOfPayment":false,"Error":null,"PaymentCardID":0,"Culture":"fr","Type":"Payline","PaymentMethodType":"cb_visa_mastercard","AnswerCode":null,"AnswerMessage":null,"ID":226590,"Tag":"test_contribution","CreationDate":1363949046,"UpdateDate":1363949047}'
|
173
|
+
http_version:
|
174
|
+
recorded_at: Fri, 22 Mar 2013 10:44:08 GMT
|
175
|
+
- request:
|
176
|
+
method: post
|
177
|
+
uri: https://api-preprod.leetchi.com/v1/partner/example/users?ts=1363949048
|
178
|
+
body:
|
179
|
+
encoding: UTF-8
|
180
|
+
string: '{"Tag":"test","Email":"my@email.com","FirstName":"John","LastName":"Doe","CanRegisterMeanOfPayment":true}'
|
181
|
+
headers:
|
182
|
+
X-Leetchi-Signature:
|
183
|
+
- F4/u3yQUjbyTrY949eV2SkwBVKyJ2RlRpVKAZJJSylln7eI1R44F5j6e+EmiKf0uT8/u8U3/2ZEdZQledUVbuMNn4ftZkCx8BZi82FUXbV/WlWMweb62iaFuVwSa7fZuF6zqUxvSLaPlJLguwYNpCkqvH9fUtBn1rYFlZ+46d2AuvK6OkiNBXZK6q/1+FvOiDJNS4pDt1H0XlpFXVXFJSPGjAuEEG/M3VAbzov9E/dcBl7uV0oNQgCfb470/PqBNGTPHZ3MimH79D1glyKQSmuBOLbA0cA5929SnkMh+pu9UehP0BfB718rlMtXciw5rZT0XLcPyQlXb4EN1AcCmyg==
|
184
|
+
Content-Type:
|
185
|
+
- application/json
|
186
|
+
Accept-Encoding:
|
187
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
188
|
+
Accept:
|
189
|
+
- '*/*'
|
190
|
+
User-Agent:
|
191
|
+
- Ruby
|
192
|
+
response:
|
193
|
+
status:
|
194
|
+
code: 200
|
195
|
+
message: OK
|
196
|
+
headers:
|
197
|
+
Cache-Control:
|
198
|
+
- private
|
199
|
+
Content-Type:
|
200
|
+
- application/json; charset=utf-8
|
201
|
+
Server:
|
202
|
+
- Microsoft-IIS/8.0
|
203
|
+
X-Aspnetmvc-Version:
|
204
|
+
- '2.0'
|
205
|
+
X-Aspnet-Version:
|
206
|
+
- 4.0.30319
|
207
|
+
X-Powered-By:
|
208
|
+
- ASP.NET
|
209
|
+
Date:
|
210
|
+
- Fri, 22 Mar 2013 10:44:07 GMT
|
211
|
+
Content-Length:
|
212
|
+
- '365'
|
213
|
+
body:
|
214
|
+
encoding: UTF-8
|
215
|
+
string: '{"Email":"my@email.com","FirstName":"John","LastName":"Doe","CanRegisterMeanOfPayment":true,"HasRegisteredMeansOfPayment":false,"IP":null,"Birthday":null,"Password":"X7ZCkCEjhZfxnYkypuQfYeKyRvhnK1","PersonalWalletAmount":0,"IsStrongAuthenticated":false,"Nationality":null,"PersonType":null,"ID":226591,"Tag":"test","CreationDate":1363949047,"UpdateDate":1363949047}'
|
216
|
+
http_version:
|
217
|
+
recorded_at: Fri, 22 Mar 2013 10:44:08 GMT
|
218
|
+
- request:
|
219
|
+
method: post
|
220
|
+
uri: https://api-preprod.leetchi.com/v1/partner/example/contributions?ts=1363949048
|
221
|
+
body:
|
222
|
+
encoding: UTF-8
|
223
|
+
string: '{"Tag":"test_contribution","UserID":226591,"WalletID":0,"Amount":10000,"ReturnURL":"https://leetchi.com","BankAccountBIC":"AGRIFRPP879"}'
|
224
|
+
headers:
|
225
|
+
X-Leetchi-Signature:
|
226
|
+
- dKtd0KmPJWkeXKRi0deNgtMTRIVGvDbtxnJ1yby8MuByyZ0t2P1IWcOKYA7T07eV7DaQoHaaZpDr7NZsDvDSdoSUy6MVZlS0bKq+vPkIToQyY8GkNM9Whhbotc8hupG66E5ezC1HKc8lLy1U4sS6uL0py4ZiBAXv9MmEW8D9ohRtwaZ2SPAWlZTD8T2i7Qp6qBoWGW7yPUaIWVYKhPAn0InT7FmTsQCUox4/eISAtiTRApaBq+fmVr65f8nePJUZ7wMSwzE/RpTP01joSNZPdDVEJra3zjRliu+G33lsFx5Ib4euk0UuTlnZbbQO4DcXcCGvouEAZqYXwMuIX/YJOg==
|
227
|
+
Content-Type:
|
228
|
+
- application/json
|
229
|
+
Accept-Encoding:
|
230
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
231
|
+
Accept:
|
232
|
+
- '*/*'
|
233
|
+
User-Agent:
|
234
|
+
- Ruby
|
235
|
+
response:
|
236
|
+
status:
|
237
|
+
code: 200
|
238
|
+
message: OK
|
239
|
+
headers:
|
240
|
+
Cache-Control:
|
241
|
+
- private
|
242
|
+
Content-Type:
|
243
|
+
- application/json; charset=utf-8
|
244
|
+
Server:
|
245
|
+
- Microsoft-IIS/8.0
|
246
|
+
X-Aspnetmvc-Version:
|
247
|
+
- '2.0'
|
248
|
+
X-Aspnet-Version:
|
249
|
+
- 4.0.30319
|
250
|
+
X-Powered-By:
|
251
|
+
- ASP.NET
|
252
|
+
Date:
|
253
|
+
- Fri, 22 Mar 2013 10:44:08 GMT
|
254
|
+
Content-Length:
|
255
|
+
- '601'
|
256
|
+
body:
|
257
|
+
encoding: UTF-8
|
258
|
+
string: '{"UserID":226591,"WalletID":0,"Amount":10000,"ClientFeeAmount":0,"LeetchiFeeAmount":0,"IsSucceeded":false,"IsCompleted":false,"PaymentURL":"https://homologation-secure-p.payline.com/webpayment/step2.do?reqCode=prepareStep2&token=168o0bUfLkVBcYx31oHM1363949048381","TemplateURL":null,"ReturnURL":"https://leetchi.com/?ContributionID=226592","RegisterMeanOfPayment":false,"Error":null,"PaymentCardID":0,"Culture":"fr","Type":"Payline","PaymentMethodType":"cb_visa_mastercard","AnswerCode":null,"AnswerMessage":null,"ID":226592,"Tag":"test_contribution","CreationDate":1363949048,"UpdateDate":1363949048}'
|
259
|
+
http_version:
|
260
|
+
recorded_at: Fri, 22 Mar 2013 10:44:09 GMT
|
261
|
+
- request:
|
262
|
+
method: post
|
263
|
+
uri: https://api-preprod.leetchi.com/v1/partner/example/users?ts=1363949049
|
264
|
+
body:
|
265
|
+
encoding: UTF-8
|
266
|
+
string: '{"Tag":"test","Email":"my@email.com","FirstName":"John","LastName":"Doe","CanRegisterMeanOfPayment":true}'
|
267
|
+
headers:
|
268
|
+
X-Leetchi-Signature:
|
269
|
+
- h5VlMYe3zjebk5hibbumMYaK8/hL1zPz01qmDRtiQq/thpDZKkDIE7IValTl/HbUM9BLd5wRvZRjuYFeNBItFQhfCIiE2zsife7mek1x8gV4/I5b3gsWkcykH4Fg6wGDmHaH5/ijxb3wWwmk78Bh/UHmm8MpoLSgeG3R4MDAfud7cP5Xwos3CVmuwJ+AAAs656gCI+D9l3obaOWF21Tt8VQHXqdsHyDMALEq6b0+rbAjHOGNanOe2dfvizp7fGKb/QYhHBpaFndKvnliFzUcFQzOXwGm1BN8iP33jRXMeLQCluHGP5x4fQnUlVZ3a8AfVLwVegiz9nUuX6megPXr3Q==
|
270
|
+
Content-Type:
|
271
|
+
- application/json
|
272
|
+
Accept-Encoding:
|
273
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
274
|
+
Accept:
|
275
|
+
- '*/*'
|
276
|
+
User-Agent:
|
277
|
+
- Ruby
|
278
|
+
response:
|
279
|
+
status:
|
280
|
+
code: 200
|
281
|
+
message: OK
|
282
|
+
headers:
|
283
|
+
Cache-Control:
|
284
|
+
- private
|
285
|
+
Content-Type:
|
286
|
+
- application/json; charset=utf-8
|
287
|
+
Server:
|
288
|
+
- Microsoft-IIS/8.0
|
289
|
+
X-Aspnetmvc-Version:
|
290
|
+
- '2.0'
|
291
|
+
X-Aspnet-Version:
|
292
|
+
- 4.0.30319
|
293
|
+
X-Powered-By:
|
294
|
+
- ASP.NET
|
295
|
+
Date:
|
296
|
+
- Fri, 22 Mar 2013 10:44:08 GMT
|
297
|
+
Content-Length:
|
298
|
+
- '365'
|
299
|
+
body:
|
300
|
+
encoding: UTF-8
|
301
|
+
string: '{"Email":"my@email.com","FirstName":"John","LastName":"Doe","CanRegisterMeanOfPayment":true,"HasRegisteredMeansOfPayment":false,"IP":null,"Birthday":null,"Password":"yuUAAEppun4b9dnFmXZrL6tbFSxBWZ","PersonalWalletAmount":0,"IsStrongAuthenticated":false,"Nationality":null,"PersonType":null,"ID":226593,"Tag":"test","CreationDate":1363949049,"UpdateDate":1363949049}'
|
302
|
+
http_version:
|
303
|
+
recorded_at: Fri, 22 Mar 2013 10:44:10 GMT
|
304
|
+
- request:
|
305
|
+
method: post
|
306
|
+
uri: https://api-preprod.leetchi.com/v1/partner/example/contributions?ts=1363949050
|
307
|
+
body:
|
308
|
+
encoding: UTF-8
|
309
|
+
string: '{"Tag":"test_contribution","UserID":226593,"WalletID":0,"Amount":10000,"ReturnURL":"https://leetchi.com","BankAccountBIC":"AGRIFRPP879"}'
|
310
|
+
headers:
|
311
|
+
X-Leetchi-Signature:
|
312
|
+
- mJB6kGmHznSRqbEp2ymEVjM6A0pstEtzB3ox+smhOf4J9DX49KFsf4E1MmjBPCVvtUBL1pUeMlTxRfGmvIxiRQ1U+CwT1VwVDWPX8z11db0QmqCR7GIJy+T8ZLvsg+v0fAcC7TV0tTP0W2bI83Lcw7UQ0zrRK4qc9CjbJhZBlVSdUSUsgo2J2a1BOsmPp2YB6Cgj7QcpKf2oPlp+T1PNa8IdLhLmJIFf5Gv9Smwad4RRAZeQzBFjgI25PoMzPYhpFAMP80KOXNf8QeuNyXCvC+64FP/NLyJa6h1upKCHRn7KoeMhM0hSZPpnhl95lPLzy3lVJ4HS2Zywl3AEGNiraA==
|
313
|
+
Content-Type:
|
314
|
+
- application/json
|
315
|
+
Accept-Encoding:
|
316
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
317
|
+
Accept:
|
318
|
+
- '*/*'
|
319
|
+
User-Agent:
|
320
|
+
- Ruby
|
321
|
+
response:
|
322
|
+
status:
|
323
|
+
code: 200
|
324
|
+
message: OK
|
325
|
+
headers:
|
326
|
+
Cache-Control:
|
327
|
+
- private
|
328
|
+
Content-Type:
|
329
|
+
- application/json; charset=utf-8
|
330
|
+
Server:
|
331
|
+
- Microsoft-IIS/8.0
|
332
|
+
X-Aspnetmvc-Version:
|
333
|
+
- '2.0'
|
334
|
+
X-Aspnet-Version:
|
335
|
+
- 4.0.30319
|
336
|
+
X-Powered-By:
|
337
|
+
- ASP.NET
|
338
|
+
Date:
|
339
|
+
- Fri, 22 Mar 2013 10:44:10 GMT
|
340
|
+
Content-Length:
|
341
|
+
- '601'
|
342
|
+
body:
|
343
|
+
encoding: UTF-8
|
344
|
+
string: '{"UserID":226593,"WalletID":0,"Amount":10000,"ClientFeeAmount":0,"LeetchiFeeAmount":0,"IsSucceeded":false,"IsCompleted":false,"PaymentURL":"https://homologation-secure-p.payline.com/webpayment/step2.do?reqCode=prepareStep2&token=16aX9A8yFihWhj3mvV1m1363949050158","TemplateURL":null,"ReturnURL":"https://leetchi.com/?ContributionID=226594","RegisterMeanOfPayment":false,"Error":null,"PaymentCardID":0,"Culture":"fr","Type":"Payline","PaymentMethodType":"cb_visa_mastercard","AnswerCode":null,"AnswerMessage":null,"ID":226594,"Tag":"test_contribution","CreationDate":1363949050,"UpdateDate":1363949050}'
|
345
|
+
http_version:
|
346
|
+
recorded_at: Fri, 22 Mar 2013 10:44:11 GMT
|
347
|
+
recorded_with: VCR 2.4.0
|