mastercard_mpqraccept 1.0.0 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 919ab529f9a15f94f6d51e99dcbe9f75645e4485
4
- data.tar.gz: 1a5b2c4d3b437d5b5ade8abcc2c56e7a551cd3f2
2
+ SHA256:
3
+ metadata.gz: da31b8cc44c6b705a7b47ff10aca585a19c74cd831b873e0172600334c7d26cf
4
+ data.tar.gz: da153fa679d1d7136575b3a0946fe3b8770bfc629cff394a1220f74f3af3fb79
5
5
  SHA512:
6
- metadata.gz: af49f39ff4c58efa17a0b7a02c8c22df79d98a3b321f97726586ddfd23310987c294d6221136271c2883c5c765aed4113e1f6fb0f2daeb1bcdcd94adc57355ff
7
- data.tar.gz: 603503faa4a3a77df988499c2df9836e2fed37bf938e1741e5d0f5bd902648ce6fc4eb09dd5637dd8f1cb734dacc82aa504a9e9a1cfdae5fc860ec2cdc690246
6
+ metadata.gz: 79a04c83936330570646d22a7da6894c6b3b42dacc54fd9b9a84141f205d0e3f3263cab0d0381cfd928db5046fb4ba49515f2b9eb9162182add64ebe51d80f10
7
+ data.tar.gz: f6dedaeedf63fb170976eb2072d44f67d0967e1308b753164afacba93bdf744d2f54e63d2040ccdf57d5c31b5eb392aada079cf4cfc1bbedad927c718fc75458
@@ -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 MpqrAccept
35
- class ActionReply < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module MpqrAccept
35
+ class ActionReply < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '031ec65a-1131-4f99-b59e-5dfe6cee8957' => OperationConfig.new("/labs/proxy/mpqr-accept/v1/api/bank/action_reply", "create", [], []),
41
-
42
- }
39
+ @__store = {
40
+ 'aa27be8d-dfdb-4961-82e2-004955e2bc81' => OperationConfig.new("/labs/proxy/mpqr-accept/v1/api/bank/action_reply", "create", [], []),
41
+
42
+ }
43
43
 
44
- protected
44
+ protected
45
45
 
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
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(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
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.post(mapObj)
61
- #
62
- #Creates object of type ActionReply
63
- #
64
- #@param Dict mapObj, containing the required parameters to create a new object
65
- #@return [ActionReply] of the response of created instance.
66
- #@raise [APIException] an exception from the response status
67
- return self.execute("031ec65a-1131-4f99-b59e-5dfe6cee8957", ActionReply.new(mapObj))
68
- end
60
+ def self.post(mapObj)
61
+ #
62
+ #Creates object of type ActionReply
63
+ #
64
+ #@param Dict mapObj, containing the required parameters to create a new object
65
+ #@return [ActionReply] of the response of created instance.
66
+ #@raise [APIException] an exception from the response status
67
+ return self.execute("aa27be8d-dfdb-4961-82e2-004955e2bc81", ActionReply.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,35 +30,35 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module MpqrAccept
35
- class InstitutionConfiguration < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module MpqrAccept
35
+ class InstitutionConfiguration < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '703212f5-2258-4370-a3e8-0eca5bb91152' => OperationConfig.new("/labs/proxy/mpqr-accept/v1/api/bank/configuration", "query", [], []),
41
- '6ac3c640-1b00-4c9a-bb4b-c7ed144f523b' => OperationConfig.new("/labs/proxy/mpqr-accept/v1/api/bank/configuration/publish", "update", [], []),
42
- '3cbfa97f-d079-4f56-a45b-903911ad582a' => OperationConfig.new("/labs/proxy/mpqr-accept/v1/api/bank/configuration", "update", [], []),
43
- 'b2562cf0-0d07-4fa5-9f37-c51eea3908dc' => OperationConfig.new("/labs/proxy/mpqr-accept/v1/api/bank/configuration/terminate", "update", [], []),
44
- '76b02b36-90bf-40d6-88a0-73ca5c8db384' => OperationConfig.new("/labs/proxy/mpqr-accept/v1/api/bank/configuration/unpublish", "update", [], []),
45
-
46
- }
39
+ @__store = {
40
+ '7abda98d-55ce-4ecb-9ebb-eb1f4854de21' => OperationConfig.new("/labs/proxy/mpqr-accept/v1/api/bank/configuration", "query", [], []),
41
+ '2933601c-1bde-464a-b09a-67f1235d504e' => OperationConfig.new("/labs/proxy/mpqr-accept/v1/api/bank/configuration/publish", "update", [], []),
42
+ 'b1fcdc9e-da8c-4737-9c32-7a4d893de611' => OperationConfig.new("/labs/proxy/mpqr-accept/v1/api/bank/configuration", "update", [], []),
43
+ '3323ae11-e6af-4397-9e91-44f3d56f20c0' => OperationConfig.new("/labs/proxy/mpqr-accept/v1/api/bank/configuration/terminate", "update", [], []),
44
+ '32d0230c-abe1-4862-8163-4c745865579e' => OperationConfig.new("/labs/proxy/mpqr-accept/v1/api/bank/configuration/unpublish", "update", [], []),
45
+
46
+ }
47
47
 
48
- protected
48
+ protected
49
49
 
50
- def self.getOperationConfig(operationUUID)
51
- if @__store.key?(operationUUID)
52
- return @__store[operationUUID]
53
- end
54
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
55
- end
50
+ def self.getOperationConfig(operationUUID)
51
+ if @__store.key?(operationUUID)
52
+ return @__store[operationUUID]
53
+ end
54
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
55
+ end
56
56
 
57
- def self.getOperationMetadata()
58
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
59
- end
57
+ def self.getOperationMetadata()
58
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
59
+ end
60
60
 
61
- public
61
+ public
62
62
 
63
63
 
64
64
 
@@ -66,28 +66,28 @@ module MasterCard
66
66
 
67
67
 
68
68
 
69
- def self.read(criteria)
70
- #
71
- #Query objects of type InstitutionConfiguration by id and optional criteria
72
- #@param [Dict] criteria
73
- #@return [InstitutionConfiguration] object representing the response.
74
- #@raise [APIException] an exception from the response status
75
- #
69
+ def self.read(criteria)
70
+ #
71
+ #Query objects of type InstitutionConfiguration by id and optional criteria
72
+ #@param [Dict] criteria
73
+ #@return [InstitutionConfiguration] object representing the response.
74
+ #@raise [APIException] an exception from the response status
75
+ #
76
76
 
77
- return self.execute("703212f5-2258-4370-a3e8-0eca5bb91152",InstitutionConfiguration.new(criteria))
78
- end
77
+ return self.execute("7abda98d-55ce-4ecb-9ebb-eb1f4854de21",InstitutionConfiguration.new(criteria))
78
+ end
79
79
 
80
80
 
81
81
 
82
- def publish
83
- #
84
- #Updates an object of type InstitutionConfiguration
85
- #
86
- #@return [InstitutionConfiguration] object representing the response.
87
- #@raise [APIException] an exception from the response status
88
- #
89
- return self.class.execute("6ac3c640-1b00-4c9a-bb4b-c7ed144f523b",self)
90
- end
82
+ def publish
83
+ #
84
+ #Updates an object of type InstitutionConfiguration
85
+ #
86
+ #@return [InstitutionConfiguration] object representing the response.
87
+ #@raise [APIException] an exception from the response status
88
+ #
89
+ return self.class.execute("2933601c-1bde-464a-b09a-67f1235d504e",self)
90
+ end
91
91
 
92
92
 
93
93
 
@@ -96,15 +96,15 @@ module MasterCard
96
96
 
97
97
 
98
98
 
99
- def update
100
- #
101
- #Updates an object of type InstitutionConfiguration
102
- #
103
- #@return [InstitutionConfiguration] object representing the response.
104
- #@raise [APIException] an exception from the response status
105
- #
106
- return self.class.execute("3cbfa97f-d079-4f56-a45b-903911ad582a",self)
107
- end
99
+ def update
100
+ #
101
+ #Updates an object of type InstitutionConfiguration
102
+ #
103
+ #@return [InstitutionConfiguration] object representing the response.
104
+ #@raise [APIException] an exception from the response status
105
+ #
106
+ return self.class.execute("b1fcdc9e-da8c-4737-9c32-7a4d893de611",self)
107
+ end
108
108
 
109
109
 
110
110
 
@@ -113,15 +113,15 @@ module MasterCard
113
113
 
114
114
 
115
115
 
116
- def terminate
117
- #
118
- #Updates an object of type InstitutionConfiguration
119
- #
120
- #@return [InstitutionConfiguration] object representing the response.
121
- #@raise [APIException] an exception from the response status
122
- #
123
- return self.class.execute("b2562cf0-0d07-4fa5-9f37-c51eea3908dc",self)
124
- end
116
+ def terminate
117
+ #
118
+ #Updates an object of type InstitutionConfiguration
119
+ #
120
+ #@return [InstitutionConfiguration] object representing the response.
121
+ #@raise [APIException] an exception from the response status
122
+ #
123
+ return self.class.execute("3323ae11-e6af-4397-9e91-44f3d56f20c0",self)
124
+ end
125
125
 
126
126
 
127
127
 
@@ -130,15 +130,15 @@ module MasterCard
130
130
 
131
131
 
132
132
 
133
- def unpublish
134
- #
135
- #Updates an object of type InstitutionConfiguration
136
- #
137
- #@return [InstitutionConfiguration] object representing the response.
138
- #@raise [APIException] an exception from the response status
139
- #
140
- return self.class.execute("76b02b36-90bf-40d6-88a0-73ca5c8db384",self)
141
- end
133
+ def unpublish
134
+ #
135
+ #Updates an object of type InstitutionConfiguration
136
+ #
137
+ #@return [InstitutionConfiguration] object representing the response.
138
+ #@raise [APIException] an exception from the response status
139
+ #
140
+ return self.class.execute("32d0230c-abe1-4862-8163-4c745865579e",self)
141
+ end
142
142
 
143
143
 
144
144
 
@@ -146,9 +146,9 @@ module MasterCard
146
146
 
147
147
 
148
148
 
149
- end
150
- end
151
- end
149
+ end
150
+ end
151
+ end
152
152
  end
153
153
 
154
154
 
@@ -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 MpqrAccept
35
- class PaymentEvent < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module MpqrAccept
35
+ class PaymentEvent < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '02157ba9-1b69-4010-9657-325ce845e8cb' => OperationConfig.new("/labs/proxy/mpqr-accept/v1/api/bank/payment_event", "create", [], []),
41
-
42
- }
39
+ @__store = {
40
+ 'f26de350-2e44-49d6-bfe1-0dff64935163' => OperationConfig.new("/labs/proxy/mpqr-accept/v1/api/bank/payment_event", "create", [], []),
41
+
42
+ }
43
43
 
44
- protected
44
+ protected
45
45
 
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
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(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
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.post(mapObj)
61
- #
62
- #Creates object of type PaymentEvent
63
- #
64
- #@param Dict mapObj, containing the required parameters to create a new object
65
- #@return [PaymentEvent] of the response of created instance.
66
- #@raise [APIException] an exception from the response status
67
- return self.execute("02157ba9-1b69-4010-9657-325ce845e8cb", PaymentEvent.new(mapObj))
68
- end
60
+ def self.post(mapObj)
61
+ #
62
+ #Creates object of type PaymentEvent
63
+ #
64
+ #@param Dict mapObj, containing the required parameters to create a new object
65
+ #@return [PaymentEvent] of the response of created instance.
66
+ #@raise [APIException] an exception from the response status
67
+ return self.execute("f26de350-2e44-49d6-bfe1-0dff64935163", PaymentEvent.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
 
@@ -29,76 +29,76 @@ require "mastercard/core/constants"
29
29
  require "mastercard/core/config"
30
30
 
31
31
  module MasterCard
32
- module API
33
- module MpqrAccept
34
- class ResourceConfig
35
- include MasterCard::Core
32
+ module API
33
+ module MpqrAccept
34
+ class ResourceConfig
35
+ include MasterCard::Core
36
36
 
37
- @@instance = nil
37
+ @@instance = nil
38
38
 
39
- def initialize
40
- @override = nil
41
- @host = nil
42
- @context = nil
39
+ def initialize
40
+ @override = nil
41
+ @host = nil
42
+ @context = nil
43
43
 
44
- Config.registerResourceConfig(self)
45
- currentEnvironment = Config.getEnvironment()
46
- self.setEnvironment(currentEnvironment)
44
+ Config.registerResourceConfig(self)
45
+ currentEnvironment = Config.getEnvironment()
46
+ self.setEnvironment(currentEnvironment)
47
47
 
48
- end
48
+ end
49
49
 
50
50
 
51
- def self.instance
52
- return @@instance
53
- end
51
+ def self.instance
52
+ return @@instance
53
+ end
54
54
 
55
55
 
56
- def getName
57
- return "mpqr-accept"
58
- end
56
+ def getName
57
+ return "mpqr-accept"
58
+ end
59
59
 
60
60
 
61
- def getHost
62
- unless @override.nil? || @override == 0
63
- return @override
64
- else
65
- return @host
66
- end
67
- end
61
+ def getHost
62
+ unless @override.nil? || @override == 0
63
+ return @override
64
+ else
65
+ return @host
66
+ end
67
+ end
68
68
 
69
- def getContext
70
- return @context
71
- end
69
+ def getContext
70
+ return @context
71
+ end
72
72
 
73
- def getVersion
74
- return "mpqr-accept:1.0.0"
75
- end
73
+ def getVersion
74
+ return "mpqr-accept:1.0.1"
75
+ end
76
76
 
77
- def getJsonNative
78
- return true
79
- end
77
+ def getJsonNative
78
+ return true
79
+ end
80
80
 
81
- def getContentTypeOverride
82
- return nil
83
- end
81
+ def getContentTypeOverride
82
+ return nil
83
+ end
84
84
 
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
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
92
92
 
93
- def setCustomEnvironment(host,context)
94
- @host = host
95
- @context = context
96
- end
93
+ def setCustomEnvironment(host,context)
94
+ @host = host
95
+ @context = context
96
+ end
97
97
 
98
- @@instance = ResourceConfig.new
98
+ @@instance = ResourceConfig.new
99
99
 
100
- private_class_method :new
101
- end
102
- end
103
- end
100
+ private_class_method :new
101
+ end
102
+ end
103
+ end
104
104
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercard_mpqraccept
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - MasterCard Worldwide
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-16 00:00:00.000000000 Z
11
+ date: 2018-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mastercard_api_core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 1.4.0
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.4.0
22
+ version: 1.4.8
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 1.4.0
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.4.0
32
+ version: 1.4.8
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: ci_reporter_minitest
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  version: '0'
77
77
  requirements: []
78
78
  rubyforge_project:
79
- rubygems_version: 2.5.1
79
+ rubygems_version: 2.7.7
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: MasterCard MpqrAccept SDK