mastercard_qkr 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mastercard/api/qkr/auth.rb +130 -0
  3. data/lib/mastercard/api/qkr/beneficiary.rb +166 -0
  4. data/lib/mastercard/api/qkr/{pospayment.rb → beneficiarycustomfield.rb} +33 -32
  5. data/lib/mastercard/api/qkr/card.rb +102 -102
  6. data/lib/mastercard/api/qkr/cart.rb +82 -82
  7. data/lib/mastercard/api/qkr/cartitem.rb +71 -71
  8. data/lib/mastercard/api/qkr/country.rb +53 -53
  9. data/lib/mastercard/api/qkr/creditnote.rb +116 -0
  10. data/lib/mastercard/api/qkr/externaltrans.rb +63 -63
  11. data/lib/mastercard/api/qkr/forgottenpassword.rb +32 -32
  12. data/lib/mastercard/api/qkr/form.rb +99 -0
  13. data/lib/mastercard/api/qkr/formsubmission.rb +104 -0
  14. data/lib/mastercard/api/qkr/lightbox.rb +53 -53
  15. data/lib/mastercard/api/qkr/machine.rb +43 -43
  16. data/lib/mastercard/api/qkr/menu.rb +32 -32
  17. data/lib/mastercard/api/qkr/merchant.rb +53 -53
  18. data/lib/mastercard/api/qkr/order.rb +92 -92
  19. data/lib/mastercard/api/qkr/orderahead.rb +32 -32
  20. data/lib/mastercard/api/qkr/orderaheadmenu.rb +32 -32
  21. data/lib/mastercard/api/qkr/ordercalendar.rb +99 -0
  22. data/lib/mastercard/api/qkr/orderslot.rb +32 -32
  23. data/lib/mastercard/api/qkr/ordertotal.rb +32 -32
  24. data/lib/mastercard/api/qkr/posorder.rb +42 -42
  25. data/lib/mastercard/api/qkr/pospaymentnotification.rb +32 -32
  26. data/lib/mastercard/api/qkr/prodgroup.rb +43 -43
  27. data/lib/mastercard/api/qkr/refund.rb +32 -32
  28. data/lib/mastercard/api/qkr/resendotp.rb +32 -32
  29. data/lib/mastercard/api/qkr/resourceconfig.rb +54 -54
  30. data/lib/mastercard/api/qkr/securityquestion.rb +32 -32
  31. data/lib/mastercard/api/qkr/trans.rb +73 -73
  32. data/lib/mastercard/api/qkr/updatepassword.rb +32 -32
  33. data/lib/mastercard/api/qkr/user.rb +52 -52
  34. data/lib/mastercard/api/qkr/{payment.rb → userimage.rb} +32 -32
  35. data/lib/mastercard/api/qkr/usersession.rb +32 -32
  36. data/lib/mastercard/api/qkr/vendingsession.rb +61 -61
  37. data/lib/mastercard/api/qkr/verifyotp.rb +32 -32
  38. data/lib/mastercard_qkr.rb +8 -2
  39. metadata +12 -6
@@ -30,65 +30,65 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module Qkr
35
- class Machine < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module Qkr
35
+ class Machine < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '6256b565-ce71-42db-9697-cea1f1697e91' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/machine/{id}", "read", ["X-Auth-Token"], []),
41
-
42
- }
39
+ @__store = {
40
+ '8a5b716e-e1d2-4227-9b6a-685d216e392a' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/machine/{id}", "read", ["X-Auth-Token"], []),
41
+
42
+ }
43
43
 
44
- protected
44
+ protected
45
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
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
- def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
- end
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
- public
57
+ public
58
58
 
59
59
 
60
60
 
61
61
 
62
62
 
63
63
 
64
- def self.read(id, criteria = nil)
65
- #
66
- #Returns objects of type Machine by id and optional criteria
67
- #@param [String] id
68
- #@param [Dict] criteria
69
- #@return [Machine] object representing the response
70
- #@raise [APIException] an exception from the response status
64
+ def self.read(id, criteria = nil)
65
+ #
66
+ #Returns objects of type Machine by id and optional criteria
67
+ #@param [String] id
68
+ #@param [Dict] criteria
69
+ #@return [Machine] object representing the response
70
+ #@raise [APIException] an exception from the response status
71
71
 
72
- mapObj = Machine.new
73
- if !(id.nil? || id.to_s.empty?)
74
- mapObj.set("id", id)
75
- end
76
- if !criteria.nil?
77
- if criteria.instance_of? RequestMap
78
- mapObj.setAll(criteria.getObject())
79
- else
80
- mapObj.setAll(criteria)
81
- end
82
- end
72
+ mapObj = Machine.new
73
+ if !(id.nil? || id.to_s.empty?)
74
+ mapObj.set("id", id)
75
+ end
76
+ if !criteria.nil?
77
+ if criteria.instance_of? RequestMap
78
+ mapObj.setAll(criteria.getObject())
79
+ else
80
+ mapObj.setAll(criteria)
81
+ end
82
+ end
83
83
 
84
- return self.execute("6256b565-ce71-42db-9697-cea1f1697e91",Machine.new(mapObj))
85
- end
84
+ return self.execute("8a5b716e-e1d2-4227-9b6a-685d216e392a",Machine.new(mapObj))
85
+ end
86
86
 
87
87
 
88
88
 
89
- end
90
- end
91
- end
89
+ end
90
+ end
91
+ end
92
92
  end
93
93
 
94
94
 
@@ -30,31 +30,31 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module Qkr
35
- class Menu < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module Qkr
35
+ class Menu < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- 'e99c4506-cbc3-4dfd-8ef2-a47d8e91edcb' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/menu/pat", "query", [], ["menuTypes","merchantName","siteName"]),
41
-
42
- }
39
+ @__store = {
40
+ 'f7bd618b-81bb-4fa5-a83a-3e5d7f72302d' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/menu/pat", "query", [], ["menuTypes","merchantName","siteName"]),
41
+
42
+ }
43
43
 
44
- protected
44
+ protected
45
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
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
- def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
- end
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
- public
57
+ public
58
58
 
59
59
 
60
60
 
@@ -62,21 +62,21 @@ module MasterCard
62
62
 
63
63
 
64
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
- #
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
72
 
73
- return self.execute("e99c4506-cbc3-4dfd-8ef2-a47d8e91edcb",Menu.new(criteria))
74
- end
73
+ return self.execute("f7bd618b-81bb-4fa5-a83a-3e5d7f72302d",Menu.new(criteria))
74
+ end
75
75
 
76
76
 
77
- end
78
- end
79
- end
77
+ end
78
+ end
79
+ end
80
80
  end
81
81
 
82
82
 
@@ -30,32 +30,32 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module Qkr
35
- class Merchant < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module Qkr
35
+ class Merchant < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
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
-
43
- }
39
+ @__store = {
40
+ '4a49bdb1-d38f-4f11-9ecd-4361fcbae634' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/merchant", "query", [], ["latitude","longitude","queryString"]),
41
+ '9e18502c-c214-4bfb-8bf9-c2e150568811' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/merchant/{id}", "read", [], []),
42
+
43
+ }
44
44
 
45
- protected
45
+ protected
46
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
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
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
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
57
 
58
- public
58
+ public
59
59
 
60
60
 
61
61
 
@@ -63,50 +63,50 @@ module MasterCard
63
63
 
64
64
 
65
65
 
66
- def self.query(criteria)
67
- #
68
- #Query objects of type Merchant by id and optional criteria
69
- #@param [Dict] criteria
70
- #@return [Merchant] object representing the response.
71
- #@raise [APIException] an exception from the response status
72
- #
66
+ def self.query(criteria)
67
+ #
68
+ #Query objects of type Merchant by id and optional criteria
69
+ #@param [Dict] criteria
70
+ #@return [Merchant] object representing the response.
71
+ #@raise [APIException] an exception from the response status
72
+ #
73
73
 
74
- return self.execute("2ad250b8-15df-42ca-905a-5c7142bfaa20",Merchant.new(criteria))
75
- end
74
+ return self.execute("4a49bdb1-d38f-4f11-9ecd-4361fcbae634",Merchant.new(criteria))
75
+ end
76
76
 
77
77
 
78
78
 
79
79
 
80
80
 
81
81
 
82
- def self.read(id, criteria = nil)
83
- #
84
- #Returns objects of type Merchant by id and optional criteria
85
- #@param [String] id
86
- #@param [Dict] criteria
87
- #@return [Merchant] object representing the response
88
- #@raise [APIException] an exception from the response status
82
+ def self.read(id, criteria = nil)
83
+ #
84
+ #Returns objects of type Merchant by id and optional criteria
85
+ #@param [String] id
86
+ #@param [Dict] criteria
87
+ #@return [Merchant] object representing the response
88
+ #@raise [APIException] an exception from the response status
89
89
 
90
- mapObj = Merchant.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
90
+ mapObj = Merchant.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
101
 
102
- return self.execute("7676927d-9a1a-4517-963d-4290b4fead4c",Merchant.new(mapObj))
103
- end
102
+ return self.execute("9e18502c-c214-4bfb-8bf9-c2e150568811",Merchant.new(mapObj))
103
+ end
104
104
 
105
105
 
106
106
 
107
- end
108
- end
109
- end
107
+ end
108
+ end
109
+ end
110
110
  end
111
111
 
112
112
 
@@ -30,45 +30,45 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module Qkr
35
- class Order < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module Qkr
35
+ class Order < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
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
-
45
- }
39
+ @__store = {
40
+ '390e712e-71bb-40ae-87a2-075700c4fa4d' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/order/pat", "create", [], []),
41
+ '59cb2411-38f9-410a-a19f-cad44c435b2e' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/order/pat/{id}", "delete", [], []),
42
+ '035e004c-001d-49d8-9e97-5f75aa4266cb' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/order/pat/{id}", "read", [], []),
43
+ '24e3ac94-e327-43a6-a448-9a75255e04cf' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/order/pat/{id}", "update", [], []),
44
+
45
+ }
46
46
 
47
- protected
47
+ protected
48
48
 
49
- def self.getOperationConfig(operationUUID)
50
- if @__store.key?(operationUUID)
51
- return @__store[operationUUID]
52
- end
53
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
54
- end
49
+ def self.getOperationConfig(operationUUID)
50
+ if @__store.key?(operationUUID)
51
+ return @__store[operationUUID]
52
+ end
53
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
54
+ end
55
55
 
56
- def self.getOperationMetadata()
57
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
58
- end
56
+ def self.getOperationMetadata()
57
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
58
+ end
59
59
 
60
- public
60
+ public
61
61
 
62
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("344853f2-7d85-49de-b529-533662aa9d69", Order.new(mapObj))
71
- end
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("390e712e-71bb-40ae-87a2-075700c4fa4d", Order.new(mapObj))
71
+ end
72
72
 
73
73
 
74
74
 
@@ -79,42 +79,42 @@ module MasterCard
79
79
 
80
80
 
81
81
 
82
- def self.deleteById(id, map = nil)
83
- #Delete object of type Order by id
82
+ def self.deleteById(id, map = nil)
83
+ #Delete object of type Order by id
84
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
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
89
 
90
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
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
102
 
103
- return self.execute("fc867105-11ef-4f5e-84de-25552579b9e3", mapObj)
104
- end
103
+ return self.execute("59cb2411-38f9-410a-a19f-cad44c435b2e", mapObj)
104
+ end
105
105
 
106
106
 
107
- def delete
108
- #
109
- #Delete object of type Order
107
+ def delete
108
+ #
109
+ #Delete object of type Order
110
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
- #
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
115
 
116
- return self.class.execute("fc867105-11ef-4f5e-84de-25552579b9e3", self)
117
- end
116
+ return self.class.execute("59cb2411-38f9-410a-a19f-cad44c435b2e", self)
117
+ end
118
118
 
119
119
 
120
120
 
@@ -123,41 +123,41 @@ module MasterCard
123
123
 
124
124
 
125
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
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
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
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
145
 
146
- return self.execute("3543d073-4393-4de3-a7c8-b18790be2f8d",Order.new(mapObj))
147
- end
146
+ return self.execute("035e004c-001d-49d8-9e97-5f75aa4266cb",Order.new(mapObj))
147
+ end
148
148
 
149
149
 
150
150
 
151
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("84aae50a-de17-47b1-97af-b07e4f8c1bbb",self)
160
- end
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("24e3ac94-e327-43a6-a448-9a75255e04cf",self)
160
+ end
161
161
 
162
162
 
163
163
 
@@ -165,9 +165,9 @@ module MasterCard
165
165
 
166
166
 
167
167
 
168
- end
169
- end
170
- end
168
+ end
169
+ end
170
+ end
171
171
  end
172
172
 
173
173
 
@@ -30,42 +30,42 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module Qkr
35
- class OrderAhead < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module Qkr
35
+ class OrderAhead < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- 'fd654407-2f81-49bc-b27c-b36e2f3a38f8' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/orderAhead/order", "create", ["X-Auth-Token"], []),
41
-
42
- }
39
+ @__store = {
40
+ '1826f483-2fd5-4c9f-8026-baa109faad83' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/orderAhead/order", "create", ["X-Auth-Token"], []),
41
+
42
+ }
43
43
 
44
- protected
44
+ protected
45
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
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
- def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
- end
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
- public
57
+ public
58
58
 
59
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("fd654407-2f81-49bc-b27c-b36e2f3a38f8", OrderAhead.new(mapObj))
68
- end
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("1826f483-2fd5-4c9f-8026-baa109faad83", OrderAhead.new(mapObj))
68
+ end
69
69
 
70
70
 
71
71
 
@@ -73,9 +73,9 @@ module MasterCard
73
73
 
74
74
 
75
75
 
76
- end
77
- end
78
- end
76
+ end
77
+ end
78
+ end
79
79
  end
80
80
 
81
81