mastercard_mpqraccept 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 919ab529f9a15f94f6d51e99dcbe9f75645e4485
4
+ data.tar.gz: 1a5b2c4d3b437d5b5ade8abcc2c56e7a551cd3f2
5
+ SHA512:
6
+ metadata.gz: af49f39ff4c58efa17a0b7a02c8c22df79d98a3b321f97726586ddfd23310987c294d6221136271c2883c5c765aed4113e1f6fb0f2daeb1bcdcd94adc57355ff
7
+ data.tar.gz: 603503faa4a3a77df988499c2df9836e2fed37bf938e1741e5d0f5bd902648ce6fc4eb09dd5637dd8f1cb734dacc82aa504a9e9a1cfdae5fc860ec2cdc690246
@@ -0,0 +1,86 @@
1
+ #
2
+ # Copyright (c) 2016 MasterCard International Incorporated
3
+ # All rights reserved.
4
+ #
5
+ # Redistribution and use in source and binary forms, with or without modification, are
6
+ # permitted provided that the following conditions are met:
7
+ #
8
+ # Redistributions of source code must retain the above copyright notice, this list of
9
+ # conditions and the following disclaimer.
10
+ # Redistributions in binary form must reproduce the above copyright notice, this list of
11
+ # conditions and the following disclaimer in the documentation and/or other materials
12
+ # provided with the distribution.
13
+ # Neither the name of the MasterCard International Incorporated nor the names of its
14
+ # contributors may be used to endorse or promote products derived from this software
15
+ # without specific prior written permission.
16
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
17
+ # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
19
+ # SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
21
+ # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22
+ # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23
+ # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24
+ # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25
+ # SUCH DAMAGE.
26
+ #
27
+
28
+
29
+ require "mastercard/core/model"
30
+ require "mastercard/core/baseobject"
31
+
32
+ module MasterCard
33
+ module API
34
+ module MpqrAccept
35
+ class ActionReply < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '031ec65a-1131-4f99-b59e-5dfe6cee8957' => OperationConfig.new("/labs/proxy/mpqr-accept/v1/api/bank/action_reply", "create", [], []),
41
+
42
+ }
43
+
44
+ protected
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
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
56
+
57
+ public
58
+
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
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+ end
77
+ end
78
+ end
79
+ end
80
+
81
+
82
+
83
+
84
+
85
+
86
+
@@ -0,0 +1,159 @@
1
+ #
2
+ # Copyright (c) 2016 MasterCard International Incorporated
3
+ # All rights reserved.
4
+ #
5
+ # Redistribution and use in source and binary forms, with or without modification, are
6
+ # permitted provided that the following conditions are met:
7
+ #
8
+ # Redistributions of source code must retain the above copyright notice, this list of
9
+ # conditions and the following disclaimer.
10
+ # Redistributions in binary form must reproduce the above copyright notice, this list of
11
+ # conditions and the following disclaimer in the documentation and/or other materials
12
+ # provided with the distribution.
13
+ # Neither the name of the MasterCard International Incorporated nor the names of its
14
+ # contributors may be used to endorse or promote products derived from this software
15
+ # without specific prior written permission.
16
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
17
+ # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
19
+ # SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
21
+ # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22
+ # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23
+ # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24
+ # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25
+ # SUCH DAMAGE.
26
+ #
27
+
28
+
29
+ require "mastercard/core/model"
30
+ require "mastercard/core/baseobject"
31
+
32
+ module MasterCard
33
+ module API
34
+ module MpqrAccept
35
+ class InstitutionConfiguration < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
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
+ }
47
+
48
+ protected
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
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
60
+
61
+ public
62
+
63
+
64
+
65
+
66
+
67
+
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
+ #
76
+
77
+ return self.execute("703212f5-2258-4370-a3e8-0eca5bb91152",InstitutionConfiguration.new(criteria))
78
+ end
79
+
80
+
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
91
+
92
+
93
+
94
+
95
+
96
+
97
+
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
108
+
109
+
110
+
111
+
112
+
113
+
114
+
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
125
+
126
+
127
+
128
+
129
+
130
+
131
+
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
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+ end
150
+ end
151
+ end
152
+ end
153
+
154
+
155
+
156
+
157
+
158
+
159
+
@@ -0,0 +1,86 @@
1
+ #
2
+ # Copyright (c) 2016 MasterCard International Incorporated
3
+ # All rights reserved.
4
+ #
5
+ # Redistribution and use in source and binary forms, with or without modification, are
6
+ # permitted provided that the following conditions are met:
7
+ #
8
+ # Redistributions of source code must retain the above copyright notice, this list of
9
+ # conditions and the following disclaimer.
10
+ # Redistributions in binary form must reproduce the above copyright notice, this list of
11
+ # conditions and the following disclaimer in the documentation and/or other materials
12
+ # provided with the distribution.
13
+ # Neither the name of the MasterCard International Incorporated nor the names of its
14
+ # contributors may be used to endorse or promote products derived from this software
15
+ # without specific prior written permission.
16
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
17
+ # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
19
+ # SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
21
+ # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22
+ # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23
+ # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24
+ # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25
+ # SUCH DAMAGE.
26
+ #
27
+
28
+
29
+ require "mastercard/core/model"
30
+ require "mastercard/core/baseobject"
31
+
32
+ module MasterCard
33
+ module API
34
+ module MpqrAccept
35
+ class PaymentEvent < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '02157ba9-1b69-4010-9657-325ce845e8cb' => OperationConfig.new("/labs/proxy/mpqr-accept/v1/api/bank/payment_event", "create", [], []),
41
+
42
+ }
43
+
44
+ protected
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
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
56
+
57
+ public
58
+
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
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+ end
77
+ end
78
+ end
79
+ end
80
+
81
+
82
+
83
+
84
+
85
+
86
+
@@ -0,0 +1,104 @@
1
+ #
2
+ # Copyright (c) 2016 MasterCard International Incorporated
3
+ # All rights reserved.
4
+ #
5
+ # Redistribution and use in source and binary forms, with or without modification, are
6
+ # permitted provided that the following conditions are met:
7
+ #
8
+ # Redistributions of source code must retain the above copyright notice, this list of
9
+ # conditions and the following disclaimer.
10
+ # Redistributions in binary form must reproduce the above copyright notice, this list of
11
+ # conditions and the following disclaimer in the documentation and/or other materials
12
+ # provided with the distribution.
13
+ # Neither the name of the MasterCard International Incorporated nor the names of its
14
+ # contributors may be used to endorse or promote products derived from this software
15
+ # without specific prior written permission.
16
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
17
+ # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
19
+ # SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
21
+ # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22
+ # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23
+ # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24
+ # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25
+ # SUCH DAMAGE.
26
+ #
27
+
28
+ require "mastercard/core/constants"
29
+ require "mastercard/core/config"
30
+
31
+ module MasterCard
32
+ module API
33
+ module MpqrAccept
34
+ class ResourceConfig
35
+ include MasterCard::Core
36
+
37
+ @@instance = nil
38
+
39
+ def initialize
40
+ @override = nil
41
+ @host = nil
42
+ @context = nil
43
+
44
+ Config.registerResourceConfig(self)
45
+ currentEnvironment = Config.getEnvironment()
46
+ self.setEnvironment(currentEnvironment)
47
+
48
+ end
49
+
50
+
51
+ def self.instance
52
+ return @@instance
53
+ end
54
+
55
+
56
+ def getName
57
+ return "mpqr-accept"
58
+ end
59
+
60
+
61
+ def getHost
62
+ unless @override.nil? || @override == 0
63
+ return @override
64
+ else
65
+ return @host
66
+ end
67
+ end
68
+
69
+ def getContext
70
+ return @context
71
+ end
72
+
73
+ def getVersion
74
+ return "mpqr-accept:1.0.0"
75
+ end
76
+
77
+ def getJsonNative
78
+ return true
79
+ end
80
+
81
+ def getContentTypeOverride
82
+ return nil
83
+ end
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
92
+
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
104
+ end
@@ -0,0 +1,7 @@
1
+ require 'mastercard_api_core'
2
+
3
+ require 'mastercard/api/mpqraccept/resourceconfig'
4
+
5
+ require 'mastercard/api/mpqraccept/actionreply'
6
+ require 'mastercard/api/mpqraccept/institutionconfiguration'
7
+ require 'mastercard/api/mpqraccept/paymentevent'
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mastercard_mpqraccept
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - MasterCard Worldwide
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-04-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: mastercard_api_core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.4.0
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.4.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 1.4.0
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.4.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: ci_reporter_minitest
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ description: MasterCard MpqrAccept Description
48
+ email:
49
+ - APISupport@mastercard.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - lib/mastercard/api/mpqraccept/actionreply.rb
55
+ - lib/mastercard/api/mpqraccept/institutionconfiguration.rb
56
+ - lib/mastercard/api/mpqraccept/paymentevent.rb
57
+ - lib/mastercard/api/mpqraccept/resourceconfig.rb
58
+ - lib/mastercard_mpqraccept.rb
59
+ homepage: https://developer.mastercard.com
60
+ licenses:
61
+ - BSD-2-Clause
62
+ metadata: {}
63
+ post_install_message:
64
+ rdoc_options: []
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ requirements: []
78
+ rubyforge_project:
79
+ rubygems_version: 2.5.1
80
+ signing_key:
81
+ specification_version: 4
82
+ summary: MasterCard MpqrAccept SDK
83
+ test_files: []