mastercard_qkr 1.0.2 → 1.1.0
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/auth.rb +130 -0
- data/lib/mastercard/api/qkr/beneficiary.rb +166 -0
- data/lib/mastercard/api/qkr/{pospayment.rb → beneficiarycustomfield.rb} +33 -32
- data/lib/mastercard/api/qkr/card.rb +102 -102
- data/lib/mastercard/api/qkr/cart.rb +82 -82
- data/lib/mastercard/api/qkr/cartitem.rb +71 -71
- data/lib/mastercard/api/qkr/country.rb +53 -53
- data/lib/mastercard/api/qkr/creditnote.rb +116 -0
- data/lib/mastercard/api/qkr/externaltrans.rb +63 -63
- data/lib/mastercard/api/qkr/forgottenpassword.rb +32 -32
- data/lib/mastercard/api/qkr/form.rb +99 -0
- data/lib/mastercard/api/qkr/formsubmission.rb +104 -0
- data/lib/mastercard/api/qkr/lightbox.rb +53 -53
- data/lib/mastercard/api/qkr/machine.rb +43 -43
- data/lib/mastercard/api/qkr/menu.rb +32 -32
- data/lib/mastercard/api/qkr/merchant.rb +53 -53
- data/lib/mastercard/api/qkr/order.rb +92 -92
- data/lib/mastercard/api/qkr/orderahead.rb +32 -32
- data/lib/mastercard/api/qkr/orderaheadmenu.rb +32 -32
- data/lib/mastercard/api/qkr/ordercalendar.rb +99 -0
- data/lib/mastercard/api/qkr/orderslot.rb +32 -32
- data/lib/mastercard/api/qkr/ordertotal.rb +32 -32
- data/lib/mastercard/api/qkr/posorder.rb +42 -42
- data/lib/mastercard/api/qkr/pospaymentnotification.rb +32 -32
- data/lib/mastercard/api/qkr/prodgroup.rb +43 -43
- data/lib/mastercard/api/qkr/refund.rb +32 -32
- data/lib/mastercard/api/qkr/resendotp.rb +32 -32
- data/lib/mastercard/api/qkr/resourceconfig.rb +54 -54
- data/lib/mastercard/api/qkr/securityquestion.rb +32 -32
- data/lib/mastercard/api/qkr/trans.rb +73 -73
- data/lib/mastercard/api/qkr/updatepassword.rb +32 -32
- data/lib/mastercard/api/qkr/user.rb +52 -52
- data/lib/mastercard/api/qkr/{payment.rb → userimage.rb} +32 -32
- data/lib/mastercard/api/qkr/usersession.rb +32 -32
- data/lib/mastercard/api/qkr/vendingsession.rb +61 -61
- data/lib/mastercard/api/qkr/verifyotp.rb +32 -32
- data/lib/mastercard_qkr.rb +8 -2
- metadata +12 -6
@@ -30,44 +30,44 @@ require "mastercard/core/model"
|
|
30
30
|
require "mastercard/core/baseobject"
|
31
31
|
|
32
32
|
module MasterCard
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
module API
|
34
|
+
module Qkr
|
35
|
+
class ExternalTrans < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
39
|
+
@__store = {
|
40
|
+
'bdde0c57-34c9-48ce-b29d-1b63451a5a07' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/externalTrans", "create", [], []),
|
41
|
+
'c185377a-5a72-43ee-8c50-c066064bd05d' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/externalTrans", "query", [], []),
|
42
|
+
'4e518dba-9149-434e-ac4a-18eda859337e' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/externalTrans/{id}", "read", [], []),
|
43
|
+
|
44
|
+
}
|
45
45
|
|
46
|
-
|
46
|
+
protected
|
47
47
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
48
|
+
def self.getOperationConfig(operationUUID)
|
49
|
+
if @__store.key?(operationUUID)
|
50
|
+
return @__store[operationUUID]
|
51
|
+
end
|
52
|
+
raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
|
53
|
+
end
|
54
54
|
|
55
|
-
|
56
|
-
|
57
|
-
|
55
|
+
def self.getOperationMetadata()
|
56
|
+
return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
|
57
|
+
end
|
58
58
|
|
59
|
-
|
59
|
+
public
|
60
60
|
|
61
61
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
62
|
+
def self.create(mapObj)
|
63
|
+
#
|
64
|
+
#Creates object of type ExternalTrans
|
65
|
+
#
|
66
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
67
|
+
#@return [ExternalTrans] of the response of created instance.
|
68
|
+
#@raise [APIException] an exception from the response status
|
69
|
+
return self.execute("bdde0c57-34c9-48ce-b29d-1b63451a5a07", ExternalTrans.new(mapObj))
|
70
|
+
end
|
71
71
|
|
72
72
|
|
73
73
|
|
@@ -80,50 +80,50 @@ module MasterCard
|
|
80
80
|
|
81
81
|
|
82
82
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
83
|
+
def self.query(criteria)
|
84
|
+
#
|
85
|
+
#Query objects of type ExternalTrans by id and optional criteria
|
86
|
+
#@param [Dict] criteria
|
87
|
+
#@return [ExternalTrans] object representing the response.
|
88
|
+
#@raise [APIException] an exception from the response status
|
89
|
+
#
|
90
90
|
|
91
|
-
|
92
|
-
|
91
|
+
return self.execute("c185377a-5a72-43ee-8c50-c066064bd05d",ExternalTrans.new(criteria))
|
92
|
+
end
|
93
93
|
|
94
94
|
|
95
95
|
|
96
96
|
|
97
97
|
|
98
98
|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
99
|
+
def self.read(id, criteria = nil)
|
100
|
+
#
|
101
|
+
#Returns objects of type ExternalTrans by id and optional criteria
|
102
|
+
#@param [String] id
|
103
|
+
#@param [Dict] criteria
|
104
|
+
#@return [ExternalTrans] object representing the response
|
105
|
+
#@raise [APIException] an exception from the response status
|
106
106
|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
107
|
+
mapObj = ExternalTrans.new
|
108
|
+
if !(id.nil? || id.to_s.empty?)
|
109
|
+
mapObj.set("id", id)
|
110
|
+
end
|
111
|
+
if !criteria.nil?
|
112
|
+
if criteria.instance_of? RequestMap
|
113
|
+
mapObj.setAll(criteria.getObject())
|
114
|
+
else
|
115
|
+
mapObj.setAll(criteria)
|
116
|
+
end
|
117
|
+
end
|
118
118
|
|
119
|
-
|
120
|
-
|
119
|
+
return self.execute("4e518dba-9149-434e-ac4a-18eda859337e",ExternalTrans.new(mapObj))
|
120
|
+
end
|
121
121
|
|
122
122
|
|
123
123
|
|
124
|
-
|
125
|
-
|
126
|
-
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
127
127
|
end
|
128
128
|
|
129
129
|
|
@@ -30,42 +30,42 @@ require "mastercard/core/model"
|
|
30
30
|
require "mastercard/core/baseobject"
|
31
31
|
|
32
32
|
module MasterCard
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
module API
|
34
|
+
module Qkr
|
35
|
+
class ForgottenPassword < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
39
|
+
@__store = {
|
40
|
+
'7308af35-c69a-4412-82fb-c9dd2ca3ad96' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/forgottenPassword", "create", [], []),
|
41
|
+
|
42
|
+
}
|
43
43
|
|
44
|
-
|
44
|
+
protected
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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
|
-
|
54
|
-
|
55
|
-
|
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
|
-
|
57
|
+
public
|
58
58
|
|
59
59
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
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("7308af35-c69a-4412-82fb-c9dd2ca3ad96", ForgottenPassword.new(mapObj))
|
68
|
+
end
|
69
69
|
|
70
70
|
|
71
71
|
|
@@ -73,9 +73,9 @@ module MasterCard
|
|
73
73
|
|
74
74
|
|
75
75
|
|
76
|
-
|
77
|
-
|
78
|
-
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
79
|
end
|
80
80
|
|
81
81
|
|
@@ -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 Form < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'66d66daf-88ab-4fa5-91db-f7238e65a087' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/form/{id}", "read", ["X-Auth-Token"], ["beneficiaryId","id2"]),
|
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 Form by id and optional criteria
|
67
|
+
#@param [String] id
|
68
|
+
#@param [Dict] criteria
|
69
|
+
#@return [Form] object representing the response
|
70
|
+
#@raise [APIException] an exception from the response status
|
71
|
+
|
72
|
+
mapObj = Form.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("66d66daf-88ab-4fa5-91db-f7238e65a087",Form.new(mapObj))
|
85
|
+
end
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
@@ -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 FormSubmission < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
|
+
|
39
|
+
@__store = {
|
40
|
+
'ae1f60df-9272-4a49-b2b1-4e2eebee2bf9' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/formSubmission", "create", ["X-Auth-Token"], []),
|
41
|
+
'c40c1e5b-4699-4f8d-b8f8-728840b4d840' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/formSubmission", "query", ["X-Auth-Token"], ["merchantId"]),
|
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 FormSubmission
|
64
|
+
#
|
65
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
66
|
+
#@return [FormSubmission] of the response of created instance.
|
67
|
+
#@raise [APIException] an exception from the response status
|
68
|
+
return self.execute("ae1f60df-9272-4a49-b2b1-4e2eebee2bf9", FormSubmission.new(mapObj))
|
69
|
+
end
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
def self.query(criteria)
|
83
|
+
#
|
84
|
+
#Query objects of type FormSubmission by id and optional criteria
|
85
|
+
#@param [Dict] criteria
|
86
|
+
#@return [FormSubmission] object representing the response.
|
87
|
+
#@raise [APIException] an exception from the response status
|
88
|
+
#
|
89
|
+
|
90
|
+
return self.execute("c40c1e5b-4699-4f8d-b8f8-728840b4d840",FormSubmission.new(criteria))
|
91
|
+
end
|
92
|
+
|
93
|
+
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
@@ -30,43 +30,43 @@ require "mastercard/core/model"
|
|
30
30
|
require "mastercard/core/baseobject"
|
31
31
|
|
32
32
|
module MasterCard
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
module API
|
34
|
+
module Qkr
|
35
|
+
class Lightbox < MasterCard::Core::Model::BaseObject
|
36
|
+
include MasterCard::Core::Model
|
37
|
+
#
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
39
|
+
@__store = {
|
40
|
+
'74966461-0f29-45ec-bde3-cb8d4c4d20c8' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/lightbox", "create", ["X-Auth-Token"], []),
|
41
|
+
'0c4314eb-fa16-416c-9530-414ac2d16c88' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/lightbox/{id}", "read", [], []),
|
42
|
+
|
43
|
+
}
|
44
44
|
|
45
|
-
|
45
|
+
protected
|
46
46
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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
|
-
|
55
|
-
|
56
|
-
|
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
|
-
|
58
|
+
public
|
59
59
|
|
60
60
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
61
|
+
def self.create(mapObj)
|
62
|
+
#
|
63
|
+
#Creates object of type Lightbox
|
64
|
+
#
|
65
|
+
#@param Dict mapObj, containing the required parameters to create a new object
|
66
|
+
#@return [Lightbox] of the response of created instance.
|
67
|
+
#@raise [APIException] an exception from the response status
|
68
|
+
return self.execute("74966461-0f29-45ec-bde3-cb8d4c4d20c8", Lightbox.new(mapObj))
|
69
|
+
end
|
70
70
|
|
71
71
|
|
72
72
|
|
@@ -78,34 +78,34 @@ module MasterCard
|
|
78
78
|
|
79
79
|
|
80
80
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
81
|
+
def self.read(id, criteria = nil)
|
82
|
+
#
|
83
|
+
#Returns objects of type Lightbox by id and optional criteria
|
84
|
+
#@param [String] id
|
85
|
+
#@param [Dict] criteria
|
86
|
+
#@return [Lightbox] object representing the response
|
87
|
+
#@raise [APIException] an exception from the response status
|
88
88
|
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
89
|
+
mapObj = Lightbox.new
|
90
|
+
if !(id.nil? || id.to_s.empty?)
|
91
|
+
mapObj.set("id", id)
|
92
|
+
end
|
93
|
+
if !criteria.nil?
|
94
|
+
if criteria.instance_of? RequestMap
|
95
|
+
mapObj.setAll(criteria.getObject())
|
96
|
+
else
|
97
|
+
mapObj.setAll(criteria)
|
98
|
+
end
|
99
|
+
end
|
100
100
|
|
101
|
-
|
102
|
-
|
101
|
+
return self.execute("0c4314eb-fa16-416c-9530-414ac2d16c88",Lightbox.new(mapObj))
|
102
|
+
end
|
103
103
|
|
104
104
|
|
105
105
|
|
106
|
-
|
107
|
-
|
108
|
-
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
109
|
end
|
110
110
|
|
111
111
|
|