mastercard_mdescustomerservice 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,55 +31,30 @@ require "mastercard/core/model"
31
31
  module MasterCard
32
32
  module API
33
33
  module MdesCustomerService
34
- include MasterCard::Core::Model
35
- class TokenUnsuspend < BaseObject
34
+ class TokenUnsuspend < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
36
  #
37
37
 
38
- def getResourcePath(action)
39
- #Returns the resource path based on the action
40
- #@return str
41
-
42
- action = action.upcase
43
-
44
- if action == "CREATE"
45
- return "/mdes/csapi/v2/token/unsuspend"
46
- end
38
+ @__store = {
39
+ 'dfb16735-6bf2-44bc-abd8-bef441ee055c' => OperationConfig.new("/mdes/csapi/v2/token/unsuspend", "create", [], []),
47
40
 
48
- raise StandardError.new("Invalid action supplied: #{action.to_s}")
41
+ }
49
42
 
50
- end
43
+ protected
51
44
 
52
- def getHeaderParams(action)
53
- #Returns a list containing header params
54
- #@return list
55
- action = action.upcase
56
-
57
- if action == "CREATE"
58
- return []
45
+ def self.getOperationConfig(uuid)
46
+ if @__store.key?(uuid)
47
+ return @__store[uuid]
59
48
  end
60
-
61
- raise StandardError.new("Invalid action supplied: #{action.to_s}")
49
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
62
50
  end
63
51
 
64
- def getQueryParams(action)
65
- #Returns a list containing query params
66
- #@return list
67
- action = action.upcase
68
-
69
- if action == "CREATE"
70
- return []
71
- end
72
-
73
- raise StandardError.new("Invalid action supplied: #{action.to_s}")
52
+ def self.getOperationMetadata()
53
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
74
54
  end
75
55
 
76
- def self.getApiVersion
77
- return "1.0.0"
78
- end
56
+ public
79
57
 
80
-
81
-
82
-
83
58
  def self.create(mapObj)
84
59
  #
85
60
  #Creates object of type TokenUnsuspend
@@ -87,16 +62,14 @@ module MasterCard
87
62
  #@param Dict mapObj, containing the required parameters to create a new object
88
63
  #@return TokenUnsuspend of the response of created instance.
89
64
  #
90
- return self.createObject(TokenUnsuspend.new(mapObj))
65
+ return self.execute("dfb16735-6bf2-44bc-abd8-bef441ee055c", TokenUnsuspend.new(mapObj))
91
66
  end
92
67
 
93
-
94
-
95
-
96
-
97
-
98
-
99
-
68
+
69
+
70
+
71
+
72
+
100
73
  end
101
74
  end
102
75
  end
@@ -31,55 +31,30 @@ require "mastercard/core/model"
31
31
  module MasterCard
32
32
  module API
33
33
  module MdesCustomerService
34
- include MasterCard::Core::Model
35
- class TokenUpdate < BaseObject
34
+ class TokenUpdate < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
36
  #
37
37
 
38
- def getResourcePath(action)
39
- #Returns the resource path based on the action
40
- #@return str
41
-
42
- action = action.upcase
43
-
44
- if action == "CREATE"
45
- return "/mdes/csapi/v2/token/update"
46
- end
38
+ @__store = {
39
+ '92269dce-7648-43ef-bb47-49d932f5ed51' => OperationConfig.new("/mdes/csapi/v2/token/update", "create", [], []),
47
40
 
48
- raise StandardError.new("Invalid action supplied: #{action.to_s}")
41
+ }
49
42
 
50
- end
43
+ protected
51
44
 
52
- def getHeaderParams(action)
53
- #Returns a list containing header params
54
- #@return list
55
- action = action.upcase
56
-
57
- if action == "CREATE"
58
- return []
45
+ def self.getOperationConfig(uuid)
46
+ if @__store.key?(uuid)
47
+ return @__store[uuid]
59
48
  end
60
-
61
- raise StandardError.new("Invalid action supplied: #{action.to_s}")
49
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
62
50
  end
63
51
 
64
- def getQueryParams(action)
65
- #Returns a list containing query params
66
- #@return list
67
- action = action.upcase
68
-
69
- if action == "CREATE"
70
- return []
71
- end
72
-
73
- raise StandardError.new("Invalid action supplied: #{action.to_s}")
52
+ def self.getOperationMetadata()
53
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
74
54
  end
75
55
 
76
- def self.getApiVersion
77
- return "1.0.0"
78
- end
56
+ public
79
57
 
80
-
81
-
82
-
83
58
  def self.create(mapObj)
84
59
  #
85
60
  #Creates object of type TokenUpdate
@@ -87,16 +62,14 @@ module MasterCard
87
62
  #@param Dict mapObj, containing the required parameters to create a new object
88
63
  #@return TokenUpdate of the response of created instance.
89
64
  #
90
- return self.createObject(TokenUpdate.new(mapObj))
65
+ return self.execute("92269dce-7648-43ef-bb47-49d932f5ed51", TokenUpdate.new(mapObj))
91
66
  end
92
67
 
93
-
94
-
95
-
96
-
97
-
98
-
99
-
68
+
69
+
70
+
71
+
72
+
100
73
  end
101
74
  end
102
75
  end
@@ -31,55 +31,30 @@ require "mastercard/core/model"
31
31
  module MasterCard
32
32
  module API
33
33
  module MdesCustomerService
34
- include MasterCard::Core::Model
35
- class Transactions < BaseObject
34
+ class Transactions < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
36
  #
37
37
 
38
- def getResourcePath(action)
39
- #Returns the resource path based on the action
40
- #@return str
41
-
42
- action = action.upcase
43
-
44
- if action == "CREATE"
45
- return "/mdes/csapi/v2/transactions"
46
- end
38
+ @__store = {
39
+ '8533f67e-fab6-4a26-9a92-a2e2bd81aacb' => OperationConfig.new("/mdes/csapi/v2/transactions", "create", [], []),
47
40
 
48
- raise StandardError.new("Invalid action supplied: #{action.to_s}")
41
+ }
49
42
 
50
- end
43
+ protected
51
44
 
52
- def getHeaderParams(action)
53
- #Returns a list containing header params
54
- #@return list
55
- action = action.upcase
56
-
57
- if action == "CREATE"
58
- return []
45
+ def self.getOperationConfig(uuid)
46
+ if @__store.key?(uuid)
47
+ return @__store[uuid]
59
48
  end
60
-
61
- raise StandardError.new("Invalid action supplied: #{action.to_s}")
49
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
62
50
  end
63
51
 
64
- def getQueryParams(action)
65
- #Returns a list containing query params
66
- #@return list
67
- action = action.upcase
68
-
69
- if action == "CREATE"
70
- return []
71
- end
72
-
73
- raise StandardError.new("Invalid action supplied: #{action.to_s}")
52
+ def self.getOperationMetadata()
53
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
74
54
  end
75
55
 
76
- def self.getApiVersion
77
- return "1.0.0"
78
- end
56
+ public
79
57
 
80
-
81
-
82
-
83
58
  def self.create(mapObj)
84
59
  #
85
60
  #Creates object of type Transactions
@@ -87,16 +62,14 @@ module MasterCard
87
62
  #@param Dict mapObj, containing the required parameters to create a new object
88
63
  #@return Transactions of the response of created instance.
89
64
  #
90
- return self.createObject(Transactions.new(mapObj))
65
+ return self.execute("8533f67e-fab6-4a26-9a92-a2e2bd81aacb", Transactions.new(mapObj))
91
66
  end
92
67
 
93
-
94
-
95
-
96
-
97
-
98
-
99
-
68
+
69
+
70
+
71
+
72
+
100
73
  end
101
74
  end
102
75
  end
@@ -1,5 +1,6 @@
1
1
  require 'mastercard_api_core'
2
2
  require 'mastercard/api/mdescustomerservice/search'
3
+ require 'mastercard/api/mdescustomerservice/skdconfig'
3
4
  require 'mastercard/api/mdescustomerservice/tokensuspend'
4
5
  require 'mastercard/api/mdescustomerservice/tokenresetmobilepin'
5
6
  require 'mastercard/api/mdescustomerservice/tokenunsuspend'
@@ -7,8 +8,8 @@ require 'mastercard/api/mdescustomerservice/tokenactivationmethods'
7
8
  require 'mastercard/api/mdescustomerservice/transactions'
8
9
  require 'mastercard/api/mdescustomerservice/tokenstatushistory'
9
10
  require 'mastercard/api/mdescustomerservice/tokenactivate'
11
+ require 'mastercard/api/mdescustomerservice/tokenresendactivationcode'
10
12
  require 'mastercard/api/mdescustomerservice/tokenupdate'
11
13
  require 'mastercard/api/mdescustomerservice/tokencomments'
12
14
  require 'mastercard/api/mdescustomerservice/tokendelete'
13
- require 'mastercard/api/mdescustomerservice/tokenresendactivationmethods'
14
15
  require 'mastercard/api/mdescustomerservice/systemstatus'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercard_mdescustomerservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - MasterCard Worldwide
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-10 00:00:00.000000000 Z
11
+ date: 2016-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mastercard_api_core
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.0
19
+ version: 1.2.0
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.1.0
22
+ version: 1.2.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: 1.1.0
29
+ version: 1.2.0
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.1.0
32
+ version: 1.2.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: ci_reporter_minitest
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -52,12 +52,13 @@ extensions: []
52
52
  extra_rdoc_files: []
53
53
  files:
54
54
  - lib/mastercard/api/mdescustomerservice/search.rb
55
+ - lib/mastercard/api/mdescustomerservice/skdconfig.rb
55
56
  - lib/mastercard/api/mdescustomerservice/systemstatus.rb
56
57
  - lib/mastercard/api/mdescustomerservice/tokenactivate.rb
57
58
  - lib/mastercard/api/mdescustomerservice/tokenactivationmethods.rb
58
59
  - lib/mastercard/api/mdescustomerservice/tokencomments.rb
59
60
  - lib/mastercard/api/mdescustomerservice/tokendelete.rb
60
- - lib/mastercard/api/mdescustomerservice/tokenresendactivationmethods.rb
61
+ - lib/mastercard/api/mdescustomerservice/tokenresendactivationcode.rb
61
62
  - lib/mastercard/api/mdescustomerservice/tokenresetmobilepin.rb
62
63
  - lib/mastercard/api/mdescustomerservice/tokenstatushistory.rb
63
64
  - lib/mastercard/api/mdescustomerservice/tokensuspend.rb