wirecardmapper 0.7.0 → 0.8.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.
@@ -1,3 +1,3 @@
1
1
  module WirecardMapper
2
- Version = '0.7.0'
2
+ Version = '0.8.0'
3
3
  end
@@ -35,6 +35,10 @@ module WirecardMapper
35
35
  request("get_payment_info", params)
36
36
  end
37
37
 
38
+ def self.change_card_status(params = {})
39
+ request("change_card_status", params)
40
+ end
41
+
38
42
  def self.request(xml_request_name, params)
39
43
  main_xml = self.main_xml
40
44
  if main_xml
@@ -46,6 +46,13 @@ describe 'Request' do
46
46
  response.return_code.to_i.should eql(0)
47
47
  response.return_message.should eql('Successful system entry.')
48
48
  end
49
-
49
+
50
+ it "should change card status" do
51
+ response = WirecardMapper.change_card_status(:card_id => '47ae07020a010018157db66065da6e5c', :status_code => 'cancelled')
52
+ response.ok?.should be_true
53
+ response.return_code.to_i.should eql(0)
54
+ response.return_message.should eql('Successful system entry.')
55
+ end
56
+
50
57
  end
51
58
 
@@ -0,0 +1,7 @@
1
+ <change-card-status>
2
+ <status-code></status-code>
3
+ <card-data>
4
+ <card-id></card-id>
5
+ </card-data>
6
+ </change-card-status>
7
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wirecardmapper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 63
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 7
8
+ - 8
9
9
  - 0
10
- version: 0.7.0
10
+ version: 0.8.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alexander Klaiber
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-02 00:00:00 +01:00
18
+ date: 2010-12-03 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -78,6 +78,7 @@ files:
78
78
  - templates/update_card_info.xml
79
79
  - templates/submit_payment.xml
80
80
  - templates/main.xml
81
+ - templates/change_card_status.xml
81
82
  - templates/get_payment_info.xml
82
83
  has_rdoc: true
83
84
  homepage: http://github.com/aklaiber/wirecardmapper