mastercard_mdescustomerservice 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 5fa7a6fda978ad22beee229017e3a50aa3a7ab91
4
- data.tar.gz: ea367fb197e200f2ed05f03b4f4c57b8b4cc49be
2
+ SHA256:
3
+ metadata.gz: 7a690474a79e3820ca191253ad5c1d6f5c7ce56b4bdfdb42cb7b59bed8ae2448
4
+ data.tar.gz: 8eaa02fb94ffc8821486a2f79d0585b617a5182650041c49ee0e9fcf6ec2c0df
5
5
  SHA512:
6
- metadata.gz: e85d078f2f52866cc7ea61c7b86e0f002bf5ce34bd29a05d870d4ba1fa96cb26fb215876fab2f0466eb9a665e4f78de62f34513acb54c5516fa61cf07cd86099
7
- data.tar.gz: d16869d5e160823b9e6ce211855a36f0d12287527165425aea6edc01e2463a70123ae8e02c82b1ac782fb431ea9dc77f7e10a5e0f4e94b14f95afae1c5986075
6
+ metadata.gz: 9ad5d434dd8c1948bfb1c4bdb88082ae1f4baf2dbfef8ec28a0e67424379ed8e7882641c2c0ff442212b69ed724a2cb90d246d30223df3d744a3716e02b03393
7
+ data.tar.gz: 1bb9f3b3139eb4ac6209b88236d9b79073ab1080ae667f2b812718782edc579624158937d58cfe945a31d4b2f0e4dc6df7f4490c05cb8969c006aaf9b8d438f4
@@ -29,70 +29,76 @@ require "mastercard/core/constants"
29
29
  require "mastercard/core/config"
30
30
 
31
31
  module MasterCard
32
- module API
33
- module MdesCustomerService
34
- class ResourceConfig
35
- include MasterCard::Core
32
+ module API
33
+ module MdesCustomerService
34
+ class ResourceConfig
35
+ include MasterCard::Core
36
36
 
37
- @@instance = nil
37
+ @@instance = nil
38
38
 
39
- def initialize
40
- @name = "mdes-customer-service"
41
- @override = nil
42
- @host = nil
43
- @context = nil
44
- @version = "1.0.3"
39
+ def initialize
40
+ @override = nil
41
+ @host = nil
42
+ @context = nil
45
43
 
46
- Config.registerResourceConfig(self)
47
- currentEnvironment = Config.getEnvironment()
48
- self.setEnvironment(currentEnvironment)
44
+ Config.registerResourceConfig(self)
45
+ currentEnvironment = Config.getEnvironment()
46
+ self.setEnvironment(currentEnvironment)
49
47
 
50
- end
48
+ end
51
49
 
52
50
 
53
- def self.instance
54
- return @@instance
55
- end
51
+ def self.instance
52
+ return @@instance
53
+ end
56
54
 
57
55
 
58
- def getName
59
- return @name
60
- end
56
+ def getName
57
+ return "mdes-customer-service"
58
+ end
61
59
 
62
60
 
63
- def getHost
64
- unless @override.nil? || @override == 0
65
- return @override
66
- else
67
- return @host
68
- end
69
- end
61
+ def getHost
62
+ unless @override.nil? || @override == 0
63
+ return @override
64
+ else
65
+ return @host
66
+ end
67
+ end
70
68
 
71
- def getContext
72
- return @context
73
- end
69
+ def getContext
70
+ return @context
71
+ end
74
72
 
75
- def getVersion
76
- return @version
77
- end
73
+ def getVersion
74
+ return "mdes-customer-service:1.0.4"
75
+ end
78
76
 
79
- def setEnvironment(environmet)
80
- if Environment::MAPPING.key?(environmet)
81
- tuple = Environment::MAPPING[environmet]
82
- @host = tuple[0]
83
- @context = tuple[1]
84
- end
85
- end
77
+ def getJsonNative
78
+ return false
79
+ end
86
80
 
87
- def setCustomEnvironment(host,context)
88
- @host = host
89
- @context = context
90
- end
81
+ def getContentTypeOverride
82
+ return nil
83
+ end
91
84
 
92
- @@instance = ResourceConfig.new
85
+ def setEnvironment(environmet)
86
+ if Environment::MAPPING.key?(environmet)
87
+ tuple = Environment::MAPPING[environmet]
88
+ @host = tuple[0]
89
+ @context = tuple[1]
90
+ end
91
+ end
93
92
 
94
- private_class_method :new
95
- end
96
- end
97
- end
93
+ def setCustomEnvironment(host,context)
94
+ @host = host
95
+ @context = context
96
+ end
97
+
98
+ @@instance = ResourceConfig.new
99
+
100
+ private_class_method :new
101
+ end
102
+ end
103
+ end
98
104
  end
@@ -30,42 +30,42 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module MdesCustomerService
35
- class Search < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module MdesCustomerService
35
+ class Search < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '08629a53-bb39-4f2e-9b0c-b3d8a80bf150' => OperationConfig.new("/mdes/csapi/v2/search", "create", [], []),
41
-
42
- }
39
+ @__store = {
40
+ '3835f8aa-b756-463d-aff4-9d8d6d6170ec' => OperationConfig.new("/mdes/csapi/v2/search", "create", [], []),
41
+
42
+ }
43
43
 
44
- protected
44
+ protected
45
45
 
46
- def self.getOperationConfig(uuid)
47
- if @__store.key?(uuid)
48
- return @__store[uuid]
49
- end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
51
- end
46
+ def self.getOperationConfig(operationUUID)
47
+ if @__store.key?(operationUUID)
48
+ return @__store[operationUUID]
49
+ end
50
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
51
+ end
52
52
 
53
- def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
- end
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
+ end
56
56
 
57
- public
57
+ public
58
58
 
59
59
 
60
- def self.create(mapObj)
61
- #
62
- #Creates object of type Search
63
- #
64
- #@param Dict mapObj, containing the required parameters to create a new object
65
- #@return [Search] of the response of created instance.
66
- #@raise [APIException] an exception from the response status
67
- return self.execute("08629a53-bb39-4f2e-9b0c-b3d8a80bf150", Search.new(mapObj))
68
- end
60
+ def self.create(mapObj)
61
+ #
62
+ #Creates object of type Search
63
+ #
64
+ #@param Dict mapObj, containing the required parameters to create a new object
65
+ #@return [Search] of the response of created instance.
66
+ #@raise [APIException] an exception from the response status
67
+ return self.execute("3835f8aa-b756-463d-aff4-9d8d6d6170ec", Search.new(mapObj))
68
+ end
69
69
 
70
70
 
71
71
 
@@ -73,9 +73,9 @@ module MasterCard
73
73
 
74
74
 
75
75
 
76
- end
77
- end
78
- end
76
+ end
77
+ end
78
+ end
79
79
  end
80
80
 
81
81
 
@@ -30,31 +30,31 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module MdesCustomerService
35
- class SystemStatus < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module MdesCustomerService
35
+ class SystemStatus < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '75c31276-6e16-40a0-b673-6738ed635430' => OperationConfig.new("/mdes/csapi/v2/systemstatus", "query", [], []),
41
-
42
- }
39
+ @__store = {
40
+ 'a473c603-5ba0-4855-9ce5-8387fc9bfa7f' => OperationConfig.new("/mdes/csapi/v2/systemstatus", "query", [], []),
41
+
42
+ }
43
43
 
44
- protected
44
+ protected
45
45
 
46
- def self.getOperationConfig(uuid)
47
- if @__store.key?(uuid)
48
- return @__store[uuid]
49
- end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
51
- end
46
+ def self.getOperationConfig(operationUUID)
47
+ if @__store.key?(operationUUID)
48
+ return @__store[operationUUID]
49
+ end
50
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
51
+ end
52
52
 
53
- def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
- end
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
+ end
56
56
 
57
- public
57
+ public
58
58
 
59
59
 
60
60
 
@@ -62,21 +62,21 @@ module MasterCard
62
62
 
63
63
 
64
64
 
65
- def self.query(criteria)
66
- #
67
- #Query objects of type SystemStatus by id and optional criteria
68
- #@param [Dict] criteria
69
- #@return [SystemStatus] object representing the response.
70
- #@raise [APIException] an exception from the response status
71
- #
65
+ def self.query(criteria)
66
+ #
67
+ #Query objects of type SystemStatus by id and optional criteria
68
+ #@param [Dict] criteria
69
+ #@return [SystemStatus] object representing the response.
70
+ #@raise [APIException] an exception from the response status
71
+ #
72
72
 
73
- return self.execute("75c31276-6e16-40a0-b673-6738ed635430",SystemStatus.new(criteria))
74
- end
73
+ return self.execute("a473c603-5ba0-4855-9ce5-8387fc9bfa7f",SystemStatus.new(criteria))
74
+ end
75
75
 
76
76
 
77
- end
78
- end
79
- end
77
+ end
78
+ end
79
+ end
80
80
  end
81
81
 
82
82
 
@@ -30,42 +30,42 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module MdesCustomerService
35
- class TokenActivate < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module MdesCustomerService
35
+ class TokenActivate < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '63a104ca-529a-4df3-aa45-0a0fc81df789' => OperationConfig.new("/mdes/csapi/v2/token/activate", "create", [], []),
41
-
42
- }
39
+ @__store = {
40
+ '5e92507f-9bc6-4cc3-92f5-e3d82f5c1c67' => OperationConfig.new("/mdes/csapi/v2/token/activate", "create", [], []),
41
+
42
+ }
43
43
 
44
- protected
44
+ protected
45
45
 
46
- def self.getOperationConfig(uuid)
47
- if @__store.key?(uuid)
48
- return @__store[uuid]
49
- end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
51
- end
46
+ def self.getOperationConfig(operationUUID)
47
+ if @__store.key?(operationUUID)
48
+ return @__store[operationUUID]
49
+ end
50
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
51
+ end
52
52
 
53
- def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
- end
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
+ end
56
56
 
57
- public
57
+ public
58
58
 
59
59
 
60
- def self.create(mapObj)
61
- #
62
- #Creates object of type TokenActivate
63
- #
64
- #@param Dict mapObj, containing the required parameters to create a new object
65
- #@return [TokenActivate] of the response of created instance.
66
- #@raise [APIException] an exception from the response status
67
- return self.execute("63a104ca-529a-4df3-aa45-0a0fc81df789", TokenActivate.new(mapObj))
68
- end
60
+ def self.create(mapObj)
61
+ #
62
+ #Creates object of type TokenActivate
63
+ #
64
+ #@param Dict mapObj, containing the required parameters to create a new object
65
+ #@return [TokenActivate] of the response of created instance.
66
+ #@raise [APIException] an exception from the response status
67
+ return self.execute("5e92507f-9bc6-4cc3-92f5-e3d82f5c1c67", TokenActivate.new(mapObj))
68
+ end
69
69
 
70
70
 
71
71
 
@@ -73,9 +73,9 @@ module MasterCard
73
73
 
74
74
 
75
75
 
76
- end
77
- end
78
- end
76
+ end
77
+ end
78
+ end
79
79
  end
80
80
 
81
81
 
@@ -30,42 +30,42 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module MdesCustomerService
35
- class TokenActivationMethods < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module MdesCustomerService
35
+ class TokenActivationMethods < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- 'c4531f01-cb19-4673-b4d0-990ccd48df07' => OperationConfig.new("/mdes/csapi/v2/token/activationmethods", "create", [], []),
41
-
42
- }
39
+ @__store = {
40
+ '22111d7b-5ad6-47a0-bb54-7954052ae03b' => OperationConfig.new("/mdes/csapi/v2/token/activationmethods", "create", [], []),
41
+
42
+ }
43
43
 
44
- protected
44
+ protected
45
45
 
46
- def self.getOperationConfig(uuid)
47
- if @__store.key?(uuid)
48
- return @__store[uuid]
49
- end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
51
- end
46
+ def self.getOperationConfig(operationUUID)
47
+ if @__store.key?(operationUUID)
48
+ return @__store[operationUUID]
49
+ end
50
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
51
+ end
52
52
 
53
- def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
- end
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
+ end
56
56
 
57
- public
57
+ public
58
58
 
59
59
 
60
- def self.create(mapObj)
61
- #
62
- #Creates object of type TokenActivationMethods
63
- #
64
- #@param Dict mapObj, containing the required parameters to create a new object
65
- #@return [TokenActivationMethods] of the response of created instance.
66
- #@raise [APIException] an exception from the response status
67
- return self.execute("c4531f01-cb19-4673-b4d0-990ccd48df07", TokenActivationMethods.new(mapObj))
68
- end
60
+ def self.create(mapObj)
61
+ #
62
+ #Creates object of type TokenActivationMethods
63
+ #
64
+ #@param Dict mapObj, containing the required parameters to create a new object
65
+ #@return [TokenActivationMethods] of the response of created instance.
66
+ #@raise [APIException] an exception from the response status
67
+ return self.execute("22111d7b-5ad6-47a0-bb54-7954052ae03b", TokenActivationMethods.new(mapObj))
68
+ end
69
69
 
70
70
 
71
71
 
@@ -73,9 +73,9 @@ module MasterCard
73
73
 
74
74
 
75
75
 
76
- end
77
- end
78
- end
76
+ end
77
+ end
78
+ end
79
79
  end
80
80
 
81
81