mastercard_qkr 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/mastercard/api/qkr/card.rb +166 -0
- data/lib/mastercard/api/qkr/cart.rb +117 -0
- data/lib/mastercard/api/qkr/cartitem.rb +130 -0
- data/lib/mastercard/api/qkr/country.rb +87 -0
- data/lib/mastercard/api/qkr/forgottenpassword.rb +86 -0
- data/lib/mastercard/api/qkr/lightbox.rb +116 -0
- data/lib/mastercard/api/qkr/merchant.rb +117 -0
- data/lib/mastercard/api/qkr/prodgroup.rb +99 -0
- data/lib/mastercard/api/qkr/resendotp.rb +86 -0
- data/lib/mastercard/api/qkr/resourceconfig.rb +98 -0
- data/lib/mastercard/api/qkr/securityquestion.rb +87 -0
- data/lib/mastercard/api/qkr/trans.rb +152 -0
- data/lib/mastercard/api/qkr/updatepassword.rb +87 -0
- data/lib/mastercard/api/qkr/user.rb +122 -0
- data/lib/mastercard/api/qkr/usersession.rb +86 -0
- data/lib/mastercard/api/qkr/verifyotp.rb +87 -0
- data/lib/mastercard_qkr.rb +19 -0
- metadata +95 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 78b04ee584c7efc2400770b8c78ddb0e57cb093e
|
4
|
+
data.tar.gz: 2f544f17a0cbabbb69d0e5a74fe12a3c97f89d37
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 909f4ea0f9a238e72a45fd42861c51a1d401ac75e8ec7440413204e9ee67653559294667fa6796945e01086cd3e4668eeb48a03f528c44e87a363a2a7c8328b3
|
7
|
+
data.tar.gz: 542a8358ad598673b4b1c1696ff1db1c2216e1fdf7f7a4983525b953ba4d1af275e372aed81a4c0427d7cc3348082101d316ef91c37bd519818acd721158e15e
|
@@ -0,0 +1,166 @@
|
|
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 Qkr
|
35
|
+
class Card < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'b864a120-291f-4544-91c3-55a0e1a2a5fc' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card", "create", ["X-Auth-Token"], []),
|
41
|
+
'f98258a6-6a56-4c47-9e6b-b051b3d8ffbb' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "delete", ["X-Auth-Token"], []),
|
42
|
+
'cedbdad5-c7cd-4e88-aa35-8941458b59bf' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card", "query", ["X-Auth-Token"], []),
|
43
|
+
'406e8ff1-6cd5-44cf-ab40-ba1094595118' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "update", ["X-Auth-Token"], []),
|
44
|
+
|
45
|
+
}
|
46
|
+
|
47
|
+
protected
|
48
|
+
|
49
|
+
def self.getOperationConfig(uuid)
|
50
|
+
if @__store.key?(uuid)
|
51
|
+
return @__store[uuid]
|
52
|
+
end
|
53
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
|
54
|
+
end
|
55
|
+
|
56
|
+
def self.getOperationMetadata()
|
57
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
58
|
+
end
|
59
|
+
|
60
|
+
public
|
61
|
+
|
62
|
+
|
63
|
+
def self.create(mapObj)
|
64
|
+
#
|
65
|
+
#Creates object of type Card
|
66
|
+
#
|
67
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
68
|
+
#@return [Card] of the response of created instance.
|
69
|
+
#@raise [APIException] an exception from the response status
|
70
|
+
return self.execute("b864a120-291f-4544-91c3-55a0e1a2a5fc", Card.new(mapObj))
|
71
|
+
end
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
def self.deleteById(id, map = nil)
|
83
|
+
#Delete object of type Card by id
|
84
|
+
|
85
|
+
#@param [String] id
|
86
|
+
#@param [Dict] map, containing additional parameters
|
87
|
+
#@return [Card] of the response of the deleted instance.
|
88
|
+
#@raise [APIException] an exception from the response status
|
89
|
+
|
90
|
+
|
91
|
+
mapObj = Card.new
|
92
|
+
if !(id.nil? || id.to_s.empty?)
|
93
|
+
mapObj.set("id", id)
|
94
|
+
end
|
95
|
+
if !map.nil?
|
96
|
+
if map.instance_of? RequestMap
|
97
|
+
mapObj.setAll(map.getObject())
|
98
|
+
else
|
99
|
+
mapObj.setAll(map)
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
return self.execute("f98258a6-6a56-4c47-9e6b-b051b3d8ffbb", mapObj)
|
104
|
+
end
|
105
|
+
|
106
|
+
|
107
|
+
def delete
|
108
|
+
#
|
109
|
+
#Delete object of type Card
|
110
|
+
|
111
|
+
#@param [String] id
|
112
|
+
#@return [Card] of the response of the deleted instance.
|
113
|
+
#@raise [APIException] an exception from the response status
|
114
|
+
#
|
115
|
+
|
116
|
+
return self.class.execute("f98258a6-6a56-4c47-9e6b-b051b3d8ffbb", self)
|
117
|
+
end
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
def self.query(criteria)
|
128
|
+
#
|
129
|
+
#Query objects of type Card by id and optional criteria
|
130
|
+
#@param [Dict] criteria
|
131
|
+
#@return [Card] object representing the response.
|
132
|
+
#@raise [APIException] an exception from the response status
|
133
|
+
#
|
134
|
+
|
135
|
+
return self.execute("cedbdad5-c7cd-4e88-aa35-8941458b59bf",Card.new(criteria))
|
136
|
+
end
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
def update
|
141
|
+
#
|
142
|
+
#Updates an object of type Card
|
143
|
+
#
|
144
|
+
#@return [Card] object representing the response.
|
145
|
+
#@raise [APIException] an exception from the response status
|
146
|
+
#
|
147
|
+
return self.class.execute("406e8ff1-6cd5-44cf-ab40-ba1094595118",self)
|
148
|
+
end
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
@@ -0,0 +1,117 @@
|
|
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 Qkr
|
35
|
+
class Cart < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'32eb27b1-7705-4a96-9fd6-11d3bbfd90fe' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cart", "query", ["X-Auth-Token"], []),
|
41
|
+
'5716c8bb-ec52-4425-bd15-53f4f014e4fe' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cart/{id}", "read", ["X-Auth-Token"], []),
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
protected
|
46
|
+
|
47
|
+
def self.getOperationConfig(uuid)
|
48
|
+
if @__store.key?(uuid)
|
49
|
+
return @__store[uuid]
|
50
|
+
end
|
51
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.getOperationMetadata()
|
55
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
56
|
+
end
|
57
|
+
|
58
|
+
public
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
def self.query(criteria)
|
67
|
+
#
|
68
|
+
#Query objects of type Cart by id and optional criteria
|
69
|
+
#@param [Dict] criteria
|
70
|
+
#@return [Cart] object representing the response.
|
71
|
+
#@raise [APIException] an exception from the response status
|
72
|
+
#
|
73
|
+
|
74
|
+
return self.execute("32eb27b1-7705-4a96-9fd6-11d3bbfd90fe",Cart.new(criteria))
|
75
|
+
end
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
def self.read(id, criteria = nil)
|
83
|
+
#
|
84
|
+
#Returns objects of type Cart by id and optional criteria
|
85
|
+
#@param [String] id
|
86
|
+
#@param [Dict] criteria
|
87
|
+
#@return [Cart] object representing the response
|
88
|
+
#@raise [APIException] an exception from the response status
|
89
|
+
|
90
|
+
mapObj = Cart.new
|
91
|
+
if !(id.nil? || id.to_s.empty?)
|
92
|
+
mapObj.set("id", id)
|
93
|
+
end
|
94
|
+
if !criteria.nil?
|
95
|
+
if criteria.instance_of? RequestMap
|
96
|
+
mapObj.setAll(criteria.getObject())
|
97
|
+
else
|
98
|
+
mapObj.setAll(criteria)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
return self.execute("5716c8bb-ec52-4425-bd15-53f4f014e4fe",Cart.new(mapObj))
|
103
|
+
end
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
@@ -0,0 +1,130 @@
|
|
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 Qkr
|
35
|
+
class CartItem < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'cf871f17-87a1-4ba6-8b8a-66147b103860' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cartItem", "create", ["X-Auth-Token"], []),
|
41
|
+
'1a0979bd-e2dc-40c9-aa11-366b9f22d582' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cartItem/{id}", "delete", ["X-Auth-Token"], []),
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
protected
|
46
|
+
|
47
|
+
def self.getOperationConfig(uuid)
|
48
|
+
if @__store.key?(uuid)
|
49
|
+
return @__store[uuid]
|
50
|
+
end
|
51
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.getOperationMetadata()
|
55
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
56
|
+
end
|
57
|
+
|
58
|
+
public
|
59
|
+
|
60
|
+
|
61
|
+
def self.create(mapObj)
|
62
|
+
#
|
63
|
+
#Creates object of type CartItem
|
64
|
+
#
|
65
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
66
|
+
#@return [CartItem] of the response of created instance.
|
67
|
+
#@raise [APIException] an exception from the response status
|
68
|
+
return self.execute("cf871f17-87a1-4ba6-8b8a-66147b103860", CartItem.new(mapObj))
|
69
|
+
end
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
def self.deleteById(id, map = nil)
|
81
|
+
#Delete object of type CartItem by id
|
82
|
+
|
83
|
+
#@param [String] id
|
84
|
+
#@param [Dict] map, containing additional parameters
|
85
|
+
#@return [CartItem] of the response of the deleted instance.
|
86
|
+
#@raise [APIException] an exception from the response status
|
87
|
+
|
88
|
+
|
89
|
+
mapObj = CartItem.new
|
90
|
+
if !(id.nil? || id.to_s.empty?)
|
91
|
+
mapObj.set("id", id)
|
92
|
+
end
|
93
|
+
if !map.nil?
|
94
|
+
if map.instance_of? RequestMap
|
95
|
+
mapObj.setAll(map.getObject())
|
96
|
+
else
|
97
|
+
mapObj.setAll(map)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
return self.execute("1a0979bd-e2dc-40c9-aa11-366b9f22d582", mapObj)
|
102
|
+
end
|
103
|
+
|
104
|
+
|
105
|
+
def delete
|
106
|
+
#
|
107
|
+
#Delete object of type CartItem
|
108
|
+
|
109
|
+
#@param [String] id
|
110
|
+
#@return [CartItem] of the response of the deleted instance.
|
111
|
+
#@raise [APIException] an exception from the response status
|
112
|
+
#
|
113
|
+
|
114
|
+
return self.class.execute("1a0979bd-e2dc-40c9-aa11-366b9f22d582", self)
|
115
|
+
end
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
@@ -0,0 +1,87 @@
|
|
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 Qkr
|
35
|
+
class Country < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'61696eb0-64bc-4a03-8986-adcabb840e9e' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/country", "query", [], []),
|
41
|
+
|
42
|
+
}
|
43
|
+
|
44
|
+
protected
|
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
|
52
|
+
|
53
|
+
def self.getOperationMetadata()
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
55
|
+
end
|
56
|
+
|
57
|
+
public
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
def self.query(criteria)
|
66
|
+
#
|
67
|
+
#Query objects of type Country by id and optional criteria
|
68
|
+
#@param [Dict] criteria
|
69
|
+
#@return [Country] object representing the response.
|
70
|
+
#@raise [APIException] an exception from the response status
|
71
|
+
#
|
72
|
+
|
73
|
+
return self.execute("61696eb0-64bc-4a03-8986-adcabb840e9e",Country.new(criteria))
|
74
|
+
end
|
75
|
+
|
76
|
+
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
@@ -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 Qkr
|
35
|
+
class ForgottenPassword < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'8c01ddd5-fda4-494b-a847-46b1325158d0' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/forgottenPassword", "create", [], []),
|
41
|
+
|
42
|
+
}
|
43
|
+
|
44
|
+
protected
|
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
|
52
|
+
|
53
|
+
def self.getOperationMetadata()
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
|
55
|
+
end
|
56
|
+
|
57
|
+
public
|
58
|
+
|
59
|
+
|
60
|
+
def self.create(mapObj)
|
61
|
+
#
|
62
|
+
#Creates object of type ForgottenPassword
|
63
|
+
#
|
64
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
65
|
+
#@return [ForgottenPassword] of the response of created instance.
|
66
|
+
#@raise [APIException] an exception from the response status
|
67
|
+
return self.execute("8c01ddd5-fda4-494b-a847-46b1325158d0", ForgottenPassword.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
|
+
|