mastercard_mpqraccept 1.0.0 → 1.0.1
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: da31b8cc44c6b705a7b47ff10aca585a19c74cd831b873e0172600334c7d26cf
|
4
|
+
data.tar.gz: da153fa679d1d7136575b3a0946fe3b8770bfc629cff394a1220f74f3af3fb79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
module API
|
34
|
+
module MpqrAccept
|
35
|
+
class ActionReply < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
38
|
|
39
|
-
|
40
|
-
|
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
|
-
|
44
|
+
protected
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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
|
-
|
54
|
-
|
55
|
-
|
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
|
-
|
57
|
+
public
|
58
58
|
|
59
59
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
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
|
-
|
77
|
-
|
78
|
-
|
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
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
module API
|
34
|
+
module MpqrAccept
|
35
|
+
class InstitutionConfiguration < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
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
|
-
|
48
|
+
protected
|
49
49
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
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
|
-
|
58
|
-
|
59
|
-
|
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
|
-
|
61
|
+
public
|
62
62
|
|
63
63
|
|
64
64
|
|
@@ -66,28 +66,28 @@ module MasterCard
|
|
66
66
|
|
67
67
|
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
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
|
-
|
78
|
-
|
77
|
+
return self.execute("7abda98d-55ce-4ecb-9ebb-eb1f4854de21",InstitutionConfiguration.new(criteria))
|
78
|
+
end
|
79
79
|
|
80
80
|
|
81
81
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
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
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
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
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
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
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
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
|
-
|
150
|
-
|
151
|
-
|
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
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
module API
|
34
|
+
module MpqrAccept
|
35
|
+
class PaymentEvent < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
38
|
|
39
|
-
|
40
|
-
|
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
|
-
|
44
|
+
protected
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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
|
-
|
54
|
-
|
55
|
-
|
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
|
-
|
57
|
+
public
|
58
58
|
|
59
59
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
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
|
-
|
77
|
-
|
78
|
-
|
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
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
32
|
+
module API
|
33
|
+
module MpqrAccept
|
34
|
+
class ResourceConfig
|
35
|
+
include MasterCard::Core
|
36
36
|
|
37
|
-
|
37
|
+
@@instance = nil
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
39
|
+
def initialize
|
40
|
+
@override = nil
|
41
|
+
@host = nil
|
42
|
+
@context = nil
|
43
43
|
|
44
|
-
|
45
|
-
|
46
|
-
|
44
|
+
Config.registerResourceConfig(self)
|
45
|
+
currentEnvironment = Config.getEnvironment()
|
46
|
+
self.setEnvironment(currentEnvironment)
|
47
47
|
|
48
|
-
|
48
|
+
end
|
49
49
|
|
50
50
|
|
51
|
-
|
52
|
-
|
53
|
-
|
51
|
+
def self.instance
|
52
|
+
return @@instance
|
53
|
+
end
|
54
54
|
|
55
55
|
|
56
|
-
|
57
|
-
|
58
|
-
|
56
|
+
def getName
|
57
|
+
return "mpqr-accept"
|
58
|
+
end
|
59
59
|
|
60
60
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
61
|
+
def getHost
|
62
|
+
unless @override.nil? || @override == 0
|
63
|
+
return @override
|
64
|
+
else
|
65
|
+
return @host
|
66
|
+
end
|
67
|
+
end
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
69
|
+
def getContext
|
70
|
+
return @context
|
71
|
+
end
|
72
72
|
|
73
|
-
|
74
|
-
|
75
|
-
|
73
|
+
def getVersion
|
74
|
+
return "mpqr-accept:1.0.1"
|
75
|
+
end
|
76
76
|
|
77
|
-
|
78
|
-
|
79
|
-
|
77
|
+
def getJsonNative
|
78
|
+
return true
|
79
|
+
end
|
80
80
|
|
81
|
-
|
82
|
-
|
83
|
-
|
81
|
+
def getContentTypeOverride
|
82
|
+
return nil
|
83
|
+
end
|
84
84
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
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
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
93
|
+
def setCustomEnvironment(host,context)
|
94
|
+
@host = host
|
95
|
+
@context = context
|
96
|
+
end
|
97
97
|
|
98
|
-
|
98
|
+
@@instance = ResourceConfig.new
|
99
99
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
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.
|
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-
|
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.
|
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.
|
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.
|
79
|
+
rubygems_version: 2.7.7
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: MasterCard MpqrAccept SDK
|