wirecard_sepa 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/wirecard_sepa/direct_debit/response.rb +4 -0
- data/lib/wirecard_sepa/version.rb +1 -1
- data/spec/lib/wirecard_sepa/direct_debit/response_spec.rb +6 -0
- data/spec/lib/wirecard_sepa/recurring/first_response_spec.rb +6 -0
- data/spec/lib/wirecard_sepa/recurring/recurring_response_spec.rb +6 -0
- data/spec/support/fixtures/vcr/gateway_debit.yml +60 -60
- data/spec/support/fixtures/vcr/gateway_recurring_init.yml +60 -60
- data/spec/support/fixtures/vcr/gateway_recurring_process/init.yml +64 -64
- data/spec/support/fixtures/vcr/gateway_recurring_process.yml +50 -49
- metadata +3 -3
@@ -1,54 +1,5 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: |
|
9
|
-
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
10
|
-
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
11
|
-
<request-id>fdffd13c-8fb7-4aac-9bfe-1c82d8b1fe91</request-id>
|
12
|
-
<transaction-type>debit</transaction-type>
|
13
|
-
<parent-transaction-id>e8f7b248-350d-11e5-b074-005056a96a54</parent-transaction-id>
|
14
|
-
<payment-methods>
|
15
|
-
<payment-method name="sepadirectdebit" />
|
16
|
-
</payment-methods>
|
17
|
-
<periodic>
|
18
|
-
<periodic-type>recurring</periodic-type>
|
19
|
-
<sequence-type>recurring</sequence-type>
|
20
|
-
</periodic>
|
21
|
-
</payment>
|
22
|
-
headers:
|
23
|
-
User-Agent:
|
24
|
-
- Typhoeus - https://github.com/typhoeus/typhoeus
|
25
|
-
Content-Type:
|
26
|
-
- application/xml
|
27
|
-
response:
|
28
|
-
status:
|
29
|
-
code: 201
|
30
|
-
message: Created
|
31
|
-
headers:
|
32
|
-
Date:
|
33
|
-
- Tue, 28 Jul 2015 09:49:16 GMT
|
34
|
-
Content-Type:
|
35
|
-
- application/xml;charset=UTF-8
|
36
|
-
Content-Language:
|
37
|
-
- en-US
|
38
|
-
Content-Length:
|
39
|
-
- '1424'
|
40
|
-
Connection:
|
41
|
-
- close
|
42
|
-
body:
|
43
|
-
encoding: UTF-8
|
44
|
-
string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><payment xmlns="http://www.elastic-payments.com/schema/payment"><merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id><transaction-id>e9478066-350d-11e5-b074-005056a96a54</transaction-id><request-id>fdffd13c-8fb7-4aac-9bfe-1c82d8b1fe91</request-id><transaction-type>debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-07-28T09:49:17.000Z</completion-time-stamp><statuses><status
|
45
|
-
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
46
|
-
currency="EUR">15.00</requested-amount><parent-transaction-id>e8f7b248-350d-11e5-b074-005056a96a54</parent-transaction-id><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>666</order-number><payment-methods><payment-method
|
47
|
-
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11T00:00:00.000Z</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><api-id>---</api-id><due-date>2015-07-31</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>recurring</sequence-type></periodic><provider-transaction-reference-id>D73B657F3D</provider-transaction-reference-id></payment>
|
48
|
-
http_version: '1.1'
|
49
|
-
adapter_metadata:
|
50
|
-
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
51
|
-
recorded_at: Tue, 28 Jul 2015 09:49:17 GMT
|
52
3
|
- request:
|
53
4
|
method: post
|
54
5
|
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
@@ -502,4 +453,54 @@ http_interactions:
|
|
502
453
|
adapter_metadata:
|
503
454
|
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
504
455
|
recorded_at: Tue, 28 Jul 2015 14:17:08 GMT
|
456
|
+
- request:
|
457
|
+
method: post
|
458
|
+
uri: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
459
|
+
body:
|
460
|
+
encoding: UTF-8
|
461
|
+
string: |
|
462
|
+
<payment xmlns="http://www.elastic-payments.com/schema/payment">
|
463
|
+
<merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id>
|
464
|
+
<request-id>27020fa7-f163-449b-a3df-20e788401146</request-id>
|
465
|
+
<transaction-type>debit</transaction-type>
|
466
|
+
<parent-transaction-id>39c99a88-563d-11e5-9e69-005056a96a54</parent-transaction-id>
|
467
|
+
<order-number>667</order-number>
|
468
|
+
<payment-methods>
|
469
|
+
<payment-method name="sepadirectdebit" />
|
470
|
+
</payment-methods>
|
471
|
+
<periodic>
|
472
|
+
<periodic-type>recurring</periodic-type>
|
473
|
+
<sequence-type>recurring</sequence-type>
|
474
|
+
</periodic>
|
475
|
+
</payment>
|
476
|
+
headers:
|
477
|
+
User-Agent:
|
478
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
479
|
+
Content-Type:
|
480
|
+
- application/xml
|
481
|
+
response:
|
482
|
+
status:
|
483
|
+
code: 201
|
484
|
+
message: Created
|
485
|
+
headers:
|
486
|
+
Date:
|
487
|
+
- Tue, 08 Sep 2015 15:21:07 GMT
|
488
|
+
Content-Type:
|
489
|
+
- application/xml;charset=UTF-8
|
490
|
+
Content-Language:
|
491
|
+
- en-US
|
492
|
+
Content-Length:
|
493
|
+
- '1410'
|
494
|
+
Connection:
|
495
|
+
- close
|
496
|
+
body:
|
497
|
+
encoding: UTF-8
|
498
|
+
string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><payment xmlns="http://www.elastic-payments.com/schema/payment"><merchant-account-id>4c901196-eff7-411e-82a3-5ef6b6860d64</merchant-account-id><transaction-id>3a2d3426-563d-11e5-9e69-005056a96a54</transaction-id><request-id>27020fa7-f163-449b-a3df-20e788401146</request-id><transaction-type>debit</transaction-type><transaction-state>success</transaction-state><completion-time-stamp>2015-09-08T15:21:07.000Z</completion-time-stamp><statuses><status
|
499
|
+
code="201.0000" description="The resource was successfully created." severity="information"/></statuses><requested-amount
|
500
|
+
currency="EUR">15.00</requested-amount><parent-transaction-id>39c99a88-563d-11e5-9e69-005056a96a54</parent-transaction-id><account-holder><first-name>Bob</first-name><last-name>Hawk</last-name></account-holder><order-number>667</order-number><payment-methods><payment-method
|
501
|
+
name="sepadirectdebit"/></payment-methods><bank-account><iban>DE42512308000000060004</iban><bic>WIREDEMMXXX</bic></bank-account><mandate><mandate-id>2356789</mandate-id><signed-date>2013-08-11</signed-date></mandate><creditor-id>DE00000000000000000000</creditor-id><api-id>---</api-id><due-date>2015-09-11</due-date><periodic><periodic-type>recurring</periodic-type><sequence-type>recurring</sequence-type></periodic><provider-transaction-reference-id>BCE33DD849</provider-transaction-reference-id></payment>
|
502
|
+
http_version: '1.1'
|
503
|
+
adapter_metadata:
|
504
|
+
effective_url: https://api-test.wirecard.com/engine/rest/paymentmethods/
|
505
|
+
recorded_at: Tue, 08 Sep 2015 15:21:07 GMT
|
505
506
|
recorded_with: VCR 2.9.3
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wirecard_sepa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- betterplace developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08
|
11
|
+
date: 2015-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
202
|
version: '0'
|
203
203
|
requirements: []
|
204
204
|
rubyforge_project:
|
205
|
-
rubygems_version: 2.4.
|
205
|
+
rubygems_version: 2.4.8
|
206
206
|
signing_key:
|
207
207
|
specification_version: 4
|
208
208
|
summary: Wirecard SEPA implementation
|