mastercard_qkr 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fed7c1d4a9d2ea6ffc5343c72f6db40436d24e81
|
4
|
+
data.tar.gz: 1589a41dac4dc22c16c8ed0c1d854c2db390a47d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d290d4f3fabfc4a3b32ca20db7c5ea9f30e7856907fe4c4a9de8c40db57a4c8fb298fa97414c776a150f18a0b904037fe212021311fa2e5f852f0b36d674e240
|
7
|
+
data.tar.gz: 4806533e38ed91819eaba8d353a46adca89a4238990ddd0e502857b9c30f4067f3aa9bc5cc9ffe8a5f24c8774fbf494ace5718c71eedcab3a72e5459ff1b2cf3
|
@@ -37,25 +37,25 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
43
|
-
'
|
44
|
-
'
|
40
|
+
'97081133-3da3-412a-8f0e-a1adab5ca065' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card", "create", ["X-Auth-Token"], []),
|
41
|
+
'b813d4ec-c0f3-4b3c-8bc4-dd133e45d482' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "delete", ["X-Auth-Token"], []),
|
42
|
+
'b689bbe1-4277-49f5-89aa-3949ede2a460' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card", "query", ["X-Auth-Token"], []),
|
43
|
+
'3554909c-c21a-47d0-9bc6-8ace36bb89c2' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "read", ["X-Auth-Token"], []),
|
44
|
+
'481f8d8a-1dbf-4d40-a515-8da72a558726' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "update", ["X-Auth-Token"], []),
|
45
45
|
|
46
46
|
}
|
47
47
|
|
48
48
|
protected
|
49
49
|
|
50
|
-
def self.getOperationConfig(
|
51
|
-
if @__store.key?(
|
52
|
-
return @__store[
|
50
|
+
def self.getOperationConfig(operationUUID)
|
51
|
+
if @__store.key?(operationUUID)
|
52
|
+
return @__store[operationUUID]
|
53
53
|
end
|
54
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
54
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
55
55
|
end
|
56
56
|
|
57
57
|
def self.getOperationMetadata()
|
58
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
58
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
59
59
|
end
|
60
60
|
|
61
61
|
public
|
@@ -68,7 +68,7 @@ module MasterCard
|
|
68
68
|
#@param Dict mapObj, containing the required parameters to create a new object
|
69
69
|
#@return [Card] of the response of created instance.
|
70
70
|
#@raise [APIException] an exception from the response status
|
71
|
-
return self.execute("
|
71
|
+
return self.execute("97081133-3da3-412a-8f0e-a1adab5ca065", Card.new(mapObj))
|
72
72
|
end
|
73
73
|
|
74
74
|
|
@@ -101,7 +101,7 @@ module MasterCard
|
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
104
|
-
return self.execute("
|
104
|
+
return self.execute("b813d4ec-c0f3-4b3c-8bc4-dd133e45d482", mapObj)
|
105
105
|
end
|
106
106
|
|
107
107
|
|
@@ -114,7 +114,7 @@ module MasterCard
|
|
114
114
|
#@raise [APIException] an exception from the response status
|
115
115
|
#
|
116
116
|
|
117
|
-
return self.class.execute("
|
117
|
+
return self.class.execute("b813d4ec-c0f3-4b3c-8bc4-dd133e45d482", self)
|
118
118
|
end
|
119
119
|
|
120
120
|
|
@@ -133,7 +133,7 @@ module MasterCard
|
|
133
133
|
#@raise [APIException] an exception from the response status
|
134
134
|
#
|
135
135
|
|
136
|
-
return self.execute("
|
136
|
+
return self.execute("b689bbe1-4277-49f5-89aa-3949ede2a460",Card.new(criteria))
|
137
137
|
end
|
138
138
|
|
139
139
|
|
@@ -161,7 +161,7 @@ module MasterCard
|
|
161
161
|
end
|
162
162
|
end
|
163
163
|
|
164
|
-
return self.execute("
|
164
|
+
return self.execute("3554909c-c21a-47d0-9bc6-8ace36bb89c2",Card.new(mapObj))
|
165
165
|
end
|
166
166
|
|
167
167
|
|
@@ -174,7 +174,7 @@ module MasterCard
|
|
174
174
|
#@return [Card] object representing the response.
|
175
175
|
#@raise [APIException] an exception from the response status
|
176
176
|
#
|
177
|
-
return self.class.execute("
|
177
|
+
return self.class.execute("481f8d8a-1dbf-4d40-a515-8da72a558726",self)
|
178
178
|
end
|
179
179
|
|
180
180
|
|
@@ -37,23 +37,23 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'aaeb3387-f6bd-47e2-8986-19ec157f05a9' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cart/{id}", "delete", ["X-Auth-Token"], []),
|
41
|
+
'2a8c0034-0338-420d-900f-34f669092002' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cart", "query", ["X-Auth-Token"], []),
|
42
|
+
'32383045-71e5-4545-a4ae-07bca62c5624' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cart/{id}", "read", ["X-Auth-Token"], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
46
46
|
protected
|
47
47
|
|
48
|
-
def self.getOperationConfig(
|
49
|
-
if @__store.key?(
|
50
|
-
return @__store[
|
48
|
+
def self.getOperationConfig(operationUUID)
|
49
|
+
if @__store.key?(operationUUID)
|
50
|
+
return @__store[operationUUID]
|
51
51
|
end
|
52
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
52
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
53
53
|
end
|
54
54
|
|
55
55
|
def self.getOperationMetadata()
|
56
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
56
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
57
57
|
end
|
58
58
|
|
59
59
|
public
|
@@ -83,7 +83,7 @@ module MasterCard
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
return self.execute("
|
86
|
+
return self.execute("aaeb3387-f6bd-47e2-8986-19ec157f05a9", mapObj)
|
87
87
|
end
|
88
88
|
|
89
89
|
|
@@ -96,7 +96,7 @@ module MasterCard
|
|
96
96
|
#@raise [APIException] an exception from the response status
|
97
97
|
#
|
98
98
|
|
99
|
-
return self.class.execute("
|
99
|
+
return self.class.execute("aaeb3387-f6bd-47e2-8986-19ec157f05a9", self)
|
100
100
|
end
|
101
101
|
|
102
102
|
|
@@ -115,7 +115,7 @@ module MasterCard
|
|
115
115
|
#@raise [APIException] an exception from the response status
|
116
116
|
#
|
117
117
|
|
118
|
-
return self.execute("
|
118
|
+
return self.execute("2a8c0034-0338-420d-900f-34f669092002",Cart.new(criteria))
|
119
119
|
end
|
120
120
|
|
121
121
|
|
@@ -143,7 +143,7 @@ module MasterCard
|
|
143
143
|
end
|
144
144
|
end
|
145
145
|
|
146
|
-
return self.execute("
|
146
|
+
return self.execute("32383045-71e5-4545-a4ae-07bca62c5624",Cart.new(mapObj))
|
147
147
|
end
|
148
148
|
|
149
149
|
|
@@ -37,23 +37,23 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'fe8aef51-9426-443b-87b0-f60e3552c6f0' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cartItem", "create", ["X-Auth-Token"], []),
|
41
|
+
'8d470f7a-384d-49a1-a4b8-b181220c5580' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cartItem/{id}", "delete", ["X-Auth-Token"], []),
|
42
|
+
'e8653141-482b-4519-b6b5-aebae7a63cff' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/cartItem/{id}", "update", ["X-Auth-Token"], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
46
46
|
protected
|
47
47
|
|
48
|
-
def self.getOperationConfig(
|
49
|
-
if @__store.key?(
|
50
|
-
return @__store[
|
48
|
+
def self.getOperationConfig(operationUUID)
|
49
|
+
if @__store.key?(operationUUID)
|
50
|
+
return @__store[operationUUID]
|
51
51
|
end
|
52
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
52
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
53
53
|
end
|
54
54
|
|
55
55
|
def self.getOperationMetadata()
|
56
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
56
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
57
57
|
end
|
58
58
|
|
59
59
|
public
|
@@ -66,7 +66,7 @@ module MasterCard
|
|
66
66
|
#@param Dict mapObj, containing the required parameters to create a new object
|
67
67
|
#@return [CartItem] of the response of created instance.
|
68
68
|
#@raise [APIException] an exception from the response status
|
69
|
-
return self.execute("
|
69
|
+
return self.execute("fe8aef51-9426-443b-87b0-f60e3552c6f0", CartItem.new(mapObj))
|
70
70
|
end
|
71
71
|
|
72
72
|
|
@@ -99,7 +99,7 @@ module MasterCard
|
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
102
|
-
return self.execute("
|
102
|
+
return self.execute("8d470f7a-384d-49a1-a4b8-b181220c5580", mapObj)
|
103
103
|
end
|
104
104
|
|
105
105
|
|
@@ -112,7 +112,7 @@ module MasterCard
|
|
112
112
|
#@raise [APIException] an exception from the response status
|
113
113
|
#
|
114
114
|
|
115
|
-
return self.class.execute("
|
115
|
+
return self.class.execute("8d470f7a-384d-49a1-a4b8-b181220c5580", self)
|
116
116
|
end
|
117
117
|
|
118
118
|
|
@@ -126,7 +126,7 @@ module MasterCard
|
|
126
126
|
#@return [CartItem] object representing the response.
|
127
127
|
#@raise [APIException] an exception from the response status
|
128
128
|
#
|
129
|
-
return self.class.execute("
|
129
|
+
return self.class.execute("e8653141-482b-4519-b6b5-aebae7a63cff",self)
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -37,22 +37,22 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
40
|
+
'103fcb26-f116-4c0c-b494-4dc209806fd7' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/country", "query", [], []),
|
41
|
+
'da49a4b7-75b3-4e5d-953f-9e62bf1c2d08' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/country/{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("103fcb26-f116-4c0c-b494-4dc209806fd7",Country.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("da49a4b7-75b3-4e5d-953f-9e62bf1c2d08",Country.new(mapObj))
|
103
103
|
end
|
104
104
|
|
105
105
|
|
@@ -37,23 +37,23 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
42
|
-
'
|
40
|
+
'b8c6be19-3b49-461e-82f7-fa65f9c2cc9f' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/externalTrans", "create", [], []),
|
41
|
+
'27c0dc15-b295-4fc7-8a34-d42c9d840936' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/externalTrans", "query", [], []),
|
42
|
+
'50e2ce57-da9a-4406-aceb-e7f38593f251' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/externalTrans/{id}", "read", [], []),
|
43
43
|
|
44
44
|
}
|
45
45
|
|
46
46
|
protected
|
47
47
|
|
48
|
-
def self.getOperationConfig(
|
49
|
-
if @__store.key?(
|
50
|
-
return @__store[
|
48
|
+
def self.getOperationConfig(operationUUID)
|
49
|
+
if @__store.key?(operationUUID)
|
50
|
+
return @__store[operationUUID]
|
51
51
|
end
|
52
|
-
raise NotImplementedError.new("Invalid operationUUID supplied:"+
|
52
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
53
53
|
end
|
54
54
|
|
55
55
|
def self.getOperationMetadata()
|
56
|
-
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative())
|
56
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
57
57
|
end
|
58
58
|
|
59
59
|
public
|
@@ -66,7 +66,7 @@ module MasterCard
|
|
66
66
|
#@param Dict mapObj, containing the required parameters to create a new object
|
67
67
|
#@return [ExternalTrans] of the response of created instance.
|
68
68
|
#@raise [APIException] an exception from the response status
|
69
|
-
return self.execute("
|
69
|
+
return self.execute("b8c6be19-3b49-461e-82f7-fa65f9c2cc9f", ExternalTrans.new(mapObj))
|
70
70
|
end
|
71
71
|
|
72
72
|
|
@@ -88,7 +88,7 @@ module MasterCard
|
|
88
88
|
#@raise [APIException] an exception from the response status
|
89
89
|
#
|
90
90
|
|
91
|
-
return self.execute("
|
91
|
+
return self.execute("27c0dc15-b295-4fc7-8a34-d42c9d840936",ExternalTrans.new(criteria))
|
92
92
|
end
|
93
93
|
|
94
94
|
|
@@ -116,7 +116,7 @@ module MasterCard
|
|
116
116
|
end
|
117
117
|
end
|
118
118
|
|
119
|
-
return self.execute("
|
119
|
+
return self.execute("50e2ce57-da9a-4406-aceb-e7f38593f251",ExternalTrans.new(mapObj))
|
120
120
|
end
|
121
121
|
|
122
122
|
|
@@ -37,21 +37,21 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
40
|
+
'1ecc9a1f-784e-4f16-b862-d47514deebf5' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/forgottenPassword", "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 [ForgottenPassword] of the response of created instance.
|
66
66
|
#@raise [APIException] an exception from the response status
|
67
|
-
return self.execute("
|
67
|
+
return self.execute("1ecc9a1f-784e-4f16-b862-d47514deebf5", ForgottenPassword.new(mapObj))
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -37,22 +37,22 @@ module MasterCard
|
|
37
37
|
#
|
38
38
|
|
39
39
|
@__store = {
|
40
|
-
'
|
41
|
-
'
|
40
|
+
'd24f8e16-b6be-43e3-a242-ee63af95b7b3' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/lightbox", "create", ["X-Auth-Token"], []),
|
41
|
+
'a6cf0dc0-70c4-419e-889b-81d514dd5b20' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/lightbox/{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
|
@@ -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("
|
68
|
+
return self.execute("d24f8e16-b6be-43e3-a242-ee63af95b7b3", 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("
|
101
|
+
return self.execute("a6cf0dc0-70c4-419e-889b-81d514dd5b20",Lightbox.new(mapObj))
|
102
102
|
end
|
103
103
|
|
104
104
|
|
@@ -0,0 +1,99 @@
|
|
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 Machine < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'6256b565-ce71-42db-9697-cea1f1697e91' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/machine/{id}", "read", ["X-Auth-Token"], []),
|
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
|
+
|
61
|
+
|
62
|
+
|
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
|
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
|
83
|
+
|
84
|
+
return self.execute("6256b565-ce71-42db-9697-cea1f1697e91",Machine.new(mapObj))
|
85
|
+
end
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|