mastercard_qkr 1.0.1 → 1.0.2
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 +4 -4
- data/lib/mastercard/api/qkr/card.rb +16 -16
- data/lib/mastercard/api/qkr/cart.rb +12 -12
- data/lib/mastercard/api/qkr/cartitem.rb +12 -12
- data/lib/mastercard/api/qkr/country.rb +9 -9
- data/lib/mastercard/api/qkr/externaltrans.rb +11 -11
- data/lib/mastercard/api/qkr/forgottenpassword.rb +7 -7
- data/lib/mastercard/api/qkr/lightbox.rb +9 -9
- data/lib/mastercard/api/qkr/machine.rb +99 -0
- data/lib/mastercard/api/qkr/menu.rb +7 -7
- data/lib/mastercard/api/qkr/merchant.rb +9 -9
- data/lib/mastercard/api/qkr/order.rb +14 -14
- data/lib/mastercard/api/qkr/orderahead.rb +7 -7
- data/lib/mastercard/api/qkr/orderaheadmenu.rb +7 -7
- data/lib/mastercard/api/qkr/orderslot.rb +7 -7
- data/lib/mastercard/api/qkr/ordertotal.rb +7 -7
- data/lib/mastercard/api/qkr/payment.rb +7 -7
- data/lib/mastercard/api/qkr/posorder.rb +104 -0
- data/lib/mastercard/api/qkr/pospayment.rb +7 -7
- data/lib/mastercard/api/qkr/pospaymentnotification.rb +7 -7
- data/lib/mastercard/api/qkr/prodgroup.rb +7 -7
- data/lib/mastercard/api/qkr/refund.rb +7 -7
- data/lib/mastercard/api/qkr/resendotp.rb +7 -7
- data/lib/mastercard/api/qkr/resourceconfig.rb +7 -6
- data/lib/mastercard/api/qkr/securityquestion.rb +7 -7
- data/lib/mastercard/api/qkr/trans.rb +13 -13
- data/lib/mastercard/api/qkr/updatepassword.rb +7 -7
- data/lib/mastercard/api/qkr/user.rb +11 -11
- data/lib/mastercard/api/qkr/usersession.rb +7 -7
- data/lib/mastercard/api/qkr/vendingsession.rb +130 -0
- data/lib/mastercard/api/qkr/verifyotp.rb +7 -7
- data/lib/mastercard_qkr.rb +3 -0
- metadata +5 -2
@@ -37,21 +37,21 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'e99c4506-cbc3-4dfd-8ef2-a47d8e91edcb' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/menu/pat", "query", [], ["menuTypes","merchantName","siteName"]),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
44
44
|
protected
|
45
45
|
|
46
|
-
def self.getOperationConfig(
|
47
|
-
if @__store.key?(
|
48
|
-
return @__store[
|
46
|
+
def self.getOperationConfig(operationUUID)
|
47
|
+
if @__store.key?(operationUUID)
|
48
|
+
return @__store[operationUUID]
|
49
49
|
end
|
50
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
50
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.getOperationMetadata()
|
54
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
55
55
|
end
|
56
56
|
|
57
57
|
public
|
@@ -70,7 +70,7 @@ module MasterCard
|
|
70
70
|
#@raise [APIException] an exception from the response status
|
71
71
|
#
|
72
72
|
|
73
|
-
return self.execute("
|
73
|
+
return self.execute("e99c4506-cbc3-4dfd-8ef2-a47d8e91edcb",Menu.new(criteria))
|
74
74
|
end
|
75
75
|
|
76
76
|
|
@@ -37,22 +37,22 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
40
|
+
'2ad250b8-15df-42ca-905a-5c7142bfaa20' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/merchant", "query", [], ["latitude","longitude","queryString"]),
|
41
|
+
'7676927d-9a1a-4517-963d-4290b4fead4c' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/merchant/{id}", "read", [], []),
|
42
42
|
|
43
43
|
}
|
44
44
|
|
45
45
|
protected
|
46
46
|
|
47
|
-
def self.getOperationConfig(
|
48
|
-
if @__store.key?(
|
49
|
-
return @__store[
|
47
|
+
def self.getOperationConfig(operationUUID)
|
48
|
+
if @__store.key?(operationUUID)
|
49
|
+
return @__store[operationUUID]
|
50
50
|
end
|
51
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
51
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
52
52
|
end
|
53
53
|
|
54
54
|
def self.getOperationMetadata()
|
55
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
55
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
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("
|
74
|
+
return self.execute("2ad250b8-15df-42ca-905a-5c7142bfaa20",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("
|
102
|
+
return self.execute("7676927d-9a1a-4517-963d-4290b4fead4c",Merchant.new(mapObj))
|
103
103
|
end
|
104
104
|
|
105
105
|
|
@@ -37,24 +37,24 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
43
|
-
'
|
40
|
+
'344853f2-7d85-49de-b529-533662aa9d69' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/order/pat", "create", [], []),
|
41
|
+
'fc867105-11ef-4f5e-84de-25552579b9e3' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/order/pat/{id}", "delete", [], []),
|
42
|
+
'3543d073-4393-4de3-a7c8-b18790be2f8d' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/order/pat/{id}", "read", [], []),
|
43
|
+
'84aae50a-de17-47b1-97af-b07e4f8c1bbb' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/order/pat/{id}", "update", [], []),
|
44
44
|
|
45
45
|
}
|
46
46
|
|
47
47
|
protected
|
48
48
|
|
49
|
-
def self.getOperationConfig(
|
50
|
-
if @__store.key?(
|
51
|
-
return @__store[
|
49
|
+
def self.getOperationConfig(operationUUID)
|
50
|
+
if @__store.key?(operationUUID)
|
51
|
+
return @__store[operationUUID]
|
52
52
|
end
|
53
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
53
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
54
54
|
end
|
55
55
|
|
56
56
|
def self.getOperationMetadata()
|
57
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
57
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
58
58
|
end
|
59
59
|
|
60
60
|
public
|
@@ -67,7 +67,7 @@ module MasterCard
|
|
67
67
|
#@param Dict mapObj, containing the required parameters to create a new object
|
68
68
|
#@return [Order] of the response of created instance.
|
69
69
|
#@raise [APIException] an exception from the response status
|
70
|
-
return self.execute("
|
70
|
+
return self.execute("344853f2-7d85-49de-b529-533662aa9d69", Order.new(mapObj))
|
71
71
|
end
|
72
72
|
|
73
73
|
|
@@ -100,7 +100,7 @@ module MasterCard
|
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
103
|
-
return self.execute("
|
103
|
+
return self.execute("fc867105-11ef-4f5e-84de-25552579b9e3", mapObj)
|
104
104
|
end
|
105
105
|
|
106
106
|
|
@@ -113,7 +113,7 @@ module MasterCard
|
|
113
113
|
#@raise [APIException] an exception from the response status
|
114
114
|
#
|
115
115
|
|
116
|
-
return self.class.execute("
|
116
|
+
return self.class.execute("fc867105-11ef-4f5e-84de-25552579b9e3", self)
|
117
117
|
end
|
118
118
|
|
119
119
|
|
@@ -143,7 +143,7 @@ module MasterCard
|
|
143
143
|
end
|
144
144
|
end
|
145
145
|
|
146
|
-
return self.execute("
|
146
|
+
return self.execute("3543d073-4393-4de3-a7c8-b18790be2f8d",Order.new(mapObj))
|
147
147
|
end
|
148
148
|
|
149
149
|
|
@@ -156,7 +156,7 @@ module MasterCard
|
|
156
156
|
#@return [Order] object representing the response.
|
157
157
|
#@raise [APIException] an exception from the response status
|
158
158
|
#
|
159
|
-
return self.class.execute("
|
159
|
+
return self.class.execute("84aae50a-de17-47b1-97af-b07e4f8c1bbb",self)
|
160
160
|
end
|
161
161
|
|
162
162
|
|
@@ -37,21 +37,21 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'fd654407-2f81-49bc-b27c-b36e2f3a38f8' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/orderAhead/order", "create", ["X-Auth-Token"], []),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
44
44
|
protected
|
45
45
|
|
46
|
-
def self.getOperationConfig(
|
47
|
-
if @__store.key?(
|
48
|
-
return @__store[
|
46
|
+
def self.getOperationConfig(operationUUID)
|
47
|
+
if @__store.key?(operationUUID)
|
48
|
+
return @__store[operationUUID]
|
49
49
|
end
|
50
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
50
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.getOperationMetadata()
|
54
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
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 [OrderAhead] of the response of created instance.
|
66
66
|
#@raise [APIException] an exception from the response status
|
67
|
-
return self.execute("
|
67
|
+
return self.execute("fd654407-2f81-49bc-b27c-b36e2f3a38f8", OrderAhead.new(mapObj))
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -37,21 +37,21 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'bc7e9806-d64a-491d-b354-0857683613b3' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/orderAheadMenu/orderAhead", "query", [], ["menuTypes","merchantName","orderTime","siteName"]),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
44
44
|
protected
|
45
45
|
|
46
|
-
def self.getOperationConfig(
|
47
|
-
if @__store.key?(
|
48
|
-
return @__store[
|
46
|
+
def self.getOperationConfig(operationUUID)
|
47
|
+
if @__store.key?(operationUUID)
|
48
|
+
return @__store[operationUUID]
|
49
49
|
end
|
50
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
50
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.getOperationMetadata()
|
54
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
55
55
|
end
|
56
56
|
|
57
57
|
public
|
@@ -70,7 +70,7 @@ module MasterCard
|
|
70
70
|
#@raise [APIException] an exception from the response status
|
71
71
|
#
|
72
72
|
|
73
|
-
return self.execute("
|
73
|
+
return self.execute("bc7e9806-d64a-491d-b354-0857683613b3",OrderAheadMenu.new(criteria))
|
74
74
|
end
|
75
75
|
|
76
76
|
|
@@ -37,21 +37,21 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'395ef5e2-c893-4d3b-bb15-4d68bb7a434f' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/orderSlot/orderAhead", "query", [], ["merchantName","orderTime","orderType","shippingAddressId","siteName"]),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
44
44
|
protected
|
45
45
|
|
46
|
-
def self.getOperationConfig(
|
47
|
-
if @__store.key?(
|
48
|
-
return @__store[
|
46
|
+
def self.getOperationConfig(operationUUID)
|
47
|
+
if @__store.key?(operationUUID)
|
48
|
+
return @__store[operationUUID]
|
49
49
|
end
|
50
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
50
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.getOperationMetadata()
|
54
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
55
55
|
end
|
56
56
|
|
57
57
|
public
|
@@ -70,7 +70,7 @@ module MasterCard
|
|
70
70
|
#@raise [APIException] an exception from the response status
|
71
71
|
#
|
72
72
|
|
73
|
-
return self.execute("
|
73
|
+
return self.execute("395ef5e2-c893-4d3b-bb15-4d68bb7a434f",OrderSlot.new(criteria))
|
74
74
|
end
|
75
75
|
|
76
76
|
|
@@ -37,21 +37,21 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'a7b332cf-4147-42e1-b427-f0f95a5e7790' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/orderTotal", "create", [], []),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
44
44
|
protected
|
45
45
|
|
46
|
-
def self.getOperationConfig(
|
47
|
-
if @__store.key?(
|
48
|
-
return @__store[
|
46
|
+
def self.getOperationConfig(operationUUID)
|
47
|
+
if @__store.key?(operationUUID)
|
48
|
+
return @__store[operationUUID]
|
49
49
|
end
|
50
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
50
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.getOperationMetadata()
|
54
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
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 [OrderTotal] of the response of created instance.
|
66
66
|
#@raise [APIException] an exception from the response status
|
67
|
-
return self.execute("
|
67
|
+
return self.execute("a7b332cf-4147-42e1-b427-f0f95a5e7790", OrderTotal.new(mapObj))
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -37,21 +37,21 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'f17d58ba-79f7-42cc-b827-1c3ba598e482' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/payment", "create", ["X-Auth-Token"], []),
|
41
41
|
|
42
42
|
}
|
43
43
|
|
44
44
|
protected
|
45
45
|
|
46
|
-
def self.getOperationConfig(
|
47
|
-
if @__store.key?(
|
48
|
-
return @__store[
|
46
|
+
def self.getOperationConfig(operationUUID)
|
47
|
+
if @__store.key?(operationUUID)
|
48
|
+
return @__store[operationUUID]
|
49
49
|
end
|
50
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
50
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.getOperationMetadata()
|
54
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
54
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
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 [Payment] of the response of created instance.
|
66
66
|
#@raise [APIException] an exception from the response status
|
67
|
-
return self.execute("
|
67
|
+
return self.execute("f17d58ba-79f7-42cc-b827-1c3ba598e482", Payment.new(mapObj))
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -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
|
+
|
29
|
+
require "mastercard/core/model"
|
30
|
+
require "mastercard/core/baseobject"
|
31
|
+
|
32
|
+
module MasterCard
|
33
|
+
module API
|
34
|
+
module Qkr
|
35
|
+
class PosOrder < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'494efdcb-ec5e-4343-8766-48932f60f2f2' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/posOrder", "create", ["X-Auth-Token"], []),
|
41
|
+
'd5122b5d-d98d-42d6-bb9e-bb4f72c07da0' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/posOrder/{id}", "update", ["X-Auth-Token"], []),
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
protected
|
46
|
+
|
47
|
+
def self.getOperationConfig(operationUUID)
|
48
|
+
if @__store.key?(operationUUID)
|
49
|
+
return @__store[operationUUID]
|
50
|
+
end
|
51
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.getOperationMetadata()
|
55
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
56
|
+
end
|
57
|
+
|
58
|
+
public
|
59
|
+
|
60
|
+
|
61
|
+
def self.create(mapObj)
|
62
|
+
#
|
63
|
+
#Creates object of type PosOrder
|
64
|
+
#
|
65
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
66
|
+
#@return [PosOrder] of the response of created instance.
|
67
|
+
#@raise [APIException] an exception from the response status
|
68
|
+
return self.execute("494efdcb-ec5e-4343-8766-48932f60f2f2", PosOrder.new(mapObj))
|
69
|
+
end
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
def update
|
79
|
+
#
|
80
|
+
#Updates an object of type PosOrder
|
81
|
+
#
|
82
|
+
#@return [PosOrder] object representing the response.
|
83
|
+
#@raise [APIException] an exception from the response status
|
84
|
+
#
|
85
|
+
return self.class.execute("d5122b5d-d98d-42d6-bb9e-bb4f72c07da0",self)
|
86
|
+
end
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|