mastercard_qkr 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,7 +37,7 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '8c01ddd5-fda4-494b-a847-46b1325158d0' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/forgottenPassword", "create", [], []),
40
+ 'a2027c51-b2e6-45b8-a70a-f39b9f97e196' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/forgottenPassword", "create", [], []),
41
41
 
42
42
  }
43
43
 
@@ -51,7 +51,7 @@ module MasterCard
51
51
  end
52
52
 
53
53
  def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
55
55
  end
56
56
 
57
57
  public
@@ -64,7 +64,7 @@ module MasterCard
64
64
  #@param Dict mapObj, containing the required parameters to create a new object
65
65
  #@return [ForgottenPassword] of the response of created instance.
66
66
  #@raise [APIException] an exception from the response status
67
- return self.execute("8c01ddd5-fda4-494b-a847-46b1325158d0", ForgottenPassword.new(mapObj))
67
+ return self.execute("a2027c51-b2e6-45b8-a70a-f39b9f97e196", ForgottenPassword.new(mapObj))
68
68
  end
69
69
 
70
70
 
@@ -37,8 +37,8 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '94955969-59de-4ee4-a621-4574fa2386af' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/lightbox", "create", ["X-Auth-Token"], []),
41
- 'e268a60a-425c-47a6-9f27-aba2d450e139' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/lightbox/{id}", "read", [], []),
40
+ '6deaf692-5d6a-4a28-8296-59e425735031' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/lightbox", "create", ["X-Auth-Token"], []),
41
+ '863234ee-cbf8-4467-8213-f12b5ffc20c2' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/lightbox/{id}", "read", [], []),
42
42
 
43
43
  }
44
44
 
@@ -52,7 +52,7 @@ module MasterCard
52
52
  end
53
53
 
54
54
  def self.getOperationMetadata()
55
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
56
56
  end
57
57
 
58
58
  public
@@ -65,7 +65,7 @@ module MasterCard
65
65
  #@param Dict mapObj, containing the required parameters to create a new object
66
66
  #@return [Lightbox] of the response of created instance.
67
67
  #@raise [APIException] an exception from the response status
68
- return self.execute("94955969-59de-4ee4-a621-4574fa2386af", Lightbox.new(mapObj))
68
+ return self.execute("6deaf692-5d6a-4a28-8296-59e425735031", Lightbox.new(mapObj))
69
69
  end
70
70
 
71
71
 
@@ -98,7 +98,7 @@ module MasterCard
98
98
  end
99
99
  end
100
100
 
101
- return self.execute("e268a60a-425c-47a6-9f27-aba2d450e139",Lightbox.new(mapObj))
101
+ return self.execute("863234ee-cbf8-4467-8213-f12b5ffc20c2",Lightbox.new(mapObj))
102
102
  end
103
103
 
104
104
 
@@ -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 Menu < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '1c9324fe-ac91-4a21-a581-d71ad40570d4' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/menu/pat", "query", [], ["menuTypes","merchantName","siteName"]),
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(), ResourceConfig.instance.getJsonNative())
55
+ end
56
+
57
+ public
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+ def self.query(criteria)
66
+ #
67
+ #Query objects of type Menu by id and optional criteria
68
+ #@param [Dict] criteria
69
+ #@return [Menu] object representing the response.
70
+ #@raise [APIException] an exception from the response status
71
+ #
72
+
73
+ return self.execute("1c9324fe-ac91-4a21-a581-d71ad40570d4",Menu.new(criteria))
74
+ end
75
+
76
+
77
+ end
78
+ end
79
+ end
80
+ end
81
+
82
+
83
+
84
+
85
+
86
+
87
+
@@ -37,8 +37,8 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '1d09d39f-bf77-4a61-9633-8736633b4d53' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/merchant", "query", [], ["latitude","longitude"]),
41
- '9fe7a907-bdff-4a40-961f-a8b1829a2932' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/merchant/{id}", "read", [], []),
40
+ '7a295b79-f4a6-4c52-90d0-9fc4f57b18b4' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/merchant", "query", [], ["latitude","longitude","queryString"]),
41
+ '3d75fabd-0584-4f86-8c75-4490939a34b1' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/merchant/{id}", "read", [], []),
42
42
 
43
43
  }
44
44
 
@@ -52,7 +52,7 @@ module MasterCard
52
52
  end
53
53
 
54
54
  def self.getOperationMetadata()
55
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
56
56
  end
57
57
 
58
58
  public
@@ -71,7 +71,7 @@ module MasterCard
71
71
  #@raise [APIException] an exception from the response status
72
72
  #
73
73
 
74
- return self.execute("1d09d39f-bf77-4a61-9633-8736633b4d53",Merchant.new(criteria))
74
+ return self.execute("7a295b79-f4a6-4c52-90d0-9fc4f57b18b4",Merchant.new(criteria))
75
75
  end
76
76
 
77
77
 
@@ -99,7 +99,7 @@ module MasterCard
99
99
  end
100
100
  end
101
101
 
102
- return self.execute("9fe7a907-bdff-4a40-961f-a8b1829a2932",Merchant.new(mapObj))
102
+ return self.execute("3d75fabd-0584-4f86-8c75-4490939a34b1",Merchant.new(mapObj))
103
103
  end
104
104
 
105
105
 
@@ -0,0 +1,178 @@
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 Order < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '47b0f763-5878-42de-94b5-4cf75153095d' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/order/pat", "create", [], []),
41
+ '7129cafa-634b-4b32-a0d9-d9894af016a1' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/order/pat/{id}", "delete", [], []),
42
+ '18da8992-42f6-426a-82d0-380bb70d28e9' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/order/pat/{id}", "read", [], []),
43
+ '243e0e8a-d918-4da7-a97a-4506f4da4a07' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/order/pat/{id}", "update", [], []),
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(), ResourceConfig.instance.getJsonNative())
58
+ end
59
+
60
+ public
61
+
62
+
63
+ def self.create(mapObj)
64
+ #
65
+ #Creates object of type Order
66
+ #
67
+ #@param Dict mapObj, containing the required parameters to create a new object
68
+ #@return [Order] of the response of created instance.
69
+ #@raise [APIException] an exception from the response status
70
+ return self.execute("47b0f763-5878-42de-94b5-4cf75153095d", Order.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 Order by id
84
+
85
+ #@param [String] id
86
+ #@param [Dict] map, containing additional parameters
87
+ #@return [Order] of the response of the deleted instance.
88
+ #@raise [APIException] an exception from the response status
89
+
90
+
91
+ mapObj = Order.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("7129cafa-634b-4b32-a0d9-d9894af016a1", mapObj)
104
+ end
105
+
106
+
107
+ def delete
108
+ #
109
+ #Delete object of type Order
110
+
111
+ #@param [String] id
112
+ #@return [Order] of the response of the deleted instance.
113
+ #@raise [APIException] an exception from the response status
114
+ #
115
+
116
+ return self.class.execute("7129cafa-634b-4b32-a0d9-d9894af016a1", self)
117
+ end
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+ def self.read(id, criteria = nil)
127
+ #
128
+ #Returns objects of type Order by id and optional criteria
129
+ #@param [String] id
130
+ #@param [Dict] criteria
131
+ #@return [Order] object representing the response
132
+ #@raise [APIException] an exception from the response status
133
+
134
+ mapObj = Order.new
135
+ if !(id.nil? || id.to_s.empty?)
136
+ mapObj.set("id", id)
137
+ end
138
+ if !criteria.nil?
139
+ if criteria.instance_of? RequestMap
140
+ mapObj.setAll(criteria.getObject())
141
+ else
142
+ mapObj.setAll(criteria)
143
+ end
144
+ end
145
+
146
+ return self.execute("18da8992-42f6-426a-82d0-380bb70d28e9",Order.new(mapObj))
147
+ end
148
+
149
+
150
+
151
+
152
+ def update
153
+ #
154
+ #Updates an object of type Order
155
+ #
156
+ #@return [Order] object representing the response.
157
+ #@raise [APIException] an exception from the response status
158
+ #
159
+ return self.class.execute("243e0e8a-d918-4da7-a97a-4506f4da4a07",self)
160
+ end
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+ end
169
+ end
170
+ end
171
+ end
172
+
173
+
174
+
175
+
176
+
177
+
178
+
@@ -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 OrderAhead < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ 'f725d3a0-d312-4906-8c1f-49c2c2264b53' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/orderAhead/order", "create", ["X-Auth-Token"], []),
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(), ResourceConfig.instance.getJsonNative())
55
+ end
56
+
57
+ public
58
+
59
+
60
+ def self.create(mapObj)
61
+ #
62
+ #Creates object of type OrderAhead
63
+ #
64
+ #@param Dict mapObj, containing the required parameters to create a new object
65
+ #@return [OrderAhead] of the response of created instance.
66
+ #@raise [APIException] an exception from the response status
67
+ return self.execute("f725d3a0-d312-4906-8c1f-49c2c2264b53", OrderAhead.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
+